/*
 * FIELD care console. Operate surface: care managers and quality leads at a
 * Medicaid plan, often seen on a screen share. Palette from the F-bee logo:
 * deep olive shell, cream ground, wing olive for progress, mauve stripes for
 * "now" and "needs a person". See docs/DESIGN.md.
 */
/* Self-hosted so the console works offline on demo day. Public Sans (SIL OFL). */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* logo */
  --shell: #343c1a;      /* app icon ground */
  --olive: #5a662a;      /* F body (light) — primary action, white text passes AA */
  --olive-dark: #48521f;
  --wing: #899033;       /* wings — progress */
  --sage: #c6cfa0;       /* wings (light) */
  --sage-soft: #e9ecd8;
  --cream: #f7f2eb;      /* F body (dark) — ground */
  --mauve: #ae7c79;      /* stripes — now / needs a person (marks only) */
  --mauve-soft: #f4e8e6;
  --mauve-ink: #7a3f3c;  /* mauve for text */

  /* surfaces + text */
  --ground: var(--cream);
  --surface: #fcfaf6;
  --raised: #ffffff;
  --line: #e6dfd2;
  --line-strong: #d4cbb8;
  --ink: #222802;
  --ink-2: #4d5136;
  --ink-3: #6d6e55;

  /* rail */
  --rail-ink: #f7f2eb;
  --rail-ink-2: #c3c6a6;
  --rail-hover: #3f4823;
  --rail-line: rgb(247 242 235 / 0.1);

  --waiting-ink: #8a5d12;
  --waiting-soft: #f5ead3;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(52 60 26 / 0.06), 0 6px 18px -8px rgb(52 60 26 / 0.18);
  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font: 400 15px/1.5 var(--font); font-feature-settings: "tnum" 1; color: var(--ink); background: var(--ground); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sage); color: var(--ink); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 6px; }
.rail :focus-visible { outline-color: var(--sage); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-columns: 304px minmax(0, 1fr); min-height: 100vh; }

/* ---------- rail ---------- */
.rail {
  background: var(--shell); color: var(--rail-ink);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 16px; text-decoration: none; color: inherit; }
.brand .wordmark { height: 26px; width: auto; }
.brand .product { font-size: 12.5px; color: var(--rail-ink-2); padding-left: 12px; border-left: 1px solid var(--rail-line); line-height: 1.2; }

