/* ══════════════════════════════════════════════════════════════════
   NORTH: the board in North's look and feel, on every page.
   Loaded right after ds-dark.css, before each page's own stylesheet.
   - The frame: a cool wash at the top of the screen that fades to the
     cream; the sidebar sits on it, the page is a glass card beside it with
     a soft band across its top.
   - The sidebar: quiet grey rows; where you are is a white pill with a
     coral label. It folds to an icon rail (the button by the wordmark, or
     Cmd+.), each icon saying its name on hover.
   - Ask Orin in every page's top bar, with what's worth asking on that page
     under it as you focus.
   - Segmented switches slide; links underline from the left; hints are
     North's hover cards; everything moves on one curve.
   Light and dark each hold their own values below; components only
   read the --nx-* names (and the system's tokens).
   ══════════════════════════════════════════════════════════════════ */

:root {
  --nx-curve: cubic-bezier(.32, .72, 0, 1);
  --nx-move: 400ms;
  --nx-frame-top: #ebf0f5;
  --nx-glass: rgba(254, 251, 249, 0.62);
  --nx-glass-edge: #e8e8e8;
  --nx-band-a: rgba(217, 224, 230, 0.65);
  --nx-band-b: rgba(250, 250, 251, 0);
  --nx-pill: #ffffff;
  --nx-pill-shadow: 0 1px 2px rgba(9, 53, 85, 0.06), 0 0 0 0.5px rgba(9, 53, 85, 0.04);
  --nx-label: #5c5c5c;
  --nx-sec: #717171;
  --nx-here: var(--color-brand-salmon);
  --nx-tint: rgba(9, 53, 85, 0.05);
  --nx-well: #ededed;
  --nx-edge: #d3d3d3;
  --nx-edge-hover: #aaa49d;
  --nx-field: #ffffff;
  --nx-tip-shadow: 0 16px 32px -20px rgba(9, 53, 85, 0.45);
  --nx-pop-shadow: 0 12px 32px -16px rgba(9, 53, 85, 0.35);
  --nx-mute: #8a8a8a;
}
:root[data-theme="dark"] {
  --nx-frame-top: #0d1722;
  --nx-glass: rgba(15, 25, 34, 0.78);
  --nx-glass-edge: #1d2a37;
  --nx-band-a: rgba(64, 96, 126, 0.26);
  --nx-band-b: rgba(15, 25, 34, 0);
  --nx-pill: #17232e;
  --nx-pill-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(232, 237, 243, 0.08);
  --nx-label: #a3b0bd;
  --nx-sec: #7d8b99;
  --nx-tint: rgba(232, 237, 243, 0.06);
  --nx-well: #1f2c39;
  --nx-edge: #2c3c4c;
  --nx-edge-hover: #4a5e72;
  --nx-field: #121d27;
  --nx-tip-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.7);
  --nx-pop-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
  --nx-mute: #8494a4;
}
/* ── The frame ── */
body.ws-app { background: linear-gradient(180deg, var(--nx-frame-top) 0, var(--ws-page) 640px) fixed, var(--ws-page); }
body.ws-app { scrollbar-color: rgba(var(--ink-rgb), 0.18) transparent; }

/* The page: a glass card with a soft band across its top. */
.ws-main {
  background: linear-gradient(180deg, var(--nx-band-a), var(--nx-band-b)) no-repeat top left / 100% 232px, var(--nx-glass);
  outline: 1px solid var(--nx-glass-edge);
  outline-offset: -1px;
  transition: margin var(--nx-move) var(--nx-curve);
}
.ws-topbar { border-bottom: 0.5px solid var(--nx-edge); }
@media (prefers-reduced-motion: no-preference) {
  /* Opacity only: a transform here would make every fixed menu and dialog inside the page sit relative to it. */
  .ws-main { animation: nx-arrive 360ms var(--nx-curve) backwards; }
  @keyframes nx-arrive { from { opacity: 0; } }
  html.nx-moving .ws-main { animation: none; }
}

