 :root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#18212f;background:#f5f7fb;color-scheme:light} :root.dark{color:#e5e7eb;background:#0f1115;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f5f7fb}.dark body{background:#0f1115}button,input,textarea,select{font:inherit}button{cursor:pointer}
.app{height:100vh;overflow:hidden;background:#fff}.dark .app{background:#11141a}.topbar{height:54px;display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid #e7ebf0;background:#fff}.dark .topbar{background:#15181e;border-color:#292e38}.brand{display:flex;align-items:center;gap:8px;min-width:210px;font-size:15px}.brand strong{font-weight:900}.badge{font-size:8px;font-weight:900;color:#6d28d9;background:#ede9fe;padding:3px 5px;border-radius:4px}.dark .badge{background:#29234a;color:#c4b5fd}.search{flex:1;max-width:580px;margin:auto;display:flex;align-items:center;gap:8px;height:34px;padding:0 11px;border-radius:8px;background:#f1f4f8;color:#64748b}.dark .search{background:#20242c;color:#94a3b8}.search input{border:0;outline:0;background:transparent;width:100%;font-size:14px;color:inherit}.top-actions{min-width:210px;display:flex;justify-content:flex-end;align-items:center;gap:7px}.icon{border:0;background:transparent;color:#475569;border-radius:7px;width:32px;height:32px}.dark .icon{color:#cbd5e1}.icon:hover{background:#eef2f7}.dark .icon:hover{background:#252a33}.avatar{width:31px;height:31px;border:0;border-radius:50%;background:#111827;color:#fff;font-size:11px;font-weight:900}.dark .avatar{background:#e5e7eb;color:#111827}
.workspace{height:calc(100vh - 54px);display:flex}.sidebar{width:218px;flex:0 0 218px;border-right:1px solid #e7ebf0;background:#fafbfc;padding:12px 9px;display:flex;flex-direction:column;transition:.18s}.dark .sidebar{background:#15181e;border-color:#292e38}.sidebar.collapsed{width:64px;flex-basis:64px}.new{height:38px;border:0;border-radius:8px;background:#111827;color:#fff;font-weight:900;font-size:13px;margin-bottom:12px}.dark .new{background:#f1f5f9;color:#111827}.nav{display:grid;gap:2px}.nav button{height:35px;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 10px;color:#475569;font-size:13px;font-weight:800;text-align:left}.dark .nav button{color:#cbd5e1}.nav button.active,.nav button:hover{background:#eef2f7}.dark .nav button.active,.dark .nav button:hover{background:#252a33}.nav span{white-space:nowrap}.collapsed .new,.collapsed .nav .nav-label{font-size:0}.collapsed .nav button{justify-content:center;padding:0}.side-bottom{margin-top:auto}.content{flex:1;min-width:0;overflow:auto}.toolbar{height:64px;display:flex;align-items:center;gap:8px;padding:0 18px;border-bottom:1px solid #e7ebf0}.dark .toolbar{border-color:#292e38}.toolbar h1{font-size:17px;margin:0;min-width:150px}.toolbar .grow{flex:1}.btn{height:32px;padding:0 11px;border:1px solid #dce2e9;background:#fff;border-radius:7px;color:#334155;font-size:13px;font-weight:800}.dark .btn{background:#1a1e26;border-color:#303642;color:#dbe3ef}.btn.primary{background:#111827;border-color:#111827;color:#fff}.dark .btn.primary{background:#f1f5f9;border-color:#f1f5f9;color:#111827}.monthlabel{font-size:14.5px;font-weight:900;min-width:180px;text-align:center}.calendar{margin:14px 18px;border:1px solid #e2e7ee;border-radius:10px;overflow:hidden;background:#fff}.dark .calendar{background:#15181e;border-color:#303642}.weekdays,.monthgrid{display:grid;grid-template-columns:repeat(7,1fr)}.weekdays{background:#fafbfc;border-bottom:1px solid #e2e7ee}.dark .weekdays{background:#1a1e26;border-color:#303642}.weekday{height:32px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#64748b}.day{min-height:112px;border-right:1px solid #e7ebf0;border-bottom:1px solid #e7ebf0;padding:6px;position:relative}.dark .day{border-color:#303642}.day:nth-child(7n){border-right:0}.day.muted{background:#fafbfc;color:#94a3b8}.dark .day.muted{background:#12151a}.day.today .num{background:#111827;color:#fff}.dark .day.today .num{background:#e5e7eb;color:#111827}.num{width:23px;height:23px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900}.event{margin-top:3px;border:0;border-left:3px solid #473FC5;border-radius:4px;background:#eef2ff;color:#3730a3;padding:4px 6px;text-align:left;width:100%;font-size:11px;display:flex;align-items:center;gap:4px;overflow:hidden}.dark .event{background:#28254a;color:#c4b5fd}.weekview{margin:14px 18px;border:1px solid #e2e7ee;border-radius:10px;overflow:auto;background:#fff}.dark .weekview{background:#15181e;border-color:#303642}.timegrid{display:grid;grid-template-columns:54px repeat(7,minmax(110px,1fr));min-width:830px}.time{height:54px;border-right:1px solid #e7ebf0;border-bottom:1px solid #e7ebf0;padding:5px;text-align:right;font-size:11px;color:#94a3b8}.slot{height:54px;border-right:1px solid #e7ebf0;border-bottom:1px solid #e7ebf0;position:relative}.slot:hover{background:#fafbff}.dark .time,.dark .slot{border-color:#303642}.dayhead{height:46px;padding:6px;text-align:center;border-bottom:1px solid #e7ebf0;font-size:12px;font-weight:900}.dayhead strong{display:block;font-size:15px}.weekevent{position:absolute;left:3px;right:3px;top:3px;background:#eef2ff;border-left:3px solid #473FC5;border-radius:4px;padding:4px;font-size:11px;color:#3730a3;z-index:2}.dark .weekevent{background:#28254a;color:#c4b5fd}.empty{padding:45px;text-align:center;color:#64748b;font-size:14px}.modal-back{position:fixed;inset:0;background:rgba(15,23,42,.36);display:grid;place-items:center;z-index:100}.modal{width:min(520px,calc(100vw - 30px));background:#fff;border-radius:13px;padding:18px;box-shadow:0 25px 70px rgba(0,0,0,.25)}.dark .modal{background:#1a1e26;color:#e5e7eb}.modal h2{font-size:16px;margin:0 0 14px}.form{display:grid;gap:10px}.form label{font-size:12px;font-weight:900;color:#64748b}.form input,.form textarea{width:100%;border:1px solid #dce2e9;border-radius:7px;padding:9px;font-size:13px;background:#fff;color:#18212f}.dark .form input,.dark .form textarea{background:#11141a;border-color:#303642;color:#e5e7eb}.form textarea{min-height:70px;resize:vertical}.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.danger{color:#dc2626}.demo{position:fixed;bottom:12px;right:14px;background:#111827;color:#fff;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:900;z-index:20}.dark .demo{background:#e5e7eb;color:#111827}
@media(max-width:760px){.brand{min-width:auto}.brand .badge{display:none}.search{display:none}.top-actions{min-width:auto}.sidebar{width:64px;flex-basis:64px}.sidebar .new,.sidebar .nav .nav-label{font-size:0}.sidebar .nav button{justify-content:center}.toolbar{padding:0 10px}.toolbar h1{display:none}.calendar{margin:8px}.day{min-height:88px}.monthlabel{min-width:auto}.weekview{margin:8px}}

/* ZeCalendar UI icons / interactive navigation */
.brand-mark{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;background:#111827;color:#fff;font-size:12px;font-weight:900;letter-spacing:-.3px;flex:0 0 27px}
.dark .brand-mark{background:#f1f5f9;color:#111827}
.search svg,.icon svg,.nav button svg,.collapse-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.search svg{width:15px;height:15px}
.search kbd{font-size:8px;padding:3px 5px;border:1px solid #d7dde5;border-radius:4px;color:#94a3b8;background:#fff}
.dark .search kbd{background:#171a20;border-color:#343a45}
.icon{display:grid;place-items:center;padding:0;transition:background .15s,transform .15s}
.icon:active,.avatar:active{transform:scale(.95)}
.profile-wrap{position:relative}
.profile-menu{position:absolute;right:0;top:40px;width:205px;background:#fff;border:1px solid #e1e6ed;border-radius:9px;padding:7px;box-shadow:0 14px 35px rgba(15,23,42,.14);z-index:150}
.dark .profile-menu{background:#1a1e26;border-color:#303642;box-shadow:0 14px 35px rgba(0,0,0,.35)}
.profile-email{padding:8px 9px 9px;font-size:12px;font-weight:900;border-bottom:1px solid #edf0f4;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis}
.dark .profile-email{border-color:#303642}
.profile-menu button{width:100%;height:32px;border:0;background:transparent;border-radius:6px;text-align:left;padding:0 9px;font-size:12px;font-weight:700;color:#475569}
.dark .profile-menu button{color:#dbe3ef}
.profile-menu button:hover{background:#f1f4f8}
.dark .profile-menu button:hover{background:#252a33}
.profile-menu button span{display:inline-block;width:22px}
.nav button svg{width:16px;height:16px}
.nav button.active svg{stroke-width:2.2}
.collapse-btn{height:35px;width:100%;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 10px;color:#64748b;font-size:13px;font-weight:800;text-align:left}
.dark .collapse-btn{color:#cbd5e1}
.collapse-btn:hover{background:#eef2f7}
.dark .collapse-btn:hover{background:#252a33}
.collapse-btn svg{transition:transform .18s}
.collapse-btn svg.rotated{transform:rotate(180deg)}
.collapsed .collapse-btn{justify-content:center;padding:0}
.collapsed .collapse-btn span{display:none}
.collapsed .new{width:46px;align-self:center;font-size:0}
.collapsed .new:first-letter{font-size:18px}
@media(max-width:760px){.top-actions{gap:3px}.icon{width:30px}.profile-menu{right:-4px}.brand strong{display:none}}

/* ZeDrive-aligned navbar, profile menu, sidebar and view controls */
.topbar{height:54px;padding:0 12px;gap:12px;background:#fff;border-bottom:1px solid #e7ebf0}.dark .topbar{background:#15181e;border-color:#292e38}
.brand{display:flex;align-items:center;gap:7px;min-width:190px;font-size:15px}.brand-mark{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;background:#111827;color:#fff;font-size:12px;font-weight:900;letter-spacing:-.3px}.dark .brand-mark{background:#f1f5f9;color:#111827}.brand strong{font-weight:900}.badge{font-size:8px;font-weight:900;color:#473FC5;background:#eef2ff;padding:3px 5px;border-radius:4px}.dark .badge{background:#29234a;color:#c4b5fd}
.search{flex:1;max-width:580px;margin:0 auto;display:flex;align-items:center;gap:7px;padding:0 10px;height:34px;border-radius:8px;background:#f1f4f8;color:#64748b}.dark .search{background:#20242c;color:#94a3b8}.search input{height:auto;border:0!important;background:transparent!important;padding:0;box-shadow:none!important;font-size:14px;width:100%;outline:none}.search:focus-within{background:#e9eef6;box-shadow:0 0 0 2px rgba(71,63,197,.14)}.dark .search:focus-within{background:#252a34}.search svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.search-clear{border:0;background:transparent;color:#94a3b8;width:22px;height:22px;font-size:17px;cursor:pointer}.top-actions{display:flex;align-items:center;gap:4px;min-width:190px;justify-content:flex-end}.icon-btn{border:0;border-radius:7px;background:transparent;color:#475569;display:grid;place-items:center;width:32px;height:32px;cursor:pointer}.dark .icon-btn{color:#cbd5e1}.icon-btn:hover{background:#eef2f7}.dark .icon-btn:hover{background:#252a33}.icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.avatar-btn{width:31px;height:31px;border:0;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:11px;font-weight:900;cursor:pointer}.dark .avatar-btn{background:#e5e7eb;color:#111827}.profile-wrap{position:relative}.profile-menu{position:absolute;right:0;top:41px;width:280px;padding:10px;background:#fff;border:1px solid #e2e7ee;border-radius:13px;box-shadow:0 18px 55px rgba(15,23,42,.18);z-index:150}.dark .profile-menu{background:#1a1e26;border-color:#303642;box-shadow:0 18px 55px rgba(0,0,0,.45)}.profile-head{display:flex;gap:10px;padding:8px}.profile-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:50%;background:#111827;color:#fff;font-size:14px;font-weight:900}.dark .profile-avatar{background:#e5e7eb;color:#111827}.profile-head>div:last-child{min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left;justify-content:center}.profile-head strong{font-size:14px;font-weight:900;overflow:hidden;text-overflow:ellipsis;display:block}.profile-head span{font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;display:block}.dark .profile-head span{color:#9ca3af}.profile-menu button{width:100%;height:34px;border:0;border-radius:7px;background:transparent;display:flex;align-items:center;gap:9px;padding:0 9px;color:#475569;font-size:13px;font-weight:800;text-align:left;cursor:pointer}.dark .profile-menu button{color:#cbd5e1}.profile-menu button:hover{background:#f1f5f9}.dark .profile-menu button:hover{background:#252a33}.profile-menu button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-separator{height:1px;background:#edf0f3;margin:7px 0}.dark .profile-separator{background:#303642}.logout-item{color:#dc2626!important}.dark .logout-item{color:#f87171!important}
.sidebar{width:218px;flex:0 0 218px;transition:width .18s ease,flex-basis .18s ease;overflow:hidden;border-right:1px solid #e7ebf0;background:#fafbfc;padding:12px 9px;display:flex;flex-direction:column}.dark .sidebar{background:#15181e;border-color:#292e38}.sidebar.collapsed{width:64px;flex-basis:64px}.new{height:37px;border:0;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:8px;background:#111827;color:#fff;font-weight:900;margin-bottom:12px;font-size:13px;padding:0 10px;width:100%;cursor:pointer}.dark .new{background:#f1f5f9;color:#111827}.new .plus{font-size:18px;line-height:1}.nav{display:grid;gap:2px}.nav button{height:34px;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 9px;color:#475569;text-align:left;font-size:13px;font-weight:800;width:100%;cursor:pointer}.dark .nav button{color:#aeb7c5}.nav button:hover{background:#eef2f7}.dark .nav button:hover{background:#20252d}.nav button.active{background:#ECEBFB;color:#473FC5;font-weight:900}.dark .nav button.active{background:#29234a;color:#c4b5fd}.nav button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px}.side-bottom{margin-top:auto;padding-top:10px;border-top:1px solid #e7ebf0}.dark .side-bottom{border-color:#292e38}.sidebar-toggle{height:34px;width:100%;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 9px;color:#64748b;font-size:13px;font-weight:800;cursor:pointer}.dark .sidebar-toggle{color:#cbd5e1}.sidebar-toggle:hover{background:#eef2f7}.dark .sidebar-toggle:hover{background:#20252d}.sidebar-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar.collapsed .new{width:46px;padding:0;gap:0}.sidebar.collapsed .new .nav-label,.sidebar.collapsed .nav button .nav-label,.sidebar.collapsed .sidebar-toggle .nav-label{display:none}.sidebar.collapsed .nav button,.sidebar.collapsed .sidebar-toggle{justify-content:center;padding:0;width:46px}.sidebar.collapsed .new .plus{font-size:20px}.sidebar.collapsed .nav button svg,.sidebar.collapsed .sidebar-toggle svg{width:17px;height:17px}
.toolbar{height:64px;display:flex;align-items:center;gap:8px;padding:0 18px;border-bottom:1px solid #e7ebf0}.dark .toolbar{border-color:#292e38}.toolbar h1{font-size:17px;margin:0;min-width:150px}.btn{height:32px;padding:0 11px;border:1px solid #dce2e9;background:#fff;border-radius:7px;color:#334155;font-size:13px;font-weight:800;cursor:pointer}.dark .btn{background:#1a1e26;border-color:#303642;color:#dbe3ef}.btn:hover{background:#f4f6f9}.dark .btn:hover{background:#252a33}.btn.primary{background:#111827;border-color:#111827;color:#fff}.dark .btn.primary{background:#f1f5f9;border-color:#f1f5f9;color:#111827}.icon-nav{font-size:20px;line-height:1;padding:0;width:32px}.view-toggle{display:flex;gap:2px;background:#f1f4f8;border-radius:8px;padding:2px}.dark .view-toggle{background:#20242c}.view-toggle button{border:0;background:transparent;width:30px;height:30px;border-radius:6px;display:grid;place-items:center;color:#64748b;cursor:pointer}.view-toggle button.active{background:#fff;color:#111827;box-shadow:0 1px 3px rgba(15,23,42,.12)}.dark .view-toggle button.active{background:#2b313b;color:#f3f4f6}.view-toggle button:hover{color:#111827}.dark .view-toggle button:hover{color:#fff}.view-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.monthlabel{font-size:14.5px;font-weight:900;min-width:180px;text-align:center}.grow{flex:1}
.modal-head{height:45px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #eef1f4}.dark .modal-head{border-color:#292e38}.modal-head h2{margin:0}.close-btn{border:0;background:transparent;width:30px;height:30px;border-radius:7px;font-size:22px;color:#64748b;cursor:pointer}.close-btn:hover{background:#eef2f7}.dark .close-btn:hover{background:#252a33;color:#f3f4f6}.help-modal{width:min(500px,calc(100vw - 30px));padding:0;overflow:hidden}.help-body{padding:16px}.help-body p{font-size:13px;line-height:1.6;color:#475569;margin:0 0 12px}.dark .help-body p{color:#cbd5e1}.toast{position:fixed;right:18px;bottom:18px;z-index:200;background:#111827;color:#fff;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;box-shadow:0 12px 35px rgba(15,23,42,.22)}.dark .toast{background:#f1f5f9;color:#111827}
@media(max-width:760px){.brand{min-width:auto}.brand strong,.badge{display:none}.search{display:none}.top-actions{min-width:auto}.sidebar{width:64px;flex-basis:64px}.sidebar .new .nav-label,.sidebar .nav button .nav-label,.sidebar .sidebar-toggle .nav-label{display:none}.sidebar .new{width:46px;padding:0}.sidebar .nav button,.sidebar .sidebar-toggle{justify-content:center;padding:0}.toolbar{padding:0 10px}.toolbar h1{display:none}.monthlabel{min-width:auto}.profile-menu{right:-4px}}

.daybadge{margin-left:auto;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;line-height:1;flex:0 0 auto}
.collapsed .daybadge{position:absolute;top:2px;right:2px;margin-left:0}
.creator-info{font-size:12px;font-weight:700;color:#64748b;padding-top:2px}
.dark .creator-info{color:#9ca3af}
.creator-info strong{color:#334155;font-weight:900}
.dark .creator-info strong{color:#e5e7eb}
.day{cursor:pointer}
.day:hover{background:#fafbff}
.dark .day:hover{background:#191d24}
.day.muted:hover{background:#f3f5f8}
.dark .day.muted:hover{background:#151920}
.slot{cursor:pointer}

/* ZeShel Mail navigation/search — intentionally mirrors the Mail client */
.topbar{height:58px;padding:0 14px;gap:16px;background:rgba(255,255,255,.98);box-shadow:0 1px 0 rgba(15,23,42,.04)}
.dark .topbar{background:rgba(21,24,30,.98);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.menu-btn{width:34px!important;height:34px!important;flex:0 0 34px}
.menu-btn svg{width:18px;height:18px}
.search{height:40px;max-width:700px;padding:0 13px;gap:9px;border:1px solid #e1e6ee;border-radius:11px;background:#f7f9fc;color:#64748b;transition:background .15s,border-color .15s,box-shadow .15s}
.dark .search{background:#1c2028;border-color:#303642;color:#aeb7c5}
.search input{font-size:14.5px;line-height:1.2;min-width:0;color:#1f2937;font-weight:700}
.dark .search input{color:#f1f5f9}
.search input::placeholder{color:#8a94a3;opacity:1;font-weight:400}
.dark .search input::placeholder{color:#8f99a8}
.search kbd{font-size:9px;padding:3px 6px;border-radius:5px;background:#fff;color:#7b8492;border:1px solid #dce2ea;white-space:nowrap;flex:0 0 auto}
.dark .search kbd{background:#252a33;color:#9ca3af;border-color:#3a404c}
.search:focus-within{background:#fff;border-color:#aeb8ca;box-shadow:0 0 0 3px rgba(71,63,197,.09)}
.dark .search:focus-within{background:#20252d;border-color:#566078;box-shadow:0 0 0 3px rgba(129,140,248,.12)}
.search input:focus{box-shadow:none;outline:none}
.search svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.search-clear{border:0;background:transparent;color:#94a3b8;width:22px;height:22px;font-size:17px;cursor:pointer}
.top-actions{min-width:210px;gap:5px}
.icon-btn:not(.tiny){width:34px;height:34px}
.avatar-btn{width:33px;height:33px}
.workspace{height:calc(100vh - 58px)}
.sidebar{padding:14px 10px;background:#fbfcfe}
.dark .sidebar{background:#15181e}
.new{min-height:40px;border-radius:9px;font-size:13.5px;box-shadow:0 2px 8px rgba(15,23,42,.07)}
.nav button{height:36px;border-radius:8px;font-size:13.5px}
.side-bottom{display:none}
@media(max-width:900px){.search{max-width:none}}
@media(max-width:760px){.topbar{height:110px}.workspace{height:calc(100vh - 110px)}.search{height:40px}.menu-btn{display:none}}


/* Final ZeShel Mail navbar alignment */
.topbar{height:58px;padding:0 14px;gap:16px;background:rgba(255,255,255,.98);box-shadow:0 1px 0 rgba(15,23,42,.04);display:grid;grid-template-columns:minmax(190px,210px) minmax(320px,700px) minmax(190px,210px);align-items:center;justify-content:space-between}
.dark .topbar{background:rgba(21,24,30,.98);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.top-left{display:flex;align-items:center;gap:10px;min-width:0}
.menu-btn{width:34px!important;height:34px!important;flex:0 0 34px}
.menu-btn svg{width:18px;height:18px}
.topbar .search{width:100%;max-width:700px;margin:0;justify-self:center;height:40px;padding:0 13px;gap:9px;border:1px solid #e1e6ee;border-radius:11px;background:#f7f9fc;color:#64748b;transition:background .15s,border-color .15s,box-shadow .15s}
.dark .topbar .search{background:#1c2028;border-color:#303642;color:#aeb7c5}
.topbar .search input{font-size:14.5px;line-height:1.2;min-width:0;color:#1f2937;font-weight:700}
.dark .topbar .search input{color:#f1f5f9}
.topbar .search input::placeholder{color:#8a94a3;opacity:1;font-weight:400}
.dark .topbar .search input::placeholder{color:#8f99a8}
.topbar .search kbd{font-size:9px;padding:3px 6px;border-radius:5px;background:#fff;color:#7b8492;border:1px solid #dce2ea;white-space:nowrap;flex:0 0 auto}
.dark .topbar .search kbd{background:#252a33;color:#9ca3af;border-color:#3a404c}
.topbar .search:focus-within{background:#fff;border-color:#aeb8ca;box-shadow:0 0 0 3px rgba(71,63,197,.09)}
.dark .topbar .search:focus-within{background:#20252d;border-color:#566078;box-shadow:0 0 0 3px rgba(129,140,248,.12)}
.topbar .search input:focus{box-shadow:none;outline:none}
.top-actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:13px}
.icon-btn:not(.tiny){width:34px;height:34px}
.avatar-btn{width:33px;height:33px}
.workspace{height:calc(100vh - 58px)}
@media(max-width:900px){.topbar{grid-template-columns:50px minmax(0,1fr) 150px}.topbar .search{max-width:none}}
@media(max-width:760px){.topbar{height:110px;display:grid;grid-template-columns:50px 1fr;grid-template-rows:48px 40px;gap:8px 10px;padding:0 10px}.topbar .search{grid-column:1 / -1;grid-row:2;width:100%;height:40px}.top-actions{grid-column:2;grid-row:1;justify-self:end}.workspace{height:calc(100vh - 110px)}.topbar .menu-btn{grid-column:1;grid-row:1}}
.visibility-field{margin-top:4px;padding:10px 11px;border:1px solid #e3e7ed;border-radius:8px;background:#fafbfc}.dark .visibility-field{border-color:#303642;background:#1a1e26}.checkline{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#334155}.dark .checkline{color:#dbe3ef}.checkline input{width:15px;height:15px;margin:0;accent-color:#473FC5}.visibility-field small{display:block;margin:5px 0 0 23px;font-size:11px;line-height:1.45;color:#7b8492}.dark .visibility-field small{color:#9ca3af}.public-dot{float:right;margin-left:5px;font-size:8px;line-height:1.5;color:#473FC5}.dark .public-dot{color:#a5b4fc}
.event-view-modal{padding:0;overflow:hidden}.event-view-body{padding:16px;display:grid;gap:12px}.event-view-row{display:grid;grid-template-columns:100px 1fr;gap:12px;align-items:start;font-size:13px}.event-view-row span,.event-view-block>span{font-size:12px;font-weight:900;color:#64748b}.event-view-row strong{font-size:13px;color:#1f2937;line-height:1.5}.dark .event-view-row strong{color:#e5e7eb}.event-view-block{display:grid;gap:5px}.event-view-block p{margin:0;padding:10px;border:1px solid #e2e7ee;border-radius:8px;font-size:13px;line-height:1.55;color:#334155;background:#fafbfc;white-space:pre-wrap}.dark .event-view-block p{border-color:#303642;background:#11141a;color:#dbe3ef}.event-view-note{margin:0;font-size:11px;line-height:1.5;color:#7b8492}.dark .event-view-note{color:#9ca3af}.event-view-modal .modal-actions{padding:0 16px 16px;margin-top:0}

.planning-view{margin:14px 18px;border:1px solid #e2e7ee;border-radius:10px;overflow:auto;background:#fff}.dark .planning-view{background:#15181e;border-color:#303642}.planning-head{height:58px;padding:0 16px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e7ebf0}.dark .planning-head{border-color:#303642}.planning-head strong{font-size:14.5px}.planning-head span{font-size:12px;color:#7b8492}.planning-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));min-width:1050px}.planning-col{min-height:330px;border-right:1px solid #e7ebf0;padding-bottom:10px}.dark .planning-col{border-color:#303642}.planning-col:last-child{border-right:0}.planning-col-head{height:42px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #e7ebf0;font-size:12px;font-weight:900;text-transform:capitalize}.dark .planning-col-head{border-color:#303642}.planning-slot{position:relative;display:flex;flex-direction:column;align-items:flex-start;width:calc(100% - 14px);margin:8px 7px 0;padding:8px 28px 8px 9px;border:1px solid #dce2e9;border-left:3px solid #473FC5;border-radius:7px;background:#f7f9fc;text-align:left;color:#334155}.dark .planning-slot{background:#1c2028;border-color:#303642;color:#dbe3ef}.planning-slot:hover{background:#eef2f7}.dark .planning-slot:hover{background:#252a33}.planning-slot.booked{border-left-color:#94a3b8;opacity:.72}.planning-slot span{font-size:12px;font-weight:900}.planning-slot small{margin-top:3px;font-size:11px;color:#64748b}.planning-slot i{position:absolute;right:7px;top:7px;font-style:normal;font-size:16px;color:#94a3b8}.planning-empty{text-align:center;padding:22px 8px;font-size:11px;color:#94a3b8}.slot-help{font-size:11px;line-height:1.5;color:#7b8492}.dark .slot-help{color:#9ca3af}.form select{height:32px;border:1px solid #dce2e9;border-radius:7px;padding:0 9px;background:#fff;color:#334155;font-size:13px}.dark .form select{background:#1a1e26;border-color:#303642;color:#dbe3ef}
.planning-slot strong{display:block;margin-top:3px;font-size:12px;font-weight:800;color:#334155}.dark .planning-slot strong{color:#e5e7eb}

.slot-audience{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid #e1e6ee;border-radius:10px;background:#f7f9fc;font-size:14.5px}.slot-audience strong{font-weight:700}.slot-audience span{font-weight:600;text-align:right}.dark .slot-audience{border-color:#303744;background:#171b22}

/* Créneaux : action dédiée juste sous Nouvel événement */
.slot-nav{height:34px;border:1px solid #dce2e9;background:#fff;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 9px;color:#475569;text-align:left;font-size:13px;font-weight:800;width:100%;cursor:pointer;margin-bottom:10px}
.slot-nav:hover{background:#eef2f7}
.slot-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px}
.dark .slot-nav{background:#1a1e26;border-color:#303642;color:#aeb7c5}
.dark .slot-nav:hover{background:#20252d}
.sidebar.collapsed .slot-nav{width:46px;justify-content:center;padding:0}
.sidebar.collapsed .slot-nav .nav-label{display:none}

.help-subtitle{display:block;margin-top:3px;font-size:12px;color:#64748b;font-weight:600}.dark .help-subtitle{color:#9ca3af}.help-body{max-height:68vh;overflow:auto}.help-section{padding:0 0 13px;margin-bottom:13px;border-bottom:1px solid #eef1f4}.dark .help-section{border-color:#292e38}.help-section h3{font-size:13px;margin:0 0 6px;color:#1f2937}.dark .help-section h3{color:#f1f5f9}.help-body p{margin:0 0 7px}.help-body p:last-child{margin-bottom:0}.help-tip{padding:10px 11px;border-radius:9px;background:#f5f3ff;border:1px solid #e4e0ff;color:#4338ca;font-size:12px;line-height:1.55}.dark .help-tip{background:#25213e;border-color:#3b3560;color:#c4b5fd}.confirm-layer{z-index:300}.confirm-modal{width:min(390px,calc(100vw - 30px));padding:20px}.confirm-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;margin-bottom:12px;background:#eef2ff;color:#473FC5;font-size:17px;font-weight:900}.dark .confirm-icon{background:#29234a;color:#c4b5fd}.confirm-content h2{margin:0 0 7px;font-size:16px}.confirm-content p{margin:0;color:#64748b;font-size:13px;line-height:1.55}.dark .confirm-content p{color:#cbd5e1}.confirm-modal .modal-actions{margin-top:18px}.confirm-modal .btn.primary{min-width:88px}

/* Disponibilités récurrentes + recherche de créneau commun */
.utility-nav{margin-bottom:4px}
.availability-modal{width:min(610px,calc(100vw - 30px));padding:0;overflow:hidden}
.availability-list{padding:16px;display:grid;gap:7px}
.availability-row{display:grid;grid-template-columns:minmax(150px,1fr) 105px 18px 105px;align-items:center;gap:8px;padding:8px 9px;border:1px solid #e4e8ee;border-radius:8px;background:#fafbfc}
.dark .availability-row{border-color:#303642;background:#171b22}
.availability-day{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155}
.dark .availability-day{color:#e5e7eb}
.availability-day input{width:15px;height:15px;accent-color:#473FC5}
.availability-row input[type=time]{height:32px;width:100%;border:1px solid #dce2e9;border-radius:7px;padding:0 8px;background:#fff;color:#334155;font-size:13px}
.dark .availability-row input[type=time]{background:#11141a;border-color:#303642;color:#e5e7eb}
.availability-row input:disabled{opacity:.45}
.availability-row>span{text-align:center;color:#94a3b8;font-size:12px}
.availability-note{margin:0 16px;padding:10px 11px;border:1px solid #e3e7ed;border-radius:8px;background:#f7f9fc;color:#64748b;font-size:11px;line-height:1.5}
.dark .availability-note{border-color:#303642;background:#11141a;color:#9ca3af}
.common-modal{width:min(600px,calc(100vw - 30px));padding:0;overflow:hidden}
.common-modal .form{padding:16px 16px 0}
.common-modal .form small{display:block;margin-top:5px;font-size:11px;line-height:1.45;color:#94a3b8;font-weight:600}
.common-results{margin:15px 16px 0;border:1px solid #e2e7ee;border-radius:9px;overflow:hidden}
.dark .common-results{border-color:#303642}
.common-results-head{height:38px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;background:#fafbfc;border-bottom:1px solid #e7ebf0;font-size:12px}
.dark .common-results-head{background:#171b22;border-color:#303642}
.common-results-head span{color:#94a3b8;font-weight:700}
.common-result{width:100%;min-height:54px;padding:9px 11px;border:0;border-bottom:1px solid #eef1f4;background:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;color:#334155}
.common-result:last-child{border-bottom:0}
.dark .common-result{background:#1a1e26;color:#e5e7eb;border-color:#303642}
.common-result:hover{background:#f5f7fa}
.dark .common-result:hover{background:#252a33}
.common-result span{display:flex;flex-direction:column;gap:3px}
.common-result strong{font-size:12px;text-transform:capitalize}
.common-result small{font-size:12px;color:#64748b}
.dark .common-result small{color:#9ca3af}
.common-result b{font-size:11px;color:#473FC5}
.dark .common-result b{color:#a5b4fc}
.common-empty{margin:15px 16px 0;padding:18px 12px;border:1px dashed #dce2e9;border-radius:9px;text-align:center;color:#7b8492;font-size:12px;line-height:1.55}
.dark .common-empty{border-color:#3a404c;color:#9ca3af}
.btn:disabled{opacity:.55;cursor:default}
@media(max-width:620px){.availability-row{grid-template-columns:1fr 95px 14px 95px}.availability-day{grid-column:1/-1}.availability-row input[type=time]:nth-of-type(1){grid-column:1}.availability-row>span{grid-column:2}.availability-row input[type=time]:nth-of-type(2){grid-column:3/-1}}

/* Recherche de disponibilité — fenêtre compacte et entièrement visible */
.availability-modal,
.common-modal{
  max-height:min(720px,calc(100vh - 32px));
  display:flex;
  flex-direction:column;
  min-height:0;
}
.availability-modal .modal-head,
.common-modal .modal-head{flex:0 0 45px}
.availability-list{
  min-height:0;
  max-height:min(430px,48vh);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.availability-modal .availability-note{flex:0 0 auto}
.availability-modal .modal-actions,
.common-modal .modal-actions{flex:0 0 auto}
.common-modal .form{flex:0 0 auto;min-height:0}
.common-results{
  flex:1 1 auto;
  min-height:80px;
  max-height:min(330px,34vh);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.common-results-head{position:sticky;top:0;z-index:1}
.common-empty{flex:0 0 auto}
@media(max-width:620px){
  .modal-back{padding:16px}
  .availability-modal,
  .common-modal{width:100%;max-height:calc(100vh - 32px)}
  .availability-list{max-height:42vh}
  .common-results{max-height:32vh}
  .common-modal .form .row{grid-template-columns:1fr}
}

/* Sélection des collaborateurs — sans dépendance au serveur d'identité */
.collaborator-picker{border:1px solid #dfe5ec;border-radius:9px;background:#fafbfc;overflow:hidden}.dark .collaborator-picker{border-color:#303642;background:#171b22}.collaborator-search{height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid #e7ebf0;background:#fff}.dark .collaborator-search{background:#11141a;border-color:#303642}.collaborator-search svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;flex:0 0 auto;color:#94a3b8}.collaborator-search input{border:0;outline:0;background:transparent;width:100%;font-size:13px;color:#1f2937}.dark .collaborator-search input{color:#e5e7eb}.collaborator-list{max-height:190px;overflow:auto;padding:5px}.collaborator-item{width:100%;display:flex;align-items:center;gap:8px;padding:7px 8px;border:0;border-radius:7px;background:transparent;text-align:left;color:#334155}.collaborator-item:hover{background:#eef2f7}.dark .collaborator-item{color:#dbe3ef}.dark .collaborator-item:hover{background:#252a33}.collaborator-item.selected{background:#f0f1ff}.dark .collaborator-item.selected{background:#29263f}.collaborator-check{width:17px;height:17px;border:1px solid #cbd5e1;border-radius:5px;display:grid;place-items:center;font-size:12px;font-weight:900;flex:0 0 17px;color:#fff}.dark .collaborator-check{border-color:#4b5563}.collaborator-item.selected .collaborator-check{background:#473FC5;border-color:#473FC5}.collaborator-avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#ECEBFB;color:#473FC5;font-size:8px;font-weight:900;flex:0 0 27px}.dark .collaborator-avatar{background:#332f55;color:#c4b5fd}.collaborator-info{display:flex;flex-direction:column;min-width:0;flex:1}.collaborator-info strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collaborator-info small{font-size:11px;color:#7b8492;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .collaborator-info small{color:#9ca3af}.collaborator-item em{font-style:normal;font-size:8px;font-weight:800;color:#64748b}.dark .collaborator-item em{color:#aeb7c5}.collaborator-state{padding:14px;text-align:center;font-size:12px;color:#7b8492}.collaborator-state.error{color:#b91c1c}.dark .collaborator-state.error{color:#fca5a5}.selected-summary{display:flex;align-items:center;gap:6px;margin-top:7px;font-size:11px;color:#64748b}.selected-summary strong{color:#473FC5}.dark .selected-summary strong{color:#a5b4fc}.dark .selected-summary{color:#9ca3af}

/* Planning : légende et couleurs métier */
.planning-head{justify-content:space-between;align-items:center;gap:18px}.planning-head>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.planning-legend{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap;white-space:nowrap;min-width:max-content}.legend-item{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;color:#64748b;line-height:1}.legend-item i{width:8px;height:8px;border-radius:3px;border:1px solid #94a3b8;background:#f7f9fc;flex:0 0 8px}.legend-item.slot i{border-color:#2563eb;background:#dbeafe}.legend-item.event i{border-color:#7c3aed;background:#ede9fe}.legend-item.reservation i{border-color:#db2777;background:#fce7f3}.legend-item.mine i{border-color:#f97316;background:#ffedd5}.legend-item.colleague i{border-color:#dc2626;background:#fee2e2}.dark .legend-item{color:#aeb7c5}.dark .legend-item.slot i{border-color:#60a5fa;background:#17345f}.dark .legend-item.event i{border-color:#a78bfa;background:#31235a}.dark .legend-item.reservation i{border-color:#f472b6;background:#4a1f39}.dark .legend-item.mine i{border-color:#fb923c;background:#4a2815}.dark .legend-item.colleague i{border-color:#f87171;background:#4a1d1d}
.planning-slot{border-left-width:3px}.planning-slot.available{border-left-color:#2563eb;background:#eff6ff}.dark .planning-slot.available{border-color:#244b7c;border-left-color:#60a5fa;background:#182b47;color:#dbeafe}.planning-slot.mine{border-left-color:#f97316;background:#fff7ed}.dark .planning-slot.mine{border-color:#7c3d18;border-left-color:#fb923c;background:#3b2415;color:#ffedd5}.planning-slot.booked{border-left-color:#dc2626;background:#fef2f2}.dark .planning-slot.booked{border-color:#7f1d1d;border-left-color:#f87171;background:#3b1d1d;color:#fee2e2}.planning-slot.available:hover{background:#dbeafe}.dark .planning-slot.available:hover{background:#1d3558}.planning-slot.mine:hover{background:#ffedd5}.dark .planning-slot.mine:hover{background:#4a2815}.planning-slot.booked:hover{background:#fee2e2}.dark .planning-slot.booked:hover{background:#4a1d1d}.planning-event{border-left-width:3px;border-left-color:#7c3aed;background:#f5f3ff}.planning-event.booking{border-left-color:#db2777;background:#fdf2f8}.dark .planning-event{border-left-color:#a78bfa;background:#31235a}.dark .planning-event.booking{border-left-color:#f472b6;background:#4a1f39}
@media(max-width:700px){.planning-head{align-items:flex-start;flex-direction:column;height:auto;padding:12px 14px}.planning-legend{padding-top:2px}.collaborator-list{max-height:160px}}

/* Vue Semaine / Jour — interface agenda professionnelle */
.calendar-detail{margin:14px 18px;border:1px solid #dfe5ec;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.dark .calendar-detail{background:#15181e;border-color:#303642;box-shadow:0 8px 28px rgba(0,0,0,.18)}
.detail-summary{min-height:66px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ebf0;background:#fbfcfe}
.dark .detail-summary{border-color:#303642;background:#191d24}
.detail-summary>div:first-child{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.detail-summary .eyebrow{font-size:8px;letter-spacing:.12em;font-weight:900;color:#6366f1}
.detail-summary strong{font-size:14.5px;font-weight:900;color:#18212f}.dark .detail-summary strong{color:#f1f5f9}
.detail-summary small{font-size:12px;color:#7b8492}.detail-hint{font-size:11px;color:#8a94a3}
.detail-scroll{overflow:auto;max-height:calc(100vh - 222px);scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
.detail-grid{position:relative;display:grid;grid-template-columns:58px repeat(var(--day-count),minmax(0,1fr));grid-template-rows:58px repeat(var(--rows,15),var(--hh,54px));min-width:0;background:#fff}
.detail-grid.single{min-width:0;grid-template-columns:58px minmax(0,1fr)}
.dark .detail-grid{background:#15181e}
.detail-corner{position:sticky;top:0;z-index:8;background:#fafbfc;border-right:1px solid #e7ebf0;border-bottom:1px solid #dfe5ec}
.dark .detail-corner{background:#191d24;border-color:#303642}
.detail-dayhead{position:sticky;top:0;z-index:7;background:#fafbfc;border-right:1px solid #e7ebf0;border-bottom:1px solid #dfe5ec;padding:8px 10px;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:7px;align-content:center}
.dark .detail-dayhead{background:#191d24;border-color:#303642}
.detail-dayhead span{grid-column:1/-1;text-transform:uppercase;font-size:11px;font-weight:900;color:#7b8492;letter-spacing:.04em}
.detail-dayhead strong{font-size:20px;line-height:20px;color:#263241}.dark .detail-dayhead strong{color:#f3f4f6}
.detail-dayhead small{font-size:11px;color:#94a3b8;align-self:end}
.detail-dayhead.today{background:#f1f0ff}.dark .detail-dayhead.today{background:#25213a}
.detail-dayhead.today strong{color:#473FC5}.dark .detail-dayhead.today strong{color:#a78bfa}
.detail-time{height:var(--hh,54px);box-sizing:border-box;padding:7px 9px 0 0;text-align:right;border-right:1px solid #e7ebf0;border-bottom:1px solid #edf0f4;color:#98a2b1;font-size:11px;font-variant-numeric:tabular-nums;background:#fcfdff}
.dark .detail-time{border-color:#303642;color:#7f8a9a;background:#171b22}
.detail-slot{height:var(--hh,54px);box-sizing:border-box;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;cursor:pointer;background:linear-gradient(to bottom,transparent 0,transparent calc(100% - 1px),rgba(148,163,184,.07) calc(100% - 1px),rgba(148,163,184,.07) 100%)}
.detail-slot:hover{background:#f8faff}.dark .detail-slot{border-color:#292f39;background:linear-gradient(to bottom,transparent 0,transparent calc(100% - 1px),rgba(148,163,184,.055) calc(100% - 1px),rgba(148,163,184,.055) 100%)}.dark .detail-slot:hover{background:#1b2028}
.detail-events{position:relative;grid-row:2 / span 24;z-index:3;pointer-events:none;margin-left:0;height:calc(var(--rows,15) * var(--hh,54px));min-width:0;overflow:visible}
.detail-grid.single .detail-events{margin-left:0}
.detail-event{position:absolute;left:7px;right:7px;min-height:30px;padding:7px 9px;text-align:left;border:1px solid #c7c9f5;border-left:4px solid #6366f1;border-radius:8px;background:rgba(240,239,255,.92);color:#3730a3;box-shadow:0 2px 7px rgba(71,63,197,.08);overflow:hidden;cursor:pointer;display:flex;flex-direction:column;gap:3px;z-index:5;pointer-events:auto;transition:transform .12s ease,box-shadow .12s ease}
.detail-event:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(71,63,197,.14);backdrop-filter:blur(2px)}
.dark .detail-event{border-color:#514b76;border-left-color:#a78bfa;background:rgba(41,37,63,.92);color:#eeeaff;box-shadow:0 3px 10px rgba(0,0,0,.2)}
.detail-event-time{font-size:8px;font-weight:800;opacity:.72;white-space:nowrap}.detail-event strong{font-size:12px;font-weight:900;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-event small{font-size:8px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.calendar-detail{margin:8px}.detail-summary{padding:11px 12px}.detail-hint{display:none}.detail-scroll{overflow:auto;max-height:calc(100vh - 150px)}.detail-grid{grid-template-columns:48px repeat(var(--day-count),minmax(130px,1fr));min-width:960px}.detail-grid.single{min-width:570px}}

/* Correction overlay semaine/jour : chaque colonne possède sa propre couche d'événements */
.detail-events.today{z-index:4}
.detail-event-time{font-size:11px;font-weight:800;opacity:.78;white-space:nowrap;line-height:1.2;font-variant-numeric:tabular-nums}
.detail-event strong{font-size:13px;font-weight:900;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-event small{font-size:11px;opacity:.76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){.detail-event{left:5px;right:5px;padding:6px 7px}.detail-event strong{font-size:12px}}

/* Grille persistante : les rangées et colonnes restent perceptibles même sous les événements */
.detail-grid{
  background-color:#fff;
  background-image:linear-gradient(to bottom,rgba(148,163,184,.13) 1px,transparent 1px);
  background-size:100% var(--hh,54px);
}
.dark .detail-grid{
  background-color:#15181e;
  background-image:linear-gradient(to bottom,rgba(148,163,184,.12) 1px,transparent 1px);
}
.detail-slot{background:transparent !important}
.detail-event{backdrop-filter:blur(2px)}
.dark .detail-event{backdrop-filter:blur(2px)}

/* Grille agenda — lignes et colonnes toujours visibles, événements en surimpression */
.calendar-detail .detail-grid {
  background-image: none;
}

.calendar-detail .detail-slot {
  position: relative;
  z-index: 1;
  border-right: 1px solid #dfe5ec !important;
  border-bottom: 1px solid #dfe5ec !important;
  background: transparent !important;
}

.calendar-detail .detail-events {
  position: relative;
  z-index: 2;
  height: calc(var(--rows,15) * var(--hh,54px));
  border-right: 1px solid #dfe5ec;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--hh,54px) - 1px),
    rgba(148,163,184,.18) calc(var(--hh,54px) - 1px),
    rgba(148,163,184,.18) var(--hh,54px)
  );
  background-size: 100% var(--hh,54px);
  pointer-events: none;
}

.calendar-detail .detail-events:first-of-type {
  border-left: 1px solid #dfe5ec;
}

.calendar-detail .detail-event {
  z-index: 4;
  background: rgba(240,239,255,.86);
  border-color: #b9b9ec;
  box-shadow: 0 2px 8px rgba(71,63,197,.10);
}

.dark .calendar-detail .detail-slot {
  border-right-color: #343b47 !important;
  border-bottom-color: #343b47 !important;
}

.dark .calendar-detail .detail-events {
  border-right-color: #343b47;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--hh,54px) - 1px),
    rgba(148,163,184,.16) calc(var(--hh,54px) - 1px),
    rgba(148,163,184,.16) var(--hh,54px)
  );
}

.dark .calendar-detail .detail-events:first-of-type {
  border-left-color: #343b47;
}

.dark .calendar-detail .detail-event {
  background: rgba(41,37,63,.84);
  border-color: #5b557e;
}

/* La vue Jour garde exactement la même grille horaire, avec une seule colonne */
.calendar-detail .detail-grid.single .detail-events {
  border-left: 1px solid #dfe5ec;
  border-right: 1px solid #dfe5ec;
}

.dark .calendar-detail .detail-grid.single .detail-events {
  border-left-color: #343b47;
  border-right-color: #343b47;
}

/* Rendez-vous issus de la page publique : visibles dans toutes les vues. */
.detail-event.booking{border-left-color:#ec4899;background:rgba(253,242,248,.96);border-color:#f9a8d4;color:#9d174d}
.dark .detail-event.booking{border-left-color:#f472b6;background:rgba(80,20,55,.38);border-color:#9d174d;color:#fce7f3}
.detail-event.booking small{color:inherit;font-weight:800}
.planning-event{width:100%;border:1px solid #f9a8d4;border-left:4px solid #ec4899;border-radius:8px;background:#fff1f7;color:#9d174d;padding:8px 9px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:3px;margin-bottom:7px}
.planning-event span{font-size:8px;font-weight:800;opacity:.75}.planning-event strong{font-size:12px;font-weight:900;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.planning-event small{font-size:8px;font-weight:800;opacity:.78}
.dark .planning-event{border-color:#155e75;border-left-color:#38bdf8;background:#0c3043;color:#e0f2fe}
/* Vue Année — aperçu annuel professionnel */
.year-view{margin:8px;display:flex;flex-direction:column;gap:12px;min-height:0}
.year-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid #e5e9ef;border-radius:12px;background:#fff}
.year-head>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.year-head strong{font-size:21px;color:#202938}.year-head small{font-size:13px;color:#8b95a3}.year-head .eyebrow{font-size:11px;font-weight:900;letter-spacing:.08em;color:#6366f1}.dark .year-head{background:#191d24;border-color:#303642}.dark .year-head strong{color:#f3f4f6}.dark .year-head small{color:#8b95a3}
.year-legend{display:flex;gap:14px;font-size:12px;color:#778191}.year-legend span{display:flex;align-items:center;gap:6px}.year-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#a78bfa}.year-dot.reservation{background:rgba(236,72,153,.68)}.year-dot.today{box-shadow:0 0 0 3px rgba(99,102,241,.15)}
.year-grid{display:grid;grid-template-columns:repeat(3,minmax(230px,1fr));gap:10px;overflow:auto;padding-bottom:4px}
.year-month{border:1px solid #e3e7ed;border-radius:11px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(15,23,42,.03)}.dark .year-month{background:#191d24;border-color:#303642}
.year-month-title{width:100%;border:0;border-bottom:1px solid #e8ebf0;background:#fafbfc;padding:10px 11px;text-align:left;font-size:14px;font-weight:900;color:#303847;cursor:pointer}.year-month-title span{font-size:12px;color:#9aa3b1;font-weight:700;margin-left:4px}.year-month-title:hover{color:#473FC5}.dark .year-month-title{background:#1d2129;border-color:#303642;color:#eef0f4}.dark .year-month-title span{color:#7f8a9a}
.year-weekdays,.year-days{display:grid;grid-template-columns:repeat(7,1fr)}.year-weekdays{border-bottom:1px solid #e7ebf0}.dark .year-weekdays{border-color:#303642}.year-weekdays span{text-align:center;padding:6px 0 5px;font-size:8px;font-weight:900;color:#98a2b1;text-transform:uppercase;border-right:1px solid #edf0f4}.year-weekdays span:last-child{border-right:0}.dark .year-weekdays span{border-color:#303642;color:#7f8a9a}
.year-day{position:relative;min-height:29px;border:0;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4;background:transparent;color:#46505f;font-size:11px;font-weight:700;text-align:center;cursor:pointer}.year-day:nth-child(7n){border-right:0}.dark .year-day{border-color:#303642;color:#cbd1db}.year-day:hover{background:#f5f6ff;color:#473FC5}.dark .year-day:hover{background:#242938}.year-day.muted{color:#c5cad2}.dark .year-day.muted{color:#555e6c}.year-day.today{background:#f0efff;color:#473FC5;font-weight:900}.dark .year-day.today{background:#2a2540;color:#b7aaff}.year-day span{display:inline-block;line-height:29px}.year-day em{position:absolute;right:3px;top:3px;min-width:12px;height:12px;padding:0 3px;border-radius:6px;background:#8b5cf6;color:#fff;font-size:7px;font-style:normal;line-height:12px}.dark .year-day em{background:#a78bfa;color:#17131f}
@media(max-width:1050px){.year-grid{grid-template-columns:repeat(2,minmax(230px,1fr))}}@media(max-width:700px){.year-grid{grid-template-columns:1fr}.year-head{padding:12px}.year-legend{display:none}}

/* Vue année compacte : les 12 mois restent visibles sans défilement sur desktop */
.year-view{height:calc(100vh - 54px - 64px - 16px);margin:8px;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.year-head{padding:8px 12px;min-height:48px;flex:0 0 auto}
.year-head strong{font-size:18px}.year-head small{font-size:12px}
.year-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;overflow:hidden;padding:0}
.year-month{min-height:0;border-radius:8px;box-shadow:none}
.year-month-title{padding:6px 8px;font-size:12px;line-height:14px}
.year-month-title span{font-size:8px}
.year-weekdays span{padding:3px 0;font-size:7px}
.year-day{min-height:0;height:20px;font-size:8px;font-weight:700;line-height:20px}
.year-day span{line-height:20px}.year-day em{right:2px;top:2px;min-width:10px;height:10px;padding:0 2px;border-radius:5px;font-size:6px;line-height:10px}
.year-day.has{font-weight:800}.year-day.has span{text-decoration:underline;text-decoration-color:#8b5cf6;text-underline-offset:2px}
.year-day-modal{width:min(520px,calc(100vw - 30px))}.year-day-list{display:grid;gap:6px;max-height:min(52vh,420px);overflow:auto;padding:2px 1px 4px}.year-day-item{display:grid;grid-template-columns:78px 1fr auto;gap:10px;align-items:center;width:100%;text-align:left;border:1px solid #e2e7ee;background:#fafbfc;border-radius:8px;padding:9px 10px;color:#263142;cursor:pointer}.dark .year-day-item{background:#151a21;border-color:#303642;color:#e7ebf2}.year-day-item:hover{border-color:#8b5cf6}.year-day-item.slot{cursor:default}.year-day-item.event{border-left:3px solid #8b5cf6}.year-day-item.slot{border-left:3px solid #22c55e}.year-item-time{font-size:12px;font-weight:900;color:#667085}.dark .year-item-time{color:#aeb7c5}.year-item-main{min-width:0;display:flex;flex-direction:column;gap:2px}.year-item-main strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.year-item-main small{font-size:11px;color:#7b8492}.year-item-badge{font-size:8px;font-weight:900;padding:4px 6px;border-radius:999px;background:#eee9ff;color:#6941c6}.year-day-item.slot .year-item-badge{background:#e7f8ee;color:#16834b}.year-day-item.event.booking .year-item-badge{background:rgba(236,72,153,.13);color:#be185d}.dark .year-day-item.event.booking .year-item-badge{background:rgba(236,72,153,.16);color:#f9a8d4}.dark .year-item-badge{background:#30284c;color:#c4b5fd}.dark .year-day-item.slot .year-item-badge{background:#173326;color:#72d99d}
@media(max-width:1100px){.year-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));overflow:auto}.year-view{height:auto;overflow:visible}}
@media(max-width:700px){.year-grid{grid-template-columns:1fr;grid-template-rows:none}.year-view{height:auto}.year-head{padding:8px}.year-legend{display:none}}

/* Jours fériés et journées internationales */
.year-country{display:flex;align-items:center;margin-left:auto;margin-right:12px}
.year-country label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:900;color:#687385;text-transform:uppercase;letter-spacing:.03em}
.year-country select{min-width:180px;border:1px solid #dfe4eb;border-radius:7px;background:#fff;color:#273244;padding:6px 8px;font-size:12px;font-weight:700;outline:none}
.year-country select:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.10)}
.dark .year-country label{color:#8993a3}.dark .year-country select{background:#151a21;border-color:#303642;color:#e7ebf2}
.year-dot.holiday{background:#ef4444}.year-dot.observance{background:#f59e0b}
.year-day.holiday{box-shadow:inset 0 -2px 0 #ef4444}.year-day.observance{box-shadow:inset 0 -2px 0 #f59e0b}
.year-day.holiday span,.year-day.observance span{font-weight:900}
.year-day.holiday em{background:#ef4444}.year-day.observance em{background:#f59e0b}
.dark .year-day.holiday{box-shadow:inset 0 -2px 0 #f87171}.dark .year-day.observance{box-shadow:inset 0 -2px 0 #fbbf24}
.calendar-holiday{display:block;width:calc(100% - 6px);margin:1px 3px;padding:2px 4px;border:0;border-radius:4px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff1f2;color:#be123c;font-size:8px;font-weight:800;cursor:pointer}
.day.observance .calendar-holiday{background:#fffbeb;color:#b45309}
.dark .calendar-holiday{background:#3a1f26;color:#fda4af}.dark .day.observance .calendar-holiday{background:#3b2b13;color:#fcd34d}
.year-day-item.holiday{border-left:3px solid #ef4444;cursor:default}.year-day-item.observance{border-left:3px solid #f59e0b;cursor:default}
.year-day-item.holiday .year-item-badge{background:#fee2e2;color:#b91c1c}.year-day-item.observance .year-item-badge{background:#fef3c7;color:#b45309}
.dark .year-day-item.holiday .year-item-badge{background:#422126;color:#fca5a5}.dark .year-day-item.observance .year-item-badge{background:#45330f;color:#fcd34d}
@media(max-width:1050px){.year-country{margin-left:0}.year-head{gap:8px}.year-country select{min-width:155px}}
@media(max-width:700px){.year-country label{display:block}.year-country select{min-width:145px;max-width:145px}.year-head{flex-wrap:wrap}.year-legend{width:100%}}

/* Contrôles d'affichage des jours fériés */
.holiday-toggles{display:flex;align-items:center;gap:0;margin-left:12px;flex-wrap:wrap}
.holiday-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid #e1e6ed;border-radius:999px;background:#fff;color:#344054;padding:6px 9px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap;transition:.15s ease}
.holiday-toggle i{width:8px;height:8px;border-radius:50%;display:inline-block;background:#ef4444}
.holiday-toggle.international i{background:#f5c542}
.holiday-toggle.off{opacity:.58;background:#f7f8fa}
.holiday-toggle:hover{border-color:#a78bfa;transform:translateY(-1px)}
.dark .holiday-toggle{background:#151a21;border-color:#303642;color:#e7ebf2}
.dark .holiday-toggle.off{background:#11151b}
.dark .holiday-toggle.international i{background:#f5c542}
@media(max-width:1050px){.holiday-toggles{width:100%;margin-left:0}.year-head{flex-wrap:wrap}}

/* Holiday / international observance controls: explicit category colors */
.holiday-toggle.international{margin-left:10px;margin-right:10px}
.holiday-toggle.international i{background:#f5c542 !important}
.holiday-toggle.national i{background:#ef4444 !important}
.calendar-holiday.holiday{background:#fff1f2;color:#be123c}
.calendar-holiday.observance{background:#fffbeb;color:#b45309}

/* Disponibilité dans les vues Mois / Semaine / Jour : les créneaux restent sous les événements. */
.calendar-slot{display:flex;align-items:center;gap:4px;width:100%;margin-top:3px;padding:4px 6px;border:0;border-left:3px solid #16a34a;border-radius:4px;background:#effcf5;color:#166534;text-align:left;overflow:hidden;font-size:11px;font-weight:400;cursor:pointer}
.calendar-slot:hover{background:#e2f8ed}.dark .calendar-slot{border-left-color:#4ade80;background:#173126;color:#b7f3cd}.dark .calendar-slot:hover{background:#1c3d2e}
.day-more{display:block;width:calc(100% - 6px);margin:2px 3px;padding:2px 4px;border:0;background:transparent;color:#6366f1;text-align:left;font-size:8px;font-weight:900;cursor:pointer}.dark .day-more{color:#a78bfa}
.detail-slot-item{position:absolute;left:9px;right:9px;min-height:28px;padding:6px 8px;text-align:left;border:1px dashed #8ac9ae;border-left:3px solid #22c55e;border-radius:7px;background:rgba(236,253,245,.9);color:#166534;box-shadow:none;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;gap:2px;z-index:1;pointer-events:auto}
.detail-slot-item:hover{background:#dcfce7}.detail-slot-item span{font-size:8px;font-weight:800;opacity:.75}.detail-slot-item strong{font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark .detail-slot-item{border-color:#356c58;border-left-color:#4ade80;background:rgba(20,55,41,.9);color:#b7f3cd}.dark .detail-slot-item:hover{background:#1a4934}
.calendar-detail .detail-events .detail-slot-item{z-index:1}.calendar-detail .detail-events .detail-event{z-index:8;opacity:.97}
.year-day-item.slot{cursor:pointer}

/* Page publique de réservation — identité Zeshel Calendar */
.public-booking-page{min-height:100vh;background:radial-gradient(circle at 20% 0%,rgba(99,102,241,.08),transparent 34%),#f5f7fb;color:#18212f;display:flex;justify-content:center;padding:0 22px}.dark .public-booking-page{background:radial-gradient(circle at 20% 0%,rgba(129,110,255,.14),transparent 34%),#0e1117;color:#eef2f7}.booking-shell{width:min(1040px,100%);padding:28px 0 22px}.booking-top{height:48px;display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.booking-brand{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:900;letter-spacing:-.02em}.booking-logo{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#473FC5;color:#fff;font-weight:950;box-shadow:0 5px 15px rgba(71,63,197,.2)}.booking-secure{font-size:12px;font-weight:800;color:#7b8492}.booking-card{border:1px solid #e0e5ed;border-radius:18px;background:#fff;box-shadow:0 18px 55px rgba(15,23,42,.08);overflow:hidden}.dark .booking-card{background:#15191f;border-color:#303642;box-shadow:0 20px 60px rgba(0,0,0,.28)}.booking-flow{display:grid;grid-template-columns:minmax(350px,1.05fr) minmax(340px,.95fr);min-height:520px}.booking-intro{padding:38px 38px 28px;border-bottom:1px solid #edf0f4;background:linear-gradient(135deg,#fff,#f9f9ff)}.dark .booking-intro{background:linear-gradient(135deg,#171b22,#151820);border-color:#303642}.booking-avatar{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#EEEDFB;color:#473FC5;font-size:16px;font-weight:950;margin-bottom:20px}.dark .booking-avatar{background:#302b4e;color:#c4b5fd}.booking-kicker{text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:900;color:#6366f1}.booking-intro h1{font-size:28px;line-height:1.15;margin:8px 0 11px;letter-spacing:-.035em}.booking-intro p{max-width:610px;font-size:14px;line-height:1.65;color:#64748b;margin:0 0 16px}.dark .booking-intro p{color:#aeb7c5}.booking-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;font-weight:800;color:#697586}.dark .booking-meta{color:#aeb7c5}.booking-calendar-pane{padding:25px 28px 30px;border-right:1px solid #e8ecf1}.dark .booking-calendar-pane{border-color:#303642}.booking-pane-head{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;gap:8px;margin-bottom:18px}.booking-pane-head button{height:32px;border:1px solid #e0e5ed;border-radius:8px;background:#fff;color:#4b5563;font-size:20px;cursor:pointer}.dark .booking-pane-head button{background:#1a1f27;border-color:#343b47;color:#dbe3ef}.booking-pane-head strong{text-align:center;font-size:14.5px;text-transform:capitalize}.booking-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:22px}.booking-days button{min-width:0;border:1px solid transparent;background:transparent;border-radius:10px;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#7b8492;cursor:pointer}.booking-days button:hover{background:#f4f5ff}.dark .booking-days button:hover{background:#24222f}.booking-days button.selected{background:#EEEDFB;color:#473FC5;border-color:#dcd8ff}.dark .booking-days button.selected{background:#302b4e;color:#c4b5fd;border-color:#514b76}.booking-days span{font-size:8px;font-weight:900;text-transform:uppercase}.booking-days strong{font-size:16px}.booking-days button.empty{opacity:.45}.booking-slot-title{font-size:12px;font-weight:900;margin-bottom:10px;color:#475569}.dark .booking-slot-title{color:#dbe3ef}.booking-slots{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;max-height:315px;overflow:auto;padding:1px}.booking-slots button{height:39px;border:1px solid #dfe4ec;border-radius:9px;background:#fff;color:#3730a3;font-size:13px;font-weight:900;cursor:pointer}.booking-slots button:hover{border-color:#a5a0ef;background:#f7f6ff}.booking-slots button.selected{background:#473FC5;border-color:#473FC5;color:#fff;box-shadow:0 5px 14px rgba(71,63,197,.2)}.dark .booking-slots button{background:#191e26;border-color:#343b47;color:#c4b5fd}.dark .booking-slots button:hover{background:#28253a;border-color:#514b76}.dark .booking-slots button.selected{background:#635bdf;border-color:#635bdf;color:#fff}.booking-empty{grid-column:1/-1;border:1px dashed #d9dee7;border-radius:10px;padding:22px;text-align:center;color:#8a94a3;font-size:12px}.dark .booking-empty{border-color:#343b47;color:#8f9aaa}.booking-form-pane{padding:30px 30px 28px;display:flex;flex-direction:column}.selected-booking{padding:14px 15px;border:1px solid #dedaff;background:#f7f6ff;border-radius:11px;margin-bottom:24px;display:flex;flex-direction:column;gap:4px}.dark .selected-booking{background:#27243a;border-color:#514b76}.selected-booking span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#7770d7}.selected-booking strong{font-size:14px;text-transform:capitalize}.selected-booking b{font-size:13px;color:#473FC5}.dark .selected-booking b{color:#c4b5fd}.form-placeholder{min-height:106px;border:1px dashed #dce1e8;border-radius:11px;padding:17px;margin-bottom:24px;display:flex;flex-direction:column;justify-content:center}.dark .form-placeholder{border-color:#343b47}.form-placeholder span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#8a94a3}.form-placeholder strong{font-size:14.5px;margin-top:4px}.form-placeholder p{font-size:11px;color:#8a94a3;line-height:1.5;margin:6px 0 0}.booking-fields{margin-top:auto;display:flex;flex-direction:column;gap:11px}.booking-fields label{font-size:11px;font-weight:900;color:#475569}.dark .booking-fields label{color:#cbd5e1}.booking-fields input{display:block;width:100%;height:40px;margin-top:5px;padding:0 11px;border:1px solid #dce2e9;border-radius:8px;background:#fff;color:#1f2937;outline:0;font-size:13px}.booking-fields input:focus{border-color:#7770d7;box-shadow:0 0 0 3px rgba(99,102,241,.08)}.dark .booking-fields input{background:#11151b;border-color:#343b47;color:#eef2f7}.booking-primary{height:42px;border:0;border-radius:9px;background:#473FC5;color:#fff;font-size:13px;font-weight:900;cursor:pointer;margin-top:4px}.booking-primary:hover:not(:disabled){background:#4338ca}.booking-primary:disabled{opacity:.45;cursor:not-allowed}.booking-inline-error{padding:9px 10px;border-radius:8px;background:#fff1f2;color:#be123c;font-size:11px;font-weight:800}.dark .booking-inline-error{background:#351c25;color:#fda4af}.booking-success{padding:70px 30px 75px;text-align:center}.success-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#e7f8ef;color:#15803d;font-size:25px;font-weight:950}.dark .success-icon{background:#173528;color:#86efac}.booking-success h2{font-size:21px;margin:0 0 8px}.booking-success p{max-width:480px;margin:0 auto 20px;color:#64748b;font-size:13px;line-height:1.6}.dark .booking-success p{color:#aeb7c5}.success-detail{display:flex;flex-direction:column;gap:5px;width:min(420px,100%);margin:0 auto 24px;padding:14px;border:1px solid #e2e6ed;border-radius:10px;background:#fafbfc}.dark .success-detail{background:#191e26;border-color:#343b47}.success-detail strong{font-size:13px}.success-detail span{font-size:12px;color:#64748b;text-transform:capitalize}.booking-footer{text-align:center;padding:16px 0;color:#8a94a3;font-size:11px}.public-loading,.public-error{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:13px;color:#7b8492}.public-error h1{font-size:20px;color:inherit;margin:6px 0 0}.public-error p{margin:0}.booking-manager-modal{width:min(640px,100%)}
.dark .booking-manager-modal .availability-note{color:#aeb7c5}
@media(max-width:760px){.public-booking-page{padding:0 10px}.booking-shell{padding-top:14px}.booking-top{margin-bottom:12px}.booking-flow{grid-template-columns:1fr}.booking-calendar-pane{border-right:0;border-bottom:1px solid #e8ecf1}.dark .booking-calendar-pane{border-color:#303642}.booking-intro{padding:25px 22px}.booking-intro h1{font-size:23px}.booking-calendar-pane,.booking-form-pane{padding:22px}.booking-days{gap:2px}.booking-slots{max-height:260px}}
.booking-logo-img{width:30px;height:30px;object-fit:contain;display:block}
.dark .booking-logo-img{filter:none}
.booking-days{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}
.booking-days button.empty{display:none}

.booking-top-actions{display:flex;align-items:center;gap:10px}.booking-theme{width:34px;height:34px;border:1px solid #dfe4ec;border-radius:9px;background:#fff;color:#475569;display:grid;place-items:center;cursor:pointer}.booking-theme svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.booking-theme:hover{background:#f5f6fa}.dark .booking-theme{background:#191e26;border-color:#343b47;color:#dbe3ef}.dark .booking-theme:hover{background:#242a33}

.booking-host-label{color:#475569!important}.dark .booking-host-label{color:#cbd5e1!important}.event.booking{border-left-color:#0f766e;background:#e6fffb;color:#0f766e}.dark .event.booking{border-left-color:#2dd4bf;background:#123331;color:#99f6e4}.weekevent.booking{border-left-color:#0f766e;background:#e6fffb;color:#0f766e}.dark .weekevent.booking{border-left-color:#2dd4bf;background:#123331;color:#99f6e4}.year-day-item.event.booking{border-left-color:#0f766e}.dark .year-day-item.event.booking{border-left-color:#2dd4bf}

/* Réservations : conserver exactement le même composant que les autres événements dans les listes de détail.
   Seuls les accents de couleur changent pour identifier une réservation. */
.year-day-item.event.booking {
  border-left-color: rgba(219, 39, 119, .72) !important;
  background: #fafbfc !important;
  border-color: #e2e7ee !important;
  color: #263142 !important;
}
.year-day-item.event.booking:hover {
  background: #fafbfc !important;
  border-color: rgba(236, 72, 153, .58) !important;
  border-left-color: rgba(219, 39, 119, .85) !important;
}
.dark .year-day-item.event.booking {
  border-left-color: rgba(244, 114, 182, .72) !important;
  background: #151a21 !important;
  border-color: #303642 !important;
  color: #e7ebf2 !important;
}
.dark .year-day-item.event.booking:hover {
  background: #151a21 !important;
  border-color: rgba(244, 114, 182, .55) !important;
  border-left-color: rgba(244, 114, 182, .85) !important;
}

/* Réservations dans les cartes du calendrier : même transparence que les autres catégories. */
.event.booking,
.weekevent.booking,
.detail-event.booking,
.planning-event.booking {
  border-color: rgba(236, 72, 153, .42) !important;
  border-left-color: rgba(219, 39, 119, .72) !important;
  background: rgba(236, 72, 153, .13) !important;
  color: #be185d !important;
}
.event.booking:hover,
.weekevent.booking:hover,
.detail-event.booking:hover {
  background: rgba(236, 72, 153, .19) !important;
  border-color: rgba(236, 72, 153, .58) !important;
}
.dark .event.booking,
.dark .weekevent.booking,
.dark .detail-event.booking,
.dark .planning-event.booking {
  border-color: rgba(244, 114, 182, .38) !important;
  border-left-color: rgba(244, 114, 182, .70) !important;
  background: rgba(236, 72, 153, .16) !important;
  color: #f9a8d4 !important;
}
.dark .event.booking:hover,
.dark .weekevent.booking:hover,
.dark .detail-event.booking:hover {
  background: rgba(236, 72, 153, .23) !important;
  border-color: rgba(244, 114, 182, .55) !important;
}

/* Dans le Planning, une réservation est volontairement discrète : elle signale un horaire déjà pris sans dominer les disponibilités. */
.planning-event.booking {
  opacity: .58;
}
.planning-event.booking:hover {
  opacity: .78;
}
.dark .planning-event.booking {
  opacity: .55;
}
.dark .planning-event.booking:hover {
  opacity: .74;
}

/* Planning : les cartes d'événements reprennent exactement le gabarit des créneaux. */
.planning-event,
.planning-slot {
  box-sizing: border-box;
  width: calc(100% - 14px) !important;
  min-height: 62px;
  margin: 8px 7px 0 !important;
  padding: 8px 28px 8px 9px !important;
  border-radius: 7px;
}

.planning-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
}

.planning-event span,
.planning-slot span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.planning-event strong,
.planning-slot strong {
  display: block;
  margin-top: 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  color: inherit !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planning-event small,
.planning-slot small {
  margin-top: 0;
  font-size: 9px;
  line-height: 1.2;
  color: inherit !important;
  opacity: .82;
}

.planning-event + .planning-slot,
.planning-slot + .planning-event,
.planning-event + .planning-event,
.planning-slot + .planning-slot {
  margin-top: 8px !important;
}

/* Réservations — barre d'identification à gauche dans les listes de détail.
   Elle reprend exactement l'épaisseur et la place de la barre violette des événements classiques,
   mais avec l'identité rose de la réservation. */
.year-day-item.event.booking {
  border-left: 3px solid rgba(219, 39, 119, .72) !important;
}
.year-day-item.event.booking:hover {
  border-left: 3px solid rgba(219, 39, 119, .85) !important;
}
.dark .year-day-item.event.booking {
  border-left: 3px solid rgba(244, 114, 182, .72) !important;
}
.dark .year-day-item.event.booking:hover {
  border-left: 3px solid rgba(244, 114, 182, .85) !important;
}

/* Vue détail Mois/Année : au survol, chaque élément reprend uniquement sa couleur d'origine. */
.year-day-item.event:hover { border-color:#8b5cf6; }
.year-day-item.slot:hover { border-color:#22c55e; }
.year-day-item.holiday:hover { border-color:#ef4444; }
.year-day-item.observance:hover { border-color:#f59e0b; }
.dark .year-day-item.event:hover { border-color:#8b5cf6; }
.dark .year-day-item.slot:hover { border-color:#22c55e; }
.dark .year-day-item.holiday:hover { border-color:#ef4444; }
.dark .year-day-item.observance:hover { border-color:#f59e0b; }
/* Une réservation conserve son rose au survol. */
.year-day-item.event.booking:hover { border-color:rgba(236,72,153,.58) !important; }
.dark .year-day-item.event.booking:hover { border-color:rgba(244,114,182,.55) !important; }

.reminders-field{margin-top:4px;padding:10px 11px;border:1px solid #e3e7ed;border-radius:8px;background:#fafbfc}.dark .reminders-field{border-color:#303642;background:#1a1e26}.reminders-field>strong{display:block;font-size:13px;font-weight:800;color:#334155;margin-bottom:8px}.dark .reminders-field>strong{color:#dbe3ef}.reminder-options{display:flex;flex-wrap:wrap;gap:8px 16px}.reminder-selected{margin-top:8px;font-size:13px;font-weight:700;color:#475569}.reminder-selected.empty{font-weight:500;color:#94a3b8}.dark .reminder-selected{color:#cbd5e1}.dark .reminder-selected.empty{color:#64748b}.event .reminder-dot{float:right;margin-left:4px;white-space:nowrap}

/* ===== Planning : couleurs (thèmes clair + sombre) =====
   vert = créneau disponible · orange = réservé par moi · jaune = réservé par un autre membre
   violet = événement (par défaut ou créé par un membre) · rose = réservation (page publique) */
.planning-event,.planning-slot{cursor:pointer}

/* Événements : violet */
.planning-event:not(.booking){border:1px solid rgba(124,58,237,.35) !important;border-left:3px solid #7c3aed !important;background:#f5f3ff !important;color:#5b21b6 !important}
.planning-event:not(.booking):hover{background:#ede9fe !important}
.dark .planning-event:not(.booking){border:1px solid rgba(167,139,250,.4) !important;border-left:3px solid #a78bfa !important;background:#2a2050 !important;color:#ddd6fe !important}
.dark .planning-event:not(.booking):hover{background:#352a63 !important}

/* Réservation (page publique) : rose */
.planning-event.booking{border-left-width:3px !important}

/* Créneau disponible : vert */
.planning-slot.available{border:1px solid rgba(22,163,74,.35) !important;border-left:3px solid #16a34a !important;background:#f0fdf4 !important;color:#166534 !important}
.planning-slot.available:hover{background:#dcfce7 !important}
.dark .planning-slot.available{border:1px solid rgba(74,222,128,.35) !important;border-left:3px solid #4ade80 !important;background:#12301d !important;color:#bbf7d0 !important}
.dark .planning-slot.available:hover{background:#184026 !important}

/* Réservé par moi : orange */
.planning-slot.mine{border:1px solid rgba(249,115,22,.4) !important;border-left:3px solid #f97316 !important;background:#fff7ed !important;color:#9a3412 !important}
.planning-slot.mine:hover{background:#ffedd5 !important}
.dark .planning-slot.mine{border:1px solid rgba(251,146,60,.4) !important;border-left:3px solid #fb923c !important;background:#3b2415 !important;color:#ffedd5 !important}
.dark .planning-slot.mine:hover{background:#4a2815 !important}

/* Réservé par un autre membre : jaune */
.planning-slot.booked{border:1px solid rgba(202,138,4,.4) !important;border-left:3px solid #eab308 !important;background:#fefce8 !important;color:#854d0e !important}
.planning-slot.booked:hover{background:#fef9c3 !important}
.dark .planning-slot.booked{border:1px solid rgba(250,204,21,.4) !important;border-left:3px solid #facc15 !important;background:#3a3210 !important;color:#fef08a !important}
.dark .planning-slot.booked:hover{background:#4a4014 !important}

/* Passé : toujours cliquable (consultation), simplement plus proposé à la réservation */
.planning-slot.past,.planning-event.past{opacity:.7}
.planning-slot.expired{border:1px solid #e2e8f0 !important;border-left:3px solid #94a3b8 !important;background:#f1f5f9 !important;color:#64748b !important}
.dark .planning-slot.expired{border:1px solid #303642 !important;border-left:3px solid #64748b !important;background:#1c2028 !important;color:#94a3b8 !important}

/* Vues Jour / Semaine : aucune barre de défilement interne, la grille s'adapte à la hauteur disponible */
.detail-grid{overflow:visible}
.detail-time{line-height:1}

/* Défilement à la molette / au trackpad, sans barre de défilement visible */
.detail-scroll::-webkit-scrollbar{display:none;width:0;height:0}

/* Navbar : nom de l'application à côté du bouton de réduction de la sidebar */
.top-left{display:flex;align-items:center;gap:10px;min-width:0}
.top-brand{font-size:16px;font-weight:900;letter-spacing:-.2px;color:#111827;white-space:nowrap;user-select:none}
.dark .top-brand{color:#f3f4f6}
@media(max-width:760px){.top-left{display:flex}.top-brand{font-size:15px}}

/* Vue Mois : la grille occupe toute la hauteur disponible, 7 colonnes égales, 6 lignes égales */
.content{display:flex;flex-direction:column}
.content>*{flex-shrink:0}
.content>.calendar{flex:1 1 0;min-height:440px;margin:12px 18px 16px;display:flex;flex-direction:column;border-radius:12px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.weekdays,.monthgrid{grid-template-columns:repeat(7,minmax(0,1fr))}
.weekday{padding:9px 0;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.monthgrid{flex:1;min-height:0;grid-template-rows:repeat(6,minmax(0,1fr))}
.monthgrid .day{min-height:0;overflow:hidden;padding:5px 6px;display:flex;flex-direction:column}
.monthgrid .day .num{flex:0 0 auto}
.monthgrid .event{font-size:12px;padding:3px 6px;margin-top:2px;flex:0 0 auto}
.monthgrid .calendar-slot{font-size:12px;padding:3px 6px;margin-top:2px;flex:0 0 auto}
.monthgrid .day-more{flex:0 0 auto}
.monthgrid .day:nth-child(7n){border-right:0}
.monthgrid .day:nth-last-child(-n+7){border-bottom:0}
@media(max-width:760px){.content>.calendar{flex:none;min-height:0;margin:8px}.monthgrid{grid-template-rows:none}.monthgrid .day{min-height:88px}}

.year-view{height:calc(100vh - 58px - 64px - 16px)}
@media(max-width:760px){.year-view{height:auto}}

.top-logo{width:28px;height:28px;flex:0 0 28px;display:block;margin-right:-2px;user-select:none;-webkit-user-drag:none}

/* Liens légaux dans le menu du compte, sur une seule ligne sous Se déconnecter, chacun dans son coin */
.legal-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 4px}
.legal-row a{font-size:12.5px;color:#9aa0a6;text-decoration:none;white-space:nowrap}
.legal-row a:hover{text-decoration:underline;color:#5f6368}
.dark .legal-row a{color:#6b7078}
.dark .legal-row a:hover{color:#9aa0a6}

/* Puces "à venir" et rappel dans les chips du mois : le texte tronque, les pastilles restent visibles */
.chip-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;min-width:0}
.chip-badges{display:flex;align-items:center;gap:3px;flex:0 0 auto}
.upcoming-dot{font-size:7px;line-height:1;color:#22c55e}
.reminder-dot{font-size:11px;line-height:1;filter:grayscale(0)}
.public-dot{font-size:7px;line-height:1;color:#0ea5e9}

/* Résultats de recherche : liste déroulante précise, groupée par type, cliquable */
.search{position:relative}
.search.active{border-color:#473FC5;box-shadow:0 0 0 3px rgba(71,63,197,.12)}
.dark .search.active{border-color:#8ab4f8;box-shadow:0 0 0 3px rgba(138,180,248,.15)}
.search-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:420px;overflow-y:auto;background:#fff;border:1px solid #e3e7ed;border-radius:12px;box-shadow:0 14px 34px rgba(15,23,42,.14);padding:6px;z-index:40;text-align:left}
.dark .search-dropdown{background:#1a1e26;border-color:#303642;box-shadow:0 14px 34px rgba(0,0,0,.45)}
.search-group{padding:4px 0}
.search-group+.search-group{border-top:1px solid #eef1f5;margin-top:2px;padding-top:6px}
.dark .search-group+.search-group{border-color:#2a2f38}
.search-group-label{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9aa4b2;padding:5px 10px 3px}
.dark .search-group-label{color:#6b7280}
.search-result{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:8px 10px;border:0;background:transparent;border-radius:8px;cursor:pointer;color:#1f2937}
.search-result:hover{background:#f1f4f8}
.dark .search-result{color:#e5e7eb}
.dark .search-result:hover{background:#242a33}
.search-result-text{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.search-result-text strong{font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-result-text small{font-size:13px;color:#8a93a3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.search-dot.event{background:#473FC5}
.search-dot.slot{background:#16a34a}
.search-dot.booking{background:#ec4899}
.search-result.booking-event .search-dot{background:#ec4899}
.search-empty{padding:16px 10px;font-size:14.5px;color:#8a93a3;text-align:center}
@media(max-width:760px){.search-dropdown{position:fixed;left:10px;right:10px;top:56px}}

/* v40 — thème clair aligné sur le logo (indigo #473FC5 / vert #27B86B / gris #F4F5F8 #D9DDE6), avec des surfaces étagées :
   page tintée < barre latérale < cartes blanches. */
:root:not(.dark){--zc-indigo:#473FC5;--zc-indigo-2:#6259DE;--zc-indigo-soft:#EEEDFB;--zc-indigo-softer:#F5F4FE;--zc-indigo-line:#D9D6F5;--zc-green:#168D50;--zc-green-2:#27B86B;--zc-green-soft:#E6F6EE;
 --zc-page:#EDEFF7;--zc-side:#F3F4FB;--zc-surface:#fff;--zc-surface-2:#F7F8FC;--zc-line:#DFE3EE;--zc-line-strong:#CDD2E4;--zc-ink:#1B1D3A;--zc-muted:#667085;
 --zc-shadow:0 1px 2px rgba(27,29,58,.05),0 10px 28px rgba(71,63,197,.07);color:var(--zc-ink);background:var(--zc-page)}
:root:not(.dark) body{background:var(--zc-page)}
:root:not(.dark) .app{background:var(--zc-page)}
:root:not(.dark) .topbar{background:linear-gradient(180deg,#fff,#FAFAFE);border-bottom-color:var(--zc-line);box-shadow:0 1px 0 rgba(71,63,197,.05),0 4px 14px rgba(27,29,58,.04)}
:root:not(.dark) .sidebar{background:var(--zc-side);border-right-color:var(--zc-line)}
:root:not(.dark) .content{background:var(--zc-page)}
:root:not(.dark) .toolbar{background:transparent;border-bottom:0}
:root:not(.dark) .toolbar h1{color:var(--zc-ink)}
:root:not(.dark) .monthlabel{color:var(--zc-indigo)}
:root:not(.dark) .top-brand,:root:not(.dark) .brand strong{color:#2B2790}
:root:not(.dark) .search{background:var(--zc-page);border:1px solid var(--zc-line)}
:root:not(.dark) .search:focus-within{background:#fff;border-color:var(--zc-indigo);box-shadow:0 0 0 3px rgba(71,63,197,.12)}
:root:not(.dark) .btn.primary,:root:not(.dark) .booking-primary{background:linear-gradient(135deg,var(--zc-indigo-2),var(--zc-indigo));border-color:var(--zc-indigo);color:#fff;box-shadow:0 4px 12px rgba(71,63,197,.24)}
:root:not(.dark) .btn.primary:hover,:root:not(.dark) .booking-primary:hover{background:linear-gradient(135deg,#5850d6,#3b34b0);color:#fff}
:root:not(.dark) .avatar,:root:not(.dark) .avatar-btn,:root:not(.dark) .profile-avatar,:root:not(.dark) .brand-mark{background:linear-gradient(135deg,var(--zc-indigo-2),var(--zc-indigo));color:#fff}
:root:not(.dark) .toast,:root:not(.dark) .demo{background:#2B2790;color:#fff}
/* navigation */
:root:not(.dark) .nav button{color:#4B5169}
:root:not(.dark) .nav button.active{background:var(--zc-indigo-soft);color:var(--zc-indigo)}
:root:not(.dark) .nav button:hover,:root:not(.dark) .icon:hover,:root:not(.dark) .icon-btn:hover{background:var(--zc-indigo-soft)}
:root:not(.dark) .icon-btn:hover{color:var(--zc-indigo)}
:root:not(.dark) .slot-nav{background:#fff;border-color:var(--zc-line);color:#4B5169}
:root:not(.dark) .slot-nav svg{color:#111827}
:root:not(.dark) .slot-nav:hover svg{color:var(--zc-indigo)}
:root:not(.dark) .new{background:#111827;border-color:#111827;color:#fff;box-shadow:0 4px 12px rgba(17,24,39,.2)}
:root:not(.dark) .new:hover{background:#1f2937}
:root:not(.dark) .slot-nav:hover{background:var(--zc-indigo-soft);border-color:var(--zc-indigo-line);color:var(--zc-indigo)}
:root:not(.dark) .btn{background:#fff;border-color:var(--zc-line-strong);color:#3B4160}
:root:not(.dark) .btn:hover{border-color:var(--zc-indigo-line);background:var(--zc-indigo-soft);color:var(--zc-indigo)}
:root:not(.dark) .btn.primary:hover{color:#fff}
:root:not(.dark) .view-toggle{background:#E4E7F3}
:root:not(.dark) .view-toggle button{color:#5B6280}
:root:not(.dark) .view-toggle button.active{background:#fff;color:var(--zc-indigo);box-shadow:0 1px 3px rgba(27,29,58,.14)}
:root:not(.dark) .view-toggle button:hover{color:var(--zc-indigo)}
/* grilles : cartes blanches posées sur la page tintée */
:root:not(.dark) .calendar,:root:not(.dark) .weekview{background:#fff;border:1px solid var(--zc-line);box-shadow:var(--zc-shadow)}
:root:not(.dark) .weekdays{background:linear-gradient(180deg,#F1F0FD,#EAE9FA);border-bottom-color:var(--zc-indigo-line)}
:root:not(.dark) .weekday{color:var(--zc-indigo);letter-spacing:.4px}
:root:not(.dark) .day,:root:not(.dark) .time,:root:not(.dark) .slot,:root:not(.dark) .dayhead{border-color:var(--zc-line)}
:root:not(.dark) .day:nth-child(7n),:root:not(.dark) .day:nth-child(7n-1){background:var(--zc-surface-2)}
:root:not(.dark) .day:hover{background:var(--zc-indigo-softer)}
:root:not(.dark) .day.muted{background:#F1F2F8;color:#A3A9BD}
:root:not(.dark) .day.today{background:var(--zc-indigo-softer);box-shadow:inset 0 0 0 1.5px var(--zc-indigo-line)}
:root:not(.dark) .day.today .num{background:var(--zc-indigo);color:#fff}
:root:not(.dark) .dayhead{background:#F7F7FD}
:root:not(.dark) .time{background:#FAFAFD;color:#8A90A6}
:root:not(.dark) .slot:hover{background:var(--zc-indigo-softer)}
:root:not(.dark) .event,:root:not(.dark) .weekevent{background:var(--zc-indigo-soft);border-left-color:var(--zc-indigo);color:#3A33A8}
:root:not(.dark) .modal{box-shadow:0 24px 70px rgba(27,29,58,.28)}
:root:not(.dark) .modal-back{background:rgba(27,29,58,.4)}
:root:not(.dark) .public-booking-page{background:radial-gradient(circle at 20% 0%,rgba(71,63,197,.10),transparent 34%),radial-gradient(circle at 100% 100%,rgba(39,184,107,.08),transparent 30%),var(--zc-page)}

/* v40 — écran de lancement (logo + chargement), comme Zeshel Mail. */
.boot-splash{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#F4F5F8;transition:opacity .25s ease}
.dark .boot-splash{background:#0e1116}
.boot-splash.out{opacity:0;pointer-events:none}
.boot-splash-mark{width:104px;height:104px;display:grid;place-items:center;animation:boot-pulse 1.4s ease-in-out infinite}
.boot-splash-mark img{width:96px;height:96px;object-fit:contain}
.boot-splash-name{font-size:15px;font-weight:800;color:#2B2790;letter-spacing:.2px}
.dark .boot-splash-name{color:#f3f4f6}
.boot-splash-text{font-size:11.5px;color:#667085}
.dark .boot-splash-text{color:#9ca3af}
.boot-splash-bar{width:180px;height:5px;border-radius:4px;background:#D9DDE6;overflow:hidden}
.dark .boot-splash-bar{background:#252a33}
.boot-splash-bar span{display:block;width:40%;height:100%;border-radius:4px;background:linear-gradient(90deg,#473FC5,#27B86B);animation:boot-slide 1.2s ease-in-out infinite}
@keyframes boot-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.08);opacity:.85}}
@keyframes boot-slide{0%{transform:translateX(-100%)}100%{transform:translateX(450%)}}

/* v42 — liens de la sidebar au style « Planning », bouton « Nouvel événement » plus compact, texte de la navbar en noir. */
:root:not(.dark) .nav button svg{color:#111827}
:root:not(.dark) .nav button:hover svg,:root:not(.dark) .nav button.active svg{color:var(--zc-indigo)}
:root:not(.dark) .top-brand,:root:not(.dark) .brand strong{color:#111827}
.sidebar:not(.collapsed) .new{height:32px;font-size:12.5px;gap:6px;margin-bottom:8px;border-radius:7px}
.sidebar:not(.collapsed) .new .plus{font-size:15px}
.sidebar .nav{margin-top:2px}

/* v42 — fenêtres : jamais collées en haut ni en bas ; les boutons gardent de l'air et restent visibles. */
.modal-back{padding:24px 16px}
.modal{max-height:calc(100vh - 48px)}
.common-modal{display:flex;flex-direction:column;max-height:calc(100vh - 48px);overflow-y:auto}
.common-modal .modal-head{flex:0 0 auto;padding:18px 18px 14px}
.common-modal .form{padding:14px 18px 4px}
.common-modal .common-results{margin:0 18px}
.common-modal .modal-actions{position:sticky;bottom:0;padding:14px 18px 20px;margin-top:8px;background:#fff;border-top:1px solid #E6E9F2}
.dark .common-modal .modal-actions{background:#1a1e26;border-top-color:#303642}

/* v43 — vue Mois façon Calendrier Apple : pastilles d'une ligne (barre de couleur, titre, heure), « N autres… », événements passés atténués. */
.monthgrid .day .event,.monthgrid .day .calendar-slot{display:flex;align-items:center;gap:6px;width:100%;height:19px;margin:2px 0 0;padding:0 6px 0 0;border:0!important;border-radius:5px;font-size:12px;font-weight:600;line-height:1;text-align:left;overflow:hidden;flex:0 0 auto;cursor:pointer;position:relative}
.monthgrid .day .event::before,.monthgrid .day .calendar-slot::before{content:"";flex:0 0 3px;align-self:stretch;margin:3px 0 3px 3px;border-radius:2px;background:var(--bar)}
.monthgrid .day .chip-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.monthgrid .day .chip-time{flex:0 0 auto;font-size:11px;font-weight:600;opacity:.72;font-variant-numeric:tabular-nums}
.monthgrid .day .event{--bar:#473FC5;background:#EEEDFB!important;color:#3A33A8!important}
.monthgrid .day .event:hover{background:#E3E1F9!important}
.monthgrid .day .event.booking{--bar:#DB2777;background:#FDEAF3!important;color:#9D174D!important}
.monthgrid .day .event.booking:hover{background:#FBDCEA!important}
.monthgrid .day .calendar-slot{--bar:#27B86B;background:#E6F6EE!important;color:#0F6B3C!important}
.monthgrid .day .calendar-slot:hover{background:#D8F0E3!important}
.monthgrid .day .event.past,.monthgrid .day .calendar-slot.past{opacity:.55}
.dark .monthgrid .day .event{--bar:#8b7cf6;background:rgba(139,124,246,.18)!important;color:#d8d3ff!important}
.dark .monthgrid .day .event.booking{--bar:#f472b6;background:rgba(244,114,182,.16)!important;color:#f9a8d4!important}
.dark .monthgrid .day .calendar-slot{--bar:#4ade80;background:rgba(74,222,128,.14)!important;color:#b7f3cd!important}
.monthgrid .day .day-more{width:100%;margin:2px 0 0;padding:0 4px;font-size:11.5px;font-weight:700;color:#667085}
.dark .monthgrid .day .day-more{color:#9ca3af}
.monthgrid .day .calendar-holiday{width:100%;margin:2px 0 0;height:17px;line-height:17px;padding:0 6px;border-radius:5px;font-size:11px}
@media(max-width:1100px){.monthgrid .day .chip-time{display:none}}

/* v44 — zoom au survol d'une case du mois (à la Calendrier Apple). */
.monthgrid .day{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease;transform-origin:center}
.monthgrid .day:hover{transform:scale(1.045);z-index:6;border-radius:8px;box-shadow:0 10px 28px rgba(27,29,58,.18),0 0 0 1px rgba(71,63,197,.22);overflow:visible}
:root:not(.dark) .monthgrid .day:hover{background:#fff}
.dark .monthgrid .day:hover{background:#1c2029;box-shadow:0 10px 28px rgba(0,0,0,.5),0 0 0 1px rgba(139,124,246,.35)}
@media(prefers-reduced-motion:reduce){.monthgrid .day{transition:none}.monthgrid .day:hover{transform:none}}

/* v44 — fenêtres : titre et sous-titre alignés à gauche sur la même ligne que le contenu (marge de 18 px partout). */
.modal>.modal-head{padding-left:0;padding-right:0}
.modal.availability-modal>.modal-head,.modal.help-modal>.modal-head,.modal.event-view-modal>.modal-head,.modal.common-modal>.modal-head,.modal.year-day-modal>.modal-head{padding-left:18px;padding-right:18px}
.help-modal .help-body,.event-view-modal .event-view-body{padding-left:18px;padding-right:18px}
.event-view-modal .modal-actions{padding:12px 18px 18px}
.modal-head>div{text-align:left}
.modal-head h2,.modal-head .help-subtitle{margin-left:0;padding-left:0;text-align:left}

/* v44 — « Mes disponibilités » : mêmes marges et boutons toujours visibles que « Créneau commun ». */
.availability-modal{display:flex;flex-direction:column;max-height:calc(100vh - 48px);overflow-y:auto}
.availability-modal .modal-head{flex:0 0 auto;padding-top:18px;padding-bottom:14px}
.availability-modal .availability-list{max-height:none;overflow:visible;padding:14px 18px 10px}
.availability-modal .availability-note{margin:0 18px}
.availability-modal .modal-actions{position:sticky;bottom:0;padding:14px 18px 20px;margin-top:12px;background:#fff;border-top:1px solid #E6E9F2}
.dark .availability-modal .modal-actions{background:#1a1e26;border-top-color:#303642}

/* v44 — vue Mois : léger zoom de la case survolée (Apple-like). */
.monthgrid .day{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease}
.monthgrid .day:hover{transform:scale(1.045);z-index:5;box-shadow:0 8px 22px rgba(27,29,58,.16),0 0 0 1px rgba(71,63,197,.16);border-radius:8px;background:#fff!important}
.dark .monthgrid .day:hover{background:#1b1f27!important;box-shadow:0 10px 26px rgba(0,0,0,.5),0 0 0 1px rgba(139,124,246,.3)}
@media (prefers-reduced-motion:reduce){.monthgrid .day{transition:none}.monthgrid .day:hover{transform:none}}

/* v44 — fenêtres : titre et sous-titre alignés sur le bord gauche du contenu, et boutons toujours dégagés de la marge basse. */
.modal.year-day-modal>.modal-head,.modal.booking-manager-modal>.modal-head,.modal.confirm-modal>.modal-head{padding-left:0;padding-right:0}
.availability-modal,.booking-manager-modal{display:flex;flex-direction:column;max-height:calc(100vh - 48px);overflow-y:auto}
.availability-modal .modal-actions,.booking-manager-modal .modal-actions{position:sticky;bottom:0;margin-top:8px;padding:14px 18px 20px;background:#fff;border-top:1px solid #E6E9F2}
.booking-manager-modal .modal-actions{padding:14px 0 4px;margin-bottom:-4px}
.dark .availability-modal .modal-actions,.dark .booking-manager-modal .modal-actions{background:#1a1e26;border-top-color:#303642}
.availability-modal>*,.common-modal>*,.booking-manager-modal>*{flex-shrink:0}
.availability-modal .availability-list{flex-shrink:0;overflow:visible;max-height:none}

/* v45 — créneaux dans la liste d'un jour (vue Mois) : fond + bordure verts, comme les événements ont les leurs. */
.year-day-item.slot{background:#E6F6EE;border:1px solid #BFE8D0;border-left:3px solid #27B86B;color:#0F6B3C;cursor:pointer}
.year-day-item.slot:hover{background:#D8F0E3;border-color:#27B86B}
.year-day-item.slot .year-item-time,.year-day-item.slot .year-item-main small{color:#2F7A50}
.year-day-item.slot .year-item-badge{background:#CFEEDB;color:#0F6B3C}
.year-day-item.slot.reserved strong,.year-day-item.event.booking strong,.planning-slot.booked strong,.planning-slot.mine strong,.planning-event.booking strong{font-weight:900}
.year-day-item.slot.busy{background:#F1F2F8;border-color:#D5D9E6;border-left-color:#98A2B3;color:#475467}
.year-day-item.slot.busy .year-item-time,.year-day-item.slot.busy .year-item-main small{color:#667085}
.year-day-item.slot.busy .year-item-badge{background:#E4E7F3;color:#475467}
.dark .year-day-item.slot{background:rgba(74,222,128,.12);border-color:rgba(74,222,128,.28);border-left-color:#4ade80;color:#b7f3cd}
.dark .year-day-item.slot .year-item-time,.dark .year-day-item.slot .year-item-main small{color:#86d9a8}
.dark .year-day-item.slot .year-item-badge{background:rgba(74,222,128,.18);color:#86efac}
.dark .year-day-item.slot.busy{background:#1d2129;border-color:#303642;border-left-color:#6b7280;color:#cbd5e1}

/* v45 — vue Planning : créneau occupé par un événement (ne s'affiche plus « disponible »). */
.planning-slot.busy{border-left-color:#98A2B3;background:repeating-linear-gradient(135deg,#F1F2F8,#F1F2F8 8px,#E9EBF4 8px,#E9EBF4 16px);color:#475467;cursor:not-allowed}
.planning-slot.busy strong{color:#344054}
.dark .planning-slot.busy{border-color:#303642;border-left-color:#6b7280;background:repeating-linear-gradient(135deg,#1d2129,#1d2129 8px,#232832 8px,#232832 16px);color:#cbd5e1}
.dark .planning-slot.busy strong{color:#e5e7eb}
.planning-slot.booked strong,.planning-slot.mine strong{font-size:13px}
.year-day-item.event.booking{background:#FDEAF3!important;border-color:#F6C3DB!important;border-left-color:#DB2777!important;color:#9D174D!important}
.year-day-item.event.booking .year-item-time,.year-day-item.event.booking .year-item-main small{color:#B4376E}
.dark .year-day-item.event.booking{background:rgba(244,114,182,.14)!important;border-color:rgba(244,114,182,.3)!important;color:#f9a8d4!important}

/* v46 — liste d'un jour : la barre colorée de gauche est toujours visible (comme sur les événements), le survol ne change que le reste de la bordure. */
.year-day-item{border-left-width:4px!important}
.year-day-item.event{border-left-color:#473FC5!important}
.year-day-item.event.booking{border-left-color:#DB2777!important}
.year-day-item.slot{border-left-color:#27B86B!important}
.year-day-item.slot.busy{border-left-color:#98A2B3!important}
.year-day-item.holiday{border-left-color:#ef4444!important}
.year-day-item.observance{border-left-color:#f59e0b!important}
.year-day-item:hover,.year-day-item.event:hover,.year-day-item.slot:hover,.year-day-item.event.booking:hover,.year-day-item.holiday:hover,.year-day-item.observance:hover{border-top-color:#8b7cf6!important;border-right-color:#8b7cf6!important;border-bottom-color:#8b7cf6!important}
.year-day-item.slot:hover{border-top-color:#27B86B!important;border-right-color:#27B86B!important;border-bottom-color:#27B86B!important}
.year-day-item.event.booking:hover{border-top-color:#DB2777!important;border-right-color:#DB2777!important;border-bottom-color:#DB2777!important}
.dark .year-day-item.event{border-left-color:#8b7cf6!important}
.dark .year-day-item.slot{border-left-color:#4ade80!important}
.dark .year-day-item.event.booking{border-left-color:#f472b6!important}
/* éléments passés : couleurs fanées, plus de survol actif */
.year-day-item.past{opacity:.55;filter:saturate(.45);cursor:default}
.year-day-item.past:hover{border-top-color:inherit!important;border-right-color:inherit!important;border-bottom-color:inherit!important}
.year-day-item.past .year-item-badge{background:#E4E7EC!important;color:#475467!important}
.dark .year-day-item.past .year-item-badge{background:#2a2f39!important;color:#cbd5e1!important}
.planning-slot.past,.planning-event.past{opacity:.55;filter:saturate(.45)}
.planning-slot strong,.planning-event strong{overflow-wrap:anywhere;white-space:normal;word-break:break-word}
.year-day-item.past:hover,.year-day-item.event.past:hover,.year-day-item.slot.past:hover,.year-day-item.event.booking.past:hover{border-top-color:#E2E7EE!important;border-right-color:#E2E7EE!important;border-bottom-color:#E2E7EE!important}

/* v48 — (1) mode sombre : les créneaux de la carte d'un jour reprennent exactement la carte des événements
   (fond, bordure, texte neutres) ; seuls la barre de gauche et le badge gardent leur couleur verte. */
.dark .year-day-item.slot,.dark .year-day-item.slot.busy,.dark .year-day-item.slot.reserved{background:#151a21;border-color:#303642;color:#e7ebf2}
.dark .year-day-item.slot:hover,.dark .year-day-item.slot.busy:hover{background:#151a21}
.dark .year-day-item.slot .year-item-time,.dark .year-day-item.slot.busy .year-item-time{color:#aeb7c5}
.dark .year-day-item.slot .year-item-main small,.dark .year-day-item.slot.busy .year-item-main small{color:#7b8492}
.dark .year-day-item.slot.busy .year-item-badge{background:#2a2f39;color:#cbd5e1}

/* v48 — (2) survol d'un jour férié / d'une journée internationale : la bordure garde sa couleur (rouge / ambre), plus de violet. */
.year-day-item.holiday:hover,.dark .year-day-item.holiday:hover{border-top-color:#ef4444!important;border-right-color:#ef4444!important;border-bottom-color:#ef4444!important;border-left-color:#ef4444!important}
.year-day-item.observance:hover,.dark .year-day-item.observance:hover{border-top-color:#f59e0b!important;border-right-color:#f59e0b!important;border-bottom-color:#f59e0b!important;border-left-color:#f59e0b!important}

/* v48 — (3) vue Mois : le texte des jours fériés a la même taille que celui des événements et des créneaux (10 px), et la même hauteur de pastille. */
.monthgrid .day .calendar-holiday{font-size:12px;height:19px;line-height:19px}

/* v48b — vue Mois : pastilles harmonisées (événement, rendez-vous, créneau, férié, journée internationale).
   Même structure partout : barre colorée à gauche, fond teinté, survol = même couleur un peu plus soutenue. Titres remplacés par le type + heures. */
.monthgrid .day .event{background:#E4E2FA!important}
.monthgrid .day .event:hover{background:#D8D5F6!important}
.monthgrid .day .calendar-holiday{display:flex;align-items:center;gap:6px;width:100%;margin:2px 0 0;padding:0 6px 0 0;border:0!important;position:relative;font-weight:600;cursor:pointer}
.monthgrid .day .calendar-holiday::before{content:"";flex:0 0 3px;align-self:stretch;margin:3px 0 3px 3px;border-radius:2px;background:var(--bar)}
.monthgrid .day .calendar-holiday{--bar:#EF4444;background:#FFF1F2!important;color:#BE123C!important}
.monthgrid .day .calendar-holiday:hover{background:#FFE4E6!important}
.monthgrid .day.observance .calendar-holiday,.monthgrid .day .calendar-holiday.observance{--bar:#F59E0B;background:#FFFBEB!important;color:#B45309!important}
.monthgrid .day.observance .calendar-holiday:hover,.monthgrid .day .calendar-holiday.observance:hover{background:#FEF3C7!important}
.monthgrid .day.holiday.observance .calendar-holiday.holiday{--bar:#EF4444;background:#FFF1F2!important;color:#BE123C!important}

.dark .monthgrid .day .event:hover{background:rgba(139,124,246,.28)!important}
.dark .monthgrid .day .event.booking:hover{background:rgba(244,114,182,.26)!important}
.dark .monthgrid .day .calendar-slot:hover{background:rgba(74,222,128,.23)!important}
.dark .monthgrid .day .calendar-holiday{--bar:#f87171;background:rgba(248,113,113,.16)!important;color:#fca5a5!important}
.dark .monthgrid .day .calendar-holiday:hover{background:rgba(248,113,113,.26)!important}
.dark .monthgrid .day.observance .calendar-holiday,.dark .monthgrid .day .calendar-holiday.observance{--bar:#fbbf24;background:rgba(251,191,36,.15)!important;color:#fcd34d!important}
.dark .monthgrid .day.observance .calendar-holiday:hover,.dark .monthgrid .day .calendar-holiday.observance:hover{background:rgba(251,191,36,.25)!important}
.dark .monthgrid .day.holiday.observance .calendar-holiday.holiday{--bar:#f87171;background:rgba(248,113,113,.16)!important;color:#fca5a5!important}

/* Heures : début – fin quand la place le permet, début seul sur petits écrans (au lieu de tout masquer) */
.monthgrid .day .chip-time{display:inline!important;white-space:nowrap}
@media(max-width:1100px){.monthgrid .day .chip-time .chip-end{display:none}}

/* v48c — liste d'un jour, mode clair uniquement : le badge « Événement » (à droite) reprend sa couleur, comme les autres badges. */
html:not(.dark) .year-day-item.event:not(.booking):not(.past) .year-item-badge{background:#D9D6F6;color:#3A33A8}

/* v48c — transition douce au changement de thème (classe posée quelques instants par toggleTheme). */
html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:background-color .4s ease,color .4s ease,border-color .4s ease,fill .4s ease,stroke .4s ease,box-shadow .4s ease,outline-color .4s ease,opacity .4s ease!important}
@media(prefers-reduced-motion:reduce){html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:none!important}}

/* v48c — dans une case étroite, le libellé (Événement / Créneau…) reste entier : seule l'heure de début est gardée. */
.monthgrid .day{container-type:inline-size}
@container (max-width:215px){.monthgrid .day .chip-time .chip-end{display:none}}

/* v50 — vue Mois : jours de la semaine en noir ; avatar de la barre du haut en noir (thème clair uniquement). */
:root:not(.dark) .weekday{color:#000}
:root:not(.dark) .avatar-btn{background:#000;color:#fff}

/* v50 — bouton « ? » d'aide sur chaque page d'action + carte d'explication. */
.head-actions{display:flex;align-items:center;gap:4px}
.modal{position:relative}
.help-btn{width:26px;height:26px;flex:0 0 26px;border-radius:50%;border:1px solid #d9dee7;background:transparent;color:#475467;display:inline-grid;place-items:center;cursor:pointer;padding:0;transition:background-color .15s,border-color .15s,color .15s}
.help-btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.help-btn:hover,.help-btn.on{background:#EEEDFB;border-color:#c9c5f3;color:#473FC5}
.help-btn.floating{position:absolute;top:12px;right:14px;z-index:2}
.dark .help-btn{border-color:#303642;color:#aeb7c5}
.dark .help-btn:hover,.dark .help-btn.on{background:#262a3d;border-color:#4a4f7a;color:#c4b5fd}
.action-help{margin:10px 14px 4px;padding:11px 14px;border-radius:10px;background:#F5F4FF;border:1px solid #e0defa;color:#2b2f42;font-size:14px;line-height:1.5;text-align:left}
.action-help strong{display:block;font-size:14.5px;margin-bottom:5px}
.action-help ol{margin:0;padding-left:18px}
.action-help li{margin:2px 0}
.dark .action-help{background:#1a1d2b;border-color:#2f3350;color:#d7dbe7}
.action-help.floating{position:fixed;top:112px;right:24px;width:330px;max-width:calc(100vw - 32px);z-index:60;margin:0;box-shadow:0 12px 40px rgba(20,20,50,.2)}

/* v51 — aide en bulle : s'affiche au-dessus de la page sans jamais la déplacer, se ferme au clic extérieur ou avec Échap. */
.help-wrap{position:relative;display:inline-flex}
.help-wrap.floating{position:absolute;top:12px;right:14px;z-index:5}
.help-btn.floating{position:static}
.action-help,.action-help.floating{position:absolute;top:calc(100% + 8px);right:0;left:auto;width:320px;max-width:min(320px,calc(100vw - 32px));max-height:min(60vh,340px);overflow:auto;margin:0;z-index:220;box-shadow:0 14px 40px rgba(20,20,50,.22);transform-origin:top right}
.help-pop-enter-active,.help-pop-leave-active{transition:opacity .16s ease,transform .16s ease}
.help-pop-enter-from,.help-pop-leave-to{opacity:0;transform:translateY(-6px) scale(.97)}

/* v51 — Planning : la page, la barre d'outils et les en-têtes de jours restent fixes ; seul le contenu de chaque jour défile. */
.content.is-planning{overflow:hidden}
.content.is-planning>.planning-view{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow-x:auto;overflow-y:hidden}
.content.is-planning .planning-grid{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr)}
.content.is-planning .planning-col{min-height:0;display:flex;flex-direction:column;padding-bottom:0}
.content.is-planning .planning-col-head{flex:0 0 42px}
.planning-col-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:8px 8px 10px;overscroll-behavior:contain}

/* v51 — menu du compte : sans avatar, organisation en bas. */
.profile-org{padding:6px 9px 4px;display:flex;flex-direction:column;gap:2px;text-align:left}
.profile-org span{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#98A2B3}
.profile-org strong{font-size:14px;font-weight:800;color:#1f2937;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dark .profile-org strong{color:#e5e7eb}
.legal-row{flex-wrap:wrap;justify-content:flex-start;gap:4px 12px;padding:10px 9px 4px}

/* v52 — menu du compte : l'organisation s'affiche sous l'e-mail (sans libellé). */
.profile-head .profile-orgname{color:#475569;font-weight:700}
.dark .profile-head .profile-orgname{color:#cbd5e1}

/* v52 — bouton unique « Disponibilités » de la barre du haut : Mes disponibilités / Créneau commun. */
.avail-wrap{position:relative;display:inline-flex}
.avail-wrap .icon-btn.on{background:#EEEDFB;color:#473FC5}
.dark .avail-wrap .icon-btn.on{background:#262a3d;color:#c4b5fd}
.avail-menu{position:absolute;right:0;top:calc(100% + 7px);width:285px;padding:6px;background:#fff;border:1px solid #e2e7ee;border-radius:13px;box-shadow:0 18px 55px rgba(15,23,42,.18);z-index:150;transform-origin:top right}
.dark .avail-menu{background:#1a1e26;border-color:#303642;box-shadow:0 18px 55px rgba(0,0,0,.45)}
.avail-menu button{width:100%;display:flex;align-items:center;gap:11px;padding:9px 10px;border:0;border-radius:9px;background:transparent;text-align:left;cursor:pointer;color:#344054}
.avail-menu button:hover{background:#F5F4FF}
.dark .avail-menu button{color:#e5e7eb}
.dark .avail-menu button:hover{background:#252a33}
.avail-menu .am-icon{flex:0 0 32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#EEEDFB;color:#473FC5}
.dark .avail-menu .am-icon{background:#262a3d;color:#c4b5fd}
.avail-menu .am-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.avail-menu .am-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.avail-menu .am-text strong{font-size:14px;font-weight:800}
.avail-menu .am-text small{font-size:12px;font-weight:600;color:#667085;line-height:1.35;white-space:normal}
.dark .avail-menu .am-text small{color:#98a2b3}

/* v54 — Planning : la liste de chaque jour défile sans afficher de barre de défilement. */
.planning-col-body{scrollbar-width:none;-ms-overflow-style:none}
.planning-col-body::-webkit-scrollbar{display:none;width:0;height:0}

/* v57 — mode sombre, liste d'un jour : les réservations ont par défaut le fond #151a21 (et la bordure, le texte, l'heure) des autres éléments ;
   seuls la barre de gauche et le badge restent roses. */
.dark .year-day-item.event.booking{background:#151a21!important;color:#e7ebf2!important;border-top-color:#303642!important;border-right-color:#303642!important;border-bottom-color:#303642!important}
.dark .year-day-item.event.booking:hover{background:#151a21!important;border-top-color:rgba(244,114,182,.55)!important;border-right-color:rgba(244,114,182,.55)!important;border-bottom-color:rgba(244,114,182,.55)!important}
.dark .year-day-item.event.booking .year-item-time{color:#aeb7c5!important}
.dark .year-day-item.event.booking .year-item-main small{color:#7b8492!important}

/* v58 — Planning : mêmes couleurs que les pastilles de la vue Mois (clair et sombre) : fond teinté, barre colorée à gauche, texte de la même famille.
   violet = événement · rose = réservation · vert = créneau disponible · gris = occupé · orange = réservé par moi · rouge = réservé par un autre. */
.planning-grid .planning-col-body .planning-event,.planning-grid .planning-col-body .planning-slot{--bar:#473FC5;--bg:#E4E2FA;--bg-h:#D8D5F6;--fg:#3A33A8;position:relative;border:0!important;border-radius:7px;background:var(--bg)!important;color:var(--fg)!important;padding-left:17px!important;opacity:1;transition:background-color .15s ease}
.planning-grid .planning-col-body .planning-event::before,.planning-grid .planning-col-body .planning-slot::before{content:"";position:absolute;left:5px;top:7px;bottom:7px;width:3px;border-radius:2px;background:var(--bar)}
.planning-grid .planning-col-body .planning-event:hover,.planning-grid .planning-col-body .planning-slot:hover{background:var(--bg-h)!important;opacity:1}
.planning-grid .planning-col-body .planning-event.booking{--bar:#DB2777;--bg:#FDEAF3;--bg-h:#FBDCEA;--fg:#9D174D}
.planning-grid .planning-col-body .planning-slot.available,.planning-grid .planning-col-body .planning-slot.expired{--bar:#27B86B;--bg:#E6F6EE;--bg-h:#D8F0E3;--fg:#0F6B3C}
.planning-grid .planning-col-body .planning-slot.busy{--bar:#98A2B3;--bg:#F1F2F8;--bg-h:#E6E8F2;--fg:#475467}
.planning-grid .planning-col-body .planning-slot.mine{--bar:#F97316;--bg:#FFF1E6;--bg-h:#FFE6D1;--fg:#9A3412}
.planning-grid .planning-col-body .planning-slot.booked{--bar:#EF4444;--bg:#FEECEC;--bg-h:#FDDCDC;--fg:#991B1B}
.planning-grid .planning-col-body .planning-event.past,.planning-grid .planning-col-body .planning-slot.past,.planning-grid .planning-col-body .planning-slot.expired,
.planning-grid .planning-col-body .planning-event.past:hover,.planning-grid .planning-col-body .planning-slot.past:hover,.planning-grid .planning-col-body .planning-slot.expired:hover{opacity:.55}

.dark .planning-grid .planning-col-body .planning-event,.dark .planning-grid .planning-col-body .planning-slot{--bar:#8b7cf6;--bg:rgba(139,124,246,.18);--bg-h:rgba(139,124,246,.28);--fg:#d8d3ff}
.dark .planning-grid .planning-col-body .planning-event.booking{--bar:#f472b6;--bg:rgba(244,114,182,.16);--bg-h:rgba(244,114,182,.26);--fg:#f9a8d4}
.dark .planning-grid .planning-col-body .planning-slot.available,.dark .planning-grid .planning-col-body .planning-slot.expired{--bar:#4ade80;--bg:rgba(74,222,128,.14);--bg-h:rgba(74,222,128,.23);--fg:#b7f3cd}
.dark .planning-grid .planning-col-body .planning-slot.busy{--bar:#94a3b8;--bg:rgba(148,163,184,.14);--bg-h:rgba(148,163,184,.22);--fg:#cbd5e1}
.dark .planning-grid .planning-col-body .planning-slot.mine{--bar:#fb923c;--bg:rgba(251,146,60,.16);--bg-h:rgba(251,146,60,.26);--fg:#fdba74}
.dark .planning-grid .planning-col-body .planning-slot.booked{--bar:#f87171;--bg:rgba(248,113,113,.16);--bg-h:rgba(248,113,113,.26);--fg:#fca5a5}
.dark .planning-grid .planning-col-body .planning-event.past,.dark .planning-grid .planning-col-body .planning-slot.past,.dark .planning-grid .planning-col-body .planning-slot.expired,
.dark .planning-grid .planning-col-body .planning-event.past:hover,.dark .planning-grid .planning-col-body .planning-slot.past:hover,.dark .planning-grid .planning-col-body .planning-slot.expired:hover{opacity:.55}

/* v59 — bordures carrées pour tous les événements, créneaux, jours fériés et autres éléments du calendrier (aucun autre changement). */
.event,.weekevent,.detail-event,.detail-slot-item,.calendar-slot,.calendar-holiday,.planning-event,.planning-slot,.year-day-item,
.monthgrid .day .event,.monthgrid .day .calendar-slot,.monthgrid .day .calendar-holiday,
.planning-grid .planning-col-body .planning-event,.planning-grid .planning-col-body .planning-slot{border-radius:0!important}
.monthgrid .day .event::before,.monthgrid .day .calendar-slot::before,.monthgrid .day .calendar-holiday::before,
.planning-grid .planning-col-body .planning-event::before,.planning-grid .planning-col-body .planning-slot::before{border-radius:0!important}

/* v60 — mode clair : au survol, le fond des éléments ne change plus (plus de blanc), comme pour les événements.
   Liste d'un jour, pastilles de la vue Mois et cases des jours gardent leur couleur de fond. Le mode sombre n'est pas modifié. */
:root:not(.dark) .year-day-item.event:hover{background:#EEEDFB!important}
:root:not(.dark) .year-day-item.event.booking:hover{background:#FDEAF3!important}
:root:not(.dark) .year-day-item.slot:hover,:root:not(.dark) .year-day-item.slot.reserved:hover{background:#E6F6EE!important}
:root:not(.dark) .year-day-item.slot.busy:hover{background:#F1F2F8!important}

:root:not(.dark) .monthgrid .day .event:hover{background:#E4E2FA!important}
:root:not(.dark) .monthgrid .day .event.booking:hover{background:#FDEAF3!important}
:root:not(.dark) .monthgrid .day .calendar-slot:hover{background:#E6F6EE!important}
:root:not(.dark) .monthgrid .day .calendar-holiday:hover,:root:not(.dark) .monthgrid .day.holiday.observance .calendar-holiday.holiday:hover{background:#FFF1F2!important}
:root:not(.dark) .monthgrid .day.observance .calendar-holiday:hover,:root:not(.dark) .monthgrid .day .calendar-holiday.observance:hover{background:#FFFBEB!important}

:root:not(.dark) .monthgrid .day:hover{background:transparent!important}
:root:not(.dark) .monthgrid .day:nth-child(7n):hover,:root:not(.dark) .monthgrid .day:nth-child(7n-1):hover{background:var(--zc-surface-2)!important}
:root:not(.dark) .monthgrid .day.muted:hover{background:#F1F2F8!important}
:root:not(.dark) .monthgrid .day.today:hover{background:var(--zc-indigo-softer)!important}

/* v61 — liens de la sidebar en boutons (même langage visuel que « Nouvel événement », version secondaire). */
.sidebar .nav{gap:8px}
.sidebar .nav button,.sidebar .sidebar-toggle{height:38px;border:1px solid #dfe4ec;background:#fff;border-radius:8px;padding:0 11px;color:#344054;font-weight:800;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.sidebar .nav button:hover,.sidebar .sidebar-toggle:hover{background:#F5F4FF;border-color:#c9c5f3;color:#473FC5}
.sidebar .nav button.active{background:#ECEBFB;border-color:#b9b3f2;color:#473FC5;box-shadow:0 1px 2px rgba(71,63,197,.12)}
.dark .sidebar .nav button,.dark .sidebar .sidebar-toggle{background:#1a1e26;border-color:#303642;color:#cbd5e1;box-shadow:none}
.dark .sidebar .nav button:hover,.dark .sidebar .sidebar-toggle:hover{background:#222733;border-color:#4a4f7a;color:#e5e7eb}
.dark .sidebar .nav button.active{background:#29234a;border-color:#5b50b8;color:#c4b5fd}
.sidebar.collapsed .nav button,.sidebar.collapsed .sidebar-toggle{padding:0;justify-content:center}

/* v64 — indicateur d'enregistrement en icône : coche verte (enregistré) / croix rouge (non enregistré), même taille que le bouton d'aide. */
.save-state{display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;padding:0;border-radius:50%;border:1px solid transparent}
.save-state svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.save-state.ok{color:#1C9B58;background:#E6F6EE;border-color:#bfe8d1}
.save-state.ko{color:#DC2626;background:#FEECEC;border-color:#f8c6c6}
.dark .save-state.ok{color:#4ade80;background:rgba(74,222,128,.16);border-color:rgba(74,222,128,.35)}
.dark .save-state.ko{color:#f87171;background:rgba(248,113,113,.16);border-color:rgba(248,113,113,.35)}

/* v63 — chargement de la réservation publique : logo + barre dynamique (comme l'écran de connexion), sans texte. */
.public-loading{gap:22px}
.public-loading .boot-splash-mark{animation:boot-pulse 1.4s ease-in-out infinite}

/* v62 — barre de chargement à l'ouverture de la page de réservation (même style que l'écran de lancement). */
.page-loadbar{position:fixed;left:0;right:0;top:0;height:4px;z-index:600;background:rgba(71,63,197,.14);overflow:hidden}
.page-loadbar span{display:block;width:40%;height:100%;border-radius:4px;background:linear-gradient(90deg,#473FC5,#27B86B);animation:boot-slide 1.2s ease-in-out infinite}
.dark .page-loadbar{background:rgba(139,124,246,.2)}

/* v65 — lanceur d'applications (grille) dans la barre du haut : mes applications, sans « Security ». */
.apps-wrap{position:relative;display:inline-flex}
.apps-wrap .icon-btn.on{background:#EEEDFB;color:#473FC5}
.dark .apps-wrap .icon-btn.on{background:#262a3d;color:#c4b5fd}
.apps-wrap .icon-btn svg{fill:currentColor;stroke:none}
.apps-menu{position:absolute;right:0;top:calc(100% + 7px);width:318px;padding:12px;background:#fff;border:1px solid #e2e7ee;border-radius:13px;box-shadow:0 18px 55px rgba(15,23,42,.18);z-index:150;transform-origin:top right}
.dark .apps-menu{background:#1a1e26;border-color:#303642;box-shadow:0 18px 55px rgba(0,0,0,.45)}
.apps-title{padding:2px 4px 10px;font-size:12px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#98A2B3}
.apps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:340px;overflow-y:auto;scrollbar-width:none}
.apps-grid::-webkit-scrollbar{display:none}
.app-tile{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 6px 10px;border-radius:10px;text-decoration:none;color:#344054;border:1px solid transparent;transition:background-color .15s,border-color .15s}
.app-tile:hover{background:#F5F4FF;border-color:#dcd9f8}
.app-tile.current{background:#EEEDFB;border-color:#cfcaf5}
.dark .app-tile{color:#e5e7eb}
.dark .app-tile:hover{background:#252a33;border-color:#3a4150}
.dark .app-tile.current{background:#29234a;border-color:#4a4180}
.app-icon{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;color:#fff;font-size:19px;font-weight:900;overflow:hidden;box-shadow:0 2px 6px rgba(15,23,42,.14)}
.app-icon img{width:100%;height:100%;object-fit:cover}
.app-name{font-size:13px;font-weight:800;text-align:center;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apps-loading{padding:26px 14px}
.apps-error,.apps-empty{padding:14px 6px;font-size:14px;font-weight:700;color:#667085;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.apps-error button{height:30px;padding:0 14px;border:1px solid #dfe4ec;border-radius:8px;background:#fff;font-weight:800;font-size:13px;cursor:pointer;color:#344054}
.dark .apps-error button{background:#1a1e26;border-color:#303642;color:#e5e7eb}

/* v66 — lanceur d'applications plus compact (icônes réduites). */
.apps-menu{width:264px;padding:10px}
.apps-grid{gap:2px}
.app-tile{gap:5px;padding:9px 4px 7px}
.app-icon{width:32px;height:32px;border-radius:8px;font-size:15px;box-shadow:0 1px 4px rgba(15,23,42,.14)}
.app-name{font-size:12.5px}
.apps-title{padding:0 4px 8px}

/* v67 — lanceur : vraies icônes Zeshel (Mail toujours en premier), plus de pastilles colorées aléatoires. Application inconnue = icône neutre. */
.app-icon{background:none;box-shadow:none;border-radius:0;overflow:visible;width:34px;height:34px}
.app-icon img{width:34px;height:34px;object-fit:contain}
.app-icon.generic{background:#E7E9F0;color:#667085;border-radius:8px;width:32px;height:32px}
.dark .app-icon.generic{background:#2a2f39;color:#aeb7c5}
.app-generic{display:grid;place-items:center}
.app-generic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* v69 — alerte du créneau commun : sobre, avec bouton d'aide discret. */
.common-alert{display:flex;gap:12px;margin:12px 18px 4px;padding:13px 14px;border-radius:12px;background:#FAF9FF;border:1px solid #E4E1F8;border-left:3px solid #8B7FE8;color:#2b2f42;text-align:left}
.common-alert-icon{flex:0 0 20px;width:20px;height:20px;margin-top:1px;color:#6D63D9}
.common-alert-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.common-alert-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.5;color:#475467}
.common-alert-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.common-alert-body strong{font-size:14.5px;font-weight:900;color:#2b2f42}
.common-alert-body p{margin:0}
.common-alert-body b{color:#2b2f42}
.common-alert-body .small-action{align-self:flex-start;height:32px;padding:0 14px;font-size:13.5px;margin-top:4px}
.help-btn.mini{width:22px;height:22px;flex:0 0 22px;opacity:.7;border-color:transparent}
.help-btn.mini svg{width:13px;height:13px}
.help-btn.mini:hover,.help-btn.mini.on{opacity:1}
.action-help.inline{position:static;width:auto;max-width:none;max-height:none;margin:2px 0 4px;box-shadow:none;font-size:13.5px;background:#fff}
.dark .common-alert{background:rgba(129,140,248,.08);border-color:rgba(129,140,248,.22);border-left-color:#818cf8;color:#d7dbe7}
.dark .common-alert-icon{color:#a5b4fc}
.dark .common-alert-body,.dark .common-alert-body strong,.dark .common-alert-body b{color:#d7dbe7}
.dark .action-help.inline{background:#171a26}

/* v70 — lanceur d'applications : 2 applications par ligne (comme Zeshel Mail), tuiles et icônes gardent leur petite taille. */
.apps-grid{grid-template-columns:repeat(2,1fr)}
.apps-menu{width:184px}

/* ---- Cohérence avec Zeshel Vizio : avatar violet et fond identiques, clair comme sombre ---- */
:root .avatar-btn,:root.dark .avatar-btn,:root .profile-avatar,:root.dark .profile-avatar{background:linear-gradient(135deg,#6259DE,#473FC5);color:#fff}
:root.dark body,:root.dark .app,:root.dark .workspace,:root.dark .content{background:#0f1115}
:root.dark .topbar{background:#15181e;box-shadow:none}

/* Violet Zeshel : initiales + bouton « Nouvel événement » (clair et sombre) */
:root:not(.dark) .avatar-btn,:root.dark .avatar-btn,:root:not(.dark) .profile-avatar,:root.dark .profile-avatar{background:linear-gradient(135deg,#6259DE,#473FC5);color:#fff;border-color:transparent}
:root:not(.dark) .new,:root.dark .new{background:linear-gradient(135deg,#6259DE,#473FC5);border-color:#473FC5;color:#fff;box-shadow:0 4px 12px rgba(71,63,197,.28)}
:root:not(.dark) .new:hover,:root.dark .new:hover{background:linear-gradient(135deg,#5850d6,#3b34b0);color:#fff}
.join-link{color:#6259DE;font-weight:700;text-decoration:none}.join-link:hover{text-decoration:underline}
:root.dark .join-link{color:#a39cff}

.year-day-item.has-join{grid-template-columns:78px 1fr auto auto;gap:8px}
.year-item-join{display:inline-flex;align-items:center;gap:4px;font-size:8px;font-weight:900;padding:4px 6px;border-radius:999px;background:#EEEDFB;color:#473FC5;cursor:pointer;white-space:nowrap}
.year-item-join:hover{background:#dcd8f8}.year-item-join img{display:block;border-radius:2px}
:root.dark .year-item-join{background:#29234a;color:#c4b5fd}:root.dark .year-item-join:hover{background:#352d62}
/* « Rejoindre » : badge bleu pour le distinguer du badge Événement */
.year-item-join,:root.dark .year-item-join{background:#2563eb;color:#fff}
.year-item-join:hover,:root.dark .year-item-join:hover{background:#1d4ed8;color:#fff}
.year-item-join img{filter:brightness(0) invert(1)}

/* ===== Toutes les vues (mois, année, semaine, jour, planning) : angles droits ===== */
.content :is(.toolbar,.calendar,.calendar-detail,.planning-view,.year-view,.monthgrid),
.content :is(.toolbar,.calendar,.calendar-detail,.planning-view,.year-view,.monthgrid) *,
.content :is(.toolbar,.calendar,.calendar-detail,.planning-view,.year-view,.monthgrid) *::before,
.content :is(.toolbar,.calendar,.calendar-detail,.planning-view,.year-view,.monthgrid) *::after{border-radius:0!important}

/* ===== Fond identique à la page d'accueil de Zeshel Vizio (dégradé + halos violet et vert) ===== */
body{background:linear-gradient(180deg,#F4F3FF 0%,#EEF1FB 55%,#EAF7F1 100%) fixed!important;min-height:100vh}
:root.dark body{background:linear-gradient(180deg,#12131f 0%,#0f1115 60%,#0e1a15 100%) fixed!important}
body::before,body::after{content:"";position:fixed;z-index:0;border-radius:50%!important;filter:blur(70px);pointer-events:none}
body::before{width:560px;height:560px;left:-140px;top:-160px;background:rgba(98,89,222,.34)}
body::after{width:520px;height:520px;right:-120px;bottom:-170px;background:rgba(39,184,107,.26)}
:root.dark body::before{background:rgba(98,89,222,.30)}
:root.dark body::after{background:rgba(39,184,107,.18)}
:root .app,:root.dark .app,:root .workspace,:root.dark .workspace,:root:not(.dark) .content,:root.dark .content{background:transparent!important}
.app{position:relative;z-index:1}
/* les surfaces des vues restent pleines pour la lisibilité (sans écraser leurs propres couleurs) */
:where(.calendar,.calendar-detail,.planning-view,.year-month){background:var(--zc-surface,#fff)}
:where(:root.dark) :where(.calendar,.calendar-detail,.planning-view,.year-month){background:#151a21}

/* ===== Récapitulatif de la journée ===== */
.recap-btn{white-space:nowrap}
.recap-modal{width:min(560px,calc(100vw - 30px))}
.recap-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 12px}
.recap-scope{display:inline-flex;border:1px solid var(--zc-line,#DFE3EE)}
.recap-scope button{border:0;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:800;padding:8px 12px;cursor:pointer}
.recap-scope button.active{background:#473FC5;color:#fff}
.recap-list{display:grid;gap:6px;max-height:min(52vh,420px);overflow:auto;padding:2px 1px 4px}
.recap-item{display:grid;grid-template-columns:104px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--zc-line,#DFE3EE);border-left:3px solid #473FC5;background:var(--zc-surface-2,#F7F8FC)}
.recap-time{font-size:13px;font-weight:900;color:#473FC5}
.recap-main{min-width:0;display:flex;flex-direction:column;gap:2px}.recap-main strong{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recap-main small{font-size:12.5px;color:#667085}
.recap-meet{font-size:8px;font-weight:900;padding:4px 7px;background:#2563eb;color:#fff;cursor:pointer;white-space:nowrap}
.recap-empty{padding:26px 10px;text-align:center;color:#667085;font-size:14.5px}
.recap-count{font-size:13.5px;font-weight:800;color:#667085}
:root.dark .recap-item{background:#151a21;border-color:#303642;border-left-color:#8b7fe8}:root.dark .recap-time{color:#c4b5fd}
:root.dark .recap-scope{border-color:#303642}:root.dark .recap-scope button.active{background:#6259DE}
.recap-modal,.recap-modal *{border-radius:0!important}
@media(max-width:520px){.recap-item{grid-template-columns:1fr}.recap-meet{justify-self:start}}

/* vue année : les cases des autres mois restent vides */
.year-day.blank{visibility:hidden;pointer-events:none}
/* vues semaine / jour : plusieurs événements à la même heure côte à côte, texte réduit s'ils sont nombreux */
.detail-event{box-sizing:border-box;min-width:0}
.detail-event[style*="--lanes: 3"],.detail-event[style*="--lanes: 4"],.detail-event[style*="--lanes: 5"]{padding:4px 5px}
.detail-event[style*="--lanes: 3"] .detail-event-time,.detail-event[style*="--lanes: 4"] .detail-event-time,.detail-event[style*="--lanes: 5"] .detail-event-time{display:none}
.detail-event[style*="--lanes: 3"] strong,.detail-event[style*="--lanes: 4"] strong,.detail-event[style*="--lanes: 5"] strong{font-size:11px}
.detail-event strong{overflow:hidden;text-overflow:ellipsis}

/* plusieurs événements simultanés : colonnes serrées, titre sur plusieurs lignes */
.detail-event[style*="--lanes: 2"],.detail-event[style*="--lanes: 3"],.detail-event[style*="--lanes: 4"],.detail-event[style*="--lanes: 5"]{padding:4px 5px;border-left-width:3px}
.detail-event[style*="--lanes: 2"] strong,.detail-event[style*="--lanes: 3"] strong,.detail-event[style*="--lanes: 4"] strong,.detail-event[style*="--lanes: 5"] strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;white-space:normal;overflow-wrap:anywhere;font-size:11.5px;line-height:1.25}
.detail-event[style*="--lanes: 2"] .detail-event-time{font-size:8px}

/* ===== Popups et pages : angles droits (les boutons et les liens gardent leur forme) ===== */
.modal,.help-modal,.year-day-modal,.event-view-modal,.recap-modal,.action-help,.apps-menu,.avail-menu,.profile-menu,.search-dropdown,.toast,
.booking-card,.booking-empty,.common-empty,.common-results,.common-alert,.collaborator-picker,.form-placeholder,.help-tip,.slot-audience,.success-detail,.year-head,
.modal :is(div,section,article,aside,form,fieldset,ul,li,p),.apps-menu :is(div,section),.profile-menu :is(div,section),
input,select,textarea,.search,.topbar .search,.year-item-badge,.reminder-selected{border-radius:0!important}

/* ===== Vue année : dates grandes, lisibles, qui remplissent chaque mois ===== */
.year-view .year-month{display:flex;flex-direction:column;min-height:0}
.year-view .year-month-title{flex:none;font-size:15px;padding:10px 12px}
.year-view .year-month-title span{font-size:13px}
.year-view .year-weekdays{flex:none}
.year-view .year-weekdays span{font-size:12px;padding:6px 0}
.year-view .year-days{flex:1;min-height:0;grid-template-rows:repeat(6,minmax(0,1fr))}
.year-view .year-day{display:flex;align-items:center;justify-content:center;min-height:30px;font-size:clamp(12px,1.05vw,16px);font-weight:700;color:#1B1D3A}
.year-view .year-day span{display:block;line-height:1;font-size:inherit}
.year-view .year-day em{min-width:15px;height:15px;font-size:11px;line-height:15px;right:3px;top:3px}
.year-view .year-day.today{background:#473FC5;color:#fff}
.year-view .year-day.holiday{color:#b91c1c}.year-view .year-day.observance{color:#b45309}
:root.dark .year-view .year-day{color:#e7ebf2}:root.dark .year-view .year-day.holiday{color:#fca5a5}:root.dark .year-view .year-day.observance{color:#fcd34d}
:root.dark .year-view .year-day.today{background:#6259DE;color:#fff}
.year-view .year-day:hover{background:#EEEDFB}:root.dark .year-view .year-day:hover{background:#29234a}
@media(max-width:760px){.year-view .year-day{min-height:34px;font-size:14.5px}}

/* vue année : chiffres plus petits, tons plus doux */
.year-view .year-day{font-size:clamp(10px,.78vw,12.5px);font-weight:600;color:#475467;min-height:26px}
:root.dark .year-view .year-day{color:#c3cad6}
.year-view .year-day.today,.year-view .year-day.today:hover{background:#473FC5;color:#fff;font-weight:700}
.year-view .year-day.today:hover{background:#3a33a8}
:root.dark .year-view .year-day.today,:root.dark .year-view .year-day.today:hover{background:#4b43b8;color:#fff}
:root.dark .year-view .year-day.today:hover{background:#5a52cc}
.year-view .year-day:hover{background:#F1F0FB}:root.dark .year-view .year-day:hover{background:#262338}
.year-view .year-day em{min-width:13px;height:13px;font-size:8px;line-height:13px}
.year-view .year-month{background:#fff}:root.dark .year-view .year-month{background:#151a21}

/* ---- Fenêtre de bienvenue (même présentation que Zeshel Mail : bandeau violet, texte centré, liste sans icônes) ---- */
.zw-back{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:14px;background:rgba(15,18,32,.55);backdrop-filter:blur(3px)}
.zw-modal{display:flex;flex-direction:column;width:min(500px,calc(100vw - 28px));height:min(620px,calc(100vh - 28px));background:#fff;color:#18212f;border:1px solid #e1e6ed;box-shadow:0 30px 80px rgba(20,16,70,.3);overflow:hidden;border-radius:0;font-family:inherit}
:root.dark .zw-modal{background:#171a21;color:#f3f4f6;border-color:#303642}
.zw-hero{position:relative;flex:0 0 230px;height:230px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#6259DE,#473FC5)}
.zw-wave{font-size:96px;line-height:1;display:inline-block;transform-origin:70% 70%;animation:zwWave 2.2s ease-in-out infinite}
.zw-f{position:absolute;bottom:-30px;font-size:30px;opacity:0;animation:zwFloat 5.5s linear infinite}
.zw-f1{left:8%;animation-delay:0s}.zw-f2{left:24%;animation-delay:1.1s;font-size:24px}.zw-f3{left:42%;animation-delay:2.2s}.zw-f4{left:60%;animation-delay:.6s}.zw-f5{left:76%;animation-delay:1.8s;font-size:28px}.zw-f6{left:90%;animation-delay:2.9s;font-size:22px}
@keyframes zwWave{0%,60%,100%{transform:rotate(0)}10%{transform:rotate(16deg)}20%{transform:rotate(-10deg)}30%{transform:rotate(16deg)}40%{transform:rotate(-6deg)}50%{transform:rotate(12deg)}}
@keyframes zwFloat{0%{transform:translateY(0) rotate(0);opacity:0}15%{opacity:.95}85%{opacity:.9}100%{transform:translateY(-250px) rotate(25deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.zw-wave,.zw-f{animation:none}.zw-f{opacity:.5;bottom:12px}}
.zw-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;text-align:center;padding:18px 26px 20px;overflow:hidden}
.zw-body h3{margin:0 0 8px;font-size:21px;font-weight:800;text-align:center}
.zw-body p{margin:0 0 12px;font-size:15px;line-height:1.6;color:#667085}
:root.dark .zw-body p{color:#a3acba}
.zw-body p.zw-lead{flex:0 0 auto;font-size:16px;line-height:1.65;margin:0 8px auto}
.zw-body.is-lead h3{margin-top:auto}
.zw-points{list-style:none;margin:0 auto 6px;padding:0;display:flex;flex-direction:column;justify-content:space-evenly;gap:8px;flex:1 1 auto;width:100%;max-width:400px;min-height:0;overflow:auto}
.zw-points li{padding:9px 12px;font-size:14.5px;border:1px solid #e1e6ed;background:rgba(98,89,222,.05);text-align:center}
:root.dark .zw-points li{border-color:#303642}
.zw-dots{display:flex;gap:6px;justify-content:center;margin-top:auto;padding-top:10px}
.zw-body.is-lead .zw-dots{margin-top:18px}
.zw-dots i{width:8px;height:8px;border-radius:50%;background:#d0d5dd;cursor:pointer;transition:all .2s}
.zw-dots i.done{background:#8b7fe8}.zw-dots i.on{width:22px;border-radius:6px;background:#473FC5}
.zw-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-top:12px}
.zw-actions .grow{flex:1}
.zw-actions button{font:inherit;cursor:pointer;border:0}
.zw-actions .ghost{background:transparent;color:#667085;font-weight:700;padding:10px 12px}
.zw-actions .ghost:hover{color:#473FC5}
.zw-actions .primary{background:linear-gradient(135deg,#6259DE,#473FC5);color:#fff;padding:10px 18px;font-weight:800}

/* Écran de lancement animé (même durée et même barre que Zeshel Mail : 2 cycles de 1,7 s = 3,4 s) */
.boot-splash-mark.boot-anim{width:auto;height:auto;animation:none;overflow:visible}
.boot-anim svg{display:block;overflow:visible;filter:saturate(.78) brightness(1.04);opacity:.95}
.dark .boot-anim svg{filter:saturate(.7) brightness(.96);opacity:.92}
#boot .boot-splash-bar{width:300px;max-width:80vw;height:7px;border-radius:5px}
#boot .boot-splash-bar span{width:0%;background:#6366f1;animation:boot-fill 3.4s linear forwards}
@keyframes boot-fill{from{width:0%}to{width:100%}}
.boot-anim svg *{transform-box:fill-box}

.bc-t{transform-origin:50% 50%}
.bc-p1{animation:bc-p1 1.7s ease-in-out infinite}.bc-p2{animation:bc-p2 1.7s ease-in-out infinite}.bc-p3{animation:bc-p3 1.7s ease-in-out infinite}
.bc-t2g{animation:bc-t2g 1.7s ease-in-out infinite}
.bc-card{transform-origin:50% 50%;animation:bc-card 1.7s cubic-bezier(.4,0,.2,1) infinite}
.bc-ring{animation:bc-ring 1.7s ease-in-out infinite}.bc-ring2{animation-delay:.08s}
@keyframes bc-p1{0%,4%{transform:scale(0);opacity:0}16%{transform:scale(1.12);opacity:1}22%,90%{transform:scale(1);opacity:1}100%{transform:scale(.7);opacity:0}}
@keyframes bc-p2{0%,12%{transform:scale(0);opacity:0}24%{transform:scale(1.12);opacity:1}30%,90%{transform:scale(1);opacity:1}100%{transform:scale(.7);opacity:0}}
@keyframes bc-p3{0%,20%{transform:scale(0);opacity:0}32%{transform:scale(1.12);opacity:1}38%,90%{transform:scale(1);opacity:1}100%{transform:scale(.7);opacity:0}}
@keyframes bc-card{0%,30%{transform:translate(60px,-330px) rotate(-26deg);opacity:0}38%{opacity:1}60%{transform:translate(0,0) rotate(-7deg);opacity:1}72%{transform:translate(0,0) rotate(-4deg);opacity:1}80%,100%{transform:translate(0,0) rotate(-4deg);opacity:0}}
@keyframes bc-t2g{0%,66%{transform:scale(.4);opacity:0}76%{transform:scale(1.15);opacity:1}82%,90%{transform:scale(1);opacity:1}100%{transform:scale(.7);opacity:0}}
@keyframes bc-ring{0%,6%,40%,100%{transform:translateY(0)}18%{transform:translateY(-18px)}}
@media (prefers-reduced-motion:reduce){.bc-p1,.bc-p2,.bc-p3,.bc-t2g,.bc-card,.bc-ring{animation:none}.bc-t2g{opacity:1}.bc-card{opacity:0}}

/* Bienvenue : design épuré comme Zeshel Mail, sans encadrements ; les options sont séparées par de simples lignes */
.zw-points{gap:0;border-top:1px solid #e1e6ed;border-bottom:1px solid #e1e6ed;flex:0 0 auto;margin:6px auto 10px}
.zw-points li{display:block;text-align:center;padding:13px 6px;background:transparent;border:0;border-top:1px solid #e1e6ed;font-size:15px}
.zw-points li:first-child{border-top:0}
:root.dark .zw-points,:root.dark .zw-points li{border-color:#303642}

/* Liens de la sidebar : même style que Zeshel Mail (sans cadre, fond léger au survol, violet quand actif) */
.sidebar .nav{gap:2px}
.sidebar .nav button{height:36px;border:0;background:transparent;border-radius:8px;gap:9px;padding:0 9px;color:#475569;font-size:13.5px;font-weight:800;box-shadow:none}
.sidebar .nav button:hover{background:#eef2f7;color:#475569;border:0}
.sidebar .nav button.active{background:#e9e7ff;color:#4f46e5;font-weight:900;border:0;box-shadow:none}
.dark .sidebar .nav button{background:transparent;border:0;color:#aeb7c5;box-shadow:none}
.dark .sidebar .nav button:hover{background:#20252d;border:0;color:#aeb7c5}
.dark .sidebar .nav button.active{background:#29234a;border:0;color:#c4b5fd}
.sidebar .nav button svg{width:18px;height:18px;flex:none}
/* Fenêtre de bienvenue : boutons d'action plus compacts */
.zw-actions{gap:6px;margin-top:10px}
.zw-actions .ghost,.zw-actions .primary{height:30px;padding:0 14px;font-size:14px;line-height:30px;border-radius:0}
.zw-actions .primary{font-weight:800}

/* Bouton « Créneaux » : même style que « Nouvel événement », en plus petit */
.sidebar .nav button.slots-btn{height:30px;margin-bottom:6px;justify-content:center;gap:6px;padding:0 10px;border:0;border-radius:7px;background:linear-gradient(135deg,#6259DE,#473FC5);color:#fff;font-size:12px;font-weight:900;box-shadow:0 3px 9px rgba(71,63,197,.26)}
.sidebar .nav button.slots-btn:hover,.dark .sidebar .nav button.slots-btn:hover{background:linear-gradient(135deg,#6b62e6,#4f47cf);color:#fff;border:0}
.dark .sidebar .nav button.slots-btn{background:linear-gradient(135deg,#6259DE,#473FC5);color:#fff;border:0;box-shadow:0 3px 9px rgba(71,63,197,.28)}
.sidebar .nav button.slots-btn svg{width:15px;height:15px;stroke:#fff;color:#fff}
.sidebar.collapsed .nav button.slots-btn{width:46px;align-self:center;padding:0}

/* « Créneaux » : violet terne, distinct du bouton « Nouvel événement » */
.sidebar .nav button.slots-btn{background:linear-gradient(135deg,#9a96cf,#837fbd);box-shadow:0 3px 9px rgba(110,105,170,.22)}
.sidebar .nav button.slots-btn:hover,.dark .sidebar .nav button.slots-btn:hover{background:linear-gradient(135deg,#a29ed4,#8b87c4);color:#fff}
.dark .sidebar .nav button.slots-btn{background:linear-gradient(135deg,#5a5690,#4a4678);box-shadow:none}
.dark .sidebar .nav button.slots-btn:hover{background:linear-gradient(135deg,#645fa0,#524e84)}

/* Popups : bordure blanche en mode sombre, noire en mode clair (sauf la fenêtre de bienvenue) */
.modal{border:1px solid #111827}
.dark .modal{border:1px solid #fff}
/* Nouvel événement : croix de fermeture en haut à droite, aide décalée à gauche */
.event-form-modal .modal-x{position:absolute;top:12px;right:14px;z-index:6;width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid #dfe4ec;border-radius:7px;background:#fff;color:#344054;cursor:pointer}
.event-form-modal .modal-x:hover{background:#f1f4f8}
.event-form-modal .modal-x svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.dark .event-form-modal .modal-x{background:#1a1e26;border-color:#303642;color:#e5e7eb}
.dark .event-form-modal .modal-x:hover{background:#222733}
.event-form-modal .help-wrap.floating{right:50px}
/* Bordures des popups adoucies */
.modal{border:1px solid rgba(17,24,39,.3)}
.dark .modal{border:1px solid rgba(255,255,255,.3)}

/* Lanceur d'applications : 3 applications par ligne, identique dans tous les produits Zeshel. */
.apps-menu{width:264px;max-width:calc(100vw - 16px);padding:10px}
.apps-grid{grid-template-columns:repeat(3,1fr);gap:2px}
.apps-title{padding:0 0 8px calc(((100% - 4px) / 3 - 34px) / 2)}

/* Écran de chargement : barre qui se remplit (3,4 s), même dégradé que Drive, Mail et Vizio. */
#boot .boot-splash-bar span{width:0%;background:linear-gradient(90deg,#473FC5,#27B86B);animation:boot-fill 3.4s linear forwards}
