/**
 * CalTrack — "Editorial mono".
 *
 * Black and white only. No hue anywhere: progress reads through weight and
 * length, never colour, and the three macros are told apart by label alone.
 * `--accent` is simply ink, so a filled button is black-on-white in light mode
 * and inverts in dark.
 *
 * Wide letter-spacing on uppercase labels is the signature of this design.
 * Do not tighten it.
 */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}

:root,
:root[data-theme='light'] {
  --bg: #ffffff;
  --soft: #ffffff;
  --card: #ffffff;
  --card2: #ebebeb;
  --line: #e0e0e0;
  --text: #0b0b0b;
  --muted: #8a8a8a;
  --accent: #0b0b0b;
  --on-accent: #ffffff;
  --danger: #b3261e;
}

/* No in-app appearance switch by design — follow the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b0b0b;
    --soft: #0b0b0b;
    --card: #141414;
    --card2: #242424;
    --line: #282828;
    --text: #fafafa;
    --muted: #8a8a8a;
    --accent: #fafafa;
    --on-accent: #0b0b0b;
    --danger: #ff9b91;
  }
}

:root[data-theme='dark'] {
  --bg: #0b0b0b;
  --soft: #0b0b0b;
  --card: #141414;
  --card2: #242424;
  --line: #282828;
  --text: #fafafa;
  --muted: #8a8a8a;
  --accent: #fafafa;
  --on-accent: #0b0b0b;
  --danger: #ff9b91;
}

:root {
  --gutter: 22px;
  --card-gutter: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dock-pad: 138px;
}

* { box-sizing: border-box; }

/* Class-level `display` beats the UA sheet's [hidden] rule, so restate it. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overscroll-behavior-y: none;
  background: var(--bg);
}

body {
  font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

input {
  font-family: inherit;
  color: inherit;
}

.num { font-variant-numeric: tabular-nums; }

/* Scrollbars are hidden everywhere. */
.scroll, .sub-scroll, .chat-log {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar,
.sub-scroll::-webkit-scrollbar,
.chat-log::-webkit-scrollbar { display: none; }

.app {
  position: relative;
  max-width: 520px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  background: var(--bg);
}

/* ------------------------------------------------------------------ *
 * Home header — fixed, the content scrolls under it
 * ------------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 0 12px 10px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.date-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  margin-left: -6px;
  text-align: left;
}
.date-btn .stack { display: flex; flex-direction: column; gap: 2px; }
.date-btn .title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.date-btn .full {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.date-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn.close { font-size: 19px; }

.scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: var(--dock-pad);
}

/* ------------------------------------------------------------------ *
 * Hero — hairline half-arc
 * ------------------------------------------------------------------ */

.hero {
  padding: 18px var(--gutter) 16px;
  border-bottom: 1px solid var(--line);
}

.arc-wrap { position: relative; height: 112px; }
.arc-wrap svg { width: 100%; height: 100%; overflow: visible; }
.arc-track { fill: none; stroke: var(--card2); stroke-width: 2; }
.arc-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: butt; /* deliberately unrounded */
  transition: stroke-dashoffset 0.6s var(--ease);
}

.arc-center {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.arc-center .big {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.arc-center .label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero-summary { display: flex; justify-content: space-between; padding-top: 14px; }
.hero-summary > div { display: flex; flex-direction: column; gap: 3px; }
.hero-summary > div:last-child { align-items: flex-end; }
.hero-summary .k {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-summary .v { font-size: 15px; font-weight: 600; }

/* ------------------------------------------------------------------ *
 * Macros — measured lines, no dials
 * ------------------------------------------------------------------ */

.macros {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
}
.macro { display: flex; flex-direction: column; gap: 7px; }
.macro-head { display: flex; align-items: baseline; justify-content: space-between; }
.macro-head .k {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.macro-head .v { font-size: 12.5px; font-weight: 500; }

.rule { position: relative; height: 3px; background: var(--card2); }
.rule i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}

/* ------------------------------------------------------------------ *
 * Meal cards
 * ------------------------------------------------------------------ */

.meal {
  margin: 12px var(--card-gutter) 0;
  padding: 14px 16px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.meal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 8px;
}
.meal-head .name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.meal-head .kcal { font-size: 12px; font-weight: 500; color: var(--muted); }
.meal .rule { margin-bottom: 2px; }

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
}
.row + .row { border-top: 1px solid var(--line); }
.row .stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .name { font-size: 14.5px; font-weight: 400; }
.row .macros-line { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.row .kcal { font-size: 14.5px; font-weight: 600; }
.row .del {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin: -11px -14px -11px 0;
  color: var(--muted);
}
.row .del svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meal-empty { font-size: 12.5px; color: var(--muted); padding: 2px 0 6px; }

/* ------------------------------------------------------------------ *
 * Composer dock — typing is the primary action
 * ------------------------------------------------------------------ */

.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.attach { display: flex; gap: 8px; padding: 0 0 10px; }
.attach button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.attach svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--text);
  border-radius: 28px;
  padding: 6px 6px 6px 7px;
}

.plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
}
.plus svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform 0.25s var(--ease);
}
body.attach-open .plus svg { transform: rotate(45deg); }

