/* Readability and compact navigation refinements verified in browser QA. */
.compact-logout { display: none; }
.retention-notice { padding: 12px 16px; border: 1px solid #e8ddc6; border-radius: 8px; background: #faf6ed; color: #816338; font-size: 13px; line-height: 1.8; margin: 0 0 18px; }
.video-expiry { font-size: 12px; color: #816338; background: #faf6ed; padding: 10px 12px; margin: 0 0 18px; border-radius: 6px; line-height: 1.8; overflow-wrap: anywhere; }
.job-details > .job-expiry { color: #816338; line-height: 1.8; }
.page-heading p { font-size: 14px; color: #687461; }
.card-heading h2, .history-heading h2 { font-size: 16px; }
.mode-tabs button { font-size: 13px; min-height: 40px; color: #65705e; }
.field-heading label, .field label, .audio-row strong { font-size: 13px; }
.field-heading > span, .text-button { font-size: 12px; color: #647658; }
.dropzone strong { font-size: 14px; color: #5b6d4e; }
.dropzone > span:not(.upload-icon), .dropzone small,
.field-tip, .textarea-footer, .audio-row small,
.generate-area > p:not(.form-error), .preview-caption > span,
.storage-note, .history-heading p, .tip-card p,
.empty-preview p, .working-preview .working-footnote,
.login-card > small, .small-note {
  font-size: 12px;
  color: #6b785f;
  line-height: 1.8;
}
.field-tip { overflow-wrap: anywhere; }
textarea { font-size: 14px; height: 180px; color: #3f5037; }
textarea::placeholder { color: #77836c; opacity: 1; }
.textarea-footer { flex-wrap: wrap; gap: 4px 12px; padding-top: 4px; }
.textarea-footer #prompt-count { margin-left: auto; }
.field select { font-size: 13px; height: 42px; padding: 8px; }
.primary-button { font-size: 14px; min-height: 46px; }
.notice strong { font-size: 14px; color: #846830; }
.notice p, .notice button { font-size: 12px; color: #826b3d; }
.notice p { line-height: 1.8; }
.subtle-tag, .job-chip { font-size: 11px; }
.empty-preview h3 { font-size: 15px; color: #60784e; }
.tip-card h3 { font-size: 13px; color: #60734e; }
.history-empty { padding: 18px; text-align: center; color: #70805e; }
.history-empty p { font-size: 13px; line-height: 1.8; }
.job-details h3 { font-size: 14px; }
.job-details > p, .job-actions, .job-actions button { font-size: 12px; color: #667958; }
.job-actions .delete-job { color: #7b6656; }
.job-actions button, .job-actions a { padding-block: 7px; }
.download-button, .secondary-button, .form-error { font-size: 13px; }
.working-preview > p, .error-preview p { font-size: 13px; }
.help-button { width: 30px; height: 30px; font-size: 15px; }
dialog li, dialog li p { font-size: 14px; }
.help-note { font-size: 13px; }
.login-card > p { font-size: 14px; color: #67775b; }
.login-card label { font-size: 13px; }
.login-card input { font-size: 16px; }
.login-card .form-error { font-size: 13px; }
.brand { letter-spacing: -.6px; font-size: 24px; }
.brand small { letter-spacing: 1.8px; white-space: nowrap; }
.language-select { border: 1px solid #dce3d3; border-radius: 6px; color: #425c3c; background: #fbfcf9; font-size: 12px; padding: 7px 5px; max-width: 95px; }
.login-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 30px; }
.login-top .brand { margin: 0; gap: 8px; }
.login-top .brand-icon { width: 33px; height: 36px; }
.login-top .language-select { flex-shrink: 0; max-width: 86px; }
html[lang="en"] .page-heading h1 { font-size: 29px; line-height: 1.3; }
html[lang="en"] .field-heading { flex-wrap: wrap; }
html[lang="en"] .mode-tabs button { white-space: normal; }
html[lang="en"] .preview-caption { flex-wrap: wrap; }
html[lang="en"] .sidebar-bottom > div:not(.avatar) { font-size: 10px; }

@media (max-width: 1100px) and (min-width: 851px) {
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-stage { width: 100%; aspect-ratio: 9/10; max-height: 480px; }
  .settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid .field:last-child { grid-column: auto; }
  .compact-logout {
    display: block;
    font-size: 12px;
    padding: 8px;
    color: #5c7051;
    border: 1px solid #dce3d3;
    border-radius: 6px;
  }
}
@media (max-width: 650px) {
  .topbar { min-height: 49px; height: auto; padding-block: 8px; }
  .breadcrumb { display: none; }
  .topbar-right { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) max-content 30px max-content; gap: 7px; }
  .provider-badge { margin-right: auto; font-size: 11px; }
  .page-heading p { font-size: 13px; }
  .notice { flex-wrap: wrap; }
  .notice > div { flex: 1 1 calc(100% - 40px); }
  .notice button { flex-basis: calc(100% - 28px); margin-left: 28px; padding: 5px 0; text-align: left; }
  .editor-card { padding: 20px 16px; }
  textarea { font-size: 16px; height: 215px; }
  .field select { font-size: 16px; }
  .settings-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .settings-grid .field:last-child { grid-column: 1 / -1; }
  .mode-tabs button { font-size: 13px; }
  .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-remove { width: 30px; height: 30px; }
  .job-thumbnail { height: 135px; }
  .history-empty { gap: 8px; }
  .history-empty p { max-width: 220px; }
  .login-card { max-height: calc(100dvh - 30px); overflow-y: auto; }
  dialog { max-height: calc(100dvh - 30px); overflow-y: auto; }
  .language-select { font-size: 16px; max-width: 100px; }
  .provider-badge { min-width: 0; line-height: 1.5; }
  .provider-badge i { flex-shrink: 0; }
  .login-card { padding-inline: 22px; }
  .login-top .brand { font-size: 22px; }
  .login-top .brand small { font-size: 7px; }
  .login-top .language-select { font-size: 16px; max-width: 98px; }
  html[lang="en"] .page-heading h1 { font-size: 26px; }
  html[lang="en"] .mode-tabs button { font-size: 12px; }
  html[lang="en"] .primary-button { font-size: 13px; }
}
