/* ============================================================
   KORMIK OS — APP STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html, body { height: 100%; }
body {
  font-family: var(--f-body);
  background: #050507;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-lang="bn"] {
  --f-body: 'Hind Siliguri', 'Inter', sans-serif;
  --f-display: 'Hind Siliguri', 'Inter', sans-serif;
}
button { font: inherit; border: 0; background: 0; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; }

.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--f-mono); }
.bn { font-family: 'Hind Siliguri', sans-serif; }

/* ============================================================
   STAGE + PHONE FRAME
   ============================================================ */
.stage {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,107,0,.07), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(56,120,218,.04), transparent 60%),
    #050507;
}
.phone {
  position: relative;
  width: 402px; height: 870px;
  max-height: 96vh;
  background: var(--bg);
  border-radius: 48px;
  overflow: hidden;
  box-shadow:
    0 0 0 11px #15151d,
    0 0 0 13px #2a2a35,
    0 50px 100px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
  transition: background-color var(--t) var(--ease);
}
.phone__notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 124px; height: 32px;
  background: #15151d;
  border-radius: 0 0 20px 20px;
  z-index: 60;
}
.phone__statusbar {
  height: 48px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  z-index: 10;
  letter-spacing: -.01em;
}
.phone__icons { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); }
.phone__icons svg { width: 17px; height: 13px; fill: currentColor; }

.stage__cap {
  display: flex; gap: 24px; align-items: center;
  font-family: var(--f-num); font-style: italic;
  font-size: 11px; letter-spacing: .22em;
  color: rgba(255,255,255,.4); text-transform: uppercase;
}
.stage__cap .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--o-500); margin: 0 5px 1px; vertical-align: middle; }
.stage__hint { font-style: normal; font-family: var(--f-body); letter-spacing: .04em; text-transform: none; opacity: .7; }

@media (max-width: 520px) {
  body { display: block; overflow: auto; background: var(--bg); }
  .stage { position: static; gap: 0; background: var(--bg); }
  .stage__cap { display: none; }
  .phone {
    width: 100vw; height: 100vh; height: 100dvh;
    max-height: none; border-radius: 0; box-shadow: none;
  }
  .phone__notch { display: none; }
}

/* Grain overlay on phone surface */
.phone::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .55;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
:root[data-theme="light"] .phone::after { mix-blend-mode: multiply; opacity: .35; }

/* ============================================================
   ROOT (screen content scroll area)
   ============================================================ */
