/* ============================================================
   DuloProof — App Design Prototype
   Mock design language: dark ink sidebar + amber accents,
   light "paper" main, Space Grotesk (display) + Manrope (body).
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --ink-2: #15130F;
  --ink-3: #211d17;
  --amber: #F59E0B;
  --amber-deep: #c97d05;
  --cream: #FEF3C7;
  --paper: #FAF8F5;
  --stone: #78716C;
  --stone-2: #a8a29a;

  /* on dark (sidebar) */
  --on-dark: #FAF8F5;
  --on-dark-soft: #b8b2a8;
  --line-dark: rgba(250, 248, 245, 0.10);

  /* on light (main) */
  --on-light: #1c1917;
  --on-light-soft: #6b645c;
  --line-light: #e7e1d8;
  --card: #ffffff;
  --surface: #f3efe9;

  --green: #1f8a5b;
  --green-bg: rgba(31, 138, 91, 0.12);
  --red: #c0362c;
  --red-bg: rgba(192, 54, 44, 0.10);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "Space Mono", monospace;

  --radius: 16px;
  --sidebar-w: 248px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); background: var(--paper); color: var(--on-light); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
::selection { background: var(--amber); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ---- sidebar ---- */
.side { background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 10px 6px 22px; }
.side-logo { height: 32px; width: auto; display: block; }
.side-brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--amber); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px -6px rgba(245,158,11,.7); }
.side-brand .mark svg { width: 16px; height: 16px; color: var(--ink); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-group-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); padding: 16px 11px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--on-dark-soft); transition: background .15s, color .15s; white-space: nowrap; }
.nav-item svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.nav-item:hover { background: rgba(250,248,245,.05); color: var(--on-dark); }
.nav-item.active { background: rgba(245,158,11,.14); color: var(--cream); }
.nav-item.active svg { color: var(--amber); opacity: 1; }
.nav-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 2px 14px; padding-left: 10px; border-left: 1px solid var(--line-dark); }
.nav-sub .nav-item { font-size: 13.5px; padding: 8px 11px; }
.side-spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line-dark); margin-top: 10px; cursor: pointer; border-radius: 10px; }
.user-chip:hover { background: rgba(250,248,245,.04); }
.user-chip .av { width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; flex: none; }
.user-chip b { font-size: 13px; font-weight: 700; display: block; line-height: 1.2; }
.user-chip span { font-size: 11.5px; color: var(--stone-2); }

/* ---- main ---- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px 6px; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.crumb a:hover { color: var(--amber-deep); }
.page-title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; margin-top: 2px; }
.page { padding: 16px 32px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.muted { color: var(--on-light-soft); }
.mono { font-family: var(--mono); }

/* mobile topbar (hidden on desktop) */
.mtop { display: none; }

/* ============================================================
   COMPONENTS
   ============================================================ */
.card { background: var(--card); border: 1px solid var(--line-light); border-radius: var(--radius); }
.card-pad { padding: 20px; }
.card.hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.card.hover:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(10,10,10,.35); border-color: #ddd5c8; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 8px 22px -10px rgba(245,158,11,.7); }
.btn-amber:hover { background: #ffb01f; }
.btn-ghost { background: transparent; color: var(--on-light); border-color: #d8d1c6; }
.btn-ghost:hover { background: #fff; border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #2a2622; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(192,54,44,.4); }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { padding: 7px 13px; font-size: 13px; }

/* tabs / chips */
.tabs { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface); border: 1px solid var(--line-light); border-radius: 999px; }
.tab { padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--on-light-soft); background: transparent; border: 0; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.tab.active { background: var(--ink); color: var(--on-dark); }
.tab .cnt { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.08); }
.tab.active .cnt { background: rgba(255,255,255,.22); color: #fff; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--line-light); background: #fff; color: var(--on-light-soft); }
.chip.active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--on-light-soft); white-space: nowrap; }
.badge.amber { background: var(--cream); color: var(--amber-deep); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.stone { background: rgba(120,113,108,.12); color: var(--stone); }
/* category = neutral metadata chip + small muted dot (not an action color) */
.badge.cat { background: #efeae3; color: #5c554d; border: 1px solid #e7e1d8; font-weight: 600; }
/* "Global" reads as a quiet marker, not a heavy dark block */
.badge.global { background: transparent; color: var(--stone); border: 1px solid var(--line-light); }

/* search + actions */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--stone); }
.search input { width: 240px; max-width: 100%; padding: 10px 14px 10px 36px; border-radius: 999px; border: 1px solid var(--line-light); background: #fff; color: var(--on-light); outline: none; }
.search input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }

/* progress */
.progress { display: flex; align-items: center; gap: 10px; }
.progress .bar { flex: 1; min-width: 60px; height: 7px; border-radius: 4px; background: #ece5d8; overflow: hidden; }
.progress .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--amber), #f6b43e); }
.progress .bar.green i { background: var(--green); }
.progress .bar.red i { background: var(--red); }
.progress .cnt { font-size: 12.5px; color: var(--on-light-soft); font-weight: 600; white-space: nowrap; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--on-light-soft); }
.field .hint { font-size: 11.5px; color: var(--stone); }
.input, .select, textarea.input { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-light); background: #fff; color: var(--on-light); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.input:disabled, .input[readonly] { background: var(--surface); color: var(--stone); }
textarea.input { resize: vertical; min-height: 90px; }
.daybtns { display: flex; gap: 8px; flex-wrap: wrap; }
.daybtn { width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line-light); background: #fff; font-weight: 700; font-size: 13px; color: var(--on-light-soft); }
.daybtn.on { background: var(--amber); color: var(--ink); border-color: var(--amber-deep); }
.form-actions { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-light); }
.form-actions .spacer { flex: 1; }

/* table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line-light); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-light); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface); }

/* dropdown */
.dd { position: relative; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: #fff; border: 1px solid var(--line-light); border-radius: 12px; box-shadow: 0 24px 50px -24px rgba(10,10,10,.35); padding: 6px; z-index: 40; display: none; }
.dd.open .dd-menu { display: block; }
.dd-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); padding: 9px 12px 4px; }
.dd-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--on-light); }
.dd-item:hover { background: var(--surface); }
.dd-item.active { background: var(--cream); color: var(--amber-deep); }
.dd-item.amber { color: var(--amber-deep); }
.dd-divider { height: 1px; background: var(--line-light); margin: 5px 0; }

/* ============================================================
   KANBAN (Home)
   ============================================================ */
/* board: 3 distinct, color-coded columns */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.lane { background: #fff; border: 1px solid var(--line-light); border-top: 3px solid var(--lane-c, var(--stone-2)); border-radius: 4px 4px 14px 14px; padding: 14px 13px 16px; }
.lane.pending { --lane-c: #a8a29a; background: #f6f3ee; }                 /* not started — neutral */
.lane.inprogress { --lane-c: var(--amber); background: rgba(245,158,11,.05); } /* active work — amber */
.lane.completed { --lane-c: #5b6b86; background: rgba(91,107,134,.06); }  /* done/closed — slate (pass/fail shown per card) */
.lane-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding: 0 2px; }
.lane-head .lane-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lane-c, var(--stone-2)); flex: none; }
.lane-head h3 { font-size: 15px; }
.lane-head .cnt { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line-light); color: var(--on-light-soft); }

/* compact vertical board cards */
.bcard { background: #fff; border: 1px solid var(--line-light); border-radius: 11px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
.bcard:last-child { margin-bottom: 0; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(10,10,10,.4); border-color: #ddd5c8; }
.bcard.dashed { border-style: dashed; background: #fffdf9; }
.bc-top { display: flex; align-items: flex-start; gap: 10px; }
.bc-title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.bc-sub { font-size: 12.5px; color: var(--on-light-soft); margin-top: 1px; }
.bc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.bc-due { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--on-light-soft); white-space: nowrap; flex: none; }
.bc-due svg { width: 13px; height: 13px; }
.bc-due.over { color: var(--red); font-weight: 700; }
.bc-prog { margin-top: 11px; }
.bcard .av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 10.5px; color: #fff; }
.kcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line-light); border-radius: 14px; margin-bottom: 10px; transition: background .15s, border-color .15s, transform .15s; cursor: pointer; }
.kcard:hover { border-color: #ddd5c8; transform: translateY(-1px); }
.kcard.dashed { border-style: dashed; background: #fbf9f5; }
.kcard .grip { color: #cbc3b6; flex: none; }
.kcard .kc-main { flex: 1; min-width: 0; }
.kcard .kc-title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.kcard .kc-sub { font-size: 12.5px; color: var(--on-light-soft); }
.kcard .kc-cat { width: 150px; flex: none; }
.kcard .kc-due { width: 96px; flex: none; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-light-soft); }
.kcard .kc-due.over { color: var(--red); font-weight: 700; }
.kcard .kc-due svg { width: 14px; height: 14px; }
.kcard .kc-prog { width: 150px; flex: none; }
.kcard .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 11px; color: #fff; }
.lane-empty { padding: 26px; text-align: center; color: var(--stone); font-size: 13.5px; border: 1px dashed var(--line-light); border-radius: 14px; }

/* ============================================================
   STATS
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.stat .label { font-size: 12.5px; color: var(--on-light-soft); font-weight: 600; }
.stat .val { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; margin: 6px 0 4px; }
.stat .delta { font-size: 12px; font-weight: 700; }
.stat .delta.up { color: var(--green); }
.stat .delta.down { color: var(--red); }
.stat .desc { font-size: 11.5px; color: var(--stone); }
.barchart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; }
.barchart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.barchart .col .b { width: 60%; max-width: 34px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--amber), #f6b43e); }
.barchart .col .lbl { font-size: 11px; color: var(--stone); }
.catrow { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.catrow .nm { width: 150px; flex: none; font-size: 13.5px; font-weight: 600; }
.catrow .pct { width: 44px; flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--amber-deep); }
.donut { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.donut::after { content: attr(data-pct); width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }

/* settings hub / list rows */
.rowcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line-light); border-radius: 14px; margin-bottom: 10px; transition: background .15s, border-color .15s; cursor: pointer; }
.rowcard:hover { background: var(--surface); border-color: #ddd5c8; }
.rowcard .ico { width: 40px; height: 40px; border-radius: 11px; background: #efeae3; color: #4b463f; display: grid; place-items: center; flex: none; }
.rowcard .ico svg { width: 20px; height: 20px; }
.rowcard .rc-main { flex: 1; min-width: 0; }
.rowcard .rc-title { font-weight: 700; font-size: 14.5px; }
.rowcard .rc-sub { font-size: 12.5px; color: var(--on-light-soft); }
.rowcard .chev { color: var(--stone-2); flex: none; }

/* template masonry-ish grid */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tplcard { background: #fff; border: 1px solid var(--line-light); border-radius: 14px; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.tplcard:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -28px rgba(10,10,10,.32); border-color: #ddd5c8; }
.tplcard .thumb { height: 120px; background: var(--cream); position: relative; overflow: hidden; }
.tplcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tplcard .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--amber-deep); opacity: .5; }
.tplcard .tb { padding: 14px 16px; }
.tplcard .tb h4 { font-size: 15px; margin-bottom: 4px; }
.tplcard .meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--stone); }

