.mfc {
    --ink: #202120;
    --paper: #f4f3ef;
    --border: #d6d6cf;
    --surface: #fff;
    --accent: #dcebb3;
    background: var(--paper);
    color: var(--ink);
    font-family: Montserrat, Arial, sans-serif;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
}
.mfc * { box-sizing: border-box; }
.mfc h1, .mfc h2, .mfc h3, .mfc p { margin: 0 0 .65em; color: inherit; }
.mfc h1, .mfc h2, .mfc h3 { line-height: 1.12; font-weight: 650; letter-spacing: -.035em; }
.mfc h1 { font-size: clamp(3.25rem, 9vw, 7rem); margin: .38em 0 .15em; }
.mfc h2 { font-size: clamp(1.35rem, 4vw, 2.1rem); }
.mfc h3 { font-size: 1.2rem; }
.mfc-hero { padding: clamp(1.5rem, 5vw, 4rem) max(1.25rem, calc((100% - 1080px) / 2)); background: var(--ink); color: white; }
.mfc-hero p { margin-bottom: 0; max-width: 38rem; color: #ebebe2; }
.mfc .mfc-back { color: var(--accent); font-size: .875rem; text-decoration: none; }
.mfc-content { margin-inline: auto; width: min(1080px, calc(100% - 2.5rem)); padding-block: clamp(2rem, 6vw, 4rem); }
.mfc-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.mfc-panel, .mfc-slot { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1rem; min-width: 0; }
.mfc-settings > .mfc-panel { margin-bottom: 0; }
.mfc-guest { max-width: 42rem; }
.mfc-slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem 1.5rem; }
.mfc-slot > details, .mfc-slot > form { grid-column: 1 / -1; }
.mfc-slot-time { font-variant-numeric: tabular-nums; }
.mfc-slot-status { font-size: .875rem; }
.mfc label { display: grid; gap: .25rem; margin: .65rem 0; font-size: .9rem; }
.mfc input:not([type="checkbox"]), .mfc select, .mfc textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .55rem .65rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #82857c;
    border-radius: 5px;
    font: inherit;
    font-size: 16px;
}
.mfc .mfc-check { display: flex; align-items: center; gap: .6rem; }
.mfc .mfc-check input { margin: 0; }
.mfc-times { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mfc .mfc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    min-height: 44px;
    padding: .5rem 1.1rem;
    margin: .3rem .3rem .3rem 0;
    border: 1px solid var(--ink);
    border-radius: 5px;
    color: white;
    background: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.mfc .mfc-outline, .mfc .mfc-button:hover { color: var(--ink); background: var(--surface); }
.mfc .mfc-outline:hover { color: white; background: var(--ink); }
.mfc :focus-visible { outline: 2px solid #435a20; outline-offset: 3px; }
.mfc summary { cursor: pointer; font-weight: 650; }
.mfc details[open] summary { margin-bottom: .65rem; }
.mfc .mfc-schools { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1rem; }
.mfc .mfc-schools a { color: var(--ink); text-underline-offset: .2rem; }
.mfc-school-title { margin-block: 1.5rem; }
.mfc-notice { padding: 1rem; background: #e8efd8; border-radius: 5px; margin-bottom: 1rem; overflow-wrap: anywhere; }
.mfc-error { background: #f7e4e1; }
.mfc-install { margin-top: 1.5rem; max-width: 42rem; }
.mfc-footer { border-top: 1px solid var(--border); text-align: center; padding: 1.25rem; font-size: .875rem; }
@media (max-width: 720px) {
    .mfc-settings, .mfc-slot, .mfc-times { grid-template-columns: minmax(0, 1fr); }
    .mfc-times { gap: 0; }
}
