:root {
    color-scheme: dark;
    --bg: #0d0d0d;
    --bg-soft: #131313;
    --panel: #181818;
    --panel-2: #1e1e1e;
    --panel-3: #262626;
    --line: #313131;
    --line-soft: #262626;
    --text: #f5f5f5;
    --muted: #999999;
    --faint: #6c6c6c;
    --teal: #b5b5b5;
    --teal-soft: rgba(181, 181, 181, .12);
    --green: #b0b0b0;
    --green-soft: rgba(176, 176, 176, .12);
    --red: #9e9e9e;
    --red-soft: rgba(158, 158, 158, .12);
    --amber: #c2c2c2;
    --blue: #a5a5a5;
    --focus: #d7d7d7;
    --radius: 12px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: rgba(175, 175, 175, .3); color: white; }

.skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 1000; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.topbar { height: 68px; position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line-soft); background: rgba(13, 13, 13, .96); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 6px; border: 1px solid #505050; border-radius: 8px; transform: rotate(-3deg); }
.brand-mark i { display: block; background: var(--teal); border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 55%; align-self: end; opacity: .55; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 72%; align-self: end; opacity: .8; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-size: 12px; letter-spacing: .18em; }
.brand-word small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.topnav { display: flex; align-items: center; gap: 5px; }
.nav-link, .language-toggle { min-height: 42px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 7px; color: #d0d0d0; font-size: 13px; font-weight: 650; }
.nav-link:hover, .language-toggle:hover { background: var(--panel-2); color: white; }
.muted-link { color: var(--muted); }
.logout-form { margin: 0; }.logout-form .nav-link { border: 0; background: transparent; }.logout-form .nav-link:hover { background: var(--panel-2); }
.language-toggle { margin-inline-start: 6px; border: 1px solid var(--line); }
.language-options { display: inline-flex; align-items: center; gap: 4px; }
.language-options .language-toggle { margin-inline-start: 0; padding-inline: 10px; }
.language-options .language-toggle.active { border-color: #777; background: var(--panel-2); color: white; }
.user-pill { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; padding: 0 10px; color: #dcdcdc; font-size: 13px; }
.user-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 800; }

.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.eyebrow span { width: 22px; height: 1px; background: var(--teal); }
.flash { position: fixed; z-index: 80; inset-block-start: 82px; inset-inline-end: 24px; max-width: min(460px, calc(100vw - 48px)); padding: 13px 17px; border: 1px solid var(--line); border-radius: 9px; background: #1b1b1b; box-shadow: var(--shadow); }
.flash-success { border-inline-start: 3px solid var(--green); }
.flash-error { border-inline-start: 3px solid var(--red); }

/* Login */
.login-page { overflow: hidden; }
.login-page .topbar { position: fixed; inset: 0 0 auto; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.3fr); padding-top: 68px; }
.login-card { width: min(440px, calc(100% - 60px)); margin: auto; padding: 50px 0; }
.login-card h1 { margin: 22px 0 8px; font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; }
.login-intro { max-width: 390px; margin: 0 0 32px; color: var(--muted); font-size: 16px; }
.inline-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid rgba(139, 139, 139,.35); border-radius: 8px; background: var(--red-soft); color: #c5c5c5; }
.stack-form { display: grid; gap: 17px; }
.stack-form label, .inline-form label { display: grid; gap: 7px; }
.stack-form label > span, .inline-form label > span { color: #bfbfbf; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #121212; color: var(--text); transition: border-color .18s, box-shadow .18s, background .18s; }
input, select { min-height: 48px; padding: 0 13px; }
textarea { padding: 13px 14px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #454545; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(175, 175, 175,.1); outline: none; background: #151515; }
.primary-button, .secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 8px; padding: 0 18px; font-weight: 800; border: 1px solid transparent; }
.primary-button { background: var(--teal); color: #0e0e0e; }
.primary-button:hover { background: #c4c4c4; }
.secondary-button { border-color: var(--line); background: var(--panel-2); color: var(--text); }
.secondary-button:hover { border-color: #505050; background: var(--panel-3); }
.full-button { width: 100%; margin-top: 4px; justify-content: space-between; padding-inline: 20px; }
.security-line { margin: 26px 0 0; text-align: center; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.security-line span { color: var(--teal); margin-inline-end: 7px; }
.login-art { position: relative; overflow: hidden; border-inline-start: 1px solid var(--line-soft); background: radial-gradient(circle at 65% 30%, rgba(175, 175, 175,.1), transparent 30%), #111111; }
.art-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(#454545 1px, transparent 1px), linear-gradient(90deg, #454545 1px, transparent 1px); background-size: 55px 55px; mask-image: linear-gradient(90deg, transparent, black 30%, black); }
.art-frame { position: absolute; border: 1px solid #424242; background: #191919; box-shadow: 0 25px 60px rgba(0, 0, 0,.4); }
.art-frame::before, .art-frame::after { content: ""; position: absolute; border: 1px solid #373737; }
.art-frame::before { inset: 14%; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #434343, #171717 55%); }
.art-frame::after { width: 34%; height: 1px; inset: auto 8% 9% auto; background: var(--teal); border: 0; }
.art-frame span { position: absolute; inset: 8% auto auto 8%; z-index: 2; color: var(--faint); font: 700 10px ui-monospace, monospace; }
.frame-one { width: 43%; aspect-ratio: 4/5; inset: 16% auto auto 14%; transform: rotate(-5deg); }
.frame-two { width: 41%; aspect-ratio: 4/5; inset: 30% 11% auto auto; transform: rotate(5deg); }
.frame-three { width: 29%; aspect-ratio: 1/1; inset: auto auto 8% 29%; transform: rotate(2deg); }
.frame-three::before { border-radius: 0; transform: rotate(45deg); inset: 24%; }
.art-caption { position: absolute; inset: auto 9% 6% auto; color: #777777; font: 700 10px ui-monospace, monospace; letter-spacing: .22em; }

/* Admin */
.admin-shell { width: min(1380px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 80px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.page-heading h1 { margin: 10px 0 0; font-size: 40px; letter-spacing: -.04em; }
.page-heading p { max-width: 560px; margin: 0; color: var(--muted); text-align: end; }
.admin-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 22px; padding: 5px; border: 1px solid var(--line-soft); border-radius: 10px; background: #111111; scrollbar-width: thin; }
.admin-tabs a { min-height: 40px; flex: 1 0 auto; display: grid; place-items: center; padding: 0 18px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-tabs a:hover { color: var(--text); background: var(--panel); }
.admin-tabs a.active { background: var(--panel-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0,.24); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { position: relative; min-height: 125px; overflow: hidden; padding: 20px 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.stat-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.stat-card strong { display: block; margin-top: 12px; font-size: 34px; line-height: 1; }
.stat-accent { position: absolute; width: 88px; height: 88px; inset: auto -22px -40px auto; border-radius: 50%; opacity: .16; }
.stat-accent.teal { background: var(--teal); }.stat-accent.amber { background: var(--amber); }.stat-accent.blue { background: var(--blue); }.stat-accent.green { background: var(--green); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.settings-panel { margin-bottom: 14px; }
.settings-form { display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; align-items: end; gap: 18px; }
.settings-form label { display: grid; gap: 7px; }
.settings-form label > span, .current-time-card span { color: #bfbfbf; font-size: 12px; font-weight: 700; }
.settings-form label small { max-width: 720px; color: var(--muted); font-size: 11px; }
.timezone-select { min-width: 280px; }
.current-time-card { min-height: 48px; display: grid; align-content: center; gap: 2px; padding: 0 15px; border: 1px solid var(--line-soft); border-radius: 8px; background: #141414; }
.current-time-card strong { color: var(--teal); font: 700 12px ui-monospace, monospace; white-space: nowrap; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
.panel-heading h2 { margin: 0; font-size: 17px; }
.management-panel { min-height: 330px; }
.management-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.management-heading h2 { margin: 0; font-size: 24px; }
.management-heading p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 8px; }
.quick-actions-panel { margin-bottom: 14px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.action-card { min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #141414; color: var(--text); text-align: start; }
.action-card:hover { border-color: #4f4f4f; background: var(--panel-2); }
.action-card span { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font: 800 13px ui-monospace, monospace; }
.action-card strong { font-size: 12px; }
.action-card:disabled, .primary-button:disabled, .secondary-button:disabled { opacity: .42; cursor: not-allowed; }
.section-number { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font: 800 10px ui-monospace, monospace; }
.compact-form { grid-template-columns: repeat(2, 1fr); align-items: end; }
.compact-form .primary-button { justify-self: start; min-width: 120px; }
.drop-zone { grid-column: 1 / -1; min-height: 120px; position: relative; place-items: center; align-content: center; padding: 20px; border: 1px dashed #444444; border-radius: 9px; background: #141414; text-align: center; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--teal); background: var(--teal-soft); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone strong { color: #dedede; }
.drop-zone small { color: var(--muted); }
.upload-progress { display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #121212; }
.upload-progress[hidden] { display: none; }
.upload-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #d1d1d1; font-size: 11px; }
.upload-progress strong { color: var(--teal); font: 800 11px ui-monospace, monospace; }
.upload-progress progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 99px; background: #303030; appearance: none; }
.upload-progress progress::-webkit-progress-bar { background: #303030; }
.upload-progress progress::-webkit-progress-value { background: var(--teal); transition: width .18s ease; }
.upload-progress progress::-moz-progress-bar { background: var(--teal); }
.upload-progress.error { border-color: rgba(139, 139, 139,.42); }
.upload-progress.error strong, .upload-progress.error span { color: var(--red); }
.panel-divider { height: 1px; margin: 24px 0; background: var(--line-soft); }
.inline-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.table-panel { margin-top: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: start; }
th { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; text-align: start; white-space: nowrap; }
td { padding: 14px 13px; border-bottom: 1px solid var(--line-soft); color: #dadada; }
tbody tr:last-child td { border-bottom: 0; }
code { padding: 4px 6px; border-radius: 4px; background: #101010; color: #a4a4a4; font-size: 12px; }
.table-subline { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.language-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 3px 6px; vertical-align: middle; }
.language-badges > span { padding: 2px 5px; border: 1px solid #454545; border-radius: 4px; color: #c9c9c9; font: 800 9px ui-monospace, monospace; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.active { background: var(--green-soft); color: var(--green); }
.status-badge.inactive { background: rgba(152, 152, 152,.12); color: var(--muted); }
.table-action { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: #e0e0e0; font-size: 11px; font-weight: 750; }
.table-action:hover { border-color: var(--teal); color: var(--teal); }
.table-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.empty-cell { color: var(--faint); text-align: center; }
.activity-list { display: grid; }
.activity-list article { min-height: 57px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.activity-list article:last-child { border: 0; }
.activity-list div { display: grid; }
.activity-list small, .activity-list time { color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-approved { background: var(--green); }.status-rejected { background: var(--red); }.status-pending { background: var(--amber); }
.category-cards { display: grid; gap: 8px; }
.category-cards article { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 8px; background: #141414; }
.category-cards article > div { min-width: 0; display: grid; gap: 7px; }
.category-cards article strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.category-cards article > span { flex: 0 0 auto; color: var(--text); font: 800 12px ui-monospace, monospace; text-align: end; }
.category-cards article > span small { display: block; color: var(--muted); font-size: 10px; }

.admin-dialog { width: min(520px, calc(100% - 28px)); max-height: min(820px, calc(100vh - 28px)); overflow: auto; padding: 0; border: 1px solid #3f3f3f; border-radius: 13px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.admin-dialog.wide-dialog { width: min(680px, calc(100% - 28px)); }
.admin-dialog::backdrop { background: rgba(0, 0, 0,.76); backdrop-filter: blur(4px); }
.admin-dialog > form { padding: 24px; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 5px; }
.dialog-heading span { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.dialog-heading h2 { margin: 4px 0 0; font-size: 23px; }
.dialog-heading > button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--muted); font-size: 22px; line-height: 1; }
.dialog-heading > button:hover { color: white; border-color: #505050; }
.dialog-help { margin: 0; color: var(--muted); font-size: 11px; }
.choice-field { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.choice-field legend { padding: 0 6px; color: #bfbfbf; font-size: 12px; font-weight: 700; }
.choice-field small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.choice-grid label { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 6px; background: #141414; }
.choice-grid input { width: 17px; min-height: 17px; margin: 0; accent-color: #bdbdbd; }
.choice-grid label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #d3d3d3; font-size: 11px; white-space: nowrap; }
.reviewer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 5px; }
.export-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.export-info-grid article { min-height: 116px; display: flex; align-items: flex-start; gap: 15px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 9px; background: #151515; }
.export-info-grid article > span { min-width: 52px; padding: 9px 7px; border: 1px solid #404040; border-radius: 6px; background: #222222; color: #d0d0d0; font: 800 11px ui-monospace, monospace; text-align: center; }
.export-info-grid strong { display: block; margin-bottom: 6px; font-size: 13px; }
.export-info-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.export-setup { display: grid; gap: 14px; }
.export-setup label { display: grid; gap: 7px; }
.export-setup label > span { color: #d1d1d1; font-size: 12px; font-weight: 700; }
.export-setup label > small { color: var(--muted); font-size: 10px; line-height: 1.55; }
.export-progress { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #121212; }
.export-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #d1d1d1; font-size: 11px; }
.export-progress strong { color: var(--teal); font: 800 11px ui-monospace, monospace; }
.export-progress progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 99px; background: #303030; appearance: none; }
.export-progress progress::-webkit-progress-bar { background: #303030; }
.export-progress progress::-webkit-progress-value { background: var(--teal); transition: width .18s ease; }
.export-progress progress::-moz-progress-bar { background: var(--teal); }
.export-progress > small { color: var(--muted); font: 10px ui-monospace, monospace; }
.export-progress.error { border-color: #5a5a5a; }
.export-progress.error strong, .export-progress.error > div span { color: var(--red); }
.export-progress .full-button { min-height: 43px; display: flex; align-items: center; justify-content: center; }

/* Review workspace */
.review-shell { height: calc(100vh - 68px); min-height: 640px; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.review-sidebar { overflow-y: auto; padding: 24px 14px; border-inline-end: 1px solid var(--line-soft); background: #101010; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 17px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-heading strong { min-width: 25px; padding: 3px 6px; border-radius: 5px; background: var(--panel-2); color: #d1d1d1; text-align: center; }
.project-label { margin: 17px 10px 8px; color: #888888; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.category-link { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 9px; min-height: 61px; margin: 3px 0; padding: 10px 10px 9px; border: 1px solid transparent; border-radius: 8px; color: #bfbfbf; }
.category-link:hover { background: var(--panel); }
.category-link.active { border-color: #373737; background: var(--panel-2); color: white; }
.category-link.active::before { content: ""; position: absolute; width: 2px; inset-block: 12px; inset-inline-start: -1px; border-radius: 2px; background: var(--teal); }
.category-copy { min-width: 0; display: grid; }
.category-copy strong, .category-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-copy strong { font-size: 12px; }.category-copy small { color: var(--muted); font-size: 11px; }
.category-count { align-self: center; color: var(--muted); font: 700 10px ui-monospace, monospace; }
.mini-progress { grid-column: 1 / -1; width: 100%; height: 2px; overflow: hidden; border: 0; border-radius: 3px; background: #303030; appearance: none; }
.mini-progress::-webkit-progress-bar { background: #303030; }.mini-progress::-webkit-progress-value { background: var(--teal); }.mini-progress::-moz-progress-bar { background: var(--teal); }
.sidebar-empty { padding: 10px; color: var(--muted); }
.shortcut-card { margin: 26px 5px 0; padding: 13px; border: 1px solid var(--line-soft); border-radius: 8px; background: #151515; }
.shortcut-card strong, .shortcut-card span { display: block; }.shortcut-card strong { font-size: 11px; }.shortcut-card span { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.review-workspace { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 59px 1fr; }
.review-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 22px; border-bottom: 1px solid var(--line-soft); background: #111111; }
.breadcrumb { min-width: 0; display: flex; gap: 9px; align-items: center; font-size: 12px; }
.breadcrumb span { color: var(--muted); }.breadcrumb b { color: var(--faint); }.breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-tabs { display: flex; padding: 3px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0e0e0e; }
.queue-tabs a { min-height: 34px; display: grid; place-items: center; padding: 0 13px; border-radius: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.queue-tabs a:hover { color: white; }.queue-tabs a.active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 3px #000; }
.progress-copy { display: flex; align-items: center; justify-content: flex-end; gap: 9px; font-size: 11px; }.progress-copy span { color: var(--muted); }.progress-copy strong { font: 700 11px ui-monospace, monospace; }
.review-grid { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 410px); direction: ltr; }
.image-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 67px; padding: 18px 18px 0; background: #0a0a0a; }
.image-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; border: 1px solid #252525; background-color: #0f0f0f; background-image: linear-gradient(45deg, #151515 25%, transparent 25%), linear-gradient(-45deg, #151515 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #151515 75%), linear-gradient(-45deg, transparent 75%, #151515 75%); background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; }
.image-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; user-select: none; }
.image-stage.zoomed { overflow: auto; display: block; }.image-stage.zoomed img { position: static; width: auto; height: auto; max-width: none; max-height: none; object-fit: none; }
.image-stage.loading-original::after { content: ""; position: absolute; z-index: 5; width: 34px; height: 34px; inset: 50% auto auto 50%; margin: -17px 0 0 -17px; border: 3px solid rgba(255, 255, 255,.18); border-top-color: var(--teal); border-radius: 50%; animation: preview-spin .7s linear infinite; pointer-events: none; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.image-index { position: absolute; z-index: 2; inset-block-start: 12px; inset-inline-start: 12px; padding: 5px 7px; border-radius: 4px; background: rgba(10, 10, 10,.78); color: #b1b1b1; font: 700 9px ui-monospace, monospace; }
.icon-button { width: 43px; height: 43px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: #d2d2d2; font-size: 17px; }
.icon-button:hover { border-color: #505050; background: var(--panel-3); }.icon-button.disabled { pointer-events: none; opacity: .3; }
.zoom-button { position: absolute; z-index: 2; inset-block-end: 12px; inset-inline-end: 12px; background: rgba(24, 24, 24,.9); }
.image-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; direction: ltr; }
.image-meta > div:first-child { min-width: 0; display: grid; }.image-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.image-meta span { margin-top: 2px; color: var(--muted); font: 10px ui-monospace, monospace; }
.nav-buttons { display: flex; gap: 6px; }
.review-controls { min-height: 0; overflow-y: auto; border-inline-start: 1px solid var(--line-soft); background: var(--bg-soft); direction: ltr; }
html[dir="rtl"] .review-controls { direction: rtl; }
.control-section { padding: 19px 22px; border-bottom: 1px solid var(--line-soft); }
.section-kicker { margin-bottom: 12px; color: #a2a2a2; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.section-kicker span { color: var(--teal); margin-inline-end: 7px; font-family: ui-monospace, monospace; }
.decision-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.decision { min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: #151515; color: #b2b2b2; font-weight: 800; }
.decision i { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; }
.decision.approve:hover, .decision.approve.selected { border-color: rgba(179, 179, 179,.55); background: var(--green-soft); color: var(--green); }
.decision.reject:hover, .decision.reject.selected { border-color: rgba(139, 139, 139,.55); background: var(--red-soft); color: var(--red); }
.star-rating { display: flex; align-items: center; gap: 3px; direction: ltr; }
.star-rating button { width: 43px; height: 43px; border: 0; background: transparent; color: #444444; font-size: 27px; line-height: 1; }
.star-rating button:hover, .star-rating button[aria-pressed="true"] { color: var(--amber); text-shadow: 0 0 18px rgba(193, 193, 193,.22); }
.star-rating output { margin-left: auto; padding: 5px 7px; border-radius: 5px; background: var(--panel-2); color: var(--muted); font: 700 10px ui-monospace, monospace; }
.subtitles-section { display: grid; gap: 14px; }
.subtitles-section .section-kicker { margin-bottom: 0; }
.subtitle-field { position: relative; display: grid; gap: 7px; }
.subtitle-field > span { display: flex; align-items: center; justify-content: space-between; color: #d2d2d2; font-size: 11px; }
.subtitle-field small { color: var(--faint); font: 800 9px ui-monospace, monospace; }
.subtitle-field textarea { min-height: 112px; padding-bottom: 40px; background: #101010; font-size: 14px; line-height: 1.6; }
.field-en, .field-de { direction: ltr; }.field-he { direction: rtl; }
.translation-actions { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: flex; gap: 5px; }
.translate-button { width: 48px; height: 31px; display: grid; place-items: center; border: 1px solid #3e3e3e; border-radius: 6px; background: #1a1a1a; color: var(--teal); }
.translate-button:hover { border-color: var(--teal); background: var(--teal-soft); }.translate-button:disabled { opacity: .5; cursor: wait; }
.translate-button span { font: 800 10px ui-monospace, monospace; }
.save-footer { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 22px; }
.save-state { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; }.save-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }.save-state.saving { color: var(--amber); }.save-state.error { color: var(--red); }
.reviewed-meta { color: var(--faint); font-size: 9px; }
.empty-state { height: 100%; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; }.empty-state h1 { margin: 24px 0 6px; }.empty-state p { margin: 0; color: var(--muted); }
.empty-glyph { width: 90px; height: 90px; position: relative; border: 1px solid var(--line); border-radius: 50%; }.empty-glyph i { position: absolute; width: 30px; height: 40px; inset: 25px auto auto 29px; border: 1px solid #545454; transform-origin: bottom center; }.empty-glyph i:nth-child(1) { transform: rotate(-18deg); }.empty-glyph i:nth-child(2) { transform: none; border-color: var(--teal); }.empty-glyph i:nth-child(3) { transform: rotate(18deg); }

.confirm-dialog { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid #3d3d3d; border-radius: 13px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(0, 0, 0,.72); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 28px; text-align: center; }.dialog-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font: 800 13px ui-monospace, monospace; }.confirm-dialog h2 { margin: 0 0 7px; font-size: 21px; }.confirm-dialog p { margin: 0; color: var(--muted); }.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
.toast-region { position: fixed; z-index: 100; inset: auto 22px 22px auto; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: #1b1b1b; box-shadow: var(--shadow); color: #ebebeb; font-size: 12px; animation: toast-in .2s ease-out; }
.toast.error { border-inline-start: 3px solid var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
    .review-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .review-grid { grid-template-columns: minmax(0, 1fr) 365px; }
    .admin-shell { width: min(100% - 30px, 1380px); }
    .login-shell { grid-template-columns: minmax(400px, .9fr) 1fr; }
}

@media (max-width: 880px) {
    .topbar { padding: 0 16px; }.user-pill { display: none; }.brand-word small { display: none; }
    .login-shell { grid-template-columns: 1fr; }.login-art { display: none; }.login-card { padding-top: 80px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }.admin-grid { grid-template-columns: 1fr; }.settings-form { grid-template-columns: 1fr 1fr; }.settings-form label { grid-column: 1 / -1; }.page-heading { align-items: start; flex-direction: column; }.page-heading p { text-align: start; }.quick-actions { grid-template-columns: 1fr 1fr; }.management-heading { align-items: start; flex-direction: column; }.heading-actions { width: 100%; }.heading-actions > * { flex: 1; }.export-info-grid { grid-template-columns: 1fr; }
    .review-shell { height: auto; min-height: calc(100vh - 68px); grid-template-columns: 1fr; }
    .review-sidebar { max-height: 210px; display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 4px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); }
    .sidebar-heading, .project-label, .shortcut-card { display: none; }.category-link { margin: 0; }
    .review-workspace { overflow: visible; display: block; }.review-toolbar { min-height: 112px; grid-template-columns: 1fr auto; padding-block: 10px; }.queue-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }.queue-tabs a { flex: 1; }.progress-copy { grid-column: 2; grid-row: 1; }
    .review-grid { grid-template-columns: 1fr; }.image-column { height: 58vh; min-height: 420px; padding: 12px 12px 0; }.review-controls { border-inline: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
    .choice-grid, .reviewer-grid { grid-template-columns: 1fr; }
    .topbar { height: 62px; }.topnav { gap: 0; }.nav-link { padding: 0 8px; }.muted-link { display: none; }.language-toggle { padding: 0 9px; }
    .login-shell { padding-top: 62px; }.login-card { width: calc(100% - 36px); }
    .admin-shell { width: calc(100% - 20px); padding-top: 28px; }.admin-tabs a { padding-inline: 13px; }.stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.stat-card { min-height: 104px; padding: 16px; }.settings-form { grid-template-columns: 1fr; }.settings-form label, .current-time-card { grid-column: auto; }.timezone-select { min-width: 0; }.compact-form { grid-template-columns: 1fr; }.drop-zone { grid-column: auto; }.inline-form { grid-template-columns: 1fr; }.panel { padding: 17px; }.quick-actions { grid-template-columns: 1fr; }.action-card { min-height: 68px; }.heading-actions { flex-direction: column; }.category-cards article { align-items: start; flex-direction: column; }.category-cards article > span { text-align: start; }.admin-dialog > form { padding: 19px; }.dialog-form-actions { grid-template-columns: 1fr; }.table-actions { align-items: stretch; flex-direction: column; }
    .review-shell { min-height: calc(100vh - 62px); }.review-sidebar { grid-template-columns: 1fr; max-height: 180px; }.review-toolbar { grid-template-columns: 1fr; }.progress-copy { display: none; }.queue-tabs { overflow-x: auto; }.queue-tabs a { min-width: max-content; }
    .image-column { height: 54vh; min-height: 350px; }.control-section { padding: 17px 15px; }.save-footer { padding: 0 15px; }.reviewed-meta { display: none; }
    .dialog-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
