/* Isibaya design tokens + primitives. Kin to Poseidon (Fraunces/Inter, warm paper)
   but its own accent: isibaya gold. PHONE-FIRST: base styles are the ~375px layout;
   media queries widen upward — applicants fill this on phones. */
:root {
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-2: #f3efe6;
  --ink: #13141a;
  --ink-2: #3a3d46;
  --ink-3: #6b6f78;
  --ink-4: #9aa0a8;
  --border: #e8e2d3;
  --brand: #c99a3a;          /* isibaya gold */
  --brand-deep: #8a6a2e;
  --brand-fg: #5a4210;
  --brand-bg: #f5edda;
  --ok: #2e8a73;
  --ok-bg: #e8f5f0;
  --error: #b3402e;
  --error-bg: #f8e9e6;
  --radius: 10px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #13141a; --surface: #1c1e26; --surface-2: #23252e;
  --ink: #f2efe7; --ink-2: #d9d6cc; --ink-3: #a9adb6; --ink-4: #7c8089;
  --border: #32343d; --brand-bg: #2b2517; --brand-fg: #e3c37b; --ok-bg: #16352d;
  --error-bg: #3a1f1a;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand-fg); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 40;
}
.wordmark { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--brand); }
.topbar-right { display: flex; gap: 0.5rem; align-items: center; }

.wrap { max-width: 720px; margin: 0 auto; padding: 1rem; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 1rem; }

.btn {
  display: inline-block; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--ink); padding: 0.55rem 1rem;
  font-size: 0.95rem; font-family: inherit; cursor: pointer; text-decoration: none;
  min-height: 44px; /* thumb-sized targets, always */
}
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; min-height: 34px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
h1 { font-family: var(--font-display); font-size: 1.5rem; margin: 0.5rem 0; }
h2 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.meta { color: var(--ink-3); font-size: 0.85rem; }
.pill { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--surface-2); color: var(--ink-3); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--brand-bg); color: var(--brand-fg); }
.pill.err { background: var(--error-bg); color: var(--error); }

/* Forms */
.f-row { margin-bottom: 1.1rem; }
.f-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.3rem; }
.f-req { color: var(--error); }
.f-help { color: var(--ink-3); font-size: 0.82rem; margin: 0.15rem 0 0.35rem; }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: 0.65rem 0.75rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink);
}
.f-textarea { min-height: 7.5rem; resize: vertical; }
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.f-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.f-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; flex: none; }
.f-info {
  background: var(--surface-2); border-left: 3px solid var(--brand);
  border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.9rem; white-space: pre-wrap;
}

/* Apply stepper */
.stepper { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.4rem; margin-bottom: 0.75rem; -webkit-overflow-scrolling: touch; }
.step-chip {
  flex: none; border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.8rem; cursor: pointer;
  color: var(--ink-3); font-family: inherit;
}
.step-chip.active { background: var(--brand-bg); border-color: var(--brand); color: var(--brand-fg); font-weight: 600; }
.step-chip.done { color: var(--ok); }
.savebar {
  position: sticky; bottom: 0; display: flex; gap: 0.6rem; align-items: center;
  justify-content: space-between; background: var(--surface); border-top: 1px solid var(--border);
  padding: 0.6rem 1rem; margin: 1rem -1rem -1rem;
}
.save-state { font-size: 0.8rem; color: var(--ink-3); }
.save-state.saved { color: var(--ok); }
.progressbar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 0.75rem; }
.progressbar > div { height: 100%; background: var(--brand); transition: width 0.3s; }