#composerText {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  font-size: 16px; /* below 16px iOS zooms the viewport on focus */
  font-weight: 400;
  background: transparent;
  border: 0;
  outline: none;
}
#composerText::placeholder { color: var(--muted); font-size: 14.5px; }

.listening-state {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.listening-state .label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* The only voice affordance — a waveform, never a microphone. */
.wave { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.wave span { width: 2px; background: currentColor; }
.wave span:nth-child(1) { height: 6px; }
.wave span:nth-child(2) { height: 12px; }
.wave span:nth-child(3) { height: 16px; }
.wave span:nth-child(4) { height: 10px; }
.wave span:nth-child(5) { height: 6px; }

.listening-state .wave { gap: 3px; height: 15px; }
.listening-state .wave span:nth-child(1) { height: 6px; }
.listening-state .wave span:nth-child(2) { height: 11px; }
.listening-state .wave span:nth-child(3) { height: 15px; }
.listening-state .wave span:nth-child(4) { height: 9px; }
.listening-state .wave span:nth-child(5) { height: 12px; }

body.listening .wave span { animation: bar 0.8s ease-in-out infinite; }
body.listening .wave span:nth-child(2),
body.listening .wave span:nth-child(4) { animation-delay: 0.18s; }
body.listening .wave span:nth-child(3) { animation-delay: 0.36s; }

@keyframes bar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1.5); }
}

.voice {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.voice:disabled { opacity: 0.45; }

.send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.send svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-indicator {
  width: 124px;
  height: 5px;
  border-radius: 99px;
  background: var(--text);
  opacity: 0.2;
  margin: 12px auto 0;
}

.status {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-align: center;
  padding-bottom: 10px;
  min-height: 14px;
}
.status:empty { display: none; }

/* ------------------------------------------------------------------ *
 * Sub screens — settings, targets, usage
 * ------------------------------------------------------------------ */

.sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: 0 12px 10px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.sub-head h1 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.back-head {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--line);
}
.back-head h1 { font-size: 16px; font-weight: 600; margin: 0; }
.back-head .icon-btn svg { width: 21px; height: 21px; stroke-width: 1.8; }

.sub-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px var(--gutter) 30px;
}

.eyebrow {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 12px;
}
.eyebrow.spaced { padding-top: 26px; }

.eyebrow-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 0 12px;
}
.eyebrow-row .eyebrow { padding: 0; }
.eyebrow-row .count { font-size: 10.5px; color: var(--muted); }

.note { font-size: 11px; color: var(--muted); line-height: 1.7; padding: 22px 0 0; margin: 0; }

/* --- account --- */

.account-box { border: 1px solid var(--line); padding: 18px 16px 16px; }
.account-box .t { font-size: 15px; font-weight: 500; padding-bottom: 5px; }
.account-box .s { font-size: 11.5px; color: var(--muted); line-height: 1.7; padding-bottom: 16px; }

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--accent);
  color: var(--on-accent);
}
.btn.ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
.btn + .btn { margin-top: 8px; }
.btn:disabled { opacity: 0.5; }
.btn.danger { background: var(--danger); color: #fff; }

.account-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}
.account-row .stack { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.account-row .t {
  font-size: 14.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-row .s { font-size: 11px; color: var(--muted); }
.small-btn {
  flex: none;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.delete-link {
  display: block;
  width: 100%;
  padding: 14px 0 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--danger);
  text-align: center;
}

/* --- full-width row button --- */

.row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.row-btn .stack { display: flex; flex-direction: column; gap: 5px; }
.row-btn .t { font-size: 15px; font-weight: 500; }
.row-btn .s { font-size: 11.5px; color: var(--muted); }
.row-btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- meal toggles --- */

.toggle-box { border: 1px solid var(--line); }
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
}
.toggle + .toggle { border-top: 1px solid var(--line); }
.toggle .label { font-size: 14.5px; font-weight: 400; }
.mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--text);
  background: transparent;
  color: transparent;
}
.toggle[aria-pressed='true'] .mark { background: var(--accent); color: var(--on-accent); }
.mark svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- targets --- */

