/* ─── Workouts > Workout Schedule ───
   Every day with a send, top to bottom: cycle bars, week bars, then one row
   per day with a date rail. Markup comes from renderWorkoutSchedule (coach.js). */

.workout-grid > .workout-schedule-workspace {
    min-height: 0;
    align-content: start;
    padding: 0 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.workout-schedule-workspace > * + * {
    margin-top: 0;
}

.schedule-head {
    gap: 16px;
}

.schedule-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

/* Captions line up along the top; the date pickers carry their quick
   ranges underneath, as on Compare Dates. */
.schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px 20px;
    margin: 0 0 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.schedule-control {
    display: grid;
    gap: 7px;
    min-width: 0;
}

/* Same caption as the date pickers' (team-check-up.css). */
.schedule-control-label {
    color: var(--muted-2);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-audience {
    flex: 1 1 240px;
    max-width: 340px;
}

.schedule-audience-combobox {
    width: 100%;
}

/* Controls share the date pickers' height and type (team-check-up.css). */
.schedule-audience-combobox input {
    min-height: 44px;
    font-size: 0.83rem;
    font-weight: 700;
}

/* The Compare Dates form floats right on its own page; here it sits in line. */
.schedule-dates-form.team-checkup-form {
    margin-left: 0;
}

.schedule-date-presets button.is-active {
    border-color: var(--button-border);
    background: rgba(20, 149, 218, 0.12);
    color: var(--azure-soft);
}

.schedule-segment {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.schedule-segment button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.schedule-segment button:hover,
.schedule-segment button:focus-visible {
    color: var(--text);
}

.schedule-segment button.is-active {
    background: rgba(20, 149, 218, 0.16);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(20, 149, 218, 0.45);
}

.schedule-list {
    display: grid;
    gap: 14px;
    padding-top: 12px;
}

.schedule-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.schedule-summary p {
    margin: 0;
}

.schedule-summary strong {
    color: var(--text);
}

.schedule-summary .schedule-link-button {
    margin-left: auto;
}

.schedule-refreshing {
    color: var(--muted-2);
}

.schedule-link-button {
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--azure-soft);
    font-weight: 700;
    cursor: pointer;
}

.schedule-link-button:hover,
.schedule-link-button:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}

.schedule-body {
    display: grid;
    gap: 12px;
}

.schedule-body.is-flat {
    gap: 0;
}

/* ─── Cycle and week bars ─── */

.schedule-group {
    --cycle-color: #6f6f6b;
    min-width: 0;
}

.schedule-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 0 12px 0 0;
    border-radius: var(--radius-sm);
}

