/* Crypto Pesa — tokens from crypto-pesa-screens/Kit.html */
:root {
  --green: #0F7A47; --green-dk: #0A5C36; --mine: #D9FDD3; --convo: #EFE7DE; --panel: #FFFFFF;
  --ground: #F0F2F5; --rail: #F7F5F3; --rail-line: #E4E2DD; --line: #E9EDEF; --line-soft: #F3F5F6;
  --ink: #111B21; --ink-2: #54656F; --blue: #53BDEB; --notice: #FFF3C5; --notice-ink: #4A3A09;
  --bad: #FBE3E1; --bad-ink: #7E201B; --danger: #9B2B22; --amber: #FDEBC8; --amber-ink: #6B4A00;
  --avatar: #D1D7DB; --avatar-ink: #3B4A54; --hover: #F5F6F6;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
  font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', system-ui, sans-serif;
  color: var(--ink); background: var(--ground);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); font-size: 14.5px; line-height: 1.45; }
a { color: var(--green); } a:hover { color: var(--green-dk); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 8px; } h1 { font-size: 21px; font-weight: 700; letter-spacing: -.2px; } h2 { font-size: 17px; font-weight: 600; } h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--ink-2); } .small { font-size: 12.5px; } .center { text-align: center; }
.wrap { word-break: break-all; } .pre { white-space: pre-wrap; word-break: break-word; margin: 0; }
.danger { color: var(--danger); } .grow { flex: 1 1 auto; min-width: 0; }
.ok-line { color: var(--green-dk); display: flex; gap: 6px; align-items: center; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
kbd { font-family: var(--mono); font-size: 11px; background: var(--ground); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink-2); }

/* buttons and form controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 24px; padding: 10px 18px; min-height: 42px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--green-dk); color: #fff; }
.btn-ghost { background: var(--panel); color: var(--green-dk); box-shadow: inset 0 0 0 1px var(--line); } .btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover:not(:disabled) { background: #7d221b; color: #fff; }
.btn-danger-ghost { background: var(--panel); color: var(--danger); box-shadow: inset 0 0 0 1px #F0C9C5; } .btn-danger-ghost:hover { background: var(--bad); }
.btn-small { min-height: 34px; padding: 6px 13px; font-size: 13px; } .btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-2); text-decoration: none; flex: 0 0 auto; }
.icon-btn:hover { background: var(--hover); }
.field label, .seg legend { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select, .actionbar input, .composer input {
  width: 100%; border: 0; border-bottom: 2px solid #D5DBDF; background: #F7F8F9; border-radius: 6px 6px 0 0; padding: 11px 13px; font-size: 15px; outline: none; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--green); }
.field input[readonly] { color: var(--ink-2); }
.field textarea { resize: vertical; min-height: 70px; }
.hint { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); }
.pw { position: relative; display: flex; gap: 8px; align-items: center; }
.pw input { flex: 1 1 auto; }
.pw .icon-btn { position: absolute; right: 2px; top: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: 0 0 auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; } .seg legend { width: 100%; }
.seg label { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.form-error:not([hidden]), .err-pill { background: var(--bad); color: var(--bad-ink); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin: 8px 0; }
.alert-error:not([hidden]) { background: var(--bad); color: var(--bad-ink); border-radius: 8px; padding: 12px 14px; margin-top: 18px; font-size: 13.5px; }

/* tags, chips, badges */
.tag { flex: 0 0 auto; display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: var(--ink-2); background: var(--ground); border-radius: 4px; padding: 2px 6px; vertical-align: middle; }
.tag-green { color: var(--green-dk); background: var(--mine); } .tag-red { color: #8A2520; background: var(--bad); } .tag-amber { color: var(--amber-ink); background: var(--amber); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 12px 12px; }
.chip { border: 0; border-radius: 15px; padding: 7px 13px; font-size: 13.5px; font-weight: 500; cursor: pointer; background: var(--ground); color: var(--ink-2); text-decoration: none; }
.chip.on { background: var(--mine); color: var(--green-dk); }
.badge { position: absolute; top: -5px; right: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 4px; }
.avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--avatar); color: var(--avatar-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; border: 0; }
.avatar-sm { width: 38px; height: 38px; font-size: 13px; cursor: pointer; } .avatar-md { width: 42px; height: 42px; } .avatar-lg { width: 48px; height: 48px; font-size: 15.5px; }

