:root {
  --ink: #172321;
  --ink-soft: #52605d;
  --paper: #f4f7f3;
  --surface: #ffffff;
  --line: #dce5df;
  --mint: #1e7565;
  --mint-pale: #dff2ea;
  --coral: #d85b45;
  --coral-pale: #fff0ec;
  --gold: #a66b09;
  --gold-pale: #fff5d9;
  --shadow: 0 14px 35px rgba(26, 54, 47, 0.08);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(30, 117, 101, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(30, 117, 101, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "DM Sans", sans-serif;
}
button, input, textarea { font: inherit; }
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-header {
  position: relative;
  z-index: 30;
  height: 70px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 145px; height: auto; flex: 0 0 auto; }
.brand span { min-width: 0; display: grid; line-height: 1.1; }
.brand strong { overflow: hidden; font-size: 15px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
.environment-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--mint);
  border: 1px solid #aad1c2;
  background: var(--mint-pale);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-actions { min-width: 0; display: flex; align-items: center; gap: 14px; margin-left: 16px; }
.account-menu { min-width: 0; position: relative; }
.account-trigger {
  max-width: min(240px, 32vw);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink-soft); }
.account-trigger > svg:last-child { width: 14px; }
.account-name { flex: 1; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.account-menu[open] .account-trigger > svg:last-child { transform: rotate(180deg); }
.account-trigger:focus-visible, .account-popover a:focus-visible { outline: 3px solid rgba(30, 117, 101, 0.25); outline-offset: 2px; }
.account-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.account-popover a { padding: 10px; display: flex; align-items: center; gap: 9px; border-radius: 3px; font-size: 13px; text-decoration: none; }
.account-popover a:hover { background: var(--mint-pale); }
.account-popover svg { width: 16px; height: 16px; }

.login-page { min-height: 100dvh; padding: 24px; display: grid; place-items: center; }
.login-card { width: 100%; max-width: 460px; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.login-logo { max-width: 100%; height: auto; }
.login-card h1 { margin-top: 32px; font-family: "DM Sans", sans-serif; font-size: 26px; font-weight: 700; line-height: 1.2; }
.login-card p { margin: 16px 0 28px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.login-button { min-height: 44px; padding: 12px 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #fff; background: var(--mint); font-weight: 700; text-decoration: none; }
.login-button:hover { background: var(--ink); }
.login-button:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.config-form { display: grid; gap: 14px; text-align: left; }
.config-form input[type="number"] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
.config-form button { border: 0; cursor: pointer; }
.config-form > a { text-align: center; }

.workspace { width: 100%; padding: 28px clamp(16px, 2vw, 32px) 32px; }
h1 {
  max-width: 700px;
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.02;
}
.filter-form { margin: 0 0 22px; display: grid; grid-template-columns: minmax(280px, 760px) auto; align-items: start; justify-content: space-between; gap: 14px; }
.search-bar {
  height: 50px;
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(26, 54, 47, 0.05);
}
.search-bar > svg { width: 18px; color: var(--ink-soft); }
.search-bar input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-bar button {
  height: calc(100% - 8px);
  margin-right: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--mint);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(30, 117, 101, 0.25);
  transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.search-bar button:hover { background: #155a4e; box-shadow: 0 4px 12px rgba(30, 117, 101, 0.35); }
.search-bar button:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(30, 117, 101, 0.25); }
.search-bar button:focus-visible { outline: 3px solid rgba(30, 117, 101, 0.35); outline-offset: 2px; }
.save-button {
  height: 100%;
  padding: 0 20px;
  border: 0;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.save-button:hover { background: var(--mint); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-soft); }
.icon-button svg { width: 17px; }
.filter-actions { min-height: 50px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.reset-filters { height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 6px; color: var(--mint); font-size: 11px; font-weight: 700; text-decoration: none; }
.reset-filters svg { width: 14px; }
.time-range-menu { position: relative; }
.range-trigger {
  height: 44px;
  min-width: 164px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(26, 54, 47, 0.05);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}
.range-trigger:hover, .range-trigger[aria-expanded="true"] { border-color: #9acbbb; }
.range-trigger:focus-visible { outline: 3px solid rgba(30, 117, 101, 0.18); outline-offset: 2px; }
.range-trigger svg { width: 16px; color: var(--ink-soft); }
.range-trigger[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.range-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: 310px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(23, 35, 33, 0.16);
}
.range-popover fieldset { margin: 0; padding: 0; border: 0; }
.range-popover legend { padding: 8px 9px 7px; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.range-option { min-height: 38px; padding: 0 9px; display: grid; grid-template-columns: 1fr 16px; align-items: center; cursor: pointer; font-size: 13px; font-weight: 700; }
.range-option:hover { background: #f2f7f3; }
.range-option input { position: absolute; opacity: 0; pointer-events: none; }
.range-option svg { display: none; width: 15px; color: var(--mint); }
.range-option input:checked ~ svg { display: block; }
.range-option:has(input:focus-visible) { outline: 2px solid rgba(30, 117, 101, 0.25); outline-offset: -2px; }
.custom-range { margin-top: 7px; padding: 12px 9px 4px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.custom-range[hidden] { display: none; }
.custom-range label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.custom-range input { width: 100%; height: 38px; padding: 0 7px; color: var(--ink); border: 1px solid var(--line); background: #fcfdfb; outline: none; color-scheme: light; font-size: 11px; }
.custom-range input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(30, 117, 101, 0.1); }
.custom-range button { height: 38px; border: 0; color: #fff; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.custom-range button:hover { background: var(--mint); }

.review-layout {
  --queue-width: 34%;
  min-height: max(680px, calc(100dvh - 260px));
  display: grid;
  grid-template-columns: minmax(260px, var(--queue-width)) 9px minmax(420px, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.queue { min-width: 0; background: #fbfcfa; }
.panel-resizer { position: relative; z-index: 2; width: 9px; cursor: col-resize; touch-action: none; background: #eef3ef; }
.panel-resizer::before { position: absolute; inset: 0 3px; content: ""; background: var(--line); transition: background 120ms ease, inset 120ms ease; }
.panel-resizer:hover::before, .panel-resizer.is-dragging::before { inset-inline: 2px; background: var(--mint); }
.panel-resizer:focus-visible { outline: 3px solid rgba(30, 117, 101, 0.22); outline-offset: -3px; }
body.is-resizing-panels { cursor: col-resize; user-select: none; }
.queue-heading {
  min-height: 49px;
  padding: 14px 17px;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.queue-heading-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.queue-heading-top > span:first-child { flex: 0 0 auto; }
.queue-totals { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; font-weight: 400; text-transform: none; font-variant-numeric: tabular-nums; }
.queue-totals > span { white-space: nowrap; }
.queue-totals strong { color: var(--ink); }
.query-label { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mint); text-transform: none; }
.queue-list { max-height: 920px; overflow-y: auto; }
.queue-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px; border-bottom: 1px solid var(--line); }
.queue-item {
  padding: 17px;
  display: grid;
  gap: 8px;
  text-decoration: none;
}
.queue-row::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: transparent; pointer-events: none; }
.queue-row:hover { background: #f2f7f3; }
.queue-row.is-selected { background: var(--mint-pale); }
.queue-row.is-selected::before { background: var(--mint); }
.queue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 10px; text-transform: uppercase; }
.queue-meta time { margin-left: auto; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9fa9a6; }
.status-approved { background: var(--mint); }
.status-follow_up { background: var(--gold); }
.status-incorrect { background: var(--coral); }
.queue-item strong { font-size: 14px; line-height: 1.35; }
.user-message-text { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; -webkit-user-select: text; user-select: text; }
.copy-message { width: 32px; height: 32px; margin-top: 10px; padding: 0; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; }
.copy-message:hover { color: var(--mint); border-color: var(--line); background: var(--surface); }
.copy-message:focus-visible { outline: 3px solid rgba(30, 117, 101, 0.25); outline-offset: 1px; }
.copy-message span { display: flex; }
.copy-message [hidden] { display: none; }
.copy-message svg { width: 16px; height: 16px; }
.copy-message.is-copied { color: var(--mint); }
.queue-pagination { padding: 12px; display: grid; gap: 10px; border-top: 1px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums; }
.pagination-summary { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.pagination-summary > span { color: var(--ink-soft); font-size: 11px; }
.pagination-controls { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: start; gap: 6px; }
.page-numbers { min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.page-arrow, .page-number { min-width: 32px; height: 32px; padding: 0 6px; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 12px; font-weight: 700; text-decoration: none; }
.page-arrow svg { width: 16px; height: 16px; }
.page-arrow:not(:disabled):hover, .page-number:hover { color: var(--mint); border-color: var(--mint); background: var(--mint-pale); }
.page-number[aria-current="page"] { color: #fff; border-color: var(--mint); background: var(--mint); }
.page-arrow:disabled { color: #9fa9a6; background: #f4f7f3; cursor: not-allowed; }
.page-arrow:focus-visible, .page-number:focus-visible { outline: 3px solid rgba(30, 117, 101, 0.25); outline-offset: 2px; }
.page-ellipsis { height: 32px; display: grid; place-items: center; color: var(--ink-soft); font-size: 12px; }
.pagination-range { padding-top: 9px; display: grid; gap: 3px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.pagination-range strong { color: var(--ink); }

.review-detail { min-width: 0; background: var(--surface); }
.detail-header {
  min-height: 49px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.detail-header > div { min-width: 0; display: flex; align-items: center; gap: 8px; }
.session-label { color: var(--ink-soft); font-size: 10px; text-transform: uppercase; }
.detail-header code { overflow: hidden; color: var(--mint); font-size: 11px; text-overflow: ellipsis; }
.detail-header time { flex: 0 0 auto; color: var(--ink-soft); font-size: 11px; }
.conversation-trace { padding: 18px 22px; border-bottom: 1px solid var(--line); background: #f7faf7; }
.trace-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.trace-heading > div { display: flex; align-items: center; gap: 7px; }
.trace-heading svg { width: 15px; }
.trace-list { max-height: 238px; overflow-y: auto; display: grid; gap: 6px; scrollbar-color: #b8c8c0 transparent; }
.trace-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 40px; border: 1px solid var(--line); background: var(--surface); }
.trace-row:hover { border-color: #9acbbb; background: #f2f8f4; }
.trace-row.is-current { border-color: var(--mint); background: var(--mint-pale); box-shadow: inset 3px 0 var(--mint); }
.trace-item { min-width: 0; min-height: 62px; padding: 10px 11px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.trace-sequence { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 10px; font-weight: 700; }
.trace-item.is-current .trace-sequence { color: #fff; border-color: var(--mint); background: var(--mint); }
.trace-copy { min-width: 0; display: grid; gap: 5px; }
.trace-copy strong { font-size: 12px; line-height: 1.4; }
.trace-copy > span { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 9px; text-transform: uppercase; }
.trace-status { display: flex; align-items: center; gap: 4px; }
.trace-status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.trace-state-approved { color: var(--mint); }
.trace-state-follow_up { color: var(--gold); }
.trace-state-incorrect { color: var(--coral); }
.trace-state-pending { color: #7b8783; }
.trace-item > svg { width: 15px; color: var(--ink-soft); }
.exchange { padding: clamp(22px, 4vw, 42px); border-bottom: 1px solid var(--line); }
.message { max-width: 850px; }
.message-label { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.message-label svg { width: 16px; }
.response-copy { min-width: 0; color: #293633; font-size: 15px; line-height: 1.7; }
.response-copy > :first-child { margin-top: 0; }
.response-copy > :last-child { margin-bottom: 0; }
.response-copy p { margin: 0 0 14px; }
.response-copy h1, .response-copy h2, .response-copy h3, .response-copy h4, .response-copy h5, .response-copy h6 { margin: 24px 0 9px; color: var(--ink); font-family: "DM Sans", sans-serif; font-weight: 700; line-height: 1.3; }
.response-copy h1 { font-size: 23px; }
.response-copy h2 { font-size: 20px; }
.response-copy h3 { font-size: 17px; }
.response-copy h4, .response-copy h5, .response-copy h6 { font-size: 15px; }
.response-copy ul, .response-copy ol { margin: 0 0 16px; padding-left: 24px; }
.response-copy li + li { margin-top: 5px; }
.response-copy blockquote { margin: 18px 0; padding: 5px 0 5px 16px; color: var(--ink-soft); border-left: 3px solid #9acbbb; }
.response-copy blockquote p { margin: 0; }
.response-copy a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.response-copy a:hover { color: var(--ink); }
.response-copy code { padding: 2px 5px; border: 1px solid var(--line); background: #f2f5f2; font-family: Consolas, "Courier New", monospace; font-size: 0.88em; }
.response-copy pre { max-width: 100%; margin: 16px 0; padding: 14px; overflow-x: auto; color: #eef7f3; background: #20302c; line-height: 1.55; }
.response-copy pre code { padding: 0; color: inherit; border: 0; background: transparent; font-size: 12px; }
.response-copy table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 13px; }
.response-copy th, .response-copy td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.response-copy th { color: var(--ink); background: #f2f7f3; font-weight: 700; }
.response-copy hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.sources-section, .review-form { padding: 26px clamp(22px, 4vw, 42px); border-bottom: 1px solid var(--line); }
.section-title { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.section-title span:last-child:not(:first-child) { color: var(--ink-soft); }
.source-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.source-list a { min-height: 42px; padding: 9px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.source-list a:hover { color: var(--mint); border-color: #9acbbb; }
.source-list svg { width: 15px; flex: 0 0 auto; }
.source-list span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { margin: 0; color: var(--ink-soft); font-size: 13px; }
.verdict-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.verdict input { position: absolute; opacity: 0; pointer-events: none; }
.verdict span { min-height: 43px; padding: 9px 12px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); cursor: pointer; font-size: 12px; font-weight: 700; }
.verdict svg { width: 16px; }
.verdict input:focus-visible + span { outline: 3px solid rgba(30, 117, 101, 0.25); }
.verdict-approved input:checked + span { color: var(--mint); border-color: var(--mint); background: var(--mint-pale); }
.verdict-follow_up input:checked + span { color: var(--gold); border-color: var(--gold); background: var(--gold-pale); }
.verdict-incorrect input:checked + span { color: var(--coral); border-color: var(--coral); background: var(--coral-pale); }
.field-label { margin: 20px 0 7px; display: block; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; }
textarea, .reviewer-field input { width: 100%; border: 1px solid var(--line); color: var(--ink); background: #fcfdfb; outline: none; }
textarea { padding: 12px; resize: vertical; line-height: 1.5; }
textarea:focus, .reviewer-field input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(30, 117, 101, 0.1); }
.form-footer { margin-top: 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.reviewer-field { width: min(310px, 55%); display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.reviewer-field input { height: 41px; padding: 0 10px; text-transform: none; }
.save-button { height: 43px; display: flex; align-items: center; gap: 8px; }
.save-button svg { width: 16px; }
.last-updated { margin: 11px 0 0; color: var(--ink-soft); font-size: 10px; }
.empty-state { min-height: 500px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--ink-soft); text-align: center; }
.empty-state svg { width: 28px; }
.empty-state.compact { min-height: 220px; }
.empty-state a { color: var(--mint); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; animation: toast-in 180ms ease-out; }
.toast svg { width: 17px; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
  .workspace {
    height: calc(100dvh - 70px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .review-layout { min-height: 0; overflow: hidden; }
  .queue { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .queue-list { max-height: none; overflow-y: auto; }
  .review-detail { min-height: 0; overflow-y: auto; scrollbar-color: #b8c8c0 transparent; }
}
@media (max-width: 900px) {
  .review-layout { grid-template-columns: 1fr; }
  .panel-resizer { display: none; }
  .queue { border-right: 0; border-bottom: 1px solid var(--line); }
  .queue-list { max-height: 410px; }
}
@media (max-width: 620px) {
  .app-header { height: 62px; padding-inline: 16px; }
  .header-actions { margin-left: 8px; gap: 8px; }
  .account-trigger { max-width: 30vw; padding: 8px; gap: 6px; }
  .brand { flex-shrink: 0; }
  .brand img { width: 120px; }
  .brand span { display: none; }
  .workspace { padding-top: 22px; }
  .filter-form { grid-template-columns: 1fr; }
  .search-bar button { padding: 0 13px; }
  .filter-actions { min-height: 44px; }
  .range-popover { width: min(310px, calc(100vw - 32px)); }
  .detail-header { align-items: start; flex-direction: column; gap: 5px; }
  .source-list { grid-template-columns: 1fr; }
  .verdict-options { grid-template-columns: 1fr; }
  .verdict span { justify-content: flex-start; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .reviewer-field { width: 100%; }
  .save-button { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; }
}