:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #1b2535; background: #f6f6f3; font-size: 16px;
  --accent: #254e68; --ink: #142936; --line: #d4dcd9; --muted: #515f62;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #4084a9; outline-offset: 3px; }
.wrap { max-width: 1184px; margin: auto; padding-inline: clamp(16px,4.5vw,64px); }
main { padding-block: clamp(24px,4vw,52px); }
.mast { background: var(--ink); color: #fff; }
.mast-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { color: #fff; font: 600 24px Georgia, serif; text-decoration: none; white-space: nowrap; }
.mast-label { color: #c9d4d6; border-left: 1px solid #46616a; padding-left: 24px; font-size: 14px; }
.logout { margin-left: auto; }
button, input, textarea { font: inherit; }
button { border-radius: 6px; border: 1px solid transparent; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.quiet { background: transparent; color: #fff; border-color: #789096; padding: 5px 12px; }
.quiet:hover { background: #28414e; }
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: #193b51; }
.reject { color: #912f32; background: #fff; border-color: #c79c9a; }
.reject:hover { background: #fbefed; }
h1, h2 { color: var(--ink); line-height: 1.16; margin: 0; }
h1 { font-weight: 600; font-size: clamp(30px,4vw,46px); letter-spacing: -.045em; }
h2 { font-size: 21px; letter-spacing: -.02em; }
p, ul { margin: 12px 0 0; }
.muted, .meta, .hint, .date { color: var(--muted); }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 10px 0 24px; }
.back-link, .entry-link, figcaption a { font-weight: 600; }
.participant-link { white-space: nowrap; }
.staff-menu { color:white; }
.op { margin:18px 0; }
.sheet details { margin-top:16px; }
.sheet summary { color:var(--accent); cursor:pointer; font-weight:600; }
.fields { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-top:14px; }
.fields label { display:grid; gap:5px; max-width:100%; }
.fields .confirm,.confirm { display:block; width:100%; }
.confirm input { width:auto; margin-right:4px; }
select { font:inherit; padding:9px 11px; border:1px solid #89999b; border-radius:5px; background:white; max-width:100%; }
button:disabled { opacity:.55; cursor:default; }
.staff-sections,.metric-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin:20px 0; }
.staff-sections a { padding:16px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.list-heading { margin-bottom: 14px; }
.list-heading span { color: var(--muted); font-weight: 500; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 15px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 8px 4px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a[aria-current] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 650; }
.tabs span { font-variant-numeric: tabular-nums; font-size: .83em; background: #e4eae8; padding: 2px 6px; border-radius: 5px; }
.table-frame, .empty, .sheet, .login-sheet { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.table-frame { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; background: #f5f7f5; }
tr:last-child td { border-bottom: 0; }
.date { white-space: nowrap; }
.status { display: inline-block; color: #314e5a; background: #e5eef2; border-radius: 6px; padding: 4px 8px; font-size: .82rem; font-weight: 600; }
.s-approved { color: #1c5946; background: #def0e7; }
.s-rejected { color: #873d39; background: #f7e5e1; }
.s-withdrawn { color: #545b5d; background: #eaeceb; }
.s-pending_review { color: #725421; background: #f8edce; }
.empty, .sheet { padding: clamp(17px,2.5vw,28px); }
.login-sheet { max-width: 440px; margin: clamp(8px,6vw,72px) auto; padding: clamp(20px,4vw,36px); }
.login-sheet .stack { margin-top: 26px; }
.stack { display: grid; gap: 9px; }
.stack label { font-size: .92rem; font-weight: 600; }
.discuss-confirm { display:flex; align-items:center; gap:8px; }
.discuss-confirm input[type=checkbox] { width:18px; height:18px; margin:0; }
input, textarea { width: 100%; background: #fff; border: 1px solid #89999b; border-radius: 5px; padding: 9px 11px; }
textarea { resize: vertical; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 26px; }
dt { color: var(--muted); font-size: .82rem; }
dd { margin: 0; font-weight: 550; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,1fr); align-items: start; gap: 16px; }
.side { display: grid; gap: 16px; }
.sheet h2 { margin-bottom: 15px; }
.submitted-text, .side p, .side li { white-space: pre-wrap; overflow-wrap: anywhere; }
figure { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 10px; }
figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; margin-bottom: 8px; }
figcaption a { font-size: .85rem; }
figure img, video { display: block; width: 100%; max-height: 540px; object-fit: contain; border-radius: 5px; background: #edf1ef; }
audio { width: 100%; }
.finding { font-weight: 650; }
.hint, .meta { margin: 0; font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.alert { padding: 10px 14px; background: #f8e9e6; color: #85332b; border-left: 3px solid #aa4b40; margin-bottom: 16px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } .mast-inner { gap: 12px; } .mast-label { padding-left: 12px; } }
@media (max-width: 500px) { .mast-label { display: none; } .mast-inner { min-height: 56px; } .title-row { flex-wrap: wrap; } .facts { gap: 12px 24px; } .tabs { gap: 3px 9px; } }
