/* ============================================================
   LVRD operator app — App styles
   Light + dark via [data-theme]. Inherits all tokens from
   colors_and_type.css. Local rules below describe only the
   app-specific surfaces (bubbles, primitives, tabbar, etc).
   ============================================================ */

@import url("../colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--smoke-200);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: background var(--duration-default) var(--easing-default);
}
body[data-app-theme="dark"] { background: #0A0A0C; }

/* Embed mode — when the operator app is iframed into the marketing
   site, strip the centered-phone chrome so the device fills the
   iframe and the slab background shows around the rounded corners.
   html + body lock to the iframe's exact viewport (no scrollbars,
   no margin gutter) so the device's own border-radius aligns
   pixel-perfect with the wrapper's clip on the site side. */
html.embedded,
body.embedded {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body.embedded {
  background: transparent !important;
  display: block;
  min-height: 0;
  /* Kill the background-transition that was running counter to the
     transparent override and leaving the body painting smoke-200
     for the duration of the animation. */
  transition: none !important;
}
body.embedded[data-app-theme="dark"] { background: transparent !important; }
body.embedded #root {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
/* Backdrop-filter creates its own GPU compositing layer. When the
   layer meets the wrapper's rounded clip on the marketing site,
   the layer's edge gets anti-aliased slightly differently than the
   surrounding non-filtered content, reading as a phantom "inner
   curve" along the bottom of the device. Drop all backdrop-filters
   in embed mode — the translucent fills still read correctly. */
body.embedded *,
body.embedded *::before,
body.embedded *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#root { width: 100%; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   Phone shell — fills the iOS bezel
   ============================================================ */
.lv-phone {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow: hidden;
}
.lv-screen {
  flex: 1; min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.lv-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lv-scroll::-webkit-scrollbar { width: 0; }

/* status-bar safe area at top of every screen */
.lv-statusbar-pad { height: 60px; flex-shrink: 0; }

/* ============================================================
   Top bar (LVRD-styled, not iOS chrome)
   ============================================================ */
.lv-topbar {
  display: flex; align-items: center;
  padding: 8px 20px 14px;
  gap: 14px;
  flex-shrink: 0;
  background: var(--bg);
}
.lv-topbar.bordered { border-bottom: 1px solid var(--border); }
.lv-topbar h1 {
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0;
  flex: 1;
}
.lv-topbar h1.compact {
  font-size: 16px; line-height: 22px;
  font-weight: 600; letter-spacing: -0.005em;
}
.lv-topbar .lv-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.lv-topbar .lv-stack { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.lv-backbtn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-backbtn:hover, .lv-backbtn:active { background: var(--smoke-200); color: var(--fg-strong); }
[data-theme="dark"] .lv-backbtn:hover { background: var(--surface-2); }

.lv-iconbtn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  cursor: pointer;
}
.lv-iconbtn svg, .lv-backbtn svg { display: block; }

/* ============================================================
   Inbox list
   ============================================================ */
.lv-section-h {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 8px;
}
.lv-section-h .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-section-h .ct {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
}
.lv-section-h .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lv-thread {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  background: var(--bg);
  transition: background var(--duration-fast) var(--easing-default);
  position: relative;
}
.lv-thread:hover, .lv-thread:active { background: var(--surface); }
.lv-thread.unread::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 2px; background: var(--accent);
}
.lv-thread .who {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-thread .preview {
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lv-thread .meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.lv-thread .meta .t {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}

/* ============================================================
   Avatar — initials, smoke-800 background, no decoration
   ============================================================ */
.lv-avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--smoke-800);
  color: var(--smoke-50);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
[data-theme="dark"] .lv-avatar {
  background: var(--smoke-100);
  color: var(--smoke-900);
}
.lv-avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.lv-avatar.md { width: 30px; height: 30px; font-size: 10px; }
.lv-avatar.lg { width: 56px; height: 56px; font-size: 16px; }

/* ============================================================
   Status dots
   ============================================================ */
.lv-statusdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.lv-statusdot.active { background: var(--accent); animation: lvrd-breath 2.4s var(--easing-breath) infinite; }
.lv-statusdot.idle { background: var(--smoke-400); }
.lv-statusdot.off { background: transparent; border: 1px solid var(--smoke-300); }
[data-theme="dark"] .lv-statusdot.off { border-color: var(--smoke-600); }

@keyframes lvrd-breath {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

.lv-status-row { display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-subtle);
}

/* ============================================================
   Conversation
   ============================================================ */
.lv-thread-head {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.lv-thread-head .lv-avatar { width: 32px; height: 32px; font-size: 10px; }
.lv-thread-head .who { font-size: 15px; font-weight: 600; color: var(--fg-strong); letter-spacing: -0.005em; }
.lv-thread-head .role { font-family: var(--font-mono); font-size: 10px; color: var(--fg-subtle); letter-spacing: 0.08em; text-transform: uppercase; }

.lv-conv {
  padding: 20px 16px 24px;
  display: flex; flex-direction: column;
  gap: 10px;
}

/* System message — centered, mono, muted */
.lv-sys {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 12px 8px 6px;
  align-self: center;
  max-width: 80%;
}
.lv-sys .expandable {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg-subtle);
  border-bottom: 1px dotted var(--fg-faint);
}
.lv-sys .expandable:hover { color: var(--fg); border-bottom-color: var(--fg-muted); }
.lv-sys-detail {
  align-self: center;
  max-width: 86%;
  margin: 4px auto 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 18px;
  color: var(--fg-muted);
  letter-spacing: 0;
  text-transform: none;
  white-space: pre-line;
  text-align: left;
}

/* Bubbles — owner (right, accent) / agent (left, surface) */
.lv-bubble-row { display: flex; gap: 8px; align-items: flex-end; }
.lv-bubble-row.agent { justify-content: flex-start; }
.lv-bubble-row.owner { justify-content: flex-end; }

.lv-bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 21px;
  letter-spacing: -0.005em;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
}
.lv-bubble.agent {
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.lv-bubble.owner {
  background: var(--accent);
  color: var(--fg-on-accent);
  border-bottom-right-radius: 6px;
}
[data-theme="dark"] .lv-bubble.owner {
  color: var(--smoke-900);
  font-weight: 500;
}
.lv-bubble .t {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
  opacity: 0.55;
}

.lv-bubble-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 6px 0 -2px 6px;
}

/* ============================================================
   Primitive: Approval card
   ============================================================ */
.lv-card {
  align-self: flex-start;
  max-width: 86%;
  margin: 6px 0 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
[data-theme="dark"] .lv-card { background: var(--surface-2); border-color: var(--border-strong); }
.lv-card-head {
  padding: 16px 18px 12px;
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px solid var(--border);
}
.lv-card-head .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: inline-flex; align-items: center; gap: 8px;
}
.lv-card-head .label .lv-statusdot { width: 5px; height: 5px; }
.lv-card-head .title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin-top: 4px;
}
.lv-card-head .subtitle {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.lv-card-headline {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 10px;
}
.lv-card-headline .amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.lv-card-headline .units {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
}

.lv-card-body {
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.lv-card-row { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: baseline; }
.lv-card-row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-card-row .v {
  font-size: 13px;
  line-height: 19px;
  color: var(--fg);
}

.lv-card-actions {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
[data-theme="dark"] .lv-card-actions { background: var(--smoke-900); }

/* Approval card — sub-states (refine / redirect / receipts) */
.lv-card-refine,
.lv-card-redirect {
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column;
}
[data-theme="dark"] .lv-card-refine,
[data-theme="dark"] .lv-card-redirect { background: var(--smoke-900); }

.lv-card-refine .lv-card-actions,
.lv-card-redirect .lv-card-actions { border-top: 1px solid var(--border); }

.lv-card-refine-eyebrow,
.lv-card-redirect-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 12px 18px 8px;
}

.lv-card-refine-input {
  display: none;
}

.lv-card-refine-list {
  display: flex; flex-direction: column;
  padding: 0 6px 4px;
}
.lv-card-refine-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  color: var(--fg-strong);
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-card-refine-row:hover { background: var(--surface-2, rgba(0,0,0,0.03)); }
[data-theme="dark"] .lv-card-refine-row:hover { background: rgba(255,255,255,0.04); }
.lv-card-refine-row .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-card-refine-row .who .n {
  font-size: 13px; font-weight: 500; color: var(--fg-strong);
}
.lv-card-refine-row .who .r {
  font-size: 12px; line-height: 17px;
  color: var(--fg-muted);
}
.lv-card-refine-row svg { color: var(--fg-faint); }
.lv-card-refine-row:hover svg { color: var(--accent); }

.lv-card-refine-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
  padding: 4px 18px 10px;
  line-height: 15px;
}

.lv-card-refine-chips,
.lv-card-refine-chip { display: none; }

.lv-card-redirect-list {
  display: flex; flex-direction: column;
  padding: 0 6px 4px;
}
.lv-card-redirect-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  color: var(--fg-strong);
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-card-redirect-row:hover { background: var(--surface-2, rgba(0,0,0,0.03)); }
[data-theme="dark"] .lv-card-redirect-row:hover { background: rgba(255,255,255,0.04); }
.lv-card-redirect-row .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-card-redirect-row .who .n {
  font-size: 13px; font-weight: 500; color: var(--fg-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-card-redirect-row .who .r {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-card-redirect-row svg { color: var(--fg-faint); }
.lv-card-redirect-row:hover svg { color: var(--accent); }
.lv-card-redirect-empty {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--fg-muted);
}

/* Receipt strips */
.lv-card-receipt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
[data-theme="dark"] .lv-card-receipt { background: var(--smoke-900); }
.lv-card-receipt .ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, rgba(0,0,0,0.05));
  color: var(--fg-strong);
  flex-shrink: 0;
}
.lv-card-receipt.approved .ic { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.lv-card-receipt.refined .ic  { background: color-mix(in oklab, var(--fg-strong) 10%, transparent); color: var(--fg-strong); }
.lv-card-receipt.redirected .ic { background: color-mix(in oklab, var(--fg-strong) 10%, transparent); color: var(--fg-strong); }
.lv-card-receipt .msg { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-card-receipt .msg .t {
  font-size: 13px; font-weight: 500; color: var(--fg-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-card-receipt .msg .s {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-card-undo {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px 6px;
}
.lv-card-undo:hover { color: var(--accent); }

/* Dim the body once a decision has been made */
.lv-card.mode-approved .lv-card-body,
.lv-card.mode-refined .lv-card-body,
.lv-card.mode-redirected .lv-card-body { opacity: 0.6; }

/* Completion card — inline preview (View tomorrow / View P&L / etc.) */
.lv-card-preview {
  border-top: 1px solid var(--border);
  padding: 14px 18px 6px;
  display: flex; flex-direction: column; gap: 10px;
  animation: lv-preview-in 220ms var(--easing-default);
}
@keyframes lv-preview-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lv-card-preview-head {
  display: flex; flex-direction: column; gap: 2px;
}
.lv-card-preview-head .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-card-preview-head .sub {
  font-size: 13px;
  color: var(--fg-strong);
  font-weight: 500;
}
.lv-card-preview-rows {
  display: flex; flex-direction: column; gap: 6px;
}
.lv-card-preview-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.lv-card-preview-row:last-child { border-bottom: 0; }
.lv-card-preview-row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-card-preview-row .v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-strong);
  line-height: 17px;
}
.lv-card-preview-foot {
  font-size: 12px;
  line-height: 17px;
  color: var(--fg-muted);
  padding-top: 2px;
}

/* Buttons */
.lv-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--easing-default),
              border-color var(--duration-fast) var(--easing-default),
              color var(--duration-fast) var(--easing-default);
}
.lv-btn.primary { background: var(--accent); color: var(--fg-on-accent); flex: 1; }
.lv-btn.primary:hover, .lv-btn.primary:active { background: var(--accent-hover); }
.lv-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.lv-btn[disabled]:hover { background: var(--accent); }
.lv-btn.secondary { background: transparent; color: var(--fg-strong); border-color: var(--border-strong); }
.lv-btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .lv-btn.secondary:hover { color: var(--accent); border-color: var(--accent); }
.lv-btn.ghost { background: transparent; color: var(--fg-muted); }
.lv-btn.ghost:hover { color: var(--fg-strong); }
.lv-btn.block { width: 100%; }

/* ============================================================
   Quick reply chips
   ============================================================ */
.lv-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 6px 8px 2px;
}
.lv-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-default),
              border-color var(--duration-fast) var(--easing-default);
}
.lv-chip:hover { border-color: var(--accent); color: var(--accent); }

