:root {
  color-scheme: light;
  --brand: #104687;
  --brand-dark: #103660;
  --ink: #18324e;
  --muted: #52657b;
  --line: #dce5ee;
  --washed: #f3f6fa;
  --green: #20714c;
  --warn: #946011;
  --red: #a72b42;
  font: 15px/1.5 "Instrument Sans", "Segoe UI", Arial, sans-serif;
  background: var(--washed);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
.shell, .hero-inner, .mast-inner { width: min(1320px, calc(100% - 64px)); margin: auto; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.identity { display: flex; align-items: center; min-width: 0; gap: 16px; padding: 8px 0; text-decoration: none; line-height: 1.3; }
.identity img { flex: none; width: 134px; height: 46px; object-fit: contain; }
.company { min-width: 0; overflow-wrap: anywhere; }
.company > strong, .company > span { display: block; }
.company > span { color: var(--muted); font-size: .83rem; margin-top: 3px; }
.account { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.hero { background: linear-gradient(115deg, #103963, #104687 72%, #14569b); color: #fff; }
.hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0 36px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; }
.hero-description { margin-top: 10px; color: #e2edf9; }
.connection { border: 1px solid #ffffff65; border-radius: 8px; flex-shrink: 0; padding: 10px 14px; display: flex; align-items: center; gap: 9px; font-size: .87rem; }
.connection span:first-child { width: 8px; height: 8px; border-radius: 50%; background: #f6cc7b; }
.connection span:first-child.live { background: #80dfb5; }
.navigation { background: #fff; border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; gap: 30px; overflow: auto; }
.nav-inner button { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); white-space: nowrap; padding: 16px 3px 13px; font-weight: 600; }
.nav-inner button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.content { padding-top: 23px; }
.panel, .access-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; }
.panel-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
h2 { font-size: 1.28rem; letter-spacing: -.018em; }
h3 { font-size: 1.1rem; }
.panel-head p, .upload-box p, .access-card p { color: var(--muted); margin-top: 3px; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
label { display: grid; gap: 5px; font-size: .88rem; font-weight: 600; }
input, select { color: var(--ink); width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #c8d5e3; border-radius: 7px; background: #fff; height: 42px; }
input:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #85b9ef; outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
input[type="file"] { height: auto; background: #fff; }
.primary, .secondary, .plain { border: 1px solid transparent; border-radius: 7px; padding: 9px 13px; min-height: 42px; font-weight: 650; white-space: nowrap; }
.primary { background: var(--brand); color: #fff; }
.primary:hover:enabled { background: var(--brand-dark); }
.secondary { background: #fff; border-color: #c5d3e2; color: var(--brand); }
.secondary:hover:enabled, .plain:hover:enabled { background: #eef4fa; }
.plain { background: transparent; color: var(--brand); }
.captcha { height: 42px; min-width: 104px; padding: 2px 7px; }
.captcha img { display: block; width: 98px; height: 35px; object-fit: contain; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.advanced { margin: 12px 0; color: var(--brand); }
summary { width: fit-content; cursor: pointer; font-weight: 600; }
.advanced .filter-grid { margin-top: 10px; color: var(--ink); }
.action-line, .toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.action-line { margin-top: 14px; }
.check { display: flex; align-items: center; gap: 6px; margin-right: 7px; }
.inline-search { width: min(100%, 265px); }
.filter-label { min-width: 185px; }
.message { color: var(--muted); margin-top: 9px; font-size: .88rem; }
.message:empty { display: none; }
.message[data-tone="error"] { color: var(--red); }
.message[data-tone="ok"] { color: var(--green); }
.message[data-tone="warn"] { color: var(--warn); }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box { background: #f6f9fc; border: 1px solid var(--line); border-radius: 9px; padding: 16px; }
.upload-box label, .upload-box button { margin-top: 12px; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; }
.metrics:empty { display: none; }
.metrics div { display: grid; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; min-width: 112px; }
.metrics strong { color: var(--brand); font-size: 1.22rem; }
.metrics span { color: var(--muted); font-size: .78rem; }
.table-wrap { overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .83rem; }
th, td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #2a4b6e; background: #edf3f9; white-space: nowrap; }
td { vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: #f9fbfd; }
.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.state { font-weight: 630; color: var(--brand); }
.state[data-state="match"], .state[data-state="ready"] { color: var(--green); }
.state[data-state="difference"], .state[data-state="taxOnly"], .state[data-state="erpOnly"] { color: var(--red); }
.state[data-state="review"], .state[data-state="unverified"], .state[data-state="duplicate"], .state[data-state="partial"] { color: var(--warn); }
.empty { color: var(--muted); padding: 23px 10px; text-align: center; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding-top: 8px; color: var(--muted); font-size: .81rem; }
.pagination button { min-height: 32px; padding: 4px 8px; }
.footer { border-top: 1px solid var(--line); margin: 12px auto 0; padding: 15px 0 22px; color: var(--muted); font-size: .83rem; }
.access-section { min-height: calc(100vh - 145px); display: grid; align-items: start; justify-items: center; padding: min(12vh, 100px) 15px 36px; }
.access-card { width: min(100%, 470px); padding: 27px; }
.access-card h1 { font-size: 2.15rem; color: var(--brand-dark); }
.access-card p { margin: 10px 0; }
.access-card form { display: grid; gap: 12px; margin-top: 18px; }
.access-card .access-note { border-top: 1px solid var(--line); padding-top: 12px; margin: 17px 0 0; font-size: .83rem; }
dialog { width: min(540px, calc(100% - 28px)); padding: 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
dialog::backdrop { background: #10274180; }
dialog p { color: var(--muted); margin: 8px 0; }
dialog .captcha-row { margin-top: 12px; }
@media (max-width: 780px) {
  .shell, .hero-inner, .mast-inner { width: calc(100% - 30px); }
  .mast-inner { min-height: 64px; gap: 8px; }
  .identity { gap: 6px; font-size: .8rem; }
  .identity img { width: 95px; }
  .account { font-size: .76rem; }
  .hero-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 15px; }
  .panel-head { flex-wrap: wrap; }
  .upload-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 17px; font-size: .87rem; }
}
