:root {
  color-scheme: light;
  --brand-900: #003b64;
  --brand-800: #004b7d;
  --brand-700: #005b96;
  --brand-600: #006fba;
  --brand-100: #e7f3fb;
  --brand-50: #f2f8fc;
  --ink: #172b3a;
  --muted: #526575;
  --subtle: #748494;
  --line: #d8e2eb;
  --line-strong: #b9c9d6;
  --surface: #ffffff;
  --canvas: #edf4f8;
  --success: #17633a;
  --success-bg: #eaf8ef;
  --danger: #a62b24;
  --danger-bg: #fff1f0;
  --warning: #7a5700;
  --warning-bg: #fff8df;
  --focus: #0078d4;
  --shadow: 0 18px 55px rgba(23, 61, 88, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12rem, rgba(0, 111, 186, 0.18), transparent 35rem),
    var(--canvas);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand-900);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.app-shell {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: auto;
  height: 42px;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-pill,
.mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-800);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.lang-switch button {
  min-width: 40px;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--brand-900);
  background: var(--brand-50);
}

.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--brand-700);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  overflow: hidden;
  padding: 34px 38px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 92% 4%, rgba(91, 190, 255, 0.3), transparent 17rem),
    linear-gradient(135deg, var(--brand-700), var(--brand-900));
}

.hero::after {
  content: "";
  position: absolute;
  right: -85px;
  bottom: -125px;
  width: 280px;
  height: 280px;
  border: 38px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #ccecff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-copy > p:last-child {
  max-width: 640px;
  margin: 12px 0 0;
  color: #eaf7ff;
  font-size: 1rem;
}

.journey {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background: rgba(0, 31, 55, 0.22);
  font-size: 0.72rem;
  white-space: nowrap;
}

.journey li span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-900);
  background: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.journey li strong {
  font-weight: 600;
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(0, 75, 125, 0.09);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 38px 20px;
}

.form-heading h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.form-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.required-mark,
.form-heading p span {
  color: var(--danger);
  font-weight: 700;
}

.mode-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
}

.mode-badge.is-loading {
  color: var(--muted);
}

.mode-badge.is-live {
  border-color: #b9dfc9;
  color: var(--success);
  background: var(--success-bg);
}

.mode-badge.is-preview {
  border-color: #ecd587;
  color: var(--warning);
  background: var(--warning-bg);
}

#prefill-form {
  padding: 0 38px 28px;
}

.auth-panel {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, 0.75fr);
  align-items: center;
  gap: 14px;
  margin: 2px 0 24px;
  padding: 16px;
  border: 1px solid #c7ddeb;
  border-radius: var(--radius-md);
  background: var(--brand-50);
}

.auth-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand-700);
}

.auth-icon svg,
.region-search-wrap svg,
.optional-section summary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-copy label {
  display: block;
  font-weight: 700;
}

.auth-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 26px 0 30px;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-section legend {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
}

.form-section legend > span:last-child {
  display: flex;
  flex-direction: column;
}

.form-section legend strong {
  font-size: 1rem;
  line-height: 1.3;
}