.presets { display: flex; gap: 8px; padding-bottom: 18px; }
.presets button {
  flex: 1;
  padding: 10px 4px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.target-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.target-row .stack { display: flex; flex-direction: column; gap: 5px; }
.target-row .k {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.target-row .v { display: flex; align-items: baseline; gap: 5px; }
.target-row .v b { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; }
.target-row .v span { font-size: 12px; color: var(--muted); font-weight: 400; }
.steppers { display: flex; align-items: center; gap: 6px; }
.steppers button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  font-size: 18px;
  line-height: 1;
}

.reconcile { font-size: 11.5px; color: var(--muted); line-height: 1.7; padding: 16px 0 0; margin: 0; }
#saveTargets { margin-top: 22px; padding: 17px; font-size: 11px; }

/* ------------------------------------------------------------------ *
 * Calendar popover
 * ------------------------------------------------------------------ */

.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: 20; }

.cal {
  position: absolute;
  top: 96px;
  left: 16px;
  width: 292px;
  z-index: 21;
  background: var(--soft);
  border: 1px solid var(--text);
  padding: 16px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cal-head .month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.cal-nav {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
}
.cal-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-week { padding: 10px 0 2px; }
.cal-week div {
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 3px 0;
}

.cal-cell {
  height: 36px;
  font-size: 12.5px;
  background: transparent;
  color: var(--text);
}
.cal-cell.today { background: var(--card2); }
.cal-cell.selected { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.cal-cell.future { color: var(--muted); opacity: 0.4; pointer-events: none; }

.cal-today {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--text);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ------------------------------------------------------------------ *
 * Sheets — sign in, delete account
 * ------------------------------------------------------------------ */

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  background: var(--bg);
  border-top: 1px solid var(--text);
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  max-height: 88%;
  animation: sheet-up 0.28s var(--ease);
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
}
.sheet-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-blurb { margin: 0 0 4px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.auth-form input {
  height: 50px;
  padding: 0 14px;
  font-size: 16px;
  background: transparent;
  border: 1px solid var(--line);
  outline: none;
}
.auth-form input:focus { border-color: var(--text); }
.auth-form input::placeholder { color: var(--muted); }
.auth-error { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--danger); }
.auth-switch {
  padding: 10px 6px 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * Usage
 * ------------------------------------------------------------------ */

.usage-hero { padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.usage-hero .big { font-size: 42px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.usage-hero .label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-top: 6px;
}
.usage-hero .cost { font-size: 15px; font-weight: 600; padding-top: 12px; }

.usage-split { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.usage-cell { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.usage-cell + .usage-cell { border-left: 1px solid var(--line); padding-left: 16px; }
.usage-cell .k {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.usage-cell .v { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.usage-cell .s { font-size: 11.5px; color: var(--muted); }

.usage-day { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.usage-day + .usage-day { border-top: 1px solid var(--line); }
.usage-day .d { flex: none; width: 40px; font-size: 10.5px; color: var(--muted); }
.usage-day .rule { flex: 1; }
.usage-day .n { flex: none; width: 52px; text-align: right; font-size: 12px; font-weight: 500; }

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.admin-row .who {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-row .stats { flex: none; font-size: 11px; font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * Typed conversation replies (transient, above the dock)
 * ------------------------------------------------------------------ */

.reply {
  margin: 12px var(--card-gutter) 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.reply.err { border-color: var(--danger); color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* ------------------------------------------------------------------ *
 * Unverified-email banner
 * ------------------------------------------------------------------ */

.verify-banner {
  border: 1px solid var(--text);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.verify-banner .t { font-size: 13px; font-weight: 500; padding-bottom: 4px; }
.verify-banner .s { font-size: 11.5px; color: var(--muted); line-height: 1.6; padding-bottom: 12px; }
.verify-banner button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
