:root {
  --bg: #f5f7fa;
  --panel: #fff;
  --soft: #f8fafc;
  --line: #e6ebf1;
  --line2: #d8e0e9;
  --text: #1c293b;
  --muted: #657387;
  --faint: #7c899b;
  --accent: #286bc0;
  --accent-soft: #eef5ff;
  --green: #23765b;
  --green-soft: #edf8f2;
  --yellow: #97671d;
  --yellow-soft: #fff8eb;
  --shadow: 0 8px 32px rgba(28, 48, 76, .035);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { margin: 0; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
button:disabled { cursor: wait; opacity: .6; }
[hidden], .auth-hidden, .icon-sprite { display: none !important; }
svg:not(.leaflet-pane svg) { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 3px solid #80afe6; }
h1, h2, h3, p { margin: 0; }
label { color: var(--text); display: grid; font-size: 13px; font-weight: 550; gap: 8px; }
input { width: 100%; min-width: 0; border: 1px solid var(--line2); background: #fff; border-radius: 8px; color: var(--text); min-height: 46px; padding: 0 14px; transition: border-color .18s, box-shadow .18s; }
input::placeholder { color: #8a97a8; font-weight: 400; }
input:focus { border-color: #7ba7db; box-shadow: 0 0 0 3px rgba(40, 107, 192, .09); outline: none; }
input[readonly] { background: var(--soft); color: var(--muted); }
.primary, .secondary, .text-button { align-items: center; display: inline-flex; gap: 8px; justify-content: center; white-space: nowrap; }
.primary { background: var(--accent); border: 1px solid var(--accent); border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; min-height: 42px; padding: 10px 17px; transition: background .18s, box-shadow .18s; }
.primary:hover { background: #215da8; box-shadow: 0 3px 9px rgba(40, 107, 192, .12); }
.secondary, .primary.quiet { background: #fff; border: 1px solid var(--line2); border-radius: 8px; color: #516278; font-size: 13px; font-weight: 550; min-height: 40px; padding: 9px 14px; box-shadow: none; }
.secondary:hover, .primary.quiet:hover { background: var(--soft); border-color: #bfcddd; }
.primary svg, .secondary svg, .text-button svg { width: 16px; height: 16px; }
.text-button { border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 550; padding: 6px 0; }
.text-button:hover { color: #184f94; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 8px; color: var(--muted); display: inline-flex; flex: 0 0 auto; height: 34px; justify-content: center; width: 34px; }
.icon-button:hover { background: var(--soft); color: var(--accent); }
.inline-message { color: var(--green); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.inline-message:not(:empty) { margin-top: 14px; }
.error, .inline-message.error { color: #b34242; }
.eyebrow { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }

/* The auth pages share the landing's quiet, dark palette. */
.auth-page { --text: #e9eef5; --muted: #96a2b2; --line: #252b35; --line2: #303947; background: #090b0e; color-scheme: dark; }
.auth-layout { align-items: center; display: flex; flex-direction: column; gap: 28px; justify-content: center; min-height: 100dvh; padding: 40px 20px; }
.auth-logo { align-items: center; color: #edf3fb; display: inline-flex; font-size: 23px; font-weight: 650; gap: 12px; letter-spacing: -.035em; }
.auth-logo img { filter: drop-shadow(0 0 9px rgba(124, 177, 240, .17)); }
.auth-logo small { color: #98a8bc; font-size: 17px; font-weight: 500; margin-left: 3px; }
.auth-card { background: #0f1217; border: 1px solid #252b34; border-radius: 16px; max-width: 440px; padding: 36px; width: 100%; }
.auth-card h1 { font-size: 30px; font-weight: 600; letter-spacing: -.045em; margin-bottom: 30px; }
.auth-card form { display: grid; gap: 21px; }
.auth-card label { font-size: 13px; font-weight: 500; gap: 9px; }
.auth-card input { background: #151a22; border-color: #303947; color: #e9eef5; font-size: 14px; min-height: 46px; }
.auth-card input::placeholder { color: #7e8a9c; }
.auth-card input:focus { border-color: #7aade8; box-shadow: 0 0 0 3px rgba(115, 169, 230, .1); }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.password-field { display: block; position: relative; }
.password-field input { padding-right: 48px; }
.password-field button { align-items: center; background: transparent; border: 0; border-radius: 6px; color: #8898ad; display: flex; height: 34px; justify-content: center; position: absolute; right: 6px; top: 6px; width: 34px; }
.password-field button:hover { color: #c5ddf8; }
.password-field svg { height: 17px; width: 17px; }
.auth-submit { font-size: 14px; margin-top: 3px; min-height: 46px; width: 100%; }
.auth-card .inline-message { font-size: 13px; }
.auth-card .inline-message:not(:empty) { background: rgba(123, 200, 168, .07); border-radius: 8px; color: #a3d8bf; margin: 0; padding: 12px; }
.auth-card .inline-message.error { background: rgba(233, 125, 125, .07); color: #e6a2a2; }
.auth-card .inline-message:empty { display: none; }
.auth-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 28px; padding-top: 24px; text-align: center; }
.auth-footer a { color: #87b8f2; margin-left: 3px; }
.auth-footer a:hover { color: #c2defe; }
.auth-home { color: #758295; font-size: 12px; }
.auth-home:hover { color: #c2cfde; }

/* Workspace shell. */
.session-loading { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 18px; justify-content: center; min-height: 100dvh; padding: 24px; text-align: center; }
.app { display: grid; gap: 28px; grid-template-columns: 244px minmax(0, 1fr); min-height: 100dvh; padding: 16px; }
.sidebar { background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; height: calc(100dvh - 32px); min-height: 500px; padding: 25px 16px 16px; position: sticky; top: 16px; }
.brand { align-items: center; color: var(--text); display: flex; gap: 10px; margin-bottom: 31px; padding: 0 6px; }
.brand b { font-size: 17px; font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 3px; }
.workspace-label { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 10px; padding: 12px 10px; }
.workspace-icon { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; color: #61758e; display: inline-flex; height: 32px; justify-content: center; width: 32px; }
.workspace-icon svg { height: 17px; width: 17px; }
.workspace-label div { min-width: 0; }
.workspace-label b { display: block; font-size: 12px; font-weight: 550; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-label small { color: var(--faint); display: block; font-size: 10px; margin-top: 4px; }
.nav-label { color: var(--faint); font-size: 10px; font-weight: 500; letter-spacing: .12em; margin: 28px 10px 11px; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 9px; color: var(--muted); display: flex; font-size: 13px; font-weight: 500; gap: 12px; min-height: 44px; padding: 10px 12px; text-align: left; }
.sidebar nav button svg { height: 18px; width: 18px; }
.sidebar nav button:hover { background: var(--soft); color: var(--text); }
.sidebar nav button.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-help { align-items: center; color: var(--muted); display: flex; font-size: 12px; gap: 10px; margin-top: auto; padding: 20px 10px; }
.sidebar-help svg { height: 17px; width: 17px; }
.sidebar-help svg:last-child { margin-left: auto; width: 14px; }
.sidebar-help:hover { color: var(--accent); }
.sidebar-account { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 9px; padding-top: 17px; }
.avatar { align-items: center; background: #edf3fb; border: 1px solid #dfe9f5; border-radius: 50%; color: #47749e; display: inline-flex; flex: 0 0 auto; font-size: 11px; font-weight: 650; height: 34px; justify-content: center; width: 34px; }
.sidebar-account div { min-width: 0; }
.sidebar-account b { display: block; font-size: 12px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account small { color: var(--faint); display: block; font-size: 10px; margin-top: 4px; max-width: 126px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account .icon-button { margin-left: auto; width: 28px; }
.sidebar-account .icon-button svg { height: 16px; width: 16px; }
.workspace-main { margin: 0 auto; max-width: 1420px; min-width: 0; padding: 8px 16px 32px 0; width: 100%; }
.profile-button { background: transparent; border: 0; border-radius: 50%; flex: 0 0 auto; padding: 0; }
.profile-button:hover .avatar { border-color: #9ebde0; }
.page-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; margin: 0 0 20px; min-height: 54px; padding-bottom: 16px; }
.page-heading h1 { font-size: 24px; font-weight: 600; letter-spacing: -.035em; line-height: 1.25; min-width: 0; }
.page-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 14px; }
#app-message:not(:empty) { margin: 0 0 20px; }
.view { display: none; }
.view.active { animation: viewIn .18s ease; display: block; }
@keyframes viewIn { from { opacity: .5; translate: 0 3px; } to { opacity: 1; translate: 0 0; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); padding: 24px; }
.panel h2 { font-size: 16px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.panel p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 6px; }
.panel-head { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 22px; }
.panel-icon { align-items: center; background: var(--accent-soft); border: 1px solid #e2ecfa; border-radius: 10px; color: var(--accent); display: inline-flex; flex: 0 0 auto; height: 42px; justify-content: center; width: 42px; }
.metrics { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.history-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 19px 20px; position: relative; }
.metric > span:not(.metric-icon) { color: var(--muted); display: block; font-size: 12px; padding-right: 33px; }
.metric > b { display: block; font-size: 29px; font-weight: 600; letter-spacing: -.04em; margin-top: 12px; }
.metric > small { color: var(--faint); display: block; font-size: 11px; margin-top: 7px; }
.metric-icon { align-items: center; background: #f3f6fa; border-radius: 8px; color: #6d819a; display: flex; height: 30px; justify-content: center; position: absolute; right: 16px; top: 15px; width: 30px; }
.metric-icon svg { height: 15px; width: 15px; }
.metric.verified .metric-icon, .metric.ready .metric-icon { background: var(--green-soft); color: var(--green); }
.metric.pending .metric-icon { background: var(--yellow-soft); color: var(--yellow); }
.lookup-heading { align-items: center; display: flex; gap: 13px; }
.lookup-form { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; margin-top: 23px; }
.lookup-form .primary { min-height: 46px; padding-inline: 23px; }
.search-field { display: block; position: relative; }
.search-field svg { color: #8b9aad; height: 17px; left: 13px; position: absolute; top: 15px; width: 17px; }
.search-field input { padding-left: 40px; }
.manual-result { margin: 24px 0; }
.empty-panel { align-items: center; display: flex; flex-direction: column; min-height: 240px; padding: 27px; text-align: center; }
.empty-state-icon { align-items: center; background: #f5f9ff; border-radius: 50%; display: inline-flex; height: 66px; justify-content: center; margin-bottom: 16px; width: 66px; }
.empty-panel > .eyebrow { margin: 16px 0 9px; }
.empty-panel h2 { font-size: 18px; }
.empty-signal-grid { border-top: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; padding-top: 21px; width: 100%; }
.empty-signal-grid article { align-items: center; display: flex; gap: 12px; justify-content: center; text-align: left; }
.empty-signal-grid svg { color: #92a6bd; height: 20px; width: 20px; }
.empty-signal-grid b { display: block; font-size: 12px; font-weight: 500; }
.empty-signal-grid span { color: var(--faint); display: block; font-size: 10px; margin-top: 5px; }
.loading-panel { justify-content: center; }
.loading-ring { animation: spin 1s linear infinite; border: 2px solid #e1ecf9; border-radius: 50%; border-top-color: var(--accent); height: 30px; margin-bottom: 18px; width: 30px; }
@keyframes spin { to { rotate: 360deg; } }

/* History and carrier records. */
.table-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin: 0 0 20px; }
.filter-group { background: #f3f5f8; border: 1px solid #edf0f4; border-radius: 8px; display: flex; padding: 3px; }
.filter-chip { background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 500; min-height: 31px; padding: 5px 14px; }
.filter-chip.active { background: #fff; border-color: var(--line); box-shadow: 0 1px 3px rgba(30, 50, 80, .04); color: var(--text); }
.table-search { min-width: 210px; width: 310px; }
.table-search input { font-size: 12px; min-height: 39px; }
.table-search svg { top: 12px; height: 15px; width: 15px; }
.count-pill { background: #f0f3f7; border-radius: 5px; color: var(--muted); display: inline-block; font-size: 10px; margin-left: 6px; padding: 3px 7px; vertical-align: middle; }
.table-wrap { border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; }
table { border-collapse: collapse; min-width: 710px; text-align: left; width: 100%; }
.recent-panel table { min-width: 420px; }
th { background: #f8fafc; color: var(--muted); font-size: 11px; font-weight: 500; padding: 13px 16px; white-space: nowrap; }
td { border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; padding: 17px 16px; vertical-align: middle; }
td b { font-size: 12px; font-weight: 550; }
tr[data-id] { cursor: pointer; }
tr[data-id]:hover { background: #f9fbfe; }
.carrier-link { background: transparent; border: 0; color: var(--text); display: block; font-size: 12px; font-weight: 600; padding: 0; text-align: left; }
.carrier-link:hover { color: var(--accent); }
.carrier span, .sub { color: var(--faint); display: block; font-size: 10px; margin-top: 4px; }
.date-cell { color: var(--muted); font-size: 11px; white-space: nowrap; }
.badge { align-items: center; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; flex: 0 0 auto; font-size: 10px; font-weight: 500; gap: 6px; line-height: 1.4; padding: 5px 8px; white-space: nowrap; }
.badge i { background: currentColor; border-radius: 50%; height: 5px; width: 5px; }
.badge.verified { background: var(--green-soft); border-color: #dcefe4; color: var(--green); }
.badge.pending { background: var(--yellow-soft); border-color: #f1e5cd; color: var(--yellow); }
.badge.ready { background: var(--accent-soft); border-color: #dce8f7; color: var(--accent); }
.empty { color: var(--muted); font-size: 12px; padding: 36px 16px; text-align: center; }
.empty.error { color: #b34242; }
.carrier-shell { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); overflow: hidden; }
.manual-hero { align-items: start; background: linear-gradient(120deg, #f8fbff, #f0f6fc); border-bottom: 1px solid #e3ebf5; display: flex; gap: 18px; justify-content: space-between; padding: 26px; }
.manual-hero h2 { font-size: 25px; font-weight: 600; letter-spacing: -.035em; margin: 9px 0; }
.manual-hero span { color: var(--muted); font-size: 12px; }
.manual-grid, .risk-grid { display: grid; gap: 12px; padding: 24px; }
.manual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { background: #fafbfd; border: 1px solid var(--line); border-radius: 9px; min-width: 0; padding: 15px; }
.info-card span, .risk-card span { color: var(--faint); display: block; font-size: 10px; font-weight: 500; }
.info-card b, .risk-card b { display: block; font-size: 12px; font-weight: 550; line-height: 1.55; margin-top: 7px; overflow-wrap: anywhere; }
.risk-grid { border-top: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 18px; }
.risk-card { background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.risk-card.good { background: #f4faf6; border-color: #e0efe5; color: var(--green); }
.risk-card.warn { background: #fffbf3; border-color: #f0e8d6; color: var(--yellow); }
.risk-card.bad { background: #fff5f5; border-color: #f1dddd; color: #b34242; }
.manual-flow { border-top: 1px solid var(--line); padding: 24px; }
.detail-section-title { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 17px; }
.detail-section-title h3 { font-size: 14px; font-weight: 600; }
.detail-section-title > span { color: var(--faint); font-size: 11px; }
.checks { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.checks > div { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: 12px; gap: 18px; justify-content: space-between; padding: 13px 16px; }
.checks > div:first-child { border-top: 0; }
.checks b { background: var(--yellow-soft); border-radius: 5px; color: var(--yellow); font-size: 10px; font-weight: 500; padding: 4px 7px; }
.checks b.done { background: var(--green-soft); color: var(--green); }
.manual-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.details { align-items: center; background: rgba(25, 38, 57, .28); backdrop-filter: blur(5px); display: none; inset: 0; justify-content: center; padding: 32px; position: fixed; z-index: 100; }
.details.open { display: flex; }
.modal-open { overflow: hidden; }
.details-modal { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 100px rgba(23, 40, 62, .16); max-height: calc(100dvh - 64px); max-width: 870px; overflow-y: auto; padding: 32px; position: relative; width: 100%; }
.close-details { background: var(--soft); position: absolute; right: 20px; top: 20px; }
.detail-hero { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; margin-bottom: 24px; padding: 0 38px 24px 0; }
.detail-hero h2 { font-size: 26px; font-weight: 600; letter-spacing: -.035em; margin: 9px 0; }
.detail-hero span { color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-section { margin-top: 26px; }
.activity-feed { border: 1px solid var(--line); border-radius: 9px; padding: 6px 16px; }
.activity-feed > div { align-items: center; display: grid; gap: 11px; grid-template-columns: 7px 1fr auto; padding: 11px 0; }
.activity-feed > div > span { background: #cfd8e3; border-radius: 50%; height: 6px; width: 6px; }
.activity-feed .done > span { background: #55a687; }
.activity-feed b { font-size: 11px; font-weight: 500; }
.activity-feed em { color: var(--faint); font-size: 10px; font-style: normal; }
.document-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.document-card { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; min-width: 0; padding: 15px; }
.document-card.uploaded { background: #f5faf7; border-color: #deeee4; }
.document-card span { color: var(--muted); display: block; font-size: 10px; }
.document-card b { display: block; font-size: 11px; font-weight: 550; margin-top: 8px; overflow-wrap: anywhere; }
.document-card a, .document-card em { background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 10px; font-style: normal; padding: 5px 9px; }
.document-card.uploaded a { color: var(--green); }

/* Plans and account settings. */
.billing-intro { align-items: center; display: flex; gap: 16px; margin-bottom: 24px; }
.plan-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card { padding: 26px; }
.featured-plan { border-color: #9fc0e7; box-shadow: 0 5px 20px rgba(40, 107, 192, .055); }
.plan-heading { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.plan-label { background: var(--accent-soft); border-radius: 5px; color: var(--accent); font-size: 10px; padding: 5px 8px; }
.plan-price { font-size: 35px; font-weight: 600; letter-spacing: -.04em; margin-top: 29px; }
.plan-price small { color: var(--faint); font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 5px; }
.plan-volume { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 12px; padding-bottom: 23px; }
.plan-volume b { color: var(--text); font-weight: 550; }
.plan-card ul { display: grid; gap: 17px; list-style: none; margin: 24px 0 28px; padding: 0; }
.plan-card li { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 8px; }
.plan-card li svg { color: #719cbf; height: 14px; width: 14px; }
.plan-card > a { font-size: 11px; width: 100%; }
.billing-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 24px; text-align: center; }
.split { align-items: start; display: grid; gap: 22px; grid-template-columns: 1.2fr 1fr; }
.settings-panel form { display: grid; gap: 21px; }
.settings-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 15px; margin-top: 5px; padding-top: 22px; }
.settings-actions .inline-message { font-size: 12px; margin: 0; }
.extension-panel > h2 { margin-top: 20px; }
.extension-panel > p { margin-top: 12px; }
.extension-steps { border-top: 1px solid var(--line); display: grid; gap: 21px; margin-top: 25px; padding-top: 25px; }
.extension-steps > div { align-items: center; color: var(--muted); display: flex; font-size: 12px; gap: 11px; }
.extension-steps span { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 7px; color: #70849b; display: inline-flex; flex: 0 0 auto; font-size: 10px; height: 25px; justify-content: center; width: 25px; }
.extension-panel > a { margin-top: 24px; }

@media (min-width: 1600px) { .app { gap: 40px; padding: 22px; } .sidebar { height: calc(100dvh - 44px); top: 22px; } .workspace-main { padding-right: 24px; } }
@media (max-width: 1150px) {
  .app { gap: 20px; grid-template-columns: 218px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .brand { gap: 8px; padding-inline: 1px; }
  .brand b { font-size: 16px; }
  .brand small { font-size: 11px; }
  .workspace-main { padding-right: 0; }
  .metrics { gap: 12px; }
  .history-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 17px; }
  .metric-icon { right: 12px; }
  .plan-grid { gap: 12px; }
  .plan-card { padding: 20px; }
  .split { grid-template-columns: 1fr; }
  .empty-signal-grid { gap: 12px; }
  .empty-signal-grid article { gap: 8px; }
}
@media (max-width: 800px) {
  .app { display: block; padding: 12px; }
  .sidebar { height: auto; min-height: 0; padding: 16px; position: static; }
  .brand { margin-bottom: 17px; }
  .sidebar nav { gap: 5px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar nav button { font-size: 11px; gap: 7px; justify-content: center; padding: 10px 6px; }
  .sidebar nav button svg { height: 16px; width: 16px; }
  .nav-label, .workspace-label, .sidebar-help { display: none; }
  .sidebar-account { border: 0; padding: 0; position: absolute; right: 28px; top: 31px; }
  .sidebar-account div, .sidebar-account > .avatar { display: none; }
  .workspace-main { padding: 0 4px 28px; }
  .page-heading { margin: 18px 0 16px; min-height: 50px; padding-bottom: 12px; }
  .page-heading h1 { font-size: 22px; }
  .page-actions .primary { font-size: 11px; padding: 8px 10px; }
  .metrics { gap: 10px; }
  .metric > span:not(.metric-icon) { font-size: 11px; padding-right: 0; }
  .metric-icon { display: none; }
  .metric > b { font-size: 26px; }
  .metric > small { font-size: 10px; line-height: 1.5; }
  .panel { padding: 20px; }
  .manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-signal-grid { gap: 16px; }
  .empty-signal-grid article { align-items: start; }
  .empty-signal-grid svg { display: none; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 25px; }
  .plan-card > a { font-size: 12px; }
  .details { padding: 18px; }
  .details-modal { max-height: calc(100dvh - 36px); padding: 24px; }
  .document-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-layout { gap: 24px; padding: 28px 18px; }
  .auth-logo { font-size: 21px; }
  .auth-logo small { font-size: 16px; }
  .auth-card { padding: 28px 23px; }
  .auth-card h1 { font-size: 27px; }
  .form-row { gap: 12px; }
  .auth-card input { font-size: 13px; padding-inline: 11px; }
  .password-field input { padding-right: 44px; }
  .sidebar { padding: 16px 10px 10px; }
  .brand { margin-left: 5px; }
  .sidebar nav button { flex-direction: column; font-size: 10px; gap: 7px; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
  .page-heading h1 { font-size: 21px; }
  .page-actions { gap: 10px; margin-left: auto; }
  .page-actions .primary { min-height: 34px; min-width: 34px; padding: 8px; }
  .page-actions .primary svg { height: 16px; width: 16px; }
  .page-actions .primary span { display: none; }
  .metrics { gap: 8px; }
  .metric { padding: 14px 12px; }
  .metric > b { font-size: 24px; }
  .metric > small { min-height: 30px; }
  .panel { padding: 20px 16px; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form .primary { width: 100%; }
  .panel-head { align-items: start; gap: 8px; }
  .panel-head h2 { font-size: 15px; }
  .panel-head .secondary { font-size: 11px; min-height: 34px; padding: 6px 9px; }
  .panel-head .text-button { font-size: 11px; }
  .empty-signal-grid { grid-template-columns: 1fr; gap: 17px; }
  .empty-signal-grid article { justify-content: start; }
  .empty-signal-grid svg { display: block; }
  .empty-panel { padding: 25px; }
  .empty-panel > p { max-width: 255px; }
  .table-search { width: 100%; }
  .table-tools { gap: 16px; }
  .manual-hero { flex-wrap: wrap; padding: 22px; }
  .manual-hero h2 { font-size: 23px; }
  .manual-grid, .risk-grid, .manual-flow { padding: 18px; }
  .info-card, .risk-card { padding: 12px; }
  .detail-section-title { align-items: start; flex-direction: column; gap: 7px; }
  .detail-grid { grid-template-columns: 1fr; }
  .details { padding: 10px; }
  .details-modal { border-radius: 12px; max-height: calc(100dvh - 20px); padding: 22px 18px; }
  .detail-hero { align-items: start; flex-direction: column; padding-right: 36px; }
  .activity-feed > div { grid-template-columns: 7px 1fr; }
  .activity-feed em { grid-column: 2; }
  .settings-actions { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