.form-section legend small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand-800);
  background: var(--brand-100);
  font-size: 0.82rem;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.label-row label {
  color: #263d4f;
  font-size: 0.86rem;
  font-weight: 650;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input,
select {
  min-height: 48px;
  padding: 10px 13px;
}

textarea {
  min-height: 96px;
  padding: 11px 13px;
  line-height: 1.5;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7b8995;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #8ea6b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #6a7884;
  border-color: #dbe3e9;
  background: #f3f6f8;
  cursor: not-allowed;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.info-button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-700);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.info-button:hover {
  background: var(--brand-900);
}

.quota-control {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
}

.quota-presets,
.region-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quota-presets button,
.region-actions button {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--brand-800);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.quota-presets button:hover,
.quota-presets button.is-active,
.region-actions button:hover {
  border-color: var(--brand-600);
  background: var(--brand-100);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.region-search-wrap {
  position: relative;
  width: min(100%, 320px);
}

.region-search-wrap svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.region-search-wrap input {
  min-height: 42px;
  padding-left: 39px;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 84px;
  max-height: 250px;
  overflow-y: auto;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  scrollbar-color: #aec1d0 transparent;
  scrollbar-width: thin;
}

.region-chip {
  position: relative;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3d5364;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.region-chip:hover {
  border-color: var(--brand-600);
  color: var(--brand-900);
  background: var(--brand-50);
}

.region-chip[aria-pressed="true"] {
  padding-left: 31px;
  border-color: var(--brand-600);
  color: var(--brand-900);
  background: var(--brand-100);
  font-weight: 700;
}

.region-chip[aria-pressed="true"]::before {
  content: "✓";
  position: absolute;
  left: 12px;
  font-weight: 800;
}

.region-chip.is-filtered {
  display: none;
}

.region-placeholder {
  align-self: center;
  margin: auto;
  padding: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.region-status {
  min-height: 20px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.region-status.has-selection {
  color: var(--brand-800);
  font-weight: 650;
}

.optional-section {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.optional-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  list-style: none;
}

.optional-section summary::-webkit-details-marker {
  display: none;
}

.optional-section summary:hover {
  background: var(--brand-50);
}

.optional-section summary > span {
  display: flex;
  flex-direction: column;
}

.optional-section summary strong {
  font-size: 0.9rem;
}

.optional-section summary small {
  color: var(--muted);
  font-size: 0.75rem;
}

.optional-section summary svg {
  flex: 0 0 auto;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.optional-section[open] summary svg {
  transform: rotate(180deg);
}

.optional-content {
  padding: 4px 18px 20px;
}

.consent-panel {
  margin: 0 0 20px;
  padding: 15px 17px;
  border: 1px solid #c9dfed;
  border-radius: var(--radius-md);
  background: var(--brand-50);
}

.consent-panel label {
  display: grid;
  grid-template-columns: 21px 1fr;
  align-items: start;
  gap: 11px;
  color: #243d50;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.consent-panel input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--brand-700);
  cursor: pointer;
}

.consent-panel p {
  margin: 7px 0 0 32px;
  color: var(--muted);
  font-size: 0.74rem;
}

.request-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #c9dfed;
  border-radius: var(--radius-md);
  background: var(--brand-50);
}

.summary-title {
  margin: 0 0 2px;
  color: var(--brand-800);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-primary {
  max-width: 560px;
  margin: 0;
  color: #243d50;
  font-size: 0.88rem;
  font-weight: 600;
}

.summary-metrics {
  display: flex;
  gap: 8px;
}

.summary-metrics > span {
  display: flex;
  min-width: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #d4e4ef;
  border-radius: 10px;
  background: #fff;
}

.summary-metrics strong {
  color: var(--brand-900);
  font-size: 0.96rem;
}

.summary-metrics small {
  color: var(--muted);
  font-size: 0.68rem;
}

.actions {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  box-shadow: 0 8px 20px rgba(0, 91, 150, 0.25);
}

.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  box-shadow: 0 10px 24px rgba(0, 75, 125, 0.3);
}

.button-secondary {
  color: var(--brand-800);
  border-color: var(--brand-600);
  background: #fff;
}

.button-secondary:hover:not(:disabled) {
  background: var(--brand-50);
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.button.is-busy .button-spinner {
  display: inline-block;
}

.submission-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.maintenance-panel {
  margin: 0 38px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.maintenance-panel summary {
  width: fit-content;
  padding: 14px 0 5px;
  color: var(--brand-800);
  font-weight: 650;
  cursor: pointer;
}

.maintenance-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 2px;
}

.maintenance-panel p {
  margin: 0;
}

.maintenance-panel .button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 0.78rem;
}

.warmup-banner,
.result-panel {
  margin: 0 38px 28px;
  border-radius: var(--radius-md);
}

.warmup-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ead27c;
  color: var(--warning);
  background: var(--warning-bg);
  font-size: 0.82rem;
}

.warmup-banner.is-ready {
  border-color: #b9dfc9;
  color: var(--success);
  background: var(--success-bg);
}

.warmup-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(122, 87, 0, 0.25);
  border-top-color: var(--warning);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.warmup-banner.is-ready .warmup-spinner {
  display: none;
}

.result-panel {
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid #c9dfed;
  border-left: 4px solid var(--brand-600);
  color: #243d50;
  background: var(--brand-50);
  font-size: 0.84rem;
}

.result-panel.is-success {
  border-color: #b9dfc9;
  border-left-color: var(--success);
  background: var(--success-bg);
}

.result-panel.is-error {
  border-color: #efc6c3;
  border-left-color: var(--danger);
  background: var(--danger-bg);
}

.result-title {
  margin: 0 0 11px;
  font-size: 0.92rem;
}

.region-table {
  width: 100%;
  border-collapse: collapse;
}

.region-table th,
.region-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(82, 101, 117, 0.18);
  text-align: left;
  vertical-align: top;
}

.region-table th {
  width: 42%;
  color: var(--ink);
  font-weight: 650;
}

.region-table tr:last-child th,
.region-table tr:last-child td {
  border-bottom: 0;
}

.status-done {
  color: var(--success);
}

.status-running {
  color: var(--brand-800);
}

.status-queued {
  color: var(--warning);
}

.status-error {
  color: var(--danger);
}

.result-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-800);
  font-weight: 650;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 8px 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.quota-dialog {
  width: min(92vw, 570px);
  max-height: min(86vh, 700px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 26px 80px rgba(0, 35, 60, 0.34);
}

.quota-dialog::backdrop {
  background: rgba(8, 30, 46, 0.63);
  backdrop-filter: blur(2px);
}

.dialog-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.12rem;
}

.dialog-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--brand-700);
  font-weight: 800;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 1.55rem;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--ink);
  background: #eef3f6;
}