/* boot, states, toasts */
.boot { min-height: 100vh; display: grid; place-items: center; }
.state { padding: 32px 20px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.state h3 { color: var(--ink); margin: 0; } .state p { max-width: 420px; margin: 0; }
.state-error p { color: var(--bad-ink); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(440px, calc(100% - 32px)); }
.toast { background: #1F2C33; color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 14px; }
.toast-error { background: var(--danger); }

/* sign in */
.login-page { min-height: 100vh; position: relative; padding-bottom: 40px; }
.login-band { position: absolute; inset: 0 0 auto; height: 222px; background: var(--green); }
.login-inner { position: relative; max-width: 1050px; margin: 0 auto; padding: 38px 24px 0; }
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; color: #fff; }
.brand h1 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; color: #fff; }
.login-card { background: var(--panel); border-radius: 3px; box-shadow: 0 1px 3px rgba(11,20,26,.12); display: flex; flex-wrap: wrap; gap: 48px; padding: 48px 56px 46px; }
.login-main { flex: 1 1 380px; min-width: 0; } .login-main .chips { padding: 0 0 22px; }
.login-main h2 { font-size: 27px; font-weight: 400; letter-spacing: -.2px; margin-bottom: 8px; }
.lede { font-size: 14.5px; color: var(--ink-2); margin-bottom: 26px; }
.login-side { flex: 0 1 330px; min-width: 0; border-left: 1px solid var(--line); padding-left: 48px; }
.login-side h3 { font-size: 19px; font-weight: 500; } .login-side ol { padding-left: 20px; line-height: 1.75; }
.login-foot { margin: 22px 0 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 7px; align-items: center; }

/* staff console shell */
.console { display: flex; flex-direction: column; min-height: 100vh; height: 100vh; }
.console-body { flex: 1 1 auto; min-height: 0; display: flex; }
/* who is signed in: on every screen */
.whoami { flex: 0 0 auto; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 8px 16px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.whoami .brand-sm { color: var(--green-dk); }
.whoami-who { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.whoami-label { color: var(--ink-2); }
.whoami-name { font-weight: 600; }
.whoami-email { color: var(--ink-2); overflow-wrap: anywhere; }
.role-pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-radius: 12px; padding: 3px 10px; color: #fff; }
.role-staff { background: var(--green-dk); }
.role-agent { background: #1F6FB2; }
.role-merchant { background: #9A5B00; }
.whoami-phone { padding: 8px 16px; }
.rail { flex: 0 0 78px; background: var(--rail); border-right: 1px solid var(--rail-line); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; overflow-y: auto; }
.rail-btn { width: 62px; padding: 8px 0 6px; border-radius: 12px; color: var(--ink-2); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; cursor: pointer; flex: 0 0 auto; }
.rail-btn:hover { background: var(--hover); color: var(--ink-2); }
.rail-btn.on { background: var(--mine); color: var(--green-dk); }
.rail-ico { position: relative; display: block; line-height: 0; }
.rail-label { font-size: 10.5px; font-weight: 500; } .rail-btn.on .rail-label { font-weight: 600; }
.rail-spacer { flex: 1 1 auto; } .rail-avatar { margin: 6px 0 2px; }
.view { flex: 1 1 auto; min-width: 0; overflow-y: auto; outline: none; }
.split { display: flex; height: 100%; }
.listpane { flex: 1 1 390px; max-width: 436px; min-width: 0; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.pane-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px; }
.pane-head h1 { margin: 0; } .pane-actions { display: flex; gap: 2px; }
.search { position: relative; padding: 0 12px 10px; }
.search svg { position: absolute; left: 25px; top: 10px; }
.search input { width: 100%; background: var(--ground); border: 0; border-radius: 9px; padding: 10px 14px 10px 42px; font-size: 14.5px; outline: none; }
.pane-note { margin: 0 14px 10px; font-size: 12.5px; color: var(--ink-2); }
.rows { flex: 1 1 auto; overflow-y: auto; border-top: 1px solid var(--ground); }
.row { width: 100%; display: flex; gap: 13px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); background: var(--panel); }
.row:hover { background: var(--hover); color: var(--ink); } .row.sel { background: var(--ground); }
.row[hidden] { display: none; }
.row-main { flex: 1 1 auto; min-width: 0; display: block; }
.row-top, .row-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.row-sub { margin-top: 3px; justify-content: flex-start; gap: 5px; }
.row-name { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { flex: 0 0 auto; font-size: 12px; color: var(--ink-2); }
.row-snippet { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-row .row-name { font-size: 13.5px; font-weight: 600; color: var(--green-dk); }
.pane-foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.age-ok { color: var(--green-dk) !important; } .age-warn { color: #9A6700 !important; } .age-bad { color: var(--danger) !important; }

/* detail pane: conversation */
.detail { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; background: var(--convo); height: 100%; }
.detail-head { flex: 0 0 auto; background: var(--rail); border-bottom: 1px solid var(--rail-line); display: flex; align-items: center; gap: 13px; padding: 9px 16px; min-height: 61px; }
.detail-head .back { display: none; }
.detail-title { flex: 1 1 auto; min-width: 0; display: block; }
.detail-title .name { display: block; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-title .meta { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-empty { flex: 1 1 auto; display: grid; place-items: center; background: var(--rail); }
.detail-scroll { flex: 1 1 auto; overflow-y: auto; padding: 28px 10%; background: var(--rail); }
.convo { flex: 1 1 auto; overflow-y: auto; padding: 18px 8% 14px; }
.notice { margin: 0 auto 16px; max-width: 580px; background: var(--notice); color: var(--notice-ink); font-size: 12.5px; text-align: center; border-radius: 8px; padding: 8px 14px; }
.day { display: flex; justify-content: center; margin: 14px 0 12px; }
.day span { background: var(--panel); color: var(--ink-2); font-size: 11.5px; font-weight: 600; letter-spacing: .5px; border-radius: 7px; padding: 5px 12px; box-shadow: var(--shadow); }
.sys-pill { margin: 8px auto 12px; max-width: 560px; text-align: center; background: #E1F2FB; color: #0B4A6B; font-size: 12.5px; border-radius: 7px; padding: 6px 13px; }
.bubble-row { display: flex; margin-bottom: 9px; } .bubble-row.mine { justify-content: flex-end; }
.bubble { position: relative; max-width: min(540px, 88%); background: var(--panel); border-radius: 8px; padding: 7px 10px 5px 11px; box-shadow: var(--shadow); }
.theirs .bubble { border-top-left-radius: 0; } .mine .bubble { background: var(--mine); border-top-right-radius: 0; }
.theirs .bubble::before { content: ''; position: absolute; top: 0; left: -8px; border-right: 8px solid var(--panel); border-bottom: 8px solid transparent; }
.mine .bubble::before { content: ''; position: absolute; top: 0; right: -8px; border-left: 8px solid var(--mine); border-bottom: 8px solid transparent; }
.theirs .bubble-note { background: #FFF8DC; } .theirs .bubble-note::before { border-right-color: #FFF8DC; }
.mine .bubble-note { background: #F3F9D2; } .mine .bubble-note::before { border-left-color: #F3F9D2; }
.b-actor { margin: 0 0 1px; font-size: 12.5px; font-weight: 600; color: #6B4FBB; }
.b-action { margin: 0 0 2px; font-size: 12.5px; font-weight: 600; color: var(--green-dk); }
.b-text { margin: 0; font-size: 14.5px; line-height: 1.4; word-break: break-word; }
.b-time { margin: 2px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); }
.info-card { background: var(--panel); border-radius: 8px; padding: 12px 14px; margin: 0 auto 14px; max-width: 640px; box-shadow: var(--shadow); }
.info-card dl, .recap { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.info-card dt, .recap dt { color: var(--ink-2); font-size: 13px; } .info-card dd, .recap dd { margin: 0; min-width: 0; }
.recap.big dd { font-size: 20px; font-weight: 600; } .recap.small { font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 640px; margin: 0 auto 14px; }
.stat { background: var(--panel); border-radius: 8px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat-label { font-size: 12px; color: var(--ink-2); } .stat-num { font-size: 19px; font-weight: 600; } .stat-num small { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.stat-text { font-size: 13.5px; word-break: break-word; }
pre.code { background: #F7F8F9; border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; margin: 6px 0 10px; }
.actionbar, .composer { flex: 0 0 auto; background: var(--ground); border-top: 1px solid var(--rail-line); padding: 9px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actionbar input, .composer input { flex: 1 1 220px; width: auto; border-radius: 9px; border: 0; background: var(--panel); }
.composer + .actionbar { border-top: 0; padding-top: 0; }
.send { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--green); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.send:hover { background: var(--green-dk); }
.rules { display: grid; grid-template-columns: 1fr; gap: 4px; } .rules dt { font-weight: 600; margin-top: 10px; } .rules dd { margin: 0; color: var(--ink-2); }

/* pages (home, escrow, settings, new account) */
.page { padding: 28px 32px 48px; max-width: 1200px; }
.page-narrow { max-width: 720px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; font-weight: 600; }
.jump { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 14px; cursor: pointer; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--panel); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
a.tile:hover { box-shadow: inset 0 0 0 1px var(--green); color: var(--ink); }
.tile-label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; } .tile-num { font-size: 30px; font-weight: 600; letter-spacing: -.5px; } .tile-num small { font-size: 15px; color: var(--ink-2); font-weight: 400; }
.tile-sub { font-size: 12.5px; color: var(--ink-2); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.card { background: var(--panel); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.cols .card { margin-bottom: 0; } .cols > .stack { gap: 16px; }
.card-quiet { background: var(--rail); }
.section-h { margin-top: 26px; }
.needs { display: flex; flex-direction: column; margin-bottom: 10px; }
.need { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.need:hover { background: var(--hover); color: var(--ink); }
.need-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; } .need-main .muted { font-size: 13px; }
.need-age { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.health { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.health li { display: flex; flex-direction: column; padding-left: 22px; position: relative; }
.health li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.health li.warn::before { background: #D99A00; }
.bullets { padding-left: 20px; margin: 8px 0 12px; } .bullets li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; color: var(--ink-2); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.profile { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .profile h2 { margin: 0; }
.back-link { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; margin-bottom: 14px; font-weight: 600; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice-card { position: relative; background: var(--panel); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.choice-card.on { box-shadow: inset 0 0 0 2px var(--green); } .choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }

/* modals and search palette */
.modal-wrap { position: fixed; inset: 0; background: rgba(11, 20, 26, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--panel); border-radius: 12px; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 24px 18px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.modal-wide { width: min(640px, 100%); }
.modal h2 { font-size: 19px; } .modal-body { display: flex; flex-direction: column; gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.secret { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: #F7F8F9; border-radius: 8px; padding: 10px 12px; }
.secret .label { width: 100%; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.secret-value { flex: 1 1 200px; word-break: break-all; font-size: 13px; user-select: all; }
.search-wrap { place-items: start center; padding-top: 10vh; }
.palette { padding: 14px 16px; } .search.big { padding: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.search.big svg { position: static; } .search.big input { padding-left: 12px; font-size: 16px; }
.jump-results h3 { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .5px; margin: 14px 0 6px; }
.jump-item { display: flex; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.jump-item:hover, .jump-item:focus { background: var(--ground); color: var(--ink); }
.tagish { flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--mine); color: var(--green-dk); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.prefixes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }

/* agent app (phone) */
.phone-page { min-height: 100vh; display: flex; justify-content: center; background: var(--ground); }
.phone { width: 100%; max-width: 480px; min-height: 100vh; background: var(--ground); display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.phone-top { position: sticky; top: 0; z-index: 5; background: var(--green); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.brand-sm { display: flex; align-items: center; gap: 8px; } .brand-sm svg { width: 24px; height: 24px; }
.phone-status { font-size: 12px; background: rgba(255,255,255,.18); border-radius: 12px; padding: 3px 10px; }
.phone-status.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7CF29A; margin-right: 6px; }
.phone-body { flex: 1 1 auto; padding: 12px 12px 90px; display: flex; flex-direction: column; gap: 12px; outline: none; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--panel); border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-2); text-decoration: none; padding: 4px 0; border-radius: 10px; margin: 0 4px; }
.tab.on { color: var(--green-dk); background: var(--mine); font-weight: 600; }
.m-card { background: var(--panel); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.m-card .chips { padding: 0 0 12px; }
.m-card .info-card { box-shadow: none; background: #F7F8F9; margin: 0 0 12px; }
.m-card .notice { margin: 0 0 12px; text-align: left; }
.toggle-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; } .toggle-card p { margin: 0; }
.switch { flex: 0 0 auto; width: 56px; height: 32px; border-radius: 16px; border: 0; background: #C9D1D6; position: relative; cursor: pointer; }
.switch span { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--green); } .switch[aria-checked="true"] span { left: 27px; }
.balance { display: flex; flex-direction: column; gap: 4px; } .balance .row-actions { justify-content: flex-start; margin-top: 8px; }
.big-num { font-size: 30px; font-weight: 600; letter-spacing: -.5px; margin: 0; } .big-num small { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.active-tx { box-shadow: inset 0 0 0 2px var(--green), var(--shadow); }
.tx-head { margin-bottom: 4px; }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.m-list li > details { flex: 1 1 auto; min-width: 0; }
.m-list summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.m-list summary::-webkit-details-marker { display: none; }
.m-list details .recap { margin-top: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.instr { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.profile.m-card { margin: 0; } .profile p { margin: 2px 0 0; }

/* narrow screens: one pane at a time */
@media (max-width: 900px) {
  .console { height: auto; min-height: 100vh; }
  .console-body { flex-direction: column-reverse; }
  .whoami { gap: 8px; } .whoami .brand-sm, .whoami-email { display: none; }
  .rail { flex: 0 0 auto; flex-direction: row; width: 100%; overflow-x: auto; position: sticky; bottom: 0; z-index: 10; padding: 6px; border-right: 0; border-top: 1px solid var(--rail-line); }
  .rail-spacer { display: none; }
  .view { overflow: visible; }
  .split { height: auto; min-height: calc(100vh - 70px); }
  .listpane { max-width: none; height: auto; min-height: calc(100vh - 70px); border-right: 0; }
  .detail { display: none; min-height: calc(100vh - 70px); height: auto; }
  .split.has-sel .listpane { display: none; } .split.has-sel .detail { display: flex; }
  .detail-head .back { display: inline-flex; }
  .convo { padding: 14px 12px; } .detail-scroll { padding: 20px 16px; }
  .page { padding: 20px 16px 40px; } .cols { grid-template-columns: 1fr; }
  .login-card { padding: 32px 22px; gap: 28px; } .login-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .switch span { transition: none; } }