/* ── The sidebar ── */
@media (min-width: 901px) {
  .ws-nav { background: transparent; transition: width var(--nx-move) var(--nx-curve), padding var(--nx-move) var(--nx-curve); }
}
.ws-nav__eyebrow { padding: var(--space-sm) 10px 4px; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--nx-sec); }
.ws-nav__rows { gap: 2px; }
.ws-nav__row { position: relative; height: 32px; gap: 10px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: var(--nx-label); transition: background-color 200ms ease, color 250ms ease, box-shadow 250ms ease; }
.ws-nav__row > i { font-size: 17px; transition: color 250ms ease; }
.ws-nav__row:hover { background: var(--nx-tint); color: var(--color-text-heading); }
.ws-nav__row:active { background: var(--nx-tint); }
.ws-nav__row[aria-current="page"] { background: var(--nx-pill); box-shadow: var(--nx-pill-shadow); color: var(--nx-here); border-radius: 5px; }
.ws-nav__row[aria-current="page"] > i { color: var(--nx-here); }
.ws-nav__person { border-top: 0.5px solid var(--nx-edge); }

/* The fold button, pinned to the sidebar's right edge: it travels with the width, on the same curve. */
.nx-fold { position: absolute; top: calc(var(--space-sm) + 2px); right: 8px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: var(--nx-label); cursor: pointer; transition: right var(--nx-move) var(--nx-curve), background-color 200ms ease, color 200ms ease; }
.nx-fold:hover { background: var(--nx-tint); color: var(--color-text-heading); }
.nx-fold i { font-size: 17px; }
/* The title row and Ask Orin keep their height when the nav is taller than the screen (it scrolls instead):
   squeezed to nothing, Ask Orin and its count slid up under the fold button (Riyon, 2026-11-23). */
.ws-nav > .ws-wordmark { flex-shrink: 0; padding-right: 40px; overflow: hidden; transition: opacity 160ms ease; }
.ws-nav > .or-launch-row { flex-shrink: 0; }
@media (max-width: 900px) { .nx-fold { display: none; } .ws-nav > .ws-wordmark { padding-right: var(--space-xs); } }

/* Folded: an icon rail. Words go first, then the room; opening, room first, then words. */
@media (min-width: 901px) {
  html.nx-rail { --ws-sidebar-width: 64px; }
  html.nx-rail .ws-nav { padding-left: 10px; padding-right: 10px; }
  html.nx-rail .ws-nav > .ws-wordmark { opacity: 0; pointer-events: none; }
  html.nx-rail .nx-fold { right: 18px; }
  html.nx-rail .ws-nav__eyebrow { height: 0; padding: 0; opacity: 0; overflow: hidden; }
  html.nx-rail .ws-nav__row { width: 44px; justify-content: center; padding: 0; gap: 0; }
  html.nx-rail .ws-nav__name, html.nx-rail .ws-nav__who, html.nx-rail .or-launch__text, html.nx-rail .or-launch kbd { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; }
  html.nx-rail .ws-nav__count, html.nx-rail .or-launch__count { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; font-size: 10px; }
  html.nx-rail .ws-nav__person { justify-content: center; padding-left: 0; padding-right: 0; }
  html.nx-rail .or-launch { position: relative; width: 44px; justify-content: center; padding: 0; gap: 0; }
  html.nx-rail .ws-theme { display: none !important; }
  .ws-nav__name, .ws-nav__who, .or-launch__text, .or-launch kbd { transition: opacity 160ms ease, max-width var(--nx-move) var(--nx-curve); }
  html.nx-rail .ws-nav__name, html.nx-rail .ws-nav__who { transition: opacity 120ms ease, max-width var(--nx-move) var(--nx-curve); }
}
/* A rail icon's name, flown out beside it. */
.nx-flyout { position: fixed; z-index: 2147483000; pointer-events: none; padding: 5px 9px; border-radius: 6px; background: var(--color-text-heading); color: var(--color-white); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity 140ms ease, transform 220ms var(--nx-curve); }
.nx-flyout.is-on { opacity: 1; transform: none; }

