/* GMC-Pro v7 — design system. Light + dark, mobile-first, Gujarati-friendly type. */
@font-face { font-family: "GMC Gujarati"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/noto-sans-gujarati.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839; }
:root {
  --bg: #f3f5fa; --card: #ffffff; --card-2: #f8fafc; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #eef2f7;
  --brand: #1e3a8a; --brand-2: #2f55d4; --brand-soft: #e8edfb; --accent: #f59e0b;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #dc2626; --bad-soft: #fee2e2; --info: #0369a1; --info-soft: #e0f2fe; --violet: #6d28d9; --violet-soft: #ede9fe;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .05); --radius: 14px; --side: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1120; --card: #131c31; --card-2: #182340; --ink: #e6ebf7; --ink-2: #c3cce0; --muted: #8b98b5; --line: #25324f; --line-2: #1c2842;
  --brand: #93b0ff; --brand-2: #7c9cff; --brand-soft: #1d2a4d; --accent: #fbbf24;
  --ok: #4ade80; --ok-soft: #12351f; --warn: #fbbf24; --warn-soft: #3b2d0b; --bad: #f87171; --bad-soft: #401a1a; --info: #7dd3fc; --info-soft: #0f2d42; --violet: #c4b5fd; --violet-soft: #2a2050;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 "GMC Gujarati", system-ui, -apple-system, "Segoe UI", "Noto Sans Gujarati", "Kohinoor Gujarati", "Shruti", sans-serif; }
a { color: var(--brand-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; } h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 10px; } small, .small { font-size: 12.5px; } .muted { color: var(--muted); }
code { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: #101b3d; color: #cbd5f5; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 40; }
:root[data-theme="dark"] .side { background: #0a1228; border-right: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px 14px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #f59e0b, #f97316); color: #1c1917; font-weight: 800; font-size: 12px; display: grid; place-items: center; letter-spacing: .5px; }
.brand b { display: block; font-size: 16px; } .brand small { color: #94a3d1; }
.nav { padding: 4px 10px 16px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0; border-radius: 9px; color: #cbd5f5; font-size: 14px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.on { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; }
.nav .ico { width: 20px; text-align: center; }
.nav .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d8bb8; padding: 14px 10px 4px; }
.pill { margin-left: auto; background: var(--accent); color: #1c1917; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side-foot { padding: 10px 14px 14px; font-size: 11.5px; color: #7d8bb8; border-top: 1px solid rgba(255, 255, 255, .08); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 22px; display: flex; gap: 10px; align-items: center; }
.quick { flex: 1; position: relative; max-width: 760px; }
.quick input[type=text] { width: 100%; padding: 10px 14px 10px 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; box-shadow: var(--shadow); }
.quick input[type=text]:focus { outline: 2px solid var(--brand-2); outline-offset: 0; }
.quick::before { content: "✨"; position: absolute; left: 13px; top: 9px; }
.top-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 11px; height: 40px; min-width: 40px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; position: relative; text-decoration: none !important; }
.top-btn:hover { border-color: var(--brand-2); }
.top-btn .dot { position: absolute; top: -5px; right: -5px; background: var(--bad); color: #fff; border-radius: 999px; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.kbd { font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--ink); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.content { padding: 20px 22px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.menu-btn { display: none; }
.tabbar { display: none; }

/* ---------- common ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .right { margin-left: auto; }
.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)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.card-h h2, .card-h h3 { flex: 1; } .card-b { padding: 14px 16px; } .card-b.flush { padding: 0; }
.count { background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; font-size: 12px; padding: 0 8px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--brand-2); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; } .btn.primary:hover { filter: brightness(1.08); }
:root[data-theme="dark"] .btn.primary { color: #0b1120; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; } :root[data-theme="dark"] .btn.ok { color: #06250f; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); } .btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--card-2); }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 8px; } .btn.block { width: 100%; }
.chip { word-spacing: 3px; display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 600; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.st-open { background: var(--card-2); } .st-progress { background: var(--info-soft); color: var(--info); border-color: transparent; }
.st-approval { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .st-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.st-cancel { background: var(--line); color: var(--muted); border-color: transparent; text-decoration: line-through; }
.due-over { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .due-today { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.due-soon { background: var(--info-soft); color: var(--info); border-color: transparent; } .due-none { color: var(--muted); }
.risk-high, .risk-overdue { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .risk-medium { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.ai { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.dot-c { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.flash { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: min(92vw, 640px); font-weight: 600; display: flex; gap: 12px; align-items: center; }
.flash.err { background: var(--bad); color: #fff; } .flash a { color: inherit; text-decoration: underline; } .flash button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 16px; }
.banner { border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); } .banner.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); } .banner.ai { background: var(--violet-soft); border-color: transparent; color: var(--violet); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; } .empty .big { font-size: 34px; display: block; margin-bottom: 4px; }

/* ---------- forms ---------- */
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
label.f > span { display: block; margin-bottom: 4px; } label.f .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
textarea { min-height: 84px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; margin-bottom: 8px; } .check input { width: 17px; height: 17px; accent-color: var(--brand-2); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .inline-form > input, .inline-form > select { flex: 1; min-width: 120px; }
form.i { display: inline; }
.page-head select, .page-head input[type=date] { width: auto; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; text-decoration: none !important; color: var(--ink); }
.stat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--brand-soft); flex: none; }
.stat .n { font-size: 26px; font-weight: 800; line-height: 1; } .stat .l { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat.bad .ic { background: var(--bad-soft); } .stat.bad .n { color: var(--bad); } .stat.warn .ic { background: var(--warn-soft); } .stat.ok .ic { background: var(--ok-soft); }

/* ---------- task rows ---------- */
.tlist { list-style: none; margin: 0; padding: 0; }
.trow { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--line-2); text-decoration: none !important; color: var(--ink); }
.trow:last-child { border-bottom: 0; } .trow:hover { background: var(--card-2); }
.trow .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex: none; background: var(--card-2); border: 1px solid var(--line); }
.trow .tt { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; } .trow .tm { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; font-size: 12.5px; color: var(--muted); }
.trow.done .tt { color: var(--muted); text-decoration: line-through; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.bar.w { width: 70px; display: inline-block; vertical-align: middle; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; } table.data tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--brand-2); border-color: var(--brand-2); }
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.pager { display: flex; gap: 6px; justify-content: center; padding: 12px; }
details.more > summary { cursor: pointer; color: var(--brand-2); font-weight: 600; font-size: 13.5px; list-style: none; } details.more > summary::-webkit-details-marker { display: none; }

/* ---------- task detail ---------- */
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stage { flex: 1; min-width: 110px; border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; font-family: inherit; }
.stage.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .stage.cur { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-2); }
.stage small { display: block; font-weight: 400; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.checklist label:last-of-type { border-bottom: 0; } .checklist input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ok); flex: none; }
.checklist .is-done span { color: var(--muted); text-decoration: line-through; }
.chat { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.msg { max-width: 85%; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); border-color: transparent; } .msg.system { align-self: center; background: transparent; border-style: dashed; font-size: 12.5px; color: var(--muted); }
.msg b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 16px 8px; font-size: 13px; } .timeline li { padding: 7px 0 7px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.md h3, .md h4, .md h5 { margin: 12px 0 6px; } .md ul, .md ol { margin: 0 0 10px; padding-left: 20px; } .md p { margin: 0 0 8px; }
.draft-body { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-height: 420px; overflow: auto; }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; } .sugg button { text-align: left; border: 1px dashed var(--brand-2); background: var(--brand-soft); color: var(--ink); border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.sugg button small { display: block; color: var(--muted); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; padding-bottom: 8px; }
.kcol { min-width: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); min-height: 260px; }
.kcol.over { outline: 2px dashed var(--brand-2); background: var(--brand-soft); }
.kcol-h { padding: 10px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.kcards { padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: calc(100vh - 215px); overflow-y: auto; } /* each column scrolls on its own, so every column stays a reachable drop target */
.kcard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 11px; padding: 9px 11px; box-shadow: var(--shadow); cursor: grab; color: var(--ink); display: block; text-decoration: none !important; }
.kcard.dragging { opacity: .45; } .kcard .tt { font-weight: 600; font-size: 14px; line-height: 1.35; } .kcard .tm { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); align-items: center; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .wd { padding: 6px 8px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 104px; padding: 5px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; overflow: hidden; }
.cal .day.out { background: var(--card-2); } .cal .day.today { background: var(--brand-soft); } .cal .dn { font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; }
.cal .ev { display: block; margin-top: 3px; padding: 1px 6px; border-radius: 6px; background: var(--info-soft); color: var(--info); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal .ev.over { background: var(--bad-soft); color: var(--bad); } .cal .ev.done { background: var(--ok-soft); color: var(--ok); text-decoration: line-through; } .cal .add { color: var(--muted); text-decoration: none; opacity: 0; } .cal .day:hover .add { opacity: 1; }

/* ---------- charts (pure CSS) ---------- */
.hbar { display: grid; grid-template-columns: 150px 1fr 46px; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbar .trk { height: 14px; background: var(--line-2); border-radius: 99px; overflow: hidden; display: flex; } .hbar .trk i { display: block; height: 100%; }
.cols { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 8px; } .cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 4px; height: 100%; }
.cols .c i { display: block; border-radius: 3px 3px 0 0; background: var(--brand-2); min-height: 1px; } .cols .c i.d { background: var(--ok); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; } .legend span { display: inline-flex; gap: 5px; align-items: center; }

/* ---------- dialogs ---------- */
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--card); color: var(--ink); width: min(620px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(8, 12, 28, .55); backdrop-filter: blur(2px); }
.dlg-h { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; } .dlg-h h2 { flex: 1; }
.dlg-b { padding: 14px 18px; max-height: 70vh; overflow-y: auto; } .dlg-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; }
#palette { width: min(640px, 94vw); margin-top: 10vh; } #palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 15px 18px; font-size: 16px; outline: none !important; }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; } .pal-item { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none !important; align-items: center; }
.pal-item.sel, .pal-item:hover { background: var(--brand-soft); } .pal-item small { display: block; color: var(--muted); }
.menu { position: relative; display: inline-block; } .menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); min-width: 250px; padding: 6px; z-index: 20; display: none; }
.menu.open .menu-list { display: block; } .menu-list button, .menu-list a { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
.menu-list button:hover, .menu-list a:hover { background: var(--card-2); }
.tree, .tree ul { list-style: none; margin: 0; padding-left: 22px; } .tree { padding-left: 0; } .tree li { margin: 6px 0; } .tree .node { display: inline-flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 6px 12px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% -10%, #c7d5ff 0, transparent 60%), var(--bg); }
:root[data-theme="dark"] .login-wrap { background: radial-gradient(1200px 600px at 20% -10%, #1d2a4d 0, transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); } .login-card .brand { color: var(--ink); padding: 0 0 14px; } .login-card .brand small { color: var(--muted); }
.copy { cursor: pointer; } pre.block { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 300px; overflow: auto; margin: 0 0 10px; font-family: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-102%); transition: transform .2s; box-shadow: 10px 0 40px rgba(0, 0, 0, .3); }
  body.nav-open .side { transform: none; } body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 35; }
  .menu-btn { display: inline-flex; } .top { padding: 8px 12px; } .content { padding: 14px 12px 90px; } .user-chip .nm, .kbd { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g3 { grid-template-columns: 1fr; } .hbar { grid-template-columns: 96px 1fr 40px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; font-size: 11px; color: var(--muted); text-decoration: none; position: relative; } .tabbar a span { font-size: 19px; }
  .tabbar a.on { color: var(--brand-2); font-weight: 700; } .tabbar a.plus span { background: var(--brand-2); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-top: -18px; box-shadow: var(--shadow); }
  .cal .day { min-height: 70px; } .cal .ev { font-size: 10.5px; padding: 0 3px; } h1 { font-size: 19px; } .kv { grid-template-columns: 92px 1fr; }
}
@media print {
  .side, .top, .tabbar, .no-print, .flash { display: none !important; } .app { display: block; } .content { padding: 0; max-width: none; }
  body { background: #fff; color: #000; font-size: 12px; } .card { box-shadow: none; border-color: #999; break-inside: avoid; } a { color: #000; }
}
@media (max-width: 900px) {
  .page-head { flex-direction: column; align-items: stretch; } .page-head > .row { flex-wrap: wrap; } #themeBtn { display: none; }
  .filters { grid-template-columns: 1fr; } .kanban { grid-template-columns: repeat(4, 82vw); } dialog { width: 96vw; } .grid.g4 { grid-template-columns: 1fr 1fr; }
}
