.report { height: auto; min-height: 100%; }
html:has(.report) { height: auto; }
.sheet { width: 100%; max-width: 880px; margin: 20px auto; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet h1 { font-size: 24px; line-height: 1.35; }
.sheet h2 { margin: 28px 0 10px; font-size: 16px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; }
.print { min-height: 40px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--panel); color: var(--accent); font-weight: 700; cursor: pointer; white-space: nowrap; }
.lead { margin-top: 14px; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: 8px; background: var(--bg); }
.stat span { color: var(--muted); font-size: 13px; }
.stat b { color: var(--accent); font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12.5px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.foot { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) {
  .sheet { margin: 0; padding: 16px; border: 0; border-radius: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .sheet__head { flex-direction: column; }
}
@media print {
  .bar, .print { display: none; }
  .sheet { margin: 0; border: 0; max-width: none; }
}

.reset { margin-top: 12px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 13px; cursor: pointer; }
.posts-note { margin-top: 10px; color: var(--muted); }
td.comment { white-space: normal; min-width: 240px; }
tr.is-hidden td { color: var(--muted); text-decoration: line-through; }
tr.is-hidden td:last-child { text-decoration: none; }
.toggle { min-height: 34px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 6px; background: var(--panel); color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
@media print { .reset { display: none; } }

.next-plan { display: inline-grid; place-items: center; min-height: 40px; margin: 14px 10px 0 0; padding: 0 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.plan-actions button { min-height: 42px; padding: 0 16px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.primary { border: 0; background: var(--accent); color: #fff; }
.ghost { border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.status { margin-top: 10px; color: var(--accent); font-weight: 700; }
.changes { margin: 8px 0 0; padding-left: 18px; }
td.stops { white-space: normal; min-width: 280px; }
td select { min-height: 34px; font: inherit; }
.remove { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); cursor: pointer; }

.sheet--wide { max-width: 1120px; }
.saved { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: var(--accent-soft); }
.saved ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.saved b { color: var(--accent); }
.saved__note { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.plan-map-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 14px; }
#plan-map { height: 400px; border-radius: 8px; overflow: hidden; }
.plan-why__lead { margin-top: 10px; color: var(--muted); font-size: 13px; }
.plan-why__list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; max-height: 310px; overflow-y: auto; }
.plan-why__list li { display: grid; gap: 1px; font-size: 14px; }
.plan-why__list span { color: var(--muted); font-size: 12.5px; }
tr.is-selected td { background: var(--accent-soft); }
td .remove + .remove { margin-left: 6px; }
@media (max-width: 760px) { .plan-map-wrap { grid-template-columns: 1fr; } #plan-map { height: 300px; } .plan-why__list { max-height: none; } }
@media print { .saved { background: none; padding: 0; } }
.home { max-width: 900px; margin: 0 auto; padding: 36px 20px; }
.home h1 { font-size: 26px; line-height: 1.4; }
.home h2 { margin: 30px 0 10px; font-size: 16px; }
.home__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.home__card { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; }
.home__card:hover { border-color: var(--accent); }
.home__card b { color: var(--accent); font-size: 17px; }
.home__card small { color: var(--muted); font-size: 12.5px; }
.home table td { white-space: normal; background: var(--panel); }
.home .foot { margin-top: 10px; }
@media (max-width: 640px) { .home__cards { grid-template-columns: 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hint { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
.plan-map-box { position: relative; }
.map-legend { position: absolute; top: 10px; left: 10px; margin: 0; padding: 5px 10px; border-radius: 6px; background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(0,0,0,.2); font-size: 13px; font-weight: 700; }
#rows tr { cursor: pointer; }
#rows tr:hover td { background: var(--bg); }
#rows tr.is-selected td { background: var(--accent-soft); box-shadow: none; }
.date-btn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.on-map { display: block; color: var(--accent); font-size: 11.5px; font-weight: 700; }
.slots { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--bg); }
.slots button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.slots button:hover { color: var(--accent); background: #fff; }
.slots button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 700; }
.skip-btn { padding: 4px 2px; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.skip-btn:hover { color: #b3261e; }
.foot-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-actions__main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.foot-actions__main span { color: var(--muted); font-size: 13px; }
.foot-actions .next-plan { margin: 0; min-height: 44px; padding: 0 22px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.next-plan:disabled { opacity: .5; cursor: default; }
.text-btn { padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px; background: #222; color: #fff; font-size: 14px; z-index: 10; }
.toast[hidden], [hidden] { display: none !important; }
.toast button { border: 0; background: none; color: #bdbcff; font-weight: 700; cursor: pointer; white-space: nowrap; }
@media print { .foot-actions { display: none; } }

.demo-note, .demo-note td, .demo-note th, .demo-note b { color: var(--muted) !important; font-size: 12.5px; font-weight: 400; }
.demo-note h2 { margin-top: 36px; color: var(--muted); font-size: 13px; font-weight: 700; }
.home .demo-note td { background: none; }
.saved.demo-note { padding: 0; background: none; }
.saved.demo-note ul { gap: 2px 16px; margin-top: 2px; }
.saved.demo-note .saved__note { margin-top: 2px; font-size: 12.5px; }
@media print { .demo-note { display: none; } }

.shape { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: var(--bg); }
.shape h2 { width: 100%; margin: 0; font-size: 14px; }
.shape label { display: grid; gap: 3px; color: var(--muted); font-size: 12.5px; }
.shape select { min-height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; }
.shape p { width: 100%; margin: 0; color: var(--muted); font-size: 12.5px; }

@media (max-width: 760px) { .table-wrap { max-width: calc(100vw - 32px); } }