.alert { border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert ul { margin: 0.3rem 0 0 1.1rem; padding: 0; }

/* Admin */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.t th { text-align: left; padding: 0.5rem 0.6rem; color: var(--ink-3); font-size: 0.78rem; background: var(--surface-2); }
table.t td { padding: 0.5rem 0.6rem; border-top: 1px solid var(--border); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin: 0.75rem 0 1rem; overflow-x: auto; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 0.5rem 0.9rem; cursor: pointer; color: var(--ink-3); font-family: inherit; font-size: 0.9rem; white-space: nowrap; }
.tab.active { color: var(--brand-fg); border-bottom-color: var(--brand); font-weight: 600; }
.schema-editor { width: 100%; min-height: 22rem; font-family: ui-monospace, "JetBrains Mono", monospace; font-size: 0.8rem; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.stat .v { font-size: 1.5rem; font-weight: 700; }
.stat .l { color: var(--ink-3); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; margin-bottom: 0.3rem; }
.bar-label { width: 40%; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { flex: 1; height: 0.65rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--brand); }
.bar-val { width: 2rem; text-align: right; }

@media (min-width: 700px) {
  .wrap { padding: 2rem 1.5rem; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  h1 { font-size: 1.9rem; }
}

/* ══ Landing page ══════════════════════════════════════════════════════════ */
.land-hero {
  display: grid; gap: 2rem; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 3rem 1.25rem 2.5rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--brand-fg);
  background: var(--brand-bg); border: 1px solid var(--brand);
  border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 1rem;
}
.hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero-h {
  font-family: var(--font-display); font-weight: 600; line-height: 1.12;
  font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.01em;
}
.hero-h em { font-style: italic; color: var(--brand-deep); }
[data-theme="dark"] .hero-h em { color: var(--brand); }
.hero-sub { color: var(--ink-2); font-size: 1.05rem; max-width: 34rem; margin: 0 0 1.5rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; border-radius: 10px; }
.hero-note { color: var(--ink-4); font-size: 0.8rem; margin-top: 1rem; }

/* CSS phone mock — the product itself as the hero visual. */
.phone-mock {
  width: 290px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 26px;
  box-shadow: 0 24px 60px -24px rgba(60, 42, 6, 0.35);
  overflow: hidden; user-select: none; pointer-events: none;
}
.pm-top { display: flex; justify-content: center; padding: 0.55rem 0 0.25rem; }
.pm-notch { width: 74px; height: 7px; background: var(--surface-2); border-radius: 999px; }
.pm-body { padding: 0.9rem 1rem 0; }
.pm-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.pm-meta { color: var(--ink-4); font-size: 0.62rem; margin-bottom: 0.55rem; }
.pm-progress { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 0.6rem; }
.pm-progress > div { width: 62%; height: 100%; background: var(--brand); }
.pm-chips { display: flex; gap: 0.3rem; margin-bottom: 0.7rem; }
.pm-chip { font-size: 0.56rem; padding: 0.14rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; color: var(--ink-4); white-space: nowrap; }
.pm-chip.on { background: var(--brand-bg); border-color: var(--brand); color: var(--brand-fg); font-weight: 700; }
.pm-label { font-size: 0.66rem; font-weight: 700; margin: 0.55rem 0 0.2rem; }
.pm-label small { color: var(--error); }
.pm-input {
  border: 1px solid var(--border); border-radius: 7px; background: var(--bg);
  font-size: 0.68rem; padding: 0.42rem 0.55rem; color: var(--ink-2);
}
.pm-input.blank { color: var(--ink-4); }
.pm-save {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); margin-top: 0.9rem; padding: 0.6rem 1rem 0.9rem;
  background: var(--surface);
}
.pm-saved { color: var(--ok); font-size: 0.6rem; font-weight: 700; }
.pm-next { background: var(--brand); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 8px; }

.land-section { max-width: 1080px; margin: 0 auto; padding: 2.6rem 1.25rem; }
.land-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand-deep); margin: 0 0 1.4rem;
}
[data-theme="dark"] .land-label { color: var(--brand); }
.land-rule { border: 0; border-top: 1px solid var(--border); margin: 0 auto; max-width: 1080px; }

.feat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.feat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.25rem 1.1rem;
}
.feat-icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-bg); color: var(--brand-deep); border-radius: 10px; margin-bottom: 0.7rem;
}
[data-theme="dark"] .feat-icon { color: var(--brand); }
.feat-icon svg { width: 20px; height: 20px; }
.feat h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.feat p { margin: 0; color: var(--ink-3); font-size: 0.9rem; }

