/* ═══════════════════════════════════════════════════════════════════════
   CIRCLE THRICE · R6-06 · THE ONE-PAGE SPAN SURFACE  (D-089 · CT-SPN01–06)
   New structure only. Locked components are IMPORTED and re-sited, never
   restyled here: the always-today header comes from ct-canon.css (CT.header),
   the Orrery from r5-orrery.css, the cards from r5-library.css, the date grid
   from r5-picker13.css. Everything below is the new shell, the new span bar,
   the new picker chrome and the new sidebar.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── the surface ─────────────────────────────────────────────────────── */
/* the desk is ALWAYS 1200×720 — the canonical desk width — but the document
   column is 1020, so the surface breaks out of the column and scales down to
   fit whatever room the window gives it. Never cropped, never re-laid-out:
   what you see is the real 1200px composition. Measurements divide the
   scale back out (see measureOnce), so px figures stay true. */
.deskwrap{position:relative;left:50%;transform:translateX(-50%);width:min(1248px,100vw - 40px);margin-top:18px;height:calc(720px * var(--dz,1))}
.desk{position:absolute;top:0;left:50%;width:1200px;height:720px;transform:translateX(-50%) scale(var(--dz,1));transform-origin:top center}
.desk6{position:absolute;inset:0;display:flex;background:var(--white);border:1px solid var(--vpale);border-radius:8px;box-shadow:0 1px 2px rgba(43,50,64,.04),0 22px 64px rgba(30,40,60,.13);overflow:hidden}
.desk6 .scr-main{flex:1;min-width:0;display:flex;flex-direction:column;position:relative}
@media(max-width:1100px){.deskwrap{width:calc(100vw - 32px)}}

/* ── CT-SPN01 · the rail — CT-NAV01 VERBATIM ──────────────────────────
   The canon rail from R4-21 is inherited whole: 68px wide, 58px brand cell,
   .ni metrics untouched, spacer, hairline, Account cell at the foot. The ONLY
   change this brief makes is the fourth destination (Orrery) inside the same
   item list. Nothing is re-metricked: the canon items measure 45px and so fail
   the 48px rule, which is recorded as a deviation for Ivy rather than silently
   corrected on a locked component. The Account cell additionally opens the
   member menu (REQ-rechsx7L3fTmuGv45) — an addition to its behaviour, not to
   its drawing.
   Rail items are BUTTONS here (canon draws them as divs), so the browser's
   default button chrome has to be cleared or it boxes every destination. */
/* clear ONLY real button chrome — never the canon border or fill, which carry
   the active destination's tint and its 2px blue left bar */
.desk6 .rail .ni,.desk6 .rail-brand{appearance:none;-webkit-appearance:none;box-shadow:none;font:inherit;color:inherit;text-align:center;border:none;background:none}
/* …then re-assert canon on top of the reset, at higher specificity than it */
.desk6 .rail .ni.ni{border-left:2px solid transparent;background:none}
.desk6 .rail .ni.on.on{background:rgba(63,109,150,.07);border-left-color:var(--blue)}
/* the reset must NOT eat the canon hairline under the brand cell — it is the
   left end of the one line that runs the whole width of the top row */
.desk6 .rail-brand{border-bottom:1px solid var(--vpale)}
.desk6 .rail .ni:focus-visible,.rail-brand:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
.rail-brand{cursor:pointer}
/* Ivy, 2026-08-04: the top row reads as ONE band with the rail — the always-today
   header takes the rail's paper fill instead of white, and its hairline meets the
   brand cell's, so a single unbroken line closes the row across the full width.
   Scoped to this page; ct-canon.css is untouched. */
