.calendar-page{max-width:1120px;margin:20px auto 40px;padding:0 20px;display:grid;gap:18px}
.calendar-topbar{display:flex;justify-content:space-between;align-items:center;padding:8px 4px}
.brand-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.brand-logo{width:34px;height:34px;object-fit:contain}
.brand-wordmark{font-family:"Press Start 2P",monospace;font-size:.7rem;line-height:1;color:#f4f7ff;letter-spacing:.02em}
.card{background:rgba(4,14,34,.72);border:1px solid rgba(117,140,184,.2);border-radius:20px;padding:24px;box-shadow:0 12px 36px rgba(0,0,0,.22)}
.section-switcher-card{padding:16px}
.section-switcher-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.section-switch-btn{background:#0a1a3b;color:#d7e7ff;border:1px solid #34548e;border-radius:14px;padding:18px 14px;font-weight:700;cursor:pointer;text-align:center;display:flex;align-items:center;justify-content:center;line-height:1.3;aspect-ratio:1/1;min-height:180px}
.section-switch-btn.active{background:#ff2d3d;border-color:#ff2d3d;color:#fff}
.section-switch-btn.suggested{border-color:#ff4d5a;box-shadow:0 0 0 1px rgba(255,77,90,.3)}

.switch-btn-content{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;max-width:220px}
.switch-btn-label{font-size:1.04rem;line-height:1.2}
.switch-btn-hint{font-size:.81rem;font-weight:500;color:#9bb1dc;line-height:1.35}
.switch-icon{font-size:1.8rem;color:#9ab7ef}
.section-switch-btn.active .switch-icon{color:#fff}
.section-switch-btn.active .switch-btn-hint{color:rgba(255,255,255,.88)}
.integration-settings{display:grid;gap:10px;margin-bottom:14px}
.toggle-row{display:flex;gap:10px;align-items:center;color:#d2def7}
.toggle-row input{
  appearance:none;
  -webkit-appearance:none;
  width:22px;
  height:22px;
  margin:0;
  border-radius:7px;
  border:1px solid rgba(117,140,184,.65);
  background:linear-gradient(180deg,#061734 0%,#091c3e 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 8px rgba(1,8,22,.35);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:all .18s ease;
}
.toggle-row input::after{
  content:'';
  width:7px;
  height:12px;
  border-right:2px solid transparent;
  border-bottom:2px solid transparent;
  transform:rotate(45deg) translate(-1px,-1px) scale(.86);
  opacity:0;
  transition:all .18s ease;
}
.toggle-row input:checked{
  border-color:#ff4d5a;
  background:linear-gradient(180deg,#ff5a66 0%,#ff2d3d 100%);
  box-shadow:0 0 0 2px rgba(255,77,90,.2),0 3px 10px rgba(255,45,61,.35);
}
.toggle-row input:checked::after{
  border-color:#fff;
  opacity:1;
  transform:rotate(45deg) translate(-1px,-1px) scale(1);
}
.toggle-row input:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,77,90,.3),0 3px 10px rgba(255,45,61,.35);
}
.subtle-divider{border:0;border-top:1px solid rgba(110,138,187,.18);margin:2px 0}
.calendar-hero h1{margin:8px 0 12px;font-size:clamp(1.5rem,3vw,2.2rem);max-width:900px;line-height:1.2}
.eyebrow{margin:0;color:#ff4d5a;font-weight:600;font-size:.9rem}
.hero-copy{margin:0;color:#9eaed2;max-width:860px;line-height:1.55}
.hero-actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.hero-cta{display:inline-flex;background:#ff2d3d;border-color:#ff2d3d;color:#fff;font-weight:700}
.button-spinner{width:16px;height:16px;border:2px solid rgba(13,19,37,.25);border-top-color:#0d1325;border-radius:50%;animation:spin .8s linear infinite}
.auth-status{display:flex;gap:10px;align-items:center}
.auth-pill{display:inline-flex;padding:8px 12px;border-radius:999px;border:1px solid rgba(110,138,187,.35);color:#9eaed2;font-size:.84rem}
.auth-pill-ok{color:#d7e0f5;background:rgba(18,31,63,.85)}
label,.field-label{font-size:.9rem;color:#b7c4df;display:grid;gap:8px}
input,textarea,select{width:100%;background:#020b21;color:#edf2ff;border:1px solid rgba(111,140,194,.34);border-radius:12px;padding:11px 12px;font:inherit}
input:focus,textarea:focus,select:focus{outline:none;border-color:#ff4d5a;box-shadow:0 0 0 2px rgba(255,77,90,.2)}
.muted-copy{margin:0 0 12px;color:#8d9cbb}
.section-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:14px}
.section-head h2{margin:0 0 6px}
.composer-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}
.ai-status{min-height:20px;margin-top:10px;color:#9db4ea;font-size:.9rem}
.availability-grid{display:grid;gap:8px;max-height:420px;overflow:auto;padding-right:4px}
.slot-row{display:grid;grid-template-columns:minmax(120px,1.1fr) minmax(132px,1fr) minmax(132px,1fr) auto auto;gap:8px;align-items:center}
.time-stepper-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:1fr 1fr;gap:4px;align-items:stretch;min-width:132px}
.time-stepper-wrap input{grid-row:1 / span 2;min-width:0;font-variant-numeric:tabular-nums}
.time-stepper-btn{border:1px solid rgba(111,140,194,.34);background:#08162f;color:#d7e7ff;border-radius:8px;padding:0 6px;cursor:pointer;line-height:1;font-size:.7rem;min-height:18px}
.slot-row-invalid{padding:6px;border:1px solid rgba(255,86,107,.85);border-radius:12px;background:rgba(80,8,20,.32)}
.remove-btn{background:#2a1320;border:1px solid rgba(255,119,141,.45);color:#ffc1ce;border-radius:10px;padding:8px 11px;cursor:pointer}
.publish-form{display:grid;grid-template-columns:1.2fr .9fr auto;gap:10px;align-items:end;margin-top:16px;padding-top:14px;border-top:1px solid rgba(110,138,187,.18)}
.section-card{margin-top:16px;padding:16px;border-radius:16px}
.calendar-list{display:grid;gap:10px}
.link-row{border:1px solid #2a3f6a;border-radius:14px;padding:12px;background:#020b21;display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.link-row p{margin:6px 0;color:#8f9fbe}
.link-row a{color:#b7cfff}
.link-actions{display:flex;gap:10px;align-items:center}
.link-actions .remove-btn{padding:7px 10px}
.notes-editor{margin-top:12px;text-align:left}
.notes-editor h4{margin:8px 0}
.notes-editor .muted-copy{margin:0 0 8px 0}
.notes-editor [data-notes-list]{margin:0 0 10px 18px;padding:0}
.notes-input-row{display:flex;gap:8px;align-items:flex-start}
.notes-input-row textarea{flex:1}
.notes-actions-row{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.link-notes-list{display:flex;flex-direction:column;gap:8px;margin:0 0 10px 0;padding:0}
.link-note-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px;background:rgba(255,255,255,.03)}
.link-note-row p{margin:0;white-space:pre-wrap;word-break:break-word}
.link-note-actions{display:flex;gap:6px;align-items:center}
.remove-btn.tiny{padding:4px 8px;line-height:1}
.ghost-btn{background:#fff;border:1px solid #d6dceb;border-radius:10px;padding:10px;color:#101522;cursor:pointer;text-decoration:none;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1.2;text-align:center}
.ghost-btn.tiny{padding:7px 10px;font-size:.82rem}
.tz-control{min-width:260px}
.tz-display-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tz-edit-link{background:none;border:none;color:#ff4d5a;cursor:pointer;padding:0;font:inherit;font-size:.88rem}
.tz-edit-link:hover{text-decoration:underline}
#guest-timezone-editor{display:grid;gap:10px}
.hidden{display:none!important}
.logged-out-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 14px}
.logged-out-composer{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;margin-top:8px}
.guest-assistant-card{margin-top:12px}
.marketing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.marketing-grid article{background:#020b21;border:1px solid rgba(111,140,194,.24);border-radius:12px;padding:12px}
.marketing-grid h3{margin:0 0 6px;font-size:1rem}
.marketing-grid p{margin:0;color:#9fb0cf;font-size:.9rem;line-height:1.4}

.modal{position:fixed;inset:0;background:rgba(1,7,18,.75);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
.modal-card{width:min(620px,100%);max-height:min(80vh,900px);overflow:auto;background:#091835;border:1px solid rgba(121,146,201,.28);border-radius:20px;padding:34px 30px 28px;position:relative}
.modal-card h3{margin:4px 0 10px;font-size:1.55rem}
.modal-card .muted-copy{line-height:1.6;margin-bottom:18px}
.modal-close{position:absolute;right:10px;top:10px;background:#fff;color:#111827;border:1px solid #d6dceb;border-radius:999px;width:30px;height:30px;font-size:1.2rem;cursor:pointer}
.interaction-history-list{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow:auto;padding-right:4px}
.google-popup-anchor{position:absolute;left:-9999px;top:-9999px;opacity:0}
.warning{color:#ff9ba5}
.integration-warning-banner{display:flex;justify-content:space-between;gap:10px;align-items:center;background:rgba(19,39,81,.45);border:1px solid rgba(121,146,201,.45);border-radius:12px;padding:10px 12px;margin-bottom:10px}
.integration-warning-banner .launch-link{padding:7px 11px}
body.theme-light .integration-warning-banner{background:#eef5ff;border-color:#bfd2f6;color:#15305a}
.meeting-provider-toggle{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}

.launch-link-full{width:100%;margin-top:10px;justify-content:center}
.meeting-pill{background:#0a1a3b;color:#d9e6ff;border:1px solid #34548e;border-radius:999px;padding:8px 12px;cursor:pointer}
.meeting-pill.active{background:#ff2d3d;border-color:#ff2d3d;color:#fff}
body.theme-light .meeting-pill{background:#edf3ff;color:#18325f;border-color:#ccdaf3}
body.theme-light .meeting-pill.active{background:#ff2d3d;color:#fff;border-color:#ff2d3d}
body.theme-light .section-switch-btn.suggested{border-color:#ff4d5a}
body.theme-light .switch-icon{color:#365b98}

.schedule-shell{max-width:900px;margin:30px auto;padding:0 16px}
.schedule-page{min-height:100vh;display:flex;flex-direction:column}
.schedule-page .schedule-shell{flex:1;width:100%}
.schedule-page .site-footer{margin-top:auto}
.schedule-shell-embed{max-width:none;margin:0;padding:0}
.schedule-embed-mode{background:transparent!important}
.hero-panel{display:grid;gap:12px}
.chat-room{display:grid;gap:12px}
.chat-assistant-group{display:grid;gap:8px;justify-items:start}
.chat-bubble{padding:12px 14px;border-radius:14px;max-width:85%;line-height:1.4}
.chat-bubble.assistant{background:#0f244a;color:#e4ecff;border:1px solid rgba(124,154,211,.2)}
.chat-bubble.user{background:#1e2f57;color:#eef3ff;margin-left:auto}
.chat-input-row{display:flex;gap:8px;margin:8px 0 12px;align-items:flex-end}
.chat-input-row textarea{flex:1;min-height:58px;resize:vertical;background:#020b21;color:#edf2ff;border:1px solid rgba(111,140,194,.34);border-radius:10px;padding:10px}
.typing-indicator{display:flex;gap:6px;align-items:center;height:18px;margin:2px 0 4px 4px}
.typing-indicator span{width:7px;height:7px;border-radius:50%;background:#9fb7e8;display:inline-block;animation:waDots 1.2s infinite ease-in-out}
.typing-indicator span:nth-child(2){animation-delay:.15s}
.typing-indicator span:nth-child(3){animation-delay:.3s}
.typing-status-copy{margin:0 0 4px 4px;color:#b6c8ef;font-size:.88rem;min-height:20px}
@keyframes waDots{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}
.chat-actions{display:flex;gap:10px;flex-wrap:wrap}
.slot-grid{display:grid;gap:8px}
.slot-btn{background:#0a1a3b;color:#d7e7ff;border:1px solid #34548e;border-radius:12px;padding:11px 12px;text-align:left;cursor:pointer}
.confirm-btn{background:#1f7a4d;border:1px solid #38a169;color:#ecffef;border-radius:12px;padding:12px 14px;cursor:pointer}
.inline-confirm-btn{padding:8px 12px;font-size:.9rem}
.email-capture-card{max-width:380px;background:rgba(11,28,61,.7);border:1px solid rgba(124,154,211,.35);padding:12px;border-radius:12px;display:grid;gap:10px}
body.theme-light .email-capture-card{background:#f3f8ff;border-color:#c8d8f3}

@media (max-width: 980px){
  .section-switcher-grid{grid-template-columns:1fr}
  .composer-grid,.publish-form{grid-template-columns:1fr}
  .logged-out-composer{grid-template-columns:1fr}
  .tz-control{min-width:0}
  .marketing-grid{grid-template-columns:1fr}
  .link-actions{width:100%;flex-wrap:wrap}
  .link-actions .ghost-btn,
  .link-actions a,
  .link-actions .remove-btn{flex:1 1 calc(50% - 8px);text-align:center;justify-content:center}
  .notes-input-row{flex-direction:column}
  .notes-input-row .ghost-btn{width:100%}
}

.prompt-examples{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.example-chip{background:#08162f;color:#d9e6ff;border:1px solid rgba(124,154,211,.35);border-radius:999px;padding:7px 11px;font-size:.82rem;cursor:pointer}
.example-chip:hover{border-color:#ff4d5a;color:#fff}
.prompt-actions{display:flex;gap:12px;align-items:center;margin-top:10px;flex-wrap:wrap}
.slots-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.tz-current-note{font-size:.84rem;color:#9fb0cf}
.tz-update-link{background:none;border:none;color:#ff7d87;cursor:pointer;padding:0;font:inherit;text-decoration:none}
.loading-overlay{position:fixed;inset:0;background:rgba(1,8,23,.72);display:flex;align-items:center;justify-content:center;z-index:50}
.loading-card{background:#0a1734;border:1px solid rgba(124,154,211,.3);border-radius:14px;padding:16px 18px;display:flex;align-items:center;gap:12px;color:#e6efff}
.loading-spinner{width:18px;height:18px;border-radius:999px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:spin .7s linear infinite}

.loading-overlay-transition{transition:background .55s ease}
.loading-overlay-dark{background:rgba(1,8,23,.86)}
.booking-loader-preview{margin-top:10px;border:1px solid #dbe3ff;background:#fff;border-radius:14px;padding:12px;position:relative;overflow:hidden;color:#0c1630}
.booking-loader-shine{position:absolute;inset:0;background:linear-gradient(110deg,transparent 20%,rgba(84,108,255,.12) 35%,transparent 50%);transform:translateX(-120%);animation:bookingShine 2.2s linear infinite}
@keyframes bookingShine{to{transform:translateX(120%)}}
.booking-loader-row{display:grid;grid-template-columns:200px 1fr;gap:10px;position:relative;z-index:1}
.booking-loader-card{border:1px solid #dbe3ff;border-radius:12px;padding:10px;background:#f8fbff}
.booking-loader-pulse{height:12px;margin:7px 0;border-radius:7px;background:linear-gradient(90deg,rgba(84,108,255,.08),rgba(84,108,255,.24),rgba(84,108,255,.08));background-size:220% 100%;animation:bookingPulse 1.2s ease infinite}
.booking-loader-pulse.w60{width:60%}.booking-loader-pulse.w80{width:80%}.booking-loader-pulse.w40{width:40%}
@keyframes bookingPulse{0%{background-position:200% 0}100%{background-position:-20% 0}}
.booking-loader-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.booking-loader-slots span{height:34px;border-radius:10px;border:1px solid #dbe3ff;background:linear-gradient(135deg,rgba(84,108,255,.22),rgba(16,183,168,.18))}
.loading-overlay-dark .booking-loader-preview{background:#0b1428;border-color:#2a3558;color:#f3f6ff}
.loading-overlay-dark .booking-loader-card{background:#121726;border-color:#2a3558}
.loading-overlay-dark .booking-loader-shine{background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.09) 35%,transparent 50%)}
@media (max-width:860px){.booking-loader-row{grid-template-columns:1fr}.booking-loader-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
@keyframes spin{to{transform:rotate(360deg)}}
.schedule-topbar{margin-bottom:12px}
.theme-toggle-btn{font-size:1rem;min-width:42px}
.share-panel{background:#0b1f45;border:1px solid rgba(124,154,211,.35);color:#e8f0ff;border-radius:14px;padding:12px;display:grid;gap:8px}
.share-panel-title{font-weight:700}
.share-panel-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.share-panel input{background:#081734;color:#e8f0ff;border-color:rgba(124,154,211,.35)}
body.theme-light{background:#f3f7ff;color:#0f1b33}
html.schedule-theme-light body{background:#f3f7ff;color:#0f1b33}
body.theme-light .brand-wordmark{color:#13213e}
html.schedule-theme-light .brand-wordmark{color:#13213e}
body.theme-light .card{background:#fff;border-color:#dbe5f6;box-shadow:0 8px 28px rgba(18,34,67,.08)}
html.schedule-theme-light .card{background:#fff;border-color:#dbe5f6;box-shadow:0 8px 28px rgba(18,34,67,.08)}
body.theme-light .hero-copy,body.theme-light .muted-copy,body.theme-light .auth-pill{color:#4f628a}
html.schedule-theme-light .hero-copy,html.schedule-theme-light .muted-copy,html.schedule-theme-light .auth-pill{color:#4f628a}
body.theme-light input,body.theme-light textarea,body.theme-light select{background:#f8fbff;color:#10203f;border-color:#d0dced}
html.schedule-theme-light input,html.schedule-theme-light textarea,html.schedule-theme-light select{background:#f8fbff;color:#10203f;border-color:#d0dced}
body.theme-light .link-row,body.theme-light .slot-btn{background:#f8fbff;color:#10203f;border-color:#d0dced}
html.schedule-theme-light .link-row,html.schedule-theme-light .slot-btn{background:#f8fbff;color:#10203f;border-color:#d0dced}
body.theme-light .chat-bubble.assistant{background:#ecf3ff;color:#122448;border-color:#c6d9ff}
html.schedule-theme-light .chat-bubble.assistant{background:#ecf3ff;color:#122448;border-color:#c6d9ff}
body.theme-light .chat-bubble.user{background:#dce9ff;color:#132b53}
html.schedule-theme-light .chat-bubble.user{background:#dce9ff;color:#132b53}
body.theme-light .typing-status-copy{color:#48679b}
html.schedule-theme-light .typing-status-copy{color:#48679b}
body.theme-light .modal-card{background:#ffffff;color:#0f1b33;border-color:#cfdbf2}
html.schedule-theme-light .modal-card{background:#ffffff;color:#0f1b33;border-color:#cfdbf2}
body.theme-light .modal-close{background:#f4f8ff}
html.schedule-theme-light .modal-close{background:#f4f8ff}
body.theme-light .loading-card{background:#ffffff;color:#0f1b33;border-color:#cfdbf2}
html.schedule-theme-light .loading-card{background:#ffffff;color:#0f1b33;border-color:#cfdbf2}
body.theme-light .example-chip{background:#edf3ff;color:#18325f;border-color:#ccdaf3}
html.schedule-theme-light .example-chip{background:#edf3ff;color:#18325f;border-color:#ccdaf3}
body.theme-light .share-panel{background:#ffffff;color:#0f1b33;border-color:#d6e1f2}
html.schedule-theme-light .share-panel{background:#ffffff;color:#0f1b33;border-color:#d6e1f2}
body.theme-light .share-panel input{background:#f8fbff;color:#08152f;border-color:#d0dced}
html.schedule-theme-light .share-panel input{background:#f8fbff;color:#08152f;border-color:#d0dced}
body.theme-light .time-stepper-btn{background:#edf3ff;color:#18325f;border-color:#ccdaf3}
html.schedule-theme-light .time-stepper-btn{background:#edf3ff;color:#18325f;border-color:#ccdaf3}
body.theme-light .toggle-row input{border-color:#b8caeb;background:linear-gradient(180deg,#f8fbff 0%,#eaf1ff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 1px 3px rgba(23,48,89,.12)}
html.schedule-theme-light .toggle-row input{border-color:#b8caeb;background:linear-gradient(180deg,#f8fbff 0%,#eaf1ff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 1px 3px rgba(23,48,89,.12)}


.existing-booking-card{background:rgba(11,28,61,.7);border:1px solid rgba(124,154,211,.35);border-radius:12px;padding:12px;display:grid;gap:8px}
.existing-booking-card h3{margin:0}
.invite-progress-card{min-width:min(700px,95vw);justify-content:space-between;align-items:flex-start;gap:18px}
.invite-progress-card .muted-copy{margin:2px 0 0}
.invite-error{color:#ffc7cd!important}
body.theme-light .existing-booking-card{background:#f3f8ff;border-color:#c8d8f3}
html.schedule-theme-light .existing-booking-card{background:#f3f8ff;border-color:#c8d8f3}
body.theme-light .invite-progress-card{background:#fff;color:#0f1b33;border-color:#cfdbf2}
html.schedule-theme-light .invite-progress-card{background:#fff;color:#0f1b33;border-color:#cfdbf2}

#demo-sync-calendar-btn{margin-top:8px;background:#ff2d3d;border-color:#ff2d3d;color:#fff;font-weight:700}
