@font-face { font-family: Bricolage; src: url(fonts/bricolage-grotesque.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Instrument; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --white: #fffdf8;
  --ink: #25211c;
  --muted: #675e53;
  --rule: #e6ddce;
  --yellow: #ffd34d;
  --blue: #263dc9;
  --coral: #f29a81;
  --lavender: #e6e5f4;
  --sidebar: 226px;
  --ease: 180ms ease;
  font: 15px Instrument, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .62; }
button:active:not(:disabled) { scale: .985; }
a { color: inherit; text-decoration: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { display: block; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Bricolage, sans-serif; font-weight: 750; letter-spacing: -.035em; line-height: 1.05; }
h1 { font-size: clamp(2.8rem, 5vw, 4.7rem); }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.32rem; }
small { font-size: .87rem; }
.skip { position: fixed; top: 8px; left: 10px; translate: 0 -160%; z-index: 8; padding: 12px; background: var(--yellow); }
.skip:focus { translate: 0; }
.sidebar {
  position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--sidebar);
  display: flex; flex-direction: column; background: #f5efe2; border-right: 1px solid var(--rule);
  transition: width var(--ease), translate var(--ease), box-shadow var(--ease), visibility var(--ease);
}
.brand { display: flex; align-items: center; gap: 11px; width: fit-content; margin: 25px 19px 35px; font-family: Bricolage, sans-serif; font-size: .89rem; line-height: 1.06; }
.brand strong { font-size: 1.5rem; letter-spacing: -.055em; font-weight: 800; }
.sidebar nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 0 12px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 7px; font-size: .94rem; font-weight: 600; color: #50483d; white-space: nowrap; }
.sidebar nav svg { width: 19px; height: 19px; }
.sidebar nav a:hover { background: #eee5d4; }
.sidebar nav a[aria-current] { background: var(--yellow); color: var(--ink); }
.sidebar nav a:nth-child(5) { margin-top: 18px; }
.sidebar-bottom { margin-top: auto; padding: 14px; }
.sidebar-actions { display: flex; gap: 5px; }
.preview-label { color: var(--muted); font-size: .84rem; padding: 10px 8px 2px; white-space: nowrap; }
.icon-button {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; padding: 0;
  border: 1px solid transparent; background: transparent; border-radius: 9px; transition: background var(--ease);
}
.icon-button:hover { background: #eee5d4; }
.topbar, main { margin-left: var(--sidebar); transition: margin-left var(--ease); }
.topbar {
  height: 65px; padding-inline: clamp(24px, 4vw, 62px); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule); position: relative; z-index: 2;
}
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 16px; }
.topbar-start { font-weight: 650; }
.mobile-title { display: none; }
.topbar time { color: var(--muted); font-size: .91rem; }
#open-menu { display: none; }
.bell { position: relative; background: var(--white); border-color: var(--rule); }
.counter { position: absolute; right: -3px; top: -4px; display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid var(--paper); border-radius: 50%; font-size: .71rem; font-weight: 700; background: var(--yellow); }
.notifications { position: absolute; right: clamp(20px, 4vw, 62px); top: 60px; width: min(335px, calc(100vw - 32px)); padding: 19px; border: 1px solid var(--rule); background: var(--white); border-radius: 13px; box-shadow: 0 15px 40px #34271924; animation: enter var(--ease) both; }
.notifications h2 { font-size: 1.3rem; margin-bottom: 10px; }
.notice-link { border: 0; background: #fff1c3; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; gap: 10px; padding: 12px; }
.notice-link small { display: block; margin-top: 4px; }
.all-pending { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 650; }
body[data-mode="compact"] { --sidebar: 70px; }
body[data-mode="compact"] .sidebar :is(.brand span, nav span, .preview-label) { display: none; }
body[data-mode="compact"] .sidebar-actions { flex-direction: column; }
body[data-mode="hidden"] { --sidebar: 0px; }
body[data-mode="hidden"] #open-menu { display: grid; }
body[data-mode="hidden"] .sidebar { width: 226px; }
body[data-mode="hidden"]:not(.menu-open) .sidebar { translate: -100% 0; visibility: hidden; }
.menu-open .sidebar { box-shadow: 12px 0 36px #32291f25; }
#backdrop { position: fixed; inset: 0; z-index: 4; border: 0; background: #30261d58; }
main { padding: clamp(25px, 3.1vw, 48px) clamp(24px, 4vw, 62px) 42px; }
.view { max-width: 1320px; margin-inline: auto; animation: enter var(--ease) both; }
@keyframes enter { from { opacity: 0; translate: 0 5px; } }
.view-heading { margin-bottom: 26px; }
.view-heading p { margin-top: 10px; color: var(--muted); }
.home-heading { margin-bottom: clamp(20px, 2vw, 32px); }
.home-grid { display: grid; grid-template-columns: 1.02fr .56fr .5fr; grid-template-rows: 226px 198px; gap: 15px; }
.quick-action {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start; border: 0; border-radius: 14px; text-align: left; padding: 24px;
  transition: box-shadow var(--ease), scale var(--ease);
}
.quick-action:hover { box-shadow: 0 8px 22px #36291825; }
.quick-action .action-icon { width: 25px; height: 25px; }
.quick-action .action-label { font: 760 clamp(1.55rem, 2.5vw, 2.5rem)/.98 Bricolage, sans-serif; letter-spacing: -.045em; max-width: calc(100% - 43px); }
.quick-action .action-arrow {
  position: absolute; right: 19px; bottom: 19px; display: grid; place-items: center; width: 39px; height: 39px;
  border: 1px solid currentColor; border-radius: 50%; transition: translate var(--ease), background var(--ease);
}
.quick-action:hover .action-arrow { translate: 3px 0; }
.quick-action .action-arrow svg { width: 19px; height: 19px; }
.action-enroll { grid-row: 1 / span 2; background: var(--yellow); padding: 26px 27px 29px; }
.action-enroll .action-label { font-size: clamp(2.2rem, 3.65vw, 3.6rem); }
.action-enroll .action-arrow { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.action-enroll img { position: absolute; inset: 9% 4% auto; width: 92%; height: 70%; object-fit: contain; z-index: -1; }
.action-hours { grid-column: span 2; background: var(--blue); color: var(--white); }
.action-hours .action-label { max-width: 54%; font-size: clamp(1.95rem, 3vw, 3.1rem); }
.action-hours:focus-visible { outline-color: var(--ink); }
.action-hours .action-arrow { background: var(--blue); }
.hours-graphic { position: absolute; inset: -40px -10px auto auto; width: 65%; height: calc(100% + 50px); z-index: -1; stroke: #fff9df; stroke-width: 1; opacity: .64; }
.action-trial { background: var(--coral); }
.action-trial .action-label { max-width: calc(100% - 40px); font-size: clamp(1.44rem, 2.03vw, 2.23rem); }
.action-find { background: var(--lavender); }
.action-find .action-label { max-width: calc(100% - 37px); }
.discipline-list { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 24px; }
.discipline-list button, .segment button, .button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--rule); background: var(--white); border-radius: 7px; padding: 8px 14px; font-weight: 650;
}
.discipline-list button:hover, .segment button:hover, .button:hover { background: #f1eadd; }
.discipline-list button[aria-pressed="true"] { background: var(--yellow); border-color: #e6b93a; }
.discipline-list svg { width: 18px; height: 18px; }
.inquiry-sheet { border-top: 3px solid var(--ink); }
.inquiry-top, .calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inquiry-top { padding-block: 17px; }
.segment { display: inline-flex; gap: 3px; padding: 3px; background: #eee7d9; border-radius: 8px; }
.segment button { min-height: 35px; border: 0; padding: 6px 12px; background: transparent; white-space: nowrap; }
.segment button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 3px #392f1c24; }
.date-heading { margin-bottom: 3px; padding: 10px 13px; font-size: .94rem; font-weight: 700; background: #f1e9db; border-radius: 6px; }
.schedule-row { display: grid; grid-template-columns: minmax(172px, 1fr) minmax(180px, 1.45fr) minmax(140px, .8fr) auto; align-items: center; gap: 12px; padding: 17px 12px; border-bottom: 1px solid var(--rule); }
.schedule-row .time { font-weight: 700; }
.schedule-row small { display: block; margin-top: 5px; color: var(--muted); }
.schedule-row .button { white-space: nowrap; }
.calendar-view h1 { font-size: clamp(2.7rem, 4.45vw, 4rem); }
.calendar-view .view-heading { margin-bottom: 16px; }
.calendar-toolbar { padding-bottom: 13px; }
.period { display: flex; align-items: center; gap: 5px; }
.period .icon-button { width: 37px; height: 37px; flex-basis: 37px; background: var(--white); border-color: var(--rule); }
.period-title { margin-inline: 6px; font: 730 clamp(1.07rem, 2vw, 1.43rem)/1 Bricolage, sans-serif; letter-spacing: -.02em; }
.room-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-block: 3px 14px; font-size: .88rem; }
.room-key button { display: inline-flex; gap: 7px; align-items: center; border: 1px solid transparent; border-radius: 6px; padding: 5px 8px; background: transparent; }
.room-key button:hover, .room-key button[aria-pressed="true"] { background: var(--room-fill); border-color: var(--rule); }
.room-key i { border-radius: 50%; width: 8px; height: 8px; background: var(--room-dot, #716692); }
.room-artes { --room-fill: #f9d9cd; --room-dot: #a94028; --room-ink: #612d21; }
.room-musica { --room-fill: #dce3ff; --room-dot: #3148c4; --room-ink: #23368a; }
.room-espejos { --room-fill: #e7e0f5; --room-dot: #6b4fa4; --room-ink: #483275; }
.calendar-scroll { overflow: auto; background: var(--white); border: 1px solid var(--rule); border-radius: 11px; }
.timeline { --hour: clamp(35px, calc((100dvh - 424px) / 12), 44px); display: grid; grid-template-columns: 75px .52fr 1fr 1fr 1fr .52fr 2.45fr .52fr; min-width: 860px; }
.timeline.day { grid-template-columns: 75px repeat(3, minmax(0, 1fr)); min-width: 590px; }
.timeline-header { min-height: 47px; padding: 8px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; font-size: .87rem; font-weight: 650; white-space: nowrap; }
.timeline-header small { color: var(--muted); font-size: .72rem; }
.timeline-header.highlight { background: #fff1bd; }
.timeline-header:last-child, .track:last-child { border-right: 0; }
.track { min-width: 0; position: relative; display: grid; grid-template-rows: repeat(144, calc(var(--hour) / 12)); border-right: 1px solid var(--rule); }
.track.roomy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .86fr); }
.track::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 calc(var(--hour) - 1px), var(--rule) calc(var(--hour) - 1px) var(--hour)); pointer-events: none; z-index: 1; }
.track.closed, .track.roomy, .timeline.day .track:not(:has(.hour-label)) { background: #f4efe6; }
.operating-hours { background: var(--white); border-right: 1px solid #ede6d9; }
.hour-label { display: block; padding: 4px 7px 0; color: var(--muted); font-size: .73rem; z-index: 2; white-space: nowrap; }
.event {
  min-width: 0; margin: 2px; z-index: 2; border: 0; border-radius: 5px; padding: 4px 6px; background: var(--room-fill);
  color: var(--room-ink); text-align: left; align-content: center; font-size: .77rem; line-height: 1.12; overflow: hidden;
}
.event:hover { box-shadow: inset 0 0 0 1px currentColor; }
.event small { display: block; font-size: .68rem; margin-top: 3px; }
.event.allocation { border: 1px dashed #8c76b3; background: #f5effb; align-content: start; padding-top: 8px; }
.track.roomy .room-artes { grid-column: 1; }
.track.roomy .room-musica { grid-column: 2; }
.track.roomy .room-espejos { grid-column: 3; }
.timeline.day .track :is(.event, .operating-hours) { grid-column: 1; }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.calendar-footer button { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 5px; padding: 4px; background: transparent; }
.calendar-footer button:hover { background: #eee5d4; }
.calendar-footer svg { width: 18px; height: 18px; }
.calendar-footer p { padding-inline: 4px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 600px; }
.month-grid > * { padding: 7px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: transparent; text-align: left; }
.month-grid > :nth-child(7n) { border-right: 0; }
.month-grid > :nth-last-child(-n+7) { border-bottom: 0; }
.month-grid button, .month-grid .empty-cell { min-height: 57px; display: flex; flex-direction: column; gap: 3px; align-items: start; }
.month-grid button:hover { background: #fff4cb; }
.month-grid button.highlight { background: #fff5ce; }
.month-event { color: var(--room-ink); font-size: .72rem; white-space: normal; }
.day-list { display: grid; gap: 5px; padding: 0; list-style: none; }
.day-list button { display: flex; width: 100%; justify-content: flex-start; text-align: left; }
dialog { width: min(475px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); border: 1px solid var(--rule); border-radius: 15px; color: var(--ink); background: var(--white); padding: 23px; box-shadow: 0 18px 80px #312a2642; }
dialog[open] { animation: enter var(--ease) both; }
dialog::backdrop { background: #2821195e; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 8px; margin-bottom: 15px; }
.dialog-heading h2 { padding-top: 7px; }
#detail-body > p + p { margin-top: 8px; }
.preview-note, .empty { color: var(--muted); line-height: 1.5; }
.empty { padding-block: 17px; }
.form-preview { display: grid; gap: 13px; }
#detail-body > p + .form-preview { margin-top: 18px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.form-preview label { display: grid; gap: 4px; font-weight: 650; }
.form-preview :is(input, select) { min-height: 42px; width: 100%; padding-inline: 10px; border: 1px solid #a99d8f; border-radius: 7px; background: var(--white); }
.form-preview .button { justify-self: start; margin-top: 4px; }
@media (max-width: 1110px) {
  .schedule-row { grid-template-columns: minmax(135px, 1fr) minmax(125px, 1fr) minmax(105px, .8fr) auto; }
  .action-trial, .action-find { padding: 19px; }
  .quick-action .action-arrow { right: 13px; bottom: 13px; width: 34px; height: 34px; }
}
@media (max-width: 880px) {
  .home-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 265px 162px 140px; }
  .action-enroll { grid-column: span 2; grid-row: 1; }
  .action-enroll img { inset: 4% 2% 4% auto; width: 66%; height: 92%; }
  .action-enroll .action-label { max-width: 47%; }
  .schedule-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-row .button { justify-self: end; }
}
@media (max-width: 699px) {
  .sidebar, body[data-mode="hidden"] .sidebar { width: min(270px, 84vw); }
  body[data-mode="compact"] .sidebar :is(.brand span, .preview-label) { display: block; }
  body[data-mode="compact"] .sidebar nav span { display: inline; }
  body:not(.menu-open) .sidebar { translate: -100% 0; visibility: hidden; }
  #open-menu { display: grid; }
  #density { display: none; }
  .topbar, main { margin-left: 0; }
  .topbar { height: 61px; padding-inline: 13px 17px; }
  .topbar-start, .topbar-end { gap: 8px; }
  .topbar time { display: none; }
  .desktop-title { display: none; }
  .mobile-title { display: inline; }
  main { padding: 23px 17px 28px; }
  h1 { font-size: 3.1rem; }
  .home-heading { margin-bottom: 17px; }
  .home-grid { grid-template-rows: 258px 152px 144px; gap: 10px; }
  .quick-action { padding: 17px; border-radius: 11px; }
  .action-enroll img { width: 90%; height: 73%; inset: 0 3% auto auto; }
  .action-enroll .action-label { max-width: 75%; font-size: 2.55rem; }
  .action-hours .action-label { max-width: 64%; }
  .action-trial .action-label, .action-find .action-label { max-width: 78%; font-size: 1.43rem; }
  .action-trial .action-arrow, .action-find .action-arrow { width: 28px; height: 28px; right: 9px; bottom: 9px; }
  .action-trial .action-arrow svg, .action-find .action-arrow svg { width: 15px; height: 15px; }
  .view-heading { margin-bottom: 20px; }
  .discipline-list { margin-bottom: 16px; }
  .inquiry-top { padding-block: 12px; }
  .schedule-row { grid-template-columns: 1fr; gap: 7px; padding: 13px 8px; }
  .schedule-row .button { justify-self: start; }
  .calendar-toolbar { align-items: flex-start; }
  .period-title { font-size: 1.16rem; }
  .timeline.day { --hour: 40px; grid-template-columns: 65px repeat(3, minmax(0, 1fr)); min-width: 335px; }
  .timeline.day .timeline-header { white-space: normal; }
  .timeline.day .event { font-size: .72rem; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  button:active:not(:disabled), .quick-action:hover .action-arrow { scale: 1; translate: none; }
}