.root {
  position: relative;
  flex: 1; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 0 0 110px;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.root::-webkit-scrollbar { display: none; }

.screen { animation: scrIn .34s var(--ease-out); padding: 0 22px; }
@keyframes scrIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   APP HEADER (per screen)
   ============================================================ */
.appbar {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 0 18px;
}
.appbar__mark {
  display: inline-flex; align-items: baseline;
  font-family: 'Hind Siliguri', serif;
  font-weight: 700; font-size: 22px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.appbar__mark .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  align-self: flex-end;
  margin-bottom: 5px;
  box-shadow: 0 0 12px rgba(255,107,0,.55);
}
.appbar__tag {
  font-family: var(--f-num); font-style: italic;
  font-size: 10px; font-weight: 600;
  letter-spacing: .26em;
  color: var(--ink-3);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.appbar__rule {
  flex: 1; height: 1px; background: var(--rule);
}
.appbar__btn {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
}
.appbar__btn:active { background: var(--bg-elev-3); transform: scale(.94); }
.appbar__btn svg { width: 17px; height: 17px; }

/* Back row */
.backrow {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0 10px;
  color: var(--ink-2);
  font-size: 14px; font-weight: 600;
}
.backrow svg { width: 18px; height: 18px; }
.backrow:active { color: var(--accent); }

/* Page header (operational print) */
.pagehead {
  padding: 4px 0 18px;
}
.pagehead__kicker {
  font-family: var(--f-num); font-style: italic;
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.pagehead__kicker::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.pagehead__title {
  font-family: var(--f-display);
  font-size: 32px; font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--ink);
}
body[data-lang="bn"] .pagehead__title { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: 0; }
.pagehead__sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 32ch;
}

/* Hairline section divider with optional label */
.rule-label {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 12px;
  color: var(--ink-3);
  font-family: var(--f-num); font-style: italic;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.rule-label__line { flex: 1; height: 1px; background: var(--rule); }
.rule-label .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rule-label__link { color: var(--accent); text-transform: none; font-style: normal; font-family: var(--f-body); letter-spacing: 0; font-weight: 600; font-size: 12px; }

/* ============================================================
   CARDS / SLABS
   ============================================================ */
.slab {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.slab--flush { padding: 0; }
.slab--accent {
  border-color: rgba(255,107,0,.35);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 50%),
    var(--bg-elev-1);
}
.slab + .slab { margin-top: 12px; }

/* Strong left edge band — operational signature */
.slab--banded { padding-left: 20px; }
.slab--banded::before {
  content: ""; position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.slab--banded.is-green::before { background: var(--green); }
.slab--banded.is-blue::before  { background: var(--blue); }
.slab--banded.is-amber::before { background: var(--amber); }
.slab--banded.is-red::before   { background: var(--red); }
.slab--banded.is-muted::before { background: var(--ink-4); }

/* Big editorial number block */
.megablock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  padding: 22px 4px 18px;
  border-bottom: 1px solid var(--rule);
}
.megablock__num {
  font-family: var(--f-num);
  font-style: italic;
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -.04em;
  line-height: .85;
  color: var(--ink);
}
.megablock__num .unit {
  font-size: 22px;
  color: var(--ink-3);
  margin-left: 4px;
  font-style: normal;
  font-weight: 600;
}
.megablock__num.is-accent { color: var(--accent); }
.megablock__num.is-green  { color: var(--green); }
.megablock__num.is-red    { color: var(--red); }
.megablock__meta {
  text-align: right;
  font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.megablock__meta b { color: var(--ink); font-family: var(--f-num); font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-transform: none; }

/* KPI grid */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 14px;
}
.kpi {
  background: var(--bg-elev-1);
  padding: 14px 14px 16px;
}
.kpi__label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.kpi__value {
  font-family: var(--f-num);
  font-style: italic;
  font-size: 26px; font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 6px;
  color: var(--ink);
}
.kpi__value.is-green { color: var(--green); }
.kpi__value.is-red   { color: var(--red); }
.kpi__value.is-accent{ color: var(--accent); }
.kpi__trail {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-3);
}
.kpi__trail.up   { color: var(--green); }
.kpi__trail.down { color: var(--red); }
.kpi__trail svg  { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }

/* ============================================================
   ROWS / LIST UI
   ============================================================ */
.rows { border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-elev-1); }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--rule-2);
  transition: background var(--t-fast);
}
.row:last-child { border-bottom: 0; }
.row:active { background: var(--bg-elev-2); }
.row__ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.row__ico svg { width: 18px; height: 18px; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.row__sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.row__chev { color: var(--ink-4); flex-shrink: 0; }
.row__chev svg { width: 16px; height: 16px; }
.row.is-locked { opacity: .58; }
.row.is-locked .row__chev { color: var(--ink-3); }
.row__lock { color: var(--ink-3); }
.row__lock svg { width: 14px; height: 14px; }
.row__trail {
  font-family: var(--f-num);
  font-size: 14px; font-weight: 700;
  font-style: italic;
  color: var(--ink);
  flex-shrink: 0;
}

/* ============================================================
   PILLS / TAGS
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--ink-2);
  white-space: nowrap;
  border: 1px solid var(--rule);
}
.pill svg { width: 11px; height: 11px; }
.pill.is-accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,107,0,.35); }
.pill.is-green  { background: var(--green-s); color: var(--green); border-color: rgba(39,174,96,.3); }
.pill.is-red    { background: var(--red-s); color: var(--red); border-color: rgba(231,76,60,.3); }
.pill.is-amber  { background: var(--amber-s); color: var(--amber); border-color: rgba(224,160,21,.3); }
.pill.is-blue   { background: var(--blue-s); color: var(--blue); border-color: rgba(56,120,218,.3); }
.pill.solid-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px;
  background: var(--bg-elev-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  transition: transform var(--t-fast);
}
.btn:active { transform: scale(.96); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.btn--ghost { background: transparent; border-color: var(--rule); color: var(--ink-2); }
.btn--block { width: 100%; padding: 15px 18px; border-radius: 14px; }
.btn svg { width: 16px; height: 16px; }

/* Segmented control */
.seg {
  display: flex; gap: 4px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 4px;
}
.seg button {
  flex: 1;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 700;
  color: var(--ink-3);
  transition: var(--t) var(--ease);
  letter-spacing: .01em;
}
.seg button.is-on {
  background: var(--bg-elev-1);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.seg--solid button.is-on {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--accent-glow);
}

/* ============================================================
   BOTTOM TABBAR
   ============================================================ */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 92px;
  z-index: 50;
  display: flex; align-items: flex-start;
  padding: 12px 10px 0;
  background: var(--bg-bar);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--rule);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  color: var(--ink-3);
  font-family: var(--f-num); font-style: italic;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-top: 6px;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-on { color: var(--accent); }
.tab.is-on::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  margin-top: -3px;
}
.tab.tab--add { flex: 0 0 auto; width: 58px; }
.tab.tab--add .fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: var(--accent-glow);
  margin-top: -22px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
  color: var(--accent-ink);
  position: relative;
  cursor: pointer;
}
.tab.tab--add .fab::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  filter: blur(16px);
  z-index: -1;
  transition: opacity var(--t) var(--ease);
}
.tab.tab--add:hover .fab {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(255, 107, 0, .55);
}
.tab.tab--add:hover .fab::before { opacity: .65; }
.tab.tab--add .fab:active { transform: scale(.92) rotate(45deg); }
.tab.tab--add .fab svg { width: 26px; height: 26px; color: var(--accent-ink); }