/* Typing indicator (agent bubble, three pulsing dots) */
.lv-typing {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  margin: 4px 0 4px 0;
}
.lv-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
  animation: lv-typing-bounce 1.1s infinite ease-in-out;
}
.lv-typing span:nth-child(2) { animation-delay: 0.15s; }
.lv-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lv-typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

/* ============================================================
   Send box (with mic)
   ============================================================ */
.lv-sendbox-wrap {
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  padding: 18px 12px 18px;
}
.lv-sendbox {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 4px 4px 4px 16px;
  transition: border-color var(--duration-fast) var(--easing-default);
}
.lv-sendbox:focus-within { border-color: var(--accent); }
.lv-sendbox .ph {
  flex: 1;
  font-size: 15px;
  color: var(--fg-faint);
  padding: 9px 0;
  line-height: 22px;
  letter-spacing: -0.005em;
  cursor: text;
  user-select: none;
}
.lv-sendbox-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--surface);
  color: var(--fg-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast) var(--easing-default),
              color var(--duration-fast) var(--easing-default);
}
.lv-sendbox-btn svg { display: block; }
.lv-sendbox-btn:hover { background: var(--smoke-200); color: var(--fg-strong); }
[data-theme="dark"] .lv-sendbox-btn:hover { background: var(--smoke-700); color: var(--fg-strong); }
.lv-sendbox-btn.primary {
  background: var(--accent);
  color: var(--fg-on-accent);
}
.lv-sendbox-btn.primary:hover { background: var(--accent-hover); }