.dialog-content {
  padding: 18px 22px 22px;
}

.dialog-content p,
.dialog-content ul {
  margin: 0 0 14px;
}

.dialog-content ul {
  padding-left: 21px;
}

.dialog-content li {
  margin-bottom: 7px;
}

.dialog-tip {
  margin-bottom: 0 !important;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--brand-900);
  background: var(--brand-100);
}

code {
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--brand-900);
  background: #dfeef8;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .journey {
    flex-wrap: wrap;
  }

  .auth-panel {
    grid-template-columns: auto 1fr;
  }

  .auth-panel input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 960px);
    padding-top: 12px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .brand img {
    width: 132px;
    height: auto;
  }

  .topbar-tools {
    gap: 6px;
  }

  .product-pill {
    display: none;
  }

  .hero {
    padding: 26px 20px;
    border-radius: 18px 18px 0 0;
  }

  .hero h1 {
    font-size: 1.72rem;
  }

  .hero-copy > p:last-child {
    font-size: 0.9rem;
  }

  .journey li {
    flex: 1 1 30%;
    justify-content: center;
    padding-inline: 7px;
  }

  .form-card {
    border-radius: 0 0 18px 18px;
  }

  .form-heading {
    align-items: flex-start;
    padding: 22px 18px 16px;
  }

  .mode-badge {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.68rem;
  }

  #prefill-form {
    padding: 0 18px 22px;
  }

  .auth-panel {
    margin-bottom: 18px;
  }

  .form-section {
    padding: 22px 0 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .field.full {
    grid-column: auto;
  }

  .quota-control {
    grid-template-columns: 1fr;
  }

  .quota-presets {
    flex-wrap: wrap;
  }

  .quota-presets button {
    flex: 1 1 56px;
  }

  .region-header {
    align-items: stretch;
    flex-direction: column;
  }

  .region-search-wrap {
    width: 100%;
  }

  .region-actions button {
    flex: 1;
  }

  .region-list {
    max-height: 230px;
  }

  .optional-content {
    padding-inline: 14px;
  }

  .request-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .summary-metrics > span {
    flex: 1;
  }

  .actions {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .actions .button-primary {
    min-height: 52px;
  }

  .submission-note {
    text-align: center;
  }

  .maintenance-panel,
  .warmup-banner,
  .result-panel {
    margin-right: 18px;
    margin-left: 18px;
  }

  .maintenance-panel > div {
    align-items: stretch;
    flex-direction: column;
  }

  .maintenance-panel .button {
    align-self: flex-start;
  }

  footer {
    flex-wrap: wrap;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