/* ── Ask Orin in the top bar ── */
.nx-ask { position: relative; flex: 1 1 280px; max-width: 460px; min-width: 0; margin-left: auto; }
@media (min-width: 901px) { .ws-topbar__words + .nx-ask { margin-left: var(--space-md); } .nx-ask + .ws-topbar__acts { margin-left: var(--space-sm); } }
/* With a big ask on the page (Mission), the top bar's waits until you scroll past it, then slides in. */
.nx-ask { transition: opacity 300ms ease, transform 400ms var(--nx-curve); }
.nx-ask.is-tucked { opacity: 0; transform: translateY(6px); pointer-events: none; }
.nx-ask__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 10px; border-radius: 6px; background: var(--nx-field); box-shadow: 0 0 0 0.5px var(--nx-edge), 0 2px 12px rgba(var(--shade-rgb), 0.04); transition: box-shadow 250ms ease; cursor: text; }
.nx-ask__bar:hover { box-shadow: 0 0 0 0.5px var(--nx-edge-hover), 0 2px 12px rgba(var(--shade-rgb), 0.05); }
.nx-ask.is-open .nx-ask__bar { box-shadow: 0 0 0 0.5px var(--nx-edge-hover), 0 2px 14px rgba(var(--shade-rgb), 0.08); }
.nx-ask__mark { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.nx-ask__mark svg { width: 18px; height: 18px; display: block; }
.nx-ask__mark .or-launch__bg { fill: transparent; }
/* The field is the bar: none of the system's own field look inside it (the selectors match the bridge's weight). */
body.ws-app .nx-ask input.ws-input.nx-ask__input { flex: 1; min-width: 0; width: auto; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; font: inherit; font-size: 13px; color: var(--color-text-heading); }
body.ws-app .nx-ask input.ws-input.nx-ask__input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):is(:focus, :focus-visible) { outline: none; border: 0; box-shadow: none; background: transparent; }
body.ws-app .nx-ask input.nx-ask__input::placeholder { color: var(--nx-mute); }
/* A full top bar: the ask bar is just Orin's mark, and opens the quick ask. */
.nx-ask.is-compact { flex: none; width: 34px; }
.nx-ask.is-compact .nx-ask__bar { justify-content: center; padding: 0; cursor: pointer; }
.nx-ask.is-compact :is(.nx-ask__input, .nx-ask__kbd, .nx-ask__go, .nx-sugs) { display: none !important; }
.nx-ask__kbd { flex: none; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--ws-surface-sunk); color: var(--nx-mute); font: 500 11px/20px var(--font-body); }
.nx-ask__go { flex: none; display: none; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--color-text-heading); color: var(--color-white); cursor: pointer; }
.nx-ask__go i { font-size: 13px; }
.nx-ask.has-words .nx-ask__go { display: grid; }
.nx-ask.has-words .nx-ask__kbd { display: none; }
.nx-sugs { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 260; padding: 4px; border-radius: 8px; background: var(--color-bg-page); box-shadow: 0 0 0 0.5px var(--nx-edge), var(--nx-pop-shadow); transform-origin: top center; }
.nx-sugs[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .nx-sugs:not([hidden]) { animation: nx-drop 260ms var(--nx-curve); } @keyframes nx-drop { from { opacity: 0; transform: translateY(-4px) scale(0.985); } } }
.nx-sugs__head { margin: 6px 10px 4px; font-size: 11px; line-height: 14px; color: var(--nx-mute); }
.nx-sug { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--color-text-heading); font: inherit; font-size: 13px; font-weight: 500; line-height: 18px; text-align: left; cursor: pointer; }
.nx-sug > i { flex: none; font-size: 15px; color: var(--nx-mute); transition: color 200ms ease, transform 300ms var(--nx-curve); }
.nx-sug:hover, .nx-sug.is-active { background: var(--nx-tint); }
.nx-sug:hover > i, .nx-sug.is-active > i { color: var(--nx-here); transform: translateX(2px); }
.nx-sugs__foot { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; padding: 8px 10px 4px; border-top: 0.5px solid var(--nx-edge); font-size: 11px; color: var(--nx-mute); }
.nx-sugs__foot a { color: var(--color-text-heading); font-weight: 500; text-decoration: none; }
.nx-sugs__foot a:hover { text-decoration: underline; }
@media (max-width: 1180px) { .nx-ask { flex-basis: 220px; } .nx-ask__kbd { display: none; } }
@media (max-width: 900px) { .nx-ask { display: none; } }
html.in-orin .nx-ask, html.in-orin .nx-fold { display: none !important; }

