.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.language-picker select option,#outputLanguage option,#region option,#editorialStyle option{background:var(--panel-strong);color:var(--text)}
#editorialStyle{white-space:nowrap;text-overflow:ellipsis}
html[lang="ka"] .hero h1{letter-spacing:-.04em}
html[lang="ka"] .brand small,html[lang="ky"] .brand small{letter-spacing:.09em}

/* Audio popup theme parity with the social publishing popup. */
html .audio-generation-dialog{
  border-color:var(--line-strong)!important;
  background:var(--panel-strong)!important;
  color:var(--text)!important;
  color-scheme:inherit;
  box-shadow:0 30px 120px rgba(0,0,0,.58)!important;
}
html .audio-modal-head{
  border-bottom-color:var(--line)!important;
  background:var(--glass)!important;
}
html .audio-modal-head h2,
html .audio-fieldset legend,
html .audio-setting label,
html .audio-result h3{color:var(--text)!important}
html .audio-modal-head p,
html .audio-progress-stage,
html .audio-result-meta{color:var(--muted)!important;opacity:1!important}
html .audio-close{
  border:1px solid var(--line)!important;
  background:var(--field-soft)!important;
  color:var(--text)!important;
}
html .audio-choice span{
  border-color:var(--line)!important;
  background:var(--field-soft)!important;
  color:var(--soft-text)!important;
}
html .audio-choice input:checked+span{
  border-color:var(--line-strong)!important;
  background:color-mix(in srgb,var(--purple) 10%,var(--field-soft))!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
html .audio-setting select{
  border-color:var(--line)!important;
  background:var(--field)!important;
  color:var(--text)!important;
}
html .audio-setting select option{background:var(--panel-strong);color:var(--text)}
html .audio-language-note,
html .audio-progress,
html .audio-result{
  border-color:var(--line)!important;
  background:var(--field-soft)!important;
  color:var(--soft-text)!important;
}
html .audio-generate-button,
html .audio-download{
  border:1px solid color-mix(in srgb,var(--purple) 48%,var(--line))!important;
  background:linear-gradient(105deg,color-mix(in srgb,var(--purple) 25%,var(--field)),color-mix(in srgb,var(--cyan) 8%,var(--field)))!important;
  color:var(--text)!important;
}
html .audio-progress-track{background:var(--line)!important}
html .audio-quality-note{border-top-color:var(--line)!important;color:var(--soft-text)!important}
html .audio-error{color:var(--text)!important}

@media(max-width:620px){
  header{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:8px 10px!important;
    min-height:auto;
  }
  header .brand{flex:0 1 auto;max-width:calc(100% - 104px)}
  header .head-actions{display:contents!important}
  header .interface-controls{
    order:2;
    flex:0 0 auto;
    justify-content:flex-end!important;
    gap:6px!important;
    margin-left:auto;
  }
  header .system{order:3;flex:1 0 100%;width:100%;max-width:none}
  .language-trigger{
    min-width:44px!important;
    height:34px!important;
    padding:0 9px!important;
    font-size:10px!important;
  }
  .language-menu{right:0!important;left:auto!important}
  html[dir="rtl"] .language-menu{right:auto!important;left:0!important}
  .theme-toggle{
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
  }
  .theme-toggle svg{width:19px!important;height:19px!important}

  .hero-copy{padding-bottom:14px!important}
  .hero h1{
    width:100%;
    font-size:clamp(12px,4.6vw,22px)!important;
    line-height:1.04!important;
    letter-spacing:-.045em;
    white-space:nowrap;
  }

  .hero-credit-panel{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:6px!important;
    width:100%!important;
    margin-top:10px!important;
  }
  .hero-credit-card{
    min-height:48px!important;
    padding:7px 8px!important;
    border-radius:12px!important;
  }
  .hero-credit-card>span{font-size:6.8px!important;letter-spacing:.055em!important}
  .hero-credit-card>strong{margin-top:3px!important;font-size:15px!important}
  .hero-credit-card>small{margin-top:4px!important;font-size:6.8px!important;line-height:1.18!important}
  .hero-credit-card.buy-credits{font-size:8.5px!important;line-height:1.25!important}

  .steps{gap:7px!important;padding:11px!important}
  .steps article{
    display:grid!important;
    grid-template-columns:30px minmax(0,1fr);
    grid-template-areas:"number title" "number description" "number status";
    column-gap:10px;
    row-gap:2px;
    min-height:0!important;
    padding:10px 11px!important;
  }
  .steps article>b{grid-area:number;width:30px!important;height:30px!important}
  .steps h3{grid-area:title;margin:0!important;font-size:12px!important;line-height:1.25}
  .steps p{grid-area:description;margin:1px 0 3px!important;font-size:9px!important;line-height:1.35!important}
  .steps article>span{grid-area:status;font-size:8px!important}

  .article-tools{
    display:grid!important;
    grid-template-columns:1fr;
    align-items:stretch!important;
    gap:8px!important;
  }
  .article-tools>span{white-space:nowrap}
  .article-tools>div{
    width:100%;
    justify-content:flex-start!important;
  }

  /* Keep the guarantee tooltip inside the viewport on narrow screens. */
  .generation-guarantee-tooltip{
    left:auto!important;
    right:0!important;
    width:min(290px,calc(100vw - 24px))!important;
    max-width:calc(100vw - 24px)!important;
  }
  html[dir="rtl"] .generation-guarantee-tooltip{
    right:auto!important;
    left:0!important;
  }

  .audio-generation-dialog{
    width:calc(100vw - 12px)!important;
    max-height:calc(100vh - 12px)!important;
    border-radius:18px!important;
  }
  .audio-modal-head{padding:13px 14px!important}
  .audio-modal-head h2{font-size:18px!important}
  .audio-form{padding:14px!important}
  .audio-settings-grid{grid-template-columns:1fr!important;gap:9px!important}
  .audio-setting{
    display:grid;
    grid-template-columns:minmax(78px,.72fr) minmax(0,1.28fr);
    align-items:center;
    gap:10px;
  }
  .audio-setting label{margin:0!important;font-size:12px!important}
  .audio-setting select{min-height:40px!important}
}
