/* ═══════════════════════════════════════════════════════════════════
   CIRCLE THRICE · R6-20 · UNITED PORTAL — integration glue only
   D-104 · CT-UNI01. Styles the REQ-R6-01 two-tab sidebar (At Hand ·
   Orrery) that replaces the CT-ORR11 relevance rail, and the small
   amount of positioning the SCAN6 / ORR6 / AH6 layers need to sit
   inside the locked D-042 portal. Every colour is a canon token — no
   new hexes. Nothing here overrides a locked component's own rules;
   it hides the old rail (kept in the DOM, unedited) and mounts beside
   the reading column in the space the rail vacated.
   ═══════════════════════════════════════════════════════════════════ */

/* REQ-R6-01 · the old top tabs (Overview / Orrery) are removed — one page
   plus a two-tab sidebar. The tabs stay in the DOM (CT5.tabs is unedited);
   they are hidden here so no locked fingerprint moves. */
.ctp-screen .chrome-tabs.u6-hidden{display:none!important}

/* the locked relevance rail is left in place and hidden — the sidebar takes
   the width it vacates in the same flex row */
.ctp-screen .ov-split>.rl{display:none!important}

/* ── the two-tab sidebar ─────────────────────────────────────────── */
.u6-side{flex-shrink:0;width:406px;min-width:0;border-left:1px solid var(--vpale);background:var(--tray-bg,var(--white));display:flex;flex-direction:column;min-height:0;position:relative}
.u6-side[data-full="true"]{position:absolute;inset:0;width:auto;z-index:44;background:var(--tray-bg,var(--white));border-left:none}
.u6-grip{position:absolute;left:-4px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:6}
.u6-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}
.u6-grip:hover::after,.u6-side.dragging .u6-grip::after{background:var(--blue)}
.u6-side[data-open="false"] .u6-grip,.u6-side[data-full="true"] .u6-grip{display:none}
.u6-acts{margin-left:auto;display:flex;align-items:center;gap:2px}
.u6-act{width:48px;height:48px;display:flex;align-items:center;justify-content:center;color:var(--icon);background:none;border:none;cursor:pointer;border-radius:4px}
.u6-act:hover{color:var(--blue);background:rgba(63,109,150,.06)}
.u6-side[data-open="false"]{width:56px}
.u6-side:not(.dragging){transition:width .18s ease}
.u6-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}
.u6-side[data-open="false"] .u6-strip{display:flex}
.u6-side[data-open="false"] .u6-open{display:none}
.u6-strip-ic{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(1,78,103,.08);flex-shrink:0}
.u6-strip:hover .u6-strip-ic{background:var(--blue);border-color:var(--blue);color:#fff}
.u6-strip-badge{font-family:var(--sc);font-size:10px;font-weight:600;color:#fff;background:var(--blue);border-radius:20px;padding:2px 7px;flex-shrink:0}
.u6-strip-lbl{writing-mode:vertical-rl;font-family:var(--sc);font-size:10px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--blue)}
.u6-open{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}
.u6-tabs{display:flex;align-items:stretch;flex-shrink:0;padding:0 6px;border-bottom:1px solid var(--vpale);background:var(--white)}
.u6-close{flex-shrink:0}
.u6-close:hover{color:var(--blue)}
.u6-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-height:52px;padding:0 13px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;font-family:var(--sc);font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--icon)}ar(--muted);padding:0 0;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.u6-tab:hover{color:var(--blue)}
.u6-tab.on{color:var(--blue);border-bottom-color:var(--blue)}
.u6-tab .u6-tn{font-family:var(--sc);font-size:9px;font-weight:700;color:var(--white);background:var(--blue);border-radius:20px;padding:1px 7px;line-height:1.35}
.u6-tab:not(.on) .u6-tn{color:var(--blue);background:rgba(63,109,150,.1)}

.u6-panel{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:none}
.u6-panel::-webkit-scrollbar{width:6px}
.u6-panel::-webkit-scrollbar-thumb{background:var(--vpale);border-radius:3px}
.u6-side[data-tab="athand"] .u6-athand{display:block}
.u6-side[data-tab="sky"] .u6-sky{display:flex;flex-direction:column}

/* REQ-R6-28 on the span overviews: the locked Compact | Expand segment stays in
   the DOM with its listener intact — every press is forwarded to it — and the
   one text CTA takes its place, top right, in the CT-LIB05 manner. The .xall
   ink and metrics come from DEN6's own injected sheet. */
.ov-master.xall-row{display:flex;align-items:center;justify-content:flex-end;padding-right:0!important}
/* the locked Compact | Expand segment goes on EVERY timespan — it stays in the
   DOM with its listener intact (every press is forwarded to it) and is never
   shown. One control governs density, and it is the text CTA. */
