:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #16161a;
  background: #f2f2f6;
  font-synthesis: none;
  --accent: #245bed;
  --line: #dedee6;
  --muted: #555562;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2rem); letter-spacing: -0.04em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1rem; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .65; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-content {
  max-width: 76rem;
  margin: auto;
  padding: .75rem clamp(1rem, 4vw, 2rem);
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-size: 1.2rem; font-weight: 760; letter-spacing: -.025em; }
.brand span { margin-inline-start: .65rem; color: var(--muted); font-size: .9rem; font-weight: 500; }
main { max-width: 76rem; margin: auto; padding: 2rem clamp(1rem, 4vw, 2rem); }
.surface { background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.login-card { width: min(100%, 28rem); margin: clamp(0rem, 8vh, 5rem) auto 0; padding: clamp(1.3rem, 4vw, 2rem); }
#login-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
label { display: grid; gap: .4rem; font-size: .875rem; font-weight: 650; }
input, select { min-width: 0; border: 1px solid #aaaaba; border-radius: .55rem; padding: .65rem .75rem; background: #fff; color: inherit; }
button { border: 1px solid transparent; border-radius: .55rem; padding: .65rem 1rem; font-weight: 650; background: var(--accent); color: #fff; }
button.secondary { background: #fff; color: #262633; border-color: var(--line); }
button.secondary:hover { background: #f5f5fa; }
.error { color: #a32334; font-size: .875rem; }
.error:empty { display: none; }
.muted { color: var(--muted); }
.heading { margin-bottom: 1.25rem; display: grid; gap: .5rem; }
.workspace-grid { display: grid; grid-template-columns: minmax(17rem, .85fr) minmax(0, 1.15fr); align-items: start; gap: 1rem; }
.queue, .detail { padding: 1rem; min-width: 0; }
.detail { padding: 1.25rem; }
#filters { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
#reports { margin: .75rem 0 0; padding: 0; list-style: none; }
#reports li + li { border-top: 1px solid var(--line); }
.report-row { width: 100%; text-align: start; background: #fff; color: inherit; padding: .75rem .65rem; display: grid; gap: .35rem; }
.report-row:hover, .report-row[aria-current="true"] { background: #edf2ff; }
.report-row small { color: var(--muted); font-weight: 500; }
.reason-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
#queue-status { margin-top: .75rem; }
#queue-status:empty { display: none; }
#more { margin-top: .75rem; }
.report-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.badge { border-radius: 10rem; background: #edf2ff; color: #254aab; font-size: .78rem; padding: .25rem .6rem; }
dl { display: grid; gap: .8rem; }
dt { color: var(--muted); font-size: .85rem; }
dd { margin: .2rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.target { padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
#target-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#target-photo { display: block; max-width: 100%; max-height: 28rem; border-radius: .65rem; }

@media (max-width: 700px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
}
