/* Body Map, easier version: a layer over the original styles. Layout: short header, body on the left with its
   own controls, a three-tab panel on the right, links to the other tools at the bottom. Nothing in the map itself changes. */
.sbm { --tap: 44px; }
.sbm .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sbm .wrap { padding-block: 20px 40px; gap: 18px; }
.sbm .top { gap: 6px; }
.sbm h1 { font-size: clamp(30px, 5vw, 46px); }
.sbm .lede { font-size: 17px; max-width: 52ch; }

/* Stage: scene picker sits beside Reset view as four swatches */
.sbm .hud-actions { align-items: center; gap: 8px; }
.sbm .looks.mini { margin: 0; padding: 3px; gap: 2px; display: inline-flex; width: auto; flex-wrap: nowrap; }
.sbm .looks.mini button { padding: 6px; }
.sbm .looks.mini button::before { width: 18px; height: 18px; }
.sbm .icon-btn { padding: 8px 14px; }
.sbm .stage-hint {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); pointer-events: none;
  background: var(--tipbg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; color: var(--ink); white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity .4s;
}
.sbm .stage-hint.gone { opacity: 0; }
.sbm .legend { font-size: 13.5px; }

/* Tabs and panel: larger, clearer targets */
.sbm .tab { min-height: 60px; font-size: 16px; }
.sbm .tab small { font-size: 13px; }
.sbm .tab[aria-selected="true"] { background: var(--chipbg); }
.sbm .tab:first-child { border-top-left-radius: 18px; }
.sbm .tab:last-child { border-top-right-radius: 18px; }
.sbm .region-pick { max-width: none; }
.sbm .region-pick > span { font-size: 14px; color: var(--ink); font-weight: 600; }
.sbm .region-pick, .sbm .region-pick select.search { width: 100%; }
.sbm .region-pick select.search { font-size: 16px; padding: 12px; min-height: var(--tap); }
.sbm .search { font-size: 16px; min-height: var(--tap); }
.sbm textarea.search { min-height: 72px; }
.sbm .chip { padding: 8px 14px; font-size: 14px; }
.sbm .chip.small { padding: 6px 11px; font-size: 13.5px; }
.sbm .tag { font-size: 12px; padding: 3px 8px; }
.sbm details.ing summary { padding: 14px; min-height: 60px; }
.sbm .ing-name { font-size: 16px; }
.sbm .chev { font-size: 20px; }
.sbm .pick-btn { padding: 10px 12px; }
.sbm .check { padding: 9px 8px; font-size: 15px; }
.sbm .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.sbm .btn { padding: 12px 20px; font-size: 15px; min-height: var(--tap); }
.sbm .privacy, .sbm .fld { font-size: 13.5px; }

/* Key to the cards */
.sbm details.ez-key { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.sbm details.ez-key > summary, .sbm details.ez-step > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: var(--tap); font-weight: 600;
}
.sbm details.ez-key > summary::-webkit-details-marker, .sbm details.ez-step > summary::-webkit-details-marker { display: none; }
.sbm details.ez-key > summary::after, .sbm details.ez-step > summary::after { content: "›"; margin-left: auto; color: var(--mist); font-size: 20px; transition: transform .2s; }
.sbm details.ez-key[open] > summary::after, .sbm details.ez-step[open] > summary::after { transform: rotate(90deg); }
.sbm .ez-key dl { margin: 0; padding: 0 14px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: start; font-size: 14.5px; }
.sbm .ez-key dt { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 24px; max-width: 150px; }
.sbm .ez-key dd { margin: 0; color: var(--mist); }
.sbm .ez-more { justify-self: stretch; text-align: center; border: 1px dashed var(--line); background: transparent; border-radius: var(--r); padding: 12px; cursor: pointer; min-height: var(--tap); font-weight: 600; }
.sbm .ez-more:hover { border-color: var(--glow); }
.sbm .ez-none { color: var(--mist); padding: 4px 2px; }

/* My Routine: one step at a time */
.sbm details.ez-step { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); min-width: 0; }
.sbm details.ez-step[open] { border-color: var(--glow); }
.sbm .ez-step .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--chipbg); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 13px; }
.sbm .ez-step .st { display: grid; min-width: 0; }
.sbm .ez-step .st small { font-weight: 400; color: var(--mist); font-size: 13px; }
.sbm .ez-step .count { flex: none; font-family: var(--f-mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--sun); color: #2a1a00; font-weight: 500; }
.sbm .ez-step .body { padding: 2px 14px 14px; display: grid; gap: 10px; min-width: 0; }
.sbm .ez-run { display: grid; gap: 8px; }
.sbm .ez-run .btn { justify-self: stretch; text-align: center; font-size: 16px; }
.sbm .ez-intro { color: var(--mist); }

/* Other tools */
.sbm .ez-tools { display: grid; gap: 12px; }
.sbm .ez-tools h2 { font-size: 20px; }
.sbm .ez-tools ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .sbm .ez-tools ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .sbm .ez-tools ul { grid-template-columns: minmax(0, 1fr); } }
.sbm .ez-tools a { display: grid; gap: 3px; height: 100%; padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sbm .ez-tools a:hover { border-color: var(--glow); }
.sbm .ez-tools b { font-family: var(--f-display); font-size: 16px; }
.sbm .ez-tools span { color: var(--mist); font-size: 14px; }
.sbm .fine { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .sbm .stage-hint, .sbm details > summary::after { transition: none; } }
