@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    --paper: #f5f7f4; --surface: #ffffff; --raised: #ffffff; --line: #e0e6e1; --line-2: #cfd8d1;
    --ink: #0f1a14; --muted: #5a6a61; --faint: #8b9890;
    --accent: #0b7a4b; --accent-hover: #086a40; --accent-soft: #e2f2e9; --on-accent: #ffffff;
    --ok: #0b7a4b; --ok-soft: #e2f2e9; --warn: #9a5800; --warn-soft: #fbf0dc; --bad: #b42318; --bad-soft: #fdecea; --info: #2b59c3; --info-soft: #e8eefb;
    --bubble: #e9efe9; --bubble-ink: #0f1a14;
    --shadow: 0 1px 2px rgba(15, 26, 20, .05), 0 10px 28px -18px rgba(15, 26, 20, .22);
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --r: 12px; --r-sm: 8px;
    --side: 248px;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 600; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 10px; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell: side navigation on wide screens, top bar and bottom tabs on phones */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { display: none; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--ink); color: #dfe8e2; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: #fff; font-weight: 650; font-size: 16px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px 9px 9px 3px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.wallet-chip { display: block; margin: 0 4px 12px; padding: 12px 14px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.wallet-chip:hover { text-decoration: none; background: rgba(255,255,255,.09); }
