:root {
    --ink: #24332c;
    --muted: #718078;
    --green: #315c4b;
    --green-2: #537568;
    --cream: #f5f1e8;
    --paper: #fffdf8;
    --line: #dedfd8;
    --ochre: #b47b3c;
    --rust: #9c5a3c;
    --blue: #5e7884;
    --shadow: 0 16px 45px rgba(44, 61, 52, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header { height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,248,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; gap: 11px; align-items: center; }
.brand-mark { width: 38px; height: 38px; border-radius: 50% 50% 46% 54%; display: grid; place-items: center; background: var(--green); color: white; font-family: Newsreader, serif; font-size: 23px; }
.brand strong, .brand small { display: block; line-height: 1.12; }
.brand strong { font-family: Newsreader, serif; font-size: 21px; }
.brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
nav { display: flex; gap: 5px; }
nav a { color: var(--muted); padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
nav a:hover, nav a.active { background: #e5ebe5; color: var(--green); }
.nav-dropdown { position: relative; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-dropdown summary { display: flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 999px; cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary span { font-size: 12px; transition: transform .15s ease; }
.nav-dropdown[open] summary span { transform: rotate(180deg); }
.nav-dropdown summary:hover, .nav-dropdown.active summary, .nav-dropdown[open] summary { background: #e5ebe5; color: var(--green); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 150px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 14px 35px rgba(44,61,52,.16); }
.nav-dropdown-menu a { display: block; padding: 9px 11px; border-radius: 6px; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 140px); padding: 62px 0 90px; }
h1, h2 { font-family: Newsreader, serif; margin: 0; font-weight: 600; }
h1 { font-size: clamp(42px, 5vw, 66px); line-height: .98; letter-spacing: -.035em; }
h1 em { color: var(--green-2); font-style: italic; }
h2 { font-size: 32px; letter-spacing: -.02em; }
p { color: var(--muted); }
.eyebrow { display: block; color: var(--green-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 11px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 30px 0 62px; }
.hero p, .page-intro p { font-size: 17px; margin: 19px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 7px; padding: 12px 18px; cursor: pointer; font-weight: 700; font-size: 14px; }
.button.primary { color: white; background: var(--green); box-shadow: 0 7px 18px rgba(49,92,75,.18); }
.button.primary:hover { background: #244c3c; transform: translateY(-1px); }
.button.secondary { background: var(--paper); border: 1px solid #cfd4cf; color: var(--green); }
.button.full { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.stats article { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; border-right: 1px solid var(--line); }
.stats article:last-child { border: 0; }
.stats span { color: var(--muted); font-size: 13px; }
.stats strong { font-family: Newsreader, serif; font-size: 31px; }
.stats .attention strong { color: var(--rust); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 68px 0 20px; }
.section-head.compact { margin-top: 50px; }
.filter { display: flex; flex-direction: column; gap: 4px; }
.filter label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.filter select, .inline-teacher select { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 7px; padding: 10px 34px 10px 12px; min-width: 250px; }
.assignment-table { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; box-shadow: var(--shadow); }
.table-head, .assignment-row { display: grid; grid-template-columns: 1.05fr 1.5fr 1fr; gap: 24px; align-items: center; }
.table-head { min-height: 44px; background: #eef0ea; padding: 0 25px; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.assignment-row { min-height: 105px; padding: 19px 25px; border-top: 1px solid var(--line); }
.assignment-row:first-of-type { border-top: 0; }
.assignment-row strong, .assignment-row small { display: block; }
.assignment-row small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.person-cell, .horse-cell { display: flex; align-items: center; gap: 13px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; background: #dfe8df; color: var(--green); border-radius: 50%; font-size: 12px; font-weight: 700; }
.avatar.small { width: 32px; height: 32px; }
.group-chip { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--group-color), white 82%); color: var(--group-color); font-size: 11px; font-weight: 700; }
.horse-cell { justify-content: space-between; }
.horse-icon { font-size: 27px; color: var(--rust); }
.assignment-row .missing { color: var(--rust); }
.empty-state { min-height: 210px; display: grid; place-content: center; text-align: center; border: 1px dashed #c9cdc6; border-radius: 11px; background: rgba(255,255,255,.3); }
.empty-state span { font-size: 28px; color: var(--green-2); }
.empty-state p { margin: 8px 0; }
.messages { position: fixed; z-index: 40; top: 88px; left: 50%; transform: translateX(-50%); }
.message { background: var(--green); color: white; border-radius: 7px; padding: 12px 18px; box-shadow: var(--shadow); font-size: 14px; }
.message.error { background: var(--rust); }

.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 23px 0 45px; }
.page-intro h1 { font-size: clamp(40px, 5vw, 58px); }
.page-intro.split { align-items: start; }
.create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.create-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 5px 18px rgba(44,61,52,.04); overflow: hidden; }
.create-card summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; cursor: pointer; padding: 19px; }
.create-card summary::-webkit-details-marker { display: none; }
.create-card summary strong, .create-card summary small { display: block; }
.create-card summary small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.create-card summary b { color: var(--muted); font-size: 23px; font-weight: 400; transition: transform .2s; }
.create-card[open] summary b { transform: rotate(45deg); }
.create-card form { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.card-icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: #deebe5; color: var(--green); font-family: Newsreader, serif; font-size: 20px; }
.card-icon.ochre { background: #f2e5d4; color: var(--ochre); }
.card-icon.rust { background: #f1dfd7; color: var(--rust); }
.card-icon.blue { background: #dfe8ea; color: var(--blue); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); padding: 29px; }
.assign-panel { display: grid; grid-template-columns: .75fr 1.5fr; gap: 50px; margin-top: 44px; border-top: 4px solid var(--green); }
.panel-copy p { line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 15px 0 18px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.field label span { color: var(--rust); margin-left: 2px; }
.form-control { display: block; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cfd4cf; background: #fffefa; border-radius: 6px; color: var(--ink); outline: none; }
.form-control:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(83,117,104,.11); }
textarea.form-control { resize: vertical; }
.error, .errorlist { display: block; margin: 5px 0 0; padding: 0; color: #a34236; font-size: 11px; list-style: none; }
.form-errors { border-left: 3px solid var(--rust); color: #843c32; padding: 8px 12px; background: #f9ebe7; }
.compact-list { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.compact-list > div { display: grid; grid-template-columns: auto 1fr 1fr 1fr; align-items: center; gap: 12px; min-height: 62px; padding: 10px 17px; border-top: 1px solid var(--line); font-size: 13px; }
.compact-list > div:first-child { border: 0; }
.compact-list span { color: var(--muted); }
.compact-list b { color: var(--rust); }
.text-link { color: var(--green); font-size: 13px; font-weight: 700; }

.popover { position: relative; }
.popover summary { list-style: none; }
.popover summary::-webkit-details-marker { display: none; }
.popover form { position: absolute; width: 440px; right: 0; top: 52px; z-index: 10; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 20px; }
.teacher-layout { display: grid; grid-template-columns: 350px 1fr; gap: 38px; align-items: start; }
.sticky-panel { position: sticky; top: 100px; }
.sticky-panel h2 { font-size: 28px; }
.sticky-panel .form-grid { grid-template-columns: 1fr; }
.hint { font-size: 12px; margin: 14px 0 0; }
.teacher-layout .section-head { margin: 0 0 17px; }
.teacher-list { display: flex; flex-direction: column; gap: 9px; }
.teacher-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.date-tile { width: 48px; height: 53px; display: grid; place-content: center; text-align: center; background: #e5ebe5; border-radius: 7px; color: var(--green); }
.date-tile strong { font-family: Newsreader, serif; font-size: 22px; line-height: 1; }
.date-tile span { font-size: 9px; text-transform: uppercase; }
.teacher-assignment strong, .teacher-assignment small { display: block; }
.teacher-assignment strong span { color: var(--rust); font-weight: 500; }
.teacher-assignment small { color: var(--muted); margin-top: 4px; }
.inline-teacher select { min-width: 170px; max-width: 200px; }
.status-open { color: var(--rust); background: #f5e6df; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.team-strip { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 30px; }
.team-strip > div { display: flex; flex-wrap: wrap; gap: 12px; }
.team-strip article { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.5); border-radius: 50px; padding: 8px 18px 8px 8px; }
.team-strip p, .team-strip strong, .team-strip small { display: block; margin: 0; }
.team-strip small { color: var(--muted); margin-top: 2px; font-size: 11px; }

.schedule-stack { display: flex; flex-direction: column; gap: 27px; }
.schedule-card { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; box-shadow: var(--shadow); }
.schedule-card > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 21px 25px; border-bottom: 1px solid var(--line); }
.schedule-card header h2 { font-size: 28px; }
.schedule-card header p { margin: 4px 0 0; font-size: 13px; }
.date-block { width: 60px; height: 63px; border-radius: 8px; display: grid; place-content: center; text-align: center; background: var(--green); color: white; }
.date-block strong { font-family: Newsreader, serif; font-size: 28px; line-height: 1; }
.date-block span { font-size: 9px; text-transform: uppercase; }
.count { color: var(--muted); font-size: 12px; }
.schedule-table .table-head { grid-template-columns: 1fr 1.3fr 1fr; }
.schedule-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 24px; align-items: center; padding: 16px 25px; border-top: 1px solid var(--line); }
.schedule-row:first-of-type { border: 0; }
.schedule-row > span { display: flex; align-items: center; gap: 8px; }
.schedule-row i { width: 8px; height: 8px; background: var(--group-color); border-radius: 50%; }
.schedule-row small { color: var(--muted); display: block; margin-left: 5px; }
.schedule-row b { color: var(--rust); }
.empty-line { margin: 0; padding: 25px; text-align: center; }
.grouped-overview { display: grid; gap: 14px; }
.overview-group { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.overview-group > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; background: #eef0ea; border-bottom: 1px solid var(--line); }
.overview-group > header > div { display: flex; align-items: center; gap: 12px; }
.teacher-chip { display: inline-flex; padding: 5px 9px; border-radius: 4px; background: #dfe9e3; color: var(--green); font-size: 11px; font-weight: 700; }
.group-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; min-height: 55px; padding: 8px 18px; border-top: 1px solid var(--line); }
.group-row:first-child { border: 0; }
.group-row.head { min-height: 34px; background: #fafaf7; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.group-row > span { display: flex; align-items: center; gap: 10px; }
.group-row .avatar { font-style: normal; }
.group-row > b { color: var(--rust); }
.appointment-groups { display: grid; gap: 12px; padding: 14px; }
.appointment-group { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.appointment-group > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 14px; background: #f4f5f1; }
.appointment-group > header > div { display: flex; align-items: center; gap: 8px; }
.appointment-group > header i { width: 8px; height: 28px; background: var(--group-color); border-radius: 2px; }
.appointment-group > header small { color: var(--muted); font-size: 10px; }
.compact-schedule .table-head, .compact-schedule .schedule-row { grid-template-columns: 1fr 1fr; }

/* Read-only assignment tables */
.container.assignment-view-container { width: calc(100% - 24px); max-width: 1180px; padding: 20px 0 55px; }
.assignment-view-table-wrap { overflow-x: auto; border: 1px solid #cfd3d6; background: #fff; }
.assignment-view-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; }
.assignment-view-table th, .assignment-view-table td { padding: 11px 14px; text-align: left; }
.assignment-view-table th { border-bottom: 1px solid #cfd3d6; background: #f7f8f9; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.assignment-view-table th:nth-child(1), .assignment-view-table td:nth-child(1) { width: 30%; }
.assignment-view-table th:nth-child(2), .assignment-view-table td:nth-child(2) { width: 45%; }
.assignment-view-table th:nth-child(3), .assignment-view-table td:nth-child(3) { width: 25%; }
.assignment-view-table td { height: 56px; border-top: 1px solid #e2e5e3; font-size: 11px; vertical-align: middle; }
.assignment-view-table tbody tr:first-child td { border-top: 0; }
.assignment-view-table td strong, .assignment-view-table td small { display: block; }
.assignment-view-table td small { margin-top: 4px; color: var(--green); font-size: 9px; }
.assignment-view-table td small.teacher-missing { color: var(--rust); }
.assignment-view-table .empty-row td { height: 100px; color: var(--muted); text-align: center; }

/* Fast four-column planning workspace */
.internal-admin { background: #eef0f2; }
.internal-admin .site-header { position: static; height: 60px; background: #fff; backdrop-filter: none; }
.internal-admin .brand strong, .internal-admin h1, .internal-admin h2 { font-family: "DM Sans", sans-serif; letter-spacing: normal; }
.internal-admin .brand-mark { border-radius: 4px; font-family: "DM Sans", sans-serif; font-size: 17px; }
.internal-admin nav a, .internal-admin .button { border-radius: 2px; box-shadow: none; }
.internal-admin .section-head { margin: 24px 0 8px; }
.internal-admin .section-head h2 { font-size: 17px; }
.internal-admin .compact-list { border-radius: 2px; box-shadow: none; }
.internal-admin .create-dialog, .internal-admin .confirm-dialog { border-radius: 2px; }
.container.planning-container { width: calc(100% - 24px); max-width: none; min-width: 920px; padding: 20px 0 55px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-bottom: 12px; }
.admin-page-head h1 { font-size: 25px; line-height: 1.2; }
.admin-page-head p { margin: 4px 0 0; font-size: 12px; }
.planning-page-head { gap: 16px; flex-wrap: wrap; }
.day-switch, .teacher-page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.day-switch-form { display: flex; align-items: center; gap: 8px; }
.day-switch-form label { font-size: 11px; font-weight: 700; }
.day-switch-form input { min-height: 40px; padding: 7px 9px; border: 1px solid #b9c8bd; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
.day-switch-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #aebfb1; background: #edf4ed; color: var(--green); font-size: 20px; font-weight: 700; text-decoration: none; }
.day-switch-arrow:hover { background: #dcebdd; }
.assignment-view-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 10px 14px; }
.planning-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 12px 0 34px; }
.planning-intro h1 { font-size: clamp(38px, 4.5vw, 56px); }
.planning-intro p { margin: 14px 0 0; font-size: 15px; }
.planning-legend { display: flex; gap: 16px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.planning-legend span { display: flex; align-items: center; gap: 5px; }
.planning-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.planning-legend b { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); }
.planning-error { margin-bottom: 18px; padding: 15px 18px; border-left: 4px solid var(--rust); border-radius: 6px; background: #f8e8e2; color: #843c32; }
.planning-error strong, .planning-error span { display: block; }
.planning-error .errorlist { margin: 5px 0; }
.work-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 0; }
.work-column { min-width: 0; height: clamp(460px, calc(100vh - 238px), 650px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #cfd3d6; border-radius: 2px; box-shadow: none; }
.work-column > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 70px; padding: 12px; border-top: 0; border-bottom: 1px solid #cfd3d6; background: #f7f8f9; }
.work-column header > div:first-child { position: relative; padding-left: 25px; }
.work-column header h2 { font-size: 16px; line-height: 1.1; font-weight: 700; }
.work-column header small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.column-number { position: absolute; left: 0; top: 2px; color: #aab3ad; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.column-actions { display: flex; gap: 5px; }
.square-button { width: 29px; height: 29px; display: grid; place-items: center; padding: 0 0 2px; border: 1px solid #bfc5c1; border-radius: 2px; background: white; color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; }
.square-button:hover { border-color: var(--green); color: var(--green); background: #eef4f0; }
.square-button.remove:hover, .work-column.deleting .square-button.remove { border-color: var(--rust); color: var(--rust); background: #f8e9e3; }
.column-search { display: flex; align-items: center; gap: 7px; margin: 8px; padding: 0 8px; border: 1px solid #d8dcdf; border-radius: 2px; background: #fff; color: var(--muted); }
.column-search input { width: 100%; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.delete-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 8px 7px; padding: 6px; background: #f7e9e4; border-radius: 2px; }
.delete-toolbar[hidden] { display: none; }
.delete-toolbar button { min-height: 28px; border: 0; border-radius: 4px; background: transparent; color: var(--rust); cursor: pointer; font-size: 10px; font-weight: 700; }
.delete-toolbar button:hover { background: rgba(156,90,60,.09); }
.delete-toolbar .delete-selected { background: var(--rust); color: white; }
.delete-toolbar .delete-selected:disabled { opacity: .35; cursor: default; }
.delete-toolbar [data-cancel-delete] { grid-column: 1 / -1; color: var(--muted); }
.work-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; scrollbar-width: thin; scrollbar-color: #cbd1cc transparent; }
.work-item { position: relative; }
.assign-choice { position: absolute; opacity: 0; pointer-events: none; }
.work-item > label { min-height: 50px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 1px 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .12s, border-color .12s; }
.work-item > label:hover { background: #f2f4ef; border-color: #e4e7e1; }
.assign-choice:focus-visible + label { outline: 2px solid var(--green); outline-offset: 1px; }
.assign-choice:checked + label { background: #e7efe9; border-color: #9fb5a8; box-shadow: inset 3px 0 var(--green); }
.work-item.guest-plan-vm > label { background: linear-gradient(90deg, #dcebe4 0 50%, #fff 50%); }
.work-item.guest-plan-nm > label { background: linear-gradient(90deg, #fff 0 50%, #f1e3d2 50%); }
.work-item.guest-plan-both > label { background: linear-gradient(90deg, #dcebe4 0 50%, #f1e3d2 50%); }
.work-item.guest-plan-vm > label:hover, .work-item.guest-plan-nm > label:hover, .work-item.guest-plan-both > label:hover { border-color: #aebcb4; }
.work-item.guest-plan-vm .assign-choice:checked + label, .work-item.guest-plan-nm .assign-choice:checked + label, .work-item.guest-plan-both .assign-choice:checked + label { border-color: var(--green); box-shadow: inset 3px 0 var(--green), inset 0 0 0 1px var(--green); }
.work-item label > span:nth-child(2) { min-width: 0; }
.work-item label strong, .work-item label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-item label strong { font-size: 12px; }
.work-item label small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.work-item label .day-counts { display: flex; flex-wrap: wrap; gap: 3px 6px; overflow: visible; white-space: normal; line-height: 1.3; }
.day-counts > span { padding: 1px 3px; white-space: nowrap; }
.day-counts > .selected-day { border-radius: 3px; background: #d5e9d9; color: #214d32; font-weight: 800; box-shadow: inset 0 0 0 1px #87b193; }
.selected-day-termin > label { border-left: 3px solid var(--green) !important; }
.work-item label .group-details { overflow: visible; white-space: normal; }
.work-item label .guest-plan-status { display: flex; gap: 4px; align-items: center; }
.guest-plan-status b { padding: 1px 4px; border: 1px solid currentColor; border-radius: 2px; font-size: 7px; line-height: 1.2; }
.guest-plan-status b.vm { color: #315c4b; background: #eff7f2; }
.guest-plan-status b.nm { color: #96682f; background: #fff8ee; }
.selected-mark { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 10px; font-style: normal; opacity: 0; transform: scale(.6); transition: .12s; }
.assign-choice:checked + label .selected-mark { opacity: 1; transform: scale(1); }
.group-dot { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--item-color), white 78%); border-left: 5px solid var(--item-color); }
.mini-date { width: 34px; height: 38px; display: grid; place-content: center; text-align: center; border-radius: 6px; background: #e5ecee; color: var(--blue); }
.mini-date b { font-family: Newsreader, serif; font-size: 17px; line-height: .9; }
.mini-date small { margin: 2px 0 0 !important; font-size: 7px !important; text-transform: uppercase; }
.slot-badge { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 2px; background: #e5ecee; color: var(--blue); font-size: 12px; font-weight: 700; }
.horse-badge { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f1e3dc; color: var(--rust); font-size: 18px; }
.delete-choice { display: none; position: absolute; right: 10px; top: 50%; width: 18px; height: 18px; accent-color: var(--rust); transform: translateY(-50%); z-index: 2; cursor: pointer; }
.work-column.deleting .delete-choice { display: block; }
.work-column.deleting .work-item > label { padding-right: 38px; }
.work-column.deleting .selected-mark { display: none; }
.work-column.deleting .work-item:has(.delete-choice:checked) > label { background: #f8e9e3; border-color: #d7a994; }
.column-empty { padding: 45px 12px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.7; }
.selection-dock { position: sticky; bottom: 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 6px; padding: 9px 10px; border: 1px solid #aeb8b2; border-radius: 2px; background: #fff; box-shadow: none; backdrop-filter: none; }
.selection-summary { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 10px; }
.selection-summary > span { min-width: 0; }
.selection-summary small, .selection-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selection-summary small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.selection-summary strong { max-width: 145px; margin-top: 2px; font-size: 11px; }
.selection-summary > i { color: #adb5b0; font-style: normal; }
.planning-teacher { flex: 0 0 170px; padding-left: 14px; border-left: 1px solid var(--line); }
.planning-teacher small, .planning-teacher strong { display: block; }
.planning-teacher small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.planning-teacher strong { margin-top: 2px; font-size: 11px; }
.planning-teacher strong.open { color: var(--rust); }
.selection-dock .button { flex: 0 0 auto; }
.selection-dock .button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
dialog { color: var(--ink); }
.create-dialog, .confirm-dialog { width: min(540px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 28px 90px rgba(26,39,32,.3); }
.create-dialog::backdrop, .confirm-dialog::backdrop { background: rgba(27,38,32,.55); backdrop-filter: blur(3px); }
.create-dialog > header { display: flex; align-items: start; justify-content: space-between; padding: 24px 26px 16px; border-bottom: 1px solid var(--line); }
.create-dialog > header h2 { font-size: 29px; }
.create-dialog > header button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 27px; }
.create-dialog > form { padding: 4px 26px 25px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.button.danger { background: var(--rust); color: white; }
.confirm-dialog { padding: 30px; text-align: center; }
.confirm-dialog h2 { margin-top: 12px; }
.confirm-dialog p { margin: 8px 0; }
.confirm-dialog .dialog-actions { justify-content: center; }
.warning-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: #f5dfd7; color: var(--rust); font-family: Newsreader, serif; font-size: 28px; font-weight: 700; }
.delete-warning { min-height: 18px; color: var(--rust); font-size: 11px; }

/* Instructor timeline */
.container.teacher-admin-container { width: calc(100% - 24px); max-width: none; min-width: 920px; padding: 20px 0 60px; }
.teacher-page-head { margin-bottom: 12px; }
.teacher-timeline-shell { overflow-x: auto; border: 1px solid #c9ced1; background: #fff; }
.timeline-phases, .teacher-timeline { min-width: 900px; display: grid; grid-template-columns: repeat(var(--timeline-columns), minmax(220px, 1fr)); }
.timeline-phases { border-bottom: 1px solid #bfc5c8; }
.timeline-phase { padding: 8px 12px; color: #48545b; font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.timeline-phase.phase-0 { background: #dfe9ee; }
.timeline-phase.phase-1 { background: #eee2d2; border-left: 5px solid #b48953; }
.timeline-phase.phase-2 { background: #e7e7e7; border-left: 5px solid #8b9296; }
.timeline-column { min-width: 0; min-height: 510px; border-left: 1px solid #d7dbdd; background: #fafbfb; }
.timeline-column:first-child { border-left: 0; }
.timeline-column.phase-0 { background: #f5f8fa; }
.timeline-column.phase-1 { background: #fbf8f3; }
.timeline-column.phase-start { border-left: 5px solid #b48953; }
.timeline-column > header { min-height: 62px; padding: 12px; border-bottom: 1px solid #d7dbdd; background: rgba(255,255,255,.78); }
.timeline-column > header strong, .timeline-column > header small { display: block; }
.timeline-column > header strong { font-size: 14px; }
.timeline-column > header small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.timeline-groups { display: flex; flex-direction: column; gap: 7px; padding: 9px; }
.timeline-group-card { border: 1px solid #cbd1d4; background: #fff; }
.timeline-group { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 11px; border: 1px solid #cbd1d4; border-radius: 2px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.timeline-group-card .timeline-group { border: 0; }
.timeline-group:hover { border-color: #789184; background: #f6faf7; }
.timeline-group[aria-pressed="true"] { border-color: var(--green); background: #e6efe9; box-shadow: inset 4px 0 var(--green); }
.timeline-group > strong { font-size: 12px; }
.timeline-group > small { color: var(--muted); font-size: 9px; text-align: right; }
.timeline-group-location { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.timeline-check { position: absolute; top: 7px; right: 7px; width: 17px; height: 17px; display: none; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 9px; }
.timeline-group[aria-pressed="true"] .timeline-check { display: grid; }
.timeline-group[aria-pressed="true"] > small { visibility: hidden; }
.timeline-teacher { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; min-height: 24px; margin-top: 5px; padding-top: 7px; border-top: 1px solid #e2e5e3; font-size: 10px; font-weight: 700; }
.timeline-teacher i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #dfe8df; color: var(--green); font-size: 8px; font-style: normal; }
.timeline-teacher.open { color: var(--rust); font-weight: 600; }
.split-group-control { padding: 5px 7px; border-top: 1px solid #e2e5e3; background: #f7f8f9; }
.split-group-toggle { padding: 3px 7px; border: 1px solid #aeb8b2; background: #fff; color: var(--green); cursor: pointer; font-size: 8px; font-weight: 700; }
.split-group-toggle:hover { border-color: var(--green); background: #edf3ef; }
.split-group-form { display: flex; align-items: center; gap: 5px; }
.split-group-form[hidden] { display: none; }
.split-group-form label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 700; }
.split-group-form input { width: 38px; height: 25px; padding: 2px 3px; border: 1px solid #bfc5c1; background: #fff; font-size: 9px; }
.split-group-form button { height: 25px; padding: 0 7px; border: 1px solid #9da9a2; background: #fff; color: var(--green); cursor: pointer; font-size: 8px; font-weight: 700; }
.split-group-form button:hover { border-color: var(--green); background: #edf3ef; }
.split-group-form .split-group-cancel { margin-left: auto; border-color: transparent; background: transparent; color: var(--muted); }
.timeline-empty { margin: 30px 8px; color: #9ba2a5; font-size: 11px; text-align: center; }
.timeline-assignment-bar { position: sticky; bottom: 0; z-index: 8; display: grid; grid-template-columns: 1fr auto minmax(220px, 320px) auto; align-items: center; gap: 10px; margin-top: 7px; padding: 10px 12px; border: 1px solid #aeb8b2; background: #fff; }
.timeline-assignment-bar > strong { font-size: 12px; }
.timeline-assignment-bar label { color: var(--muted); font-size: 10px; font-weight: 700; }
.timeline-assignment-bar select { height: 38px; padding: 0 10px; border: 1px solid #bfc5c1; background: white; }
.timeline-assignment-bar button:disabled { opacity: .4; cursor: not-allowed; }
.day-timeline-shell .timeline-column { min-height: 510px; }
.day-groups { display: flex; flex-direction: column; gap: 8px; padding: 9px; }
.day-group { overflow: hidden; border: 1px solid #cbd1d4; background: #fff; }
.day-group > header { padding: 9px 10px; border-bottom: 1px solid #e2e5e3; background: #f7f8f6; }
.day-group > header strong { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.day-group > header strong i { width: 4px; height: 20px; flex: 0 0 auto; background: var(--group-color); }
.day-group > header small { display: block; margin: 5px 0 0 11px; color: var(--green); font-size: 9px; font-weight: 700; }
.day-group > header small.open { color: var(--rust); }
.day-riders > div { min-height: 35px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid #eceeed; }
.day-riders > div:first-child { border-top: 0; }
.day-riders span, .day-riders b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.day-riders b { color: var(--rust); }

@media (max-width: 800px) {
    .site-header { height: auto; min-height: 70px; padding: 12px 20px; }
    .brand small { display: none; }
    nav { overflow-x: auto; max-width: calc(100vw - 85px); }
    nav a { white-space: nowrap; font-size: 12px; padding: 8px 9px; }
    .container { width: min(100% - 24px, 1180px); padding-top: 35px; }
    .hero, .page-intro { align-items: start; flex-direction: column; padding-top: 10px; }
    .stats { grid-template-columns: 1fr; }
    .stats article { border-right: 0; border-bottom: 1px solid var(--line); }
    .section-head { align-items: start; flex-direction: column; }
    .filter, .filter select { width: 100%; }
    .table-head { display: none; }
    .assignment-row { grid-template-columns: 1fr; gap: 16px; }
    .assignment-row > div { padding-bottom: 12px; border-bottom: 1px solid #ecece7; }
    .assignment-row > div:last-child { padding: 0; border: 0; }
    .create-grid, .assign-panel, .teacher-layout { grid-template-columns: 1fr; }
    .assign-panel { gap: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .field { grid-column: 1; }
    .compact-list > div { grid-template-columns: auto 1fr; }
    .compact-list > div span:not(.avatar), .compact-list > div b { grid-column: 2; }
    .popover { width: 100%; }
    .popover summary { width: 100%; }
    .popover form { position: static; width: 100%; margin-top: 8px; }
    .sticky-panel { position: static; }
    .teacher-list article { grid-template-columns: auto 1fr; }
    .inline-teacher, .status-open { grid-column: 2; }
    .inline-teacher select { width: 100%; max-width: none; }
    .schedule-card > header { grid-template-columns: auto 1fr; }
    .schedule-card .count { grid-column: 2; }
    .schedule-row { grid-template-columns: 1fr; gap: 8px; }
    .nav-dropdown { flex: 0 0 auto; }
    .nav-dropdown summary { white-space: nowrap; padding: 8px 9px; font-size: 12px; }
    .nav-dropdown-menu { position: fixed; top: 65px; right: 12px; }
    .planning-intro { align-items: start; flex-direction: column; }
    .planning-legend { display: none; }
    .work-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .work-column { height: 520px; }
    .selection-dock { align-items: stretch; flex-direction: column; bottom: 6px; }
    .selection-summary { display: grid; grid-template-columns: 1fr 1fr; }
    .selection-summary > i { display: none; }
    .selection-summary strong { max-width: 100%; }
    .planning-teacher { flex-basis: auto; border-left: 0; padding-left: 0; }
}

@media print {
    body { background: white; }
    .site-header, footer, .no-print { display: none !important; }
    .container { width: 100%; padding: 0; }
    .page-intro { padding: 0 0 25px; }
    .schedule-card { break-inside: avoid; box-shadow: none; }
}

/* Landing and sign in */
.landing-page, .guest-area { min-height: 100vh; background: #f3f2ed; }
.landing-header { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 27px 32px; }
.landing-header-link { color: var(--green); font-size: 13px; font-weight: 700; }
.container.landing-container { width: min(1040px, calc(100% - 64px)); min-height: 0; padding: clamp(45px, 8vh, 95px) 0 80px; }
.landing-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .85fr); align-items: start; gap: clamp(40px, 7vw, 110px); }
.landing-copy h1 { font-size: clamp(43px, 5vw, 62px); line-height: 1.08; }
.landing-copy > p { max-width: 540px; margin: 24px 0 30px; font-size: 16px; line-height: 1.7; }
.landing-note { max-width: 530px; padding: 16px 18px; border-left: 3px solid var(--green); background: #e9ede6; }
.landing-note strong { font-size: 13px; }
.landing-note p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
.landing-credit { display: block; margin-top: 27px; color: var(--muted); font-size: 11px; }
.landing-header .brand-mark { width: 42px; height: 42px; border-radius: 5px; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; }
.login-panel { padding: clamp(26px, 4vw, 38px); border: 1px solid #d7ddd4; border-radius: 7px; background: var(--paper); box-shadow: 0 8px 24px rgba(33, 53, 40, .05); }
.login-panel h2 { font-size: 35px; }
.login-panel > p { margin: 9px 0 26px; font-size: 13px; line-height: 1.5; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 10px; color: var(--ink); font-size: 11px; font-weight: 700; }
.login-form input { height: 44px; padding: 0 12px; border: 1px solid #cbd4cc; border-radius: 6px; background: #fff; color: var(--ink); }
.login-form input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.login-form button { margin-top: 21px; }
.login-error { padding: 9px 12px; border-left: 3px solid var(--rust); background: #f9eae4; color: #843c32; font-size: 12px; }
.login-error .errorlist { margin: 0; }
.login-logout { display: block; margin: 18px auto 0; padding: 6px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.login-help { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.nav-logout { display: flex; align-items: center; margin-left: 8px; }
.nav-logout button { padding: 9px 12px; border: 0; border-radius: 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.nav-logout button:hover { background: #e5ebe5; color: var(--green); }

/* Clear planning selections */
.work-board { gap: 10px; }
.work-column { border-color: #bdc8c2; border-radius: 5px; box-shadow: 0 4px 12px rgba(39, 58, 47, .05); }
.work-column > header { background: #edf3ee; border-bottom-color: #c8d5cb; }
.work-column header h2 { font-size: 17px; }
.column-number { top: 1px; color: var(--green); font-size: 11px; }
.square-button { width: 31px; height: 31px; }
.work-item { margin-bottom: 5px; }
.work-item > label { min-height: 56px; border-color: #dbe2dc; border-radius: 4px; background: #fff; }
.work-item > label:hover { border-color: #92aa99; background: #f3f8f3; }
.assign-choice:checked + label { border-color: var(--green); background: #dfeee3; box-shadow: inset 4px 0 var(--green), 0 0 0 1px var(--green); }
.work-item label strong { font-size: 13px; }
.work-item label small { font-size: 10px; }
.selection-dock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto; gap: 11px 18px; padding: 14px 18px; border: 2px solid #6e947a; border-radius: 6px; box-shadow: 0 10px 30px rgba(37, 63, 46, .16); }
.selection-dock-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #d7e2d9; }
.selection-dock-heading strong { color: var(--green); font-size: 14px; }
.selection-dock-heading span { color: var(--muted); font-size: 11px; font-weight: 700; }
.selection-summary { display: grid; grid-template-columns: repeat(7, auto); gap: 7px; }
.selection-summary > span { min-width: 0; padding: 7px 9px; border: 1px solid #d9e0d9; border-radius: 4px; background: #f6f8f4; }
.selection-summary > span.complete { border-color: #a7c5af; background: #e8f2e9; }
.selection-summary small { color: #537365; font-size: 9px; }
.selection-summary strong { max-width: 165px; font-size: 12px; }
.selection-summary > i { font-size: 14px; }
.planning-teacher { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: 16px; border-left: 1px solid #d7e2d9; }
.planning-teacher small { font-size: 9px; }
.planning-teacher strong { font-size: 12px; }
.planning-teacher a { margin-top: 4px; color: var(--green); font-size: 10px; font-weight: 700; }
.selection-dock .button { min-height: 48px; }

/* Group blocks in the printable VM and NM views */
.assignment-view-table { border-collapse: separate; border-spacing: 0; }
.assignment-view-table tbody.assignment-group tr.assignment-group-head th { width: auto; padding: 12px 15px; border-top: 14px solid #eef0f2; border-bottom: 1px solid #d5ded6; border-left: 6px solid var(--group-color); background: color-mix(in srgb, var(--group-color), white 91%); color: var(--ink); text-align: left; }
.assignment-group-title { display: inline-block; margin-right: 16px; font-size: 14px; font-weight: 700; }
.assignment-group-meta { margin-right: 16px; color: var(--muted); font-size: 11px; font-weight: 600; }
.assignment-group-teacher { color: var(--green); font-size: 11px; font-weight: 700; }
.assignment-group-teacher.teacher-missing { color: var(--rust); }
.assignment-view-table .assignment-group-rider td { height: 48px; border-top: 1px solid #e5ebe5; background: #fff; }
.assignment-view-table .assignment-group-rider td:first-child { border-left: 6px solid var(--group-color); }
.assignment-group-context { color: var(--muted); font-size: 10px; }
.timeline-group-card, .day-group { border-left: 5px solid var(--group-color); box-shadow: 0 3px 9px rgba(31, 48, 39, .05); }
.timeline-group-card + .timeline-group-card, .day-group + .day-group { margin-top: 4px; }
.timeline-group-card .timeline-group { background: color-mix(in srgb, var(--group-color), white 96%); }
.day-group > header { background: color-mix(in srgb, var(--group-color), white 94%); }
.timeline-group[data-open-group] { min-height: 89px; }
.timeline-group[data-open-group]:hover { background: color-mix(in srgb, var(--group-color), white 89%); }
.timeline-group[data-open-group]::after { content: 'Bearbeiten ›'; grid-column: 1 / -1; margin-top: 3px; color: var(--green); font-size: 10px; font-weight: 700; }
.group-edit-dialog { width: min(600px, calc(100% - 28px)); max-height: calc(100vh - 36px); overflow-y: auto; }
.group-location-form { border-bottom: 1px solid var(--line); }
.group-teacher-form label { display: block; margin: 13px 0 7px; font-size: 12px; font-weight: 700; }
.group-teacher-form select { width: 100%; min-height: 43px; padding: 8px 11px; border: 1px solid #b9c8bd; border-radius: 4px; background: #fff; color: var(--ink); }
.group-member-section, .group-split-section { padding: 16px 26px 20px; border-top: 1px solid var(--line); }
.group-member-section h3 { margin: 0 0 12px; font-size: 13px; }
.group-member-list { margin: 0; padding: 0; list-style: none; }
.group-member-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-top: 1px solid #e6eae5; }
.group-member-list li:first-child { border-top: 0; }
.group-member-list strong, .group-member-list small { display: block; }
.group-member-list strong { font-size: 12px; }
.group-member-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.group-member-list button { padding: 6px 9px; border: 1px solid #d9b4a3; border-radius: 3px; background: #fff8f4; color: var(--rust); cursor: pointer; font-size: 10px; font-weight: 700; }
.group-member-list button:hover { background: #f5e3d9; }
.group-split-section[hidden] { display: none; }
.group-split-section .split-group-toggle { padding: 8px 10px; font-size: 11px; }
.group-split-section .split-group-form { margin-top: 10px; }
.group-split-section .split-group-form label { font-size: 10px; }
.group-split-section .split-group-form input { width: 52px; }
.group-split-section .split-group-form button { font-size: 10px; }
.confirm-symbol { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: #e0ede3; color: var(--green); font-size: 23px; font-weight: 700; }
.confirm-selection { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; text-align: left; }
.confirm-selection div { min-width: 0; padding: 10px 12px; border: 1px solid #dde7de; border-radius: 4px; background: #f5f8f4; }
.confirm-selection dt { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.confirm-selection dd { overflow-wrap: anywhere; margin: 4px 0 0; font-size: 12px; font-weight: 700; }

@media (max-width: 1000px) {
    .container.planning-container { min-width: 0; width: calc(100% - 24px); }
    .work-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-column { height: 390px; }
    .selection-dock { grid-template-columns: 1fr auto; }
    .selection-summary { grid-column: 1 / -1; }
    .planning-teacher { padding-left: 0; border-left: 0; }
}

@media (max-width: 700px) {
    .landing-header { flex-wrap: wrap; gap: 12px; padding: 20px; }
    .container.landing-container { width: calc(100% - 40px); padding-top: 35px; }
    .landing-layout { grid-template-columns: 1fr; gap: 35px; }
    .landing-copy h1 { font-size: 48px; }
    .landing-copy p { font-size: 15px; }
    .work-board { grid-template-columns: 1fr; }
    .work-column { height: 350px; }
    .assignment-group-title, .assignment-group-meta, .assignment-group-teacher { display: block; margin: 2px 0; }
    .selection-dock { position: static; grid-template-columns: 1fr; padding: 10px; }
    .selection-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .selection-summary > i { display: none; }
    .selection-dock .button { width: 100%; }
}

/* Personal guest schedule */
.container.guest-container { width: min(920px, calc(100% - 36px)); padding-top: 50px; }
.guest-page-head { margin-bottom: 25px; }
.guest-area .brand-mark { border-radius: 5px; font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; }
.guest-page-head h1 { font-size: clamp(36px, 5vw, 52px); }
.guest-page-head p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; }
.guest-assignments { display: grid; gap: 15px; }
.guest-assignment { display: grid; grid-template-columns: 125px minmax(0, 1fr); overflow: hidden; border: 1px solid #d6ddd5; border-left: 5px solid var(--group-color); border-radius: 7px; background: #fff; }
.guest-assignment-date { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 18px 12px; border-right: 1px solid #e3e8e1; background: #f2f5ef; text-align: center; }
.guest-assignment-date strong { font-family: Newsreader, serif; font-size: 42px; line-height: 1; }
.guest-assignment-date span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.guest-assignment-content { padding: 20px 24px; }
.guest-assignment-content h2 { font-size: 25px; }
.guest-assignment-content > p { margin: 5px 0 16px; font-size: 12px; }
.guest-assignment-content dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.guest-assignment-content dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.guest-assignment-content dd { margin: 5px 0 0; font-size: 13px; font-weight: 700; }
.guest-empty { padding: 30px; border: 1px solid #d6ddd5; border-radius: 7px; background: #fff; }
.guest-empty h2 { font-size: 24px; }
.guest-empty p { margin-bottom: 0; }
@media (max-width: 600px) {
    .guest-assignment { grid-template-columns: 1fr; }
    .guest-assignment-date { align-items: baseline; flex-direction: row; gap: 9px; border-right: 0; border-bottom: 1px solid #e3e8e1; }
    .guest-assignment-date strong { font-size: 26px; }
    .guest-assignment-date span { margin-top: 0; }
    .guest-assignment-content dl { grid-template-columns: 1fr; gap: 10px; }
}

@media print {
    .assignment-view-table tbody.assignment-group tr.assignment-group-head th { border-top-color: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .assignment-view-table .assignment-group-rider td:first-child { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
