:root {
  color-scheme: light;
  --blue: #0877f9;
  --blue-dark: #065ecc;
  --blue-soft: #eaf4ff;
  --ink: #142033;
  --muted: #667085;
  --line: #dfe7f1;
  --surface: #fff;
  --page: #f5f8fc;
  --success: #0a8f62;
  --success-soft: #e9f8f2;
  --warning: #b15e00;
  --warning-soft: #fff5df;
  --danger: #d62f3c;
  --danger-soft: #fff0f1;
  --shadow: 0 20px 55px rgba(23, 52, 86, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 8px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.site-header {
  height: 64px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1080px, calc(100% - 32px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-name { white-space: nowrap; }
.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1592ff, #075be7);
  border-radius: 11px;
  font-size: 13px;
  box-shadow: 0 7px 18px rgba(8, 119, 249, .24);
}
.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #cde4ff;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  transition: color .16s, background-color .16s, border-color .16s;
}
.header-action:hover { color: #fff; background: var(--blue); border-color: var(--blue); }
.header-action[aria-expanded="true"] { color: #fff; background: var(--blue); border-color: var(--blue); }

.header-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.language-control { display: inline-flex; min-width: 0; }
.language-control select {
  min-height: 40px;
  max-width: 100%;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.language-control select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 639px) {
  .site-header { height: auto; min-height: 64px; }
  .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .brand-name { white-space: normal; overflow-wrap: anywhere; }
}

.page-shell {
  width: min(920px, calc(100% - 24px));
  margin: 0 auto;
  padding: 50px 0 56px;
}
.hero { max-width: 700px; margin: 0 auto 32px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 47px); line-height: 1.18; letter-spacing: -.045em; }
.hero-subtitle { margin: 10px 0 0; color: var(--ink); font-size: clamp(17px, 3vw, 20px); font-weight: 750; }
.hero-description { max-width: 630px; margin: 12px auto 0; color: var(--muted); font-size: 14px; }

.workspace {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(209, 220, 234, .9);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.service-switcher {
  padding: 18px 18px 0;
  background: #fff;
}
.provider-readiness {
  margin: 0;
  padding: 10px 13px;
  color: #8a5800;
  background: var(--warning-soft);
  border: 1px solid #f0d89e;
  border-radius: 11px;
  font-size: 13px;
}
.provider-readiness.is-available { color: #087443; background: var(--success-soft); border-color: #bfead5; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid rgba(8, 119, 249, .25);
  outline-offset: 2px;
}

.tab-panel { padding: 24px 18px 28px; }
.sr-only-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.step { position: relative; display: flex; flex-direction: column; align-items: center; color: #98a2b3; font-size: 11px; text-align: center; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--line);
}
.step span {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  background: #f2f5f9;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
}
.step em { font-style: normal; white-space: nowrap; }
.step.is-current, .step.is-done { color: var(--blue); }
.step.is-current span { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.step.is-done span { color: #fff; background: var(--success); border-color: var(--success); }
.step.is-done:not(:last-child)::after { background: var(--success); }

.flow-stage { max-width: 650px; min-height: 320px; margin: 0 auto; }
.flow-step { animation: enter .24s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .flow-step { animation: none; } }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.heading-index {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
}
.section-heading h2 { margin: 0; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }.details-subtitle { margin: 3px 0 0; }
.details-subtitle > p { margin: 0; color: var(--muted); font-size: 13px; }
.session-guide {
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  background: #eef5ff;
  color: #1d4f91;
}
.session-guide-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #1d4f91; }
.session-guide ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.session-guide li { font-size: 13px; line-height: 1.55; }
.session-guide a { color: #1d4f91; word-break: break-all; }

.field-group { margin-bottom: 18px; }
.field-label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 700; }
.required-mark { margin-left: 4px; color: var(--danger); }
input, select, textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd9e7;
  border-radius: 11px;
  transition: border-color .16s, box-shadow .16s;
}
input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 98px; padding: 12px 14px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #a9b8cc; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 119, 249, .10); outline: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.field-error { min-height: 1.5em; margin: 4px 0 0; color: var(--danger); font-size: 12px; }
.field-error:empty { display: none; }

.primary-button, .secondary-button, .text-button, .danger-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border-radius: 11px;
  font-weight: 750;
  text-decoration: none;
}
.primary-button { width: 100%; color: #fff; background: var(--blue); border: 1px solid var(--blue); box-shadow: 0 8px 20px rgba(8, 119, 249, .18); }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.secondary-button { color: #344054; background: #fff; border: 1px solid #cfd9e7; }
.secondary-button:hover:not(:disabled) { background: #f8fafc; }
.button-row { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
.button-row .primary-button, .button-row .secondary-button { width: 100%; }
.is-loading > span:first-child::after, button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
button.is-loading::before { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-card {
  margin-bottom: 22px;
  padding: 16px;
  background: linear-gradient(135deg, #f3f8ff, #fbfdff);
  border: 1px solid #d6e8ff;
  border-radius: 13px;
}
.product-card strong { display: block; font-size: 16px; }
.product-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.dynamic-fields { display: grid; gap: 0; }
.form-error { margin-top: 8px; }
#details-form .field-group:last-child { margin-bottom: 0; }
#details-form .button-row { margin-top: 14px; }
.account-validation-status {
  min-height: 20px;
  margin: 10px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 13px;
}
.account-validation-message { margin: 0; font-weight: 650; }
.account-validation-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 18px;
  margin: 9px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(8, 116, 67, 0.18);
}
.account-validation-details div { min-width: 0; }
.account-validation-details dt { margin: 0 0 2px; color: #3a6b57; font-size: 12px; }
.account-validation-details dd { margin: 0; color: #075d37; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.account-validation-status[hidden] { display: none; }
.account-validation-status.is-pending { color: var(--primary); background: #f2f7ff; border-color: #cfe1ff; }
.account-validation-status.is-success { color: #087443; background: #effbf5; border-color: #bfead5; }
.account-validation-status.is-warning { color: #8a5800; background: #fff9ec; border-color: #f0d89e; }
.account-validation-status.is-error { color: var(--danger); background: #fff4f4; border-color: #f1c2c2; }
.result-card { padding: 34px 20px; text-align: center; border-radius: 16px; background: #f7f9fc; border: 1px solid var(--line); }
.result-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 22px; font-weight: 800; }
.result-card h2 { margin: 0; font-size: 23px; }
.result-card > p { margin: 8px auto 0; max-width: 480px; color: var(--muted); }
.result-card.is-success { background: var(--success-soft); border-color: #bde9d9; }
.result-card.is-success .result-icon { color: #fff; background: var(--success); }
.result-card.is-warning { background: var(--warning-soft); border-color: #f1dbad; }
.result-card.is-warning .result-icon { color: #fff; background: #dc8209; }
.result-card.is-error { background: var(--danger-soft); border-color: #f4c6ca; }
.result-card.is-error .result-icon { color: #fff; background: var(--danger); }
.result-details { margin: 20px auto 0; padding-top: 15px; border-top: 1px solid rgba(70, 97, 124, .18); text-align: left; }
.result-details div { display: grid; grid-template-columns: minmax(90px, .7fr) 1.3fr; gap: 10px; padding: 6px 0; }
.result-details dt { color: var(--muted); }
.result-details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.query-layout { display: grid; gap: 22px; }
.query-input-summary { min-height: 1.5em; }
.query-result { min-height: 220px; display: grid; place-items: center; padding: 20px; background: #f8fafc; border: 1px dashed #cbd7e6; border-radius: 15px; }
.empty-state { color: var(--muted); text-align: center; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 10px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 24px; }
.empty-state h3 { margin: 0; color: var(--ink); }
.empty-state p { margin: 4px 0 0; font-size: 13px; }
.query-result .result-card { width: 100%; padding: 24px 16px; }
.query-result.has-results { min-height: 0; display: block; padding: 0; overflow: hidden; background: #fff; border-style: solid; }
.query-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 0; }
.query-actions:empty { display: none; }
.query-actions p { margin: 0; color: var(--muted); font-size: 12px; }
.query-actions .secondary-button { min-height: 42px; }

.assurance { display: grid; gap: 10px; margin-top: 18px; }
.assurance div { display: grid; grid-template-columns: 36px 1fr; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.assurance div > span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 9px; font-weight: 800; }
.assurance strong { font-size: 13px; }
.assurance small { color: var(--muted); font-size: 11px; }

.site-footer {
  width: min(1080px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 auto;
  padding: 22px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}
.toast-region { position: fixed; z-index: 50; right: 14px; bottom: 14px; display: grid; gap: 8px; }
.toast { max-width: min(360px, calc(100vw - 28px)); padding: 11px 15px; color: #fff; background: #243247; border-radius: 10px; box-shadow: 0 12px 30px rgba(20,32,51,.22); font-size: 13px; }
.noscript { margin: 0; padding: 12px; color: #fff; background: var(--danger); text-align: center; }

@media (min-width: 640px) {
  .service-switcher { padding: 24px 36px 0; }
  .tab-panel { padding: 30px 36px 38px; }
  .step { font-size: 12px; }
  .button-row { flex-direction: row; }
  .button-row .primary-button, .button-row .secondary-button { width: auto; flex: 1; }
  .assurance { grid-template-columns: repeat(3, 1fr); }
  .site-footer { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 820px) {
  .query-result { min-height: 260px; }
  .tab-panel { min-height: 500px; }
}

@media (max-width: 639px) {
  .account-validation-details { grid-template-columns: 1fr; }
  .query-actions { align-items: stretch; flex-direction: column; }
  .query-actions .secondary-button { width: 100%; }
}

@media (max-width: 430px) {
  .header-inner { width: calc(100% - 20px); gap: 8px; }
  .brand { gap: 7px; font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .header-action { min-height: 40px; padding: 0 11px; font-size: 12px; }
  .page-shell { padding-top: 30px; }
  .hero h1 { font-size: 30px; }
  .step em { max-width: 60px; white-space: normal; line-height: 1.2; }
}

@media (max-width: 340px) {
  .site-header { height: auto; min-height: 64px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-action { padding: 0 9px; }
  .tab-panel { padding-right: 14px; padding-left: 14px; }
}

/* 77520 account form refresh: visual-only overrides. */
:root { --primary: var(--blue); }
body {
  background:
    radial-gradient(circle at 10% -10%, rgba(115, 180, 255, .16), transparent 34%),
    radial-gradient(circle at 96% 18%, rgba(93, 212, 177, .10), transparent 28%),
    var(--page);
}
.page-shell { width: min(1080px, calc(100% - 32px)); padding: 38px 0 64px; }
.workspace {
  border-color: #d9e4f1;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(38, 71, 111, .12);
}
.service-switcher { padding: 24px 24px 0; background: transparent; }
.provider-readiness {
  padding: 13px 16px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.5;
}
.tab-panel { padding: 28px 24px 38px; }
.stepper { margin-bottom: 36px; }
.step { color: #93a1b5; font-size: 12px; }
.step:not(:last-child)::after { top: 15px; background: #dce6f1; }
.step span {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  background: #f4f7fb;
  border-color: #dce6f1;
}
.step.is-current span { box-shadow: 0 0 0 6px #eaf3ff; }
.step.is-done:not(:last-child)::after { background: #49b994; }
.flow-stage { max-width: 720px; min-height: 340px; }
.section-heading { gap: 14px; margin-bottom: 16px; }
.heading-index {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eaf3ff;
  font-size: 13px;
}
.section-heading h2 { font-size: 24px; letter-spacing: -.035em; }
.section-heading p { font-size: 13px; }
.details-subtitle { margin: 0 0 18px; }
.details-subtitle > p { margin: 0 0 12px; color: #718198; font-size: 13px; }
.product-card {
  position: relative;
  margin: 0 0 16px;
  padding: 15px 17px;
  background: linear-gradient(135deg, #f4f8ff, #fbfdff);
  border-color: #d5e5fb;
  border-radius: 14px;
}
.product-card::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: #7185a0;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}
.product-card strong { font-size: 16px; }
.product-card p { margin-top: 2px; font-size: 12px; }
.session-guide {
  margin: 0 0 18px;
  padding: 15px 17px;
  border-color: #c9defb;
  border-radius: 14px;
  background: #eef6ff;
  color: #2e5d9b;
  box-shadow: inset 3px 0 0 #78aef5;
}
.session-guide-title { margin-bottom: 8px; color: #1f4f8d; font-size: 14px; }
.session-guide ol { gap: 5px; padding-left: 19px; }
.session-guide li { font-size: 13px; line-height: 1.6; }
.session-guide a { color: #1765ca; text-underline-offset: 2px; }
.field-group { margin-bottom: 20px; }
.field-label { margin-bottom: 8px; font-size: 13px; }
input, select, textarea { border-color: #cbd8e8; border-radius: 13px; }
input, select { height: 50px; }
textarea { min-height: 122px; padding: 14px 15px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(8, 119, 249, .12); }
.field-help { margin-top: 7px; color: #73829a; font-size: 12px; }
.field-error { font-size: 12px; }
.button-row { gap: 12px; margin-top: 26px; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 13px; }
.primary-button { box-shadow: 0 10px 24px rgba(8, 119, 249, .22); }
.secondary-button { color: #1d3556; background: #fff; border-color: #cbd8e8; }
.secondary-button:hover:not(:disabled) { color: var(--blue-dark); background: #f6faff; border-color: #a7c6ed; }
.account-validation-status { margin-top: 13px; padding: 11px 13px; border-radius: 12px; }

@media (min-width: 640px) {
  .service-switcher { padding: 26px 38px 0; }
  .tab-panel { padding: 32px 38px 44px; }
  .button-row { margin-top: 28px; }
}

@media (max-width: 639px) {
  .page-shell { width: min(100% - 16px, 960px); padding: 22px 0 40px; }
  .workspace { border-radius: 20px; }
  .service-switcher { padding: 16px 16px 0; }
  .tab-panel { padding: 24px 16px 28px; }
  .stepper { margin-bottom: 28px; }
  .step { font-size: 11px; }
  .flow-stage { min-height: 0; }
  .section-heading h2 { font-size: 21px; }
  .heading-index { width: 40px; height: 40px; border-radius: 12px; }
  .session-guide { padding: 13px 14px; }
  .session-guide li { font-size: 12px; overflow-wrap: anywhere; }
  .product-card { padding: 14px 15px; }
  .button-row { margin-top: 22px; }
}

/* 77520 centered responsive UI. */
.primary-layout { display: block; }
.primary-layout .hero,
.primary-layout .workspace,
.primary-layout .assurance {
  width: min(780px, 100%);
  margin-inline: auto;
}
.primary-layout .hero {
  max-width: none;
  margin-bottom: 16px;
  text-align: center;
}
.primary-layout .workspace { min-width: 0; }
.primary-layout .assurance { margin-top: 12px; }

.primary-button,
.secondary-button,
.text-button,
.danger-button,
.header-action {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}
.primary-button,
.secondary-button,
.text-button,
.danger-button { gap: 7px; }
.header-action { gap: 7px; }
#inspect-form input { display: block; }
#inspect-form .primary-button { display: flex; }
#inspect-form .primary-button { margin-top: 18px; }
#inspect-form .field-error:not(:empty) + .primary-button { margin-top: 12px; }

[data-icon="forward"]::after,
[data-icon="back"]::before,
[data-icon="search"]::before,
[data-icon="refresh"]::before,
.header-action::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}
[data-icon="forward"]::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
[data-icon="back"]::before,
.header-action[aria-expanded="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}
[data-icon="search"]::before,
.header-action[aria-expanded="false"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
[data-icon="refresh"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0 2 5.3M20 4v7h-7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0 2 5.3M20 4v7h-7'/%3E%3C/svg%3E");
}
button.is-loading[data-icon]::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
  background: transparent;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-mask-image: none;
  mask-image: none;
  animation: spin .7s linear infinite;
}
button.is-loading[data-icon]::after { display: none; }

.flow-stage { max-width: none; min-height: 340px; }
.product-card { margin-bottom: 16px; }
.details-subtitle { margin-bottom: 18px; }
.session-guide { margin-bottom: 18px; }
.account-validation-status { margin-top: 13px; }
.session-guide a,
.field-error,
.result-card > p { overflow-wrap: anywhere; }

.is-query-view .hero { display: none; }
.is-query-view .workspace { margin-top: 0; border-radius: 16px; }
.is-query-view .service-switcher { display: none; }
#query-panel {
  --blue: #1765dd;
  --blue-dark: #1459c3;
  --blue-soft: #edf4ff;
  --muted: #617086;
  --line: #e4e9f1;
  padding: 26px;
  color: #17263c;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}
#query-panel .query-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#query-title { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.35; letter-spacing: normal; }
#query-readiness-slot { min-width: 0; max-width: 100%; }
#query-panel .provider-readiness { margin: 0; max-width: 100%; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
#query-panel .provider-readiness.is-available {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #16734b;
}
#query-panel .provider-readiness.is-available::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: currentColor; }
#query-panel .query-description { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
#query-panel .query-label-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#query-panel .query-label-row .field-label { margin: 0; font-size: 14px; font-weight: 400; }
#query-panel .query-label-row > span { font-size: 12px; color: var(--muted); }
#query-form textarea { display: block; height: auto; min-height: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #f5f7fb; color: #17263c; font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 400; line-height: 1.6; resize: vertical; }
#query-form .query-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
#query-form .query-input-messages { min-width: 0; flex: 1 1 auto; }
#query-form .query-input-summary { min-height: 0; margin: 0; }
#query-form .field-error { margin: 4px 0 0; overflow-wrap: anywhere; }
#query-form .query-submit-row > .primary-button {
  width: auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
  flex: 0 0 auto;
}
#query-panel .query-layout { gap: 28px; }
#query-panel .query-result {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
#query-panel .query-result.has-results { justify-items: normal; padding-top: 20px; border-top: 1px solid var(--line); border-radius: 0; overflow: visible; }
#query-panel .query-result:not(.has-results) {
  min-height: 220px;
  padding: 20px;
  background: #f8fafc;
  border: 1px dashed #cbd7e6;
}
#query-panel .batch-duplicates {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
#query-panel .batch-usage {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 16px;
}
#query-panel .batch-filters {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px;
}
#query-panel .batch-usage-filter {
  width: auto;
  min-width: 0;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  white-space: normal;
}
#query-panel .batch-usage-filter:hover:not(:disabled) { background: #f4f8fd; border-color: #dbe7f4; }
#query-panel .batch-usage-filter[aria-pressed="true"] { color: var(--blue-dark); background: var(--blue-soft); border-color: #c8e0ff; }
#query-panel .batch-copy-area {
  min-width: 0;
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
#query-panel .batch-copy-unused {
  width: auto;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
  white-space: normal;
}
#query-panel .batch-copy-unused:hover:not(:disabled) { color: #fff; background: var(--blue); border-color: var(--blue); }
#query-panel .batch-copy-feedback { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
#query-panel .batch-copy-feedback:empty { display: none; }
#query-panel .batch-copy-feedback p { margin: 0; }
#query-panel .batch-copy-manual { width: 100%; min-height: 100px; margin: 0; }
#query-panel .batch-table-wrap { width: 100%; overflow: visible; }
#query-panel .batch-table,
#query-panel .batch-table tbody { display: block; width: 100%; }
#query-panel .batch-table { min-width: 0; padding: 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
#query-panel .batch-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  display: table-header-group;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#query-panel .batch-table tr {
  display: grid;
  grid-template-columns: fit-content(50%) minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e7edf5;
  border-radius: 0;
}
#query-panel .batch-table tr:last-child { border-bottom: 0; }
#query-panel .batch-table td,
#query-panel .batch-table td:nth-child(n) {
  width: auto;
  padding: 0;
  border: 0;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
#query-panel .batch-table td::before {
  content: attr(data-label);
  color: var(--muted);
  font-weight: 400;
}
#query-panel .batch-table td:nth-child(1) { display: none; }
#query-panel .batch-table td:nth-child(2) { grid-column: 1 / 3; grid-row: 1; display: block; align-self: center; color: #17263c; font-family: ui-monospace, Consolas, monospace; font-size: 14px; font-weight: 400; word-break: normal; }
#query-panel .batch-table td:nth-child(2)::before,
#query-panel .batch-table td:nth-child(3)::before,
#query-panel .batch-table td:nth-child(4)::before { display: none; }
#query-panel .batch-table td:nth-child(4) { grid-column: 3; grid-row: 1; display: block; align-self: start; justify-self: end; }
#query-panel .batch-table td:nth-child(3) { grid-column: 1; grid-row: 2; }
#query-panel .batch-table td:nth-child(6) { grid-column: 2 / 4; grid-row: 2; }
#query-panel .batch-table td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; }
#query-panel .batch-table td:nth-child(3),
#query-panel .batch-table td:nth-child(6) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
#query-panel .batch-table td:nth-child(6)::before { content: attr(data-label) ": "; }
#query-panel .batch-table td:nth-child(5) { display: block; font-size: 13px; }
#query-panel .batch-table td:nth-child(5)::before { display: none; }
#query-panel .batch-status { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 400; white-space: normal; }
#query-panel .batch-status.is-success { color: #087a5b; background: var(--success-soft); }
#query-panel .batch-status.is-warning { color: #9a5b06; background: var(--warning-soft); }
#query-panel .batch-status.is-error { color: #b4232d; background: var(--danger-soft); }
#query-panel .batch-status.usage-unused { color: #16734b; background: #eef8f2; }
#query-panel .batch-status.usage-used { color: var(--blue); background: var(--blue-soft); }
#query-panel .batch-result-message { display: block; min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
#query-panel .batch-result-details { min-width: 0; display: grid; gap: 4px; margin: 8px 0 0; }
#query-panel .batch-result-details div { min-width: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 6px; }
#query-panel .batch-result-details dt { color: var(--muted); }
#query-panel .batch-result-details dd { min-width: 0; margin: 0; font-weight: 400; overflow-wrap: anywhere; }

@media (max-width: 639px) {
  .page-shell { width: calc(100% - 20px); padding: 18px 0 34px; }
  .primary-layout .hero { margin-bottom: 12px; text-align: left; }
  .hero h1 { font-size: 25px; }
  .hero-description { margin-top: 5px; }
  .workspace { border-radius: 16px; }
  .service-switcher { padding: 14px 14px 0; }
  .tab-panel { padding: 18px 14px 22px; }
  .stepper { margin-bottom: 22px; }
  .flow-stage { min-height: 0; }
  .button-row { gap: 9px; margin-top: 20px; }
  .primary-button,
  .secondary-button,
  .text-button,
  .danger-button { min-height: 44px; }
  #inspect-form .primary-button { margin-top: 16px; }
  .assurance { grid-template-columns: 1fr; }
  #query-panel { padding: 16px; }
  #query-title { font-size: 21px; }
  #query-form .query-submit-row > .primary-button { padding: 10px 16px; }
  #query-panel .batch-result-details div { grid-template-columns: 1fr; }
  .query-actions { align-items: stretch; flex-direction: column; }
  .query-actions .secondary-button { width: 100%; }
}

@media (max-width: 735px) {
  #query-panel .batch-usage { flex-direction: column; }
  #query-panel .batch-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #query-panel .batch-usage-filter { width: 100%; padding: 9px 3px; font-size: 12px; }
  #query-panel .batch-filters,
  #query-panel .batch-copy-area { width: 100%; }
  #query-panel .batch-copy-unused { width: 100%; }
}

@media (max-width: 430px) {
  .site-header { height: auto; min-height: 64px; }
  .header-action { min-height: 40px; }
  .brand-name { font-size: 13px; }
}

.confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 32, 51, .42);
}
.confirm-sheet {
  width: min(430px, 100%);
  padding: 20px 18px 16px;
  background: #fff;
  border-radius: 20px 20px 16px 16px;
  box-shadow: 0 20px 55px rgba(23, 52, 86, .16);
}
.confirm-sheet h2 { margin: 0 0 6px; font-size: 20px; }
.confirm-sheet > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.confirm-kv {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--warning-soft);
  border: 1px solid #f1dbad;
  border-radius: 13px;
}
.confirm-kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}
.confirm-kv dt { color: var(--muted); }
.confirm-kv dd { margin: 0; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
#redeem-confirm-product { color: var(--warning); font-size: 18px; }
@media (min-width: 640px) {
  .confirm-mask { align-items: center; }
  .confirm-sheet { border-radius: 18px; }
}