/* ============================================================
   STREAK / WEEK DOTS
   ============================================================ */
.weekrow {
  display: flex; justify-content: space-between;
  margin: 16px 0 0;
  padding: 0 2px;
}
.wd {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.wd__dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--rule);
  color: var(--ink-4);
  transition: var(--t) var(--ease);
}
.wd__dot svg { width: 13px; height: 13px; }
.wd.is-done .wd__dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.wd.is-today .wd__dot {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 20px rgba(255,107,0,.55);
}
.wd__label {
  font-family: var(--f-num); font-style: italic;
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-4);
}
.wd.is-today .wd__label, .wd.is-done .wd__label { color: var(--ink-2); }

/* ============================================================
   TASKS
   ============================================================ */
.task {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-2);
  transition: background var(--t-fast);
}
.task:last-child { border-bottom: 0; }
.task:active { background: var(--bg-elev-2); }
.task__check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.8px solid var(--ink-4);
  flex-shrink: 0;
  display: grid; place-items: center;
  margin-top: 1px;
  transition: var(--t-fast) var(--ease);
}
.task__check svg { width: 13px; height: 13px; opacity: 0; transition: opacity var(--t-fast); }
.task__check.is-done { background: var(--accent); border-color: var(--accent); }
.task__check.is-done svg { opacity: 1; color: var(--accent-ink); }
.task__main { flex: 1; min-width: 0; }
.task__title {
  font-size: 14.5px; font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.task.is-done .task__title { color: var(--ink-3); text-decoration: line-through; }
.task__meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.task__meta b { color: var(--ink-2); font-weight: 600; }
.task__meta .from { font-style: italic; }
.task__due {
  font-family: var(--f-num);
  font-weight: 600;
  font-style: italic;
  font-size: 11.5px;
}
.task__due.is-over { color: var(--red); }

/* Progress bar */
.bar {
  height: 8px;
  border-radius: 6px;
  background: var(--bg-elev-3);
  overflow: hidden;
}
.bar > i {
  display: block; height: 100%;
  background: var(--accent);
  border-radius: 6px;
  transition: width .5s var(--ease-out);
}
.bar > i.is-green { background: var(--green); }
.bar > i.is-amber { background: var(--amber); }
.bar > i.is-red   { background: var(--red); }
.bar > i.is-blue  { background: var(--blue); }

/* ============================================================
   RING (donut)
   ============================================================ */
.ring {
  position: relative;
  width: 168px; height: 168px;
  flex-shrink: 0;
}
.ring__svg { transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--bg-elev-3); stroke-width: 12; }
.ring__fill  { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease-out); }
.ring__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
}
.ring__big {
  font-family: var(--f-num); font-style: italic;
  font-weight: 700; font-size: 36px;
  letter-spacing: -.03em;
  color: var(--ink);
}
.ring__lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}

.ringwrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 8px 8px;
  gap: 10px;
}
.ringwrap__side { text-align: center; flex: 1; }
.ringwrap__sv {
  font-family: var(--f-num); font-style: italic;
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.ringwrap__sv.is-green { color: var(--green); }
.ringwrap__sv.is-red   { color: var(--red); }
.ringwrap__sl {
  font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

/* ============================================================
   SPACES — module launcher grid
   ============================================================ */
.spacesgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  position: relative;
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 16px 14px 14px;
  min-height: 122px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--t-fast);
}
.tile:active { transform: scale(.97); }
.tile__num {
  position: absolute;
  top: 12px; right: 14px;
  font-family: var(--f-num); font-style: italic;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-4);
}
.tile__ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  color: var(--ink-2);
  border: 1px solid var(--rule);
}
.tile__ico svg { width: 19px; height: 19px; }
.tile__title {
  font-size: 14.5px; font-weight: 700;
  margin-top: 14px;
  color: var(--ink);
  line-height: 1.2;
}
.tile__desc {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.35;
}
.tile.is-locked { opacity: .55; }
.tile.is-locked .tile__ico { color: var(--ink-3); }
.tile__lock {
  position: absolute; top: 14px; right: 14px;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--bg-elev-2);
  display: grid; place-items: center;
  color: var(--ink-3);
  border: 1px solid var(--rule);
}
.tile__lock svg { width: 12px; height: 12px; }

.spacesgrid__group { font-size: 10.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin: 22px 4px 12px; display: flex; align-items: center; gap: 8px; }
.spacesgrid__group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-soft), transparent); }
.spacesgrid__group .num { font-style: italic; color: var(--ink-4); margin-right: 6px; }

/* ============================================================
   IDEAS
   ============================================================ */