/* Voice pill — replaces send box while recording */
.lv-voicepill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 22px;
}
.lv-voicepill .wave {
  flex: 1;
  height: 24px;
  display: flex; align-items: center; gap: 3px;
}
.lv-voicepill .wave span {
  display: inline-block;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: lv-wave 0.9s ease-in-out infinite;
}
@keyframes lv-wave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50% { height: 18px; opacity: 1; }
}
.lv-voicepill .transcript {
  font-size: 14px;
  color: var(--fg-strong);
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.lv-voicepill .timer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.lv-voicepill-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 6px;
}

/* ============================================================
   Tab bar (bottom nav)
   ============================================================ */
.lv-tabbar {
  display: flex;
  padding: 10px 8px 32px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.lv-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  color: var(--fg-faint);
  transition: color var(--duration-fast) var(--easing-default);
  position: relative;
}
.lv-tab.active { color: var(--fg-strong); }
.lv-tab .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lv-tab .badge {
  position: absolute;
  top: 2px;
  right: 24px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: lvrd-breath 2.4s var(--easing-breath) infinite;
}

/* ============================================================
   Roster
   ============================================================ */
.lv-roster-summary {
  display: flex; gap: 24px;
  padding: 4px 20px 24px;
}
.lv-roster-summary .stat .n {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  display: block;
}
.lv-roster-summary .stat .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.lv-agent-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  align-items: center;
  background: var(--bg);
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-agent-card:hover, .lv-agent-card:active { background: var(--surface); }
.lv-agent-card .who {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.005em;
}
.lv-agent-card .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 4px;
}
.lv-agent-card .now {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 6px;
  line-height: 18px;
}

