:root { color-scheme: light; font-family: system-ui, "Yu Gothic", sans-serif; color: #29383c; background: #f8f5ed; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; }
header, main, footer { max-width: 1280px; margin: auto; padding: 24px; }
header { border-bottom: 1px solid #d8d2c5; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.app-header { position: sticky; top: 0; z-index: 100; background: #f8f5ed; box-shadow: 0 2px 6px rgb(41 56 60 / 8%); }
.header-left { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; min-width: 0; }
.header-nav { font-size: .85rem; gap: 8px 16px; }
.header-nav a { white-space: nowrap; }
.header-session { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; margin-left: auto; min-width: 0; max-width: 100%; font-size: .85rem; }
.header-account { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.header-session form { margin: 0; }
.notification-menu { position: relative; margin: 0; }
.notification-menu > summary { display: flex; align-items: center; gap: 5px; list-style: none; padding: 6px 8px; border: 1px solid #b3c7c0; border-radius: 6px; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-menu svg { width: 22px; height: 22px; }
.notification-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; padding: 1px 4px; border-radius: 999px; background: #a33232; color: #fff; font-size: .8rem; }
.notification-count[hidden] { display: none; }
.notification-popover { position: absolute; right: 0; top: calc(100% + 8px); width: min(350px,calc(100vw - 48px)); padding: 16px; border: 1px solid #d8d2c5; border-radius: 8px; background: #fffdf8; box-shadow: 0 6px 24px rgb(0 0 0 / 15%); max-height: 70vh; overflow-y: auto; }
.notification-popover h2 { margin: 0 0 10px; }
.notification-popover ul { padding: 0; margin: 0; list-style: none; }
.notification-popover li { padding-block: 10px; border-bottom: 1px solid #d8d2c5; overflow-wrap: anywhere; }
.notification-popover a { display: block; }
.notification-popover small, .message-list small { display: block; color: #58686a; }
.notification-popover nav { margin-top: 12px; }
.notification-state { font-size: .8em; }
.message-list a { display: block; overflow-wrap: anywhere; }
.message-body { overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; }
.message-thread h3 { margin-top: 0; }
.message-pagination { display: flex; flex-wrap: wrap; gap: 20px; margin-block: 20px; }
@media (max-width: 600px) {
  .notification-popover { position: fixed; left: 16px; right: 16px; width: auto; max-height: 60vh; }
}
.header-session button { padding: 6px 12px; white-space: nowrap; }
.brand { font-weight: 750; font-size: 1.35rem; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
a { color: #196157; text-underline-offset: 4px; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
section { margin-block: 24px; }
.panel, .records > li { background: #fffdf8; padding: 20px; margin: 16px 0; border: 1px solid #d8d2c5; border-radius: 8px; }
label { display: block; margin: 10px 0; font-weight: 600; }
input, select, textarea { display: block; width: 100%; max-width: 500px; padding: 10px; border: 1px solid #899a9e; border-radius: 4px; font: inherit; color: inherit; background: white; }
.password-field { margin: 10px 0; }
.password-field > label { margin-bottom: 6px; }
.password-count { margin: 6px 0 0; font-size: .9rem; line-height: 1.5; }
.password-count[data-state="valid"] { color: #17653d; }
.password-count[data-state="invalid"] { color: #a12828; }
.password-count[data-state="neutral"] { color: #58686a; }
.password-input { position: relative; max-width: 500px; }
.password-input > input { min-width: 0; }
.password-input.is-enhanced > input { padding-right: 5.25rem; }
.password-actions { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 4px; }
.password-actions[hidden] { display: none; }
.password-actions > button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: #315f58; }
.password-actions > button:hover { background: #e4eeea; }
.password-actions svg { width: 100%; height: 100%; pointer-events: none; }
.password-eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .password-eye-slash { display: initial; }
.password-input > input::-ms-reveal, .password-input > input::-ms-clear { display: none; }
textarea { max-width: 800px; }
button { padding: 10px 18px; border: 1px solid #175c50; border-radius: 4px; background: #175c50; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #10473e; }
:focus-visible { outline: 3px solid #bf7900; outline-offset: 3px; }
.secondary { background: white; color: #175c50; }
.secondary:hover { color: white; }
.danger { background: #913734; border-color: #913734; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; }
.fields, .filters, .week-nav { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.fields > label { flex: 1 1 180px; }
.filters { margin-block: 24px; }
.filters label { margin: 0; }
.week-nav { justify-content: space-between; align-items: center; }
.week { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); overflow-x: auto; gap: 10px; }
.day { margin: 0; background: #fffcf5; border: 1px solid #d8d2c5; padding: 10px; border-radius: 6px; }
.day h3 { margin-top: 0; }
.slot { padding: 8px; margin-bottom: 8px; border-radius: 4px; }
.slot span, .slot strong { display: block; font-size: .9rem; }
.available { background: #e2f1e7; color: #15583b; }
.unavailable { background: #eeece7; color: #5c6260; }
.notice { border-left: 4px solid #b18733; padding: 12px 16px; background: #fff2ce; }
.error { color: #8f2020; padding: 12px; border: 1px solid; background: #fff2f0; }
.records { list-style: none; padding: 0; }
.records form { margin-top: 12px; }
.details { overflow-wrap: anywhere; }
.profile-photo { display: block; max-width: min(240px, 100%); max-height: 320px; object-fit: contain; margin: 16px 0; }
fieldset { margin: 16px 0; border: 1px solid #b3aaa0; border-radius: 4px; padding: 16px; }
.profile-review { padding: 20px; margin: 24px 0; border: 2px solid #b18733; background: #fff9e9; }
.profile-visibility { margin: 20px 0; padding-block: 12px; border-block: 1px solid #d8d2c5; }
details { margin-block: 16px; }
summary { cursor: pointer; font-weight: 650; }
dt { font-weight: 650; margin-top: 12px; }
dd { margin-left: 0; overflow-wrap: anywhere; }
.date-picker { max-width: 600px; }
.event-entry-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; align-items: start; margin-block: 16px; }
.event-entry-layout > .date-picker, .event-entry-layout > form { min-width: 0; margin: 0; }
.event-entry-layout > form textarea { resize: vertical; }
.event-selected-date { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #d8d2c5; }
.event-teacher-course { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px 16px; margin: 10px 0; }
.event-teacher-course > label { min-width: 0; margin: 0; }
.event-teacher-course select { width: 100%; max-width: none; min-width: 0; }
@media (min-width: 600px) {
  .event-teacher-course { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
}
@media (min-width: 1100px) {
  .event-entry-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .event-entry-layout > .date-picker { width: 100%; max-width: none; }
  .event-entry-layout > .date-picker.can-stick { position: sticky; top: var(--event-header-offset, 100px); }
}
.date-picker-toolbar { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.date-picker-toolbar label { flex: 1 1 170px; margin: 0; }
.date-picker-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px; margin-top: 16px; }
.date-picker-table caption { font-weight: 700; font-size: 1.2rem; padding: 10px; }
.date-picker-table th { text-align: center; padding: 4px 0; }
.date-picker-table td { padding: 0; }
.date-picker-table button { width: 100%; min-height: 42px; padding: 8px 0; border-color: transparent; background: #f0eee7; color: #29383c; }
.date-picker-table button.is-working-day { background: #e1ebe4; }
.date-picker-table button:hover { background: #dceae1; }
.date-picker-table button[aria-pressed="true"] { background: #175c50; color: white; }
.date-picker-table button.is-today { border-color: #175c50; }
.calendar-day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7em; min-height: 1.7em; border: 2px solid transparent; border-radius: 50%; box-sizing: border-box; }
.is-today .calendar-day-number { border-color: currentColor; font-weight: 700; }
.calendar-picker-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .85rem; }
.calendar-picker-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.calendar-picker-legend i { display: inline-block; flex: 0 0 auto; width: 2.5em; height: 1.5em; border: 1px solid #a6b5ad; border-radius: 4px; }
.calendar-key-working { background: #e1ebe4; }
.calendar-key-regular { background: #f0eee7; }
.calendar-key-selected { background: #175c50; }
.calendar-picker-legend .calendar-key-today { width: 1.5em; border: 2px solid #175c50; border-radius: 50%; }
.date-picker-toolbar button:disabled { opacity: .45; cursor: default; }
.event-clock { min-width: 0; }
.clock-inputs { display: flex; gap: 12px; }
.clock-inputs label { width: 5rem; margin: 0; }
.lesson-time-fields > label { margin: 0; }
.lesson-time-fields:has(.time-wheel) { align-items: flex-start; }
.clock-inputs > label[hidden] { display: none; }
.time-wheel { width: 5.5rem; }
.time-wheel[hidden] { display: none; }
.time-input-mode { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.time-input-mode button { padding: 6px 14px; font-size: .9rem; }
.time-input-mode button[aria-pressed="true"] { background: #175c50; color: #fff; }
.time-wheel > span { display: block; font-weight: 600; }
.time-wheel-options { height: 134px; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; padding-block: 44px; border: 1px solid #899a9e; border-radius: 8px; scrollbar-width: none; background: linear-gradient(to bottom, transparent 44px, #e4eeea 44px, #e4eeea 88px, transparent 88px), #fff; }
.time-wheel-options::-webkit-scrollbar { display: none; }
.time-wheel-options { cursor: grab; user-select: none; touch-action: pan-y; }
.time-wheel-options.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.time-wheel-options .time-wheel-option { cursor: inherit; }
.time-wheel-option { display: block; width: 100%; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #58686a; scroll-snap-align: center; font-weight: 500; }
.time-wheel-option:hover { background: #e4eeea; color: #175c50; }
.time-wheel-option[aria-selected="true"] { color: #175c50; font-weight: 750; }
.time-wheel-option:disabled { color: #a12828; opacity: .8; cursor: default; }
.muted, footer { color: #58686a; }
.admin-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.module-link { display: inline-block; padding: 10px 0; font-weight: 700; }
.module-placeholder:disabled { background: #e5e5e5; color: #505050; border-color: #bcbcbc; opacity: 1; cursor: not-allowed; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; border-bottom: 2px solid #175c50; }
.account-tabs a { padding: 12px 18px; text-decoration: none; border-radius: 6px 6px 0 0; }
.account-tabs a[aria-current="page"] { background: #175c50; color: #fff; font-weight: 700; }
.account-table-wrap { overflow-x: auto; }
.tuition-badge { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 4px; background: #fff0bf; color: #654c00; font-size: .85em; font-weight: 700; }
.schedule-month-wrap { overflow-x: auto; margin-top: 20px; }
.schedule-month { border-collapse: collapse; width: 100%; min-width: 840px; table-layout: fixed; }
.schedule-month caption { font-size: 1.2rem; font-weight: 700; padding: 12px; }
.schedule-month th, .schedule-month td { border: 1px solid #d8d2c5; text-align: center; padding: 0; }
.schedule-month th { background: #e4eeea; padding: 6px; }
.schedule-month td { vertical-align: top; }
.schedule-month td > a { display: flex; min-height: 100px; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; text-decoration: none; }
.schedule-month small { font-size: .75rem; }
.schedule-day-number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; }
.schedule-month .is-today .schedule-day-number { background: #175c50; color: #fff; font-weight: 750; box-shadow: 0 0 0 3px #dceee3; }
.schedule-today-label { color: #175c50; font-size: .75rem; font-weight: 750; line-height: 1.3; }
.schedule-month a[aria-current="date"] { box-shadow: inset 0 0 0 2px #175c50; }
.schedule-month a[aria-current="date"] .schedule-day-number { font-weight: 750; }
.schedule-counts { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; }
.schedule-count { display: block; max-width: 100%; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; background: #fffdf8; font-size: .75rem; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.schedule-course-0 { color: #2563a0; }
.schedule-course-1 { color: #854b9d; }
.schedule-course-2 { color: #226d70; }
.schedule-course-3 { color: #9b4e35; }
.schedule-course-4 { color: #326b3f; }
.schedule-course-5 { color: #505ca0; }
.schedule-course-6 { color: #9a3e65; }
.schedule-tuition { color: #8b610b; background: #fff8e5; border-style: dashed; }
.schedule-records > li { padding: 0; }
.schedule-tabs { flex-wrap: wrap; gap: 4px; }
.schedule-tabs a { font-size: .9rem; }
.schedule-record { margin: 0; }
.schedule-record > summary { display: flex; align-items: baseline; gap: 12px; padding: 16px; border-radius: 8px; list-style: none; }
.schedule-record > summary::-webkit-details-marker { display: none; }
.schedule-record > summary::before { content: '▶'; flex: 0 0 1em; color: #175c50; font-size: .8em; }
.schedule-record[open] > summary::before { content: '▼'; }
.schedule-record > summary:hover { background: #edf3ef; }
.schedule-record-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; min-width: 0; }
.schedule-record-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-record-student, .schedule-record-course { overflow-wrap: anywhere; }
.schedule-record-course { font-size: .9em; font-weight: 500; }
.schedule-payment-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 1.8em; height: 1.8em; border: 1px solid #8b610b; border-radius: 50%; background: #fff8e5; color: #8b610b; font-weight: 750; line-height: 1; vertical-align: middle; }
.schedule-record-details { padding: 0 20px 20px; border-top: 1px solid #d8d2c5; }
.schedule-record-details dl { margin-bottom: 0; }
.public-calendar-filters label { margin: 0; }
.public-calendar-selection { font-weight: 650; }
.public-calendar-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.public-day-state { display: inline-block; padding: 2px 7px; border: 1px solid currentColor; border-radius: 999px; font-size: .75rem; line-height: 1.5; font-weight: 650; }
.public-day-state.is-available { color: #17623c; background: #e7f4e9; }
.public-day-state.is-full { color: #88411f; background: #fff0e5; }
.public-day-state.is-closed, .public-day-state.is-past { color: #5c6260; background: #eeece7; }
.public-calendar-month { min-width: 0; }
.public-calendar-month td > a { min-height: 100px; }
.public-day { background: #fffdf8; margin-top: 16px; padding: 16px; }
.public-slots { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(210px,100%),1fr)); gap: 10px; }
.public-slots .slot { margin: 0; padding: 12px; border-radius: 6px; }
.public-slots small { display: block; }
.public-contact-link { display: inline-block; padding: 10px 16px; border: 1px solid #175c50; border-radius: 6px; font-weight: 650; }
#public-day { scroll-margin-top: 120px; }
#availability-list { scroll-margin-top: 140px; }
.availability-create, .availability-edit, .availability-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.availability-fields { gap: 12px; }
.availability-fields > label { flex: 0 1 auto; width: 9rem; max-width: 100%; margin: 0; }
.availability-fields > label:has(select[name="weekday"]) { width: 5rem; }
.availability-fields > label:has(input[type="date"]) { width: 12rem; }
.availability-fields input, .availability-fields select { min-width: 0; }
.availability-row { padding: 14px 16px; }
.availability-row > h4 { flex-basis: 100%; margin: 0; }
.availability-row form { margin: 0; }
.availability-create button, .availability-row button { white-space: nowrap; }
.availability-list-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.availability-list-header h3, .availability-list-header form { margin: 0; }
.availability-row.is-new { border-style: dashed; border-color: #538575; background: #f0f8f3; }
.availability-row button[hidden] { display: none; }
@media (max-width: 600px) {
  .public-calendar-month td > a { padding-inline: 1px; }
  .public-calendar-month .public-day-state { padding: 2px; font-size: .65rem; }
}
#day-schedule { scroll-margin-top: 140px; }
.biography-part-editor { margin: 14px 0; padding: 14px; border: 1px solid #d8d2c5; border-radius: 6px; background: #fff; }
.biography-part-editor h4 { margin: 0 0 8px; }
.biography-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.biography-toolbar button { padding: 6px 10px; font-size: .85rem; }
.profile-text-preview { margin: 16px 0; padding: 12px; border: 1px solid #d8d2c5; background: #fff; overflow-wrap: anywhere; }
.profile-text-preview .profile-text-part { white-space: pre-wrap; }
.profile-text-preview strong { font-weight: 700; }
.profile-text-preview .profile-part-divider { margin: 24px 0; border: 0; border-top: 1px solid #aaa; }
[data-biography-editor] > label[hidden] { display: none; }
.profile-photos { display: flex; flex-wrap: wrap; align-items: start; gap: 12px; }
.profile-photo-editor { display: flex; flex-wrap: wrap; gap: 16px; padding-left: 24px; }
.profile-photo-editor > li { flex: 0 1 220px; }
.profile-photo-editor .profile-photo { display: block; width: 100%; max-height: 240px; object-fit: contain; }
[data-individual][hidden] { display: none; }
dialog { max-width: min(680px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 1px solid #a7b5ae; border-radius: 10px; background: #fffdf8; color: #27363a; }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
.student-list-notes > summary { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid #a7b5ae; border-radius: 6px; color: #175e53; background: #fffdf8; cursor: pointer; list-style: none; }
.student-list-notes > summary::-webkit-details-marker { display: none; }
.student-list-notes > summary:hover { background: #e3eeea; }
.student-list-notes > summary:focus-visible { outline: 3px solid #b77b00; outline-offset: 2px; }
.student-list-notes .student-notes-text { min-width: 220px; max-width: 420px; }
.student-notes-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.student-notes-dialog { width: min(680px, calc(100vw - 48px)); box-sizing: border-box; }
dialog [hidden] { display: none; }
dialog .actions { display: flex; flex-wrap: wrap; gap: 8px; }
[data-student-editor] > .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #d8d2c5; }
.account-table .account-saved, .account-table tr:target { background: #e2f2e7; }
select[data-instructor-value]:disabled { background: #e5e5e5; color: #505050; border-color: #bcbcbc; opacity: 1; cursor: not-allowed; }
@media (max-width: 600px) { header,main,footer { padding: 16px; } .filters > label { flex: 1 1 160px; } }
