:root {
  color-scheme: dark;
  --background: #090f17;
  --ink: #edf2f7;
  --muted: #a0adbd;
  --accent: #b9ccdc;
  --line: #ffffff0d;
  --wash: #151e29;
  --surface: #1c2734;
  --control: #2b3a4b;
  --radius-small: 10px;
  --radius-control: 14px;
  --radius-panel: 22px;
  --radius-dialog: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font: inherit; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Retain focus and its keyboard affordance; suppress only pointer focus rings. */
:root[data-input-modality="pointer"] :is(button, a, [tabindex]):focus-visible { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.6px; }
h2, h3 { font-size: 14px; font-weight: 500; }
.calendar-shell { width: min(1100px, 100%); margin: auto; padding: 0 28px; }
.calendar-shell:has(footer) { display: flex; flex-direction: column; min-height: 100svh; }
.calendar-shell:has(footer) > main { padding-bottom: 24px; }
.yes-logo { position: relative; display: block; height: 32px; aspect-ratio: 320 / 410; }
.yes-logo span { position: absolute; inset: 0; background: #7da8cf; mask-position: center; mask-repeat: no-repeat; mask-size: 100% 100%; -webkit-mask-position: center; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; }
.yes-logo-bars { mask-image: url('/brand/yes-logo-bars-mask.png'); -webkit-mask-image: url('/brand/yes-logo-bars-mask.png'); }
.yes-logo-center { mask-image: url('/brand/yes-logo-center-mask.png'); -webkit-mask-image: url('/brand/yes-logo-center-mask.png'); }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 12px; background: var(--surface); z-index: 10; border-radius: var(--radius-small); }
.skip-link:focus { top: 12px; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.wordmark { min-width: 44px; min-height: 44px; justify-content: center; display: inline-flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 650; letter-spacing: -.8px; line-height: 1; text-decoration: none; }
.masthead-note, .eyebrow, .event-count { color: var(--muted); font-size: 12px; font-weight: 400; }
.signout { border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; padding: 8px 10px; }
.signout:hover { background: var(--wash); color: var(--ink); }
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 16px; }
.section-heading { display: flex; align-items: center; gap: 12px; }
.view-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--wash); border: 1px solid var(--line); border-radius: 18px; }
.view-switch::before { content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-control); background: var(--control); box-shadow: inset 0 1px 0 #ffffff0c, 0 2px 5px #0003; }
.view-switch:has([data-view="month"][aria-pressed="true"])::before { transform: translateX(100%); }
.view-switch button { border: 0; border-radius: var(--radius-control); background: transparent; color: var(--muted); font-size: 12px; padding: 8px 14px; min-height: 34px; }
.view-switch button span { display: none; }
.view-switch button[aria-pressed="true"] { color: var(--ink); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-bottom: 16px; }
#filters { display: flex; flex-wrap: wrap; gap: 4px; }
#filters button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 7px 12px; font-size: 12px; white-space: nowrap; }
#filters button:hover { background: var(--wash); color: var(--ink); }
#filters button[aria-pressed="true"] { background: #253547; color: #e1ebf4; }
.filter-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.event-count { white-space: nowrap; }
.month-label { color: var(--muted); font-size: 12px; font-weight: 500; padding: 8px 12px; }
.agenda-group + .agenda-group { margin-top: 18px; }
.event-row { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; align-items: center; width: 100%; min-height: 78px; padding: 12px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: var(--radius-control); background: transparent; text-align: left; }
.event-row.job-row { grid-template-columns: minmax(0, 1fr) 20px; }
.event-row:hover { background: var(--wash); }
.event-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.day-number { font-size: 22px; line-height: 1.15; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.day-name { font-size: 12px; color: var(--muted); }
.event-body { min-width: 0; overflow-wrap: anywhere; }
.event-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.event-title { display: block; min-width: 0; font-size: 15px; font-weight: 500; letter-spacing: -.15px; }
.event-meta { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.event-type { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.event-type::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #7da8cf; flex-shrink: 0; }
.event-arrow { display: grid; place-items: center; color: var(--muted); justify-self: end; }
.event-arrow svg { width: 16px; height: 16px; }
.status { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--wash); color: var(--muted); font-size: 14px; text-align: center; }
.status:empty { display: none; }
.status[data-state="loading"]::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; border: 2px solid #ffffff15; border-top-color: var(--accent); border-radius: 50%; }
.retry { display: block; margin: 12px auto 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--ink); background: var(--surface); font-size: 12px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding: 16px 0 max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.month-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.month-navigation h2 { font-size: 15px; font-weight: 500; }
.month-navigation div { display: flex; gap: 4px; }
.month-navigation button { min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--wash); padding: 6px 10px; font-size: 12px; }
.month-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-control); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.month-week { display: contents; }
.weekday { text-align: center; font-size: 12px; color: var(--muted); padding: 8px; background: var(--wash); }
.month-day { min-height: 112px; padding: 8px 5px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.month-day:nth-child(7n) { border-right: 0; }
.month-day.outside { color: #607083; background: #0002; }
.date-label { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 12px; font-variant-numeric: tabular-nums; }
.month-day.is-today .date-label { background: var(--accent); color: var(--background); border-radius: 50%; }
.month-event { display: block; width: 100%; padding: 6px; margin-top: 5px; border: 0; border-radius: 7px; background: var(--wash); font-size: 12px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.month-event:hover { background: #213348; }
.month-event strong { display: block; font-size: inherit; font-weight: 500; }
.month-event span { display: block; color: var(--muted); font-size: inherit; margin-top: 2px; }
.month-help { color: var(--muted); font-size: 12px; margin-top: 8px; }
/* Event details use the same type and spacing scale as the calendar. */
dialog { width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 18px 22px 22px; border: 1px solid #ffffff12; border-radius: var(--radius-dialog); background: #19232f; color: var(--ink); box-shadow: 0 32px 100px #0007, 0 4px 20px #0003; overscroll-behavior: contain; }
dialog::backdrop { background: #02070d9c; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dialog-top button, .popover-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff09; color: #a9b6c5; }
.dialog-top button:hover, .popover-close:hover { background: #ffffff14; color: var(--ink); }
.dialog-top button span { font-size: 23px; line-height: 1; }
#detail-title { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.6px; margin: 0 0 16px; }
.detail-image { width: 100%; max-height: 230px; object-fit: cover; border-radius: var(--radius-control); margin-bottom: 12px; }
.detail-facts { margin: 0; }
.detail-facts div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.detail-facts div + div { border-top: 1px solid var(--line); }
.detail-facts dt { font-size: 12px; color: var(--muted); }
.detail-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.detail-description { font-size: 14px; line-height: 1.6; margin: 16px 0; color: #bdc9d6; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-action-bar { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.event-action-bar:not(:has(.luma-action)) { justify-content: flex-end; }
.event-action-bar svg, .event-popover svg { width: 20px; height: 20px; flex-shrink: 0; }
.calendar-trigger, .invite-trigger, .luma-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border: 1px solid #ffffff0b; border-radius: var(--radius-control); padding: 10px 14px; font-size: 14px; font-weight: 500; }
.luma-action { flex: 1; background: var(--accent); color: #152332; text-decoration: none; white-space: nowrap; }
.luma-action svg { width: 17px; height: 17px; opacity: .75; }
.luma-action:hover { background: #cad9e6; }
.calendar-trigger, .invite-trigger { flex: 0 0 44px; width: 44px; padding: 10px; background: #253341; color: #c7d8e7; }
.calendar-trigger:hover, .calendar-trigger[aria-expanded="true"], .invite-trigger:hover, .invite-trigger[aria-expanded="true"] { background: #324456; }
.invite-trigger svg { width: 23px; height: 23px; }
.event-popover { position: fixed; inset: auto; margin: 0; width: min(350px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #ffffff18; border-radius: var(--radius-panel); background: #202d3a; color: var(--ink); box-shadow: 0 18px 64px #0006, 0 2px 8px #0003; font: inherit; }
.popover-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.action-title { font-size: 14px; font-weight: 600; }
.popover-close svg { width: 17px; height: 17px; }
.calendar-options { display: grid; gap: 4px; }
.calendar-option { display: flex; align-items: center; width: 100%; gap: 12px; border: 0; border-radius: var(--radius-control); background: transparent; color: inherit; text-decoration: none; text-align: left; padding: 10px; font-size: 14px; }
.calendar-option:hover { background: #ffffff08; }
.calendar-option > svg:last-child { margin-left: auto; width: 17px; opacity: .5; }
.option-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-small); background: #344657; color: #c4d6e7; }
.google-icon { font-size: 18px; font-weight: 600; }
.action-links { display: flex; flex-wrap: wrap; gap: 8px; }
.secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid #ffffff0b; border-radius: var(--radius-small); background: #344657; color: #e3ecf4; font-size: 12px; text-decoration: none; cursor: pointer; }
.secondary-action:hover { background: #40566a; }
.action-note { color: #a8b8c8; font-size: 12px; line-height: 1.6; margin: 8px 0 12px; }
.action-note:empty { display: none; }
.invite-link { width: 100%; min-width: 0; border: 1px solid #ffffff10; border-radius: var(--radius-small); background: #17232f; color: #c1d0df; font-size: 12px; padding: 10px; margin: 0 0 12px; }
.login-panel { padding: 28px; margin: 32px auto; max-width: 440px; border: 1px solid var(--line); border-radius: var(--radius-dialog); background: var(--wash); }
.login-message { color: var(--muted); margin: 12px 0 24px; }
.login-error { color: #ff9b9b; padding: 12px 14px; border: 1px solid #ff9b9b30; border-radius: var(--radius-control); background: #ff6b6b0a; }
.rsvp-link { min-height: 44px; justify-content: center; width: 100%; font-weight: 500; display: inline-flex; align-items: center; gap: 20px; padding: 10px 16px; border-radius: var(--radius-control); background: var(--accent); color: #152332; text-decoration: none; }
.detail-audience { font-size: 12px; color: var(--muted); margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .calendar-shell { padding: 0 16px; }
  .masthead { padding: 14px 0; }
  .wordmark { font-size: 22px; gap: 10px; }
  .section-bar { padding: 18px 0 14px; gap: 10px; }
  .filter-bar { gap: 8px; }
  #filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .filter-summary { width: 100%; margin-left: 0; justify-content: space-between; }
  .event-row { grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 4px 10px; padding: 12px 10px; }
  .month-day { min-height: 100px; padding: 5px 2px; }
  .month-event { padding: 5px 3px; }
  .month-event strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .month-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .weekday { padding: 8px 2px; }
  dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 16px 18px 18px; }
  .view-switch button, #filters button, .month-navigation button, .signout,
  .secondary-action, .dialog-top button, .popover-close { min-height: 44px; }
  .dialog-top button, .popover-close { min-width: 44px; }
  .invite-link { font-size: 16px; }
  .detail-facts div { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
}
/* Keep surface and nested control curves on one shared scale. */
@supports (corner-shape: superellipse(1.25)) {
  dialog, .event-popover, .status, .login-panel, .event-row, .month-scroll,
  .calendar-trigger, .invite-trigger, .luma-action, .calendar-option,
  .secondary-action, .rsvp-link, .detail-image { corner-shape: superellipse(1.25); }
}
@supports (backdrop-filter: blur(20px)) {
  .event-popover { background: #202d3aee; backdrop-filter: blur(20px) saturate(1.15); }
}
@media (pointer: coarse) {
  .view-switch button, #filters button, .month-navigation button, .signout,
  .secondary-action, .dialog-top button, .popover-close { min-height: 44px; }
  .dialog-top button, .popover-close { min-width: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  .event-popover { background: #202d3a; backdrop-filter: none; }
  dialog::backdrop { background: #02070de6; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #c4cfdb; --line: #ffffff45; }
  .calendar-trigger, .invite-trigger, .event-popover, dialog { border-color: #ffffff65; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .18s ease, color .18s ease, transform .2s var(--ease), box-shadow .2s ease; }
  .view-switch::before { transition: transform .26s var(--ease); }
  .event-row:active { transform: scale(.995); }
  .luma-action:active, .rsvp-link:active, .secondary-action:active, .month-navigation button:active { transform: scale(.97); }
  .calendar-trigger:active, .invite-trigger:active { transform: scale(.97); }
  dialog[open] { animation: event-arrive .26s var(--ease); }
  .event-popover:popover-open { animation: popover-arrive .2s var(--ease); }
  dialog[open]::backdrop { animation: backdrop-arrive .22s ease-out; }
  @keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
  .status[data-state="loading"]::before { animation: loading-spin .8s linear infinite; }
  @keyframes event-arrive { from { opacity: 0; transform: translateY(6px) scale(.99); } to { opacity: 1; transform: none; } }
  @keyframes popover-arrive { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
  @keyframes loading-spin { to { transform: rotate(360deg); } }
}