.schedule-bar-toggle {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 0 10px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.schedule-bar-toggle:focus-visible {
    outline: 2px solid var(--focus-border);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}

.schedule-chevron {
    flex: 0 0 auto;
    align-self: center;
    color: var(--muted);
    transition: transform 0.15s ease;
}

.schedule-bar-toggle[aria-expanded="false"] .schedule-chevron {
    transform: rotate(-90deg);
}

.schedule-bar-title {
    font-weight: 800;
}

.schedule-bar-meta,
.schedule-bar-count {
    color: var(--muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.schedule-bar-actions {
    display: flex;
    gap: 6px;
}

.schedule-bar-action {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.schedule-bar-action:hover,
.schedule-bar-action:focus-visible {
    border-color: var(--accent-hover-border);
    background: var(--accent-hover-bg);
}

.schedule-bar-cycle {
    border-left: 4px solid var(--cycle-color);
    background: color-mix(in srgb, var(--cycle-color) 12%, var(--surface));
    box-shadow: inset 0 0 0 1px var(--line);
}

.schedule-bar-cycle .schedule-bar-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.schedule-cycle.is-uncycled .schedule-bar-cycle {
    border-left-style: dashed;
    background: var(--surface);
}

.schedule-cycle > .schedule-group-body {
    display: grid;
    gap: 6px;
    margin: 8px 0 0 10px;
    padding-left: 12px;
    border-left: 1px solid color-mix(in srgb, var(--cycle-color) 40%, transparent);
}

.schedule-bar-week {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}

.schedule-week[style*="--cycle-color"] .schedule-bar-week {
    border-left: 3px solid var(--cycle-color);
}

.schedule-week.is-empty .schedule-bar-week {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
    border-style: dashed;
}

.schedule-week.is-empty .schedule-bar-title {
    color: var(--muted);
    font-weight: 700;
}

.schedule-week > .schedule-group-body {
    padding: 4px 0 6px;
}

/* ─── Days ─── */

.schedule-day {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.schedule-group-body > .schedule-day:first-child,
.schedule-body.is-flat > .schedule-day:first-child {
    border-top: 0;
}

.schedule-day-rail {
    position: sticky;
    top: calc(var(--topbar-h) + 12px);
    align-self: start;
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 8px 0 10px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
    text-align: center;
}

.schedule-day-weekday,
.schedule-day-month {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-day-number {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.schedule-day-today {
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--button-text);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-day.is-today .schedule-day-rail {
    box-shadow: inset 0 0 0 1px rgba(20, 149, 218, 0.6);
    background: rgba(20, 149, 218, 0.1);
}

.schedule-day.is-today .schedule-day-number {
    color: var(--brand);
}

.schedule-day.is-past .schedule-day-rail {
    opacity: 0.62;
}

.schedule-day-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.schedule-day-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.schedule-day-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
}

.schedule-day-head .schedule-link-button {
    margin-left: auto;
}

/* ─── A send ─── */

.schedule-assignment {
    --workout-color: var(--brand);
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px 14px 12px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    min-width: 0;
}

.schedule-assignment::before {
    content: "";
    position: absolute;
    inset: 10px auto 10px 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--workout-color);
}

.schedule-assignment.is-busy {
    opacity: 0.6;
}

.schedule-assignment-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.schedule-swatch {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--workout-color);
}

.schedule-assignment-title {
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.schedule-assignment-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.schedule-assignment-name strong {
    font-size: 1rem;
}

.schedule-assignment-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--muted);
    font-size: 0.85rem;
    min-width: 0;
}

.schedule-audience-chip,
.schedule-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-tag {
    color: var(--muted);
}

.schedule-tag.is-custom {
    border-color: rgba(255, 107, 53, 0.45);
    background: rgba(255, 107, 53, 0.1);
    color: color-mix(in srgb, var(--celebrate) 70%, var(--text));
}

.schedule-status {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.schedule-status strong {
    color: var(--text);
}

.schedule-status.is-done strong {
    color: color-mix(in srgb, var(--green) 55%, var(--text));
}

.schedule-note {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.schedule-note span {
    margin-right: 8px;
    color: var(--muted-2);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-action {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.schedule-action:hover:not(:disabled),
.schedule-action:focus-visible {
    border-color: var(--accent-hover-border);
    background: var(--accent-hover-bg);
}

.schedule-action.is-danger {
    color: var(--rose);
}

.schedule-action.is-danger:hover:not(:disabled),
.schedule-action.is-danger:focus-visible {
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.08);
}

.schedule-action:disabled {
    opacity: 0.5;
    cursor: default;
}

.schedule-flash,
.schedule-error {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.schedule-flash {
    color: color-mix(in srgb, var(--green) 55%, var(--text));
}

.schedule-error {
    color: color-mix(in srgb, var(--rose) 80%, var(--text));
}

/* ─── Exercises: Build a Workout's rows ───
   "Adjust exercises for this send" uses the builder's own classes
   (.builder-exercise-row, .builder-row-top, .builder-pill,
   .builder-row-controls, .builder-row-remove, .builder-drag-handle in
   coach.css); these rules size the schedule's fields. */

.schedule-exercise-list {
    display: grid;
    gap: 8px;
}

.schedule-exercise-row .builder-row-controls .form-field {
    gap: 6px;
}

.schedule-exercise-row .builder-row-controls .schedule-col-narrow { width: 76px; }
.schedule-exercise-row .builder-row-controls .schedule-col-mid { width: 108px; }
.schedule-exercise-row .builder-row-controls .schedule-col-wide { width: 128px; }

/* Same caption as the builder's field labels. */
.schedule-field-caption {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─── Editor ─── */

.schedule-editor {
    display: grid;
    gap: 10px;
}

.schedule-editor-card.builder-selected-card {
    margin-top: 0;
}

.schedule-editor-card .panel-head strong {
    font-size: 13px;
    white-space: nowrap;
}

.schedule-exercise-row input,
.schedule-exercise-row select,
.schedule-exercise-search input {
    width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.schedule-exercise-row input:focus,
.schedule-exercise-row select:focus,
.schedule-exercise-search input:focus {
    outline: none;
    border-color: var(--focus-border);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.schedule-exercise-row input::placeholder,
.schedule-exercise-search input::placeholder {
    color: var(--muted-2);
}

.schedule-effort-cell {
    display: flex;
    gap: 4px;
}

.schedule-effort-cell .schedule-cell-select {
    flex: 0 0 60px;
    padding: 0 4px;
}

.schedule-exercise-row .builder-row-controls .schedule-col-notes {
    width: 220px;
}

/* The header's count stays on the right however long the hint runs. */
.schedule-editor-card .panel-head > div {
    flex: 1 1 320px;
    min-width: 0;
}

/* The name doubles as the swap button. */
.schedule-exercise-swap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 75%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.schedule-exercise-swap strong {
    max-width: 100%;
}

.schedule-exercise-swap svg {
    flex: none;
    color: var(--muted-2);
}

.schedule-exercise-swap:hover strong,
.schedule-exercise-swap:focus-visible strong {
    text-decoration: underline;
}

.schedule-exercise-swap:hover svg,
.schedule-exercise-swap:focus-visible svg {
    color: var(--azure-soft);
}

.schedule-exercise-swap:focus-visible {
    outline: 2px solid var(--focus-border);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Builder-style search: a field, then result cards with Add / Use. */
.schedule-exercise-search {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.schedule-exercise-search-head {
    display: flex;
    gap: 8px;
}

.schedule-exercise-results {
    display: grid;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.schedule-search-empty {
    margin: 0;
    padding: 4px 2px;
    color: var(--muted);
    font-size: 0.85rem;
}

.schedule-list-actions {
    margin-top: 10px;
}

.schedule-editor-help,
.schedule-editor-scope {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.schedule-editor-scope {
    color: var(--text);
}

.schedule-inline-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.schedule-spacer {
    flex: 1 1 auto;
}

/* ─── Fields, hints, empty and loading states ─── */

.schedule-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.schedule-field > span {
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.schedule-field input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--text);
    font: inherit;
}

.schedule-field input:focus {
    outline: none;
    border-color: var(--focus-border);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.schedule-cycle-colors {
    display: flex;
    gap: 6px;
    min-height: 40px;
    align-items: center;
}

.schedule-cycle-color {
    width: 26px;
    height: 26px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 2px var(--surface);
    cursor: pointer;
}

.schedule-cycle-color.is-selected {
    border-color: var(--text);
}

.schedule-cycle-color:focus-visible {
    outline: 2px solid var(--focus-border);
    outline-offset: 2px;
}

.schedule-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.9rem;
}

.schedule-empty {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 28px 22px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.schedule-empty p {
    margin: 0;
    color: var(--muted);
}

.schedule-loading {
    display: grid;
    gap: 14px;
}

.schedule-loading-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
}

.schedule-loading-row > span,
.schedule-loading-row i {
    display: block;
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    animation: schedule-pulse 1.4s ease-in-out infinite;
}

.schedule-loading-row > span {
    height: 78px;
}

.schedule-loading-row div {
    display: grid;
    gap: 8px;
}

.schedule-loading-row i {
    height: 34px;
}

.schedule-loading-row i + i {
    width: 70%;
}

@keyframes schedule-pulse {
    50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .schedule-loading-row > span,
    .schedule-loading-row i {
        animation: none;
    }

    .schedule-chevron {
        transition: none;
    }
}

/* Phones: the date rail shrinks and grid rows become stacked cards with
   their column names as labels. */
@media (max-width: 760px) {
    .schedule-head {
        flex-direction: column;
        align-items: stretch;
    }

    .schedule-head-actions > * {
        flex: 1 1 0;
    }

    .schedule-toolbar {
        gap: 12px;
    }

    .schedule-audience {
        flex-basis: 100%;
        max-width: none;
    }

    .schedule-dates-form {
        flex: 1 1 100%;
    }

    .schedule-day {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    .schedule-day-number {
        font-size: 1.5rem;
    }

    .schedule-assignment-main {
        align-items: baseline;
        flex-wrap: wrap;
    }

    .schedule-assignment-title {
        flex: 1 1 0;
        min-width: calc(100% - 26px);
    }

    .schedule-status {
        flex-basis: 100%;
        padding-left: 22px;
    }

    .schedule-bar {
        padding-bottom: 8px;
    }

    .schedule-bar-count,
    .schedule-bar-actions {
        padding-left: 12px;
    }

    /* The fields wrap under the name and share the row's width. */
    .schedule-exercise-row .builder-row-controls {
        flex: 1 1 100%;
    }

    .schedule-exercise-row .builder-row-controls .form-field {
        flex: 1 1 96px;
        width: auto;
    }

    .schedule-exercise-row .builder-row-controls .schedule-col-notes {
        flex-basis: 100%;
    }
}

/* ─── Right-side drawers: Schedule a workout, New / Edit cycle ───
   Both share .side-drawer with Send a Workout's Advanced settings. Schedule
   a workout widens to fit the exercise table while "Adjust exercises for
   this send" is open. */

.schedule-assignment-drawer .side-drawer-panel {
    width: min(520px, 100%);
}

/* The send's workout at the top of Edit assignment. */
.schedule-assignment-summary {
    --workout-color: var(--brand);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--workout-color);
    border-radius: var(--radius-sm);
}

.schedule-assignment-summary > div:first-of-type {
    display: grid;
    gap: 2px;
    flex: 1 1 160px;
    min-width: 0;
}

.schedule-assignment-summary span:not(.schedule-swatch) {
    color: var(--muted);
    font-size: 0.85rem;
}

.schedule-assignment-summary-actions {
    display: flex;
    gap: 6px;
}

.schedule-assignment-summary-actions .ghost-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.82rem;
}

.schedule-field-hint {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.schedule-field input:disabled {
    color: var(--muted);
    cursor: default;
}

.schedule-cycle-drawer .side-drawer-panel {
    width: min(480px, 100%);
}

.schedule-composer-drawer .side-drawer-panel {
    width: min(620px, 100%);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.22s ease;
}

.schedule-composer-drawer .side-drawer-panel.is-wide {
    width: min(1080px, 100%);
}

.schedule-drawer-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.schedule-drawer-form > .side-drawer-body {
    display: grid;
    align-content: start;
    gap: 16px;
    padding-top: 20px;
}

/* The footer's buttons sit right, with Delete cycle (when shown) left. */
.schedule-drawer-form > .side-drawer-foot > .schedule-inline-actions {
    margin-left: auto;
}

.schedule-drawer-intro {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.schedule-cycle-span {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.schedule-drawer-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    align-items: start;
}

.schedule-field-wide {
    grid-column: 1 / -1;
}

/* A field's caption is a bare span or, beside a combobox, a span in a
   label; both get the caption's size so their rows line up. */
.schedule-field > span,
.schedule-field > label {
    display: block;
    font-size: 0.72rem;
    line-height: 1.3;
}

.schedule-field > label > span {
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.schedule-composer .exercise-combobox {
    width: 100%;
}

.schedule-field select,
.schedule-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--text);
    font: inherit;
}

.schedule-field textarea {
    padding: 10px 12px;
    resize: vertical;
}

.schedule-field select:focus,
.schedule-field textarea:focus {
    outline: none;
    border-color: var(--focus-border);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.schedule-composer-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.schedule-composer-chips .exercise-combobox {
    flex: 1 1 200px;
    width: auto;
}

.schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 6px 0 12px;
    border: 1px solid rgba(20, 149, 218, 0.4);
    border-radius: 999px;
    background: rgba(20, 149, 218, 0.1);
    font-size: 0.85rem;
    font-weight: 700;
}

.schedule-chip:not(:has(button)) {
    padding-right: 12px;
}

.schedule-chip button {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.schedule-chip button:hover,
.schedule-chip button:focus-visible {
    background: rgba(20, 149, 218, 0.18);
    color: var(--text);
}

.schedule-composer-exercises {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.9rem;
}

.schedule-composer-exercises strong {
    color: var(--text);
}

.schedule-composer-exercises > .schedule-editor {
    flex: 1 1 100%;
    min-width: 0;
}

.schedule-composer-exercises:has(> .schedule-editor) {
    padding: 0;
    border: 0;
}

.schedule-composer-foot {
    flex-wrap: wrap;
    align-items: center;
}

.schedule-composer-summary {
    flex: 1 1 240px;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.schedule-notice {
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--green) 10%, transparent);
}

@media (max-width: 760px) {
    .schedule-drawer-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .schedule-composer-foot .schedule-inline-actions {
        flex: 1 1 100%;
    }
}
