/* EquineSuite Federation — tokens from the Federation brand identity & UI kit.
   Signal: Registry Yellow #FFD23F · Deep #8A6A00 · Tint #FFF6D6 · Ink #0C1015 · Paper #F2F4F0
   Type: Rajdhani (UI, uppercase titles, +8% tracking) · IBM Plex Mono (numbers, labels, codes) */
:root, :root[data-theme="dark"] {
  --bg: #0C1015; --rail: #0A0D11; --surf: #141920; --surf2: #1C2229; --surf3: #232A32; --line: #272E36;
  --ink: #F2F4F0; --mute: #8A9086; --faint: #5E645B;
  --acc: #FFD23F; --accT: #FFD23F; --accBg: rgba(255,210,63,0.13); --accRing: rgba(255,210,63,0.28); --onAcc: #0C1015;
  --ok: #5BE09A; --okBg: rgba(76,211,138,0.15); --info: #7FBCFF; --infoBg: rgba(111,180,255,0.16);
  --warn: #F5B841; --warnBg: rgba(245,184,65,0.17); --bad: #FF6B70; --badBg: rgba(255,90,95,0.15);
  --sh: 0 24px 60px rgba(0,0,0,0.55); --sh2: 0 8px 24px rgba(0,0,0,0.35); color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #E9ECE6; --rail: #FFFFFF; --surf: #FFFFFF; --surf2: #F3F5F1; --surf3: #E9ECE6; --line: #DDE1DA;
  --ink: #0C1015; --mute: #5E645B; --faint: #8A9086;
  --accT: #8A6A00; --accBg: #FFF6D6; --accRing: rgba(255,210,63,0.45);
  --ok: #1C7A47; --okBg: rgba(76,211,138,0.16); --info: #1F5FB0; --infoBg: rgba(111,180,255,0.18);
  --warn: #8A5E00; --warnBg: rgba(245,184,65,0.22); --bad: #C42B31; --badBg: rgba(255,90,95,0.13);
  --sh: 0 24px 60px rgba(12,16,21,0.18); --sh2: 0 8px 24px rgba(12,16,21,0.10); color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: 'Rajdhani', system-ui, sans-serif; font-size: 15px; font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: var(--accT); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }
