:root {
  color-scheme: light dark;
  --pd-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pd-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --pd-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --paper: #030303;
  --card: #090909;
  --ink: #f8f7f4;
  --muted: #9f9b98;
  --line: rgb(255 255 255 / 13%);
  --line-soft: rgb(255 255 255 / 8%);
  --control-line: rgb(255 255 255 / 20%);
  --surface-subtle: #0d0d0d;
  --surface-hover: rgb(255 100 0 / 6%);
  --surface-expanded: #070707;
  --primary: #ff6400;
  --primary-dark: #ff8a3d;
  --primary-bright: #ff6400;
  --primary-soft: rgb(255 100 0 / 10%);
  --primary-wash: #160a04;
  --focus-ring: rgb(255 100 0 / 22%);
  --green: #57d99b;
  --green-soft: rgb(87 217 155 / 10%);
  --green-wash: #07130e;
  --amber: #ffa500;
  --amber-accent: #ffa500;
  --amber-soft: rgb(255 165 0 / 10%);
  --blue: #ff6400;
  --blue-soft: rgb(255 100 0 / 10%);
  --red: #ff746e;
  --red-soft: rgb(255 116 110 / 10%);
  --outline: rgb(255 255 255 / 18%);
  --shadow: 0 24px 80px rgb(0 0 0 / 35%);
  --shadow-hard: none;
  --shadow-hard-small: none;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body,
body:not(.auth-body),
body.auth-body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgb(255 100 0 / 12%), transparent 30rem),
    #030303;
  font-family: var(--pd-sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 3.2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3.2%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a { color: var(--ink); }

h1,
h2 {
  color: var(--ink);
  font-family: var(--pd-serif);
  font-weight: 400;
  letter-spacing: -0.04em;
}

h3,
h4 { color: var(--ink); }

.shell {
  width: min(1180px, calc(100% - 48px));
  padding: 28px 0 84px;
}

.hero,
.admin-hero {
  align-items: center;
  min-height: 100px;
  margin: 0 0 28px;
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--line);
}

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

.brand-lockup,
.platform-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--ink);
  font-family: var(--pd-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
}

.brand-mark,
.platform-brand img {
  display: block;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  padding: 8px;
  border: 1px solid rgb(255 100 0 / 48%);
  border-radius: 9px;
  background: rgb(255 100 0 / 4%);
  object-fit: contain;
}

