/* Guest-only surfaces: high contrast, compact month view on desktop and mobile. */
.schedule-guest{--guest-ink:#171717;--guest-muted:#6d6d6d;--guest-line:#e8e8e8;--guest-yellow:#ffd500;max-width:1280px;margin:0 auto;padding:26px 32px 40px;color:var(--guest-ink);background:#fff}.guest-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:2px solid #191919}.guest-brand{display:flex;align-items:center;gap:13px;min-width:0}.guest-brand>img{flex:none}.guest-studio{display:flex;align-items:center;gap:9px;color:#656565;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.guest-role{font-size:10px;color:#777;border-left:1px solid #ccc;padding-left:9px;white-space:nowrap}.guest-header h1{font-size:27px;line-height:1.15;letter-spacing:-.045em;margin:4px 0 0}.guest-account{display:flex;align-items:center;gap:7px;flex:none}.schedule-guest .btn,.schedule-guest .icon-btn{min-height:44px;min-width:44px;border-radius:8px;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:#252525;background:#fff;border:1px solid #dedede}.schedule-guest .btn:hover,.schedule-guest .icon-btn:hover{background:#f6f6f6;border-color:#aaa}.schedule-guest .guest-install{background:#191919;color:#fff;border-color:#191919}.schedule-guest .guest-install:hover{background:#353535;color:#fff}.schedule-guest button:focus-visible,.guest-month-picker:focus-within{outline:2px solid #171717;outline-offset:3px}.guest-calendar{padding-top:20px}.guest-controls{display:flex;align-items:center;gap:14px}.guest-month-actions{display:flex;align-items:center;gap:4px;min-width:0}.guest-month-actions .prev svg{transform:rotate(180deg)}.guest-month-actions .icon-btn{border-color:transparent}.guest-month-picker{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 8px;cursor:pointer;border-radius:6px}.guest-month-picker>span{font-size:21px;font-weight:650;letter-spacing:-.03em;white-space:nowrap}.guest-month-picker>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;min-width:0}.guest-month-picker>input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer}.guest-month-actions .guest-today{margin-left:8px;padding:0 13px;font-size:12px}.guest-controls>[data-guest-summary]{margin:0 0 0 auto;color:#4d4d4d;font-size:12px;font-variant-numeric:tabular-nums}.schedule-guest .guest-calendar-toggle{display:none}.guest-calendar-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--guest-muted);padding:10px 0 14px}.guest-calendar-meta p{margin:0}.guest-calendar-meta [data-guest-status]{text-align:right}.guest-calendar-meta .notice{max-width:420px;text-align:left}.guest-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;align-items:start}.guest-weekdays,.guest-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.guest-weekdays{padding:0 0 10px;text-align:left;font-size:11px;color:#757575}.guest-weekdays span{padding-left:10px}.guest-weekdays span:nth-last-child(-n+2){color:#999}.guest-month-grid{border-top:1px solid var(--guest-line);border-left:1px solid var(--guest-line);border-radius:8px;overflow:hidden}.schedule-guest .guest-date{min-width:0;height:98px;padding:8px 6px 6px;display:flex;flex-direction:column;gap:5px;text-align:left;cursor:pointer;background:#fff;color:#222;border:0;border-right:1px solid var(--guest-line);border-bottom:1px solid var(--guest-line);border-radius:0;box-shadow:none;transition:background .15s}.guest-date-head{display:flex;align-items:center;justify-content:space-between;min-height:23px;padding:0 2px}.guest-date-head>strong{font-size:12px;font-weight:550;display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%}.guest-date-head>i{display:none;font-style:normal}.schedule-guest .guest-date.today .guest-date-head>strong{background:#191919;color:#fff}.schedule-guest .guest-date.selected{background:#fffbed;box-shadow:inset 0 0 0 2px var(--guest-yellow)}.schedule-guest .guest-date:hover:not(:disabled){background:#fff9dd}.schedule-guest .guest-date:focus-visible{outline-offset:-3px}.schedule-guest .guest-date.outside{background:#fafafa;color:#b7b7b7;cursor:default}.guest-date-labels{display:flex;flex-direction:column;gap:3px;min-width:0}.guest-date-labels small{font-size:11px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;padding:3px 5px;border-radius:3px;border-left:2px solid var(--guest-yellow)}.guest-date-labels small+small{-webkit-line-clamp:1}.guest-date-project{background:#fff3b7;color:#292400}.guest-date-busy{background:#f1f1f1;color:#666;border-left-color:#aaa!important}.guest-date-labels .guest-date-more{background:none;border:0;font-size:10px;padding:0 3px;color:#6d6d6d}.guest-day{border-left:1px solid var(--guest-line);padding:0 0 0 24px}.guest-day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 15px;border-bottom:1px solid #1c1c1c}.guest-day-week{font-size:11px;color:#777}.guest-day-heading h2{font-size:21px;line-height:1.3;letter-spacing:-.035em;margin:5px 0 0}.guest-day-heading>span{font-size:11px;color:#737373;white-space:nowrap}.guest-entries{display:flex;flex-direction:column}.schedule-guest .guest-entry{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;text-align:left;border:0;border-bottom:1px solid var(--guest-line);border-radius:0;background:#fff;padding:19px 0;color:#191919;min-width:0;box-shadow:none}.schedule-guest button.guest-entry{cursor:pointer}.schedule-guest button.guest-entry:hover{background:#fffbed}.guest-entry-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:9px}.guest-entry-main>strong{font-size:15px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}.guest-entry-time{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.6;color:#666;white-space:normal;font-variant-numeric:tabular-nums}.guest-entry-time svg{flex:none;margin-top:2px}.guest-entry-action{align-self:center;flex:none;width:27px;height:27px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff2a5;color:#262100}.guest-unavailable .guest-entry-main>strong{color:#6d6d6d;font-weight:500}.guest-unavailable small{font-size:11px;color:#828282}.guest-unavailable>svg{color:#888}.guest-empty{padding:36px 6px;color:#8a8a8a;text-align:center}.guest-empty>svg{color:#a7a7a7;margin:0 auto 9px}.guest-empty h3{font-size:14px;font-weight:500;color:#666;margin:10px 0 7px}.guest-empty p{font-size:12px;line-height:1.7;margin:0}.guest-footnote{margin:18px 0 0;font-size:11px;color:#888}.guest-project-detail .guest-category{display:inline-flex;align-items:center;padding:5px 9px;background:#fff0a2;color:#403500;border-radius:4px;font-size:11px;font-weight:550}.guest-project-detail h3{font-size:28px;line-height:1.45;letter-spacing:-.035em;margin:16px 0 27px;overflow-wrap:anywhere}.guest-project-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:0 0 24px}.guest-project-detail dl>div{min-width:0;border-top:1px solid #e5e5e5;padding-top:17px}.guest-project-detail dt{color:#777;font-size:11px;margin-bottom:9px}.guest-project-detail dd{margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.guest-project-detail dd strong{display:block;font-size:28px;line-height:1.4;letter-spacing:-.03em;color:#171717;font-weight:600;margin-top:5px;font-variant-numeric:tabular-nums}.guest-detail-location{grid-column:1/-1}.guest-detail-loading{padding:28px 0;color:#777}dialog.panel.guest-detail-panel{width:min(560px,calc(100vw - 48px));max-height:min(760px,calc(100dvh - 48px))}dialog.panel.guest-detail-panel .panel-wrap{max-height:inherit}dialog.panel.guest-detail-panel .panel-body{overflow:auto;overscroll-behavior:contain;padding-bottom:max(28px,env(safe-area-inset-bottom))}dialog.panel.guest-detail-panel .panel-header{flex:none}dialog.panel.guest-detail-panel [data-close]{min-width:44px;min-height:44px}dialog.panel.guest-detail-panel .panel-header .eyebrow{color:#777}.guest-project-detail .form-hint{font-size:11px;color:#777;line-height:1.7}
@media(max-width:1060px){.schedule-guest{padding:22px 24px 36px}.guest-layout{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.guest-day{padding-left:18px}.schedule-guest .guest-date{height:94px}.guest-date-labels small{font-size:10px;padding-left:3px;padding-right:3px}.guest-account .btn{padding:0 11px}}
@media(max-width:760px){.schedule-guest{padding:max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));max-width:560px}.guest-header{align-items:center;gap:10px;padding-bottom:17px}.guest-brand{gap:10px}.guest-brand>img{width:31px;height:31px}.guest-studio{font-size:10px;display:block;max-width:200px}.guest-role{display:none}.guest-header h1{font-size:24px;margin-top:4px}.guest-account{gap:2px}.guest-account .btn{padding:0;width:44px;border:0;background:transparent}.guest-account .btn span{display:none}.guest-account .guest-install{color:#171717;background:#ffd500;border-radius:50%}.guest-calendar{padding-top:15px}.guest-controls{flex-wrap:wrap;column-gap:6px;row-gap:12px}.guest-month-actions{width:100%;gap:1px;justify-content:space-between}.guest-month-picker{padding:0 5px;flex:1;gap:5px;max-width:220px}.guest-month-picker>span{font-size:20px}.guest-month-actions .guest-today{margin-left:auto}.guest-month-actions .icon-btn{width:44px;padding:0}.schedule-guest .guest-calendar-toggle{display:inline-flex;order:2;min-height:44px;font-size:12px;padding:0 12px}.guest-controls>[data-guest-summary]{margin-left:auto;order:3;font-size:12px;color:#616161}.guest-calendar-meta{padding:11px 0 16px;font-size:10px;align-items:baseline}.guest-layout{display:block}.schedule-guest [data-guest-grid]{display:none}.schedule-guest.calendar-expanded [data-guest-grid]{display:block;margin-bottom:22px}.guest-weekdays{padding-bottom:7px}.guest-weekdays span{text-align:center;padding:0}.schedule-guest .guest-date{height:auto;min-height:94px;padding:5px 2px;justify-content:flex-start;gap:4px}.guest-date-head{justify-content:flex-start;position:relative;padding:0;min-height:25px}.guest-date-head>strong{width:26px;height:26px;font-size:12px}.guest-date-head>i{display:none}.guest-date-labels{display:flex;gap:3px}.guest-date-labels small{font-size:10px;line-height:1.35;padding:2px 2px;border-left-width:2px;-webkit-line-clamp:2;white-space:normal}.guest-date-labels small+small{-webkit-line-clamp:2}.guest-date-labels .guest-date-more{font-size:9px;-webkit-line-clamp:1;line-height:1.3;padding-top:1px}.schedule-guest .guest-date.selected{box-shadow:inset 0 0 0 2px #ffd500;background:#fff9dc}.guest-day{padding:0;border:0}.guest-day-heading{padding:2px 0 15px;border-bottom:1px solid #1b1b1b}.guest-day-heading h2{font-size:19px;margin:0}.guest-day-heading .guest-day-week{display:block;margin-bottom:5px}.guest-day-heading>span{font-size:11px}.guest-agenda-group{margin:18px 0 5px}.guest-agenda-group>h3{display:flex;align-items:baseline;gap:10px;margin:0;padding:0 0 10px;border-bottom:1px solid var(--guest-line)}.guest-agenda-group>h3>strong{font-size:29px;font-weight:600;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.guest-agenda-group>h3>span{font-size:11px;color:#727272;font-weight:400}.guest-agenda-group>h3>em{font-style:normal;font-size:10px;background:#ffd500;padding:3px 6px;border-radius:4px;margin-left:auto;font-weight:500}.schedule-guest .guest-entry{padding:19px 0;gap:18px}.guest-entry-main{gap:8px}.guest-entry-main>strong{font-size:16px;line-height:1.55}.guest-entry-time{font-size:12px}.guest-entry-action{width:30px;height:30px}.schedule-guest .guest-all{margin-top:12px;font-size:12px;padding:0 12px}.guest-footnote{border-top:1px solid #eee;padding-top:16px;margin-top:22px;font-size:10px}.guest-empty{padding:45px 10px}.guest-project-detail h3{font-size:25px;margin-bottom:24px}.guest-project-detail dl{gap:20px 14px}.guest-project-detail dd{font-size:12px}.guest-project-detail dd strong{font-size:27px}dialog.panel.guest-detail-panel{width:100%;max-width:100%;height:auto;max-height:calc(100dvh - max(18px,env(safe-area-inset-top)));margin:auto 0 0;border-radius:18px 18px 0 0}dialog.panel.guest-detail-panel .panel-wrap{height:auto;max-height:calc(100dvh - max(18px,env(safe-area-inset-top)))}dialog.panel.guest-detail-panel .panel-header{padding:10px 20px 18px}dialog.panel.guest-detail-panel .panel-body{padding:22px 20px max(28px,env(safe-area-inset-bottom));min-height:0}dialog.panel.guest-detail-panel .sheet-handle{min-height:28px}.standalone-app .schedule-guest{padding-top:max(20px,env(safe-area-inset-top))}}
@media(max-width:360px){.schedule-guest.calendar-expanded [data-guest-grid]{margin-left:-7px;margin-right:-7px;}.schedule-guest{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.guest-brand{gap:7px}.guest-brand>img{width:27px;height:27px}.guest-header h1{font-size:22px}.guest-studio{font-size:9px}.guest-account{gap:0}.guest-account .btn{width:44px}.guest-month-picker>span{font-size:18px}.guest-month-picker{gap:3px}.guest-month-actions .guest-today{padding:0 10px}.guest-project-detail h3{font-size:22px}.guest-project-detail dd strong{font-size:24px}}
@media(max-height:500px) and (orientation:landscape){dialog.panel.guest-detail-panel{max-height:calc(100dvh - 12px)}dialog.panel.guest-detail-panel .panel-wrap{max-height:calc(100dvh - 12px)}dialog.panel.guest-detail-panel .panel-header{padding-top:10px;padding-bottom:10px}.guest-project-detail h3{margin:10px 0 16px}.guest-project-detail dl{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.schedule-guest .guest-date{transition:none}}
/* Hide every old authenticated surface, including dialogs, until identity is verified. */
:root[data-session-checking] body > :not(#session-verification),:root[data-session-checking] body > :not(#session-verification) *{visibility:hidden!important;pointer-events:none!important}
#session-verification{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#fff;color:#222;z-index:2147483647;padding:24px;text-align:center}

/* Observer journey refinement: isolated from the business workspace. */
.schedule-guest{--guest-muted:#626262;max-width:1440px;padding-top:32px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.guest-header{border-bottom:1px solid #e8e8e8;padding-bottom:24px}
.guest-header h1{font-size:30px;letter-spacing:-.055em;font-weight:650}
.guest-calendar{padding-top:26px}
.schedule-guest .guest-calendar-toggle{display:inline-flex;margin-left:12px;font-size:12px}
.schedule-guest:not(.calendar-expanded) [data-guest-grid]{display:none}
.schedule-guest:not(.calendar-expanded) .guest-layout{grid-template-columns:1fr}
.schedule-guest:not(.calendar-expanded) .guest-day{max-width:860px;margin:0 auto;border-left:0;padding-left:0}
.guest-layout{grid-template-columns:minmax(0,1fr) 320px;gap:32px;min-height:470px}
.guest-day{position:sticky;top:24px}
.guest-day-nav{display:flex;align-items:center;gap:6px;padding:12px 0 4px}
.schedule-guest .guest-day-nav .btn{margin:0;border-color:transparent}
.guest-day-nav [data-guest-day-step="-1"] svg,.guest-detail-back svg{transform:rotate(180deg)}
.schedule-guest .guest-day-nav .guest-all{flex:1;font-size:12px}
.schedule-guest .guest-date{height:108px;transition:background .18s ease,box-shadow .18s ease}
.schedule-guest .guest-date.selected{background:#fff;box-shadow:inset 0 0 0 2px #171717}
.schedule-guest .guest-date.selected .guest-date-head>strong{background:#ffd500;color:#171717}
.schedule-guest .guest-date.today:not(.selected) .guest-date-head>strong{background:#171717;color:#fff}
.guest-date-project{background:#fff7cc}
.guest-day-heading{border-bottom-color:#e8e8e8}
.schedule-guest .guest-entry{padding:18px 8px;border-radius:10px;transition:background .18s ease,transform .18s ease}
.schedule-guest button.guest-entry:hover{background:#fafafa;transform:translateX(2px)}
.guest-entry-action{background:#ffd500}
.guest-entry-time,.guest-day-week,.guest-day-heading>span,.guest-footnote,.guest-empty,.guest-empty p,.guest-unavailable small{color:#626262}
.guest-agenda-group{margin:24px 0 8px}
.guest-agenda-group>h3{display:flex;align-items:baseline;gap:12px;margin:0;padding-bottom:12px;border-bottom:1px solid #e8e8e8}
.guest-agenda-group>h3>strong{font-size:30px;letter-spacing:-.04em;font-weight:600}
.guest-agenda-group>h3>span{font-size:12px;color:#626262;font-weight:400}
.guest-agenda-group>h3>em{font-size:11px;font-style:normal;background:#ffd500;padding:3px 8px;border-radius:5px}
.schedule-guest .guest-next-arrangement{font-size:12px;line-height:1.5;margin-top:20px;padding:8px 12px;white-space:normal}
.guest-loading{min-height:410px;display:grid;align-content:start;gap:20px;padding:20px 0}
.guest-loading i{display:block;height:100px;border-radius:12px;background:#f5f5f5;animation:guest-breathe 1.5s ease-in-out infinite alternate}
.guest-loading i:nth-child(2){animation-delay:.1s}.guest-loading i:nth-child(3){animation-delay:.2s}
@keyframes guest-breathe{from{opacity:.45}to{opacity:1}}
dialog.panel.guest-detail-panel{border-radius:24px;border:1px solid #e5e5e5;box-shadow:0 24px 80px #0002}
.guest-detail-back{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:#333;background:#fff;border:1px solid #dedede;border-radius:10px;padding:0 12px;margin-bottom:8px}
.guest-detail-back:focus-visible{outline:2px solid #171717;outline-offset:3px}
.guest-project-detail h3{font-weight:650;letter-spacing:-.04em}
@media(min-width:761px){.schedule-guest:not(.calendar-expanded) .guest-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}}
@media(max-width:1060px){.guest-layout{grid-template-columns:minmax(0,1fr) 270px;gap:20px}}
@media(max-width:760px){.schedule-guest{padding-top:max(20px,env(safe-area-inset-top))}.guest-header h1{font-size:25px}.guest-calendar{padding-top:18px}.guest-layout{display:block;min-height:430px}.guest-day{position:static}.schedule-guest .guest-calendar-toggle{margin-left:0}.schedule-guest .guest-date{height:auto;min-height:94px}.guest-month-grid{border-radius:12px}.guest-date-head>strong{font-size:13px}.guest-controls{row-gap:8px}.guest-calendar-meta{padding-bottom:14px}.schedule-guest .guest-entry{padding:18px 8px}.guest-loading{min-height:440px}dialog.panel.guest-detail-panel{border-radius:24px 24px 0 0}.guest-detail-back{font-size:12px}}
@media(prefers-reduced-motion:reduce){.schedule-guest *,.guest-detail-panel *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Empty weeks stay compact, so the selected day's agenda is reachable sooner. */
@media(max-width:760px){.schedule-guest .guest-date{min-height:64px}.guest-loading i{height:64px}.guest-loading{min-height:330px}.guest-header{padding-bottom:18px}}
/* Guest portal mounts directly inside #app while desk.css locks html/body/#app
   to overflow:hidden; give #app native vertical scrolling like .auth-shell. */
#app:has(> .schedule-guest){height:var(--app-height,100dvh);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
.schedule-guest{padding-bottom:calc(40px + env(safe-area-inset-bottom))}
dialog.panel.guest-detail-panel{animation:guest-detail-enter .22s cubic-bezier(.2,.7,.2,1)}
@keyframes guest-detail-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){dialog.panel.guest-detail-panel{animation:none!important}}
