:root {
  color-scheme: light;
  --ink: #131918;
  --muted: #66706d;
  --line: #dde2df;
  --paper: #f3f4f0;
  --white: #ffffff;
  --night: #0d1715;
  --night-soft: #14231f;
  --lime: #c8ff53;
  --lime-dark: #8fc51f;
  --danger: #c94c43;
  --amber: #d8872b;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(11, 24, 20, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.is-hidden { display: none !important; }

.ambient { position: fixed; z-index: -1; width: 420px; height: 420px; filter: blur(120px); opacity: .18; border-radius: 50%; }
.ambient-one { top: -160px; left: -100px; background: var(--lime); }
.ambient-two { right: -180px; bottom: -180px; background: #4ebda0; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 760; font-size: 21px; letter-spacing: -.03em; }
.brand-dark { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--night); background: var(--lime); font-size: 18px; font-weight: 900; transform: rotate(-4deg); }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr); }
.auth-story { min-height: 100vh; padding: 54px 7vw; color: #fff; background: radial-gradient(circle at 20% 12%, rgba(200,255,83,.12), transparent 28%), linear-gradient(145deg, #0a1311, #13251f 70%, #183029); display: flex; flex-direction: column; justify-content: space-between; }
.story-copy { max-width: 720px; padding: 80px 0; }
.story-copy h1 { margin: 12px 0 24px; font-size: clamp(48px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; font-weight: 690; }
.story-copy > p:last-child { max-width: 590px; margin: 0; color: #b8c5c1; font-size: 19px; line-height: 1.65; }
.eyebrow { margin: 0 0 10px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.dark { color: #63716a; }
.trust-row { display: flex; flex-wrap: wrap; gap: 26px; color: #9aaba5; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.trust-row span::before { content: "✓"; color: var(--lime); margin-right: 8px; }

.auth-card-wrap { display: grid; place-items: center; min-height: 100vh; padding: 40px; }
.auth-card { width: min(100%, 470px); padding: 12px 42px 42px; border: 1px solid rgba(19,25,24,.08); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 -30px 38px; padding: 6px; border-radius: 14px; background: #edf0ec; }
.auth-tab { border: 0; border-radius: 10px; padding: 11px; color: #5f6966; background: transparent; font-weight: 700; }
.auth-tab.is-active { color: var(--ink); background: var(--white); box-shadow: 0 4px 16px rgba(20,30,27,.08); }
.auth-form { display: grid; gap: 19px; }
.auth-form h2, .modal h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.auth-form-copy { margin: 9px 0 0; color: var(--muted); font-size: 13px; font-weight: 450; line-height: 1.55; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-links button, .auth-back { border: 0; padding: 0; color: #586c40; background: none; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: #c9d8b5; text-underline-offset: 3px; }
.auth-links button:hover, .auth-back:hover { color: var(--ink); text-decoration-color: var(--lime-dark); }
.auth-back { justify-self: center; }
.legal-acceptance { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.55; }
.legal-acceptance input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: #6f961f; }
.legal-acceptance a { color: #49691d; font-weight: 750; text-underline-offset: 2px; }
label { display: grid; gap: 8px; color: #39423f; font-size: 13px; font-weight: 700; }
label small, .muted { color: var(--muted); font-weight: 450; line-height: 1.5; }
input { width: 100%; border: 1px solid #d8dfdb; border-radius: 11px; padding: 13px 14px; outline: none; color: var(--ink); background: #fbfcfa; transition: border-color .15s, box-shadow .15s; }
select { width: 100%; border: 1px solid #d8dfdb; border-radius: 11px; padding: 13px 14px; outline: none; color: var(--ink); background: #fbfcfa; }
input:focus, select:focus, textarea:focus { border-color: #7da532; box-shadow: 0 0 0 4px rgba(200,255,83,.22); }
.form-error { min-height: 18px; margin: -7px 0 0; color: var(--danger); font-size: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 11px; padding: 11px 16px; font-size: 13px; font-weight: 760; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-block { width: 100%; padding: 14px 18px; }
.button-small { padding: 7px 10px; font-size: 10px; }
.button-primary { color: var(--night); background: var(--lime); box-shadow: 0 10px 24px rgba(143,197,31,.18); }
.button-primary:hover { background: #d2ff74; }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--white); }
.button-light { color: var(--night); background: var(--white); }
.button-danger { color: #fff; background: var(--danger); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px; border-right: 1px solid var(--line); background: rgba(249,250,247,.92); display: flex; flex-direction: column; }
.nav-list { display: grid; gap: 5px; margin-top: 62px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 13px; border: 0; border-radius: 10px; color: #626d69; background: transparent; text-align: left; font-size: 13px; font-weight: 680; }
.nav-item span { color: #626d69; font-size: 10px; font-variant-numeric: tabular-nums; }
.nav-item.is-active, .nav-item:hover { color: var(--ink); background: #e9ede8; }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.account-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-mini > span:last-child { min-width: 0; }
.account-mini strong, .account-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-mini strong { font-size: 13px; }
.account-mini small { margin-top: 3px; color: var(--muted); font-size: 11px; }
#sidebar-role { color: #697b32; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.account-avatar { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: var(--night); background: var(--lime); font-weight: 850; }
.text-button { margin: 14px 0 0 44px; padding: 0; border: 0; color: var(--muted); background: none; font-size: 12px; }

.workspace { min-width: 0; padding: 36px clamp(28px, 5vw, 76px) 80px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.topbar h1 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; color: #55605c; background: rgba(255,255,255,.68); font-size: 11px; font-weight: 700; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #56b868; box-shadow: 0 0 0 4px rgba(86,184,104,.12); }
.mobile-logout { display: none; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; color: var(--muted); background: var(--white); font-size: 11px; font-weight: 750; }
.page-section { animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-card { min-height: 230px; padding: 38px 42px; border-radius: 22px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(200,255,83,.18), transparent 30%), linear-gradient(130deg, var(--night), #172b25); display: flex; align-items: stretch; justify-content: space-between; overflow: hidden; }
.hero-card p { margin: 0; color: #a7b7b1; font-size: 13px; }
.hero-card strong { display: block; margin: 18px 0 4px; font-size: clamp(52px, 7vw, 80px); line-height: .9; letter-spacing: -.07em; }
.hero-card strong span:first-child { margin-right: 6px; color: var(--lime); font-size: .38em; vertical-align: top; letter-spacing: 0; }
.hero-card small { color: #7e918b; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.hero-side { min-width: 190px; padding-left: 36px; border-left: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-side span { color: var(--lime); font-size: 42px; font-weight: 760; letter-spacing: -.05em; }
.hero-side p { margin: 3px 0 24px; }
.low-balance-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; margin: 16px 0; border: 1px solid #edcf9b; border-radius: 15px; padding: 16px 18px; color: #70491d; background: linear-gradient(120deg, #fffaf0, #fff2d8); }
.low-balance-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #bd7925; font-weight: 900; }
.low-balance-banner strong { font-size: 13px; }
.low-balance-banner p { margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
.low-balance-banner .button { white-space: nowrap; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.metric-card, .surface-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.82); }
.metric-card { padding: 22px 24px; }
.metric-card p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; font-size: 29px; letter-spacing: -.045em; }
.metric-card small { color: #929b98; font-size: 11px; }
.split-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.surface-card { padding: 26px; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.card-heading h2, .section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.tag { display: inline-flex; border-radius: 99px; padding: 6px 9px; color: #53605a; background: #edf1ec; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.key-row { display: flex; align-items: center; gap: 12px; }
.key-row code, .copy-field code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
.key-row code { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: #f6f8f5; font-size: 12px; }
.surface-card > .muted { margin-bottom: 0; font-size: 12px; }
.empty-state { padding: 26px 0; color: var(--muted); font-size: 13px; text-align: center; }

.team-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; align-items: start; }
.team-members-card { grid-row: span 2; }
.team-list { display: grid; gap: 9px; }
.team-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid #e4e9e6; border-radius: 13px; padding: 13px; background: #fafbf9; }
.team-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #17221e; background: var(--lime); font-size: 14px; font-weight: 850; }
.team-avatar-pending { color: #55615c; background: #e8eeea; }
.team-identity { min-width: 0; }
.team-identity strong, .team-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-identity strong { font-size: 12px; }
.team-identity small { margin-top: 4px; color: var(--muted); font-size: 9.5px; }
.team-actions { display: flex; align-items: center; gap: 7px; }
.team-actions select { width: auto; min-width: 132px; padding: 8px 10px; font-size: 10px; }
.team-remove { border: 0; padding: 7px 4px; color: var(--danger); background: none; font-size: 10px; font-weight: 750; }
.team-role { border-radius: 99px; padding: 6px 9px; color: #53605a; background: #edf1ec; font-size: 9px; font-weight: 800; }
.team-invitations-card { grid-column: 1; }
.team-role-guide dl { margin: 0; }
.team-role-guide dl div { border-top: 1px solid #edf0ed; padding: 12px 0; }
.team-role-guide dl div:first-child { border-top: 0; padding-top: 0; }
.team-role-guide dt { font-size: 11px; font-weight: 800; }
.team-role-guide dd { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.screening-grid { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(440px, 1.22fr); gap: 16px; align-items: start; }
.screening-form-card form { display: grid; gap: 18px; }
.network-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.network-fieldset legend { margin-bottom: 9px; color: #39423f; font-size: 13px; font-weight: 700; }
.network-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.network-option { position: relative; min-width: 0; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid #dfe5e1; border-radius: 11px; padding: 9px 10px; background: #fbfcfa; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.network-option:hover { transform: translateY(-1px); border-color: #bdc9c3; }
.network-option:has(input:checked) { border-color: #91b33c; background: #f7ffe8; box-shadow: 0 0 0 3px rgba(200,255,83,.17); }
.network-option:has(input:focus-visible) { outline: 2px solid #526c20; outline-offset: 2px; }
.network-option input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.network-option > span:last-child { min-width: 0; }
.network-option strong, .network-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.network-option strong { color: var(--ink); font-size: 11px; }
.network-option small { margin-top: 2px; color: var(--muted); font-size: 8.5px; font-weight: 650; letter-spacing: .08em; }
.network-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #60706a; font-family: Inter, ui-sans-serif, sans-serif; font-size: 17px; font-weight: 850; line-height: 1; }
.network-trx { background: #ef1f2d; }
.network-eth { color: #343434; background: #e3e5e4; }
.network-btc { background: #f7931a; }
.network-bnb { background: #f0b90b; }
.network-sol { color: #0b1714; background: linear-gradient(145deg, #00ffa3, #dc1fff); }
.network-ton { background: #0098ea; }
.network-ltc { background: #345d9d; }
.network-doge { background: #ba9f33; }
.network-bch { background: #0ac18e; }
.network-sui { background: #4da2ff; }
.screening-placeholder { min-height: 420px; display: grid; place-items: center; align-content: center; padding: 48px; color: var(--muted); text-align: center; }
.screening-placeholder > span { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 18px; border: 1px solid #dce3de; border-radius: 50%; color: #6f7d77; background: #f4f7f3; font-size: 31px; }
.screening-placeholder h2 { margin: 0 0 9px; color: var(--ink); font-size: 20px; }
.screening-placeholder p { max-width: 390px; margin: 0; font-size: 13px; line-height: 1.6; }
.decision-badge { display: inline-flex; border-radius: 99px; padding: 7px 10px; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.decision-allow { color: #215f34; background: #dff3e4; }
.decision-review { color: #7c501b; background: #fff0d6; }
.decision-deny { color: #8a342e; background: #f9e1df; }
.screening-result { padding: 0; overflow: hidden; }
.report-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 25px 26px 18px; }
.report-header h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.report-actions { display: flex; align-items: center; gap: 8px; }
.report-actions .button { padding: 8px 11px; font-size: 10px; }
.report-overview { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 24px; margin: 0 16px; border-radius: 17px; padding: 25px 26px; color: #fff; background: radial-gradient(circle at 82% 20%, rgba(200,255,83,.15), transparent 34%), linear-gradient(135deg, #0d1715, #183029); }
.score-gauge { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; color: #64716d; }
.score-gauge.score-allow { color: #42b47f; }
.score-gauge.score-review { color: #e4a33c; }
.score-gauge.score-deny { color: #dd5965; }
.score-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-gauge circle { fill: none; stroke-width: 8; }
.score-gauge-base { stroke: rgba(255,255,255,.12); }
.score-gauge-progress { stroke: currentColor; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.score-gauge > span { position: relative; z-index: 1; text-align: center; }
.score-gauge strong, .score-gauge small { display: block; }
.score-gauge strong { font-size: 34px; line-height: 1; letter-spacing: -.06em; }
.score-gauge small { margin-top: 5px; color: #96a8a1; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.report-decision-copy > small { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.report-decision-copy h3 { margin: 7px 0 8px; font-size: 21px; letter-spacing: -.035em; }
.report-decision-copy p { margin: 0; color: #b7c6c0; font-size: 11.5px; line-height: 1.6; }
.wallet-identity { display: flex; align-items: center; gap: 12px; margin: 16px 26px 0; border: 1px solid #e5eae7; border-radius: 13px; padding: 13px 14px; background: #fafbf9; }
.wallet-identity > div { min-width: 0; }
.wallet-identity small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.screening-wallet { display: block; overflow: hidden; text-overflow: ellipsis; color: #39423f; font-size: 10.5px; white-space: nowrap; }
.risk-metrics { display: grid; grid-template-columns: .85fr 1.2fr 1.35fr; gap: 10px; margin: 10px 26px 0; }
.risk-metrics div { border: 1px solid #e6ebe7; border-radius: 12px; padding: 14px; background: #fbfcfa; }
.risk-metrics small, .risk-metrics strong { display: block; }
.risk-metrics small { margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.risk-metrics strong { font-size: 15px; letter-spacing: -.025em; }
.report-section { margin: 24px 26px 0; border-top: 1px solid #e9eeeb; padding-top: 22px; }
.report-section:last-child { padding-bottom: 28px; }
.report-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.report-section-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.count-badge { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 99px; color: #48534f; background: #edf1ee; font-size: 10px; font-weight: 850; }
.result-facts { margin: 0; }
.result-facts div { display: grid; grid-template-columns: minmax(110px, .38fr) minmax(0, 1fr); gap: 16px; border-top: 1px solid #edf0ed; padding: 13px 0; }
.result-facts dt { color: var(--muted); font-size: 11px; }
.result-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; text-align: right; }
.indicator-grid { display: grid; gap: 9px; }
.indicator-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; border: 1px solid #e5eae7; border-radius: 12px; padding: 13px; background: #fafbf9; }
.indicator-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #8a342e; background: #f9e1df; font-size: 13px; font-weight: 900; }
.indicator-card h4 { margin: 0 0 5px; font-size: 11.5px; }
.indicator-card p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.exposure-list { display: grid; gap: 8px; }
.exposure-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e5eae7; border-radius: 11px; padding: 13px 14px; }
.exposure-item > div { min-width: 0; }
.exposure-item strong, .exposure-item small { display: block; }
.exposure-item > div > strong { overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; white-space: nowrap; }
.exposure-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.exposure-item > span { flex: 0 0 auto; text-align: right; }
.exposure-item > span strong { font-size: 13px; }
.risk-guide-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.risk-guide-scale > div { position: relative; min-width: 0; border-radius: 9px; padding: 11px 9px; background: #eff3f0; }
.risk-guide-scale > div::before { content: ""; display: block; width: 100%; height: 4px; margin-bottom: 9px; border-radius: 99px; background: #4b9d70; }
.risk-guide-scale > div[data-level="MODERATE"]::before { background: #d6a433; }
.risk-guide-scale > div[data-level="HIGH"]::before { background: #d5722b; }
.risk-guide-scale > div[data-level="SEVERE"]::before { background: #bd4650; }
.risk-guide-scale > div.is-current { outline: 2px solid var(--ink); outline-offset: 1px; background: #fff; }
.risk-guide-scale span, .risk-guide-scale strong, .risk-guide-scale small { display: block; overflow: hidden; text-overflow: ellipsis; }
.risk-guide-scale span { color: var(--muted); font-size: 8.5px; }
.risk-guide-scale strong { margin-top: 3px; font-size: 10px; }
.risk-guide-scale small { margin-top: 4px; color: var(--muted); font-size: 7.5px; line-height: 1.35; }
.screening-history-card { margin-top: 16px; }
.screening-history-list { display: grid; }
.screening-history-item { display: grid; grid-template-columns: minmax(0, 1fr) 54px; align-items: center; border-top: 1px solid #edf0ed; }
.screening-history-item:first-child { border-top: 0; }
.history-open { display: grid; grid-template-columns: 38px minmax(0, 1fr) 58px 74px; align-items: center; gap: 13px; min-width: 0; border: 0; padding: 13px 10px 13px 0; color: var(--ink); background: transparent; text-align: left; }
.history-open:hover .history-wallet strong { color: #4f6b16; }
.history-open .network-icon { width: 34px; height: 34px; }
.history-wallet { min-width: 0; }
.history-wallet strong, .history-wallet small, .history-score strong, .history-score small { display: block; }
.history-wallet strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.history-wallet small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.history-score { text-align: right; }
.history-score small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.history-score strong { margin-top: 2px; font-size: 16px; }
.history-pdf { display: inline-flex; align-items: center; justify-content: center; height: 31px; border: 1px solid var(--line); border-radius: 8px; color: #49534f; background: #fff; font-size: 9px; font-weight: 850; text-decoration: none; }
.monitoring-grid { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(420px, 1.15fr); gap: 16px; }
.monitor-form-card form { display: grid; gap: 17px; }
.monitor-explainer { color: #fff; background: radial-gradient(circle at 84% 16%, rgba(200,255,83,.16), transparent 30%), linear-gradient(135deg, var(--night), #183029); }
.monitor-explainer h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.monitor-explainer ol { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: monitor-step; }
.monitor-explainer li { position: relative; min-height: 64px; padding: 13px 0 13px 48px; border-top: 1px solid rgba(255,255,255,.1); counter-increment: monitor-step; }
.monitor-explainer li::before { content: counter(monitor-step, decimal-leading-zero); position: absolute; left: 0; top: 13px; color: var(--lime); font-size: 12px; font-weight: 850; }
.monitor-explainer li strong, .monitor-explainer li span { display: block; }
.monitor-explainer li strong { font-size: 13px; }
.monitor-explainer li span { margin-top: 5px; color: #a9bab3; font-size: 11px; line-height: 1.5; }
.monitor-balance-note { margin: 20px 0 0; border: 1px solid rgba(200,255,83,.25); border-radius: 11px; padding: 13px; color: #cad5d1; background: rgba(200,255,83,.06); font-size: 11px; line-height: 1.55; }
.monitor-list-card { margin-top: 16px; }
.wallet-monitors-list { display: grid; }
.wallet-monitor-item { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .6fr) minmax(280px, auto); gap: 20px; align-items: center; border-top: 1px solid #edf0ed; padding: 16px 0; }
.wallet-monitor-item:first-child { border-top: 0; }
.monitor-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.monitor-identity > span:last-child { min-width: 0; }
.monitor-identity strong, .monitor-identity code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-identity strong { font-size: 12px; }
.monitor-identity code { margin-top: 4px; color: var(--muted); font-size: 9px; }
.monitor-schedule small, .monitor-schedule strong { display: block; }
.monitor-schedule small { color: var(--muted); font-size: 9px; }
.monitor-schedule strong { margin: 4px 0 7px; font-size: 11px; }
.monitor-run-status { display: inline-flex; border-radius: 99px; padding: 5px 8px; color: #5f6965; background: #edf1ee; font-size: 8px; font-weight: 800; }
.monitor-run-success { color: #27713c; background: #e3f5e7; }
.monitor-run-insufficient-balance { color: #8b5e24; background: #fff0d6; }
.monitor-run-failed { color: #963f38; background: #fbe7e5; }
.monitor-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.monitor-controls select { width: auto; min-width: 86px; padding: 7px 9px; font-size: 10px; }
.monitor-remove { border: 0; padding: 7px 4px; color: #a3423b; background: transparent; font-size: 10px; font-weight: 750; }
.query-packages-section { display: grid; gap: 16px; margin-bottom: 24px; }
.compact-package-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); align-items: center; gap: 28px; margin-bottom: 24px; padding: 22px 26px; border-color: #b9d785; background: linear-gradient(120deg, #fbfff4, #f2f8e8); }
.compact-package-copy > p { margin-bottom: 6px; }
.compact-package-copy > div { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.compact-package-copy strong { font-size: 22px; letter-spacing: -.035em; }
.compact-package-copy span, .compact-package-balance > span { color: var(--muted); font-size: 13px; }
.compact-package-balance { display: grid; gap: 8px; }
.compact-package-balance > span { text-align: right; }
.compact-package-balance > span strong { color: var(--ink); font-size: 18px; }
.current-package { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .7fr); align-items: center; gap: 32px; border-color: #b9d785; background: linear-gradient(120deg, #fbfff4, #f2f8e8); }
.current-package-title { display: flex; align-items: center; gap: 10px; }
.current-package-title h2 { margin: 0; font-size: 26px; letter-spacing: -.045em; }
.current-package-copy > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.package-balance { display: grid; justify-items: end; }
.package-balance > strong { color: #4f7111; font-size: 42px; line-height: 1; letter-spacing: -.055em; }
.package-balance > span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.package-progress { width: 100%; height: 7px; margin-top: 13px; border-radius: 99px; overflow: hidden; background: #dfe8d0; }
.package-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-dark), var(--lime)); transition: width .3s ease; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.package-card { position: relative; display: grid; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; overflow: hidden; background: rgba(255,255,255,.86); }
.package-card-featured { border-color: #9fc749; box-shadow: 0 18px 44px rgba(85,118,24,.12); }
.package-highlight { position: absolute; top: 0; right: 0; border-radius: 0 17px 0 11px; padding: 7px 10px; color: #2d3c10; background: var(--lime); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.package-card h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.package-query-count { margin-top: 25px; font-size: 22px; letter-spacing: -.04em; }
.package-card > p { margin: 6px 0 20px; color: var(--muted); font-size: 12px; }
.package-card > p b { color: var(--ink); font-size: 16px; }
.package-total { border: 1px solid #e0e6de; border-radius: 12px; padding: 13px 14px; background: #f6f8f4; }
.package-total small, .package-total strong { display: block; }
.package-total small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.package-total strong { margin-top: 4px; font-size: 21px; }
.package-card ul { display: grid; gap: 9px; margin: 20px 0 24px; padding: 0; list-style: none; color: #59635f; font-size: 10px; }
.package-card li::before { content: "✓"; margin-right: 8px; color: #679313; font-weight: 900; }
.package-card .button { align-self: end; margin-top: auto; }
.package-availability-note { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.package-confirm-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.package-confirm-summary span { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: #f6f8f5; }
.package-confirm-summary small, .package-confirm-summary strong { display: block; }
.package-confirm-summary small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.package-confirm-summary strong { margin-top: 5px; font-size: 14px; }
.modal-notice { border: 1px solid #d5e4bb; border-radius: 11px; padding: 13px; color: #536046 !important; background: #f5f9ee; font-size: 11px !important; }
.billing-grid { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(430px, 1.2fr); gap: 16px; }
.billing-account-grid { display: grid; grid-template-columns: minmax(430px, 1.1fr) minmax(360px, .9fr); gap: 16px; margin-top: 16px; align-items: start; }
.billing-card-intro { margin: -10px 0 22px !important; font-size: 11px; }
.billing-documents-list { display: grid; }
.billing-document-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid #edf0ed; padding: 15px 0; }
.billing-document-item:first-child { border-top: 0; padding-top: 4px; }
.billing-document-copy { min-width: 0; }
.billing-document-copy strong, .billing-document-copy span, .billing-document-copy small { display: block; }
.billing-document-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.billing-document-copy span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.billing-document-copy small { margin-top: 4px; color: #77817d; font-size: 9px; }
.billing-document-amount { margin-left: auto; text-align: right; }
.billing-document-amount strong { font-size: 14px; }
.billing-document-download { margin-top: 7px; padding: 7px 10px; font-size: 9px; }
.billing-document-notice { margin: 18px 0 0; border-top: 1px solid #edf0ed; padding-top: 15px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.topup-card form { display: grid; gap: 17px; }
.topup-network-badge { display: flex; align-items: center; gap: 9px; border: 1px solid #f0d0d3; border-radius: 13px; padding: 6px 10px 6px 7px; background: #fff7f7; }
.topup-network-badge img { display: block; flex: 0 0 42px; width: 42px; height: 42px; }
.topup-network-badge span, .topup-network-badge strong, .topup-network-badge small { display: block; }
.topup-network-badge strong { color: var(--ink); font-size: 12px; letter-spacing: .02em; }
.topup-network-badge small { margin-top: 3px; color: #b32632; font-size: 8px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.deposit-details { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 16px; align-items: center; }
.deposit-qr-wrap { display: grid; justify-items: center; gap: 7px; }
.deposit-qr-wrap img { display: block; width: 152px; height: 152px; border: 1px solid var(--line); border-radius: 12px; padding: 7px; background: #fff; }
.deposit-qr-wrap small { color: var(--muted); font-size: 10px; }
.topup-transfer-step { display: grid; gap: 16px; padding: 18px; border: 1px solid #b9d785; border-radius: 16px; background: #f7fbea; }
.topup-exact-amount { display: grid; gap: 7px; }
.topup-exact-amount > small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.topup-exact-amount code { font-size: 23px; font-weight: 800; color: var(--ink); }
.topup-exact-amount p { margin: 0; color: #7d5a20; font-size: 12px; font-weight: 700; }
.topup-manual-claim { border-top: 1px solid var(--line); padding-top: 16px; }
.topup-manual-claim summary { cursor: pointer; color: #47534f; font-size: 12px; font-weight: 800; }
.topup-manual-claim[open] summary { margin-bottom: 10px; }
.topup-manual-claim > p { margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.copy-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f7f9f6; }
.copy-field code { padding: 12px; color: #39423f; font-size: 11px; font-weight: 500; }
.copy-field button, .secret-box button { align-self: stretch; border: 0; border-left: 1px solid var(--line); padding: 0 12px; color: #44504b; background: #eef2ed; font-size: 11px; font-weight: 750; }
.notice { margin-bottom: 18px; border: 1px solid #edcf9b; border-radius: 10px; padding: 12px; color: #85571f; background: #fff7e8; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 8px; border-bottom: 1px solid #edf0ed; text-align: left; font-size: 12px; }
th { color: #5f6965; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.status { display: inline-flex; border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.status-pending { color: #8b5e24; background: #fff0d6; }
.status-approved { color: #27713c; background: #e3f5e7; }
.status-rejected { color: #963f38; background: #fbe7e5; }
.status-awaiting_transfer { color: #8b5e24; background: #fff0d6; }
.status-submitted { color: #315f77; background: #e4f1f7; }
.status-expired { color: #6f7774; background: #edf0ee; }
.topup-history-row { cursor: pointer; }
.topup-history-row:hover, .topup-history-row:focus-visible { background: #f7faf6; outline: none; }
.topup-history-action { border: 0; padding: 4px 0; color: #336c52; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.topup-history-action:hover, .topup-history-action:focus-visible { color: #1e4e38; text-decoration: underline; }

.api-management-grid { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); gap: 16px; }
.api-management-grid > * { min-width: 0; }
.usage-controls-card, .code-card { grid-column: 1 / -1; }
.api-card-intro { margin-top: -10px; margin-bottom: 22px !important; line-height: 1.55; }
.api-keys-list { display: grid; gap: 10px; }
.api-key-item { position: relative; display: grid; gap: 12px; border: 1px solid #e0e6e2; border-radius: 14px; padding: 16px; background: #fafcf9; }
.api-key-revoked, .api-key-expired { opacity: .68; }
.api-key-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.api-key-item-head strong, .api-key-item-head code { display: block; }
.api-key-item-head strong { margin-bottom: 5px; font-size: 13px; }
.api-key-item-head code { color: var(--muted); font-size: 10px; }
.api-key-status-active { color: #27713c; background: #e3f5e7; }
.api-key-status-expired { color: #8b5e24; background: #fff0d6; }
.api-key-status-revoked { color: #6f7774; background: #edf0ee; }
.api-key-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.api-key-meta span { min-width: 0; }
.api-key-meta small, .api-key-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-key-meta small { color: #8b9491; font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.api-key-meta b { margin-top: 3px; color: #46514d; font-size: 9px; }
.api-key-scopes { display: flex; flex-wrap: wrap; gap: 5px; }
.api-key-scopes span { border-radius: 99px; padding: 4px 7px; color: #53605a; background: #edf1ec; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; }
.api-key-revoke { justify-self: start; border: 0; padding: 2px 0; color: #a3423b; background: none; font-size: 10px; font-weight: 800; cursor: pointer; }
.api-key-revoke:hover, .api-key-revoke:focus-visible { text-decoration: underline; }
.control-form { display: grid; gap: 17px; }
.field-note { margin: -7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.form-grid { display: grid; gap: 12px; }
.form-grid.two-columns { grid-template-columns: 1fr 1fr; }
.form-grid.three-columns { grid-template-columns: repeat(3, 1fr); }
.scope-fieldset { margin: 0; padding: 0; border: 0; }
.scope-fieldset legend { margin-bottom: 9px; color: #39423f; font-size: 13px; font-weight: 700; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scope-grid label { display: flex; align-items: center; gap: 9px; border: 1px solid #e0e6e2; border-radius: 11px; padding: 10px; background: #fafcf9; cursor: pointer; }
.scope-grid label:has(input:checked) { border-color: #a9c767; background: #f7ffe9; }
.scope-grid input { width: 15px; height: 15px; accent-color: #6f961f; }
.scope-grid strong, .scope-grid small { display: block; }
.scope-grid strong { font-size: 10px; }
.scope-grid small { margin-top: 2px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 7.5px; }
.usage-today { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.usage-today > span { border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: #f6f8f5; }
.usage-today > span > small, .usage-today > span > strong { display: block; }
.usage-today > span > small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.usage-today > span > strong { margin-top: 5px; font-size: 17px; }
.toggle-row { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #dfe6dc; border-radius: 12px; padding: 14px; background: #f8faf6; cursor: pointer; }
.toggle-row input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: #6f961f; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 12px; }
.toggle-row small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.code-card { max-width: none; }
pre { margin: 0; overflow-x: auto; border-radius: 14px; padding: 24px; color: #dce9e4; background: #111b18; font-size: 12px; line-height: 1.7; }
.inline-actions { display: flex; gap: 10px; margin-top: 18px; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid #edf0ed; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eef2ed; font-size: 15px; }
.activity-copy strong, .activity-copy small { display: block; }
.activity-copy strong { font-size: 13px; }
.activity-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.activity-amount { font-size: 13px; font-weight: 780; }
.amount-positive { color: #3c8a4f; }
.audit-card { padding-top: 20px; }
.audit-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.audit-toolbar label { display: grid; gap: 7px; min-width: 210px; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .05em; text-transform: uppercase; }
.audit-toolbar select { min-height: 42px; border: 1px solid #dce3d9; border-radius: 11px; padding: 0 38px 0 12px; color: var(--ink); background: #f8faf6; font: inherit; font-size: 12px; font-weight: 700; text-transform: none; }
.audit-toolbar p { max-width: 390px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: right; }
.audit-card .activity-item { grid-template-columns: 42px minmax(0, 1fr) auto; }
.audit-card .activity-icon { color: #40504a; font-weight: 850; }
.audit-card .activity-copy small { line-height: 1.5; }
.audit-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.audit-category { display: inline-flex; border-radius: 99px; padding: 4px 7px; color: #486020; background: #eef5df; font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.audit-amount { display: grid; justify-items: end; gap: 4px; }
.audit-amount small { color: var(--muted); font-size: 8px; }

.security-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 16px; }
.email-status-card { grid-column: 1 / -1; min-height: 0; }
.security-status-card { min-height: 290px; }
.security-badge { display: inline-flex; border-radius: 99px; padding: 6px 9px; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.security-badge-off { color: #895b21; background: #fff0d6; }
.security-badge-on { color: #28713c; background: #e3f5e7; }
.security-form { display: grid; gap: 17px; margin-top: 22px; }
.security-facts { display: grid; gap: 0; margin: 24px 0 0; }
.security-facts div { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid #edf0ed; padding: 14px 0; }
.security-facts dt { color: var(--muted); font-size: 12px; }
.security-facts dd { margin: 0; font-size: 12px; font-weight: 760; text-align: right; }
.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #f5f7f4; }
.recovery-code { border-radius: 7px; padding: 8px; color: #33403b; background: #fff; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; text-align: center; }

.modal { width: min(92vw, 500px); border: 0; border-radius: 20px; padding: 0; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(9,17,14,.66); backdrop-filter: blur(5px); }
.modal-inner { position: relative; display: grid; gap: 17px; padding: 34px; }
.modal-inner > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-close { position: absolute; top: 15px; right: 16px; border: 0; background: none; color: #7a8581; font-size: 24px; }
.secret-box { display: flex; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #f4f7f3; }
.secret-box code { flex: 1; overflow-wrap: anywhere; padding: 14px; color: #26302c; font-size: 11px; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 360px; border-radius: 11px; padding: 13px 16px; color: #fff; background: var(--night); box-shadow: var(--shadow); font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.is-visible { transform: none; opacity: 1; }

@media (max-width: 980px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 44vh; padding: 34px; }
  .story-copy { padding: 60px 0 30px; }
  .auth-card-wrap { min-height: auto; padding: 34px 20px 60px; }
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding: 25px 14px; align-items: center; }
  .sidebar .brand > span:last-child, .nav-item:not(.is-active)::after, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item span { font-size: 10px; }
  .account-mini > span:last-child, .text-button { display: none; }
  .metric-grid, .split-grid, .screening-grid, .monitoring-grid, .billing-grid, .billing-account-grid, .security-grid, .package-grid, .current-package, .compact-package-summary, .team-grid { grid-template-columns: 1fr; }
  .team-members-card { grid-row: auto; }
  .team-invitations-card { grid-column: auto; }
  .api-management-grid { grid-template-columns: minmax(0, 1fr); }
  .usage-controls-card, .code-card { grid-column: auto; }
  .compact-package-balance > span { text-align: left; }
  .package-balance { justify-items: start; }
  .wallet-monitor-item { grid-template-columns: 1fr 1fr; }
  .monitor-controls { grid-column: 1 / -1; justify-content: flex-start; }
  .screening-form-card { position: static; }
}

@media (max-width: 640px) {
  .auth-story { min-height: 38vh; }
  .story-copy h1 { font-size: 43px; }
  .trust-row { display: none; }
  .auth-card { padding: 10px 24px 28px; }
  .auth-tabs { margin: 0 -14px 30px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 10; top: auto; bottom: 0; width: 100%; height: 68px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); flex-direction: row; background: rgba(249,250,247,.96); backdrop-filter: blur(14px); }
  .sidebar .brand, .sidebar-footer { display: none; }
  .nav-list { width: 100%; margin: 0; grid-template-columns: repeat(8,1fr); }
  .nav-item { display: grid; justify-items: center; gap: 2px; padding: 4px 1px; font-size: 8px; line-height: 1.1; }
  .nav-item span { font-size: 8px; }
  .nav-item.is-active { color: var(--ink); }
  .workspace { padding: 24px 16px 100px; }
  .topbar { margin-bottom: 22px; }
  .status-pill { display: none; }
  .mobile-logout { display: inline-flex; }
  .hero-card { min-height: 0; padding: 28px; display: block; }
  .hero-side { margin-top: 28px; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .low-balance-banner { grid-template-columns: auto minmax(0, 1fr); }
  .low-balance-banner .button { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; text-align: left; }
  .key-row, .inline-actions { align-items: stretch; flex-direction: column; }
  .deposit-details { grid-template-columns: 1fr; }
  .report-header { align-items: stretch; flex-direction: column; }
  .topup-card .card-heading { align-items: flex-start; flex-direction: column; }
  .report-actions { justify-content: space-between; }
  .report-overview { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 21px 18px; }
  .score-gauge { width: 88px; height: 88px; }
  .score-gauge strong { font-size: 28px; }
  .report-decision-copy h3 { font-size: 18px; }
  .risk-metrics { grid-template-columns: 1fr; }
  .result-facts div { grid-template-columns: 1fr; gap: 5px; }
  .result-facts dd { text-align: left; }
  .risk-guide-scale { grid-template-columns: 1fr 1fr; }
  .history-open { grid-template-columns: 38px minmax(0, 1fr) 48px; }
  .history-open .decision-badge { display: none; }
  .wallet-monitor-item { grid-template-columns: 1fr; gap: 12px; }
  .monitor-controls { grid-column: auto; }
  .package-confirm-summary { grid-template-columns: 1fr; }
  .form-grid.two-columns, .form-grid.three-columns, .scope-grid, .usage-today, .api-key-meta { grid-template-columns: 1fr; }
  .recovery-codes { grid-template-columns: 1fr; }
  .team-item { grid-template-columns: 36px minmax(0, 1fr); }
  .team-avatar { width: 36px; height: 36px; }
  .team-actions, .team-item > .team-remove { grid-column: 1 / -1; justify-content: flex-end; }
  .audit-toolbar { align-items: stretch; flex-direction: column; }
  .audit-toolbar p { text-align: left; }
  .audit-card .activity-item { grid-template-columns: 38px minmax(0, 1fr); }
  .audit-amount { grid-column: 2; justify-items: start; }
}

@media (max-width: 400px) {
  .network-picker { grid-template-columns: 1fr; }
  .report-overview { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wallet-identity, .risk-metrics, .report-section { margin-right: 18px; margin-left: 18px; }
  .risk-guide-scale { grid-template-columns: 1fr; }
  .screening-history-item { grid-template-columns: minmax(0, 1fr) 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