.idea {
  display: flex; gap: 12px;
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 11px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color var(--t) var(--ease);
}
.idea:active { border-color: var(--accent); }
.idea__vote {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 11px;
  padding: 8px 10px;
  min-width: 50px;
  transition: var(--t-fast);
  flex-shrink: 0;
}
.idea__vote:active { transform: scale(.94); background: var(--accent-soft); border-color: var(--accent); }
.idea__vote svg { width: 13px; height: 13px; color: var(--accent); }
.idea__vote b { font-family: var(--f-num); font-style: italic; font-size: 16px; font-weight: 700; color: var(--ink); }
.idea__body { flex: 1; min-width: 0; }
.idea__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.idea__desc { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.idea__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: var(--ink-3); }

/* ============================================================
   GOALS
   ============================================================ */
.goal {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 12px;
}
.goal.is-reached { border-color: var(--green); background: linear-gradient(180deg, var(--green-s), transparent 40%), var(--bg-elev-1); }
.goal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.goal__title { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.goal__why { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.45; }
.goal__lock { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; }
.goal__lock svg { width: 11px; height: 11px; }
.goal__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.goal__meta b { font-family: var(--f-num); font-style: italic; color: var(--ink); font-weight: 700; }
.ms {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-2);
  font-size: 13px;
}
.ms:first-of-type { margin-top: 12px; }
.ms__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink-4);
  flex-shrink: 0;
}
.ms.is-reached .ms__dot { background: var(--green); border-color: var(--green); }
.ms__title { flex: 1; color: var(--ink); }
.ms.is-reached .ms__title { color: var(--ink-3); }
.ms__when { font-family: var(--f-num); font-style: italic; font-size: 11px; color: var(--ink-3); }
.ms__when.is-soon { color: var(--amber); font-weight: 700; }

/* ============================================================
   TEAM
   ============================================================ */
.member {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.member__head { display: flex; align-items: center; gap: 14px; }
.member__av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; font-size: 17px; }
.member__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.member__title { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.member__kpi {
  display: flex; gap: 10px; margin-top: 14px;
  border-top: 1px solid var(--rule-2);
  padding-top: 12px;
}
.member__kpi .k { flex: 1; text-align: center; }
.member__kpi .v { font-family: var(--f-num); font-style: italic; font-size: 17px; font-weight: 700; color: var(--ink); }
.member__kpi .v.is-accent { color: var(--accent); }
.member__kpi .l { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.member__action {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-2);
}
.member__leads { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); flex-wrap: wrap; }
.member__leads .lc { background: var(--bg-elev-2); border: 1px solid var(--rule); border-radius: 5px; padding: 3px 8px; font-weight: 600; color: var(--ink-2); }
.miniaction { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; border: 1px solid rgba(255,107,0,.3); }
.miniaction svg { width: 16px; height: 16px; }
.miniaction:active { transform: scale(.9); }

/* ============================================================
   CHECKLISTS
   ============================================================ */
.checklist__head { padding: 16px 16px 12px; }
.checklist__title { font-size: 15px; font-weight: 700; }
.checklist__scope { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.checklist__prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.checklist__prog .bar { flex: 1; }
.checklist__prog .num { font-size: 12px; font-style: italic; font-weight: 700; color: var(--ink-2); }
.cli {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--rule-2);
  font-size: 13.5px;
}
.cli__check {
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.8px solid var(--ink-4);
  flex-shrink: 0; display: grid; place-items: center;
}
.cli__check.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.cli__check.is-done svg { width: 12px; height: 12px; opacity: 1; }
.cli__check svg { opacity: 0; transition: opacity var(--t-fast); }
.cli.is-done .cli__title { color: var(--ink-3); text-decoration: line-through; }

/* ============================================================
   TRANSACTIONS / LEDGER
   ============================================================ */
.txn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-2);
}
.txn:last-child { border-bottom: 0; }
.txn__ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.txn__ico svg { width: 17px; height: 17px; }
.txn__ico.is-in  { background: var(--green-s); color: var(--green); border-color: rgba(39,174,96,.3); }
.txn__main { flex: 1; min-width: 0; }
.txn__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.txn__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.txn__amt {
  font-family: var(--f-num); font-style: italic;
  font-weight: 700; font-size: 15px;
  letter-spacing: -.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.txn__amt.is-in { color: var(--green); }

/* Health chip */
.health {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-s); color: var(--green);
}
.health svg { width: 12px; height: 12px; }
.health.is-warn { background: var(--amber-s); color: var(--amber); }
.health.is-bad { background: var(--red-s); color: var(--red); }

/* Sparkline */
.spark { width: 100%; height: 52px; margin-top: 12px; }

/* H-bar — budget category */
.hbar { margin-bottom: 13px; }
.hbar:last-child { margin-bottom: 2px; }
.hbar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.hbar__name { font-size: 13px; font-weight: 600; }
.hbar__val { font-family: var(--f-num); font-style: italic; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.hbar__val .lim { color: var(--ink-3); font-style: normal; }

/* ============================================================
   PROJECT / CRM
   ============================================================ */
.proj {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.proj__head { display: flex; align-items: center; gap: 12px; }
.proj__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; }
.proj__title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.proj__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.proj__action { margin-left: auto; }
.proj__foot { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.proj__foot .bar { flex: 1; }
.proj__pct { font-family: var(--f-num); font-style: italic; font-size: 13px; font-weight: 700; color: var(--ink); }

.lead {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-2);
}
.lead:last-child { border-bottom: 0; }
.lead__av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-elev-2); border: 1px solid var(--rule); color: var(--ink-2); font-weight: 700; font-size: 12px; }
.lead__main { flex: 1; min-width: 0; }
.lead__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.lead__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.lead__val { font-family: var(--f-num); font-style: italic; font-size: 14px; font-weight: 700; color: var(--ink); }