/* Agent detail */
.lv-agent-detail .hero {
  padding: 4px 24px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.lv-agent-detail .hero .who {
  font-size: 26px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--fg-strong);
  margin-top: 16px;
}
.lv-agent-detail .hero .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-agent-detail .hero .desc {
  font-size: 15px;
  line-height: 23px;
  color: var(--fg);
  text-wrap: pretty;
}
.lv-agent-detail .lv-accent-line {
  display: block; height: 1px; width: 100%; border: 0;
  background: var(--accent-line);
  margin: 0;
}
.lv-agent-detail .panel {
  padding: 20px 24px;
}
.lv-agent-detail .panel h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 12px;
  font-weight: 600;
}
.lv-agent-detail .panel p {
  font-size: 14px; line-height: 22px;
  color: var(--fg);
  margin: 0;
}
.lv-agent-detail .panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lv-agent-detail .panel li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--fg-muted);
}
.lv-agent-detail .panel li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--smoke-400);
  margin-top: 8px;
}

/* ============================================================
   Settings
   ============================================================ */
.lv-set-section {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.lv-set-section .h {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.lv-set-section .h .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-set-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-set-row:hover { background: var(--surface); }
.lv-set-row .k {
  flex: 1;
  font-size: 15px;
  color: var(--fg-strong);
  letter-spacing: -0.005em;
}
.lv-set-row .v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0;
  text-align: right;
}
.lv-set-row .chev {
  color: var(--fg-faint);
}

/* ============================================================
   Form fields (settings sub-screens)
   ============================================================ */
.lv-form {
  display: flex; flex-direction: column;
  padding: 4px 0 0;
}
.lv-form-intro {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 21px;
  color: var(--fg-muted);
  text-wrap: pretty;
  max-width: 38ch;
}
.lv-form-section { padding: 16px 0 8px; border-top: 1px solid var(--border); }
.lv-form-section:first-of-type { border-top: 0; }
.lv-form-section .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 0 20px 10px;
}
.lv-form-row {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 20px 14px;
}
.lv-form-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.lv-form-row.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lv-field-lbl {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: -0.005em;
  padding-left: 2px;
}
.lv-field {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: -0.005em;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--fg-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--duration-fast) var(--easing-default);
}
.lv-field::placeholder { color: var(--fg-faint); }
.lv-field:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.lv-field.mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; }
.lv-field-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  padding: 6px 2px 0;
}

