:root {
  --bg: #f6f3ea;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5a6473;
  --line: #d9d2c1;
  --accent: #6b3b5e;
  --accent-2: #c97b3f;
  --rehearsal: #2f6b6b;
  --concert: #6b3b5e;
  --practice: #c97b3f;
  --shadow: 0 1px 2px rgba(28,36,48,0.06), 0 8px 24px rgba(28,36,48,0.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

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

.muted { color: var(--muted); }
.mt { margin-top: 1.25rem; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(160deg, #fbf6ec, #f1e9f1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.95rem;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.card-row.small {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-rehearsal { background: var(--rehearsal); }
.dot-concert { background: var(--concert); }
.dot-practice { background: var(--practice); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.primary:hover { background: #5a3150; border-color: #5a3150; }

.btn.ghost { background: transparent; }

.btn.small { padding: 0.4rem 0.7rem; font-size: 0.85rem; }

.planner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel, .side-note, .season, .guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.panel h2, .season h2, .guide h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.panel h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.preset {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.85rem;
}

.preset:hover { border-color: var(--accent); color: var(--accent); }

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.field span { color: var(--muted); }

.field input, .field select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
}

.field.inline { flex-direction: row; align-items: center; gap: 0.5rem; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.event-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfaf4;
}

.event-row input, .event-row select {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  width: 100%;
}

.event-row .remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
}

.event-row .remove:hover { color: var(--accent); }

.event-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1.1em;
}

.side-note h3 { margin-top: 0; font-size: 1rem; }

.scenario-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  text-align: left;
  cursor: pointer;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.link-btn:hover { text-decoration: underline; }

.tip {
  background: #fbf6ec;
  border-left: 3px solid var(--accent-2);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink);
}

.season-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.week {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: #fcfaf4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.week:hover { border-color: var(--accent); }

.week.active {
  border-color: var(--accent);
  background: #f6ecf3;
}

.week h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.week .mini {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.week .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #eee3d2;
  color: var(--ink);
}

.chip.rehearsal { background: #d7e8e8; color: #1f4f4f; }
.chip.concert { background: #e7d7e1; color: #5a3150; }
.chip.practice { background: #f3dfcd; color: #7a4a1f; }

.week-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  background: #fcfaf4;
  margin-bottom: 1.5rem;
}

.week-detail h3 { margin-top: 0; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.75rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checklist input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.guide {
  margin-bottom: 1.5rem;
}

.guide h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.plain {
  padding-left: 1.1rem;
  margin: 0.5rem 0;
}

.plain li { margin-bottom: 0.5rem; }

.faq {
  margin: 0.5rem 0;
}

.faq dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.faq dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.last-updated {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .planner { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; }
  .topnav, .actions-row, .event-actions, .presets, .side-note, .footer, .hero-actions, .season-controls, .status { display: none !important; }
  .panel, .season, .guide, .hero { box-shadow: none; border: none; padding: 0; }
  .season-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .guide { page-break-before: always; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