.wallet-chip span { display: block; font-size: 12px; color: #a9b9af; }
.wallet-chip b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wallet-chip em { font-style: normal; font-size: 12.5px; color: #7fd3a6; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #c9d6ce; font-size: 14.5px; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 550; }
.nav svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: .9; }
.nav .sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.nav .head { padding: 6px 12px 2px; font-size: 12px; color: #7e9086; }
.side-foot { margin-top: auto; padding: 12px 8px 0; font-size: 12.5px; color: #8fa197; }
.side-foot form { display: inline; }
.side-foot button { background: none; border: 0; color: #c9d6ce; font: inherit; cursor: pointer; padding: 0; }
.side-foot button:hover { color: #fff; text-decoration: underline; }
.main { min-width: 0; padding: 26px 32px 48px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.topbar, .tabbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.stack { display: grid; gap: 16px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.stat { padding: 16px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { display: block; margin-top: 2px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* Forms */
label { display: block; font-size: 13.5px; font-weight: 550; margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; min-height: 40px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; vertical-align: -3px; margin: 0 6px 0 0; }
.check { display: flex; align-items: flex-start; gap: 2px; font-weight: 400; font-size: 14px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > * { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 550; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--paper); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { color: var(--bad); border-color: #f0c9c5; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 32px; padding: 4px 11px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }

/* Notices */
.notice { padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.notice-ok { background: var(--ok-soft); color: #075232; border-color: #c4e5d2; }
.notice-error { background: var(--bad-soft); color: #8a1b12; border-color: #f5c9c4; }
.notice-warn { background: var(--warn-soft); color: #6f4100; border-color: #f2ddb4; }
.notice-info { background: var(--info-soft); color: #1d3f8f; border-color: #cfdaf5; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 550; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfa; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 550; background: #edf1ee; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.plain::before { display: none; }

.bar { height: 8px; border-radius: 999px; background: #edf1ee; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .d { background: var(--ok); }
.bar .s { background: #8fc9aa; }
.bar .u { background: var(--warn); }
.bar .f { background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; text-decoration: none; }
.tabs a:hover { background: #e9eee9; text-decoration: none; }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a .n { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 4px; }

/* Composer: the message and how it will look on a phone */
.composer #message { min-height: 150px; font-size: 15.5px; }
.meter { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.meter b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .over { color: var(--bad); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: var(--surface); font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.phone { position: sticky; top: 20px; border-radius: 30px; padding: 14px; background: var(--ink); box-shadow: var(--shadow); }
.phone-screen { border-radius: 20px; background: #f3f5f2; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; }
.phone-top { text-align: center; padding: 14px 12px 10px; border-bottom: 1px solid #e3e8e3; background: #fbfcfb; }
.phone-top .av { width: 38px; height: 38px; margin: 0 auto 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.phone-top b { display: block; font-size: 14px; }
.phone-top span { font-size: 11.5px; color: var(--muted); }
.phone-body { padding: 16px 14px; flex: 1; }
.bubble { max-width: 88%; padding: 9px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid #e3e8e3; white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 1.4; }
.bubble.empty-b { color: var(--faint); font-style: italic; }
.bubble-time { font-size: 11px; color: var(--faint); margin: 5px 2px 0; }
.cost-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); }
.cost-line b { font-size: 20px; font-variant-numeric: tabular-nums; }
.to-tabs { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 10px; }
.to-tabs label { flex: 1; margin: 0; text-align: center; padding: 8px 6px; font-size: 13.5px; font-weight: 500; cursor: pointer; border-left: 1px solid var(--line-2); color: var(--muted); }
.to-tabs label:first-child { border-left: 0; }
.to-tabs input { display: none; }
.to-tabs label.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.group-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.group-list label { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 9px 12px; font-weight: 400; border-bottom: 1px solid var(--line); cursor: pointer; }
.group-list label:last-child { border-bottom: 0; }
.group-list label:hover { background: var(--paper); }

/* Review step */
.review dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; font-weight: 500; }

/* Key display */
.secret { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink); color: #d9f3e5; font-family: var(--mono); font-size: 13.5px; word-break: break-all; }
pre.code { margin: 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ink); color: #d6e4dc; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; line-height: 1.55; }

/* Sign-in pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { background: var(--ink); color: #dfe8e2; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-side .brand { padding: 0; }
.auth-side h2 { margin-bottom: 14px; font-size: 30px; font-weight: 650; color: #fff; max-width: 15ch; letter-spacing: -.02em; line-height: 1.15; }
.auth-side p { color: #a9bab0; max-width: 40ch; }
.auth-thread { display: grid; gap: 10px; max-width: 360px; }
.auth-thread .bubble { background: #1b2a21; border-color: #26392d; color: #e8f1eb; font-size: 14px; }
.auth-thread .bubble.me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-thread .meta { font-size: 11.5px; color: #6f8478; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { margin-bottom: 6px; }
.auth-box > p { color: var(--muted); margin-bottom: 22px; }
.auth-alt { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.codebox { letter-spacing: .5em; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--accent); }
.verify-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.verify-item:first-of-type { border-top: 0; }
.verify-item .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.verify-item.done .ic { background: var(--accent); color: #fff; }
.verify-item > div { flex: 1; min-width: 0; }

/* Dashboard */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick a { display: block; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.quick a:hover { border-color: var(--accent); text-decoration: none; }
.quick b { display: block; font-size: 14.5px; }
.quick span { font-size: 13px; color: var(--muted); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--paper); text-decoration: none; }
.list-row .t { flex: 1; min-width: 0; }
.list-row .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .t span { font-size: 13px; color: var(--muted); }

@media (min-width: 1600px) {
    .wrap { max-width: 1360px; }
}
@media (max-width: 1100px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .phone { position: static; max-width: 380px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .side { display: none; }
    .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--ink); color: #fff; }
    .topbar .brand { padding: 0; font-size: 15px; }
    .topbar .bal { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; font-size: 11.5px; color: var(--muted); text-decoration: none; }
    .tabbar a.on { color: var(--accent); font-weight: 600; }
    .tabbar svg { width: 21px; height: 21px; }
    .main { padding: 16px 12px 92px; }
    .grid-2, .grid-3, .row, .quick { grid-template-columns: minmax(0, 1fr); }
    .card-pad { padding: 14px 14px; }
    .card-head { padding: 12px 14px; }
    .list-row { padding: 11px 14px; }
    .page-head { margin-bottom: 14px; }
    h1 { font-size: 21px; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-brand { display: flex; color: var(--ink); padding: 0 0 22px; }
    .auth-main { align-items: flex-start; padding: 28px 18px; }
    th, td { padding: 9px 10px; }
    .hide-sm { display: none; }
    .review dl { grid-template-columns: 1fr; gap: 2px 0; }
    .review dd { margin-bottom: 10px; }
    .more-nav { display: grid; gap: 2px; }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 12px 14px; }
    .stat b { font-size: 19px; }
    .page-head .actions { width: 100%; }
    .page-head .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.stats.stats-3, .stats.stats-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-3 .stat:nth-child(3), .stats-2 .stat:nth-child(2) { border-left: 1px solid var(--line); }
.stats-3 .stat, .stats-2 .stat { border-top: 0 !important; }
form .grid-3, form .grid-2, form.grid-2 { row-gap: 0; }
