:root {
  color-scheme: light;
  --ink: #14243b;
  --muted: #5d6d82;
  --soft: #7d8ca0;
  --paper: #f3f6fa;
  --card: #fbfdff;
  --card-strong: #ffffff;
  --line: #d9e2ed;
  --line-strong: #afbed1;
  --blue: #2563eb;
  --blue-dark: #174ea6;
  --blue-soft: #e8f0ff;
  --navy: #0d2038;
  --success: #16805a;
  --success-soft: #e1f3ea;
  --warning: #9a6413;
  --warning-soft: #fff6dc;
  --red: #b33d4a;
  --red-soft: #fff0f1;
  --shadow:
    0 24px 60px rgba(23, 55, 94, 0.08),
    0 3px 12px rgba(23, 55, 94, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 3%, rgba(37, 99, 235, 0.1), transparent 34rem),
    radial-gradient(circle at 4% 24%, rgba(22, 128, 90, 0.07), transparent 30rem),
    linear-gradient(180deg, #fafcff 0, var(--paper) 54rem);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

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

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
pre:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 14px;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header,
.sponsor-message,
.site-footer,
main {
  width: min(1400px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(121, 137, 128, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(37, 99, 235, 0.16));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 15px;
  font-weight: 820;
  letter-spacing: -0.035em;
}

.brand-name strong {
  color: var(--blue);
}

.brand-tagline {
  color: var(--muted);
  font: 650 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-lockup {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
}

.product-lockup span {
  color: var(--blue);
  font: 750 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-lockup strong {
  font-size: 11px;
  letter-spacing: -0.01em;
}

.sponsor-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.sponsor-link:hover {
  box-shadow:
    0 11px 26px rgba(37, 99, 235, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.sponsor-message {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 10px 15px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(232, 240, 255, 0.94), rgba(251, 253, 255, 0.86));
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(27, 42, 35, 0.045);
  font-size: 11px;
  line-height: 1.55;
}

.sponsor-message strong {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.62fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  padding: 56px 0 64px;
}

.eyebrow,
.step-label {
  display: block;
  color: var(--blue);
  font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(48px, 5.7vw, 80px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.058em;
}

.hero h1 em {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-copy {
  max-width: 430px;
  justify-self: end;
  padding-left: 24px;
  border-left: 1px solid var(--line-strong);
}

.privacy-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.privacy-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--success);
  content: "✓";
}

.workspace {
  display: grid;
  grid-template-columns: minmax(560px, 0.98fr) minmax(520px, 1.02fr);
  gap: 24px;
  align-items: start;
}

.config-panel,
.output-panel {
  min-width: 0;
  background: rgba(251, 253, 255, 0.97);
  border: 1px solid var(--line);
  border-top: 2px solid #a9c4ff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.config-panel {
  overflow: hidden;
  background: #f1f5f9;
  counter-reset: form-section;
}

.output-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
  padding: 0;
}

.panel-heading,
.output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading {
  padding: 25px 28px 23px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.output-heading {
  padding: 25px 26px 23px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.output-heading h2 {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.text-button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
}

.text-button:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-section {
  counter-increment: form-section;
  min-width: 0;
  margin: 14px 14px 0;
  padding: 0 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(23, 55, 94, 0.035);
}

.form-section legend {
  display: flex;
  width: 100%;
  float: left;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 22px;
  padding: 26px 0 0;
}

.form-section legend + * {
  clear: both;
}

.form-section legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.form-section legend span::before {
  color: var(--blue);
  content: counter(form-section, decimal-leading-zero);
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.form-section legend small {
  color: var(--muted);
  padding-left: 29px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

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

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

.field > span {
  color: #53647b;
  font-size: 11.5px;
  font-weight: 750;
}

.field > span b {
  color: var(--blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(23, 55, 94, 0.02);
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(179, 61, 74, 0.08);
}

.field input:disabled,
.field select:disabled {
  color: var(--soft);
  background: #f0f3f7;
  cursor: not-allowed;
}

.field small {
  color: var(--soft);
  font-size: 10.5px;
  line-height: 1.45;
}

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

.api-warning {
  padding: 12px 14px;
  color: #6f4a10;
  background: var(--warning-soft);
  border: 1px solid #efd99a;
  border-left: 4px solid #d2922f;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.55;
}

.api-warning strong {
  color: #57390a;
}

.api-warning code {
  padding: 2px 4px;
  color: #57390a;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 4px;
  font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.kind-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 24px;
}

.kind-picker label {
  position: relative;
  cursor: pointer;
}

.kind-picker input {
  position: absolute;
  opacity: 0;
}

.kind-picker label > span {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  justify-content: center;
  padding: 13px 12px 13px 38px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.kind-picker label > span::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.kind-picker input:checked + span {
  background: #eff5ff;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.kind-picker input:checked + span::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 4px #eff5ff;
}

.kind-picker input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.kind-picker strong {
  font-size: 12.5px;
}

.kind-picker small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.option-list {
  display: grid;
  gap: 13px;
}

.option-card {
  overflow: hidden;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.option-card:hover {
  border-color: #c3d1e2;
  box-shadow: 0 5px 16px rgba(23, 55, 94, 0.045);
}

.option-card.is-unavailable {
  opacity: 0.55;
}

.switch-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 17px;
  cursor: pointer;
}

.switch-row > span,
.inline-options label > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.switch-row strong,
.inline-options strong {
  font-size: 12.5px;
}

.switch-row small,
.inline-options small {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.switch-row input {
  width: 38px;
  height: 21px;
  flex: 0 0 auto;
  appearance: none;
  background: #c8d1dc;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(20, 36, 59, 0.08);
  transition: background 140ms ease;
}

.switch-row input::before {
  display: block;
  width: 17px;
  height: 17px;
  margin: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(20, 36, 59, 0.25);
  content: "";
  transition: transform 140ms ease;
}

.switch-row input:checked {
  background: var(--blue);
}

.switch-row input:checked::before {
  transform: translateX(17px);
}

.switch-row input:disabled {
  cursor: not-allowed;
}

.option-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 18px 17px;
  background: white;
  border-top: 1px solid var(--line);
}

.option-fields.is-hidden {
  display: none;
}

.compact-switch {
  min-height: 58px;
}

.checkbox-field {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.checkbox-field span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkbox-field strong {
  font-size: 11px;
}

.checkbox-field small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.inline-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.inline-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 13px 14px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.inline-options input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.probe-path {
  margin-top: 15px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 24px 28px 26px;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.form-actions p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.primary-button {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.18);
}

.primary-button:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-strong);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--blue);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-pill {
  padding: 6px 9px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 999px;
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill.has-error {
  color: var(--red);
  background: var(--red-soft);
}

.status-pill.is-pending {
  color: var(--warning);
  background: var(--warning-soft);
}

.validation-summary {
  margin: 18px 26px 0;
  padding: 13px 15px;
  color: #74313a;
  background: var(--red-soft);
  border: 1px solid #f2c8ce;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.validation-summary strong {
  display: block;
  margin-bottom: 5px;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.is-hidden {
  display: none;
}

.chart-browser {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  min-height: 560px;
  margin: 20px 26px 0;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid #1d3858;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(13, 32, 56, 0.16);
}

.file-tree {
  min-width: 0;
  padding: 13px 0;
  overflow: auto;
  background: #102743;
  border-right: 1px solid #28415e;
}

.file-tree-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 13px 12px;
  color: #d9e6f5;
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.file-tree-heading small {
  color: #8fa3ba;
  font-size: 8px;
}

.file-tree ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-tree button {
  display: block;
  width: 100%;
  padding: 7px 10px 7px 14px;
  overflow: hidden;
  color: #9db0c6;
  background: transparent;
  border: 0;
  font: 500 9.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tree button::before {
  margin-right: 6px;
  color: #6f8cac;
  content: "◇";
}

.file-tree button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.file-tree button[aria-current="true"] {
  color: white;
  background: rgba(37, 99, 235, 0.3);
  box-shadow: inset 2px 0 0 #6da0ff;
}

.file-tree button[aria-current="true"]::before {
  color: #8ab4ff;
  content: "◆";
}

.file-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.code-heading {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px;
  color: #d8e4f1;
  background: #132c4a;
  border-bottom: 1px solid #28415e;
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-heading span:last-child {
  color: #7f97b1;
  font-weight: 500;
}

.file-preview pre {
  min-height: 0;
  flex: 1;
  margin: 0;
  padding: 17px;
  overflow: auto;
  color: #dce8f5;
  background: var(--navy);
  font: 10.5px/1.62 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
  white-space: pre;
}

.output-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 16px 26px 0;
}

.verify-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 15px 26px 26px;
  padding: 12px 13px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.verify-box strong {
  font-size: 10px;
}

.verify-box code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide {
  padding: 96px 0 92px;
}

.guide > div:first-child {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 50px;
  align-items: start;
}

.guide h2 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.guide-grid article {
  padding: 25px;
  background: rgba(251, 253, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(23, 55, 94, 0.045);
}

.guide-grid article > span {
  color: var(--blue);
  font: 750 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.guide-grid h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.local-guide {
  padding: 0 0 104px;
}

.local-guide-shell {
  padding: clamp(30px, 4vw, 54px);
  overflow: hidden;
  color: #dce8f5;
  background:
    radial-gradient(circle at 94% 0, rgba(72, 125, 235, 0.3), transparent 30rem),
    radial-gradient(circle at 4% 100%, rgba(34, 167, 122, 0.16), transparent 26rem),
    linear-gradient(145deg, #102743, var(--navy));
  border: 1px solid #294564;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(13, 32, 56, 0.18);
}

.local-guide-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.68fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: end;
}

.local-guide .eyebrow {
  color: #80aaff;
}

.local-guide h2 {
  max-width: 760px;
  margin: 13px 0 0;
  color: white;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.048em;
}

.local-guide-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #aebfd2;
  font-size: 14px;
  line-height: 1.7;
}

.helm-prerequisite {
  padding: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(187, 211, 239, 0.2);
  border-radius: 14px;
}

.helm-prerequisite > span {
  color: #89acff;
  font: 750 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.helm-prerequisite p {
  margin: 10px 0 14px;
  color: #b8c8da;
  font-size: 11px;
  line-height: 1.6;
}

.helm-prerequisite pre,
.local-steps pre {
  margin: 0;
  overflow: auto;
  color: #ddebfa;
  background: rgba(4, 18, 34, 0.74);
  border: 1px solid rgba(126, 164, 205, 0.22);
  border-radius: 10px;
  font: 10.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
  white-space: pre;
}

.helm-prerequisite pre {
  padding: 13px 14px;
}

.helm-prerequisite a,
.chart-v3-note a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  color: #9ebcff;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.helm-prerequisite a:hover,
.chart-v3-note a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.local-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.local-steps > li {
  min-width: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(187, 211, 239, 0.16);
  border-radius: 15px;
}

.local-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.local-step-heading > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(37, 99, 235, 0.72);
  border: 1px solid rgba(137, 172, 255, 0.45);
  border-radius: 8px;
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.local-step-heading h3 {
  margin: 0;
  color: white;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.local-step-heading p {
  margin: 6px 0 0;
  color: #9fb2c8;
  font-size: 10.5px;
  line-height: 1.55;
}

.local-steps pre {
  min-height: 82px;
  margin-top: 18px;
  padding: 14px 15px;
}

.chart-v3-note {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 17px 19px;
  background: rgba(255, 246, 220, 0.08);
  border: 1px solid rgba(239, 217, 154, 0.25);
  border-radius: 13px;
}

.chart-v3-note > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #ffd889;
  background: rgba(210, 146, 47, 0.16);
  border: 1px solid rgba(255, 216, 137, 0.28);
  border-radius: 9px;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.chart-v3-note strong {
  color: #fff4d7;
  font-size: 11px;
}

.chart-v3-note p {
  margin: 4px 0 0;
  color: #b9c5d2;
  font-size: 10px;
  line-height: 1.5;
}

.chart-v3-note code {
  padding: 9px 11px;
  overflow: auto;
  color: #ffe3a7;
  background: rgba(4, 18, 34, 0.6);
  border: 1px solid rgba(239, 217, 154, 0.18);
  border-radius: 8px;
  font: 9.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.chart-v3-note a {
  grid-column: 2 / -1;
  margin-top: -4px;
}

.site-footer {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer .author-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #c6d8ff;
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.author-credit span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.author-credit strong {
  font-size: 11px;
  font-weight: 850;
}

.author-credit b {
  font-size: 12px;
}

.site-footer .author-credit:hover {
  color: white;
  background: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-footer .author-credit:hover span {
  color: rgba(255, 255, 255, 0.74);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100% - 48px));
  padding: 12px 16px;
  color: white;
  background: var(--navy);
  border-radius: 9px;
  box-shadow: 0 16px 40px rgba(13, 32, 56, 0.28);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .output-panel {
    position: static;
  }

  .chart-browser {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .sponsor-message,
  .site-footer,
  main {
    width: min(100% - 32px, 1400px);
  }

  .product-lockup,
  .sponsor-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0 50px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .hero-copy {
    max-width: 620px;
    justify-self: start;
  }

  .field-grid,
  .option-fields,
  .inline-options {
    grid-template-columns: 1fr;
  }

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

  .form-section {
    margin-inline: 12px;
    padding: 0 20px 24px;
  }

  .form-section legend {
    padding-top: 24px;
  }

  .kind-picker {
    grid-template-columns: 1fr;
  }

  .kind-picker label > span {
    min-height: 57px;
  }

  .panel-heading,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .primary-button {
    width: 100%;
  }

  .chart-browser {
    grid-template-columns: 1fr;
    min-height: 650px;
    margin-inline: 20px;
  }

  .file-tree {
    max-height: 190px;
    border-right: 0;
    border-bottom: 1px solid #28415e;
  }

  .file-preview pre {
    min-height: 440px;
  }

  .output-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: 20px;
  }

  .verify-box {
    grid-template-columns: 1fr auto;
    margin-inline: 20px;
    margin-bottom: 20px;
  }

  .verify-box code {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .guide {
    padding: 78px 0;
  }

  .guide > div:first-child,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    gap: 12px;
    margin-top: 34px;
  }

  .local-guide {
    padding-bottom: 78px;
  }

  .local-guide-shell {
    padding: 28px;
    border-radius: 19px;
  }

  .local-guide-header,
  .local-steps {
    grid-template-columns: 1fr;
  }

  .local-guide-header {
    gap: 28px;
  }

  .local-steps {
    gap: 12px;
    margin-top: 30px;
  }

  .chart-v3-note {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chart-v3-note code,
  .chart-v3-note a {
    grid-column: 1 / -1;
  }

  .chart-v3-note a {
    margin-top: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .site-header,
  .sponsor-message,
  .site-footer,
  main {
    width: min(100% - 22px, 1400px);
  }

  .panel-heading,
  .form-actions {
    padding: 20px;
  }

  .form-section {
    margin: 9px 9px 0;
    padding: 0 14px 20px;
  }

  .form-section legend {
    padding-top: 20px;
  }

  .output-heading {
    padding: 20px;
  }

  .validation-summary,
  .chart-browser,
  .output-actions,
  .verify-box {
    margin-inline: 14px;
  }

  .output-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .local-guide-shell {
    padding: 21px;
  }

  .local-steps > li {
    padding: 18px;
  }

  .local-guide h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
