/* Meeting Minutes · Ekkaa · by Gage Labs
   Calm, factory-grade: navy blueprint header, warm paper body, one marigold accent. */
:root {
  --ink: #03434c;
  --ink-2: #0b5a65;
  --ink-deep: #022a30;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #ffffff;
  --line: #e4ded1;
  --text: #16213a;
  --muted: #687089;
  --faint: #9aa0b2;
  --accent: #f0b100;
  --accent-ink: #8a6400;
  --accent-soft: #fff5d1;
  --ok: #17885d;
  --ok-soft: #e1f3ea;
  --late: #cf3f3f;
  --late-soft: #fce7e6;
  --flag: #9a6510;
  --flag-soft: #fff3d4;
  --flag-line: #f2c55c;
  --info: #2c62c9;
  --info-soft: #e6eefd;
  --wa: #1fa855;
  --warn: #e0a12a;
  --warn-ink: #a8670c;
  --r-lg: 22px;
  --r: 16px;
  --r-sm: 11px;
  --shadow: 0 1px 2px rgba(3, 67, 76, .06), 0 10px 28px -14px rgba(3, 67, 76, .28);
  --shadow-lift: 0 2px 4px rgba(3, 67, 76, .08), 0 18px 40px -16px rgba(3, 67, 76, .38);
  --display: "Bricolage Grotesque", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabs-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font: 500 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
#view { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 28px); }
body.no-tabs #view { padding-bottom: calc(var(--safe-b) + 24px); }
body.no-tabs #tabs { display: none; }

/* ---------- Header: navy blueprint ---------- */
.bar {
  position: relative;
  color: #fff;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(240, 177, 0, .28), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
  padding: calc(var(--safe-t) + 14px) 20px 22px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 18%, transparent 18% 100%);
  opacity: .9;
}
.bar-row { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand { flex: 1; min-width: 0; }
.brand-title { font: 700 17px/1.15 var(--display); letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: rgba(255, 255, 255, .62); letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.pill-demo {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  padding: 4px 9px; border-radius: 99px;
}
.back {
  flex: none; width: 44px; height: 44px; margin-left: -8px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-greet { margin-top: 22px; font: 700 30px/1.08 var(--display); letter-spacing: -.02em; }
.hero-date { margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.hero { padding-bottom: 70px; }

.page-title { margin-top: 18px; font: 700 25px/1.12 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.page-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ---------- Layout ---------- */
.wrap { padding: 0 16px; }
.lift { margin-top: -52px; position: relative; z-index: 2; }
.stack > * + * { margin-top: 14px; }
.section-label {
  margin: 26px 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.section-label .count { font-variant-numeric: tabular-nums; color: var(--faint); letter-spacing: .04em; }

.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; position: relative; }
.card-title { font: 700 17px/1.25 var(--display); letter-spacing: -.01em; margin: 0 0 4px; }
.card-sub { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); padding: 16px 16px 14px; }
.stat-n { font: 800 38px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-l { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--info); display: inline-block; }
.stat.is-late .stat-n { color: var(--late); }
.stat.is-late .stat-l i { background: var(--late); }
.stat.is-zero .stat-l i { background: var(--ok); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border-radius: 16px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15.5px; letter-spacing: .005em;
  background: var(--ink); color: #fff; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); box-shadow: 0 10px 22px -10px rgba(240, 177, 0, .75); }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-wa { background: var(--wa); }
.btn-tg { background: #229ed9; }
.btn-ok { background: var(--ok); box-shadow: 0 10px 22px -12px rgba(23, 136, 93, .7); }
.btn-sm { min-height: 44px; padding: 0 14px; border-radius: 13px; font-size: 14px; }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; box-shadow: none; }
.btn-big { min-height: 64px; font-size: 17px; border-radius: 20px; }
.btn-big .plus { width: 30px; height: 30px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  background: var(--paper-2); color: var(--muted);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-draft { background: #eef0f4; color: #5d6578; }
.chip-proc { background: var(--info-soft); color: var(--info); }
.chip-proc i { animation: pulse 1.2s ease-in-out infinite; }
.chip-ready { background: var(--accent-soft); color: var(--accent-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-err, .chip-late { background: var(--late-soft); color: var(--late); }
.chip-flag { background: var(--flag-soft); color: var(--flag); }
.chip-today { background: var(--accent-soft); color: var(--accent-ink); }
.chip-soon { background: var(--info-soft); color: var(--info); }
.on-dark.chip { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Meeting list ---------- */
.mtgs { display: grid; gap: 10px; }
.mtg {
  display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 14px 14px 14px 12px; min-height: 76px; transition: transform .15s ease;
}
.mtg:active { transform: scale(.99); }
.mtg-date {
  flex: none; width: 50px; height: 54px; border-radius: 13px; background: var(--paper); display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mtg-date b { display: block; font: 800 20px/1 var(--display); color: var(--ink); }
.mtg-date span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.mtg-main { flex: 1; min-width: 0; }
.mtg-title { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtg-meta { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--muted); font-size: 12.5px; }
.chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.empty { text-align: center; padding: 26px 18px; color: var(--muted); }
.empty-art { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--paper); display: grid; place-items: center; }
.empty-art svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.empty b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 4px; }

/* ---------- Go-live card ---------- */
.golive { overflow: hidden; }
.golive::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--ink) 10px 20px);
}
.golive-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 4px; }
.golive-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.golive-n { font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.golive-n small { font: 600 13px/1 var(--body); color: var(--muted); }
.meter { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 14px 0 8px; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #2fb57c); width: 0; transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.checks { list-style: none; margin: 6px 0 0; padding: 0; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; box-shadow: inset 0 0 0 2px var(--line); }
.tick svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.checks li.done .tick { background: var(--ok); box-shadow: none; }
.checks .ci { flex: 1; min-width: 0; }
.checks .ci-t { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.checks li.done .ci-t { color: var(--muted); }
.checks .ci-o { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field-l { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 0 0 7px 2px; letter-spacing: .02em; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; font-weight: 600; outline: none; transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input:focus { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.row2 .field { min-width: 0; }
.row2 .field + .field { margin-top: 0; }
.input[type=date], .input[type=time] { min-width: 0; display: block; padding: 0 12px; }
.input::-webkit-date-and-time-value { text-align: left; }

.upload {
  display: block; position: relative; border-radius: var(--r-lg); padding: 16px; cursor: pointer;
  background: var(--card); box-shadow: var(--shadow);
}
.upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-in { display: flex; align-items: center; gap: 14px; }
.upload-ic {
  flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); position: relative;
}
.upload-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.upload-ic b { position: absolute; right: -5px; bottom: -5px; width: 22px; height: 22px; border-radius: 8px; background: var(--ink); color: #fff; font: 800 12px/22px var(--display); text-align: center; }
.upload.slot-b .upload-ic b { background: var(--accent); }
.upload-t { font-weight: 700; font-size: 15px; }
.upload-s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.upload-tag { margin-left: auto; align-self: flex-start; }
.upload.empty-slot { background: transparent; box-shadow: none; border: 2px dashed #cfc7b6; }
.upload.has-file .upload-ic { background: var(--ok-soft); box-shadow: none; }
.upload.has-file .upload-ic svg { stroke: var(--ok); }
.upload-file { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.upload-file span:first-child { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prog { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: 12px; }
.prog > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.prog.done > i { background: var(--ok); }

.cost {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--ink); color: #fff;
}
.cost svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cost b { font: 800 18px/1 var(--display); }
.cost small { display: block; color: rgba(255,255,255,.66); font-size: 12px; margin-top: 3px; }
.stage-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; min-height: 20px; }

/* ---------- Stepper: a production line ---------- */
.stepper { list-style: none; margin: 0; padding: 4px 0 0; position: relative; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line);
}
.step:last-child::before { display: none; }
.step.s-done::before { background: var(--ok); }
.node {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line);
}
.node svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s-done .node { background: var(--ok); box-shadow: none; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) both; }
.s-done .node svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .1s ease forwards; }
.s-error .node { background: var(--late); box-shadow: none; }
.s-skipped .node { background: var(--paper-2); box-shadow: none; }
.s-skipped .node svg { stroke: var(--faint); }
.s-running .node { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.s-running .node::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent);
  animation: spin .8s linear infinite;
}
.s-running .node span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.step-body { flex: 1; min-width: 0; padding-top: 5px; }
.step-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.step-label { font-weight: 700; font-size: 15px; }
.s-pending .step-label { color: var(--faint); font-weight: 600; }
.s-skipped .step-label { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.step-sec { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.step-note { font-size: 13px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.s-error .step-note { color: var(--late); font-weight: 600; }
.belt {
  margin-top: 9px; height: 6px; border-radius: 99px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, #f3a679 8px 16px);
  background-size: 22.6px 22.6px; animation: belt .7s linear infinite;
}

/* ---------- Ready view ---------- */
.done-banner { display: flex; align-items: center; gap: 14px; }
.done-badge { flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--ok); display: grid; place-items: center; }
.done-badge svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.done-badge svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s ease forwards; }
.done-banner.wait .done-badge { background: var(--accent); }

.summary { list-style: none; margin: 10px 0 0; padding: 0; }
.summary li { position: relative; padding: 0 0 0 20px; margin-top: 9px; font-size: 15px; line-height: 1.5; }
.summary li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

.decisions { list-style: none; margin: 8px 0 0; padding: 0; }
.decisions li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.decisions li:first-child { border-top: 0; padding-top: 6px; }
.decisions .dq { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 12px/1 var(--display); }
.decisions .dt { font-size: 14.5px; line-height: 1.45; }
.decisions .dd { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

.depts { display: grid; gap: 10px; }
.dept { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.dept > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; }
.dept > summary::-webkit-details-marker { display: none; }
.dept-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 13px/1 var(--display); color: #fff; }
.dept-n { flex: 1; font-weight: 700; }
.dept-c { color: var(--muted); font-size: 12.5px; }
.dept > summary .chev { transition: transform .2s; }
.dept[open] > summary .chev { transform: rotate(90deg); }
.dept-body { padding: 0 16px 14px 60px; }
.dept-body ul { margin: 0; padding: 0 0 0 16px; }
.dept-body li { margin: 6px 0; font-size: 14.5px; }
.dept-body .dec { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.dept-body .dec b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 2px; }

.tasks { display: grid; gap: 10px; }
.task { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.task.is-done { opacity: .72; }
.task.is-done .task-t { text-decoration: line-through; text-decoration-color: var(--faint); }
.task.is-late { box-shadow: var(--shadow), inset 3px 0 0 var(--late); }
.av { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; font: 800 16px/1 var(--display); }
.task-main { flex: 1; min-width: 0; }
.task-t { font-weight: 600; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.task-o { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.task-chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.status-btn {
  flex: none; min-width: 74px; min-height: 44px; border: 0; border-radius: 13px; cursor: pointer; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, color .2s, transform .15s;
}
.status-btn:active { transform: scale(.96); }
.status-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.status-btn.is-done { background: var(--ok); color: #fff; box-shadow: none; }
.status-btn .o { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint); }
.status-btn:not(.is-done) { color: var(--muted); }

.approve {
  position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 10px); z-index: 5; margin-top: 18px;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 20px;
  background: rgba(3, 67, 76, .96); color: #fff; box-shadow: 0 16px 34px -14px rgba(2, 42, 48, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.approve-t { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.78); }
.approve-t b { display: block; color: #fff; font-size: 14.5px; }
.approved-pill { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); font-weight: 700; margin-top: 18px; }
.approved-pill svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.wa-list { display: grid; gap: 12px; }
.wa { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.wa-to { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wa-to .av { width: 32px; height: 32px; border-radius: 11px; font-size: 13px; }
.wa-to small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.bubble {
  margin: 12px 0 12px; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #e7f6dd; color: #14301c;
  font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; position: relative;
  background-image: radial-gradient(rgba(20, 48, 28, .035) 1px, transparent 1px); background-size: 8px 8px;
}
.wa-acts { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.wa-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.wa-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.said { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.said > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px; min-height: 58px; }
.said > summary::-webkit-details-marker { display: none; }
.said > summary .grow { flex: 1; font-weight: 700; }
.said[open] > summary .chev { transform: rotate(90deg); }
.said > summary .chev { transition: transform .2s; }
.seg { display: flex; gap: 6px; padding: 0 16px 10px; }
.seg button { flex: 1; min-height: 40px; border: 0; border-radius: 11px; background: var(--paper); font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.lines { list-style: none; margin: 0; padding: 0 0 6px; }
.line { display: grid; grid-template-columns: 44px 1fr; gap: 4px 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.line-t { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 3px; font-weight: 600; }
.line-who { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.line-x { font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.line.flag { background: var(--flag-soft); box-shadow: inset 3px 0 0 var(--flag-line); }
.line-why { margin-top: 5px; font-size: 12.5px; color: var(--flag); font-weight: 600; display: flex; gap: 6px; align-items: flex-start; }
.line-why svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.bars { display: grid; gap: 12px; margin-top: 12px; }
.bar-l { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.bar-l span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.bar-t { height: 10px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.bar-t > i { display: block; height: 100%; border-radius: inherit; width: 0; transition: width 1s cubic-bezier(.2, .7, .2, 1); }

.files { display: grid; gap: 8px; margin-top: 10px; }
.file-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.file-row b { width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 12px/1 var(--display); flex: none; }
.file-row.b b { background: var(--accent); }
.file-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-row small { color: var(--muted); white-space: nowrap; }

.err-card { border: 1.5px solid #f3c4c2; background: #fffafa; }
.err-card .card-title { color: var(--late); }

/* ---------- People ---------- */
.people { display: grid; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 12px 12px 14px; min-height: 72px; }
.person .av { width: 44px; height: 44px; border-radius: 14px; font-size: 17px; }
.person-main { flex: 1; min-width: 0; }
.person-n { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-r { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.voice-why { display: flex; gap: 12px; align-items: flex-start; }
.voice-why .ic { flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; }
.voice-why .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.voice-why p { margin: 0; font-size: 13.5px; color: var(--muted); }
.voice-why b { color: var(--text); }

/* ---------- Bottom sheet ---------- */
.sheet-ov { position: fixed; inset: 0; z-index: 40; background: rgba(2, 42, 48, .45); animation: fade .2s ease both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto;
  max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); border-radius: 26px 26px 0 0; padding: 10px 18px calc(var(--safe-b) + 20px);
  animation: sheetUp .32s cubic-bezier(.2, .8, .2, 1) both; box-shadow: 0 -20px 50px -20px rgba(2, 42, 48, .5);
}
.sheet-grab { width: 44px; height: 5px; border-radius: 99px; background: #cfc7b6; margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font: 700 21px/1.2 var(--display); letter-spacing: -.01em; }
.x { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--paper-2); display: grid; place-items: center; cursor: pointer; }
.x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--paper-2); margin: 16px 0 14px; }
.tabs2 button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs2 button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.rec { text-align: center; padding: 8px 0 4px; }
.ring { position: relative; width: 168px; height: 168px; margin: 4px auto 10px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .trk { stroke: var(--paper-2); }
.ring .val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ring-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring-n { font: 800 46px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.ring-s { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.lvl { display: flex; gap: 4px; justify-content: center; align-items: flex-end; height: 34px; margin: 6px 0 14px; }
.lvl i { width: 6px; border-radius: 99px; background: var(--paper-2); height: 6px; transition: height .08s linear, background .08s; }
.lvl i.on { background: var(--accent); }
.rec-btn {
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; margin: 0 auto; display: grid; place-items: center;
  background: var(--late); box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--line), 0 14px 28px -12px rgba(207, 63, 63, .8); transition: transform .15s;
}
.rec-btn:active { transform: scale(.95); }
.rec-btn i { width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: border-radius .2s, width .2s, height .2s; }
.rec-btn.on i { width: 24px; height: 24px; border-radius: 6px; }
.rec-btn.on { animation: recPulse 1.4s ease-in-out infinite; }
.rec-hint { font-size: 13px; color: var(--muted); margin-top: 14px; }
.preview { margin: 4px 0 14px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.preview audio { width: 100%; height: 40px; }
.preview-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.warn { font-size: 13px; color: var(--flag); background: var(--flag-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }
.note-ok { font-size: 13px; color: var(--ok); background: var(--ok-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh; display: flex; flex-direction: column; color: #fff;
  background-color: var(--ink);
  background-image:
    radial-gradient(90% 60% at 100% 0%, rgba(240, 177, 0, .32), transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(44, 98, 201, .25), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px;
  padding: calc(var(--safe-t) + 34px) 24px calc(var(--safe-b) + 22px);
}
.login-top { text-align: center; }
.login-logo { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 34px -14px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12); }
.login-logo img { width: 100%; height: 100%; display: block; }
.login h1 { margin: 0; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.login-sub { margin-top: 6px; color: rgba(255, 255, 255, .64); font-size: 13.5px; }
.login-ask { margin-top: 28px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 8px; min-height: 18px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45); transition: background .15s, transform .15s; }
.dots i.on { background: var(--accent); box-shadow: none; transform: scale(1.08); }
.dots.shake { animation: shake .42s ease; }
.login-err { text-align: center; min-height: 20px; color: #ffb4a3; font-size: 13.5px; font-weight: 600; }
.pad { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 330px; width: 100%; align-self: center; padding-top: 18px; }
.key {
  min-height: 66px; border-radius: 20px; border: 0; cursor: pointer; color: #fff; font: 700 26px/1 var(--display);
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .12s, transform .12s;
  display: grid; place-items: center;
}
.key:active { background: rgba(255, 255, 255, .2); transform: scale(.96); }
.key svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.key.go { background: var(--accent); box-shadow: none; }
.key.go[disabled] { opacity: .35; }
.key.ghost { background: transparent; box-shadow: none; }
.login-foot { text-align: center; margin-top: 18px; color: rgba(255, 255, 255, .45); font-size: 12px; }

/* ---------- Tab bar ---------- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--tabs-h) + var(--safe-b)); padding: 0 10px var(--safe-b);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -18px rgba(3, 67, 76, .35);
}
.tab {
  height: var(--tabs-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab > svg { height: 34px; }
.tab.on { color: var(--ink); }
.tab.on svg { stroke-width: 2.3; }
.tab-plus { width: 46px; height: 34px; border-radius: 13px; background: var(--ink); display: grid; place-items: center; transition: background .2s, transform .15s; }
.tab-plus svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.6; }
.tab-new.on .tab-plus { background: var(--accent); }
.tab-new:active .tab-plus { transform: scale(.94); }

/* ---------- Live data: Pending + Routine (from MOM - 25) ---------- */
.pill-live { display: inline-flex; align-items: center; gap: 6px; color: #c9f2dc; background: rgba(23, 136, 93, .28); border-color: rgba(47, 181, 124, .5); }
.pill-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc8f; animation: pulse 1.6s ease-in-out infinite; }
a.stat { display: block; transition: transform .15s ease; }
a.stat:active { transform: scale(.98); }
.stat-n small { font: 700 14px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.stat-s { margin-top: 2px; font-size: 12px; color: var(--faint); font-weight: 600; }
.stat.is-warn .stat-n { color: var(--warn-ink); }
.stat.is-warn .stat-l i { background: var(--warn); }
.skel-n { width: 56px; height: 38px; border-radius: 10px; }
.t-late { color: var(--late); }

.link-card { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; transition: transform .15s ease; }
.link-card:active { transform: scale(.99); }
.lc-main { flex: 1; min-width: 0; }
.lc-k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lc-t { margin-top: 4px; font-size: 14.5px; }
.link-card .chev, .pg .chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.seg-bar { padding: 5px; margin-top: 22px; background: var(--paper-2); border-radius: 15px; }
.seg-bar button { min-height: 42px; background: transparent; }
.seg-bar button b { font-variant-numeric: tabular-nums; margin-left: 3px; opacity: .75; }
.seg-note { font-size: 12.5px; color: var(--muted); margin: 2px 4px 10px; }
.pgs { display: grid; gap: 10px; margin-top: 12px; }
.pg > summary { gap: 12px; padding: 12px 14px; min-height: 64px; }
.pg .av { width: 38px; height: 38px; border-radius: 12px; font-size: 15px; }
.pg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pg-n { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-d { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-body { padding: 0 14px 14px; }
.pg-body .btn { margin-top: 12px; }
.pt { padding: 11px 0; border-top: 1px solid var(--line); }
.pt-t { font-weight: 600; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.pt-m { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.pt-r { margin-top: 6px; font-size: 13px; color: var(--muted); background: var(--paper); border-radius: 10px; padding: 7px 10px; }
.pt-link { color: var(--info); font-weight: 700; }

.ro-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.ro-note p { margin: 0; font-size: 13.5px; color: var(--muted); }
.ro-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; }
.ro-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.acts2 .btn { min-height: 48px; font-size: 14.5px; padding: 0 12px; }
.kv { margin: 0; font-size: 14px; line-height: 1.7; }
.kv + .kv { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.kv > span:first-child { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv .sep { color: var(--faint); margin: 0 7px; }
.bubble.rep { max-height: 46vh; overflow-y: auto; font-size: 13.5px; }
.rep-acts .btn { padding: 0 14px; white-space: nowrap; }
.direct { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; margin-bottom: 10px; }
.seg-bar button { white-space: nowrap; }
#tabs .tab { font-size: 11px; }

/* ---------- Who is who (naming speakers) + voices for next time ---------- */
.namer { margin-top: 14px; }
.namer .card-sub b { color: var(--text); }
.spk { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.spk-head { display: flex; align-items: center; gap: 10px; }
.spk-head .av { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.spk-main { min-width: 0; }
.spk-main b { display: block; font-size: 15px; }
.spk-main small { display: block; font-size: 12.5px; color: var(--muted); }
.spk-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 9px; font-size: 13.5px; line-height: 1.45; }
.spk-line i { font-style: normal; color: var(--faint); font-size: 12px; margin-right: 6px; }
.play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.play svg { width: 15px; height: 15px; fill: currentColor; margin-left: 2px; }
.play.on { background: var(--accent); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.spk-in { margin-top: 10px; }
.spk-in.is-guess { border-color: var(--flag-line); background: var(--flag-soft); }
.spk-guess { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--flag); }
.spk-guess svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vlist { display: grid; gap: 8px; margin-top: 12px; }
.vrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); cursor: pointer; }
.vrow input { width: 20px; height: 20px; accent-color: var(--ok); }
.vrow span { flex: 1; font-weight: 600; }
.vrow small { color: var(--muted); font-size: 12.5px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  background: var(--ink-deep); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
  max-width: calc(100vw - 32px); box-shadow: 0 14px 30px -12px rgba(2, 42, 48, .6); text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--late); }

/* ---------- Skeleton ---------- */
.skel { border-radius: var(--r); background: linear-gradient(90deg, #ece7dc 0%, #f6f3ec 50%, #ece7dc 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

/* ---------- Motion ---------- */
.stagger > * { animation: up .5s cubic-bezier(.2, .7, .2, 1) both; }
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .07s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .17s; }
.stagger > *:nth-child(5) { animation-delay: .22s; }
.stagger > *:nth-child(6) { animation-delay: .27s; }
.stagger > *:nth-child(7) { animation-delay: .32s; }
.stagger > *:nth-child(n+8) { animation-delay: .36s; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes pop { from { transform: scale(.4); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes belt { to { background-position: 22.6px 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
@keyframes recPulse { 50% { box-shadow: 0 0 0 6px #fff, 0 0 0 14px rgba(207, 63, 63, .22), 0 14px 28px -12px rgba(207, 63, 63, .8); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (min-width: 561px) {
  body { background: #e7e2d6; }
  #app { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(3, 67, 76, .4); }
}

/* ---------- Ekkaa brand (3 Nov 2026): Ekkaa teal + amber. Amber needs dark text and icons. ---------- */
.btn-accent { color: var(--ink-deep); }
.btn-accent .plus { background: rgba(2, 42, 48, .12); }
.key.go { color: var(--ink-deep); }
.tab-new.on .tab-plus svg { stroke: var(--ink-deep); }
.brand-mark { background: #fff; }
.brand-mark img { width: 24px; height: 24px; object-fit: contain; display: block; }
.login-logo { background: #fff; display: grid; place-items: center; }
.login-logo img { width: 68%; height: 68%; object-fit: contain; }

/* ---------- Ask (the assistant) ---------- */
.ask { margin-top: 16px; padding-bottom: 96px; }
.ask-intro .ask-spark { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 10px; }
.ask-intro .ask-spark svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linejoin: round; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sug { border: 0; background: var(--paper); border-radius: 99px; padding: 9px 13px; font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer; text-align: left; }
.ask-top { display: flex; justify-content: flex-end; }
.link-btn { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px; }
.q-b { margin: 14px 0 0 auto; width: fit-content; max-width: 85%; background: var(--ink); color: #fff; border-radius: 18px 18px 4px 18px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.a-b { margin-top: 10px; max-width: 94%; background: var(--card); border-radius: 18px 18px 18px 4px; padding: 12px 14px; box-shadow: var(--shadow); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; }
.a-b.err { color: var(--late); }
.a-b.wait { width: 70px; display: flex; gap: 6px; justify-content: center; }
.a-b.wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); animation: pulse 1s ease-in-out infinite; }
.a-b.wait i:nth-child(2) { animation-delay: .15s; } .a-b.wait i:nth-child(3) { animation-delay: .3s; }
.draft { margin-top: 8px; max-width: 94%; background: #e7f6dd; border-radius: 16px; padding: 12px; }
.draft-h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #14301c; }
.draft-h svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.draft-t { margin: 8px 0 10px; white-space: pre-wrap; font-size: 14px; color: #14301c; }
.ask-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--safe-b)); z-index: 15; max-width: 560px; margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: rgba(244, 241, 234, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line); }
.ask-bar textarea { flex: 1; min-width: 0; resize: none; border: 1.5px solid var(--line); border-radius: 18px; padding: 11px 14px; font: inherit; font-size: 15px; line-height: 1.35; max-height: 120px; background: #fff; outline: none; }
.ask-bar textarea:focus { border-color: var(--ink); }
.ask-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ask-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- Ask: designed answers ---------- */
.ans { margin-top: 10px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 16px; position: relative; overflow: hidden; }
.ans::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ink) 0 70%, var(--accent) 70% 100%); }
.ans-h { display: flex; align-items: center; gap: 10px; font: 700 17px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.ans-mark { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.ans-mark svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linejoin: round; }
.ans-r { margin: 10px 0 0; font-size: 15px; line-height: 1.55; }
.ans-stats { display: grid; gap: 8px; margin-top: 14px; grid-template-columns: repeat(2, 1fr); }
.ans-stats.n3 { grid-template-columns: repeat(3, 1fr); }
.ans-stats.n1 { grid-template-columns: 1fr; }
.ans-stat { background: var(--paper); border-radius: 14px; padding: 12px 10px 10px; text-align: center; }
.ans-stat b { display: block; font: 800 28px/1 var(--display); letter-spacing: -.02em; color: var(--info); font-variant-numeric: tabular-nums; }
.ans-stat span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ans-stat.t-late b { color: var(--late); } .ans-stat.t-warn b { color: var(--warn-ink); } .ans-stat.t-ok b { color: var(--ok); }
.ans-sec { margin-top: 16px; }
.ans-sec h4 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ans-sec h4 small { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.ans-sec ul { list-style: none; margin: 0; padding: 0; }
.ans-sec li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ans-sec li:first-child { border-top: 0; }
.ans-sec li .av { width: 30px; height: 30px; border-radius: 10px; font-size: 12.5px; }
.ans-dot { flex: none; width: 8px; height: 8px; margin: 7px 11px 0 11px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.it-main { flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.it-main b { display: block; font-size: 14px; }
.it-main span { color: var(--text); overflow-wrap: anywhere; }
.ans-sec li .chip { margin-top: 2px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.tbl-wrap table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl-wrap th { position: sticky; top: 0; background: var(--ink); color: #fff; text-align: left; padding: 8px 10px; white-space: nowrap; font-size: 12px; }
.tbl-wrap td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl-wrap tr:nth-child(even) td { background: #faf8f3; }
.ans-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ans-acts button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 11px; padding: 8px 12px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; }
.ans-acts button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ans.wait { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.ans.wait::before { background: linear-gradient(90deg, var(--ink), var(--accent), var(--ink)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.ans-think { display: flex; gap: 5px; }
.ans-think i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1s ease-in-out infinite; }
.ans-think i:nth-child(2) { animation-delay: .15s; } .ans-think i:nth-child(3) { animation-delay: .3s; }
.err-ans { color: var(--late); font-size: 14px; }
.ask-mic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.ask-mic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ask-mic.on { background: var(--late); color: #fff; animation: recPulse 1.4s ease-in-out infinite; }
.tbl-wrap table { width: max-content; min-width: 100%; }
.tbl-wrap td { min-width: 64px; max-width: 220px; }

/* ---------- Ask: live progress + model chip ---------- */
.model-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px; background: var(--info-soft); color: var(--info); font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.model-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(44, 98, 201, .18); }
.model-chip.deep { background: linear-gradient(90deg, var(--ink), #0b5a65); color: #fff; }
.model-chip.deep i { background: var(--accent); box-shadow: 0 0 0 3px rgba(240, 177, 0, .3); }
.model-chip.sm { padding: 3px 9px 3px 7px; font-size: 11px; }
.ans-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 12px; color: var(--faint); font-weight: 600; }
.ask-prog { padding-bottom: 12px; }
.prog-h { display: flex; justify-content: space-between; align-items: center; }
.prog-t { font: 800 15px/1 var(--display); color: var(--muted); }
.prog-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.prog-steps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--muted); animation: up .35s cubic-bezier(.2, .7, .2, 1) both; }
.prog-steps li.now { color: var(--ink); font-weight: 700; }
.ps-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.ps-ic svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
li.now .ps-ic { background: var(--accent-soft); }
li.now .ps-ic b { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.prog-bar { margin-top: 12px; height: 4px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--ink), var(--accent)); animation: progSlide 1.4s ease-in-out infinite; }
.ask-prog.deep .prog-bar i { background: linear-gradient(90deg, var(--accent), var(--ink), var(--accent)); }
@keyframes progSlide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Ekkaa Brain: identity + audio briefing ---------- */
.brain-title { display: flex; align-items: center; gap: 10px; }
.brain-dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--accent), #3ddc8f, #6fd3ff, var(--accent)); box-shadow: 0 0 0 4px rgba(240, 177, 0, .18), 0 0 18px rgba(240, 177, 0, .55); animation: spin 3s linear infinite; }
.model-chip.deep { background: linear-gradient(110deg, #022a30, #03434c 40%, #0b6b77 60%, #022a30); background-size: 220% 100%; animation: shimmer 3.5s linear infinite; box-shadow: 0 6px 16px -8px rgba(3, 67, 76, .8); }
.ans-acts button.listen { background: var(--ink); color: #fff; }
.ans-acts button.listen svg { stroke: var(--accent); }
.ans-audio { margin-top: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #03434c, #0b5a65); color: #fff; }
.ans-audio.busy { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.ans-audio.busy .ans-think i { background: var(--accent); }
.aud-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.aud-h svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
.aud-h span { margin-left: auto; opacity: .7; font-size: 11.5px; }
.ans-audio audio { width: 100%; margin-top: 10px; height: 40px; border-radius: 99px; }
.aud-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.aud-acts .btn { min-height: 40px; font-size: 13px; }