.desk6 .strip{background:var(--paper)}
.rail-acct{position:relative}
.rail-acct .ni.acct{width:100%}
.desk6 .rail .ni.acct:hover,.desk6 .rail .ni.acct[aria-expanded="true"]{background:rgba(63,109,150,.07)}
.memenu{position:absolute;left:64px;bottom:0;z-index:70;width:214px;background:var(--white);border:1px solid var(--vpale);border-radius:6px;box-shadow:0 14px 44px rgba(30,35,48,.18);padding:6px;display:none}
.memenu.open{display:block}
.memenu .mm-who{padding:9px 12px 10px;border-bottom:1px solid var(--vpale);margin-bottom:5px}
.memenu .mm-nm{font-family:var(--sc);font-size:12px;font-weight:600;color:var(--ink)}
.memenu .mm-tier{font-family:var(--sc);text-transform:uppercase;letter-spacing:.12em;font-size:9px;font-weight:600;color:var(--icon);margin-top:3px}
.mm-i{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;padding:0 12px;border:none;background:none;border-radius:4px;cursor:pointer;font-family:var(--body);font-size:13.5px;color:var(--muted);text-align:left}
.mm-i:hover{background:rgba(63,109,150,.06);color:var(--blue)}
.mm-i.out{color:var(--ink);border-top:1px solid var(--vpale);border-radius:0 0 4px 4px;margin-top:4px}
.mm-i.out:hover{color:var(--vb)}
.mm-i svg{width:15px;height:15px;flex-shrink:0}

/* ── CT-SPN02 / CT-SPN04 · the span bar — CT-TSB01 CANON ──────────────
   The R4-21 timespan bar is inherited whole from ct-canon.css: .tsrow, .rowA,
   .top, .kind, .count, .tsnav, .navb, .ts-static, .range, .icon-btn are all
   canon and are NOT restyled here. This file adds only what the brief asks
   for: the whole bar reads as one target, layout A reverses the stack and
   enlarges the date, Today sits at the trailing edge, and a custom range
   drops the meta group. */
.sbar{position:relative;cursor:pointer;transition:background .15s,box-shadow .15s}
.sbar:hover{background:rgba(63,109,150,.045)}
.sbar.on{background:rgba(63,109,150,.07);box-shadow:inset 0 -2px 0 var(--l-blue)}
.sbar:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
/* the canon pencil is the visible "you can change this" cue; it lifts with the
   bar rather than being its own target, because the whole bar is the target */
.sbar .icon-btn{pointer-events:none}
.sbar:hover .icon-btn,.sbar:focus-visible .icon-btn,.sbar.on .icon-btn{background:rgba(63,109,150,.12)}
/* REQ-R6-09 · A (Ivy) — the metadata tucks BENEATH a larger date.
   B is canon order and canon size, untouched. */
.sbar[data-lay="a"] .rowA{flex-direction:column-reverse;gap:2px}
.sbar[data-lay="a"] .range{font-size:23px;letter-spacing:-.021em}
.sbar[data-lay="a"] .top{padding-bottom:2px}
/* Ivy, 2026-08-04: re-metric to 48px WITHOUT changing the drawing. The canon
   .navb is left exactly as R4-21 draws it — same type, same padding, same
   hover pill — and an invisible overlay extends its POINTER target to a full
   48px band, wider than the button on both sides (stopping 6px short of the
   12px canon gap, so no two targets ever overlap). Nothing moves, nothing
   resizes; only the catchable area grows. */
.sbar .navb{position:relative}
.sbar .navb::after{content:"";position:absolute;left:-6px;right:-6px;top:50%;transform:translateY(-50%);height:48px}
.navb.ghost{visibility:hidden}
.sb-side{position:absolute;right:20px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:12px}
.navb-today{display:none;align-items:center;gap:6px;color:var(--blue)}
.navb-today.show{display:inline-flex}
.navb-today:hover{background:rgba(63,109,150,.1)}
.sb-yrnote{font-family:var(--sc);text-transform:uppercase;letter-spacing:.1em;font-size:8.5px;font-weight:500;color:var(--icon)}

/* ── CT-SPN03 · the picker's exit chrome (Picker 13 itself is untouched) ──
   Ivy/Jamie, 2026-08-04: apply the same invisible widening to Picker 13's
   targets — canon drawing untouched, pointer band raised to 48px. It works for
   the unit pills, which stand 5px apart, so the band stops 2px short of a
   neighbour and can never steal its press. It CANNOT work for the day cells:
   they are 21px on a 2px gap in a 365-cell year grid, so a 48px band would
   overlap thirteen pixels into every neighbour and land presses on the wrong
   day. That one stays a declared deviation. */
