:root {
  --ink: #17221d;
  --muted: #607067;
  --paper: #f7f4ec;
  --card: #fffdf8;
  --line: #ddd8ca;
  --green: #245d43;
  --green-soft: #e4efe8;
  --amber: #9b6416;
  --amber-soft: #fff1d3;
  --red: #913d35;
  --shadow: 0 18px 45px rgba(39, 54, 45, 0.08);
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(87, 136, 106, 0.13), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.account-name { color: var(--muted); font-size: 13px; font-weight: 750; }
.compact-button { padding: 9px 13px; font-size: 13px; }
.eyebrow, .kicker { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(48px, 7vw, 78px); font-weight: 500; letter-spacing: -.04em; }
h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.subtitle { max-width: 660px; margin: 14px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.connection { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); color: var(--muted); font-size: 13px; white-space: nowrap; }
.connection.on { color: var(--green); border-color: #a9c8b5; background: var(--green-soft); }

.app-nav { display: flex; gap: 6px; margin: -8px 0 28px; padding-bottom: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.nav-item { padding: 9px 13px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; text-decoration: none; }
.nav-item:hover, .nav-item.active { background: var(--green-soft); color: var(--green); filter: none; }
.admin-link { margin-left: auto; }
.admin-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.button-link { display: inline-flex; padding: 11px 15px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.admin-table { min-width: 850px; }
.admin-table td:first-child small { display: block; margin-top: 4px; color: var(--muted); }
.affiliate-table { min-width: 980px; }
.affiliate-access { max-width: 720px; padding: 30px; }
.affiliate-access p:not(.kicker) { color: var(--muted); line-height: 1.55; }
.affiliate-token-form { margin-top: 22px; }
.referral-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px 28px; }
.referral-link-box { display: flex; gap: 9px; width: min(480px, 52%); }
.app-view[hidden] { display: none; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.metric strong { display: block; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.metric span { color: var(--muted); font-size: 13px; }

.history-callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 28px; padding: 24px 28px; border: 1px solid #a9c8b5; border-radius: 18px; background: var(--green-soft); }
.history-callout h2 { font-size: 24px; }
.history-callout p:not(.kicker) { max-width: 720px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.import-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 54px; padding: 32px; }
.import-panel p:not(.kicker) { color: var(--muted); line-height: 1.5; }
.clock-tip { display: grid; gap: 5px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--amber-soft); color: var(--amber); font-size: 13px; line-height: 1.45; }
.faq-link { display: inline-block; margin-top: 13px; color: var(--green); font-size: 13px; font-weight: 750; text-decoration: none; }
.faq-link:hover { text-decoration: underline; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.field-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #cfc8b8; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
select, textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #cfc8b8; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(36,93,67,.14); border-color: var(--green); }
button { border: 0; border-radius: 10px; padding: 13px 17px; background: var(--green); color: white; font: inherit; font-weight: 750; cursor: pointer; white-space: nowrap; }
button:hover { filter: brightness(.95); }
button:disabled { cursor: not-allowed; opacity: .45; }
.secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.text-button { margin-top: 10px; padding: 5px 0; background: transparent; color: var(--green); font-size: 13px; }

.queue-heading { display: flex; align-items: end; justify-content: space-between; margin: 46px 0 16px; }
.queue { min-width: 0; }
.tracking { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 750; word-break: break-all; }
.pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.pill.eligible, .pill.ready { background: var(--green-soft); color: var(--green); }
.pill.needs_review { background: var(--amber-soft); color: var(--amber); }
.pill.policy_exception, .pill.transit_scan_exception { background: #f8dfdc; color: var(--red); }
.pill.not_eligible { background: #efece5; color: #656159; }
.pill.pending { background: #e9eef4; color: #41576f; }
.empty { padding: 48px; border: 1px dashed #c9c2b3; border-radius: 18px; text-align: center; color: var(--muted); }
.message { min-height: 24px; margin: 18px 2px; color: var(--muted); }
.message.error { color: var(--red); }

.table-tools { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }
.table-tools label { margin: 0; }
.table-tools label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.search-field { flex: 1; max-width: 390px; }
.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.shipment-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.shipment-table th { padding: 11px 13px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); color: var(--muted); text-align: left; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.shipment-table td { max-width: 220px; padding: 12px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.shipment-table tr:last-child td { border-bottom: 0; }
.shipment-table tbody .data-row:hover { background: var(--surface-hover); }
.shipment-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.shipment-table .tracking { font-size: 12px; }
.money-cell { font-weight: 800; white-space: nowrap; }
.row-actions { width: 140px; min-width: 115px; }
.review-status {
  display: inline-block;
  max-width: 140px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
}
.table-action { display: block; width: 100%; margin: 4px 0; padding: 7px 9px; border-radius: 7px; font-size: 11px; }
.row-identity { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.row-disclosure { display: inline-grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--green); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .16s ease, background .16s ease; }
.row-disclosure:hover { background: var(--green-soft); filter: none; }
.row-disclosure[aria-expanded="true"] { transform: rotate(90deg); background: var(--green-soft); }
.order-status { display: grid; justify-items: start; gap: 6px; }
.order-status strong { font-size: 13px; }
.tracking-link { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 750; text-decoration: none; word-break: break-all; }
.tracking-link:hover { text-decoration: underline; }
.shipment-link-stack { min-width: 205px; }
.detail-row td { max-width: none; padding: 0; background: var(--surface-expanded); }
.detail-row:hover { background: var(--surface-expanded); }
.detail-panel { padding: 22px 54px; border-bottom: 1px solid var(--line-soft); }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.detail-facts div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.detail-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-facts dd { margin: 0; font-weight: 700; }
.detail-section h4 { margin: 0 0 10px; font-size: 13px; }
.reason-list { margin: 0; padding-left: 19px; color: var(--muted); line-height: 1.55; }
.details-dynamic { margin-top: 20px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); gap: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-placeholder { margin: 0; color: var(--muted); line-height: 1.5; }
.detail-caption { margin: -4px 0 14px; color: var(--muted); font-size: 12px; }
.timeline-list, .history-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline-list li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 10px; min-height: 49px; }
.timeline-list li:not(:last-child)::before { content: ""; position: absolute; top: 12px; bottom: -2px; left: 5px; width: 2px; background: #b8cdbf; }
.timeline-marker { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 3px; border: 3px solid var(--green-soft); border-radius: 50%; background: var(--green); }
.timeline-list strong, .history-list strong { display: block; font-size: 12px; }
.timeline-list span:not(.timeline-marker), .history-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.claim-history-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.claim-evidence-link { margin-left: auto; color: var(--primary-dark); font-size: 10px; font-weight: 750; text-decoration: none; }
.claim-evidence-link:hover { text-decoration: underline; }
.history-list { gap: 11px; }
.history-list li { padding-left: 11px; border-left: 2px solid #b8cdbf; }
.claim-groups { display: grid; gap: 14px; }
.claim-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.claim-group > summary { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: var(--ink); font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.claim-group > summary::-webkit-details-marker { display: none; }
.claim-group > summary::before { display: none; content: none; }
.claim-group-disclosure { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: var(--green); transition: transform .16s ease; }
.claim-group[open] .claim-group-disclosure { transform: rotate(90deg); }
.claim-group > summary > span:first-of-type { margin-right: auto; line-height: 1.2; }
.claim-count { display: inline-grid; min-width: 28px; height: 28px; place-items: center; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; }
.claim-group .table-shell { border-width: 1px 0 0; border-radius: 0; }
.claims-table { min-width: 620px; }
.group-empty { margin: 0; padding: 22px 48px; border-top: 1px solid var(--line); color: var(--muted); }

.analytics-panel { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; background: var(--line); }
.analytics-grid div { padding: 24px; background: var(--card); }
.analytics-grid dt { color: var(--muted); font-size: 12px; }
.analytics-grid dd { margin: 8px 0 0; font-family: Georgia, serif; font-size: 30px; }

dialog { width: min(620px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 32px 90px rgba(20,35,27,.28); }
#settings-dialog { width: min(820px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(23,34,29,.42); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 25px; font-weight: 400; line-height: 1; }
.settings-section { padding: 28px 30px 22px; }
.settings-section.divided { border-top: 1px solid var(--line); }
.settings-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.settings-title-row h3 { margin: 0; font-size: 17px; }
.settings-title-row p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
#settings-form, #claimant-form, #time-zone-form { display: grid; gap: 10px; margin-top: 24px; }
#settings-form label, #claimant-form label, #time-zone-form label { margin-bottom: 0; }
#settings-form button, #claimant-form button, #time-zone-form button { justify-self: start; margin-top: 4px; }
.field-help { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
#shipstation-api-key:disabled { cursor: not-allowed; opacity: 1; }
.security-note { margin: 0 30px; padding: 18px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.security-note p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
dialog > .message { margin: 16px 30px 24px; }
.pairing-box { display: grid; gap: 8px; margin-top: 18px; padding: 17px; border: 1px solid #a9c8b5; border-radius: 14px; background: var(--green-soft); }
.pairing-box label { margin: 4px 0 0; }
.pairing-box textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: none; }
#create-extension-pairing { margin-top: 20px; }
.billing-settings-copy { display: grid; justify-items: start; gap: 10px; margin-top: 20px; }
.billing-settings-copy > p { margin: 0; }
.billing-settings-copy > button { margin: 4px 0 2px; }
.billing-activity-block { width: 100%; margin-top: 12px; }
.billing-activity-block h4 { margin: 0 0 10px; font-size: 14px; }
.billing-activity-table { min-width: 590px; }
.danger-button { margin-top: 20px; border: 1px solid #b76356; background: #fff8f6; color: #8c3428; }
.danger-button:hover { background: #fbe9e5; }
.reset-help { margin-top: 10px; }

.auth-body { min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: 1fr minmax(380px, 480px); align-items: center; gap: clamp(50px, 9vw, 130px); width: min(1060px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; padding: 52px 0; }
.auth-intro h1, .setup-heading h1 { font-size: clamp(58px, 8vw, 92px); }
.auth-proof { display: grid; gap: 6px; max-width: 560px; margin-top: 34px; padding: 18px 20px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: var(--green-soft); color: var(--green); }
.auth-proof span { line-height: 1.5; }
.auth-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 24px 70px rgba(39,54,45,.14); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 7px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.auth-tab { border-radius: 8px; background: transparent; color: var(--muted); }
.auth-tab.active { background: var(--card); color: var(--green); box-shadow: 0 2px 8px rgba(39,54,45,.08); }
.auth-form { display: grid; gap: 10px; padding: 32px; }
.auth-form h2 { margin-top: 2px; }
.auth-form label { margin: 5px 0 0; }
.auth-form button { margin-top: 10px; }
.auth-card > .message { margin: 0 32px 26px; }
.setup-shell { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 100px; }
.setup-heading { margin-bottom: 34px; }
.setup-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 30px; }
.setup-form section { display: grid; align-content: start; gap: 8px; }
.setup-form label { margin: 6px 0 0; }
.setup-form > .security-note, .setup-form > button, .setup-form > .message { grid-column: 1 / -1; margin: 0; }
.setup-form > button { justify-self: start; }
.verification-form { display: grid; gap: 10px; padding: 26px 30px 8px; }
.verification-form label { margin: 5px 0 0; }
.verification-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.manual-outcome-option { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-subtle); cursor: pointer; }
.manual-outcome-option input { flex: 0 0 auto; width: auto; margin-top: 4px; }
.manual-outcome-option strong, .manual-outcome-option small { display: block; }
.manual-outcome-option small { margin-top: 3px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.admin-evidence-actions { align-items: center; justify-content: space-between; margin-top: 2px; }
.admin-evidence-actions .field-help { max-width: 390px; }

.faq-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 100px; }
.faq-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.faq-nav a { color: var(--green); font-weight: 750; text-decoration: none; }
.faq-nav a:hover { text-decoration: underline; }
.faq-intro { margin-bottom: 34px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.faq-item h2 { font-family: inherit; font-size: 19px; font-weight: 800; }
.faq-item p, .faq-item li { color: var(--muted); line-height: 1.65; }
.faq-item ul { margin-bottom: 0; padding-left: 22px; }
.faq-item a { color: var(--green); }

@media (max-width: 780px) {
  .shell { width: min(100% - 24px, 680px); padding-top: 34px; }
  .hero, .import-panel, .history-callout { display: block; }
  .history-callout button { margin-top: 18px; }
  .connection { display: inline-block; margin-top: 22px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .import-panel { padding: 24px; }
  .import-panel form { margin-top: 26px; }
  .field-row { display: grid; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; max-width: none; }
  .detail-panel { padding: 20px; }
  .detail-facts, .detail-columns { grid-template-columns: 1fr; }
  .detail-columns { gap: 20px; }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .dialog-heading, .settings-section { padding-left: 22px; padding-right: 22px; }
  .security-note { margin-left: 22px; margin-right: 22px; }
  dialog > .message { margin-left: 22px; margin-right: 22px; }
  .settings-title-row { display: block; }
  .settings-title-row .pill { margin-top: 12px; }
  .verification-grid { grid-template-columns: 1fr; }
  .faq-shell { width: min(100% - 24px, 680px); padding-top: 30px; }
  .faq-nav { align-items: flex-start; }
  .referral-card { display: block; }
  .referral-link-box { display: grid; width: 100%; margin-top: 20px; }
  .auth-shell { display: block; width: min(100% - 24px, 520px); padding: 36px 0 70px; }
  .auth-intro { margin-bottom: 30px; }
  .auth-proof { margin-top: 22px; }
  .setup-shell { width: min(100% - 24px, 620px); padding-top: 34px; }
  .setup-form { grid-template-columns: 1fr; padding: 22px; }
  .setup-form > .security-note, .setup-form > button, .setup-form > .message { grid-column: 1; }
}

/* Legacy launch visual system disabled.
:root {
  --font-display: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --paper: #fbf7f0;
  --card: #fffdf9;
  --ink: #151515;
  --muted: #68635f;
  --line: #171717;
  --line-soft: #ded6cc;
  --coral: #ff5c61;
  --coral-dark: #db3f47;
  --coral-soft: #ffe3df;
  --green: #137353;
  --green-dark: #0d583f;
  --green-soft: #dff4e8;
  --amber: #8f5a00;
  --amber-soft: #fff0bd;
  --blue: #3159a6;
  --blue-soft: #e7edff;
  --red: #b9333a;
  --red-soft: #ffe3e3;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-small: 3px 3px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 7% 4%, rgba(255, 92, 97, 0.14), transparent 24rem),
    linear-gradient(rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

body,
input,
select,
textarea,
button {
  font-family: var(--font-body);
}

h1,
h2,
h3,
.metric strong,
.analytics-value,
.recovery-value,
.group-count {
  font-family: var(--font-display);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.shell {
  width: min(1280px, calc(100% - 48px));
  padding: 36px 0 96px;
}

.hero {
  align-items: flex-start;
  gap: 36px;
  padding: 26px 30px 30px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
}

.eyebrow,
.kicker {
  margin-bottom: 12px;
  color: var(--coral-dark);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.95;
  text-transform: lowercase;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 0.72em;
  height: 0.72em;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--coral);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
}

.brand-mark::before {
  position: absolute;
  inset: 20% 18% 24% 22%;
  border: 0.075em solid var(--card);
  border-left-width: 0.13em;
  border-radius: 0.06em;
  content: "";
}

.brand-mark::after {
  position: absolute;
  left: 12%;
  bottom: 8%;
  width: 28%;
  height: 28%;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 76% 100%);
  content: "";
}

.subtitle {
  max-width: 700px;
  margin-top: 20px;
  color: #504c48;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
}

.account-actions {
  align-items: center;
  padding-top: 4px;
}

.account-name {
  color: var(--ink);
  font-weight: 800;
}

.connection {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--green-soft);
  box-shadow: var(--shadow-small);
  font-weight: 800;
}

.app-nav {
  margin: 32px 0;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

.nav-item {
  border: 2px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 750;
}

.nav-item:hover {
  border-color: var(--ink);
  background: var(--coral-soft);
}

.nav-item.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--coral);
  box-shadow: 2px 2px 0 var(--ink);
}

.admin-link {
  color: var(--coral-dark);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h3 {
  letter-spacing: -0.025em;
}

.metrics {
  gap: 16px;
}

.metric,
.analytics-card,
.admin-metric,
.affiliate-stat,
.referral-card {
  min-height: 126px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

.metric:nth-child(2) {
  background: var(--coral-soft);
}

.metric:nth-child(3) {
  background: var(--green-soft);
}

.metric:nth-child(4) {
  background: var(--amber-soft);
}

.metric strong,
.analytics-value {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.panel,
.history-callout,
.import-panel,
.queue,
.admin-panel,
.affiliate-panel,
.analytics-panel,
.settings-panel,
.auth-card,
.setup-card,
.faq-card,
.verification-card {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.history-callout {
  background: var(--coral-soft);
}

.clock-tip,
.security-note,
.info-note {
  border: 2px solid var(--ink);
  border-left: 8px solid var(--coral);
  border-radius: 12px;
  color: var(--ink);
  background: var(--amber-soft);
}

input,
select,
textarea {
  border: 2px solid #8d8780;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-weight: 600;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(255, 92, 97, 0.3);
  box-shadow: none;
}

button,
.button,
.compact-button {
  border: 2px solid var(--ink);
  border-radius: 11px;
  color: var(--ink);
  background: var(--coral);
  box-shadow: var(--shadow-small);
  font-weight: 800;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

button:hover,
.button:hover,
.compact-button:hover {
  color: var(--ink);
  background: #ff7478;
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

button:disabled,
.button:disabled {
  border-color: #aaa39c;
  color: #77716b;
  background: #ddd7d0;
  box-shadow: none;
  transform: none;
}

button.secondary,
.button.secondary,
.compact-button.secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--card);
}

.faq-link,
a {
  color: var(--coral-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.message {
  border-left: 6px solid var(--coral);
  color: var(--ink);
  font-weight: 650;
}

.table-wrap,
.shipment-table,
.claim-table,
.admin-table-wrap {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

table thead,
.shipment-table-head,
.claim-table-head {
  color: var(--ink);
  background: #f0e9df;
}

table th,
.shipment-table-head,
.claim-table-head {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

table tbody tr:hover,
.shipment-row:hover,
.claim-row:hover {
  background: #fff8f2;
}

.shipment-row,
.claim-row,
table td {
  border-color: var(--line-soft);
}

.row-disclosure {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
}

.row-disclosure:hover,
.row-disclosure[aria-expanded="true"] {
  background: var(--coral);
}

.shipment-detail,
.claim-detail {
  background: #fff9f2;
}

.detail-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
}

.detail-card:nth-child(1) {
  background: var(--coral-soft);
}

.timeline-dot,
.timeline-item::before {
  background: var(--coral);
}

.timeline-line,
.timeline-item::after {
  background: var(--ink);
}

.pill {
  border: 1.5px solid currentColor;
  font-weight: 800;
}

.pill.eligible,
.pill.ready,
.pill.approved,
.pill.credited {
  color: var(--green-dark);
  background: var(--green-soft);
}

.pill.review,
.pill.needs-review,
.pill.challenged {
  color: var(--amber);
  background: var(--amber-soft);
}

.pill.pending,
.pill.submitted {
  color: var(--blue);
  background: var(--blue-soft);
}

.pill.not-eligible,
.pill.screened-out,
.pill.denied {
  color: #5f5a55;
  background: #ece8e2;
}

.recovery-value,
.money,
[data-recovery] {
  color: var(--green-dark);
  font-weight: 850;
}

.claim-group,
.group-panel {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

.group-heading,
.claim-group-summary {
  background: #f0e9df;
}

.group-count {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--coral);
}

dialog,
.dialog-card,
.settings-dialog,
.pairing-dialog {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
}

dialog::backdrop {
  background: rgba(21, 21, 21, 0.52);
  backdrop-filter: blur(4px);
}

.auth-shell,
.setup-shell {
  width: min(1080px, calc(100% - 40px));
}

.auth-card,
.setup-card {
  padding: clamp(26px, 5vw, 54px);
}

.auth-card::before,
.setup-card::before {
  display: block;
  width: 74px;
  height: 10px;
  margin-bottom: 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  content: "";
}

.faq-shell {
  width: min(960px, calc(100% - 40px));
}

.faq-nav {
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-small);
}

.faq-nav a {
  color: var(--coral-dark);
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .hero {
    padding: 22px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .brand-lockup {
    gap: 11px;
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .account-actions {
    margin-top: 26px;
  }

  .app-nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    white-space: nowrap;
  }

  .metric,
  .analytics-card {
    min-height: 108px;
  }

  .panel,
  .history-callout,
  .queue,
  .auth-card,
  .setup-card {
    box-shadow: 3px 3px 0 var(--ink);
  }
}
*/

/* PromiseDesk restrained visual system */
:root {
  --paper: #f7f9fc;
  --card: #ffffff;
  --ink: #191b20;
  --muted: #626a76;
  --line: #dde3ec;
  --line-soft: #edf1f6;
  --control-line: #cbd5e1;
  --surface-subtle: #f3f6fa;
  --surface-hover: #f7f9fc;
  --surface-expanded: #f8fafc;
  --primary: #1463ff;
  --primary-dark: #0b4edb;
  --primary-soft: #eef4ff;
  --focus-ring: rgb(20 99 255 / 16%);
  --green: #18a875;
  --green-soft: #eaf8f3;
  --amber: #8a5a00;
  --amber-accent: #f2b441;
  --amber-soft: #fff6da;
  --blue: #1463ff;
  --blue-soft: #eef4ff;
  --red: #d9485f;
  --red-soft: #fff0f2;
  --coral: var(--primary);
  --coral-dark: var(--primary-dark);
  --coral-soft: var(--primary-soft);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  background-image: none;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.025em;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: lowercase;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}

.brand-mark::before,
.brand-mark::after {
  content: none;
}

.hero p,
.subtitle {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.connection,
.secondary,
.compact-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: none;
}

.app-nav {
  display: flex;
  gap: 6px;
  margin: 0 0 28px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: none;
}

.nav-item {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.nav-item:hover {
  background: var(--primary-soft);
  transform: none;
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.dashboard-heading {
  margin-bottom: 18px;
}

.dashboard-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.dashboard-heading p:not(.kicker) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.metric {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card) !important;
  box-shadow: none;
}

.metric strong {
  color: var(--ink);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric span {
  display: block;
  margin-top: 2px;
  font-weight: 650;
}

.metric small {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
}

.metric.primary {
  border-color: #b9cdf7;
  background: var(--primary-soft) !important;
}

.metric.primary.recovered {
  border-color: #b8e3d3;
  background: var(--green-soft) !important;
}

.metric.recovered strong {
  color: var(--green);
}

.recovery-footnote {
  margin: 0 2px 24px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.panel,
.history-callout,
.queue,
.claims-group,
.auth-card,
.setup-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: none;
}

.history-callout {
  background: var(--primary-soft);
}

.history-callout[hidden] {
  display: none;
}

.ongoing-recovery {
  background: var(--green-soft);
}

button,
.button,
.primary,
.history-callout button,
.field-row button {
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
  font-weight: 600;
}

button:hover,
.button:hover,
.primary:hover,
.history-callout button:hover,
.field-row button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: none;
}

.secondary,
button.secondary,
.compact-button {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.secondary:hover,
button.secondary:hover,
.compact-button:hover {
  background: var(--primary-soft);
  color: var(--ink);
  border-color: var(--line);
}

input,
select,
textarea {
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--focus-ring);
  border-color: var(--primary);
}

table {
  background: var(--card);
}

thead,
th {
  background: var(--surface-subtle);
}

th {
  color: var(--muted);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
}

td {
  border-color: var(--line-soft);
}

.claim-workflow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 32px;
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.claim-workflow-panel[hidden],
.claim-bulk-tools[hidden] {
  display: none;
}

.claim-workflow-panel h3 {
  margin: 2px 0 8px;
  font-size: 1.2rem;
}

.claim-workflow-copy > p:not(.kicker) {
  color: var(--muted);
}

.chrome-note {
  padding: 12px 14px;
  border: 1px solid #cfe0f7;
  border-radius: 9px;
  background: #f1f6fd;
}

#claim-workflow-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

#claim-workflow-form > label:not(.check-label) {
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-import-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.settings-import-form > label {
  margin-bottom: 0;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 0.88rem;
}

.check-label input,
.claim-select {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.claim-bulk-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-subtle);
}

.claim-bulk-tools button {
  width: auto;
}

.compact-check {
  align-items: center;
  font-weight: 700;
}

.selected-count {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.claim-row-select {
  display: flex;
  align-items: center;
  gap: 11px;
}

.claim-row-select .row-identity {
  flex: 1;
}

.review-status.error {
  color: var(--danger);
}

.status,
.claim-chip {
  border: 0;
  box-shadow: none;
}

.status.eligible,
.status-ready,
.claim-ready {
  color: var(--green);
  background: var(--green-soft);
}

.row-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--primary-dark);
  box-shadow: none;
}

.detail-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--card);
  box-shadow: none;
}

.dialog-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 60px rgb(25 27 32 / 16%);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .hero {
    display: block;
  }

  .account-actions {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-callout {
    display: block;
  }

  .app-nav {
    overflow-x: auto;
  }

  .brand-lockup {
    font-size: 2rem;
  }

  .claim-workflow-panel {
    grid-template-columns: 1fr;
  }

  .claim-bulk-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-count {
    margin-right: 0;
  }
}

@media (max-width: 520px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

.callout-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-actions[hidden] {
  display: none;
}

.activation-dialog {
  width: min(1020px, calc(100% - 32px));
  height: min(820px, calc(100vh - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-height: min(820px, calc(100vh - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 18px;
  box-shadow: 9px 9px 0 var(--outline);
}

.activation-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.activation-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 34px 28px;
  border-right: 2px solid var(--outline);
  background:
    linear-gradient(rgb(255 255 255 / 28%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 28%) 1px, transparent 1px),
    var(--primary);
  background-size: 34px 34px;
  color: #ffffff;
}

.activation-sidebar .kicker,
.activation-sidebar p {
  color: rgb(255 255 255 / 80%);
}

.activation-sidebar h2 {
  margin: 8px 0 12px;
  color: #ffffff;
  font-size: 2.05rem;
  line-height: 1.02;
}

.activation-sidebar p {
  line-height: 1.5;
}

.activation-step-list {
  display: grid;
  gap: 8px;
  margin: 34px 0 auto;
  padding: 0;
  list-style: none;
}

.activation-step-list button {
  width: 100%;
  justify-content: flex-start;
  gap: 11px;
  border-color: transparent !important;
  background: transparent;
  box-shadow: none !important;
  color: rgb(255 255 255 / 78%);
  text-align: left;
  transform: none !important;
}

.activation-step-list button:hover,
.activation-step-list button.active {
  background: rgb(255 255 255 / 14%);
  color: #ffffff;
}

.activation-step-list button span {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 0.75rem;
}

.activation-step-list button.complete span {
  border-color: var(--outline);
  background: var(--green-wash);
  color: #087553;
}

.activation-step-list button.complete span::before {
  content: "✓";
}

.activation-step-list button.complete span {
  font-size: 0;
}

.activation-step-list button.complete span::before {
  font-size: 0.78rem;
}

.activation-progress {
  height: 9px;
  overflow: hidden;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
}

.activation-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--coral);
  transition: width 180ms ease;
}

.activation-progress-copy {
  margin: 8px 0 0;
  font-size: 0.74rem;
  font-weight: 750;
}

.activation-content {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  min-width: 0;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 44px 48px 30px;
}

.activation-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.activation-panel {
  max-width: 610px;
}

.activation-panel[hidden] {
  display: none;
}

.activation-panel h3 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.04;
}

.activation-panel > p:not(.kicker) {
  color: var(--muted);
  line-height: 1.55;
}

.activation-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border: 1.5px solid var(--outline);
  border-radius: 12px;
  background: var(--coral);
  box-shadow: var(--shadow-hard-small);
  color: var(--outline);
}

.activation-icon svg {
  width: 27px;
  height: 27px;
}

.activation-note,
.development-stop {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1.5px solid var(--outline);
  border-radius: 11px;
  background: var(--primary-wash);
  box-shadow: var(--shadow-hard-small);
}

.activation-note.compact {
  margin-top: 20px;
}

.activation-note p,
.development-stop p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.development-stop {
  background: #fff3c7;
}

.activation-check {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
}

.activation-fields {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.activation-fields label,
.kiosk-fieldset legend {
  margin-top: 7px;
  font-size: 0.82rem;
  font-weight: 750;
}

.kiosk-fieldset {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
}

.kiosk-fieldset legend {
  margin-bottom: 8px;
}

.kiosk-fieldset > label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.kiosk-fieldset > label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-wash);
}

.kiosk-fieldset input {
  width: auto;
  margin-top: 3px;
}

.kiosk-fieldset strong,
.kiosk-fieldset small {
  display: block;
}

.kiosk-fieldset small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.activation-status {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding: 16px;
  border: 1.5px solid var(--outline);
  border-radius: 11px;
}

.activation-status > span {
  width: 13px;
  height: 13px;
  flex: none;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--coral);
}

.activation-status.connected {
  background: var(--green-wash);
}

.activation-status.connected > span {
  background: var(--green);
}

.activation-status strong,
.activation-status small {
  display: block;
}

.activation-status small {
  margin-top: 3px;
  color: var(--muted);
}

.activation-button-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.activation-content > .message {
  min-height: 22px;
  margin-top: auto;
  padding-top: 18px;
}

.activation-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 780px) {
  .callout-actions {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column-reverse;
  }

  .activation-dialog {
    height: calc(100vh - 18px);
    height: calc(100dvh - 18px);
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
  }

  .activation-layout {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .activation-sidebar {
    display: block;
    padding: 24px;
    border-right: 0;
    border-bottom: 2px solid var(--outline);
  }

  .activation-sidebar h2,
  .activation-sidebar > div:first-child > p:last-child,
  .activation-step-list {
    display: none;
  }

  .activation-progress {
    margin-top: 8px;
  }

  .activation-content {
    max-height: none;
    padding: 34px 24px 24px;
  }

  .activation-button-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* PromiseDesk identity layer: playful at the edges, focused in the workspace. */
:root {
  --outline: #202630;
  --primary-bright: #2f70ff;
  --primary-wash: #dfe9ff;
  --green-wash: #dcf7ed;
  --shadow-hard: 4px 4px 0 var(--outline);
  --shadow-hard-small: 2px 2px 0 var(--outline);
}

body:not(.auth-body) {
  background:
    radial-gradient(circle at 8% 0%, rgb(20 99 255 / 8%), transparent 26rem),
    linear-gradient(180deg, #f5f8ff 0, var(--paper) 280px);
}

.hero-brand {
  max-width: 690px;
}

.brand-note,
.dashboard-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 750;
}

.brand-note svg,
.dashboard-microcopy svg {
  width: 16px;
  height: 16px;
}

.connection,
button:not(.nav-item):not(.row-disclosure):not(.icon-button):not(.text-button),
.button {
  border: 1.5px solid var(--outline);
  border-radius: 10px;
  box-shadow: var(--shadow-hard-small);
  transition: box-shadow 130ms ease, transform 130ms ease, background 130ms ease;
}

button:not(.nav-item):not(.row-disclosure):not(.icon-button):not(.text-button):hover,
.button:hover {
  box-shadow: none;
  transform: translate(2px, 2px);
}

button:disabled,
.button:disabled {
  border-color: var(--control-line);
  box-shadow: none;
  transform: none;
}

.connection {
  color: var(--ink);
}

.connection.on {
  border-color: var(--outline);
  background: var(--green-wash);
  color: #087553;
}

.app-nav {
  gap: 8px;
  padding: 8px;
  border: 1.5px solid var(--outline);
  border-radius: 14px;
  box-shadow: var(--shadow-hard-small);
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 9px;
  font-weight: 750;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.nav-item:hover {
  border-color: #a8bce8;
  background: var(--primary-soft);
}

.nav-item.active {
  border-color: var(--outline);
  background: var(--primary);
  box-shadow: var(--shadow-hard-small);
  color: #ffffff;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-microcopy {
  margin-top: 11px;
}

.metric {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  padding: 26px 24px 22px;
  border: 1.5px solid var(--outline);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
}

.metric::after {
  position: absolute;
  right: -23px;
  bottom: -35px;
  width: 96px;
  height: 96px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.1;
  content: "";
}

.metric:nth-child(1),
.metric.primary {
  background: var(--primary-wash) !important;
}

.metric:nth-child(2) {
  background: #ffffff !important;
}

.metric:nth-child(3),
.metric.recovered,
.metric.primary.recovered {
  background: var(--green-wash) !important;
}

.metric-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1.5px solid currentColor;
  border-radius: 9px;
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-hard-small);
}

.metric.recovered .metric-icon {
  color: #087553;
}

.metric strong {
  padding-right: 50px;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
}

.metric span {
  color: var(--ink);
  font-weight: 750;
}

.metric small {
  color: var(--muted);
  font-weight: 600;
}

.history-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  padding: 26px;
  border: 1.5px solid var(--outline);
  border-radius: 14px;
  background: var(--primary-wash);
  box-shadow: var(--shadow-hard);
}

.ongoing-recovery {
  background: var(--green-wash);
}

.callout-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  align-self: start;
  border: 1.5px solid var(--outline);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-hard-small);
  color: var(--primary-dark);
}

.ongoing-recovery .callout-icon {
  color: #087553;
}

.callout-icon svg {
  width: 28px;
  height: 28px;
}

.callout-copy {
  min-width: 0;
}

.history-callout h2 {
  margin-top: 3px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.table-shell,
.claim-group {
  border: 1.5px solid var(--outline);
  border-radius: 13px;
  box-shadow: var(--shadow-hard-small);
}

.shipment-table th,
.claim-group > summary {
  background: #eef3fb;
}

.shipment-table tbody .data-row:hover {
  background: #f3f7ff;
}

.row-disclosure {
  border: 1.5px solid var(--outline);
  border-radius: 9px;
  box-shadow: 1.5px 1.5px 0 var(--outline);
  color: var(--primary-dark);
}

.row-disclosure:hover,
.row-disclosure[aria-expanded="true"] {
  background: var(--primary-wash);
}

.pill {
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.pill::before {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pill.eligible,
.pill.ready,
.pill.approved,
.pill.credited {
  border-color: #6cc6a4;
  background: #e5faf2;
  color: #087553;
}

.pill.needs_review,
.pill.review,
.pill.challenged,
.pill.policy_exception,
.pill.transit_scan_exception {
  border-color: #deb85f;
  background: #fff5d6;
  color: #785000;
}

.pill.pending,
.pill.prepared,
.pill.queued,
.pill.submitting,
.pill.submitted,
.pill.submission_uncertain,
.pill.already_submitted {
  border-color: #91b1f1;
  background: #eaf1ff;
  color: #174fae;
}

.pill.not_eligible,
.pill.screened_out,
.pill.denied,
.pill.paused {
  border-color: #bdc5d0;
  background: #eef1f5;
  color: #525d6b;
}

.pill.failed {
  border-color: #ef9dac;
  background: var(--red-soft);
  color: #a32f44;
}

.claim-count {
  border: 1px solid #8caef2;
  background: var(--primary-wash);
  color: var(--primary-dark);
}

.auth-body {
  background:
    radial-gradient(circle at 88% 10%, rgb(24 168 117 / 18%), transparent 24rem),
    radial-gradient(circle at 5% 92%, rgb(20 99 255 / 16%), transparent 28rem),
    linear-gradient(rgb(20 99 255 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(20 99 255 / 9%) 1px, transparent 1px),
    #f3f6ff;
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
}

.auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(350px, 420px);
  gap: clamp(52px, 7vw, 88px);
  width: min(1180px, calc(100% - 48px));
  padding: 42px 0;
}

.auth-intro {
  min-width: 0;
}

.auth-intro .brand-lockup {
  font-size: clamp(2.8rem, 4.8vw, 4.35rem);
}

.auth-intro .brand-mark {
  width: 0.72em;
  height: 0.72em;
}

.auth-punchline {
  max-width: 700px;
  margin: 28px 0 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-intro > .subtitle {
  max-width: 600px;
  font-size: 1.02rem;
}

.auth-visual {
  position: relative;
  height: 280px;
  margin-top: 10px;
}

.auth-visual > img {
  position: absolute;
  inset: -18px auto auto 30px;
  width: min(540px, 92%);
  height: 300px;
}

.auth-float {
  position: absolute;
  z-index: 1;
  padding: 7px 11px;
  border: 1.5px solid var(--outline);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-hard-small);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-float-late {
  top: 45px;
  left: 3px;
  background: #fff5d6;
  transform: rotate(-3deg);
}

.auth-float-ready {
  top: 118px;
  right: 20px;
  background: var(--primary-wash);
  transform: rotate(2deg);
}

.auth-float-paid {
  right: 62px;
  bottom: 18px;
  background: var(--green-wash);
  transform: rotate(-2deg);
}

.auth-proof {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 610px;
  margin-top: 8px;
  padding: 15px 17px;
  border: 1.5px solid var(--outline);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-hard-small);
  color: var(--ink);
}

.auth-proof svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: #087553;
}

.auth-proof strong,
.auth-proof span {
  display: block;
}

.auth-proof strong {
  margin-bottom: 2px;
}

.auth-proof span {
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-proof span strong {
  color: var(--ink);
}

.auth-card {
  align-self: center;
  padding: 0;
  border: 2px solid var(--outline);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 8px 8px 0 var(--outline);
}

.auth-tabs {
  gap: 7px;
  padding: 8px;
  border-bottom: 1.5px solid var(--outline);
  background: var(--primary-wash);
}

.auth-tab {
  border: 1.5px solid transparent;
  box-shadow: none;
}

.auth-tab.active {
  border-color: var(--outline);
  background: #ffffff;
  box-shadow: var(--shadow-hard-small);
  color: var(--primary-dark);
}

.auth-form {
  gap: 9px;
  padding: 32px;
}

.auth-form h2 {
  margin-top: 5px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.auth-form input {
  border: 1.5px solid var(--outline);
  border-radius: 9px;
}

.auth-form button[type="submit"] {
  margin-top: 14px;
  padding-block: 14px;
}

@media (max-width: 980px) {
  .auth-shell {
    display: block;
    width: min(100% - 32px, 620px);
    padding: 30px 0 70px;
  }

  .auth-intro {
    margin-bottom: 42px;
  }

  .auth-intro .brand-lockup {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }

  .auth-visual {
    height: 250px;
  }

  .auth-visual > img {
    height: 270px;
  }
}

@media (max-width: 760px) {
  .app-nav {
    box-shadow: none;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 142px;
    box-shadow: var(--shadow-hard-small);
  }

  .history-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    box-shadow: var(--shadow-hard-small);
  }

  .history-callout button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .auth-body {
    background-size: auto, auto, 40px 40px, 40px 40px, auto;
  }

  .auth-punchline {
    font-size: 2.25rem;
  }

  .auth-visual {
    height: 215px;
  }

  .auth-visual > img {
    left: 0;
    width: 100%;
    height: 230px;
  }

  .auth-float {
    font-size: 0.65rem;
  }

  .auth-float-ready {
    right: 0;
  }

  .auth-float-paid {
    right: 26px;
  }

  .auth-card {
    box-shadow: 5px 5px 0 var(--outline);
  }

  .auth-form {
    padding: 26px 22px;
  }

  .nav-item {
    gap: 6px;
    padding-inline: 10px;
  }
}
