/* ═══════════════════════════════════════════════════════════════════════
   Andrra Box — the app (app.andrra-box.com)
   One shell for every box: a rail on the left (assistant, my boxes, the
   office), the open box on the right. Components follow the chat and the
   finance app as they are today, with the shared tokens of base.css.
   ═══════════════════════════════════════════════════════════════════════ */

body.app { font-size: 15px; line-height: 1.45; background: var(--paper); }

/* ── Main column ─────────────────────────────────────────────────── */
.main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.trial {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 24px; flex-shrink: 0;
  background: var(--ink); color: #dbe4ef; font-size: 13.5px;
}
.trial b { color: #fff; font-weight: 600; }
.trial a { margin-left: auto; color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trial .icon { width: 15px; height: 15px; }
.topbar {
  position: sticky; top: var(--abx-banner-h, 0px); z-index: 40;
  display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 24px; flex-shrink: 0;
  background: var(--sheet); border-bottom: 1px solid var(--rule);
}
.topbar h1 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.topbar .menu { display: none; }
.tabs { display: flex; gap: 2px; margin-left: 6px; overflow: hidden; }
.tab { height: 34px; padding: 0 12px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tab.on { background: var(--blue-wash); color: var(--blue-deep); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 13px; color: var(--ink-2); white-space: nowrap; background: var(--sheet);
}
.chip .icon { width: 15px; height: 15px; }
.chip-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.content { flex: 1; min-height: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 30px 32px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 30px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.page-head p { margin-top: 5px; color: var(--ink-3); font-size: 14.5px; }
.page-actions { display: flex; gap: 8px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 9px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-secondary { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink); }
.btn-ghost { color: var(--blue-deep); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }

/* ── Cards, tiles, lists, tables (finance vocabulary) ────────────── */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .muted { font-size: 13px; color: var(--ink-3); }
.card-body { padding: 6px 18px 10px; }
.card-pad { padding: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 15px 16px 16px; box-shadow: var(--shadow-1); }
.tile .label { font-size: 10.5px; }
.tile .value { margin-top: 8px; font-size: 25px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }
.tile .hint { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.tile.bad .value { color: var(--bad); }
.tile.warn .value { color: var(--warn); }
.tile.blue .value { color: var(--blue); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.list li:last-child { border-bottom: 0; }
.list .t { font-weight: 600; font-size: 14.5px; }
.list .s { font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.list .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.list .r .s { margin-top: 3px; }
.over { color: var(--bad); font-weight: 600; }

table.data { width: 100%; font-size: 14.5px; }
table.data th {
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--rule); background: #fafbfc;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .sub { display: block; font-size: 13px; color: var(--ink-3); }
table.data .strong { font-weight: 600; }
.person { display: flex; align-items: center; gap: 11px; }
.person .avatar { width: 30px; height: 30px; font-size: 11px; }
button.person-toggle { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.person-toggle > .icon { margin-left: auto; width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-4); transition: transform .15s; }
.person-toggle[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.person-toggle:hover .strong, .person-toggle:focus-visible .strong { color: var(--blue-deep); }
.select { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14px; background: var(--sheet); }
.select .icon { width: 14px; height: 14px; color: var(--ink-3); }

/* ── Assistant: home ─────────────────────────────────────────────── */
.assistant { display: flex; flex-direction: column; height: 100%; }
.assistant .scroll { flex: 1; min-height: 0; overflow: auto; }
.thread { max-width: 820px; margin: 0 auto; padding: 34px 28px 20px; }
.hello h2 { font-size: 44px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.hello p { margin-top: 8px; font-size: 16.5px; color: var(--ink-2); }
.block-label { margin: 30px 0 10px; display: flex; align-items: center; gap: 10px; }
.block-label::after { content: ""; flex: 1; height: 1px; background: var(--rule-2); }
.todo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.todo-item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; align-content: start;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 13px; padding: 14px 16px 13px; box-shadow: var(--shadow-1);
}
.todo-item .from { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.todo-item .from .icon { width: 14px; height: 14px; color: var(--blue); }
.todo-item .t { font-weight: 600; font-size: 16px; }
.todo-item .amt { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo-item .amt.over { color: var(--bad); }
.todo-item .s { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-3); }
.todo-item .go { grid-column: 1 / -1; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--blue-deep); display: inline-flex; align-items: center; gap: 6px; }
.todo-item .go .icon { width: 14px; height: 14px; stroke-width: 2; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; }
.ask { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14.5px; color: var(--ink); }
.ask .icon { width: 15px; height: 15px; color: var(--blue); }

/* ── Assistant: conversation ─────────────────────────────────────── */
.msg-user { display: flex; justify-content: flex-end; margin-bottom: 22px; }
.msg-user .bubble { background: var(--blue); color: #fff; padding: 10px 15px; border-radius: 18px 18px 6px 18px; max-width: 78%; font-size: 15.5px; }
.msg-bot { display: flex; gap: 13px; margin-bottom: 22px; }
.msg-bot .who { width: 30px; height: 30px; border-radius: 9px; }
.msg-bot .body { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.55; }
.msg-bot .body p + p { margin-top: 10px; }
.msg-bot .tablewrap { margin: 12px 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); overflow: hidden; }
.msg-bot table { width: 100%; font-size: 14.5px; }
.msg-bot th { text-align: left; padding: 9px 14px; background: #fafbfc; border-bottom: 1px solid var(--rule); font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.msg-bot td { padding: 9px 14px; border-bottom: 1px solid var(--rule); }
.msg-bot tr:last-child td { border-bottom: 0; font-weight: 600; }
.msg-bot .n { text-align: right; font-variant-numeric: tabular-nums; }
.flag { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; padding: 10px 13px; border-radius: 10px; background: var(--warn-wash); color: var(--warn); font-size: 14px; }
.flag .icon { width: 17px; height: 17px; margin-top: 1px; }
.action {
  margin-top: 14px; background: var(--warn-wash); border: 1px solid var(--warn-line); border-radius: 15px; padding: 16px 18px;
}
.action .label { color: var(--warn); }
.action .t { margin-top: 5px; font-weight: 600; font-size: 16.5px; }
.action dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin-top: 11px; font-size: 14.5px; color: var(--ink-2); max-width: 430px; }
.action dd { text-align: right; padding-left: 20px; font-variant-numeric: tabular-nums; }
.action .tot { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--warn-line); font-weight: 600; color: var(--ink); }
.action .also { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.action .buttons { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.action .buttons .btn { height: 42px; padding: 0 20px; border-radius: 11px; font-size: 15px; }
.action .buttons small { margin-left: 8px; font-size: 12.5px; color: var(--ink-3); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 12.5px; color: var(--ink-2); background: var(--sheet); }
.pill .icon { width: 13px; height: 13px; color: var(--blue); }

.composer-wrap { flex-shrink: 0; padding: 8px 28px 14px; }
.composer {
  max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 6px;
  background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 24px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-2);
}
.composer .ph { flex: 1; color: var(--ink-4); font-size: 16px; }
.composer .web { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px; border-radius: 19px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.composer .web .icon { width: 16px; height: 16px; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; opacity: .4; }
.composer .send .icon { stroke-width: 2.3; }
.fineprint { max-width: 820px; margin: 7px auto 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ── My boxes ────────────────────────────────────────────────────── */
.boxgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.boxlist { display: grid; gap: 10px; }
.boxcard {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 20px 16px 14px; box-shadow: var(--shadow-1);
}
.boxcard img { width: 84px; height: 87px; grid-row: span 2; }
.boxcard .name { display: flex; align-items: center; gap: 10px; align-self: end; }
.boxcard .name b { font-size: 21px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.005em; }
.boxcard .desc { grid-column: 2; align-self: start; font-size: 14px; color: var(--ink-3); }
.boxcard .desc b { color: var(--ink-2); font-weight: 600; }
.boxcard .ctl { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.boxcard.off { background: transparent; border-style: dashed; border-color: var(--rule-2); box-shadow: none; }
.switch { width: 44px; height: 26px; border-radius: 13px; background: var(--rule-2); position: relative; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 45, .25); }
.switch.on { background: var(--blue); }
.switch.on::after { left: 21px; }
.switch.locked { opacity: .55; }
.summary { position: sticky; top: 0; }
.summary h3 { font-size: 15px; font-weight: 600; }
.summary .rows { margin-top: 12px; border-top: 1.5px solid var(--ink); }
.summary .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.summary .rows .sum { font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.summary .note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.summary .btn { margin-top: 14px; }

/* ── Office ──────────────────────────────────────────────────────── */
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 30px 0 12px; }
.section-title:first-child { margin-top: 0; }
.section-title h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; }
.section-title span { font-size: 13.5px; color: var(--ink-3); }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.roles > div { padding: 13px 16px; border-left: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.roles > div:first-child { border-left: 0; }
.roles b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.kv > div { padding: 16px 18px; border-left: 1px solid var(--rule); }
.kv > div:first-child { border-left: 0; }
.kv.kv-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv .v { margin-top: 6px; font-size: 17px; font-weight: 600; }
.kv .h { margin-top: 2px; font-size: 13px; color: var(--ink-3); }

/* ── Documents ───────────────────────────────────────────────────── */
.docgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.askbar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule-2); margin-bottom: 14px; color: var(--ink-4); font-size: 15px; box-shadow: var(--shadow-1); }
.askbar .icon { color: var(--blue); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumbs b { color: var(--ink); font-weight: 600; }
.fname { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.fname .icon { width: 20px; height: 20px; color: var(--blue); stroke-width: 1.5; }
.fname.doc .icon { color: var(--ink-3); }
.side { display: grid; gap: 12px; }
.side .card-pad h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.side .card-pad h3 .icon { color: var(--blue); }
.side .card-pad p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.side .card-pad .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.meter { height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.powered { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); text-align: center; padding-top: 4px; }

/* ── Sign-up and sign-in ─────────────────────────────────────────── */
body.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); font-size: 15.5px; line-height: 1.5; background: var(--sheet); }
.auth-side {
  position: relative; background: var(--paper); border-right: 1px solid var(--rule);
  padding: 34px 44px 36px; display: flex; flex-direction: column;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 27, 45, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 27, 45, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 60%);
  mask-image: linear-gradient(to bottom, transparent 4%, #000 60%);
}
.auth-side > * { position: relative; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.auth-side h1 { margin-top: 72px; font-size: 46px; max-width: 9.5em; }
.auth-side .sub { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 24em; }
.phases { margin-top: 44px; border-top: 1.5px solid var(--ink); max-width: 380px; }
.phase { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--rule-2); color: var(--ink-3); }
.phase .n { font-family: var(--font-mono); font-size: 12px; }
.phase b { font-weight: 500; font-size: 16px; }
.phase.done { color: var(--ink-2); }
.phase.done .state { color: var(--ok); }
.phase.now { color: var(--ink); }
.phase.now b { font-weight: 600; }
.phase.now .n { color: var(--blue); }
.phase .state { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.phase.now .state { color: var(--blue); }
.auth-foot { margin-top: auto; padding-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.form { width: 100%; max-width: 460px; }
.form.wide { max-width: 600px; }
.form h2 { font-size: 34px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.012em; line-height: 1.08; }
.form .intro { margin-top: 8px; color: var(--ink-3); }
.fields { margin-top: 28px; display: grid; gap: 16px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-4); }
.input {
  display: flex; align-items: center; width: 100%; height: 46px; padding: 0 13px; border-radius: 10px;
  background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 15.5px; color: var(--ink);
}
.input.focus { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--blue-wash); }
.input .ph { color: var(--ink-4); }
.input .icon { margin-left: auto; color: var(--ink-3); }
.help { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.help.ok { color: var(--ok); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg span { height: 40px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14.5px; color: var(--ink-2); }
.seg span.on { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-wash); color: var(--blue-deep); font-weight: 600; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); }
.agree a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.tick { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--rule-2); background: var(--sheet); color: transparent; }
.tick.on { background: var(--blue); box-shadow: none; color: #fff; }
.tick.locked { background: var(--ink-4); }
.tick .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.form .actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; }
.form .actions .back { font-weight: 600; color: var(--ink-3); font-size: 14.5px; }
.form .alt { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); }
.form .alt a { color: var(--blue-deep); font-weight: 600; }

/* choosing boxes: an offer whose positions can be ticked */
.pick { margin-top: 26px; border-top: 1.5px solid var(--ink); }
.pick-row {
  display: grid; grid-template-columns: 28px 62px minmax(0, 1fr) auto; gap: 0 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.pick-row img { width: 62px; height: 64px; }
.pick-row .n b { font-size: 18px; font-weight: 600; }
.pick-row .n .badge { margin-left: 8px; vertical-align: 2px; }
.pick-row .n p { font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.pick-row .p { text-align: right; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-row .p small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.pick-row.off .n b, .pick-row.off .p { color: var(--ink-3); }
.pick-row.off img { opacity: .55; }
.pick-total { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 14px 0 0; font-size: 15px; color: var(--ink-2); }
.pick-total .amount { text-align: right; font-variant-numeric: tabular-nums; }
.pick-total .big { font-size: 19px; font-weight: 600; color: var(--ink); padding-top: 6px; }

/* single sign-in */
body.signin { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; background: var(--paper); }
body.signin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 27, 45, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 27, 45, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 22%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 22%, #000 100%);
}
.signin-card { position: relative; width: 100%; max-width: 420px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-2); padding: 34px 32px 30px; font-size: 15.5px; }
.signin-card .mark { width: 42px; height: 42px; border-radius: 12px; }
.signin-card h1 { margin-top: 18px; font-size: 30px; font-stretch: 82%; font-weight: 600; letter-spacing: -0.01em; }
.signin-card .sub { margin-top: 4px; color: var(--ink-3); }
.signin-card .fields { margin-top: 22px; }
.signin-card .between { display: flex; justify-content: space-between; align-items: baseline; }
.signin-card .between a { font-size: 13px; color: var(--blue-deep); font-weight: 600; }
.signin-card .alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.signin-card .alt a { color: var(--blue-deep); font-weight: 600; }
.signin-foot { position: relative; margin-top: 18px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ── Operator console ────────────────────────────────────────────── */
body.ops { display: block; overflow: auto; height: auto; min-height: 100%; background: var(--paper); font-size: 15px; line-height: 1.45; }
.ops-bar { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 28px; background: var(--ink); color: #fff; }
.ops-bar .mark { width: 28px; height: 28px; border-radius: 8px; }
.ops-bar b { font-size: 16px; }
.ops-bar .label { color: #9fb0c6; }
.ops-bar nav { display: flex; gap: 4px; margin-left: 20px; }
.ops-bar nav span { height: 32px; padding: 0 12px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 14.5px; color: #c3cfde; }
.ops-bar nav span.on { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; }
.ops-bar .right { margin-left: auto; font-size: 13.5px; color: #c3cfde; }
.ops .page { max-width: 1280px; }
.boxdots { display: inline-flex; gap: 4px; }
.boxdots span { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; background: var(--blue-wash); color: var(--blue-deep); }
.boxdots span.b { background: var(--redline-wash); color: var(--redline); }
.boxdots span.no { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink-4); }

/* ── Phones ──────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .trial { padding: 0 14px; font-size: 13px; }
  .trial .wide { display: none; }
  .topbar { padding: 0 8px 0 6px; gap: 6px; height: 54px; }
  .topbar .menu { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink-2); }
  .topbar .chip, .topbar .tabs { display: none; }
  .topbar h1 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right .newchat { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-2); }
  .thread { padding: 20px 16px 12px; }
  .hello h2 { font-size: 34px; }
  .todo { grid-template-columns: minmax(0, 1fr); }
  .msg-user .bubble { max-width: 88%; }
  .msg-bot .who { display: none; }
  .msg-bot th, .msg-bot td { padding: 8px 10px; }
  .action .buttons small { display: none; }
  .composer-wrap { padding: 6px 10px 10px; }
  .composer .web span { display: none; }
  .fineprint { display: none; }
  .page { padding: 20px 16px 40px; }
  .tiles, .two, .boxgrid, .docgrid { grid-template-columns: minmax(0, 1fr); }
  body.auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
}
@media (min-width: 900px) { .topbar-right .newchat { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   Working pages (beyond the mockup): forms, toasts, dialogs, small states
   ═══════════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }
.btn { border: 0; cursor: pointer; font-family: inherit; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-danger { background: var(--sheet); color: var(--bad); box-shadow: inset 0 0 0 1px var(--rule-2); }
.btn-danger:hover:not(:disabled) { background: var(--bad-wash); }
.btn-primary:hover:not(:disabled) { background: var(--blue-deep); }
.btn-secondary:hover:not(:disabled) { background: var(--paper); }
.btn-ghost:hover:not(:disabled) { background: var(--blue-wash); }

input.input, select.input, textarea.input {
  border: 0; outline: 0; font: inherit; font-size: 15.5px; color: var(--ink);
}
textarea.input { height: auto; min-height: 96px; padding: 11px 13px; line-height: 1.45; resize: vertical; }
input.input:focus, select.input:focus, textarea.input:focus { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px var(--blue-wash); }
.input.sm { height: 36px; font-size: 14.5px; border-radius: 8px; }
.form-error { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--bad-wash); color: var(--bad); font-size: 14px; }
.form-ok { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--ok-wash); color: var(--ok); font-size: 14px; }
.seg button { height: 40px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--rule-2); font-size: 14.5px; color: var(--ink-2); background: var(--sheet); border: 0; cursor: pointer; font-family: inherit; }
.seg button.on { box-shadow: inset 0 0 0 1.5px var(--blue); background: var(--blue-wash); color: var(--blue-deep); font-weight: 600; }
.tick { border: 0; cursor: pointer; padding: 0; }
.pick-row { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); font-family: inherit; color: inherit; }
.pick-row.soon { cursor: default; opacity: .55; }
.step-panel[hidden] { display: none; }
.wait { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.linkbox input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--rule-2); border: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); background: var(--paper); }
.empty-row { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.table-wrap { overflow-x: auto; }
table.data select.input { height: 32px; font-size: 14px; padding: 0 8px; width: auto; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.kv .v { word-break: break-word; }

.toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 11px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: var(--shadow-2); }
.toast.error { background: var(--bad); }

dialog.dlg { border: 0; padding: 0; border-radius: 16px; box-shadow: var(--shadow-3); width: min(520px, calc(100vw - 32px)); color: var(--ink); font-family: var(--font-sans); }
dialog.dlg::backdrop { background: rgba(15, 27, 45, .45); }
.dlg-body { padding: 22px 22px 8px; }
.dlg-body h3 { font-size: 20px; font-weight: 600; }
.dlg-body p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }

.crumbs a { color: var(--blue-deep); }
.fname a { color: inherit; }
.ops-tabs { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; }
.ops-tabs button { height: 32px; padding: 0 12px; border-radius: 7px; font-size: 14.5px; color: #c3cfde; background: none; border: 0; cursor: pointer; font-family: inherit; }
.ops-tabs button.on { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.detail-row td { background: var(--paper); }
.pill-state { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 899px) {
  .topbar { padding: 0 8px 0 4px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles, .kv, .kv.kv-4 { grid-template-columns: minmax(0, 1fr); }
  .roles > div, .kv > div { border-left: 0; border-top: 1px solid var(--rule); }
  .roles > div:first-child, .kv > div:first-child { border-top: 0; }
  .boxcard { grid-template-columns: 56px minmax(0, 1fr); padding: 14px; }
  .boxcard img { width: 56px; height: 58px; }
  .boxcard .ctl { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; margin-top: 8px; }
  .frow { grid-template-columns: minmax(0, 1fr); }
  .auth-main { padding: 28px 16px; align-items: flex-start; }
}
.mono { font-family: var(--font-mono); }
