/* NEXORA — pure white or pure black, with sapphire blue. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/Inter-Regular.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/Inter-Medium.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/Inter-SemiBold.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/Inter-Bold.woff2) format('woff2'); }

:root {
  --bg: #ffffff; --surface: #ffffff; --subtle: #f4f6fa; --line: #e7eaf0; --line2: #d6dce6;
  --ink: #0b1220; --text2: #4a5466; --muted: #8a93a4; --inv: #ffffff;
  --primary: #2563eb; --primary-h: #1d4fd8; --on-primary: #ffffff;
  --gold: #2563eb; --gold-l: #6e9bff; --gold-soft: #dce6fd; --gold-tint: rgba(37, 99, 235, .08);
  --s1: #2563eb; --s2: #d97706; --series2: #dce6fd; --wash: rgba(37, 99, 235, .08);
  --up: #047857; --up-bg: rgba(5, 150, 105, .10); --down: #d11a44; --down-bg: rgba(225, 29, 72, .08);
  --c-gold: #2563eb; --c-sapphire: #4f46e5; --c-plum: #a0418f; --c-teal: #0d9488; --c-rose: #e11d48;
  --c-amber: #d97706; --c-copper: #ea580c; --c-emerald: #059669; --c-violet: #7c3aed; --c-graphite: #64748b; --c-sky: #0284c7;
  --v1: #2a78d6; --v2: #eb6834; --v3: #1baf7a; --v4: #eda100;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, .18), 0 2px 8px rgba(11, 18, 32, .06);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
.dark {
  --bg: #000000; --surface: #0a0a0b; --subtle: #141518; --line: #1e2024; --line2: #2a2d33;
  --ink: #f5f7fa; --text2: #a3aab6; --muted: #6b7280; --inv: #000000;
  --primary: #3b6ff6; --primary-h: #5b8cff; --on-primary: #ffffff;
  --gold: #5b8cff; --gold-l: #8fb0ff; --gold-soft: #16264a; --gold-tint: rgba(91, 140, 255, .12);
  --s1: #4f7df3; --s2: #c27a12; --series2: #1b2d57; --wash: rgba(79, 125, 243, .14);
  --up: #34d399; --up-bg: rgba(52, 211, 153, .12); --down: #fb7185; --down-bg: rgba(251, 113, 133, .12);
  --c-gold: #5b8cff; --c-sapphire: #8b8cf8; --c-plum: #d57bc6; --c-teal: #2dd4bf; --c-rose: #fb7185;
  --c-amber: #fbbf24; --c-copper: #fb923c; --c-emerald: #34d399; --c-violet: #a78bfa; --c-graphite: #94a3b8; --c-sky: #38bdf8;
  --v1: #3987e5; --v2: #d95926; --v3: #199e70; --v4: #c98500;
  --shadow: none;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px #1e2024;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01', 'ss03'; min-height: 100vh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); } .t2 { color: var(--text2); } .up { color: var(--up); } .down { color: var(--down); }
.hidden { display: none !important; }

/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .6s ease; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#splash.out { opacity: 0; pointer-events: none; }
#splash::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -62%); background: radial-gradient(circle, rgba(47, 99, 235, .30), rgba(47, 99, 235, 0) 65%); animation: glow 3.2s ease-in-out infinite alternate; }
#splash .mark { width: 150px; height: 150px; position: relative; filter: drop-shadow(0 0 28px rgba(64, 120, 255, .45)); opacity: 0; transform: scale(.92); animation: rise 1.1s .15s cubic-bezier(.2, .8, .2, 1) forwards; }
#splash .name { font-family: Inter, -apple-system, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: .32em; margin: 34px 0 0 .32em; position: relative; opacity: 0; animation: fade 1s 1s ease forwards; }
#splash .tag { font-family: Inter, -apple-system, sans-serif; font-size: 17px; color: rgba(255, 255, 255, .82); margin-top: 14px; position: relative; opacity: 0; animation: fade 1s 1.8s ease forwards; }
#splash .foot { position: absolute; bottom: calc(52px + var(--sab)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: Inter, -apple-system, sans-serif; opacity: 0; animation: fade .8s 2.4s ease forwards; }
#splash .bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
#splash .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6e9bff, #2563eb); animation: fill var(--splash-ms, 6000ms) linear forwards; }
#splash .skip { font-size: 12px; color: rgba(255, 255, 255, .42); letter-spacing: .04em; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fill { to { width: 100%; } }
@keyframes glow { from { opacity: .75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #splash * , #splash::before { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sb { background: var(--surface); border-right: 1px solid var(--line); }
.sb-in { position: sticky; top: 0; height: 100vh; padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-width: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; }
.logo-tile { width: 30px; height: 30px; border-radius: 9px; background: #000; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(37, 99, 235, .18); }
.logo-tile img { width: 24px; height: 24px; }
.wordmark { font-size: 15px; font-weight: 600; letter-spacing: .24em; }
.grp { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 8px; border-radius: 9px; color: var(--text2); font-size: 13.5px; font-weight: 500; position: relative; }
.nav a:hover { background: var(--subtle); color: var(--ink); }
.nav a.on { background: var(--gold-tint); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold); }
.nav a .badge { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.sb-spacer { flex: 1; min-height: 12px; }
.sb-quote { border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); border-radius: 12px; padding: 12px 12px 13px; margin: 6px 2px 10px; background: linear-gradient(135deg, var(--gold-tint), transparent 70%); }
.sb-quote .k { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.sb-quote p { font-size: 13px; font-weight: 500; line-height: 1.4; }
.profile { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); width: 100%; text-align: left; border-radius: 0; }
.profile:hover .n { color: var(--primary); }
.av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #6e9bff, #1e3fae); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; letter-spacing: .02em; }
.profile .n { font-size: 13px; font-weight: 600; }
.profile .e { font-size: 11.5px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile > svg { margin-left: auto; color: var(--muted); }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: inline-block; margin-left: 6px; vertical-align: middle; }
.sync-dot.syncing { background: var(--c-amber); animation: pulse 1s infinite alternate; }
.sync-dot.offline, .sync-dot.error { background: var(--muted); }
@keyframes pulse { to { opacity: .3; } }

main { padding: 0 36px 56px; min-width: 0; }
.top { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top h1 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.top .sub { font-size: 13px; color: var(--muted); margin-top: 1px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 10px; }
.search { width: 250px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); font-size: 13px; }
.search:hover { border-color: var(--line2); }
.search kbd, .menu kbd { margin-left: auto; font: 600 11px Inter, sans-serif; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg > button, .seg > span { height: 28px; min-width: 30px; padding: 0 10px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.seg > button:hover { color: var(--ink); }
.seg > .on { background: var(--primary); color: var(--on-primary); }
.ibtn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: grid; place-items: center; color: var(--text2); position: relative; flex: none; }
.ibtn:hover { color: var(--ink); border-color: var(--line2); }
.ibtn.ghost { border-color: transparent; background: transparent; }
.ibtn.sm { width: 30px; height: 30px; border-radius: 8px; }
.ibtn .dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-rose); box-shadow: 0 0 0 2px var(--surface); }
.btn { height: 36px; padding: 0 14px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background .15s; }
.btn:hover { background: var(--primary-h); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--line2); background: var(--subtle); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 46px; font-size: 14.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--down); }
.btn.danger-solid { background: var(--down); color: #fff; }
.link { font-size: 12.5px; font-weight: 550; color: var(--text2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link:hover { color: var(--primary); }
.link.blue { color: var(--primary); }

/* ---------- cards & grid ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ch h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.ch .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.g { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } .g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
.gside { grid-template-columns: minmax(0, 1fr) 300px; } .gleft { grid-template-columns: 250px minmax(0, 1fr); }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar .sp, .modal-f .sp { flex: 1; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--up-bg); color: var(--up); }
.pill.neg { background: var(--down-bg); color: var(--down); }
.pill.amb { background: color-mix(in srgb, var(--c-amber) 13%, transparent); color: var(--c-amber); }
.pill.gold { background: var(--gold-tint); color: var(--gold); }
.pill.out { background: none; border: 1px solid var(--line2); color: var(--text2); }
.pill.flat { background: var(--subtle); color: var(--text2); }
.tile { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--c, var(--gold)); background: color-mix(in srgb, var(--c, var(--gold)) 14%, transparent); }
.tile svg.i { width: 15px; height: 15px; }
.tile.big { width: 48px; height: 48px; border-radius: 14px; }
.tile.big svg.i { width: 22px; height: 22px; }
.glyph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c, var(--gold)); background: color-mix(in srgb, var(--c, var(--gold)) 13%, transparent); }
.thumb { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--c, var(--c-copper)); background: color-mix(in srgb, var(--c, var(--c-copper)) 13%, transparent); }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.bar { height: 6px; border-radius: 3px; background: var(--subtle); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); transition: width .4s ease; }
.dotc { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- dashboard hero ---------- */
.hero { position: relative; height: 300px; border-radius: 20px; overflow: hidden; color: #fff; margin-top: 4px; background: #111; isolation: isolate; }
.hero .slide { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transition: opacity 1.2s ease, transform 8s ease; transform: scale(1.04); z-index: -2; }
.hero .slide.on { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .74) 0%, rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .18) 100%), linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 45%); }
.hero-in { height: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 32px; }
.hero .date { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.hero h2 { font-size: 36px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0; }
.hero .lead { font-size: 14px; opacity: .85; }
.glass { width: 380px; flex: none; border-radius: 16px; padding: 20px 22px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.glass .k { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; display: flex; justify-content: space-between; align-items: center; }
.glass q { display: block; font-size: 19px; font-weight: 550; line-height: 1.38; letter-spacing: -.01em; margin: 10px 0 12px; quotes: none; }
.glass .f { font-size: 11.5px; opacity: .7; }
.dots { position: absolute; left: 32px; top: 28px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); padding: 0; transition: width .3s, background .3s; }
.dots button.on { width: 22px; background: #fff; }
.hero-cap { position: absolute; right: 32px; top: 26px; z-index: 2; font-size: 11px; font-weight: 550; letter-spacing: .06em; opacity: .7; text-transform: uppercase; }
.kpis { margin-top: 32px; }

/* ---------- page hero ---------- */
.phero { position: relative; height: 196px; border-radius: 20px; overflow: hidden; color: #fff; margin: 4px 0 20px; background: #111 center/cover no-repeat; }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .70) 0%, rgba(0, 0, 0, .34) 52%, rgba(0, 0, 0, .12) 100%), linear-gradient(0deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0) 55%); }
.phero-in { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 26px 30px; }
.phero .ttl { display: flex; align-items: center; gap: 16px; min-width: 0; }
.phero .big { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--c); box-shadow: 0 6px 20px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25); flex: none; }
.dark .phero .big { background: color-mix(in srgb, var(--c) 85%, #000); }
.phero .big svg.i { width: 23px; height: 23px; stroke: #fff; }
.phero h1 { font-size: 30px; font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
.phero .sub { font-size: 13.5px; opacity: .85; margin-top: 4px; }
.phero .loc { position: absolute; right: 30px; top: 24px; z-index: 2; font-size: 11px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; opacity: .78; display: flex; gap: 6px; align-items: center; }
.chips { display: flex; gap: 10px; }
.chip { min-width: 124px; border-radius: 13px; padding: 11px 15px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chip .k { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.chip .v { font-size: 17px; font-weight: 620; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

/* ---------- KPI ---------- */
.kpi { position: relative; padding: 18px 20px; }
.kpi .l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 550; color: var(--text2); }
.kpi .l .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.kpi .v { font-size: 28px; font-weight: 650; letter-spacing: -.025em; margin: 14px 0 6px; white-space: nowrap; }
.kpi .d { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); min-height: 20px; }
.kpi svg.sp { position: absolute; right: 20px; top: 58px; }

/* ---------- charts ---------- */
.chart { position: relative; min-height: 120px; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart svg text { font-family: Inter, sans-serif; font-size: 11px; fill: var(--muted); }
.chart svg text.end-label { fill: var(--text2); font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text2); align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 12px; min-width: 140px; box-shadow: 0 8px 24px rgba(0, 0, 0, .10); }
.tip .h { font-weight: 600; margin-bottom: 6px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--text2); line-height: 1.7; }
.tip .r b { color: var(--ink); font-weight: 600; }
.tip .r i { display: inline-block; width: 10px; height: 2px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tip .sep { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* ---------- lists ---------- */
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; padding-top: 2px; }
.row .t { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.row .m { font-size: 12px; color: var(--muted); }
.row.done .t { color: var(--muted); text-decoration: line-through; }
.row.click { cursor: pointer; border-radius: 8px; }
.row.click:hover .t { color: var(--primary); }
.right { margin-left: auto; text-align: right; flex: none; }
.chk { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--line2); flex: none; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.chk:hover { border-color: var(--c-emerald); }
.chk.on { background: var(--c-emerald); border-color: var(--c-emerald); color: #fff; }
.chk.on svg { width: 12px; height: 12px; stroke-width: 2.6; }
.datebox { width: 42px; flex: none; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; }
.datebox b { display: block; font-size: 15px; font-weight: 650; line-height: 1.2; color: var(--gold); }
.datebox span { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.row-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.row:hover .row-actions, .row:focus-within .row-actions { opacity: 1; }
@media (hover: none) { .row-actions { opacity: 1; } }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--subtle); }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 8px 12px 11px; font-size: 13px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--gold); }
.tabs button b { font-weight: 600; color: var(--muted); margin-left: 3px; }

/* ---------- forms ---------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 12.5px; font-weight: 600; }
.field small { font-size: 11.5px; color: var(--muted); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--down); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 9px 12px; font-size: 14px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
input[type=date], input[type=time] { min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--gold-tint); }
input::placeholder, textarea::placeholder { color: var(--muted); }
.select { position: relative; }
.select select { padding-right: 32px; }
.select svg { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-affix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.input-affix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--gold-tint); }
.input-affix span { padding-left: 12px; color: var(--muted); font-weight: 600; }
.input-affix input { border: 0 !important; box-shadow: none !important; padding-left: 6px; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 38px; }
.input-icon .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check-row { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 4px 0; }
.check-row b { display: block; font-size: 13.5px; font-weight: 550; }
.check-row small { display: block; }
.tog-input { position: absolute; opacity: 0; pointer-events: none; }
.tog { width: 38px; height: 22px; border-radius: 11px; background: var(--line2); position: relative; flex: none; transition: background .2s; display: inline-block; }
.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .2s; }
.tog-input:checked + .tog, .tog.on { background: var(--gold); }
.tog-input:checked + .tog::after, .tog.on::after { left: 19px; }
.tog-input:focus-visible + .tog { outline: 2px solid var(--primary); outline-offset: 2px; }
.quick { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 12px; background: var(--surface); }
.quick:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--gold-tint); }
.quick input { border: 0 !important; box-shadow: none !important; padding-left: 0; background: transparent; }
.quick svg { color: var(--muted); }

/* ---------- modal / sheet ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(5, 10, 20, .45); opacity: 0; transition: opacity .2s; backdrop-filter: blur(2px); }
.modal { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); opacity: 0; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.modal.wide { max-width: 760px; }
.modal-root.in .modal-bg { opacity: 1; }
.modal-root.in .modal { transform: none; opacity: 1; }
.modal .grab { display: none; }
.modal-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 6px 24px; }
.modal-h h2 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
.modal-h p { font-size: 13px; margin-top: 3px; }
.modal-b { padding: 12px 24px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-f { display: flex; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
html.modal-open { overflow: hidden; }

.can, .cant { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; padding: 5px 0; }
.can i, .cant i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: 11px; font-weight: 700; }
.can i { background: var(--up-bg); color: var(--up); } .cant i { background: var(--down-bg); color: var(--down); }

/* ---------- menu, toast, palette ---------- */
.menu { position: fixed; z-index: 300; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .12s, transform .12s; }
.menu.in { opacity: 1; transform: none; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; text-align: left; }
.menu button:hover, .menu button.active { background: var(--subtle); }
.menu button.danger { color: var(--down); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
#toasts { position: fixed; z-index: 400; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: #0b1220; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.dark .toast { background: #1b1d22; border: 1px solid #2a2d33; }
.toast.in { opacity: 1; transform: none; }
.toast .ti { color: #34d399; display: grid; } .toast.error .ti { color: #fb7185; } .toast.info .ti { color: #8fb0ff; }
.toast .ta { color: #8fb0ff; font-weight: 600; margin-left: 6px; }
.palette .modal-b { padding: 0; }
.palette .pal-in { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.palette .pal-in input { border: 0 !important; box-shadow: none !important; padding: 0; font-size: 16px; min-height: 30px; }
.palette .pal-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.palette .pal-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-align: left; }
.palette .pal-list button.active, .palette .pal-list button:hover { background: var(--subtle); }
.palette .pal-list .m { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.palette .pal-g { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { font-size: 15px; font-weight: 600; margin-top: 6px; }
.empty p { color: var(--muted); font-size: 13px; max-width: 360px; line-height: 1.5; }
.empty-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.empty.sm { padding: 16px 8px; }
.empty.sm .tile.big { width: 38px; height: 38px; border-radius: 11px; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal .dh { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--subtle); }
.cal .d { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; text-align: left; align-items: stretch; min-width: 0; }
.cal .d:hover { background: var(--subtle); }
.cal .d.sel { background: var(--gold-tint); }
.cal .d .dn { font-weight: 600; font-size: 12.5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .d.out .dn { color: var(--muted); font-weight: 500; }
.cal .d.today .dn { background: var(--primary); color: var(--on-primary); }
.cal .more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.ev { --c: var(--c-gold); font-size: 11.5px; font-weight: 550; padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 13%, transparent); border-left: 2px solid var(--c); text-align: left; }
.wk { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wk .wh { padding: 10px 6px; text-align: center; font-size: 12px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--subtle); }
.wk .wh b { display: block; font-size: 16px; }
.wk .wh.today b { color: var(--primary); }
.wk .tcol { position: relative; border-left: 1px solid var(--line); }
.wk .hr-l { height: 44px; border-bottom: 1px dashed var(--line); font-size: 10.5px; color: var(--muted); padding: 2px 6px; text-align: right; }
.wk .slot { height: 44px; border-bottom: 1px solid var(--line); }
.wk .blk { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 6px; font-size: 11.5px; font-weight: 550; overflow: hidden; background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-left: 3px solid var(--c); cursor: pointer; }
.wk .blk small { display: block; color: var(--text2); font-weight: 500; }
.wk .allday { grid-column: 1 / -1; display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.wk .allday > div { padding: 4px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- kanban ---------- */
.kb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.col { background: var(--subtle); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 120px; transition: background .15s; }
.col.over { background: var(--gold-tint); border-color: var(--gold); }
.col h4 { font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 10px; }
.kc { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px; margin-top: 8px; font-size: 13px; font-weight: 550; cursor: grab; touch-action: manipulation; }
.kc:active { cursor: grabbing; }
.kc.dragging { opacity: .4; }
.kc .m { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }

/* ---------- integrations ---------- */
.icard { display: flex; flex-direction: column; gap: 14px; }
.icard .hd { display: flex; align-items: center; gap: 12px; }
.icard .glyph { width: 44px; height: 44px; border-radius: 12px; }
.icard .glyph svg.i { width: 20px; height: 20px; }
.icard .nm { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.icard .ac { font-size: 12.5px; color: var(--muted); }
.istats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.istats > div { background: var(--subtle); border-radius: 10px; padding: 10px 12px; }
.istats .k { font-size: 11px; color: var(--muted); font-weight: 550; }
.istats .v { font-size: 16px; font-weight: 650; margin-top: 2px; letter-spacing: -.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11.5px; font-weight: 550; color: var(--text2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.ift { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.ift .muted { font-size: 12px; margin-left: auto; }
.note { font-size: 12.5px; color: var(--text2); background: color-mix(in srgb, var(--c-amber) 9%, transparent); border-radius: 10px; padding: 10px 12px; line-height: 1.5; }
.note.info { background: var(--gold-tint); }
.note.err { background: var(--down-bg); }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.step b.n { width: 24px; height: 24px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; font-size: 12px; flex: none; }

/* ---------- report doc ---------- */
.doc h2 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.doc ul { padding-left: 18px; color: var(--text2); font-size: 13.5px; line-height: 1.9; }
.statbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.statbox .k { font-size: 12px; color: var(--muted); }
.statbox .v { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin: 6px 0 2px; }
.weeklist button { width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; display: block; }
.weeklist button:hover { background: var(--subtle); }
.weeklist button.on { background: var(--gold-tint); box-shadow: inset 2px 0 0 var(--gold); }
.editable { border: 1px dashed transparent; border-radius: 10px; padding: 6px 8px; margin: -6px -8px; min-height: 36px; outline: none; white-space: pre-wrap; }
.editable:hover { border-color: var(--line2); }
.editable:focus { border-color: var(--primary); border-style: solid; }
.editable:empty::before { content: attr(data-placeholder); color: var(--muted); }

/* ---------- login ---------- */
.login { position: relative; min-height: 100vh; background: #111 url(../img/login.jpg) center/cover no-repeat; }
.login::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .7)); }
.login .art { position: absolute; inset: 0; z-index: 1; color: #fff; padding: 32px 40px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.login .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login .corner { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.login .form { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 96px 20px; }
.login .box { width: 100%; max-width: 400px; padding: 32px 30px 26px; border-radius: 24px; color: #fff; background: rgba(12, 14, 20, .52); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.login h1 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.login .box .muted { color: rgba(255, 255, 255, .68); }
.login .box .input-icon > svg, .login .box .eye { color: rgba(255, 255, 255, .6); }
.login .box input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.login .box input::placeholder { color: rgba(255, 255, 255, .45); }
.login .box input:focus { border-color: #6e9bff; box-shadow: 0 0 0 3px rgba(110, 155, 255, .25); }
.login .box .note.info { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }
.login .box .note .ic, .login .box .link.blue { color: #8fb0ff; }
.login .err { font-size: 13px; color: #fecdd3; background: rgba(251, 113, 133, .15); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }

/* ---------- mobile chrome ---------- */
.mtop, .tabbar { display: none; }
.focus-bar { position: fixed; z-index: 150; right: 24px; bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 12px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }

@media (max-width: 1240px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass { width: 320px; }
  .kb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .sb .wordmark, .sb .grp, .sb .nav a span.lbl, .sb .nav a .badge, .sb-quote, .profile > div, .profile > svg { display: none; }
  .sb-in { padding: 18px 10px; align-items: center; }
  .brand { padding: 0 0 12px; }
  .nav a { width: 44px; justify-content: center; padding: 0; }
  .profile { justify-content: center; padding: 12px 0 4px; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21, .g12, .gside { grid-template-columns: minmax(0, 1fr); }
  main { padding: 0 24px 48px; }
  .search { width: 180px; }
  .chips .chip:nth-child(3) { display: none; }
}
@media (max-width: 760px) { .g3 { grid-template-columns: minmax(0, 1fr); } .gleft { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .app { display: block; }
  .sb, .top { display: none; }
  main { padding: 0 16px calc(104px + var(--sab)); }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--sat) + 14px) 2px 14px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); margin: 0 -16px; padding-left: 18px; padding-right: 18px; }
  .mtop .brand { padding: 0; }
  .mtop .av { width: 34px; height: 34px; }
  .mtop .right-actions { display: flex; gap: 8px; align-items: center; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 10px calc(8px + var(--sab)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); justify-content: space-around; }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 550; color: var(--muted); width: 64px; padding-top: 2px; }
  .tabbar button.on { color: var(--primary); }
  .tabbar svg.i { width: 23px; height: 23px; }
  .fab { position: fixed; right: 16px; bottom: calc(84px + var(--sab)); z-index: 49; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37, 99, 235, .4); }
  .fab svg.i { width: 22px; height: 22px; }
  .hero { height: auto; }
  .hero-in { flex-direction: column; align-items: stretch; padding: 54px 20px 20px; gap: 18px; }
  .hero h2 { font-size: 28px; }
  .hero .lead { font-size: 13px; }
  .glass { width: auto; padding: 16px 18px; }
  .glass q { font-size: 16.5px; margin: 8px 0; }
  .dots { left: 20px; top: 22px; } .hero-cap { display: none; }
  .kpis { margin-top: 22px; }
  .g4, .g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .g2.stack { grid-template-columns: minmax(0, 1fr); }
  .g3, .g21, .g12, .gside, .gleft { grid-template-columns: minmax(0, 1fr); }
  .g { gap: 12px; }
  .kpi { padding: 14px 14px 16px; }
  .kpi .v { font-size: 22px; margin: 10px 0 4px; }
  .kpi svg.sp, .kpi .d .vs { display: none; }
  .card { padding: 16px; border-radius: 16px; }
  .phero { height: auto; margin-bottom: 14px; }
  .phero-in { position: relative; flex-direction: column; align-items: stretch; padding: 64px 18px 18px; gap: 16px; }
  .phero h1 { font-size: 25px; } .phero .big { width: 42px; height: 42px; border-radius: 12px; }
  .phero .loc { right: 18px; top: 20px; }
  .chip { min-width: 0; flex: 1; padding: 9px 12px; } .chip .v { font-size: 15px; }
  .chips .chip:nth-child(3) { display: none; }
  .hide-m { display: none !important; }
  .tip { display: none !important; }
  .ch { flex-wrap: wrap; }
  .legend span { white-space: nowrap; }
  .toolbar .search-in { flex: 1 1 100%; }
  .kb { grid-template-columns: minmax(0, 1fr); }
  .cal .d { min-height: 64px; padding: 4px; }
  .cal .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border-left: 0; background: var(--c); }
  .cal .dh { padding: 8px 4px; text-align: center; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .modal-root { place-items: end stretch; padding: 0; }
  .modal { max-width: none !important; border-radius: 22px 22px 0 0; max-height: 92vh; transform: translateY(100%); padding-bottom: var(--sab); }
  .modal .grab { display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line2); margin: 8px auto 0; }
  .modal-h { padding: 12px 16px 4px 20px; }
  .modal-b { padding: 10px 20px 16px; }
  .modal-f { padding: 12px 16px 14px; }
  .modal-f .btn { flex: 1; }
  .modal-f .sp { display: none; }
  .login .art { padding: calc(var(--sat) + 20px) 22px 22px; }
  .login .tag { display: none; }
  .login .corner { font-size: 10px; letter-spacing: .12em; }
  .login .form { padding: calc(var(--sat) + 80px) 16px calc(32px + var(--sab)); }
  .login .box { padding: 26px 20px 20px; border-radius: 22px; }
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { border-bottom: 1px solid var(--line); padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .tbl.cards td { border: 0; padding: 0; }
  .tbl.cards td[data-m="hide"] { display: none; }
  .tbl.cards td.r { text-align: right; }
  .focus-bar { right: 16px; left: 16px; bottom: calc(150px + var(--sab)); justify-content: space-between; }
  #toasts { bottom: calc(150px + var(--sab)); }
  .weeklist { display: flex; gap: 6px; overflow-x: auto; padding: 6px !important; scrollbar-width: none; }
  .weeklist button { min-width: 128px; flex: none; }
  .doc { padding: 20px !important; }
  .doc h2 { font-size: 21px; }
  input, select, textarea { font-size: 16px !important; }
}


/* ---------- extras ---------- */
.fab.hide-d { display: none; }
[data-m="show"] { display: none; }
.task-row.dragging { opacity: .4; }
.task-row[draggable=true] .drag-h { cursor: grab; }
.more-grid { display: flex; flex-direction: column; gap: 4px; margin: 0 -8px; }
.more-item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; font-size: 15px; font-weight: 550; }
.more-item:hover { background: var(--subtle); }
.more-item > svg { margin-left: auto; color: var(--muted); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip { position: relative; cursor: pointer; }
.pf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pf-chip span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12.5px; font-weight: 550; color: var(--text2); }
.pf-chip input:checked + span { background: var(--gold-tint); border-color: var(--gold); color: var(--gold); }
.pf-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 16px; border: 1.5px dashed var(--line2); border-radius: 14px; cursor: pointer; text-align: center; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--gold-tint); }
.gs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.gs:hover { border-color: var(--primary); background: var(--gold-tint); }
.gs b { font-size: 14px; font-weight: 600; margin-top: 4px; }
.gs small { font-size: 12.5px; color: var(--muted); }
.guide { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--text2); }
.guide b { color: var(--ink); font-weight: 600; }
.guide code, .note code { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--subtle); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.guide svg.i { vertical-align: -3px; }
.theme-opt { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: left; background: var(--surface); }
.theme-opt.on { border: 2px solid var(--gold); padding: 9px; }
input[readonly] { color: var(--text2); background: var(--subtle); }
.kr-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p, 0%), var(--subtle) var(--p, 0%)); outline: none; min-height: 0; padding: 0; border: 0; }
.kr-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); cursor: pointer; }
.kr-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); cursor: pointer; }
.wk button.wh { border-top: 0; border-right: 0; }
.cal button.d { border-top: 0; border-left: 0; background: none; font: inherit; color: inherit; }
.getting-started .g { margin-top: -4px; }
@media (max-width: 640px) {
  .fab.hide-d { display: grid; }
  .tbl.cards [data-m="show"] { display: block; }
  .gleft > .nav { display: none; }
}

/* ---------- print (weekly report → PDF) ---------- */
@media print {
  body { background: #fff; }
  .sb, .top, .mtop, .tabbar, .fab, .phero, .no-print, #toasts { display: none !important; }
  .app { display: block; }
  main { padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .print-only { display: block !important; }
  .gleft { display: block; }
}
.print-only { display: none; }