.case-list { flex: 1; overflow-y: auto; padding: 4px 12px 12px; scrollbar-width: thin; scrollbar-color: #56602c transparent; }
.group { margin-bottom: 4px; }
.group-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 0; background: none; color: var(--rail-ink-2); cursor: pointer;
  font-size: 12.5px; font-weight: 600; padding: 10px 8px 6px; text-align: left;
}
.group-head:hover { color: var(--rail-ink); }
.group-head .chev { width: 14px; height: 14px; transition: transform 200ms var(--ease); }
.group-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.group-head .label { flex: 1; }
.group-head .n { font-weight: 600; font-size: 12px; color: var(--rail-ink-2); }
.group-head .n.hot { background: var(--mauve); color: #fff; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center; }
.group-body[hidden] { display: none; }

.case {
  width: 100%; text-align: left; border: 0; background: none; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 10px; align-items: center;
  padding: 9px 10px; border-radius: 10px; margin-bottom: 2px;
  transition: background 160ms var(--ease);
}
.case:hover { background: var(--rail-hover); }
.case[aria-current="true"] { background: var(--cream); color: var(--ink); }
.case .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rail-ink-2); opacity: 0.6; }
.case .dot.live { background: var(--mauve); opacity: 1; animation: pulse 1.8s var(--ease) infinite; }
.case .dot.critical { background: var(--mauve); opacity: 1; box-shadow: 0 0 0 3px rgb(174 124 121 / 0.35); }
.case .dot.waiting { background: #d6a64e; opacity: 1; }
.case .dot.done { background: var(--sage); opacity: 1; }
.case .name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case .when { font-size: 12px; color: var(--rail-ink-2); }
.case .status { grid-column: 2 / 4; font-size: 13px; color: var(--rail-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case[aria-current="true"] .status, .case[aria-current="true"] .when { color: var(--ink-3); }
.rail-empty { color: var(--rail-ink-2); font-size: 13.5px; padding: 18px 10px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(174 124 121 / 0.7); }
  70% { box-shadow: 0 0 0 7px rgb(174 124 121 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(174 124 121 / 0); }
}

/* composer: bottom of the rail, like any assistant */
.composer { padding: 12px 14px 14px; border-top: 1px solid var(--rail-line); }
.composer-box {
  display: flex; align-items: flex-end; gap: 6px;
  background: var(--cream); color: var(--ink); border-radius: 14px; padding: 6px 6px 6px 12px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
  transition: box-shadow 160ms var(--ease);
}
.composer-box:focus-within { box-shadow: 0 0 0 2px var(--sage); }
.composer textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: none; padding: 7px 0;
  font-size: 14.5px; line-height: 1.4; max-height: 140px; min-height: 22px;
}
.composer textarea::placeholder { color: var(--ink-3); }
.send {
  width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--olive); color: #fff;
  transition: background 160ms var(--ease), opacity 160ms var(--ease);
}
.send:hover { background: var(--olive-dark); }
.send[disabled] { opacity: 0.45; cursor: default; }
.send.busy .ico { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.composer-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--rail-ink-2); }
kbd { font: 600 11px var(--font); color: var(--rail-ink-2); border: 1px solid var(--rail-line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 28px; height: 16px; border-radius: 999px; background: rgb(247 242 235 / 0.2); position: relative; transition: background 160ms var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); transition: transform 160ms var(--ease); }
.switch input:checked + .track { background: var(--wing); }
.switch input:checked + .track::after { transform: translateX(12px); }
.switch input:focus-visible + .track { outline: 2px solid var(--sage); outline-offset: 2px; }
.suggestions { display: none; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.composer.show-suggestions .suggestions { display: flex; }
.suggest {
  text-align: left; border: 1px solid var(--rail-line); background: rgb(247 242 235 / 0.05); color: var(--rail-ink);
  border-radius: 10px; padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.suggest:hover { background: var(--rail-hover); }
.composer-error { color: #f3c9c6; font-size: 13px; margin-bottom: 8px; }
.composer-error:empty { display: none; }

/* ---------- main ---------- */
.main { min-width: 0; padding: 28px 36px 56px; }
.detail { max-width: 1160px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.primary { background: var(--olive); color: #fff; }
.btn.primary:hover { background: var(--olive-dark); }
.btn.secondary { background: var(--raised); border-color: var(--line-strong); color: var(--olive); }
.btn.secondary:hover { border-color: var(--olive); background: var(--sage-soft); }
.btn.quiet { background: none; color: var(--ink-2); padding: 8px 10px; }
.btn.quiet:hover { background: var(--sage-soft); color: var(--olive); }

/* case header */
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.head h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-2); font-size: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .flag { color: var(--mauve-ink); font-weight: 600; }
.facts .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.head-actions { display: flex; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--mauve-soft); color: var(--mauve-ink); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mauve); animation: pulse 1.8s var(--ease) infinite; }

/* signature: the ribbon, current step marked with the bee's two stripes */
.ribbon { margin: 26px 0 26px; }
.ribbon-track { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.ribbon-track::before {
  content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 13px; height: 6px;
  border-radius: 6px; background: var(--sage-soft);
}
.ribbon-fill {
  position: absolute; left: calc(100% / 14); top: 13px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--olive), var(--wing));
  transition: width 600ms var(--ease);
}
.stop { position: relative; text-align: center; padding-top: 40px; font-size: 13px; color: var(--ink-3); }
.stop::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong);
}
.stop.is-passed { color: var(--olive); }
.stop.is-passed::before { background: var(--wing); border-color: var(--wing); }
.stop.is-now { color: var(--ink); font-weight: 700; }
.stop.is-now::before, .stop.is-stuck::before {
  top: 4px; width: 24px; height: 24px; margin-left: -12px;
  background:
    linear-gradient(var(--mauve) 0 0) 50% 38% / 12px 3px no-repeat,
    linear-gradient(var(--mauve) 0 0) 50% 64% / 12px 3px no-repeat,
    var(--raised);
  border: 2px solid var(--mauve);
  box-shadow: 0 0 0 4px var(--mauve-soft);
}
.stop.is-stuck { color: var(--mauve-ink); font-weight: 700; }

