/* Shared controls use the site's existing graphite, gold and Inter palette. */
.header-action, .header-actions { display: flex; align-items: center; gap: 10px; }
.github-stars { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 6px 13px; border: 1px solid #606060; border-radius: 999px; color: #f1f1f1; background: transparent; white-space: nowrap; font: 650 14px/1.4 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s; }
.github-stars svg { display: block; width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }
.github-stars:hover { color: #ffda9a; border-color: #ffbd5c; background: #ffbd5c0a; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 62px; min-height: 38px; padding: 6px 9px; border: 1px solid #414141; border-radius: 7px; color: #f1f1f1; background: transparent; font: 550 12px/1.5 Inter, system-ui, sans-serif; white-space: nowrap; }
.language-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.language-toggle:hover { border-color: #ffbd5c; color: #ffda9a; }
.github-stars:focus-visible, .language-toggle:focus-visible { outline: 2px solid #ffda9a; outline-offset: 4px; }
html[lang="en"] .header .nav { font-size: 14px; gap: 20px; }
html[lang="en"] .plan h2 { font-size: 19px; }
html[lang="en"] .badge { font-size: 12px; }
html[lang="en"] .code-row { grid-template-columns: 1fr 120px; }
html[lang="en"] .benefit-row { font-size: 12px; padding-block: 5px; }
html[lang="en"] .benefit-tag { white-space: normal; text-align: center; max-width: 86px; }
html[lang="en"] .terminal-output { font-size: 13px; line-height: 1.6; }
@media (min-width: 651px) and (max-width: 1100px) {
  .header .header-inner { min-height: 116px; padding-block: 10px; grid-template-columns: minmax(0,1fr) auto; gap: 4px 20px; }
  .header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .header .header-action, .header .header-actions { grid-column: 2; grid-row: 1; }
  .header .nav { grid-column: 1/-1; grid-row: 2; justify-self: start; }
  html { scroll-padding-top: 132px; }
}
@media (max-width: 650px) {
  .header .header-inner { min-height: 112px; padding-block: 8px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 0 8px; }
  .header .brand { grid-column: 1/-1; grid-row: 1; justify-self: center; }
  .header .header-action, .header .header-actions { grid-column: 2/4; grid-row: 2; justify-self: end; gap: 7px; }
  .header .header-actions { grid-column: 1/-1; }
  .header .nav { grid-column: 1/-1; grid-row: 3; flex-wrap: wrap; column-gap: 15px; row-gap: 0; }
  html[lang="en"] .header .nav { font-size: 12px; gap: 0 15px; }
  .github-stars { min-height: 34px; padding: 5px 11px; font-size: 13px; }
  .github-stars svg { width: 17px; height: 17px; }
  .language-toggle { min-height: 34px; min-width: 57px; padding: 5px 7px; }
  .header .home-user-email { max-width: 65px; }
  .header .home-user .button { padding-inline: 8px; font-size: 11px; }
  .story-pin { top: auto; }
  html[lang="en"] .story-step { font-size: 8px; }
  html[lang="en"] .story-step span { display: block; }
  html[lang="en"] .terminal-output { font-size: 10px; }
  html[lang="en"] .rate { flex-wrap: wrap; gap: 3px 12px; }
  html[lang="en"] .rate b { white-space: normal; }
}
@media (max-width: 480px) {
  .header .home-user-email { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .github-stars { transition: none; }
}