.g13pop .dur{position:relative}
.g13pop .dur::after{content:"";position:absolute;left:-2px;right:-2px;top:50%;transform:translateY(-50%);height:48px}
.pk-scrim{position:absolute;inset:0;z-index:55;background:rgba(43,50,64,.14);display:none}
.pk-scrim.open{display:block}
.desk .g13-portal,.desk6 .g13-portal{position:absolute;z-index:60}
/* the overlay is bounded by the surface it sits in: header and footer pinned,
   Picker 13's own grid scrolling between them, so Done is always reachable */
.desk .g13-portal .g13pop,.desk6 .g13-portal .g13pop{display:flex;flex-direction:column;max-height:var(--pk-max,600px);overflow:hidden}
.pk-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.pk-exit,.pk-foot{flex:0 0 auto}
.pk-exit{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 20px;border-bottom:1px solid var(--vpale);background:var(--paper)}
.pk-t{font-family:var(--sc);text-transform:uppercase;letter-spacing:.15em;font-size:10px;font-weight:600;color:var(--muted)}
.pk-sub{font-family:var(--body);font-size:12px;color:var(--icon);flex:1}
.pk-x{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:600;color:var(--muted);background:var(--white);border:1px solid var(--vpale);border-radius:24px;cursor:pointer}
.pk-x:hover{color:var(--blue);border-color:var(--l-blue);box-shadow:0 2px 8px rgba(56,65,79,.07)}
.pk-x svg{width:12px;height:12px}
.pk-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px 14px;border-top:1px solid var(--vpale);background:var(--paper)}
.pk-note{font-family:var(--body);font-size:11.5px;line-height:1.45;color:var(--icon);max-width:44ch}
.pk-done{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:600;color:#fff;background:var(--blue);border:1px solid var(--blue);border-radius:24px;cursor:pointer}
.pk-done:hover{background:var(--blue-press);border-color:var(--blue-press)}

/* ── the page body: reading column + the two-tab sidebar ─────────────── */
.body6{flex:1;min-height:0;display:flex;position:relative}
.read{flex:1;min-width:0;overflow:auto;padding:26px 0 44px}
.read-col{max-width:640px;margin:0 auto;padding:0 30px}
.rd-eye{font-family:var(--sc);text-transform:uppercase;letter-spacing:.17em;font-size:9.5px;font-weight:600;color:var(--icon)}
.rd-h1{font-family:var(--disp);font-size:31px;font-weight:600;letter-spacing:-.022em;color:var(--ink);margin-top:8px}
.rd-read{font-size:16px;line-height:1.6;color:var(--muted);margin-top:10px;text-wrap:pretty}
.rd-read b{color:var(--ink);font-weight:600}
.rd-tools{display:flex;align-items:center;gap:8px;margin-top:18px}
.rd-tool{display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:0 15px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:600;color:var(--muted);background:var(--white);border:1px solid var(--vpale);border-radius:24px;cursor:pointer}
.rd-tool:hover{color:var(--blue);border-color:var(--l-blue)}
.rd-tool.pri{color:var(--blue);border-color:var(--l-blue);background:rgba(63,109,150,.06)}
.zone{margin-top:26px;padding-top:20px;border-top:1px solid var(--vpale)}
.z-top{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.z-lbl{font-family:var(--sc);text-transform:uppercase;letter-spacing:.16em;font-size:10px;font-weight:600;color:var(--muted)}
.z-src{font-family:var(--sc);letter-spacing:.04em;font-size:9.5px;font-weight:600;color:var(--l-blue)}
.z-src.held{color:#a8752a}
.z-rows{margin-top:12px;display:flex;flex-direction:column}
.z-row{display:grid;grid-template-columns:104px 1fr;gap:16px;padding:9px 0;border-bottom:1px solid rgba(221,228,236,.7)}
.z-row:last-child{border-bottom:none}
.z-when{font-family:var(--sc);font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--icon);padding-top:2px}
.z-what{font-size:14px;line-height:1.55;color:var(--muted);text-wrap:pretty}
.z-what b{color:var(--ink);font-weight:600}
.z-more{display:inline-flex;align-items:center;gap:7px;min-height:48px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:600;color:var(--blue);background:none;border:none;cursor:pointer;padding:0}
.z-more:hover{color:var(--blue-press)}

/* ── CT-SPN01 · the two-tab sidebar · CT-SPN06 · its handle ──────────── */
.side{position:relative;flex-shrink:0;width:392px;border-left:1px solid var(--vpale);background:var(--tray-bg);display:flex;flex-direction:column;min-width:0}
.side[data-open="false"]{width:56px}
.side[data-full="true"]{position:absolute;inset:0;width:auto;z-index:44;background:var(--white);border-left:none}
.side:not(.dragging){transition:width .2s ease}
.grip{position:absolute;left:-4px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:6}
.grip::after{content:"";position:absolute;left:3px;top:50%;transform:translateY(-50%);width:3px;height:52px;border-radius:2px;background:var(--vpale);transition:background .14s}
.grip:hover::after,.side.dragging .grip::after{background:var(--blue)}
.side[data-open="false"] .grip,.side[data-full="true"] .grip{display:none}

/* closed = a labelled door, not a hairline (REQ-R6-30) */
.side-strip{display:none;flex:1;flex-direction:column;align-items:center;gap:14px;padding:10px 0 16px;background:linear-gradient(90deg,rgba(63,109,150,.07),rgba(63,109,150,.03));cursor:pointer;border:none;width:100%}
.side[data-open="false"] .side-strip{display:flex}
.side[data-open="false"] .side-open{display:none}
.strip-hand{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--blue);background:var(--white);border:1px solid var(--l-blue);box-shadow:0 2px 8px rgba(56,65,79,.09);flex-shrink:0}
.side-strip:hover .strip-hand{background:var(--blue);border-color:var(--blue);color:#fff}
.strip-lbl{writing-mode:vertical-rl;font-family:var(--sc);text-transform:uppercase;letter-spacing:.22em;font-size:10px;font-weight:600;color:var(--blue)}
.strip-badge{font-family:var(--sc);font-size:10px;font-weight:600;color:#fff;background:var(--blue);border-radius:20px;padding:2px 7px;letter-spacing:.03em;flex-shrink:0}

.side-open{flex:1;min-height:0;display:flex;flex-direction:column}
.side-top{display:flex;align-items:stretch;gap:2px;padding:0 6px;border-bottom:1px solid var(--vpale);background:var(--white)}
.stab{display:inline-flex;align-items:center;gap:7px;min-height:52px;padding:0 13px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:600;color:var(--icon);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.stab:hover{color:var(--muted)}
.stab.on{color:var(--blue);border-bottom-color:var(--blue)}
.stab .n{font-family:var(--sc);font-size:9.5px;font-weight:600;color:var(--muted);background:var(--paper);border-radius:20px;padding:1.5px 6px}
.stab.on .n{color:#fff;background:var(--blue)}
.side-acts{margin-left:auto;display:flex;align-items:center;gap:2px}
.sact{width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:var(--icon);background:none;border:none;cursor:pointer;border-radius:4px}
.sact:hover{color:var(--blue);background:rgba(63,109,150,.06)}
.side-scope{display:flex;align-items:center;gap:8px;padding:9px 16px;border-bottom:1px solid var(--vpale);background:var(--paper)}
.side-scope .sc-k{font-family:var(--sc);text-transform:uppercase;letter-spacing:.13em;font-size:9px;font-weight:600;color:var(--icon)}
.side-scope .sc-v{font-family:var(--sc);font-size:10.5px;font-weight:600;color:var(--blue)}
.side-body{flex:1;min-height:0;overflow:auto;padding:16px}
.side-body .orr-side{margin-top:14px}
.sb-hold{margin-top:14px;padding:13px 15px;border:1px dashed var(--vpale);border-radius:4px;background:var(--white)}
.sb-hold .h-k{font-family:var(--sc);text-transform:uppercase;letter-spacing:.14em;font-size:9px;font-weight:600;color:#a8752a}
.sb-hold p{font-size:12.5px;line-height:1.5;color:var(--muted);margin-top:6px;text-wrap:pretty}
.sky-wheel{display:flex;justify-content:center}
.side-note{font-size:11.5px;line-height:1.5;color:var(--icon);margin-top:12px;text-wrap:pretty}
.ah-grp{margin-bottom:6px}
.ah-k{display:flex;align-items:center;gap:9px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.14em;font-size:9px;font-weight:600;color:var(--icon);margin:14px 0 9px}
.ah-k::after{content:"";flex:1;height:1px;background:var(--vpale)}
.ah-over{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:0 15px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:600;color:var(--blue);background:var(--white);border:1px solid var(--vpale);border-radius:24px;cursor:pointer;margin-top:10px}
.ah-over:hover{border-color:var(--l-blue);box-shadow:0 2px 8px rgba(56,65,79,.07)}

/* ── the other three destinations (re-sited, not redesigned) ─────────── */
.dpage{flex:1;min-height:0;display:flex;flex-direction:column}
.pg-top{display:flex;align-items:center;gap:12px;padding:0 18px;min-height:60px;border-bottom:1px solid var(--vpale);background:var(--white)}
.pg-back{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 15px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:600;color:var(--muted);background:var(--white);border:1px solid var(--vpale);border-radius:24px;cursor:pointer}
.pg-back:hover{color:var(--blue);border-color:var(--l-blue)}
.pg-t{font-family:var(--disp);font-size:19px;font-weight:600;letter-spacing:-.015em;color:var(--ink)}
.pg-sub{font-family:var(--body);font-size:13px;color:var(--icon);margin-left:auto}
.pg-body{flex:1;min-height:0;overflow:auto;padding:22px 26px 40px}
/* NO media query may reach inside .desk — it is a fixed 1200×720 canvas that
   only ever scales, so the window must never re-lay-out anything within it */
.pg-body .lib-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.sess-list{display:flex;flex-direction:column;gap:10px;max-width:720px}
.sess{display:grid;grid-template-columns:96px 1fr auto;gap:16px;align-items:center;width:100%;min-height:56px;padding:12px 16px;background:var(--white);border:1px solid var(--vpale);border-radius:4px;cursor:pointer;text-align:left}
.sess:hover{border-color:var(--l-blue);box-shadow:0 2px 10px rgba(56,65,79,.07)}
.sess-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.sess-when{font-family:var(--sc);text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:600;color:var(--blue)}
.sess-nm{font-size:14.5px;font-weight:600;color:var(--ink)}
.sess-d{font-size:12.5px;color:var(--muted);margin-top:3px}
.sess-go{font-family:var(--sc);text-transform:uppercase;letter-spacing:.11em;font-size:9.5px;font-weight:600;color:var(--icon)}
.pg-h2{font-family:var(--sc);text-transform:uppercase;letter-spacing:.15em;font-size:10px;font-weight:600;color:var(--muted);margin:22px 0 10px;display:flex;align-items:center;gap:10px}
.pg-h2::after{content:"";flex:1;height:1px;background:var(--vpale)}
.pg-h2:first-child{margin-top:0}

/* ── the toast (same voice as the R5 portal) ─────────────────────────── */
.tst{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:90;max-width:560px;padding:12px 18px;background:var(--banner);color:rgba(247,249,252,.94);border-radius:4px;box-shadow:0 12px 34px rgba(30,35,48,.24);font-size:13px;line-height:1.5}
.tst b{color:#fff;font-weight:600}

/* ── the page's own controls (outside the mock) ──────────────────────── */
.ctl{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}
.ctl-k{font-family:var(--sc);text-transform:uppercase;letter-spacing:.16em;font-size:9.5px;font-weight:600;color:var(--icon)}
.seg{display:inline-flex;background:var(--white);border:1px solid var(--vpale);border-radius:24px;padding:3px}
.seg button{min-height:42px;padding:0 15px;font-family:var(--sc);text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:600;color:var(--muted);background:none;border:none;border-radius:22px;cursor:pointer}
.seg button:hover{color:var(--blue)}
.seg button.on{color:#fff;background:var(--blue)}
.meas td.v{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:nowrap}
