:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#20233c;background:#f7f8fc;color-scheme:light;--muted:#626c80;--line:#e2e5ef;--own:#e3ebe5;--busy:#e2e7f1}
body{color:#20233c;background:#f7f8fc;margin:0}h1,h2,h3{font-family:inherit;font-weight:600;letter-spacing:-.035em}h1{font-size:clamp(1.8rem,3vw,2.8rem)}h2{font-size:1.45rem}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary:focus-visible{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #57735f}.site-header{background:#fff;border-bottom:1px solid var(--line);min-height:90px;padding:20px 4vw}.brand img{filter:brightness(.2);width:170px}.brand-title{color:#20233c}.brand-icon{color:#57735f}.account-name,.muted,.hint,.eyebrow,.legend,.legend-help{color:var(--muted)}.eyebrow{letter-spacing:.15em}.text-button{color:#515b75}.text-button:hover{color:#455f4c}.primary,.secondary,.icon-button{border-radius:10px;gap:12px}.primary{background:#57735f;color:#fff;border-color:#57735f}.primary:hover{background:#d2dfd5}.secondary{background:#fff;border-color:var(--line);color:#30394f}.secondary:hover,.icon-button:hover{background:#e3ebe5}.icon-button{border-color:var(--line);color:#30394f}.studio-nav{padding:25px 4vw 0;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.studio-switch{display:flex;gap:4px;background:#f0f4f0;padding:5px;border-radius:13px}.studio-switch a{padding:10px 15px;color:#5f657b;border-radius:9px;font-weight:600;text-decoration:none}.studio-switch a span{font-size:.8rem;margin-left:7px;font-weight:400}.studio-switch a[aria-current]{background:#fff;color:#455f4c;box-shadow:0 2px 8px #2423480d}.studio-home{font-size:.85rem;color:#626c80}.workspace{padding:30px 4vw 0;max-width:1800px}.page-heading{margin-bottom:25px}.calendar-layout{grid-template-columns:minmax(0,1fr);gap:24px}.calendar-panel{padding:24px;background:#fff;border:1px solid var(--line);border-radius:20px}.calendar-toolbar{border:0;padding:0 0 22px}.calendar-toolbar h2{font-size:1.6rem}.calendar-grid{border:0;gap:6px}.day{background:#f6f7fb;border:0;border-radius:10px;min-height:110px;color:#273049}.day:not(.blank):not(.past):hover:not(:disabled){background:#e3ebe5}.day.blank{background:transparent}.day.past{color:#737c91}.day.today .day-number{background:#57735f;color:#fff}.day.own{background:#e3ebe5}.day.busy{background:#edf0f6}.day-label{color:#35445c}.stays-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px}.stays-panel .privacy-note{grid-column:1/-1}.stays-panel #stays{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.stay-card,.stay,.booking-card{background:#f7f8fc;border-color:var(--line);border-radius:10px}.subscribe-card{background:#f7f8fc;border-color:var(--line)}.site-footer{border-color:var(--line);margin:32px 4vw 0}.modal{background:#fff;color:#20233c;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 80px #1a17432b}.modal::backdrop{background:#171c3b80;backdrop-filter:blur(4px)}input,textarea,select{background:#f8f9fc;color:#222943;border:1px solid #d6daea;border-radius:9px;padding:12px;min-width:0;max-width:100%;font-size:1rem}input:focus,textarea:focus,select:focus{border-color:#57735f}.form-error{color:#ad2446}.member-row{padding:20px 0;border-bottom:1px solid var(--line);display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}.member-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.member-actions label{font-size:.75rem}.member-actions select{min-height:45px;padding:10px}.member-admin{font-size:.8rem;color:#57735f;background:#e3ebe5;padding:7px 12px;border-radius:20px}.add-user{margin-top:24px;border-color:var(--line)}.add-user form{margin-top:20px}.add-user summary{font-weight:600}.modal .muted{margin:14px 0}.modal .hint{margin-top:10px}#members-status{font-size:.85rem;color:#455f4c;margin:15px 0}.entry-panel{border-color:var(--line)}.entry-art{display:none}.entry-layout{gap:60px}.access-denied{font:16px/1.6 system-ui,sans-serif;max-width:620px;padding:40px;margin:12vh auto}.access-denied .primary{display:inline-block;text-decoration:none}.view-switch{background:#f4f7f4;border-color:var(--line);border-radius:9px}.view-switch button{color:#525d75}.view-switch .view-active{background:#57735f;color:#fff}.toast{background:#24233c;color:#fff}.color-option{color:#29334a}.legend .own-dot{background:#94ad99}.legend .busy-dot{background:#a6b6ce}
.subscription{padding:22px 0;border-bottom:1px solid var(--line)}.subscription h3{margin-bottom:15px}.subscription [data-feed-result]{margin-top:15px}.subscription [data-feed-result] .heading-actions{margin-top:12px}.subscription [data-feed-result][hidden]{display:none}.site-header{margin:0;border-radius:0;box-shadow:none}.brand{max-width:100%}.calendar-toolbar .icon-button{min-width:40px}.modal.wide{width:min(920px,calc(100% - 40px))}
@media(max-width:750px){.site-header{padding:18px;flex-wrap:wrap}.account-nav{gap:14px}.studio-nav{padding:18px}.studio-switch{flex-wrap:wrap}.studio-switch a{padding:10px}.studio-switch a span{display:none}.workspace{padding:5px 14px 0}.calendar-panel{padding:15px 10px;border-radius:15px}.stays-panel{display:block}.stays-panel #stays{margin-top:16px}.calendar-grid{gap:3px}.day{min-height:88px;padding:7px 3px}.entry-layout{display:block;padding:30px 20px}.entry-panel{padding:20px 0;border:0}.entry-intro{margin-bottom:20px}.member-actions{width:100%}.modal{padding:22px;max-width:calc(100% - 24px)}.calendar-toolbar{gap:8px;flex-wrap:wrap}}
/* Shared header arrangement follows FPNBG in both calendars. */
.site-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;padding:20px 4vw;min-height:90px;border:0;border-bottom:1px solid var(--line)}
.site-header .brand{display:block;flex-shrink:0}.site-header .brand img{display:block;width:170px;height:auto}
.site-header .heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;order:0;width:auto;margin:0;padding:0;border:0}
.site-header .account-nav{display:flex;gap:20px;align-items:center;justify-content:flex-end;order:0;width:auto;flex:0 1 auto;flex-basis:auto;padding:0;border:0}
.site-header .account-name{width:auto;font-size:.875rem;font-weight:500}.site-header .text-button{font-size:.875rem;padding:10px 0}
.primary,.secondary{min-height:48px;padding:13px 20px;font-size:.875rem;font-weight:500;line-height:1.5;box-shadow:none}
.page-heading{margin:0 0 25px;align-items:flex-end}.weekdays{border:0;border-radius:0;padding:0 0 14px}.weekdays span{padding:0 12px 0 0;text-align:right;background:transparent;color:var(--muted);font-size:.875rem}
.calendar-grid:not(.list-mode){border:0;border-radius:0;gap:6px;overflow:visible}.calendar-scroll .weekdays,.calendar-scroll .calendar-grid:not(.list-mode){min-width:0}
.calendar-grid:not(.list-mode) .day{min-height:110px;padding:12px 9px;border:0;border-radius:10px;display:flex;flex-direction:column;gap:8px;text-align:right}
.calendar-grid:not(.list-mode) .day-number{align-self:flex-end;margin:0;width:28px;height:28px;font-size:.875rem;display:grid;place-items:center}
@media(max-width:1400px){.site-header .account-nav{width:100%;justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}}
@media(max-width:1000px){.site-header .heading-actions{order:3;width:100%;border-top:1px solid var(--line);padding-top:14px}.site-header .account-nav{order:2;width:auto;flex:1;border:0;padding:0}}
@media(max-width:650px){.site-header{padding:18px}.site-header .account-nav{flex-basis:100%;justify-content:flex-start;gap:14px}.site-header .heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.site-header .heading-actions button{padding:10px 8px;gap:8px;font-size:.8rem}.calendar-grid:not(.list-mode){gap:3px}.calendar-grid:not(.list-mode) .day{padding:7px 3px;min-height:88px}.calendar-grid:not(.list-mode) .event-chip{padding:5px 2px;font-size:.6rem}.calendar-grid:not(.list-mode) .event-chip span{display:none}}
.workspace .page-heading{display:flex;justify-content:flex-start;text-align:left;margin:0 0 25px}.workspace .page-heading>div{margin:0}

