:root { --bg:#f4f6f8; --panel:#fff; --line:#d9dee5; --ink:#17212b; --muted:#667482; --blue:#2563eb; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--bg); font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
header { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:16px 22px; background:#101923; color:#fff; }
h1,h2,h3 { margin:0 0 5px; } h1 { font-size:21px; } h2 { font-size:18px; } h3 { font-size:15px; }
.sub { color:var(--muted); font-size:12px; } header .sub { color:#b6c3cf; }
.toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; } label { font-size:12px; color:#dbe5ee; }
select,button,input { border:1px solid var(--line); border-radius:6px; padding:7px 9px; background:#fff; color:var(--ink); }
header select,header button { border-color:#526170; background:#202d3a; color:#fff; } button { cursor:pointer; } button:hover { filter:brightness(.97); }
main { display:grid; grid-template-columns:290px 1fr; min-height:calc(100vh - 76px); }
.sidebar { border-right:1px solid var(--line); background:#fff; overflow:auto; } .sidebar-head { position:sticky; top:0; display:flex; justify-content:space-between; padding:12px; border-bottom:1px solid var(--line); background:#fff; font-weight:600; }
#entry-list { padding:6px; } .entry-item { display:flex; gap:8px; align-items:center; padding:9px 8px; border-radius:6px; cursor:pointer; } .entry-item:hover,.entry-item.active { background:#eaf1ff; } .entry-item .id { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .entry-item .small { color:var(--muted); font-size:11px; }
.dot { width:9px; height:9px; border-radius:50%; background:#aab4bf; } .dot.accept { background:#16a34a; } .dot.needs_review { background:#f59e0b; } .dot.reject { background:#dc2626; }
.content { padding:18px; overflow:auto; } .hidden { display:none !important; } .entry-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:12px; }
.badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; } .badge { padding:4px 7px; border-radius:999px; font-size:11px; background:#dcfce7; color:#166534; } .badge.warn { background:#fef3c7; color:#92400e; }
.compare { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:10px; } .label { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.04em; margin-bottom:3px; } .caption,.alt-caption { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:12px; min-height:48px; font-size:16px; } .alt-caption { color:#596878; font-size:14px; }
.mention { padding:2px 3px; border-radius:3px; border-bottom:2px solid var(--c); background:color-mix(in srgb, var(--c) 15%, white); } .mention sup { color:var(--c); font-weight:700; font-size:10px; margin-left:2px; }
.review-row { display:flex; gap:7px; align-items:center; margin:9px 0 14px; } .review-row .accept { border-color:#86efac; background:#dcfce7; } .review-row .review { border-color:#fcd34d; background:#fef3c7; } .review-row .reject { border-color:#fca5a5; background:#fee2e2; } #note { flex:1; min-width:180px; } #saved { color:#166534; font-size:12px; }
.grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr); gap:12px; margin-bottom:12px; } .panel { background:var(--panel); border:1px solid var(--line); border-radius:9px; padding:12px; margin-bottom:12px; }
.big-frame { min-height:250px; display:flex; justify-content:center; align-items:center; background:#111; border-radius:6px; overflow:hidden; } .big-frame img { max-width:100%; max-height:520px; display:block; } .frames { display:flex; gap:6px; flex-wrap:wrap; padding-top:8px; } .frames img { width:108px; height:64px; object-fit:cover; border-radius:4px; border:2px solid transparent; cursor:pointer; } .frames img.active { border-color:var(--blue); }
.objects { max-height:530px; overflow:auto; } .obj { display:grid; grid-template-columns:85px 1fr; gap:8px; padding:7px 0; border-bottom:1px solid #edf0f3; } .obj-id { font-family:ui-monospace,monospace; color:#334155; } .obj-cat { font-weight:600; } .range { color:var(--muted); font-size:12px; }
.groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:8px; } .group { border-left:5px solid var(--c); background:#f8fafc; border-radius:5px; padding:8px; } .group-title { font-family:ui-monospace,monospace; font-size:12px; } .group-mention { margin-top:4px; } .group-mention code { background:#e2e8f0; border-radius:3px; padding:2px 4px; } .group-objects { color:var(--muted); font-size:12px; margin-top:5px; }
@media (max-width:900px) { header { flex-direction:column; align-items:flex-start; } main { grid-template-columns:1fr; } .sidebar { max-height:220px; border-right:0; border-bottom:1px solid var(--line); } .compare,.grid { grid-template-columns:1fr; } }