/* now panel */
.now { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 22px; }
.now.live { border-color: var(--mauve); box-shadow: 0 0 0 3px var(--mauve-soft), var(--shadow); }
.now.critical { background: var(--mauve-soft); border-color: #e5cfcc; box-shadow: none; }
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.now-title { display: flex; align-items: center; gap: 12px; }
.ico-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); color: var(--olive); flex: none; }
.now.live .ico-wrap { background: var(--mauve-soft); color: var(--mauve-ink); }
.now.critical .ico-wrap { background: var(--raised); color: var(--mauve-ink); }
.now h2 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.now .sub { color: var(--ink-2); font-size: 14px; }
.timer { font-weight: 600; font-size: 14px; color: var(--mauve-ink); font-variant-numeric: tabular-nums; }

.transcript { margin-top: 16px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; scrollbar-width: thin; }
.turn { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 15px; line-height: 1.5; }
.turn .who { font-size: 12.5px; font-weight: 700; padding-top: 2px; color: var(--ink-3); }
.turn.agent .who { color: var(--olive); }
.turn.other .who { color: var(--mauve-ink); }
.turn.partial .text { color: var(--ink-3); }
.turn.partial .text::after { content: "▍"; color: var(--mauve); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.slot { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); }
.slot .when { font-weight: 700; font-size: 16px; }
.slot .withwho { color: var(--ink-2); font-size: 14px; }
.summary-lines { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.summary-lines li:last-child { font-weight: 600; color: var(--mauve-ink); }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }

