[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.editorial-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; flex-wrap: wrap; }
.editorial-actions, .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#logout { flex: 0 0 40px; min-width: 40px; padding: 8px; }
.mode-switch { display: flex; border: 0; padding: 0; margin: 0; gap: 4px; }
.mode-switch label { padding: 8px 10px; border-bottom: 2px solid transparent; font-size: 14px; cursor: pointer; }
.mode-switch label:has(:checked) { border-color: var(--accent-strong); background: white; }
.mode-switch input { accent-color: var(--accent-strong); }
.editorial-actions button, .dialog-actions button, #feedbackOpen { font: inherit; color: var(--text); background: white; border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 12px; cursor: pointer; min-height: 40px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.translation-warnings { background: #fff6df; color: #793d00; border-left: 4px solid #b66b00; padding: 12px 16px; margin: 8px 0 16px; overflow-wrap: anywhere; }
dialog { width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--text); }
dialog::backdrop { background: rgba(16, 24, 40, .42); }
.wide-dialog { width: min(1020px, calc(100% - 24px)); }
.dialog-body { padding: 22px; display: grid; gap: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head { position: sticky; top: -22px; background: white; z-index: 1; padding-block: 8px; }
.dialog-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.dialog-body label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.dialog-body input:not([type=checkbox]), .dialog-body textarea, .dialog-body select { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); font: inherit; background: white; }
.dialog-body textarea { min-height: 66px; height: auto; resize: vertical; }
.dialog-body .consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent-strong); }
.form-message { margin: 0; min-height: 20px; color: var(--danger); font-size: 14px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.glossary-row { display: grid; grid-template-columns: 64px 64px minmax(90px,1fr) minmax(90px,1fr) minmax(100px,1fr) 96px 84px 44px; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: end; }
.glossary-row select { padding: 6px; }
.glossary-row .row-enabled { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review-item h3 { margin: 0 0 8px; font-size: 15px; }
.review-item pre { font: inherit; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
.review-item .review-controls { display: flex; gap: 10px; margin-top: 12px; align-items: end; }
.review-controls select { max-width: 200px; }
.progress-card.running .progress-fill { width: 35% !important; animation: waiting 1.6s ease-in-out infinite alternate; }
@keyframes waiting { from { transform: translateX(0); } to { transform: translateX(185%); } }
@media (prefers-reduced-motion: reduce) { .progress-card.running .progress-fill { animation: none; width: 100% !important; } }
@media (max-width: 800px) { .glossary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .glossary-row .row-enabled { grid-column: auto; } }
@media (max-width: 460px) { .dialog-body { padding: 14px; } .editorial-actions { width: 100%; } .editorial-actions button { flex: 1; padding-inline: 8px; } .pane-head { gap: 6px; padding-inline: 10px; } .pane-title { font-size: 14px; } }
@media (max-width: 860px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; text-align: left; }
  .brand-logo-main { width: 144px; grid-column: 1 / -1; }
  .title-copy { text-align: left; justify-self: start; }
  .title-copy h1 { font-size: 22px; }
  .subtitle { display: none; }
  .status { font-size: 12px; min-height: 30px; padding-inline: 8px; }
  .toolbar { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .toolbar .icon-btn { min-width: 38px; width: 38px; }
  .toolbar select { padding-inline: 8px; font-size: 14px; }
  .toolbar .translate { grid-column: 1 / -1; }
  .workspace textarea { min-height: 180px; }
  .dialog-head { top: -14px; }
}
