/* Spotlight admin tool — light, plain, readable on a phone: hairlines and text, no heavy boxes. */
:root {
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --line: #e4e4e4;
    --accent: #1a1a1a;
    --error: #b3261e;
    --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main { padding: 16px; max-width: 960px; margin: 0 auto; }
main.narrow { max-width: 400px; padding-top: 40px; }

.brand {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

h1 { font-size: 22px; font-weight: 600; margin: 0 0 16px; }

a { color: var(--accent); }

.stack { display: flex; flex-direction: column; gap: 16px; }

label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }

input[type="email"], input[type="password"], input[type="text"], select, textarea {
    font: inherit;
    color: var(--text);
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    outline: none;
}

input:focus, select:focus, textarea:focus { border-bottom-color: var(--text); }

button {
    font: inherit;
    align-self: flex-start;
    padding: 8px 18px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--text);
    border-radius: 999px;
    cursor: pointer;
}

button:hover { background: #f4f4f4; }

.hint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }

.message { margin: 0 0 16px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.message.error { color: var(--error); }
.message.notice { color: var(--muted); }

/* setup */
.qr { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.secret, .codes code { font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.secret { word-break: break-all; }
.codes { margin: 16px 0 24px; padding-left: 24px; line-height: 2; }

/* ---------- signed-in pages ---------- */
main.wide { max-width: 1120px; }
.muted { color: var(--muted); }
.warn, .urgent { color: var(--error); }
.urgent { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }

.top { margin-bottom: 20px; }
.topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand-link { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.logout { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
button.link { padding: 0; border: 0; border-radius: 0; color: var(--text); text-decoration: underline; font-size: 13px; }
button.link:hover { background: none; }

.tabs { display: flex; gap: 14px; margin-top: 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 8px 0 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-bottom-color: var(--text); }
.top .message { margin: 12px 0 0; }

.empty { padding: 32px 0; color: var(--muted); }
.intro { margin: 0 0 8px; font-size: 14px; }

/* lists: one hairline per row */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.row { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; color: inherit; text-decoration: none; }
a.row:hover .row-title { text-decoration: underline; }
.row.with-action { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
.row.with-action > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row.with-action form { flex: none; }
.row-title { font-weight: 600; color: inherit; text-decoration: none; }
.row-title .muted { font-weight: 400; }
.row-meta { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.audit .row-title { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }

.pager { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 14px; }

/* ---------- a report ---------- */
.back { margin: 0 0 16px; font-size: 14px; }
.back a { color: var(--muted); text-decoration: none; }
.detail { display: flex; flex-direction: column; gap: 32px; }
.detail section { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.detail .col > section:last-child { border-bottom: 0; margin-bottom: 0; }
.target h1 { margin-bottom: 4px; }
.target > p.muted, .target p.muted { margin: 0 0 12px; font-size: 14px; }
.media video, .media img { display: block; max-width: 100%; max-height: 70vh; border-radius: 8px; background: #f4f4f4; }
.caption, .body-text { margin: 12px 0 0; white-space: pre-line; }
.quote { margin: 8px 0 12px; padding: 0 0 0 14px; border-left: 2px solid var(--line); font-size: 17px; white-space: pre-line; }
.quote-inline { display: block; color: var(--text); margin-top: 2px; }
.under { display: flex; gap: 12px; align-items: center; }
.under img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.under p { margin: 0; }
.profile { display: flex; gap: 16px; align-items: flex-start; }
.profile p { margin: 0; }
.profile .name { font-weight: 600; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; background: #f4f4f4; }
.flags { margin: 16px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }

.lines { list-style: none; margin: 8px 0 0; padding: 0; }
.lines li { padding: 6px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
/* a decision's note: the admin's own words, kept as typed */
.lines .note, .row-note { display: block; font-size: 14px; color: var(--muted); font-style: italic; white-space: pre-line; overflow-wrap: anywhere; }
details { margin-top: 12px; font-size: 14px; }
summary { cursor: pointer; color: var(--muted); }

/* the decision form */
.decide form { gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.group { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 10px; font-size: 16px; color: var(--text); }
label.check.sub { margin-left: 28px; font-size: 14px; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--text); flex: none; }
select { padding-right: 4px; }
textarea { resize: vertical; min-height: 72px; }
.decide .hint { margin: -4px 0 0 28px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
button.danger { color: var(--error); border-color: var(--error); }
button.danger:hover { background: #fdf3f2; }
button:disabled { opacity: 0.5; cursor: default; }

@media (min-width: 900px) {
    main { padding: 24px 32px; }
    .detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
    .decide { position: sticky; top: 24px; }
    .media video, .media img { max-height: 520px; }
}
@media (min-width: 600px) {
    .tabs { gap: 22px; }
    .tabs a { font-size: 15px; }
}
