:root {
  --bg: #06131A;
  --ink: #FFFFFF;
  --soft: #D3E7E2;
  --mute: #9FBDB7;
  --mint: #4FF0A2;
  --mint-ink: #04231A;
  --teal: #2FD8C5;
  --pink: #FF5E7E;
  --pink-soft: #FFAE9A;
  --hot: linear-gradient(135deg, #FF8A3D, #FF3D86);
  --hot-ink: #3A0A14;
  --line: rgba(190, 255, 235, .2);
  --hair: rgba(190, 255, 235, .13);
  --stage: 560px;
  --pad: 44px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--mint); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---- background ----
   Three layers: soft colour fields, a slow field of drifting points drawn on a canvas
   (app.js), and a fine grain on top. The grain is what stops the dark gradients from
   showing as visible bands. */
.backdrop { position: fixed; inset: 0; pointer-events: none; background:
  radial-gradient(60% 55% at 12% 38%, rgba(11, 122, 88, .34), transparent 70%),
  radial-gradient(55% 60% at 58% 62%, rgba(10, 127, 143, .26), transparent 72%),
  radial-gradient(38% 42% at 94% 20%, rgba(255, 94, 80, .13), transparent 70%),
  linear-gradient(180deg, #071920, #050F15); }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .11; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- shared ---- */
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }
.glass { background: rgba(160, 255, 225, .06); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn { font-weight: 500; font-size: 15px; border-radius: 14px; padding: 0 20px; min-height: 48px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn.quiet { border-color: transparent; color: var(--soft); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 300; }
.ok { color: var(--mint); }
.warn { color: var(--pink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px 2px rgba(79, 240, 162, .7); flex: none; }
.dot.off { background: var(--pink); box-shadow: 0 0 10px 2px rgba(255, 94, 126, .6); }
.bar { display: flex; align-items: center; gap: 12px; border-radius: 30px; padding: 0 24px; min-height: 58px; }
.bar input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-weight: 300; font-size: 18px; }
.bar input::placeholder { color: var(--mute); }

/* ---- layout ---- */
/* The view scrolls underneath a floating header and a floating command bar.
   Its edges fade out (mask) so nothing is cut off by a hard line. */
.app { position: relative; height: 100dvh; overflow: hidden; --top-space: 88px; --bottom-space: 112px; --fade-bottom: 36px; }
.top { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 26px var(--pad) 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.logo { font-weight: 600; font-size: 20px; letter-spacing: .02em; color: var(--ink); text-decoration: none; margin: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.nav a { padding: 10px 16px; font-size: 14px; color: var(--soft); text-decoration: none; border: 1px solid transparent; border-radius: 20px; }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .07); border-color: var(--line); }
.nav a .count { margin-left: 6px; color: var(--pink-soft); }
.status { display: flex; align-items: center; gap: 8px; background: transparent; border: 0; cursor: pointer; padding: 10px 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.menu { position: absolute; right: var(--pad); top: 68px; z-index: 5; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 250px; background: rgba(8, 28, 34, .92); }
.menu button { text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 12px; cursor: pointer; font-size: 15px; }
.menu button:hover { background: rgba(255, 255, 255, .08); }
.menu .mono { padding: 8px 12px; text-transform: none; letter-spacing: 0; }
.view {
  position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column;
  padding-top: var(--top-space); padding-bottom: var(--bottom-space);
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--top-space) * .5), #000 calc(var(--top-space) + 14px), #000 calc(100% - var(--fade-bottom) - 40px), transparent calc(100% - var(--fade-bottom) + 30px));
  mask-image: linear-gradient(to bottom, transparent calc(var(--top-space) * .5), #000 calc(var(--top-space) + 14px), #000 calc(100% - var(--fade-bottom) - 40px), transparent calc(100% - var(--fade-bottom) + 30px));
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view > * { flex-shrink: 0; }
.command { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; justify-content: center; padding: 14px var(--pad) 28px; pointer-events: none; }
.command .bar { width: 100%; max-width: 680px; pointer-events: auto; background: rgba(255, 255, 255, .09); }
.tabs { display: none; }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; font-size: 14px; background: rgba(8, 28, 34, .92); z-index: 10; max-width: calc(100vw - 32px); }

/* ---- home ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 50px 6px rgba(79, 240, 162, .2), inset 0 0 30px rgba(79, 240, 162, .2); } 50% { box-shadow: 0 0 110px 28px rgba(79, 240, 162, .4), inset 0 0 55px rgba(79, 240, 162, .45); } }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes flow { 0% { left: -2%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { left: 102%; opacity: 0; } }
@keyframes beam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.home { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 44px; padding: 16px var(--pad) 0; }
.home .side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Each line of the greeting is one whole phrase: sized to the column so none breaks mid-sentence. */
.hello { container-type: inline-size; }
.hello .when span, .hello h1 span, .hello p.sub span { display: block; white-space: nowrap; }
.hello .when { line-height: 1.7; }
.hello h1 { font-weight: 200; font-size: clamp(28px, 12.4cqw, 50px); line-height: 1.05; margin: 14px 0 0; letter-spacing: -.01em; }
.hello .tz { color: var(--mint); }
.hello p.sub { font-weight: 300; font-size: clamp(14px, 6.4cqw, 18px); line-height: 1.5; color: var(--soft); margin: 14px 0 0; }
.hello p.sub span:last-child:not(:first-child) { color: var(--mute); }

/* schedule */
.sched { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 30px var(--pad) 0; display: flex; flex-direction: column; gap: 16px; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shead h1 { font-weight: 200; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 10px 0 0; }
.shead h1 span { color: var(--mute); }
.snav { display: flex; gap: 8px; }
.snav .btn { min-height: 44px; padding: 0 16px; }
.snote { margin: 0; font-size: 14px; }
.scols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 18px; align-items: start; }
.smain, .sside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cal { padding: 14px; }
.cal .wk, .cal .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .wk { padding: 2px 0 10px; }
.cal .wk .mono { text-align: center; font-size: 11px; }
.cday { position: relative; min-height: 104px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--ink); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow: hidden; }
.cday.blank { border-color: transparent; background: none; cursor: default; }
.cday:not(.blank):hover { border-color: rgba(255, 255, 255, .4); }
.cday.past { opacity: .5; }
.cday .n { font: 400 13px 'IBM Plex Mono', monospace; color: var(--soft); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.cday.today .n { background: var(--mint); color: var(--mint-ink); font-weight: 600; }
.cday.sel { border-color: var(--mint); background: rgba(79, 240, 162, .08); opacity: 1; }
.cday .chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chip { display: block; font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--soft); }
.chip i, .sev > i, .up .line i, .cday .dots i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--k, var(--mint)); margin-right: 5px; flex: none; }
.chip b { font-weight: 500; color: var(--ink); }
.chip.more, .chip.k-holiday { color: var(--mute); }
.cday .dots { display: none; }
.sday, .sup, .sbrief { padding: 20px; }
.sday h2 { font-weight: 300; font-size: 24px; line-height: 1.2; margin: 8px 0 14px; }
.sched .m { margin: 0; font-size: 14px; line-height: 1.5; color: var(--soft); }
.sched .m.hint { color: var(--mute); margin-top: 14px; }
.sev { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.sev > i { margin: 5px 0 0; width: 9px; height: 9px; }
.sev .what { flex: 1; min-width: 0; }
.sev .t { margin: 5px 0 3px; font-size: 16px; line-height: 1.35; }
.sev .notes { color: var(--mute); margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.sev .rm { min-height: 36px; padding: 0 10px; font-size: 13px; flex: none; }
.sev .rm:hover { color: var(--pink-soft); }
.sev .ask { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sev .ask p { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--pink-soft); }
.sev .ask .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.sup { display: flex; flex-direction: column; gap: 4px; }
.sup > .mono { margin-bottom: 6px; }
.up { display: flex; flex-direction: column; gap: 5px; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 0; cursor: pointer; min-width: 0; }
.up:hover .mono { color: var(--mint); }
.up .line { display: flex; align-items: baseline; gap: 2px; font-size: 14px; line-height: 1.4; min-width: 0; }
.up .line b { font: 400 12px 'IBM Plex Mono', monospace; color: var(--soft); flex: none; width: 52px; }
.up .line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbrief .t { margin: 10px 0 0; font-size: 18px; font-weight: 300; line-height: 1.4; }
.sbrief .body p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--soft); }
.sbrief .body .h { margin-top: 18px; color: var(--mint); }
.panel { padding: 18px 20px; }
.panel > .mono { margin-bottom: 10px; }
.systems .row.head { font-weight: 400; }
.systems .row .mono { white-space: nowrap; text-align: right; }
.systems .row.sub { padding: 7px 0 7px 14px; border-top: 0; font-size: 14px; color: var(--soft); }
.systems .row.sub + .row.head { margin-top: 6px; }
.panel small { font-size: 12px; color: var(--mute); margin-left: 6px; }
.meter { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.meter span { display: block; height: 4px; background: var(--mint); }

.orbit { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.stage { position: relative; flex: none; width: var(--stage); height: var(--stage); max-width: 100%; margin: 0 92px; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(190, 255, 235, .16); }
.ring.job { border-color: rgba(47, 216, 197, .32); }
.ring.halo { inset: 14%; border-style: dashed; border-color: rgba(255, 94, 126, .28); animation: spin 160s linear infinite; }
.ring.halo.calm { border-color: rgba(190, 255, 235, .12); }
.ring.arc1 { inset: 33.4%; border-color: transparent; border-top-color: var(--mint); border-right-color: rgba(79, 240, 162, .35); animation: spin 9s linear infinite; }
.ring.arc2 { inset: 35.2%; border-color: transparent; border-bottom-color: rgba(255, 94, 126, .8); animation: spin 14s linear infinite reverse; }
.hand { position: absolute; left: 50%; top: 50%; width: 1px; height: 31%; transform-origin: 0 0; background: linear-gradient(rgba(79, 240, 162, 0), rgba(79, 240, 162, .7)); }
.core { position: absolute; inset: 37.2%; border-radius: 50%; background: rgba(6, 19, 26, .88); border: 1px solid var(--pink); animation: pulse-hot 4s ease-in-out infinite; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); transition: scale .25s; }
.core:hover { scale: 1.05; }
.core b { font-weight: 300; font-size: calc(var(--stage) * .107); line-height: 1; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.core .mono { color: var(--pink-soft); margin-top: 2px; font-size: clamp(10px, calc(var(--stage) * .021), 12px); }
.core.calm { border-color: rgba(79, 240, 162, .6); animation-name: pulse; }
.core.calm b { background: none; color: var(--ink); }
.core.calm .mono { color: var(--mint); }
@keyframes pulse-hot { 0%, 100% { box-shadow: 0 0 50px 6px rgba(255, 94, 126, .2), inset 0 0 30px rgba(255, 94, 126, .18); } 50% { box-shadow: 0 0 110px 26px rgba(255, 110, 80, .38), inset 0 0 55px rgba(255, 94, 126, .4); } }
.mark { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pip { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); }
.pip.done { background: var(--mint); border-color: var(--mint); }
.pip.failed { background: var(--pink); border-color: var(--pink); }
.pip.now { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px 4px rgba(79, 240, 162, .6); }
/* one small tick per run of a job, on that job's ring */
.tick { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(47, 216, 197, .7); }
.tick.past { background: rgba(47, 216, 197, .75); border-color: transparent; }
.tick.failed { background: var(--pink); border-color: var(--pink); }
.tick.next { left: -4.5px; top: -4.5px; width: 9px; height: 9px; background: var(--mint); border-color: var(--mint); box-shadow: 0 0 14px 4px rgba(79, 240, 162, .6); }
.tick.next::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--mint); animation: ping 2.8s ease-out infinite; }
/* things that need Alex: a glowing dot on the outer ring, a line, and a label to click */
.call { position: absolute; height: 0; display: flex; align-items: center; text-decoration: none; color: var(--ink); animation: bob 6s ease-in-out infinite; z-index: 2; }
.call.r { right: -84px; }
.call.l { left: -84px; flex-direction: row-reverse; }
.call .need { position: relative; left: auto; top: auto; flex: none; margin: 0 -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--hot); color: var(--hot-ink); font: 600 12px 'IBM Plex Mono', monospace; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px 5px rgba(255, 94, 126, .5); transition: scale .2s; }
.call .need::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--pink); animation: ping 2.4s ease-out infinite; }
.call .wire { flex: 1 1 auto; min-width: 18px; height: 1px; margin: 0 0 0 15px; background: linear-gradient(90deg, rgba(255, 94, 126, .9), rgba(255, 138, 61, .35)); }
.call.l .wire { margin: 0 15px 0 0; background: linear-gradient(270deg, rgba(255, 94, 126, .9), rgba(255, 138, 61, .35)); }
.call .tag { flex: none; width: 176px; padding: 10px 14px; border-radius: 14px; background: rgba(8, 28, 34, .82); border: 1px solid rgba(255, 94, 126, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; line-height: 1.3; transition: border-color .2s, box-shadow .2s, translate .2s; }
.call .tag .mono { display: block; font-size: 10px; color: var(--pink-soft); margin-bottom: 3px; }
.call .tag .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.call:hover { z-index: 3; animation-play-state: paused; }
.call:hover .need { scale: 1.18; }
.call:hover .tag { border-color: var(--pink); box-shadow: 0 0 34px rgba(255, 94, 126, .35); }
.call.r:hover .tag { translate: 4px 0; }
.call.l:hover .tag { translate: -4px 0; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.legend i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--teal); }
.legend i.ok { background: var(--teal); }
.legend i.bad { background: var(--pink); border-color: var(--pink); }
.bobbing { animation: bob 5.5s ease-in-out infinite; }

