:root {
  color-scheme: light;
  --ink: #213b36;
  --muted: #74817d;
  --green: #186b51;
  --green-dark: #145640;
  --line: #e3e9e5;
  --canvas: #f5f7f5;
  --soft: #edf4ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; }
h2 { font-size: 18px; line-height: 1.5; letter-spacing: -.02em; }
h3 { font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .42; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .pilot-table-wrap:focus-visible { outline: 3px solid #64a88e; outline-offset: 3px; }
button { transition: background-color .15s, border-color .15s, box-shadow .15s; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 40px; border-radius: 7px; padding: 9px 16px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.primary { border: 1px solid var(--green); background: var(--green); color: white; box-shadow: 0 2px 3px #173e3010; }
.primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.secondary { border: 1px solid #dbe3dd; background: #fff; color: #425b51; }
.secondary:hover:not(:disabled) { background: #f0f5f1; border-color: #b6cbbf; }
label { display: block; margin: 18px 0 7px; color: #455b51; font-size: 13px; font-weight: 550; }
input, select { width: 100%; min-width: 0; height: 42px; border: 1px solid #dce4df; border-radius: 7px; background: #fff; padding: 9px 12px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: #b8cdc0; }
input:focus, select:focus { border-color: #4b8b6c; box-shadow: 0 0 0 3px #2583530c; }
input::placeholder { color: #98a39d; font-size: 13px; }
input[type="date"] { font-size: 12px; }
.pilot-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 720; letter-spacing: -.6px; white-space: nowrap; }
.pilot-logo { position: relative; display: grid; place-items: center; width: 34px; height: 34px; background: #1d5946; color: #fff; font-size: 22px; border-radius: 10px; }
.pilot-logo > span { position: absolute; right: 5px; top: 15px; width: 5px; height: 5px; background: #bce48a; border-radius: 1px; }
.pilot-tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #e9dfc6; border-radius: 6px; color: #8a7134; background: #fcf8ee; font-size: 11px; font-weight: 550; white-space: nowrap; }
.pilot-tag i, .nav-status i, .metric-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b68c41; flex-shrink: 0; }
.pilot-chip { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--green); background: #edf5ee; white-space: nowrap; }
.pilot-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: #56826b; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; }
.muted, .field-help { color: var(--muted); font-size: 12px; }
.field-help { margin-top: 9px; line-height: 1.6; }
.pilot-panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pilot-message { margin-top: 18px; padding: 12px 14px; border: 1px solid #cfe3d4; border-radius: 8px; color: #2e684b; background: #f0f7f1; font-size: 13px; overflow-wrap: anywhere; }
.pilot-message[data-error="true"] { border-color: #f0d5d1; color: #a14b40; background: #fff5f2; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status-pill[data-state="processing"] { background: #eef3fd; color: #5977a5; }
.status-pill[data-state="succeeded"], .status-pill[data-state="redeemed"], .status-pill[data-state="available"] { background: #eaf5ed; color: #39825a; }
.status-pill[data-state="failed"], .status-pill[data-state="disabled"] { background: #fff0ed; color: #b36656; }
.status-pill[data-state="unknown"], .status-pill[data-state="locked"] { background: #fbf3e3; color: #a17c3c; }
.success-text { color: #37825a; }
.failed-text { color: #b46656; }
.unknown-text { color: #a78340; }
.pilot-receipt { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.pilot-receipt dl { margin: 14px 0 0; }
.pilot-receipt dl > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; padding: 7px 0; font-size: 12px; }
.pilot-receipt dt { color: var(--muted); }
.pilot-receipt dd { margin: 0; overflow-wrap: anywhere; }
.pilot-receipt p { margin-top: 10px; }
.note-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 15px; height: 15px; margin-top: 3px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 650; }

/* Redemption */
.pilot-redeem { background: #f7f8f4; min-height: 100vh; }
.redeem-shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.redeem-header { border-bottom: 1px solid #e7ebe1; background: #ffffff80; }
.brand-row { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.header-actions > a { color: #64776c; font-size: 13px; }
.header-actions > a:hover { color: var(--green); }
.redeem-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 90px; padding-block: 76px 72px; align-items: start; }
.redeem-intro { padding-top: 12px; }
.eyebrow-line { height: 1px; width: 24px; background: #75986b; }
.redeem-intro h1 { margin-top: 20px; font-size: clamp(36px, 3.5vw, 49px); line-height: 1.3; letter-spacing: -1.8px; font-weight: 630; }
.redeem-description { margin-top: 20px; color: #667565; font-size: 14px; line-height: 1.9; }
.product-ticket { display: flex; align-items: center; gap: 15px; margin-top: 31px; padding: 17px 20px; width: min(100%, 363px); border: 1px solid #dce5d6; border-radius: 10px; background: #eef2e8; }
.ticket-mark { display: flex; align-items: center; justify-content: center; width: 39px; height: 42px; border-radius: 8px; background: #dce7cf; color: #496345; font-size: 26px; font-weight: 650; letter-spacing: -3px; }
.ticket-mark > span { align-self: flex-start; margin-top: 7px; font-size: 15px; }
.product-ticket strong { display: block; font-size: 15px; font-weight: 600; }
.product-ticket div > span:not(.ticket-mark span) { display: block; font-size: 11px; color: #80907a; margin-top: 2px; }
.ticket-region { margin-left: auto; padding-left: 17px; border-left: 1px dashed #c5d4bc; color: #829078; font-size: 13px; letter-spacing: 1px; }
.redeem-guide { list-style: none; padding: 0; margin: 31px 0 0; display: grid; gap: 23px; }
.redeem-guide li { display: flex; gap: 17px; align-items: flex-start; }
.guide-number { font-size: 11px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #dce5d8; border-radius: 50%; color: #7b9672; background: #fafbf8; font-variant-numeric: tabular-nums; }
.redeem-guide strong { font-size: 13px; font-weight: 550; }
.redeem-guide p { color: #74806d; font-size: 12px; margin-top: 2px; }
.pilot-panel { border: 1px solid #e4e9de; background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 18px 55px -30px #36533526, 0 2px 6px #334b2510; }
.pilot-panel .pilot-eyebrow { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 5px; }
.pilot-panel h2 { font-size: 24px; font-weight: 620; }
.panel-description { color: #748171; font-size: 13px; margin-top: 8px; }
#verify-form { margin-top: 30px; scroll-margin-top: 25px; }
#verify-form label { display: flex; align-items: center; gap: 8px; margin-top: 0; }
#verify-form label span { font-size: 10px; font-weight: 500; color: #a3ada2; letter-spacing: 1px; }
.pilot-redeem input { height: 51px; background: #fcfdfb; padding-inline: 14px; }
.pilot-redeem .primary, .pilot-redeem .secondary { min-height: 47px; font-size: 13px; border-radius: 7px; }
.redeem-actions { flex-wrap: nowrap; margin-top: 24px; gap: 12px; }
.redeem-actions .primary { flex: 1; justify-content: space-between; padding-inline: 20px; }
.redeem-actions .secondary { flex: 0 0 116px; }
.redeem-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 29px; padding-top: 23px; border-top: 1px solid #edf0e8; color: #788371; font-size: 12px; line-height: 1.8; }
.query-hint { display: flex; gap: 11px; margin: 22px 12px 0; color: #788771; font-size: 12px; line-height: 1.9; }
.query-hint > span { font-size: 20px; line-height: 1.35; color: #91a184; }
.query-hint strong { font-weight: 500; color: #6f8065; }
.pilot-next { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 23px; }
.step-caption { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 550; }
.step-caption > span { color: #6d9867; font-size: 11px; }
.pilot-next .primary { margin-top: 18px; width: 100%; justify-content: space-between; }
.redeem-footer { display: flex; justify-content: space-between; padding-block: 24px 28px; border-top: 1px solid #e2e8db; color: #98a18e; font-size: 11px; }
.footer-dot { padding-inline: 13px; color: #c8d0c0; }

/* Operations */
.pilot-admin { background: #f5f7f6; }
.pilot-admin-nav { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 220px; padding: 25px 18px 24px; background: #183b32; color: #c1d3c8; }
.pilot-admin-nav .pilot-brand { color: #f1f5ee; padding-inline: 8px; font-size: 21px; }
.pilot-admin-nav .pilot-logo { background: #b2ce98; color: #284939; }
.pilot-admin-nav .pilot-logo > span { background: #466947; }
.nav-workspace { display: flex; gap: 11px; align-items: center; margin: 32px 0 29px; padding: 14px 12px; background: #ffffff08; border: 1px solid #ffffff10; border-radius: 9px; }
.workspace-icon { display: grid; place-items: center; flex: 0 0 31px; height: 33px; border-radius: 6px; background: #ffffff0d; color: #cadbbb; font-size: 14px; }
.nav-workspace strong { display: block; color: #e2ece0; font-size: 13px; font-weight: 500; }
.nav-workspace div > span { display: block; color: #7d9a8c; font-size: 10px; margin-top: 1px; }
.nav-label { color: #6e9181; padding-left: 13px; font-size: 10px; letter-spacing: 2px; margin-bottom: 11px; }
.nav-links { display: grid; gap: 6px; }
.nav-links a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 6px; color: #a5bfb0; font-size: 13px; }
.nav-links a:hover { background: #ffffff09; color: #e8f1de; }
.nav-links a[aria-current="location"] { color: #d8ebba; background: #355548; }
.nav-links svg { width: 17px; height: 17px; opacity: .85; }
.nav-bottom { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid #ffffff0e; }
.nav-status { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #c0cba7; }
.nav-status i { background: #aec785; }
.nav-bottom p { color: #638775; font-size: 10px; margin-top: 5px; }
.admin-content { margin-left: 220px; }
.pilot-topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 34px; border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(12px); }
.breadcrumb { color: #94a198; font-size: 12px; }
.breadcrumb > span { padding-inline: 14px; color: #ccd4cc; }
.breadcrumb strong { color: #536a5c; font-weight: 500; }
.pilot-admin-main { max-width: 1700px; margin-inline: auto; padding: 28px 34px 22px; }
.pilot-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 25px; }
.pilot-page-heading .pilot-eyebrow { margin-bottom: 5px; font-size: 10px; letter-spacing: 1px; }
.pilot-page-heading h1 { font-size: 28px; line-height: 1.45; letter-spacing: -.7px; }
.pilot-page-heading .muted { margin-top: 5px; }
#refresh { font-size: 12px; min-height: 38px; }
.pilot-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pilot-metrics > div { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 17px 19px; }
.pilot-metrics > div > span { display: flex; justify-content: space-between; align-items: center; color: #718276; font-size: 12px; }
.pilot-metrics strong { display: block; font-size: 32px; font-weight: 520; line-height: 1.4; margin-top: 9px; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.pilot-metrics small { display: block; color: #7c8a7c; font-size: 11px; margin-top: 2px; }
.metric-mark { color: #a3afa6; font-size: 9px; font-weight: 500; letter-spacing: .5px; }
.metric-dot.blue { background: #96aacc; }
.metric-dot.green { background: #6da585; }
.metric-dot.red { background: #ce988b; }
.metric-dot.amber { background: #c8ac73; }
.pilot-metrics .metric-failed { border-color: #eaded8; }
.pilot-metrics .metric-unknown { border-color: #e9e2d3; }
.pilot-admin-grid { display: grid; gap: 22px; margin-top: 25px; }
.pilot-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 24px; }
.section-heading .muted { margin-top: 4px; font-size: 12px; }
.section-label { color: #bbc4bb; font-size: 9px; font-weight: 500; letter-spacing: 1.8px; }
.pilot-orders { padding-bottom: 0; }
.pilot-order-filters { display: grid; grid-template-columns: minmax(255px, 2.6fr) minmax(120px, 1.1fr) repeat(2, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; margin-top: 4px; }
.pilot-order-filters label { margin-top: 18px; font-size: 12px; }
.pilot-order-filters input, .pilot-order-filters select { height: 38px; padding: 8px 9px; font-size: 12px; }
.pilot-order-filters input::placeholder { font-size: 11px; }
.search-combo { display: flex; border: 1px solid #dce4df; border-radius: 6px; }
.search-combo select { width: 106px; flex-shrink: 0; background: #f9fbf8; border: 0; border-right: 1px solid #e7ece5; border-radius: 5px 0 0 5px; height: 36px; }
.search-combo input { border: 0; border-radius: 0 5px 5px 0; height: 36px; }
.pilot-filter-actions { display: flex; gap: 6px; }
.pilot-filter-actions button { min-height: 38px; padding: 8px 13px; font-size: 11px; }
.order-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 25px; border-bottom: 1px solid var(--line); }
.pilot-filters { display: flex; gap: 22px; }
.pilot-filters button { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 43px; padding: 0 0 12px; background: transparent; border: 0; color: #73846f; font-size: 12px; white-space: nowrap; }
.pilot-filters button[aria-pressed="true"] { color: var(--green); font-weight: 600; }
.pilot-filters button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--green); }
.table-hint { color: #aab4aa; font-size: 10px; padding-bottom: 10px; white-space: nowrap; }
.pilot-table-wrap { overflow-x: auto; margin-inline: -24px; }
.pilot-table-wrap table { width: 100%; min-width: 850px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
th, td { text-align: start; padding: 18px 13px; vertical-align: top; border-bottom: 1px solid #eef1ed; }
th { padding-block: 12px; background: #f9fbf8; font-size: 11px; font-weight: 500; color: #73846c; }
th:first-child, td:first-child { padding-left: 24px; width: 26%; }
th:nth-child(2) { width: 19%; }
th:nth-child(3) { width: 26%; }
th:nth-child(4) { width: 15%; }
th:last-child, td:last-child { padding-right: 24px; width: 14%; }
td { overflow-wrap: anywhere; }
td code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: #5d7463; }
td small { display: block; color: #75866e; font-size: 11px; margin-top: 5px; line-height: 1.7; }
td:first-child > code { font-size: 11px; color: #42624e; }
td:first-child > small { color: #7e8e7e; margin-top: 6px; }
tr:hover td { background: #fcfdfb; }
td .order-reason { color: #74816a; margin-top: 8px; }
td details { margin-top: 7px; }
td summary { cursor: pointer; color: #5d805b; font-size: 11px; }
td details[open] { background: #f7faf5; margin-inline: -6px; padding: 8px 6px; border-radius: 5px; }
td .order-time { color: #81917f; font-size: 11px; }
td .order-time small { margin-top: 1px; color: #85957b; }
td .pilot-actions { margin-top: 0; }
td .secondary { font-size: 11px; padding: 5px 10px; min-height: 31px; background: #f7faf5; color: #66875e; border-color: #dbe7d5; }
td .secondary[data-action="retry"] { color: #a46d50; border-color: #ecdfd1; background: #fffbf5; }
td .order-complete { color: #abb7a4; font-size: 11px; display: block; padding-top: 4px; }
td[colspan] { text-align: center; padding: 45px 20px; color: #9aab94; }
.pilot-pagination { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding-block: 14px; }
.pilot-pagination .muted { font-size: 11px; }
.pilot-pagination > div { display: flex; gap: 7px; }
.pilot-pagination button { font-size: 10px; min-height: 30px; padding: 4px 10px; }
.order-policy { display: flex; align-items: flex-start; gap: 8px; margin-inline: -24px; padding: 11px 24px; color: #9a9c84; font-size: 10px; background: #fcfcf7; border-top: 1px solid #f0f0e6; border-radius: 0 0 10px 10px; }
.order-policy .note-icon { flex-basis: 12px; height: 12px; font-size: 8px; margin-top: 2px; }
.pilot-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.pilot-batches-card { grid-column: 1 / -1; }
.cdk-search-row { display: flex; gap: 10px; }
.cdk-search-row button { flex-shrink: 0; }
.cdk-management-note { display: flex; gap: 10px; margin-top: 24px; padding: 17px; border: 1px dashed #dfe8da; border-radius: 7px; background: #fafcf8; color: #77876b; font-size: 12px; line-height: 1.8; }
#batch-form { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 0 15px; }
.batch-name-field, .issue-footer { grid-column: 1 / -1; }
.issue-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 21px; }
.issue-footer .muted { font-size: 10px; }
.issue-footer .primary { font-size: 12px; }
.pilot-batches { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.pilot-batches li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 17px 0; border-top: 1px solid #eef2e9; }
.pilot-batches li > div > span { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.pilot-batches .muted { font-size: 11px; margin-top: 4px; color: #7a8c6c; }
.pilot-batch-actions { display: flex; align-items: center; gap: 20px; }
.pilot-batch-actions button { min-height: 32px; font-size: 11px; padding: 5px 12px; }
.pilot-batch-actions a { color: #658756; font-size: 11px; white-space: nowrap; }
.pilot-batch-actions a:hover { text-decoration: underline; }
.admin-footer { display: flex; justify-content: space-between; color: #abb5a5; font-size: 10px; margin-top: 25px; }

@media (min-width: 1700px) {
  .pilot-admin-main { padding: 35px 45px 25px; }
  .pilot-page-heading h1 { font-size: 31px; }
  .pilot-table-wrap table { font-size: 13px; }
  th { font-size: 11px; }
  td code, td:first-child > code { font-size: 12px; }
  td small, td summary { font-size: 11px; }
}
@media (max-width: 1250px) {
  .pilot-order-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pilot-order-search { grid-column: span 2; }
  .pilot-filter-actions { align-self: end; }
  .search-combo select { width: 125px; }
  .pilot-metrics { gap: 10px; }
  .pilot-metrics > div { padding: 15px; }
  .table-hint { display: none; }
  .redeem-layout { gap: 55px; }
}
@media (max-width: 1000px) {
  .pilot-admin-nav { width: 185px; padding-inline: 12px; }
  .admin-content { margin-left: 185px; }
  .pilot-admin-main { padding: 24px; }
  .pilot-topbar { padding-inline: 24px; }
  .pilot-sidebar { grid-template-columns: 1fr; }
  .pilot-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pilot-metrics > div:nth-child(n+4) { grid-column: auto; }
  .redeem-shell { width: calc(100% - 56px); }
  .redeem-layout { gap: 35px; padding-block: 55px; }
  .pilot-panel { padding: 28px; }
  .redeem-intro h1 { font-size: 38px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 125px; }
  .pilot-admin-nav { position: sticky; inset: auto; top: 0; width: 100%; padding: 12px 18px 0; }
  .pilot-admin-nav .pilot-brand { font-size: 17px; padding-inline: 0; gap: 8px; }
  .pilot-admin-nav .pilot-logo { width: 29px; height: 29px; font-size: 18px; border-radius: 8px; }
  .pilot-admin-nav .pilot-logo > span { right: 4px; top: 13px; width: 4px; height: 4px; }
  .nav-workspace, .nav-label, .nav-bottom { display: none; }
  .nav-links { display: flex; overflow-x: auto; scrollbar-width: none; gap: 5px; margin-top: 10px; padding-bottom: 10px; }
  .nav-links a { padding: 7px 10px; font-size: 11px; gap: 7px; white-space: nowrap; }
  .nav-links svg { width: 14px; height: 14px; }
  .admin-content { margin-left: 0; }
  .pilot-topbar { position: static; min-height: 48px; padding-inline: 20px; }
  .pilot-admin-main { padding: 23px 18px; }
  .pilot-page-heading h1 { font-size: 24px; }
  .pilot-page-heading { gap: 10px; }
  .pilot-page-heading .pilot-eyebrow { display: none; }
  #refresh { min-height: 34px; padding: 7px 9px; font-size: 10px; }
  #refresh svg { width: 14px; height: 14px; }
  .pilot-card { padding: 20px; }
  .pilot-orders { padding-bottom: 0; }
  .pilot-table-wrap, .order-policy { margin-inline: -20px; }
  .order-policy { padding-inline: 20px; }
  .pilot-table-wrap table { min-width: 850px; }
  .pilot-table-wrap::before { content: "左右滑动查看完整订单 →"; display: block; padding: 10px 20px; color: #7b8c71; font-size: 10px; background: #fafcf8; }
  .pilot-filters { gap: 18px; overflow-x: auto; }
  .pilot-order-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-order-search { grid-column: 1 / -1; }
  .pilot-filter-actions { justify-content: flex-end; }
  .pilot-order-filters input, .pilot-order-filters select { font-size: 12px; }
  .pilot-order-filters .search-combo input { font-size: 12px; }
  .pilot-sidebar { gap: 18px; }
  .pilot-batch-actions { gap: 10px; }
  .redeem-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 36px 40px; }
  .redeem-intro { padding: 0; }
  .redeem-intro h1 { font-size: 34px; line-height: 1.3; margin-top: 13px; }
  .redeem-intro h1 br { display: none; }
  .redeem-description { margin-top: 14px; font-size: 13px; }
  .product-ticket { margin-top: 22px; width: 100%; padding: 13px 16px; }
  .redeem-guide { display: none; }
  .redeem-shell { width: min(540px, calc(100% - 36px)); }
  .brand-row { height: 72px; }
  .header-actions { gap: 17px; }
  .header-actions > a { font-size: 11px; }
  .pilot-brand { font-size: 20px; }
  .pilot-redeem .pilot-tag { font-size: 10px; }
  .pilot-panel { padding: 26px; }
  .redeem-footer { font-size: 10px; padding-block: 20px; }
}
@media (max-width: 440px) {
  .pilot-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-metrics > div:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; padding-block: 13px; }
  .pilot-metrics > div:first-child > span { justify-content: flex-start; gap: 10px; }
  .pilot-metrics > div:first-child > strong { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .pilot-metrics > div:first-child > small { grid-column: 1; }
  .pilot-metrics strong { font-size: 29px; }
  .pilot-metrics > div { padding: 13px 15px; }
  .pilot-metrics small { font-size: 9px; }
  .pilot-page-heading h1 { font-size: 21px; }
  .pilot-page-heading .muted { font-size: 10px; }
  .pilot-card { padding: 18px; }
  .pilot-orders { padding-bottom: 0; }
  .pilot-table-wrap, .order-policy { margin-inline: -18px; }
  .section-label { display: none; }
  .pilot-filters { gap: 15px; }
  .pilot-filters button { font-size: 11px; }
  .pilot-filters .metric-dot { display: none; }
  .pilot-batches li { grid-template-columns: 1fr; gap: 11px; }
  .pilot-batch-actions { justify-content: flex-start; gap: 20px; }
  .cdk-search-row { gap: 7px; }
  .cdk-search-row button { padding-inline: 11px; font-size: 11px; }
  .cdk-search-row input::placeholder { font-size: 11px; }
  .issue-footer { gap: 8px; }
  .issue-footer .primary { padding-inline: 12px; font-size: 11px; }
  .redeem-intro h1 { font-size: 31px; }
  .pilot-panel { padding: 23px; border-radius: 12px; }
  .pilot-panel h2 { font-size: 22px; }
  .header-actions { gap: 12px; }
  .header-actions > a { font-size: 10px; }
  .pilot-brand { font-size: 18px; gap: 8px; }
  .redeem-actions .secondary { flex-basis: 101px; padding-inline: 12px; }
  .desktop-break { display: none; }
  .redeem-footer > span:last-child { display: none; }
  .admin-footer { gap: 10px; flex-wrap: wrap; }
}
.header-link { padding: 0; border: 0; background: transparent; color: #64776c; font-size: 13px; }
.header-link:hover { color: var(--green); }
.intro-tutorial { display: inline-flex; align-items: center; gap: 9px; margin-top: 29px; color: #587b55; font-size: 12px; }
.intro-tutorial > span:first-child { font-size: 18px; }
.intro-tutorial:hover, .tutorial-video-link:hover { text-decoration: underline; }
.flow-progress { display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; margin: -9px 0 28px; padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.flow-progress li { display: flex; align-items: center; gap: 8px; color: #9aa796; white-space: nowrap; font-size: 12px; }
.flow-progress li > span { display: grid; place-items: center; width: 25px; height: 25px; background: #f0f3ed; border-radius: 50%; font-size: 11px; }
.flow-progress li > strong { font-weight: 500; }
.flow-progress li[aria-current="step"] { color: #275e42; }
.flow-progress li[aria-current="step"] > span { color: #fff; background: var(--green); }
.flow-progress .is-complete { color: #59835a; }
.flow-progress .is-complete > span { color: #4c7e50; background: #ebf4e8; }
.session-step, .confirm-step { margin-top: 24px; }
.token-tutorial { padding: 19px 20px; border: 1px solid #dce9d9; border-radius: 9px; background: #f4f9f1; }
.token-tutorial h3 { font-size: 14px; color: #456d43; }
.token-tutorial ol { padding-left: 19px; margin: 12px 0; color: #6a7e61; font-size: 12px; line-height: 1.85; }
.token-tutorial li + li { margin-top: 7px; }
.token-tutorial a { color: #347450; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tutorial-video-link { display: inline-block; color: #4c7d4e; font-size: 12px; }
.session-input-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 21px 0 9px; }
.session-input-heading label { margin: 0; }
.text-button { background: transparent; border: 0; padding: 5px 0; color: #547e52; font: inherit; font-size: 12px; }
.text-button:hover:not(:disabled) { color: #1e6240; text-decoration: underline; }
.pilot-redeem textarea { display: block; width: 100%; min-height: 154px; resize: vertical; border: 1px solid #dce4df; border-radius: 8px; background: #fcfdfb; color: #3b5c48; padding: 14px; font: 12px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pilot-redeem textarea::placeholder { font-family: inherit; color: #99a592; }
.pilot-redeem textarea:focus-visible { outline: 3px solid #64a88e; outline-offset: 2px; }
.pilot-redeem .step-primary { width: 100%; justify-content: space-between; padding-inline: 18px; margin-top: 23px; }
.step-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf1e8; margin-top: 23px; padding-top: 16px; font-size: 11px; color: #8b9a82; }
.account-summary { margin: 0; padding: 7px 18px; border: 1px solid #e0e8da; border-radius: 9px; background: #f9fbf6; }
.account-summary > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8eee1; font-size: 12px; }
.account-summary > div:last-child { border: 0; }
.account-summary dt { color: #86967c; }
.account-summary dd { margin: 0; overflow-wrap: anywhere; color: #476640; }
.summary-note { display: block; color: #8b987f; font-size: 11px; margin-top: 3px; }
.account-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; font-size: 12px; line-height: 1.8; color: #6e8062; font-weight: 400; cursor: pointer; }
.pilot-redeem .account-consent input { width: 16px; height: 16px; flex-shrink: 0; margin: 3px 0 0; padding: 0; accent-color: var(--green); }
.redemption-help { margin-top: 18px; border: 1px solid #e1e8da; border-radius: 10px; background: #fdfefa; scroll-margin-top: 25px; }
.redemption-help > summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; font-size: 12px; color: #6d8360; cursor: pointer; list-style: none; }
.redemption-help > summary::-webkit-details-marker { display: none; }
.redemption-help[open] > summary { border-bottom: 1px solid #e9eedf; }
.redemption-help[open] > summary > span:last-child { transform: rotate(45deg); }
.help-content { padding: 20px 22px; color: #738467; font-size: 12px; line-height: 1.85; }
.help-content h3 { font-size: 13px; color: #4f6e44; margin-bottom: 8px; }
.help-content h3:not(:first-child) { margin-top: 22px; }
.help-content ol { margin: 0 0 16px; padding-left: 20px; }
.help-content li + li { margin-top: 8px; }
.help-content strong { font-weight: 550; }
.pilot-redeem[data-flow-step="2"] .redeem-layout, .pilot-redeem[data-flow-step="3"] .redeem-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 55px; }
.pilot-redeem[data-flow-step="2"] .redeem-intro h1, .pilot-redeem[data-flow-step="3"] .redeem-intro h1 { font-size: 40px; }
@media (max-width: 1000px) and (min-width: 761px) {
  .pilot-redeem[data-flow-step="2"] .redeem-layout, .pilot-redeem[data-flow-step="3"] .redeem-layout { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 30px; }
  .flow-progress { gap: 8px; }
  .flow-progress li { gap: 6px; font-size: 11px; }
}
@media (max-width: 760px) {
  .pilot-redeem[data-flow-step="2"] .redeem-layout, .pilot-redeem[data-flow-step="3"] .redeem-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .pilot-redeem[data-flow-step="2"] .redeem-intro, .pilot-redeem[data-flow-step="3"] .redeem-intro { display: none; }
  .header-actions { gap: 12px; }
  .header-link { font-size: 11px; }
  .intro-tutorial { margin-top: 17px; }
  .flow-progress { gap: 8px; margin-top: 0; padding-bottom: 21px; margin-bottom: 23px; }
  .flow-progress li { gap: 5px; font-size: 11px; }
  .flow-progress li > span { width: 22px; height: 22px; font-size: 10px; }
  .token-tutorial { padding: 15px; }
  .session-input-heading { flex-wrap: wrap; }
  .redemption-help > summary, .help-content { padding: 17px 20px; }
}
@media (max-width: 440px) {
  .header-actions { gap: 10px; }
  .header-actions .pilot-tag { padding: 4px 6px; gap: 4px; font-size: 9px; }
  .header-link, .header-actions > a { font-size: 10px; }
  .pilot-redeem .pilot-brand { font-size: 16px; gap: 7px; }
  .pilot-redeem .pilot-logo { width: 29px; height: 29px; font-size: 19px; }
  .pilot-redeem .pilot-logo > span { width: 4px; height: 4px; right: 4px; top: 13px; }
  .flow-progress { gap: 6px; }
  .flow-progress li { gap: 4px; font-size: 10px; }
  .flow-progress li > span { width: 20px; height: 20px; }
  .account-summary { padding-inline: 14px; }
  .account-summary > div { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, input, select { transition: none; }
}

/* Task-focused customer pages and operations views. */
:root { --ink: #1d2939; --muted: #667085; --line: #e3e8ef; --canvas: #f6f8fb; --green: #12836b; --green-dark: #0e6c58; }
.pilot-redeem { background: #f6f8fb; }
.redeem-shell { width: min(1100px, calc(100% - 48px)); max-width: 1100px; }
.redeem-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand-row { min-height: 78px; padding-block: 14px; }
.pilot-brand { color: #1e3a34; font-size: 23px; }
.header-actions { gap: 8px; }
.header-actions button, .header-actions a { padding: 9px 13px; border-radius: 7px; font-size: 14px; }
.header-actions [aria-current="page"] { background: #e7f3ef; color: #0a775f; font-weight: 650; }
.redeem-layout { display: block; padding-top: 34px; padding-bottom: 36px; min-height: calc(100vh - 155px); }
.redeem-intro { padding: 0; text-align: center; margin-bottom: 28px; }
.redeem-intro h1 { margin: 0; font-size: 34px; line-height: 1.4; letter-spacing: -.8px; }
.redeem-intro h1 span { color: var(--green); }
.redeem-description { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.pilot-redeem .redeem-intro h1 { font-size: clamp(28px, 4vw, 44px); }
.subscription-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 30px; margin: 20px auto 0; padding: 0; list-style: none; }
.subscription-benefits li { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 17px; font-weight: 600; }
.subscription-benefits svg { width: 22px; height: 22px; color: var(--green); flex: none; }
@media (max-width: 600px) {
  .subscription-benefits { gap: 12px 18px; margin-top: 16px; }
  .subscription-benefits li { gap: 6px; font-size: 14px; }
  .subscription-benefits svg { width: 19px; height: 19px; }
}
.mode-notice { margin: 14px auto 0; width: fit-content; padding: 7px 13px; border-radius: 6px; background: #fff6df; color: #886319; font-size: 12px; }
.redeem-workspace { width: min(780px, 100%); margin: 0 auto; }
.pilot-panel { padding: 28px 32px; border-radius: 12px; border-color: #dce3eb; box-shadow: 0 6px 22px #17324606; }
.pilot-panel h2 { font-size: 22px; }
.flow-progress { margin: -4px 0 25px; padding-bottom: 24px; }
.flow-progress strong { font-size: 14px; }
.panel-description { color: var(--muted); font-size: 14px; }
.pilot-redeem input { height: 48px; background: #fcfdff; }
.pilot-redeem textarea { background: #fcfdff; min-height: 140px; }
.pilot-redeem .primary, .pilot-redeem .secondary { font-size: 14px; min-height: 44px; }
#verify-form { margin-top: 24px; }
.redeem-note { margin-top: 22px; padding-top: 17px; font-size: 12px; color: #667085; }
.redemption-help { margin-top: 18px; border-color: #dce3eb; background: #fff; }
.query-hint { margin-top: 16px; color: #667085; justify-content: center; text-align: center; }
.help-content { color: #566376; }
.help-content h3 { color: #263c50; }
.token-tutorial { margin-top: 22px; padding: 16px 20px; color: #405a57; background: #eff8f5; border: 1px solid #cce8dd; border-radius: 8px; }
.token-tutorial a, .tutorial-video-link { color: #147a66; text-decoration: underline; text-underline-offset: 3px; }
.query-result { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.query-counts { color: var(--muted); line-height: 1.8; margin: 12px 0 18px; }
.query-table-wrap { overflow-x: auto; margin-top: 18px; }
.query-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.query-table th, .query-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.query-table th { color: var(--muted); white-space: nowrap; background: #f8fafc; }
.query-table td { min-width: 90px; }
.query-table td:first-child { min-width: 165px; max-width: 220px; }
.query-table td:nth-child(3) { min-width: 170px; max-width: 260px; overflow-wrap: anywhere; }
.query-table code { overflow-wrap: anywhere; font-size: 14px; }
.query-detail { padding: 14px 4px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-heading h3 { font-size: 19px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 22px 0; }
.result-grid div { min-width: 0; }
.result-grid dt { color: #667085; font-size: 12px; margin-bottom: 5px; }
.result-grid dd { margin: 0; font-weight: 550; font-size: 14px; overflow-wrap: anywhere; }
.result-note { color: #536273; margin-top: 12px; }
.renewal-warning { color: #8a651a; background: #fff8e9; border: 1px solid #eee0ba; padding: 13px 15px; border-radius: 7px; margin: 14px 0; font-size: 13px; }
.redeem-footer { max-width: 780px; color: #8490a0; padding-block: 20px; }
.pilot-admin { background: #f6f8fb; }
.pilot-admin-nav { background: #fff; color: #475467; border-right: 1px solid #e4e9f0; width: 208px; }
.pilot-admin-nav .pilot-brand { color: #263c50; font-size: 21px; }
.pilot-admin-nav .pilot-logo { background: #168570; color: white; }
.nav-workspace { background: #f3f6fa; border-color: #e5e9ef; }
.nav-workspace strong { color: #344054; }
.nav-workspace div > span, .nav-label, .nav-bottom, .nav-status { color: #7b8798; }
.workspace-icon { background: #e1f0eb; color: #247a65; }
.nav-links a { color: #536176; }
.nav-links a:hover { background: #f3f5f9; color: #243e59; }
.nav-links a[aria-current="location"] { background: #e8f3ef; color: #147a65; box-shadow: none; }
.admin-content { margin-left: 208px; }
.pilot-topbar { border-color: #e4e9f0; height: 60px; }
.pilot-admin-main { max-width: 1600px; padding: 28px 32px; }
.pilot-page-heading h1 { font-size: 25px; }
.pilot-page-heading .pilot-eyebrow { color: #8390a2; font-size: 10px; }
.pilot-metrics { gap: 14px; margin-bottom: 22px; }
.pilot-metrics > div { padding: 18px 20px; border-radius: 9px; box-shadow: none; }
.pilot-metrics strong { font-size: 27px; }
.pilot-admin-grid { display: block; }
.pilot-sidebar { display: contents; }
.pilot-card { padding: 24px; margin-top: 18px; border: 1px solid #e2e7ee; border-radius: 10px; box-shadow: none; }
.pilot-order-filters { grid-template-columns: minmax(260px, 2fr) minmax(140px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto; }
.pilot-order-search { grid-column: auto; }
.pilot-table-wrap { margin-top: 18px; }
.pilot-table-wrap table { min-width: 830px; width: 100%; }
.pilot-table-wrap th { background: #f8fafc; color: #68758a; padding: 12px 14px; font-size: 12px; }
.pilot-table-wrap td { padding: 17px 14px; vertical-align: middle; border-color: #edf0f5; }
.pilot-table-wrap td code { font-size: 12px; color: #43576b; }
.pilot-table-wrap td small { color: #7b8797; margin-top: 5px; }
.pilot-table-wrap td .pilot-actions { margin-top: 6px; gap: 6px; }
.pilot-table-wrap td .secondary { min-height: 31px; padding: 4px 10px; font-size: 12px; margin-right: 5px; }
.status-pill { font-size: 12px; padding: 4px 9px; }
.cdk-list-filter { display: grid; grid-template-columns: minmax(220px, 1fr) 160px auto; gap: 12px; margin-top: 20px; }
.pilot-cdk-card form { max-width: 780px; }
.pilot-issue-card form { max-width: 800px; }
.pilot-batches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pilot-batches li { border: 1px solid #e4e9f0; border-radius: 8px; padding: 17px; }
.admin-footer { margin-top: 25px; }
dialog { width: min(850px, calc(100% - 40px)); max-height: 88vh; padding: 28px; border: 1px solid #d8e1eb; border-radius: 12px; color: var(--ink); box-shadow: 0 25px 80px #172f4b33; }
dialog::backdrop { background: #16253866; }
.detail-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.attempt-card { margin-top: 15px; padding: 18px; background: #f7f9fc; border: 1px solid #e4e9f0; border-radius: 8px; }
.attempt-card .result-grid { margin-bottom: 0; }
@media (max-width: 1200px) {
  .pilot-order-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pilot-order-search { grid-column: span 2; }
}
@media (max-width: 760px) {
  .redeem-shell { width: calc(100% - 28px); }
  .brand-row { height: auto; flex-wrap: wrap; gap: 12px; }
  .header-actions { width: 100%; justify-content: space-between; gap: 0; }
  .header-actions button, .header-actions a { font-size: 12px; padding: 7px 6px; }
  .redeem-layout { padding-top: 24px; }
  .redeem-intro h1 { font-size: 26px; }
  .pilot-panel { padding: 23px 18px; }
  .pilot-panel h2 { font-size: 20px; }
  .pilot-panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .flow-progress { gap: 8px; }
  .flow-progress strong { font-size: 12px; }
  .mode-notice { font-size: 11px; }
  .result-grid { grid-template-columns: 1fr; gap: 14px; }
  .pilot-admin-nav { position: static; width: 100%; padding: 14px; }
  .pilot-admin-nav .nav-workspace, .nav-label, .nav-bottom { display: none; }
  .nav-links { flex-direction: row; display: flex; overflow: auto; gap: 4px; margin-top: 12px; }
  .nav-links a { white-space: nowrap; font-size: 12px; padding: 9px; }
  .nav-links svg { display: none; }
  .admin-content { margin-left: 0; }
  .pilot-admin-main { padding: 20px 14px; }
  .pilot-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pilot-metrics > div { padding: 14px; }
  .pilot-card { padding: 18px; }
  .pilot-order-filters, .cdk-list-filter { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pilot-order-search, .cdk-list-filter > input { grid-column: span 2; }
  .pilot-batches { grid-template-columns: 1fr; }
  dialog { padding: 20px; }
}
/* Administrator login shares the portal's neutral layout. */
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f5f7fa; color: #182334; }
.admin-login-card { width: 100%; max-width: 440px; padding: 36px; background: white; border: 1px solid #e0e6ec; border-radius: 18px; box-shadow: 0 8px 32px #18233409; }
.admin-login-card .pilot-logo { margin-bottom: 24px; }
.admin-login-card h1 { font-size: 28px; margin: 8px 0 12px; }
.admin-login-card form { display: grid; gap: 12px; margin-top: 28px; }
.admin-login-card input { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #d5dfdf; border-radius: 8px; padding: 12px; font: inherit; }
.admin-login-card button { margin-top: 10px; width: 100%; }
.admin-login-card .field-help { margin-top: 24px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 18px; }
#admin-auth-controls { font-size: 13px; }
#admin-auth-controls button { margin-left: 10px; }
@media (max-width: 600px) { .admin-login-card { padding: 24px; } .admin-topbar-actions { flex-wrap: wrap; gap: 8px; } }

/* Readable type scale shared by redemption and operations. */
body { font-size: 16px; line-height: 1.65; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
label, .pilot-order-filters label { font-size: 14px; font-weight: 600; }
input, select, input[type="date"] { height: 46px; font-size: 16px; }
input::placeholder, .pilot-order-filters input::placeholder, .cdk-search-row input::placeholder { font-size: 14px; color: #667085; }
.primary, .secondary, .pilot-redeem .primary, .pilot-redeem .secondary { min-height: 46px; padding: 10px 18px; font-size: 16px; }
.muted, .field-help, .section-heading .muted, .pilot-page-heading .muted { font-size: 14px; line-height: 1.75; color: #536273; }
.pilot-message { font-size: 15px; line-height: 1.7; }
.pilot-tag, .pilot-redeem .pilot-tag, .pilot-chip, .status-pill { font-size: 13px; line-height: 1.5; }
.pilot-eyebrow, .pilot-panel .pilot-eyebrow, .pilot-page-heading .pilot-eyebrow { font-size: 12px; color: #526579; letter-spacing: .8px; }
.pilot-receipt dl > div { font-size: 16px; grid-template-columns: 112px minmax(0, 1fr); padding-block: 10px; }
.header-actions button, .header-actions a { font-size: 16px; min-height: 44px; }
.redeem-description, .panel-description { font-size: 16px; line-height: 1.75; }
.mode-notice { font-size: 14px; }
.redeem-workspace { width: min(840px, 100%); }
.pilot-panel { padding: 32px 36px; }
.pilot-panel h2 { font-size: 24px; }
.flow-progress strong { font-size: 16px; }
.flow-progress li > span { width: 30px; height: 30px; font-size: 14px; }
.pilot-redeem input { height: 52px; font-size: 16px; }
.pilot-redeem textarea, .pilot-admin textarea { width: 100%; min-height: 160px; padding: 16px; font: 15px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
#verify-form label span { font-size: 12px; color: #667085; }
.redeem-note, .query-hint, .redemption-help > summary, .help-content, .tutorial-video-link, .token-tutorial ol { font-size: 14px; line-height: 1.85; color: #536273; }
.token-tutorial h3, .help-content h3 { font-size: 17px; }
.account-summary > div { font-size: 16px; grid-template-columns: 112px minmax(0, 1fr); }
.account-consent { font-size: 14px; color: #475467; }
.step-footer, .summary-note { font-size: 13px; color: #667085; }
.text-button { font-size: 14px; }
.result-heading h3 { font-size: 22px; }
.result-grid { gap: 22px 30px; }
.result-grid dt { font-size: 14px; color: #536273; }
.result-grid dd { font-size: 16px; font-weight: 600; line-height: 1.65; color: #1d2939; }
.renewal-warning { font-size: 14px; line-height: 1.75; }
.redeem-footer, .admin-footer { font-size: 13px; line-height: 1.7; color: #667085; gap: 16px; flex-wrap: wrap; }
.pilot-admin-nav { width: 240px; }
.admin-content { margin-left: 240px; }
.nav-workspace strong { font-size: 15px; font-weight: 600; }
.nav-workspace div > span, .nav-label, .nav-bottom p, .nav-status { font-size: 12px; color: #667085; }
.nav-links a { font-size: 15px; min-height: 44px; }
.breadcrumb, #admin-auth-controls { font-size: 14px; }
.pilot-topbar { height: auto; min-height: 68px; padding-block: 10px; }
.pilot-page-heading h1 { font-size: 28px; }
#refresh { font-size: 14px; min-height: 44px; padding: 9px 14px; }
.pilot-metrics > div > span { font-size: 14px; color: #475467; }
.pilot-metrics strong { font-size: 32px; font-weight: 600; }
.pilot-metrics small { font-size: 13px; color: #667085; }
.metric-mark, .section-label { font-size: 12px; color: #667085; letter-spacing: .8px; }
.pilot-order-filters { grid-template-columns: minmax(320px, 2fr) minmax(160px, 1fr) repeat(2, minmax(150px, 1fr)) auto; gap: 16px; }
.pilot-order-filters input, .pilot-order-filters select, .pilot-order-filters .search-combo input { height: 44px; font-size: 14px; padding: 10px; }
.search-combo select { width: 150px; }
.pilot-filter-actions button { min-height: 44px; font-size: 14px; padding: 9px 14px; }
.pilot-filters button { min-height: 46px; font-size: 14px; }
.table-hint, .pilot-table-wrap::before { font-size: 13px; color: #667085; }
.pilot-table-wrap table { min-width: 1000px; font-size: 14px; line-height: 1.65; }
.pilot-table-wrap th { font-size: 14px; font-weight: 600; color: #475467; padding-block: 14px; }
.pilot-table-wrap td { padding-block: 20px; }
.pilot-table-wrap td code, .pilot-table-wrap td:first-child > code { font-size: 14px; }
.pilot-table-wrap td small, .pilot-table-wrap td:first-child > small, .pilot-table-wrap td summary, .pilot-table-wrap td .order-time { font-size: 14px; line-height: 1.7; color: #536273; }
.pilot-table-wrap td:first-child > small { color: #344054; }
.pilot-table-wrap td .secondary { min-height: 38px; padding: 7px 12px; font-size: 14px; margin-bottom: 5px; }
.pilot-table-wrap td .order-complete { font-size: 13px; color: #667085; }
.pilot-pagination .muted, .order-policy, .cdk-management-note, .issue-footer .muted { font-size: 13px; line-height: 1.75; color: #536273; }
.order-progress { margin: 20px 0; padding: 22px; border: 1px solid #c8e1d9; border-radius: 14px; background: #f4faf7; color: #203c34; }
.progress-title { display: block; font-size: 22px; }
.queue-position { margin: 10px 0; font-size: 19px; line-height: 1.6; font-weight: 600; }
.processing-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 24px 0; }
.processing-steps li { border-top: 4px solid #d9e1de; padding-top: 10px; color: #62736c; font-size: 16px; }
.processing-steps li[data-reached="true"] { border-color: #13856b; color: #11654f; }
.processing-steps li[aria-current="step"] { font-weight: 700; }
.progress-times { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.progress-times > div { display: flex; flex-direction: column; gap: 3px; }
.progress-times > div > span:first-child { color: #54665f; font-size: 14px; }
.progress-times > div > span:last-child { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.order-progress .field-help { display: block; margin-top: 16px; }
.order-progress.compact { padding: 10px 0; margin: 8px 0; border: 0; background: transparent; }
.compact .progress-title, .compact .queue-position { font-size: 14px; }
.compact .progress-times { gap: 6px 16px; }
.compact .progress-times > div > span { font-size: 13px; }
.progress-history { padding-left: 22px; font-size: 15px; line-height: 1.9; }
.queue-summary, .eligibility-notice { padding: 16px 20px; border-radius: 12px; background: #eef5f2; border: 1px solid #ceded7; font-size: 17px; line-height: 1.7; color: #304d42; }
.eligibility-notice { background: #fff8e8; border-color: #eddbab; color: #6b501d; margin-top: 24px; }
.pilot-pagination button { min-height: 40px; font-size: 14px; padding: 7px 12px; }
.issue-footer .primary, .cdk-search-row button { font-size: 15px; }
.pilot-batches li > div > span { font-size: 16px; font-weight: 600; }
.pilot-batches .muted { font-size: 14px; color: #536273; }
.pilot-batch-actions button, .pilot-batch-actions a { font-size: 14px; }
.pilot-batch-actions button { min-height: 40px; }
#funding-form button { min-height: 44px; padding: 9px 16px; font-size: 16px; }
dialog { width: min(920px, calc(100% - 40px)); }
@media (max-width: 1350px) {
  .pilot-order-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pilot-order-search { grid-column: span 2; }
}
@media (max-width: 760px) {
  .order-progress { padding: 16px; }
  .processing-steps { gap: 7px; }
  .processing-steps li { font-size: 13px; }
  .queue-position { font-size: 17px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-start; gap: 4px; }
  .header-actions button, .header-actions a { font-size: 14px; padding: 8px 6px; }
  .pilot-panel { padding: 26px 20px; }
  .pilot-panel h2 { font-size: 22px; }
  .flow-progress strong { font-size: 14px; }
  .flow-progress li { gap: 5px; }
  .flow-progress li > span { width: 24px; height: 24px; font-size: 13px; }
  .pilot-redeem textarea, .pilot-admin textarea { font-size: 16px; }
  .result-grid { gap: 18px; }
  .pilot-admin-nav { width: 100%; }
  .nav-links a { font-size: 14px; padding: 10px; }
  .admin-content { margin-left: 0; }
  .pilot-topbar { flex-wrap: wrap; gap: 10px; }
  .pilot-page-heading h1 { font-size: 24px; }
  .pilot-page-heading { align-items: flex-start; flex-wrap: wrap; }
  .pilot-order-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-order-filters input, .pilot-order-filters select, .pilot-order-filters .search-combo input { font-size: 16px; }
  .search-combo { flex-wrap: wrap; }
  .search-combo select { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .pilot-filters { flex-wrap: wrap; gap: 8px 18px; }
  .pilot-filter-actions { flex-wrap: wrap; }
  .pilot-batch-actions { flex-wrap: wrap; gap: 12px; }
  .issue-footer { align-items: flex-start; flex-wrap: wrap; }
  .cdk-search-row { flex-wrap: wrap; }
  .cdk-search-row input { flex: 1 1 200px; }
  .admin-footer { flex-direction: column; gap: 6px; }
}

/* P1: resume entry shown first, in both the receipt and the record detail */
.resume-banner { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid #eecb87; background: #fff7e6; border-radius: 10px; color: #6b4a10; }
.resume-banner[hidden] { display: none; }
.resume-banner p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; font-weight: 600; }
.resume-banner button { width: 100%; }
.resume-step-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 8px; background: #fff7e6; border: 1px solid #eecb87; color: #6b4a10; font-size: 14px; line-height: 1.7; }
.resume-step-note[hidden] { display: none; }
@media (min-width: 640px) { .resume-banner button { width: auto; } }

/* P2: operator handling inside the order detail */
.manual-section { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.manual-section h3 { margin: 0 0 6px; }
.manual-category { font-weight: 600; margin: 0 0 10px; }
.manual-form { display: grid; gap: 10px; margin-top: 12px; }
.manual-form[hidden] { display: none; }
.manual-form textarea { width: 100%; }
.manual-history { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.manual-tag { display: block; color: #8a651a; }
.manual-confirm { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.manual-confirm input { margin-top: 4px; flex: none; width: 16px; height: 16px; }