.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: step; }
.step-card { position: relative; padding-left: 3.1rem; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; border-radius: 50%;
  font-family: var(--font-display);
}
.step-card h3 { margin: 0.15rem 0 0.3rem; font-size: 1rem; }
.step-card p { margin: 0; color: var(--ink-3); font-size: 0.9rem; }

.aud-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.aud { border-left: 3px solid var(--brand); padding: 0.2rem 0 0.2rem 1rem; }
.aud h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.aud p { margin: 0; color: var(--ink-3); font-size: 0.9rem; }

.cta-band {
  max-width: 1080px; margin: 1rem auto 0; border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-bg), var(--surface));
  border: 1px solid var(--brand); padding: 2.2rem 1.5rem; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.5rem; }
.cta-band p { color: var(--ink-2); margin: 0 auto 1.4rem; max-width: 34rem; }

.land-foot {
  max-width: 1080px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem;
  color: var(--ink-4); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: space-between; align-items: baseline;
}

@media (min-width: 760px) {
  .land-hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 4rem; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Topbar theme toggle */
.icon-btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-3);
  border-radius: 8px; width: 38px; height: 38px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 17px; height: 17px; }

/* Shared modal (replaces prompt()) */
.isb-modal-backdrop {
  position: fixed; inset: 0; background: rgba(19, 20, 26, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 1rem;
}
.isb-modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-width: 430px; padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.4);
}
.isb-modal h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.isb-modal .meta { margin-bottom: 0.9rem; }
.isb-modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }

/* R-2 §2.3: the visible character ceiling on long answers */
.f-count { text-align: right; font-size: 0.75rem; color: var(--ink-4); margin-top: 0.2rem; }
.f-count.near { color: var(--error); font-weight: 600; }

/* Word/character counters: visible from the first keystroke when a limit exists */
.f-count.over { color: var(--error); font-weight: 700; }

/* ══ Visual form builder ═══════════════════════════════════════════════════ */
.builder-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { background: var(--surface); border: none; padding: 0.45rem 0.9rem; font-size: 0.85rem; font-family: inherit; color: var(--ink-3); cursor: pointer; }
.seg-btn.on { background: var(--brand); color: #fff; font-weight: 600; }

.empty-builder { border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin-bottom: 1rem; }
.empty-builder p { margin: 0 0 0.35rem; }

.b-section { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.b-sec-head { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.b-title { font-weight: 600; font-size: 1rem; }
.b-desc { font-size: 0.85rem; margin-bottom: 0.5rem; }
.b-moves { display: flex; gap: 0.25rem; flex: none; }
.b-icon { width: 32px; height: 32px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; cursor: pointer; color: var(--ink-3); font-size: 0.9rem; line-height: 1; }
.b-icon:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.b-icon:disabled { opacity: 0.3; cursor: default; }
.b-icon.danger:hover { background: var(--error-bg); color: var(--error); border-color: var(--error); }

.b-check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--ink-2); margin: 0.4rem 0; }
.b-check input { width: 1.05rem; height: 1.05rem; flex: none; }

.b-fields { margin: 0.75rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.b-field { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem; }
.b-field-head { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.b-type { width: auto; flex: 1; font-size: 0.85rem; padding: 0.4rem 0.5rem; }
.b-field .f-input, .b-field .f-textarea { margin-bottom: 0.4rem; font-size: 0.9rem; }
.b-small { font-size: 0.82rem !important; }
.b-options { min-height: 4.5rem; font-size: 0.85rem !important; }
.b-limits { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin: 0.4rem 0; font-size: 0.82rem; color: var(--ink-2); }
.b-limits label { display: inline-flex; gap: 0.35rem; align-items: center; }
.b-num { width: 6.5rem !important; padding: 0.3rem 0.45rem !important; font-size: 0.85rem !important; margin: 0 !important; }
.b-key { font-size: 0.72rem; color: var(--ink-4); margin-top: 0.3rem; }
.b-key code { background: var(--surface-2); padding: 0.05rem 0.3rem; border-radius: 4px; }

@media (max-width: 700px) {
  .b-field-head, .b-sec-head { flex-wrap: wrap; }
  .b-type { flex-basis: 100%; }
}

/* ══ Review queue & decision board ═════════════════════════════════════════ */
.rv-bar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.rv-crit { width: auto; padding: 0.35rem 0.5rem; font-size: 0.85rem; }
.rv-toggle { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.85rem; color: var(--ink-2); }
.rv-counts { color: var(--ink-3); font-size: 0.82rem; }
.rv-flag { color: var(--error); font-weight: 600; }
.rv-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.rv-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.rv-who { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; padding-bottom: 0.6rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--border); font-weight: 600; }
.rv-sec { font-size: 0.9rem; color: var(--brand-fg); margin: 1rem 0 0.4rem; }
.rv-qa { margin-bottom: 0.75rem; }
.rv-q { font-weight: 600; font-size: 0.88rem; }
.rv-a { white-space: pre-wrap; font-size: 0.92rem; color: var(--ink-2); }
.rv-question h3 { margin: 0 0 0.25rem; }
.rv-answer { white-space: pre-wrap; font-size: 1rem; line-height: 1.65; padding: 0.75rem; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); }
.rv-side { position: sticky; top: 4rem; align-self: start; }
.rv-crit-row { margin-bottom: 0.9rem; }
.rv-crit-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.88rem; }
.rv-crit-desc { margin: 0.1rem 0 0.3rem; }
.rv-scale { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-top: 0.3rem; }
.rv-dot { width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; cursor: pointer; font-size: 0.85rem; color: var(--ink-3); font-family: inherit; }
.rv-dot:hover { border-color: var(--brand); color: var(--ink); }
.rv-dot.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.rv-notes { min-height: 4.5rem; font-size: 0.88rem; margin-top: 0.5rem; }
.rv-total { margin-top: 0.5rem; font-size: 0.95rem; }
.rv-keys { color: var(--ink-4); font-size: 0.78rem; margin-top: 1rem; }
.rv-keys kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0.05rem 0.35rem; font-size: 0.75rem; }