.priority { padding: 24px; border-color: var(--pink); box-shadow: 0 0 50px rgba(255, 94, 126, .2); background: linear-gradient(160deg, rgba(255, 138, 61, .1), rgba(255, 61, 134, .06) 60%, rgba(160, 255, 225, .05)); }
.priority .mono { color: var(--pink-soft); }
.priority h2 { margin: 10px 0 0; font-size: 26px; font-weight: 500; line-height: 1.2; }
.priority p.body { margin: 8px 0 16px; font-size: 15px; font-weight: 300; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 auto; }
.actions .other { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 100%; }
.actions .other input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; outline: 0; font-size: 16px; }
.actions .other input:focus { border-color: var(--mint); }
.actions .other input::placeholder { color: var(--mute); }
.actions .other .btn { flex: 0 1 auto; }
.others { display: flex; flex-direction: column; gap: 14px; }
.mini-card { display: block; padding: 16px 20px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.mini-card p.t { margin: 6px 0 0; font-size: 16px; }
.calm-card { padding: 24px; }
.calm-card h2 { margin: 10px 0 0; font-size: 24px; font-weight: 300; line-height: 1.25; }

/* event kinds: one colour each, used by the timeline and the phone agenda */
.k-shoot { --k: #FF8A3D; } .k-edit { --k: #8FA8FF; } .k-deadline { --k: #FF3D86; }
.k-holiday { --k: #7C948F; } .k-travel { --k: #FFD166; } .k-meeting { --k: #2FD8C5; } .k-personal { --k: #4FF0A2; }
.timeline { position: relative; margin: 8px var(--pad) 0; flex: none; container-type: inline-size; }
.tl-head { display: flex; align-items: flex-start; gap: 18px; min-height: 46px; }
.kinds { display: flex; gap: 14px; flex: 1; }
.kinds span, .agenda b { font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.kinds span { display: inline-flex; align-items: center; gap: 6px; }
.kinds i, .agenda i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 10px var(--k); flex: none; }
.flags { display: flex; gap: 10px; }
.flag { display: block; width: 200px; padding: 8px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--k) 60%, transparent); background: color-mix(in srgb, var(--k) 9%, rgba(8, 28, 34, .7)); font-size: 13px; line-height: 1.3; }
.flag b { display: block; font: 400 10px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--k); margin-bottom: 2px; }
.flag span, .ev .lbl span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.track { position: relative; height: 196px; margin-top: 6px; }
.track .line { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: linear-gradient(90deg, rgba(190, 255, 235, .12), rgba(190, 255, 235, .5) 12%, rgba(190, 255, 235, .5) 88%, rgba(190, 255, 235, .12)); }
.track .part { position: absolute; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .7; animation: flow 14s linear infinite; }
.track .beam { position: absolute; top: -6px; height: 40px; width: 2px; margin-left: -1px; background: var(--mint); box-shadow: 0 0 20px 4px rgba(79, 240, 162, .5); animation: beam 3s ease-in-out infinite; }
.track .hr { position: absolute; top: -6px; transform: translateX(-50%); font: 400 10px 'IBM Plex Mono', monospace; color: rgba(159, 189, 183, .55); }
.track .none { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); white-space: nowrap; }
.ev { position: absolute; top: 14px; width: 0; height: 0; }
.ev::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--k); box-shadow: 0 0 14px var(--k); }
.ev .span { position: absolute; left: 0; top: -2px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--k) 55%, transparent); }
.ev .stem { position: absolute; left: 0; top: 6px; width: 1px; background: linear-gradient(var(--k), color-mix(in srgb, var(--k) 25%, transparent)); }
.ev .lbl { position: absolute; width: 150px; padding-left: 9px; border-left: 1px solid color-mix(in srgb, var(--k) 25%, transparent); font-size: 13px; line-height: 1.3; color: var(--soft); }
.ev .lbl[style*="right"] { padding: 0 9px 0 0; border-left: 0; border-right: 1px solid color-mix(in srgb, var(--k) 25%, transparent); text-align: right; }
.ev .lbl b { display: block; font: 400 11px 'IBM Plex Mono', monospace; color: var(--k); }
.ev.past { opacity: .62; }
.ev.live::after { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--k); animation: ping 2.4s ease-out infinite; }
.ev.live .lbl { color: var(--ink); }
.agenda { display: none; }
.agenda div { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.agenda b { flex: none; width: 58px; color: var(--k); }
.agenda span { min-width: 0; }

/* ---- inbox ---- */
.inbox { flex: 1; display: flex; flex-wrap: wrap; gap: 32px; padding: 36px var(--pad) 0; }
.queue { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.queue button { text-align: left; padding: 16px 18px; border-radius: 16px; cursor: pointer; }
.queue button[aria-current="true"] { border-color: var(--pink); box-shadow: 0 0 36px rgba(255, 94, 126, .18); }
.queue button[aria-current="true"] .mono { color: var(--pink-soft); }
.queue button span.t { display: block; margin-top: 6px; font-size: 17px; }
.focus { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.focus .frame { position: relative; padding: 48px 52px; animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.corner { position: absolute; width: 24px; height: 24px; border: 1px solid var(--mint); }
.corner.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.corner.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.corner.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.corner.br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.focus .mono.kicker { color: var(--pink-soft); font-size: 13px; }
.focus h1 { font-weight: 200; font-size: clamp(36px, 5vw, 72px); line-height: 1.03; letter-spacing: -.02em; margin: 20px 0 0; }
.cursor { display: inline-block; width: .08em; height: .8em; background: var(--mint); margin-left: .12em; animation: blink 1.1s steps(1) infinite; }
.focus p.body { font-weight: 300; font-size: 19px; color: var(--soft); margin: 22px 0 0; max-width: 620px; }
.detail { padding: 18px 20px; margin-top: 20px; border-radius: 16px; font-weight: 300; font-size: 16px; line-height: 1.55; color: var(--soft); max-width: 700px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.focus .actions { margin-top: 28px; }
.focus .actions .btn { flex: 0 1 auto; min-height: 52px; padding: 0 24px; }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--pad); gap: 10px; }
.empty h1 { font-weight: 200; font-size: clamp(34px, 5vw, 56px); margin: 0; }
.empty p { font-weight: 300; font-size: 18px; color: var(--soft); margin: 0; }

/* ---- feed and chat ---- */
.feed { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 36px var(--pad) 0; display: flex; flex-direction: column; gap: 12px; }
.feed h1 { font-weight: 200; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 10px 0 14px; }
.entry { padding: 18px 20px; border-radius: 16px; }
.entry.needs { border-color: var(--pink); }
.entry .head { display: flex; justify-content: space-between; gap: 12px; }
.entry p.t { margin: 8px 0 0; font-size: 18px; }
.entry p.b { margin: 4px 0 0; font-size: 15px; font-weight: 300; color: var(--soft); white-space: pre-wrap; }
.chatpanel { position: absolute; z-index: 5; left: 50%; bottom: 104px; transform: translateX(-50%); width: min(680px, calc(100% - 2 * var(--pad))); max-height: min(56vh, 560px); display: flex; flex-direction: column; background: rgba(6, 24, 30, .86); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); animation: chatin .22s ease-out; }
.chatpanel[hidden] { display: none; }
.chatpanel header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 20px; border-bottom: 1px solid var(--line); }
.chatpanel header p { margin: 0; }
.chatpanel header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; }
.chatpanel header button:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.chatbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.chatbody .none { margin: 6px 0; font-weight: 300; color: var(--soft); }
.chatbtn { position: relative; flex: none; width: 40px; height: 40px; margin-right: -12px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--soft); cursor: pointer; }
.chatbtn.mic { margin-right: 0; }
.chatbtn.mic[aria-pressed="true"] { background: rgba(255, 94, 126, .2); color: var(--pink); animation: soft 1.2s ease-in-out infinite; }
.chatbtn:hover, .chatbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: var(--mint); }
.chatbtn.unread::after, .chatbtn.busy::after { content: ""; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.chatbtn.busy::after { background: var(--mint); animation: soft 1.2s ease-in-out infinite; }
.msg.thinking { display: flex; gap: 5px; padding: 15px 16px; }
.msg.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: soft 1.2s ease-in-out infinite; }
.msg.thinking i:nth-child(2) { animation-delay: .2s; }
.msg.thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes chatin { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes soft { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 16px; font-weight: 300; line-height: 1.5; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: rgba(79, 240, 162, .14); border: 1px solid rgba(79, 240, 162, .5); border-bottom-right-radius: 6px; }
.msg.drifty { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .mono { display: block; margin-top: 6px; font-size: 11px; }

.hold { margin-top: 18px; }
.hold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--ink, #fff); transition: background .15s, border-color .15s; }
.hold > summary:hover, .hold > summary:focus-visible { background: rgba(79, 240, 162, .1); border-color: rgba(79, 240, 162, .5); outline: none; }
.hold > summary::-webkit-details-marker { display: none; }
.hold > summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 400; line-height: 1; color: var(--mint); border: 1px solid rgba(79, 240, 162, .5); }
.hold[open] > summary::after { content: "\2212"; }
.hold[open] > summary { margin-bottom: 18px; }
.hold > .sec { margin: 22px 0 12px; }

.coin { display: grid; grid-template-columns: auto minmax(120px, 1fr); align-items: center; gap: 14px 28px; padding: 20px 22px; }
.coin .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.coin .big b { font-weight: 200; font-size: clamp(30px, 4vw, 44px); }
.coin .big small { font: 400 11px 'IBM Plex Mono', monospace; color: var(--mute); }
.coin .spark { width: 100%; height: 48px; }
.coin .facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.coin .facts div { display: flex; flex-direction: column; gap: 4px; }
.coin .facts b { font-weight: 400; font-size: 17px; }
.coin .facts .mono { font-size: 10.5px; }

.entry .actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry .actions .btn { flex: 0 1 auto; min-height: 42px; }

.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tcard { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tcard .val { font-weight: 200; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin-top: 4px; }
.tcard .gl { margin: 0; font-size: 16px; }
.tcard .gl small { font-weight: 300; font-size: 12px; color: var(--mute); margin-left: 4px; }
.tcard .spark { width: 100%; height: 46px; margin: 8px 0 4px; display: block; overflow: visible; }
.tcard .row2 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 300; font-size: 13px; color: var(--soft); }
.tcard .row2 b { font-weight: 400; color: var(--ink); }
.tcard .row2 b.ok { color: var(--mint); } .tcard .row2 b.warn { color: var(--pink-soft); }
.tcard .fine { margin: 6px 0 0; }

.acard { padding: 16px 20px; border-radius: 16px; }
.acard.new { border-color: rgba(255, 94, 126, .55); }
.acard .ahead { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.acard .t { margin: 0; font-size: 16px; font-weight: 400; }
.acard .ahead .mono { white-space: nowrap; font-size: 10.5px; }
.alines { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.alines li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 300; line-height: 1.45; color: var(--soft); }
.alines li b { font-weight: 500; color: var(--ink); font-size: 13.5px; }
.alines li.plain { grid-template-columns: 1fr; color: var(--mute); }
.srcs { margin-top: 8px; }
.srcs summary { cursor: pointer; font-size: 10.5px; color: var(--teal); list-style: none; }
.srcs summary::-webkit-details-marker { display: none; }
.srcs summary::after { content: " +"; }
.srcs[open] summary::after { content: " \2212"; }
.srcs ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 300; color: var(--mute); overflow-wrap: anywhere; }
.srcs a, .more-link { color: var(--teal); }
.acard .actions { margin-top: 12px; display: flex; gap: 8px; }
.acard .actions .btn { flex: 0 1 auto; min-height: 40px; padding: 0 22px; }
.pastlist { padding: 0 20px; }
.acard.past { padding: 0; border-radius: 0; }
.acard.past + .acard.past { border-top: 1px solid var(--line); }
.acard.past > summary { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 13px 0; cursor: pointer; list-style: none; }
.acard.past > summary::-webkit-details-marker { display: none; }
.acard.past > summary::after { content: "+"; order: 3; flex: none; width: 22px; text-align: center; color: var(--mint); font-size: 20px; line-height: 1; align-self: center; }
.acard.past[open] > summary::after { content: "\2212"; }
.acard.past > summary .t { flex: 1; min-width: 0; font-size: 15px; font-weight: 300; color: var(--soft); }
.acard.past > summary .mono { font-size: 10.5px; white-space: nowrap; }
.acard.past[open] { padding-bottom: 14px; }
.conds { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
.cond { font: 400 10.5px 'IBM Plex Mono', monospace; font-style: normal; letter-spacing: .03em; color: var(--mute); }
.cond.yes { color: var(--mint); }
.cond.yes::before { content: "\2713 "; }
.cond.no::before { content: "\00D7 "; }
.priority .body { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-link { display: inline-block; margin-top: 8px; font-size: 11px; text-decoration: none; }
@media (max-width: 820px) { .alines li { grid-template-columns: 1fr; gap: 2px; } }

/* ---- prospects ---- */
.prospects { max-width: 1080px; }
.prospects .updated { margin-top: -14px; }
.prospects .updated a { color: var(--teal); }
.prospects .none { margin: 0; padding: 18px 20px; font-weight: 300; color: var(--soft); }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pchip { display: flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--soft); font: 300 14px 'Outfit', sans-serif; cursor: pointer; }
.pchip b { font-weight: 500; font-size: 18px; color: var(--ink); }
.pchip:hover { border-color: var(--teal); }
.pchip.on { border-color: var(--mint); background: rgba(79, 240, 162, .12); color: var(--ink); }
.pbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: 18px; }
.pbar input, .padd input, .pbar select, .pedit input, .pedit select, .pedit textarea { min-height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(6, 19, 26, .55); color: var(--ink); font: 300 15px 'Outfit', sans-serif; outline: 0; min-width: 0; }
.pbar input { flex: 2 1 220px; }
.pbar select { flex: 1 1 130px; }
.pbar input:focus, .pbar select:focus, .pedit input:focus, .pedit select:focus, .pedit textarea:focus { border-color: var(--mint); }
.pbar input::placeholder { color: var(--mute); }
.plist { padding: 4px 0; border-radius: 18px; overflow: hidden; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow.open { background: rgba(79, 240, 162, .05); }
.phead { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 62px 148px; align-items: center; gap: 18px; padding: 12px 20px; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.phead:hover { background: rgba(255, 255, 255, .04); }
.pname, .pwho { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pname b, .pwho b { font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwho b { font-size: 15px; }
.pname small { font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pwho small { font-weight: 300; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.pwho.nobody b { font-weight: 300; color: var(--mute); }
.pwho .sent { font: 400 10px 'IBM Plex Mono', monospace; font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--mint); margin-left: 8px; }
.prio { font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); text-align: right; }
.prio.high { color: var(--pink-soft); }
.prio.medium { color: var(--teal); }
.pstat { display: flex; justify-content: flex-end; }
.pstat .pill { white-space: nowrap; }
.pedit { display: flex; flex-direction: column; gap: 12px; padding: 4px 20px 18px; }
.pedit label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pedit label .mono { font-size: 10.5px; }
.pedit textarea { padding: 10px 12px; line-height: 1.5; resize: vertical; }
.pedit select, .pbar select { appearance: none; -webkit-appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pedit select option, .pbar select option { background: #0A2028; color: #E8FFF6; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plinks { display: flex; flex-wrap: wrap; gap: 8px; }
.plink { padding: 7px 13px; border-radius: 20px; border: 1px solid rgba(47, 216, 197, .5); color: var(--teal); font-size: 13px; text-decoration: none; }
.plink:hover { background: rgba(47, 216, 197, .12); }
.pfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pfoot .grow { flex: 1; }
.pfoot .btn { min-height: 42px; }
.pedit label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 300; font-size: 14px; color: var(--soft); cursor: pointer; }
.pedit label.check input { min-height: 0; width: 17px; height: 17px; accent-color: var(--mint); }
.pmore { width: 100%; border-top: 1px solid var(--line); border-radius: 0; }

.dlv { display: flex; flex-direction: column; gap: 8px; }
.dlv > .mono { font-size: 10.5px; }
.dl { display: flex; align-items: center; gap: 10px; }
.dl .n { flex: 1; min-width: 0; font-size: 15px; }
.dl b { min-width: 58px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.dl.done .n, .dl.done b { color: var(--mint); }
.dl .step { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.dl .step:hover { border-color: var(--mint); }
.dl .step.x { border-color: transparent; color: var(--mute); }
.dl.add input { flex: 2 1 160px; }
.dl.add input[name="_dl_total"] { flex: 0 1 110px; }
.dl.add .btn { min-height: 42px; }
.dchip { font: 400 10.5px 'IBM Plex Mono', monospace; font-style: normal; letter-spacing: .03em; padding: 2px 8px; margin-left: 8px; border-radius: 12px; border: 1px solid rgba(255, 174, 154, .5); color: var(--pink-soft); vertical-align: middle; }
.dchip.done { border-color: rgba(79, 240, 162, .5); color: var(--mint); }
.btn.danger { border-color: var(--pink); color: var(--pink-soft); }
.pfoot .warn { color: var(--pink-soft); }

/* ---- finance ---- */
.money { max-width: 1080px; }
.money .updated { margin-top: -14px; }
.money .sec { margin-top: 16px; }
.money .none { margin: 0; font-weight: 300; font-size: 18px; color: var(--soft); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fgrid.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.fgrid.pair > :only-child { grid-column: 1 / -1; }
@media (max-width: 720px) { .fgrid.pair { grid-template-columns: minmax(0, 1fr); } }
.fgrid.lead { grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
.fgrid.lead .mcol .bars { height: 110px; gap: 4px; }
.fgrid.lead .mcol .bars span { max-width: 22px; }
.fgrid.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .fgrid.trio { grid-template-columns: minmax(0, 1fr); } }
.fgrid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.fcard { padding: 18px 20px; min-width: 0; }
.fcard .big { margin: 10px 0 4px; font-weight: 200; font-size: 34px; line-height: 1.1; white-space: nowrap; }
.fcard .big + .mono { margin-bottom: 14px; }
.fcard .row span:last-child { white-space: nowrap; }
.fcard .head { display: flex; justify-content: space-between; gap: 12px; }
.fcard .head p:last-child { white-space: nowrap; flex: none; }
.fcard .d { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 5px 0 10px; background: rgba(255, 255, 255, .45); }
.key.in { background: var(--mint); margin-left: 0; }
.strip { display: flex; gap: 4px; margin-top: 16px; }
.mcol { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mcol .bars { width: 100%; height: 72px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--hair); }
.mcol .bars span { flex: 1; max-width: 10px; border-radius: 3px 3px 0 0; background: rgba(255, 255, 255, .45); }
.mcol .bars .in { background: var(--mint); }
.mcol .mono { font-size: 10px; letter-spacing: 0; }
.cat { margin-top: 14px; font-size: 15px; font-weight: 300; }
.cat .meter { display: block; margin-top: 7px; }
.rec { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 300; }
.fcard > .mono + .rec { margin-top: 12px; }
.rec .mono { flex: none; width: 48px; text-transform: none; letter-spacing: 0; }
.rec .d { flex: 1; }
.rec span:last-child { white-space: nowrap; }

/* ---- markets ---- */
.markets .fine { margin-top: 10px; text-transform: none; letter-spacing: 0; }
.entry p.b.more { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--mute); }
.wl-form { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; }
.wl-form input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; outline: 0; font-size: 16px; }
.wl-form input[name="symbol"] { flex: 1 1 150px; text-transform: uppercase; }
.wl-form input:placeholder-shown { text-transform: none; }
.wl-form input:focus { border-color: var(--mint); }
.wl-form input::placeholder { color: var(--mute); }
.wl-form .btn { flex: 0 1 auto; }
.mlist { padding: 4px 20px; }
.mlist .none { padding: 16px 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, .9fr) minmax(0, 1.2fr); grid-template-areas: "id spark px vs"; align-items: center; gap: 4px 18px; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 300; }
.mrow.watch { grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, .9fr) minmax(0, 1.2fr) auto; grid-template-areas: "id spark px vs rm"; }
.mrow:first-child { border-top: 0; }
.mrow .id { grid-area: id; min-width: 0; }
.mrow .id b { display: block; font: 500 14px 'IBM Plex Mono', monospace; letter-spacing: .04em; }
.mrow .id span { display: block; font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow .id .note { color: var(--mute); }
.mrow .spark { grid-area: spark; display: block; width: 100%; height: 30px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark.up polyline { stroke: var(--mint); }
.spark.down polyline { stroke: var(--pink-soft); }
.spark .mark { stroke: rgba(255, 255, 255, .45); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.mrow .px { grid-area: px; text-align: right; white-space: nowrap; }
.mrow .px b { font-weight: 400; font-size: 16px; }
.mrow .px small { font: 400 10px 'IBM Plex Mono', monospace; color: var(--mute); }
.mrow .px span { display: block; font-size: 13px; }
.mrow .vs { grid-area: vs; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 10px; font-size: 13px; color: var(--soft); text-align: right; }
.mrow .vs .avg { flex: 1 1 100%; color: var(--mute); }
.mrow .rm { grid-area: rm; min-height: 40px; padding: 0 10px; font-size: 13px; }
.mrow .rm:hover { color: var(--ink); border-color: var(--line); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(47, 216, 197, .55); font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.pill.mute { border-color: var(--line); color: var(--mute); }
.pill.warn { border-color: rgba(255, 174, 154, .5); color: var(--pink-soft); }
.pill.hot { border-color: transparent; background: var(--hot); color: var(--hot-ink); font-weight: 500; box-shadow: 0 0 18px rgba(255, 94, 126, .35); }

/* ---- login ---- */
.login { position: relative; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.login .logo { font-size: 34px; margin-bottom: 10px; }
.login .bar, .login .btn { width: 100%; max-width: 340px; }
.login #login-error { color: var(--pink-soft); min-height: 16px; text-transform: none; letter-spacing: 0; }

/* ---- phone ---- */
@media (max-width: 1240px) {
  .stage { margin: 0; }
  .call .tag, .call .wire { display: none; }
  .call.r { right: auto; }
  .call.l { left: auto; }
}
@media (max-width: 820px) {
  :root { --stage: min(268px, 72vw); --pad: 18px; }
  .app { --top-space: calc(76px + env(safe-area-inset-top)); --bottom-space: calc(150px + env(safe-area-inset-bottom)); --fade-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabs a .count { margin-left: 5px; color: var(--pink-soft); }
  .b1 { width: 320px; height: 300px; left: -30%; }
  .b2 { width: 300px; height: 300px; left: auto; right: -30%; }
  .b3 { width: 240px; height: 220px; }
  .top { padding-top: calc(14px + max(8px, env(safe-area-inset-top))); justify-content: space-between; }
  .nav { display: none; }
  .menu { top: 58px; }
  .home { flex: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; padding-top: 10px; min-height: calc(100dvh - var(--top-space) - 134px - max(10px, env(safe-area-inset-bottom))); }
  .home .side { flex: none; }
  /* The decision box sits just above the text box and grows upward from there. */
  .home .side:last-child { margin-top: auto; }
  .calm-card { padding: 14px 18px; }
  .calm-card h2 { font-size: 16px; margin-top: 6px; }
  .hello h1 { font-size: clamp(26px, 8.6cqw, 34px); margin-top: 8px; }
  .hello h1 span { display: inline; }
  .hello p.sub { font-size: 15px; margin-top: 6px; }
  .hello p.sub span { display: inline; white-space: normal; }
  .hello p.sub span:last-child:not(:first-child) { display: block; }
  .sched { padding-top: 14px; }
  .scols { grid-template-columns: minmax(0, 1fr); }
  .cal { padding: 10px 8px; }
  .cal .wk, .cal .grid { gap: 3px; }
  .cday { min-height: 54px; padding: 5px 2px; align-items: center; border-radius: 10px; }
  .cday .chips { display: none; }
  .cday .dots { display: flex; gap: 3px; }
  .cday .dots i { margin: 0; width: 5px; height: 5px; }
  .smain { display: contents; }
  .sbrief { order: 3; }
  .home .systems, .home .others, .call .tag, .call .wire { display: none; }
  .call.r { right: auto; }
  .call.l { left: auto; }
  .stage { align-self: center; }
  .priority { padding: 18px; }
  .priority h2 { font-size: 21px; }
  .timeline { margin: 14px 16px 0; }
  .timeline .track, .timeline .flags, .timeline .kinds { display: none; }
  .tl-head { min-height: 0; }
  .agenda { display: block; margin-top: 6px; }
  .inbox { padding-top: 16px; gap: 16px; }
  .queue { display: none; }
  .focus .frame { padding: 28px 22px; }
  .focus .actions .btn { flex: 1 1 auto; }
  .command { padding: 10px 16px 8px; bottom: calc(54px + max(10px, env(safe-area-inset-bottom))); }
  .bar { min-height: 50px; padding: 0 18px; }
  .bar input { font-size: 16px; }
  .tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; padding: 6px 8px max(10px, env(safe-area-inset-bottom)); }
  .tabs { padding-left: 4px; padding-right: 4px; }
  .tabs a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 2px; font-size: 11.5px; font-weight: 500; color: var(--soft); text-decoration: none; white-space: nowrap; }
  .mlist { padding: 2px 14px; }
  .mrow, .mrow.watch { grid-template-columns: minmax(0, 1fr) 76px auto; grid-template-areas: "id spark px" "vs vs vs"; gap: 6px 12px; }
  .mrow.watch { grid-template-areas: "id spark px" "vs vs rm"; }
  .mrow .vs { justify-content: flex-start; text-align: left; }
  .mrow .vs .avg { flex: 0 1 auto; }
  .wl-form input, .wl-form input[name="symbol"] { flex: 1 1 100%; }
  .wl-form .btn { flex: 1 1 100%; }
  .tabs a[aria-current="page"] { color: var(--mint); }
  .toast { bottom: 150px; }
  .phead { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; }
  .pwho, .phead .prio { display: none; }
  .pedit { padding: 4px 14px 16px; }
  .chatpanel { bottom: calc(124px + max(10px, env(safe-area-inset-bottom))); width: calc(100% - 24px); max-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; }
}

/* entry check under a watched stock */
.mrow .echk { grid-column: 1 / -1; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--hair); font-size: 14px; }
.echk.bare { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.echk .mono { font-size: 11px; color: var(--mute); }
.echk summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.echk summary::-webkit-details-marker { display: none; }
.echk summary::after { content: "+"; margin-left: auto; color: var(--mint); font-size: 20px; line-height: 1; }
.echk[open] summary::after { content: "\2212"; }
.echk summary b { font-weight: 600; font-size: 15px; }
.echk .esum { margin: 12px 0 4px; color: var(--soft); line-height: 1.5; }
.elines { margin-top: 8px; }
.eline { display: grid; grid-template-columns: 18px minmax(120px, 210px) minmax(0, 1fr); gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--hair); align-items: baseline; }
.eline i { font-style: normal; font-weight: 600; text-align: center; }
.eline.for i { color: var(--mint); }
.eline.against i { color: var(--pink-soft); }
.eline.neutral i, .eline.unknown i { color: var(--mute); }
.eline b { font-weight: 500; }
.eline span { color: var(--soft); font-weight: 300; }
.eline small { color: var(--mute); margin-left: 4px; }
.eline small a { color: inherit; text-decoration: underline; }
.efoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.echk .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
@media (max-width: 700px) { .eline { grid-template-columns: 18px minmax(0, 1fr); } .eline span { grid-column: 2; } }

.padd { display: flex; gap: 10px; padding: 10px; margin-top: 10px; border-radius: 18px; }
.padd input { flex: 1; min-width: 0; }

/* ---- footage ---- */
.footage { max-width: 1180px; }
.footage .updated { margin-top: -14px; }
.footage .none { margin: 0; padding: 14px 4px; font-weight: 300; color: var(--soft); }
.footage .sec { margin-top: 18px; }
.ftiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ftile { padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; }
.ftile b { font-weight: 300; font-size: 26px; line-height: 1.1; }
.ftile.warn { border-color: rgba(255, 138, 61, .55); }
.ftile.warn b { color: var(--pink-soft); }
.fprog { padding: 16px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.fprog .t { margin: 0; font-size: 16px; }
.fprog .mono { text-transform: none; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fline { height: 6px; border-radius: 3px; background: var(--hair); overflow: hidden; }
.fline i { display: block; height: 100%; border-radius: 3px; background: var(--mint); transition: width .6s ease; }
.fbar { margin-top: 8px; align-items: center; }
.fcheck { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-weight: 300; font-size: 15px; color: var(--soft); min-height: 42px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--mint); }
.fswatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fswatches > .mono { margin-right: 4px; }
.fswatch { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--soft); font: 300 13px 'Outfit', sans-serif; cursor: pointer; }
.fswatch i, .fsw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); }
.fswatch:hover { border-color: var(--teal); }
.fswatch.on { border-color: var(--mint); background: rgba(79, 240, 162, .12); color: var(--ink); }
.fcount { margin: 8px 0; }
/* clip cards: only on the Library page (Finance has its own .fgrid and .fcard boxes) */
.footage .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.footage .fgrid.in { padding: 14px; }
.footage .fcard { display: flex; flex-direction: column; padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: rgba(160, 255, 225, .05); color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.footage .fcard:hover, .footage .fcard:focus-visible { border-color: var(--mint); outline: 0; }
.fthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #02090c; }
.fthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fthumb em { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(2, 9, 12, .78); font: 400 12px 'IBM Plex Mono', monospace; font-style: normal; }
.fbad { position: absolute; inset: 0; display: grid; place-items: center; font: 400 12px 'IBM Plex Mono', monospace; font-style: normal; color: var(--pink-soft); }
.fmeta { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.fmeta b { font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta small { font: 400 11px 'IBM Plex Mono', monospace; letter-spacing: .04em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta span { font-weight: 300; font-size: 13px; line-height: 1.35; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ffolder { border-radius: 18px; overflow: hidden; padding-bottom: 4px; }
.fcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 14px 18px 4px; }
.fcrumbs button { border: 0; background: transparent; color: var(--mint); font: 400 15px 'Outfit', sans-serif; padding: 4px 2px; cursor: pointer; }
.fcrumbs button:last-child { color: var(--ink); }
.fcrumbs i { color: var(--mute); font-style: normal; }
.ftotal { padding: 0 20px 12px; }
.frow { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px 230px 96px; gap: 28px; align-items: center; padding: 12px 20px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.frow:hover { background: rgba(255, 255, 255, .04); }
.frow b { font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow span { font: 400 12px 'IBM Plex Mono', monospace; color: var(--mute); text-align: right; white-space: nowrap; }
.fover { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 84px 16px 112px; background: rgba(2, 9, 12, .86); }
.fpanel { width: min(1080px, 100%); max-height: calc(100dvh - 196px); overflow: auto; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 12px; background: rgba(6, 24, 30, .96); }
.fphead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fphead b { font-weight: 400; font-size: 18px; overflow-wrap: anywhere; }
.fsheet { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px; background: #02090c; }
.fdesc { margin: 0; font-weight: 300; font-size: 17px; line-height: 1.45; }
.fdesc.dim { color: var(--mute); }
.fchips, .fcolours { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips span { padding: 4px 10px; border-radius: 14px; border: 1px solid var(--line); font-weight: 300; font-size: 13px; color: var(--soft); }
.fsw { display: flex; align-items: center; gap: 6px; font: 400 12px 'IBM Plex Mono', monospace; color: var(--mute); margin-right: 8px; }
.fkeys { margin: 0; font-weight: 300; font-size: 13px; color: var(--mute); }
.fpath { margin: 0; font: 400 12px 'IBM Plex Mono', monospace; color: var(--soft); overflow-wrap: anywhere; }
.fpath span { color: var(--mute); }
.fpanel .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.flist { padding: 12px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.fdup { display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
@media (max-width: 820px) {
  .footage .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .frow { grid-template-columns: minmax(0, 1fr) 76px 70px; }
  .frow span:nth-child(3), .frow span:nth-child(4) { display: none; }
  .fmeta span { -webkit-line-clamp: 2; }
}

.ftabs { display: flex; gap: 8px; margin: 6px 0 16px; }
.ftabs button { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--soft); font: 400 14px 'Outfit', sans-serif; cursor: pointer; }
.ftabs button.on { border-color: var(--mint); background: rgba(79, 240, 162, .12); color: var(--ink); }
.fpanel .frow { width: 100%; text-align: left; }

/* ---- library: review screens (extra copies, unreadable files) and the player ---- */
button.ftile { text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
button.ftile:hover, button.ftile:focus-visible { border-color: var(--pink-soft); outline: 0; }
.ftile .fgo { font: 400 12px 'Outfit', sans-serif; color: var(--pink-soft); }
.freview { display: flex; flex-direction: column; gap: 12px; }
.freview h2 { margin: 0; font-weight: 300; font-size: 28px; }
.freview .fback { align-self: flex-start; min-height: 44px; padding: 0 18px; font-size: 16px; border-color: var(--mint); color: var(--mint); }
.freview .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.freview .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.freview .btn[disabled] { opacity: .4; cursor: default; }
.frbar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-radius: 18px; background: rgba(6, 24, 30, .96); }
.frbar .t { margin: 0; font-size: 16px; }
.fgroup { border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fghead { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; }
.fghead .fthumb { width: 168px; flex: none; border-radius: 10px; overflow: hidden; }
.fghead .t { margin: 0 0 4px; font-size: 16px; }
.fghead .mono { margin: 0; }
.fcopy { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fcopy label { display: grid; place-items: center; min-height: 40px; cursor: pointer; }
.fcopy input { width: 20px; height: 20px; accent-color: var(--pink); }
.fcopyinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fcopyinfo p { margin: 0; }
.fcopyinfo b { font-weight: 400; font-size: 15px; overflow-wrap: anywhere; margin-right: 8px; }
.fwhy { font-weight: 300; font-size: 14px; color: var(--soft); }
.ftag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); font: 400 11px 'IBM Plex Mono', monospace; font-style: normal; color: var(--mute); vertical-align: 2px; }
.ftag.keep { border-color: var(--mint); color: var(--mint); }
.ftag.bad { border-color: var(--pink); color: var(--pink-soft); }
.fmore { justify-content: center; padding: 8px 0 20px; }
.fvideo { width: 100%; max-height: 62vh; border-radius: 12px; background: #000; }
.fsheet.big { max-height: 66vh; }
@media (max-width: 820px) {
  .fcopy { grid-template-columns: 30px minmax(0, 1fr); }
  .fcopy .actions { grid-column: 2; }
  .fghead .fthumb { width: 110px; }
}

/* The clip box and the player cover the whole screen, above the header, the text box and the tabs. */
.fover { z-index: 40; padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
.fpanel { max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom))); }
.fpanel .none { margin: 0; padding: 14px 4px; font-weight: 300; color: var(--soft); }
.fpanel .fwait { min-height: 180px; display: grid; place-items: center; text-align: center; }
.fphead { position: sticky; top: -18px; z-index: 2; margin: -18px -20px 0; padding: 14px 20px 10px; background: rgba(6, 24, 30, .98); }
@media (max-width: 820px) {
  .fover { padding-left: 8px; padding-right: 8px; align-items: stretch; }
  .fpanel { padding: 14px 14px 18px; border-radius: 20px; }
  .fphead { top: -14px; margin: -14px -14px 0; padding: 12px 14px 8px; }
  .fphead b { font-size: 16px; }
  .fpanel .actions .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .fvideo { max-height: 46vh; }
  .fsheet { max-height: 36vh; }
}

/* Connections: the short line on Home and the full list it opens. */
.conn-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .04); color: var(--soft); cursor: pointer; }
.conn-pill:hover { background: rgba(255, 255, 255, .08); }
.fpanel.conn { width: min(560px, 100%); }
.fpanel.conn > .mono { margin: 0; }
.fpanel.conn .dim { color: var(--mute); text-transform: none; letter-spacing: 0; }
.fpanel.conn .row.head small { margin-left: 6px; font: 400 11px 'IBM Plex Mono', monospace; color: var(--mute); }
@media (max-width: 820px) { .conn-pill { margin-top: 10px; padding: 8px 12px; } }

/* Cleanup screen */
.fclean { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; }
.fcrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.fnum { min-height: 34px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 15px; }
.fcsum { margin: 4px 0 0; }
.fchatgo { display: block; margin-top: 8px; min-height: 36px; padding: 0 14px; font-size: 14px; }
@media (max-width: 640px) { .fnum[data-fcl="folder"] { width: 100% !important; } }

/* Backups to the NAS ("Back up now") */
.backups { padding: 4px 16px 16px; display: grid; gap: 4px; }
.bk { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--hair); }
.bk:first-child { border-top: 0; }
.bkhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bkline { margin: 2px 0 4px; font-size: 14px; font-weight: 300; color: var(--soft); overflow-wrap: anywhere; }
.bkline.warn { color: var(--warn, #ffb454); }
.bk .btn, .backups > .btn { justify-self: start; }
.backups .btn[disabled] { opacity: .5; cursor: default; }
@media (max-width: 600px) { .bk .btn, .backups > .btn { justify-self: stretch; } }

/* ---- external drive: card in the Library, live page #/backup ---- */
.ssdcard { padding: 16px 18px; display: grid; gap: 10px; margin-bottom: 4px; }
.ssdcard.idle { opacity: .8; }
.ssdhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ssdhead b { font-size: 20px; }
.ssddot { width: 10px; height: 10px; border-radius: 50%; background: var(--mute); flex: none; }
.ssddot.on { background: var(--mint); box-shadow: 0 0 0 0 rgba(79,240,162,.6); animation: ssdpulse 1.8s ease-out infinite; }
@keyframes ssdpulse { 70% { box-shadow: 0 0 0 10px rgba(79,240,162,0); } 100% { box-shadow: 0 0 0 0 rgba(79,240,162,0); } }
.ssdchips { display: flex; gap: 8px; flex-wrap: wrap; }
.ssdchip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.ssdchip.footage { border-color: rgba(47,216,197,.5); } .ssdchip.renders, .ssdchip.exports { border-color: rgba(255,138,61,.6); } .ssdchip.raws, .ssdchip.assets { border-color: rgba(79,240,162,.5); }

.ssdpage { display: grid; gap: 14px; }
.ssdpage h1 { margin: 0; }
.ssdtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ssdbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ssdsub { margin: 0; color: var(--soft); min-height: 1.4em; }
.ssdhero { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: center; padding: 18px 22px; overflow: hidden; position: relative; }
.ssdpage[data-state="copying"] .ssdhero, .ssdpage[data-state="scanning"] .ssdhero { box-shadow: 0 0 60px -20px rgba(79,240,162,.45) inset; }
.ssdring { position: relative; width: 200px; height: 200px; justify-self: center; }
.ssdring svg { width: 100%; height: 100%; overflow: visible; }
.ssdring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.rtrack { stroke: rgba(190,255,235,.12); }
.rfill { stroke: url(#rg); transition: stroke-dashoffset 1.2s cubic-bezier(.3,.7,.2,1); filter: drop-shadow(0 0 8px rgba(79,240,162,.55)); }
.rspin { stroke: rgba(79,240,162,.7); stroke-dasharray: 40 362; opacity: 0; transform-origin: 80px 80px; }
.ssdpage[data-state="scanning"] .rspin, .ssdpage[data-state="waiting"] .rspin { opacity: 1; animation: ssdspin 1.4s linear infinite; }
@keyframes ssdspin { to { transform: rotate(360deg); } }
.rtext { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.rtext b { font-size: 44px; font-weight: 600; letter-spacing: -.02em; }
.rtext span { font-size: 12px; color: var(--mute); }
.ssdpage[data-state="done"] .rtext b, .ssdpage[data-state="checked"] .rtext b { color: var(--mint); }
.ssdpage[data-state="failed"] .rfill { stroke: var(--pink); }
.ssdflow { width: 100%; height: auto; max-height: 300px; }
.fpath { fill: none; stroke: rgba(190,255,235,.16); stroke-width: 2; }
.fdots { fill: none; stroke-linecap: round; opacity: 0; }
.fdots.d1 { stroke: var(--mint); stroke-width: 5; stroke-dasharray: 1 26; }
.fdots.d2 { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 1 13; }
.ssdpage.flowing .fdots { opacity: 1; animation: ssdflow var(--flow, 1.4s) linear infinite; }
.ssdpage.flowing .fdots.d2 { animation-duration: calc(var(--flow, 1.4s) * 1.6); }
@keyframes ssdflow { to { stroke-dashoffset: -27; } }
.ssdnode rect { fill: rgba(190,255,235,.06); stroke: var(--line); stroke-width: 1.5; transition: stroke .4s, fill .4s; }
.ssdnode text { text-anchor: middle; fill: var(--ink); }
.ssdnode .nl { font-size: 20px; font-weight: 600; }
.ssdnode .ns { font-size: 12px; fill: var(--mute); }
.ssdnode.on rect { stroke: var(--mint); fill: rgba(79,240,162,.1); animation: ssdglow 1.6s ease-in-out infinite; }
@keyframes ssdglow { 50% { filter: drop-shadow(0 0 14px rgba(79,240,162,.7)); } }
.ssdstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ssdstats > div { padding: 12px 16px; display: grid; gap: 2px; position: relative; overflow: hidden; }
.ssdstats b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ssdstats .mono { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.ssdspk { display: block; width: 100%; height: 26px; margin-top: 6px; opacity: .85; }
.ssdspk polyline { fill: none; stroke: var(--mint); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ssdnow { padding: 10px 16px; display: grid; gap: 8px; }
.nowrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14px; }
.nowrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrow .sbar { grid-column: 1 / -1; }
.sbar { height: 6px; border-radius: 3px; background: rgba(190,255,235,.1); overflow: hidden; }
.sbar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--mint)); transition: width 1s linear; }
.ssdsteps { padding: 4px 16px; }
.ssdstep { display: grid; grid-template-columns: 14px 1fr auto 160px 150px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.ssdstep:first-child { border-top: 0; }
.ssdstep .sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--mute); }
.ssdstep[data-state="copying"] .sdot { background: var(--mint); animation: ssdpulse 1.2s ease-out infinite; }
.ssdstep[data-state="done"] .sdot, .ssdstep[data-state="uptodate"] .sdot { background: var(--mint); }
.ssdstep[data-state="failed"] .sdot { background: var(--pink); }
.ssdstep[data-state="waiting"], .ssdstep[data-state="uptodate"] { opacity: .6; }
.swhere { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); }
.smeta { font-size: 12px; color: var(--mute); text-align: right; }
@media (max-width: 760px) {
  .ssdhero { grid-template-columns: 1fr; padding: 14px; }
  .ssdstats { grid-template-columns: 1fr 1fr; }
  .ssdstep { grid-template-columns: 14px 1fr auto; }
  .ssdstep .sbar { grid-column: 2 / -1; } .ssdstep .smeta { grid-column: 2 / -1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .ssdpage *, .ssdcard * { animation: none !important; } .ssdpage.flowing .fdots { opacity: .6; } }
.ssdunplug { padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(79,240,162,.5); background: rgba(79,240,162,.1); color: var(--soft); animation: ssdrise .6s ease both; }
.ssdunplug b { color: var(--mint); }
@keyframes ssdrise { from { opacity: 0; transform: translateY(8px); } }
.ssddrv { padding: 14px 18px; display: grid; gap: 10px; }
.ssddrvhead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.ssddrvhead .mono { font-size: 12px; color: var(--mute); }
.ssddrv[data-state="uploading"] .sbar i { background: linear-gradient(90deg, #FF8A3D, #FF3D86); }
.ssdpage.uponly .fdots.p1 { opacity: 0; }
.fdots.p3 { display: none; }
.ssdpage.uponly .fdots.p3 { display: block; }
.ssdpage.uponly .fdots.p1, .ssdpage.uponly .fdots.p2 { opacity: 0; }
.ssdpage.uponly #ssdn-src { opacity: .55; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ssdpage a.fback { min-height: 44px; }
#ssdnowwrap > .sec { margin: 14px 0 10px; }
.ssdpage > .sec, .ssdpage .sec { margin-bottom: 10px; }
.ssdpage.flowing:not(.uponly) .fdots.p2 { opacity: 0; }

/* ---- gear, packing lists, projects, software (work.js) ---- */
.work { max-width: 980px; padding-bottom: 12px; }
.work h1 { margin-bottom: 8px; overflow-wrap: anywhere; }
.work .sec { margin-top: 16px; }
.work .none.pad { margin: 0; padding: 16px 18px; font-weight: 300; color: var(--soft); }
.work .grow { flex: 1; }
.work input, .work select, .work textarea { min-height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(6, 19, 26, .55); color: var(--ink); font: 300 15px 'Outfit', sans-serif; outline: 0; min-width: 0; color-scheme: dark; }
.work input:focus, .work select:focus, .work textarea:focus { border-color: var(--mint); }
.work select option { background: #0A2028; color: #E8FFF6; }
.work textarea { padding: 10px 12px; line-height: 1.55; resize: vertical; width: 100%; }
.work a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.work a.btn.primary { color: var(--mint-ink); }
.wline { display: flex; flex-wrap: wrap; gap: 8px; }
.wline input:first-child, .wline select { flex: 1 1 220px; }
.wpack { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.work .padd { margin-top: 0; flex-wrap: wrap; }
.work .padd input { flex: 1 1 200px; }
.work .padd input.count { flex: 0 1 120px; }
.wlist { padding: 4px 0; overflow: hidden; border-radius: 18px; }
.wgroup { padding: 14px 18px 6px; color: var(--teal); }
.wrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--hair); }
.wrow:first-child, .wgroup + .wrow { border-top: 0; }
.wrow.open { background: rgba(79, 240, 162, .05); }
.wtick { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: 18px; line-height: 1; cursor: pointer; }
.wtick:hover { border-color: var(--mint); }
.wtick.on { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); font-weight: 600; }
.whead { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.whead b, .swmain b { display: block; font-weight: 400; font-size: 15.5px; }
.whead small, .swmain small { display: block; color: var(--mute); font-weight: 300; font-size: 13px; }
.wform { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 6px 0 10px; }
.wform.glass { padding: 18px; }
.wform label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wform label .mono { font-size: 10.5px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.wfoot, .wlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wprogress { display: flex; align-items: center; gap: 14px; }
.wprogress .meter { flex: 1; }
.wrow.pk .pkname { flex: 1; min-width: 0; font-weight: 300; cursor: pointer; }
.wrow.packed .pkname, .wrow.sw.packed b { text-decoration: line-through; color: var(--mute); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button, .wrow .x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--mute); font-size: 17px; cursor: pointer; }
.qty button { border-color: var(--line); }
.wrow .x:hover { color: var(--pink-soft); border-color: rgba(255, 174, 154, .5); }
.qty b { min-width: 18px; text-align: center; font-weight: 500; }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.wcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.wcard:hover { border-color: var(--mint); }
.wcard .top1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wcard b { font-weight: 400; font-size: 20px; line-height: 1.25; }
.wcard small { color: var(--mute); font-weight: 300; }
.wcard i { font-style: normal; }
.wcard .meter, .wprogress .meter { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.wcard .meter span, .wprogress .meter span { display: block; height: 100%; background: var(--mint); }
.pill.ok { border-color: rgba(79, 240, 162, .5); }
.wold summary { cursor: pointer; padding: 12px 0; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; }
.wrow.dv .dvname { flex: 1 1 200px; background: transparent; border-color: transparent; font-size: 15.5px; }
.wrow.dv.packed .dvname { color: var(--mute); }
.dvb { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: transparent; color: var(--soft); font: 400 13px 'Outfit', sans-serif; text-decoration: none; cursor: pointer; }
.dvb:hover { border-color: var(--mint); }
.dvb.on { background: rgba(79, 240, 162, .16); border-color: var(--mint); color: var(--mint); }
.dvb.sent.on { background: var(--mint); color: var(--mint-ink); font-weight: 500; }
.wrow.lk a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 0; }
.wrow.sw { padding: 12px 18px; justify-content: space-between; }
.swmain { flex: 1 1 260px; min-width: 0; }
.swact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swact label { display: flex; align-items: center; gap: 8px; }
.serial { width: 100%; margin: 0; padding: 12px; border-radius: 11px; background: rgba(6, 19, 26, .7); border: 1px solid var(--line); font: 400 13px 'IBM Plex Mono', monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }
.waitcard { padding: 16px 18px; }
.waitcard .row span:first-child { min-width: 0; }
.waitcard .row small { display: block; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) {
  .wrow.dv .dvname { flex-basis: 100%; }
  .tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tabs a { flex: 1 0 auto; padding: 0 7px; }
}
/* the printed packing list: only the list, black on white */
#printsheet { display: none; }
@media print {
  html, body { height: auto; background: #fff; overflow: visible; }
  body:has(#printsheet) > *:not(#printsheet) { display: none !important; }
  #printsheet { display: block; color: #000; font-family: Outfit, system-ui, sans-serif; }
  #printsheet h1 { margin: 0 0 4px; font-size: 22pt; }
  #printsheet .cols { columns: 2; column-gap: 28px; }
  #printsheet section { break-inside: avoid-column; }
  #printsheet h2 { font-size: 11pt; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #000; padding-bottom: 3px; }
  #printsheet p { display: flex; gap: 8px; margin: 5px 0; font-size: 10.5pt; break-inside: avoid; }
  #printsheet p i { flex: none; width: 11px; height: 11px; margin-top: 2px; border: 1px solid #000; border-radius: 2px; }
}
