:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6b7f;
  --line: #dfe5ef;
  --line-strong: #c6d0df;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --blue: #2457e6;
  --blue-dark: #173ea8;
  --blue-soft: #eef3ff;
  --green: #087453;
  --green-soft: #eafaf4;
  --amber: #925500;
  --amber-soft: #fff5df;
  --red: #b42318;
  --red-soft: #fff1f0;
  --shadow: 0 22px 64px rgba(31, 47, 79, .11);
  --focus: 0 0 0 4px rgba(36, 87, 230, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -5%, rgba(71, 117, 255, .15), transparent 32rem),
    radial-gradient(circle at 100% 14%, rgba(25, 184, 139, .10), transparent 27rem),
    #f5f7fb;
}

button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.support-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 64px; }
.hero { padding: 14px 4px 26px; }

.hero__topline,
.portfolio__heading,
.portal-toolbar,
.transfer-panel__heading,
.request-card__heading,
.field-support-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.brand { color: var(--blue); font-size: 18px; font-weight: 850; letter-spacing: -.025em; text-decoration: none; }
.security-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border: 1px solid #a9e8d1; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 750; }

.hero__eyebrow,
.section-kicker,
.confirmation-kicker { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero__eyebrow { margin-top: 40px; }
h1 { max-width: 790px; margin: 8px 0 13px; font-size: clamp(38px, 6vw, 62px); line-height: 1.02; letter-spacing: -.047em; }
.hero > p:not(.hero__eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }

.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin: 26px 0 0; padding: 0; list-style: none; }
.journey li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding-right: 20px; }
.journey li:not(:last-child)::after { position: absolute; top: 15px; right: 10px; left: 42px; z-index: -1; height: 1px; background: #cdd8ee; content: ""; }
.journey span { display: grid; grid-row: 1 / span 2; width: 32px; height: 32px; place-items: center; border: 1px solid #b8c8ec; border-radius: 50%; color: var(--blue); background: #fff; font-size: 13px; font-weight: 850; }
.journey strong { font-size: 14px; }
.journey small { color: var(--muted); font-size: 12px; }

.panel { margin: 20px 0; padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(214, 222, 235, .96); border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.panel-heading { margin-bottom: 26px; }
.panel-heading h2,
.portfolio__heading h2,
.portal-toolbar h2,
.resume-panel h2 { margin: 0; font-size: clamp(25px, 4vw, 31px); line-height: 1.2; letter-spacing: -.03em; }
.panel-heading p:last-child,
.portfolio__heading p:last-child,
.resume-panel > div > p:last-child { max-width: 680px; margin: 5px 0 0; color: var(--muted); }

.portfolio { padding-bottom: 30px; }
.portfolio__heading { margin-bottom: 20px; }
.compact-action { min-height: 42px; white-space: nowrap; }
.request-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.request-switcher-card { position: relative; display: grid; width: 100%; min-height: 142px; gap: 12px; align-content: space-between; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.request-switcher-card:hover { border-color: #9bb2ec; background: #fbfcff; }
.request-switcher-card[aria-current="true"] { border: 2px solid var(--blue); padding: 16px; background: var(--blue-soft); }
.request-switcher-card[aria-current="true"]::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--blue); content: ""; }
.request-switcher-card__top,
.request-switcher-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.request-switcher-card__number { font-weight: 850; letter-spacing: -.01em; }
.request-switcher-card__label { margin: 0; color: #344054; font-size: 15px; font-weight: 650; }
.request-switcher-card__meta { color: var(--muted); font-size: 12px; }
.request-switcher-card__current { color: var(--blue-dark); font-weight: 800; }

form, label { display: grid; gap: 8px; }
#support-form { gap: 20px; }
label { color: #344054; font-weight: 680; }
.field-group { display: grid; gap: 8px; }
.field-label-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: #fff; font-weight: 450; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: var(--focus); }
textarea { min-height: 155px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint, .character-count { color: var(--muted); font-size: 13px; font-weight: 450; }
.character-count { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.platform-field { max-width: 460px; }
.checkbox-row { display: flex; gap: 11px; align-items: flex-start; margin: 2px 0 0; font-weight: 500; }
.checkbox-row input { width: 21px; height: 21px; margin-top: 2px; flex: 0 0 auto; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button, .link-button { display: inline-flex; width: fit-content; min-height: 46px; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 760; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, opacity .15s; }
@media (hover: hover) { button:hover, .link-button:hover { transform: translateY(-1px); } }
button:disabled { cursor: wait; opacity: .56; transform: none; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: var(--blue-dark); border: 1px solid #b8c7ed; background: #f5f7ff; }
.text-action { min-height: 34px; padding: 5px 10px; color: var(--blue-dark); border: 1px solid #c9d5f5; background: #f7f9ff; font-size: 13px; }
.submit-button { min-width: 210px; min-height: 50px; font-size: 17px; }
.form-actions, .portal-toolbar__actions, .transfer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.returning-request-note { display: grid; gap: 2px; margin: -5px 0 24px; padding: 13px 15px; border: 1px solid #c6d5f6; border-radius: 13px; color: var(--blue-dark); background: var(--blue-soft); }
.returning-request-note span { color: #445a8d; font-size: 14px; }

.draft-help-panel { padding: 16px; border: 1px solid #c6d5f6; border-radius: 14px; background: #f7f9ff; }
.draft-help-message { min-height: 0; margin: 0; color: var(--muted); }
.draft-help-panel strong { display: block; color: var(--ink); }
.draft-help-panel p { margin: 6px 0 12px; white-space: pre-wrap; }
.draft-help-panel .check-list { margin-bottom: 14px; }

.resume-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(340px, 1.15fr); gap: 28px; margin: 20px 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .72); }
.resume-form { align-content: center; }
.inline-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.inline-form-row button { white-space: nowrap; }

.submission-confirmation { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; padding: 17px; border: 1px solid #a9e8d1; border-radius: 17px; background: var(--green-soft); }
.confirmation-icon { display: grid; flex: 0 0 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 23px; font-weight: 850; }
.confirmation-kicker { color: var(--green); }
.submission-confirmation h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.submission-confirmation p:last-child { margin: 5px 0 0; color: #315f52; }
.portal-toolbar { align-items: center; margin-bottom: 20px; }
.portal-mode-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.portal-mode-line .section-kicker { margin: 0; }
.viewer-mode-badge { display: inline-flex; padding: 3px 8px; border: 1px solid #d6a64e; border-radius: 999px; color: #754500; background: var(--amber-soft); font-size: 12px; font-weight: 850; }
.viewer-mode-note { display: grid; gap: 2px; margin: -4px 0 20px; padding: 13px 15px; border: 1px solid #edc77f; border-radius: 12px; color: #754500; background: var(--amber-soft); }
.viewer-mode-note span { color: #694d20; font-size: 14px; }

.transfer-panel { margin: 0 0 20px; padding: 20px; border: 1px solid #b8c7ed; border-radius: 17px; background: #f7f9ff; }
.transfer-panel h3 { margin: 0; font-size: 20px; }
.transfer-panel__heading p { margin: 4px 0 0; color: var(--muted); }
.icon-button { min-width: 44px; min-height: 44px; padding: 0; color: #465269; border: 1px solid var(--line); background: #fff; font-size: 25px; }
.security-callout { display: grid; gap: 2px; margin: 16px 0; padding: 13px 15px; border-left: 4px solid #d79622; border-radius: 0 10px 10px 0; background: var(--amber-soft); }
.security-callout span { color: #694d20; font-size: 14px; }
.transfer-ready { display: flex; gap: 11px; align-items: flex-start; margin: 12px 0; padding: 13px; border-radius: 12px; background: var(--green-soft); }
.transfer-ready__mark { display: grid; flex: 0 0 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 14px; font-weight: 900; }
.transfer-ready p { margin: 2px 0 0; color: #315f52; font-size: 14px; }
.transfer-link-reveal { display: grid; gap: 7px; margin: 12px 0; padding: 13px; border: 1px dashed #9cb0dd; border-radius: 12px; background: #fff; }
.transfer-link-reveal label { font-size: 13px; }
.transfer-link-reveal input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

.detail-card { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.detail-card h3 { margin: 0 0 10px; font-size: 20px; }
.detail-card h4 { margin: 22px 0 8px; }
.detail-card p { white-space: pre-wrap; }
.request-card { margin-top: 0; }
.request-card__heading { align-items: center; }
.fact-label, .facts dt, .request-dates dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.order-number { display: block; margin-top: 2px; font-size: 19px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.status-chip { display: inline-flex; align-items: center; min-height: 31px; padding: 5px 10px; border: 1px solid #b8c7ed; border-radius: 999px; color: var(--blue-dark); background: var(--blue-soft); font-size: 13px; font-weight: 800; text-align: center; }
.status-chip[data-tone="success"] { color: var(--green); border-color: #a9e8d1; background: var(--green-soft); }
.status-chip[data-tone="attention"] { color: var(--amber); border-color: #edc77f; background: var(--amber-soft); }
.status-chip[data-tone="danger"] { color: var(--red); border-color: #f4b9b4; background: var(--red-soft); }
.status-chip[data-tone="neutral"] { color: #475467; border-color: #d0d5dd; background: #f2f4f7; }
.status-note { margin: 16px 0; padding: 11px 13px; border-radius: 11px; color: var(--blue-dark); background: var(--blue-soft); font-weight: 650; }
.request-dates { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.request-dates dd { margin: 2px 0 0; color: #344054; font-size: 14px; font-weight: 650; }
.viewer-summary { margin-top: 16px; padding-bottom: 0; border-bottom: 0; }
.request-description { padding-top: 17px; }
.request-description p { margin: 0; color: #344054; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.facts > div { padding: 13px; border-radius: 13px; background: var(--surface-soft); }
.facts dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.price { color: var(--blue); font-size: 20px; }
.check-list { margin: 8px 0 0; padding-left: 21px; }
.check-list li { margin: 7px 0; }
.success-card { border-color: #a9e8d1; background: linear-gradient(135deg, #fff, var(--green-soft)); }
.instruction-list { padding-left: 22px; }
.instruction-list li { margin: 10px 0; }
.fine-print { color: var(--muted); font-size: 13px; }
.access-key-box { display: grid; gap: 8px; margin-top: 18px; padding: 16px; border: 1px dashed #8ca7fa; border-radius: 14px; background: #fff; }
.access-key-box span { color: var(--muted); font-size: 13px; }
.access-key-box strong { font: 800 clamp(17px, 4vw, 24px)/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }

.release-warning { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin: 22px 0; padding: 18px; border: 1px solid #edb949; border-radius: 16px; background: #fff8e6; color: #5b3a00; box-shadow: 0 12px 28px rgba(120, 78, 0, .08); }
.release-warning__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #a85f00; font-weight: 900; }
.release-warning h4 { margin: 1px 0 8px; font-size: 1.08rem; }
.release-warning p { margin: 7px 0; line-height: 1.5; }
.release-warning__pins { display: grid; gap: 7px; margin: 12px 0 0; }
.release-warning__pins div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.release-warning__pins dt { font-weight: 700; }
.release-warning__pins dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; overflow-wrap: anywhere; }

.physical-actions-card { border: 2px solid #38bdf8; background: #f0f9ff; }
.physical-actions-card > p { margin: 0 0 14px; color: #075985; }
.physical-actions-list { display: grid; gap: 12px; }
.physical-action { padding: 16px; border: 1px solid #7dd3fc; border-radius: 14px; background: #fff; }
.physical-action__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #0369a1; font-size: 13px; font-weight: 750; }
.physical-action h4 { margin: 8px 0 6px; }
.physical-action p { margin: 0 0 14px; color: #344054; }
.physical-action__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.message { min-height: 24px; margin-bottom: 0; color: var(--red); }
.message[data-tone="progress"] { color: var(--muted); }
.message:empty { min-height: 0; }
.device-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.device-actions p { flex: 1 1 360px; margin: 0; color: var(--muted); font-size: 13px; }
.quiet-danger { min-height: 40px; padding: 7px 10px; color: var(--red); border: 0; background: transparent; font-size: 13px; }
.quiet-danger:hover { background: var(--red-soft); }
.safety-note { display: grid; gap: 5px; margin-top: 24px; padding: 20px 22px; border: 1px solid #a9e8d1; border-radius: 18px; background: rgba(234, 250, 244, .84); }
.safety-note span { color: #3e665b; font-size: 14px; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .support-shell { width: min(100% - 20px, 1040px); padding-top: 12px; }
  .hero { padding-top: 8px; }
  .hero__topline { display: block; }
  .security-pill { margin-top: 10px; }
  .hero__eyebrow { margin-top: 30px; }
  .journey { gap: 8px; }
  .journey li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 7px; padding-right: 4px; }
  .journey li:not(:last-child)::after { right: 2px; left: 34px; }
  .journey span { width: 28px; height: 28px; }
  .journey small { display: none; }
  .panel { border-radius: 19px; }
  .portfolio__heading, .portal-toolbar { align-items: stretch; }
  .request-list, .form-grid, .facts, .resume-panel { grid-template-columns: 1fr; }
  .request-switcher-card { min-height: 126px; }
  .resume-panel { gap: 20px; }
  .inline-form-row { grid-template-columns: 1fr; }
  .request-facts { display: grid; gap: 10px; }
  .release-warning__pins div { grid-template-columns: 1fr; gap: 2px; }
  .field-label-row { align-items: flex-start; }
  .field-label-row .text-action { width: auto; }
  .portal-toolbar, .portfolio__heading { flex-direction: column; }
  .portal-toolbar__actions, .form-actions { display: grid; grid-template-columns: 1fr; }
  .portal-toolbar__actions button, .form-actions button, .resume-form button, .portfolio__heading > button, .transfer-actions button, .physical-action__actions button, .link-button { width: 100%; }
  .request-card__heading { align-items: flex-start; }
  .status-chip { max-width: 52%; }
}

@media (max-width: 430px) {
  h1 { font-size: 38px; }
  .panel { padding: 20px 17px; }
  .journey strong { font-size: 12px; }
  .submission-confirmation { gap: 11px; }
  .confirmation-icon { flex-basis: 38px; height: 38px; }
  .transfer-panel { padding: 17px; }
  .field-support-row { display: grid; gap: 3px; }
}

@media (max-width: 350px) {
  .journey { grid-template-columns: 1fr; gap: 8px; }
  .journey li { min-height: 32px; padding-right: 0; }
  .journey li:not(:last-child)::after { top: 28px; right: auto; bottom: -8px; left: 14px; width: 1px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  button,
  .link-button,
  .status-chip,
  .viewer-mode-badge { border: 1px solid ButtonText; forced-color-adjust: auto; }
  .request-switcher-card[aria-current="true"] { outline: 3px solid Highlight; outline-offset: -5px; }
  .request-switcher-card[aria-current="true"]::before { background: Highlight; }
}