.rubric-h { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.rb-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; }
.rb-row .f-input, .rb-row .f-select { flex: 1; min-width: 130px; margin: 0; }
.rb-max { max-width: 5.5rem; flex: none !important; }

.board-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
table.board tr.cut-line td { background: var(--brand-bg); color: var(--brand-fg); font-weight: 700; font-size: 0.78rem; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.3rem; }
table.board tr.row-flag td { background: var(--error-bg); }

@media (min-width: 900px) { .rv-grid { grid-template-columns: 1fr 320px; } }

/* ══ Panel ═══════════════════════════════════════════════════════════════════
   The round's state, as opposed to one reader's work. Deliberately plain
   tables: these are numbers people compare, and a chart would hide the one
   thing that matters — which row is out of line with the others. */

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--border); color: var(--ink); }

.pnl-card { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.pnl-card > h2 { margin: 0 0 0.2rem; font-size: 1.05rem; display: flex;
  align-items: center; gap: 0.5rem; }
.pnl-card > .meta { margin: 0 0 0.9rem; }
.pnl-cov { margin-top: -0.4rem; margin-bottom: 1.1rem; }

.pnl-dist { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.pnl-dist label { display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.8rem; color: var(--ink-3); }
.pnl-dist .f-input { width: 8rem; }

.pnl-add { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.pnl-add .f-input { flex: 1 1 12rem; min-width: 0; }

/* The one-time password. It cannot be recovered, so it gets to be loud. */
.pnl-card code { background: var(--surface-2); padding: 0.15rem 0.45rem;
  border-radius: 4px; font-family: var(--mono, monospace); font-size: 0.9em; }

.rv-adj { width: 100%; margin-top: 0.8rem; }
.rv-adj-note { margin: 0.4rem 0 0; }

@media (max-width: 640px) {
  .pnl-dist .f-input { width: 100%; }
  .pnl-dist label { flex: 1 1 100%; }
}
