:root {
  --bg: #fafaf8;
  --panel: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #e91e63;
  --accent-hover: #c2185b;
  --ok: #16a34a;
  --warn: #d97706;
  --code-bg: #f4f4f3;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono, code, pre { font-family: var(--mono); }
code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
pre { background: var(--code-bg); padding: 12px; border-radius: var(--radius); overflow-x: auto; }
.muted { color: var(--muted); }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.brand { font-weight: 600; color: var(--ink); font-size: 18px; }
.brand span { font-weight: 500; }

.pill { font-size: 11px; padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pill-local { background: #fef3c7; color: #92400e; }
.pill-remote { background: #dcfce7; color: #166534; }

.site-main { max-width: 1000px; margin: 0 auto; padding: 28px 24px 80px; }
.site-footer { text-align: center; padding: 20px; color: var(--muted); font-size: 12px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 24px; box-shadow: var(--shadow); }
.panel-narrow { max-width: 580px; margin-left: auto; margin-right: auto; }
.panel-header h1 { margin: 0 0 6px 0; font-size: 22px; }

.group { margin-top: 16px; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 10px; }
.count { color: var(--muted); font-weight: 400; }

.session-list { list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.session-row { display: flex; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--line); gap: 12px; }
.session-row:last-child { border-bottom: none; }
.session-main { flex: 1; min-width: 0; }
.session-title { font-weight: 500; color: var(--ink); font-size: 15px; }
.session-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.session-actions { display: flex; gap: 6px; }

.btn { display: inline-block; padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  font-size: 14px; cursor: pointer; text-decoration: none; transition: all 0.1s; }
.btn:hover { background: var(--code-bg); text-decoration: none; }
.btn-primary { background: var(--accent); color: white; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.code-block { display: inline-block; text-align: left; }

.bundle-list { list-style: none; padding: 0; margin: 0; }
.bundle-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- reviewer scoring ---------- */

body.reviewer { background: #f7f7f5; }

.scoring-header { display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.scoring-header h1 { margin: 0 0 4px 0; font-size: 20px; }
.scoring-nav { display: flex; gap: 8px; }

.item { background: var(--panel); padding: 24px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.item[hidden] { display: none !important; }
.item-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.item-label { font-size: 18px; font-weight: 600; }
.item-chip { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; background: var(--code-bg); border-radius: 999px; color: var(--muted); }

.item-text { background: var(--code-bg); padding: 14px; border-radius: var(--radius); white-space: pre-wrap; }
.item-md .prose, .prose { line-height: 1.65; }
.prose h1, .prose h2, .prose h3 { margin-top: 1em; margin-bottom: 0.4em; }
.prose p { margin: 0.6em 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose code { background: var(--code-bg); }

.item-audio, .item-video { text-align: center; padding: 20px 0; }
.item-audio audio, .item-video video { width: 100%; max-width: 560px; }
.item-image { text-align: center; }
.item-image img { max-width: 100%; height: auto; border-radius: var(--radius); }

.item-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.compare-pane { background: var(--code-bg); padding: 14px; border-radius: var(--radius); }
.compare-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 8px; }

.caption { margin-top: 14px; padding: 10px 14px; background: var(--code-bg);
  border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; font-size: 14px; }

.dimensions { margin-top: 20px; display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 20px; }
.dimension { display: flex; flex-direction: column; gap: 8px; }
.dim-label { font-weight: 500; font-size: 14px; }
.dim-label .muted { font-weight: 400; }

.scale { display: flex; gap: 6px; }
.scale-btn { width: 44px; height: 44px; font-size: 16px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 6px; cursor: pointer; transition: all 0.1s;
  font-family: inherit; }
.scale-btn:hover { background: var(--code-bg); }
.scale-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

.field { width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: 13px; background: var(--panel); user-select: none; }
.chip-check input { display: none; }
.chip-check.active { background: var(--accent); color: white; border-color: var(--accent); }

.scoring-footer { margin-top: 20px; display: flex; align-items: center;
  justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }
.link { color: var(--muted); }

.stacked-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.stacked-form input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.stacked-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 8px 12px;
  border-bottom: 1px solid var(--line); }
.data-table th { font-weight: 500; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; }

.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; padding: 7px 12px; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; }

.session-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
