#schedule-map {display:grid;gap:12px;padding:16px;min-width:0;margin-block:3px;background:var(--surface);border:1px solid var(--studio-rule);border-radius:12px}
.coverage-top,.coverage-tools,.coverage-period,.coverage-actions,.goal-line,.goal-categories {display:flex;align-items:center;gap:8px}
.coverage-top,.coverage-tools {justify-content:space-between}
.coverage-top h3 {color:var(--ink);font-size:1rem;margin:0}
.coverage-top p,.coverage-note,.coverage-detail p,.coverage-detail li small {font-size:.78rem;color:var(--muted);line-height:1.45;margin:2px 0}
.coverage-tools {flex-wrap:wrap}
.coverage-tools label,.goal-line label {font-size:.77rem;font-weight:650;min-width:0}
.coverage-tools select {display:block;margin-top:3px;width:100%;max-width:100%;min-height:40px;appearance:auto;padding:5px 8px;padding-right:4px!important;border:1px solid var(--studio-rule);border-radius:7px;color:var(--ink);font:inherit;font-weight:450;background:var(--surface)}
.coverage-period {font-size:.82rem;white-space:nowrap}
.coverage-period .icon-button,.coverage-top .icon-button {width:38px;min-height:38px}
.coverage-table-scroll {max-width:100%;overflow:auto;border:1px solid var(--studio-rule);border-radius:8px}
.coverage-table-scroll table {width:100%;table-layout:fixed;border-collapse:collapse;margin:0;font-size:.78rem;font-variant-numeric:tabular-nums}
.coverage-table-scroll th,.coverage-table-scroll td {border:0;border-bottom:1px solid var(--studio-rule);padding:5px 1px;text-align:center;vertical-align:middle;white-space:normal;color:var(--ink)}
.coverage-table-scroll th:first-child {width:24%;padding-left:8px;text-align:left;font-weight:550}
.coverage-table-scroll th button {border:0;background:none;color:var(--ink);width:100%;padding:4px 0;min-height:40px;display:grid;place-items:center;gap:1px;cursor:pointer}
.coverage-table-scroll th button span {color:var(--muted);font-size:.69rem;font-weight:550}
.coverage-table-scroll th button b {font-size:.95rem}
.coverage-table-scroll th.current button {background:var(--studio-pine);border-radius:6px;color:white}
.coverage-table-scroll th.current button span {color:white}
.coverage-table-scroll td.current {box-shadow:inset 1px 0 var(--studio-rule),inset -1px 0 var(--studio-rule)}
.coverage-table-scroll .occupied {color:var(--studio-pine);background:var(--studio-mint);font-weight:700}
.coverage-table-scroll .vacant {background:#fcf4e3;color:#7b501a}
.coverage-table-scroll .matching th {box-shadow:inset 3px 0 var(--studio-pine);font-weight:700}
.coverage-table-scroll .coverage-totals {background:var(--studio-subtle)}
.coverage-table-scroll td:has(.coverage-count) {padding:0}
.coverage-count {color:var(--studio-pine);background:transparent;border:0;border-radius:4px;font:inherit;font-weight:700;width:100%;min-height:32px;cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.coverage-count[aria-expanded="true"],.coverage-count:focus-visible {outline:2px solid var(--studio-pine);outline-offset:-3px}
#coverage-times {position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(320px,calc(100vw - 16px));max-height:min(42dvh,320px);overflow:auto;padding:12px 14px;background:var(--surface);color:var(--ink);border:1px solid var(--studio-rule);border-radius:10px;box-shadow:0 6px 24px #10294426;font-size:.87rem;overflow-wrap:anywhere}
#coverage-times small {display:block;color:var(--muted);font-size:.75rem}
#coverage-times ul {list-style:none;padding:0;margin:8px 0 0}
#coverage-times li {display:grid;grid-template-columns:5ch 1fr;gap:10px;padding:6px 0;border-top:1px solid var(--studio-rule)}
#coverage-times time {color:var(--studio-pine);font-weight:700;font-variant-numeric:tabular-nums}
.coverage-totals td,.coverage-totals th {font-weight:700;border-bottom:0}
.coverage-detail {display:grid;gap:3px}
.coverage-detail>strong {font-size:.88rem}
.coverage-detail>strong::first-letter {text-transform:uppercase}
.coverage-overrides {margin:0;font-size:.81rem;color:var(--ink);background:var(--studio-subtle);padding:8px 10px;border-radius:7px;overflow-wrap:anywhere}
.coverage-detail summary {cursor:pointer;color:var(--studio-pine);font-size:.8rem;margin-block:4px}
.coverage-detail ul {list-style:none;margin:4px 0;padding:0}
.coverage-detail li {display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 8px;align-items:baseline;border-bottom:1px solid var(--studio-rule);padding:5px 0;font-size:.83rem}
.coverage-detail li time {font-weight:650;color:var(--studio-pine)}
.coverage-detail li small {grid-column:2}
.coverage-actions,.goal-categories {flex-wrap:wrap}
#schedule-goals-dialog {max-width:min(580px,95vw);width:100%;padding:18px;border:1px solid var(--studio-rule);border-radius:14px}
#schedule-goals-dialog h2 {margin:0;font-size:1.3rem}
#schedule-goals-dialog p {font-size:.88rem}
.goal-rows {display:grid;gap:10px;margin:10px 0}
.goal-rows fieldset {padding:12px;border:1px solid var(--studio-rule);border-radius:8px}
.goal-rows legend {font-size:.72rem;font-weight:700}
.goal-line>label:first-child {flex:1}
.goal-line>label:nth-child(2) {max-width:80px}
.goal-line input {width:100%}
.goal-categories {margin-top:6px}
.goal-categories label {display:flex;align-items:center;gap:5px;font-size:.78rem}
.goal-categories input {width:16px;height:16px;accent-color:var(--studio-pine)}
.goal-error {color:#8c302b}
@media(max-width:600px){
  #schedule-map {gap:9px;padding:10px}
  .coverage-tools label {width:100%}
  .coverage-tools select {font-size:16px;min-height:44px}
  .coverage-period {width:100%;justify-content:space-between}
  .coverage-table-scroll table {font-size:.7rem}
  .coverage-table-scroll th:first-child {width:25%;padding-left:4px}
  .coverage-table-scroll th button {min-height:44px}
  .coverage-count {min-height:44px}
}
