button,
.button,
.legacy-main a {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
}

button,
.button {
    text-align: center;
}

.grade-tile-grid { grid-template-columns: repeat(var(--grade-count), minmax(0, 1fr)); }
.grade-tile { width: 100%; padding: .8rem; text-align: center; }
.grade-tile h3 { margin: 0; }
.teacher-choice span { display: block; margin-top: .2rem; font-size: .9rem; color: var(--muted); }
.parent-booking-dialog { width: min(920px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
.parent-booking-dialog::backdrop { background: #0f2542a8; }
.teacher-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .65rem; margin-bottom: 1.25rem; }
.teacher-choice { width: 100%; text-align: left; }
.teacher-choice[aria-expanded="true"] { background: var(--blue-dark); color: #fff; }
.teacher-choice[aria-expanded="true"] span { color: #e8f0f8; }
.teacher-times { border-top: 1px solid var(--line); padding-top: 1rem; }
.teacher-times h3 { margin-top: 0; }
.setup-alert { color: var(--danger); }
.parent-booking-heading { display: block; text-align: center; }
.parent-booking-heading h1, #choose-grade { color: var(--blue); text-align: center; }
.participant-grade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 240px)); gap: .75rem; align-items: start; }
.participant-grade-card { width: 100%; margin: 0; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); }
.participant-grade-card legend { color: #fff; background: var(--navy); border-radius: 6px; font-size: 1.05rem; font-weight: 800; padding: .2rem .55rem; }
.alternate-teacher-fieldset { border: 3px solid var(--gold); background: #fffaf0; box-shadow: 0 0 0 2px #9a6b0033; }
.alternate-teacher-fieldset legend { display: flex; align-items: center; gap: .5rem; }
.alternate-date-badge { display: inline-block; padding: .15rem .45rem; border-radius: 999px; background: var(--gold); color: #1b2b42; font-size: .75rem; font-weight: 700; line-height: 1.2; }
.alternate-date-summary { border-left: 4px solid var(--gold); }
.alternate-date-review { display: grid; gap: .4rem; }
.alternate-date-review div { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.alternate-date-review span { color: var(--navy); }
.booking-form { display: grid; gap: .85rem; }
.booking-form .form-field { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); align-items: center; gap: .75rem 1rem; margin: 0; }
.booking-form .form-field label { margin: 0; }
.booking-form .form-field textarea { align-self: start; }
@media (max-width: 600px) { .booking-form .form-field { grid-template-columns: 1fr; gap: .25rem; } }
.parent-booking-dialog .day-column h4, .parent-booking-dialog .time-tile { text-align: center; }
.parent-booking-dialog .time-tile { justify-content: center; }
.wizard-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.wizard-actions > a { justify-self: start; }
.wizard-actions > form { margin: 0; }
.wizard-actions > :last-child { justify-self: end; }

.inline-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.inline-actions form {
    display: inline-flex;
    margin: .2rem;
}

.copy-next-actions,
.break-copy-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin: .75rem 0 1rem;
}

.copy-actions-left {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: flex-start;
    margin: .75rem 0 1rem;
    min-height: 2.5rem;
}

.break-copy-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.5rem;
}

.copy-actions-left > .copy-next-actions,
.break-copy-actions > .copy-next-actions {
    grid-column: 2;
    justify-self: center;
    margin: 0;
}

.break-copy-actions {
    align-items: center;
}

.break-copy-actions label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .25rem;
}

.conference-lifecycle-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: .75rem;
}

.conference-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(9rem, 1fr));
    gap: .5rem;
}

.conference-action-slot,
.conference-action-slot form,
.conference-action-slot .button,
.conference-action-slot button {
    width: 100%;
    margin: 0;
    white-space: nowrap;
}

.conference-lifecycle-actions .button {
    white-space: nowrap;
}

.legacy-main a.button-forward,
.legacy-main a.button-forward:hover {
    background: #207a4b;
    color: #fff;
}

.legacy-main a.button-forward:hover {
    background: #17613b;
}

.legacy-main a.button-backward,
.legacy-main a.button-backward:hover {
    background: #d6a72c;
    color: #29200a;
}

.legacy-main a.button-backward:hover {
    background: #bd8f1e;
}

.button-copy {
    background: var(--gold);
    color: #1b2b42;
    border: 2px solid #9a6b00;
    font-weight: 700;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    padding: .45rem .75rem;
}

.button-copy:hover {
    background: #d6a72c;
    color: #1b2b42;
}

.wizard-copy-next {
    background: var(--blue-dark);
    color: #fff;
    border: 2px solid var(--navy);
    font-weight: 400;
    padding: .45rem .75rem;
}

.wizard-copy-next:hover {
    background: var(--navy);
    color: #fff;
}

.conference-wizard .form-card button,
.conference-wizard .form-card .button,
.conference-wizard .wizard-actions button,
.conference-wizard .wizard-actions .button {
    border: 2px solid var(--navy);
    font-weight: 400;
}

@media (max-width: 700px) {
    .conference-primary-actions { grid-template-columns: 1fr; }
    .grade-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard-actions { grid-template-columns: 1fr 1fr; }
    .wizard-actions > span { display: none; }
    .wizard-actions > :last-child { grid-column: 2; justify-self: end; }
}