::selection { background: var(--acc); color: var(--onAcc); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-track { background: transparent; }
.mono, .lbl, code, .num { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.lbl { font-size: 10px; letter-spacing: 0.16em; color: var(--mute); text-transform: uppercase; font-weight: 500; }
.num { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ttl { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--mute); } .faint { color: var(--faint); } .okc { color: var(--ok); } .badc { color: var(--bad); } .warnc { color: var(--warn); } .accc { color: var(--accT); }
.right { text-align: end; } .nowrap { white-space: nowrap; } .grow { flex: 1; min-width: 0; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .col { display: flex; flex-direction: column; gap: 8px; }
.between { justify-content: space-between; } .gap4 { gap: 4px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.hide { display: none !important; }

/* ---------- motion */
@keyframes es-ring { to { stroke-dashoffset: -68.4; } }
@keyframes es-dot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }
@keyframes es-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes es-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes es-pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes es-slide { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes es-slide-r { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes es-shimmer { from { background-position: -600px 0; } to { background-position: 600px 0; } }
@keyframes es-glow { 0%,100% { box-shadow: 0 0 0 0 var(--accRing); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes es-count { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes es-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes es-spin { to { transform: rotate(360deg); } }
.anim-in { animation: es-in .38s cubic-bezier(.2,.7,.2,1) both; }
.stagger > * { animation: es-in .42s cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(1) { animation-delay: .02s } .stagger > *:nth-child(2) { animation-delay: .05s } .stagger > *:nth-child(3) { animation-delay: .08s } .stagger > *:nth-child(4) { animation-delay: .11s }
.stagger > *:nth-child(5) { animation-delay: .14s } .stagger > *:nth-child(6) { animation-delay: .17s } .stagger > *:nth-child(7) { animation-delay: .2s } .stagger > *:nth-child(8) { animation-delay: .23s } .stagger > *:nth-child(n+9) { animation-delay: .26s }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

/* ---------- boot / loader (EquineSuite ring) */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.loader { width: 58px; height: 58px; } .loader rect { animation: es-ring 1.4s cubic-bezier(.2,.7,.2,1) infinite; } .loader circle { transform-origin: 82px 18px; animation: es-dot 1.4s ease-in-out infinite; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: es-spin .7s linear infinite; display: inline-block; }

/* ---------- auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px); }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 20% 10%, rgba(255,210,63,.10), transparent 60%), #0A0D11; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; color: #F2F4F0; }
.auth-art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(242,244,240,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(242,244,240,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%); }
.auth-art h1 { font-size: 58px; line-height: .95; letter-spacing: .06em; margin: 0; position: relative; }
.auth-art h1 span { color: var(--acc); }
.auth-art p { max-width: 520px; color: #8A9086; font-size: 18px; position: relative; }
.auth-feats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; position: relative; }
.auth-feats div { border: 1px solid #272E36; background: rgba(20,25,32,.6); border-radius: 12px; padding: 12px 14px; backdrop-filter: blur(6px); }
.auth-feats b { display: block; font-size: 13px; letter-spacing: .08em; } .auth-feats span { font-size: 12px; color: #8A9086; font-family: 'IBM Plex Mono', monospace; }
.auth-form { background: var(--surf); display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 16px; animation: es-slide .5s cubic-bezier(.2,.7,.2,1) both; }
.auth-form h2 { margin: 0; font-size: 28px; }
.tabs-auth { display: flex; gap: 4px; background: var(--surf2); border-radius: 10px; padding: 4px; }
.tabs-auth button { flex: 1; height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); cursor: pointer; font-weight: 700; letter-spacing: .08em; }
.tabs-auth button.on { background: var(--acc); color: var(--onAcc); }
.orb { position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px; opacity: .9; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-form { padding: 28px 16px; } }

/* ---------- shell */
.app { display: grid; grid-template-columns: var(--nav-w, 248px) minmax(0, 1fr) auto; height: 100vh; overflow: hidden; }
.app.navmini { --nav-w: 68px; }
.nav { background: var(--rail); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; transition: width .2s; }
.nav-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; }
.nav-head img { width: 32px; height: 32px; } .nav-head .nm { line-height: 1; } .nav-head small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; letter-spacing: .22em; color: var(--mute); }
.nav-head b { font-size: 17px; letter-spacing: .1em; }
.org-switch { margin: 0 10px 8px; display: flex; align-items: center; gap: 8px; width: calc(100% - 20px); border: 1px solid var(--line); background: var(--surf); border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: start; }
.org-switch:hover { border-color: var(--acc); }
.org-switch .av { width: 26px; height: 26px; border-radius: 7px; background: var(--acc); color: var(--onAcc); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; overflow: hidden; }
.org-switch .av img { width: 100%; height: 100%; object-fit: cover; }
.nav-scroll { overflow-y: auto; flex: 1; padding: 4px 8px 12px; }
.nav-sec { padding: 14px 10px 6px; }
.nav a.it { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--mute); position: relative; font-weight: 600; font-size: 14.5px; letter-spacing: .02em; text-decoration: none; transition: background .15s, color .15s; }
.nav a.it:hover { background: var(--surf2); color: var(--ink); }
.nav a.it.on { background: var(--surf2); color: var(--ink); }
.nav a.it.on::before { content: ''; position: absolute; inset-inline-start: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--acc); }
.nav a.it .ct { margin-inline-start: auto; font-family: 'IBM Plex Mono', monospace; font-size: 10px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accBg); color: var(--accT); display: grid; place-items: center; }
.app.navmini .nav .txt, .app.navmini .nav .nav-sec, .app.navmini .nav .ct, .app.navmini .org-switch .txt, .app.navmini .nav-head .nm { display: none; }
.app.navmini .nav a.it { justify-content: center; } .app.navmini .org-switch { justify-content: center; padding: 8px 0; }
.nav-foot { border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 6px; align-items: center; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; container-type: inline-size; container-name: main; }
.top { height: 58px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); position: relative; z-index: 5; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.crumbs a { color: var(--mute); } .crumbs .sep { color: var(--faint); }
.search-btn { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; height: 36px; width: min(360px, 34vw); border: 1px solid var(--line); background: var(--surf); border-radius: 9px; padding: 0 10px; color: var(--mute); cursor: pointer; }
.search-btn:hover { border-color: var(--acc); color: var(--ink); }
.search-btn kbd, kbd { font-family: 'IBM Plex Mono', monospace; font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--mute); background: var(--surf2); }
.iconbtn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surf); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--mute); position: relative; flex: none; transition: border-color .15s, color .15s, transform .1s; }
.iconbtn:hover { color: var(--ink); border-color: var(--mute); } .iconbtn:active { transform: scale(.96); }
.iconbtn.on { color: var(--onAcc); background: var(--acc); border-color: var(--acc); }
.iconbtn .dot { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--acc); color: var(--onAcc); font-family: 'IBM Plex Mono', monospace; font-size: 9px; font-weight: 600; display: grid; place-items: center; padding: 0 3px; animation: es-glow 2s infinite; }
.view { flex: 1; overflow: auto; padding: 22px 24px 60px; min-height: 0; }
.view > * { max-width: 1480px; margin-inline: auto; }
.page-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: .07em; text-transform: uppercase; }
.page-head .sub { color: var(--mute); margin-top: 6px; font-size: 15px; }
.page-head .acts { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- split view (EquineSuite Live beside any screen) */
.split { width: var(--split-w, 0px); border-inline-start: 1px solid var(--line); background: var(--rail); display: flex; flex-direction: column; min-height: 0; position: relative; overflow: hidden; }
.split.open { animation: es-slide .35s cubic-bezier(.2,.7,.2,1) both; }
.split-head { height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.split-head .livedot { width: 8px; height: 8px; border-radius: 4px; background: #FF5A5F; animation: es-pulse 1.4s infinite; }
.split iframe { flex: 1; border: 0; width: 100%; background: #0C1015; }
.split-grip { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 3; }
.split-grip:hover, .split-grip.drag { background: var(--accRing); }
.split .tabs-mini { display: flex; gap: 4px; overflow-x: auto; }
.split .tabs-mini button { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.split .tabs-mini button.on { background: var(--surf2); color: var(--ink); border-color: var(--mute); }
.dragging iframe { pointer-events: none; } .dragging { user-select: none; cursor: col-resize; }

/* ---------- surfaces */
.card { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.card.pad0 { padding: 0; overflow: hidden; } .card.hover { transition: border-color .15s, transform .15s, box-shadow .15s; } .card.hover:hover { border-color: var(--mute); transform: translateY(-1px); box-shadow: var(--sh2); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card-h h3 { margin: 0; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.card-h .acts { margin-inline-start: auto; display: flex; gap: 6px; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@container main (max-width: 1100px) { .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-main, .g3 { grid-template-columns: 1fr; } }
@container main (max-width: 640px) { .g2, .g4 { grid-template-columns: 1fr; } .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); } .view { padding: 16px; } .search-btn { width: auto; } .search-btn span { display: none; } .page-head h1 { font-size: 24px; } .show-hero h1 { font-size: 24px; } }
@media (max-width: 720px) { .app { grid-template-columns: 0 minmax(0,1fr) auto; } .app .nav { display: none; } .app.navopen .nav { display: flex; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; } }

.kpi { position: relative; overflow: hidden; }
.kpi .v { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; margin-top: 8px; letter-spacing: -.01em; animation: es-count .5s both; }
.kpi .d { font-size: 13px; color: var(--mute); margin-top: 2px; }
.kpi .spark { position: absolute; inset-inline-end: 14px; top: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--accBg); color: var(--accT); display: grid; place-items: center; }
.kpi.acc { background: var(--acc); color: var(--onAcc); border-color: var(--acc); } .kpi.acc .lbl, .kpi.acc .d { color: rgba(12,16,21,.65); } .kpi.acc .spark { background: rgba(12,16,21,.12); color: var(--onAcc); }
.bar { height: 6px; border-radius: 3px; background: var(--surf2); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--acc); transform-origin: left; animation: es-bar .8s cubic-bezier(.2,.7,.2,1) both; border-radius: 3px; }
.bar.ok > i { background: var(--ok); } .bar.bad > i { background: var(--bad); }

/* ---------- buttons */
.btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surf); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: filter .15s, border-color .15s, transform .08s, background .15s; text-decoration: none !important; }
.btn:hover { border-color: var(--mute); } .btn:active { transform: translateY(1px); }
.btn.pri { background: var(--acc); color: var(--onAcc); border-color: var(--acc); } .btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mute); } .btn.ghost:hover { color: var(--ink); background: var(--surf2); }
.btn.danger { color: var(--bad); } .btn.danger:hover { border-color: var(--bad); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; } .btn.xs { height: 24px; padding: 0 8px; font-size: 11px; border-radius: 5px; font-family: 'IBM Plex Mono', monospace; letter-spacing: .06em; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.busy { pointer-events: none; } .btn.busy .ico { display: none; }
.seg { display: inline-flex; background: var(--surf2); border-radius: 9px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--mute); cursor: pointer; font-weight: 700; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.seg button.on { background: var(--acc); color: var(--onAcc); }

/* ---------- badges / chips */
.b { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 11px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--surf2); color: var(--mute); }
.b.ok { background: var(--okBg); color: var(--ok); } .b.warn { background: var(--warnBg); color: var(--warn); } .b.bad { background: var(--badBg); color: var(--bad); } .b.info { background: var(--infoBg); color: var(--info); }
.b.live { background: var(--acc); color: var(--onAcc); } .b.live::before { content: ''; width: 6px; height: 6px; border-radius: 3px; background: currentColor; animation: es-pulse 1.2s infinite; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.chip .n { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--mute); }
.chip.on { background: var(--accBg); border-color: var(--acc); color: var(--accT); } .chip.on .n { color: var(--accT); }
.disc { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 6px; border-radius: 5px; font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; background: var(--surf2); color: var(--ink); border: 1px solid var(--line); }
.disc.jump { color: #AEEA3A; } .disc.dres { color: #B79CFF; } .disc.tent { color: #FF7A45; } .disc.even { color: #FF6B9E; } .disc.endu { color: #3FD6C2; } .disc.race { color: #4F9DFF; } .disc.arab { color: #E879F9; }
:root[data-theme="light"] .disc.jump { color: #4E7A12; } :root[data-theme="light"] .disc.dres { color: #5B3FC4; } :root[data-theme="light"] .disc.tent { color: #B8461A; } :root[data-theme="light"] .disc.even { color: #B8245E; } :root[data-theme="light"] .disc.endu { color: #0E7F70; }

/* ---------- tables */
.tbl-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surf); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
table.t th { position: sticky; top: 0; z-index: 1; background: var(--surf); text-align: start; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default; user-select: none; }
table.t th.sort { cursor: pointer; } table.t th.sort:hover { color: var(--ink); } table.t th .arr { color: var(--accT); }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; max-width: 340px; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; } table.t tbody tr.click { cursor: pointer; } table.t tbody tr:hover { background: var(--surf2); }
table.t tbody tr.sel { background: var(--accBg); }
table.t td.c, table.t th.c { width: 36px; text-align: center; } table.t .r { text-align: end; }
table.t.compact td { padding: 6px 10px; } table.t.dense { font-size: 13.5px; }
table.t tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: var(--surf2); }
.cb { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--mute); appearance: none; cursor: pointer; display: inline-grid; place-items: center; margin: 0; background: transparent; vertical-align: middle; }
.cb:checked { background: var(--acc); border-color: var(--acc); } .cb:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--onAcc); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.empty { padding: 48px 20px; text-align: center; color: var(--mute); }
.empty .em-ico { width: 54px; height: 54px; border-radius: 16px; background: var(--accBg); color: var(--accT); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .em-ico .ico { width: 24px; height: 24px; }
.empty h3 { color: var(--ink); margin: 0 0 4px; letter-spacing: .08em; text-transform: uppercase; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surf2) 0, var(--surf3) 40%, var(--surf2) 80%); background-size: 1200px 100%; animation: es-shimmer 1.3s linear infinite; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { position: relative; flex: 1 1 260px; max-width: 420px; } .toolbar .search .ico { position: absolute; inset-inline-start: 11px; top: 10px; color: var(--mute); }
.toolbar .search input { padding-inline-start: 34px; }
.bulkbar { position: sticky; bottom: 14px; margin: 12px auto 0; width: fit-content; display: flex; gap: 8px; align-items: center; background: var(--ink); color: var(--bg); padding: 8px 10px 8px 16px; border-radius: 12px; box-shadow: var(--sh); animation: es-pop .25s both; z-index: 4; }
.bulkbar .btn { background: transparent; color: var(--bg); border-color: rgba(127,127,127,.4); }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 10px; color: var(--mute); }

