:root {
  --bg: #f6f4ef; --card: #fffdf9; --ink: #1d1b16; --muted: #6f6a5f;
  --line: #e2ddd0; --accent: #0f5c4a; --accent-ink: #fff; --warn: #a23b2a;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15140f; --card: #1e1c16; --ink: #efeadd; --muted: #a09a8a;
    --line: #34302654; --accent: #58c2a4; --accent-ink: #0c1f1a; --warn: #f08a76; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; }
main.wide { max-width: 1100px; }
header.top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 18px; margin: 32px 0 12px; }
p.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 56ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 4px; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
button { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
button.ghost { background: transparent; color: var(--accent); }
button.danger { background: transparent; color: var(--warn); border-color: var(--warn); }
button:disabled { opacity: .5; cursor: default; }
.actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { color: var(--warn); font-size: 14px; min-height: 20px; margin-top: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.gig { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.gig h3 { margin: 0 0 4px; font-size: 17px; }
.gig a { color: var(--accent); }
.gig .side { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.linkbox { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all;
  background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 12px; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.scroll { overflow-x: auto; }
[hidden] { display: none !important; }
