* { box-sizing: border-box; }
:root { color-scheme: dark; }
:root[data-tema="claro"] { color-scheme: light; }
/* A brand may bring its typefaces, the shape of its titles, buttons and labels, and an accent (/brand.css). Every var() here falls back to what the house has always had. */
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font: 15px/1.55 var(--font-body, "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "DejaVu Sans", sans-serif); }
header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2.8vw; border-bottom: 1px solid hsl(var(--border)); }
.brand { color: inherit; font-family: var(--font-brand, inherit); font-weight: var(--brand-weight, 800); font-size: var(--brand-size, 13px); letter-spacing: var(--brand-tracking, .09em); text-decoration: none; text-transform: var(--brand-transform, uppercase); }
.brand span { font-family: var(--font-body, inherit); font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 16px; color: hsl(var(--muted-foreground)); }
.brand-logo { height: 30px; width: auto; margin-right: 12px; border-radius: 6px; vertical-align: middle; }
.badge { display: inline-block; color: hsl(var(--info)); background: hsl(var(--info) / .08); border: 1px solid hsl(var(--info) / .25); border-radius: var(--label-radius, 5px); padding: 6px 10px; font-family: var(--font-label, inherit); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
main { width: 100%; padding: 28px 2.8vw 20px; }
.eyebrow { font-family: var(--font-label, inherit); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: hsl(var(--info)); }
h1 { font-family: var(--font-heading, inherit); font-size: clamp(38px, 5vw, 84px); letter-spacing: var(--heading-tracking, -.055em); line-height: var(--heading-leading, 1.04); margin: 14px 0 20px; font-weight: var(--heading-weight, 650); }
h2 { font-family: var(--font-heading, inherit); font-size: 20px; line-height: var(--subheading-leading, 1.35); margin: 0 0 12px; }
h3 { font-family: var(--font-heading, inherit); font-size: 15px; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
.lead, .small, small, .action p, .dashboard-entry > p { color: hsl(var(--muted-foreground)); }
.small, small { font-size: 12px; overflow-wrap: anywhere; }
.card { min-width: 0; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-md); padding: 24px; }
label { display: block; margin-bottom: 6px; }
input, textarea { width: 100%; min-width: 0; border: 1px solid hsl(var(--input)); border-radius: var(--radius-sm); padding: 12px; color: inherit; background: hsl(var(--background)); font: inherit; }
button { cursor: pointer; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 11px 16px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font: var(--button-weight, 600) 13px/1.4 var(--font-button, "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "DejaVu Sans", sans-serif); letter-spacing: var(--button-tracking, normal); text-transform: var(--button-transform, none); }
button:hover:not(:disabled) { filter: var(--button-hover, brightness(1.15)); }
/* The call to action, the highlighted words of a title and a small label: where a brand puts its accent. Without one they are a button, a title and a label like the rest. */
button.cta { background: var(--cta-background, hsl(var(--primary))); color: var(--cta-foreground, hsl(var(--primary-foreground))); }
button.cta:hover:not(:disabled) { background: var(--cta-hover, var(--cta-background, hsl(var(--primary)))); box-shadow: var(--cta-shadow, none); }
.highlight { background: var(--highlight, linear-gradient(currentColor, currentColor)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eyebrow.accent { color: var(--accent-label, hsl(var(--info))); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
:focus-visible { outline: 3px solid hsl(var(--info)); outline-offset: 3px; }
.row { display: flex; gap: 10px; align-items: center; }
/* The public page: the key box, centered, and nothing else. */
.gate { min-height: 100vh; display: grid; place-content: center; width: min(420px, 100%); margin: 0 auto; padding: 16px; }
.gate button { flex-shrink: 0; }
#gate-message { min-height: 1.5em; color: hsl(var(--muted-foreground)); }
.gateway-heading { padding: 3vh 0 20px; }
.gateway-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; min-height: 360px; }
.mcp-main { padding: clamp(24px, 3vw, 48px); border-color: hsl(var(--info) / .4); background: linear-gradient(120deg, hsl(var(--info) / .06), transparent 60%), hsl(var(--card)); }
.mcp-main h2 { margin-top: 24px; font-size: clamp(24px, 2.5vw, 36px); letter-spacing: -.03em; }
.mcp-main label { margin-top: 24px; font-size: 12px; }
.mcp-main > code { display: block; background: hsl(var(--background)); padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 6px; overflow-wrap: anywhere; margin-bottom: 10px; }
.prompt { border-top: 1px solid hsl(var(--border)); padding-top: 20px; margin-top: 24px; }
.prompt p { margin-top: 8px; }
.views { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.views a { color: hsl(var(--muted-foreground)); text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 8px 12px; border: 1px solid transparent; border-radius: 5px; }
.views a:hover { color: hsl(var(--foreground)); }
.views a[aria-current="true"] { color: hsl(var(--info)); background: hsl(var(--info) / .08); border-color: hsl(var(--info) / .25); }
.gateway-grid.single { grid-template-columns: minmax(0, 860px); min-height: 0; }
.example { background: hsl(var(--background)); padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 6px; overflow-x: auto; font-size: 12px; margin: 0 0 18px; }
.tools { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 18px; }
.tools dt { font-family: ui-monospace, monospace; font-size: 13px; color: hsl(var(--info)); }
.tools dd { margin: 0; color: hsl(var(--muted-foreground)); }
.tools code, .mcp-main p code { font-size: 12px; color: hsl(var(--foreground)); background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 4px; padding: 1px 5px; }
header button { white-space: nowrap; }
.dashboard-entry { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(24px, 3vw, 48px); }
.dashboard-entry button { margin: 10px 0 14px; }
.engine-mark { display: flex; gap: 16px; margin: 22px 0 30px; }
.engine-mark i { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid hsl(var(--info) / .6); background: hsl(var(--info) / .12); }
.clientbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: -28px -2.8vw 24px; padding: 12px 2.8vw; background: hsl(var(--background) / .92); backdrop-filter: blur(8px); border-bottom: 1px solid hsl(var(--border)); }
.clientbar .client { display: flex; align-items: baseline; gap: 10px; }
.clientbar .small { font-size: 10px; letter-spacing: .1em; }
.clientbar .track { display: flex; gap: 4px; }
.track button { padding: 6px 10px; background: transparent; color: inherit; }
.track button.selected { background: hsl(var(--info) / .12); border-color: hsl(var(--info) / .35); color: hsl(var(--info)); }
.track button small { font-size: 9px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-head span { font-size: 11px; color: hsl(var(--muted-foreground)); }
.good { color: hsl(var(--success)); text-shadow: 0 0 30px hsl(var(--success) / .2); }
.warn { color: hsl(var(--warning)); }
.bad { color: hsl(var(--destructive)); }
.unknown { color: hsl(var(--muted-foreground)); }
.layout { display: grid; grid-template-columns: minmax(260px, 23%) minmax(0, 1fr); gap: 20px; align-items: start; }
aside { padding: 20px !important; }
.scenario-list { position: relative; max-height: 720px; overflow: auto; padding: 4px; margin: 12px -4px -4px; }
.scenario { display: block; width: 100%; background: transparent; color: inherit; text-align: left; padding: 12px; border: 1px solid transparent; margin: 3px 0; font-weight: 400; font-family: inherit; letter-spacing: normal; text-transform: none; }
.scenario[aria-current="true"] { border-color: hsl(var(--info) / .5); background: hsl(var(--info) / .07); }
.scenario strong, .scenario small { display: block; }
.scenario strong { font-size: 12px; margin-bottom: 4px; }
.scenario small { margin-top: 5px; }
.detail h2 { font-size: 26px; }
#instruction { white-space: pre-line; font-size: 13px; max-height: 210px; overflow: auto; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
.step { text-align: center; padding: 12px 4px; font-size: 11px; color: hsl(var(--muted-foreground)); }
.step::before { content: ''; display: block; width: clamp(26px, 3vw, 54px); height: clamp(26px, 3vw, 54px); margin: 0 auto 14px; border: 2px dashed hsl(var(--border)); border-radius: 50%; }
.step.proven::before, .step.answered::before { border: 1px solid hsl(var(--success)); background: hsl(var(--success)); box-shadow: 0 0 22px hsl(var(--success) / .3); }
.step.partial::before, .step.waiting::before { border: 2px solid hsl(var(--warning)); background: hsl(var(--warning) / .15); }
.step.blocked::before { border: 2px solid hsl(var(--destructive)); background: hsl(var(--destructive) / .15); }
.note { background: hsl(var(--secondary)); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; font-size: 13px; }
.action { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid hsl(var(--border)); margin-top: 22px; padding-top: 4px; }
.action button { flex-shrink: 0; }
.action p { font-size: 13px; }
pre { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm); padding: 16px; overflow: auto; max-height: 330px; font: 12px/1.8 ui-monospace, monospace; }
.attempt { border-top: 1px solid hsl(var(--border)); padding: 14px 0; }
#history { max-height: 450px; overflow: auto; }
.attempt.mine { border-left: 3px solid hsl(var(--primary)); padding-left: 12px; }
.attempt p { font-size: 12px; }
.attempt button { padding: 7px 10px; margin: 4px 8px 4px 0; }
#message:not(:empty) { padding: 14px; border-left: 3px solid hsl(var(--info)); background: hsl(var(--card)); margin: 18px 0; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: 11px; }
[hidden] { display: none !important; }
@media (max-width: 950px) { .gateway-grid { grid-template-columns: 1fr; } .layout { grid-template-columns: minmax(0, 1fr); } .scenario-list { max-height: 270px; } }
@media (max-width: 620px) { header { align-items: flex-start; } .views { margin-left: 0; } .views a { padding: 6px 8px; } .tools { grid-template-columns: 1fr; gap: 2px; } .tools dd { margin-bottom: 8px; } .brand span { display: block; margin: 4px 0 0; } main { padding: 20px 16px; } .action, footer { flex-direction: column; align-items: stretch; } .card { padding: 18px; } .section-head { flex-wrap: wrap; } .steps { gap: 4px; } .step { font-size: 9px; } .clientbar { margin: -20px -16px 20px; padding: 10px 16px; gap: 10px 16px; } .track button { padding: 6px; } }
.step-state { margin-left: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
#lane-payload { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; resize: vertical; margin-bottom: 12px; word-break: break-all; }
.scenario-list h4 { margin: 16px 12px 4px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.scenario small.accepted { color: hsl(var(--success)); } .scenario small.rejected { color: hsl(var(--destructive)); }
.lane-all { margin-top: 20px; }
#lane-send { margin: 24px 0; } #lane-send .action { margin-bottom: 12px; }
/* The shell: header and client bar stay put, the content scrolls inside. The page never scrolls as a whole. */
html, body { height: 100%; }
body { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
header { flex: none; }
main { --gutter: 2.8vw; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
main:has(> #workspace:not([hidden])) { display: flex; flex-direction: column; overflow: hidden; padding-top: 0; padding-bottom: 0; }
main:has(> #workspace:not([hidden])) > footer { display: none; }
#workspace:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.clientbar { flex: none; position: static; margin: 0 calc(-1 * var(--gutter)) !important; padding-left: var(--gutter); padding-right: var(--gutter); }
main:has(> #workspace:not([hidden])) > #message:empty { margin: 0; }
.page { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--gutter)); padding: 20px var(--gutter); }
/* Wide screens: the test guide and the scenario each scroll on their own. */
@media (min-width: 951px) {
  .page:has(> .layout:only-child) { overflow: hidden; }
  .page > .layout:only-child { height: 100%; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .page > .layout:only-child > * { min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .page > .layout:only-child > aside { display: flex; flex-direction: column; overflow: hidden; }
  .page > .layout:only-child .scenario-list { flex: 1; min-height: 0; max-height: none; }
  .page > .layout:only-child #history { max-height: none; }
}
@media (max-width: 620px) { main { --gutter: 16px; } }
#package { width: 100%; margin: 12px 0 16px; }
/* Three columns: brand and client on the left, the applications centered, environment and session on the right. */
header, .clientbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
header > .brand, .clientbar > .client { grid-column: 1; justify-self: start; }
.views { grid-column: 2; margin: 0; justify-self: center; }
header > .row { grid-column: 3; justify-self: end; }
.clientbar > .track:nth-of-type(2) { grid-column: 2; justify-self: center; }
.clientbar > .track:nth-of-type(3) { grid-column: 3; justify-self: end; }
@media (max-width: 620px) { header { align-items: start; } .clientbar { grid-template-columns: auto auto; } .clientbar > .track:nth-of-type(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; } .clientbar > .track:nth-of-type(3) { grid-column: 2; grid-row: 1; } }
/* Keys: the list and the form side by side; the secret, once, above both. */
.keys-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.key-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border-top: 1px solid hsl(var(--border)); padding: 12px 0; }
.key-row strong { min-width: 110px; }
.key-row .small { margin: 0; }
.key-row .key-actions { margin-left: auto; display: flex; gap: 6px; }
.key-row .key-actions button { padding: 6px 10px; }
.key-why { flex: 1 0 100%; display: flex; gap: 6px; } .key-why input { flex: 1; min-width: 0; } .key-why button { padding: 6px 10px; white-space: nowrap; }
#key-unlock-form .row { margin-top: 16px; }
.key-row.expired strong { text-decoration: line-through; color: hsl(var(--muted-foreground)); }
.key-tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid hsl(var(--border)); border-radius: 4px; padding: 2px 6px; color: hsl(var(--muted-foreground)); }
.key-tag.send { color: hsl(var(--warning)); border-color: hsl(var(--warning) / .4); }
.key-tag.admin { color: hsl(var(--info)); border-color: hsl(var(--info) / .4); }
#key-form label { margin-top: 14px; font-size: 12px; }
select { width: 100%; border: 1px solid hsl(var(--input)); border-radius: var(--radius-sm); padding: 11px; color: inherit; background: hsl(var(--background)); font: inherit; }
.key-lanes { border: 0; padding: 0; margin: 14px 0 0; }
.key-lanes legend { font-size: 12px; margin-bottom: 6px; }
.key-lanes .row { margin: 4px 0; } .key-lanes .row span { width: 48px; font-size: 12px; font-weight: 700; }
#key-form .row { margin-top: 16px; }
.key-secret { margin-bottom: 20px; border-color: hsl(var(--warning) / .5); }
.key-secret code { display: block; background: hsl(var(--background)); padding: 14px; border: 1px solid hsl(var(--border)); border-radius: 6px; overflow-wrap: anywhere; margin: 12px 0; font-size: 13px; }
@media (max-width: 950px) { .keys-grid { grid-template-columns: minmax(0, 1fr); } }
/* A fourth door (KEYS, admins only) has to fit next to Sign out on a phone. */
@media (max-width: 440px) { .views { gap: 0; } .views a { padding: 6px 5px; letter-spacing: .04em; } header > .row button { padding: 8px 10px; } }
#key-form label.check { display: flex; gap: 10px; align-items: center; font-size: 13px; } #key-form label.check input { width: auto; }
.key-client { padding: 8px 0; border-top: 1px solid hsl(var(--border)); } .key-client:first-child { border-top: 0; }
.key-client > strong { display: block; font-size: 12px; letter-spacing: .06em; margin-bottom: 2px; }
.clientbar .client { align-items: center; } .clientbar .client .small { white-space: nowrap; }
.clientbar .client select { padding: 4px 8px; font-weight: 700; background: transparent; color: inherit; }
.client-empty { max-width: 640px; } .client-lanes { margin: 12px 0 0; padding-left: 18px; color: hsl(var(--muted-foreground)); }
.activity { margin-top: 20px; }
.activity .section-head select { width: auto; }
.activity-row { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) 80px; gap: 4px 16px; border-top: 1px solid hsl(var(--border)); padding: 8px 0; font-size: 13px; align-items: baseline; }
.activity-row .small { margin: 0; }
.activity-row.error .what { color: hsl(var(--warning)); }
.activity-row.refused .what { color: hsl(var(--destructive)); }
#activity-more { margin-top: 12px; }
@media (max-width: 700px) { .activity-row { grid-template-columns: minmax(0, 1fr) auto; } .activity-row .when, .activity-row .what { grid-column: 1 / -1; } }
/* The applications of the selected family (ADR-0016): a second row only when the family has more than one. */
.track.family { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 10px 0 0; }
.track.family[hidden] { display: none; }
.track.family button { font-size: 12px; }
#page-lane .layout.solo { grid-template-columns: minmax(0, 1fr); }
.key-client > .row > span { flex: 0 0 104px; font-size: 12px; }
.track button.off:not(.selected) { opacity: .45; }
.landing { max-width: 640px; } .landing .lead { font-size: 18px; color: hsl(var(--foreground)); margin: 8px 0 16px; }
.landing-ask { margin: 20px 0 0; color: hsl(var(--info)); }
.pipeline { max-width: 820px; }
.pipeline-card h3 { font-size: 24px; margin: 6px 0 4px; }
.pipeline-score { font-size: 18px; margin: 0 0 16px; }
.pipeline-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pipeline-steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 13px; }
.pipeline-steps .bar { height: 10px; border-radius: 5px; background: hsl(var(--border)); overflow: hidden; }
.pipeline-steps .fill { display: block; height: 100%; background: hsl(var(--info)); }
.pipeline-steps .fill.gap { background: transparent; }
.pipeline-steps .count { text-align: right; font-variant-numeric: tabular-nums; }
.pipeline-levels { margin: 0 0 12px; padding-left: 18px; font-size: 13px; }
.pipeline-moves { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; margin: 12px 0; font-size: 13px; }
.pipeline-moves dt { font-weight: 700; } .pipeline-moves dd { margin: 0; }
.pipeline-nav { align-items: center; gap: 8px; margin-top: 12px; }
.pipeline-dots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.pipeline-dots .dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: hsl(var(--border)); }
.pipeline-dots .dot[aria-current="true"] { background: hsl(var(--info)); }
@media (max-width: 560px) { .pipeline-steps li { grid-template-columns: 96px minmax(0, 1fr) 40px; } .pipeline-moves { grid-template-columns: 1fr; } }
.pipeline-auto { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.pipeline-timer { flex: 1; height: 3px; border-radius: 2px; background: hsl(var(--border)); overflow: hidden; }
.pipeline-timer span { display: block; height: 100%; width: 0; background: hsl(var(--info)); }
/* E-commerce: the showcase of informal entries and the sheet exchange. */
#ecommerce-page { max-width: 1180px; }
#ecommerce-page .lead { font-size: 16px; max-width: 760px; }
.ecom-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 8px 0 28px; }
.ecom-figures div { border-left: 2px solid hsl(var(--success) / .6); padding: 6px 0 6px 18px; }
.ecom-figures strong { display: block; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.04em; line-height: 1.1; font-weight: 650; }
.ecom-figures span { color: hsl(var(--muted-foreground)); font-size: 13px; }
.ecom-trip, .ecom-try, .ecom-agent { margin-bottom: 28px; }
.ecom-trip { border-color: hsl(var(--success) / .35); background: linear-gradient(120deg, hsl(var(--success) / .05), transparent 55%), hsl(var(--card)); }
.ecom-trip h2, .ecom-try h2 { margin-top: 18px; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; }
.ecom-scroll { overflow-x: auto; margin: 16px 0 12px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm); background: hsl(var(--background)); }
.ecom-note { margin: 12px 0 0; color: hsl(var(--muted-foreground)); font-size: 13px; }
.ecom-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ecom-table th { text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
.ecom-table td { padding: 12px 14px; border-bottom: 1px solid hsl(var(--border) / .6); vertical-align: top; }
.ecom-table tr:last-child td { border-bottom: 0; }
.ecom-table td:last-child { min-width: 220px; }
.ecom-after { display: inline-block; margin-left: 10px; font: 12px/1.6 ui-monospace, monospace; }
.ecom-pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; text-shadow: none; }
.ecom-pill.good { color: hsl(var(--success)); background: hsl(var(--success) / .12); border: 1px solid hsl(var(--success) / .35); }
.ecom-pill.warn { color: hsl(var(--warning)); background: hsl(var(--warning) / .12); border: 1px solid hsl(var(--warning) / .35); }
.ecom-pill.bad { color: hsl(var(--destructive)); background: hsl(var(--destructive) / .12); border: 1px solid hsl(var(--destructive) / .4); }
.ecom-steps { list-style: none; counter-reset: ecom; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 20px 0 4px; }
.ecom-steps li { counter-increment: ecom; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ecom-steps li::before { content: counter(ecom); display: grid; place-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid hsl(var(--info) / .5); color: hsl(var(--info)); font-weight: 700; font-size: 13px; }
.ecom-steps span { color: hsl(var(--muted-foreground)); font-size: 13px; }
.ecom-steps button { margin-top: auto; }
.ecom-drop { width: 100%; margin: auto 0 0; padding: 18px 14px; text-align: center; cursor: pointer; border: 1px dashed hsl(var(--info) / .5); border-radius: var(--radius-sm); background: hsl(var(--info) / .05); }
.ecom-drop span { color: hsl(var(--foreground)); font-size: 13px; font-weight: 600; }
.ecom-drop.over, .ecom-drop:hover { background: hsl(var(--info) / .12); border-style: solid; }
.ecom-drop.busy { opacity: .6; cursor: progress; }
.ecom-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; }
.ecom-drop:focus-within { outline: 3px solid hsl(var(--info)); outline-offset: 3px; }
#ecom-result { border-top: 1px solid hsl(var(--border)); margin-top: 24px; padding-top: 8px; }
#ecom-result .section-head { align-items: center; }
.ecom-send { margin-top: 18px; padding-top: 18px; border-top: 1px solid hsl(var(--border)); }
#ecom-sent { margin-top: 18px; }
.ecom-head { margin: 12px 0 14px; }
.ecom-head h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; }
.ecom-note { margin-top: -6px; margin-bottom: 16px; font-size: 14px !important; }
.ecom-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-bottom: 36px; align-items: start; }
.ecom-case { display: flex; flex-direction: column; gap: 4px; }
.ecom-case .eyebrow { font-size: 10px; }
.ecom-case.rule .eyebrow { color: hsl(var(--muted-foreground)); }
.ecom-case h3 { margin: 8px 0 4px; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.ecom-case > p { color: hsl(var(--muted-foreground)); font-size: 13px; }
.ecom-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 4px; font: 12px/1.6 ui-monospace, monospace; color: hsl(var(--foreground)) !important; }
.ecom-case details { border-top: 1px solid hsl(var(--border)); padding-top: 12px; margin-top: 8px; }
.ecom-case summary { cursor: pointer; font-size: 12px; font-weight: 600; color: hsl(var(--info)); }
.ecom-case h4 { margin: 14px 0 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.ecom-case pre { margin: 0; padding: 12px; font-size: 10.5px; line-height: 1.6; max-height: 260px; }
.ecom-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.ecom-links a { color: hsl(var(--info)); font-weight: 600; text-decoration: none; }
.ecom-links a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .ecom-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .ecom-steps { grid-template-columns: 1fr; } .ecom-cases { grid-template-columns: minmax(0, 1fr); } }
/* Narrow: the round trip keeps what matters — which parcel, which entry type, what CBP said. */
@media (max-width: 800px) { #ecom-trip th:nth-child(n+2):nth-child(-n+6), #ecom-trip td:nth-child(n+2):nth-child(-n+6), #ecom-trip th:nth-child(8), #ecom-trip td:nth-child(8) { display: none; } .ecom-table td:last-child { min-width: 0; } .ecom-after { margin-left: 0; display: block; } }
@media (max-width: 520px) { .brand span { display: none; } }
/* The public page of a customer's site: what it is, the key box, and what CBP already answered. */
.landing { max-width: 1180px; margin: 0 auto; }
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid hsl(var(--border)); }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 32px; align-items: center; padding: 5vh 0; }
.landing-hero h1 { font-size: clamp(38px, 5vw, 72px); }
.landing-hero .lead { font-size: 16px; max-width: 62ch; }
.landing-key #gate-message:empty { min-height: 0; margin: 0; }
.landing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.landing .card h2 { margin-top: 16px; }
.landing .card code { display: block; margin: 0 0 12px; padding: 12px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm); background: hsl(var(--background)); overflow-wrap: anywhere; }
.landing .card .small code { display: inline; margin: 0; padding: 1px 5px; }
.landing-facts { margin-top: 24px; }
.facts { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 28px; }
.fact strong { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; font-weight: 650; }
.fact span { color: hsl(var(--muted-foreground)); font-size: 13px; }
.landing footer { margin-top: 28px; }
@media (max-width: 860px) { .landing-hero, .landing-grid { grid-template-columns: minmax(0, 1fr); } .landing-hero { padding: 24px 0; } }
.landing-key form { margin-bottom: 12px; }
.landing .badge { text-transform: uppercase; }
.landing-top .brand-logo { height: 40px; }
/* Connection: the line to CBP, stage by stage. The state carries the color; the brand does not. */
#connection-page { max-width: 1180px; }
.connection { margin-bottom: 16px; }
.connection .section-head { align-items: center; margin-bottom: 18px; }
.connection .section-head h2 { margin: 0; font-size: 15px; }
.connection .state { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 5px; border: 1px solid currentColor; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stage { border-left: 2px solid currentColor; padding: 4px 0 4px 16px; color: hsl(var(--muted-foreground)); }
.stage strong { display: block; font-size: 22px; letter-spacing: -.02em; margin: 6px 0; }
.stage p { margin: 0 0 6px; font-size: 13px; color: hsl(var(--foreground)); }
.stage .eyebrow, .stage .small { color: hsl(var(--muted-foreground)); }
.connection .up { color: hsl(var(--success)); }
.connection .idle { color: hsl(var(--info)); }
.connection .attention { color: hsl(var(--warning)); }
.connection .down { color: hsl(var(--destructive)); }
.connection .not_measured { color: hsl(var(--muted-foreground)); }
.stage.not_measured { border-left-style: dashed; }
@media (max-width: 1000px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .stages { grid-template-columns: 1fr; } }