.platform-brand small {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--pd-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.admin-hero .platform-brand { margin-bottom: 26px; }
.admin-hero h1 { font-size: clamp(46px, 7vw, 72px); }

.subtitle,
.hero p,
.admin-hero .subtitle { color: var(--muted); }

.eyebrow,
.kicker {
  color: #d4cec9;
  font-family: var(--pd-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px rgb(255 100 0 / 80%);
  content: "";
  vertical-align: 1px;
}

.brand-note,
.dashboard-microcopy {
  color: var(--muted);
  font-family: var(--pd-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.brand-note svg,
.dashboard-microcopy svg { color: var(--primary); }

.account-name { color: var(--muted); font-family: var(--pd-mono); font-weight: 500; }

button,
.button,
.button-link,
.connection,
button:not(.nav-item):not(.row-disclosure):not(.icon-button):not(.text-button) {
  border: 1px solid rgb(255 100 0 / 55%);
  border-radius: 9px;
  background: var(--primary);
  box-shadow: none;
  color: #070707;
  font-family: var(--pd-sans);
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover,
.button-link:hover,
button:not(.nav-item):not(.row-disclosure):not(.icon-button):not(.text-button):hover {
  border-color: #ff9b59;
  background: #ff7b27;
  box-shadow: none;
  filter: none;
  transform: translateY(-1px);
}

button:disabled { opacity: .38; transform: none; }

.secondary,
button.secondary,
.compact-button,
.connection,
.button-link.secondary {
  border-color: var(--line);
  background: rgb(255 255 255 / 3%);
  color: #d2ceca;
}

.secondary:hover,
button.secondary:hover,
.compact-button:hover,
.connection:hover,
.button-link.secondary:hover {
  border-color: rgb(255 100 0 / 55%);
  background: rgb(255 100 0 / 8%);
  color: var(--ink);
}

.connection.on {
  border-color: rgb(87 217 155 / 38%);
  background: var(--green-soft);
  color: var(--green);
}

.app-nav {
  gap: 4px;
  margin: 0 0 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(8 8 8 / 94%);
  box-shadow: none;
}

.nav-item {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-family: var(--pd-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-item:hover {
  border-color: var(--line);
  background: rgb(255 255 255 / 3%);
  color: var(--ink);
}

.nav-item.active {
  border-color: rgb(255 100 0 / 48%);
  background: rgb(255 100 0 / 12%);
  box-shadow: none;
  color: var(--primary);
}

.nav-item svg { color: currentColor; }

.dashboard-heading { margin-bottom: 22px; }
.dashboard-heading h2 { font-size: clamp(38px, 5vw, 58px); }
.dashboard-heading p:not(.kicker) { color: var(--muted); }

.metrics { gap: 12px; margin-bottom: 14px; }

.metric,
.metric:nth-child(1),
.metric:nth-child(2),
.metric:nth-child(3),
.metric.primary,
.metric.recovered,
.metric.primary.recovered {
  min-height: 152px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(12 12 12 / 98%), rgb(6 6 6 / 98%)) !important;
  box-shadow: none;
}

.metric.primary { border-color: rgb(255 100 0 / 32%); }
.metric.recovered,
.metric.primary.recovered { border-color: rgb(87 217 155 / 28%); }
.metric::after { border-color: var(--primary); opacity: .08; }
.metric strong { color: var(--ink); font-family: var(--pd-serif); font-size: clamp(34px, 5vw, 46px); font-weight: 400; }
.metric.recovered strong { color: var(--green); }
.metric span,
.metric small { color: var(--muted); }
.metric span { font-family: var(--pd-mono); font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.metric-icon { border: 0; background: transparent; box-shadow: none; color: var(--primary); }
.metric.recovered .metric-icon { color: var(--green); }

.recovery-footnote,
.message,
.field-help { color: var(--muted); }

.panel,
.history-callout,
.queue,
.claim-group,
.analytics-panel,
.faq-item,
.auth-card,
.setup-form {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgb(11 11 11 / 98%), rgb(5 5 5 / 98%));
  box-shadow: none;
}

.history-callout {
  border-color: rgb(255 100 0 / 32%);
  background: linear-gradient(125deg, rgb(255 100 0 / 12%), rgb(9 8 7 / 96%));
}

.ongoing-recovery {
  border-color: rgb(87 217 155 / 28%);
  background: linear-gradient(125deg, rgb(87 217 155 / 10%), rgb(7 10 8 / 96%));
}

.callout-icon {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
}

.ongoing-recovery .callout-icon { color: var(--green); }
.history-callout p:not(.kicker) { color: var(--muted); }
.history-callout h2 { font-family: var(--pd-serif); font-weight: 400; }

input,
select,
textarea,
.auth-form input {
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: #050505;
  color: var(--ink);
  box-shadow: none;
}

input::placeholder,
textarea::placeholder { color: #6e6966; }

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

label { color: #d2ceca; }

.clock-tip,
.security-note {
  border: 1px solid rgb(255 165 0 / 25%);
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: #e9bf72;
}

.faq-link,
.tracking-link,
.claim-evidence-link,
.text-button { color: var(--primary-dark); }

.table-shell,
.claim-group {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #070707;
  box-shadow: none;
}

.shipment-table th,
.claim-group > summary {
  border-color: var(--line);
  background: #0c0c0c;
  color: #8e8986;
  font-family: var(--pd-mono);
}

.shipment-table td,
.detail-panel,
.group-empty { border-color: var(--line-soft); }
.shipment-table tbody .data-row:hover { background: var(--surface-hover); }
.detail-row td,
.detail-row:hover { background: #050505; }
.detail-facts div { border-color: var(--line); background: #0b0b0b; }

.row-disclosure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--primary);
}

.row-disclosure:hover,
.row-disclosure[aria-expanded="true"] { background: var(--primary-soft); }
.claim-group > summary::before { color: var(--primary); }
.claim-count { border: 1px solid rgb(255 100 0 / 35%); background: var(--primary-soft); color: var(--primary); }

.pill {
  border: 1px solid currentColor;
  background: transparent;
  font-family: var(--pd-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pill.eligible,
.pill.ready,
.pill.approved,
.pill.credited { border-color: rgb(87 217 155 / 42%); background: var(--green-soft); color: var(--green); }

.pill.needs_review,
.pill.review,
.pill.challenged,
.pill.policy_exception,
.pill.transit_scan_exception { border-color: rgb(255 165 0 / 40%); background: var(--amber-soft); color: var(--amber); }

.pill.pending,
.pill.prepared,
.pill.queued,
.pill.submitting,
.pill.submitted,
.pill.submission_uncertain,
.pill.already_submitted { border-color: rgb(255 100 0 / 35%); background: var(--primary-soft); color: var(--primary-dark); }

.pill.not_eligible,
.pill.screened_out,
.pill.denied,
.pill.paused { border-color: var(--line); background: rgb(255 255 255 / 4%); color: #aaa5a0; }
.pill.failed { border-color: rgb(255 116 110 / 40%); background: var(--red-soft); color: var(--red); }

.analytics-grid { background: var(--line); }
.analytics-grid div { background: #080808; }
.analytics-grid dd { color: var(--ink); font-family: var(--pd-serif); }

dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #080808;
  color: var(--ink);
  box-shadow: 0 30px 100px rgb(0 0 0 / 70%);
}

dialog::backdrop { background: rgb(0 0 0 / 72%); backdrop-filter: blur(5px); }
.dialog-heading,
.settings-section.divided { border-color: var(--line); }
.icon-button { border-color: var(--line); background: transparent; color: var(--muted); }
.icon-button:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.pairing-box { border-color: rgb(87 217 155 / 28%); background: var(--green-soft); }
.danger-button { border-color: rgb(255 116 110 / 45%); background: var(--red-soft); color: var(--red); }

.auth-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
  gap: clamp(50px, 7vw, 92px);
  width: min(1180px, calc(100% - 48px));
  padding: 50px 0;
}

.auth-intro .brand-lockup { font-size: 30px; }
.auth-intro .brand-mark { width: 39px; height: 39px; }

.auth-punchline {
  max-width: 680px;
  margin-top: 54px;
  font-family: var(--pd-serif);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .96;
}

.auth-intro > .subtitle { color: var(--muted); }
.auth-visual { opacity: .88; filter: saturate(.88); }

.auth-float {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0b;
  box-shadow: 0 14px 40px rgb(0 0 0 / 38%);
  color: #d5d0cc;
  font-family: var(--pd-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-float-late { border-color: rgb(255 100 0 / 40%); background: #160a04; }
.auth-float-ready,
.auth-float-paid { border-color: rgb(87 217 155 / 30%); background: #07130e; }

.auth-proof {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
  box-shadow: none;
  color: var(--ink);
}

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

.auth-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(8 8 8 / 96%);
  box-shadow: 0 28px 90px rgb(0 0 0 / 42%);
}

.auth-tabs { border-color: var(--line); background: #050505; }
.auth-tab { border: 1px solid transparent; background: transparent; box-shadow: none; color: var(--muted); }
.auth-tab.active { border-color: rgb(255 100 0 / 42%); background: var(--primary-soft); box-shadow: none; color: var(--primary); }
.auth-form h2 { font-family: var(--pd-serif); font-weight: 400; }

.setup-shell { width: min(1060px, calc(100% - 48px)); }
.setup-heading .platform-brand { margin-bottom: 48px; }
.setup-heading h1 { font-size: clamp(50px, 7vw, 76px); }
.setup-form { border-color: var(--line); background: rgb(8 8 8 / 96%); }
.setup-form section { padding-right: 8px; }

.faq-shell { width: min(920px, calc(100% - 48px)); }
.faq-nav { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.faq-nav > a:not(.platform-brand) { color: var(--muted); font-family: var(--pd-mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.faq-nav .platform-brand:hover { text-decoration: none; }
.faq-intro h1 { font-size: clamp(48px, 7vw, 76px); }
.faq-item { padding: 28px 30px; }
.faq-item h2 { font-family: var(--pd-serif); font-size: 25px; font-weight: 400; }
.faq-item p,
.faq-item li { color: var(--muted); }
.faq-item a { color: var(--primary-dark); }

.affiliate-access { border-color: rgb(255 100 0 / 28%); }
.referral-card { border-color: rgb(87 217 155 / 24%); }
.referral-link-box input { font-family: var(--pd-mono); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 780px) {
  .shell,
  .auth-shell,
  .setup-shell,
  .faq-shell { width: min(100% - 24px, 680px); }

  .hero,
  .admin-hero { align-items: flex-start; }
  .auth-shell { display: block; }
  .auth-intro { margin-bottom: 42px; }
  .auth-visual { height: 230px; }
  .metrics { grid-template-columns: 1fr; }
  .history-callout { grid-template-columns: auto minmax(0, 1fr); }
  .history-callout button { grid-column: 1 / -1; }
  .setup-form { grid-template-columns: 1fr; }
  .setup-form > .security-note,
  .setup-form > button,
  .setup-form > .message { grid-column: 1; }
}

@media (max-width: 520px) {
  body::before { background-size: 44px 44px; }
  .shell { padding-top: 18px; }
  .brand-lockup,
  .platform-brand { font-size: 23px; }
  .brand-mark,
  .platform-brand img { width: 34px; height: 34px; flex-basis: 34px; }
  .auth-punchline { font-size: 43px; }
  .auth-visual { height: 205px; }
  .auth-card { box-shadow: none; }
  .faq-item { padding: 23px 21px; }
}

/* Platform refinement: calmer controls, a practical light workspace, and shared Iconify geometry. */

.account-actions {
  align-self: flex-start;
  gap: 8px;
  min-height: 40px;
  padding-top: 2px;
  flex-wrap: nowrap;
}

.account-name {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 8px;
  white-space: nowrap;
}

.account-control,
.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  white-space: nowrap;
}

.account-control svg,
.button-with-icon svg,
.icon-button svg,
.row-disclosure svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.icon-button svg { width: 20px; height: 20px; }
.row-disclosure svg { width: 18px; height: 18px; }

button,
.button,
.button-link,
.connection,
button:not(.nav-item):not(.row-disclosure):not(.icon-button):not(.text-button) {
  border-color: var(--control-line);
  background: transparent;
  color: var(--ink);
}

button:hover,
.button:hover,
.button-link:hover,
button:not(.nav-item):not(.row-disclosure):not(.icon-button):not(.text-button):hover {
  border-color: rgb(255 100 0 / 62%);
  background: var(--primary-soft);
  color: var(--ink);
}

button.primary,
.button.primary,
.auth-form button[type="submit"],
.setup-form > button[type="submit"],
#complete-activation,
#activation-next {
  border-color: var(--primary);
  background: var(--primary);
  color: #070707;
}

button.primary:hover,
.button.primary:hover,
.auth-form button[type="submit"]:hover,
.setup-form > button[type="submit"]:hover,
#complete-activation:hover,
#activation-next:hover {
  border-color: #ff8d45;
  background: #ff7b27;
  color: #070707;
}

.auth-tab,
.auth-tab:hover {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  transform: none;
}

.auth-tab.active,
.auth-tab.active:hover {
  border-color: rgb(255 100 0 / 42%);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.metric::after {
  display: none;
  content: none;
}

.standalone-theme-toggle {
  position: fixed;
  z-index: 10;
  top: 22px;
  right: 24px;
}

.faq-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.faq-actions > a {
  color: var(--muted);
  font-family: var(--pd-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.auth-tracker {
  position: relative;
  overflow: hidden;
  min-height: 282px;
  margin: 30px 0 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(145deg, rgb(12 12 12 / 98%), rgb(5 5 5 / 98%));
  background-size: 44px 44px, 44px 44px, auto;
}

.auth-tracker::before,
.auth-tracker::after {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  content: "";
  pointer-events: none;
}

.auth-tracker::before {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--primary);
  border-left: 1px solid var(--primary);
}

.auth-tracker::after {
  right: 12px;
  bottom: 12px;
  border-right: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
}

.auth-tracker-heading {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--pd-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-tracker-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-tracker-heading svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.tracker-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgb(87 217 155 / 90%);
}

.tracker-map {
  display: block;
  width: 100%;
  height: 248px;
  margin-top: 24px;
}

.tracker-country {
  fill: rgb(255 255 255 / 2.5%);
  stroke: rgb(255 255 255 / 15%);
  stroke-width: .05;
  vector-effect: non-scaling-stroke;
}

.tracker-route-base,
.tracker-route-progress {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tracker-route-base {
  stroke: rgb(255 100 0 / 25%);
  stroke-width: 3;
}

.tracker-route-progress {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-dasharray: .12 .07;
  animation: tracker-route-flow 3.2s linear infinite;
}

.tracker-stop circle:not(.tracker-halo) {
  fill: var(--paper);
  stroke: var(--primary);
  stroke-width: 3;
}

.tracker-stop-finish circle:not(.tracker-halo) {
  fill: var(--green);
  stroke: var(--green);
}

.tracker-halo {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: tracker-pulse 2.4s ease-out infinite;
}

.tracker-stop-two .tracker-halo { animation-delay: .35s; }
.tracker-stop-three .tracker-halo { animation-delay: .7s; }
.tracker-stop-four .tracker-halo { animation-delay: 1.05s; }
.tracker-stop-finish .tracker-halo { stroke: var(--green); animation-delay: 1.4s; }

.tracker-endpoints {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 20px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  color: var(--muted);
  font-family: var(--pd-mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tracker-endpoints span:nth-child(2) { text-align: center; }
.tracker-endpoints span:last-child { text-align: right; }
.tracker-endpoints b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 9px; font-weight: 600; }

@keyframes tracker-route-flow {
  to { stroke-dashoffset: -.38; }
}

@keyframes tracker-pulse {
  0% { opacity: .72; transform: scale(.45); }
  70%, 100% { opacity: 0; transform: scale(1.2); }
}

html[data-theme="light"] {
  color-scheme: light;
  --paper: #f5f1ea;
  --card: #fffdf9;
  --ink: #17130f;
  --muted: #6f6862;
  --line: rgb(42 31 23 / 16%);
  --line-soft: rgb(42 31 23 / 10%);
  --control-line: rgb(42 31 23 / 24%);
  --surface-subtle: #f0ebe3;
  --surface-hover: rgb(210 78 0 / 7%);
  --surface-expanded: #faf7f2;
  --primary: #e65700;
  --primary-dark: #ae3f00;
  --primary-bright: #e65700;
  --primary-soft: rgb(230 87 0 / 10%);
  --primary-wash: #fff0e5;
  --focus-ring: rgb(230 87 0 / 18%);
  --green: #16825c;
  --green-soft: rgb(22 130 92 / 10%);
  --green-wash: #edf8f3;
  --amber: #9d6500;
  --amber-accent: #9d6500;
  --amber-soft: rgb(157 101 0 / 10%);
  --red: #b63f3b;
  --red-soft: rgb(182 63 59 / 9%);
  --outline: rgb(42 31 23 / 20%);
  --shadow: 0 24px 70px rgb(54 35 19 / 10%);
}

html[data-theme="light"] body,
html[data-theme="light"] body:not(.auth-body),
html[data-theme="light"] body.auth-body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgb(230 87 0 / 10%), transparent 31rem),
    var(--paper);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgb(42 31 23 / 4.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(42 31 23 / 4.5%) 1px, transparent 1px);
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .kicker,
html[data-theme="light"] label,
html[data-theme="light"] .secondary,
html[data-theme="light"] button.secondary,
html[data-theme="light"] .compact-button,
html[data-theme="light"] .connection,
html[data-theme="light"] .button-link.secondary { color: #4f4842; }

html[data-theme="light"] .app-nav,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .setup-form {
  background: rgb(255 253 249 / 94%);
}

html[data-theme="light"] .nav-item:hover { background: rgb(42 31 23 / 4%); }

html[data-theme="light"] .metric,
html[data-theme="light"] .metric:nth-child(1),
html[data-theme="light"] .metric:nth-child(2),
html[data-theme="light"] .metric:nth-child(3),
html[data-theme="light"] .metric.primary,
html[data-theme="light"] .metric.recovered,
html[data-theme="light"] .metric.primary.recovered {
  background: linear-gradient(145deg, #fffefa, #f9f5ee) !important;
}

html[data-theme="light"] .panel,
html[data-theme="light"] .queue,
html[data-theme="light"] .claim-group,
html[data-theme="light"] .analytics-panel,
html[data-theme="light"] .faq-item {
  background: linear-gradient(145deg, #fffefa, #f9f5ee);
}

html[data-theme="light"] .history-callout {
  background: linear-gradient(125deg, rgb(230 87 0 / 9%), #fffdf9 62%);
}

html[data-theme="light"] .ongoing-recovery {
  background: linear-gradient(125deg, rgb(22 130 92 / 9%), #fffdf9 62%);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .auth-form input {
  background: #fffefa;
  color: var(--ink);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #8f8780; }

html[data-theme="light"] .table-shell,
html[data-theme="light"] .claim-group {
  background: #fffefa;
  box-shadow: 0 12px 40px rgb(54 35 19 / 6%);
}

html[data-theme="light"] .shipment-table th,
html[data-theme="light"] .claim-group > summary {
  background: #eee8df;
  color: #625b54;
}

html[data-theme="light"] .shipment-table tbody .data-row:hover,
html[data-theme="light"] .shipment-table tbody .data-row.expanded {
  background: var(--surface-hover);
}

html[data-theme="light"] .detail-row td,
html[data-theme="light"] .detail-row:hover { background: #faf7f2; }
html[data-theme="light"] .detail-facts div { background: #fffefa; }
html[data-theme="light"] .analytics-grid div { background: #fffefa; }
html[data-theme="light"] dialog { background: #fffdfa; box-shadow: 0 30px 100px rgb(42 31 23 / 24%); }
html[data-theme="light"] dialog::backdrop { background: rgb(42 31 23 / 38%); }
html[data-theme="light"] .auth-tabs { background: #f2ede5; }
html[data-theme="light"] .auth-proof { background: rgb(255 255 255 / 58%); }
html[data-theme="light"] .pill.not_eligible,
html[data-theme="light"] .pill.screened_out,
html[data-theme="light"] .pill.denied,
html[data-theme="light"] .pill.paused { background: rgb(42 31 23 / 4%); color: #6d655f; }

html[data-theme="light"] .auth-tracker {
  background:
    linear-gradient(rgb(42 31 23 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(42 31 23 / 4%) 1px, transparent 1px),
    linear-gradient(145deg, #fffefa, #f8f3ec);
  background-size: 44px 44px, 44px 44px, auto;
}

html[data-theme="light"] .tracker-country {
  fill: rgb(42 31 23 / 3.5%);
  stroke: rgb(42 31 23 / 24%);
}

html[data-theme="light"] .tracker-stop circle:not(.tracker-halo) { fill: #fffefa; }

@media (max-width: 980px) {
  .account-actions { flex-wrap: wrap; justify-content: flex-start; }
  .hero .account-actions,
  .admin-hero .account-actions { margin-top: 18px; }
}

@media (max-width: 780px) {
  .standalone-theme-toggle { top: 14px; right: 14px; }
  .auth-tracker { min-height: 258px; }
  .tracker-map { height: 226px; }
}

@media (max-width: 520px) {
  .account-actions { gap: 6px; }
  .account-name { width: 100%; padding-left: 0; }
  .account-control { flex: 1 1 auto; }
  .auth-tracker { min-height: 235px; }
  .auth-tracker-heading { right: 18px; left: 18px; }
  .tracker-map { height: 203px; }
  .tracker-endpoints { right: 18px; bottom: 17px; left: 18px; }
}

/* Final merchant workspace polish */
.auth-tracker {
  overflow: visible;
  min-height: 0;
  margin: 22px 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-tracker::before,
.auth-tracker::after {
  display: none;
  content: none;
}

.tracker-map {
  width: 100%;
  height: 228px;
  margin: 0;
}

.tracker-country {
  fill: none;
  stroke: rgb(255 255 255 / 16%);
}

html[data-theme="light"] .auth-tracker { background: transparent; }
html[data-theme="light"] .tracker-country {
  fill: none;
  stroke: rgb(42 31 23 / 22%);
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m19 9-7 6-7-6' stroke='%23a8a19c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: calc(100% - 16px) 50% !important;
  background-size: 16px 16px !important;
}

html[data-theme="light"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m19 9-7 6-7-6' stroke='%23564e48' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.row-disclosure {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.row-disclosure:hover,
.row-disclosure[aria-expanded="true"] {
  border: 0;
  background: transparent;
  box-shadow: none;
}

input[type="checkbox"],
.claim-select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  place-content: center;
  border: 1.5px solid var(--control-line);
  border-radius: 4px;
  background: var(--card);
  box-shadow: none;
  vertical-align: middle;
}

input[type="checkbox"]::before,
.claim-select::before {
  width: 12px;
  height: 10px;
  border: 0;
  background: var(--primary);
  clip-path: polygon(14% 44%, 0 59%, 43% 100%, 100% 19%, 84% 4%, 42% 69%);
  content: "";
  transform: scale(0);
  transform-origin: center;
  transition: transform 120ms ease;
}

input[type="checkbox"]:checked,
.claim-select:checked,
input[type="checkbox"]:indeterminate,
.claim-select:indeterminate {
  border-color: var(--primary);
  background: transparent;
}

input[type="checkbox"]:checked::before,
.claim-select:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:indeterminate::before,
.claim-select:indeterminate::before {
  width: 9px;
  height: 2px;
  border: 0;
  background: var(--primary);
  clip-path: none;
  transform: scale(1);
}

input[type="checkbox"]:focus-visible,
.claim-select:focus-visible {
  border-color: var(--primary);
  outline: 3px solid var(--focus-ring);
}

html[data-theme="light"] input[type="checkbox"],
html[data-theme="light"] .claim-select { background: #fffefa; }

html[data-theme="light"] input[type="checkbox"]:checked,
html[data-theme="light"] .claim-select:checked,
html[data-theme="light"] input[type="checkbox"]:indeterminate,
html[data-theme="light"] .claim-select:indeterminate { background: #fffefa; }

.claim-bulk-tools {
  min-height: 0;
  margin: 12px 0 18px;
  padding: 9px 11px;
  gap: 16px;
  border-radius: 11px;
}

.bulk-selection-summary,
.bulk-actions {
  display: flex;
  align-items: center;
}

.bulk-selection-summary {
  min-width: 0;
  gap: 12px;
  margin-right: auto;
}

.bulk-actions { gap: 8px; }

.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  white-space: nowrap;
}

.selected-count {
  display: inline-flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}

.claim-bulk-tools button {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
}

.queue.claims-queue {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.claims-queue .claim-groups { gap: 18px; }
.claims-queue .claim-group {
  margin: 0;
  border-radius: 13px;
}

html[data-theme="light"] .queue.claims-queue {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.claim-group > summary::before {
  display: none;
  content: none;
}

.claim-group-disclosure {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--primary);
  transition: transform 160ms ease;
}

.claim-group[open] .claim-group-disclosure { transform: rotate(90deg); }

.claim-group > summary {
  justify-content: flex-start;
  gap: 10px;
}

.claim-group > summary > span:first-of-type {
  margin-right: auto;
  line-height: 1.2;
}

.group-description {
  margin: 0;
  padding: 0 48px 18px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.group-description + .table-shell,
.group-description + .group-empty {
  border-top: 1px solid var(--line-soft);
}

#settings-dialog { width: min(820px, calc(100% - 32px)); }

#shipstation-api-key.locked-credential {
  font-family: var(--pd-mono);
  letter-spacing: .08em;
}

#shipstation-api-key.masked-credential-entry {
  -webkit-text-security: disc;
}

.claim-evidence-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.claim-evidence-links .claim-evidence-link { margin-left: 0; }

#shipstation-api-key:disabled,
html[data-theme="light"] #shipstation-api-key:disabled {
  border-color: var(--line);
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

.auth-recovery-visual {
  position: relative;
  width: 100%;
  min-height: 352px;
  margin: 30px 0 20px;
  padding: 20px 24px;
  isolation: isolate;
  background-image:
    linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.auth-recovery-visual::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 82% 44%, rgb(255 100 0 / 13%), transparent 52%);
  content: "";
}

.auth-recovery-panel {
  position: relative;
  width: min(100%, 580px);
  margin-left: auto;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgb(15 13 12 / 96%), rgb(5 5 5 / 94%));
  box-shadow: 0 28px 70px rgb(0 0 0 / 50%), inset 0 1px rgb(255 255 255 / 3.5%);
}

.auth-tech-corner {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-color: var(--primary);
  opacity: .72;
}

.auth-tech-corner.top-left { top: 13px; left: 17px; border-top: 1px solid; border-left: 1px solid; }
.auth-tech-corner.top-right { top: 13px; right: 17px; border-top: 1px solid; border-right: 1px solid; }
.auth-tech-corner.bottom-left { bottom: 13px; left: 17px; border-bottom: 1px solid; border-left: 1px solid; }
.auth-tech-corner.bottom-right { right: 17px; bottom: 13px; border-right: 1px solid; border-bottom: 1px solid; }

.auth-recovery-topline,
.auth-recovery-shipment,
.auth-recovery-trace li,
.auth-recovery-result {
  display: flex;
  align-items: center;
}

.auth-recovery-topline {
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: #77736f;
  font-family: var(--pd-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-recovery-live,
.auth-ready-chip { display: inline-flex; align-items: center; gap: 7px; }
.auth-recovery-live { color: #aaa5a0; }
.auth-recovery-live i,
.auth-ready-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgb(87 217 155 / 70%); }

.auth-recovery-shipment { gap: 11px; padding: 15px 0; }
.auth-recovery-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid rgb(255 100 0 / 38%); border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.auth-recovery-icon svg { width: 20px; height: 20px; }
.auth-recovery-shipment small,
.auth-recovery-shipment strong,
.auth-recovery-trace small,
.auth-recovery-trace strong,
.auth-recovery-result small,
.auth-recovery-result strong { display: block; }
.auth-recovery-shipment small { margin-bottom: 3px; color: #77736f; font-family: var(--pd-mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.auth-recovery-shipment strong { font-family: var(--pd-mono); font-size: 12px; font-weight: 500; }
.auth-service-chip { margin-left: auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-family: var(--pd-mono); font-size: 8px; letter-spacing: .1em; }

.auth-recovery-trace { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.auth-recovery-trace li { gap: 10px; min-height: 46px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgb(255 255 255 / 2%); }
.auth-recovery-trace li.active { border-color: rgb(255 100 0 / 42%); background: rgb(255 100 0 / 7%); }
.auth-trace-marker { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #77736f; font-family: var(--pd-mono); font-size: 8px; }
.auth-recovery-trace .complete .auth-trace-marker { border-color: rgb(87 217 155 / 34%); color: var(--green); }
.auth-recovery-trace .active .auth-trace-marker { border-color: rgb(255 100 0 / 48%); color: var(--primary); }
.auth-recovery-trace small { margin-bottom: 3px; color: #77736f; font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.auth-recovery-trace strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.auth-recovery-trace em { margin-left: auto; color: #8f8a85; font-family: var(--pd-mono); font-size: 8px; font-style: normal; text-transform: uppercase; }
.auth-recovery-trace .active em { color: var(--primary); }

.auth-recovery-result { justify-content: space-between; margin-top: 11px; padding: 12px 14px; border: 1px solid rgb(255 100 0 / 22%); border-radius: 10px; background: linear-gradient(110deg, rgb(255 100 0 / 9%), rgb(255 165 0 / 2.5%)); }
.auth-recovery-result small { margin-bottom: 2px; color: #8d8883; font-family: var(--pd-mono); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.auth-recovery-result strong { font-family: var(--pd-serif); font-size: 27px; font-weight: 400; line-height: 1; }
.auth-ready-chip { padding: 6px 9px; border: 1px solid rgb(87 217 155 / 28%); border-radius: 999px; color: var(--green); font-size: 9px; font-weight: 700; text-transform: uppercase; }

html[data-theme="light"] .auth-recovery-visual {
  background-image:
    linear-gradient(rgb(42 31 23 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(42 31 23 / 5%) 1px, transparent 1px);
}

html[data-theme="light"] .auth-recovery-panel { background: linear-gradient(145deg, rgb(255 254 250 / 98%), rgb(248 244 237 / 96%)); box-shadow: 0 28px 70px rgb(54 35 19 / 16%), inset 0 1px rgb(255 255 255 / 70%); }
html[data-theme="light"] .auth-recovery-topline,
html[data-theme="light"] .auth-recovery-shipment small,
html[data-theme="light"] .auth-recovery-trace small,
html[data-theme="light"] .auth-recovery-result small { color: #746d66; }
html[data-theme="light"] .auth-recovery-live { color: #5f5852; }
html[data-theme="light"] .auth-recovery-trace li { background: rgb(255 255 255 / 55%); }
html[data-theme="light"] .auth-recovery-trace li.active { background: rgb(230 87 0 / 7%); }

.timeline-list li {
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 13px;
  min-height: 55px;
}

.timeline-list li:not(:last-child)::before {
  top: 13px;
  bottom: -2px;
  left: 3px;
  width: 1px;
  background: var(--line);
}

.timeline-marker {
  width: 7px;
  height: 7px;
  margin: 5px 0 0;
  border: 0;
  border-radius: 50%;
  background: #77736f;
  box-shadow: 0 0 0 3px rgb(119 115 111 / 10%);
}

.timeline-list li:first-child .timeline-marker {
  background: #aaa5a0;
}

.timeline-list li > div { padding-top: 0; }
html[data-theme="light"] .timeline-marker { background: #9b948d; box-shadow: 0 0 0 3px rgb(111 104 98 / 9%); }
html[data-theme="light"] .timeline-list li:first-child .timeline-marker { background: #6f6862; }

::selection {
  background: rgb(255 100 0 / 28%);
  color: var(--ink);
}

* { -webkit-tap-highlight-color: transparent; }

dialog:focus,
dialog:focus-visible { outline: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 1000px #050505 !important;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}

html[data-theme="light"] input:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill:hover,
html[data-theme="light"] input:-webkit-autofill:focus {
  box-shadow: inset 0 0 0 1000px #fffefa !important;
  -webkit-text-fill-color: var(--ink);
}

@media (max-width: 780px) {
  .auth-recovery-visual { min-height: 352px; }
  .claim-bulk-tools { align-items: stretch; }
  .bulk-selection-summary,
  .bulk-actions { width: 100%; }
  .bulk-actions { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .auth-recovery-visual { min-height: 338px; padding-inline: 8px; }
  .auth-tech-corner { display: none; }
  .auth-recovery-shipment strong { font-size: 10px; }
  .auth-recovery-trace em { display: none; }
  .bulk-selection-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bulk-actions button { flex: 1 1 100%; }
}

/* Guided activation: calm, compact, and usable without a page-length modal. */
#activation-dialog {
  width: min(1120px, calc(100% - 40px));
  height: min(780px, calc(100dvh - 40px));
  max-height: min(780px, calc(100dvh - 40px));
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 28px 90px rgb(0 0 0 / 58%);
}

#activation-dialog::backdrop,
#settings-dialog::backdrop {
  background: rgb(0 0 0 / 78%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.activation-layout {
  grid-template-columns: 250px minmax(0, 1fr);
}

.activation-sidebar {
  padding: 28px 24px 24px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 7%) 1px, transparent 1px),
    #c94e00;
  background-size: 42px 42px;
}

.activation-sidebar h2 {
  margin: 8px 0 10px;
  font-size: 1.78rem;
  line-height: 1.05;
}

.activation-sidebar > div:first-child > p:last-child {
  margin: 0;
  font-size: .87rem;
}

.activation-step-list {
  gap: 5px;
  margin-top: 26px;
}

.activation-step-list button {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .84rem;
}

.activation-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
  padding: 0;
}

.activation-close {
  z-index: 3;
  top: 18px;
  right: 22px;
}

.activation-panel {
  width: 100%;
  max-width: none;
  overflow-y: auto;
  padding: 34px 56px 30px 42px;
  scrollbar-gutter: stable;
}

.activation-panel h3 {
  max-width: 720px;
  margin: 7px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.activation-panel > p:not(.kicker) {
  max-width: 720px;
  margin: 0;
  font-size: .94rem;
}

.activation-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgb(255 100 0 / 48%);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
}

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

.activation-note,
.development-stop {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  box-shadow: none;
}

.activation-fields {
  gap: 8px;
  margin-top: 18px;
}

.activation-check {
  margin-top: 16px;
  padding: 12px 14px;
}

.extension-setup-steps {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.extension-setup-steps > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
}

.extension-setup-steps > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 100 0 / 48%);
  border-radius: 50%;
  color: var(--primary-dark);
  font-family: var(--pd-mono);
  font-size: .72rem;
  font-weight: 700;
}

.extension-setup-steps strong {
  display: block;
  margin-top: 3px;
  font-size: .9rem;
}

.extension-setup-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.42;
}

.extension-setup-steps .button-link {
  margin-top: 10px;
}

.activation-help {
  margin-top: 9px;
  color: var(--muted);
  font-size: .82rem;
}

.activation-help summary {
  width: fit-content;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 700;
}

.activation-help ol {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding-left: 20px;
  line-height: 1.42;
}

.activation-help code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--pd-mono);
  font-size: .76rem;
}

.kiosk-help {
  margin: 0 0 6px;
}

.kiosk-help p {
  max-width: 690px;
  margin: 8px 0 4px;
  line-height: 1.5;
}

.kiosk-fieldset {
  margin-top: 10px;
}

.kiosk-fieldset > label {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.activation-status {
  max-width: 760px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.activation-button-row {
  margin-top: 12px;
}

.activation-content > .message {
  min-height: 0;
  margin: 0;
  padding: 0 42px 8px;
}

.activation-footer {
  position: relative;
  z-index: 2;
  padding: 14px 42px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

html[data-theme="light"] #activation-dialog {
  box-shadow: 0 28px 80px rgb(54 35 19 / 20%);
}

html[data-theme="light"] #activation-dialog::backdrop,
html[data-theme="light"] #settings-dialog::backdrop {
  background: rgb(36 27 20 / 42%);
}

html[data-theme="light"] .activation-sidebar {
  background:
    linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px),
    #e65700;
  background-size: 42px 42px;
}

@media (max-width: 780px) {
  #activation-dialog {
    width: calc(100% - 18px);
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
  }

  .activation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .activation-sidebar {
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .activation-panel {
    padding: 28px 24px 24px;
  }

  .activation-content > .message {
    padding-inline: 24px;
  }

  .activation-footer {
    padding: 12px 24px;
  }

  .extension-setup-steps > li {
    padding: 11px;
  }
}