/* ── Cards: a 1 px well around the cream ── */
.ws-card { outline: 1px solid var(--nx-well); outline-offset: -1px; border-radius: 8px; transition: outline-color 200ms ease, background-color 200ms ease; }
a.ws-card:hover, button.ws-card:hover, .ws-card.is-hoverable:hover { outline-color: var(--nx-edge-hover); }

/* ── Links underline from the left ── */
.ws-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms var(--nx-curve); }
.ws-link:hover { text-decoration: none; background-size: 100% 1px; }

/* ── Segmented switches: the selection slides ── */
.ws-segmented.nx-seg { position: relative; isolation: isolate; }
.ws-segmented.nx-seg > .ws-segmented__item { position: relative; z-index: 1; background: transparent !important; transition: color 250ms ease; }
.ws-segmented.nx-seg > .ws-segmented__item:is([aria-selected="true"], [aria-current], [aria-checked="true"]) { color: var(--color-white); }
.nx-seg__pill { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: var(--ws-radius-control); background: var(--color-text-heading); pointer-events: none; transition: transform 380ms var(--nx-curve), width 380ms var(--nx-curve), opacity 200ms ease; }
.nx-seg__pill.is-still { transition: none; }

/* ── Hover cards: what a control or a mark is, on a paper card with a caret ── */
.nx-tip { position: fixed; z-index: 2147483100; max-width: 280px; padding: 8px 11px; border-radius: 8px; background: var(--color-bg-page); box-shadow: 0 0 0 0.5px var(--nx-edge), var(--nx-tip-shadow); color: var(--color-text-heading); font-size: 12px; font-weight: 500; line-height: 16px; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity 140ms ease, transform 260ms var(--nx-curve); }
.nx-tip.is-on { opacity: 1; transform: none; }
.nx-tip::after { content: ''; position: absolute; left: var(--nx-caret, 50%); width: 8px; height: 8px; margin-left: -4px; background: inherit; box-shadow: 0.5px 0.5px 0 0 var(--nx-edge); transform: rotate(45deg); }
.nx-tip.is-below::after { top: -4px; box-shadow: -0.5px -0.5px 0 0 var(--nx-edge); }
.nx-tip:not(.is-below)::after { bottom: -4px; }

/* ── Buttons and fields lean North: a hairline that darkens on hover ── */
body.ws-app .ws-btn--secondary { transition: box-shadow 200ms ease, background-color 200ms ease; }
body.ws-app .ws-btn--secondary:hover { box-shadow: 0 0 0 0.5px var(--nx-edge-hover); }

@media (prefers-reduced-motion: reduce) {
  .ws-main, .ws-nav, .nx-seg__pill, .nx-tip, .nx-flyout, .ws-link { transition: none !important; animation: none !important; }
}