/* Segmented radio (for role choice on Invite screen) */
.lv-seg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 20px;
}
.lv-seg-opt {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--easing-default),
              background var(--duration-fast) var(--easing-default);
  align-items: start;
}
.lv-seg-opt:hover { border-color: var(--border-strong); }
.lv-seg-opt.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, var(--surface-2)); }
[data-theme="dark"] .lv-seg-opt.on { background: color-mix(in oklab, var(--accent) 12%, var(--surface-2)); }
.lv-seg-opt .ring {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--smoke-400);
  margin-top: 3px;
  flex-shrink: 0;
  position: relative;
}
.lv-seg-opt.on .ring {
  border-color: var(--accent);
}
.lv-seg-opt.on .ring::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--accent);
}
.lv-seg-opt .opt-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.005em;
}
.lv-seg-opt .opt-desc {
  font-size: 13px;
  line-height: 19px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* Footer action bar */
.lv-form-foot {
  position: sticky;
  bottom: 0;
  padding: 12px 20px 22px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  border-top: 1px solid var(--border);
}

/* Card-on-file display (payment screen) */
.lv-card-onfile {
  margin: 4px 20px 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 12px;
}
.lv-card-onfile .head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.lv-card-onfile .head .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-card-onfile .head .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.lv-card-onfile .num {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--fg-strong);
}
.lv-card-onfile .row {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.lv-card-onfile .row .k { color: var(--fg-faint); }

/* Existing teammates strip on the Invite screen */
.lv-teammates {
  display: flex; flex-direction: column;
  margin: 4px 0 0;
}
.lv-teammate-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  padding: 10px 20px;
  align-items: center;
}
.lv-teammate-row .who {
  font-size: 14px; font-weight: 600; color: var(--fg-strong);
}
.lv-teammate-row .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.lv-teammate-row .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lv-profile-card {
  display: flex; gap: 16px; align-items: center;
  padding: 24px 20px 16px;
}
.lv-profile-card .name {
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.lv-profile-card .sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ============================================================
   Toggle
   ============================================================ */
.lv-toggle {
  position: relative;
  width: 42px; height: 26px;
  border-radius: 13px;
  background: var(--smoke-300);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform var(--duration-fast) var(--easing-default);
}
.lv-toggle.on { background: var(--accent); }
.lv-toggle.on::after { transform: translateX(16px); }

/* ============================================================
   Daily report card
   ============================================================ */
.lv-report {
  align-self: flex-start;
  max-width: 92%;
  margin: 6px 0 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
[data-theme="dark"] .lv-report { background: var(--surface-2); border-color: var(--border-strong); }
.lv-report .head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.lv-report .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  display: inline-flex; align-items: center; gap: 8px;
}
.lv-report .label .lv-statusdot { width: 5px; height: 5px; }
.lv-report .headline {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg-strong);
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.lv-report-row {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.lv-report-row:first-of-type { border-top: 0; }
.lv-report-row .head-r {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.lv-report-row .h-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 600;
}
.lv-report-row .h-c {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
}
.lv-report-row .body {
  font-size: 13px;
  line-height: 20px;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* ============================================================
   Popover menu (action sheet from More button)
   ============================================================ */
.lv-popover-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--smoke-900) 14%, transparent);
  z-index: 80;
  animation: lv-pop-fade var(--duration-fast) var(--easing-default);
}
@keyframes lv-pop-fade { from { opacity: 0; } to { opacity: 1; } }
.lv-popover {
  position: absolute;
  top: 92px; right: 14px;
  width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  z-index: 81;
  overflow: hidden;
  animation: lv-pop-in var(--duration-fast) var(--easing-default);
  transform-origin: top right;
}
[data-theme="dark"] .lv-popover { background: var(--surface-2); border-color: var(--border-strong); }
@keyframes lv-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lv-popover .item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--fg);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--easing-default);
}
.lv-popover .item:last-child { border-bottom: 0; }
.lv-popover .item:hover { background: var(--surface); }
.lv-popover .item .ico {
  width: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
}
.lv-popover .item.danger { color: #B5444A; }
[data-theme="dark"] .lv-popover .item.danger { color: oklch(0.78 0.13 25); }
.lv-popover .item.danger .ico { color: currentColor; }
.lv-popover .group {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 10px 14px 6px;
  background: var(--surface);
}
.lv-popover .item.toggle {
  justify-content: space-between;
}
.lv-popover .item.toggle .left {
  display: inline-flex; align-items: center; gap: 12px;
}
.lv-brand-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.lv-brand-strip .mark {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--fg-strong);
}
.lv-brand-strip .now {
  margin-left: auto;
  color: var(--fg-faint);
}

