:root {
  --background: #e8eef2;
  --foreground: #152028;
  --surface: #f7fafc;
  --surface-2: #dde6ec;
  --line: #c5d0d8;
  --line-strong: #8fa0ad;
  --muted: #5a6b78;
  --accent: #0b6e6a;
  --accent-soft: #d3ecea;
  --thursday: #eef5f4;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--foreground);
  background:
    linear-gradient(180deg, #dfe8ee 0%, transparent 28%),
    radial-gradient(ellipse 70% 45% at 100% -10%, #cfe3e1 0%, transparent 55%),
    var(--background);
  min-height: 100vh;
}
a { color: inherit; }
.wrap { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar-inner {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  align-items: center; justify-content: space-between;
  padding-top: .85rem; padding-bottom: .85rem;
}
.topbar nav, .topbar-right { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.topbar a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.topbar a:hover { color: var(--foreground); }
.brand { font-weight: 700; color: var(--foreground) !important; }
h1 { margin: .25rem 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
h2 { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.stack { display: grid; gap: 1.5rem; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .5rem; padding: .55rem 1rem; font-size: .9rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--foreground); }
.btn-danger { background: #fff5f5; border-color: #e8b4b4; color: #8b2e2e; }
.field {
  display: block; width: 100%; border-radius: .5rem; border: 1px solid var(--line);
  background: var(--surface); padding: .65rem .75rem; font: inherit;
}
label.block { display: grid; gap: .4rem; margin-bottom: 1rem; }
.form { max-width: 36rem; }
.flash { padding: .75rem 1rem; border-radius: .5rem; margin-bottom: 1rem; }
.flash-ok { background: #e7f7ef; border: 1px solid #9fd4b5; }
.flash-error { background: #fff5f5; border: 1px solid #e8b4b4; color: #8b2e2e; }
.calendar { display: grid; gap: 1rem; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: .75rem; overflow: hidden;
}
.cal-head { background: var(--surface-2); padding: .5rem; text-align: center; font-size: .75rem; color: var(--muted); }
.cal-cell { min-height: 6.5rem; background: var(--surface); padding: .4rem; }
.cal-cell.empty { opacity: .4; }
.cal-cell.thursday { background: var(--thursday); }
.cal-day { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.cal-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.cal-items a, .cal-items li > span { display: flex; gap: .3rem; align-items: flex-start; text-decoration: none; font-size: .72rem; line-height: 1.25; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
.pitch {
  display: inline-flex; width: .9rem; height: .9rem; border-radius: .2rem;
  border: 1px solid var(--line-strong); flex: 0 0 auto; margin-top: .1rem;
  align-items: center; justify-content: center; font-size: .65rem; font-weight: 700;
}
.pitch.yes { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.list-item { border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-main { display: flex; gap: .75rem; padding: .85rem 1rem; text-decoration: none; align-items: flex-start; }
.list-main:hover { background: var(--surface-2); }
.list-title { font-weight: 600; }
.list-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.chip {
  display: inline-flex; max-width: 100%; align-items: center;
  border: 1px solid; border-radius: .4rem; padding: .15rem .5rem;
  font-size: .75rem; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.check {
  display: flex; gap: .6rem; align-items: center;
  margin-bottom: 1rem; font-weight: 500;
}
.panel { border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); padding: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.filters a, .filters button {
  border: 1px solid var(--line); background: var(--surface); border-radius: .5rem;
  padding: .4rem .75rem; text-decoration: none; font-size: .9rem; cursor: pointer;
}
.filters .active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
pre.export {
  min-height: 14rem; overflow: auto; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace;
  font-size: .85rem; line-height: 1.5; margin: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.checkrow {
  display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line);
  border-radius: .75rem; padding: .85rem 1rem; background: var(--surface); margin-bottom: 1rem;
}
@media (max-width: 700px) {
  .cal-cell { min-height: 4.5rem; }
  .cal-items { font-size: .65rem; }
}