/* ── The home header (Mission): a greeting, a big ask, and what's worth asking ── */
.nx-hello { max-width: 1000px; margin: 0 auto; padding: 44px 40px 0; }
.nx-hello__title { margin: 0; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-text-heading); }
.nx-hello__sub { margin: 10px 0 0 2px; font-size: 16px; line-height: 22px; color: var(--color-text-body); }
.nx-compose { display: flex; align-items: center; gap: 10px; max-width: 840px; height: 52px; margin: 22px 0 0; padding: 0 8px 0 16px; border-radius: 6px; background: var(--nx-field); box-shadow: 0 0 0 0.5px var(--nx-edge), 0 2px 12px rgba(var(--shade-rgb), 0.04); transition: box-shadow 250ms ease; }
.nx-compose:hover, .nx-compose:focus-within { box-shadow: 0 0 0 0.5px var(--nx-edge-hover), 0 2px 16px rgba(var(--shade-rgb), 0.07); }
.nx-compose .nx-ask__mark, .nx-compose .nx-ask__mark svg { width: 22px; height: 22px; }
body.ws-app .nx-compose input.ws-input.nx-compose__input { flex: 1; min-width: 0; width: auto; height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; font: inherit; font-size: 16px; color: var(--color-text-heading); }
body.ws-app .nx-compose input.ws-input.nx-compose__input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):is(:focus, :focus-visible) { outline: none; border: 0; box-shadow: none; background: transparent; }
body.ws-app .nx-compose input.nx-compose__input::placeholder { color: var(--nx-mute); }
.nx-compose__go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--color-text-heading); color: var(--color-white); cursor: pointer; transition: transform 200ms var(--nx-curve), opacity 200ms ease; }
.nx-compose__go:hover { transform: translateY(-1px); }
.nx-compose__go:active { transform: scale(0.96); }
.nx-compose__go i { font-size: 16px; }
.nx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 2px; }
.nx-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border: 0; border-radius: 5px; background: transparent; box-shadow: 0 0 0 0.5px var(--nx-edge); color: var(--color-text-heading); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: box-shadow 200ms ease, background-color 200ms ease; }
.nx-chip:hover { box-shadow: 0 0 0 0.5px var(--nx-edge-hover); background: var(--nx-tint); }
.nx-chip > i { font-size: 14px; color: var(--nx-mute); transition: color 200ms ease, transform 300ms var(--nx-curve); }
.nx-chip:hover > i { color: var(--nx-here); transform: translateX(2px); }
.nx-hello + .mc-body { padding-top: 40px; }
@media (max-width: 900px) {
  .nx-hello { padding: 28px 20px 0; }
  .nx-hello__title { font-size: 30px; line-height: 36px; }
  .nx-hello__sub { font-size: 15px; }
  .nx-hello + .mc-body { padding-top: 28px; }
}