/* ============================================================
   ACHIEVEMENT BANNER
   ============================================================ */
.ach {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(105deg, var(--green-s), transparent 70%);
  border: 1px solid rgba(39,174,96,.45);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.ach__med {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--f-num); font-style: italic;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.ach__title { font-size: 13.5px; font-weight: 800; color: var(--green); letter-spacing: -.01em; }
.ach__sub { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }

/* ============================================================
   PROFILE
   ============================================================ */
.pfhead { display: flex; align-items: center; gap: 16px; padding: 4px 0 22px; }
.pfhead__av { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 26px; flex-shrink: 0; }
.pfhead__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pfhead__role { font-size: 12.5px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.pfhead__em { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.pfstats { display: flex; background: var(--bg-elev-1); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.pfstats__c { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--rule-2); }
.pfstats__c:last-child { border-right: 0; }
.pfstats__v { font-family: var(--f-num); font-style: italic; font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
.pfstats__l { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); font-size: 13.5px; }
.acc-row:last-child { border-bottom: 0; }
.acc-row svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-3); }
.acc-row__name { flex: 1; }
.acc-row .yes { color: var(--green); font-weight: 700; font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; }
.acc-row .no  { color: var(--ink-4); font-weight: 700; font-size: 11.5px; }
.acc-row .yes svg, .acc-row .no svg { width: 13px; height: 13px; color: currentColor; }

/* Toggle */
.toggle {
  width: 46px; height: 26px;
  border-radius: 14px;
  background: var(--bg-elev-3);
  border: 1px solid var(--rule);
  position: relative;
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
  cursor: pointer;
}
.toggle__knob { position: absolute; top: 1px; left: 1px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: left var(--t) var(--ease); }
.toggle.is-on { background: var(--accent); border-color: var(--accent); }
.toggle.is-on .toggle__knob { left: 22px; }

/* ============================================================
   LOCK SCREEN
   ============================================================ */
.lockscreen { text-align: center; padding: 80px 14px 40px; }
.lockscreen__icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  margin: 0 auto 22px;
  color: var(--ink-3);
}
.lockscreen__icon svg { width: 28px; height: 28px; }
.lockscreen__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.lockscreen__desc { font-size: 13.5px; color: var(--ink-2); max-width: 30ch; margin: 12px auto 0; line-height: 1.55; }
.lockscreen__who {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 11.5px; color: var(--ink-3);
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: 11px;
  padding: 10px 14px;
}
.lockscreen__who svg { width: 13px; height: 13px; color: var(--accent); }

/* ============================================================
   BOTTOM SHEET
   ============================================================ */
.scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-slow) var(--ease),
              opacity var(--t-slow) var(--ease);
  padding: 12px 22px calc(28px + env(safe-area-inset-bottom));
  max-height: 88%;
  overflow-y: auto;
  scrollbar-width: none;            /* hide native scrollbar (Firefox) */
  -ms-overflow-style: none;         /* legacy Edge / IE */
  overscroll-behavior: contain;     /* don't chain scroll to the page behind */
}
.sheet::-webkit-scrollbar { display: none; }   /* Chrome / Safari */
.sheet.is-on {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sheet__grip { width: 40px; height: 4px; border-radius: 3px; background: var(--ink-4); margin: 6px auto 18px; }
.sheet__close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  color: var(--ink-3);
  display: grid; place-items: center;
  z-index: 2;
}
.sheet__close svg { width: 15px; height: 15px; }
.sheet h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.sheet h3 + .sd, .sheet__sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 18px; line-height: 1.5; }

.qa {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  transition: transform var(--t-fast);
}
.qa:active { transform: scale(.97); }
.qa__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.qa__ico svg { width: 19px; height: 19px; }
.qa__t { font-size: 14.5px; font-weight: 700; }
.qa__d { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--ink-4); font-weight: 500; margin-left: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color var(--t-fast);
}
.field textarea { resize: none; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: var(--red); background: var(--red-s); }
.field--split { display: flex; gap: 12px; }
.field--split > div { flex: 1; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C8093' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.autocap {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255,107,0,.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.autocap svg { width: 13px; height: 13px; }

/* Sheet status options */
.statopt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--bg-elev-2);
}
.statopt.is-on { border-color: var(--accent); background: var(--accent-soft); }
.statopt__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-4); flex-shrink: 0; margin-top: 2px; }
.statopt.is-on .statopt__dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-elev-2); }
.statopt__title { font-size: 13.5px; font-weight: 700; }
.statopt__desc { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   EMPTY / ADD ROW
   ============================================================ */
.addrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  border: 1.5px dashed var(--accent);
  border-radius: 13px;
  padding: 13px;
  margin-top: 14px;
  background: transparent;
  transition: background var(--t-fast);
}
.addrow:active { background: var(--accent-soft); }
.addrow svg { width: 17px; height: 17px; }