/* ---------- forms */
.in, select.in, textarea.in { width: 100%; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surf2); padding: 0 11px; outline: none; transition: border-color .15s, box-shadow .15s; font-weight: 500; font-size: 15px; }
textarea.in { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.4; }
.in:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--accRing); }
.in[readonly] { opacity: .7; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 14px; }
.form .f { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .form .f.full { grid-column: 1 / -1; }
.form .f > label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.form .f > label .req { color: var(--accT); } .form .help { font-size: 12.5px; color: var(--faint); }
.form .sec { grid-column: 1 / -1; padding-top: 8px; border-top: 1px dashed var(--line); }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }
.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { display: none; } .toggle i { width: 36px; height: 20px; border-radius: 10px; background: var(--surf3); border: 1px solid var(--line); position: relative; transition: background .2s; flex: none; }
.toggle i::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 7px; background: var(--mute); transition: transform .2s, background .2s; }
.toggle input:checked + i { background: var(--acc); border-color: var(--acc); } .toggle input:checked + i::after { transform: translateX(16px); background: var(--onAcc); }
[dir="rtl"] .toggle input:checked + i::after { transform: translateX(-16px); }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.multi label { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--mute); }
.multi input { display: none; } .multi input:checked + span { color: var(--accT); } .multi label:has(input:checked) { border-color: var(--acc); background: var(--accBg); }
.ref { position: relative; } .ref .opts { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; background: var(--surf); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh); max-height: 280px; overflow: auto; animation: es-pop .15s both; }
.ref .opts button { display: flex; width: 100%; gap: 8px; align-items: center; text-align: start; border: 0; background: transparent; padding: 8px 11px; cursor: pointer; }
.ref .opts button:hover, .ref .opts button.hl { background: var(--surf2); }
.ref .clear { position: absolute; inset-inline-end: 6px; top: 6px; }
.lines td { padding: 4px 6px !important; } .lines .in { height: 32px; }