/* ── Tiles that open in place: a tile grows from its slot across the row; the page below makes room ── */
[data-nx-tiles] { position: relative; transition: height var(--nx-move) var(--nx-curve); }
[data-nx-tiles] > [data-nx-tile] { position: relative; cursor: pointer; transition: outline-color 200ms ease, background-color 200ms ease, opacity 200ms ease; }
[data-nx-tiles] > [data-nx-tile]:hover { outline-color: var(--nx-edge-hover); }
[data-nx-tiles] > [data-nx-tile]:focus-visible { outline: none; box-shadow: var(--shadow-focus-ring); }
.nx-tile__go { position: absolute; top: 14px; right: 14px; font-size: 15px; color: var(--nx-mute); opacity: 0; transform: translate(-3px, 3px); transition: opacity 200ms ease, transform 300ms var(--nx-curve); pointer-events: none; }
[data-nx-tile]:hover .nx-tile__go, [data-nx-tile]:focus-visible .nx-tile__go { opacity: 1; transform: none; }
.nx-tiles--open > [data-nx-tile] { opacity: 0.35; pointer-events: none; }
.nx-open { position: absolute; top: 0; left: 0; right: 0; min-height: 100%; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); border-radius: 12px; background: var(--color-bg-page); box-shadow: 0 0 0 1px var(--nx-well), 0 18px 40px -28px rgba(var(--shade-rgb), 0.45); }
.nx-open.is-growing { transition: clip-path var(--nx-move) var(--nx-curve); }
.nx-open > * { opacity: 0; transition: opacity 220ms ease; }
.nx-open.is-in > * { opacity: 1; }
.nx-open__main { min-width: 0; padding: 20px 24px 22px 24px; display: flex; flex-direction: column; }
.nx-open__label { margin: 0; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--color-text-body); }
.nx-open__value { margin: 6px 0 0; font-size: 44px; line-height: 48px; font-weight: 400; letter-spacing: -0.03em; color: var(--color-text-heading); }
.nx-open__unit { margin-left: 8px; font-size: 15px; letter-spacing: 0; color: var(--nx-mute); }
.nx-open__line { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--color-text-body); }
.nx-open__line b { color: var(--color-text-heading); font-weight: 600; }
.nx-open__body { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.nx-open__side { min-width: 0; display: flex; flex-direction: column; padding: 12px 0 12px; border-left: 0.5px solid var(--nx-edge); }
.nx-open__tools { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 20px; }
.nx-open__tools span { flex: 1; font-size: 12px; font-weight: 500; color: var(--nx-mute); }
.nx-open__x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; box-shadow: 0 0 0 0.5px var(--nx-edge); color: var(--color-text-heading); cursor: pointer; transition: box-shadow 200ms ease, background-color 200ms ease; }
.nx-open__x:hover { box-shadow: 0 0 0 0.5px var(--nx-edge-hover); background: var(--nx-tint); }
.nx-open__list { margin-top: 6px; overflow-y: auto; max-height: 420px; }
/* One row of the side list: a name, a word, a number. */
.nx-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 7px 14px 7px 20px; border: 0; border-top: 0.5px solid var(--nx-edge); background: transparent; color: var(--color-text-heading); font: inherit; text-align: left; cursor: pointer; transition: background-color 200ms ease; }
.nx-row:hover { background: var(--nx-tint); }
.nx-row__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nx-row__who b { font-size: 13px; font-weight: 500; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row__who span { font-size: 11.5px; line-height: 14px; color: var(--nx-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row__n { flex: none; font-size: 13px; font-weight: 600; color: var(--color-text-heading); font-variant-numeric: tabular-nums; }
/* A segment: its name, count and share over a bar (North's breakdown rows). */
.nx-seg-row { display: flex; flex-direction: column; gap: 8px; }
.nx-seg-row__t { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--color-text-heading); }
.nx-seg-row__t span { flex: 1; font-weight: 500; }
.nx-seg-row__t b { font-weight: 600; font-variant-numeric: tabular-nums; }
.nx-seg-row__t em { width: 44px; font-style: normal; font-size: 13px; text-align: right; color: var(--nx-mute); }
.nx-seg-row__bar { position: relative; height: 12px; border-radius: 2px; background: var(--nx-well); overflow: hidden; }
.nx-seg-row__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; transform-origin: left center; }
.nx-open.is-in .nx-seg-row__bar i { animation: nx-fill 700ms var(--nx-curve) both; }
@keyframes nx-fill { from { transform: scaleX(0); } }
.nx-seg-row__bar u { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 1.5px solid var(--color-text-heading); }
.nx-open__note { margin: 0; font-size: 11.5px; line-height: 16px; color: var(--nx-mute); }
@media (max-width: 900px) {
  .nx-open { grid-template-columns: minmax(0, 1fr); }
  .nx-open__side { border-left: 0; border-top: 0.5px solid var(--nx-edge); }
  .nx-open__value { font-size: 36px; line-height: 40px; }
  .nx-open__list { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { [data-nx-tiles], .nx-open, .nx-open > * { transition: none !important; } .nx-open .nx-seg-row__bar i { animation: none !important; } }

/* ── Charts: the mark under the pointer stays, the rest step back; its card is the date over the number ── */
.nx-tip.is-mark { padding: 8px 11px 9px; }
.nx-tip__e { display: block; font-size: 11px; font-weight: 400; line-height: 14px; color: var(--nx-mute); }
.nx-tip__v { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; line-height: 17px; color: var(--color-text-heading); }
:is(.us-cols__plot, .oh-heat) > * { transition: opacity 200ms ease; }
@media (hover: hover) {
  .us-cols__plot:hover > .us-cols__col:not(:hover) { opacity: 0.45; }
  .oh-heat:hover > .oh-heat__cell:not(:hover) { opacity: 0.55; }
  .oh-bars:hover > .oh-bar:not(:hover) { opacity: 0.5; }
  .oh-bars > .oh-bar { transition: opacity 200ms ease; }
}

/* ── Your day, as Orin sees it (Mission): each meeting, and what Orin will do with it ── */
.nx-day { max-width: 840px; margin: 28px 0 0; border-radius: 10px; background: var(--color-bg-page); box-shadow: 0 0 0 1px var(--nx-well); }
.nx-day[aria-busy="true"] { min-height: 120px; background: linear-gradient(90deg, var(--color-bg-page), var(--ws-surface-sunk), var(--color-bg-page)) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) { .nx-day[aria-busy="true"] { animation: nx-shim 1.6s linear infinite; } @keyframes nx-shim { to { background-position: -150% 0; } } }
.nx-day__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px 12px; }
.nx-day__title { margin: 0; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--color-text-heading); }
.nx-day__sub { margin: 3px 0 0; font-size: 12.5px; line-height: 17px; color: var(--nx-mute); }
.nx-day__set { flex: none; font-size: 13px; margin-top: 2px; }
.nx-day__empty { margin: 0; padding: 4px 20px 18px; font-size: 13px; color: var(--color-text-body); }
.nx-day__earlier { margin: 0; padding: 8px 20px; border-top: 0.5px solid var(--nx-edge); font-size: 12px; font-weight: 500; color: var(--nx-mute); cursor: pointer; }
.nx-day__earlier:hover { color: var(--color-text-heading); background: var(--nx-tint); }
.nx-day__earlier::after { content: ' · show'; }
.nx-day.is-all .nx-day__earlier::after { content: ' · hide'; }
.nx-day__list { margin: 0; padding: 0; list-style: none; }
.nx-day__ev { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 20px 13px; border-top: 0.5px solid var(--nx-edge); transition: background-color 200ms ease; }
.nx-day__ev:hover { background: var(--nx-tint); }
.nx-day__ev.is-past { display: none; }
.nx-day.is-all .nx-day__ev.is-past { display: grid; opacity: 0.6; }
.nx-day__ev.is-now { box-shadow: inset 2px 0 0 var(--nx-here); }
.nx-day__when { display: flex; flex-direction: column; gap: 1px; font-variant-numeric: tabular-nums; }
.nx-day__when b { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--color-text-heading); }
.nx-day__when small { font-size: 11.5px; line-height: 15px; color: var(--nx-mute); }
.nx-day__when em { align-self: flex-start; margin-top: 4px; padding: 0 6px; border-radius: 4px; background: var(--nx-here); color: var(--color-white); font-style: normal; font-size: 10.5px; line-height: 17px; font-weight: 600; }
.nx-day__what { min-width: 0; }
.nx-day__name { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; line-height: 19px; font-weight: 500; color: var(--color-text-heading); }
.nx-day__name i { font-size: 13px; color: var(--nx-mute); }
.nx-day__who { margin: 1px 0 0; font-size: 12px; line-height: 16px; color: var(--nx-mute); }
.nx-day__steps { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.nx-day__step { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 17px; color: var(--color-text-body); }
.nx-day__step i { flex: none; margin-top: 1px; font-size: 15px; color: var(--nx-mute); }
.nx-day__step.is-done i { color: var(--ws-word-positive); }
.nx-day__step.is-planned i { color: var(--color-text-heading); }
.nx-day__step.is-off, .nx-day__step.is-none, .nx-day__step.is-skip, .nx-day__step.is-private { color: var(--nx-mute); }
.nx-day__step .ws-link { margin-left: 4px; font-size: 12.5px; }
@media (max-width: 640px) {
  .nx-day__head { flex-direction: column; gap: 6px; padding: 14px 16px 10px; }
  .nx-day__ev { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 11px 16px; }
}
