/* punchup BUILD 2026-09-01d. Light theme on warm paper white, 17px base,
   15px floors on secondary text. Tuned for 35-55 year old eyes. */
:root {
  --bg: #faf7f0;
  --panel: #ffffff;
  --panel2: #f3eee1;
  --ink: #26221a;
  --dim: #6d6455;
  --gold: #8a6600;       /* text accents: readable on white */
  --accent: #e8b944;     /* button fill: dark text on top */
  --red: #b23a24;
  --green: #3f7a28;
  --line: #ddd4c0;
  --mono: "Courier New", Courier, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
#topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; border-bottom: 3px solid var(--accent); background: var(--panel);
  flex-wrap: wrap;
}
.brand { color: var(--gold); text-decoration: none; font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.brand-sub { display: block; font-size: 13px; font-weight: 400; color: var(--dim); letter-spacing: 0; }
#nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
#nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
#nav a:hover { color: var(--gold); }
#nav .who { color: var(--dim); font-size: 15px; }
#app { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px; }
#foot { padding: 16px 24px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); text-align: center; }
#foot a { color: var(--dim); }
h1 { font-size: 28px; margin: 6px 0 14px; }
h2 { font-size: 21px; margin: 20px 0 10px; }
a { color: var(--gold); }
.loading, .empty { color: var(--dim); padding: 40px 0; text-align: center; font-size: 17px; }
.dim { color: var(--dim); font-size: 15px; }
.pill { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); color: var(--dim); background: var(--panel); }
.pill.status-active { color: var(--green); border-color: var(--green); }
.pill.status-pitch { color: var(--gold); border-color: var(--gold); }
.pill.status-filled { color: var(--green); border-color: var(--green); }
.pill.type { color: var(--ink); background: var(--panel2); }

button, .btn {
  background: var(--accent); color: #241d0d; border: 0; border-radius: 6px;
  padding: 9px 16px; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.05); }
button.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); font-weight: 400; }
button.ghost:hover { border-color: var(--gold); color: var(--gold); filter: none; }
button.tiny { padding: 4px 11px; font-size: 14px; }
button.danger { background: var(--red); color: #fff; }
button:disabled { opacity: .5; cursor: default; }
input, textarea, select {
  width: 100%; background: var(--panel); color: var(--ink); border: 1px solid #c5bba4;
  border-radius: 6px; padding: 10px 12px; font-size: 16px; font-family: inherit;
}
textarea.script { font-family: var(--mono); min-height: 220px; white-space: pre; font-size: 15px; }
label { display: block; margin: 12px 0 4px; font-size: 15px; color: var(--dim); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(60, 50, 20, .06);
}
.card h3 { margin: 0 0 4px; font-size: 19px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0; flex-wrap: wrap; }
.tabs a {
  padding: 10px 18px; color: var(--dim); text-decoration: none; border-radius: 8px 8px 0 0;
  border: 1px solid transparent; border-bottom: 0; font-size: 16px;
}
.tabs a.on { color: var(--gold); background: var(--panel); border-color: var(--line); font-weight: 700; }

.actlane { margin-bottom: 24px; }
.actlane h2 { color: var(--gold); border-bottom: 2px solid var(--line); padding-bottom: 5px; }
.beatgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.beat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer; box-shadow: 0 1px 3px rgba(60, 50, 20, .06); }
.beat:hover { border-color: var(--gold); }
.beat .slug { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink); }
.beat .sum { font-size: 15px; color: var(--ink); opacity: .85; margin-top: 6px; min-height: 22px; }
.beat .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; color: var(--dim); }
.beat.filled { border-left: 4px solid var(--green); }
.beat.open { border-left: 4px solid var(--red); }

pre.script {
  font-family: var(--mono); font-size: 15px; line-height: 1.55; white-space: pre-wrap;
  background: #fffdf7; border: 1px solid var(--line); border-radius: 8px; padding: 26px 30px;
  max-width: 800px; overflow-x: auto; color: #1d1a13;
}
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .diff { grid-template-columns: 1fr; } }
.diff pre { margin: 0; }
.diff .lbl { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

.vote { min-width: 56px; text-align: center; }
.vote button { background: var(--panel); border: 1px solid #c5bba4; color: var(--dim); border-radius: 6px; padding: 5px 12px; font-size: 15px; }
.vote button.my { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.alt { border: 1px dashed var(--gold); border-radius: 8px; padding: 12px; margin: 10px 0; cursor: pointer; font-family: var(--mono); font-size: 15px; white-space: pre-wrap; background: #fffdf7; }
.alt:hover { background: var(--panel2); }
.msg { padding: 12px 16px; border-radius: 8px; margin: 12px 0; background: var(--panel2); border: 1px solid var(--gold); font-size: 16px; }
.msg.err { border-color: var(--red); color: var(--red); }
.comments { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.comment { font-size: 15px; margin: 8px 0; }
.comment .who { color: var(--gold); font-weight: 700; }
table.plain { border-collapse: collapse; width: 100%; }
table.plain td, table.plain th { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; font-size: 15px; }
table.plain th { color: var(--dim); font-weight: 600; }
.copybox { font-family: var(--mono); font-size: 14px; word-break: break-all; background: var(--panel2); padding: 10px; border-radius: 6px; }

@media print {
  body { background: #fff; color: #000; }
  #topbar, #foot, .tabs, button { display: none !important; }
  pre.script { border: 0; background: #fff; color: #000; max-width: 100%; }
}
