/* Humai brand (Humai Bench tokens): Firuze accent, Geist type, light theme. */
:root {
  --bg: #f6f7f7;
  --card: #ffffff;
  --text: #171717;
  --muted: #5b6066;
  --border: #e6e8e8;
  --field: #d5d9d9;
  --firuze: #0a686b;
  --firuze-hover: #08575a;
  --firuze-soft: #eef6f6;
  --ok: #12805c;
  --warn: #c27803;
  --bad: #c2362b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Geist, system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--firuze); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { height: 64px; padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
.logo { height: 30px; width: auto; }
.product { color: var(--muted); padding-top: 4px; }
.pill, .rec { margin-left: auto; height: 36px; padding: 0 12px; border-radius: 18px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pill { border: 1px solid var(--border); background: var(--card); cursor: pointer; }
.pill:hover { border-color: var(--firuze); }
.rec { height: 28px; background: #fdecea; color: #a8281f; font-weight: 500; }

main { max-width: 480px; margin: 0 auto; padding: 16px; }
.view { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.center { align-items: center; text-align: center; }
h1 { margin: 0; font-size: 20px; font-weight: 600; }
h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.label { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; margin: 0; }
.hint { color: var(--bad); font-size: 13px; min-height: 18px; margin: 0; }
.hint:empty { min-height: 0; }

input { height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; width: 100%; }
input[readonly] { background: var(--bg); color: var(--muted); border-color: var(--border); }
input.big { height: 52px; font-size: 20px; letter-spacing: 0.5px; }
button { cursor: pointer; }
.primary, .danger { height: 52px; border: 0; border-radius: 12px; color: #fff; font-weight: 600; width: 100%; }
.primary { background: var(--firuze); }
.primary:hover { background: var(--firuze-hover); }
.primary:disabled { opacity: 0.6; cursor: wait; }
.danger { background: var(--bad); margin-top: 10px; }
.link { border: 0; background: none; padding: 0; color: var(--firuze); text-decoration: underline; }
.icon { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; display: flex; align-items: center; justify-content: center; }
.icon:hover { background: var(--border); }

.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--border); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }

.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.keypad button { height: 52px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 20px; }
.keypad button:hover { border-color: var(--firuze); }

/* Combobox */
.cb { position: relative; }
.cb-trigger { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: #fff; display: flex; align-items: center; gap: 10px; text-align: left; }
.cb-trigger:hover { border-color: var(--firuze); }
.cb-label { font-weight: 500; }
.cb-detail { font-size: 13px; color: var(--muted); }
.cb-placeholder { color: var(--muted); }
.cb-chev { margin-left: auto; color: var(--muted); }
.cb-panel { position: absolute; left: 0; right: 0; top: 56px; z-index: 10; background: #fff; border: 1px solid var(--firuze); border-radius: 10px; box-shadow: 0 0 0 3px rgba(10, 104, 107, 0.15), 0 8px 24px rgba(0, 0, 0, 0.08); overflow: hidden; }
.cb-panel input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; outline: none; }
.cb-panel ul { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; }
.cb-panel li[role="option"] { min-height: 44px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cb-panel li.active { background: var(--firuze-soft); }
.cb-panel li[aria-disabled="true"] { color: #8a9096; cursor: default; }
.cb-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.cb-empty { padding: 10px; color: var(--muted); }
.cb-footer { border-top: 1px solid var(--border); padding: 12px 16px; font-size: 13px; color: var(--muted); }

/* In a call */
.eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; color: var(--firuze); }
.call-number { margin: 4px 0 0; font-size: 28px; font-weight: 600; }
.timer { margin: 0; font-size: 34px; font-variant-numeric: tabular-nums; }
.controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 12px; }
.controls button { height: 56px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.controls button[aria-pressed="true"] { border-color: var(--firuze); background: var(--firuze-soft); color: var(--firuze); }

/* First visit */
.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 32px 24px; }
.hero p { margin: 0; }
.hero .primary { width: auto; padding: 0 28px; margin-top: 8px; }
.hero-icon { width: 56px; height: 56px; border-radius: 28px; background: var(--firuze-soft); color: var(--firuze); display: flex; align-items: center; justify-content: center; }
.steps p { display: flex; gap: 10px; margin: 6px 0; font-size: 13px; }
.steps b { color: var(--firuze); }

/* Lines */
.view-head { display: flex; align-items: center; }
.list { padding: 6px 16px; }
.line-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef0f0; }
.line-row:last-child { border-bottom: 0; }
.line-row div { display: flex; flex-direction: column; margin-right: auto; }
.line-row button { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; }

/* Recent */
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eef0f0; font-size: 13px; }
.recent li:last-child { border-bottom: 0; }
.recent .when { margin-left: auto; }