/* One typography scale for AZ5 and FPNBG, including the compact page titles. */
html,body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;font-weight:400;letter-spacing:normal}
h1,h2,h3{font-family:inherit;font-weight:600;letter-spacing:-.035em}h1{line-height:1.15}h2{line-height:1.3}h3{font-size:1rem;line-height:1.5}
.eyebrow,.workspace .page-heading h1.eyebrow{font-family:inherit;font-size:.75rem;font-weight:500;line-height:1.6;letter-spacing:.15em;text-transform:none;color:var(--muted)}
.calendar-toolbar h2{font-size:1.6rem;font-weight:600;line-height:1.3}.aside-heading h2,.modal h2{font-size:1.45rem;line-height:1.3}
.text-button{font-size:.875rem;font-weight:400;line-height:1.5;letter-spacing:normal}.icon-button{font-size:1.7rem;font-weight:400;line-height:1}
.muted,.entry-intro>.muted,.modal>.muted{font-size:1rem;line-height:1.8}.hint,.form-error,label,.legend,.calendar-note,.privacy-note{font-size:.875rem;font-weight:400;line-height:1.7}
.stay-label,.stay-meta,.user-meta{font-size:.875rem;font-weight:400;line-height:1.6}.stay-dates{font-size:1.1rem;font-weight:400;line-height:1.6}.user-name{font-size:1rem;font-weight:500;line-height:1.5}.site-footer{font-size:.75rem;line-height:1.7}
@media(max-width:650px){.calendar-toolbar h2{font-size:1.25rem}.weekdays span{font-size:.75rem}.legend,.calendar-note{font-size:.75rem}}
/* Shared geometry: text length must not move the common controls. */
.site-header .brand{margin:0;padding:0;font:inherit;letter-spacing:normal;gap:0}
.site-header .heading-actions button{width:220px;margin:0;flex:none}
.workspace .page-heading{display:block;gap:0;padding:0;min-height:32px}
.workspace .page-heading>div{width:100%;text-align:left}.workspace .page-heading h1.eyebrow{margin:0;text-align:left}
.calendar-toolbar{gap:18px;margin:0;padding:0 0 22px;min-height:66px}
.month-controls{gap:8px}.month-controls .text-button{margin:0 12px 0 0}.month-controls .icon-button{width:44px;height:44px}
.legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin:0;padding:0 0 20px;min-height:60px}
.view-switch{margin:0 0 0 auto}.view-switch button{font-size:.875rem;line-height:1.5;padding:6px 12px}
.weekdays{font-size:.875rem;line-height:1.5}.calendar-scroll{margin:0;padding:0}
.calendar-note{margin:0;padding:20px 0 0;min-height:68px}
.aside-heading{padding:0;margin:0}.stays-panel .privacy-note{margin:12px 0 0}
@media(max-width:750px){.calendar-toolbar{gap:8px}.month-controls{gap:6px}.month-controls .text-button{margin:0}.month-controls .icon-button{width:34px;height:34px;min-width:34px}.calendar-toolbar{min-height:63px}.legend{min-height:96px;align-content:flex-start;gap:8px 12px}.view-switch{margin-left:auto}.calendar-note{min-height:90px}}
@media(max-width:650px){.site-header .heading-actions button{width:100%;min-width:0}.workspace .page-heading{min-height:44px}}
/* Keep actions and account controls together instead of distributing free space. */
@media(min-width:1001px){
 .site-header{justify-content:flex-start;column-gap:32px}
 .site-header .brand{margin-right:auto}
 .site-header .heading-actions{flex:0 0 auto;margin:0}
 .site-header .account-nav{flex:0 1 auto;width:auto;flex-basis:auto;justify-content:flex-start;margin:0;padding:0;border:0}
}
/* Logo and calendar picker share the first header row. */
body[data-mode="calendar"] .site-header{display:grid;grid-template-columns:auto 1fr;gap:20px 32px;align-items:center}
.site-header .brand-switch{display:flex;align-items:center;gap:28px;min-width:0;flex-wrap:wrap}
body[data-mode="calendar"] .brand-switch{grid-column:1/-1}
.site-header .brand-switch .brand{margin:0;flex:0 0 auto}
.site-header .studio-switch{flex-wrap:wrap;max-width:100%;font-size:16px}
body[data-mode="calendar"] .site-header .heading-actions{order:0;grid-column:1;width:auto;margin:0;padding:0;border:0}
body[data-mode="calendar"] .site-header .account-nav{order:0;grid-column:2;width:auto;flex-basis:auto;justify-content:flex-start;margin:0;padding:0;border:0}
.studio-nav{justify-content:flex-end;padding-top:14px}.workspace{padding-top:18px}
@media(min-width:1750px){body[data-mode="calendar"] .site-header{display:flex;flex-wrap:nowrap}body[data-mode="calendar"] .brand-switch{margin-right:auto;flex-wrap:nowrap}}
@media(max-width:1000px){body[data-mode="calendar"] .site-header{grid-template-columns:1fr}body[data-mode="calendar"] .site-header .heading-actions,body[data-mode="calendar"] .site-header .account-nav{grid-column:1}.site-header .brand-switch{gap:22px}}
@media(max-width:650px){.site-header .brand-switch{gap:18px}.site-header .studio-switch{font-size:14px}.site-header .studio-switch a{padding:9px 10px}.workspace{padding-top:5px}}
/* Align the picker with the calendar panel's outer left edge. */
body[data-mode="calendar"] .site-header{padding-left:calc(max(0px,(100% - 1800px)/2) + 4vw);padding-right:calc(max(0px,(100% - 1800px)/2) + 4vw)}
body[data-mode="calendar"] .brand-switch{position:relative;flex-direction:column;align-items:flex-start;gap:18px}
@media(min-width:2200px){body[data-mode="calendar"] .brand-switch{flex-direction:row;align-items:center;gap:0}body[data-mode="calendar"] .brand-switch .brand{position:absolute;right:calc(100% + 28px);top:50%;transform:translateY(-50%)}}
@media(max-width:750px){body[data-mode="calendar"] .site-header{padding-left:14px;padding-right:14px}}
/* Account actions are disclosed under the member's name. */
.account-menu{position:relative;z-index:30;max-width:100%}
.site-header .account-menu summary.account-name{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 0;cursor:pointer;list-style:none;overflow-wrap:anywhere}
.account-menu summary::-webkit-details-marker{display:none}.account-chevron{font-size:1rem;line-height:1}
.account-dropdown{position:absolute;right:0;top:100%;padding-top:6px;width:205px;max-width:calc(100vw - 28px)}
.account-options{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:0 12px 32px #20233c1f}
.site-header .account-options .text-button{width:100%;padding:12px;text-align:left;border-radius:7px;white-space:nowrap}
.site-header .account-options .text-button:hover{background:#e3ebe5;text-decoration:none}
@media(max-width:1000px){.account-dropdown{left:0;right:auto}}
/* The primary action ends at the calendar panel's right edge. */
body[data-mode="calendar"] .site-header{position:relative;display:grid;grid-template-columns:1fr auto}
body[data-mode="calendar"] .site-header .brand-switch{grid-column:1/-1;grid-row:1;margin:0}
body[data-mode="calendar"] .site-header .heading-actions{grid-column:2;grid-row:2;justify-self:end}
body[data-mode="calendar"] .site-header .account-nav{grid-column:1;grid-row:2;justify-self:start}
@media(min-width:2200px){
 body[data-mode="calendar"] .site-header .brand-switch{grid-column:1;grid-row:1}
 body[data-mode="calendar"] .site-header .heading-actions{grid-column:2;grid-row:1}
 body[data-mode="calendar"] .site-header .account-nav{grid-area:auto;position:absolute;width:max-content;left:calc(100% - max(0px,(100% - 1800px)/2) - 4vw + 28px);top:50%;transform:translateY(-50%);max-width:calc(max(0px,(100% - 1800px)/2) + 4vw - 42px)}
}
@media(max-width:1000px){
 body[data-mode="calendar"] .site-header{grid-template-columns:1fr}
 body[data-mode="calendar"] .site-header .account-nav{grid-column:1;grid-row:2}
 body[data-mode="calendar"] .site-header .heading-actions{grid-column:1;grid-row:3;justify-self:end}
}
@media(max-width:650px){body[data-mode="calendar"] .site-header .heading-actions{width:100%}}
.site-header .account-menu summary.account-name{white-space:nowrap;overflow-wrap:normal}

.profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;overflow:hidden;background:#f0f4f0;color:#455f4c;font-size:13px;font-weight:600;text-transform:uppercase}
.profile-avatar img,.photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.site-header .account-menu summary.account-name{align-items:center;gap:10px}
.account-chevron{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex:0 0 16px;font-size:0;align-self:center}
.account-chevron::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.photo-preview{width:128px;height:128px;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;border-radius:50%;overflow:hidden;background:#f0f4f0;color:#455f4c;font-size:32px;text-transform:uppercase}
.member-photo{width:48px;height:48px;object-fit:cover;border-radius:50%;display:block;margin-bottom:8px}
#profile-photo-dialog input[type=file]{width:100%;font-size:.875rem}
.site-footer{justify-content:center;align-items:center;text-align:center}

.booking-visitor{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px}.booking-visitor input{width:100%;cursor:text}@media(max-width:480px){.booking-visitor{grid-template-columns:1fr;gap:9px}}

.booking-houses{display:flex;flex-wrap:wrap;gap:12px 24px;border:0;padding:0;margin:0}.booking-houses legend{font-size:.875rem;margin-bottom:10px}.booking-houses label{display:flex;align-items:center;gap:10px;min-height:44px}.booking-houses input{width:20px;height:20px;min-height:0;padding:0;margin:0;accent-color:#57735f}

.house-guest{--house-accent:#228044;--house-bg:#e2f3e7;--house-text:#175b30}.house-main{--house-accent:#245bd1;--house-bg:#e5edff;--house-text:#17449e}.house-all{--house-accent:#c93636;--house-bg:#fde5e5;--house-text:#942525}.house-legacy{--house-accent:#747b89;--house-bg:#e9ebef;--house-text:#434955}
.legend .house-dot{background:var(--house-accent);width:10px;height:10px;border-radius:3px}
.booking-houses label{padding:8px 12px;border:1px solid var(--line);border-radius:9px}.booking-houses input{accent-color:var(--house-accent)}.booking-houses label:has(input:checked){background:var(--house-bg);border-color:var(--house-accent);color:var(--house-text)}
.calendar-grid .day-tag{width:100%;min-height:32px;padding:6px;border:0;border-left:3px solid var(--house-accent);border-radius:5px;background:var(--house-bg);color:var(--house-text);font-size:.75rem;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:left;cursor:pointer}
.day-free{padding:5px 2px;min-height:32px;border:0;background:transparent;color:#626c80;font-size:.7rem;line-height:1.4;text-align:left;cursor:pointer}.day-free:hover{text-decoration:underline}
.house-caption{color:var(--house-text);border-left:3px solid var(--house-accent);padding-left:8px}
@media(max-width:650px){.calendar-grid .day-tag{padding:5px 2px;font-size:.65rem}.day-free{font-size:.65rem}}
.day-tag .booking-house-line,.day-tag .booking-person-line{display:block}.day-tag .booking-person-line{margin-top:3px}

/* Keep all three accommodation choices on one row on desktop. */
#booking-dialog:has(.booking-houses){width:min(680px,calc(100% - 32px));max-width:calc(100% - 32px)}
.booking-houses{column-gap:10px}.booking-houses label{white-space:nowrap;gap:8px}.booking-houses input{flex:0 0 20px}
.calendar-note:has(+ .legend){min-height:0}.calendar-note + .legend{min-height:0;margin:6px 0 0;padding:0;align-content:normal}

/* Calendar photos share the same fading and panel opacity. */
body[data-mode="calendar"][data-calendar]{background-color:#dce6eb;background-image:linear-gradient(rgba(247,248,252,.10),rgba(247,248,252,.10)),var(--calendar-photo);background-position:center;background-size:cover;background-attachment:fixed;background-repeat:no-repeat}
body[data-calendar="az5"]{--calendar-photo:url("../kalender/assets/suedtirol.jpg")}
body[data-calendar="fpnbg"]{--calendar-photo:url("../fpnbg/assets/familie.jpg")}
body[data-mode="calendar"][data-calendar] .calendar-panel,body[data-mode="calendar"][data-calendar] .stays-panel{background:rgba(255,255,255,.85)}
body[data-mode="calendar"] .site-footer{margin:32px 0 0;width:100%;max-width:none;box-sizing:border-box;border-radius:0;background:#fff;color:#424e64;padding:12px 20px}
@media(max-width:750px){body[data-mode="calendar"][data-calendar]{background-attachment:scroll;background-position:60% top}}

/* Structured AZ5 stay overview. */
body[data-calendar="az5"] .stays-panel{display:block;padding:28px}
body[data-calendar="az5"] .stays-panel .aside-heading{padding:0 0 22px}
body[data-calendar="az5"] .stays-panel #stays{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.stay.stay-overview{background:#fff;border:1px solid #dfe2ed;border-left:5px solid var(--house-accent);border-radius:12px;padding:24px;color:#20233c;min-width:0}
.stay-overview-top{display:flex;justify-content:space-between;align-items:center;gap:20px}
.stay-overview-identity{min-width:0}.stay-overview-name{font:600 21px/1.4 system-ui;margin:4px 0 0;color:#20233c;letter-spacing:0;overflow-wrap:anywhere}
.stay-overview-caption{font-size:13px;line-height:1.6;color:#626c80}
.stay-overview-house{background:var(--house-bg);color:var(--house-text);padding:7px 14px;border-radius:8px;font-size:14px;flex-shrink:0}
.stay-overview-details{display:grid;grid-template-columns:1fr 1fr 1fr auto;align-items:end;gap:28px;margin-top:22px;padding-top:20px;border-top:1px solid #e5e7ef}
.stay-overview-value{display:block;font-size:18px;color:#20233c;margin-top:4px}
.stay-overview-details button{margin:0}
body[data-calendar="az5"] .stays-panel .privacy-note{margin-top:18px;color:#626c80}
@media(max-width:750px){body[data-calendar="az5"] .stays-panel{padding:20px}.stay.stay-overview{padding:18px}.stay-overview-top{align-items:flex-start;flex-direction:column;gap:12px}.stay-overview-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.stay-overview-details button{grid-column:1/-1;width:100%}.stay-overview-name{font-size:19px}.stay-overview-value{font-size:16px}}

/* Keep the complete profile menu above all calendar content. */
body[data-mode="calendar"] .site-header{z-index:40;overflow:visible}
body[data-mode="calendar"] .workspace{position:relative;z-index:0}

/* Start the family photo below the header and retain its full width. */
body[data-calendar="fpnbg"][data-mode="calendar"]{background-image:none}
body[data-calendar="fpnbg"][data-mode="calendar"] .workspace::before{content:"";position:fixed;z-index:-1;pointer-events:none;inset:0;width:100%;background-color:#dce6eb;background-image:linear-gradient(rgba(247,248,252,.10),rgba(247,248,252,.10)),var(--calendar-photo);background-size:100% 100%,100% auto;background-position:center,center top;background-repeat:no-repeat}

/* Copyright directly on the calendar background. */
body[data-mode="calendar"] .site-footer{background:transparent;border:0;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.65);justify-content:center;text-align:center}

/* Past days are quiet surfaces; existing entries remain interactive. */
body[data-mode="calendar"] .calendar-grid .day.past,body[data-mode="calendar"] .calendar-grid .day.past:hover{background:rgba(246,247,251,.5);cursor:default}
body[data-mode="calendar"] .calendar-grid .day.past .day-number{color:#8791a2;cursor:default;background:transparent}

/* Sage green hover for selectable days in both calendars. */
body[data-mode="calendar"] .calendar-grid .day:not(.past):not(.blank):hover{background:#e3ebe5}

/* Shared sage green interface accents, independent of entry colors. */
.primary{background:#e3ebe5;border-color:#bacabd;color:#344b3b}.primary:hover{background:#d2dfd5;color:#344b3b}
.studio-switch a[aria-current],.view-switch .view-active,.day.today .day-number{background:#e3ebe5;color:#344b3b}
.studio-switch a:hover,.view-switch button:hover{background:#e3ebe5;color:#344b3b}
.member-admin{color:#455f4c}.profile-avatar,.photo-preview{color:#455f4c}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:#57735f}

/* Empty month placeholders never react to hovering. */
body[data-mode="calendar"] .calendar-grid .day.blank,body[data-mode="calendar"] .calendar-grid .day.blank:hover{background:transparent;border:0;box-shadow:none;cursor:default;pointer-events:none}

body[data-calendar="fpnbg"] .color-options{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-calendar="fpnbg"] .color-option{min-width:0;overflow-wrap:anywhere}

body[data-calendar="fpnbg"] .calendar-panel > .legend{justify-content:flex-end}

/* Today stays sage green, including when the pointer is elsewhere. */
body[data-mode="calendar"] .calendar-grid .day.today,body[data-mode="calendar"] .calendar-grid .day.today:hover{background:#e3ebe5}

/* Show creator and saved location together at the same size. */
body[data-calendar="fpnbg"] .calendar-grid .event-chip .event-meta{display:block;white-space:normal;overflow-wrap:anywhere}

/* Readable grouped family calendar overview. */
body[data-calendar="fpnbg"] .stays-panel{display:block;padding:28px}
body[data-calendar="fpnbg"] .stays-panel .aside-heading{padding:0 0 22px}
body[data-calendar="fpnbg"] .stays-panel #stays{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.summary-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-width:0;align-items:stretch}.summary-group-title{grid-column:1/-1;margin:0;font-size:1rem;color:#35445c}
.family-summary{display:block;width:100%;text-align:left;padding:18px;background:#fff;border:1px solid #dfe2ed;border-left:5px solid var(--event-accent,#8192a3);border-radius:12px;color:#20233c;min-width:0}
.family-summary:hover{background:#f4f7f4}.family-summary-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px}
.family-summary-title{font-size:1.1rem;line-height:1.5;overflow-wrap:anywhere}.family-summary-category{background:var(--event-bg,#e3ebe5);color:var(--event-text,#344b3b);padding:5px 11px;border-radius:7px;font-size:.8rem;flex-shrink:0}
.family-summary-details{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #e5e7ef}
.family-summary-detail{display:block;min-width:0}.family-summary-label{display:block;color:#626c80;font-size:.75rem;margin-bottom:4px}.family-summary-value{display:block;font-size:.875rem;line-height:1.6;color:#35445c;overflow-wrap:anywhere}
body[data-calendar="fpnbg"] .stays-panel .privacy-note{margin-top:20px;color:#626c80}
@media(max-width:650px){body[data-calendar="fpnbg"] .stays-panel{padding:20px}.family-summary{padding:18px}.family-summary-top{flex-wrap:wrap;gap:10px}.family-summary-details{grid-template-columns:1fr;gap:12px}.family-summary-title{font-size:1rem}}

.family-summary-title-block{display:block;min-width:0}.family-summary-title{display:block}.family-summary-location{display:block;font-size:.875rem;line-height:1.6;color:#35445c;margin-top:4px;overflow-wrap:anywhere}

@media(max-width:1199px){.summary-group{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.summary-group{grid-template-columns:minmax(0,1fr)}}
.color-swatch.guest-initial{position:relative;background:transparent;border:0;border-radius:0;font-size:25px;font-weight:600;width:38px;height:38px}.color-option input:checked+.color-swatch.guest-initial:after{content:none}
.color-option.g13-option{--event-bg:#f0ebfc;--event-accent:#8a70b6;--event-text:#594377}
.color-option.travel-option{--event-bg:#e6f5ed;--event-accent:#4d8b70;--event-text:#254c3c}
.color-option.office-option,.color-office-red{--event-bg:#fde8e7;--event-accent:#bd5550;--event-text:#803632}
.color-option.appointment-option{--event-bg:#e8f1ff;--event-accent:#547fbc;--event-text:#294a77}
/* Match every booking-form selection and action to the entry type. */
body[data-calendar="fpnbg"] #booking-dialog[data-entry-theme="event"]{--entry-bg:#e8f1ff;--entry-accent:#547fbc;--entry-text:#294a77}
body[data-calendar="fpnbg"] #booking-dialog[data-entry-theme="note"]{--entry-bg:#e6f5ed;--entry-accent:#4d8b70;--entry-text:#254c3c}
body[data-calendar="fpnbg"] #booking-dialog[data-entry-theme="g13"]{--entry-bg:#f0ebfc;--entry-accent:#8a70b6;--entry-text:#594377}
body[data-calendar="fpnbg"] #booking-dialog[data-entry-theme="d80"]{--entry-bg:#fde8e7;--entry-accent:#bd5550;--entry-text:#803632}
#booking-dialog[data-entry-theme] .entry-kind label:has(input:checked){background:var(--entry-bg);border-color:var(--entry-accent);color:var(--entry-text)}
#booking-dialog[data-entry-theme] input[type="radio"],#booking-dialog[data-entry-theme] input[type="checkbox"]{accent-color:var(--entry-accent)}
#booking-dialog[data-entry-theme] .primary{background:var(--entry-bg);border-color:var(--entry-accent);color:var(--entry-text)}
#booking-dialog[data-entry-theme] .primary:hover{background:var(--entry-accent);color:#fff}
#booking-dialog[data-entry-theme] .icon-button:hover{background:var(--entry-bg);border-color:var(--entry-accent);color:var(--entry-text)}
#booking-dialog[data-entry-theme] :is(input,textarea,select):focus{border-color:var(--entry-accent)}
#booking-dialog[data-entry-theme] :is(button,input,textarea,select,a):focus-visible{outline-color:var(--entry-accent)}
#booking-dialog[data-entry-theme] .color-option:has(input:focus-visible){outline-color:var(--entry-accent)}

/* Center dialog close icons independently of font metrics and button padding. */
.modal-header .icon-button[data-close]{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:0;gap:0;font-size:0;line-height:1;flex-shrink:0}
.modal-header .icon-button[data-close]::before,.modal-header .icon-button[data-close]::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;background:currentColor;border-radius:1px;transform:translate(-50%,-50%) rotate(45deg)}
.modal-header .icon-button[data-close]::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* Interactive profile photo crop. */
#profile-photo-dialog .photo-preview{width:192px;height:192px;flex-shrink:0}
.photo-preview canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.photo-preview canvas:active{cursor:grabbing}
.photo-preview:focus-within{outline:2px solid #57735f;outline-offset:4px}
.photo-crop-controls{margin:0 0 22px}
.photo-zoom-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.photo-zoom-label output{color:var(--muted);font-size:.875rem;font-variant-numeric:tabular-nums}
#profile-photo-dialog input[type=range]{display:block;width:100%;min-height:32px;padding:0;border:0;box-shadow:none;background:transparent;accent-color:#57735f;cursor:pointer}
.photo-crop-help{display:flex;align-items:flex-start;gap:16px;margin-top:8px}
.photo-crop-help .hint{flex:1;margin:0}
.photo-crop-help .text-button{flex-shrink:0;padding:0;font-size:.8rem;white-space:nowrap}
@media(max-width:520px){#profile-photo-dialog .photo-preview{width:176px;height:176px}.photo-crop-help{display:block}.photo-crop-help .text-button{margin-top:8px}}

/* Center month chevrons independently of font baseline and padding. */
.month-controls #previous-month,.month-controls #next-month{position:relative;display:inline-block;padding:0;gap:0;font-size:0;line-height:1;flex-shrink:0}
.month-controls #previous-month::before,.month-controls #next-month::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:22px;height:22px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 6L9 12L15 18' fill='none' stroke='%2330394f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.month-controls #next-month::before{transform:translate(-50%,-50%) rotate(180deg)}

/* Family calendar appointment participants, with multiple selections. */
.participant-picker{border:0;padding:0;margin:0 0 24px;min-width:0}
.participant-picker legend{font-size:.9rem;font-weight:600;margin-bottom:8px}
.participant-picker .hint{font-size:.8rem;margin:0 0 12px}
.participant-options{display:flex;flex-wrap:wrap;gap:8px}
.participant-option{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:0;cursor:pointer;font-size:.9rem;min-height:44px;box-sizing:border-box}
.participant-option input{width:17px;height:17px;padding:0;margin:0;flex-shrink:0;accent-color:#245bd1}
.participant-option:has(input:checked){background:#e5edff;border-color:#245bd1;color:#245bd1}
.participant-option:has(input:disabled){cursor:default}
.event-participants{white-space:normal;overflow-wrap:anywhere}

/* Separate recipient names from the calendar entry title. */
.event-participants{display:block;margin-top:5px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}

/* Keep the category at the top right; wrap titles in the remaining column. */
.family-summary-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.family-summary-title-block{grid-column:1;grid-row:1;min-width:0}
.family-summary-title{white-space:normal;overflow-wrap:anywhere}
.family-summary-category{grid-column:2;grid-row:1;justify-self:end;align-self:start;white-space:nowrap}

/* Let each card grow only when its own contents need more lines. */
.summary-group{align-items:start}
.family-summary{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-self:start;grid-row:auto}
.family-summary-top{flex-shrink:0}
.family-summary-details{align-content:start}

/* Keep the category anchored to the right edge even for short headings. */
.family-summary-top{width:100%;min-width:0;box-sizing:border-box;justify-self:stretch;grid-template-columns:minmax(0,1fr) auto}
.family-summary-category{justify-self:end;align-self:start}
.family-summary-details{width:100%;box-sizing:border-box;justify-self:stretch}

/* Use the same monthly-entry heading typography in both calendars. */
.stays-panel .aside-heading .eyebrow{font-family:inherit;font-size:.75rem;font-weight:500;line-height:1.6;letter-spacing:.15em;margin-bottom:12px}
/* Decorative close beneath the complete calendar and monthly entries. */
.calendar-crest-divider{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;max-width:648px;box-sizing:border-box;margin:48px auto 32px}
.calendar-crest-divider span{height:1px;flex:1;min-width:0;background:#d9d3ca}
.calendar-crest-divider img{display:block;width:88px;height:auto;flex-shrink:0}
@media(max-width:520px){.calendar-crest-divider{gap:14px;margin:36px auto 24px}.calendar-crest-divider img{width:74px}}

/* Identical, readable copyright on calendar and access pages. */
body[data-calendar] .site-footer{display:flex;justify-content:center;align-items:center;width:100%;max-width:none;box-sizing:border-box;margin:32px 0 0;padding:16px 20px;border:0;font-family:inherit;font-size:.75rem;line-height:1.7;text-align:center;color:#626c80;background:transparent;position:relative;z-index:1}
body[data-calendar][data-mode="calendar"] .site-footer{color:#fff;background:rgba(20,30,35,.68);text-shadow:0 1px 2px rgba(0,0,0,.55)}

/* Apply a 50% dark tint across the entire calendar photograph. */
body[data-mode="calendar"][data-calendar="az5"]{background-image:linear-gradient(rgba(20,30,35,.5),rgba(20,30,35,.5)),var(--calendar-photo)}
body[data-calendar="fpnbg"][data-mode="calendar"] .workspace::before{background-image:linear-gradient(rgba(20,30,35,.5),rgba(20,30,35,.5)),var(--calendar-photo)}
body[data-calendar][data-mode="calendar"] .site-footer{background:transparent}

/* Compact month picker and selected-day agenda on phones and tablets. */
.mobile-day-panel{display:none}
.mobile-calendar-legend{display:flex;gap:8px 12px;flex-wrap:wrap;font-size:.7rem;color:#626c80;margin:0 0 18px}
.mobile-calendar-legend span{display:flex;align-items:center;gap:5px}
@media(max-width:750px){
 body[data-mode="calendar"] .workspace{padding:20px 12px 0}
 body[data-mode="calendar"] .calendar-panel{padding:12px}
 body[data-mode="calendar"] .calendar-toolbar{gap:12px;align-items:center;padding-bottom:18px}
 body[data-mode="calendar"] .calendar-toolbar h2{font-size:1.25rem}
 body[data-mode="calendar"] .calendar-scroll{overflow:visible}
 body[data-mode="calendar"] .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0;gap:2px;border:0}
 body[data-mode="calendar"] .weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}
 body[data-mode="calendar"] .weekdays span{padding:7px 0;font-size:.75rem;text-align:center}
 .mobile-day{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-width:0;min-height:48px;margin:0;padding:5px 0;border:0;border-radius:9px;background:transparent;color:#273049;font-size:.9rem}
 .mobile-day[aria-pressed="true"]{background:#e8f1ff;color:#294a77;box-shadow:inset 0 0 0 1px #547fbc}
 .mobile-day.mobile-today .mobile-day-number{font-weight:600;text-decoration:underline;text-underline-offset:3px}
 .mobile-day-dots{display:flex;justify-content:center;gap:3px;min-height:5px}
 .mobile-day-dot{display:block;width:5px;height:5px;border-radius:50%;background:#547fbc}
 .mobile-kind-event{--mobile-accent:#547fbc;--mobile-soft:#e8f1ff;--mobile-ink:#294a77}
 .mobile-kind-note{--mobile-accent:#4d8b70;--mobile-soft:#e6f5ed;--mobile-ink:#254c3c}
 .mobile-kind-g13{--mobile-accent:#8a70b6;--mobile-soft:#f0ebfc;--mobile-ink:#594377}
 .mobile-kind-d80{--mobile-accent:#bd5550;--mobile-soft:#fde8e7;--mobile-ink:#803632}
 .mobile-day-dot.mobile-kind-note{background:#4d8b70}.mobile-day-dot.mobile-kind-g13{background:#8a70b6}.mobile-day-dot.mobile-kind-d80{background:#bd5550}
 .mobile-day-dot.house-guest{background:#32876d}.mobile-day-dot.house-main{background:#547fbc}.mobile-day-dot.house-all,.mobile-day-dot.house-legacy{background:#bd5550}
 body[data-mode="calendar"] .stays-panel{display:none}
 body[data-calendar] .calendar-panel>.legend{display:none}
 .mobile-day-panel{display:block;border-top:1px solid #dfe4ec;margin-top:20px;padding-top:20px}
 .mobile-day-panel h3{font-size:1.05rem;line-height:1.4;margin:0 0 14px;letter-spacing:0}
 .mobile-day-panel .primary{width:100%;min-height:44px;justify-content:center;font-size:.9rem;margin-top:8px}
 .mobile-empty{font-size:.9rem;color:#626c80;padding:4px 0 12px}
 .mobile-entry{display:block;width:100%;text-align:left;border:1px solid #dfe4ec;border-left:4px solid var(--mobile-accent,var(--house-accent,#547fbc));border-radius:12px;padding:14px;margin:0 0 12px;background:#fff;color:#20233c}
 .mobile-entry-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
 .mobile-entry-title{font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
 .mobile-entry-category{font-size:.7rem;line-height:1.4;background:var(--mobile-soft,var(--house-bg,#e8f1ff));color:var(--mobile-ink,var(--house-text,#294a77));border-radius:7px;padding:5px 7px;max-width:110px}
 .mobile-entry-period{display:block;font-size:.85rem;margin-top:10px;line-height:1.5;color:#35445c}
 .mobile-entry-meta{display:block;font-size:.8rem;line-height:1.5;margin-top:7px;color:#626c80;overflow-wrap:anywhere}
 .mobile-entry-action{display:block;font-size:.8rem;margin-top:12px;color:#294a77}
 body[data-mode="calendar"] .calendar-note{font-size:.75rem;line-height:1.5}
 body[data-mode="calendar"] .calendar-crest-divider{margin:30px auto 20px}
 body[data-calendar="fpnbg"][data-mode="calendar"] .workspace::before{background-size:100% 100%,cover;background-position:center,center}
}
@media(max-width:359px){body[data-mode="calendar"] .workspace{padding-left:0;padding-right:0}body[data-mode="calendar"] .calendar-panel{padding:6px}body[data-mode="calendar"] .calendar-grid{gap:0}.mobile-day{min-height:44px}.mobile-day-panel{padding:16px 6px 0}}
