.calendar-workspace{max-width:1440px}.calendar-workspace .heading p{margin-top:8px;color:var(--muted,#786f60)}.calendar-actions,.calendar-toolbar,.calendar-month-nav,.google-connection-state,.calendar-connect-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.calendar-toolbar{justify-content:space-between;margin:30px 0 8px}.calendar-month-nav h2{font-size:25px;min-width:155px;text-align:center;margin:0}.calendar-month-nav>.button{padding:7px 13px;font-size:23px;min-width:42px}.calendar-actions select{max-width:250px;padding:12px;border:1px solid var(--line,#e5dabe);border-radius:8px;background:transparent;color:inherit;font:inherit}.calendar-connect-note{justify-content:space-between;padding:22px 26px;border:1px solid #dfcba8;background:#fff0ce;border-radius:12px}.calendar-connect-note p{margin:6px 0 0;color:#786451}.calendar-status{min-height:26px;color:#7b5145;font-size:15px;margin:8px 0 18px}.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.calendar-month,.calendar-agenda{border:1px solid #e5dabe;border-radius:14px;overflow:hidden;background:#fffbea}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{background:#f5efd8;border-bottom:1px solid #e5dabe}.calendar-weekdays span{padding:14px;text-align:center;font-size:14px;color:#766b5d}.calendar-weekdays span:first-child{color:#a04c45}.calendar-day{font:inherit;text-align:left;min-width:0;min-height:118px;padding:10px 8px;border:0;border-right:1px solid #eee4cd;border-bottom:1px solid #eee4cd;background:transparent;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:6px}.calendar-day:nth-child(7n){border-right:0}.calendar-day:hover:not(:disabled){background:#f8efd7}.calendar-day.is-selected{background:#f3e7cb;box-shadow:inset 0 0 0 2px #7b303a}.calendar-day.outside{color:#bcb29e;cursor:default;background:#faf6e4}.calendar-date{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:15px;border-radius:50%}.is-today .calendar-date{background:#7b303a;color:#fff;font-weight:700}.calendar-day-events{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0}.calendar-event-chip{font-size:12px;line-height:1.6;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-left:2px solid #7b303a;padding:1px 4px;background:#eadcd0;border-radius:3px;color:#67313a}.calendar-day-events small{font-size:11px;color:#7f7160}.calendar-agenda{padding:22px}.calendar-agenda header{display:flex;justify-content:space-between;gap:12px;align-items:center}.calendar-agenda h2{font-size:20px;margin:8px 0 18px}.calendar-agenda .eyebrow{font-size:12px}.calendar-agenda-event{display:flex;flex-direction:column;gap:7px;text-align:left;border:0;border-top:1px solid #e8dfc7;padding:18px 0;width:100%;background:none;cursor:pointer;color:inherit;font:inherit;overflow-wrap:anywhere}.calendar-agenda-event>span{font-size:13px;color:#8a665a}.calendar-agenda-event strong{font-size:17px}.calendar-agenda-event small{color:#897965;font-size:13px}.calendar-empty{padding:45px 0;text-align:center;color:#97876f}.calendar-empty>span{font-size:40px;color:#b3a68c}.calendar-empty p{font-size:15px}.google-connection-state{justify-content:space-between;margin:25px 0}.google-connection-state p{font-size:14px;color:#786b5d;margin:6px 0}.google-setup{border-top:1px solid #e5dabe;padding-top:18px}.google-setup summary{font-weight:600;cursor:pointer}.google-setup ol{padding-left:24px;line-height:1.9}.google-setup li+li{margin-top:12px}.google-setup a{color:#7b303a;text-underline-offset:4px}.google-redirect{display:block;padding:12px;margin-top:8px;background:#f3ecd7;overflow-wrap:anywhere;font-size:13px;border-radius:6px;white-space:normal}.google-file-label{position:relative;overflow:hidden;cursor:pointer;margin-top:8px}.google-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.google-message{color:#7b303a;min-height:1em;margin:16px 0 0;font-size:14px}#calendar-event-dialog{background:#fffbea;color:#30271e;border:1px solid #e2d4b6;border-radius:16px;padding:30px;width:min(560px,calc(100% - 32px));max-height:90dvh;box-sizing:border-box;overflow:auto}#calendar-event-dialog::backdrop{background:#30251d66}.calendar-dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.calendar-dialog-heading h2{margin:0}#calendar-event-dialog fieldset{display:flex;flex-direction:column;gap:16px;padding:0;border:0;min-width:0}#calendar-event-dialog label{display:flex;flex-direction:column;gap:7px;font-size:14px}#calendar-event-dialog input:not([type=checkbox]),#calendar-event-dialog textarea{font:inherit;border:1px solid #dbccb1;border-radius:7px;padding:12px;box-sizing:border-box;width:100%;background:#fffdf1;color:inherit}#calendar-event-dialog .calendar-all-day{flex-direction:row;align-items:center;gap:8px}.calendar-form-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px}.calendar-dialog-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:20px}.calendar-event-message{font-size:14px;color:#7b303a;line-height:1.7}.calendar-day:focus-visible,.calendar-agenda-event:focus-visible{outline:3px solid #7b303a;outline-offset:-3px}@media(max-width:1100px){.calendar-layout{grid-template-columns:minmax(0,1fr)}.calendar-agenda{padding:20px}.calendar-agenda-event{padding:15px 0}.calendar-day{min-height:105px}}@media(max-width:600px){.calendar-workspace .heading{align-items:flex-start;gap:15px}.calendar-workspace .heading h1{font-size:30px}.calendar-toolbar{align-items:flex-start;gap:16px}.calendar-month-nav{gap:9px;width:100%}.calendar-month-nav h2{font-size:22px;min-width:135px}.calendar-actions{gap:8px}.calendar-actions .button{font-size:13px;padding:10px 12px}.calendar-actions select{max-width:190px;font-size:14px;padding:10px}.calendar-day{min-height:85px;padding:5px 3px;gap:4px}.calendar-date{width:24px;height:24px;font-size:13px}.calendar-event-chip{font-size:10px;padding:0 2px}.calendar-weekdays span{padding:12px 4px}.calendar-day-events{gap:3px}.calendar-day-events small{font-size:10px}.calendar-connect-note{padding:20px;gap:16px}.calendar-form-dates{grid-template-columns:1fr}.google-connection-state{align-items:flex-start;gap:15px}#calendar-event-dialog{padding:22px}.google-setup ol{padding-left:20px;font-size:14px}}
@media(max-width:700px){.sidebar>.schedule-shortcut{display:flex;order:3;width:100%;margin:0;min-height:32px;padding:7px 10px;font-size:12px}}
@media(max-width:600px){body:has(#calendar:not([hidden])) .material-tutor{display:none}}
.google-account-switch{margin:20px 0;min-width:0}.google-account-switch label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px;font-weight:600}.google-account-switch select{padding:10px 12px;max-width:100%;min-width:180px;background:var(--paper,#fff);color:inherit;border:1px solid var(--line,#e5dabe);border-radius:7px;font:inherit}.google-account-switch .preference-note{margin-top:9px;font-size:12px;line-height:1.8;font-weight:400}
#calendar-event-dialog{max-width:calc(100vw - 32px);text-align:left}
#calendar-event-dialog form{text-align:left;min-width:0}
#calendar-event-dialog label{min-width:0;text-align:left}
#calendar-event-dialog .calendar-form-dates{grid-template-columns:minmax(0,1fr);min-width:0}
#calendar-event-dialog input:not([type=checkbox]),#calendar-event-dialog textarea{min-width:0;max-width:100%;font-size:14px;line-height:1.5}
#calendar-event-dialog input::-webkit-date-and-time-value{text-align:left;min-width:0}
#calendar-event-dialog .calendar-event-message{text-align:left}
.calendar-event-chip{background:var(--event-bg,#eadcd0);border-left-color:var(--event-accent,#7b303a);color:#302b29}
.calendar-agenda-event[style]{background:var(--event-bg);border-left:3px solid var(--event-accent);border-top:0;padding:15px 14px;margin:12px 0;border-radius:7px}
#calendar-event-dialog .calendar-color-field{display:grid;gap:10px;text-align:left}
#calendar-event-dialog .calendar-color-field>span{font-size:14px}
#calendar-event-dialog .calendar-color-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(60px,1fr));gap:8px}
#calendar-event-dialog .calendar-color-option{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px 5px;border:1px solid #e6dcc9;border-radius:8px;font-size:11px;cursor:pointer}
#calendar-event-dialog .calendar-color-option input[type=radio]{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer;min-height:0;padding:0}
#calendar-event-dialog .calendar-color-swatch{display:block;width:24px;height:24px;background:var(--swatch);border:2px solid var(--swatch-border);border-radius:50%;pointer-events:none}
#calendar-event-dialog .calendar-color-option:has(input:checked){border-color:#7b303a;box-shadow:0 0 0 1px #7b303a;background:#ffffff70}
#calendar-event-dialog .calendar-color-option:has(input:checked) .calendar-color-swatch:after{content:'✓';display:grid;place-items:center;height:100%;font-size:13px;color:#342c32;font-weight:700}
#calendar-event-dialog .calendar-color-option:has(input:focus-visible){outline:3px solid #b77d8d;outline-offset:2px}
#calendar-event-dialog .calendar-color-preview{padding:12px 14px;font-size:13px;line-height:1.6;background:var(--event-bg,#f3eee3);border-left:3px solid var(--event-accent,#7b303a);border-radius:6px;color:#302b29;overflow-wrap:anywhere}
/* Keep the calendar surface quiet so event colors remain distinct. */
.calendar-month,.calendar-agenda{background:#fffef8;border-color:#e8e2d5}
.calendar-weekdays{background:#faf7ec;border-bottom-color:#e8e2d5}
.calendar-day{border-right-color:#eee9dd;border-bottom-color:#eee9dd}
.calendar-day:hover:not(:disabled){background:#fcf9ee}
.calendar-day.is-selected{background:#faf5e7}
.calendar-day.outside{background:#faf9f4}
.calendar-event-chip{color:var(--event-ink,#302b29)}
.calendar-agenda-event[style]{color:var(--event-ink,#302b29)}
.calendar-agenda-event[style]>span,.calendar-agenda-event[style] small{color:inherit;opacity:.85}
#calendar-event-dialog .calendar-color-preview{color:var(--event-ink,#302b29)}

#calendar-event-dialog .calendar-save-status{min-block-size:1.6em;margin:8px 0 0;font-size:12px;line-height:1.6;text-align:left}

/* Three separate icon shortcuts keep one row on desktop and mobile. */
.sidebar-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;order:0;width:100%;margin:8px 0 16px}
.sidebar .sidebar-shortcuts>.schedule-shortcut{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:44px;min-height:44px;padding:0;margin:0;gap:0}
.sidebar .sidebar-shortcuts .schedule-icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0}
.sidebar-shortcuts .schedule-icon svg{width:20px;height:20px}