.ov-master .ov-seg,.ov-master .dn-seg,.dn-masterrow .dn-master,.dn-masterrow .dn-masterlbl{display:none!important}
/* the CTA holds the right edge of the reading column, not a measured caret inset */
.ov-master.xall-row .xall,.dn-masterrow.xall-row .xall{margin-right:0!important;padding-right:0!important;transform:none!important}
.dn-masterrow.xall-row{justify-content:flex-end!important;padding-right:0!important}

/* At Hand rides its own component (CT-AHD01) and keeps R6-12's treatment — the
   tray paper, the Scoped-to line, the tinted cycle region, the group rhythm.
   The sidebar owns the tabs, so only the tray's own tab row is suppressed; its
   fixed 392px width and 640px cap give way to the resizable column. */
.u6-side[data-tab="athand"] .u6-athand{display:flex;overflow:hidden;min-width:0}
/* the tray column is resizable, so every rung from the card frame down has to be
   allowed to shrink: a flex item's default min-width:auto floors it at its own
   content, which held the tray at 496px inside a 406px sidebar and clipped the
   cards on the right */
.u6-athand .ah{width:auto;flex:1;min-height:0;min-width:0;max-height:none;border:none;background:var(--tray-bg)}
.u6-athand .ah-tabs{display:none}
.u6-athand .ah-body{padding-bottom:26px;min-width:0;overflow-x:hidden}
.u6-athand .ah-grp,.u6-athand .libc,.u6-athand .stl,.u6-athand .libc .oc,.u6-athand .stl-row{min-width:0}
/* THE ANCHOR GUTTER IS THE ROW'S STRUCTURE, not a first item that can wrap away
   (Jamie, 2026-08-09). Making the shrink work by giving .stl-main and .stl-end
   flex-basis:100% put each of them on its own full-width line BELOW the 44px
   icon, so the tray read as one undifferentiated column and lost the icon-left /
   content-right shape the R6-19 rail has. A two-column grid keeps that shape at
   any tray width: the gutter is fixed, the content column is minmax(0,1fr) so it
   still shrinks to nothing, and the tag run sits under the content rather than
   under the icon. The CTA stays absolutely positioned in the top-right corner,
   which is what .ah .stl-row's padding-right reserves. */
.u6-athand .stl-row{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;column-gap:12px;row-gap:9px}
.u6-athand .stl-a{grid-column:1;grid-row:1;align-self:start;margin-top:1px}
.u6-athand .stl-main,.u6-athand .stl-end{grid-column:2;flex-basis:auto;max-width:100%;min-width:0}
.u6-athand .stl-sum{flex-basis:100%}
.u6-athand .libc .oc-nm,.u6-athand .stl-nm{overflow-wrap:anywhere}
.u6-athand .stl,.u6-athand .libc{cursor:pointer}

/* ── the Orrery tab · ORR6 wheel at sidebar scale ────────────────── */
.u6-orr-scope{display:flex;align-items:baseline;gap:8px;padding:11px 16px;border-bottom:1px solid var(--vpale);flex-shrink:0}
.u6-orr-scope .k{font-family:var(--sc);text-transform:uppercase;letter-spacing:.13em;font-size:9px;font-weight:600;color:var(--icon)}
.u6-orr-scope .v{font-size:12.5px;font-weight:600;color:var(--ink)}
.u6-orr-key{flex-shrink:0;border-bottom:1px solid var(--vpale);padding:0 16px}
.u6-orr-key summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;cursor:pointer;font-family:var(--sc);font-size:10.5px;font-weight:600;color:var(--ink);list-style:none}
.u6-orr-key summary::-webkit-details-marker{display:none}
.u6-orr-key summary .k{font-family:var(--sc);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue)}
.u6-orr-key p{margin:0 0 12px;font-size:11.5px;line-height:1.5;color:var(--muted)}
.u6-orr-zc{display:inline-flex;flex-shrink:0;align-self:center;margin:0 16px 12px;border:1px solid var(--vpale);border-radius:20px;overflow:hidden;background:var(--white);position:relative;z-index:2}

/* ── the rail's Orrery destination · the wheel in the main reading column ── */
.u6-orrfull{display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 16px 40px}
/* the wheel wants the full split width, not the reading column's 860px cap
   meant for prose \u2014 alignment looked off because the wheel sat inside
   that narrower, off-center box instead of the true available width. */