/* ---------- overlays */
.scrim { position: fixed; inset: 0; background: rgba(5,7,10,.55); backdrop-filter: blur(3px); z-index: 50; animation: es-in .2s both; }
.modal { position: fixed; z-index: 51; left: 50%; top: 8vh; transform: translateX(-50%); width: min(720px, calc(100vw - 24px)); max-height: 84vh; display: flex; flex-direction: column; background: var(--surf); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); animation: es-pop .25s cubic-bezier(.2,.7,.2,1) both; }
.modal.wide { width: min(1040px, calc(100vw - 24px)); } .modal.narrow { width: min(460px, calc(100vw - 24px)); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); } .modal-h h2 { margin: 0; font-size: 19px; letter-spacing: .08em; text-transform: uppercase; }
.modal-b { padding: 18px; overflow: auto; } .modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.drawer { position: fixed; z-index: 51; top: 0; bottom: 0; inset-inline-end: 0; width: min(760px, 100vw); background: var(--surf); border-inline-start: 1px solid var(--line); box-shadow: var(--sh); display: flex; flex-direction: column; animation: es-slide .3s cubic-bezier(.2,.7,.2,1) both; }
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; max-width: 420px; background: var(--ink); color: var(--bg); border-radius: 11px; padding: 11px 14px; box-shadow: var(--sh); display: flex; gap: 10px; align-items: flex-start; animation: es-slide .3s both; font-weight: 600; }
.toast.err { background: var(--bad); color: #fff; } .toast.ok::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--acc); margin-top: 6px; flex: none; }
.pop { position: fixed; z-index: 60; background: var(--surf); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); min-width: 220px; padding: 6px; animation: es-pop .15s both; }
.pop button, .pop a { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; text-align: start; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: none; }
.pop button:hover, .pop a:hover { background: var(--surf2); } .pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* ---------- command palette */
.cmd { position: fixed; z-index: 70; left: 50%; top: 12vh; transform: translateX(-50%); width: min(680px, calc(100vw - 24px)); background: var(--surf); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh); overflow: hidden; animation: es-pop .2s both; }
.cmd input { width: 100%; height: 56px; border: 0; outline: none; background: transparent; padding: 0 18px 0 48px; font-size: 18px; font-weight: 600; }
.cmd .ci { position: absolute; left: 18px; top: 19px; color: var(--accT); }
.cmd .res { border-top: 1px solid var(--line); max-height: 56vh; overflow: auto; padding: 6px; }
.cmd .res button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 9px 11px; border-radius: 9px; cursor: pointer; text-align: start; }
.cmd .res button.hl { background: var(--surf2); } .cmd .res .grp { padding: 8px 11px 4px; }
.cmd .res .ty { width: 28px; height: 28px; border-radius: 8px; background: var(--surf2); display: grid; place-items: center; color: var(--mute); flex: none; }
.cmd .res button.hl .ty { background: var(--acc); color: var(--onAcc); }
.cmd .foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }

/* ---------- AI */
.ai-panel { position: fixed; z-index: 55; bottom: 18px; inset-inline-end: 18px; width: min(440px, calc(100vw - 24px)); height: min(640px, calc(100vh - 100px)); background: var(--surf); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; overflow: hidden; animation: es-pop .25s both; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, var(--accBg), transparent 70%); }
.ai-orb { width: 30px; height: 30px; border-radius: 10px; background: conic-gradient(from 180deg, #FFD23F, #FFF6D6, #FFD23F); display: grid; place-items: center; color: #0C1015; animation: es-glow 2.6s infinite; }
.ai-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; line-height: 1.42; animation: es-in .25s both; font-size: 14.5px; }
.msg.u { align-self: flex-end; background: var(--acc); color: var(--onAcc); border-bottom-right-radius: 4px; }
.msg.a { align-self: flex-start; background: var(--surf2); border-bottom-left-radius: 4px; } .msg.a p { margin: 0 0 6px; } .msg.a p:last-child { margin: 0; }
.msg .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); } .ai-in textarea { min-height: 42px; height: 42px; max-height: 140px; }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--mute); margin-inline-end: 3px; animation: es-pulse 1s infinite; } .typing span:nth-child(2) { animation-delay: .15s } .typing span:nth-child(3) { animation-delay: .3s }
.fab-ai { position: fixed; z-index: 40; bottom: 18px; inset-inline-end: 18px; height: 46px; padding: 0 16px 0 12px; border-radius: 23px; border: 0; background: var(--acc); color: var(--onAcc); display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; letter-spacing: .08em; box-shadow: 0 10px 30px rgba(255,210,63,.25); animation: es-pop .4s .3s both; transition: transform .15s; }
.fab-ai:hover { transform: translateY(-2px); }