/* columns */
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cols.single { grid-template-columns: minmax(0, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.panel h3 { font-size: 14px; margin: 0 0 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.panel h3 .aside { font-weight: 500; font-size: 13px; color: var(--ink-3); }

.activity { list-style: none; margin: 0; padding: 0; position: relative; }
.activity::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--sage-soft); }
.activity li { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 7px 0; }
.ev-ico { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-2); }
.ev-ico .ico { width: 16px; height: 16px; }
.activity li.ok .ev-ico { border-color: var(--wing); color: var(--olive); }
.activity li.warn .ev-ico { border-color: #d6a64e; color: var(--waiting-ink); }
.activity li.bad .ev-ico { border-color: var(--mauve); color: var(--mauve-ink); background: var(--mauve-soft); }
.activity li.live .ev-ico { border-color: var(--mauve); color: var(--mauve-ink); }
.ev-text { padding-top: 5px; font-size: 14.5px; }
.ev-quote { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.ev-time { padding-top: 6px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.activity li.fresh { animation: arrive 700ms var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.cands { list-style: none; margin: 0; padding: 0; }
.cands li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; }
.cands li:first-child { border-top: 0; padding-top: 2px; }
.rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--sage-soft); color: var(--olive); }
.cands .nm { font-weight: 600; }
.cands .why { font-size: 13px; color: var(--ink-3); }
.st { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--sage-soft); color: var(--ink-2); }
.st.live { background: var(--mauve-soft); color: var(--mauve-ink); }
.st.bad { background: var(--waiting-soft); color: var(--waiting-ink); }
.st.ok { background: var(--olive); color: #fff; }

.calls summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; font-size: 14px; font-weight: 700; }
.calls summary::-webkit-details-marker { display: none; }
.calls summary .aside { font-weight: 500; font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.calls summary .chev { width: 14px; height: 14px; transition: transform 200ms var(--ease); }
.calls[open] summary .chev { transform: rotate(90deg); }
.call { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 12px; }
.call-row { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; }
.call-row time { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.call .transcript { max-height: 240px; margin-top: 8px; }
.call .turn { grid-template-columns: 82px 1fr; font-size: 14px; }
.muted { color: var(--ink-3); font-size: 14px; }

/* overview */
.overview h1 { font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 6px; }
.overview p.lead { color: var(--ink-2); margin: 0 0 22px; max-width: 60ch; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-align: left; }
.tile .n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.tile .l { color: var(--ink-2); font-size: 14px; }
.tile.hot { background: var(--mauve-soft); border-color: #e5cfcc; }
.tile.hot .n { color: var(--mauve-ink); }

.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sage-soft), var(--surface), var(--sage-soft)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* presenter mode: the case fills the screen for a screen share */
.app.presenting { grid-template-columns: 1fr; }
.app.presenting .rail { display: none; }
.app.presenting .detail { max-width: 1320px; }
.app.presenting .turn { font-size: 17px; }
.app.presenting .now .transcript { max-height: 420px; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; }
  .case-list { max-height: 40vh; }
  .main { padding: 18px 16px 40px; }
  .stop { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.now .next-try { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.now .next-try b { color: var(--ink); font-weight: 600; }
.now .next-try .more { color: var(--ink-3); }
.cands li.ob .rank { font-size: 10px; letter-spacing: .04em; background: var(--olive); color: var(--cream); }

/* Texts with the mother */
.texts .thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.bub { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.bub.out { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.in { align-self: flex-end; background: var(--olive); color: var(--cream); border-bottom-right-radius: 4px; }
.bub .gloss { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); }
.bub.in .gloss { border-top-color: rgba(247, 242, 235, .35); color: rgba(247, 242, 235, .85); display: flex; gap: 6px; align-items: center; }
.bub.in .gloss .ico { width: 13px; height: 13px; flex: none; }
.bub time { display: block; margin-top: 4px; font-size: 11px; opacity: .6; }
.bub.in time { text-align: right; }
.texts .awaiting { align-self: center; font-size: 12px; color: var(--ink-3); padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); margin-top: 2px; }

/* Follow-through plan */
.touches { list-style: none; margin: 0; padding: 0; }
.touches li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.touches li:first-child { border-top: 0; padding-top: 2px; }
.touches .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.touches .dot .ico { width: 11px; height: 11px; }
.touches li.sent .dot { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.touches li.next .dot { border-color: var(--mauve); }
.touches li.cancelled { opacity: .5; }
.touches li.cancelled .nm { text-decoration: line-through; }
.touches .nm { font-weight: 600; font-size: 14px; }
.touches .why { font-size: 12.5px; color: var(--ink-3); }

/* Test phones dialog */
.link-btn { white-space: nowrap; background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--rail-ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-left: auto; margin-right: 10px; }
.link-btn:hover { color: var(--cream); }
dialog.phones { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / 0.25); }
dialog.phones::backdrop { background: rgb(52 60 26 / 0.45); }
dialog.phones h2 { margin: 0 0 6px; font-size: 20px; }
dialog.phones .hint { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.45; }
dialog.phones label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
dialog.phones input { font: inherit; font-size: 15px; font-weight: 400; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
dialog.phones input:focus { outline: 2px solid var(--wing); outline-offset: 1px; }
dialog.phones .error { color: var(--mauve-ink); font-size: 13px; min-height: 1em; margin: 0 0 8px; }
dialog.phones .actions { display: flex; justify-content: flex-end; gap: 8px; }
