:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #6b756e;
  --paper: #f5f5ef;
  --surface: #fbfcf8;
  --line: #dfe3dc;
  --green: #1f6948;
  --green-soft: #dcece2;
  --yellow: #d7ef47;
  --amber: #a96117;
  --blue: #3068a5;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.auth-pending { overflow: hidden; }
.auth-pending .shell { visibility: hidden; }
.auth-screen { position: fixed; inset: 0; z-index: 100; min-height: 100svh; color: white; background: #17251e; padding: 30px clamp(24px, 6vw, 84px); overflow-y: auto; animation: auth-in .4s ease both; }
.auth-screen[hidden] { display: none; }
.auth-brand { display: flex; gap: 12px; align-items: center; }
.auth-brand .brand-mark { flex: 0 0 auto; }
.auth-brand strong,.auth-brand span:last-child { display: block; }.auth-brand strong { font-size: 18px; }.auth-brand span:last-child { margin-top: 2px; color: #94a49b; font-size: 11px; }
.auth-layout { width: min(980px, 100%); min-height: calc(100svh - 116px); margin: 32px auto 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: clamp(60px, 10vw, 130px); }
.auth-intro h1 { max-width: 560px; color: white; font-size: clamp(42px, 6vw, 72px); line-height: .96; margin: 18px 0 24px; }
.auth-intro > p { max-width: 490px; color: #aab8b0; font-size: 14px; line-height: 1.7; }
.auth-local-note { margin-top: 46px; display: grid; grid-template-columns: 30px 1fr; max-width: 480px; border-top: 1px solid #405148; padding-top: 18px; }
.auth-local-note > span { color: var(--yellow); font-size: 10px; }.auth-local-note p { margin: 0; }.auth-local-note b,.auth-local-note small { display: block; }.auth-local-note b { font-size: 12px; }.auth-local-note small { margin-top: 7px; color: #84958b; font-size: 11px; line-height: 1.55; }
.auth-panel { border-left: 1px solid #405148; padding-left: clamp(30px, 5vw, 64px); }
.auth-panel label { color: #93a198; }.auth-panel input { color: white; border-color: #52645a; }.auth-panel input:focus { border-color: var(--yellow); }
.auth-language-switch { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 34px; }.auth-language-switch button { border: 0; background: transparent; color: #84958b; padding: 6px 8px; cursor: pointer; }.auth-language-switch button.active { color: var(--yellow); }
.auth-submit { width: 100%; margin-top: 30px; background: var(--yellow); color: #17251e; box-shadow: none; }.auth-submit:hover { background: #e4f46b; }.auth-submit:disabled,.student-entry:disabled { opacity: .55; cursor: wait; }
.auth-status { min-height: 18px; margin: 12px 0 0; color: #ffb39f; font-size: 11px; }
.auth-separator { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 22px 0; }.auth-separator span { height: 1px; background: #405148; }.auth-separator small { color: #6f8076; font-size: 9px; }
.student-entry { width: 100%; border: 1px solid #708278; border-radius: 8px; background: transparent; color: white; padding: 13px 18px; cursor: pointer; transition: .2s ease; }.student-entry:hover { border-color: white; transform: translateY(-1px); }
@keyframes auth-in { from { opacity: 0; } to { opacity: 1; } }
.shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { background: #17251e; color: white; padding: 28px 20px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 34px; }
.brand-mark { width: 28px; height: 28px; border: 2px solid var(--yellow); border-radius: 50%; position: relative; overflow: hidden; transform: rotate(-24deg); }
.brand-mark::after { content: ""; position: absolute; width: 36px; height: 20px; border: 1.5px solid var(--yellow); border-radius: 50%; left: -5px; top: 3px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.brand span:last-child { display: block; color: #94a49b; font-size: 11px; margin-top: 2px; }
nav { display: grid; gap: 4px; }
.nav-item { border: 0; background: transparent; color: #aab8b0; border-radius: 8px; display: grid; grid-template-columns: 32px 1fr; align-items: center; text-align: left; padding: 13px 12px; cursor: pointer; transition: .2s ease; }
.nav-item span { font-size: 10px; color: #74857a; }
.nav-item b { font-weight: 560; }
.nav-item:hover, .nav-item.active { background: #26392f; color: white; transform: translateX(2px); }
.nav-item.active span { color: var(--yellow); }
.sidebar-footer { margin-top: auto; padding: 0 8px; }
.sidebar-footer p { color: #72837a; font-size: 10px; line-height: 1.4; margin: 14px 0 0; }
.language-switch { display: inline-flex; border: 1px solid #405148; border-radius: 7px; padding: 3px; }
.language { border: 0; background: transparent; color: #93a198; padding: 6px 9px; border-radius: 4px; cursor: pointer; font-size: 11px; }
.language.active { background: #f1f4ee; color: #17251e; }
.mobile-language-switch { display: none; }
main { padding: 0 48px 56px; min-width: 0; }
.topbar { min-height: 132px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.session-controls { display: grid; justify-items: end; gap: 3px; padding-left: 12px; border-left: 1px solid var(--line); }.session-controls span { font-size: 10px; color: var(--green); font-weight: 750; }.session-controls button { border: 0; background: transparent; color: var(--muted); padding: 0; cursor: pointer; font-size: 10px; }
.coach-filter { display: grid; gap: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.coach-filter select { min-width: 150px; padding: 5px 0 7px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.eyebrow { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
h1 { margin: 7px 0 0; font: 500 clamp(30px, 4vw, 44px)/1 Georgia, serif; letter-spacing: -.035em; }
.primary { border: 0; background: var(--green); color: white; border-radius: 8px; padding: 13px 18px; cursor: pointer; font-weight: 650; box-shadow: 0 5px 16px rgba(31,105,72,.16); transition: transform .2s ease, background .2s ease; }
.primary:hover { background: #17563a; transform: translateY(-2px); }
.compact { display: flex; align-items: center; gap: 7px; }
.view { display: none; animation: view-in .35s ease both; padding-top: 34px; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.section-heading h2 { font-size: 14px; margin: 0; letter-spacing: .01em; }
.section-heading span { font-size: 11px; color: var(--muted); }
.timeline { padding-top: 4px; }
.lesson { display: grid; grid-template-columns: 78px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); position: relative; }
.lesson::before { content: ""; position: absolute; left: 72px; top: 29px; width: 6px; height: 6px; border-radius: 50%; background: #aeb8b1; }
.lesson.next::before { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.lesson time { font: 500 20px/1 Georgia, serif; }
.lesson h3 { margin: 4px 0 6px; font-size: 16px; }
.lesson p { margin: 0; color: var(--muted); font-size: 12px; }
.status { color: var(--green); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.status.amber { color: var(--amber); }
.attention-row { width: 100%; display: grid; grid-template-columns: 12px 1fr 16px; gap: 11px; align-items: start; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: 20px 0; cursor: pointer; }
.attention-row:hover i { transform: translateX(3px); }
.attention-row b, .attention-row small { display: block; }
.attention-row b { font-size: 13px; }
.attention-row small { color: var(--muted); margin-top: 5px; font-size: 11px; }
.attention-row i { font-style: normal; transition: .2s ease; }
.dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; }.amber-dot { background: #da8a32; }.blue-dot { background: #4e8dcc; }
.calendar-heading { margin-bottom: 18px; align-items: center; }
.calendar-heading > div { display: grid; gap: 6px; }
.calendar-sync { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 14px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.calendar-sync:hover { background: var(--green); color: white; transform: translateY(-1px); }
.calendar-symbol { font-size: 15px; transition: transform .2s ease; }
.calendar-sync:hover .calendar-symbol { transform: translate(2px, -2px); }
.week-grid { display: grid; grid-template-columns: 36px repeat(6, minmax(90px, 1fr)); height: 540px; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 89px, var(--line) 89px, var(--line) 90px); }
.time-labels { display: grid; grid-template-rows: repeat(6, 1fr); color: var(--muted); font-size: 10px; }.time-labels span { transform: translateY(-5px); }
.day { position: relative; border-left: 1px solid var(--line); }.day b { display: block; padding: 0 10px 12px; font-size: 11px; color: var(--muted); }.day.current b { color: var(--green); }
.day i { position: absolute; left: 7px; right: 7px; border-radius: 5px; padding: 8px; font-size: 10px; font-style: normal; overflow: hidden; }
.block { background: var(--green); color: white; }.busy { background: #e3e6e1; color: #667169; }.hold-block { background: #f4e8c9; color: #8a5b15; border: 1px dashed #c9994d; }.b1 { top: 70px; height: 75px; }.b2 { top: 165px; height: 90px; }.b3 { top: 280px; height: 100px; }.b4 { top: 395px; height: 75px; }
.student-list button { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 42px 1fr 20px; text-align: left; gap: 14px; align-items: center; padding: 19px 4px; cursor: pointer; }
.student-list button:hover { background: rgba(255,255,255,.55); }.student-list b,.student-list small { display: block; }.student-list small { margin-top: 4px; color: var(--muted); }.student-list i { font-style: normal; }.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.manage-layout { display: grid; grid-template-columns: minmax(360px, 1.2fr) minmax(320px, .8fr); gap: 54px; align-items: start; }
.manage-layout > *,.record-row > span:nth-child(2),.availability-workspace { min-width: 0; }
.record-row small,.availability-heading h2,.availability-heading span { overflow-wrap: anywhere; }
.text-action { border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 750; }
.record-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.record-row.archived { opacity: .48; }.record-row b,.record-row small { display: block; }.record-row small { color: var(--muted); margin-top: 4px; font-size: 11px; }
.record-actions { display: flex; gap: 6px; }.record-actions button,.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; padding: 7px; }.record-actions button:hover,.icon-button:hover { color: var(--green); }
.editor { background: var(--surface); border-radius: 14px; padding: 26px; animation: view-in .25s ease both; }.editor.hidden { display: none; }.editor .section-heading h2 { font: 500 22px/1 Georgia, serif; }.editor .section-heading { align-items: center; }.editor .icon-button { font-size: 22px; line-height: 1; }
.record-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }.record-badge.venue { border-radius: 5px; background: #e6e8df; color: #5b685f; }
.availability-workspace { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.availability-heading { align-items: end; }
.availability-heading h2 { margin: 0 0 5px; font: 500 22px/1.1 Georgia, serif; }
.availability-heading span { color: var(--muted); font-size: 10px; }
.availability-form { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.availability-date-row { grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.availability-submit { min-height: 42px; margin-top: 20px; padding: 0 18px; }
.availability-list { min-height: 42px; }
.availability-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); animation: view-in .22s ease both; }
.availability-row time { font: 500 16px/1 Georgia, serif; color: var(--green); }
.availability-row b,.availability-row small { display: block; }
.availability-row b { font-size: 12px; }
.availability-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.availability-row button { border: 0; background: transparent; color: #a33f2b; padding: 8px; cursor: pointer; font-size: 11px; }
.availability-empty { margin: 18px 4px 0; color: var(--muted); font-size: 11px; }
.booking-layout { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(350px, 1.15fr); gap: 72px; }
form label { display: grid; gap: 7px; margin-top: 20px; font-size: 11px; color: var(--muted); }
input, select, textarea { width: 100%; border: 0; border-bottom: 1px solid #bfc7c0; background: transparent; border-radius: 0; padding: 9px 0 11px; color: var(--ink); outline: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.student-lookup-field { position: relative; }
.student-match-status { min-height: 15px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.student-match-status.existing { color: var(--green); }
.student-match-status.new { color: var(--amber); }
.student-suggestions { position: absolute; z-index: 8; top: calc(100% - 12px); left: 0; right: 0; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: 0 14px 30px rgba(23,37,30,.14); }
.student-suggestions button { width: 100%; min-height: 40px; border: 0; border-radius: 6px; background: transparent; padding: 9px 10px; text-align: left; cursor: pointer; font-size: 12px; }
.student-suggestions button:hover,.student-suggestions button:focus { background: var(--green-soft); color: var(--green); outline: 0; }
.student-onboarding { margin: 22px 0 4px; padding: 18px 0 4px; border-top: 1px solid var(--line); animation: student-fields-in .22s ease both; }
.student-onboarding-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.student-onboarding-heading b { font-size: 12px; }
.student-onboarding-heading small { color: var(--muted); font-size: 9px; text-align: right; }
.student-onboarding > label { display: grid; }
@keyframes student-fields-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.evaluate { width: 100%; margin-top: 28px; }
.result-panel { min-height: 460px; background: var(--surface); border-radius: 14px; padding: 32px; display: grid; align-items: center; }
.empty-result { text-align: center; max-width: 330px; margin: auto; }.empty-result h2 { font: 500 25px/1.1 Georgia, serif; margin: 18px 0 9px; }.empty-result p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.ball { display: inline-block; width: 45px; height: 45px; border-radius: 50%; background: var(--yellow); box-shadow: inset -7px -5px 10px rgba(83,104,14,.14); }
.result { align-self: start; }.result-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }.result-icon.bad { background: #f5ddd6; color: #9e3d24; }.result h2 { font: 500 26px/1.1 Georgia, serif; margin: 18px 0 8px; }.result > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.result-icon.good { background: var(--green-soft); color: var(--green); }
.conflict { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin: 20px 0; }.conflict b,.conflict small { display: block; }.conflict small { color: var(--muted); margin-top: 4px; }
.alternatives h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }.alternative { width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 54px 1fr 20px; text-align: left; padding: 14px 0; cursor: pointer; }.alternative:hover b { color: var(--green); }.alternative time { font: 500 17px/1 Georgia, serif; }.alternative b,.alternative small { display: block; }.alternative b { font-size: 12px; }.alternative small { color: var(--muted); margin-top: 3px; }.alternative i { font-style: normal; }
.available-box { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }.available-box p { color: var(--muted); font-size: 12px; }.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }.secondary { border: 1px solid var(--green); background: transparent; color: var(--green); border-radius: 8px; font-weight: 650; cursor: pointer; }
.confirmation-meta { display: grid; gap: 8px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.confirmation-meta b { font-size: 13px; }.confirmation-meta p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sync-local { width: 100%; display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 22px; }
.sync-local .calendar-symbol { font-size: 16px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: #17251e; color: white; padding: 13px 18px; border-radius: 8px; font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: none; }
.privacy-notice { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--green); }.privacy-notice p { margin: 0; }.privacy-notice b,.privacy-notice small { display: block; }.privacy-notice b { font-size: 11px; }.privacy-notice small { color: var(--muted); margin-top: 4px; line-height: 1.4; }
.secure-form-note { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 17px 0 4px; }.danger-action { color: #a33f2b !important; }
body[data-role="student"] .nav-item:not([data-view="book"]),body[data-role="student"] .coach-filter,body[data-role="student"] [data-open-book] { display: none; }
body[data-role="student"] nav { display: block; min-width: 0; }
body[data-role="student"] .sidebar { justify-content: space-between; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
  .sidebar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; top: auto; height: calc(106px + env(safe-area-inset-bottom)); padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); flex-direction: row; align-items: stretch; overflow: hidden; box-shadow: 0 -10px 30px rgba(23,37,30,.14); }
  .brand,.sidebar-footer { display: none; }
  nav { width: 100%; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(44px, 1fr)); gap: 3px; }
  .nav-item { min-width: 0; min-height: 44px; grid-template-columns: 18px minmax(0, 1fr); gap: 2px; padding: 7px 8px; }
  .nav-item span { display: block; font-size: 8px; }
  .nav-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .nav-item:hover,.nav-item.active { transform: none; }
  main { padding: 0 20px 36px; }
  .topbar { min-height: 130px; padding: 18px 0 14px; flex-wrap: wrap; align-content: center; gap: 14px; }
  .topbar > div:first-child { width: 100%; }
  .top-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .mobile-language-switch { display: inline-flex; border-color: #bdc7c0; flex: 0 0 auto; }
  .mobile-language-switch .language { color: var(--muted); min-width: 36px; min-height: 34px; padding: 6px 8px; }
  .mobile-language-switch .language.active { background: #17251e; color: white; }
  .topbar [data-open-book] { display: none; }
  .coach-filter span { display: none; }
  .coach-filter select { min-width: 0; width: min(126px, 32vw); }
  .session-controls { margin-left: auto; }
  .today-grid,.booking-layout,.manage-layout { grid-template-columns: 1fr; gap: 44px; }
  .week-grid { overflow-x: auto; grid-template-columns: 32px repeat(6, 90px); }
  .result-panel { min-height: 380px; }
  .field-row { gap: 16px; }
  .record-row { grid-template-columns: 42px minmax(0, 1fr); }
  .record-actions { grid-column: 2; justify-content: flex-start; }
  .availability-date-row { grid-template-columns: 1fr 1fr; }
  .availability-date-row label:first-child { grid-column: 1 / -1; }
  .calendar-heading { align-items: flex-start; gap: 18px; }
  .calendar-heading > div { min-width: 0; }
  .calendar-sync { flex: 0 0 auto; font-size: 11px; }
  body[data-role="student"] .shell { padding-bottom: 0; }
  body[data-role="student"] .sidebar { display: none; }
}
@media (max-width: 700px) {
  .auth-screen { padding: 24px 22px 42px; }.auth-layout { min-height: 0; grid-template-columns: 1fr; gap: 38px; margin-top: 62px; }.auth-intro h1 { font-size: 44px; }.auth-local-note { margin-top: 30px; }.auth-panel { border-left: 0; border-top: 1px solid #405148; padding: 30px 0 0; }.top-actions { gap: 9px; }.session-controls { padding-left: 8px; }.session-controls span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; }.session-controls button { font-size: 9px; }
}
