.ai-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid #2a3a50;
  border-radius: 10px;
  background: #0f1926;
}

.method-option input,
.ai-toggle input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  padding: 0;
  accent-color: #d9a958;
}

.ai-toggle strong,
.ai-toggle small { display: block; }
.ai-toggle small { margin-top: 2px; color: #7789a1; font-weight: 400; }

.source-links { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 12px; font-size: 11px; }
.source-links small { color: #8fa1b8; }
.source-links a { color: #d7ae6a; text-decoration: none; }
.source-links a:hover { text-decoration: underline; }

/* Readability pass: body copy stays comfortably legible without browser zoom. */
:root { font-size: 17px; line-height: 1.65; }
.naming-nav { min-height: 76px; height: auto; }
.naming-brand small { font-size: 13px; color: #a8b8cc; }
.naming-nav nav a { font-size: 15px; padding: 10px 14px; }
.naming-shell { width: min(1260px, calc(100% - 36px)); }
.naming-hero { max-width: 900px; }
.eyebrow { font-size: 14px; }
.naming-hero > p:not(.eyebrow) { max-width: 790px; font-size: 18px; color: #c0cad7; }
.notice { font-size: 15px; padding: 15px 18px; }
.source-links { font-size: 13px; gap: 9px 15px; }
.naming-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.naming-form { padding: 30px; gap: 0; }
.form-section { display: grid; gap: 18px; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid #26364b; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 18px; }
.card-heading { padding-bottom: 11px; }
.card-heading > span { font-size: 14px; }
.card-heading h2 { font-size: 21px; }
.card-heading p { font-size: 14px; color: #9badc3; }
.naming-form label { gap: 8px; font-size: 15px; color: #c3cedb; }
.naming-form input,
.naming-form select { height: 48px; padding: 0 13px; font-size: 16px; }
.location-field { display: grid; gap: 8px; align-content: start; }
.location-field > label { display: block; }
.location-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.locate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 150px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #9e783e;
  border-radius: 9px;
  background: #201c16;
  color: #f2cc87;
  font-size: 15px;
  cursor: pointer;
}
.locate-button:hover { border-color: #d9a958; background: #292117; }
.locate-button:focus-visible { outline: 0; box-shadow: 0 0 0 3px #d9a95826; }
.locate-button:disabled { opacity: .66; cursor: wait; }
.locate-button span { font-size: 20px; line-height: 1; }
.locate-button b { font-weight: 800; white-space: nowrap; }
.location-status { grid-column: 1 / -1; min-height: 21px; margin: -1px 0 0; color: #8fa1b8; font-size: 13px; line-height: 1.6; }
.location-status[data-state="loading"] { color: #d7ae6a; }
.location-status[data-state="success"] { color: #8bc9a5; }
.location-status[data-state="error"] { color: #ffaaaa; }
.method-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.method-option { gap: 12px; padding: 14px; }
.method-option strong { font-size: 16px; }
.method-option small { margin-top: 4px; font-size: 14px; line-height: 1.55; color: #a5b5c9; }
.method-option input,
.ai-toggle input { width: 18px; height: 18px; flex-basis: 18px; margin-top: 3px; }
.ai-toggle { padding: 14px; }
.ai-toggle strong { font-size: 16px; }
.ai-toggle small { font-size: 14px; line-height: 1.55; color: #a5b5c9; }
.form-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 14px; align-items: stretch; margin-top: 22px; }
.form-actions .ai-toggle { margin: 0; }
.primary-button { height: auto; min-height: 58px; margin: 0; padding: 0 21px; font-size: 17px; }
.form-error { font-size: 14px; }
.result-panel { min-height: 480px; padding: 32px; }
.result-placeholder { min-height: 414px; }
.result-placeholder h2 { font-size: 26px; }
.result-placeholder p { font-size: 15px; color: #a1b1c5; }
.result-head h2 { font-size: 26px; }
.result-head p { font-size: 14px; color: #a4b4c7; }
.result-badge { padding: 7px 11px; font-size: 13px; }
.analysis-cell { padding: 14px; }
.analysis-cell small { font-size: 14px; color: #a5b5c9; }
.analysis-cell strong { font-size: 20px; }
.section-label { margin: 26px 0 12px; font-size: 18px; }
.pillar { padding: 15px; }
.pillar small { font-size: 14px; color: #a4b4c8; }
.pillar b { font-size: 26px; }
.mini-note { font-size: 14px; line-height: 1.75; color: #aab9ca; }
.candidate-grid { gap: 13px; }
.candidate { padding: 17px; }
.candidate-name { font-size: 26px; }
.candidate-score { font-size: 14px; }
.candidate p { margin: 9px 0 6px; font-size: 15px; line-height: 1.65; }
.candidate small { font-size: 14px; line-height: 1.65; color: #9eafc4; }
.candidate-quote { margin: 11px 0; padding: 10px 12px; border-left: 2px solid #b8894b; background: #0c1520; color: #c8d4e2; font-size: 14px; line-height: 1.65; }
.candidate-quote cite { display: block; margin-top: 5px; color: #d7ae6a; font-size: 13px; font-style: normal; }
.candidate-source { margin: 10px 0; color: #d7ae6a; font-size: 13px; }
.generation-note[data-ai-status="unavailable"],
.generation-note[data-ai-status="busy"] { padding: 11px 13px; border: 1px solid #6d4b35; border-radius: 9px; background: #291b17; color: #efb59e; }
footer { font-size: 13px; }

@media (max-width: 860px) {
  .naming-nav nav a { font-size: 14px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-options { grid-template-columns: 1fr; }
  .result-panel { min-height: 0; }
  .result-placeholder { min-height: 380px; }
}

@media (max-width: 520px) {
  :root { font-size: 16px; }
  .naming-shell { width: min(100% - 22px, 1260px); }
  .naming-hero > p:not(.eyebrow) { font-size: 17px; }
  .naming-form,
  .result-panel { padding: 21px; }
  .profile-grid,
  .form-actions { grid-template-columns: 1fr; }
  .form-section + .form-section { margin-top: 24px; padding-top: 24px; }
  .location-control { grid-template-columns: 1fr; }
  .locate-button { width: 100%; }
  .naming-form label { font-size: 15px; }
  .method-option strong,
  .ai-toggle strong { font-size: 16px; }
  .method-option small,
  .ai-toggle small,
  .mini-note,
  .candidate small { font-size: 14px; }
  .candidate-name { font-size: 24px; }
}
