/* Echo One /next, 0.88: the foundation.
   The locked design language (slate, cream and one light) as tokens, the frame (rail, top bar, Mel's column),
   and the old page's own screens switched off so only its 3D town shows through. */

:root {
  --nx-slate: #424B54; --nx-slate-2: #4B555D; --nx-line: #5B6771; --nx-deep: #353C43;
  --nx-cream: #FFF7E9; --nx-cream-2: #F3EEE7; --nx-cream-3: #E7DED0; --nx-cream-line: #D6CEC2;
  --nx-on-slate-2: #D7D2CB; --nx-on-cream: #424B54; --nx-on-cream-2: #66747F;
  --nx-led: #65CDD2; --nx-led-glow: rgba(101,205,210,.45);
  --nx-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-rail: 64px; --nx-top: 52px; --nx-mel: 360px;
}

/* ---------- 5.0.0: the page base. These were the old Blueprint page's global rules, which the new design quietly relied on ---------- */
:root { --paper: hsl(38 100% 96%); --ink: hsl(209 12% 30%); --ink-2: hsl(207 11% 40%); --ink-3: hsl(207 10% 46%); --line-strong: hsl(36 16% 69%); --accent: hsl(209 12% 30%); color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: Figtree, system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1 { font-size: clamp(23px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; text-wrap: balance; line-height: 1.15; }
h2 { font-size: 16px; font-weight: 800; letter-spacing: -.015em; margin: 28px 0 10px; }
.sub { color: var(--ink-3); font-size: 14px; margin: 0 0 18px; max-width: 70ch; }
.ar { color: var(--line-strong); font-size: 16px; padding: 0 8px; align-self: center; }
.dn { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tl { display: flex; flex-wrap: wrap; gap: 4px; }
html.next, html.next body { background: var(--nx-slate); }
/* the city fills the window behind the frame; the frame's insets keep it clear of the rail, the top bar and Mel */
.t3wrap { position: fixed; left: 0; right: 0; top: 56px; bottom: 0; overflow: hidden; background: var(--nx-slate); } /* 56px down, exactly where the old page put it, so the framing is unchanged */
.t3wrap .t3cv, .t3wrap .t3mir { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.t3wrap .t3cv { cursor: grab; touch-action: none; } .t3wrap .t3cv.drag { cursor: grabbing; }
.t3wrap.t3mirrored .t3cv { opacity: 0; } .t3wrap .t3mir { pointer-events: none; }
.t3wrap .t3ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }

/* ---------- the frame ---------- */
#nx { position: fixed; inset: 0; z-index: 50; pointer-events: none; font: 400 16px/1.65 var(--nx-sans); color: var(--nx-cream); -webkit-font-smoothing: antialiased; }
#nx *, #nx *::before, #nx *::after { box-sizing: border-box; }
#nx button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#nx .nx-rail, #nx .nx-top, #nx .nx-mel { pointer-events: auto; }

#nx .nx-rail { position: absolute; left: 0; top: 0; bottom: 0; width: var(--nx-rail); background: var(--nx-slate); border-right: 1px solid var(--nx-line); display: flex; flex-direction: column; align-items: center; padding-top: 12px; gap: 6px; transform: translateX(calc(var(--nx-in, 1) * 0px)); }
#nx .nx-logo { width: 38px; height: 38px; border-radius: 50%; background: var(--nx-cream); color: var(--nx-slate); display: grid; place-items: center; margin-bottom: 14px; --knock: var(--nx-cream); }
#nx .nx-logo svg { width: 22px; height: 22px; }
#nx .nx-ri { position: relative; width: 56px; padding: 9px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--nx-on-slate-2); font: 500 11px/1.2 var(--nx-sans); border-radius: 3px; transition: color 150ms cubic-bezier(0,0,0,1), background-color 150ms cubic-bezier(0,0,0,1); }
#nx .nx-ri svg { width: 22px; height: 22px; }
#nx .nx-ri:hover { color: var(--nx-cream); background: var(--nx-slate-2); }
#nx .nx-ri.on { color: var(--nx-cream); }
#nx .nx-ri.on::before { content: ""; position: absolute; left: -4px; top: 11px; bottom: 11px; width: 2px; background: var(--nx-cream); }
#nx .nx-ri .nx-bd { position: absolute; top: 5px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--nx-led); box-shadow: 0 0 0 2px var(--nx-slate); transform: scale(0); transition: transform 300ms cubic-bezier(.34,1.56,.64,1); }
#nx .nx-ri .nx-bd.on { transform: scale(1); }
#nx .nx-ri:focus-visible, #nx button:focus-visible { outline: 2px solid var(--nx-led); outline-offset: 3px; }

#nx .nx-top { position: absolute; left: var(--nx-rail); right: var(--nx-mel); top: 0; height: var(--nx-top); background: var(--nx-slate); border-bottom: 1px solid var(--nx-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }
#nx .nx-crumb { display: flex; gap: 8px; font-size: 14px; color: var(--nx-on-slate-2); white-space: nowrap; }
#nx .nx-crumb b { color: var(--nx-cream); font-weight: 600; }
#nx .nx-goal { font-size: 11px; line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--nx-on-slate-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nx .nx-goal b { color: var(--nx-cream); font-weight: 500; }

/* ---------- Mel ---------- */
#nx .nx-mel { position: absolute; right: 0; top: 0; bottom: 0; width: var(--nx-mel); background: var(--nx-slate); border-left: 1px solid var(--nx-line); padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 18px; }
#nx .nx-mh { display: flex; align-items: center; gap: 12px; }
#nx .nx-mface { position: relative; width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
#nx .nx-mface i { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--nx-led); box-shadow: 0 0 0 2px var(--nx-slate); animation: nx-breathe 2.4s ease-in-out infinite; }
@keyframes nx-breathe { 0%, 100% { box-shadow: 0 0 0 2px var(--nx-slate), 0 0 0 2px var(--nx-led-glow); } 50% { box-shadow: 0 0 0 2px var(--nx-slate), 0 0 0 7px rgba(101,205,210,0); } }
#nx .nx-nm { flex: 1; } #nx .nx-nm b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; } #nx .nx-nm span { font-size: 14px; color: var(--nx-on-slate-2); }
#nx .nx-bars { display: flex; align-items: center; gap: 3px; height: 18px; color: var(--nx-led); }
#nx .nx-bars i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; opacity: .35; }
#nx .speaking .nx-bars i { opacity: 1; animation: nx-bar 900ms ease-in-out infinite; }
#nx .speaking .nx-bars i:nth-child(2) { animation-delay: -.6s } #nx .speaking .nx-bars i:nth-child(3) { animation-delay: -.3s } #nx .speaking .nx-bars i:nth-child(4) { animation-delay: -.75s }
#nx .thinking .nx-bars i { opacity: 1; animation: nx-think 1.2s ease-in-out infinite; } #nx .thinking .nx-bars i:nth-child(2) { animation-delay: .15s } #nx .thinking .nx-bars i:nth-child(3) { animation-delay: .3s } #nx .thinking .nx-bars i:nth-child(4) { animation-delay: .45s }
@keyframes nx-bar { 0%, 100% { height: 4px } 50% { height: 18px } }
@keyframes nx-think { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
#nx .nx-log { flex: 1; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
#nx .nx-say { font-size: 19px; line-height: 1.6; color: var(--nx-cream); margin: 0; opacity: 0; transition: opacity 150ms cubic-bezier(0,0,0,1); }
#nx .nx-say.old { font-size: 16px; color: var(--nx-on-slate-2); }
#nx .nx-say.in { opacity: 1; }
#nx .nx-me { align-self: flex-end; max-width: 85%; font-size: 16px; line-height: 1.5; background: var(--nx-slate-2); padding: 9px 14px; border-radius: 3px; margin: 0; }
#nx .nx-sug { display: flex; flex-wrap: wrap; gap: 8px; }
#nx .nx-sug button { height: 34px; padding: 0 12px; border-radius: 3px; font-size: 14px; color: var(--nx-on-slate-2); border: 1px solid var(--nx-line); transition: color 150ms, border-color 150ms; }
#nx .nx-sug button:hover { color: var(--nx-cream); border-color: var(--nx-on-slate-2); }
#nx .nx-inp { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border: 1px solid var(--nx-line); border-radius: 3px; background: var(--nx-slate-2); transition: border-color 150ms; }
#nx .nx-inp:hover { border-color: var(--nx-on-slate-2); } #nx .nx-inp:focus-within { border-color: var(--nx-cream); }
#nx .nx-inp input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--nx-cream); font: 400 16px var(--nx-sans); }
#nx .nx-inp input::placeholder { color: var(--nx-on-slate-2); }
#nx .nx-mic { width: 40px; height: 40px; border-radius: 3px; background: var(--nx-cream); color: var(--nx-slate); display: grid; place-items: center; flex: none; }
#nx .nx-mic svg { width: 18px; height: 18px; }
#nx .nx-mic.hold { background: var(--nx-led); }

/* the frame arrives: rail from the left, Mel from the right */
#nx.nx-arriving .nx-rail { transform: translateX(-64px); }
#nx.nx-arriving .nx-top { transform: translateY(-52px); }
#nx.nx-arriving .nx-mel { transform: translateX(360px); }

/* the Studio, unchanged, from the old page: the new frame steps aside and leaves one way back */

@media (prefers-reduced-motion: reduce) { #nx .nx-mface i, #nx .speaking .nx-bars i, #nx .thinking .nx-bars i { animation: none !important; } }

/* ---------- 0.89: the one mark, and the hover glance ---------- */
#nx .nx-mark { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; will-change: transform; }
#nx .nx-mark.off { visibility: hidden; }
#nx .nx-ring { position: absolute; left: -30px; top: -14px; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--nx-led); box-shadow: 0 0 24px var(--nx-led-glow), inset 0 0 14px rgba(101,205,210,.25); animation: nx-mark 2.4s ease-in-out infinite; }
@keyframes nx-mark { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.12); opacity: .7 } }
#nx .nx-pin { position: absolute; left: 0; top: -50px; transform: translateX(-50%); height: 28px; padding: 0 11px; border-radius: 3px; background: var(--nx-cream); color: var(--nx-slate); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; pointer-events: auto; box-shadow: 0 6px 16px rgba(20,24,28,.25); }
#nx .nx-pin i { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-led); }
@media (prefers-reduced-motion: reduce) { #nx .nx-ring { animation: none !important; } }

/* ---------- 0.90: a single place. One cream sheet beside the building ---------- */
#nx .nx-sheet { position: absolute; left: calc(var(--nx-rail) + 16px); top: calc(var(--nx-top) + 16px); bottom: 16px; width: 400px; background: var(--nx-cream); color: var(--nx-on-cream); border-radius: 12px; box-shadow: 0 30px 60px rgba(20,24,28,.35); overflow: hidden; pointer-events: auto; transform: translateX(-480px); visibility: hidden; }
#nx .nx-card { position: absolute; inset: 0; padding: 20px 26px 22px; display: flex; flex-direction: column; gap: 8px; background: var(--nx-cream); overflow-y: auto; }
#nx .nx-bk { align-self: flex-start; font-size: 14px; color: var(--nx-on-cream-2); display: inline-flex; align-items: center; gap: 4px; } #nx .nx-bk:hover { color: var(--nx-on-cream); }
#nx .nx-bk svg { width: 16px; height: 16px; }
#nx .nx-label { font-size: 11px; line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--nx-on-cream-2); margin-top: 6px; }
#nx .nx-card h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 0; text-wrap: balance; }
#nx .nx-card .nx-h3 { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 8px 0 2px; }
#nx .nx-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--nx-on-cream-2); text-wrap: pretty; }
#nx .nx-card .nx-num { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.021em; margin-top: 8px; font-variant-numeric: tabular-nums; }
#nx .nx-card .nx-small { font-size: 14px; }
#nx .nx-rows { border-top: 1px solid var(--nx-cream-line); margin-top: 10px; }
#nx .nx-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--nx-cream-line); text-align: left; color: var(--nx-on-cream); font-size: 15px; line-height: 1.4; transition: background-color 150ms cubic-bezier(0,0,0,1); }
#nx button.nx-row:hover { background: var(--nx-cream-2); } #nx button.nx-row:active { background: var(--nx-cream-3); }
#nx .nx-rt { flex: 1; min-width: 0; } #nx .nx-rt b { font-weight: 600; } #nx .nx-rt span { color: var(--nx-on-cream-2); }
#nx .nx-rt.nx-two b { display: block; } #nx .nx-rt.nx-two span { display: block; font-size: 14px; }
#nx .nx-quiet { color: var(--nx-on-cream-2); }
#nx .nx-chev { width: 18px; height: 18px; color: var(--nx-on-cream-2); flex: none; }
#nx .nx-led { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-led); flex: none; margin: 0 4px; box-shadow: 0 0 0 4px rgba(101,205,210,.2); }
#nx .nx-f { width: 32px; height: 32px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
#nx .nx-f.nx-agb { background: radial-gradient(circle at 36% 30%, #b9f0ee 0%, var(--nx-led) 55%, #2f9fa5 100%); width: 22px; height: 22px; margin: 5px; }
#nx .nx-stack { display: inline-flex; flex: none; } #nx .nx-stack .nx-f { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--nx-cream); } #nx .nx-stack .nx-f + .nx-f { margin-left: -8px; } #nx .nx-stack .nx-f.nx-agb { width: 20px; height: 20px; margin: 4px 0 4px -4px; }
#nx .nx-foot { margin-top: auto; display: flex; gap: 8px; padding-top: 10px; }
#nx .nx-btn { font: 600 16px/1 var(--nx-sans); height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; transition: background-color 150ms cubic-bezier(0,0,0,1), transform 100ms cubic-bezier(0,0,0,1); }
#nx .nx-btn:active { transform: scale(.97); }
#nx .nx-btn.nx-pri { flex: 1; background: var(--nx-slate); color: var(--nx-cream); } #nx .nx-btn.nx-pri:hover { background: #4B555D; }
#nx .nx-crumb button { color: var(--nx-on-slate-2); } #nx .nx-crumb button:hover { color: var(--nx-cream); }

/* ---------- 0.91: Decide. My Desk, a decision, how it got here, and the work carried off ---------- */
#nx .nx-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; opacity: 0; transition: opacity 150ms cubic-bezier(0,0,0,1); }
#nx .nx-act.in { opacity: 1; }
#nx .nx-act button { height: 36px; padding: 0 14px; border-radius: 3px; font: 600 14px var(--nx-sans); border: 1px solid var(--nx-line); color: var(--nx-cream); transition: background-color 150ms, border-color 150ms; }
#nx .nx-act button:hover { border-color: var(--nx-on-slate-2); background: var(--nx-slate-2); }
#nx .nx-act button.nx-solid { background: var(--nx-cream); color: var(--nx-slate); border-color: var(--nx-cream); } #nx .nx-act button.nx-solid:hover { background: #FFFDF8; }
#nx .nx-act button[disabled] { opacity: .38; pointer-events: none; }
#nx .nx-who { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
#nx .nx-who .nx-f { width: 40px; height: 40px; }
#nx .nx-who b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; } #nx .nx-who span span { font-size: 14px; color: var(--nx-on-cream-2); }
#nx .nx-btn.nx-pri { flex: 1.2; }
#nx .nx-btn.nx-sec { flex: 1; color: var(--nx-on-cream); border-color: var(--nx-cream-line); } #nx .nx-btn.nx-sec:hover { background: var(--nx-cream-2); border-color: var(--nx-on-cream-2); }
#nx .nx-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
#nx .nx-opt { text-align: left; padding: 14px 16px; border: 1px solid var(--nx-cream-line); border-radius: 3px; color: var(--nx-on-cream); transition: background-color 150ms cubic-bezier(0,0,0,1), border-color 150ms; }
#nx .nx-opt:hover { background: var(--nx-cream-2); border-color: var(--nx-on-cream-2); } #nx .nx-opt:active { transform: scale(.99); }
#nx .nx-opt b { display: block; font-size: 16px; font-weight: 600; } #nx .nx-opt > span { font-size: 14px; color: var(--nx-on-cream-2); }
#nx .nx-opt.nx-pick { border-color: var(--nx-on-cream); }
#nx .nx-opt .nx-mp { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--nx-on-cream-2); }
#nx .nx-opt .nx-mp i { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-led); }
#nx .nx-opt.nx-busy { pointer-events: none; }
#nx .nx-bigtick { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--nx-on-cream); display: grid; place-items: center; margin: 18px 0 4px; }
#nx .nx-bigtick svg { width: 26px; height: 26px; }
#nx .nx-done { display: none; } #nx .nx-done.open { display: block; }
#nx .nx-tick { width: 32px; display: grid; place-items: center; flex: none; color: var(--nx-on-cream-2); } #nx .nx-tick svg { width: 18px; height: 18px; }
#nx .nx-tk { vertical-align: -3px; margin-right: 6px; }
#nx .nx-spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: nx-spin .7s linear infinite; vertical-align: -3px; }
@keyframes nx-spin { to { transform: rotate(360deg); } }
#nx .nx-carry { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; z-index: 2; }
#nx .nx-carry .nx-ball { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #b9f0ee 0%, var(--nx-led) 55%, #2f9fa5 100%); box-shadow: 0 0 0 5px rgba(101,205,210,.25), 0 0 18px var(--nx-led-glow); }
#nx .nx-carry .nx-tag { position: absolute; left: 16px; top: -14px; height: 28px; padding: 0 10px; border-radius: 3px; background: var(--nx-cream); color: var(--nx-on-cream); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; white-space: nowrap; box-shadow: 0 6px 16px rgba(20,24,28,.25); }
#nx .nx-carry.nx-flip .nx-tag { left: auto; right: 16px; }
@media (prefers-reduced-motion: reduce) { #nx .nx-spin { animation-duration: 2s; } }

/* ---------- 0.92: the Engine. Inside the dome, between the rail and Mel ---------- */
#nx .nx-eng { position: absolute; left: var(--nx-rail); right: var(--nx-mel); top: var(--nx-top); bottom: 0; background: radial-gradient(120% 90% at 50% 38%, #4A545D 0%, var(--nx-slate) 55%, #3B434B 100%); opacity: 0; visibility: hidden; pointer-events: none; display: flex; flex-direction: column; color: var(--nx-cream); }
#nx .nx-eng.on { visibility: visible; pointer-events: auto; }
#nx .nx-f.nx-you { display: grid; place-items: center; background: var(--nx-slate); color: var(--nx-cream); font-size: 10px; font-weight: 600; }
#nx .nx-v { font-weight: 600; font-size: 14px; text-align: right; }
#nx .nx-who .nx-f.nx-agb { width: 28px; height: 28px; margin: 6px; }
/* 0.92: fit the long Engine crumb on a 1280 laptop */
#nx .nx-crumb { min-width: 0; overflow: hidden; }
#nx .nx-crumb > b:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#nx .nx-goal { flex: none; max-width: 40%; }

/* ---------- 0.93: the week's goal, handing a job over, the day's review ---------- */
#nx button.nx-goal { font-family: var(--nx-sans); background: none; border: 0; padding: 0; cursor: pointer; text-align: right; }
#nx button.nx-goal:hover b { text-decoration: underline; text-underline-offset: 3px; }
#nx .nx-gp { color: var(--nx-on-slate-2); }
#nx .nx-wtag { position: absolute; left: 0; top: 0; height: 28px; padding: 0 10px; border-radius: 3px; background: var(--nx-cream); color: var(--nx-on-cream); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; box-shadow: 0 6px 16px rgba(20,24,28,.25); pointer-events: none; opacity: 0; z-index: 1; }
#nx .nx-wtag i { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-led); }
#nx .nx-grp2 { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
#nx .nx-ops { display: flex; gap: 6px; }
#nx .nx-op { flex: 1; height: 44px; border: 1px solid var(--nx-cream-line); border-radius: 3px; font-size: 15px; color: var(--nx-on-cream); display: flex; align-items: center; justify-content: center; gap: 7px; transition: background-color 150ms, border-color 150ms; }
#nx .nx-op:hover { background: var(--nx-cream-2); border-color: var(--nx-on-cream-2); } #nx .nx-op:active { transform: scale(.98); }
#nx .nx-op.on { border: 2px solid var(--nx-on-cream); font-weight: 600; }
#nx .nx-mp2 { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-led); }
#nx .nx-note { font-size: 13px; color: var(--nx-on-cream-2); display: flex; align-items: center; gap: 7px; margin-top: 10px; } #nx .nx-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-led); }
#nx .nx-prow { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--nx-cream-line); font-size: 15px; line-height: 1.45; color: var(--nx-on-cream); transition: background-color 300ms; }
#nx .nx-prow .k { width: 64px; flex: none; font-size: 11px; line-height: 1.9; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--nx-on-cream-2); }
#nx .nx-prow .v { flex: 1; min-width: 0; } #nx .nx-prow.mk { background: var(--nx-cream-3); } #nx .nx-prow.over .v b { color: #8A3B1F; }
#nx .nx-gst { display: inline-flex; vertical-align: -8px; margin-right: 6px; } #nx .nx-gst .nx-f { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--nx-cream); } #nx .nx-gst .nx-f + .nx-f { margin-left: -7px; }
#nx .nx-bar { display: block; height: 3px; background: var(--nx-cream-line); margin-top: 6px; position: relative; } #nx .nx-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--nx-on-cream); }
#nx .nx-n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--nx-cream-line); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; color: var(--nx-on-cream-2); margin: 0 5px; }
#nx .nx-row.nx-mk { background: var(--nx-cream-3); transition: background-color 400ms; }
#nx .nx-btn[disabled] { opacity: .6; pointer-events: none; }
#nx .nx-rev { gap: 6px; }
#nx .nx-nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--nx-cream-line); border-bottom: 1px solid var(--nx-cream-line); margin-top: 6px; }
#nx .nx-nums button { text-align: left; padding: 10px 10px 10px 0; display: flex; flex-direction: column; gap: 2px; transition: background-color 150ms; }
#nx .nx-nums button + button { border-left: 1px solid var(--nx-cream-line); padding-left: 12px; } #nx .nx-nums button:hover { background: var(--nx-cream-2); }
#nx .nx-nums b { font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--nx-on-cream); font-variant-numeric: tabular-nums; }
#nx .nx-nums span { font-size: 13px; line-height: 1.35; color: var(--nx-on-cream-2); }
#nx .nx-rows.nx-tight { margin-top: 0; } #nx .nx-rows.nx-tight .nx-row { padding: 6px 0; font-size: 14.5px; }
#nx .nx-rows.nx-tight .nx-f { width: 26px; height: 26px; } #nx .nx-rows.nx-tight .nx-f.nx-agb { width: 18px; height: 18px; margin: 4px; }
#nx .nx-lesson { color: var(--nx-on-cream); }
#nx .nx-eve { position: absolute; left: var(--nx-rail); right: var(--nx-mel); top: var(--nx-top); bottom: 0; pointer-events: none; background: linear-gradient(180deg, rgba(58,52,78,.42), rgba(40,46,62,.36)); opacity: 0; }

/* 0.94: Mel's column scrolls, newest at the bottom; a process new from the Studio is marked in the Engine */
#nx .nx-log { overflow-y: auto !important; scrollbar-width: none; } #nx .nx-log::-webkit-scrollbar { display: none; }
#nx .nx-log > :first-child { margin-top: auto; }

/* ---------- 0.95: hold to talk, sound, attachments ---------- */
#nx .listening .nx-bars i { opacity: 1; }
#nx .nx-mic { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
#nx .nx-mic.hold { background: var(--nx-led); color: var(--nx-slate); box-shadow: 0 0 0 4px rgba(101,205,210,.25); }
#nx .nx-mic.hold::after { content: ""; position: absolute; inset: -6px; border-radius: 6px; border: 2px solid var(--nx-led); animation: nx-ear 1.1s ease-out infinite; pointer-events: none; }
@keyframes nx-ear { from { opacity: .9; transform: scale(.92); } to { opacity: 0; transform: scale(1.18); } }
#nx.nx-ear .nx-inp { border-color: var(--nx-led); }
#nx .nx-snd { width: 32px; height: 32px; border-radius: 3px; display: grid; place-items: center; color: var(--nx-on-slate-2); flex: none; margin-left: 4px; }
#nx .nx-snd:hover { color: var(--nx-cream); background: var(--nx-slate-2); } #nx .nx-snd svg { width: 18px; height: 18px; } #nx .nx-snd.off { color: var(--nx-on-slate-2); opacity: .7; }
#nx .nx-clip { width: 36px; height: 40px; border-radius: 3px; display: grid; place-items: center; color: var(--nx-on-slate-2); flex: none; }
#nx .nx-clip:hover { color: var(--nx-cream); background: var(--nx-slate); } #nx .nx-clip svg { width: 18px; height: 18px; }
#nx .nx-inp { padding-left: 14px; gap: 6px; }
#nx .nx-drop { position: absolute; inset: 12px; border: 2px dashed var(--nx-led); border-radius: 12px; background: rgba(66,75,84,.94); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; pointer-events: none; z-index: 5; }
#nx .nx-drop b { font-size: 19px; color: var(--nx-cream); } #nx .nx-drop span { font-size: 14px; color: var(--nx-on-slate-2); }
#nx.nx-dragging .nx-drop { display: flex; }
#nx .nx-mel { position: absolute; }
#nx .nx-files { display: flex; flex-direction: column; gap: 6px; background: none !important; padding: 0 !important; }
#nx .nx-file { display: flex; align-items: center; gap: 10px; background: var(--nx-slate-2); border: 1px solid var(--nx-line); border-radius: 3px; padding: 8px 12px 8px 8px; max-width: 280px; }
#nx .nx-file .ic { width: 36px; height: 36px; border-radius: 3px; background: var(--nx-cream); color: var(--nx-slate); font-size: 10px; font-weight: 700; letter-spacing: .04em; display: grid; place-items: center; flex: none; }
#nx .nx-file .th { width: 36px; height: 36px; border-radius: 3px; background-size: cover; background-position: center; flex: none; }
#nx .nx-file > span:last-child { min-width: 0; } #nx .nx-file b { display: block; font-size: 14px; font-weight: 600; color: var(--nx-cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #nx .nx-file span span { font-size: 12px; color: var(--nx-on-slate-2); }

/* 3.1: Mel folded to a slim strip: her face, her bars, the button to open her, and the mic. The city, the Engine and the pages widen into the space */
html.nx-melfold #nx { --nx-mel: 64px; }
#nx .nx-mel { transition: width 260ms cubic-bezier(.2,.8,.2,1), padding 260ms; }
#nx .nx-top, #nx .nx-eng, #nx .nx-eve { transition: right 260ms cubic-bezier(.2,.8,.2,1); }
#nx .nx-mfold { width: 32px; height: 32px; border-radius: 3px; display: grid; place-items: center; color: var(--nx-on-slate-2); flex: none; }
#nx .nx-mfold:hover { color: var(--nx-cream); background: var(--nx-slate-2); } #nx .nx-mfold svg { width: 18px; height: 18px; transition: transform 260ms; }
html.nx-melfold #nx .nx-mfold svg { transform: rotate(180deg); }
html.nx-melfold #nx .nx-mel { padding: 14px 0; align-items: center; cursor: pointer; overflow: hidden; }
html.nx-melfold #nx .nx-mh { flex-direction: column; gap: 12px; }
html.nx-melfold #nx .nx-nm, html.nx-melfold #nx .nx-log, html.nx-melfold #nx .nx-sug, html.nx-melfold #nx .nx-inp input, html.nx-melfold #nx .nx-clip { display: none !important; }
html.nx-melfold #nx .nx-snd { margin-left: 0; }
html.nx-melfold #nx .nx-inp { margin-top: auto; border: 0; background: none; padding: 0; height: auto; }
html.nx-melfold #nx .nx-mface::after { content: ""; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--nx-led); box-shadow: 0 0 0 2px var(--nx-slate); opacity: 0; transition: opacity 200ms; }
html.nx-melfold #nx .nx-mel.nx-unread .nx-mface::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #nx .nx-mel, #nx .nx-top, #nx .nx-eng, #nx .nx-eve, #nx .nx-mfold svg { transition: none; } }
/* 3.5: folded, Mel shows one dot only (the unread one, top right); the breathing "here" dot goes */
html.nx-melfold #nx .nx-mface i { display: none; }