.dp-col:has(.u6-orrfull){max-width:none;width:100%}
.u6-orrfull-zc{display:inline-flex;flex-shrink:0;border:1px solid var(--vpale);border-radius:20px;overflow:hidden;background:var(--white);position:relative;z-index:2}
.u6-orrfull-zc button{background:none;border:none;cursor:pointer;font-family:var(--sc);font-size:13px;color:var(--muted);padding:0 14px;min-height:38px;line-height:1}
.u6-orrfull-zc button:hover{color:var(--blue);background:var(--paper)}
.u6-orrfull-zc .lvl{min-width:52px;font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--blue)}
.u6-orrfull-stage{flex:none;width:100%;max-width:560px;height:500px;margin:0 auto;display:flex;align-items:center;justify-content:center;padding:8px;cursor:grab;overflow:hidden}
.u6-orrfull-stage.dragging{cursor:grabbing}
.u6-orrfull-stage .sky-move{flex:none;width:480px;height:480px;position:relative;transform-origin:center center;will-change:transform}
.u6-orrfull-stage .sky-move>*{max-width:100%}
.u6-orr-zc button{background:none;border:none;cursor:pointer;font-family:var(--sc);font-size:12px;color:var(--muted);padding:0 11px;min-height:34px;line-height:1}
.u6-orr-zc button:hover{color:var(--blue);background:var(--paper)}
.u6-orr-zc .lvl{min-width:46px;font-size:10px;font-weight:700;letter-spacing:.02em;color:var(--blue)}
/* the wheel's own wrapper reports no height (its svg is positioned), which let
   it spill over the position table — the stage is given the wheel's box and
   clips anything past it */
.u6-orr-stage{flex:none;width:100%;max-width:100%;height:316px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:8px;cursor:grab}
.u6-orr-stage.dragging{cursor:grabbing}
.u6-orr-stage .sky-move{flex:none;width:300px;height:300px;position:relative;transform-origin:center center;will-change:transform}
.u6-orr-stage .sky-move>*{max-width:100%}
.u6-orr-hint{flex-shrink:0;font-family:var(--sc);font-size:9px;letter-spacing:.03em;color:var(--icon);text-align:center;padding:9px 14px;border-top:1px solid var(--vpale);line-height:1.5}

/* Sky tab · position ranges table */
.sky-tbl-wrap{flex-shrink:0;overflow:visible;padding:12px 16px;border-bottom:1px solid var(--vpale)}
.sky-tbl{width:100%;font-family:var(--sc);font-size:10px;border-collapse:collapse}
.sky-tbl thead th{background:var(--paper);color:var(--icon);font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:8px 0;border-bottom:1px solid var(--vpale);text-align:left}
.sky-tbl thead th:first-child{width:auto}
.sky-tbl tbody td{padding:6px 0;border-bottom:1px solid var(--vpale);color:var(--muted)}
.sky-tbl .sky-body{font-weight:600;color:var(--ink)}
.sky-tbl .sky-val{text-align:right;font-family:var(--mono);color:var(--blue)}
.orr-tip{position:absolute;z-index:40;max-width:230px;background:var(--white);border:1px solid var(--vpale);border-radius:9px;box-shadow:0 12px 26px rgba(43,50,64,.13);padding:11px 13px;font-size:11px;pointer-events:none}

/* the SCAN6 added mark on the portal month grid, so the tint the layer writes
   inline is not fighting the locked lane fill (which the layer also clears) */
.ctp-screen .pcal-mk.scn-add{position:absolute;right:5px;bottom:3px;font-family:var(--sc);font-size:8px;font-weight:700;letter-spacing:.02em}
.ctp-screen .pcal-dc{position:relative}
.ctp-screen .pcal-dc.scn-hit,.ctp-screen .wk-hd.scn-hit,.ctp-screen .sb-gcell.scn-hit{cursor:pointer}
.ctp-screen .scn-wk-g{cursor:pointer;font-family:var(--sc);font-size:8px;font-weight:700;letter-spacing:.04em;color:var(--icon)}

/* CT-MOM06 · header Orrery widget at nametag density, no background, keeps caret */
.u6-hdr-orr{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;cursor:pointer}
.u6-hdr-orr svg{width:100%;height:100%;display:block}
.occ-pop{position:fixed;z-index:500;opacity:0;transform:translateY(4px);transition:opacity .14s,transform .14s;pointer-events:none;background:var(--white);border:1px solid var(--vpale);border-radius:8px;box-shadow:0 14px 40px rgba(30,35,48,.22);padding:12px 14px;white-space:nowrap}
.occ-pop.show{opacity:1;transform:translateY(0);pointer-events:auto}
.occ-pop-cap{font-family:var(--sc);font-size:8.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--icon);margin-bottom:8px}

/* a small on-surface note that the united view carries, top of the reading column */
.u6-fixnote{margin:0 0 2px;font-family:var(--sc);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--icon)}