.empty {
  text-align: center; padding: 38px 0; color: var(--ink-3);
}
.empty svg { width: 32px; height: 32px; color: var(--ink-4); margin: 0 auto 12px; }
.empty__title { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.empty__desc { font-size: 12px; margin-top: 4px; }

/* ============================================================
   TOAST + CONFETTI
   ============================================================ */
.toast {
  position: absolute;
  bottom: 110px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink); color: var(--bg);
  padding: 12px 18px;
  border-radius: 13px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: var(--t) var(--ease);
  max-width: 88%;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 96; overflow: hidden; }
.confetti i {
  position: absolute;
  width: 10px; height: 12px;
  border-radius: 2px;
  top: -20px;
  animation: fall 1.4s var(--ease-out) forwards;
}
@keyframes fall {
  0%   { transform: translate(var(--x0,0), -20px) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x1,0), 700px) rotate(720deg); opacity: 0; }
}

/* ============================================================
   SPLASH
   ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: #0A0A10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.splash::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--noise);
  opacity: .35;
}
.splash::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255,107,0,.18), transparent 60%);
}
.splash__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: min(380px, 86vw);
  text-align: center;
  padding: 40px 24px;
}
.splash__bar {
  width: 56px; height: 3px;
  background: var(--o-500);
  margin-bottom: 36px;
  border-radius: 2px;
  transform-origin: left;
  animation: barIn .9s cubic-bezier(.85,0,.15,1) .2s both;
}
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.splash__mark {
  display: inline-flex; align-items: baseline;
  font-family: 'Hind Siliguri', serif;
  font-weight: 700; font-size: 56px;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 6px;
  opacity: 0;
  animation: bnIn 1s var(--ease-out) .7s forwards;
}
@keyframes bnIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.splash__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--o-500);
  margin-left: 6px;
  align-self: flex-end;
  margin-bottom: 14px;
  box-shadow: 0 0 22px rgba(255,107,0,.7);
  opacity: 0;
  transform: scale(0);
  animation: dotIn .5s var(--ease-out) 1.5s forwards, dotPulse 1.8s var(--ease) 2s infinite;
}
@keyframes dotIn { to { opacity: 1; transform: scale(1); } }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 22px rgba(255,107,0,.7); } 50% { box-shadow: 0 0 36px rgba(255,107,0,1); } }

.splash__wm {
  display: flex; justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.6);
  margin-top: 20px;
  margin-bottom: 28px;
}
.splash__wm > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: charIn .5s var(--ease-out) forwards;
}
.splash__wm > span.muted { color: var(--o-500); }
.splash__wm > span.spacer { width: 12px; }
@keyframes charIn { to { opacity: 1; transform: none; } }

.splash__caption {
  font-family: var(--f-num); font-style: italic;
  font-size: 12px; font-weight: 500;
  letter-spacing: .22em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  margin-top: 8px;
  height: 14px;
  opacity: 0;
  animation: bnIn .6s var(--ease-out) 2.3s forwards;
}
.splash__progress {
  margin-top: 36px;
  width: 200px; height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.splash__progress > i {
  display: block; width: 0%; height: 100%;
  background: var(--o-500);
  animation: prg 2.6s cubic-bezier(.6,0,.4,1) 1.2s forwards;
}
@keyframes prg { to { width: 100%; } }

.splash__foot {
  margin-top: 28px;
  display: flex; gap: 14px;
  font-family: var(--f-num); font-style: italic;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  opacity: 0;
  animation: bnIn .6s var(--ease-out) 2.6s forwards;
}
.splash__foot .dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--o-500); margin: 0 0 1px 6px; vertical-align: middle; }

.splash.is-leaving {
  pointer-events: none;
  animation: splashOut .7s var(--ease-out) forwards;
}
@keyframes splashOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* utilities */
.spacer-12 { height: 12px; }
.spacer-16 { height: 16px; }
.spacer-24 { height: 24px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-center { display: flex; align-items: center; gap: 10px; }
.text-c { text-align: center; }
.muted { color: var(--ink-3); }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login {
  position: absolute; inset: 0;
  z-index: 90;
  background: var(--bg);
  display: block;
  padding: 60px 28px calc(48px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: loginIn .5s var(--ease-out);
}
@keyframes loginIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.login.is-leaving { animation: loginOut .5s var(--ease-out) forwards; }
@keyframes loginOut { to { opacity: 0; transform: translateY(-12px); } }
.login__brand {
  display: flex; align-items: baseline; justify-content: flex-start;
  gap: 4px;
  font-family: 'Hind Siliguri', serif;
  font-weight: 700; font-size: 32px;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.login__brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  align-self: flex-end;
  margin-bottom: 8px;
  box-shadow: 0 0 16px rgba(255,107,0,.6);
}
.login__lockup {
  font-family: 'Chakra Petch', sans-serif;
  font-style: italic; font-weight: 700;
  font-size: 12px; letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 38px;
  text-transform: uppercase;
}
.login__title {
  font-size: 32px; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 8px;
}
.login__sub {
  font-size: 14px; color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 36ch;
}
.login__field { margin-bottom: 16px; }
.login__field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.login__field input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color var(--t-fast);
}
.login__field input:focus { outline: none; border-color: var(--accent); }

.login__quickrow {
  display: flex; gap: 8px; margin-top: 6px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.login__quick {
  flex: 1; min-width: 0;
  padding: 12px 8px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: left;
  transition: var(--t-fast) var(--ease);
}
.login__quick:active { transform: scale(.97); }
.login__quick.is-on {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.login__quick b { font-size: 12.5px; color: var(--ink); }
.login__quick span { font-size: 10px; color: var(--ink-3); display: block; margin-top: 2px; letter-spacing: .08em; text-transform: uppercase; }
.login__quick.is-on span { color: var(--accent); }

.login__cta {
  width: 100%;
  padding: 17px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 16px;
  font-size: 15px; font-weight: 800;
  letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--accent-glow);
  transition: transform var(--t-fast);
  margin-top: 8px;
}
.login__cta:active { transform: scale(.97); }
.login__cta svg { width: 17px; height: 17px; }

.login__meta {
  margin-top: 32px;
  display: flex; justify-content: space-between;
  font-family: var(--f-num); font-style: italic;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.login__meta .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 0 1px 6px; vertical-align: middle; }
.login__settings {
  display: flex; gap: 8px;
  margin-top: 18px;
}
.login__settings button {
  flex: 1;
  padding: 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login__settings button.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.login__settings svg { width: 13px; height: 13px; }

.login__progress {
  display: flex; gap: 4px;
  margin-bottom: 28px;
}
.login__progress i {
  flex: 1; height: 3px; border-radius: 2px;
  background: var(--bg-elev-3);
}
.login__progress i.is-on { background: var(--accent); }
.login__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  margin-bottom: 18px;
}
.login__back svg { width: 14px; height: 14px; }
.login__back:active { color: var(--accent); }

.login__role {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: var(--t-fast);
  width: 100%;
  text-align: left;
}
.login__role:active { transform: scale(.98); }
.login__role.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.login__role__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  color: var(--ink-2);
  font-weight: 700;
  flex-shrink: 0;
}
.login__role.is-on .login__role__ico {
  background: var(--accent);
  color: var(--accent-ink);
}
.login__role__name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.login__role__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.login__role__sub b { color: var(--ink-2); }

/* ============================================================
   TOP APPBAR — multi-icon variant
   ============================================================ */
.appbar__icons {
  display: flex; gap: 6px;
  align-items: center;
}
.appbar__icobtn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
}
.appbar__icobtn:active { background: var(--bg-elev-3); transform: scale(.94); }
.appbar__icobtn svg { width: 17px; height: 17px; }
.appbar__icobtn__badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px; font-weight: 800;
  letter-spacing: -.01em;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(255,107,0,.5);
}
.appbar__icobtn__badge.is-red { background: var(--red); box-shadow: 0 0 12px rgba(231,76,60,.5); }