/* detail items (history detail) */
.ditem { padding: 16px 18px; border: 1px solid var(--line-light); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.ditem .q { display: flex; align-items: flex-start; gap: 12px; }
.ditem .ord { width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.ditem .qt { flex: 1; font-weight: 600; font-size: 14.5px; }
.ditem .ans { margin: 10px 0 0 38px; font-size: 13.5px; color: var(--on-light-soft); }
.ditem .photos { display: flex; gap: 8px; margin: 10px 0 0 38px; }
.ditem .photos .ph { width: 56px; height: 56px; border-radius: 8px; background: repeating-linear-gradient(135deg,#efe7d6,#efe7d6 5px,#e7ddca 5px,#e7ddca 10px); display: grid; place-items: center; font-size: 16px; }
.note { margin: 8px 0 0 38px; font-size: 13px; color: var(--stone); font-style: italic; }

/* calendar */
.cal { background: #fff; border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line-light); }
.cal-head div { padding: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); font-weight: 700; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 104px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); padding: 8px; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell .d { font-size: 12px; font-weight: 700; color: var(--on-light-soft); }
.cal-cell.out .d { color: #cbc3b6; }
.cal-cell.today .d { color: var(--amber-deep); }
.cal-ev { margin-top: 5px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; border-left: 2px solid var(--amber); background: var(--cream); color: #854d0e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.green { border-left-color: var(--green); background: var(--green-bg); color: var(--green); }
.cal-ev.stone { border-left-color: var(--stone); background: rgba(120,113,108,.12); color: var(--stone); }

/* toast + banner */
.toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--ink); color: var(--on-dark); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); display: flex; align-items: center; gap: 9px; animation: toastin .3s var(--ease); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.proto-banner { position: fixed; right: 14px; bottom: 14px; z-index: 150; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--stone); background: rgba(10,10,10,.06); border: 1px solid var(--line-light); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.embed .proto-banner { display: none; }

.section-title { font-size: 18px; margin: 4px 0 14px; }
.stack { display: flex; flex-direction: column; }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
hr.sep { border: 0; border-top: 1px solid var(--line-light); margin: 24px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
.menu-btn { display: none; }
/* Scrim is only used as the mobile nav overlay — hidden by default so it never
   occupies a grid column on desktop (which would push .main out of view). */
.scrim { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 82%; max-width: 300px; z-index: 120; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .app.nav-open .side { transform: none; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(10,10,10,.5); z-index: 110; }
  .app.nav-open .scrim { display: block; }
  .mtop { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-light); background: var(--paper); position: sticky; top: 0; z-index: 50; }
  .menu-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-light); background: #fff; }
  .topbar, .page { padding-left: 18px; padding-right: 18px; }
  .form-grid, .grid.c4, .grid.c3, .grid.c2, .tpl-grid, .board { grid-template-columns: 1fr; }
  .kcard .kc-cat, .kcard .kc-due, .kcard .kc-prog { display: none; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}

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