/* Mobile sheets decorate the existing canonical presentation controls. */
.cmp-presentation-head,.cmp-option-mobile,.cmp-presentation-icon,.cmp-calculation-description { display:none; }
.cmp-presentation-surface,.cmp-presentation-options { display:contents; }
@media (max-width: 599px), (max-width: 767px) and (max-aspect-ratio: 10/13) {
 body.sp-explore-sheets:where([data-sp-has~="app"]):not(#sp-s) .cmp-workbench-slot:focus-within { z-index:31;overflow:visible; }
 body.sp-explore-sheets:where([data-sp-has~="app"]):not(#sp-s) #compare-shell.sp-data-shell #cmp-view-wrap:focus-within { overflow:visible; }
 body.sp-explore-final:where([data-sp-has~="app"]):not(#sp-s) #compare-shell.sp-data-shell #cmp-view-trigger { border-radius:10px 0 0 10px; }
 body.sp-explore-final:where([data-sp-has~="app"]):not(#sp-s) #compare-shell.sp-data-shell #cmp-format-trigger { border-radius:0 10px 10px 0; }
 body.sp-explore-sheets:where([data-sp-has~="app"]):not(#sp-s):where([data-sp-has~="cmp-total-menu-open"],[data-sp-has~="cmp-presentation-menu-open"]):not(.sp-s):not(.sp-s) .cmp-workbench-slot { z-index:2100; overflow:visible; }
 body.sp-explore-sheets:where([data-sp-has~="app"]):not(#sp-s) #compare-shell.sp-data-shell #cmp-view-wrap:has(.cmp-total-menu[open]) { overflow:visible; }
 body.sp-explore-sheets :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet {
  display:block;position:fixed!important;inset:auto 0 0!important;width:100%!important;max-width:none;max-height:72dvh;
  transform:none!important;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:2100!important;
  transition:none!important;animation:none!important;opacity:1!important;outline:0;overflow:visible;
 }
 body.sp-explore-sheets .cmp-final-presentation-sheet::before { content:'';position:fixed;inset:0;z-index:-1;background:#0008;animation:cmp-backdrop-enter 180ms ease-out; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .mantine-Menu-label { display:none; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-surface { display:flex;flex-direction:column;max-height:72dvh;background:#17191f;border-radius:20px 20px 0 0;overflow:hidden;box-shadow:0 -8px 30px #0003;animation:cmp-sheet-enter 200ms cubic-bezier(.16,1,.3,1); }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-surface::before { content:'';flex:none;width:30px;height:3px;border-radius:3px;background:#7c818b;margin:7px auto 2px; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-head { display:flex;align-items:center;justify-content:space-between;flex:none;min-height:56px;padding:10px 18px 2px; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-head h2 { margin:0;font:700 22px/1.4 var(--sp-font-display);letter-spacing:-.025em;color:#f2efe9; }
 body.sp-explore-sheets :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-close { width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:#cac7c0;font:400 12px/1.4 var(--sp-font-ui);text-align:center; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-options { display:flex;flex-direction:column;min-height:0;padding:10px 18px calc(8px + env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin; }
 body.sp-explore-sheets :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-options>button { display:flex;align-items:center;gap:12px;flex:none;min-height:52px;height:auto;width:100%;padding:9px 12px;border:0;border-bottom:1px solid #333640;border-radius:0;background:transparent;color:#f2efe9;font:400 14px/1.4 var(--sp-font-ui);text-align:left; }
 body.sp-explore-sheets :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-options>button:is(.is-selected,[aria-pressed='true']) { background:#252830;color:#f2efe9; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-options>button:disabled { opacity:.45; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-option-desktop { display:none; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-option-mobile { display:flex;flex-direction:column;gap:3px; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-option-mobile small { color:#b8b4ac;font:400 12px/1.4 var(--sp-font-ui); }
 body.sp-explore-sheets .cmp-final-presentation-sheet .mantine-Menu-itemSection { margin:0;flex:none; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .mantine-Menu-itemSection[data-position='right'] { margin-left:auto; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .mantine-Menu-itemSection[data-position='left'] { width:18px;min-width:18px; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-options>button { margin:0; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-option-leading { display:flex; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-option-leading>:not(.cmp-presentation-icon) { display:none; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-icon { display:flex;width:18px;height:18px;flex:none; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-icon svg { display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-icon[data-icon='check'] { margin-left:auto;color:var(--sp-accent);visibility:hidden; }
 body.sp-explore-sheets .cmp-final-presentation-sheet button:is(.is-selected,[aria-pressed='true']) .cmp-presentation-icon[data-icon='check'] { visibility:visible; }
 body.sp-explore-sheets .cmp-presentation-format.cmp-final-presentation-sheet .cmp-presentation-options>button { min-height:64px!important;gap:14px!important; }
 body.sp-explore-sheets .cmp-presentation-format.cmp-final-presentation-sheet .mantine-Menu-itemSection[data-position='left'] { width:26px;min-width:26px; }
 body.sp-explore-sheets .cmp-presentation-format.cmp-final-presentation-sheet .cmp-option-leading .cmp-presentation-icon { width:26px;height:26px;color:#bec5d2; }
 body.sp-explore-sheets .cmp-presentation-format.cmp-final-presentation-sheet .cmp-option-mobile small { font-variant-numeric:tabular-nums;color:#b9c1d0; }
 body.sp-explore-sheets .cmp-presentation-format.cmp-final-presentation-sheet button[id*='"value":"vertical"'] { order:-1; }
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-calculation-description { display:block;flex:none;margin:0 0 12px;color:#b8b4ac;font:400 13px/1.4 var(--sp-font-ui); }
 body.sp-explore-sheets .cmp-final-presentation-sheet button:focus-visible { outline:2px solid #ffb28c;outline-offset:-2px; }
}
@media (prefers-reduced-motion:reduce) {
 body.sp-explore-sheets .cmp-final-presentation-sheet::before,
 body.sp-explore-sheets .cmp-final-presentation-sheet .cmp-presentation-surface { animation:none; }
}
/* Create post (design mode, phone): the Type / Total / Format sheets as drawn in D2Type, D2Total, D2Format
   (tokens: docs/design_system.md). Browse keeps the rules above untouched. */
@media (max-width: 599px), (max-width: 767px) and (max-aspect-ratio: 10/13) {
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet {
  --sheet-bg:#14161c;--sheet-row:#22242b;--sheet-muted:#b8b4ac;
 }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-surface { background:var(--sheet-bg);border-top:1px solid #2a2c33;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-surface::before { width:40px;height:4px;border-radius:2px;background:#3a3c44;margin:8px auto 0; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-head { height:56px;min-height:56px;padding:6px 8px 4px 20px; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-head h2 { font:700 20px/1.3 var(--sp-font-display);letter-spacing:normal; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-close { position:relative;font-size:0;color:var(--sheet-muted); }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-close::before {
  content:'';position:absolute;left:11px;top:11px;width:22px;height:22px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat;
 }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-options { padding:0 8px; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-options>button { min-height:54px!important;padding:0 12px;border:0;border-radius:12px;gap:14px!important;font:500 15px/1.3 var(--sp-font-ui); }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-options>button:is(.is-selected,[aria-pressed='true']) { background:var(--sheet-row); }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-icon { width:22px;height:22px; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-presentation-icon[data-icon='check'] { color:#f2efe9; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-option-mobile { gap:0; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-option-mobile small { margin-top:1px;color:var(--sheet-muted);font:400 12.5px/1.3 var(--sp-font-ui); }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .cmp-calculation-description { display:none; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet .mantine-Menu-itemSection[data-position='left'] { width:22px;min-width:22px; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-final-presentation-sheet.cmp-total-options .cmp-presentation-options>button { min-height:60px!important; }
 /* Format: two rows, name + size on the left, the ratio before the check */
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-presentation-format.cmp-final-presentation-sheet .cmp-presentation-options>button { min-height:60px!important; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-presentation-format.cmp-final-presentation-sheet .mantine-Menu-itemSection[data-position='right'] { display:flex;align-items:center;gap:6px; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-presentation-format.cmp-final-presentation-sheet .cmp-option-ratio { font:700 12px/1.3 var(--sp-font-mono);color:var(--sheet-muted); }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-presentation-format.cmp-final-presentation-sheet .cmp-option-leading .cmp-presentation-icon { width:24px;height:24px;color:#f2efe9; }
 body.sp-explore-sheets:where([data-sp-has~="editor-design"]):not(#sp-s):not(.sp-s) :is(.cmp-presentation-menu,#compare-shell.sp-data-shell .cmp-total-options).cmp-presentation-format.cmp-final-presentation-sheet .mantine-Menu-itemSection[data-position='left'] { width:24px;min-width:24px; }
}