/* ============================================================
   NOTIFICATIONS
   ============================================================ */
.notif {
  display: flex; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-2);
  cursor: pointer;
  transition: background var(--t-fast);
}
.notif:last-child { border-bottom: 0; }
.notif:active { background: var(--bg-elev-2); }
.notif.is-unread { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.notif__ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
.notif__ico svg { width: 17px; height: 17px; }
.notif__main { flex: 1; min-width: 0; }
.notif__text { font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.notif__text b { color: var(--ink); font-weight: 700; }
.notif__meta { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 12px; box-shadow: 0 0 8px rgba(255,107,0,.5); }

/* ============================================================
   CHAT — WhatsApp-style
   ============================================================ */
.chatlist__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 14px;
  border-bottom: 1px solid var(--rule-2);
}
.chatlist__search {
  flex: 1;
  padding: 11px 14px 11px 38px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink);
  position: relative;
}
.chatlist__searchwrap {
  flex: 1; position: relative;
}
.chatlist__searchwrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3);
  width: 16px; height: 16px;
}
.chatlist__searchwrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink);
}
.chatlist__searchwrap input:focus { outline: none; border-color: var(--accent); }

.chatrow {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule-2);
  cursor: pointer;
  transition: background var(--t-fast);
}
.chatrow:last-child { border-bottom: 0; }
.chatrow:active { background: var(--bg-elev-2); }
.chatrow__av {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.chatrow__av--group {
  border-radius: 14px;
}
.chatrow__main { flex: 1; min-width: 0; }
.chatrow__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
}
.chatrow__name {
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chatrow__time {
  font-family: var(--f-num); font-style: italic;
  font-size: 11px; color: var(--ink-3);
  flex-shrink: 0;
}
.chatrow__last {
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.chatrow__last b { color: var(--ink-2); font-weight: 600; }
.chatrow__badge {
  margin-left: 8px;
  min-width: 20px; height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.chathead {
  position: sticky; top: 0;
  z-index: 5;
  background: var(--bg-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  margin: 0 -22px 12px;
}
.chathead__av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.chathead__main { flex: 1; min-width: 0; }
.chathead__name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.chathead__sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.chathead__act { color: var(--ink-3); padding: 6px; }

.chatbody {
  padding: 0 4px 90px;
  min-height: 50vh;
}
.daybadge {
  text-align: center;
  margin: 14px auto;
}
.daybadge span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bubble-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.bubble-row.is-me { align-items: flex-end; }
.bubble-row.is-them { align-items: flex-start; }
.bubble {
  max-width: 78%;
  padding: 9px 13px 10px;
  border-radius: 14px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.bubble.is-me {
  background: linear-gradient(165deg, var(--accent) 0%, #BF4D00 100%);
  color: var(--accent-ink);
  border-bottom-right-radius: 4px;
}
.bubble.is-them {
  background: var(--bg-elev-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
}
.bubble__who {
  font-size: 11px; font-weight: 700;
  margin-bottom: 3px;
}
.bubble__time {
  font-size: 9.5px;
  margin-top: 4px;
  font-family: var(--f-num); font-style: italic;
  letter-spacing: .08em;
  opacity: .7;
  text-align: right;
}
.bubble.is-me .bubble__time { color: rgba(255,255,255,.85); }
.bubble.is-them .bubble__time { color: var(--ink-3); }

.chatsend {
  position: absolute;
  left: 0; right: 0; bottom: 92px;
  z-index: 49;
  background: var(--bg-bar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--rule);
  padding: 10px 14px;
  display: flex; gap: 8px; align-items: center;
}
.chatsend__input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 22px;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
}
.chatsend__input:focus { outline: none; border-color: var(--accent); }
.chatsend__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: var(--accent-glow);
  transition: transform var(--t-fast);
}
.chatsend__btn:active { transform: scale(.92); }
.chatsend__btn svg { width: 17px; height: 17px; }

/* ============================================================
   NOTICE BOARD
   ============================================================ */
.notice {
  background: var(--bg-elev-1);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.notice.is-pinned {
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 35%),
    var(--bg-elev-1);
  border-color: rgba(255,107,0,.35);
}
.notice.is-confidential {
  background:
    linear-gradient(180deg, var(--red-s), transparent 50%),
    var(--bg-elev-1);
  border-color: rgba(231,76,60,.35);
}
.notice__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.notice__title { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
.notice__body { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.notice__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-2);
  font-size: 11.5px;
  color: var(--ink-3);
}
.notice__pin {
  position: absolute; top: 14px; right: 14px;
  color: var(--accent);
}
.notice__pin svg { width: 14px; height: 14px; }
.notice__pills {
  display: flex; gap: 6px;
  flex-wrap: wrap;
}

/* ============================================================
   CELEBRATION OVERLAY — beefier, scoped to phone
   ============================================================ */
.celebrate {
  position: absolute; inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
}
.celebrate__card {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%) scale(.6);
  width: min(86%, 330px);
  padding: 28px 26px;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--accent);
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(255,107,0,.45),
    0 0 0 1px rgba(255,107,0,.18);
  text-align: center;
  opacity: 0;
  animation: cardIn .55s var(--ease-out) forwards;
}
@keyframes cardIn {
  0%   { opacity: 0; transform: translate(-50%, -45%) scale(.5); }
  60%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.celebrate__trophy {
  width: 72px; height: 72px;
  border-radius: 22px;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink);
  margin: 0 auto 16px;
  box-shadow: var(--accent-glow);
  animation: trophyBob 1.6s ease-in-out 1 alternate;
}
@keyframes trophyBob {
  0% { transform: rotate(-6deg) scale(.95); }
  50% { transform: rotate(6deg) scale(1.06); }
  100% { transform: rotate(-3deg) scale(1); }
}
.celebrate__trophy svg { width: 36px; height: 36px; }
.celebrate__kicker {
  font-family: var(--f-num); font-style: italic;
  font-size: 11px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.celebrate__title {
  font-size: 22px; font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.15;
}
.celebrate__sub {
  font-size: 13px; color: var(--ink-2);
  line-height: 1.5;
  max-width: 26ch;
  margin: 0 auto;
}
.celebrate.is-leaving .celebrate__card {
  animation: cardOut .35s var(--ease-out) forwards;
}
@keyframes cardOut {
  to { opacity: 0; transform: translate(-50%, -54%) scale(.92); }
}
.confetti i.is-streamer {
  width: 4px; height: 18px;
  border-radius: 2px;
}