/* ============================================================
   Welcome / inline composer for inbox-level send
   ============================================================ */
.lv-empty-state {
  padding: 32px 24px;
  text-align: center;
}
.lv-empty-state h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-strong);
  margin: 0 0 8px;
}
.lv-empty-state p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 21px;
  margin: 0 auto;
  max-width: 28ch;
}

/* ============================================================
   Thread row — agent role + card type badge (LVR-67)
   ============================================================ */
.lv-thread .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 1px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lv-thread-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  margin-top: 5px;
  font-weight: 600;
}
.lv-thread-badge.approval {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
}
.lv-thread-badge.completion {
  background: color-mix(in oklab, var(--fg-strong) 8%, transparent);
  color: var(--fg-muted);
}
.lv-thread-badge.report {
  background: color-mix(in oklab, var(--fg-strong) 8%, transparent);
  color: var(--fg-muted);
}

/* ============================================================
   Live polling indicator (LVR-67)
   ============================================================ */
.lv-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-right: 2px;
}
.lv-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: lvrd-breath 2.4s var(--easing-breath) infinite;
  flex-shrink: 0;
}

/* ============================================================
   Load earlier button — top of thread (LVR-67)
   ============================================================ */
.lv-load-earlier {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  cursor: pointer;
  margin: 4px auto 12px;
  display: block;
  transition: border-color var(--duration-fast) var(--easing-default),
              color var(--duration-fast) var(--easing-default);
}
.lv-load-earlier:hover {
  border-color: var(--border-strong);
  color: var(--fg);
}
.lv-load-earlier:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ============================================================
   Auth screens — Phone entry · Code verification  (LVR-66)
   ============================================================ */
