:root {
  --ink: #18202f;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e5e9f0;
  --canvas: #f5f7fa;
  --card: #ffffff;
  --nav: #111827;
  --nav-soft: #1f2937;
  --primary: #2854d7;
  --primary-dark: #1d3da0;
  --primary-soft: #edf2ff;
  --green: #079455;
  --green-soft: #ecfdf3;
  --amber: #dc6803;
  --amber-soft: #fffaeb;
  --red: #d92d20;
  --red-soft: #fef3f2;
  --violet: #6941c6;
  --violet-soft: #f4f3ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .04);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(40, 84, 215, .2); outline-offset: 2px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: linear-gradient(145deg, #4774f4, #203eaf); box-shadow: 0 8px 20px rgba(40, 84, 215, .28); font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 18px; letter-spacing: -.04em; }
.brand-copy small { margin-top: 4px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.brand-on-dark .brand-copy small { color: #9ba8bd; }

.eyebrow, .panel-kicker { margin: 0 0 8px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: #9db4ff; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; border-radius: 10px; padding: 0 16px; font-weight: 750; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.primary-button { color: white; border: 1px solid var(--primary); background: var(--primary); box-shadow: 0 7px 18px rgba(40, 84, 215, .2); }
.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.secondary-button { color: #344054; border: 1px solid #d0d5dd; background: white; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.secondary-button:hover { background: #f9fafb; }
.secondary-button:disabled { cursor: not-allowed; opacity: .62; background: #f9fafb; }
.text-button { color: var(--primary); border: 0; background: transparent; font-weight: 700; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; color: #667085; background: transparent; font-size: 18px; }
.icon-button:hover { color: var(--ink); background: #f2f4f7; }

/* Login */
.login-body { min-height: 100vh; background: white; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(460px, .95fr); }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 680px; padding: 48px 64px; color: white; background: radial-gradient(circle at 82% 18%, rgba(71, 116, 244, .32), transparent 28%), radial-gradient(circle at 18% 82%, rgba(61, 213, 152, .13), transparent 24%), linear-gradient(145deg, #111b33 0%, #111827 52%, #0c1323 100%); }
.login-story::before, .login-story::after { position: absolute; content: ""; pointer-events: none; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; }
.login-story::before { width: 520px; height: 520px; right: -245px; bottom: -150px; }
.login-story::after { width: 320px; height: 320px; right: -145px; bottom: -50px; }
.story-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0 50px; }
.story-copy h1 { margin: 0 0 24px; font-size: clamp(38px, 4vw, 62px); line-height: 1.16; letter-spacing: -.055em; }
.story-copy > p:last-child { max-width: 540px; margin: 0; color: #b7c1d2; font-size: 17px; line-height: 1.8; }
.trust-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 40px; }
.trust-list > div { min-width: 0; padding: 17px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(255, 255, 255, .035); backdrop-filter: blur(8px); }
.trust-icon { display: inline-block; margin-bottom: 16px; color: #8da7fc; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.trust-list p { display: flex; flex-direction: column; margin: 0; }
.trust-list strong { overflow: hidden; color: #f7f9fc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.trust-list small { margin-top: 5px; color: #8e9bb0; font-size: 11px; }
.login-footnote { position: relative; z-index: 1; margin: 0; color: #66758c; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.login-panel { display: grid; place-items: center; padding: 48px; background: #fff; }
.login-card { width: min(100%, 430px); }
.mobile-brand { display: none; margin-bottom: 54px; }
.login-card h2 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -.045em; }
.login-description { margin: 10px 0 34px; color: var(--muted); }
.login-form { display: flex; flex-direction: column; }
.login-form label { margin: 0 0 8px; color: #344054; font-size: 13px; font-weight: 700; }
.login-form label:not(:first-child) { margin-top: 20px; }
.field-wrap { position: relative; }
.field-wrap input { width: 100%; height: 50px; padding: 0 52px 0 44px; border: 1px solid #d0d5dd; border-radius: 11px; color: var(--ink); background: white; transition: border .15s, box-shadow .15s; }
.field-wrap input:hover { border-color: #98a2b3; }
.field-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(40, 84, 215, .1); outline: 0; }
.field-symbol { position: absolute; top: 50%; left: 15px; z-index: 1; transform: translateY(-50%); color: #98a2b3; font-size: 12px; font-weight: 800; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 7px 8px; color: #667085; border: 0; background: transparent; font-size: 11px; font-weight: 700; }
.form-error { min-height: 21px; margin: 12px 0 2px; color: var(--red); font-size: 12px; }
.login-button { width: 100%; height: 50px; justify-content: space-between; padding: 0 19px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 19px; color: #98a2b3; font-size: 11px; }
.login-divider::before, .login-divider::after { height: 1px; flex: 1; content: ""; background: #eaecf0; }
.wallet-login h3 { margin: 0; color: #344054; font-size: 13px; }
.wallet-login > p { margin: 7px 0 13px; color: #667085; font-size: 11px; line-height: 1.6; }
.wallet-login-button { width: 100%; height: 50px; }
.wallet-login-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: white; background: #10161f; font-size: 9px; font-weight: 850; letter-spacing: -.03em; }
.wallet-login-status { min-height: 18px; margin: 8px 0 0 !important; color: #667085 !important; }
.wallet-login-status.is-error { color: var(--red) !important; }
.secure-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; padding: 13px 14px; border-radius: 10px; color: #667085; background: #f8fafc; font-size: 11px; line-height: 1.6; }
.secure-note span { color: var(--green); font-weight: 900; }
.login-body.dialog-open { overflow: hidden; }
.wallet-dialog-shell { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 24px; }
.wallet-dialog-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(16, 24, 40, .54); backdrop-filter: blur(3px); }
.wallet-dialog { position: relative; width: min(100%, 520px); max-height: min(760px, calc(100vh - 48px)); overflow-y: auto; padding: 25px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 18px; background: white; box-shadow: 0 28px 80px rgba(16, 24, 40, .28); animation: wallet-dialog-in .18s ease; }
@keyframes wallet-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.wallet-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wallet-dialog-header .eyebrow { margin-bottom: 5px; }
.wallet-dialog-header h3 { margin: 0; color: #182230; font-size: 21px; letter-spacing: -.035em; }
.wallet-dialog-description { margin: 11px 0 20px; color: #667085; font-size: 12px; line-height: 1.65; }
.wallet-choice-view { display: grid; gap: 11px; }
.wallet-choice-button { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; width: 100%; min-height: 78px; padding: 13px 16px; color: #344054; border: 1px solid #d8dee8; border-radius: 13px; background: white; text-align: left; box-shadow: 0 2px 5px rgba(16, 24, 40, .04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.wallet-choice-button:hover:not(:disabled) { border-color: #84a2f5; box-shadow: 0 7px 18px rgba(40, 84, 215, .1); transform: translateY(-1px); }
.wallet-choice-button:disabled { cursor: not-allowed; opacity: .6; background: #f9fafb; box-shadow: none; }
.wallet-choice-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: white; font-size: 11px; font-weight: 900; letter-spacing: -.03em; }
.wallet-choice-icon-clebus { background: #10161f; }
.wallet-choice-icon-wc { background: linear-gradient(145deg, #3b82f6, #2854d7); }
.wallet-choice-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.wallet-choice-copy strong { color: #182230; font-size: 13px; }
.wallet-choice-copy small { color: #667085; font-size: 10px; line-height: 1.45; }
.walletconnect-view { text-align: center; }
.walletconnect-qr-frame { display: inline-grid; place-items: center; min-height: 252px; padding: 8px; border: 1px solid #e4e7ec; border-radius: 16px; background: white; box-shadow: 0 9px 24px rgba(16, 24, 40, .07); }
.walletconnect-qr-frame canvas { display: block; max-width: 100%; image-rendering: pixelated; }
.walletconnect-instruction { margin: 15px 8px 16px; color: #475467; font-size: 11px; line-height: 1.65; }
.walletconnect-view > label { display: block; margin: 0 0 7px; color: #344054; font-size: 10px; font-weight: 800; text-align: left; }
.walletconnect-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.walletconnect-code-row textarea { min-height: 64px; padding: 9px 10px; resize: none; overflow-wrap: anywhere; border: 1px solid #d0d5dd; border-radius: 9px; color: #475467; background: #f8fafc; font-family: "SFMono-Regular", Consolas, monospace; font-size: 8px; line-height: 1.4; }
.walletconnect-code-row .secondary-button { min-height: 64px; padding: 0 13px; }
.walletconnect-secret-note { margin: 7px 0 0; color: #b54708; font-size: 9px; line-height: 1.5; text-align: left; }
.walletconnect-back { margin-top: 15px; padding: 6px 0; font-size: 11px; }
.wallet-dialog-status { min-height: 19px; margin: 16px 0 0; color: #475467; font-size: 11px; line-height: 1.55; text-align: center; }
.wallet-dialog-status.is-error { color: var(--red); }
.wallet-dialog-status.is-success { color: var(--green); }

/* Application shell */
.app-body { min-height: 100vh; background: var(--canvas); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 24px 16px 18px; color: #d8dfeb; background: var(--nav); }
.sidebar-brand { padding: 0 8px 25px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sidebar-brand .brand-copy strong { color: white; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.side-nav > p { margin: 0 12px 9px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 0 13px; color: #9eabc0; border: 0; border-radius: 9px; background: transparent; text-align: left; font-weight: 650; }
.nav-item > span { display: grid; place-items: center; width: 20px; color: #718096; font-size: 17px; }
.nav-item:hover { color: white; background: rgba(255, 255, 255, .05); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(71, 116, 244, .22), rgba(71, 116, 244, .09)); box-shadow: inset 3px 0 #5a7df2; }
.nav-item.active > span { color: #8da7fc; }
.sidebar-network { margin-top: auto; padding: 16px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.network-title { display: flex; align-items: center; gap: 8px; }
.network-title strong { color: #f2f4f7; font-size: 12px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .12); }
.sidebar-network p { margin: 7px 0 3px 15px; color: #8794a9; font-size: 11px; }
.sidebar-network code { margin-left: 15px; color: #66758c; font-family: inherit; font-size: 10px; }
.sidebar-footer { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 10px; margin-top: 14px; padding: 15px 4px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #dbe4ff; background: #263968; font-size: 12px; font-weight: 800; }
.sidebar-footer div { display: flex; min-width: 0; flex-direction: column; }
.sidebar-footer strong { overflow: hidden; color: #f2f4f7; font-size: 12px; text-overflow: ellipsis; }
.sidebar-footer small { color: #66758c; font-size: 10px; }
.sidebar-footer .icon-button { color: #718096; }
.sidebar-footer .icon-button:hover { color: white; background: rgba(255, 255, 255, .06); }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; min-height: 76px; padding: 12px 32px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.topbar h1 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.035em; }
.breadcrumb { margin: 0; color: #98a2b3; font-size: 11px; }
.breadcrumb span { color: #667085; }
.topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.last-updated { display: grid; grid-template-columns: 8px auto; align-items: center; column-gap: 8px; color: #344054; font-size: 11px; }
.last-updated small { grid-column: 2; color: #98a2b3; font-size: 10px; }
.status-dot { width: 7px; height: 7px; grid-row: 1 / 3; border-radius: 50%; background: #98a2b3; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.mobile-menu { display: none; width: 38px; height: 38px; margin-right: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.content { width: min(100%, 1500px); margin: 0 auto; padding: 30px 32px 56px; }
.page-section { display: none; animation: section-in .18s ease; }
.page-section.active { display: block; }
@keyframes section-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.hero-row, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hero-row h2, .section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.045em; }
.hero-row p:last-child, .section-heading p:last-child { margin: 7px 0 0; color: var(--muted); }
.network-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #d5d9e2; border-radius: 999px; color: #475467; background: white; font-size: 11px; font-weight: 700; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.metric-card { min-width: 0; padding: 19px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.accent-card { border-color: #d8e1ff; background: linear-gradient(135deg, #f8faff, #fff); }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #667085; font-size: 11px; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 900; }
.soft-blue { color: #175cd3; background: #eff8ff; }
.soft-green { color: var(--green); background: var(--green-soft); }
.soft-amber { color: var(--amber); background: var(--amber-soft); }
.metric-card > strong { display: block; margin-top: 16px; font-size: 27px; line-height: 1.1; letter-spacing: -.045em; }
.metric-card > small { display: block; margin-top: 8px; color: #98a2b3; font-size: 10px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 15px; margin-top: 15px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; }
.panel-header h3 { margin: 0; font-size: 15px; letter-spacing: -.025em; }
.panel-kicker { margin-bottom: 3px; color: #98a2b3; font-size: 9px; }
.auto-refresh { color: #98a2b3; font-size: 10px; }
.service-list { padding: 0 22px 20px; }
.service-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #f0f2f5; }
.service-row:first-child { border-top: 0; }
.service-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: var(--primary); background: var(--primary-soft); font-size: 12px; font-weight: 900; }
.service-copy { display: flex; min-width: 0; flex-direction: column; }
.service-copy strong { font-size: 12px; }
.service-copy small { margin-top: 3px; overflow: hidden; color: #98a2b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.service-state { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 750; }
.service-state.error { color: var(--red); }
.status-distribution { display: flex; flex-direction: column; gap: 15px; padding: 2px 22px 23px; }
.distribution-row { display: grid; grid-template-columns: 84px 1fr 30px; align-items: center; gap: 10px; }
.distribution-row span { color: #667085; font-size: 10px; }
.distribution-row strong { text-align: right; font-size: 11px; }
.distribution-track { overflow: hidden; height: 7px; border-radius: 99px; background: #f0f2f5; }
.distribution-fill { height: 100%; min-width: 2px; border-radius: inherit; background: var(--primary); }
.distribution-fill.matched { background: var(--green); }
.distribution-fill.inconsistent { background: var(--red); }
.distribution-fill.review { background: var(--amber); }
.distribution-fill.processing { background: var(--primary); }
.distribution-fill.attention { background: var(--amber); }
.distribution-fill.failed { background: var(--red); }
.recent-panel { margin-top: 15px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 16px; color: #98a2b3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 16px; color: #475467; border-bottom: 1px solid #f0f2f5; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: #f9fbff; }
.hash-cell { display: flex; min-width: 170px; flex-direction: column; }
.hash-cell code, .mono { color: #344054; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.explorer-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.explorer-link:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.hash-cell small { margin-top: 3px; color: #98a2b3; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: #344054; background: #f2f4f7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-badge::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: #98a2b3; }
.status-badge.matched { color: #067647; background: var(--green-soft); }
.status-badge.matched::before { background: #12b76a; }
.status-badge.processing { color: #175cd3; background: #eff8ff; }
.status-badge.processing::before { background: #2e90fa; }
.status-badge.review_pending, .status-badge.review_deferred, .status-badge.evidence_only, .status-badge.chain_only, .status-badge.attention_required { color: #b54708; background: var(--amber-soft); }
.status-badge.review_pending::before, .status-badge.review_deferred::before, .status-badge.evidence_only::before, .status-badge.chain_only::before, .status-badge.attention_required::before { background: #f79009; }
.status-badge.failed, .status-badge.inconsistent, .status-badge.stale { color: #b42318; background: var(--red-soft); }
.status-badge.failed::before, .status-badge.inconsistent::before, .status-badge.stale::before { background: #f04438; }
.empty-state { display: grid; place-items: center; min-height: 230px; padding: 30px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; color: #98a2b3; background: #f2f4f7; font-size: 22px; }
.empty-state strong { font-size: 13px; }
.empty-state p { margin: 6px 0 0; color: #98a2b3; font-size: 11px; }

.records-panel { overflow: hidden; }
.records-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(440px, 100%); height: 39px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 9px; color: #98a2b3; background: white; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.filter-group { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: #f2f4f7; }
.filter-button { height: 31px; padding: 0 11px; color: #667085; border: 0; border-radius: 7px; background: transparent; font-size: 10px; font-weight: 700; }
.filter-button.active { color: #344054; background: white; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.records-table td { padding-top: 15px; padding-bottom: 15px; }
.view-button { min-width: 28px; height: 28px; padding: 0 8px; color: #667085; border: 1px solid #e4e7ec; border-radius: 8px; background: white; }
.view-button.review-action { color: var(--primary); border-color: #cbd7ff; background: var(--primary-soft); font-size: 9px; font-weight: 800; }
.view-button.completed-action { color: #067647; border-color: #a6f4c5; background: var(--green-soft); font-size: 9px; font-weight: 800; }

.review-workload-pill { color: #b54708; border-color: #fedf89; background: var(--amber-soft); }
.review-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: -6px 0 18px; padding: 0; list-style: none; }
.review-steps li { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .72); }
.review-steps li > span { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 50%; color: var(--primary); background: var(--primary-soft); font-size: 10px; font-weight: 900; }
.review-steps li div { display: flex; min-width: 0; flex-direction: column; }
.review-steps strong { color: #344054; font-size: 11px; }
.review-steps small { margin-top: 2px; overflow: hidden; color: #98a2b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.verify-layout { display: grid; grid-template-columns: minmax(370px, .68fr) minmax(560px, 1.32fr); gap: 16px; align-items: start; }
.verify-card { padding: 28px; }
.verify-symbol { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 20px; border-radius: 13px; color: var(--primary); background: var(--primary-soft); font-size: 23px; }
.verify-card h3 { margin: 0; font-size: 18px; }
.verify-card > p { margin: 8px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.verify-card form { display: flex; flex-direction: column; }
.verify-card label { margin-bottom: 8px; color: #344054; font-size: 11px; font-weight: 750; }
.verify-card input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #d0d5dd; border-radius: 10px; color: #344054; background: #fbfcfe; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.verify-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(40, 84, 215, .1); outline: 0; }
.verify-card .primary-button { justify-content: space-between; margin-top: 14px; }
.verify-result { min-height: 520px; padding: 28px; }
.empty-result { display: grid; place-items: center; }
.result-placeholder { max-width: 330px; text-align: center; }
.result-placeholder > span { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 16px; border-radius: 50%; color: #98a2b3; background: #f2f4f7; font-size: 20px; }
.result-placeholder h3 { margin: 0; font-size: 15px; }
.result-placeholder p { margin: 8px 0 0; color: #98a2b3; font-size: 11px; line-height: 1.7; }
.verification-summary { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.verification-summary > span:first-child { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 18px; font-weight: 900; }
.verification-summary.mismatch > span:first-child { color: var(--red); background: var(--red-soft); }
.verification-summary.pending > span:first-child { color: var(--amber); background: var(--amber-soft); }
.verification-summary h3 { margin: 0; font-size: 16px; }
.verification-summary p { margin: 4px 0 0; color: #667085; font-size: 11px; }
.review-position { margin-left: auto; padding: 6px 9px; border-radius: 999px; color: #475467; background: #f2f4f7; font-size: 10px; font-weight: 800; white-space: nowrap; }
.verification-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.verification-item { min-width: 0; padding: 14px; border-radius: 10px; background: #f8fafc; }
.verification-item span { display: block; margin-bottom: 5px; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.verification-item strong, .verification-item code { overflow-wrap: anywhere; color: #344054; font-size: 12px; }
.review-inbox { overflow: hidden; }
.review-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 0 20px 9px; padding: 4px; border-radius: 10px; background: #f2f4f7; }
.review-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 10px; color: #667085; border: 0; border-radius: 8px; background: transparent; font-size: 10px; font-weight: 800; }
.review-tab strong { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: #667085; background: #e4e7ec; font-size: 9px; }
.review-tab.active { color: #344054; background: white; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.review-tab[data-review-list="pending"].active { color: #b54708; }
.review-tab[data-review-list="pending"].active strong { color: #b54708; background: var(--amber-soft); }
.review-tab[data-review-list="completed"].active { color: #067647; }
.review-tab[data-review-list="completed"].active strong { color: #067647; background: var(--green-soft); }
.review-list-help { margin: 0 20px 13px; color: #667085; font-size: 10px; line-height: 1.5; }
.review-search { display: flex; gap: 8px; padding: 0 20px 16px; }
.review-search .search-box { flex: 1; width: auto; }
.review-search .secondary-button { flex: none; height: 39px; padding: 0 14px; }
.review-queue { max-height: 620px; overflow-y: auto; border-top: 1px solid var(--line); }
.review-queue-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 15px 20px; color: inherit; border: 0; border-bottom: 1px solid #f0f2f5; background: white; text-align: left; }
.review-queue-item:hover, .review-queue-item.active { background: #f7f9ff; }
.review-queue-item.active { box-shadow: inset 3px 0 var(--primary); }
.review-queue-item.completed { background: #fbfefc; }
.review-queue-item.completed:hover, .review-queue-item.completed.active { background: #f0fdf4; }
.review-queue-item.completed.active { box-shadow: inset 3px 0 var(--green); }
.review-queue-item.inconsistent { background: #fffafa; }
.review-queue-item.inconsistent:hover, .review-queue-item.inconsistent.active { background: #fef3f2; }
.review-queue-item.inconsistent.active { box-shadow: inset 3px 0 var(--red); }
.review-queue-item > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.review-queue-item code { color: #344054; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 700; }
.review-queue-item small { margin-top: 6px; overflow: hidden; color: #98a2b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-proof-state { display: flex; gap: 5px; margin-top: 8px; }
.queue-proof-state span { padding: 3px 6px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.queue-proof-state .evidence { color: #175cd3; background: #eff8ff; }
.queue-proof-state .anchor { color: #5925dc; background: var(--violet-soft); }
.compact-empty { min-height: 250px; }
.verification-signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.signal-pill { padding: 6px 9px; color: #475467; border-radius: 999px; background: #f2f4f7; font-size: 10px; font-weight: 800; }
.signal-pill.ok { color: #067647; background: var(--green-soft); }
.signal-pill.error { color: #b42318; background: var(--red-soft); }
.proof-comparison { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: stretch; gap: 10px; margin-top: 18px; }
.proof-comparison.three-way { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.proof-card.evidence { border-color: #b2ddff; background: linear-gradient(145deg, #f5fbff, #fff); }
.proof-card.anchor { border-color: #d9d6fe; background: linear-gradient(145deg, #f9f7ff, #fff); }
.proof-card.backoffice { border-color: #fedf89; background: linear-gradient(145deg, #fffcf5, #fff); }
.proof-card.missing { border-style: dashed; opacity: .74; }
.proof-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.proof-card header div { display: flex; min-width: 0; flex-direction: column; }
.proof-card header strong { color: #344054; font-size: 13px; }
.proof-card header small { margin-top: 3px; color: #667085; font-size: 9px; }
.proof-kind { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.proof-card.evidence .proof-kind { color: #175cd3; background: #dff2ff; }
.proof-card.anchor .proof-kind { color: #5925dc; background: #ebe9fe; }
.proof-card.backoffice .proof-kind { color: #b54708; background: #fef0c7; }
.proof-hash-label { display: block; margin: 18px 0 7px; color: #667085; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.proof-hash { display: flex; flex-wrap: wrap; gap: 5px 7px; min-height: 54px; align-content: flex-start; padding: 11px; border: 1px solid rgba(152, 162, 179, .18); border-radius: 9px; color: #344054; background: rgba(255, 255, 255, .82); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; line-height: 1.45; }
.digest-segment { border-radius: 4px; }
.digest-segment.diff { color: #b42318; background: #fee4e2; box-shadow: 0 0 0 2px #fee4e2; font-weight: 800; }
.proof-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(152, 162, 179, .2); }
.proof-meta span { color: #667085; font-size: 9px; }
.proof-meta strong { color: #344054; font-size: 10px; text-align: right; }
.comparison-result { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; }
.comparison-result span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #475467; background: #f2f4f7; font-size: 18px; font-weight: 900; }
.comparison-result strong { color: #667085; font-size: 9px; line-height: 1.25; text-align: center; }
.comparison-result.match span { color: #067647; background: var(--green-soft); box-shadow: 0 0 0 4px rgba(18, 183, 106, .08); }
.comparison-result.match strong { color: #067647; }
.comparison-result.mismatch span { color: #b42318; background: var(--red-soft); box-shadow: 0 0 0 4px rgba(240, 68, 56, .08); }
.comparison-result.mismatch strong { color: #b42318; }
.raw-comparison { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }
.raw-comparison-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.raw-comparison-heading > div { display: flex; flex-direction: column; gap: 4px; }
.raw-comparison-heading strong { color: #182230; font-size: 13px; }
.raw-comparison-heading span { color: #667085; font-size: 9px; }
.raw-match-badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #475467 !important; background: #f2f4f7; font-weight: 850; }
.raw-match-badge.ok { color: #067647 !important; background: var(--green-soft); }
.raw-match-badge.error { color: #b42318 !important; background: var(--red-soft); }
.raw-field-table { overflow-x: auto; }
.raw-field-row { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(160px, 1.35fr) 62px minmax(160px, 1.35fr); align-items: center; min-width: 680px; border-bottom: 1px solid #f0f2f5; }
.raw-field-row:last-child { border-bottom: 0; }
.raw-field-row > * { min-width: 0; padding: 10px 12px; }
.raw-field-row > span:first-child { color: #475467; font-size: 10px; font-weight: 750; }
.raw-field-row code { overflow-wrap: anywhere; color: #344054; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.raw-field-header { background: #fcfcfd; }
.raw-field-header strong { color: #667085; font-size: 9px; letter-spacing: .035em; }
.raw-field-row.different { background: #fff7f6; }
.raw-field-row.different code { color: #b42318; font-weight: 800; }
.raw-field-result { justify-self: center; padding: 4px 7px !important; border-radius: 999px; color: #067647; background: var(--green-soft); font-size: 9px !important; font-weight: 850; }
.raw-field-row.different .raw-field-result { color: #b42318; background: var(--red-soft); }
.canonical-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fcfcfd; }
.canonical-inputs details { min-width: 0; padding: 10px 11px; border: 1px solid #e4e7ec; border-radius: 9px; background: white; }
.canonical-inputs summary { cursor: pointer; color: #344054; font-size: 10px; font-weight: 800; }
.canonical-inputs code { display: block; margin-top: 9px; overflow-wrap: anywhere; color: #475467; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; line-height: 1.55; }
.canonical-inputs small { display: block; margin-top: 8px; overflow-wrap: anywhere; color: #667085; font-size: 8px; }
.latest-review { margin-top: 20px; padding: 15px 16px; border: 1px solid #dbe3fb; border-radius: 11px; background: #f8faff; }
.latest-review strong, .latest-review span { display: block; }
.latest-review strong { color: #344054; font-size: 11px; }
.latest-review span { margin-top: 4px; color: #667085; font-size: 9px; }
.latest-review p { margin: 10px 0 0; color: #475467; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.review-decision { margin-top: 18px; padding: 16px; border: 1px solid #dbe3fb; border-radius: 13px; background: #f8faff; box-shadow: 0 8px 24px rgba(40, 84, 215, .06); }
.review-decision.primary-decision { border-color: #fedf89; background: linear-gradient(135deg, #fffcf5, #fff); box-shadow: 0 10px 28px rgba(247, 144, 9, .09); }
.review-decision.secondary-decision { background: #f8faff; }
.decision-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.decision-heading strong { color: #182230; font-size: 14px; }
.decision-heading span { color: #667085; font-size: 10px; text-align: right; }
.decision-note-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 13px; }
.decision-note-label strong { color: #344054; font-size: 10px; }
.decision-note-label span { color: #98a2b3; font-size: 9px; }
.review-decision textarea { width: 100%; min-height: 58px; margin-top: 7px; padding: 10px 12px; resize: vertical; border: 1px solid #d0d5dd; border-radius: 9px; color: #344054; background: white; font: inherit; font-size: 10px; line-height: 1.55; }
.review-decision textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(40, 84, 215, .1); outline: 0; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 14px; }
.decision-button { min-height: 50px; border: 1.5px solid #d0d5dd; border-radius: 10px; background: white; box-shadow: 0 2px 5px rgba(16, 24, 40, .05); font-size: 12px; font-weight: 850; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.decision-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(16, 24, 40, .1); }
.decision-button:focus-visible { outline: 3px solid rgba(40, 84, 215, .22); outline-offset: 2px; }
.decision-button.confirm { color: #067647; border-color: #75e0a7; background: #ecfdf3; }
.decision-button.reject { color: #b42318; border-color: #fda29b; background: #fef3f2; }
.decision-button.defer { color: #344054; border-color: #b9c0ca; background: #f9fafb; }
.decision-button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; }
.decision-guardrail { display: block; margin-top: 8px; color: #667085; font-size: 9px; line-height: 1.5; }

.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(16, 24, 40, .42); backdrop-filter: blur(2px); }
.detail-drawer { position: absolute; top: 0; right: 0; display: flex; width: min(520px, 92vw); height: 100%; flex-direction: column; padding: 26px; background: white; box-shadow: -24px 0 60px rgba(16, 24, 40, .16); animation: drawer-in .2s ease; overflow-y: auto; }
@keyframes drawer-in { from { transform: translateX(20px); opacity: .7; } to { transform: none; opacity: 1; } }
.detail-drawer header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-drawer h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.detail-status { padding: 20px 0 6px; }
.detail-fields { margin: 0; }
.detail-fields > div { padding: 14px 0; border-bottom: 1px solid #f0f2f5; }
.detail-fields dt { margin-bottom: 6px; color: #98a2b3; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-fields dd { margin: 0; overflow-wrap: anywhere; color: #344054; font-size: 11px; }
.detail-fields code { font-family: "SFMono-Regular", Consolas, monospace; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; padding: 11px 15px; border-radius: 10px; color: white; background: #182230; box-shadow: 0 12px 30px rgba(16, 24, 40, .22); font-size: 11px; }
.skeleton-row { height: 64px; border-top: 1px solid #f0f2f5; background: linear-gradient(90deg, transparent, #f7f8fa, transparent); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid, .verify-layout { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list > div { display: grid; grid-template-columns: 32px 1fr; align-items: center; }
  .proof-comparison.three-way { grid-template-columns: 1fr; }
  .trust-icon { margin: 0; }
}

@media (max-width: 820px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 30px 22px; }
  .mobile-brand { display: flex; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -250px; z-index: 80; width: 238px; transition: left .2s ease; box-shadow: 20px 0 50px rgba(16, 24, 40, .2); }
  .sidebar.open { left: 0; }
  .mobile-menu { display: block; }
  .topbar { padding: 10px 18px; }
  .content { padding: 24px 18px 40px; }
  .last-updated { display: none; }
  .records-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-group { align-self: flex-start; }
  .review-steps { grid-template-columns: 1fr; }
  .review-steps small { overflow: visible; text-overflow: clip; white-space: normal; }
}

@media (max-width: 560px) {
  .metric-grid { grid-template-columns: 1fr; }
  .hero-row, .section-heading { align-items: flex-start; flex-direction: column; }
  .network-pill { display: none; }
  .topbar .secondary-button { width: 38px; padding: 0; font-size: 0; }
  .topbar .secondary-button span { font-size: 17px; }
  .verification-grid { grid-template-columns: 1fr; }
  .verification-summary { align-items: flex-start; flex-wrap: wrap; }
  .review-position { width: 100%; margin-left: 59px; }
  .proof-comparison { grid-template-columns: 1fr; }
  .canonical-inputs { grid-template-columns: 1fr; }
  .comparison-result { flex-direction: row; padding: 2px 0; }
  .review-actions { grid-template-columns: 1fr; }
  .decision-heading, .decision-note-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .decision-heading span { text-align: left; }
  .filter-group { width: 100%; overflow-x: auto; }
  .filter-button { flex: 1; white-space: nowrap; }
  .wallet-dialog-shell { align-items: end; padding: 0; }
  .wallet-dialog { width: 100%; max-height: 92vh; padding: 22px 18px 24px; border-radius: 20px 20px 0 0; }
  .walletconnect-code-row { grid-template-columns: 1fr; }
  .walletconnect-code-row .secondary-button { min-height: 42px; }
}
