:root {
  --ink: #1a1714;
  --muted: #6b6258;
  --paper: #f3eee6;
  --card: #fffcf8;
  --line: #e3d9cc;
  --accent: #2f5d50;
  --shadow: 0 10px 30px rgba(40, 28, 16, 0.06);
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, color-mix(in srgb, var(--accent) 18%, white), transparent 60%),
    var(--paper);
}
.station-records { --accent: #2f5d50; }
.station-transcripts { --accent: #8a3e2a; }
.station-receipts { --accent: #8a6a2f; }
.station-ready { --accent: #1e4d6b; }
.station-home { --accent: #3d342b; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(255, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mark {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.mark span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
}
nav a[aria-current="page"], nav a:hover {
  color: white;
  background: var(--accent);
}
main { max-width: 1100px; margin: 0 auto; padding: 28px 22px 64px; }
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 { margin: 6px 0 8px; font-size: 32px; letter-spacing: -0.03em; }
.lede, .rule { color: var(--muted); max-width: 68ch; line-height: 1.45; }
.meta { font-size: 13px; color: var(--muted); }
.panel, .chit, .tag, form, table, .split {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 16px;
  margin: 18px 0;
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input[type="file"] { font: inherit; }
button {
  font: inherit;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meds { max-width: 360px; line-height: 1.35; }
.split { display: grid; grid-template-columns: 280px 1fr; min-height: 420px; overflow: hidden; }
#list { list-style: none; margin: 0; padding: 8px; border-right: 1px solid var(--line); }
#list button { width: 100%; text-align: left; background: transparent; color: var(--ink); border-radius: 10px; }
#list button:hover { background: color-mix(in srgb, var(--accent) 12%, white); }
#body {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}
.book, .board { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.chit, .tag { padding: 16px; }
.chit .who, .tag h2 { font-size: 18px; margin: 8px 0; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
a.folder {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 150px;
}
a.folder strong { display: block; font-size: 18px; }
a.folder span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.folder.records { --accent: #2f5d50; }
.folder.transcripts { --accent: #8a3e2a; }
.folder.receipts { --accent: #8a6a2f; }
.folder.ready { --accent: #1e4d6b; }
.msg { white-space: pre-wrap; font-size: 13px; }
footer { max-width: 1100px; margin: 0 auto; padding: 0 22px 28px; color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  form, .split { grid-template-columns: 1fr; }
  #list { border-right: 0; border-bottom: 1px solid var(--line); }
  .bar { align-items: flex-start; flex-direction: column; }
}
