/* Site pages on top of the review page's stylesheet (/static/style.css: colours, buttons, inputs, cards). */
header.top .who { display: flex; gap: 8px; align-items: center; }
.wrap { max-width: 920px; margin: 0 auto; }
.stack > * + * { margin-top: 14px; }
.lead { color: var(--muted); margin: 0; }
h1 { font-size: 22px; margin: 4px 0 4px; }
input[type=email], input[type=password] { min-height: 44px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); width: 100%; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* login */
.auth { max-width: 400px; margin: 8vh auto 0; }
.auth h1 { text-align: center; }
.auth .lead { text-align: center; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.tabs button { flex: 1; min-height: 38px; }
.tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth form button[type=submit] { width: 100%; margin-top: 16px; }

/* upload */
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 28px 16px; text-align: center; cursor: pointer;
  background: var(--card); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop strong { display: block; font-size: 16px; margin-bottom: 4px; }
.drop .file { margin-top: 8px; font-weight: 600; word-break: break-all; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.bar.done > i { background: var(--ok); }
.meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 6px; }

.uploads { display: grid; gap: 10px; }
.up { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.up .name { font-weight: 600; word-break: break-all; }
.up .sub { font-size: 13px; color: var(--muted); }
.up .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.up .btns a.btn, .up .btns button { min-height: 36px; }
.up .wide { grid-column: 1 / -1; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; margin-left: 6px; }
.b-uploading, .b-queued { color: var(--muted); } .b-processing { color: var(--accent); }
.b-ready { color: var(--ok); } .b-failed { color: var(--bad); }
pre.log { max-height: 360px; overflow: auto; font-size: 12px; background: var(--bg); padding: 10px; border-radius: 10px;
  white-space: pre-wrap; word-break: break-all; margin: 8px 0 0; }
a.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* review picker */
.scenes { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.scene { text-align: left; display: block; width: 100%; padding: 10px 12px; }
.scene.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.scene .t { font-weight: 600; word-break: break-all; }
.scene .s { font-size: 12px; color: var(--muted); }
.areas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.area { display: flex; flex-direction: column; gap: 4px; }
.area .n { font-size: 13px; color: var(--muted); flex: 1; }
.area a.btn { justify-content: center; min-height: 40px; margin-top: 6px; }
.cats { display: grid; gap: 2px 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 8px; }
.cats label { display: flex; gap: 8px; align-items: center; color: var(--fg); font-size: 14px; margin: 0; padding: 6px 4px;
  border-radius: 8px; cursor: pointer; }
.cats label:hover { background: var(--bg); }
.cats input { width: 18px; height: 18px; flex: 0 0 auto; }
.cats .c { flex: 1; } .cats .k { font-size: 12px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolbar button { min-height: 36px; }
.empty { text-align: center; padding: 28px 16px; }
@media (max-width: 600px) { .up { grid-template-columns: 1fr; } .up .btns { justify-content: flex-start; } }
a.btn.disabled { opacity: .5; pointer-events: none; }
.code { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* annotations page: one card per scan */
.scenes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.shot { display: flex; flex-direction: column; gap: 6px; padding: 10px; min-width: 0; }
.shot.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.shot a.open { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.shot a.open:hover .t { color: var(--accent); }
.shot .pic { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.shot .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .pic .noimg { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; color: var(--muted); }
.shot .pic .badge { position: absolute; top: 8px; left: 8px; margin: 0; background: var(--card); }
.shot .t { font-weight: 600; word-break: break-all; }
.shot .s { font-size: 12px; color: var(--muted); }
.shot .bar { height: 6px; }
.shot .cardbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.shot .cardbtns > * { min-height: 34px; }
.shot.pending { opacity: .85; }
.shot .err { margin-top: 0; min-height: 0; }
#detail:not(:empty) { margin-top: 24px; }
