:root {
  --navy: #173247;
  --navy-2: #254c62;
  --ink: #243744;
  --muted: #6d7e88;
  --line: #dce6ea;
  --canvas: #f3f7f8;
  --paper: #ffffff;
  --teal: #1d9a92;
  --teal-soft: #dff4f0;
  --amber: #d4942e;
  --amber-soft: #fff0d5;
  --coral: #d5685c;
  --coral-soft: #fbe5e1;
  --blue: #4d7fa2;
  --blue-soft: #e4eef5;
  --violet: #7b70a8;
  --violet-soft: #eeebf8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { min-height: 72px; padding: 14px 32px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; }
.brand-wrap { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 39px; height: 39px; border-radius: 10px; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 20px; font-weight: 800; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 8px; font-size: 17px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.eyebrow.light { color: #bcd1d9; font-size: 9px; }
.top-title { font-size: 18px; line-height: 1.1; font-weight: 700; margin-top: 3px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.read-only-pill { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 9px; color: #d8e9ec; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.text-button { border: 0; background: transparent; color: #d8e9ec; font-size: 12px; padding: 5px 0; }
.text-button:hover { color: #fff; }
.page-shell { width: min(1260px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
h1, h2 { color: var(--navy); }
h1 { margin: 4px 0 5px; font-size: 29px; letter-spacing: -.6px; }
h2 { margin: 0; font-size: 16px; letter-spacing: -.15px; }
.lede, .panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: flex-end; gap: 13px; }
.last-sync { color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.primary-button { border: 0; border-radius: 7px; padding: 10px 14px; background: var(--teal); color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 2px 4px rgba(29,154,146,.16); }
.primary-button:hover { background: #147d76; }
.primary-button:disabled { cursor: wait; opacity: .62; }
.full { width: 100%; margin-top: 16px; }
.alert { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-size: 12px; }
.alert.info { background: var(--blue-soft); border-color: #bdd2df; color: var(--navy-2); }
.alert.error { background: var(--coral-soft); border-color: #efc2bb; color: #8f3e35; }
.hidden { display: none !important; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric-card, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 10px rgba(23,50,71,.04); }
.metric-card { position: relative; min-height: 151px; padding: 17px 17px 14px; overflow: hidden; }
.metric-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--teal); }
.metric-card.amber-accent::before { background: var(--amber); }
.metric-card.blue-accent::before { background: var(--blue); }
.metric-card.coral-accent::before { background: var(--coral); }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.metric-value { margin-top: 9px; color: var(--navy); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -1.3px; }
.metric-value span { color: var(--muted); font-size: 19px; letter-spacing: -.3px; }
.metric-note { margin-top: 8px; color: var(--muted); font-size: 11px; }
.metric-link { position: absolute; left: 17px; bottom: 13px; border: 0; background: transparent; padding: 0; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .4px; }
.amber-accent .metric-link { color: var(--amber); } .blue-accent .metric-link { color: var(--blue); } .coral-accent .metric-link { color: var(--coral); }
.two-column { display: grid; grid-template-columns: 1.3fr 1fr; gap: 13px; margin-top: 13px; }
.panel { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.panel-tag { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .8px; white-space: nowrap; }
.coverage-headline { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 13px; color: var(--muted); font-size: 12px; }
.coverage-headline strong { color: var(--navy); font-size: 31px; line-height: 1; letter-spacing: -1px; }
.coverage-bar { display: flex; width: 100%; height: 19px; border-radius: 6px; overflow: hidden; background: #edf1f2; }
.coverage-bar > div { transition: width .25s ease; }
.bar-live { background: var(--teal); } .bar-not-live { background: var(--amber); } .bar-never { background: var(--coral); } .bar-unknown { background: var(--violet); }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin-top: 13px; }
.legend-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); padding: 6px 0; text-align: left; font-size: 11px; }
.legend-item:hover span:not(.legend-dot) { color: var(--navy); }
.legend-item strong { color: var(--navy); font-size: 12px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; } .legend-dot.live { background: var(--teal); } .legend-dot.not-live { background: var(--amber); } .legend-dot.never { background: var(--coral); } .legend-dot.unknown { background: var(--violet); }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 11px; border-radius: 7px; background: var(--teal-soft); color: var(--navy-2); font-size: 11px; }
.callout strong { color: var(--teal); white-space: nowrap; }
.definition-list { display: grid; gap: 13px; }
.definition-list > div { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #edf1f2; }
.definition-list > div:last-child { border-bottom: 0; }
.definition-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; font-size: 12px; font-weight: 800; }
.definition-icon.teal { background: var(--teal-soft); color: var(--teal); } .definition-icon.amber { background: var(--amber-soft); color: var(--amber); } .definition-icon.blue { background: var(--blue-soft); color: var(--blue); }
.definition-list p { margin: 0; color: var(--navy); font-size: 12px; line-height: 1.35; } .definition-list p span { color: var(--muted); font-size: 11px; }
.table-panel { margin-top: 13px; padding-bottom: 8px; }
.table-heading { align-items: center; margin-bottom: 12px; }
.search-wrap input, .login-card input { width: 100%; border: 1px solid #cbd9de; border-radius: 7px; background: #fff; color: var(--ink); padding: 9px 11px; outline: none; }
.search-wrap input { width: 300px; font-size: 11px; }
.search-wrap input:focus, .login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,154,146,.12); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 12px; }
.filter-tab { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); padding: 7px 11px; font-size: 11px; }
.filter-tab:hover, .filter-tab.active { background: var(--teal-soft); border-color: #a5d8d3; color: #147970; font-weight: 800; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 840px; }
th { padding: 9px 10px; background: #edf4f5; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .6px; font-size: 9px; white-space: nowrap; }
td { padding: 10px; border-top: 1px solid #e7eef0; color: var(--ink); font-size: 11px; vertical-align: middle; }
td strong { color: var(--navy); }
.order-id { color: var(--navy-2); font-weight: 800; } .secondary { color: var(--muted); font-size: 10px; margin-top: 2px; }
.status-chip { display: inline-block; border-radius: 999px; padding: 4px 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-chip.unfilled { background: var(--teal-soft); color: #147970; } .status-chip.hold { background: var(--amber-soft); color: #91621a; }
.posting-chip { display: inline-block; border-radius: 999px; padding: 4px 7px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.posting-chip.live { background: var(--teal-soft); color: #147970; } .posting-chip.not_live { background: var(--amber-soft); color: #91621a; } .posting-chip.never_posted { background: var(--coral-soft); color: #a84c42; } .posting-chip.unknown { background: var(--violet-soft); color: #5e5688; }
.empty-state { padding: 28px 10px; color: var(--muted); text-align: center; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 13px 2px 0; color: var(--muted); font-size: 10px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--canvas); }
.login-card { width: min(390px, 100%); padding: 31px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(23,50,71,.08); }
.login-card .brand-mark { margin-bottom: 15px; } .login-card h1 { font-size: 25px; margin-top: 5px; } .login-copy { color: var(--muted); font-size: 12px; margin: 0 0 20px; }
.login-card label { display: block; color: var(--navy); font-size: 11px; font-weight: 800; margin-bottom: 6px; }
.login-foot { color: var(--muted); font-size: 10px; margin: 18px 0 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .metrics-grid { grid-template-columns: 1fr 1fr; } .two-column { grid-template-columns: 1fr; } .page-heading { align-items: flex-start; flex-direction: column; } .heading-actions { align-items: center; width: 100%; justify-content: space-between; } }
@media (max-width: 600px) { .topbar { padding: 13px 16px; } .top-actions { gap: 8px; } .read-only-pill { display: none; } .page-shell { width: min(100% - 24px, 1260px); padding-top: 23px; } h1 { font-size: 24px; } .metrics-grid { grid-template-columns: 1fr; } .heading-actions { align-items: stretch; flex-direction: column; } .last-sync { text-align: left; } .search-wrap input { width: 100%; } .table-heading { align-items: stretch; flex-direction: column; } .page-footer { flex-direction: column; gap: 4px; } }
