:root {
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #29324c;
  background: #f6f7fb;
  font-synthesis: none;
  --blue: #475bca;
  --blue-dark: #374bb6;
  --line: #e8ebf3;
  --muted: #8590a5;
  --soft: #eff2fc;
  --font-body: 16px;
  --font-action: 16px;
  --font-secondary: 14px;
  --font-caption: 13px;
  --font-small: 12px;
  --lesson-color: #4b9475;
  --personal-color: #6f85d2;
  --rest-color: #9b7cc1;
  --fc-border-color: #edf0f5;
  --fc-today-bg-color: #f8f9ff;
  --fc-now-indicator-color: #e58579;
  --fc-event-border-color: #7e8edc;
  --fc-event-bg-color: #edf0fc;
  --fc-event-text-color: #44589f;
  --fc-highlight-color: #e9edfb;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: var(--font-body); line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; opacity: .55; }
button, input, textarea { transition: background .16s, border-color .16s, box-shadow .16s; }
a { color: var(--blue); text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #9bacf4; outline-offset: 3px; }
input:focus, textarea:focus { outline: none; border-color: #8192de; box-shadow: 0 0 0 3px #475bca0b; }
h1, h2, h3, p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
.boot { min-height: 100dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; color: #7c88a1; }
.boot h2 { color: #3b4967; font-size: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #29324c; }
.brand > span { font-size: 22px; font-weight: 700; letter-spacing: -.6px; line-height: 1.1; }
.brand small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 2.3px; color: #929db3; margin-top: 7px; }
.button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 39px; padding: 8px 14px; border: 1px solid #e1e5ef; border-radius: 8px; background: #fff; font-size: var(--font-action); font-weight: 500; white-space: nowrap; }
.button:hover { background: #f7f8fd; border-color: #ccd3e7; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 3px 6px #475bca15; }
.button.primary:hover { background: var(--blue-dark); }
.button.full { width: 100%; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 32px; border: 0; background: transparent; border-radius: 6px; color: #7b879f; padding: 0; }
.icon-button:hover { background: #f0f2fa; color: var(--blue); }
.text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 5px 0; color: var(--blue); font-size: var(--font-action); font-weight: 500; }
.text-button:hover { color: #273992; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.8px; color: #9ba5b9; }
.subtle { color: #a0a9ba; font-size: 16px; }
.sidebar { width: 232px; height: 100dvh; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; background: white; border-right: 1px solid var(--line); padding: 30px 20px 0; overflow-y: auto; }
.sidebar > .brand { margin: 0 10px 33px; }
.workspace-label, .sidebar-label { font-size: 13px; color: #a0aabd; letter-spacing: .8px; }
.workspace-label { padding: 0 15px 11px; }
.nav-current { display: flex; align-items: center; gap: 11px; border-radius: 8px; background: #eef1fc; color: var(--blue); padding: 12px 15px; font-size: 16px; font-weight: 600; }
.nav-current i { width: 5px; height: 5px; background: #6477d6; border-radius: 50%; margin-left: auto; }
.calendar-hours-nav { display: flex; justify-content: space-between; margin-top: 8px; padding: 10px 15px; border-radius: 7px; color: #8a98b2; font-size: 14px; text-decoration: none; }
.calendar-hours-nav:hover { color: #475bca; background: #f4f6fc; }
.calendar-lesson-report { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 15px; border: 1px solid #e3e9f8; background: #f5f7fe; border-radius: 8px; margin-bottom: 20px; }
.calendar-lesson-report strong { display: block; color: #7486b8; font-size: 14px; font-weight: 500; }
.calendar-lesson-report small { color: #9aa7c1; font-size: 11px; }
.calendar-lesson-report .button { font-size: 12px; white-space: nowrap; }
.calendar-billing { margin-bottom: 20px; }
.mini-calendar { padding: 27px 4px 20px; }
.mini-heading { display: flex; align-items: center; margin-bottom: 11px; }
.mini-heading strong { flex: 1; font-size: 16px; font-weight: 600; }
.mini-heading .icon-button { width: 24px; height: 26px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 5px; text-align: center; font-size: 13px; }
.mini-grid > span { padding-bottom: 8px; color: #a3aec0; }
.mini-grid button { border: 0; background: none; height: 26px; padding: 0; border-radius: 6px; font-size: 13px; color: #67748e; }
.mini-grid button:hover { background: #e8ecfb; }
.mini-grid button.outside { color: #bdc5d4; }
.mini-grid button.selected { background: #eff2fc; color: #6073bc; }
.mini-grid button.today { background: var(--blue); color: white; font-weight: 600; }
.sidebar-key { border-top: 1px solid var(--line); padding: 19px 11px 5px; }
.sidebar-key > div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8590a6; margin-top: 14px; }
.event-dot, .empty-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: #8393dd; flex-shrink: 0; }
.lesson-dot { background: var(--lesson-color); }
.personal-dot { background: var(--personal-color); }
.rest-dot { background: var(--rest-color); }
.empty-dot { background: #fff; border: 1px solid #ccd2df; }
.privacy-card { border: 1px solid #edf0f6; border-radius: 10px; background: #fafbfe; padding: 15px; margin: auto 4px 23px; }
.privacy-icon { display: block; color: #8e9ccc; margin-bottom: 6px; }
.privacy-card strong { font-size: 14px; font-weight: 600; color: #7584a5; }
.privacy-card p { font-size: 13px; color: #9aa5b9; line-height: 1.9; margin: 6px 0 4px; }
.privacy-card .text-button { font-size: 13px; }
.sidebar-profile { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 19px 2px 21px; }
.avatar { background: #eef1fc; color: #6a7cba; font-size: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.sidebar-profile strong { display: block; font-size: 14px; font-weight: 600; }
.sidebar-profile small { display: block; font-size: 12px; color: #a0aabe; margin-top: 2px; }
.sidebar-profile > button { margin-left: auto; }
.calendar-sources { border-top: 1px solid var(--line); padding: 12px 5px 16px; }
.source-heading, .account-heading, .account-calendar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-heading .text-button { font-size: 12px; }
.source-group { margin: 10px 0; }
.source-group > strong { font-size: 13px; font-weight: 600; color: #7584a5; }
.source-check { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; margin: 7px 0; cursor: pointer; }
.source-check input, .busy-setting input { accent-color: var(--blue); flex-shrink: 0; }
.source-check span { overflow-wrap: anywhere; }
.calendar-sources small, .source-group > small { display: block; font-size: 11px; color: var(--muted); }
.source-error { color: #ba6459 !important; }
.accounts-dialog { width: 680px; }
.account-card { border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin-bottom: 14px; }
.account-heading h3 { font-size: 16px; }
.account-heading small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.account-buttons, .account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-buttons { flex-shrink: 0; }
.account-buttons .text-button, .account-status, .busy-setting { font-size: 12px; }
.account-status { margin: 8px 0; color: var(--muted); }
.busy-setting { flex-shrink: 0; color: #7d89a3; }
.account-calendar { flex-wrap: wrap; }
.calendar-kind { display: flex; align-items: center; flex-shrink: 0; gap: 6px; color: #7d89a3; font-size: 12px; }
.calendar-kind select { border: 1px solid var(--line); border-radius: 5px; padding: 4px; background: white; font-size: 12px; }
.remote-times { margin: 16px 0; }
.heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.fc .icloud-event { background: #f2edf8; border-color: #c8b5dc; color: #68517f; }
.migration-progress { padding: 14px; background: var(--soft); border-radius: 8px; margin: 14px 0; font-size: 14px; }
.migration-progress progress { width: 100%; accent-color: var(--blue); }
@media (max-width: 700px) {
  .account-calendar { align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .account-heading { align-items: flex-start; flex-wrap: wrap; }
  .account-actions .button { white-space: normal; }
  .calendar-kind select { font-size: 16px; }
}
.workspace-main { margin-left: 232px; }
.calendar-controls-toggle { display: none; }
.topbar { height: 65px; border-bottom: 1px solid var(--line); background: white; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { font-size: 14px; color: #9ba6ba; display: flex; gap: 14px; }
.desktop-breadcrumb { display: flex; gap: 14px; }
.mobile-title, .mobile-hour, .logout-label { display: none; }
.desktop-breadcrumb > span { color: #ccd2df; }
.breadcrumb strong { color: #727e96; font-weight: 400; }
.topbar-right { display: flex; gap: 22px; align-items: center; }
.timezone { display: inline-flex; align-items: center; gap: 7px; color: #9aa4b6; font-size: 13px; }
.timezone b { font-weight: 400; color: #b0b8c7; font-size: 12px; margin-left: 2px; }
.role-pill { display: inline-flex; align-items: center; gap: 6px; background: #f5f6fb; color: #8996b0; border: 1px solid #eef0f6; padding: 4px 9px; border-radius: 5px; font-size: 12px; }
.mobile-logout { display: none; }
.main-content { padding: 29px 34px 0; max-width: 1740px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 5px 0 29px; }
.page-heading h1 { font-size: 30px; font-weight: 600; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.heading-dot { width: 6px; height: 6px; border-radius: 50%; background: #a0b3ee; margin-top: 5px; }
.page-heading p { font-size: 14px; color: #95a0b5; margin-top: 5px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.calendar-panel { border: 1px solid #e5e9f2; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 4px 15px #31406b03; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 8px; }
.date-navigation { display: flex; gap: 16px; align-items: center; }
.date-navigation h2 { font-size: 20px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }
.date-buttons { display: flex; gap: 2px; }
.today-button { min-height: 28px; padding: 3px 11px; font-size: 13px; border-radius: 5px; margin-left: -10px; }
.view-controls { display: flex; gap: 2px; border-radius: 7px; background: #f3f5fa; border: 1px solid #eef0f5; padding: 3px; }
.view-controls button { min-width: 36px; padding: 4px 8px; border: 0; background: transparent; border-radius: 5px; color: #9ba5b9; font-size: 14px; }
.view-controls button.active { color: #586bb7; background: white; box-shadow: 0 1px 3px #2a3a5d0c; font-weight: 600; }
.calendar-subbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; padding: 0 23px 17px; font-size: 13px; color: #9ba7bd; }
.calendar-legend { display: flex; align-items: center; gap: 14px; }
.calendar-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.calendar-legend i { width: 6px; height: 6px; border-radius: 2px; }
.calendar-footer { min-height: 42px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); gap: 15px; font-size: 12px; color: #9ca7bd; }
.calendar-help { display: flex; align-items: center; gap: 7px; }
.sync-status { border: 0; background: none; display: flex; gap: 6px; align-items: center; color: #91a294; font-size: 12px; padding: 0; white-space: nowrap; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; color: #b1bacb; font-size: 12px; padding: 18px 2px 22px; }
.page-footer > span:first-child { font-size: 12px; letter-spacing: .5px; }
.preview-banner { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #7385b2; padding: 10px 14px; border: 1px solid #e0e6f9; border-radius: 8px; background: #eff3ff; margin-bottom: 20px; }
.preview-banner > button { margin-left: auto; font-size: 14px; white-space: nowrap; }
.load-error { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; background: #fff4ee; color: #a76445; font-size: 16px; padding: 10px; }
#calendar.stale { opacity: .45; pointer-events: none; }
.fc { font-size: 14px; }
.fc .fc-scrollgrid { border: 0; }
.fc-theme-standard td:last-child, .fc-theme-standard th:last-child { border-right: 0; }
.fc .fc-scrollgrid-section-header > th, .fc .fc-scrollgrid-section-body > td { border: 0; }
.fc .fc-col-header-cell { border-top: 1px solid var(--line); background: #fff; font-weight: 400; }
.fc .fc-col-header-cell-cushion { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 9px; color: #70809c; }
.day-weekday { font-size: 13px; color: #9ba7bd; }
.day-number { display: grid; place-items: center; width: 30px; height: 30px; font-size: 20px; color: #5e6d87; line-height: 1; }
.fc-day-today .day-weekday { color: var(--blue); }
.fc-day-today .day-number { background: var(--blue); color: white; border-radius: 50%; }
.fc .fc-timegrid-slot { height: 34px; }
.fc .fc-timegrid-slot-minor { border-top: 1px dashed #f0f2f7; }
.fc .fc-timegrid-slot-label-cushion { font-size: 12px; color: #a1aec4; padding: 0 12px; font-variant-numeric: tabular-nums; }
.fc .fc-timegrid-slot-label { vertical-align: top; transform: translateY(-8px); }
.fc .fc-timegrid-axis { width: 57px; }
.fc .fc-timegrid-col-events { margin: 0 5px 0 5px; }
.fc .fc-timegrid-event-harness { pointer-events: none; }
.fc .fc-timegrid-event:not(.fc-event-mirror) { pointer-events: auto; }
.fc .fc-timegrid-event { border: 0; border-left: 3px solid #8c9bdf; border-radius: 5px; box-shadow: none; background: #eef1fd; }
.fc .fc-timegrid-event:hover { background: #e4e9fb; }
.fc .fc-event-main { color: #596ea9; padding: 5px 7px; }
.event-content { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.event-content strong { font-size: 14px; font-weight: 500; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-time { font-size: 12px; font-weight: 400; opacity: .8; white-space: nowrap; line-height: 1.5; }
.fc-timegrid-event-short .event-content { flex-direction: row; gap: 5px; align-items: center; }
.fc-timegrid-event-short .fc-event-main { padding-top: 1px; padding-bottom: 1px; }
.fc-timegrid-event-short .event-time { font-size: 11px; }
.fc .busy-event { background: repeating-linear-gradient(135deg, #f0f2fa 0, #f0f2fa 5px, #e9edf8 5px, #e9edf8 6px); border-color: #a4afd6; cursor: default; }
.fc .busy-event .fc-event-main { color: #8492b5; }
.fc .private-event { cursor: grab; }
.fc .private-event:active { cursor: grabbing; }
.fc .fc-daygrid-day-number { color: #7e8ba4; font-size: 14px; padding: 7px 10px; }
.fc .fc-daygrid-event { margin: 3px 5px; border-radius: 4px; padding: 2px 4px; background: #eef1fd; color: #6579b4; border: 0; border-left: 2px solid #91a0e4; }
.fc .fc-daygrid-event .event-content { gap: 0; }
.fc .fc-daygrid-event .event-time { font-size: 11px; }
.fc .fc-daygrid-event .event-content strong { font-size: 13px; }
.fc .lesson-event { background: #eaf6ef; border-color: var(--lesson-color); color: #28654b; }
.fc .lesson-event:hover { background: #dceee3; }
.fc .personal-event { background: #edf0fc; border-color: var(--personal-color); color: #4258a4; }
.fc .personal-event:hover { background: #e0e6fa; }
.fc .rest-event { background: #f2edf9; border-color: var(--rest-color); color: #6b488d; }
.fc .rest-event:hover { background: #e9e0f5; }
.fc .lesson-event .fc-event-main, .fc .personal-event .fc-event-main, .fc .rest-event .fc-event-main { color: inherit; }
.fc .fc-daygrid-more-link { color: var(--blue); font-size: 12px; }
.fc .fc-daygrid-event-dot { display: none; }
.fc .fc-timegrid-now-indicator-arrow { border-width: 4px 0 4px 5px; margin-top: -4px; }
.fc .fc-timegrid-now-indicator-line { border-width: 1px 0 0; opacity: .6; }
.fc .fc-scroller { scrollbar-width: thin; scrollbar-color: #dfe5ef transparent; }
.dialog { width: 540px; max-width: calc(100vw - 28px); border: 1px solid #e6eaf4; border-radius: 15px; padding: 0; box-shadow: 0 24px 100px #22335b2e; color: #35415d; max-height: calc(100dvh - 36px); }
.dialog::backdrop { background: #23314e42; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 25px 26px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.dialog-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: #a4afc2; }
.dialog-heading h2 { font-size: 24px; font-weight: 600; margin-top: 4px; }
.dialog-heading p { color: #9aa6bc; font-size: 14px; margin-top: 5px; }
.dialog-body { padding: 22px 26px 24px; }
.field { display: block; font-size: 16px; color: #6b7a95; font-weight: 500; margin-bottom: 19px; }
.field input, .field textarea, .field select { margin-top: 7px; display: block; width: 100%; min-width: 0; }
input, textarea, select { border: 1px solid #e1e6f0; border-radius: 7px; background: #fff; color: #475773; min-height: 41px; padding: 9px 11px; font-size: 16px; }
select { cursor: pointer; }
select:focus { outline: none; border-color: #8192de; box-shadow: 0 0 0 3px #475bca0b; }
.field > small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.8; color: #9ca8be; }
textarea { resize: vertical; min-height: 80px; }
input::placeholder, textarea::placeholder { color: #b1bacb; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row .field { margin-bottom: 0; }
.time-hint { display: flex; gap: 5px; align-items: center; color: #a1acc0; font-size: 12px; margin: 8px 0 22px; flex-wrap: wrap; }
.time-hint > span { margin-left: auto; color: #8495c5; }
.optional { font-size: 13px; color: #b0b8c7; margin-left: 6px; font-weight: 400; }
.privacy-inline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #8fa09a; background: #f3f8f6; border-radius: 7px; padding: 11px 13px; }
.privacy-inline strong { color: #748c80; font-weight: 500; }
.dialog-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px; }
.footer-actions { display: flex; gap: 8px; }
.event-secondary-actions { display: flex; gap: 14px; }
.event-secondary-actions .text-button { font-size: 14px; }
.scope-note { font-size: 13px; color: #9aa6bd; margin: -9px 0 15px; line-height: 1.8; }
.occurrence-rule { font-size: 14px; padding: 10px 12px; color: #8393bd; background: #f3f5fc; border-radius: 7px; margin-bottom: 20px; }
.copy-date-field { position: relative; background: #f6f8ff; border: 1px solid #e7ecfa; border-radius: 8px; padding: 13px; margin-bottom: 19px; }
.copy-date-field > .field { margin-bottom: 0; }
.copy-date-input { position: relative; }
.copy-date-input input { padding-right: 43px; }
.copy-date-input input::-webkit-calendar-picker-indicator { display: none; }
.copy-date-input > button { position: absolute; right: 6px; top: 5px; }
.copy-picker { position: absolute; left: 13px; top: 76px; width: 275px; max-width: calc(100% - 26px); padding: 12px; border: 1px solid #dfe5f4; border-radius: 10px; background: white; box-shadow: 0 10px 35px #23366025; z-index: 3; }
.copy-picker-heading { display: flex; align-items: center; gap: 3px; margin-bottom: 10px; }
.copy-picker-heading strong { flex: 1; text-align: center; font-size: 16px; color: #687995; }
.copy-picker .mini-grid button { height: 29px; }
.recurrence-editor { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 20px; }
.recurrence-editor > .field { margin-bottom: 13px; }
.repeat-label { display: block; font-size: 14px; color: #8593ad; margin-bottom: 9px; }
.weekday-picker, .monthday-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.weekday-picker label, .monthday-picker label { position: relative; cursor: pointer; }
.weekday-picker input, .monthday-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.weekday-picker span, .monthday-picker span { display: grid; place-items: center; min-height: 32px; border: 1px solid #e3e8f2; border-radius: 6px; font-size: 14px; background: white; color: #91a0bc; }
.weekday-picker input:checked + span, .monthday-picker input:checked + span { background: #eef2ff; border-color: #9baae0; color: #5b70bb; }
.weekday-picker input:focus-visible + span, .monthday-picker input:focus-visible + span { outline: 2px solid #9bacf4; outline-offset: 2px; }
.monthday-picker { gap: 6px; }
.monthday-picker span { min-height: 29px; font-size: 13px; }
.month-last { margin: 12px 0 0; }
.repeat-date-hint { color: #a3aec2; font-size: 12px; line-height: 1.9; margin: 11px 0 0; }
.interval-fields { display: flex; gap: 8px; align-items: center; color: #91a0b7; font-size: 14px; }
.interval-fields input { width: 80px; min-height: 36px; }
.interval-fields select { width: 75px; min-height: 36px; }
.repeat-ending { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-top: 17px; }
.repeat-ending > .field { margin-bottom: 0; }
.repeat-summary { color: #8293bc; font-size: 13px; line-height: 1.8; margin-top: 12px; }
.footer-privacy { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #a8b1c3; }
.form-error { color: #bd645e; padding: 10px 12px; border: 1px solid #f2d9d5; border-radius: 6px; background: #fff5f3; font-size: 14px; margin: 16px 0 0; }
.danger-text { color: #bb7772; }
.button.danger { background: #be655f; border-color: #be655f; color: white; }
.delete-confirm { padding: 13px; background: #fff7f4; border: 1px solid #f3dfd9; border-radius: 8px; margin-top: 16px; }
.delete-confirm p { font-size: 14px; color: #b57f70; margin-bottom: 11px; }
.delete-confirm .button { min-height: 32px; font-size: 14px; }
.input-with-button { display: flex; align-items: center; gap: 10px; position: relative; }
.input-with-button input { padding-right: 90px; }
.input-with-button > button { position: absolute; right: 10px; bottom: 5px; font-size: 13px; height: 31px; }
#visitor-url { font-size: 14px; color: #91a0ba; background: #fafbfe; }
.field-note { font-size: 13px; color: #a0acc0; margin: -10px 0 20px; }
.invite-status { display: flex; align-items: center; gap: 6px; padding: 0 0 20px; font-size: 13px; color: #8b9f93; }
.invite-warning { display: flex; align-items: flex-start; gap: 9px; padding: 13px; background: #faf7ee; color: #ae9771; font-size: 14px; border-radius: 7px; line-height: 1.8; }
.invite-warning svg { margin-top: 3px; }
.invite-success { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: #63927b; margin-top: 18px; }
.invite-success > button { margin-left: auto; font-size: 14px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 12px); background: #303e5d; color: #fff; padding: 12px 20px; border-radius: 9px; font-size: 16px; box-shadow: 0 7px 20px #27345621; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.login-page { min-height: 100dvh; max-width: 1400px; margin: auto; display: flex; flex-direction: column; padding: 34px 7%; }
.login-page > header { display: flex; justify-content: space-between; align-items: center; }
.login-page .brand img { width: 37px; height: 37px; }
.login-main { flex: 1; display: grid; grid-template-columns: 1fr 390px; gap: 14%; align-items: center; padding: 60px 0; }
.login-story .eyebrow { color: #9aa6bd; font-size: 12px; }
.login-story h1 { font-size: 42px; font-weight: 600; letter-spacing: -1px; line-height: 1.5; margin: 17px 0 17px; color: #303e60; }
.login-story > p { font-size: 16px; color: #97a2b8; line-height: 2; }
.calendar-art { max-width: 370px; transform: rotate(-3deg); margin: 38px 0 0 6px; background: #fff; border-radius: 11px; border: 1px solid #e4e8f4; box-shadow: 10px 15px 0 #e9edf8, 0 14px 25px #495a8c06; overflow: hidden; }
.art-heading { display: flex; justify-content: space-between; padding: 15px 17px 12px; border-bottom: 1px solid #f0f2f7; }
.art-heading > span:first-child { display: flex; align-items: center; gap: 7px; color: #8696c5; font-size: 13px; }
.art-heading > span:last-child { font-size: 10px; color: #c0c9da; letter-spacing: 1px; }
.art-days { display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 0; text-align: center; color: #a4aec3; font-size: 11px; }
.art-grid { height: 130px; position: relative; background-image: linear-gradient(#eff2f8 1px, transparent 1px), linear-gradient(90deg, #eff2f8 1px, transparent 1px); background-size: 20% 33px; }
.art-event { position: absolute; display: flex; align-items: center; gap: 5px; font-size: 11px; color: #8798cd; background: #edf1fb; border-left: 2px solid #adb9e6; border-radius: 3px; padding: 8px; font-style: normal; }
.art-event.one { left: 3%; top: 13px; width: 34%; height: 44px; }
.art-event.two { left: 43%; top: 42px; width: 34%; height: 45px; background: #eef4f2; color: #8baaa0; border-color: #acc7bd; }
.art-event.three { left: 23%; top: 83px; width: 34%; height: 30px; }
.art-note { font-size: 12px; color: #a0aec4; padding: 13px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.login-card { background: white; border: 1px solid #e8ecf5; border-radius: 15px; padding: 32px; box-shadow: 0 8px 40px #41598706; }
.login-icon { width: 45px; height: 45px; display: grid; place-items: center; background: #f0f3fe; color: #8393cd; border-radius: 13px; margin-bottom: 20px; }
.login-card h2 { font-size: 26px; font-weight: 600; color: #354462; }
.login-card > p { font-size: 14px; color: #9aa7bd; margin-top: 6px; }
#login-form { margin-top: 26px; }
#login-form > .field { margin-bottom: 14px; font-size: 14px; }
#login-form input[name=secret] { min-height: 44px; }
.check-field { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #94a0b7; }
input[type=checkbox] { width: 13px; height: 13px; min-height: 0; accent-color: var(--blue); padding: 0; margin: 0; }
#login-form .button { margin-top: 24px; min-height: 43px; justify-content: space-between; padding: 10px 16px; }
.login-notice { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: #aab4c7; margin-top: 16px; }
.login-switch { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; color: #8b99b8; border-top: 1px solid #edf0f7; margin-top: 28px; padding-top: 18px; }
.login-page > footer { font-size: 13px; color: #aab4c8; padding-top: 20px; display: flex; gap: 10px; }
.login-zone { margin-left: auto; font-size: 12px; }
@media (min-width: 1550px) {
  .main-content { padding: 37px 48px 0; }
  .page-heading { padding-bottom: 34px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 208px; padding-left: 14px; padding-right: 14px; }
  .workspace-main { margin-left: 208px; }
  .main-content { padding: 25px 24px 0; }
  .topbar { padding: 0 24px; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { padding: 8px 10px; font-size: 14px; }
  .page-heading h1 { font-size: 28px; }
  .calendar-footer { padding-left: 15px; padding-right: 15px; }
  .login-main { gap: 8%; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .workspace-main { margin-left: 0; }
  .mobile-logout { display: inline-flex; }
  .main-content { padding: 24px 22px 0; }
  .topbar { height: 58px; }
  .login-page { padding: 28px 6%; }
  .login-main { grid-template-columns: 1fr 360px; gap: 6%; }
  .login-story h1 { font-size: 34px; }
  .login-card { padding: 27px; }
  .calendar-art { margin-left: 0; }
}
@media (max-width: 700px) {
  :root { --font-body: 14px; --font-secondary: 12px; --font-caption: 11px; --font-small: 10px; }
  .hours-page, .dialog, .heading-actions { --font-action: 13px; }
  body { background: #fff; }
  #calendar { touch-action: pan-y pinch-zoom; overscroll-behavior-x: contain; }
  .calendar-controls-toggle { display: flex; align-items: center; justify-content: center; width: 100%; height: 32px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--blue); }
  .calendar-controls-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .calendar-controls-collapsed .topbar, .calendar-controls-collapsed .preview-banner, .calendar-controls-collapsed .page-heading, .calendar-controls-collapsed .calendar-toolbar, .calendar-controls-collapsed .calendar-subbar { display: none; }
  .topbar { position: static; height: 42px; padding: 0 10px; }
  .breadcrumb { font-size: 14px; gap: 0; }
  .desktop-breadcrumb, .desktop-hour { display: none; }
  .mobile-title, .mobile-hour, .logout-label { display: inline; }
  .breadcrumb .mobile-title { color: #55637b; font-weight: 600; }
  .topbar-right { gap: 12px; }
  .timezone { font-size: 12px; gap: 4px; }
  .timezone b, .role-pill { display: none; }
  .mobile-logout { width: auto; height: 32px; gap: 4px; padding: 0 3px; font-size: 12px; }
  .mobile-logout svg { width: 15px; height: 15px; }
  .main-content { padding: 0; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 10px 10px; }
  .page-heading .eyebrow, .page-heading h1 { display: none; }
  .page-heading p { font-size: 12px; margin-top: 0; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { min-height: 32px; font-size: 13px; padding: 4px 8px; }
  .heading-actions .button svg { width: 14px; height: 14px; }
  .heading-actions .primary { margin-left: auto; }
  .calendar-panel { border: 0; border-radius: 0; box-shadow: none; }
  .calendar-toolbar { padding: 8px 8px 4px; gap: 6px; }
  .date-navigation { gap: 4px; }
  .date-navigation h2 { font-size: 14px; }
  .date-buttons { gap: 0; }
  .date-buttons .icon-button { width: 26px; height: 30px; }
  .today-button { padding: 2px 5px; margin-left: 0; min-height: 30px; font-size: 12px; }
  .view-controls { padding: 2px; margin-left: auto; }
  .view-controls button { min-width: 27px; min-height: 26px; padding: 2px 5px; font-size: 12px; }
  .calendar-subbar { padding: 0 9px 7px; font-size: 11px; }
  .calendar-legend { gap: 10px; }
  .calendar-footer, .page-footer, .site-return, .login-page > footer { display: none; }
  .preview-banner { margin: 8px; padding: 7px 9px; font-size: 12px; }
  .preview-banner > button { font-size: 12px; }
  .fc { font-size: 12px; }
  .fc .fc-timeGridWeek-view { min-width: 0; }
  .fc .fc-col-header-cell-cushion { gap: 2px; padding: 6px 1px; }
  .day-weekday { font-size: 11px; }
  .day-number { width: 23px; height: 23px; font-size: 15px; }
  .fc .fc-timegrid-slot { height: max(25px, calc((100lvh - 80px) / 30)); }
  .fc .fc-timegrid-col-events { margin: 0 1px; }
  .fc .fc-timegrid-event { border-left-width: 2px; border-radius: 3px; }
  .fc .fc-event-main { padding: 2px 3px; }
  .event-content { gap: 1px; }
  .event-content strong { font-size: 12px; }
  .event-time { font-size: 10px; }
  .fc-timeGridWeek-view .event-time { font-size: 9px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
  .fc-timeGridWeek-view .event-content strong { font-size: 11px; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  .fc-timeGridWeek-view .fc-event-main { padding-left: 2px; padding-right: 1px; }
  .fc-timeGridWeek-view .fc-timegrid-event-short .event-content { flex-direction: column; align-items: stretch; }
  .fc .fc-timegrid-slot-label-cushion { padding: 0 4px; font-size: 10px; }
  .fc .fc-timegrid-axis { width: 25px; }
  .fc .fc-daygrid-day-number { font-size: 12px; padding: 4px; }
  .fc .fc-daygrid-event { margin: 2px 1px; padding: 1px 2px; }
  .fc .fc-daygrid-event .event-content strong { font-size: 10px; }
  .dialog { max-width: calc(100vw - 16px); border-radius: 10px; }
  .dialog-heading { padding: 15px 16px 12px; }
  .dialog-eyebrow { display: none; }
  .dialog-body { padding: 15px 16px; }
  .field { font-size: 14px; margin-bottom: 14px; }
  .dialog .button, .dialog .text-button { font-size: 13px; }
  .dialog-footer { padding: 12px 16px; }
  #event-form .dialog-footer { flex-wrap: wrap; }
  .event-secondary-actions { width: 100%; justify-content: space-between; }
  #event-form .footer-actions { margin-left: auto; }
  .dialog-heading h2 { font-size: 20px; }
  .dialog-heading p { font-size: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .login-page { padding: 26px 22px; }
  .login-main { display: block; padding: 42px 0; }
  .login-story { text-align: center; margin-bottom: 28px; }
  .login-story h1 { font-size: 31px; line-height: 1.5; margin: 14px 0 10px; }
  .login-story h1 br { display: none; }
  .login-story > p { font-size: 14px; }
  .login-story > p br { display: none; }
  .calendar-art { display: none; }
  .login-card { max-width: 420px; margin: auto; padding: 25px; }
  .login-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 15px; }
  .login-page > header .subtle { font-size: 13px; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .privacy-card { margin-top: auto; margin-bottom: 14px; padding: 11px; }
  .privacy-card p { display: none; }
  .privacy-icon { display: inline-block; margin-right: 6px; }
  .privacy-card .text-button { display: block; }
  .sidebar > .brand { margin-bottom: 24px; }
  .sidebar-key { padding-top: 14px; }
  .mini-calendar { padding-top: 18px; padding-bottom: 15px; }
  .mini-grid { row-gap: 3px; }
  .main-content { padding-top: 21px; }
  .page-heading { padding-bottom: 21px; }
  .fc .fc-timegrid-slot { height: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
