@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("fonts/devanagari.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0900-097F, U+A8E0-A8FF, U+1CD0-1CFF, U+200C-200D, U+20B9;
}
:root {
  color-scheme: dark;
  --page: #101114;
  --sidebar: #141518;
  --surface: #181a1e;
  --raised: #202227;
  --hover: #27292f;
  --line: #2a2c33;
  --line-soft: #22242a;
  --text: #eeeff3;
  --muted: #a0a6b4;
  --subtle: #818897;
  --accent: #a2a9ff;
  --accent-fill: #858ff5;
  --positive: #89d5b0;
  --negative: #f39c9c;
  --warning: #e5c18b;
  font-family: "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
svg { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; }
body { margin: 0; background: var(--page); color: var(--text); line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: var(--text); border: 1px solid var(--line); border-radius: 8px; background: var(--raised); padding: 9px 13px; min-height: 38px; font-weight: 500; transition: background .15s, border-color .15s; }
button:hover { background: var(--hover); border-color: #41444e; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button svg, a svg { width: 17px; height: 17px; flex-shrink: 0; }
button.primary, a.primary { background: var(--accent-fill); border-color: transparent; color: #0c1029; font-weight: 650; }
button.primary:hover { background: #a0a8ff; }
button.quiet { border-color: transparent; background: transparent; color: var(--muted); }
button.quiet:hover { background: var(--raised); color: var(--text); }
button.danger { color: var(--negative); background: #332226; }
.button-content { display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -.8px; line-height: 1.25; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
h3 { font-size: 15px; font-weight: 600; }
small { font-size: 11px; }
input, textarea, select { border: 1px solid var(--line); background: #121316; color: var(--text); padding: 10px 12px; border-radius: 8px; max-width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #949eff13; }
input::placeholder, textarea::placeholder { color: #686f7c; }
input[type="checkbox"] { accent-color: var(--accent-fill); width: 16px; height: 16px; flex-shrink: 0; }
label { cursor: pointer; }
textarea { resize: vertical; width: 100%; min-height: 88px; line-height: 1.6; font-size: 16px; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { color: #b9bfe2; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.75; color: #bbc1cd; max-height: 420px; overflow: auto; padding: 16px; background: #101114; border: 1px solid var(--line-soft); border-radius: 8px; margin: 12px 0 0; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.mono { font-size: 11px; }
.sidebar { width: 208px; background: var(--sidebar); border-right: 1px solid var(--line-soft); height: 100dvh; position: fixed; top: 0; left: 0; z-index: 20; display: flex; flex-direction: column; padding: 26px 14px 20px; }
.brand { color: var(--text); display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 650; padding: 0 10px; letter-spacing: -.7px; }
.brand-mark { position: relative; font-size: 22px; background: #303447; border: 1px solid #444962; border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; font-weight: 700; color: #ced2ff; }
.brand-mark span { position: absolute; right: 3px; bottom: 3px; font-size: 24px; line-height: 10px; }
.brand small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; letter-spacing: .8px; }
.workspace { margin: 30px 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: flex; align-items: center; gap: 9px; font-size: 12px; }
.workspace small { display: block; color: var(--subtle); font-size: 10px; }
.workspace-icon { background: #35313b; color: #d7bcd8; border-radius: 6px; width: 27px; height: 29px; display: grid; place-items: center; }
.workspace-dot { width: 5px; height: 5px; background: var(--positive); border-radius: 50%; margin-left: auto; }
.nav-caption { color: var(--subtle); padding: 0 12px; font-size: 10px; margin-bottom: 10px; }
nav { display: grid; gap: 5px; }
nav a { padding: 11px 12px; border-radius: 7px; display: flex; align-items: center; gap: 10px; color: #9ea3af; font-size: 12px; min-height: 42px; }
nav a:hover { color: #fff; background: #ffffff05; }
nav a.active { background: #959fff16; color: #c2c8ff; }
nav a svg { width: 16px; height: 16px; opacity: .9; }
.nav-count { font-size: 10px; margin-left: auto; background: #ffffff0d; padding: 0 6px; border-radius: 4px; }
.sidebar-bottom { margin-top: auto; color: var(--muted); display: flex; align-items: flex-start; padding: 15px 10px 0; border-top: 1px solid var(--line-soft); gap: 8px; font-size: 11px; }
.sidebar-bottom small { color: var(--subtle); display: block; margin-top: 3px; font-size: 10px; }
.prototype-dot { background: var(--accent); height: 5px; width: 5px; border-radius: 50%; margin-top: 6px; }
.shell { margin-left: 208px; min-width: 0; }
.topbar { min-height: 62px; padding: 12px 32px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 15px; font-size: 11px; color: var(--subtle); }
.breadcrumbs strong { color: #c2c6d0; font-weight: 450; }
.separator { color: #434852; }
.topbar-actions { display: flex; gap: 15px; align-items: center; }
.snapshot-chip { color: var(--muted); font-size: 10px; border: 1px solid var(--line); padding: 3px 8px; border-radius: 5px; }
.avatar { border-radius: 50%; width: 28px; min-height: 28px; height: 28px; padding: 0; font-size: 11px; background: #373342; color: #d8cbe7; }
main { max-width: 1700px; margin: 0 auto; padding: 30px 32px 22px; outline: none; min-height: calc(100dvh - 120px); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 27px; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 8px; }
.heading-aside { display: flex; gap: 10px; align-items: center; }
.heading-number { color: #d8dce5; font-size: 20px; padding: 0 6px; }
.heading-number small { display: block; font-size: 10px; color: var(--subtle); font-weight: 400; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.segmented { display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #141518; flex-shrink: 0; }
.segmented button { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 5px 12px; min-height: 29px; border-radius: 5px; white-space: nowrap; }
.segmented button.active { background: #2d3038; color: var(--text); box-shadow: 0 1px 3px #0004; }
.segmented button span { margin-left: 5px; color: var(--subtle); font-size: 10px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding-left: 10px; color: var(--subtle); max-width: 260px; background: #15161a; }
.search svg { width: 14px; height: 14px; }
.search input { background: none; border: 0; font-size: 12px; width: 100%; min-width: 0; height: 35px; padding: 6px 10px 6px 0; box-shadow: none; }
.task-rail { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.task-card { background: var(--surface); border: 1px solid var(--line); padding: 8px; display: flex; align-items: center; gap: 10px; flex: 0 0 176px; min-height: 65px; text-align: left; }
.task-card.active { border-color: #8993e8; background: #232638; }
.task-thumb { width: 35px; height: 47px; object-fit: cover; object-position: center top; border-radius: 4px; background: #282b32; flex-shrink: 0; }
.task-card h3 { font-size: 11px; font-weight: 500; white-space: nowrap; max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.task-card small { display: block; font-size: 9px; color: var(--subtle); margin-top: 3px; }
.task-card.active small { color: #a5acd2; }
.task-card .task-kind { margin-bottom: 2px; font-size: 9px; color: var(--muted); }
.status { display: inline-flex; gap: 5px; align-items: center; font-size: 10px; color: #a6adbb; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.submitted { color: #b3b8ff; }
.status.approved { color: var(--positive); }
.status.returned, .status.needs_info { color: var(--warning); }
.status.excluded { color: #9398a4; }
.sample-layout { display: grid; grid-template-columns: minmax(0, 1fr) 302px; align-items: start; gap: 18px; }
.sample-main, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.sample-meta { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 19px; border-bottom: 1px solid var(--line-soft); }
.sample-meta h2 { font-size: 14px; }
.sample-meta .mono { color: var(--subtle); font-size: 10px; margin-top: 3px; display: block; }
.tabs { display: flex; gap: 19px; padding: 0 19px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 12px 0 10px; background: none; border: 0; border-radius: 0; border-bottom: 2px solid transparent; color: var(--subtle); font-size: 11px; min-height: 43px; white-space: nowrap; }
.tabs button.active { color: #c7ccff; border-bottom-color: var(--accent-fill); }
.tabs button small { font-size: 9px; margin-left: 5px; opacity: .7; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.media-column { min-width: 0; background: #121316; }
.media-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 6px 14px; gap: 6px; font-size: 10px; color: var(--muted); }
.media-top b { color: #d0d4de; font-weight: 500; }
.media-top button { padding: 4px 5px; min-height: 27px; background: none; border-color: transparent; color: var(--subtle); }
.media-top svg { width: 14px; height: 14px; }
.media-stage { height: clamp(270px, 38vw, 452px); display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; background-image: radial-gradient(#ffffff09 .65px, transparent .65px); background-size: 8px 8px; }
.media-stage img, .media-stage video { height: 100%; width: 100%; object-fit: contain; display: block; }
.media-stage img { cursor: zoom-in; }
.media-label { position: absolute; left: 10px; bottom: 10px; padding: 3px 6px; border-radius: 4px; font-size: 9px; background: #101114cf; color: #c2c5cf; pointer-events: none; }
.media-empty { height: 100%; min-height: 210px; color: var(--subtle); display: grid; align-content: center; justify-items: center; padding: 25px; gap: 9px; text-align: center; font-size: 12px; }
.media-empty svg { width: 28px; height: 28px; opacity: .5; }
.prompt-strip { padding: 17px 19px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eyebrow { font-size: 9px; color: var(--subtle); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.language { font-size: 9px; border: 1px solid var(--line); padding: 0 5px; border-radius: 3px; color: #b9beca; }
.user-prompt { font-size: 13px; color: #dfe2e9; line-height: 1.7; overflow-wrap: anywhere; }
.prompt-translation { color: #c0c4d1; font-size: 13px; }
.comparison-heading { display: flex; gap: 10px; align-items: flex-start; padding: 18px 19px 12px; }
.comparison-heading > span { border: 1px solid #4b526a; border-radius: 6px; padding: 3px 6px; color: #bec6ff; font-size: 11px; flex: none; }
.comparison-heading h3 { font-size: 15px; }
.comparison-heading p { color: var(--muted); margin-top: 4px; font-size: 12px; }
.request-overview { background: #1b1e26; border-bottom: 1px solid var(--line); }
.request-overview .prompt-strip { padding-top: 2px; border-top: 0; }
.request-overview .prompt-translation { white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; }
.comparison-details { padding: 2px 19px 16px; }
.comparison-error { padding: 16px 19px; color: #d6b4b5; background: #2a2024; font-size: 12px; overflow-wrap: anywhere; }
.comparison-error p { margin-top: 7px; }
.sample-source { padding: 10px 19px; color: var(--subtle); display: flex; align-items: center; gap: 7px; font-size: 9px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.sample-source span:last-child { margin-left: auto; }
.inspector { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.inspector-heading { padding: 18px 18px 16px; border-bottom: 1px solid var(--line-soft); }
.inspector-heading h2 { font-size: 14px; }
.inspector-heading p { font-size: 10px; color: var(--subtle); margin-top: 4px; }
.annotation-body { padding: 16px 18px; }
@media (min-width: 821px) {
  .inspector { position: sticky; top: 16px; max-height: calc(100dvh - 96px); display: flex; flex-direction: column; }
  .inspector-heading, .inspector .save-panel { flex-shrink: 0; }
  .inspector > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  .inspector .annotation-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
}
.field-title { display: block; font-size: 11px; color: #b9beca; margin: 0 0 10px; font-weight: 500; }
.verdict-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verdict { position: relative; display: flex; gap: 8px; align-items: center; padding: 11px 9px; border: 1px solid var(--line); border-radius: 8px; color: #a9aebc; font-size: 11px; min-height: 44px; }
.verdict input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.verdict:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.verdict svg { width: 15px; height: 15px; opacity: .7; }
.verdict:has(input:checked) { background: #8b96ff12; border-color: #818bd1; color: #d6dbff; }
.verdict.positive:has(input:checked) { border-color: #5a9b7e; color: #a0dec2; background: #1d3028; }
.verdict.negative:has(input:checked) { border-color: #ac686d; color: #f2b0b3; background: #342529; }
.field { margin-top: 20px; }
.issue-list { display: flex; flex-wrap: wrap; gap: 6px; }
.issue { font-size: 10px; padding: 5px 8px; min-height: 30px; border-radius: 6px; background: #202228; color: #a9afbe; }
.issue.active { color: #efb0b3; border-color: #8f5b62; background: #35262c; }
.evidence-drop { border: 1px dashed #40434e; border-radius: 8px; padding: 13px 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: #15161a; color: #9ca3b2; min-height: 76px; font-size: 10px; text-align: center; }
.evidence-drop svg { width: 18px; height: 18px; color: #868da3; }
.evidence-drop.dragging { border-color: var(--accent); background: #a2a9ff15; }
.evidence-drop small { color: var(--subtle); font-size: 9px; }
.evidence-drop input { display: none; }
.evidence-tools { display: flex; gap: 7px; align-items: center; margin-top: 8px; }
.evidence-tools button { font-size: 10px; min-height: 30px; padding: 5px 8px; flex: 1; }
.attachment-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.attachment { width: 64px; height: 64px; border-radius: 7px; overflow: hidden; position: relative; border: 1px solid var(--line); background: #111; }
.attachment img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.attachment button { position: absolute; top: 0; right: 0; border: 0; background: #141518d9; min-height: 22px; width: 22px; padding: 0; border-radius: 0 0 0 5px; font-size: 15px; line-height: 1; }
.attachment-caption { font-size: 9px; color: var(--subtle); margin-top: 6px; }
.attachment { width: 96px; height: 96px; display: flex; flex-direction: column; }
.attachment:has(.attachment-remove) { height: 140px; }
.attachment .attachment-preview { position: relative; inset: auto; padding: 0; width: 100%; height: 96px; min-height: 44px; border: 0; border-radius: 0; background: transparent; flex: 1; overflow: hidden; }
.attachment-preview > span { position: absolute; left: 4px; bottom: 4px; min-width: 22px; background: #080a11dd; color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 4px; }
.attachment .attachment-remove { position: static; width: 100%; min-height: 44px; border-radius: 0; flex: none; font-size: 20px; }
.issue-help { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 10px 0; }
.issue-choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.issue-choices .issue { text-align: left; padding: 10px; min-height: 54px; }
.issue-choices .issue span, .issue-choices .issue small { display: block; }
.issue-choices .issue span { font-size: 12px; }
.issue-choices .issue small { font-size: 11px; line-height: 1.7; margin-top: 4px; color: var(--muted); }
.link-evidence { min-height: 44px; width: 100%; font-size: 12px; margin-top: 10px; }
.annotation-error { background: #382329; border: 1px solid #9a5862; color: #f8c1c6; padding: 12px; border-radius: 8px; margin-top: 14px; font-size: 12px; line-height: 1.8; }
.precheck-card { padding: 18px; border-bottom: 1px solid var(--line); background: #1a2024; }
.precheck-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.precheck-heading h3 { font-size: 14px; }
.precheck-card > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.precheck-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.precheck-checks > div { display: flex; gap: 8px; font-size: 12px; }
.precheck-checks > div > span { color: var(--positive); }
.precheck-checks > .failed > span { color: var(--negative); }
.precheck-checks > .unknown > span { color: var(--warning); }
.precheck-checks small { display: block; color: var(--subtle); margin-top: 3px; }
.precheck-evidence { display: grid; gap: 14px; margin: 16px 0; }
.precheck-evidence article { display: flex; gap: 14px; align-items: center; min-width: 0; }
.precheck-evidence article > div { min-width: 0; }
.precheck-evidence button { flex: none; padding: 0; overflow: hidden; min-width: 80px; min-height: 60px; }
.precheck-evidence img { width: 100px; height: 100px; object-fit: contain; display: block; }
.precheck-evidence strong, .precheck-evidence code, .precheck-evidence p { font-size: 11px; }
.precheck-evidence p { color: var(--muted); margin: 4px 0; }
.time-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-range label { font-size: 10px; color: var(--muted); }
.time-range input { width: 100%; margin-top: 4px; font-size: 16px; }
.confirm { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 10px; margin-top: 18px; line-height: 1.7; }
.confirm input { margin: 2px 0 0; }
.save-panel { padding: 14px 18px 16px; border-top: 1px solid var(--line); background: #1b1d22; }
.save-panel button { width: 100%; min-height: 40px; font-size: 12px; }
.save-panel .save-caption { display: flex; align-items: center; justify-content: space-between; font-size: 9px; color: var(--subtle); margin-top: 8px; }
.save-caption button { width: auto; font-size: 9px; min-height: 23px; padding: 2px 0; border: 0; background: none; color: var(--muted); }
.feedback { color: var(--warning); background: #ad814d0f; padding: 12px; font-size: 11px; border: 1px solid #a4834d30; border-radius: 8px; margin-bottom: 14px; }
.content-pane { padding: 20px; min-height: 400px; }
.content-pane h3 { margin-bottom: 8px; }
.prompt-section { margin-bottom: 23px; }
.prompt-block { font-size: 13px; line-height: 1.85; color: #c5c9d4; background: #131519; border: 1px solid var(--line-soft); border-radius: 8px; padding: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-block.original { max-height: 310px; overflow-y: auto; }
.prompt-block.translation { color: #bec7e7; border-color: #333848; background: #1c202c; }
details { margin-top: 14px; }
summary { color: #a5acbc; font-size: 12px; cursor: pointer; padding: 10px 0; }
.details-label { color: var(--subtle); font-size: 10px; margin-left: 8px; }
.kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.kv div { border-bottom: 1px solid var(--line-soft); padding: 12px 0; min-width: 0; }
.kv dt { font-size: 10px; color: var(--subtle); margin-bottom: 5px; }
.kv dd { margin: 0; font-size: 12px; color: #c1c7d2; overflow-wrap: anywhere; }
.reference-item { display: grid; grid-template-columns: 75px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.reference-item img { width: 75px; height: 95px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.reference-item code { font-size: 10px; display: block; margin-top: 8px; }
.reference-item p { font-size: 11px; color: var(--subtle); margin-top: 6px; }
.info-note { display: flex; gap: 8px; color: var(--muted); padding: 12px 15px; border: 1px solid var(--line); background: #17191f; border-radius: 8px; font-size: 11px; }
.info-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.review-intro { margin-bottom: 18px; }
.queue-panel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.queue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.queue-top h2 { font-size: 13px; }
.queue-top p { font-size: 10px; color: var(--subtle); margin-top: 3px; }
.queue-table { width: 100%; border-collapse: collapse; }
.queue-table th { text-align: left; font-size: 10px; font-weight: 500; color: var(--subtle); background: #15171b; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.queue-table td { padding: 17px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.queue-table tr:last-child td { border-bottom: 0; }
.queue-table tbody tr:hover { background: #ffffff02; }
.queue-task { display: flex; flex-direction: column; gap: 4px; min-width: 125px; }
.queue-task strong { font-size: 12px; font-weight: 500; }
.queue-task .mono { font-size: 9px; color: var(--subtle); }
.queue-task small { font-size: 10px; color: var(--subtle); overflow-wrap: anywhere; }
.queue-media { display: flex; gap: 6px; }
.queue-media .mini-media { width: 62px; }
.mini-media img, .mini-media video { height: 78px; width: 62px; object-fit: cover; border: 1px solid var(--line); border-radius: 5px; background: #1d1f24; cursor: pointer; display: block; }
.mini-media video { object-fit: contain; }
.mini-media small { color: var(--subtle); font-size: 8px; display: block; margin-top: 4px; }
.mini-video { display: block; position: relative; padding: 0; width: 100%; border: 0; background: transparent; border-radius: 5px; overflow: hidden; }
.mini-video img { width: 100%; }
.mini-video span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #11141ecc; border: 1px solid #ffffff55; color: #fff; font-size: 10px; padding-left: 2px; pointer-events: none; }
.mini-empty { height: 78px; width: 62px; border: 1px dashed var(--line); border-radius: 5px; display: grid; place-items: center; color: #62697a; font-size: 10px; }
.label-pill { border-radius: 5px; font-size: 10px; padding: 3px 7px; background: #262a33; color: #adb4c5; display: inline-block; white-space: nowrap; }
.label-pill.positive { background: #1f312a; color: var(--positive); }
.label-pill.negative { background: #34262b; color: var(--negative); }
.queue-evidence { font-size: 11px; color: #b4bac9; max-width: 220px; }
.queue-evidence p { margin: 6px 0; overflow-wrap: anywhere; }
.queue-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.queue-actions button { font-size: 10px; min-height: 31px; padding: 6px 9px; white-space: nowrap; }
.queue-evidence .attachment-list { margin-top: 6px; }
.queue-evidence .attachment { width: 36px; height: 36px; }
.empty-state { text-align: center; padding: 65px 20px; color: var(--muted); }
.empty-state p { font-size: 12px; margin-top: 8px; }
.empty-state button { margin-top: 20px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.rule-card { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--surface); }
.rule-number { font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.rule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.scope-chip { color: var(--subtle); font-size: 10px; border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }
.rule-example { font-size: 12px; color: #adb5c3; margin-top: 12px; }
.rule-example b { color: var(--positive); display: block; font-size: 10px; margin-bottom: 4px; font-weight: 500; }
.rule-example.fail b { color: var(--negative); }
.label-definitions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.definition { border-top: 1px solid var(--line); padding-top: 15px; }
.definition p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.flow-hero { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 26px; }
.flow-hero > p { color: var(--muted); font-size: 12px; margin-top: 9px; max-width: 760px; }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 32px; }
.flow-step { position: relative; padding-right: 15px; }
.flow-step::after { content: ""; position: absolute; top: 15px; left: 36px; right: 10px; border-top: 1px solid #424756; }
.flow-step:last-child::after { display: none; }
.step-dot { display: grid; place-items: center; border: 1px solid #484e6c; color: #b7bfff; background: #282d42; width: 31px; height: 31px; border-radius: 50%; font-size: 11px; }
.flow-step h3 { margin-top: 15px; font-size: 12px; }
.flow-step p { font-size: 10px; color: var(--subtle); max-width: 150px; margin-top: 6px; line-height: 1.8; }
.workflow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.workflow-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.workflow-card h3 { margin-bottom: 16px; }
.workflow-item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: 16px; }
.workflow-item > span { color: var(--accent); border: 1px solid var(--line); width: 25px; height: 25px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; }
.workflow-item strong { font-size: 12px; font-weight: 500; }
.workflow-item p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.workflow-card .exception { border-bottom: 1px solid var(--line-soft); padding: 13px 0; }
.exception strong { font-size: 12px; color: var(--warning); font-weight: 500; }
.exception p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.delivery-note { margin-top: 20px; }
.guide-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.guide-steps h2 { margin-bottom: 24px; }
.guide-steps .workflow-item h3 { font-size: 14px; }
.guide-steps .workflow-item p { font-size: 13px; line-height: 1.9; }
.guide-intro, .guide-list { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 18px 0; }
.guide-list { padding-left: 20px; }
.guide-list li + li { margin-top: 14px; }
.guide-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; margin-top: 24px; }
.guide-tips h3 { font-size: 14px; margin-bottom: 9px; }
.guide-tips p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.guide-tips a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.developer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.developer-links a, .guide-layout button { min-height: 44px; }
.api-access { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 22px; }
.api-access strong { margin-left: 8px; font-size: 13px; }
.api-access svg { color: var(--positive); }
.api-access p { margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.developer-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.api-catalog, .api-operation-detail { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.api-catalog-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.api-catalog-heading h2 { font-size: 14px; }
.api-catalog-heading > span { font-size: 11px; color: var(--muted); }
.api-mobile-picker { display: none; }
.api-operation { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 7px 9px; width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; padding: 16px; text-align: left; }
.api-operation strong { font-size: 12px; font-weight: 500; }
.api-operation code { grid-column: 1 / -1; font-size: 10px; color: var(--subtle); overflow-wrap: anywhere; }
.api-operation.active { background: #a2a9ff11; box-shadow: inset 3px 0 var(--accent); }
.api-operation.active code { color: #bac1e8; }
.http-method { font: 600 10px ui-monospace, monospace; padding: 4px 6px; border-radius: 4px; align-self: center; width: fit-content; }
.http-method.get { background: #23332d; color: var(--positive); }
.http-method.post { background: #342c21; color: var(--warning); }
.api-operation-header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 22px; }
.api-operation-header h2 { font-size: 17px; }
.api-operation-header > code { width: 100%; font-size: 12px; }
.api-operation-header > p { width: 100%; color: var(--muted); font-size: 12px; line-height: 1.9; }
.developer-tabs { padding-left: 22px; }
.developer-tabs button { min-height: 48px; }
.api-detail-body { padding: 22px; }
.api-detail-body h3 { font-size: 14px; }
.api-field-list { margin: 12px 0 24px; }
.api-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; border-bottom: 1px solid var(--line-soft); padding: 13px 0; font-size: 12px; }
.api-field > span { color: var(--subtle); font-size: 10px; }
.api-field > p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.8; }
.developer-empty { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 12px 0 20px; }
.api-section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.api-section-heading button { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-size: 12px; }
.api-code { margin-bottom: 22px; }
.api-error-list { margin-top: 12px; }
.api-error-list > div { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.api-try { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 24px; }
.api-try p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.api-test-label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 18px; }
.api-test-label input, .api-test-label select { font-size: 16px; min-height: 44px; width: 100%; }
.api-live-status { padding-top: 16px; color: var(--positive) !important; }
.api-write-note { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 0; }
@media (min-width: 1001px) {
  .api-catalog { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto; }
}
@media (max-width: 1100px) {
  .developer-layout { grid-template-columns: minmax(205px, 245px) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .guide-layout, .api-access, .developer-layout { grid-template-columns: 1fr; }
  .api-mobile-picker { display: flex; flex-direction: column; gap: 8px; padding: 16px; font-size: 12px; color: var(--muted); }
  .api-mobile-picker select { width: 100%; min-height: 44px; font-size: 16px; }
  .api-catalog > .api-operation { display: none; }
}
@media (max-width: 600px) {
  .guide-tips { grid-template-columns: 1fr; gap: 24px; }
  .guide-layout .workflow-card, .api-access, .api-operation-header, .api-detail-body { padding: 18px; }
  .developer-links { width: 100%; }
  .page-heading:has(.developer-links) { flex-direction: column; align-items: stretch; gap: 16px; }
  .page-heading:has(.developer-links) p { max-width: none; }
  .developer-links a { flex: 1; text-align: center; }
  .developer-tabs { padding-left: 18px; }
  .api-operation-header .scope-chip { margin-left: 0; }
  .api-section-heading { align-items: stretch; }
  .api-section-heading > button { width: 100%; justify-content: center; }
}
.page-footer { display: flex; justify-content: space-between; gap: 10px; color: #5f6572; font-size: 9px; padding: 12px 32px 20px; max-width: 1700px; margin: auto; }
#toast { position: fixed; bottom: 25px; left: calc(50% + 104px); transform: translate(-50%, 15px); padding: 11px 18px; border: 1px solid #4f5364; background: #272a34; border-radius: 10px; box-shadow: 0 8px 45px #0005; color: #e1e5f1; opacity: 0; pointer-events: none; z-index: 100; transition: opacity .15s, transform .15s; font-size: 12px; max-width: min(500px, calc(100vw - 32px)); }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { background: #191b21; border: 1px solid #3b3f4c; border-radius: 16px; color: var(--text); padding: 0; max-height: calc(100dvh - 32px); width: min(580px, calc(100vw - 28px)); max-width: none; box-shadow: 0 20px 100px #0008; }
dialog::backdrop { background: #06080bc9; backdrop-filter: blur(5px); }
.dialog-header { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; background: #191b21; }
.dialog-header h2 { font-size: 15px; }
.close { width: 32px; height: 32px; min-height: 32px; padding: 5px; border-color: transparent; background: transparent; color: var(--muted); }
.dialog-body { padding: 22px; }
.dialog-body p { color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.dialog-body label { display: block; margin-top: 14px; font-size: 12px; color: #b4bbcc; }
.dialog-body label input { width: 100%; font-size: 16px; margin-top: 7px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); background: #191b21; position: sticky; bottom: 0; z-index: 2; }
.dialog-body .info-note { margin-bottom: 15px; }
.api-method { font-size: 10px; color: var(--positive); padding: 3px 5px; background: #26372e; border-radius: 4px; margin-right: 9px; }
.api-url { margin: 16px 0; padding: 14px; border-radius: 8px; border: 1px solid var(--line); background: #111318; font-size: 12px; overflow-wrap: anywhere; line-height: 1.8; }
.api-response { max-height: 230px; }
dialog.image-viewer { width: min(960px, calc(100vw - 24px)); }
.image-viewer .image-full { display: block; width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; background: #0f1013; }
.gallery-body { padding: 16px; }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.gallery-count { color: var(--accent); font-size: 12px; flex: none; }
.gallery-toolbar strong { font-size: 12px; flex: 1; overflow-wrap: anywhere; min-width: 90px; }
.gallery-toolbar button, .gallery-navigation button, .gallery-selection button { min-height: 44px; font-size: 12px; }
.gallery-stage { height: clamp(160px, 46dvh, 500px); overflow: auto; background: #0d0f13; border: 1px solid var(--line); border-radius: 8px; }
.gallery-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-image.zoomed { width: 200%; height: 200%; max-width: none; }
.gallery-navigation { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 12px 0; }
.gallery-navigation > span { color: var(--subtle); font-size: 11px; text-align: center; }
.gallery-thumbnails { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 10px; }
.gallery-thumb { flex: 0 0 108px; min-width: 0; }
.gallery-thumb > button { display: block; width: 100%; height: 80px; padding: 4px; background: #101217; border: 1px solid var(--line); }
.gallery-thumb.active > button { border: 2px solid var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb label { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 11px; }
.gallery-thumb > span { font-size: 11px; color: var(--muted); display: block; text-align: center; margin-top: 6px; }
.gallery-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.gallery-selection > span, .gallery-selection > p { font-size: 12px; color: var(--muted); }
.gallery-selection label { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-left: auto; }
.gallery-selection select { font-size: 16px; min-height: 44px; }
.gallery-loading { color: var(--negative); font-size: 12px; margin-top: 10px; }
.auth-help-button { margin-top: 12px; min-height: 44px; font-size: 12px; }
.api-auth-guide ol { padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.api-auth-guide li + li { margin-top: 10px; }
.api-auth-guide h3 { font-size: 14px; margin: 18px 0 12px; }
.auth-identity { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #121419; border: 1px solid var(--line); border-radius: 8px; margin: 18px 0; font-size: 12px; }
.auth-identity button, .api-auth-guide .button-link { min-height: 44px; }
@media (max-width: 600px) {
  .precheck-checks { grid-template-columns: 1fr; }
  .precheck-card { padding: 16px; }
  .gallery-body { padding: 12px; }
  .gallery-navigation { gap: 6px; }
  .gallery-navigation > span { display: none; }
  .gallery-selection { align-items: stretch; }
  .gallery-selection label { width: 100%; margin-left: 0; }
  .gallery-selection select { flex: 1; min-width: 0; }
  .gallery-selection > .primary { width: 100%; }
}
dialog.editor { width: min(1000px, calc(100vw - 24px)); }
.editor-toolbar { display: flex; padding: 10px 16px; gap: 8px; border-bottom: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.editor-toolbar button { font-size: 11px; padding: 6px 10px; min-height: 32px; }
.editor-toolbar button.active { color: var(--accent); border-color: #7783c3; background: #a2a9ff0f; }
.editor-toolbar .tool-hint { margin-left: auto; font-size: 10px; color: var(--subtle); }
.canvas-wrap { background: #101114; display: flex; align-items: center; justify-content: center; padding: 12px; height: min(57dvh, 560px); overflow: hidden; }
canvas { max-width: 100%; max-height: 100%; object-fit: contain; touch-action: none; cursor: crosshair; display: block; }
.skip-link { position: fixed; top: -60px; background: var(--accent); color: #111; z-index: 100; padding: 10px; }
.skip-link:focus { top: 10px; }
.loading { display: flex; gap: 12px; padding: 60px; justify-content: center; color: var(--muted); }
.loading-dot { width: 12px; height: 12px; border: 2px solid #424758; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) {
  .sample-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
  .annotation-body, .inspector-heading { padding-left: 22px; padding-right: 22px; }
  .media-stage { height: 500px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 184px; }
  .shell { margin-left: 184px; }
  main { padding: 25px 22px; }
  .topbar { padding-left: 22px; padding-right: 22px; }
  .sample-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; }
  .media-stage { height: 325px; }
  .annotation-body { padding: 15px; }
  .queue-table th, .queue-table td { padding: 14px 12px; }
  .queue-task { min-width: 105px; }
  .queue-media .mini-media, .mini-media img, .mini-media video, .mini-empty { width: 48px; }
}
@media (max-width: 1000px) {
  .sidebar { width: 70px; padding: 22px 10px; }
  .brand { padding: 0 6px; }
  .brand > span:last-child, .workspace, .nav-caption, .sidebar-bottom, nav .nav-name, .nav-count { display: none; }
  nav { margin-top: 35px; gap: 14px; }
  nav a { padding: 12px; min-height: 44px; justify-content: center; }
  nav a svg { width: 19px; height: 19px; }
  .shell { margin-left: 70px; }
  #toast { left: calc(50% + 35px); }
}
@media (max-width: 820px) {
  .sample-layout { grid-template-columns: 1fr; }
  .inspector-heading { padding: 18px; }
  .annotation-body { padding: 18px; }
  .verdict-options { grid-template-columns: repeat(4, 1fr); }
  .evidence-drop { min-height: 85px; }
  .queue-table { display: block; }
  .queue-table thead { display: none; }
  .queue-table tbody { display: grid; grid-template-columns: 1fr 1fr; }
  .queue-table tr { display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; gap: 12px; min-width: 0; }
  .queue-table td { padding: 0; border: 0; }
  .queue-task { min-width: 0; }
  .queue-task strong { font-size: 13px; }
  .queue-evidence { max-width: none; }
  .queue-media .mini-media { width: 48%; }
  .mini-media img, .mini-media video, .mini-empty { width: 100%; height: 120px; }
  .queue-table .queue-actions { margin-top: auto; }
  .media-stage { height: 380px; }
}
@media (max-width: 600px) {
  .sidebar { height: auto; width: 100%; top: auto; bottom: 0; border-top: 1px solid var(--line); border-right: 0; background: #17191ff5; backdrop-filter: blur(15px); padding: 5px 8px max(5px, env(safe-area-inset-bottom)); }
  .sidebar .brand { display: none; }
  nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
  nav a { display: flex; flex-direction: column; gap: 3px; padding: 6px 2px 5px; border-radius: 7px; min-height: 50px; font-size: 9px; }
  nav .nav-name { display: block; font-size: 9px; }
  nav a svg { width: 19px; height: 19px; }
  .shell { margin-left: 0; padding-bottom: 74px; }
  .topbar { padding: 12px 16px; min-height: 55px; }
  .breadcrumbs { gap: 9px; font-size: 10px; }
  .topbar-actions { gap: 9px; }
  .snapshot-chip { font-size: 8px; padding: 3px 5px; }
  main { padding: 23px 15px 16px; }
  h1 { font-size: 23px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading p { font-size: 11px; line-height: 1.7; max-width: 235px; }
  .heading-number { font-size: 18px; }
  .heading-number small { font-size: 9px; }
  .filters { align-items: stretch; gap: 9px; flex-wrap: wrap; }
  .filters .search { max-width: none; flex: 1; min-width: 120px; }
  .search input, input, select { font-size: 16px; }
  .segmented button { min-height: 34px; font-size: 10px; padding-left: 9px; padding-right: 9px; }
  .task-rail { margin-right: -15px; padding-right: 15px; margin-bottom: 5px; }
  .task-card { flex-basis: 161px; }
  .sample-meta { padding: 14px; }
  .sample-meta h2 { font-size: 13px; }
  .sample-meta .mono { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
  .tabs { padding: 0 12px; gap: 16px; }
  .tabs button { font-size: 10px; min-height: 44px; }
  .tabs button small { display: none; }
  .media-top { padding: 5px 9px; font-size: 9px; }
  .media-stage { height: 255px; }
  .media-label { font-size: 8px; left: 5px; bottom: 6px; padding: 2px 4px; }
  .prompt-strip { padding: 15px; gap: 15px; grid-template-columns: 1fr; }
  .prompt-strip > div + div { border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .user-prompt, .prompt-translation { font-size: 13px; }
  .sample-source { font-size: 8px; padding: 10px 14px; }
  .sample-source span:last-child { width: 100%; margin: 0; }
  .verdict-options { grid-template-columns: 1fr 1fr; }
  .verdict { font-size: 12px; min-height: 48px; padding-left: 12px; }
  .annotation-body { padding: 18px; }
  .field-title { font-size: 12px; }
  .evidence-drop { font-size: 12px; min-height: 94px; }
  .evidence-drop small { font-size: 10px; }
  .evidence-tools button { font-size: 11px; min-height: 38px; }
  .confirm { font-size: 11px; }
  .save-panel button { min-height: 45px; font-size: 13px; }
  .save-panel { padding-bottom: 17px; }
  .save-caption button { min-height: 30px; }
  .content-pane { padding: 16px; min-height: 300px; }
  .kv { grid-template-columns: 1fr; }
  .prompt-block { font-size: 12px; }
  .reference-item { grid-template-columns: 65px 1fr; gap: 12px; }
  .reference-item img { width: 65px; height: 85px; }
  .review-filters { overflow-x: auto; flex-wrap: nowrap; }
  .review-filters .segmented { flex-shrink: 0; }
  .review-filters .segmented button { padding-left: 8px; padding-right: 8px; }
  .queue-table tbody { grid-template-columns: 1fr; }
  .queue-table tr { border-right: 0; padding: 18px; }
  .queue-task { gap: 3px; }
  .queue-task .mono { font-size: 10px; }
  .queue-media .mini-media { width: 50%; }
  .mini-media img, .mini-media video, .mini-empty { height: 170px; }
  .queue-actions button { flex: 1; font-size: 12px; min-height: 42px; }
  .queue-evidence { font-size: 12px; }
  .queue-evidence .attachment { height: 55px; width: 55px; }
  .rules-grid, .workflow-grid { grid-template-columns: 1fr; }
  .rule-card { padding: 20px; }
  .label-definitions { grid-template-columns: 1fr 1fr; gap: 18px; }
  .flow-hero { padding: 22px; }
  .flow-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 25px; }
  .flow-step { padding-left: 47px; min-height: 46px; }
  .step-dot { position: absolute; left: 0; top: 0; }
  .flow-step::after { top: 36px; bottom: -18px; left: 15px; right: auto; width: 1px; border-top: 0; border-left: 1px solid #424756; }
  .flow-step h3 { margin-top: 0; }
  .flow-step p { max-width: none; font-size: 11px; }
  .workflow-card { padding: 22px; }
  .heading-aside button { font-size: 10px; white-space: nowrap; padding: 8px; }
  .page-footer { padding: 5px 16px 18px; font-size: 8px; }
  #toast { left: 50%; bottom: 85px; width: max-content; max-width: calc(100vw - 28px); }
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 13px; }
  .dialog-body { padding: 18px; }
  .dialog-header { padding: 14px 18px; }
  .dialog-actions { padding: 13px 18px; }
  .dialog-actions button { min-height: 42px; }
  .tool-hint { display: none; }
  .canvas-wrap { padding: 7px; height: 53dvh; }
}
@media (max-width: 359px) {
  main { padding-left: 12px; padding-right: 12px; }
  .task-rail { margin-right: -12px; padding-right: 12px; }
  .snapshot-chip { display: none; }
  .filters .search { flex-basis: 100%; max-width: 100%; }
  .media-stage { height: 223px; }
  .tabs { gap: 13px; padding-left: 11px; }
  .tabs button { font-size: 9px; }
  .heading-number { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .media-stage { height: 270px; }
  .canvas-wrap { height: 44dvh; }
  .dialog-header { padding-top: 8px; padding-bottom: 8px; }
  .dialog-actions { padding-top: 8px; padding-bottom: 8px; }
  .editor-toolbar { padding-top: 6px; padding-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
}
.state-tabs { display: flex; overflow-x: auto; gap: 5px; margin: 0 0 10px; padding: 4px 0 8px; scrollbar-width: thin; }
.state-tabs button { flex-shrink: 0; background: transparent; border-color: transparent; color: var(--muted); padding: 9px 12px; min-height: 44px; font-size: 12px; }
.state-tabs button.active { background: #252936; color: #ccd1ff; border-color: #3d445e; }
.state-tabs button span { color: var(--subtle); margin-left: 8px; font-size: 11px; }
.state-explanation { color: var(--muted); font-size: 12px; min-height: 35px; margin-bottom: 12px; }
.task-provenance { padding: 13px 19px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 11px 15px; border-bottom: 1px solid var(--line-soft); background: #15171b; }
.provenance-details { border-bottom: 1px solid var(--line-soft); }
.provenance-details > summary { padding: 12px 19px; cursor: pointer; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.provenance-details > summary span { margin-left: 8px; color: var(--subtle); }
.request-overview .user-prompt, .request-overview .prompt-translation { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.technical-score { margin-left: auto; font-size: 16px; color: #a8b5ff; }
.rubric-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 24px; }
.rubric-actions button { min-height: 44px; }
.state-explanation { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.state-explanation button { min-height: 44px; flex: none; }
.workflow-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; font-size: 12px; color: var(--muted); }
.workflow-steps span { border: 1px solid var(--line); padding: 7px; border-radius: 6px; }
.workflow-steps .current { color: #b8baff; border-color: #535987; }
.rubric-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 20px 0; }
.rubric-tools label { flex: 1; min-width: 150px; display: grid; gap: 8px; }
.rubric-tools input, .member-card select { font-size: 16px; min-height: 44px; width: 100%; }
.rubric-tools button, .rule-card-top button, .member-card button { min-height: 44px; }
.rubric-tools > span { color: var(--muted); padding-bottom: 12px; }
.rule-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.publish-impact { margin-top: 20px; padding: 20px; background: #1a1d27; border: 1px solid #393e5c; border-radius: 10px; }
.publish-impact p { margin-top: 10px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
#rubric-readonly label { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); }
#rubric-form select, #rubric-readonly input, #rubric-readonly textarea, #rubric-readonly select { width: 100%; min-width: 0; font-size: 16px; min-height: 44px; }
.member-list { display: grid; gap: 16px; margin: 20px 0; }
.member-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(170px,240px) auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.member-card > div { min-width: 0; }
.member-card code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; margin: 8px 0; }
.member-card label { display: grid; gap: 8px; }
.member-card p { color: var(--muted); }
.member-card summary { color: var(--muted); cursor: pointer; }
.member-card [data-member-log] { margin-top: 10px; }
.operation-entry { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.operation-entry p { margin: 6px 0 0; }
.operation-entry [data-log-task] { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; }
.log-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow-wrap: anywhere; }
.log-context > div { flex: 1 1 220px; min-width: 0; }
.log-context p { color: var(--muted); margin-top: 6px; }
.log-context button { min-height: 44px; }
.environment-banner { padding: 12px 16px; color: #ffe29c; background: #332a15; border-bottom: 1px solid #635126; font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 1024px) and (max-height: 500px) {
  .search input { font-size: 16px; }
}
@media (max-width:820px) {
  .member-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
}
@media (max-width:600px) {
  html { scroll-padding-bottom: 90px; }
  .member-card button, .rubric-actions button { scroll-margin-block: 20px 90px; }
  nav:has(a[href="#members"]) { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
.rubric-actions span { color: var(--muted); font-size: 12px; }
#rubric-form label { display: grid; gap: 7px; margin-top: 16px; color: var(--muted); }
#rubric-form input, #rubric-form textarea { width: 100%; min-width: 0; font-size: 16px; }
.guide-video { width: 100%; max-height: 650px; background: #090a0d; border-radius: 10px; }
.task-provenance > div { min-width: 0; }
.task-provenance span, .review-identity > span { color: var(--subtle); font-size: 10px; display: block; margin-bottom: 3px; }
.task-provenance strong { font-size: 11px; color: #c6cbd6; font-weight: 450; overflow-wrap: anywhere; display: block; }
.task-provenance .trace-line { grid-column: 1 / -1; display: grid; grid-template-columns: 135px 1fr; gap: 8px; }
.trace-line code { font-size: 10px; color: #aeb5c6; overflow-wrap: anywhere; user-select: all; }
.requirement-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.requirement-list > div { padding: 13px; border-radius: 8px; border: 1px solid var(--line); background: #15171d; min-width: 0; }
.requirement-list b { font-size: 11px; color: var(--accent); font-weight: 500; }
.requirement-list p { font-size: 13px; margin: 5px 0; overflow-wrap: anywhere; }
.requirement-list small, .requirement-list code { color: var(--subtle); font-size: 10px; display: block; overflow-wrap: anywhere; }
.extract-note { color: var(--subtle); font-size: 11px; margin-top: 10px; }
.context-section { border-left: 2px solid #6f79c0; padding-left: 15px; }
.context-messages details { margin: 0 0 7px; }
.context-messages summary { overflow-wrap: anywhere; }
.criterion-editor { border: 1px solid #323641; border-radius: 9px; padding: 12px; margin-top: 12px; background: #14161b; }
.criterion-editor h3 { font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.criterion-editor h3 span { font-size: 10px; color: var(--positive); }
.criterion-editor h3 span.unassessed { color: var(--muted); }
.criterion-editor h3 .fail { color: var(--negative); }
.criterion-editor > p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.criterion-editor > label { color: var(--subtle); font-size: 10px; display: block; margin-bottom: 5px; }
.criterion-editor textarea { width: 100%; font-size: 16px; min-height: 72px; }
.criterion-editor .time-range { margin-top: 10px; }
.evidence-target { color: var(--muted); font-size: 11px; display: block; margin-bottom: 9px; }
.evidence-target select { display: block; margin-top: 5px; width: 100%; min-height: 44px; font-size: 16px; }
.review-identity { margin-top: 18px; overflow-wrap: anywhere; }
.review-identity > code { display: block; font-size: 11px; margin-bottom: 12px; }
.review-identity > p { font-size: 11px; margin-bottom: 12px; }
.review-note { color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.save-caption { gap: 8px; flex-wrap: wrap; }
.save-caption button { overflow-wrap: anywhere; max-width: 100%; white-space: normal; text-align: left; }
.avatar { width: auto; min-width: 44px; padding: 4px 7px; border-radius: 8px; }
.button-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; min-height: 48px; border-radius: 9px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 14px; }
.login-card { max-width: 440px; margin: 9vh auto 5vh; padding: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; }
.login-card h2 { font-size: 23px; margin-top: 22px; }
.login-card p { color: var(--muted); margin: 12px 0 24px; line-height: 1.8; }
.login-card a { margin-top: 12px; }
.login-card small { display: block; color: var(--subtle); font-size: 11px; margin-top: 15px; }
.monitor-status { background: transparent; border: 1px solid var(--line); font-size: 10px; min-height: 36px; white-space: nowrap; padding: 6px 9px; }
.monitor-status::before { content: ""; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-right: 6px; }
.monitor-status.ok, .monitor-event .ok, .monitor-summary.ok { color: var(--positive); }
.monitor-status.warning, .monitor-event .warning, .monitor-summary.warning { color: var(--warning); }
.monitor-status.error, .monitor-event .error, .monitor-summary.error { color: var(--negative); }
.monitor-summary p { font-size: 11px; margin-top: 7px; }
.monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.monitor-grid > div { border: 1px solid var(--line); border-radius: 9px; background: #13161a; padding: 12px; min-width: 0; }
.monitor-grid span { font-size: 10px; color: var(--muted); display: block; }
.monitor-grid strong { font-size: 14px; font-weight: 500; margin-top: 5px; display: block; overflow-wrap: anywhere; }
.monitor-background { margin-top: 24px; }
.monitor-background h3 { font-size: 13px; }
.monitor-background p, .monitor-background small { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
.monitor-history { display: flex; gap: 2px; height: 25px; margin: 14px 0 5px; }
.monitor-history > span { flex: 1; min-width: 0; max-width: 16px; background: var(--positive); opacity: .7; border-radius: 2px; }
.monitor-history > .warning { background: var(--warning); }
.monitor-history > .error { background: var(--negative); }
.monitor-event { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; font-size: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.monitor-event b { font-weight: 500; }
.monitor-event small { flex-basis: 100%; color: var(--muted); }
@media (max-width: 1100px) {
  .task-provenance { grid-template-columns: 1fr 1fr; }
  .task-provenance > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar:has(.monitor-status:not([hidden])) .snapshot-chip { display: none; }
  .monitor-status { font-size: 10px; min-height: 44px; padding: 6px 8px; }
  .task-provenance { padding: 13px; gap: 12px; }
  .task-provenance .trace-line { grid-template-columns: 1fr; gap: 2px; }
  .task-provenance strong { font-size: 11px; }
  .requirement-list { grid-template-columns: 1fr; }
  .issue { min-height: 44px; font-size: 12px; }
  .criterion-editor > label { font-size: 12px; }
  .criterion-editor > p { font-size: 12px; }
  .login-card { padding: 24px 20px; margin-top: 30px; }
  .state-explanation { font-size: 11px; }
  .state-tabs button { font-size: 12px; }
  .save-caption button { min-height: 44px; }
}
