/* Laura's planning reference: one calm blue canvas, a photographic header,
   white daily rows and seven visible weekdays on a phone. */
.pilot-workspace:has(.admin-planning){background:#f0f8ff}
.pilot-workspace:has(.admin-planning) .topbar{display:none}
.pilot-workspace:has(.admin-planning) .main{padding-top:0;background:linear-gradient(150deg,#e4f4ff 0,#f5faff 340px,#f5faff 100%)}
.pilot-workspace:has(.admin-planning) .main>.notice.info{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.pilot-workspace:has(.admin-planning) #pilot-feedback:empty{display:none}
.admin-planning{--planning-hour-size:48px;color:#092946}
.planning-heading{min-height:174px;padding:26px 190px 14px 0;overflow:visible;justify-content:flex-end;margin-bottom:10px}
.planning-brand{position:relative;z-index:1;display:flex;align-items:center;gap:8px;margin-bottom:22px;font-size:22px;color:#073456;white-space:nowrap}
.planning-brand>.icon{width:28px;height:28px;color:#167c91}.planning-brand>span{font-size:10px;padding:3px 8px;border-radius:20px;background:#08609c;color:white;font-weight:750}.planning-brand>small{font-size:9px;color:#436a81;align-self:center}
.planning-header-photo{width:225px;height:184px;right:-12px;top:0;object-fit:cover;object-position:center 26%;border-radius:0;mask-image:linear-gradient(to right,transparent 0%,#000 45%),linear-gradient(to bottom,#000 65%,transparent 100%);mask-composite:intersect}
.planning-heading h1{font-size:32px;gap:12px;letter-spacing:-.8px}.planning-heading h1>.icon{width:35px;height:35px}.planning-heading p{font-size:14px;margin-left:47px;color:#305775}
.admin-planning .admin-dashboard-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}.admin-planning .admin-dashboard-actions .btn{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;min-height:49px;padding:12px 9px;font-weight:750;font-size:15px;box-shadow:0 3px 8px #174e7310}.admin-planning .admin-dashboard-actions .btn:first-child{background:#08619c;color:white}.admin-planning .admin-dashboard-actions .btn.secondary{border:1px solid #17629a;background:#f5faff;color:#124f7d}
.planning-view-tabs{background:#eff7fe;border-radius:13px;padding:4px;margin:0 0 17px;border:1px solid #cedfe9}.planning-view-tabs button{min-height:37px;border-radius:10px;font-size:14px}.planning-view-tabs button.chosen{background:#075e98;box-shadow:0 2px 4px #125d9320}
.planning-period{margin-bottom:16px;gap:10px}.planning-period h2{font-size:17px;font-weight:780;text-transform:none}.planning-period>button{background:#fff;box-shadow:0 2px 5px #163e5b10;border:1px solid #e4edf4;border-radius:11px;font-size:27px;min-width:40px;min-height:42px}
.planning-day-counts{gap:10px;margin-bottom:13px}.planning-day-counts>div{grid-template-columns:36px 1fr;background:var(--planning-soft);padding:12px 10px;border-radius:15px}.planning-day-counts .icon{display:block;width:33px;height:33px}.planning-day-counts strong{font-size:26px;color:#092946}.planning-day-counts span{color:#183e59;font-size:12px}
.planning-day{padding:4px 10px 7px;border:1px solid #e8f0f5;border-radius:20px;box-shadow:0 3px 15px #194f7508}.planning-day-row{grid-template-columns:58px minmax(0,1fr);gap:9px;padding:8px 0;border-bottom:1px solid #edf2f7}.planning-day-time{justify-content:center;background:#e8f4ff;border-radius:14px;font-size:12px;padding:5px 2px;gap:0;min-height:25px;align-self:start;margin-top:8px}.planning-day-time>.icon{display:none}.planning-day-card{background:#fff;border-left-width:5px;border-radius:12px;padding:9px 6px 8px 9px;box-shadow:0 2px 5px #16445e0b}.planning-event-open{gap:7px;min-height:64px}.planning-event-open>.icon:first-child{display:block;width:23px;height:23px;align-self:flex-start;margin-top:2px}.planning-event-open strong{font-size:15px;line-height:1.2;font-weight:780;letter-spacing:-.2px}.planning-event-open small{font-size:11px;line-height:1.3;margin:5px 0}.planning-event-open img{display:block;width:83px;height:60px;border-radius:9px}.planning-event-open>.icon:last-child{width:12px;height:15px}.planning-status{font-size:10px;padding:3px 8px;font-weight:750}.planning-day .planning-pets{display:none}
.planning-pending-panel{background:#fff6ec;border:1px solid #fae9d7;border-radius:20px;padding:14px;margin-top:15px;box-shadow:none}.planning-pending-panel h2{font-size:18px;gap:6px}.planning-pending-panel .admin-dashboard-link{font-size:11px;white-space:nowrap}.planning-pending-row{display:grid;grid-template-columns:23px minmax(0,1fr) auto;align-items:center;gap:7px;background:#fffcf8;border:1px solid #f5eee5;border-radius:11px;margin:7px 0;padding:8px}.planning-pending-row>.icon{width:22px;height:22px;margin:0}.planning-request-actions{grid-column:auto;justify-content:end;gap:4px}.planning-request-actions>button{width:28px;height:29px;padding:3px;border-radius:7px}.planning-request-actions .icon{width:18px;height:18px}.planning-request-open strong{font-size:12px}.planning-request-open span,.planning-request-open small{font-size:10px;line-height:1.35}
.planning-calendar-panel{padding:9px 7px 12px;background:#ffffffa8;border-radius:17px;border:1px solid #e2edf4;box-shadow:0 2px 6px #16445e08}.planning-week{border-radius:10px;overflow:visible;padding:0 0 9px}.planning-week-head{margin-bottom:3px}.planning-week-head,.planning-week-grid{min-width:0;width:100%;grid-template-columns:36px repeat(7,minmax(0,1fr))}.planning-week-day{min-height:49px;margin:0 1px;gap:1px;padding:4px 0;border-radius:9px;background:#f5f9fc}.planning-week-day span{font-size:11px}.planning-week-day strong{font-size:16px;line-height:1.1}.planning-week-dots{gap:2px;min-height:6px}.planning-week-dots i{width:5px;height:5px}.planning-week-day.chosen{background:#0866a4}.planning-hour-labels{font-size:11px;color:#254f6a;background:transparent}.planning-hour-labels>span{background:transparent;padding:0;line-height:1}.planning-week-grid{--week-hour-height:var(--planning-hour-size)}.planning-week-column{background:repeating-linear-gradient(to bottom,#fbfdff,#fbfdff calc(var(--planning-hour-size) - 1px),#e5edf3 calc(var(--planning-hour-size) - 1px),#e5edf3 var(--planning-hour-size));border-color:#e1eaf2}.planning-week-event{min-height:20px;box-shadow:0 2px 4px #184a7212;border-radius:8px;gap:1px;padding:3px 1px;justify-content:center}.planning-week-event>.icon{width:20px;height:20px}.planning-week-event>span{font-size:12px;line-height:1.15}.planning-week-event>small{font-size:11px;line-height:1.05}.planning-week-blocked>.icon{width:18px;height:18px}.planning-week-blocked>span{font-size:10px}.planning-week-hint{display:none}.planning-week-overlap{display:none}.planning-legend{font-size:10px;gap:9px 12px;line-height:1.4;padding:7px 2px 0;margin-top:7px}.planning-legend i{width:9px;height:9px}
@media(min-width:681px){.planning-week-head,.planning-week-grid{grid-template-columns:var(--week-columns);min-width:var(--week-min-width)}.planning-week{overflow:auto}.planning-week-event-short{flex-direction:row}.planning-week-event-short>span,.planning-week-event-short>small{font-size:11px}.planning-week-event-short>.icon{width:13px;height:13px}}
@media(max-width:680px){
.pilot-workspace:has(.admin-planning) .main{padding:0 14px 86px}.admin-planning{--planning-hour-size:27px}.planning-heading{min-height:144px;padding:17px 103px 10px 0;margin-bottom:2px}.planning-brand{font-size:19px;gap:5px;margin-bottom:21px}.planning-brand>.icon{width:24px;height:24px}.planning-brand>span{font-size:9px;padding:3px 6px}.planning-brand>small{font-size:8px}.planning-header-photo{width:153px;height:153px;right:-14px;top:0;object-position:center 22%}.planning-heading h1{font-size:25px;white-space:nowrap;gap:8px;letter-spacing:-.7px}.planning-heading h1>.icon{width:29px;height:29px;flex-shrink:0}.planning-heading p{font-size:11px;margin-left:37px;line-height:1.35;white-space:nowrap;letter-spacing:-.25px}.admin-planning .admin-dashboard-actions{gap:8px;margin-bottom:13px}.admin-planning .admin-dashboard-actions .btn{min-height:42px;padding:8px 4px;font-size:12px;gap:6px}.admin-planning .admin-dashboard-actions .icon{width:20px;height:20px}.planning-view-tabs{margin-bottom:14px}.planning-view-tabs button{font-size:12px;min-height:31px}.planning-period{margin-bottom:14px;gap:6px}.planning-period h2{font-size:13px;line-height:1.2;letter-spacing:-.3px}.planning-period h2>.icon{width:17px;height:17px}.planning-period>button{min-width:34px;min-height:34px;font-size:24px}.planning-day-counts{gap:7px;margin-bottom:10px}.planning-day-counts>div{padding:10px 6px;grid-template-columns:29px 1fr;column-gap:6px}.planning-day-counts .icon{width:27px;height:27px}.planning-day-counts strong{font-size:24px}.planning-day-counts span{font-size:10px;line-height:1.15}.planning-day{padding:3px 8px 5px}.planning-day-row{grid-template-columns:46px minmax(0,1fr);gap:6px;padding:7px 0}.planning-day-time{font-size:11px;min-height:22px;margin-top:7px;padding:4px 1px}.planning-day-card{padding:7px 4px 7px 6px;border-left-width:4px}.planning-event-open{gap:5px}.planning-event-open>.icon:first-child{width:19px;height:19px}.planning-event-open strong{font-size:13px;line-height:1.2}.planning-event-open small{font-size:10px;line-height:1.25;margin:4px 0}.planning-event-open img{width:65px;height:52px}.planning-event-open>.icon:last-child{width:10px}.planning-status{font-size:9px;padding:2px 6px}.planning-pending-panel{padding:11px;margin-top:12px}.planning-pending-panel h2{font-size:16px}.planning-pending-panel .admin-dashboard-link{font-size:10px}.planning-pending-row{grid-template-columns:21px minmax(0,1fr) auto;gap:5px;padding:7px 5px}.planning-request-actions>button{width:25px;height:27px}.planning-request-actions .icon{width:16px;height:16px}.planning-request-open strong{font-size:11px}.planning-request-open span,.planning-request-open small{font-size:9px}.planning-week-head,.planning-week-grid{grid-template-columns:29px repeat(7,minmax(0,1fr))}.planning-week-day{min-height:45px;border-radius:8px}.planning-week-day span{font-size:10px}.planning-week-day strong{font-size:14px}.planning-hour-labels{font-size:9px}.planning-week-event{left:0!important;width:100%!important;min-height:40px;flex-direction:column;padding:2px 0;border-radius:6px;gap:0}.planning-week-event>.icon{width:16px;height:16px}.planning-week-event>span,.planning-week-event-short>span{font-size:10px;font-weight:750;letter-spacing:-.2px;line-height:1.05}.planning-week-event>small,.planning-week-event-short>small{font-size:10px;line-height:1.05}.planning-week-mobile-clustered{display:none}.planning-week-overlap{display:block;position:absolute;left:0;right:0;z-index:3}.planning-week-overlap>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:42px;padding:2px;border-radius:7px;background:#e4eff9;border:1px solid #83aecb;cursor:pointer;list-style:none;color:#174e75;font-size:9px;line-height:1.1}.planning-week-overlap>summary::-webkit-details-marker{display:none}.planning-week-overlap>summary>.icon{width:15px;height:15px}.planning-week-overlap>summary strong{font-size:12px}.planning-overlap-list{position:fixed;bottom:82px;left:12px;right:12px;z-index:35;max-height:58dvh;overflow:auto;background:#fff;border:1px solid #bfd5e6;border-radius:18px;padding:15px;box-shadow:0 4px 60px #0a29454d;display:grid;gap:9px}.planning-overlap-list>strong{font-size:14px}.planning-overlap-list>small{font-size:11px;color:#527080}.planning-overlap-event{display:flex;gap:9px;align-items:center;width:100%;text-align:left;background:#eff7fd;border:1px solid #dae8f2;border-radius:11px;padding:12px;font:inherit;color:#143b58;cursor:pointer}.planning-overlap-event>.icon{width:23px;height:23px;flex-shrink:0}.planning-overlap-event>span{display:grid;gap:4px}.planning-overlap-event strong{font-size:13px}.planning-overlap-event small{font-size:11px}.planning-week-closed-day{padding:0}.planning-week-blocked>span{font-size:9px;overflow-wrap:anywhere;line-height:1.15}.planning-week-blocked>.icon{width:15px;height:15px}.planning-legend{font-size:9px;gap:7px 9px;padding-top:5px}.planning-legend i{width:8px;height:8px}
}
@media(max-width:350px){.pilot-workspace:has(.admin-planning) .main{padding-left:9px;padding-right:9px}.planning-brand{font-size:17px}.planning-header-photo{width:131px;right:-9px}.planning-heading h1{font-size:23px}.planning-heading p{font-size:10px}.planning-event-open img{display:block;width:53px;height:48px}.planning-event-open>.icon:first-child{width:16px;height:16px}.planning-event-open strong{font-size:12px}.planning-day-row{grid-template-columns:42px minmax(0,1fr)}.planning-week-head,.planning-week-grid{grid-template-columns:25px repeat(7,minmax(0,1fr))}.planning-week-day span{font-size:9px}.planning-week-day strong{font-size:13px}.planning-week-event>span,.planning-week-event>small{font-size:9px}.planning-hour-labels{font-size:8px}.planning-request-actions>button{width:23px}}

@media(max-width:680px){.planning-heading{min-height:130px;padding-top:14px}.planning-brand{margin-bottom:17px}.planning-header-photo{height:140px}.planning-day-counts>div{padding:8px 6px}.planning-day-counts strong{font-size:23px;line-height:1}.planning-day-counts span{margin-top:2px}.planning-event-open{min-height:50px}.planning-event-open img{height:48px}.planning-day-row{padding:6px 0}}

@media(max-width:680px){.planning-week-event{min-height:44px}.planning-week-event>.icon{width:18px;height:18px}.planning-week-event>span,.planning-week-event-short>span,.planning-week-event>small,.planning-week-event-short>small{font-size:11px;line-height:1.05}}

@media(max-width:680px){.planning-heading{min-height:112px;padding-top:12px}.planning-brand{margin-bottom:9px}.planning-heading h1{font-size:26px}.planning-header-photo{height:126px}.admin-planning .admin-dashboard-actions{margin-bottom:10px}.planning-view-tabs{margin-bottom:11px}.planning-period{margin-bottom:11px}.planning-day-counts>div{padding:6px}.planning-day-counts strong{font-size:22px}.planning-day-counts span{font-size:9px;margin-top:1px}.planning-event-open strong{font-size:14px}}
@media(max-width:350px){.planning-heading h1{font-size:23px}.planning-event-open strong{font-size:12px}}

.planning-overlap-close{justify-self:end;padding:7px 12px;min-height:36px;border:1px solid #d0e0eb;border-radius:9px;color:#164b71;background:#fff;font:inherit;cursor:pointer}
.planning-day-symbol{width:38px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--planning-color);color:white;border-radius:10px;flex-shrink:0}.planning-day-symbol .icon{color:inherit!important;width:25px!important;height:25px!important}
/* November 4 week reference: time-labelled bubbles and a bounded bottom sheet. */
.admin-planning{--planning-hour-size:40px}.planning-week-event time{font-size:12px;font-weight:500;line-height:1.2}.planning-week-event .planning-week-caption{display:flex;align-items:center;justify-content:center;gap:2px;font-weight:600;line-height:1.1}.planning-week-caption>.icon{width:13px;height:13px;flex-shrink:0}.planning-week-event{font-weight:500}.planning-week-event>small{font-weight:600}.planning-view-tabs button{font-weight:500}.planning-view-tabs button.chosen{font-weight:600}.planning-period h2{font-weight:600}.planning-week-day span{font-weight:500}.planning-week-day strong{font-weight:600}.planning-week-dots{display:none}
dialog:has(.planning-event-sheet){position:fixed;inset:auto 0 0;margin:0 auto;max-width:560px;width:100%;max-height:min(72dvh,690px);overflow:auto;padding:0;border:1px solid #d5e5ef;border-radius:24px 24px 0 0;box-shadow:0 -12px 48px #15395126;color:#123653;background:white;box-sizing:border-box}dialog:has(.planning-event-sheet)::backdrop{background:#19374a45}.planning-event-sheet{position:relative;padding:13px 20px max(24px,env(safe-area-inset-bottom));font-size:14px}.planning-sheet-handle{width:44px;height:5px;border-radius:9px;background:#c5d2dc;margin:0 auto 23px}.planning-sheet-close{position:absolute;right:9px;top:13px;border:1px solid #e2ebf1;border-radius:50%;width:40px;height:40px;background:#fff;color:#123653;font-size:28px;line-height:1;cursor:pointer}.planning-event-sheet header{display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;align-items:center;padding-right:20px}.planning-sheet-symbol{display:flex;align-items:center;justify-content:center;background:var(--sheet-color);color:white;width:50px;height:50px;border-radius:12px}.planning-sheet-symbol .icon{width:31px;height:31px}.planning-event-sheet h2{font-size:22px;line-height:1.15;margin:0 0 6px;font-weight:700}.planning-event-sheet header p{font-size:14px;margin:0;font-weight:400}.planning-sheet-status{grid-column:2;justify-self:start;background:#e0f4e5;color:#28643a;font-size:13px;font-weight:600;border-radius:20px;padding:5px 11px}.planning-sheet-facts{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border-bottom:1px solid #e1eaf1;padding:17px 0 14px;font-weight:500}.planning-sheet-facts>span,.planning-sheet-count,.planning-sheet-range{display:flex;align-items:center;gap:6px}.planning-sheet-facts .icon,.planning-sheet-count .icon,.planning-sheet-range .icon{width:20px;height:20px;flex-shrink:0}.planning-sheet-count{font-size:15px;font-weight:600;margin:16px 0}.planning-sheet-pets{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 12px;margin-bottom:10px}.planning-sheet-pet{flex:0 0 66px;width:66px;padding:5px;border:1px solid #d5e5ef;border-radius:12px;background:#fff;color:#123653;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;scroll-snap-align:start;box-shadow:0 2px 5px #12365308}.planning-sheet-pet>span{position:relative;width:54px;height:54px;overflow:hidden;border-radius:9px;background:#eaf5fc;display:flex;align-items:center;justify-content:center}.planning-sheet-pet img{width:100%;height:100%;object-fit:cover;object-position:center;z-index:1}.planning-sheet-pet .portrait-fallback{position:absolute}.planning-sheet-pet .icon{width:27px;height:27px}.planning-sheet-pet strong{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:12px;font-weight:600}.planning-sheet-actions{display:grid;gap:10px}.planning-sheet-actions>.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:49px;border-radius:12px;background:#08649e;color:#fff;font-size:15px;font-weight:600}.planning-sheet-actions>.btn.secondary{border:1px solid #08649e;background:white;color:#08649e}.planning-sheet-actions .icon{width:20px;height:20px}.planning-sheet-note{padding:10px;border-radius:10px;background:#fff0d5}.planning-sheet-range{font-size:13px}.planning-event-sheet button:focus-visible{outline:3px solid #6fafd6;outline-offset:2px}
@media(max-width:680px){.admin-planning{--planning-hour-size:36px}.planning-calendar-panel{border-radius:20px;padding:10px 6px}.planning-week{overflow-x:hidden}.planning-week-day span{font-size:11px}.planning-week-day strong{font-size:16px}.planning-hour-labels{font-size:11px}.planning-week-head,.planning-week-grid{grid-template-columns:33px repeat(7,minmax(0,1fr))}.planning-week-event{min-height:36px;padding:2px 0;gap:1px;border-radius:8px}.planning-week-event time{font-size:10px}.planning-week-event .planning-week-caption{font-size:10px}.planning-week-caption>.icon{width:11px;height:11px}.planning-week-event>small{font-size:10px}.planning-week-overlap>summary{background:var(--planning-soft);color:var(--planning-color);border-color:var(--planning-color);min-height:48px;font-size:10px;gap:2px}.planning-week-overlap>summary span{display:flex;align-items:center;font-weight:600}.planning-week-overlap>summary .icon{width:12px;height:12px}.planning-week-overlap>summary strong{font-size:11px;border-radius:9px;background:white;padding:2px 6px}.planning-legend{font-size:10px;gap:8px 10px}.planning-event-sheet{padding-left:16px;padding-right:16px}.planning-event-sheet h2{font-size:20px}.planning-sheet-facts{font-size:13px}.planning-period h2{font-size:12px}}
@media(prefers-reduced-motion:no-preference){dialog[open]:has(.planning-event-sheet){animation:planning-sheet-in .16s ease-out}@keyframes planning-sheet-in{from{transform:translateY(20px);opacity:.6}to{transform:translateY(0);opacity:1}}}
.planning-sheet-status.sheet-state-pending{background:#fff0d5;color:#8b5b0f}.planning-sheet-status.sheet-state-completed{background:#edf1f5;color:#40576a}.planning-sheet-status.sheet-state-open{background:#eaf5fc;color:#285b7b}
dialog:has(.planning-event-sheet)::backdrop{backdrop-filter:none}.planning-event-sheet header{grid-template-columns:50px minmax(0,1fr) auto;padding-right:0}.planning-sheet-status{grid-column:3;grid-row:1;align-self:end;font-size:12px;padding:5px 9px;white-space:nowrap}.planning-event-sheet h2{font-size:20px}.planning-week-stay{font-size:10px;font-style:normal;font-weight:400;margin-top:5px;line-height:1.2}.planning-week-event:has(.planning-week-stay){justify-content:flex-start;padding-top:6px}
@media(max-width:350px){.planning-event-sheet header{grid-template-columns:44px minmax(0,1fr);gap:8px}.planning-sheet-symbol{width:44px;height:44px}.planning-sheet-status{grid-column:2;grid-row:auto}.planning-event-sheet h2{font-size:19px}.planning-sheet-facts{font-size:12px}.planning-week-head,.planning-week-grid{grid-template-columns:30px repeat(7,minmax(0,1fr))}.planning-week-event time{font-size:9px}.planning-week-event .planning-week-caption{font-size:9px}.planning-week-caption .icon{width:10px;height:10px}}
/* An open overlap choice must paint above the sticky hour column. */
@media(max-width:680px){.planning-week-overlap[open]{z-index:20}.planning-week-overlap>summary strong{display:flex;align-items:center;gap:3px;background:none;padding:0}.planning-week-overlap>summary strong small{font-size:10px;font-weight:600}.planning-week-overlap>summary strong b{background:white;color:#174e75;border-radius:8px;padding:2px 4px;font-size:10px;font-weight:600}}
/* Final shared palette and compact card proportions requested by Laura. */
.admin-planning{color:#17324D}.planning-day-time{background:#E6F2FC;color:#17324D;font-weight:700}.planning-day-card{background:#fff;border:1px solid #DCE6EE;border-left:5px solid var(--planning-color);border-radius:16px;box-shadow:0 2px 6px #17324d08}.planning-event-open{display:grid;grid-template-columns:22px minmax(0,1fr) 66px 14px;gap:8px;min-height:78px}.planning-event-open:has(>img){grid-template-columns:22px minmax(0,1fr) 66px 14px}.planning-event-open:not(:has(>img)){grid-template-columns:22px minmax(0,1fr) 14px}.planning-day-symbol{background:transparent;color:var(--planning-color);width:22px;height:28px;align-self:start;padding-top:2px;border-radius:0}.planning-day-symbol .icon{width:22px!important;height:22px!important}.planning-event-open .planning-day-copy{min-width:0}.planning-event-open strong{color:#17324D;font-weight:650;font-size:15px;letter-spacing:0;line-height:1.3}.planning-event-open small{color:#647D91;font-weight:400;font-size:12px;line-height:1.35}.planning-event-open img{display:block;width:66px;height:66px;object-fit:cover;object-position:center;border-radius:10px}.planning-status{font-weight:600;font-size:12px;background:#E5F5EC;color:#24633E}.planning-state-completed .planning-status,.planning-state-confirmed .planning-status,.planning-state-payment .planning-status{background:#E5F5EC;color:#24633E}.planning-state-pending .planning-status{background:#FFF0DF;color:#8E4A0E}.planning-state-open .planning-status{background:#EEF1F4;color:#526474}.planning-day-counts strong{color:#17324D;font-weight:700}.planning-day-counts span{font-weight:400}.planning-week-event{background:var(--planning-soft);border-color:var(--planning-color);color:#17324D}.planning-week-event .icon{color:var(--planning-color)}.planning-week-event.planning-activity-pack{background:var(--planning-color);color:#fff}.planning-week-event.planning-activity-pack .icon{color:#fff}.planning-legend{color:#17324D;font-size:12px;font-weight:400;gap:12px 18px}.planning-legend i,.planning-month-dots i{width:9px;height:9px;aspect-ratio:1;border-radius:50%;flex-shrink:0}.planning-month-dots{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;min-height:10px}.planning-month>button{background:#F8FBFD;border-color:#DCE6EE;color:#17324D}.planning-month>button strong{font-weight:600}.planning-month>button.is-today:not(.chosen){border:2px solid #1263A3}.planning-month>button.chosen,.planning-month>button.chosen.is-blocked{background:#1263A3;color:#fff;border-color:#1263A3;outline:0}.planning-month>button.chosen strong{font-weight:700}.planning-month>button.chosen .planning-month-dots i{box-shadow:0 0 0 1px #fff}.planning-sheet-status.sheet-state-completed{background:#E5F5EC;color:#24633E}.planning-sheet-status.sheet-state-open{background:#EEF1F4;color:#526474}
@media(max-width:680px){.planning-event-open strong{font-size:14px}.planning-day-row{grid-template-columns:46px minmax(0,1fr);gap:6px;padding:7px 0}.planning-day-card{padding:9px 6px}.planning-event-open{grid-template-columns:20px minmax(0,1fr) 56px 12px;gap:5px}.planning-event-open:has(>img){grid-template-columns:20px minmax(0,1fr) 56px 12px}.planning-event-open img{width:56px;height:56px}.planning-event-open small{font-size:12px}.planning-status{font-size:11px}.planning-day-symbol{width:20px}.planning-day-symbol .icon{width:20px!important;height:20px!important}.planning-legend{font-size:11px;gap:10px 12px}}
@media(max-width:350px){.planning-event-open,.planning-event-open:has(>img){grid-template-columns:minmax(0,1fr) 48px 10px}.planning-event-open .planning-day-symbol{display:none}.planning-event-open img{width:48px;height:48px}.planning-event-open strong{font-size:13px}.planning-day-time{font-size:11px}}

/* Final Jour / Semaine / Mois proportions, from Laura's November reference.
   Seven columns stay visible; an overnight stay never sets the working hours. */
.planning-week-event{justify-content:flex-start;padding-top:5px}
.planning-week-event time{font-weight:500;font-variant-numeric:tabular-nums;line-height:1.15;flex:none}
.planning-week-caption{display:flex;align-items:center;justify-content:center;gap:2px;max-width:100%;font-weight:600;white-space:nowrap}
.planning-week-caption>.icon{flex:none}
.planning-week-event.planning-state-open{border-style:dashed}
.planning-week-event.planning-state-pending{border-style:dashed}
.planning-week-day.is-today:not(.chosen){box-shadow:inset 0 0 0 1px #1263A3}
.planning-day-zone{display:flex;align-items:center;gap:3px}
.planning-day-zone .icon{width:13px;height:13px;flex:none;color:#17324D}
.planning-day-facts{font-variant-numeric:tabular-nums}
.planning-day-card:has(.planning-event-open:focus-visible){outline:3px solid #1263A3;outline-offset:2px}
.planning-event-open:focus-visible,.planning-week-event:focus-visible,.planning-month>button:focus-visible,.planning-week-day:focus-visible{outline:3px solid #1263A3;outline-offset:2px;z-index:5}
.planning-day-counts>div{min-height:68px}
.planning-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;padding:15px 5px 3px;line-height:1.35}
.planning-legend>span{align-items:center;min-width:0;gap:7px}
.planning-month{gap:5px}
.planning-month>button{border-radius:11px;min-height:54px}
.planning-month>button>strong{font-size:16px}
.planning-month .planning-weekday{font-size:12px;font-weight:500;padding-bottom:7px}
.planning-month-dots{gap:4px}
.planning-sheet-pets{overscroll-behavior-x:contain}
.planning-sheet-close{z-index:2}
@media(max-width:680px){
 .planning-heading{min-height:112px;padding-top:12px}
 .planning-brand{margin-bottom:9px}
 .planning-header-photo{height:126px}
 .planning-heading h1{font-weight:700}
 .planning-heading p{font-size:11px;white-space:nowrap;line-height:1.35;letter-spacing:-.2px}
 .admin-planning .admin-dashboard-actions .btn{min-height:46px;font-size:13px;font-weight:600}
 .planning-view-tabs button{min-height:37px;font-size:13px;font-weight:500}
 .planning-view-tabs button.chosen{font-weight:600}
 .planning-period h2{font-size:14px;line-height:1.35;font-weight:600;letter-spacing:0}
 .planning-period>button{min-width:38px;min-height:40px}
 .planning-day-counts span{font-size:11px;line-height:1.2;margin-top:3px}
 .planning-day-counts>div{padding:9px 6px}
 .planning-day-row{padding:9px 0}
 .planning-event-open{min-height:80px}
 .planning-event-open strong{font-size:14px;font-weight:650}
 .planning-event-open small{line-height:1.4}
 .planning-status{display:inline-block;font-size:11px;margin-top:2px}
 .planning-calendar-panel{padding:12px 8px 15px}
 .planning-week-head,.planning-week-grid{grid-template-columns:35px repeat(7,minmax(0,1fr))}
 .planning-week-day{min-height:50px}
 .planning-week-day span{font-size:11px;font-weight:500}
 .planning-week-day strong{font-size:16px;font-weight:600}
 .planning-hour-labels{font-size:11px;font-weight:500}
 .planning-week-event{min-height:42px;padding:4px 0 2px;gap:1px}
 .planning-week-event time,.planning-week-event .planning-week-caption,.planning-week-event>small{font-size:11px;line-height:1.1}
 .planning-week-caption{gap:0;letter-spacing:-.2px}
 .planning-week-event .planning-week-caption{font-size:10.5px}
 .planning-week-caption>.icon{width:9px;height:9px}
 .planning-week-stay{font-size:10px;line-height:1.3}
 .planning-week-overlap>summary{min-height:42px;padding:3px 0;gap:1px}
 .planning-pending-panel .admin-panel-heading{gap:6px}
 .planning-pending-row{padding:9px 7px;gap:6px}
 .planning-request-open strong{font-size:12px}
 .planning-request-open span,.planning-request-open small{font-size:11px;line-height:1.35}
 .planning-request-actions>button{width:34px;height:38px}
 .planning-request-actions .icon{width:18px;height:18px}
 .planning-month>button{min-height:48px}
 .planning-month>button>strong{font-size:15px}
 .planning-month .planning-weekday{font-size:11px}
 .planning-legend{font-size:11px;gap:10px 12px}
}
@media(max-width:350px){
 .planning-heading p{font-size:11px;max-width:210px}
 .planning-brand{font-size:17px}
 .planning-period h2{font-size:12px}
 .planning-day-counts>div{grid-template-columns:23px minmax(0,1fr);column-gap:3px}
 .planning-day-counts .icon{width:23px;height:23px}
 .planning-day-counts span{font-size:10px}
 .planning-week-head,.planning-week-grid{grid-template-columns:31px repeat(7,minmax(0,1fr))}
 .planning-week-day span{font-size:10px}
 .planning-week-event .planning-week-caption{font-size:10px}
 .planning-week-caption>.icon{display:none}
 .planning-week-event time,.planning-week-event>small{font-size:10px}
 .planning-pending-row{grid-template-columns:20px minmax(0,1fr)}
 .planning-request-actions{grid-column:2}
 .planning-month{gap:4px}
 .planning-month>button{min-height:43px}
}

/* Equal day widths and readable short events, including the desktop calendar.
   Overlaps choose distinct records instead of stretching a whole day column. */
.planning-week-head,.planning-week-grid{grid-template-columns:46px repeat(7,minmax(0,1fr));min-width:0}
.planning-week-event,.planning-week-event-short{flex-direction:column;min-height:54px;gap:1px;padding:4px 1px;justify-content:flex-start}
.planning-week-event time,.planning-week-event .planning-week-caption,.planning-week-event>small{flex-shrink:0}
.planning-week-event time .temporal-label{font-size:inherit;line-height:1;gap:3px}
.planning-week-event time .temporal-icon .icon{width:12px;height:12px}
.planning-week-event .planning-week-caption{min-height:13px;line-height:1.1;font-size:11px}
.planning-week-event.planning-week-mobile-clustered{display:none}
.planning-week-overlap{display:block;position:absolute;left:0;right:0;z-index:3}
.planning-week-overlap>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:54px;gap:2px;border:1px solid var(--planning-color);border-radius:8px;background:var(--planning-soft);color:var(--planning-color);cursor:pointer;list-style:none;font-size:11px;line-height:1.15}
.planning-week-overlap>summary::-webkit-details-marker{display:none}
.planning-week-overlap>summary>span{display:flex;align-items:center;gap:2px;flex-shrink:0}
.planning-week-overlap>summary .icon{width:12px;height:12px}
.planning-week-overlap>summary>strong{display:flex;align-items:center;gap:5px}
.planning-week-overlap>summary small{font-size:11px}
.planning-week-overlap>summary b{font-size:11px;border-radius:8px;background:#fff;padding:1px 4px}
@media(min-width:681px){.planning-week-overlap[open] .planning-overlap-list{position:fixed;inset:auto 20px 24px auto;width:min(420px,calc(100vw - 40px));max-height:70vh;overflow:auto;z-index:30}}
@media(max-width:680px){.planning-week-head,.planning-week-grid{grid-template-columns:35px repeat(7,minmax(0,1fr))}.planning-week-event,.planning-week-event-short{min-height:44px;padding:3px 0}.planning-week-event .planning-week-caption{font-size:10px;min-height:11px}.planning-week-overlap>summary{min-height:48px;font-size:10px}.planning-week-overlap>summary small{font-size:10px}}
@media(max-width:350px){.planning-week-head,.planning-week-grid{grid-template-columns:31px repeat(7,minmax(0,1fr))}}

@media(min-width:681px){
 .planning-overlap-list{position:fixed;inset:auto 20px 24px auto;z-index:35;width:min(420px,calc(100vw - 40px));max-height:70vh;overflow:auto;background:#fff;border:1px solid #bfd5e6;border-radius:18px;padding:15px;box-shadow:0 4px 60px #0a29454d;display:grid;gap:9px}
 .planning-overlap-list>strong{font-size:14px}.planning-overlap-list>small{font-size:11px;color:#527080}
 .planning-overlap-event{display:flex;gap:9px;align-items:center;width:100%;text-align:left;background:#eff7fd;border:1px solid #dae8f2;border-radius:11px;padding:12px;font:inherit;color:#143b58;cursor:pointer}
 .planning-overlap-event>.icon{width:23px;height:23px;flex-shrink:0}.planning-overlap-event>span{display:grid;gap:4px}.planning-overlap-event strong{font-size:13px}.planning-overlap-event small{font-size:11px}
}

.planning-demo-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .84rem;
}
.planning-demo-bar button { min-height: 36px; }
.planning-inline-detail {
  margin: 14px 0;
  padding: clamp(12px, 3vw, 22px);
  border: 1px solid #cddfe9;
  border-top: 4px solid var(--detail-color, #1263a3);
  border-radius: 18px;
  background: #fff;
  color: #17324d;
  box-shadow: 0 4px 18px #12365312;
  scroll-margin-block: 16px 90px;
}
.planning-inline-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.planning-inline-header > img {
  width: clamp(48px, 13vw, 84px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}
.planning-inline-header > .icon { color: var(--detail-color); }
.planning-inline-header h2 { margin: 0; font-size: clamp(1.05rem, 3vw, 1.45rem); }
.planning-inline-header p { margin: 4px 0; font-size: .86rem; }
.planning-inline-header button { padding: 6px 10px; min-height: 40px; }
.planning-inline-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  font-size: .82rem;
}
.planning-inline-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--detail-soft, #eef6fb);
}
.planning-inline-facts > span { min-width: 0; overflow-wrap: anywhere; }
.planning-inline-facts .icon { flex-shrink: 0; width: 15px; height: 15px; color: var(--detail-color); }
.planning-inline-pets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-block: 12px;
}
.planning-inline-pet {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  text-align: center;
  overflow-wrap: anywhere;
}
.planning-inline-pet strong { font-size: .83rem; }
.planning-inline-pet small { font-size: .72rem; color: #456478; }
.planning-inline-pet button { min-height: 36px; padding: 4px 6px; font-size: .72rem; }
.planning-inline-portrait {
  display: grid;
  place-items: center;
  width: min(100%, 84px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--detail-soft);
  color: var(--detail-color);
}
.planning-inline-portrait > img { width: 100%; height: 100%; object-fit: cover; }
.planning-inline-portrait > img:not([hidden]) + .portrait-fallback { display: none; }
.planning-inline-portrait > img[hidden] { display: none; }
.planning-inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.planning-inline-actions fieldset { display: contents; }
.planning-inline-actions button, .planning-inline-actions .appointment-destination { min-width: 0; min-height: 44px; padding: 7px 10px; font-size: .84rem; }
.planning-inline-actions [data-a="advance-ongoing"],
.planning-inline-actions [data-a="planning-day"] { grid-column: 1 / -1; }
.planning-inline-actions [data-a="advance-ongoing"]:enabled { background: #176b43; color: #fff; }
.planning-inline-actions [aria-expanded="true"] { background: var(--detail-soft); }
.planning-inline-hint { font-size: .82rem; color: #456478; margin: 10px 0; }
.planning-inline-detail > .outing-panel,
.planning-inline-detail > .card { margin-top: 12px; }
@media (min-width: 740px) {
  .planning-inline-pets { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
}

/* Planning creation screens share the calendar's activity colours and controls. */
.planning-form-screen{max-width:56rem;margin:0 auto;color:#14304a}
.planning-form-header{margin-bottom:1rem}
.planning-form-header h1{display:flex;align-items:center;gap:.65rem;margin:1rem 0 .25rem;font-size:clamp(1.45rem,4vw,2rem);line-height:1.2;color:#12304e}
.planning-form-header h1 svg{flex:0 0 1.65rem;width:1.65rem;height:1.65rem;color:#086599}
.planning-form-header p{margin:.25rem 0;color:#405a70}
.planning-form-section{min-width:0;margin:0 0 .8rem;padding:clamp(.75rem,2.5vw,1.15rem);border:1px solid #d8e6ef;border-radius:1rem;background:#fff;box-shadow:0 2px 6px #163b5608}
.planning-form-section h2{display:flex;align-items:center;gap:.45rem;margin:0 0 .7rem;font-size:1.08rem;color:#12304e}
.planning-form-section h2 svg{width:1.3rem;height:1.3rem;color:#086599;flex:none}
.planning-form-section .field{min-width:0}
.planning-form-section textarea{min-height:5rem}
.planning-form-services,.planning-form-pets,.planning-form-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.5rem}
.planning-form-services{grid-auto-rows:1fr}
.planning-form-services label,.planning-form-services button,.planning-form-slots label,.planning-form-pets label{display:flex;position:relative;align-items:center;gap:.5rem;min-height:3.1rem;padding:.65rem;border:1px solid #ccdce9;border-radius:.75rem;background:#f2f7fb;cursor:pointer}
.planning-form-services label,.planning-form-services button{justify-content:center;flex-direction:column;min-height:5rem;background:var(--service-soft);text-align:center;color:#18324c;font:inherit;font-weight:650}
.planning-form-services svg{height:1.65rem;width:1.65rem;color:var(--service-color)}
.planning-form-services input,.planning-form-slots input{position:absolute;inset:.3rem .3rem auto auto;accent-color:#075d91}
.planning-form-services label:has(:checked),.planning-form-slots label:has(:checked),.planning-form-pets label:has(:checked){border-color:#126c9f;box-shadow:inset 0 0 0 1px #126c9f}
.planning-form-services label:focus-within,.planning-form-services button:focus-visible,.planning-form-slots label:focus-within,.planning-form-pets label:focus-within{outline:2px solid #005a94;outline-offset:2px}
.planning-form-slots label{padding-right:1.6rem}
.planning-form-slots label:has(:disabled){opacity:.65;cursor:default}
.planning-form-slots small{display:block}
.planning-form-pets .pet-portrait{flex:none;width:2rem;height:2rem}
.planning-form-duration,.planning-zone{display:inline-flex;align-items:center;min-height:2.4rem;padding:.45rem .65rem;border-radius:.6rem;background:#e5f1fa;color:#124773;font-weight:700}
.planning-form-summary{display:grid;grid-template-columns:max-content 1fr;gap:.4rem .75rem;margin:0;overflow-wrap:anywhere}
.planning-form-summary dt{font-weight:700}
.planning-form-summary dd{margin:0}
.planning-form-submit{width:100%;min-height:3rem;font-weight:750}
.planning-form-submit.slot{background:#5a33b8}
.planning-form-submit.confirm{background:#147347}
.planning-form-screen [data-planning-form-error]:not(:empty){padding:.65rem;background:#fce9e8;color:#882626;border-radius:.6rem}
.planning-form-screen [data-planning-form-error]:empty{margin:0}
@media(max-width:480px){
 .planning-form-services,.planning-form-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
 .planning-form-screen .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .planning-form-screen .form-grid .appointment-notes{grid-column:1/-1}
 .planning-form-screen input,.planning-form-screen select{min-width:0;max-width:100%}
}

.planning-week-private-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.planning-inline-action-title { margin: 16px 0 0; font-size: .96rem; }
.planning-inline-actions [data-a="appointment-cancel"] { color: #a32437; border-color: #efc6cc; }
.planning-inline-actions .appointment-destination { white-space: normal; text-align: center; }
@media (max-width: 680px) {
  .planning-activity-private .planning-week-caption > .icon { display: none; }
}

#boarding-stay-form .boarding-note { margin:0 0 .8rem; border:1px solid #d9e6ef; border-radius:14px; }
.boarding-note summary,.boarding-price-lines summary,.boarding-presence-list summary { cursor:pointer; color:#143a5a; padding:.55rem 0; }
.boarding-note summary .icon,.boarding-presence-list summary .icon { vertical-align:middle; color:#126485; width:1.2rem; height:1.2rem; }
.boarding-note summary small { font-size:.84em; color:#506578; }
.boarding-note .field { margin:.4rem 0 0; }
.boarding-price-summary { margin:0; }
.boarding-price-summary > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.55rem; padding:.42rem .3rem; border-bottom:1px solid #e3edf4; }
.boarding-price-summary dd { margin:0; text-align:right; }
.boarding-price-summary .boarding-price-total { padding:.6rem; margin-top:.35rem; border:0; border-radius:.6rem; background:#dceffc; font-weight:800; font-size:1.14rem; }
.boarding-conflicts { list-style:none; margin:.55rem 0 .85rem; padding:0; }
.boarding-conflicts li { margin:.35rem 0; padding:.55rem .7rem; border:1px solid #ead8bc; border-radius:.65rem; background:#fff7e9; color:#513419; overflow-wrap:anywhere; }
.boarding-conflicts li span { display:block; margin-top:.15rem; }
.boarding-price-lines { margin-top:.45rem; }
.boarding-price-lines summary { font-weight:700; }
.boarding-price-lines ol { margin:.25rem 0; padding-left:1.45rem; }
.boarding-price-lines li { padding:.38rem 0; border-top:1px solid #e3edf4; }
.boarding-price-lines li span { display:inline-block; }
.boarding-price-lines small,.boarding-presence-list small { display:block; color:#486375; }
.boarding-presence-empty,.boarding-presence-notice { border-radius:.65rem; padding:.7rem; margin:0; }
.boarding-presence-empty { background:#e3f5ee; color:#22594d; }
.boarding-presence-notice { background:#fff4dc; color:#64470b; }
.boarding-presence-list { list-style:none; padding:0; margin:.35rem 0 0; }
.boarding-presence-list li { background:#f0f7fc; border-radius:.6rem; padding:0 .65rem .1rem; margin-top:.35rem; }
.boarding-presence-list summary span { display:inline-block; vertical-align:middle; margin-left:.4rem; }
.boarding-presence-list details[open] { padding-bottom:.5rem; }
.boarding-presence-list details p { margin:.1rem 0 .4rem; }
.boarding-confirm { width:100%; min-height:46px; justify-content:center; }
