.sch { display: flex; flex-direction: column; gap: var(--space-md); padding-bottom: 96px; min-width: 0; }
.sch-muted { color: var(--color-text-muted); font-size: var(--font-size-sm); margin: 4px 0; }
.sch-hint { color: var(--color-text-muted); font-size: var(--font-size-xs); margin: 6px 0 var(--space-sm); line-height: 1.4; }
.sch-note { font-size: var(--font-size-sm); background: var(--color-surface-2); border-radius: var(--radius-md); padding: 8px 12px; margin: 0 0 var(--space-sm); }
.sch-lbl { font-size: var(--font-size-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); margin: var(--space-md) 0 6px; }

.sch-next { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: 0 2px 10px var(--color-shadow); min-width: 0; }
.sch-next--on { border-color: var(--color-primary); }
.sch-next__kicker { font-size: var(--font-size-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary); }
.sch-next__title { font-size: var(--font-size-xl); font-weight: 800; margin: 4px 0; overflow-wrap: anywhere; }
.sch-next__sub { font-size: var(--font-size-sm); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.sch-next__link { display: inline-block; margin-top: 6px; font-size: var(--font-size-sm); font-weight: 600; }
.sch-next__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.sch-next__acts .btn { flex: 1 1 auto; min-width: 0; }

.sch-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.sch-actions .btn { flex: 1 1 auto; }

.sch-week .section-label { margin-bottom: 6px; }
.sch-day { margin-bottom: var(--space-sm); }
.sch-day__h { font-size: var(--font-size-sm); font-weight: 700; color: var(--color-text-secondary); margin: 8px 0 4px; }
.sch-row { display: flex; align-items: center; gap: var(--space-sm); width: 100%; text-align: left; min-height: 56px; padding: 8px 12px; margin-bottom: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); cursor: pointer; font: inherit; }
.sch-row:hover { border-color: var(--color-primary); }
.sch-row__time { flex: 0 0 52px; display: flex; flex-direction: column; font-weight: 800; font-variant-numeric: tabular-nums; font-size: var(--font-size-md); }
.sch-row__time small { font-weight: 500; color: var(--color-text-muted); font-size: var(--font-size-xs); }
.sch-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sch-row__title { font-size: var(--font-size-md); overflow-wrap: anywhere; }
.sch-row__meta { font-size: var(--font-size-xs); color: var(--color-text-muted); overflow-wrap: anywhere; }
.sch-row__chev { color: var(--color-text-muted); font-size: 20px; }
.sch-row--off .sch-row__title, .sch-row--off .sch-row__time { text-decoration: line-through; opacity: 0.6; }
.sch-row--hid { opacity: 0.6; }
.sch-off { color: var(--color-primary); font-weight: 700; }
.sch-chip { display: inline-block; padding: 1px 8px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text-secondary); font-weight: 600; font-size: var(--font-size-xs); }
.sch-chip--me { background: transparent; border: 1px solid var(--color-border); }
.sch-hidden summary { cursor: pointer; font-size: var(--font-size-sm); color: var(--color-text-secondary); min-height: 36px; display: flex; align-items: center; }

.sch-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); min-width: 0; }
.sch-box__h { font-weight: 800; margin-bottom: 4px; }
.sch-cls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin: 6px 0; }
.sch-cls__name { font-weight: 600; }

.sch-sheet { max-width: 520px; }
.sch-sheet--wide { max-width: 640px; }
.sch-sheet .modal-title { margin-bottom: var(--space-sm); overflow-wrap: anywhere; }
.sch-acts { display: flex; flex-direction: column; gap: 6px; margin: var(--space-sm) 0; }
.sch-act { justify-content: flex-start; text-align: left; }
.sch-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.sch-grid3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-sm); align-items: start; }
.sch-grid2 label, .sch-grid3 label { font-size: var(--font-size-xs); color: var(--color-text-secondary); font-weight: 600; min-width: 0; }
.sch-grid2 .modal-input, .sch-grid3 .modal-input { margin-bottom: var(--space-sm); min-width: 0; }
.sch-dows { margin-bottom: var(--space-sm); gap: 6px; }
.sch-dow { min-height: 40px; min-width: 44px; padding: 6px 10px; }
.sch-kind { margin-bottom: var(--space-sm); }
.sch-ed__row { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-sm); margin-bottom: var(--space-sm); background: var(--color-surface-2); }
.sch-ed__row--skip .st-chiprow { margin-top: 0; }
.sch-edweek { display: flex; flex-direction: column; gap: 4px; }
.sch-edweek__row { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) minmax(0, 1.2fr); gap: 6px; align-items: center; font-size: var(--font-size-sm); }
.sch-edweek__t { font-weight: 600; overflow-wrap: anywhere; }
.sch-edweek__name { height: 38px; margin: 0; font-size: var(--font-size-sm); }
.sch-ta { height: auto; min-height: 96px; padding: 10px var(--space-md); resize: vertical; font-family: inherit; }
.sch-imp { margin-top: var(--space-sm); }
.sch-imp__row { display: flex; gap: 8px; align-items: flex-start; font-size: var(--font-size-sm); padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.sch-imp__row input { width: 20px; height: 20px; accent-color: var(--red); flex: 0 0 auto; }

.sch-banner { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 250;
  display: flex; align-items: center; gap: 4px; width: min(560px, calc(100vw - 24px)); background: var(--color-text); color: var(--color-surface);
  border-radius: var(--radius-lg); box-shadow: 0 6px 24px var(--color-shadow); padding: 4px 4px 4px 12px; }
.sch-banner__go { flex: 1 1 auto; min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; font-size: var(--font-size-sm); padding: 8px 0; cursor: pointer; overflow-wrap: anywhere; }
.sch-banner__x { flex: 0 0 44px; height: 44px; background: none; border: 0; color: inherit; font-size: 16px; cursor: pointer; }

@media (max-width: 440px) {
  .sch-grid3 { grid-template-columns: 1fr 1fr; }
  .sch-grid3 > .btn { grid-column: 1 / -1; }
  .sch-edweek__row { grid-template-columns: 1fr; }
}