/* ---------- record page / tabs */
.rec-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.rec-av { width: 58px; height: 58px; border-radius: 16px; background: var(--accBg); color: var(--accT); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; overflow: hidden; } .rec-av img { width: 100%; height: 100%; object-fit: cover; }
.rec-av .ico { width: 26px; height: 26px; }
.rec-head h1 { margin: 0; font-size: 28px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.05; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 13px; color: var(--mute); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; display: flex; gap: 6px; align-items: center; transition: color .15s; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); border-color: var(--acc); }
.tabs a .n { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--faint); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; } dl.kv dt { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: 3px; } dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.timeline { position: relative; padding-inline-start: 18px; } .timeline::before { content: ''; position: absolute; inset-inline-start: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.timeline .ev { position: relative; padding: 0 0 12px; } .timeline .ev::before { content: ''; position: absolute; inset-inline-start: -17px; top: 6px; width: 9px; height: 9px; border-radius: 5px; background: var(--surf); border: 2px solid var(--acc); }
.checks { display: flex; flex-direction: column; gap: 5px; } .checks div { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.checks .y { color: var(--ok); } .checks .n { color: var(--bad); } .checks .w { color: var(--warn); }

/* ---------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.cal .dh { background: var(--surf); padding: 8px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.cal .d { background: var(--surf); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal .d.out { background: var(--bg); } .cal .d .dn { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--mute); padding: 2px 4px; } .cal .d.today .dn { background: var(--acc); color: var(--onAcc); border-radius: 5px; width: fit-content; font-weight: 600; }
.cal .ev { font-size: 12.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--surf2); border-inline-start: 3px solid var(--mute); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.show { background: var(--accBg); border-color: var(--acc); color: var(--ink); } .cal .ev.exp { border-color: var(--bad); color: var(--bad); } .cal .ev.task { border-color: var(--info); }
.cal .ev:hover { filter: brightness(1.15); }
.agenda .day { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- show office */
.show-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 22px; background: radial-gradient(800px 300px at 90% -20%, rgba(255,210,63,.16), transparent 60%), var(--surf); border: 1px solid var(--line); margin-bottom: 16px; }
.show-hero h1 { margin: 6px 0 4px; font-size: 32px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.show-hero .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--mute); }
.datebox { width: 62px; height: 66px; border-radius: 14px; background: var(--acc); color: var(--onAcc); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.datebox b { font-size: 26px; font-family: 'IBM Plex Mono', monospace; } .datebox span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .16em; margin-top: 3px; }
.class-row { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.class-row:hover { background: var(--surf2); } .class-row .no { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 13px; width: 44px; height: 32px; border-radius: 8px; background: var(--surf2); display: grid; place-items: center; }
.fill { display: flex; gap: 8px; align-items: center; min-width: 170px; } .fill .bar { flex: 1; }
.sl-row { display: grid; grid-template-columns: 44px 54px minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,.8fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.sl-row .ord { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--accT); }
.sl-row .bk { font-family: 'IBM Plex Mono', monospace; font-size: 12px; height: 24px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.sl-row.dragover { border-top: 2px solid var(--acc); } .sl-row[draggable="true"] { cursor: grab; }
.warnbox { border: 1px solid var(--warn); background: var(--warnBg); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.okbox { border: 1px solid var(--ok); background: var(--okBg); border-radius: 12px; padding: 10px 12px; }
.infobox { border: 1px dashed var(--line); background: var(--surf2); border-radius: 12px; padding: 12px 14px; color: var(--mute); }

/* charts (inline svg) */
.chart { width: 100%; height: 180px; } .chart .ax { stroke: var(--line); } .chart text { fill: var(--mute); font-family: 'IBM Plex Mono', monospace; font-size: 10px; }
.chart .bar1 { fill: var(--acc); } .chart .bar2 { fill: var(--surf3); } .chart .ln { fill: none; stroke: var(--acc); stroke-width: 2; }
.hbar { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }

/* integrations */
.int-card { display: flex; gap: 14px; align-items: flex-start; }
.int-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--surf2); border: 1px solid var(--line); display: grid; place-items: center; flex: none; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 12px; }
.code { font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: var(--surf2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* print preview */
.print-sheet { background: #fff; color: #0C1015; border-radius: 6px; padding: 28px; box-shadow: var(--sh2); }
[dir="rtl"] .cmd .ci { left: auto; right: 18px; } [dir="rtl"] .cmd input { padding: 0 48px 0 18px; }

/* desktop app (Electron): room for the macOS window buttons, draggable top bar */
.desktop.p-darwin .nav-head { padding-top: 38px; }
.desktop .top { -webkit-app-region: drag; } .desktop .top button, .desktop .top a, .desktop .top input { -webkit-app-region: no-drag; }
.desktop .split-head { -webkit-app-region: drag; } .desktop .split-head button { -webkit-app-region: no-drag; }

/* ---------- v2: workspace tabs */
.wtabs { display: flex; gap: 4px; padding: 6px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex: none; background: var(--bg); }
.wtabs:empty { display: none; }
.wt { display: inline-flex; align-items: center; gap: 6px; max-width: 200px; height: 30px; padding: 0 6px 0 11px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surf); color: var(--mute); font-size: 13px; font-weight: 600; text-decoration: none !important; flex: none; transition: color .12s, background .12s; }
.wt:hover { color: var(--ink); } .wt.on { color: var(--ink); background: var(--surf2); box-shadow: inset 0 2px 0 var(--acc); }
.wt .wx { border: 0; background: transparent; color: inherit; width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; cursor: pointer; opacity: .5; padding: 0; } .wt .wx:hover { opacity: 1; background: var(--surf3); } .wt .wx .ico { width: 12px; height: 12px; }
.wt.pin .ico:first-child { color: var(--accT); width: 12px; height: 12px; } .wt.more { padding: 0 8px; cursor: pointer; }
.nav-sec { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; text-align: start; }
.nav-sec .chev .ico { width: 12px; height: 12px; } .nav-grp.shut { display: none; }
.disc-switch { width: 160px; height: 36px; } @container main (max-width: 900px) { .disc-switch { display: none; } }
.dock-note { font-size: 12px; color: var(--mute); padding: 6px 12px; border-bottom: 1px solid var(--line); } .dock-note a { color: var(--accT); }
.iconbtn .dot.urgent { background: var(--bad); color: #fff; }
.embed .nav, .embed .top, .embed .wtabs, .embed .fab-ai, .embed .split { display: none !important; } .embed .app { grid-template-columns: 1fr; } .embed .view { padding: 14px; }

/* ---------- chat */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: 100%; max-width: none !important; }
.chat-list { border-inline-end: 1px solid var(--line); overflow: auto; background: var(--rail); }
.ct-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: transparent; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--ink); }
.ct-row:hover, .ct-row.on { background: var(--surf2); } .ct-row .av, .chat-head .av { width: 36px; height: 36px; border-radius: 12px; background: var(--accBg); color: var(--accT); display: grid; place-items: center; font-weight: 700; flex: none; }
.unread { min-width: 20px; height: 20px; border-radius: 10px; background: var(--acc); color: var(--onAcc); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 5px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bub { position: relative; max-width: min(72%, 560px); padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; background: var(--surf2); align-self: flex-start; animation: es-in .2s both; }
.bub.me { align-self: flex-end; background: var(--acc); color: var(--onAcc); border-radius: 14px 14px 4px 14px; } .bub.me a { color: var(--onAcc); text-decoration: underline; }
.bub .who { font-size: 12px; font-weight: 700; color: var(--accT); margin-bottom: 2px; } .bub .txt { line-height: 1.4; overflow-wrap: anywhere; }
.bub .meta { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; opacity: .65; text-align: end; margin-top: 3px; }
.ticks { letter-spacing: -3px; } .ticks.seen { color: #1F5FB0; opacity: 1; } .bub.me .ticks.seen { color: #0C1015; font-weight: 700; }
.bub-more { position: absolute; top: 4px; inset-inline-start: -30px; opacity: 0; border: 0; background: var(--surf); border-radius: 6px; width: 24px; height: 24px; cursor: pointer; color: var(--mute); display: grid; place-items: center; } .bub:hover .bub-more { opacity: 1; }
.day-sep { text-align: center; margin: 10px 0; } .day-sep span { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .12em; color: var(--mute); background: var(--surf2); padding: 3px 10px; border-radius: 10px; }
.sys { text-align: center; font-size: 12.5px; color: var(--mute); margin: 4px 0; }
.typing-line { min-height: 22px; padding: 0 18px; font-size: 13px; color: var(--mute); }
.chat-in { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); } .chat-in textarea { min-height: 42px; height: 42px; max-height: 160px; }
@container main (max-width: 720px) { .chat { grid-template-columns: 1fr; } .chat-list { display: none; } }

/* ---------- notifications */
.nrow { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none !important; transition: background .12s; }
.nrow:hover { background: var(--surf2); } .nrow.read { opacity: .62; } .nrow.pr-urgent { box-shadow: inset 3px 0 0 var(--bad); } .nrow.pr-high { box-shadow: inset 3px 0 0 var(--warn); }
.pop .nrow { padding: 8px 10px; border-radius: 8px; border: 0; }
.urgent-banner { position: fixed; z-index: 90; top: 14px; left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 24px)); display: flex; gap: 12px; align-items: center; background: var(--bad); color: #fff; padding: 14px 16px; border-radius: 14px; box-shadow: var(--sh); animation: es-pop .3s both; }
.urgent-banner .ub-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; animation: es-pulse 1s infinite; } .urgent-banner .btn { background: #fff; color: #0C1015; border-color: #fff; } .urgent-banner .lbl { color: rgba(255,255,255,.8); }

/* ---------- boards, refs, hold, widgets, season */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.bcol { background: var(--surf2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; transition: border-color .15s; } .bcol.over { border-color: var(--acc); }
.bcol-h { display: flex; justify-content: space-between; align-items: center; }
.bcard { background: var(--surf); border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: grab; transition: transform .12s, box-shadow .12s; } .bcard:hover { transform: translateY(-1px); box-shadow: var(--sh2); } .dragging-card { opacity: .4; }
.refs .chip { height: 28px; padding: 0 4px 0 10px; } .refs .chip .btn { width: 20px; height: 20px; padding: 0; }
.hold { position: relative; user-select: none; } .holding { outline: 2px solid var(--bad); }
.widget.fs, #rep.fs, .card.fs { background: var(--bg); padding: 28px; overflow: auto; } .widget.fs .chart { height: 60vh; }
.season { padding: 0; overflow-x: auto; } .sm-head, .lane { display: grid; grid-template-columns: 170px repeat(12, minmax(60px, 1fr)); }
.sm-head { border-bottom: 1px solid var(--line); padding: 8px 0; } .sm-head .lbl { text-align: center; }
.lane { border-bottom: 1px solid var(--line); min-height: 54px; } .lane-h { display: flex; gap: 8px; align-items: center; padding: 0 12px; font-weight: 700; border-inline-end: 1px solid var(--line); }
.lane-b { grid-column: 2 / -1; position: relative; display: grid; grid-template-columns: repeat(12, 1fr); } .lane-b i { border-inline-end: 1px dashed var(--line); }
.sp { position: absolute; top: 10px; height: 34px; border-radius: 8px; background: var(--accBg); border: 1px solid var(--acc); color: var(--ink); font-size: 12px; font-weight: 700; padding: 0 6px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-decoration: none !important; min-width: 8px; transition: transform .12s; }
.sp:hover { transform: translateY(-1px); z-index: 2; box-shadow: var(--sh2); } .sp span { overflow: hidden; text-overflow: ellipsis; } .sp.clash { background: var(--badBg); border-color: var(--bad); } .sp.st-draft { border-style: dashed; opacity: .8; }
.disc-badge { height: 44px; min-width: 64px; font-size: 14px; border-radius: 12px; }
.help-drawer .modal-b { line-height: 1.5; }
