:root {
  color-scheme: light;
  --ink: #10223f;
  --ink-deep: #0c1931;
  --muted: #4d607a;
  --subtle: #61718a;
  --line: #dce4ef;
  --surface: #fff;
  --canvas: #f4f7fb;
  --accent: #1c51d6;
  --accent-dark: #1642b3;
  --accent-pale: #edf3ff;
  --success: #116948;
  --warning: #865506;
  --danger: #9b2936;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; flex-direction: column; }
main { flex: 1; }
main:focus { outline: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-dark); }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #406ff5; outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-150%); color: var(--ink); background: #fff; border-radius: 8px; padding: 10px 16px; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--surface); border-bottom: 1px solid #e8edf4; }
.header-inner { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-symbol { width: 44px; height: 44px; object-fit: contain; }
.brand-type { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.brand-type > span { font-weight: 650; }
.brand-type small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .035em; font-weight: 650; color: var(--subtle); }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav:empty { display: none; }
.site-nav form { margin: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 700; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.nav-link:hover { background: var(--accent-pale); border-color: #b3c7f6; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 25px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: .81rem; }
.footer-inner strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--accent-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.hero { isolation: isolate; position: relative; overflow: hidden; background: radial-gradient(ellipse at 88% 26%, #1d3c76, transparent 52%), var(--ink-deep); color: #fff; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background-image: linear-gradient(#849cde18 1px, transparent 1px), linear-gradient(90deg, #849cde18 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, transparent 38%, #000); }
.hero-inner { min-height: 324px; display: grid; align-items: center; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: 28px; padding-block: 48px; }
.eyebrow { font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: var(--accent-dark); }
.hero .eyebrow { color: #b9cbff; }
.hero h1 { max-width: 700px; font-size: clamp(2.6rem, 5.8vw, 4.1rem); font-weight: 760; line-height: .99; letter-spacing: -.065em; margin: 0 0 19px; }
.hero h1 span { color: #a8bfff; }
.hero p:not(.eyebrow) { max-width: 530px; color: #d9e4f9; font-size: 1.06rem; line-height: 1.6; }
.hero-art { position: relative; width: min(350px, 100%); height: 205px; justify-self: center; display: grid; place-items: center; }
.hero-art .orbit { position: absolute; width: 212px; height: 212px; border-radius: 50%; border: 1px solid #6d95e780; }
.hero-art .orbit::before { content: ""; position: absolute; inset: 16px; border: 1px dashed #87a9ec69; border-radius: inherit; }
.hero-art .orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #8caeff; left: 19px; top: 30px; box-shadow: 0 0 18px #6595ff; }
.document-mock { z-index: 1; position: absolute; width: 151px; height: 174px; border: 1px solid #6687caa0; border-radius: 13px; background: linear-gradient(145deg, #315ba7, #172f63); transform: rotate(-8deg) translate(-8px, -3px); box-shadow: 0 22px 38px #080d2570; padding: 17px; }
.document-mock::before { content: ""; position: absolute; z-index: -1; inset: -13px -14px 11px 13px; border-radius: 13px; border: 1px solid #6687ca80; transform: rotate(15deg); background: #233f7940; }
.mock-line { display: block; height: 4px; border-radius: 4px; background: #91ace59e; margin: 7px 0; }
.mock-title { width: 57%; height: 13px; margin-block: 20px 23px; background: #c2d5ff; }
.mock-line:nth-last-child(1) { width: 58%; }
.mock-line:nth-last-child(2) { width: 75%; }
.mock-tick { z-index: 2; position: absolute; bottom: 8px; right: 13%; width: 64px; height: 64px; display: grid; place-items: center; color: #193b87; background: #d8e5ff; border-radius: 19px; box-shadow: 0 10px 25px #090e2860; transform: rotate(9deg); }

.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; padding-block: 33px 58px; }
.request-fields { display: grid; gap: 17px; min-width: 0; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px #21365d06; }
.form-section { padding: 26px 28px 29px; }
.form-section legend { padding: 0; }
.form-section .section-heading { margin: 0 0 15px; font-size: 1.24rem; font-weight: 750; line-height: 1.23; letter-spacing: -.024em; }
.service-help { margin-bottom: 12px; }
.option-heading { margin-bottom: 7px; font-size: .91rem; }
.ce-option { margin-top: 13px; border-color: #b7c8ed; }
.required { color: var(--accent-dark); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.optional { font-size: .75rem; color: var(--subtle); font-weight: 500; margin-left: .25rem; }
.control { width: 100%; min-height: 45px; padding: 9px 11px; border-radius: 8px; border: 1px solid #c8d3e3; background: #fff; color: var(--ink); font-size: 16px; }
textarea.control { min-height: 104px; resize: vertical; display: block; }
.control::placeholder { color: #677991; }
.control:hover { border-color: #859ab9; }
.control:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px #4071ef2a; }
.control[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .82rem; font-weight: 650; }
.company-search { position: relative; }
.company-search-help, .company-search-status { color: var(--muted); font-size: .83rem; }
.company-search-help, .company-search-status:not(:empty) { margin-top: 5px; }
.company-options {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  top: calc(100% + 4px);
  max-height: min(19rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #b7c8ed;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 24px #10223f24;
}
.company-options li { padding: 8px 10px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.company-options li + li { border-top: 1px solid var(--line); }
.company-options li:hover, .company-options li[aria-selected="true"] { background: var(--accent-pale); }
.company-options strong, .company-options small { display: block; }
.company-options strong { font-size: .88rem; }
.company-options small { margin-top: 2px; color: var(--muted); font-size: .8rem; }
.choices { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices legend { margin: 0 0 9px; font-size: .88rem; font-weight: 750; }
.option-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: flex; min-width: 0; align-items: flex-start; gap: 10px; min-height: 60px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: #fff; }
.choice:hover { border-color: #99b2f0; }
.choice:has(input:checked) { border-color: #5a83ec; background: var(--accent-pale); box-shadow: 0 0 0 1px #5a83ec; }
.choice:has(input:focus-visible) { outline: 3px solid #406ff5; outline-offset: 2px; }
.choice input { margin: 2px 0 0; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--accent); }
.choice input:focus-visible { outline: 0; }
.choice strong { display: block; font-size: .84rem; line-height: 1.32; }
.choice small { display: block; color: var(--muted); font-size: .79rem; margin-top: 2px; line-height: 1.34; }
.choice .tag { margin-left: auto; }
.option-grid + .field-error { margin-top: 10px; }
.section-gap { margin-top: 21px; }
@supports selector(:has(*)) {
  .service-selection:not(:has([data-ce-option]:checked)) [data-ce-product-group],
  .service-selection:not(:has([data-iso-option]:checked)) [data-iso-speed] { display: none; }
}
.summary { position: sticky; top: 19px; padding: 23px; }
.summary h2 { font-size: 1.15rem; letter-spacing: -.02em; margin: 0 0 8px; }
.summary > p:not(.eyebrow) { font-size: .86rem; color: var(--muted); }
.summary-row { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 12px; }
.summary-row > span { display: block; color: var(--muted); font-size: .78rem; }
.summary-row > strong { display: block; font-size: .91rem; overflow-wrap: anywhere; }
.selection-list { margin: 7px 0 0; padding: 0; display: flex; gap: 5px; flex-wrap: wrap; list-style: none; }
.selection-list li, .tag { display: inline-flex; align-items: center; border-radius: 6px; background: var(--accent-pale); padding: 2px 7px; color: var(--accent-dark); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.summary .button { width: 100%; justify-content: center; margin-top: 18px; }
.summary .summary-note { margin-top: 10px; font-size: .76rem !important; line-height: 1.45; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: #fff; text-decoration: none; font-size: .875rem; font-weight: 750; padding: 9px 14px; line-height: 1.2; justify-content: center; }
.button:hover { background: var(--accent-dark); }
.button:disabled { opacity: .72; cursor: progress; }
.button.secondary { background: #fff; color: var(--ink); border-color: #c8d3e3; }
.button.secondary:hover { background: var(--accent-pale); border-color: #a7bdf3; }
/* Public request screens use the same dark green as the CERT website. */
body:not(.admin-interface) {
  --accent: #193b37;
  --accent-dark: #102e2a;
  --accent-pale: #e2ede4;
}
body:not(.admin-interface) .button {
  background: #193b37;
  border-color: #193b37;
  color: #fff;
}
body:not(.admin-interface) .button:hover { background: #102e2a; border-color: #102e2a; }
body:not(.admin-interface) .button:active { background: #0d231f; border-color: #0d231f; }
body:not(.admin-interface) .button:focus-visible { outline-color: #116b59; }
body:not(.admin-interface) .button.secondary { background: #fff; color: #193b37; border-color: #193b37; }
body:not(.admin-interface) .button.secondary:hover { background: #e2ede4; }
.notice { padding: 13px 15px; border-radius: 9px; color: var(--ink); border: 1px solid #b7c8ed; background: var(--accent-pale); font-size: .88rem; }
.notice.danger { color: var(--danger); background: #fff1f2; border-color: #edb9c0; }
.notice.warning { color: var(--warning); background: #fff6e0; border-color: #e7d1a2; }
.notice.success { color: var(--success); background: #eaf8ef; border-color: #b5dec7; }
.notice p + p { margin-top: 7px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

.center-page { width: min(100% - 48px, 515px); margin: clamp(36px, 10vh, 110px) auto; }
.center-panel { padding: 32px; }
.center-panel h1, .page-heading h1 { font-size: clamp(1.85rem, 5vw, 2.7rem); font-weight: 760; letter-spacing: -.05em; line-height: 1.12; margin: 8px 0 10px; }
.center-panel > p:not(.eyebrow), .page-heading > p { color: var(--muted); }
.center-panel form { margin-top: 21px; display: grid; gap: 13px; }
.center-panel form .button { margin-top: 3px; }
.center-panel > .notice { margin-top: 16px; }
.center-panel > .button { margin-top: 18px; }

.cert-quote-redirecting body { visibility: hidden; }
.cert-quote-embedded { --canvas: #fff; background: #fff; }
.cert-quote-embedded body { display: block; min-height: 0; }
.cert-quote-embedded :is(.site-header, .hero, .site-footer) { display: none; }
.cert-quote-embedded .request-grid {
  width: 100%;
  padding-block: 8px 16px;
}
.cert-quote-embedded .summary { position: static; }
.cert-quote-embedded .summary.cert-summary-following {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
.cert-quote-embedded .center-page {
  width: min(100%, 515px);
  margin: 0 auto;
  padding-block: 8px 16px;
}

.admin-page { padding-block: 38px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 22px; }
.page-heading { min-width: 0; overflow-wrap: anywhere; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading p { font-size: .91rem; }
.admin-page > .notice { margin-bottom: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.metric { padding: 16px 18px; }
.metric span { display: block; font-size: .83rem; color: var(--muted); }
.metric strong { display: block; font-size: 1.7rem; line-height: 1.2; margin-top: 2px; letter-spacing: -.05em; }
.inset { padding: 20px; }
.inset h2 { font-size: 1.16rem; letter-spacing: -.022em; margin-bottom: 9px; }
.filter { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: 0; }
.filter .field:first-child { flex: 1 1 250px; }
.filter .button { min-height: 45px; }
.table-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.table-head h2 { margin: 0; }
.table-head p { color: var(--muted); font-size: .83rem; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
.data-table th { font-size: .75rem; font-weight: 750; letter-spacing: .015em; white-space: nowrap; color: var(--muted); background: #f7f9fd; }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; color: var(--muted); margin-top: 3px; }
.data-table td a { font-weight: 700; text-underline-offset: 3px; }
.data-table td:nth-child(2) { min-width: 155px; overflow-wrap: anywhere; }
.data-table td:nth-child(3) { min-width: 150px; }
.data-table .tag { white-space: normal; margin: 1px; }
.data-table td:last-child { white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 3px 8px; border-radius: 20px; white-space: nowrap; font-weight: 700; font-size: .73rem; background: #edf2f8; color: #3d5778; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.sent { background: #e9f6ef; color: var(--success); }
.status.review, .status.pending { background: #fff4dc; color: var(--warning); }
.status.failed { background: #ffeef0; color: var(--danger); }
.empty-state { padding: 34px 18px 39px; text-align: center; }
.empty-state h3 { font-size: 1.08rem; margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: .89rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); align-items: start; gap: 15px; }
.detail-stack { min-width: 0; display: grid; gap: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; margin: 0; }
.detail-grid > div { min-width: 0; border-top: 1px solid var(--line); padding: 9px 0 10px; }
.detail-grid > div.full { grid-column: 1 / -1; }
.detail-grid dt { font-size: .77rem; color: var(--muted); }
.detail-grid dd { margin: 3px 0 0; font-size: .9rem; font-weight: 650; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-grid dd .tag { margin: 2px 4px 2px 0; }
.detail-stack .notice, .detail-stack .page-actions { margin-top: 10px; }
.detail-stack .button { flex: 1 1 auto; }
.muted { color: var(--muted); font-size: .85rem; }
.text-wrap { overflow-wrap: anywhere; }
.top-gap { margin-top: 13px; }
.payment-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 17px; border-radius: 13px; color: var(--accent-dark); background: var(--accent-pale); }
.payment-panel form .button {
  --payment-button-color: #193B37;
  min-height: 49px;
  background: var(--payment-button-color);
  border-color: var(--payment-button-color);
}
.payment-panel form .button:hover { --payment-button-color: #132E2A; }
.payment-panel form .button:active { --payment-button-color: #0D231F; }
.payment-panel form .button:focus-visible { outline-color: #193B37; }
.open-history { margin-top: 15px; scroll-margin-top: 15px; }
.open-history .empty-state { border-top: 1px solid var(--line); }
.opens-table td:nth-child(2) { min-width: 0; white-space: normal; font-variant-numeric: tabular-nums; }
.number-cell { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-link[aria-current="page"] { border-color: #a7bdf3; background: var(--accent-pale); color: var(--accent-dark); }
.admin-form { display: grid; gap: 15px; }
.saved-draft, .offer-history { margin-bottom: 15px; }
.offer-history { margin-top: 15px; }
.saved-draft .page-actions form { margin: 0; }
.price-list { display: grid; }
.price-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) repeat(2, minmax(100px, 1fr)); gap: 10px 15px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.price-row:first-child { border-top: 1px solid var(--line); }
.price-standard { display: flex; align-items: flex-start; align-self: center; min-width: 0; gap: 8px; }
label.price-standard { cursor: pointer; }
.price-standard input { width: 17px; height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--accent); }
.price-standard strong, .price-standard small { display: block; }
.price-standard small { color: var(--muted); }
.price-row .field label { font-size: .8rem; }
.compose-form { max-width: 775px; }
.compose-form textarea { min-height: 200px; }
.compose-form .button:disabled, .saved-draft .button:disabled { cursor: not-allowed; }
.history-entry { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.history-entry h3 { font-size: .98rem; }
.history-entry .detail-grid { margin-top: 8px; }
.history-entry .page-actions { margin-top: 7px; }
.message-details { margin: 7px 0; font-size: .88rem; }
.message-details summary { cursor: pointer; color: var(--accent-dark); font-weight: 700; }
.message-details p { margin-top: 6px; padding: 10px; background: var(--canvas); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .request-grid { grid-template-columns: minmax(0, 1fr) 242px; gap: 14px; }
  .form-section, .summary { padding: 19px; }
  .hero-inner { min-height: 300px; grid-template-columns: minmax(0, 1.4fr) minmax(170px, .7fr); }
  .hero-art { transform: scale(.84); }
}
@media (max-width: 670px) {
  .container { width: calc(100% - 30px); }
  .header-inner { min-height: 65px; }
  .hero-inner { display: block; min-height: 0; padding: 37px 0 39px; }
  .hero-art { display: none; }
  .hero::before { mask-image: linear-gradient(90deg, transparent 35%, #000); }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.45rem); }
  .hero p:not(.eyebrow) { font-size: .97rem; }
  .request-grid { display: grid; grid-template-columns: 1fr; padding-block: 19px 34px; }
  .summary { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .admin-page { padding-block: 25px 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .price-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-standard { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .form-section, .summary, .inset, .center-panel { padding: 16px; }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .brand-type { font-size: 16px; }
  .brand-type small { font-size: 9px; }
  .brand-symbol { width: 34px; height: 34px; }
  .site-nav { gap: 6px; }
  .admin-interface .header-inner { flex-wrap: wrap; padding-block: 9px; gap: 7px; }
  .admin-interface .site-nav { margin-left: auto; flex-wrap: wrap; }
  .nav-link { padding: 7px 9px; font-size: .78rem; }
  .nav-link svg { display: none; }
  .option-grid { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .metric { padding: 9px; }
  .metric span { font-size: .73rem; }
  .detail-grid { grid-template-columns: 1fr; }
}
.status.blocked { background: #fff4dc; color: var(--warning); }
.status.sending { background: var(--accent-pale); color: var(--accent-dark); }
.back-link { display: inline-block; color: var(--accent-dark); font-size: .86rem; font-weight: 700; text-underline-offset: 3px; }