.lv-auth {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
}

.lv-auth-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 0;
  height: 52px;
  position: relative;
  flex-shrink: 0;
}

.lv-auth-back {
  position: absolute;
  left: 20px;
}

.lv-auth-wordmark {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}

.lv-auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px 24px;
  min-height: 0;
}

.lv-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lv-auth-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 2px;
}

.lv-auth-sub {
  font-size: 15px;
  line-height: 22px;
  color: var(--fg-muted);
  margin: 0;
  text-wrap: pretty;
}

/* Phone input with inline +1 prefix */
.lv-auth-field-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--easing-default),
              box-shadow var(--duration-fast) var(--easing-default);
}
.lv-auth-field-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.lv-auth-prefix {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  padding: 0 2px 0 16px;
  flex-shrink: 0;
  user-select: none;
}

.lv-auth-field {
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--fg-strong);
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  padding: 15px 16px 15px 6px;
}
.lv-auth-field::placeholder { color: var(--fg-faint); }

/* Large submit button */
.lv-auth-btn {
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

/* Inline error */
.lv-auth-error {
  font-size: 13px;
  line-height: 19px;
  color: oklch(0.50 0.18 30);
  padding: 2px 0;
}
[data-theme="dark"] .lv-auth-error { color: oklch(0.72 0.18 30); }

/* Footer legal line */
.lv-auth-foot {
  padding: 12px 24px 28px;
  text-align: center;
  flex-shrink: 0;
}
.lv-auth-legal {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  line-height: 15px;
}

/* ── OTP digit boxes ─────────────────────────────────────────── */
.lv-otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0;
}

.lv-otp-box {
  width: 44px;
  height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--fg-strong);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  caret-color: var(--accent);
  transition: border-color var(--duration-fast) var(--easing-default),
              box-shadow var(--duration-fast) var(--easing-default);
  -webkit-appearance: none;
  appearance: none;
}
.lv-otp-box:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.lv-otp-box:disabled { opacity: 0.5; }
.lv-otp-box.error { border-color: oklch(0.50 0.18 30); }
[data-theme="dark"] .lv-otp-box.error { border-color: oklch(0.72 0.18 30); }

/* "Verifying…" caption below OTP */
.lv-auth-checking {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  text-align: center;
  padding: 2px 0;
}

/* Resend cooldown / link */
.lv-auth-resend {
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg-muted);
}
.lv-auth-resend .count {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
}
.lv-auth-resend .lv-btn {
  font-size: 14px;
  padding: 4px 8px;
}

/* ── Logout row in Settings ──────────────────────────────────── */
.lv-set-row.danger .k { color: oklch(0.50 0.18 30); }
[data-theme="dark"] .lv-set-row.danger .k { color: oklch(0.72 0.18 30); }
