@font-face{font-family:Inter;src:url("assets/Inter-Variable.ttf") format("truetype");font-style:normal;font-weight:100 900;font-display:swap}
:root{--app-gutter:clamp(20px,4vw,68px);color-scheme:dark;--theme-background:#0C0C0F;--theme-surface:#232326;--theme-surface-raised:#2C2C30;--theme-surface-soft:#19191C;--theme-text:#F5F5F7;--theme-text-muted:#B0B0B7;--theme-border:rgba(255,255,255,.12);--theme-shadow:0 12px 32px rgba(0,0,0,.22);--citron:#F5F5F7;--coral:#F18475;--amber:#F1C76A}
*{box-sizing:border-box}html{min-width:320px;min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100vh;background:var(--theme-background);color:var(--theme-text);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{color:inherit}[hidden]{display:none!important}
.home-screen{min-height:100vh;padding:24px var(--app-gutter) 18px;transition:opacity .22s cubic-bezier(.22,.8,.22,1)}body.agenda-open{overflow:hidden}body.agenda-open .home-screen{visibility:hidden;pointer-events:none}.topbar{height:54px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:4}.brand-mark{display:grid;place-items:center;flex:none;width:54px;height:54px}.brand-mark img{display:block;width:54px;height:54px;object-fit:contain}.ui-icon{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ui-icon-dots{fill:currentColor;stroke:none}.round-arrow .ui-icon{width:19px;height:19px}.control-button .ui-icon,.mini-agenda-nav .ui-icon,.project-open .ui-icon{width:16px;height:16px}.agenda-task-open .ui-icon,.pr-icon-button .ui-icon,.round-action .ui-icon{width:15px;height:15px}.duration-adjust .ui-icon{width:16px;height:16px}.conflict-arrow{width:14px;height:14px}.top-actions{display:flex;align-items:center;gap:14px;position:relative}.round-action{appearance:none;display:grid;place-items:center;width:66px;height:66px;border:1px solid rgba(245,245,247,.22);border-radius:50%;background:rgba(255,255,255,.15);color:var(--theme-text);cursor:pointer}.round-action:hover{background:rgba(255,255,255,.27)}.round-action svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.date-chip{padding:10px 16px;border:1px solid var(--theme-border);border-radius:24px;color:var(--theme-text-muted);font-size:14px}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:36px auto 0;max-width:1545px}.glass-card{position:relative;border:1px solid var(--theme-border);border-radius:23px;background:var(--theme-surface);box-shadow:var(--theme-shadow);backdrop-filter:none;overflow:hidden}.today-card,.today-tasks-card{height:305px;padding:26px 42px}.coming-card,.projects-card{grid-column:1/-1;min-height:214px;padding:22px 42px 18px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.card-head h1,.card-head h2{margin:0;color:var(--theme-text);font-weight:490;letter-spacing:-.035em}.card-head h1{font-size:clamp(27px,2.3vw,38px)}.card-head h2{font-size:clamp(25px,2.15vw,36px)}.card-head p{margin:12px 0 0;color:#E0E5DF;font-size:19px}.round-arrow{appearance:none;display:grid;place-items:center;flex:none;width:66px;height:66px;margin:0;padding:0;border:1px solid rgba(245,245,247,.16);border-radius:50%;background:rgba(255,255,255,.04);color:var(--theme-text);cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1),border-color .18s cubic-bezier(.22,.8,.22,1)}.round-arrow:hover{border-color:rgba(245,245,247,.38);background:rgba(255,255,255,.24)}.dayline{position:absolute;left:42px;right:38px;bottom:34px}.dayline-track{position:relative;height:15px;border-radius:99px;background:rgba(255,255,255,.12)}.dayline-progress{height:100%;border-radius:99px;background:#F5F5F7}.dayline-track .tick{position:absolute;top:0;width:1px;height:15px;background:rgba(245,245,247,.68)}.tick.t1{left:25%}.tick.t2{left:50%}.tick.t3{left:75%}.tick.t4{left:60%}.tick.t5{left:65%}.tick.t6{left:70%}.tick.t7{left:80%}.now-pin{position:absolute;left:var(--now);top:-4px;width:22px;height:22px;border-radius:50%;background:var(--citron);transform:translateX(-50%)}.dayline-labels{display:flex;justify-content:space-between;margin-top:16px;color:#E1E6E0;font-size:17px}
.today-task-content{display:flex;align-items:center;gap:22px;min-height:185px;margin-top:12px}.today-task-list{display:flex;flex:1;flex-direction:column;gap:14px;min-width:0}.home-task{display:flex;align-items:center;gap:14px;min-width:0}.home-check{appearance:none;display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:2px solid #EEF2ED;border-radius:50%;background:rgba(245,245,247,.03);color:#65746A;font-size:21px;line-height:1;cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1),border-color .18s cubic-bezier(.22,.8,.22,1)}.home-check:hover{background:rgba(245,245,247,.18)}.home-check.checked{border-color:rgba(245,245,247,.7);background:rgba(245,245,247,.76)}.home-task-text{display:flex;min-width:0;flex-direction:column}.home-task-title-line{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}.home-task-title{appearance:none;display:block;min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:var(--theme-text);text-align:left;font:inherit;font-size:18px;font-weight:420;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.home-task-title:hover{color:#fff;text-decoration:underline;text-decoration-color:rgba(245,245,247,.5);text-underline-offset:3px}.home-task-time{margin-top:3px;color:var(--theme-text-muted);font-size:15px}.home-task.done .home-task-title{text-decoration:line-through}.home-empty{margin:0;color:var(--theme-text-muted);font-size:15px}.home-task-title:focus-visible,.round-arrow:focus-visible,.home-check:focus-visible{outline:2px solid var(--citron);outline-offset:3px}.task-progress{display:flex;min-width:225px;flex-direction:column;align-items:center;padding-left:24px;border-left:1px solid rgba(245,245,247,.32)}.progress-donut{display:grid;place-items:center;width:150px;height:150px;border-radius:50%;position:relative}.progress-donut:before{content:"";position:absolute;inset:11px;border-radius:50%;background:#19191C}.progress-donut span{position:relative;font-size:29px}.task-progress p{margin:10px 0 0;font-size:17px}
.coming-card{min-height:214px}.days-chart{display:flex;align-items:flex-end;justify-content:space-around;gap:25px;height:125px;padding:0 20px 3px}.day-bars{appearance:none;display:flex;min-width:75px;min-height:108px;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;padding:0;border:0;border-radius:13px;background:transparent;color:var(--theme-text);font:inherit;cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1)}.day-bars:hover{background:rgba(255,255,255,.08)}.day-bars:focus-visible{outline:2px solid var(--citron);outline-offset:3px}.bar-set{display:flex;align-items:flex-end;gap:9px;height:80px}.bar{display:block;width:18px;min-height:12px;border-radius:9px;background:rgba(245,245,247,.55);transition:height .2s cubic-bezier(.22,.8,.22,1)}.bar:first-child{background:#F5F5F7}.bar.current{background:var(--citron)}.bar.low{background:rgba(245,245,247,.48)}.day-bars strong{color:var(--theme-text);font-size:17px;font-weight:420;line-height:1.2}.projects-card{min-height:258px}.project-list{margin-top:8px}.project-row{display:flex;align-items:center;gap:16px;min-height:52px;border-bottom:1px solid rgba(245,245,247,.2);cursor:pointer}.project-row:last-child{border:0}.project-open{appearance:none;display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--theme-text);cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1)}.project-open:hover{background:rgba(255,255,255,.18)}.project-open:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.project-open{appearance:none;display:grid;place-items:center;flex:none;width:38px;height:38px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--theme-text);cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1)}.project-open:hover{background:rgba(255,255,255,.18)}.project-open:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.project-dot{width:22px;height:22px;flex:none;border-radius:50%;background:#C7CECA}.project-dot.active{background:var(--citron)}.project-description{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.project-name{font-size:17px}.project-meta{color:var(--theme-text-muted);font-size:14px}.project-chevron{font-size:27px}.home-footer{display:flex;justify-content:space-between;max-width:1545px;margin:12px auto 0;color:rgba(245,245,247,.66);font-size:11px}
.agenda-screen{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;padding:24px var(--app-gutter) 27px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s}.agenda-open .agenda-screen{opacity:1;visibility:visible;pointer-events:auto}.agenda-topbar{height:54px;flex:none;display:flex;align-items:center;justify-content:flex-start;gap:0;margin-bottom:37px}.agenda-title{display:flex;flex:none;align-items:center;justify-content:center;width:54px;height:54px;color:var(--theme-text);font-size:32px;font-weight:620;text-decoration:none}.agenda-title img{width:54px;height:54px;object-fit:contain}.agenda-body{display:flex;flex:1;min-height:0;gap:14px}.agenda-tasks-pane,.calendar-pane{position:relative;min-height:0;border:1px solid var(--theme-border);border-radius:22px;background:var(--theme-surface);box-shadow:var(--theme-shadow);backdrop-filter:none}.agenda-tasks-pane{display:flex;flex:0 0 32%;flex-direction:column;padding:20px 19px;overflow:hidden}.calendar-pane{display:flex;flex:1;flex-direction:column;padding:19px 14px 12px;overflow:hidden}.agenda-tasks-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:55px;margin:0 0 13px}.agenda-list-controls{display:flex;align-items:center;gap:10px;flex:none}.agenda-task-heading{min-width:0}.agenda-task-heading h1{margin:0;font-size:28px;font-weight:600}.scope-clear{appearance:none;display:inline-grid;place-items:center;width:30px;height:30px;margin-left:8px;padding:0;border:1px solid var(--theme-border);border-radius:50%;background:rgba(255,255,255,.12);color:var(--theme-text);font-size:19px;line-height:1;cursor:pointer}.scope-clear:hover{background:rgba(255,255,255,.24)}.scope-clear:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.agenda-task-heading p{margin:4px 0 0;color:var(--theme-text-muted);font-size:12px}.agenda-list-controls{display:flex;align-items:center;gap:10px}.tasks-density-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;border:1px solid rgba(245,245,247,.58);border-radius:50%;background:rgba(245,245,247,.10);cursor:pointer}.density-arrow{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.agenda-body.tasks-compact .density-arrow{transform:rotate(180deg)}
.add-task-button,.control-button,.today-button,.calendar-scale-toggle,.schedule-picker-button,.dialog-cancel,.dialog-confirm,.dialog-delete,.dialog-unschedule,.mini-agenda-nav,.mini-agenda-close,.schedule-clear-button,.dialog-close{appearance:none;border:1px solid rgba(245,245,247,.3);border-radius:13px;background:rgba(255,255,255,.14);color:var(--theme-text);cursor:pointer}.add-task-button:hover,.control-button:hover,.today-button:hover,.calendar-scale-toggle:hover,.dialog-cancel:hover{background:rgba(255,255,255,.25)}.add-task-button{min-height:42px;padding:0 16px;border-radius:24px;font-size:12px;font-weight:550;white-space:nowrap}.agenda-task-list{display:flex;flex:1;flex-direction:column;gap:9px;min-height:0;overflow:auto;padding:2px 0 8px;scrollbar-color:rgba(245,245,247,.36) transparent;scrollbar-width:thin}.agenda-task-list::-webkit-scrollbar,.calendar-grid-wrap::-webkit-scrollbar{width:8px;height:8px}.agenda-task-list::-webkit-scrollbar-thumb,.calendar-grid-wrap::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:rgba(245,245,247,.34);background-clip:padding-box}.agenda-task-list::-webkit-scrollbar-track,.calendar-grid-wrap::-webkit-scrollbar-track{background:transparent}.agenda-task-list:empty:after{content:"Aucune tâche prévue pour le moment";padding:18px 0;color:var(--theme-text-muted);font-size:13px}.agenda-empty{display:flex;flex-direction:column;gap:6px;padding:18px 4px;color:var(--theme-text-muted);font-size:13px}.agenda-empty strong{color:var(--theme-text);font-size:14px;font-weight:500}.agenda-task-row{position:relative;display:flex;align-items:center;gap:10px;min-height:68px;padding:9px 10px;border:1px solid rgba(245,245,247,.25);border-radius:17px;background:rgba(255,255,255,.17);cursor:grab}.agenda-task-row:hover{background:rgba(255,255,255,.24)}.agenda-task-row.is-done{opacity:.62}.agenda-task-row.needs-reschedule{border-color:rgba(241,132,117,.65)}.drag-grip{flex:none;width:16px;color:rgba(245,245,247,.84);font-size:19px;cursor:grab}.agenda-task-check{appearance:none;display:grid;place-items:center;flex:none;width:26px;height:26px;padding:0;border:1.5px solid rgba(245,245,247,.72);border-radius:50%;background:transparent;color:#5A6B60;font-size:15px;line-height:1;cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1),border-color .18s cubic-bezier(.22,.8,.22,1)}.agenda-task-check:hover{border-color:#fff;background:rgba(245,245,247,.16)}.agenda-task-check:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.agenda-task-check.checked{background:rgba(255,255,255,.72)}.agenda-task-main{appearance:none;display:flex;flex:1;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;min-width:0;min-height:44px;padding:0;border:0;background:transparent;color:var(--theme-text);text-align:left;cursor:pointer}.agenda-task-main:hover,.agenda-task-main:active{background:transparent}.agenda-task-main:focus-visible{outline:2px solid var(--citron);outline-offset:2px;border-radius:6px}.agenda-task-title-line{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}.agenda-task-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:520;line-height:1.25;overflow-wrap:normal}.urgency-dot{display:inline-block;width:9px;height:9px;flex:none;border-radius:50%;background:#B0B0B7}.urgency-low{background:#B9C4BB}.urgency-normal{background:var(--citron)}.urgency-high{background:var(--amber)}.urgency-urgent{background:var(--coral)}.agenda-task-subtitle{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:2px;min-width:0;color:var(--theme-text-muted);font-size:11px;line-height:1.3}.agenda-task-date,.agenda-task-time,.agenda-task-kind,.agenda-task-due{display:inline-flex;min-width:0}.agenda-task-duration{display:flex;align-items:center;gap:7px;min-width:68px;font-size:12px;white-space:nowrap}.agenda-task-details{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:48px;min-height:30px;padding:0 9px;border:1px solid var(--theme-border);border-radius:10px;background:rgba(255,255,255,.11);color:var(--theme-text);font-size:11px;font-weight:450;line-height:1;white-space:nowrap;cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1),border-color .18s cubic-bezier(.22,.8,.22,1)}.agenda-task-details:hover,.agenda-task-details[aria-expanded=true]{border-color:rgba(245,245,247,.68);background:rgba(245,245,247,.14)}.agenda-task-details:focus-visible,.agenda-task-open:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.clock-icon{position:relative;width:20px;height:20px;flex:none;border:1.5px solid rgba(245,245,247,.8);border-radius:50%}.clock-icon:before,.clock-icon:after{content:"";position:absolute;background:currentColor}.clock-icon:before{left:9px;top:4px;width:1px;height:5px}.clock-icon:after{left:9px;top:8px;width:4px;height:1px}.agenda-task-open{appearance:none;display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid var(--theme-border);border-radius:50%;background:rgba(255,255,255,.14);color:var(--theme-text);cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1)}.agenda-task-open:hover,.agenda-task-open[aria-expanded=true]{background:rgba(255,255,255,.28)}.agenda-task-detail{flex:1 0 100%;padding:8px 10px 3px 36px;color:var(--theme-text-muted);font-size:12px}.agenda-task-detail p{margin:0 0 6px}.agenda-task-detail>div{display:flex;flex-wrap:wrap;gap:5px 12px}.agenda-task-detail>div span{white-space:nowrap}.agenda-body.tasks-compact .agenda-task-date,.agenda-body.tasks-compact .agenda-task-kind{display:none}.agenda-task-row.has-details{flex-wrap:wrap}
.agenda-body.tasks-compact .agenda-tasks-pane{flex-basis:25%;padding:15px 12px}.agenda-body.tasks-compact .agenda-task-row{min-height:46px;padding:5px 7px;gap:6px}.agenda-body.tasks-compact .drag-grip,.agenda-body.tasks-compact .agenda-task-check,.agenda-body.tasks-compact .agenda-task-duration,.agenda-body.tasks-compact .agenda-task-detail{display:none}.agenda-body.tasks-compact .agenda-task-main{gap:3px;min-height:34px}.agenda-body.tasks-compact .agenda-task-title{font-size:12px}.agenda-body.tasks-compact .agenda-task-subtitle{font-size:10px}.agenda-body.tasks-compact .agenda-task-open{width:26px;height:26px}.agenda-body.tasks-compact .agenda-task-details{min-width:44px;min-height:28px}.agenda-body.list-only .agenda-tasks-pane{flex:1;padding:38px 44px}.agenda-body.list-only .agenda-task-heading h1{font-size:54px}.agenda-body.list-only .agenda-task-row{min-height:110px;padding:16px 26px;gap:28px}.agenda-body.list-only .agenda-task-title{font-size:25px}.agenda-body.list-only .agenda-task-subtitle{font-size:15px}.agenda-body.list-only .agenda-task-duration{font-size:18px}.agenda-body.list-only .agenda-task-open,.agenda-body.list-only .tasks-density-toggle,.agenda-body.list-only .calendar-pane{display:none}
.agenda-edge-toggle{appearance:none;position:fixed;z-index:25;right:0;top:50%;display:grid;place-items:center;width:46px;height:74px;transform:translateY(-50%);padding:0;border:0;border-radius:16px 0 0 16px;background:rgba(35,35,38,.96);color:var(--citron);font-size:35px;line-height:1;cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1)}.agenda-edge-toggle:hover{background:rgba(44,44,48,.98)}.agenda-edge-toggle:focus-visible{outline:2px solid var(--citron);outline-offset:-4px}.edge-chevron{transition:transform .2s}.agenda-open .edge-chevron{transform:rotate(180deg)}.agenda-menu,.menu-popover,.task-context-menu{position:fixed;z-index:50;min-width:180px;padding:7px;border:1px solid var(--theme-border);border-radius:14px;background:#232326;box-shadow:0 12px 30px rgba(20,27,22,.25);backdrop-filter:none}.agenda-menu{top:85px;right:45px}.menu-popover{top:74px;right:0}.agenda-menu button,.menu-popover button,.task-context-menu button{appearance:none;display:block;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--theme-text);text-align:left;font-size:13px;cursor:pointer}.agenda-menu button:hover,.menu-popover button:hover,.task-context-menu button:hover{background:rgba(255,255,255,.2)}
.calendar-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;margin:0 0 8px;padding:0 10px}.calendar-head h2{flex:1;min-width:160px;margin:0;font-size:27px;font-weight:600}.view-switch{display:flex;align-items:center;gap:2px;padding:4px;border:1px solid rgba(245,245,247,.3);border-radius:30px}.view-switch button{appearance:none;min-width:82px;min-height:44px;padding:10px 16px;border:0;border-radius:22px;background:transparent;color:var(--theme-text);font-size:15px;line-height:1.2;cursor:pointer;transition:background .18s cubic-bezier(.22,.8,.22,1)}.view-switch button:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.view-switch button.active{background:rgba(255,255,255,.34);box-shadow:inset 0 0 0 1px rgba(245,245,247,.2);font-weight:600}.calendar-controls{position:relative;display:flex;align-items:center;gap:8px}.control-button{display:grid;place-items:center;width:39px;height:39px;padding:0}.today-button{min-height:39px;padding:0 15px;font-size:12px;white-space:nowrap}.calendar-scale-control{position:relative}.calendar-scale-toggle{min-height:39px;padding:0 11px;font-size:13px}.calendar-scale-menu{position:absolute;z-index:12;top:45px;left:0;display:flex;min-width:130px;flex-direction:column;padding:5px;border:1px solid var(--theme-border);border-radius:12px;background:rgba(105,121,111,.98)}.calendar-scale-menu button{appearance:none;width:100%;padding:9px;border:0;border-radius:8px;background:transparent;color:var(--theme-text);text-align:left;font-size:12px;cursor:pointer}.calendar-scale-menu button:hover,.calendar-scale-menu button[aria-pressed=true]{background:rgba(255,255,255,.2)}.calendar-scale-menu button:focus-visible{outline:2px solid var(--citron);outline-offset:1px}
.calendar-grid-wrap{display:flex;flex:1;min-height:0;overflow:auto;padding-top:36px;scrollbar-color:rgba(245,245,247,.35) transparent;scrollbar-width:thin}.calendar-hours{position:relative;flex:0 0 55px;border-top:1px solid rgba(245,245,247,.16)}.hour-label{position:absolute;right:9px;transform:translateY(-50%);color:#CCD2CA;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.calendar-board{position:relative;display:grid;flex:1;grid-template-columns:repeat(5,minmax(90px,1fr));grid-template-rows:minmax(0,1fr);min-width:550px;border-top:1px solid rgba(245,245,247,.17);border-left:1px solid rgba(245,245,247,.18)}.calendar-column{position:relative;min-width:0;border-right:1px solid rgba(245,245,247,.13);background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(4.166667% - 1px),rgba(245,245,247,.15) calc(4.166667% - 1px),rgba(245,245,247,.15) 4.166667%);touch-action:pan-y}.calendar-board[data-step="30"] .calendar-column{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--slot-height) - 1px),rgba(245,245,247,.08) calc(var(--slot-height) - 1px),rgba(245,245,247,.08) var(--slot-height)),repeating-linear-gradient(to bottom,transparent 0,transparent calc(4.166667% - 1px),rgba(245,245,247,.15) calc(4.166667% - 1px),rgba(245,245,247,.15) 4.166667%)}.calendar-board[data-step="15"] .calendar-column{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--slot-height) - 1px),rgba(245,245,247,.075) calc(var(--slot-height) - 1px),rgba(245,245,247,.075) var(--slot-height)),repeating-linear-gradient(to bottom,transparent 0,transparent calc(4.166667% - 1px),rgba(245,245,247,.15) calc(4.166667% - 1px),rgba(245,245,247,.15) 4.166667%)}.calendar-day-heading{position:absolute;z-index:2;top:-36px;left:0;right:0;display:grid;place-items:center;height:35px;color:#F0F2EE;font-size:13px}
.calendar-event{position:absolute;z-index:3;left:5px;right:5px;top:calc(var(--start)*4.166667%);height:calc(var(--duration)*4.166667% - 4px);min-height:0;padding:8px 8px 7px 12px;overflow:hidden;border:1px solid rgba(245,245,247,.2);border-left:5px solid var(--citron);border-radius:10px;background:rgba(155,168,155,.32);box-shadow:0 6px 18px rgba(0,0,0,.12);color:#F5F5F7;cursor:grab;touch-action:none}.calendar-event:hover{background:rgba(255,255,255,.4)}.calendar-event:active{cursor:grabbing}.calendar-event strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:560;line-height:1.22;word-break:normal;overflow-wrap:break-word}.calendar-event small{display:block;margin-top:5px;overflow:hidden;color:#E0E6DF;font-size:11px;line-height:1.2}.calendar-event.compact-event{padding:0 6px 0 9px;border-radius:8px}.calendar-event.compact-event strong{display:block;font-size:11px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-event.compact-event small{display:none}.calendar-event[data-urgency=low]{border-left-color:#B0B0B7}.calendar-event[data-urgency=high]{border-left-color:#F1C76A}.calendar-event[data-urgency=urgent]{border-left-color:#F18475}.calendar-event.is-complete{opacity:.65}.calendar-column.drop-target{background-color:rgba(245,245,247,.07)}.calendar-column.drop-target:before{content:"";position:absolute;z-index:2;left:4px;right:4px;top:var(--drop-top);height:var(--drop-height);border:1px dashed rgba(245,245,247,.92);border-radius:8px;background:rgba(245,245,247,.11);pointer-events:none}.calendar-event.is-dragging{pointer-events:none;border-color:rgba(245,245,247,.76);box-shadow:0 14px 30px rgba(0,0,0,.22),0 0 0 1px rgba(245,245,247,.42);transform:rotate(-1deg)}.calendar-event:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.event-resize{position:absolute;z-index:5;left:0;right:0;bottom:0;display:grid;place-items:center;height:10px;cursor:ns-resize}.event-resize:after{content:"";width:28px;height:2px;border-radius:2px;background:rgba(245,245,247,.72);opacity:.45;transition:opacity .16s}.calendar-event:hover .event-resize:after{opacity:.95}.minor-hour-label{font-size:10px;color:rgba(245,245,247,.62)}
.calendar-board.month-view{grid-template-columns:repeat(12,minmax(260px,1fr));grid-template-rows:minmax(0,1fr);flex:none;gap:12px;min-width:3360px;border:0}.calendar-grid-wrap.month-mode{padding-top:0}.calendar-board.month-view .calendar-column{display:flex;flex-direction:column;padding:12px;border:1px solid rgba(255,255,255,.34);border-radius:16px;background:rgba(255,255,255,.13)}.calendar-board.month-view .calendar-column.is-selected-month{border-color:rgba(245,245,247,.66);box-shadow:0 0 0 1px rgba(245,245,247,.18),0 0 20px rgba(245,245,247,.1)}.calendar-board.month-view .calendar-column:before,.calendar-board.month-view .calendar-column:after{display:none}.month-column-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-height:34px;padding:0 2px 9px;border-bottom:1px solid rgba(245,245,247,.22)}.month-column-head h3{margin:0;font-size:20px;font-weight:520;text-transform:capitalize}.month-column-head span{color:var(--theme-text-muted);font-size:11px;white-space:nowrap}.month-entry-list{display:flex;flex:1;flex-direction:column;gap:9px;min-height:0;margin-top:11px;padding:1px 2px 4px;overflow:auto}.calendar-board.month-view .calendar-event.month-event{position:relative;inset:auto;top:auto!important;right:auto;left:auto;width:100%;height:auto!important;min-height:62px;flex:none;padding:9px 11px;border-left-width:4px;border-radius:11px;background:rgba(255,255,255,.24);cursor:grab}.calendar-board.month-view .calendar-event.month-event strong{font-size:13px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.calendar-board.month-view .calendar-event.month-event small{display:block;margin-top:6px;color:var(--theme-text-muted);font-size:11px}.calendar-board.month-view .calendar-column.drop-target:before{top:44px;right:7px;bottom:7px;left:7px;height:auto}
.hour-end-marker{position:absolute;left:0;right:0;z-index:4;height:0;transform:translateY(-50%);pointer-events:none}.hour-end-marker:before{content:"";position:absolute;right:0;top:0;width:7px;height:1px;background:rgba(255,255,255,.92)}.hour-end-marker:after{content:attr(data-time);position:absolute;right:9px;top:-6px;padding:0 2px;border-radius:3px;background:rgba(112,127,117,.88);color:#fff;font-size:9px;line-height:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.task-context-menu{z-index:70}.dialog-scrim{position:fixed;z-index:80;inset:0;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:none}.app-dialog{position:relative;width:min(620px,100%);max-height:90vh;overflow:auto;padding:27px 30px 24px;border:1px solid rgba(255,255,255,.48);border-radius:24px;background:#232326;box-shadow:0 22px 60px rgba(22,30,25,.3);color:var(--theme-text)}.app-dialog h2{margin:0;font-size:24px;font-weight:580}.app-dialog>p,.task-dialog-head p{margin:8px 0 0;color:var(--theme-text-muted);font-size:13px;line-height:1.45}.task-dialog{width:min(980px,100%);max-height:90vh;max-height:90dvh;padding:25px 30px 22px}.task-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}.task-dialog-head h2{margin:0}.dialog-close{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;font-size:23px}.task-dialog-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px}.dialog-field{display:flex;min-width:0;flex-direction:column;gap:6px;font-size:13px;font-weight:500}.dialog-field input,.dialog-field textarea,.dialog-field select,.urgency-field{width:100%;min-height:44px;padding:10px 12px;border:1px solid rgba(245,245,247,.38);border-radius:13px;background:rgba(255,255,255,.2);color:var(--theme-text);font-size:14px}.dialog-field textarea{min-height:76px;resize:vertical}.dialog-field small{color:var(--theme-text-muted);font-size:11px;font-weight:400}.dialog-field select{appearance:none}.dialog-field select option{background:#232326;color:#fff}.full-field{grid-column:1/-1}.urgency-field{display:flex;align-items:center;gap:10px;padding:0 11px}.urgency-field select{min-height:40px;padding:7px 0;border:0;background:transparent}.schedule-form-title{grid-column:1/-1;margin:8px 0 -4px;padding-top:12px;border-top:1px solid rgba(245,245,247,.24);font-size:15px}.schedule-picker-launch{display:flex;flex-direction:column;gap:7px}.schedule-picker-label{display:block;margin-bottom:5px;color:var(--theme-text-muted);font-size:12px}.schedule-picker-choice{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.schedule-picker-button{min-height:40px;padding:0 13px;font-size:12px}.schedule-selection-summary{margin:0;color:var(--theme-text-muted);font-size:12px}.schedule-clear-button{min-height:31px;padding:0 9px;font-size:11px}.task-form-error{grid-column:1/-1;margin:0;padding:9px 11px;border:1px solid rgba(241,132,117,.55);border-radius:9px;background:rgba(241,132,117,.12);font-size:12px}.dialog-actions{display:flex;align-items:center;gap:9px;margin-top:20px}.dialog-actions button{min-height:40px;padding:0 14px;font-size:12px}.dialog-confirm{border-color:var(--citron);background:var(--citron);color:#36422E}.dialog-confirm.danger,.dialog-delete{border-color:rgba(241,132,117,.7);background:rgba(241,132,117,.2)}.dialog-cancel,.dialog-unschedule,.dialog-delete{background:rgba(255,255,255,.15)}.action-spacer{flex:1}.task-dialog-actions{margin-top:18px}
.toast{position:fixed;z-index:100;left:50%;bottom:24px;max-width:min(90vw,480px);padding:11px 16px;border:1px solid var(--theme-border);border-radius:14px;background:rgba(84,100,90,.96);box-shadow:var(--theme-shadow);font-size:13px;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast[data-kind=error]{border-color:var(--coral)}.toast[data-kind=warning]{border-color:var(--amber)}
@media(max-width:1000px){.today-card,.today-tasks-card{padding-right:25px;padding-left:25px}.task-progress{min-width:180px;padding-left:16px}.progress-donut{width:125px;height:125px}.agenda-tasks-pane{flex-basis:37%}.calendar-head{flex-wrap:wrap}.calendar-head h2{font-size:22px}.calendar-controls{gap:5px}.view-switch button{min-width:55px;padding:10px 9px}}
@media(max-width:700px){:root{--app-gutter:15px}.home-screen{padding:14px var(--app-gutter)}.brand-mark,.brand-mark img{width:45px;height:45px}.top-actions{gap:8px}.round-action{width:44px;height:44px}.round-action svg{width:22px;height:22px}.dashboard-grid{grid-template-columns:1fr;gap:10px;margin-top:20px}.today-card,.today-tasks-card,.coming-card,.projects-card{grid-column:1;height:auto;min-height:218px;padding:20px 18px;border-radius:19px}.today-tasks-card{min-height:235px}.projects-card{min-height:230px}.card-head h1{font-size:29px}.card-head h2{font-size:24px}.card-head p{font-size:15px}.round-arrow{width:45px;height:45px;margin:0}.dayline{left:18px;right:18px;bottom:20px}.dayline-labels{font-size:12px}.today-task-content{align-items:stretch;flex-direction:column;gap:8px;min-height:160px}.home-check{width:28px;height:28px}.home-task-title{font-size:13px}.home-task-time{font-size:11px}.task-progress{display:flex;min-width:0;width:100%;flex-direction:row;justify-content:space-between;padding:8px 0 0;border-left:0;border-top:1px solid rgba(245,245,247,.24)}.progress-donut{width:64px;height:64px}.progress-donut:before{inset:6px}.progress-donut span{font-size:17px}.task-progress p{margin:0;text-align:right;font-size:12px}.days-chart{height:115px;gap:5px;padding:0}.day-bars{gap:7px;min-width:56px;min-height:86px}.bar-set{height:58px;gap:5px}.bar{width:12px}.day-chart-item{min-width:43px;font-size:12px}.project-row{min-height:51px;gap:10px}.project-name{font-size:14px}.project-meta{font-size:11px}.agenda-screen{padding:14px var(--app-gutter)}.agenda-topbar{height:54px;margin-bottom:0}.agenda-title{width:45px;height:45px;font-size:21px}.agenda-title img{width:45px;height:45px}.agenda-body{gap:7px}.agenda-tasks-pane{flex-basis:42%;padding:12px 8px;border-radius:15px}.calendar-pane{padding:9px 6px 7px;border-radius:15px}.agenda-tasks-head{min-height:39px;margin-bottom:7px;gap:4px}.agenda-task-heading h1{font-size:17px}.agenda-list-controls{gap:5px}.tasks-density-toggle{width:30px;height:30px}.density-arrow{width:15px;height:15px}.add-task-button{min-height:32px;padding:0 8px;font-size:9px}.agenda-task-list{gap:6px}.agenda-task-row{min-height:54px;padding:6px 5px;gap:5px;border-radius:12px}.drag-grip{width:9px;font-size:13px}.agenda-task-check{width:18px;height:18px}.agenda-task-title-line{gap:4px}.urgency-dot{width:6px;height:6px}.agenda-task-title{font-size:10px}.agenda-task-subtitle{font-size:8px;column-gap:4px}.agenda-task-duration{display:none}.agenda-task-open{width:34px;height:34px}.agenda-task-details{min-width:44px;min-height:34px}.agenda-task-check{width:26px;height:26px}.agenda-body.tasks-compact .agenda-tasks-pane{flex-basis:34%;padding:9px 5px}.calendar-head{min-height:54px;display:grid;grid-template-columns:1fr auto;gap:5px;margin-bottom:4px;padding:0 2px}.calendar-head h2{min-width:0;font-size:14px}.view-switch{grid-column:1/-1;grid-row:2;justify-self:center;padding:2px}.view-switch button{min-width:47px;padding:6px 7px;font-size:10px}.calendar-controls{grid-column:2;grid-row:1;gap:3px}.control-button,.today-button,.calendar-scale-toggle{min-height:30px;height:30px;padding:0 6px;font-size:9px}.control-button{width:27px}.calendar-grid-wrap{padding-top:28px}.calendar-hours{flex-basis:30px}.hour-label{right:4px;font-size:9px}.calendar-board{min-width:540px;grid-template-rows:minmax(0,1fr)}.calendar-event{left:2px;right:2px;padding:5px 4px 4px 7px;border-left-width:3px;border-radius:7px}.calendar-event strong{font-size:10px}.calendar-event small{font-size:8px;margin-top:3px}.calendar-event.compact-event{padding:2px 3px 2px 5px}.calendar-event.compact-event strong{font-size:8px}.agenda-body.list-only .agenda-tasks-pane{padding:20px 13px}.agenda-body.list-only .agenda-task-heading h1{font-size:28px}.agenda-body.list-only .agenda-task-row{min-height:65px;padding:8px;gap:8px}.agenda-body.list-only .agenda-task-title{font-size:13px}.agenda-edge-toggle{width:27px;height:56px;font-size:24px}.app-dialog,.task-dialog{width:min(980px,100%);max-height:90vh;max-height:90dvh;padding:25px 30px 22px}.app-dialog h2{font-size:20px}.task-dialog-fields{grid-template-columns:1fr;gap:10px}.full-field,.schedule-form-title,.task-form-error{grid-column:1}.dialog-actions{gap:6px;flex-wrap:wrap}.dialog-actions button{min-height:35px;padding:0 9px;font-size:10px}.action-spacer{display:none}.calendar-board.month-view{min-width:2880px;gap:8px}.calendar-board.month-view .month-column-head h3{font-size:17px}.calendar-board.month-view .calendar-event.month-event{min-height:56px;padding:8px}.hour-end-marker:after{right:7px;font-size:7px}.agenda-screen{overflow:auto;padding:14px var(--app-gutter)}.agenda-body{flex-direction:column;gap:10px;overflow:visible}.agenda-tasks-pane{flex:0 0 auto;max-height:35vh;min-height:180px;padding:12px;border-radius:17px}.agenda-tasks-head{min-height:44px;margin-bottom:8px;gap:8px}.agenda-task-heading h1{font-size:20px}.agenda-task-list{gap:7px}.agenda-task-row{min-height:56px;padding:8px 10px;gap:8px}.agenda-task-check{width:28px;height:28px}.agenda-task-title{font-size:13px}.agenda-task-subtitle{font-size:10px;column-gap:6px}.agenda-task-duration{display:flex;min-width:58px;font-size:10px}.agenda-task-details{min-width:44px;min-height:36px;padding:0 8px;font-size:10px}.agenda-task-open{width:36px;height:36px}.agenda-body.tasks-compact .agenda-task-row{min-height:48px;padding:6px 8px;gap:8px}.agenda-body.tasks-compact .agenda-task-date,.agenda-body.tasks-compact .agenda-task-kind{display:none}.calendar-pane{flex:0 0 58vh;min-height:440px;padding:12px 8px;border-radius:17px}.calendar-head{gap:6px;padding:0 2px}.calendar-head h2{font-size:18px}.calendar-controls{gap:5px}.view-switch{gap:0}.view-switch button{min-width:48px;min-height:36px;padding:0 7px;font-size:10px}.control-button,.today-button,.calendar-scale-toggle{min-height:36px;height:36px;padding:0 8px;font-size:10px}.control-button{width:36px}.calendar-grid-wrap{padding-top:30px}.calendar-board{min-width:640px;grid-template-rows:minmax(0,1fr)}.calendar-hours{flex-basis:43px}.hour-label{right:5px;font-size:11px}.calendar-day-heading{font-size:11px}.agenda-edge-toggle{width:34px;height:58px;font-size:25px}.day-bars{min-height:86px}.bar-set{height:58px;gap:5px}.bar{width:12px}.round-arrow{width:42px;height:42px}.home-check{width:40px;height:40px}.project-open{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Agenda: selected pair, precise event ends and accessible duration handles. */
.agenda-task-row.is-selected{border-color:rgba(245,245,247,.72);background:rgba(245,245,247,.12);box-shadow:0 0 0 1px rgba(245,245,247,.18),0 6px 18px rgba(0,0,0,.24)}.calendar-event.is-selected{z-index:6;border-color:rgba(245,245,247,.76);background:rgba(245,245,247,.16);box-shadow:0 0 0 1px rgba(245,245,247,.48),0 8px 20px rgba(36,47,40,.16)}.event-end-line{position:absolute;z-index:4;left:0;right:5px;height:0;border-top:1px dashed rgba(245,245,247,.68);pointer-events:none}.calendar-column:has(.calendar-event.is-dragging) .event-end-line{opacity:0}.event-resize{height:15px;touch-action:none}.event-resize:after{width:30px;height:3px;border-radius:4px;opacity:.72}.calendar-event:hover .event-resize:after,.calendar-event.is-selected .event-resize:after{opacity:1}.agenda-task-row.is-selected .agenda-task-main{color:#fff}.agenda-task-main[aria-pressed=true] .agenda-task-title{color:#fff}

.event-resize:focus-visible{outline:2px solid var(--citron);outline-offset:2px;border-radius:5px}

/* Task editor: duration stepper and aligned weekly slot picker. */
.duration-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:stretch;overflow:hidden;border:1px solid rgba(245,245,247,.38);border-radius:14px;background:rgba(255,255,255,.2)}
.duration-stepper input{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:0;border-right:1px solid rgba(245,245,247,.22);border-left:1px solid rgba(245,245,247,.22);border-radius:0;background:transparent;color:var(--theme-text);font-size:15px;font-variant-numeric:tabular-nums;text-align:center;appearance:textfield}
.duration-stepper input::-webkit-inner-spin-button,.duration-stepper input::-webkit-outer-spin-button{margin:0;appearance:none}
.duration-adjust{display:grid;place-items:center;min-width:0;padding:0;border:0;background:rgba(255,255,255,.08);color:var(--theme-text);cursor:pointer;transition:background .16s,color .16s}
.duration-adjust:hover{background:rgba(245,245,247,.2);color:#fff}.duration-adjust:active{background:rgba(245,245,247,.32)}.duration-adjust:focus-visible{position:relative;z-index:1;outline:2px solid var(--citron);outline-offset:-3px}
.mini-agenda-picker{padding:14px;border:1px solid var(--theme-border);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.12));box-shadow:0 8px 24px rgba(0,0,0,.24)}
.mini-agenda-head{display:grid;grid-template-columns:38px 1fr 38px auto;align-items:center;gap:8px}
.mini-agenda-head h4{margin:0;color:var(--theme-text);font-size:15px;font-weight:550;text-align:center;font-variant-numeric:tabular-nums}
.mini-agenda-nav,.mini-agenda-close{display:grid;place-items:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:1px solid rgba(245,245,247,.3);border-radius:12px;background:rgba(255,255,255,.12);color:var(--theme-text);cursor:pointer}
.mini-agenda-close{font-size:12px}.mini-agenda-nav:hover,.mini-agenda-close:hover{background:rgba(255,255,255,.24)}
.mini-agenda-legend{display:flex;flex-wrap:wrap;gap:8px 17px;margin:12px 2px 9px;color:var(--theme-text-muted);font-size:11px}
.mini-agenda-legend span{display:inline-flex;align-items:center;gap:6px}.mini-agenda-legend i{width:9px;height:9px;border-radius:50%;background:rgba(245,245,247,.35)}.mini-agenda-legend .legend-free{background:var(--theme-text)}.mini-agenda-legend .legend-flexible{background:var(--citron)}.mini-agenda-legend .legend-blocked{background:rgba(176,176,183,.35)}
.mini-agenda-scroll{max-height:min(38vh,390px);overflow:auto;border:1px solid rgba(245,245,247,.22);border-radius:13px;background:rgba(255,255,255,.035);overscroll-behavior:contain;scrollbar-color:rgba(245,245,247,.35) transparent;scrollbar-width:thin}
.mini-agenda-scroll::-webkit-scrollbar{width:8px;height:8px}.mini-agenda-scroll::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:rgba(245,245,247,.34);background-clip:padding-box}.mini-agenda-scroll::-webkit-scrollbar-track{background:transparent}
.mini-agenda-grid{display:grid;min-width:710px;width:100%;gap:2px;padding:2px;background:rgba(245,245,247,.12)}
.mini-time-heading,.mini-time-label,.mini-day-heading{position:sticky;z-index:4;display:flex;align-items:center;justify-content:center;background:rgba(35,35,38,.98);color:var(--theme-text-muted);font-size:10px;font-variant-numeric:tabular-nums}
.mini-time-heading,.mini-time-label{left:0;z-index:5;border-right:1px solid rgba(245,245,247,.16)}.mini-time-heading{top:0;z-index:8;border-radius:8px 0 0 0;font-size:9px}.mini-time-label{font-size:11px;font-weight:520}.mini-time-label.is-half-hour{color:rgba(245,245,247,.66);font-size:9px;font-weight:400}
.mini-day-heading{top:0;z-index:7;flex-direction:column;gap:2px;border-bottom:1px solid rgba(245,245,247,.2);font-size:11px;line-height:1.15}.mini-day-heading strong{color:var(--theme-text);font-weight:560}.mini-day-heading.is-today{background:var(--theme-surface-raised);box-shadow:inset 0 0 0 1px rgba(245,245,247,.12)}.mini-day-heading.is-selected-day{box-shadow:inset 0 -2px var(--citron)}
.mini-agenda-slot{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;padding:0 3px;border:1px solid rgba(245,245,247,.18);border-radius:7px;background:rgba(255,255,255,.10);color:var(--theme-text);font-size:10px;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .14s,border-color .14s,transform .14s}.mini-agenda-slot>span,.mini-agenda-slot>i{position:relative;z-index:3}
.mini-agenda-slot:hover:not(:disabled){z-index:2;transform:translateY(-1px);border-color:rgba(245,245,247,.62);background:rgba(255,255,255,.25)}.mini-agenda-slot:focus-visible{z-index:3;outline:2px solid var(--citron);outline-offset:1px}.mini-agenda-slot.is-selected{border-color:var(--citron);background:rgba(245,245,247,.32);box-shadow:inset 0 0 0 1px rgba(245,245,247,.35);color:#fff}
.mini-agenda-slot.will-reorganize{border-style:dashed;border-color:rgba(245,245,247,.68);background:rgba(245,245,247,.10)}.mini-agenda-slot i{color:var(--citron);font-size:12px;font-style:normal}.mini-agenda-slot:disabled{border-color:rgba(245,245,247,.08);background:rgba(245,245,247,.035);color:rgba(245,245,247,.38);cursor:not-allowed}.mini-agenda-slot.is-blocked:disabled{background-image:repeating-linear-gradient(135deg,transparent 0 7px,rgba(245,245,247,.035) 7px 9px)}
.mini-agenda-note{margin:10px 2px 0;color:var(--theme-text-muted);font-size:11px;line-height:1.4}
.mini-agenda-options{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:8px 2px 2px;color:var(--theme-text-muted);font-size:11px}.mini-agenda-scale-control{position:relative}.mini-agenda-scale-toggle{display:flex;align-items:center;gap:9px;min-height:34px;padding:0 11px;border:1px solid rgba(245,245,247,.32);border-radius:11px;background:rgba(255,255,255,.14);color:var(--theme-text);font:inherit;cursor:pointer}.mini-agenda-scale-toggle:hover,.mini-agenda-scale-toggle[aria-expanded=true]{border-color:rgba(245,245,247,.58);background:rgba(245,245,247,.13)}.mini-agenda-scale-menu{position:absolute;z-index:30;right:0;top:calc(100% + 6px);display:grid;min-width:142px;padding:5px;border:1px solid rgba(245,245,247,.36);border-radius:12px;background:linear-gradient(145deg,#2C2C30,#232326);box-shadow:0 12px 28px rgba(0,0,0,.32)}.mini-agenda-scale-menu[hidden]{display:none}.mini-agenda-scale-menu button{min-height:34px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--theme-text);font:inherit;text-align:left;cursor:pointer}.mini-agenda-scale-menu button:hover,.mini-agenda-scale-menu button[aria-pressed=true]{background:rgba(245,245,247,.18);color:#fff}.mini-agenda-scale-toggle:focus-visible,.mini-agenda-scale-menu button:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.mini-time-label.is-minor-time{color:rgba(245,245,247,.72);font-size:9px;font-weight:400}.mini-agenda-slot{border-radius:6px}.mini-agenda-picker{position:relative}
@media(max-width:700px){.task-dialog{width:100%;max-height:92vh;max-height:92dvh;padding:18px 14px 14px}.duration-stepper{grid-template-columns:40px minmax(0,1fr) 40px}.mini-agenda-picker{padding:10px;border-radius:14px}.mini-agenda-head{grid-template-columns:34px 1fr 34px auto;gap:5px}.mini-agenda-head h4{font-size:12px}.mini-agenda-nav,.mini-agenda-close{width:32px;height:32px;min-width:32px;min-height:32px;padding:0}.mini-agenda-legend{gap:7px 12px;font-size:10px}.mini-agenda-scroll{max-height:min(34vh,300px)}.mini-agenda-grid{min-width:710px}}

/* Shared dark, matte Shiftlyne theme and the data-driven home sections. */
.glass-card{background:var(--theme-surface);border-color:var(--theme-border);box-shadow:var(--theme-shadow);backdrop-filter:none}
.agenda-tasks-pane,.calendar-pane{background:var(--theme-surface);border-color:var(--theme-border);box-shadow:var(--theme-shadow);backdrop-filter:none}
.dashboard-grid{gap:14px;margin-top:32px}
.today-card,.today-tasks-card{min-height:282px;height:282px;padding:25px 38px}
.coming-card,.programme-card,.months-card,.projects-card{grid-column:1/-1;padding:22px 34px 24px}
.coming-card{min-height:350px}.programme-card{min-height:220px}.months-card{min-height:245px}.projects-card{min-height:190px}
.card-head h1,.card-head h2{font-weight:550;letter-spacing:-.025em}
.card-head p{color:var(--theme-text-muted)}
.round-action,.round-arrow,.control-button,.today-button,.calendar-scale-toggle,.add-task-button,.agenda-edge-toggle{background-color:var(--theme-surface-raised);border-color:var(--theme-border)}
.round-action:hover,.round-arrow:hover,.control-button:hover,.today-button:hover,.calendar-scale-toggle:hover,.add-task-button:hover{background-color:#39393e;border-color:rgba(255,255,255,.2)}
.round-arrow{width:48px;height:48px;margin:0;background:var(--theme-surface-soft)}
.dayline-track{background:#3b3b40}.now-pin{background:#F5F5F7;box-shadow:0 0 0 4px rgba(255,255,255,.08)}
.dayline-labels,.card-head p{color:var(--theme-text-muted)}
.today-task-content{gap:30px}.task-progress{min-width:190px}.progress-donut{width:142px;height:142px}.progress-donut:before{background:var(--theme-surface)}
.coming-card>.card-head{align-items:center;margin-bottom:10px}.section-title-with-icon,.section-head-actions{display:flex;align-items:center;gap:14px;min-width:0}.section-title-with-icon>svg,.months-legend>svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.forecast-total{margin-left:5px;color:var(--theme-text-muted);font-size:16px;font-weight:400}.chart-legend{display:flex;align-items:center;gap:9px;color:var(--theme-text-muted);font-size:13px;white-space:nowrap}.chart-legend i{width:9px;height:9px;border-radius:50%;background:var(--theme-text)}
.days-chart{display:block;height:auto;min-height:235px;padding:0;overflow:visible}.forecast-svg{display:block;width:100%;height:auto;min-height:230px;overflow:visible}.forecast-grid-line line{stroke:rgba(255,255,255,.11);stroke-width:1;stroke-dasharray:2 5}.forecast-grid-line text{fill:#B0B0B7;font:12px Inter,system-ui,sans-serif}.forecast-line{fill:none;stroke:#F5F5F7;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.forecast-guide{stroke:rgba(255,255,255,.24);stroke-width:1;stroke-dasharray:3 4}.forecast-today-guide{stroke:var(--coral);stroke-width:1.5;stroke-dasharray:3 4;opacity:.82}.forecast-point.is-today .forecast-dot{stroke:var(--coral);stroke-width:2.5}.forecast-now-dot{fill:var(--coral)}.forecast-now-label{fill:var(--coral);font:600 10px Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}.forecast-hit{fill:transparent}.forecast-dot{fill:#F5F5F7;stroke:#232326;stroke-width:2}.forecast-value{fill:#F5F5F7;font:600 12px Inter,system-ui,sans-serif}.forecast-date{fill:#D0D0D5;font:12px Inter,system-ui,sans-serif}.forecast-point.is-today .forecast-date{fill:var(--theme-text);font-weight:600}.forecast-point{cursor:pointer;outline:none}.forecast-point:focus .forecast-dot,.forecast-point:hover .forecast-dot{stroke:#fff;stroke-width:4}.forecast-point:focus .forecast-hit{fill:rgba(255,255,255,.06)}
.programme-card>.card-head,.months-card>.card-head,.projects-card>.card-head{align-items:center;margin-bottom:14px}.programme-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-height:140px}.programme-day{display:flex;min-width:0;flex-direction:column;padding:2px 20px 0;border-left:1px solid rgba(255,255,255,.12)}.programme-day:first-child{padding-left:0;border-left:0}.programme-day:last-child{padding-right:0}.programme-day-head{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.programme-day-head h3{margin:0;font-size:16px;font-weight:550}.programme-count{display:flex;align-items:center;gap:8px;color:var(--theme-text-muted);font-size:13px}.programme-count svg,.programme-total svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.programme-day ul{display:flex;flex-direction:column;gap:5px;min-height:45px;margin:0;padding:0;list-style:none}.programme-item{display:flex;align-items:center;gap:8px;width:100%;min-height:31px;padding:4px 9px;border:1px solid transparent;border-radius:10px;background:#2C2C30;color:var(--theme-text);text-align:left;font-size:12px;cursor:pointer}.programme-item:hover{background:#39393e;border-color:var(--theme-border)}.programme-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.programme-status{display:grid;place-items:center;width:20px;height:20px;flex:none}.programme-status svg{width:18px;height:18px;fill:none;stroke:#B0B0B7;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.programme-item.is-appointment .programme-status svg{stroke:#F5F5F7}.programme-more{align-self:flex-start;padding:5px 0;border:0;background:transparent;color:var(--theme-text-muted);font-size:11px;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.programme-empty{min-height:45px;margin:0;color:var(--theme-text-muted);font-size:13px}.programme-total{display:flex;align-items:center;gap:8px;margin:auto 0 0;color:#E7E7EA;font-size:14px}
.months-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px 0 10px}.month-preview{padding:0 28px;border-left:1px solid rgba(255,255,255,.12)}.month-preview:first-child{padding-left:0;border-left:0}.month-preview:last-child{padding-right:0}.month-preview h3{margin:0 0 9px;text-align:center;font-size:14px;font-weight:500}.month-weekdays,.month-dot-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:center;align-items:center;gap:5px 6px}.month-weekdays{margin-bottom:4px;color:var(--theme-text-muted);font-size:10px}.month-day-dot,.month-day-blank{display:grid;place-items:center;width:26px;height:20px}.month-day-dot{padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer}.month-day-dot i{width:7px;height:7px;border-radius:50%;background:#55555b;transition:transform .14s,background-color .14s}.month-day-dot.has-activity i{background:#F5F5F7}.month-day-dot:hover i,.month-day-dot:focus-visible i{transform:scale(1.45);background:#fff}.month-day-dot:focus-visible{outline:1px solid #F5F5F7;outline-offset:0}.months-legend{display:flex;align-items:center;gap:10px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1);color:var(--theme-text-muted);font-size:12px}.months-legend>svg{width:19px;height:19px}.legend-divider{width:1px;height:17px;margin:0 4px;background:var(--theme-border)}
.project-row{border-color:rgba(255,255,255,.12)}.project-dot{background:#85858c}.project-dot.active{background:#F5F5F7}.project-meta,.home-footer{color:var(--theme-text-muted)}
.menu-popover,.agenda-menu,.task-context-menu{background:#232326;border-color:var(--theme-border);box-shadow:0 16px 36px rgba(0,0,0,.48);backdrop-filter:none}.app-dialog{background:#232326;border-color:var(--theme-border);box-shadow:0 22px 60px rgba(0,0,0,.5)}.dialog-field input,.dialog-field textarea,.dialog-field select,.urgency-field,.mini-agenda-picker{background:#2C2C30;border-color:var(--theme-border)}.dialog-field select option{background:#232326;color:#F5F5F7}.dialog-confirm{background:#F5F5F7;border-color:#F5F5F7;color:#151518}.dialog-scrim{background:rgba(0,0,0,.72);backdrop-filter:none}
.agenda-edge-toggle{background:#232326;color:#F5F5F7}.agenda-edge-toggle:hover{background:#343438}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.programme-day{padding-right:12px;padding-left:12px}.programme-day-head h3{font-size:14px}.programme-item{font-size:11px}.month-preview{padding-right:14px;padding-left:14px}}
@media(max-width:700px){.dashboard-grid{gap:12px;margin-top:20px}.today-card,.today-tasks-card,.coming-card,.programme-card,.months-card,.projects-card{grid-column:1;height:auto;min-height:0;padding:19px 16px;border-radius:17px}.today-card{height:220px}.today-tasks-card{min-height:210px}.coming-card{min-height:250px}.coming-card>.card-head{gap:8px}.coming-card .section-title-with-icon{display:grid;grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:3px 8px}.coming-card .section-title-with-icon>svg{grid-column:1;grid-row:1;width:20px;height:20px}.coming-card .section-title-with-icon h2{grid-column:2;grid-row:1}.coming-card .forecast-total{grid-column:2;grid-row:2;margin:0}.section-title-with-icon{gap:8px}.forecast-total{font-size:11px}.section-head-actions{gap:8px}.chart-legend{font-size:10px;gap:5px}.round-arrow{width:38px;height:38px}.days-chart{min-height:0;overflow:visible}.forecast-svg{min-width:0;min-height:0}.coming-card .chart-legend{display:none}.programme-days{grid-template-columns:repeat(5,minmax(170px,1fr));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding-bottom:8px}.programme-day{min-height:145px;scroll-snap-align:start}.programme-day:first-child{padding-left:0}.programme-day-head{gap:6px}.programme-day-head h3{font-size:13px}.programme-count{font-size:11px}.programme-item{min-height:34px;font-size:12px}.programme-total{font-size:12px}.months-preview{grid-template-columns:repeat(4,minmax(190px,1fr));overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.month-preview{scroll-snap-align:start}.month-day-dot,.month-day-blank{width:27px;height:24px}.month-day-dot i{width:8px;height:8px}.months-legend{flex-wrap:wrap;font-size:10px;gap:7px}.legend-divider{height:14px}.task-progress{min-width:0}.progress-donut{width:76px;height:76px}.progress-donut:before{inset:7px}}
.task-recurrence{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:12px;padding:14px 0 2px;border-top:1px solid var(--theme-border)}.task-recurrence-options{display:flex;min-height:64px;align-items:center;gap:12px}.task-recurrence-options[hidden]{display:none}.repeat-indefinitely-toggle{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 13px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:13px;font-weight:500;cursor:pointer}.repeat-indefinitely-toggle input{width:16px;height:16px;margin:0;accent-color:#F5F5F7}.repeat-indefinitely-toggle:has(input:disabled){opacity:.48;cursor:not-allowed}.repeat-until-field{flex:1}.repeat-until-field[hidden]{display:none}.task-recurrence-hint{grid-column:1/-1;margin-top:-5px;color:var(--theme-text-muted);font-size:11px;line-height:1.4}
@media(max-width:700px){.task-recurrence{grid-template-columns:1fr}.task-recurrence-options{min-height:0;flex-wrap:wrap}.task-recurrence-hint{grid-column:1}}

.home-check.checked{border-color:var(--theme-text);background:var(--theme-text);color:var(--theme-background)}.agenda-task-check.checked{border-color:var(--theme-text);background:var(--theme-text);color:var(--theme-background)}.calendar-event.month-recurrence-summary small{margin-top:7px;color:var(--theme-text-muted);font-size:11px;font-weight:520;line-height:1.35}
.manage-categories-button{appearance:none;display:flex;align-items:center;justify-content:center;gap:9px;flex:none;width:100%;min-height:40px;margin-top:9px;padding:0 12px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font:500 12px/1 Inter,system-ui,sans-serif;cursor:pointer;transition:background .18s,border-color .18s,color .18s}.manage-categories-button:hover{border-color:rgba(245,245,247,.3);background:var(--theme-surface-raised);color:var(--theme-text)}.manage-categories-button:focus-visible,.category-add-button:focus-visible,.category-remove-button:focus-visible,.category-color-choice:focus-visible{outline:2px solid var(--theme-text);outline-offset:2px}.manage-categories-button .ui-icon{width:16px;height:16px}.manage-categories-button small{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--theme-surface-raised);color:var(--theme-text-muted);font-size:10px}.category-legend{display:flex;flex:none;flex-wrap:wrap;gap:6px 12px;max-height:58px;overflow:auto;padding:3px 2px;color:var(--theme-text-muted);font-size:10px;scrollbar-width:thin}.category-legend-item{display:inline-flex;align-items:center;gap:6px;max-width:100%}.category-legend-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-dot,.category-preview,.calendar-category-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--category-color,#78A9FF)}.category-preview{width:10px;height:10px}.category-preview.is-empty{border:1px solid var(--theme-text-muted);background:transparent}.category-field{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 11px;border:1px solid rgba(245,245,247,.38);border-radius:13px;background:rgba(255,255,255,.2)}.category-field select{flex:1;min-height:40px;padding:7px 0;border:0;background:transparent;color:var(--theme-text)}.category-manager-dialog{width:min(700px,100%);max-height:88vh;overflow:auto}.category-manager-dialog .task-dialog-head{margin-bottom:2px}.category-manager-list{display:grid;gap:10px;max-height:min(48vh,420px);overflow:auto;padding:2px 3px 2px 0}.category-manager-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(200px,1.25fr) auto;align-items:end;gap:12px;padding:12px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface-soft)}.category-name-field,.category-color-field{display:grid;min-width:0;gap:7px;color:var(--theme-text-muted);font-size:11px}.category-name-field input{width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface-raised);color:var(--theme-text);font:500 13px/1.2 Inter,system-ui,sans-serif}.category-color-palette{display:flex;align-items:center;gap:7px;min-height:38px}.category-color-choice{appearance:none;width:22px;height:22px;padding:0;border:2px solid transparent;border-radius:50%;background:var(--swatch-color);cursor:pointer}.category-color-choice.is-active{outline:2px solid var(--theme-text);outline-offset:2px}.category-remove-button{min-height:36px;padding:0 10px;border:1px solid rgba(241,132,117,.42);border-radius:9px;background:rgba(241,132,117,.08);color:#F2A194;font:500 11px Inter,system-ui,sans-serif;cursor:pointer}.category-remove-button:hover{background:rgba(241,132,117,.16)}.category-add-button{appearance:none;min-height:38px;margin-top:12px;padding:0 12px;border:1px dashed var(--theme-border);border-radius:10px;background:transparent;color:var(--theme-text);font:500 12px Inter,system-ui,sans-serif;cursor:pointer}.category-add-button:hover{background:var(--theme-surface-soft)}.category-manager-empty{margin:10px 2px 0;color:var(--theme-text-muted);font-size:13px}
@media(max-width:700px){.category-manager-row{grid-template-columns:minmax(100px,1fr) auto;gap:9px}.category-color-field{grid-column:1/-1;grid-row:2}.category-color-palette{gap:9px}.category-color-choice{width:24px;height:24px}.category-manager-dialog{padding:20px 18px}.manage-categories-button{min-height:38px}}
.calendar-event strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.calendar-category-dot{position:absolute;top:9px;right:9px;width:8px;height:8px;z-index:4}.calendar-event.compact-event .calendar-category-dot{top:4px;right:5px;width:6px;height:6px}
.category-legend[hidden]{display:none}
.month-day-dot.has-activity.is-past i{background:var(--theme-text-muted);opacity:.48}
.month-day-dot.has-activity.is-past:hover i,.month-day-dot.has-activity.is-past:focus-visible i{background:var(--theme-text-muted)}

:root{--calendar-hour-height:64px}.calendar-grid-wrap:not(.month-mode) .calendar-hours,.calendar-grid-wrap:not(.month-mode) .calendar-board{min-height:calc(var(--calendar-hour-height)*24)}
@media(max-width:700px){:root{--calendar-hour-height:52px}}
.calendar-now-button svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.calendar-now-indicator{position:absolute;z-index:2;left:0;right:0;height:0;border-top:1.5px solid var(--coral);pointer-events:none;filter:drop-shadow(0 0 3px rgba(240,100,93,.48))}.calendar-now-indicator:before{content:"";position:absolute;left:-3px;top:-4px;width:7px;height:7px;border-radius:50%;background:var(--coral)}.calendar-now-label{position:absolute;z-index:9;right:3px;transform:translateY(-50%);padding:1px 3px;border-radius:3px;background:var(--coral);color:#fff;font-size:9px;font-variant-numeric:tabular-nums;line-height:1.25;white-space:nowrap;pointer-events:none}.calendar-day-heading.is-today{color:#fff;text-shadow:0 0 8px rgba(240,100,93,.45)}
.mini-agenda-today-column{position:relative;z-index:0;grid-column:2;grid-row:2 / span 24;border:1px solid rgba(245,245,247,.27);background:rgba(245,245,247,.055);box-shadow:inset 0 0 18px rgba(245,245,247,.07);pointer-events:none}.mini-agenda-slot.is-current-time:after{content:"";position:absolute;z-index:2;top:var(--now-offset);left:-2px;right:-2px;height:1px;background:var(--coral);box-shadow:0 0 3px rgba(240,100,93,.42);pointer-events:none}

/* Espace personnel Projets et Notes */
body.projects-open{overflow:auto}
body.projects-open .home-screen,body.projects-open .agenda-screen,body.projects-open .agenda-edge-toggle,body.projects-open .profile-screen{display:none!important}
.projects-screen{min-height:100vh;background:var(--theme-background);color:var(--theme-text)}
.pr-topbar{height:78px;padding:24px var(--app-gutter) 0;display:flex;align-items:center;justify-content:flex-start;gap:0;border-bottom:1px solid var(--theme-border)}

.pr-topbar nav{height:100%;display:flex;align-items:center;gap:8px}.pr-topbar nav button{appearance:none;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--theme-text-muted);padding:12px 18px;cursor:pointer;font-size:15px}.pr-topbar nav button:hover,.pr-topbar nav button.is-active{color:var(--theme-text);background:var(--theme-surface);border-color:var(--theme-border)}.pr-page{width:min(1480px,calc(100% - 64px));margin:0 auto;padding:34px 0 52px}
.pr-page-heading,.pr-detail-head{display:flex;align-items:center;justify-content:space-between;gap:24px}.pr-page-heading h1,.pr-detail-head h1{font-size:clamp(32px,3vw,46px);letter-spacing:-.04em;font-weight:590;margin:0}.pr-page-heading p,.pr-section-head p{color:var(--theme-text-muted);margin:5px 0 0;font-size:16px}
.pr-heading-tools{display:flex;align-items:center;gap:14px}.pr-search{display:flex;align-items:center;gap:10px;min-width:280px;height:46px;padding:0 14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft);color:var(--theme-text-muted)}.pr-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--theme-text);font-size:14px}.pr-primary,.pr-secondary,.pr-danger{appearance:none;min-height:42px;padding:0 17px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:14px;font-weight:550;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.pr-primary{background:#F5F5F7;color:#17171A;border-color:#F5F5F7}.pr-primary:hover{background:#fff;transform:translateY(-1px)}.pr-secondary:hover,.pr-danger:hover{background:#39393E}.pr-danger{border-color:rgba(241,132,117,.48);color:#F39A8C;background:rgba(241,132,117,.08)}.pr-text-button{border:0;background:transparent;color:var(--theme-text);font-size:14px;cursor:pointer}.pr-toolbar{display:flex;align-items:center;justify-content:space-between;margin:30px 0 20px}.pr-filters{display:flex;gap:8px;flex-wrap:wrap}.pr-filter{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft);color:var(--theme-text-muted);cursor:pointer}.pr-filter.selected{color:var(--theme-text);border-color:rgba(245,245,247,.65);box-shadow:0 0 0 1px rgba(245,245,247,.25) inset}.pr-filter span,.pr-count{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:99px;background:var(--theme-surface-raised);font-size:12px}.pr-result-count,.pr-muted{color:var(--theme-text-muted);font-size:13px}
.pr-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.pr-project-card,.pr-recent,.pr-objective,.pr-tasks,.pr-note-card{border:1px solid var(--theme-border);border-radius:15px;background:linear-gradient(145deg,#232326,#19191C);box-shadow:var(--theme-shadow)}.pr-project-card{min-height:278px;padding:22px 24px;display:flex;flex-direction:column}.pr-card-head{display:flex;align-items:center;gap:14px}.pr-folder{font-size:30px;line-height:1;color:var(--theme-text)}.pr-card-title{flex:1}.pr-card-head h2{margin:0;font-size:20px;font-weight:570}.pr-card-head h2 button{border:0;padding:0;background:none;color:inherit;cursor:pointer;font-weight:inherit}.pr-icon-button{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-raised);color:var(--theme-text);cursor:pointer}.pr-icon-button:hover{background:#414146}.pr-description{min-height:42px;margin:18px 0;color:var(--theme-text-muted);font-size:15px;line-height:1.5}.pr-status{display:inline-flex;align-items:center;gap:7px;margin-top:7px;padding:5px 9px;border:1px solid var(--theme-border);border-radius:99px;color:var(--theme-text-muted);font-size:12px}.pr-status i{width:8px;height:8px;border-radius:50%;background:#F5F5F7}.status-paused i{background:#F1C76A}.status-archived i{background:#76767D}.pr-stats{display:flex;gap:10px;margin-top:auto}.pr-stats span{min-width:120px;padding:11px 14px;border-radius:11px;background:rgba(255,255,255,.055);color:var(--theme-text-muted);font-size:13px}.pr-stats b{display:block;color:var(--theme-text);font-size:18px}.pr-open-card{display:flex;justify-content:space-between;width:100%;margin-top:17px;padding:12px 2px 0;border:0;border-top:1px solid var(--theme-border);background:transparent;color:var(--theme-text);cursor:pointer;text-align:left}.pr-recent{margin-top:22px;padding:20px 24px}.pr-section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.pr-section-head h2,.pr-recent h2{margin:0;font-size:21px;font-weight:560}.pr-recent-row{display:grid;grid-template-columns:48px minmax(180px,1fr) minmax(180px,1fr) 20px;align-items:center;gap:14px;width:100%;padding:9px 0;border:0;border-top:1px solid var(--theme-border);background:transparent;color:var(--theme-text);text-align:left;cursor:pointer}.pr-note-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--theme-surface-raised);font-size:22px}.pr-recent-title b,.pr-recent-title small{display:block}.pr-recent-title small,.pr-preview{margin-top:4px;color:var(--theme-text-muted);font-size:13px}.pr-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pr-empty{padding:54px 20px;text-align:center;border:1px dashed var(--theme-border);border-radius:16px;background:var(--theme-surface-soft)}.pr-empty h2{margin:8px 0}.pr-empty p,.pr-muted-empty{color:var(--theme-text-muted)}.pr-empty-icon{font-size:34px;color:var(--theme-text-muted)}.pr-breadcrumb{display:flex;align-items:center;gap:10px;margin-bottom:18px;color:var(--theme-text-muted);font-size:14px}.pr-breadcrumb button{border:0;background:none;color:var(--theme-text-muted);cursor:pointer}.pr-detail-head{margin-bottom:20px}.pr-objective{padding:17px 22px;margin-bottom:18px}.pr-objective b{font-size:15px}.pr-objective p{font-size:19px;margin:10px 0 0}.pr-notes-section{padding:4px 0 16px}.pr-note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pr-note-card{overflow:hidden}.pr-note-open{display:flex;align-items:flex-start;gap:14px;width:100%;padding:18px;border:0;background:transparent;text-align:left;color:var(--theme-text);cursor:pointer}.pr-note-open>span:nth-child(2){flex:1}.pr-note-open b,.pr-note-open small{display:block}.pr-note-open small{margin-top:7px;color:var(--theme-text-muted);font-size:13px;line-height:1.45}.pr-note-search{margin:6px 0 14px}.pr-tasks{margin-top:16px;padding:0 18px}.pr-tasks summary,.pr-trash summary{display:flex;align-items:center;gap:10px;padding:17px 0;cursor:pointer;list-style:none}.pr-tasks summary::-webkit-details-marker,.pr-trash summary::-webkit-details-marker{display:none}.pr-tasks summary small{margin-left:auto;color:var(--theme-text-muted)}.pr-task-actions{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:12px}.pr-linked-task{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--theme-border)}.pr-linked-task button{border:0;background:none;color:var(--theme-text);cursor:pointer}.pr-editor-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:calc(100vh - 190px);border:1px solid var(--theme-border);border-radius:16px;overflow:hidden;background:var(--theme-surface)}.pr-note-sidebar{padding:16px;border-right:1px solid var(--theme-border);background:var(--theme-surface-soft)}.pr-sidebar-head,.pr-editor-top,.pr-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.pr-sidebar-note,.pr-sidebar-new{display:block;width:100%;margin-top:8px;padding:11px;border:0;border-radius:8px;background:transparent;color:var(--theme-text-muted);text-align:left;cursor:pointer}.pr-sidebar-note.current,.pr-sidebar-note:hover{background:var(--theme-surface-raised);color:var(--theme-text)}.pr-sidebar-new{border-top:1px solid var(--theme-border);margin-top:16px}.pr-editor-main{display:flex;min-width:0;flex-direction:column;padding:20px clamp(18px,3vw,42px)}.pr-editor-top{margin-bottom:24px}.pr-save-status{display:flex;align-items:center;gap:8px;color:var(--theme-text-muted);font-size:12px}.pr-save-status i{width:8px;height:8px;border-radius:50%;background:#B0B0B7}.pr-save-status[data-save-status=saving] i{background:#F1C76A}.pr-save-status[data-save-status=error] i{background:#F18475}.pr-note-title{width:100%;padding:5px 0 14px;border:0;border-bottom:1px solid var(--theme-border);outline:0;background:none;color:var(--theme-text);font-size:32px;font-weight:590}.pr-format-toolbar{display:flex;align-items:center;gap:4px;margin:16px 0 0;padding:7px;border:1px solid var(--theme-border);border-radius:11px}.pr-format-toolbar button{min-width:36px;height:34px;border:0;border-radius:7px;background:transparent;color:var(--theme-text);cursor:pointer}.pr-format-toolbar button:hover{background:var(--theme-surface-raised)}.pr-note-content{flex:1;width:100%;min-height:min(62vh,720px);resize:vertical;padding:22px 4px;border:0;outline:0;background:transparent;color:var(--theme-text);font:400 17px/1.8 Inter,system-ui,sans-serif}.pr-note-footer{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:12px}.pr-preview-pane{padding:20px;border-left:1px solid var(--theme-border);background:var(--theme-surface-soft)}.pr-preview-head{padding-bottom:14px;border-bottom:1px solid var(--theme-border);font-weight:550}.pr-markdown-preview{padding:14px 0;color:var(--theme-text);font-size:15px;line-height:1.7;overflow-wrap:anywhere}.pr-markdown-preview h1,.pr-markdown-preview h2,.pr-markdown-preview h3{line-height:1.3}.pr-modal-backdrop{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.72)}.pr-modal{width:min(540px,100%);padding:24px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface);box-shadow:var(--theme-shadow)}.pr-modal header,.pr-modal footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.pr-modal header h2{margin:0}.pr-modal-body{display:grid;gap:14px;padding:20px 0}.pr-form-field{display:grid;gap:7px;color:var(--theme-text-muted);font-size:13px}.pr-form-field input,.pr-form-field textarea,.pr-form-field select{width:100%;padding:11px 12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-soft);color:var(--theme-text)}.pr-modal footer{justify-content:flex-end}.pr-menu{position:fixed;z-index:110;min-width:180px;padding:6px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);box-shadow:var(--theme-shadow)}.pr-menu button{display:block;width:100%;padding:10px;border:0;border-radius:7px;background:none;color:var(--theme-text);text-align:left;cursor:pointer}.pr-menu button:hover{background:var(--theme-surface-raised)}.pr-menu button:last-child{color:#F18475}.pr-editor-page{max-width:1600px}.pr-note-open:hover,.pr-recent-row:hover{background:rgba(255,255,255,.04)}
@media(max-width:950px){.pr-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-editor-layout{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:650px){.pr-topbar{height:82px;padding:14px var(--app-gutter);gap:0}.pr-topbar nav{gap:2px}.pr-topbar nav button{padding:10px 8px;font-size:13px}.pr-page{width:calc(100% - 30px);padding:22px 0 36px}.pr-page-heading,.pr-detail-head{align-items:flex-start;flex-direction:column}.pr-heading-tools{width:100%;align-items:stretch;flex-direction:column}.pr-search{width:100%;min-width:0}.pr-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.pr-project-grid,.pr-note-list{grid-template-columns:1fr}.pr-project-card{min-height:250px}.pr-recent{padding:16px}.pr-recent-row{grid-template-columns:40px 1fr 18px}.pr-preview{display:none}.pr-note-icon{width:38px;height:38px}.pr-editor-layout{display:flex;min-height:calc(100vh - 150px);flex-direction:column}.pr-note-sidebar{max-height:220px;overflow:auto;border-right:0;border-bottom:1px solid var(--theme-border)}.pr-note-content{min-height:55vh}.pr-note-title{font-size:26px}.pr-note-footer{align-items:stretch;flex-direction:column}.pr-note-footer .pr-primary{width:100%}.pr-task-actions{display:grid}.pr-modal{padding:18px}.pr-filters{gap:5px}.pr-filter{padding:0 9px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.projects-screen *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.app-navigation{height:100%;display:flex;align-items:center;gap:8px;flex:none;min-width:0}
.app-navigation button{appearance:none;min-height:42px;padding:10px 18px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--theme-text-muted);font:500 15px/1 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer;transition:background .16s,border-color .16s,color .16s}
.app-navigation button:hover,.app-navigation button.is-active{color:var(--theme-text);background:var(--theme-surface);border-color:var(--theme-border)}
.topbar>.app-navigation,.agenda-topbar>.app-navigation,.pr-topbar>.app-navigation{margin-left:clamp(8px,2vw,28px);margin-right:auto}
.agenda-title span{display:none}.topbar>.top-actions,.agenda-topbar>.top-actions{margin-left:auto}
.app-navigation button:focus-visible{outline:2px solid var(--citron);outline-offset:2px}
@media(max-width:700px){.topbar,.agenda-topbar,.pr-topbar{gap:6px}.topbar>.app-navigation,.agenda-topbar>.app-navigation,.pr-topbar>.app-navigation{margin-left:0;margin-right:auto}.agenda-topbar{height:54px;margin-bottom:0}.app-navigation{gap:1px}.app-navigation button{min-height:34px;padding:7px 8px;border-radius:9px;font-size:12px}.topbar .top-actions,.agenda-topbar .top-actions{gap:5px}.topbar>.top-actions,.agenda-topbar>.top-actions{margin-left:auto}}

@media(max-width:360px){.topbar .profile-button,.agenda-topbar .profile-button{display:none}}

/* Profil personnel : informations locales, sauvegardes et état du compte en ligne. */
body.profile-open{overflow:auto}
body.profile-open .home-screen,body.profile-open .agenda-screen,body.profile-open .agenda-edge-toggle,body.profile-open .projects-screen{display:none!important}
.profile-screen{min-height:100vh;background:var(--theme-background);color:var(--theme-text)}
.profile-topbar{position:sticky;top:0;z-index:40;height:78px;padding:24px var(--app-gutter) 0;display:flex;align-items:center;justify-content:flex-start;gap:0;border-bottom:1px solid var(--theme-border);background:var(--theme-background)}
.profile-topbar>.app-navigation{margin-left:clamp(8px,2vw,28px);margin-right:auto}
.profile-topbar .top-actions{margin-left:auto}
.profile-topbar .profile-button{width:42px;height:42px;flex:none;padding:0}
.profile-topbar .profile-button svg{width:19px;height:19px}
.profile-topbar .profile-button.is-current{background:var(--theme-surface);border-color:var(--theme-border)}
.profile-page{width:min(1050px,calc(100% - 64px));margin:0 auto;padding:36px 0 64px;display:grid;gap:16px}
.profile-heading{margin-bottom:4px}.profile-eyebrow{margin:0 0 7px;color:var(--theme-text-muted);font-size:13px}.profile-heading h1{margin:0;font-size:clamp(32px,4vw,46px);font-weight:590;letter-spacing:-.035em}.profile-heading>div>p:last-child{margin:8px 0 0;color:var(--theme-text-muted);font-size:15px}
.profile-card{padding:22px 24px;border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-surface);box-shadow:var(--theme-shadow)}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.profile-section-heading h2,.profile-danger-card h2{margin:0;font-size:19px;font-weight:570}.profile-section-heading p,.profile-danger-card p{margin:5px 0 0;color:var(--theme-text-muted);font-size:13px;line-height:1.55}
.profile-details-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-details-form>.dialog-field{min-width:0}.profile-details-form>.dialog-field small{display:block;margin-top:4px;color:var(--theme-text-muted);font-size:11px;font-weight:400;line-height:1.45}.profile-details-form>.dialog-field>span small{display:inline;margin:0}.profile-details-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-soft);color:var(--theme-text);font:inherit}.profile-details-form input:focus-visible{outline:2px solid var(--citron);outline-offset:2px}.profile-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.profile-error{grid-column:1/-1;margin:0;color:#F18475;font-size:13px}.profile-feedback{min-height:1.3em;margin:9px 0 0;color:var(--theme-text-muted);font-size:12px}
.profile-status{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--theme-border);border-radius:99px;color:var(--theme-text-muted);font-size:12px;white-space:nowrap}.profile-status i{width:8px;height:8px;border-radius:50%;background:#E6B566}.profile-body-copy{max-width:850px;margin:0;color:var(--theme-text-muted);font-size:14px;line-height:1.65}.profile-future-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:16px}.profile-future-list span{padding:12px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font-size:12px;line-height:1.45}
.profile-data-actions{margin-top:14px}.profile-facts{display:grid;gap:8px;margin:0;padding-left:20px;color:var(--theme-text-muted);font-size:13px;line-height:1.55}.profile-legal-note{margin:14px 0 0;padding:12px 14px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font-size:12px;line-height:1.5}
.profile-danger-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:rgba(241,132,117,.32)}.profile-danger-card>div{max-width:720px}.profile-danger-card .dialog-delete{flex:0 0 auto}
.profile-screen [hidden]{display:none!important}
@media(max-width:700px){.profile-topbar{height:68px;padding:14px var(--app-gutter) 0}.profile-topbar>.app-navigation{margin-left:0;margin-right:auto}.profile-page{width:calc(100% - 30px);padding:22px 0 36px;gap:11px}.profile-card{padding:17px;border-radius:14px}.profile-section-heading{align-items:flex-start;flex-direction:column}.profile-details-form{grid-template-columns:1fr;gap:12px}.profile-details-form>.dialog-field,.profile-actions,.profile-error{grid-column:1}.profile-actions>*{width:100%;min-height:42px}.profile-future-list{grid-template-columns:1fr}.profile-danger-card{align-items:stretch;flex-direction:column}.profile-danger-card .dialog-delete{width:100%;min-height:42px}}
@media(max-width:460px){.profile-topbar .profile-button{width:34px;height:34px}.profile-topbar .profile-button svg{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.profile-screen *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.month-day-dot.has-activity.is-upcoming i{background:var(--theme-text);opacity:1}
.month-day-dot.has-activity.is-today i{box-shadow:0 0 0 3px rgba(245,245,247,.12)}
@media(max-width:700px){.forecast-value{font-size:12px}.forecast-date{font-size:11px}.forecast-now-label{font-size:9px}}

/* Première ouverture : parcours indépendant des vues et du stockage métier. */
body.onboarding-active{min-height:100svh;overflow:hidden}
body.onboarding-active .home-screen,body.onboarding-active .agenda-screen,body.onboarding-active .agenda-edge-toggle,body.onboarding-active .projects-screen,body.onboarding-active .profile-screen{display:none!important}
.onboarding-screen{position:fixed;z-index:200;inset:0;display:grid;place-items:center;overflow:auto;padding:28px 20px;background:radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.055),transparent 42%),var(--theme-background);color:var(--theme-text)}
.onboarding-storage-error{width:min(540px,100%);margin:14px 0 -18px;padding:10px 12px;border:1px solid var(--coral);border-radius:10px;background:rgba(241,132,117,.1);color:#ffd8d2;font-size:12px;line-height:1.45}
.onboarding-shell{width:min(540px,100%);padding:clamp(22px,5vw,42px);border:1px solid var(--theme-border);border-radius:24px;background:linear-gradient(145deg,var(--theme-surface),var(--theme-surface-soft));box-shadow:var(--theme-shadow)}
.onboarding-brand{display:flex;align-items:center;gap:10px;color:var(--theme-text-muted);font-size:14px;font-weight:550}.onboarding-brand img{width:34px;height:34px;object-fit:contain}.onboarding-progress{display:flex;gap:8px;margin:28px 0 36px}.onboarding-progress span{height:3px;flex:1;border-radius:99px;background:rgba(255,255,255,.12)}.onboarding-progress span.is-current,.onboarding-progress span.is-complete{background:var(--theme-text)}
.onboarding-step{outline:0;animation:onboarding-enter .28s ease both}.onboarding-step>h1{outline:0}.onboarding-welcome-mark{display:grid;place-items:center;width:86px;height:86px;margin:0 auto 24px;border:1px solid var(--theme-border);border-radius:24px;background:var(--theme-surface-raised);animation:onboarding-mark .55s cubic-bezier(.2,.75,.25,1) both}.onboarding-welcome-mark img{width:60px;height:60px;object-fit:contain}.onboarding-kicker{margin:0 0 9px;color:var(--theme-text-muted);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.onboarding-step>h1{margin:0;font-size:clamp(26px,5vw,36px);font-weight:580;letter-spacing:-.035em;line-height:1.12}.onboarding-copy{margin:13px 0 24px;color:var(--theme-text-muted);font-size:15px;line-height:1.6}.onboarding-primary,.onboarding-secondary{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:0 18px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:14px;font-weight:560;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.onboarding-primary{width:100%;border-color:var(--theme-text);background:var(--theme-text);color:var(--theme-background)}.onboarding-primary:hover{background:#fff;transform:translateY(-1px)}.onboarding-secondary:hover{background:#39393E}.onboarding-primary:focus-visible,.onboarding-secondary:focus-visible,.onboarding-back:focus-visible,.onboarding-link:focus-visible,.password-visibility:focus-visible,.onboarding-auth-tabs button:focus-visible{outline:2px solid var(--theme-text);outline-offset:3px}
.onboarding-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:22px 0 16px;padding:4px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface-soft)}.onboarding-auth-tabs button{min-height:40px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--theme-text-muted);font-size:13px;cursor:pointer}.onboarding-auth-tabs button[aria-selected=true]{border-color:var(--theme-border);background:var(--theme-surface-raised);color:var(--theme-text)}.onboarding-auth-panel{display:grid;gap:13px}.onboarding-field{display:grid;gap:7px;color:var(--theme-text);font-size:13px;font-weight:520}.onboarding-field>input,.onboarding-password input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-soft);color:var(--theme-text);font-size:14px}.onboarding-field input[aria-invalid=true]{border-color:var(--coral)}.onboarding-password{display:flex;align-items:center;gap:7px}.onboarding-password input{flex:1}.password-visibility{min-height:40px;padding:0 10px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-raised);color:var(--theme-text-muted);font-size:12px;cursor:pointer}.onboarding-validate{width:100%;margin-top:2px}.onboarding-link,.onboarding-back{justify-self:start;padding:4px 0;border:0;background:transparent;color:var(--theme-text-muted);font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.onboarding-auth-status{margin:14px 0;padding:11px 12px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font-size:12px;line-height:1.5}.onboarding-step>[data-onboarding-next]{margin-top:0}.onboarding-step>.onboarding-back{margin-top:14px}.onboarding-preference-list{display:grid;gap:10px;margin:20px 0}.onboarding-preference{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface-soft);cursor:pointer}.onboarding-preference input{width:18px;height:18px;flex:none;margin:2px 0 0;accent-color:var(--theme-text)}.onboarding-preference strong,.onboarding-preference small{display:block}.onboarding-preference strong{font-size:14px;font-weight:550;line-height:1.4}.onboarding-preference small{margin-top:4px;color:var(--theme-text-muted);font-size:12px;line-height:1.45}.onboarding-local-note{margin:0 0 12px;color:var(--theme-text-muted);font-size:11px;line-height:1.55}.onboarding-notification-status{min-height:18px;margin:0 0 12px;color:var(--theme-text-muted);font-size:12px;line-height:1.45}.onboarding-actions{display:flex;align-items:center;gap:14px;margin-top:20px}.onboarding-actions .onboarding-back{min-height:44px;flex:none}.onboarding-actions .onboarding-primary{flex:1}.device-settings-copy{margin:0 0 18px;color:var(--theme-text-muted);font-size:13px;line-height:1.6}.device-settings-dialog>.dialog-confirm{min-height:42px;padding:0 14px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-raised);color:var(--theme-text);font-weight:540;cursor:pointer}.device-settings-dialog>.dialog-confirm:hover{background:#39393E}
.onboarding-field-error{margin-top:-2px;color:#ffd0c9;font-size:12px;font-weight:450;line-height:1.4}.onboarding-field input:focus-visible,.onboarding-password button:focus-visible,.onboarding-preference input:focus-visible,.device-settings-dialog button:focus-visible{outline:2px solid var(--theme-text);outline-offset:3px}
.pr-top-actions{display:flex;align-items:center;margin-left:auto}.pr-settings-button{min-height:40px;padding:0 13px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:13px;font-weight:520;cursor:pointer}.pr-settings-button:hover{background:#39393E}.pr-settings-button:focus-visible{outline:2px solid var(--theme-text);outline-offset:2px}
.pr-top-actions{gap:12px}.pr-top-actions>.profile-button{width:42px;height:42px;flex:none;padding:0}.pr-top-actions>.profile-button svg{width:19px;height:19px}.pr-top-actions>.pr-settings-button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;padding:0 14px;line-height:1;white-space:nowrap}
@media(max-width:460px){.pr-topbar{gap:3px}.pr-topbar .brand-mark,.pr-topbar .brand-mark img{width:36px;height:36px}.pr-topbar nav button{padding:8px 5px;font-size:11px}.pr-top-actions{gap:5px}.pr-top-actions>.profile-button{width:34px;height:34px}.pr-top-actions>.profile-button svg{width:16px;height:16px}.pr-top-actions>.pr-settings-button{min-height:36px;padding:0 8px;font-size:11px}}
@keyframes onboarding-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes onboarding-mark{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(max-width:600px){.onboarding-screen{align-items:start;padding:14px}.onboarding-shell{margin:auto 0;padding:22px 18px;border-radius:19px}.onboarding-progress{margin:22px 0 27px}.onboarding-step>h1{font-size:28px}.onboarding-copy{font-size:14px}.onboarding-preference{padding:13px}.onboarding-actions{gap:10px}}
@media(prefers-reduced-motion:reduce){.onboarding-step,.onboarding-welcome-mark{animation:none!important}.onboarding-screen *{scroll-behavior:auto!important;transition:none!important}}

/* Shared scroll motion and persistent navigation. */
.motion-reveal{opacity:0;transform:translateY(10px);transition:opacity .52s ease,transform .58s cubic-bezier(.22,.8,.22,1);transition-delay:var(--reveal-delay,0ms)}
.motion-reveal.is-revealed{opacity:1;transform:translateY(0)}
.motion-enabled .dayline-progress{width:100%;transform:scaleX(0);transform-origin:left center;transition:transform 1s cubic-bezier(.22,.8,.22,1)}
.motion-ready .dayline-progress{transform:scaleX(var(--day-progress,0))}
.now-pin{transition:left .65s cubic-bezier(.22,.8,.22,1)}
.home-screen>.topbar{position:sticky;top:0;z-index:40;height:78px;margin-top:-24px;margin-left:calc(-1 * var(--app-gutter));margin-right:calc(-1 * var(--app-gutter));padding:24px var(--app-gutter) 0;background:var(--theme-background)}
.agenda-screen>.agenda-topbar{position:sticky;top:0;z-index:40;height:78px;margin-top:-24px;padding-top:24px;background:var(--theme-background)}
.projects-screen>.pr-topbar{position:sticky;top:0;z-index:40;background:var(--theme-background)}
@media(max-width:700px){.home-screen>.topbar{height:68px;margin-top:-14px;padding-top:14px}.agenda-screen>.agenda-topbar{height:68px;margin-top:-14px;padding-top:14px}}
@media(prefers-reduced-motion:reduce){.motion-reveal,.motion-reveal.is-revealed{opacity:1;transform:none;transition:none!important}.motion-enabled .dayline-progress,.motion-ready .dayline-progress{transform:none;transition:none!important}.now-pin{transition:none!important}}

/* OFM : accent isolé du thème personnel. */
.ofm-screen{--theme-ofm-accent:#008CCF;min-height:100vh;padding:0 var(--app-gutter) 38px;background:var(--theme-background);color:var(--theme-text)}
.ofm-screen[hidden]{display:none!important}
body.ofm-open{overflow:auto}
body.ofm-open .home-screen,body.ofm-open .agenda-screen,body.ofm-open .agenda-edge-toggle,body.ofm-open .projects-screen,body.ofm-open .profile-screen{display:none!important}
.ofm-topbar{position:sticky;top:0;z-index:40;height:78px;margin:0 calc(-1 * var(--app-gutter));padding:0 var(--app-gutter);display:flex;align-items:center;gap:0;border-bottom:1px solid var(--theme-border);background:var(--theme-background)}
.ofm-topbar>.app-navigation{margin-left:clamp(8px,2vw,28px);margin-right:auto}
.ofm-topbar .app-navigation button[data-app-nav=ofm]{display:inline-flex;align-items:center;gap:8px}
.ofm-topbar .app-navigation button[data-app-nav=ofm] svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.ofm-open .ofm-topbar .app-navigation button[data-app-nav=ofm].is-active{border-color:rgba(0,140,207,.32);background:rgba(0,140,207,.14);color:#79cfff}
.ofm-nav-label{color:var(--theme-text-muted);font-size:12px;letter-spacing:.04em}
.ofm-page{width:min(1450px,100%);margin:0 auto;padding:32px 0 0}
.ofm-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:4px 0 28px}
.ofm-eyebrow{margin:0 0 8px;color:var(--theme-text-muted);font-size:10px;font-weight:650;letter-spacing:.12em}
.ofm-page-heading h1,.ofm-space-heading h1{margin:0;color:var(--theme-text);font-size:clamp(29px,3vw,42px);font-weight:610;letter-spacing:-.04em;line-height:1.12}
.ofm-lead{margin:10px 0 0;color:var(--theme-text-muted);font-size:15px;line-height:1.5}
.ofm-heading-actions{display:flex;gap:10px;flex-wrap:wrap}
.ofm-primary,.ofm-secondary,.ofm-icon-button,.ofm-modal-close,.ofm-task-actions button,.ofm-text-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--theme-border);border-radius:11px;color:var(--theme-text);font:550 13px/1.2 Inter,system-ui,sans-serif;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s,color .16s,transform .16s}
.ofm-primary{min-height:42px;padding:0 16px;border-color:var(--theme-ofm-accent);background:var(--theme-ofm-accent);color:#fff}
.ofm-primary:hover{background:#087db5;border-color:#087db5}
.ofm-secondary{min-height:42px;padding:0 15px;background:var(--theme-surface-raised)}
.ofm-secondary:hover,.ofm-icon-button:hover,.ofm-modal-close:hover{background:#39393e}
.ofm-primary:focus-visible,.ofm-secondary:focus-visible,.ofm-icon-button:focus-visible,.ofm-open-space:focus-visible,.ofm-task-check:focus-visible,.ofm-task-actions button:focus-visible,.ofm-modal-close:focus-visible,.ofm-text-button:focus-visible,.ofm-chart-day:focus-visible{outline:2px solid #79cfff;outline-offset:3px}
.ofm-empty-state{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:38px 20px;border:1px dashed rgba(255,255,255,.16);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.025),transparent);text-align:center}
.ofm-empty-mark,.ofm-space-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid rgba(0,140,207,.3);border-radius:16px;background:rgba(0,140,207,.1);color:#79cfff}
.ofm-empty-mark svg,.ofm-space-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ofm-empty-state h2{margin:19px 0 7px;font-size:20px;font-weight:570;letter-spacing:-.02em}
.ofm-empty-state>p{max-width:430px;margin:0;color:var(--theme-text-muted);font-size:13px;line-height:1.55}
.ofm-empty-state>div{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap;justify-content:center}
.ofm-local-notice{display:flex;align-items:flex-start;gap:10px;margin:24px 0 0;padding:13px 15px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font-size:11px;line-height:1.55}
.ofm-local-notice>span:first-child{display:grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid rgba(0,140,207,.55);border-radius:50%;color:#79cfff;font-weight:650}
.ofm-local-notice strong{color:var(--theme-text);font-weight:580}
.ofm-space-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ofm-space-card,.ofm-card{min-width:0;border:1px solid var(--theme-border);border-radius:17px;background:var(--theme-surface);box-shadow:var(--theme-shadow)}
.ofm-space-card{display:flex;flex-direction:column;min-height:245px;padding:20px}
.ofm-space-icon{width:42px;height:42px;border-radius:13px}
.ofm-space-icon svg{width:21px;height:21px}
.ofm-space-kicker{margin:17px 0 5px;color:#79cfff;font-size:9px;font-weight:650;letter-spacing:.12em}
.ofm-space-card h2{margin:0;font-size:20px;font-weight:580;letter-spacing:-.025em;overflow-wrap:anywhere}
.ofm-space-description{min-height:39px;margin:8px 0 18px;color:var(--theme-text-muted);font-size:12px;line-height:1.55}
.ofm-space-meta{display:flex;gap:14px;padding-top:12px;border-top:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:11px}
.ofm-open-space{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:14px;padding:10px 0 0;border:0;background:transparent;color:var(--theme-text);font:550 12px Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.ofm-open-space span{color:#79cfff;font-size:18px}
.ofm-dashboard{padding-top:20px}
.ofm-dashboard-head{display:flex;flex-direction:column;gap:17px;margin-bottom:18px}
.ofm-back-link{align-self:flex-start;padding:5px 0;border:0;background:transparent;color:var(--theme-text-muted);font:500 12px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-back-link:hover{color:var(--theme-text)}
.ofm-space-heading{display:flex;align-items:center;gap:13px;min-width:0}
.ofm-space-badge{display:grid;place-items:center;flex:none;min-width:43px;height:30px;padding:0 8px;border:1px solid rgba(0,140,207,.35);border-radius:9px;background:rgba(0,140,207,.14);color:#79cfff;font-size:10px;font-weight:700;letter-spacing:.06em}
.ofm-space-heading h1{font-size:27px;overflow-wrap:anywhere}
.ofm-space-heading p{margin:4px 0 0;color:var(--theme-text-muted);font-size:12px}
.ofm-members-button{margin-left:auto;white-space:nowrap}
.ofm-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.ofm-card{padding:20px;overflow:hidden}
.ofm-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.ofm-card>header h2{margin:0;font-size:20px;font-weight:580;letter-spacing:-.025em}
.ofm-card .ofm-eyebrow{margin-bottom:5px}
.ofm-icon-button{flex:none;width:38px;height:38px;padding:0;border-radius:50%;background:var(--theme-surface-raised);font-size:24px;font-weight:350}
.ofm-dayline{margin:5px 0 20px}
.ofm-dayline-track{position:relative;height:8px;border-radius:8px;background:#3b3b40;overflow:visible}
.ofm-dayline-progress{position:absolute;inset:0 auto 0 0;width:var(--ofm-day-progress);border-radius:8px;background:linear-gradient(90deg,rgba(0,140,207,.55),#008CCF)}
.ofm-now-pin{position:absolute;top:-4px;left:var(--ofm-day-progress);width:3px;height:16px;transform:translateX(-50%);border-radius:4px;background:#79cfff}
.ofm-dayline>div:last-child{display:flex;justify-content:space-between;margin-top:8px;color:var(--theme-text-muted);font-size:9px}
.ofm-today-content{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:16px;align-items:center;min-height:115px}
.ofm-today-list,.ofm-all-tasks{display:grid;align-content:start;gap:8px;min-width:0}
.ofm-inline-empty{margin:0;padding:14px;border:1px dashed var(--theme-border);border-radius:11px;color:var(--theme-text-muted);font-size:12px;line-height:1.5}
.ofm-progress-wrap{display:flex;flex-direction:column;align-items:center;padding-left:16px;border-left:1px solid var(--theme-border);text-align:center}
.ofm-progress-ring{display:grid;place-items:center;width:94px;height:94px;border-radius:50%;background:conic-gradient(var(--theme-ofm-accent) var(--ofm-progress),#4a4a50 0);position:relative}
.ofm-progress-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:var(--theme-surface)}
.ofm-progress-ring span{position:relative;font-size:20px;font-weight:580}
.ofm-progress-wrap p{margin:9px 0 2px;font-size:11px;font-weight:540}
.ofm-progress-wrap small{color:var(--theme-text-muted);font-size:10px}
.ofm-task-row{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 10px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-raised)}
.ofm-task-row.is-done{opacity:.65}
.ofm-task-row.is-done .ofm-task-copy strong{text-decoration:line-through}
.ofm-task-check{display:grid;place-items:center;flex:none;width:20px;height:20px;padding:0;border:1.5px solid #77777e;border-radius:50%;background:transparent;color:#101014;font-size:13px;font-weight:750;cursor:pointer}
.ofm-task-check[aria-pressed=true]{border-color:#fff;background:#fff}
.ofm-urgency{width:8px;height:8px;flex:none;border-radius:50%;background:#79cfff}
.ofm-urgency.urgency-low{background:#8d9aa4}.ofm-urgency.urgency-normal{background:#79cfff}.ofm-urgency.urgency-high{background:#f1c76a}.ofm-urgency.urgency-urgent{background:#f18475}
.ofm-task-copy{display:grid;gap:3px;flex:1;min-width:0}
.ofm-task-copy strong{overflow:hidden;color:var(--theme-text);font-size:12px;font-weight:560;text-overflow:ellipsis;white-space:nowrap}
.ofm-task-copy>span,.ofm-task-copy small{overflow:hidden;color:var(--theme-text-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.ofm-task-actions{display:flex;align-items:center;gap:4px;flex:none}
.ofm-task-actions button{min-height:28px;padding:0 8px;background:transparent;color:var(--theme-text-muted);font-size:10px}
.ofm-task-actions button:last-child{width:28px;padding:0;font-size:17px}
.ofm-task-actions button:hover{background:var(--theme-surface);color:var(--theme-text)}
.ofm-upcoming-card{display:flex;flex-direction:column}
.ofm-chart-total{color:var(--theme-text-muted);font-size:11px}
.ofm-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;flex:1;min-height:166px;align-items:stretch}
.ofm-chart-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;min-width:0;padding:5px 2px 0;border:0;border-radius:9px;background:transparent;color:var(--theme-text-muted);cursor:pointer}
.ofm-chart-day:hover,.ofm-chart-day.is-today{background:rgba(255,255,255,.035);color:var(--theme-text)}
.ofm-chart-value{min-height:12px;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.ofm-chart-bar-wrap{display:flex;align-items:flex-end;justify-content:center;width:min(28px,72%);height:100px;border-bottom:1px solid var(--theme-border)}
.ofm-chart-bar-wrap i{width:100%;height:var(--bar-height);min-height:2px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#38afe8,#0079b5)}
.ofm-chart-label{min-height:25px;font-size:9px;line-height:1.25;text-align:center}
.ofm-program-card,.ofm-month-card,.ofm-tasks-card{grid-column:1/-1}
.ofm-program-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--theme-border);border-radius:12px;overflow:hidden}
.ofm-program-day{min-width:0;min-height:130px;padding:13px;border-right:1px solid var(--theme-border);background:var(--theme-surface-soft)}
.ofm-program-day:last-child{border-right:0}
.ofm-program-day h3{margin:0 0 7px;font-size:12px;font-weight:560;text-transform:capitalize}
.ofm-program-count,.ofm-program-day>small{color:var(--theme-text-muted);font-size:10px}
.ofm-program-day ul{display:grid;gap:5px;margin:10px 0;padding:0;list-style:none}
.ofm-program-day li{overflow:hidden;color:var(--theme-text);font-size:10px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.ofm-program-day time{margin-right:5px;color:#79cfff;font-size:9px}
.ofm-program-empty{margin:11px 0 6px;color:var(--theme-text-muted);font-size:10px}
.ofm-program-day.is-focused{background:rgba(0,140,207,.12);box-shadow:inset 0 0 0 1px rgba(0,140,207,.38)}
.ofm-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ofm-mini-month{min-width:0;padding:14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft)}
.ofm-mini-month h3{margin:0 0 12px;font-size:12px;font-weight:560;text-transform:capitalize}
.ofm-weekday-labels,.ofm-mini-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
.ofm-weekday-labels{margin-bottom:6px;color:var(--theme-text-muted);font-size:9px}
.ofm-mini-days i{display:grid;place-items:center;min-height:23px;border-radius:6px;color:var(--theme-text-muted);font-size:9px;font-style:normal}
.ofm-mini-days i.has-task{background:rgba(0,140,207,.22);color:#b8e8ff;box-shadow:inset 0 0 0 1px rgba(0,140,207,.4)}
.ofm-tasks-card>header{margin-bottom:13px}
.ofm-all-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}
.ofm-modal-backdrop{position:fixed;z-index:150;inset:0;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}
.ofm-modal{width:min(540px,100%);max-height:min(86vh,780px);overflow:auto;padding:23px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface);box-shadow:0 24px 70px rgba(0,0,0,.5)}
.ofm-modal>header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:21px}
.ofm-modal>header h2{margin:0;font-size:21px;font-weight:590;letter-spacing:-.025em}
.ofm-modal-close{width:34px;height:34px;padding:0;border-radius:50%;background:var(--theme-surface-raised);font-size:20px}
.ofm-form{display:grid;gap:14px}
.ofm-form>label,.ofm-form-row>label{display:grid;gap:7px;min-width:0;color:var(--theme-text);font-size:12px;font-weight:530}
.ofm-form input,.ofm-form textarea,.ofm-form select,.ofm-invite-controls input{width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-soft);color:var(--theme-text);font:13px Inter,system-ui,sans-serif}
.ofm-form textarea{resize:vertical;line-height:1.5}
.ofm-form input:focus-visible,.ofm-form textarea:focus-visible,.ofm-form select:focus-visible,.ofm-invite-controls input:focus-visible{outline:2px solid #79cfff;outline-offset:2px}
.ofm-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ofm-modal-copy{margin:0;color:var(--theme-text-muted);font-size:12px;line-height:1.55}
.ofm-form-error{margin:0;padding:10px 12px;border:1px solid var(--coral);border-radius:9px;background:rgba(241,132,117,.08);color:#ffd8d2;font-size:12px;line-height:1.45}
.ofm-inline-link{display:inline-flex;align-items:center;min-height:30px;margin:6px 6px 0 0;padding:4px 9px;border:1px solid rgba(0,140,207,.48);border-radius:7px;background:rgba(0,140,207,.12);color:#9bdcff;font:inherit;font-weight:650;cursor:pointer}
.ofm-inline-link:hover{background:rgba(0,140,207,.22)}
.ofm-inline-link:focus-visible{outline:2px solid #008CCF;outline-offset:2px}
.ofm-form footer{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}
.ofm-member-list{display:grid;gap:8px}
.ofm-member-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-soft)}
.ofm-member-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:rgba(0,140,207,.16);color:#79cfff;font-size:13px;font-weight:650}
.ofm-member-row>span:nth-child(2){display:grid;gap:3px;min-width:0;flex:1}
.ofm-member-row strong{font-size:12px;font-weight:550}.ofm-member-row small{color:var(--theme-text-muted);font-size:10px}
.ofm-role-chip{padding:5px 8px;border:1px solid var(--theme-border);border-radius:8px;color:var(--theme-text-muted);font-size:9px}
.ofm-invite-panel{margin-top:18px;padding:14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft)}
.ofm-invite-panel h3{margin:0 0 6px;font-size:13px;font-weight:560}
.ofm-invite-panel p{margin:0 0 12px;color:var(--theme-text-muted);font-size:11px;line-height:1.5}
.ofm-invite-controls{display:flex;align-items:center;gap:7px}.ofm-invite-controls input{font-size:10px}.ofm-invite-controls .ofm-primary{flex:none;min-height:38px;padding:0 11px;font-size:11px}
.ofm-text-button{margin-top:10px;padding:7px 0;border:0;background:transparent;color:var(--theme-text-muted);font-size:10px;text-decoration:underline;text-underline-offset:3px}
.ofm-toast{position:fixed;z-index:250;left:50%;bottom:22px;max-width:min(92vw,460px);padding:11px 15px;border:1px solid var(--theme-border);border-radius:12px;background:#29292e;color:var(--theme-text);font-size:12px;opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:opacity .18s,transform .18s}
.ofm-toast.show{opacity:1;transform:translate(-50%,0)}.ofm-toast[data-kind=error]{border-color:var(--coral)}.ofm-toast[data-kind=warning]{border-color:var(--amber)}
@media(max-width:900px){.ofm-space-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ofm-dashboard-grid{grid-template-columns:1fr}.ofm-program-card,.ofm-month-card,.ofm-tasks-card{grid-column:auto}.ofm-upcoming-card{min-height:270px}}
@media(max-width:700px){.ofm-topbar{height:68px}.ofm-topbar>.app-navigation{margin-left:0;margin-right:auto}.ofm-topbar .app-navigation{gap:1px}.ofm-topbar .app-navigation button{min-height:34px;padding:7px 7px;font-size:11px}.ofm-topbar .app-navigation button[data-app-nav=ofm]{gap:4px}.ofm-topbar .app-navigation button[data-app-nav=ofm] svg{width:13px;height:13px}.ofm-nav-label{display:none}.ofm-page{padding-top:23px}.ofm-page-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}.ofm-page-heading h1{font-size:31px}.ofm-heading-actions{width:100%}.ofm-heading-actions>*{flex:1;padding:0 9px;font-size:11px}.ofm-space-grid{grid-template-columns:1fr;gap:10px}.ofm-space-card{min-height:220px;padding:17px}.ofm-empty-state{min-height:290px;padding:27px 18px}.ofm-dashboard{padding-top:12px}.ofm-space-heading{align-items:flex-start;flex-wrap:wrap}.ofm-space-heading h1{font-size:23px}.ofm-space-heading>div{flex:1;min-width:0}.ofm-members-button{width:100%;margin:3px 0 0}.ofm-card{padding:15px;border-radius:14px}.ofm-card>header h2{font-size:18px}.ofm-today-content{grid-template-columns:minmax(0,1fr) 112px;gap:9px}.ofm-progress-wrap{padding-left:9px}.ofm-progress-ring{width:74px;height:74px}.ofm-progress-ring:before{inset:6px}.ofm-progress-ring span{font-size:16px}.ofm-progress-wrap p{font-size:9px}.ofm-progress-wrap small{font-size:9px}.ofm-task-row{gap:6px;padding:8px 7px}.ofm-task-copy strong{font-size:11px}.ofm-task-actions{gap:2px}.ofm-task-actions button{min-height:27px;padding:0 5px;font-size:9px}.ofm-chart{gap:3px;min-height:152px}.ofm-chart-bar-wrap{width:55%;height:85px}.ofm-chart-label{font-size:8px}.ofm-chart-value{font-size:8px}.ofm-program-days{grid-template-columns:repeat(5,minmax(118px,1fr));overflow:auto}.ofm-program-day{min-height:120px;padding:10px}.ofm-months{grid-template-columns:1fr;gap:9px}.ofm-mini-month{padding:12px}.ofm-mini-days i{min-height:27px}.ofm-all-tasks{grid-template-columns:1fr}.ofm-modal-backdrop{align-items:end;padding:0}.ofm-modal{width:100%;max-height:88vh;padding:20px 17px calc(20px + env(safe-area-inset-bottom));border-radius:19px 19px 0 0}.ofm-invite-controls{align-items:stretch;flex-direction:column}.ofm-invite-controls .ofm-primary{width:100%}}
@media(max-width:390px){.ofm-topbar .brand-mark,.ofm-topbar .brand-mark img{width:36px;height:36px}.ofm-topbar .app-navigation button{padding:7px 5px;font-size:10px}.ofm-space-heading{gap:8px}.ofm-space-badge{min-width:37px}.ofm-task-actions button:first-child{font-size:0}.ofm-task-actions button:first-child::after{content:'✎';font-size:13px}}
@media(prefers-reduced-motion:reduce){.ofm-screen *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* OFM dashboard: mirrors the personal home composition while keeping its own blue accent. */
.ofm-dashboard-reference{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:14px}
.ofm-dashboard-reference>.ofm-card{padding:24px 30px;border-radius:20px}
.ofm-dashboard-reference>.ofm-today-card,.ofm-dashboard-reference>.ofm-today-tasks-card{height:282px;min-height:282px}
.ofm-dashboard-reference>.ofm-card>header{margin-bottom:14px}
.ofm-dashboard-reference .ofm-card>header h2{font-size:clamp(22px,1.8vw,30px);font-weight:480;letter-spacing:-.035em}
.ofm-dashboard-reference .ofm-today-card>header{align-items:flex-start}
.ofm-today-meta{margin:8px 0 0;color:var(--theme-text-muted);font-size:16px}
.ofm-round-action{display:grid;place-items:center;flex:none;width:48px;height:48px;padding:0;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-soft);color:var(--theme-text);font-size:23px;line-height:1;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.ofm-round-action:hover{border-color:rgba(0,140,207,.55);background:rgba(0,140,207,.13);transform:translateY(-1px)}
.ofm-round-action:focus-visible{outline:2px solid #008CCF;outline-offset:3px}
.ofm-dashboard-reference .ofm-dayline{position:absolute;right:30px;bottom:30px;left:30px;margin:0}
.ofm-dashboard-reference .ofm-dayline-track{height:13px;background:#3b3b40}
.ofm-dashboard-reference .ofm-dayline>div:last-child{margin-top:13px;font-size:14px}
.ofm-dashboard-reference .ofm-dayline-progress{background:linear-gradient(90deg,#f5f5f7,#f5f5f7)}
.ofm-dashboard-reference .ofm-now-pin{top:-5px;width:4px;height:22px;background:#008CCF;box-shadow:0 0 0 5px rgba(0,140,207,.17)}
.ofm-dashboard-reference>.ofm-today-tasks-card{display:flex;flex-direction:column}
.ofm-dashboard-reference .ofm-today-tasks-card>header{align-items:flex-start}
.ofm-dashboard-reference .ofm-today-content{grid-template-columns:minmax(0,1fr) 200px;gap:20px;flex:1;min-height:0;align-items:stretch}
.ofm-dashboard-reference .ofm-today-list{align-content:start;max-height:176px;overflow:auto;padding:2px 3px 4px 1px;overscroll-behavior:contain}
.ofm-dashboard-reference .ofm-progress-wrap{justify-content:center;padding-left:22px}
.ofm-dashboard-reference .ofm-progress-ring{width:142px;height:142px;background:conic-gradient(#008CCF var(--ofm-progress),#4a4a50 0)}
.ofm-dashboard-reference .ofm-progress-ring:before{inset:10px;background:var(--theme-surface)}
.ofm-dashboard-reference .ofm-progress-ring span{font-size:26px;font-weight:480}
.ofm-dashboard-reference .ofm-progress-wrap p{margin:10px 0 2px;font-size:14px;font-weight:480}
.ofm-dashboard-reference .ofm-progress-wrap small{font-size:12px}
.ofm-dashboard-reference>.ofm-upcoming-card,.ofm-dashboard-reference>.ofm-program-card,.ofm-dashboard-reference>.ofm-month-card{grid-column:1/-1}
.ofm-dashboard-reference>.ofm-upcoming-card{min-height:390px;padding:24px 30px 22px}
.ofm-dashboard-reference>.ofm-upcoming-card>header{align-items:center;margin-bottom:12px}
.ofm-card-title-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:14px;min-width:0}
.ofm-chart-total{font-size:14px}
.ofm-chart-legend{display:flex;align-items:center;gap:8px;color:var(--theme-text-muted);font-size:12px;white-space:nowrap}
.ofm-chart-legend i{width:9px;height:9px;border-radius:50%;background:#008CCF}
.ofm-forecast{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;flex:1;min-height:285px}
.ofm-forecast-ylabels{display:flex;flex-direction:column;justify-content:space-between;padding:8px 0 64px;color:var(--theme-text-muted);font-size:14px;text-align:right}
.ofm-forecast-plot{position:relative;min-width:0;min-height:275px;padding-bottom:62px}
.ofm-forecast-plot>svg{display:block;width:100%;height:calc(100% - 62px);min-height:205px;overflow:visible}
.ofm-forecast-grid line{stroke:rgba(255,255,255,.15);stroke-width:1;stroke-dasharray:2 6}
.ofm-forecast-now{stroke:#ef8277;stroke-width:1.6;stroke-dasharray:4 5}
.ofm-forecast-line{fill:none;stroke:#008CCF;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.ofm-forecast-point{fill:var(--theme-text);stroke:var(--theme-surface);stroke-width:3;vector-effect:non-scaling-stroke}
.ofm-forecast-point.is-today{fill:#008CCF;stroke:#f5f5f7;stroke-width:3}
.ofm-forecast-days{position:absolute;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start}
.ofm-forecast-day{display:grid;justify-items:center;gap:7px;min-width:0;padding:0 4px;border:0;background:transparent;color:var(--theme-text-muted);font:inherit;text-align:center;cursor:pointer}
.ofm-forecast-day strong{color:var(--theme-text);font-size:14px;font-weight:560;white-space:nowrap}
.ofm-forecast-day span{font-size:13px;text-transform:capitalize;white-space:nowrap}
.ofm-forecast-day small{color:#ef8277;font-size:11px}
.ofm-forecast-day.is-today span{color:var(--theme-text)}
.ofm-forecast-day:hover span{color:#79cfff}
.ofm-forecast-day:focus-visible,.ofm-program-task:focus-visible{outline:2px solid #008CCF;outline-offset:3px;border-radius:5px}
.ofm-dashboard-reference>.ofm-program-card,.ofm-dashboard-reference>.ofm-month-card{min-height:220px;padding:22px 30px}
.ofm-dashboard-reference>.ofm-agenda-preview-card{grid-column:1/-1;padding:22px 30px 24px}
.ofm-agenda-preview-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.ofm-agenda-preview-card>header h2{margin:0}
.ofm-dashboard-agenda-scroll{max-height:380px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}
.ofm-dashboard-agenda-grid{display:grid;grid-template-columns:46px minmax(700px,1fr);height:calc(var(--ofm-axis-height) + 36px);min-width:0}
.ofm-dashboard-agenda-hours{position:relative;height:calc(var(--ofm-axis-height) + 36px);color:var(--theme-text-muted);font-size:12px;font-variant-numeric:tabular-nums}
.ofm-dashboard-agenda-hours span{position:absolute;right:5px;transform:translateY(-50%);white-space:nowrap}
.ofm-dashboard-agenda-hours span:first-child{transform:none}
.ofm-dashboard-agenda-columns{display:grid;grid-template-columns:repeat(7,minmax(96px,1fr));min-width:0}
.ofm-dashboard-agenda-columns .ofm-agenda-column{pointer-events:none}
.ofm-dashboard-agenda-columns .ofm-agenda-column>header{font-size:11px}
.ofm-dashboard-agenda-event{position:absolute;z-index:1;left:3px;right:3px;display:flex;flex-direction:column;gap:3px;min-height:28px;padding:4px 6px;overflow:hidden;border:1px solid var(--theme-border);border-left:3px solid #008CCF;border-radius:7px;background:var(--theme-surface-raised);color:var(--theme-text)}
.ofm-dashboard-agenda-event.urgency-low{border-left-color:#92929a}.ofm-dashboard-agenda-event.urgency-high{border-left-color:#e6bd5d}.ofm-dashboard-agenda-event.urgency-urgent{border-left-color:#ef796d}.ofm-dashboard-agenda-event.is-done{opacity:.52}
.ofm-dashboard-agenda-event strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;font-weight:560;line-height:1.25}
.ofm-dashboard-agenda-event small{color:var(--theme-text-muted);font-size:11px}
.ofm-dashboard-agenda-event.is-compact{justify-content:center;padding-top:3px;padding-bottom:3px}
.ofm-dashboard-agenda-event.is-compact strong{display:block;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.ofm-section-subtitle{margin:6px 0 0;color:var(--theme-text-muted);font-size:13px}
.ofm-dashboard-reference .ofm-program-days{grid-template-columns:repeat(5,minmax(0,1fr));border:0;border-radius:0;overflow:visible}
.ofm-dashboard-reference .ofm-program-day{display:flex;min-height:145px;flex-direction:column;padding:4px 20px 0;border-right:0;border-left:1px solid var(--theme-border);background:transparent}
.ofm-dashboard-reference .ofm-program-day:first-child{padding-left:0;border-left:0}
.ofm-dashboard-reference .ofm-program-day:last-child{padding-right:0}
.ofm-dashboard-reference .ofm-program-day h3{margin-bottom:10px;font-size:15px;font-weight:560;text-transform:capitalize}
.ofm-dashboard-reference .ofm-program-count{font-size:12px}
.ofm-dashboard-reference .ofm-program-day ul{gap:5px;margin:11px 0 8px}
.ofm-dashboard-reference .ofm-program-day li{overflow:visible;white-space:normal}
.ofm-program-task{width:100%;padding:7px 9px;border:0;border-radius:8px;background:var(--theme-surface-raised);color:var(--theme-text);font:12px Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.ofm-program-task span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ofm-program-task:hover{background:rgba(0,140,207,.17)}
.ofm-dashboard-reference .ofm-program-empty{min-height:38px;margin:12px 0 8px;font-size:12px}
.ofm-program-total{display:flex;align-items:center;gap:8px;margin:auto 0 0;color:var(--theme-text-muted);font-size:12px}
.ofm-dashboard-reference>.ofm-month-card{min-height:280px}
.ofm-dashboard-reference .ofm-months{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:5px 0 0}
.ofm-dashboard-reference .ofm-mini-month{padding:4px 20px;border:0;border-left:1px solid var(--theme-border);border-radius:0;background:transparent}
.ofm-dashboard-reference .ofm-mini-month:first-child{padding-left:0;border-left:0}
.ofm-dashboard-reference .ofm-mini-month:last-child{padding-right:0}
.ofm-dashboard-reference .ofm-mini-month h3{margin:0 0 12px;text-align:center;font-size:14px;font-weight:560;text-transform:capitalize}
.ofm-dashboard-reference .ofm-weekday-labels{margin-bottom:7px;font-size:10px}
.ofm-dashboard-reference .ofm-mini-days{gap:5px 3px}
.ofm-dashboard-reference .ofm-month-blank{min-height:14px}
.ofm-dashboard-reference .ofm-month-dot{position:relative;display:grid;place-items:center;min-height:16px;color:transparent;font-size:0;font-style:normal}
.ofm-dashboard-reference .ofm-month-dot:after{width:7px;height:7px;border-radius:50%;background:#f5f5f7;content:""}
.ofm-dashboard-reference .ofm-month-dot.is-past:after{background:#626269}
.ofm-dashboard-reference .ofm-month-dot.has-task:after{background:#008CCF;box-shadow:0 0 0 3px rgba(0,140,207,.16)}
.ofm-dashboard-reference .ofm-month-dot.is-today:before{position:absolute;inset:1px;border:1px solid rgba(0,140,207,.65);border-radius:50%;content:""}
.ofm-month-legend{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:11px;border-top:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:11px}
.ofm-month-legend>i{height:15px;border-left:1px solid var(--theme-border)}
.ofm-month-legend>span:first-child{color:#79cfff;font-size:14px}
@media(max-width:900px){.ofm-dashboard-reference{grid-template-columns:1fr}.ofm-dashboard-reference>.ofm-card{grid-column:1/-1}.ofm-dashboard-reference>.ofm-today-card,.ofm-dashboard-reference>.ofm-today-tasks-card{height:auto;min-height:240px}.ofm-dashboard-reference .ofm-dayline{position:static;margin:42px 0 0}.ofm-dashboard-reference .ofm-today-content{min-height:175px}.ofm-dashboard-reference .ofm-forecast{min-height:265px}.ofm-dashboard-reference .ofm-months{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px}.ofm-dashboard-reference .ofm-mini-month:nth-child(3){padding-left:0;border-left:0}}
@media(max-width:700px){.ofm-dashboard-reference>.ofm-card{padding:17px}.ofm-dashboard-reference>.ofm-today-card,.ofm-dashboard-reference>.ofm-today-tasks-card{min-height:220px}.ofm-dashboard-reference .ofm-card>header h2{font-size:20px}.ofm-today-meta{font-size:13px}.ofm-dashboard-reference .ofm-dayline{margin-top:35px}.ofm-dashboard-reference .ofm-dayline>div:last-child{font-size:11px}.ofm-round-action{width:40px;height:40px;font-size:20px}.ofm-dashboard-reference .ofm-today-content{grid-template-columns:minmax(0,1fr) 104px;gap:9px}.ofm-dashboard-reference .ofm-progress-wrap{padding-left:8px}.ofm-dashboard-reference .ofm-progress-ring{width:76px;height:76px}.ofm-dashboard-reference .ofm-progress-ring:before{inset:6px}.ofm-dashboard-reference .ofm-progress-ring span{font-size:17px}.ofm-dashboard-reference .ofm-progress-wrap p{font-size:10px}.ofm-dashboard-reference .ofm-progress-wrap small{font-size:9px}.ofm-dashboard-reference .ofm-today-list{max-height:164px}.ofm-dashboard-reference .ofm-task-row{flex-wrap:wrap}.ofm-dashboard-reference>.ofm-upcoming-card{min-height:300px;padding:17px}.ofm-dashboard-reference .ofm-forecast{grid-template-columns:40px minmax(0,1fr);gap:5px;min-height:220px}.ofm-dashboard-reference .ofm-forecast-ylabels{padding:6px 0 56px;font-size:10px}.ofm-dashboard-reference .ofm-forecast-plot{min-height:218px;padding-bottom:56px}.ofm-dashboard-reference .ofm-forecast-plot>svg{height:calc(100% - 56px);min-height:160px}.ofm-dashboard-reference .ofm-forecast-day{gap:5px;padding:0 1px}.ofm-dashboard-reference .ofm-forecast-day strong{font-size:10px}.ofm-dashboard-reference .ofm-forecast-day span{font-size:9px}.ofm-dashboard-reference .ofm-forecast-day small{font-size:8px}.ofm-dashboard-reference>.ofm-program-card,.ofm-dashboard-reference>.ofm-month-card{padding:17px}.ofm-dashboard-reference .ofm-program-days{grid-template-columns:repeat(5,minmax(122px,1fr));overflow-x:auto;overscroll-behavior-x:contain}.ofm-dashboard-reference .ofm-program-day{min-height:132px;padding:4px 12px}.ofm-dashboard-reference .ofm-program-day:first-child{padding-left:0}.ofm-dashboard-reference .ofm-program-day h3{font-size:12px}.ofm-dashboard-reference .ofm-program-count,.ofm-program-total{font-size:10px}.ofm-program-task{font-size:10px}.ofm-dashboard-reference .ofm-months{grid-template-columns:1fr;gap:12px}.ofm-dashboard-reference .ofm-mini-month,.ofm-dashboard-reference .ofm-mini-month:nth-child(3){padding:0 0 12px;border:0;border-bottom:1px solid var(--theme-border)}.ofm-dashboard-reference .ofm-mini-month:last-child{padding-bottom:0;border-bottom:0}.ofm-dashboard-reference .ofm-mini-days{gap:4px}.ofm-dashboard-reference .ofm-month-legend{align-items:flex-start;flex-wrap:wrap;font-size:10px}}
.ofm-all-tasks-disclosure{grid-column:1/-1;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface);overflow:hidden}
.ofm-all-tasks-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:0 20px;color:var(--theme-text);font-size:14px;font-weight:540;cursor:pointer;list-style:none}
.ofm-all-tasks-disclosure>summary::-webkit-details-marker{display:none}
.ofm-all-tasks-disclosure>summary:after{content:'⌄';color:var(--theme-text-muted);font-size:18px}
.ofm-all-tasks-disclosure[open]>summary{border-bottom:1px solid var(--theme-border)}
.ofm-all-tasks-disclosure .ofm-all-tasks{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px}
.ofm-all-tasks-disclosure>summary span{margin-left:auto;color:var(--theme-text-muted);font-size:12px;font-weight:450}
@media(max-width:700px){.ofm-all-tasks-disclosure>summary{padding:0 14px}.ofm-all-tasks-disclosure .ofm-all-tasks{grid-template-columns:1fr;padding:10px}}
/* Keep the current-time strip inside its own dashboard card. */
.ofm-dashboard-reference>.ofm-today-card{display:flex;flex-direction:column}
.ofm-dashboard-reference .ofm-dayline{position:static;margin:auto 0 0}

/* Espace OFM : navigation locale et tableau d’affectation des tâches. */
.ofm-space-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 20px;padding:6px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface-soft)}
.ofm-space-nav button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--theme-text-muted);font:520 12px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-space-nav button:hover:not(:disabled){background:var(--theme-surface-raised);color:var(--theme-text)}
.ofm-space-nav button.is-active{border-color:rgba(0,140,207,.36);background:rgba(0,140,207,.14);color:#b9e8ff}
.ofm-space-nav button:focus-visible,.ofm-todo-page button:focus-visible,.ofm-todo-page select:focus-visible,.ofm-column-visibility input:focus-visible{outline:2px solid #008CCF;outline-offset:2px}
.ofm-space-nav button:disabled{cursor:not-allowed;opacity:.52}
.ofm-space-nav button span{padding:3px 6px;border:1px solid var(--theme-border);border-radius:5px;font-size:9px}
.ofm-todo-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:6px 0 0}
.ofm-todo-heading h2{margin:0;font-size:25px;font-weight:540;letter-spacing:-.03em}
.ofm-todo-heading>div:first-child>p:last-child{margin:6px 0 0;color:var(--theme-text-muted);font-size:12px}
.ofm-todo-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ofm-todo-controls>.ofm-primary,.ofm-todo-controls>.ofm-secondary{min-height:38px;padding:0 13px;font-size:11px}
.ofm-column-visibility{position:relative}
.ofm-column-visibility>summary{display:flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font-size:11px;cursor:pointer;list-style:none}
.ofm-column-visibility>summary::-webkit-details-marker{display:none}
.ofm-column-visibility[open]>div{position:absolute;z-index:8;top:calc(100% + 7px);right:0;display:grid;gap:4px;min-width:190px;padding:8px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface);box-shadow:var(--theme-shadow)}
.ofm-column-visibility label{display:flex;align-items:center;gap:8px;padding:8px;border-radius:7px;color:var(--theme-text);font-size:11px;cursor:pointer}
.ofm-column-visibility label:hover{background:var(--theme-surface-raised)}
.ofm-column-visibility input{accent-color:#008CCF}
.ofm-board-local-notice{margin:14px 0}
.ofm-todo-instruction{margin:16px 0 0;padding:13px 16px;border:1px solid rgba(0,140,207,.25);border-radius:11px;background:rgba(0,140,207,.07);color:var(--theme-text);font-size:12px;line-height:1.5}
.ofm-schedule-fields{min-width:0;margin:3px 0 0;padding:12px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft)}
.ofm-schedule-fields legend{padding:0 6px;color:var(--theme-text);font-size:12px;font-weight:560}
.ofm-schedule-fields>p{margin:0 0 11px;color:var(--theme-text-muted);font-size:11px;line-height:1.5}
.ofm-task-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;overflow-x:auto;padding:2px 2px 12px;overscroll-behavior-x:contain;scrollbar-color:#53535a transparent;scrollbar-width:thin}
.ofm-task-column,.ofm-member-placeholder{display:flex;min-height:280px;flex-direction:column;min-width:0;padding:14px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface)}
.ofm-task-column.is-unassigned{border-top:2px solid rgba(255,255,255,.34)}
.ofm-task-column.ofm-person-column{border-top:2px solid rgba(0,140,207,.68)}
.ofm-task-column>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.ofm-column-title{display:flex;align-items:center;gap:9px;min-width:0}
.ofm-column-mark{width:9px;height:9px;flex:none;border-radius:50%;background:#008CCF;box-shadow:0 0 0 4px rgba(0,140,207,.12)}
.ofm-task-column.is-unassigned .ofm-column-mark{background:#b8b8bf;box-shadow:0 0 0 4px rgba(255,255,255,.07)}
.ofm-column-title h3,.ofm-hidden-column h3{margin:0;overflow:hidden;color:var(--theme-text);font-size:14px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}
.ofm-column-title p{margin:3px 0 0;color:var(--theme-text-muted);font-size:10px}
.ofm-column-count{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font-size:10px;font-variant-numeric:tabular-nums}
.ofm-column-tasks{display:grid;align-content:start;gap:8px;min-height:54px}
.ofm-column-empty{margin:0;padding:12px 9px;border:1px dashed var(--theme-border);border-radius:9px;color:var(--theme-text-muted);font-size:11px;line-height:1.5}
.ofm-column-add{width:100%;min-height:36px;margin:10px 0 2px;border:1px dashed var(--theme-border);border-radius:9px;background:transparent;color:var(--theme-text-muted);font:500 11px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-column-add:hover{border-color:rgba(0,140,207,.55);background:rgba(0,140,207,.07);color:var(--theme-text)}
.ofm-completed-list,.ofm-hidden-columns{margin-top:auto;padding-top:12px;border-top:1px solid var(--theme-border)}
.ofm-completed-list>summary,.ofm-hidden-columns>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--theme-text-muted);font-size:10px;cursor:pointer;list-style:none}
.ofm-completed-list>summary::-webkit-details-marker,.ofm-hidden-columns>summary::-webkit-details-marker{display:none}
.ofm-completed-list>summary span,.ofm-hidden-columns>summary span{margin-left:auto}
.ofm-completed-list>div{display:grid;gap:7px;padding-top:9px}
.ofm-board-task{display:grid;grid-template-columns:14px 20px 8px minmax(0,1fr);gap:8px;padding:11px 10px;align-items:start;cursor:grab;transition:border-color .15s,background .15s,opacity .15s,transform .15s}
.ofm-board-task:active{cursor:grabbing}
.ofm-board-task.is-dragging{opacity:.45;transform:scale(.985)}
.ofm-board-task.is-done .ofm-board-task-title{text-decoration:line-through;color:var(--theme-text-muted)}
.ofm-board-task.is-done{opacity:.9;border-color:rgba(0,140,207,.42);background:rgba(0,140,207,.055)}
.ofm-board-task.is-done .ofm-task-check{border-color:#fff;background:#fff;color:#17191c}
.ofm-task-state{flex:none;padding:4px 7px;border:1px solid rgba(0,140,207,.42);border-radius:999px;background:rgba(0,140,207,.12);color:#b8e7fa;font-size:10px;line-height:1;white-space:nowrap}
.ofm-task-state[hidden]{display:none}
.ofm-board-task.is-done .ofm-task-actions{opacity:1}
.ofm-drag-grip{flex:none;padding-top:1px;color:var(--theme-text-muted);font-size:14px;line-height:20px;cursor:grab}
.ofm-board-task .ofm-task-check{grid-column:2;grid-row:1}
.ofm-board-task .ofm-task-copy{grid-column:4;grid-row:1;gap:5px}
.ofm-board-task-title{width:100%;padding:0;border:0;background:transparent;color:var(--theme-text);font:560 12px Inter,system-ui,sans-serif;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.ofm-board-task-title:hover{color:#b9e8ff}
.ofm-board-task .ofm-task-copy>span{white-space:normal;line-height:1.45}
.ofm-board-task .ofm-task-copy small{white-space:normal;line-height:1.5;overflow-wrap:anywhere}
.ofm-board-task .ofm-assignee-select{grid-column:4;grid-row:2;width:100%;max-width:none;min-height:32px;padding:5px 24px 5px 9px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface-soft);color:var(--theme-text-muted);font:10px Inter,system-ui,sans-serif}
.ofm-assignee-select option{background:var(--theme-surface);color:var(--theme-text)}
.ofm-board-task .ofm-task-actions{grid-column:4;grid-row:3;justify-content:flex-end;gap:4px}
.ofm-board-task .ofm-task-actions button{min-height:28px;padding:0 9px;font-size:10px}
.ofm-board-task .ofm-task-actions button:last-child{width:25px}
.ofm-task-column.is-drop-target{border-color:#008CCF;background:linear-gradient(180deg,rgba(0,140,207,.13),var(--theme-surface) 110px);box-shadow:inset 0 0 0 1px rgba(0,140,207,.22)}
.ofm-task-column.is-drop-target .ofm-column-empty{border-color:rgba(0,140,207,.55);color:var(--theme-text)}
.ofm-member-placeholder{justify-content:center;align-items:flex-start;gap:10px;color:var(--theme-text-muted)}
.ofm-member-placeholder h3{margin:5px 0 0;color:var(--theme-text);font-size:14px;font-weight:560}
.ofm-member-placeholder p,.ofm-hidden-columns>p,.ofm-hidden-column>p{margin:0;color:var(--theme-text-muted);font-size:11px;line-height:1.55}
.ofm-hidden-columns{margin-top:14px;padding:13px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface)}
.ofm-hidden-columns>p{margin:8px 0}
.ofm-hidden-column{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--theme-border)}
.ofm-hidden-column .ofm-board-task{grid-column:1/-1}
.ofm-coming-soon{display:grid;justify-items:start;gap:10px;max-width:600px;padding:26px;border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-surface)}
.ofm-coming-soon h2,.ofm-coming-soon p{margin:0}
.ofm-coming-soon>span{padding:4px 8px;border:1px solid var(--theme-border);border-radius:6px;color:var(--theme-text-muted);font-size:10px}
.ofm-coming-soon>p:last-of-type{color:var(--theme-text-muted);font-size:12px}
@media(max-width:900px){.ofm-task-board{grid-template-columns:repeat(3,minmax(285px,1fr));overflow-x:auto}}
@media(max-width:700px){.ofm-todo-heading{align-items:stretch;flex-direction:column}.ofm-todo-controls{justify-content:flex-start}.ofm-task-board{grid-template-columns:none;grid-auto-columns:minmax(285px,86vw);grid-auto-flow:column;margin-right:-17px;padding-right:17px}.ofm-space-nav{gap:3px}.ofm-space-nav button{min-height:35px;padding:0 9px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.ofm-board-task,.ofm-space-nav button{transition:none}}

/* OFM team roles: compact administration surfaces using the shared dark theme. */
.ofm-team-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:10px 0 18px}
.ofm-team-heading h2{margin:0;font-size:clamp(24px,3vw,32px);letter-spacing:-.035em}
.ofm-team-heading p:not(.ofm-eyebrow){margin:7px 0 0;color:var(--theme-text-muted);font-size:13px}
.ofm-team-page>.ofm-card{margin-top:14px}
.ofm-team-member-list,.ofm-team-role-list{display:grid;gap:8px}
.ofm-team-member,.ofm-team-role{display:flex;align-items:center;gap:12px;min-width:0;padding:12px 14px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft)}
.ofm-team-member-name,.ofm-team-role>div{display:grid;gap:4px;min-width:0;flex:1}
.ofm-team-member-name strong,.ofm-team-role strong{color:var(--theme-text);font-size:13px}
.ofm-team-member-name small,.ofm-team-role small{color:var(--theme-text-muted);font-size:11px}
.ofm-team-role{justify-content:space-between}
.ofm-team-role .ofm-secondary{flex:none}
.ofm-team-security-note{margin-top:14px}
.ofm-member-role-field{display:grid;gap:4px;min-width:150px;color:var(--theme-text-muted);font-size:10px}
.ofm-member-role-field select{min-height:34px;padding:0 30px 0 10px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface-raised);color:var(--theme-text);font:500 12px Inter,system-ui,sans-serif}
.ofm-team-role-modal{width:min(550px,100%)}
.ofm-team-permissions{display:grid;gap:7px;margin:4px 0 0;padding:12px;border:1px solid var(--theme-border);border-radius:12px}
.ofm-team-permissions legend{padding:0 6px;color:var(--theme-text-muted);font-size:11px}
.ofm-team-permission{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:8px 9px;border-radius:8px;background:var(--theme-surface-soft);color:var(--theme-text);font-size:12px;line-height:1.45;cursor:pointer}
.ofm-team-permission span{flex:1;min-width:0;overflow-wrap:anywhere}
.ofm-team-permission input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px;min-width:18px;height:18px;min-height:18px;margin:2px 0 0;padding:0;border:0;border-radius:4px;background:transparent;accent-color:#008CCF;cursor:pointer}
.ofm-team-page .ofm-inline-empty{display:grid;gap:5px}
@media(max-width:700px){.ofm-team-heading{align-items:stretch;flex-direction:column}.ofm-team-heading>.ofm-primary{width:100%}.ofm-team-member{flex-wrap:wrap;gap:9px}.ofm-team-member-name{flex:1 1 calc(100% - 50px)}.ofm-member-role-field{flex:1}.ofm-team-role-modal{max-height:90vh}}

/* OFM dashboard: readable full-space tasks and recorded activity trend. */
.ofm-dashboard-task-content{min-height:0;align-items:stretch}
.ofm-dashboard-reference .ofm-today-list{max-height:216px;min-height:0;overflow:auto;padding-right:5px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
.ofm-dashboard-reference .ofm-today-list .ofm-task-row{min-height:60px}
.ofm-dashboard-reference .ofm-progress-wrap{align-self:stretch}
.ofm-activity-card .ofm-forecast-line{stroke:#008CCF}
.ofm-activity-card .ofm-forecast-point{fill:#008CCF;stroke:var(--theme-surface);stroke-width:3}
.ofm-activity-card .ofm-forecast-point.is-today{fill:var(--theme-text);stroke:#008CCF;stroke-width:4}
.ofm-activity-card .ofm-forecast-now{display:none}
.ofm-activity-card .ofm-chart-legend i{background:#008CCF}
.ofm-activity-summary{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:12px}
.ofm-program-actions{display:flex;align-items:center;gap:8px}

/* OFM agenda reuses the personal agenda rhythm while keeping OFM data scoped. */
.ofm-agenda-layout{display:grid;grid-template-columns:minmax(285px,31%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:14px;height:min(74vh,790px);min-height:520px}
.ofm-agenda-tasks,.ofm-agenda-calendar{display:flex;min-height:0;flex-direction:column;overflow:hidden}
.ofm-agenda-tasks{padding:20px}
.ofm-agenda-tasks>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--theme-border)}
.ofm-agenda-tasks h2,.ofm-agenda-calendar h2{margin:0;font-size:22px;font-weight:520;letter-spacing:-.025em}
.ofm-agenda-tasks>header p{margin:5px 0 0;color:var(--theme-text-muted);font-size:12px}
.ofm-agenda-task-list{display:flex;min-height:0;flex:1;flex-direction:column;gap:8px;overflow:auto;padding:12px 2px 10px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent}
.ofm-agenda-task{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:66px;padding:10px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-raised);cursor:grab}
.ofm-agenda-task.is-done{opacity:.58}.ofm-agenda-task.is-dragging,.ofm-agenda-event.is-dragging{opacity:.48}
.ofm-agenda-task>div{display:grid;gap:4px;min-width:0}.ofm-agenda-task strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550}.ofm-agenda-task small{color:var(--theme-text-muted);font-size:10px;line-height:1.4}
.ofm-agenda-task>button{padding:6px 9px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface-soft);color:var(--theme-text);font-size:10px;cursor:pointer}
.ofm-agenda-hint{margin:0;padding-top:10px;border-top:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:11px;line-height:1.45}
.ofm-agenda-calendar{padding:16px 14px 12px}
.ofm-agenda-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;margin-bottom:10px}
.ofm-agenda-toolbar>h2{text-transform:capitalize}
.ofm-agenda-controls{display:flex;align-items:center;gap:6px;flex:none}
.ofm-agenda-controls>button,.ofm-agenda-controls>select{height:36px;min-width:36px;padding:0 10px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-raised);color:var(--theme-text);font:500 11px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-agenda-controls>button:first-of-type,.ofm-agenda-controls>button:last-of-type{font-size:19px;line-height:1}
.ofm-agenda-controls>select{min-width:72px}
.ofm-agenda-switch{display:flex;padding:3px;border:1px solid var(--theme-border);border-radius:22px;background:var(--theme-surface-soft)}
.ofm-agenda-switch button{min-height:30px;padding:0 10px;border:0;border-radius:17px;background:transparent;color:var(--theme-text-muted);font:500 11px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-agenda-switch button.is-active{background:#008CCF;color:white}
.ofm-agenda-scroll{width:100%;height:0;min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.32) transparent;touch-action:pan-x pan-y}
.ofm-agenda-time-grid{display:grid;grid-template-columns:46px minmax(650px,1fr);height:calc(var(--ofm-axis-height) + 36px);min-height:0}
.ofm-agenda-hours{position:relative;height:calc(var(--ofm-axis-height) + 36px);color:var(--theme-text-muted);font-size:11px;font-variant-numeric:tabular-nums}
.ofm-agenda-hours span{position:absolute;left:0;right:0;padding:4px 5px 0 0;text-align:right;transform:translateY(-8px);white-space:nowrap}
.ofm-agenda-columns{display:grid;grid-template-columns:repeat(var(--ofm-days),minmax(96px,1fr));min-width:0}
.ofm-agenda-column{position:relative;min-width:0;border-left:1px solid var(--theme-border);background:var(--theme-surface)}
.ofm-agenda-column.is-today{background-color:rgba(255,255,255,.025)}
.ofm-agenda-column>header{position:absolute;z-index:2;top:0;left:0;right:0;display:grid;place-items:center;height:36px;border-bottom:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);font-size:12px;font-weight:550;text-transform:capitalize}
.ofm-agenda-hour-line{position:absolute;z-index:0;left:0;right:0;height:1px;background:rgba(255,255,255,.12);pointer-events:none}
.ofm-agenda-event{position:absolute;z-index:1;left:4px;right:4px;display:flex;flex-direction:column;gap:5px;min-height:18px;padding:7px 8px;overflow:hidden;border:1px solid var(--theme-border);border-left:4px solid #008CCF;border-radius:9px;background:var(--theme-surface-raised);box-shadow:0 5px 14px rgba(0,0,0,.2);color:var(--theme-text);cursor:grab}
.ofm-agenda-event.is-past{min-height:12px;padding:2px 6px;gap:1px;opacity:.62}.ofm-agenda-event.is-past strong{font-size:9px}.ofm-agenda-event.is-past small{display:none}
.ofm-agenda-event.urgency-low{border-left-color:#92929a}.ofm-agenda-event.urgency-high{border-left-color:#e6bd5d}.ofm-agenda-event.urgency-urgent{border-left-color:#ef796d}.ofm-agenda-event.is-fixed{border-left-color:#9da0a8;cursor:default}.ofm-agenda-event.is-done{opacity:.55}
.ofm-agenda-event strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;font-weight:560;line-height:1.25}.ofm-agenda-event small{color:var(--theme-text-muted);font-size:10px}
.ofm-agenda-now{position:absolute;z-index:4;left:0;right:0;height:2px;background:#ef7168;pointer-events:none}.ofm-agenda-now:before{position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:#ef7168;content:""}.ofm-agenda-now span{position:absolute;right:2px;top:-18px;padding:2px 4px;border-radius:4px;background:#ef7168;color:#fff;font-size:9px;font-variant-numeric:tabular-nums}
.ofm-agenda-months{display:grid;grid-template-columns:repeat(3,minmax(275px,1fr));gap:12px;min-height:0;overflow:auto;padding:2px 2px 8px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}
.ofm-agenda-month{min-height:520px;padding:12px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface-soft)}
.ofm-agenda-month>header{padding-bottom:10px;border-bottom:1px solid var(--theme-border)}.ofm-agenda-month h3{margin:0;font-size:15px;font-weight:540;text-transform:capitalize}
.ofm-month-weekdays,.ofm-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.ofm-month-weekdays{padding:9px 0;color:var(--theme-text-muted);font-size:9px;text-align:center}
.ofm-month-cell{display:flex;min-width:0;min-height:56px;flex-direction:column;gap:4px;padding:4px;border:1px solid transparent;border-radius:7px;background:var(--theme-surface);font-size:10px}
.ofm-month-cell.is-today{border-color:rgba(0,140,207,.55);box-shadow:inset 0 0 0 1px rgba(0,140,207,.13)}.ofm-month-cell.is-drop-target,.ofm-agenda-column.is-drop-target{background-color:rgba(0,140,207,.16)}.ofm-month-cell>strong{font-size:10px;font-weight:500}
.ofm-month-cell>div{display:grid;gap:3px;overflow:hidden}.ofm-month-task{width:100%;padding:3px;border:0;border-left:2px solid #008CCF;border-radius:4px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:8px;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:pointer}.ofm-month-task.urgency-high{border-left-color:#e6bd5d}.ofm-month-task.urgency-urgent{border-left-color:#ef796d}.ofm-month-task.is-done{opacity:.5;text-decoration:line-through}
.ofm-agenda-page .ofm-agenda-column:focus-visible,.ofm-agenda-page [data-ofm-calendar-dropzone]:focus-visible{outline:2px solid #008CCF;outline-offset:-2px}
.ofm-agenda-controls button:focus-visible,.ofm-agenda-controls select:focus-visible,.ofm-agenda-task button:focus-visible,.ofm-agenda-switch button:focus-visible{outline:2px solid #008CCF;outline-offset:2px}
@media(max-width:1050px){.ofm-agenda-layout{height:auto;grid-template-columns:1fr;min-height:0}.ofm-agenda-tasks{max-height:330px}.ofm-agenda-task-list{max-height:230px}.ofm-agenda-calendar{height:70vh;min-height:500px}.ofm-agenda-toolbar{align-items:flex-start;flex-direction:column}.ofm-agenda-controls{max-width:100%;flex-wrap:wrap}.ofm-agenda-months{grid-template-columns:repeat(3,minmax(280px,1fr))}}
@media(max-width:700px){.ofm-program-actions{align-items:stretch;flex-direction:column}.ofm-dashboard-reference .ofm-today-list{max-height:260px}.ofm-agenda-layout{gap:10px}.ofm-agenda-tasks{padding:14px}.ofm-agenda-calendar{height:68vh;min-height:460px;padding:12px 8px}.ofm-agenda-toolbar>h2{font-size:18px}.ofm-agenda-controls{gap:4px}.ofm-agenda-controls>button,.ofm-agenda-controls>select{height:34px;padding:0 7px;font-size:10px}.ofm-agenda-switch button{padding:0 7px;font-size:10px}.ofm-agenda-time-grid{grid-template-columns:38px minmax(630px,1fr)}.ofm-agenda-columns{grid-template-columns:repeat(var(--ofm-days),minmax(90px,1fr))}.ofm-agenda-months{grid-template-columns:repeat(3,minmax(270px,1fr));margin-right:-8px;padding-right:8px}}
@media(prefers-reduced-motion:reduce){.ofm-agenda-page *{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:700px){.ofm-dashboard-reference>.ofm-agenda-preview-card{padding:16px}.ofm-agenda-preview-card>header{align-items:flex-start;flex-direction:column}.ofm-dashboard-agenda-scroll{max-height:330px;margin-right:-4px}.ofm-dashboard-agenda-grid{grid-template-columns:38px minmax(672px,1fr)}.ofm-dashboard-agenda-columns{grid-template-columns:repeat(7,minmax(96px,1fr))}}

/* Recrutement OFM : pipeline local, conservant les composants sombres partagés. */
.ofm-recruit-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:10px 0 18px}
.ofm-recruit-heading h2{margin:0;font-size:clamp(24px,2vw,32px);font-weight:530;letter-spacing:-.035em}
.ofm-recruit-heading p:last-child{margin:6px 0 0;color:var(--theme-text-muted);font-size:13px}
.ofm-recruit-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ofm-recruit-search input{width:min(250px,28vw);min-height:40px;padding:0 13px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface-soft);color:var(--theme-text);font:450 13px Inter,system-ui,sans-serif}
.ofm-recruit-board{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:11px;overflow-x:auto;padding:2px 2px 12px;overscroll-behavior-x:contain;scrollbar-color:#53535a transparent;scrollbar-width:thin}
.ofm-recruit-column{min-height:390px;padding:12px;border:1px solid var(--theme-border);border-radius:15px;background:var(--theme-surface-soft);transition:border-color .15s,background .15s,box-shadow .15s}
.ofm-recruit-column>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:45px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--theme-border)}
.ofm-recruit-column>header h3{margin:0;font-size:14px;font-weight:560}
.ofm-recruit-column>header span{display:block;margin-top:4px;color:var(--theme-text-muted);font-size:10px}
.ofm-recruit-column .ofm-icon-button{width:30px;height:30px;min-width:30px;padding:0;border-radius:50%;background:var(--theme-surface-raised);color:var(--theme-text);font-size:17px}
.ofm-recruit-cards{display:grid;align-content:start;gap:8px;min-height:300px}
.ofm-recruit-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:7px;padding:11px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface);box-shadow:0 4px 13px rgba(0,0,0,.14);transition:transform .15s,border-color .15s,background .15s;cursor:grab}
.ofm-recruit-card-main{display:grid;justify-items:start;gap:4px;min-width:0;padding:0;border:0;background:transparent;color:var(--theme-text);text-align:left;cursor:pointer}
.ofm-recruit-card-main strong{max-width:100%;overflow:hidden;font-size:13px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}
.ofm-recruit-platform{color:#a7ddf6;font-size:10px}
.ofm-recruit-card-main small{max-width:100%;overflow:hidden;color:var(--theme-text-muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.ofm-recruit-call{color:#a7ddf6!important}
.ofm-recruit-status{grid-column:1/-1;min-width:0}
.ofm-recruit-status select{width:100%;min-height:30px;padding:0 24px 0 8px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface-raised);color:var(--theme-text-muted);font:500 10px Inter,system-ui,sans-serif}
.ofm-recruit-delete{display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-raised);color:var(--theme-text-muted);font:500 17px/1 Inter,system-ui,sans-serif;cursor:pointer}
.ofm-recruit-delete:hover{border-color:rgba(255,120,120,.55);color:#ff9a9a}
.ofm-recruit-card.is-dragging{opacity:.55;transform:scale(.98)}
.ofm-recruit-column.is-drop-target{border-color:#008CCF;background:rgba(0,140,207,.08);box-shadow:0 0 0 2px rgba(0,140,207,.12)}
.ofm-recruit-modal{width:min(600px,100%)}
.ofm-recruit-modal-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:5px}
.ofm-recruit-modal-links p{width:100%;margin:0}
.ofm-conflict-override{display:flex!important;align-items:center;gap:9px;padding:10px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface-soft)}
.ofm-conflict-override input{width:16px;height:16px;accent-color:#008CCF}
.ofm-danger{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid rgba(255,120,120,.42);border-radius:10px;background:rgba(176,56,56,.13);color:#ffd1d1;font:550 12px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-resources-modal{width:min(720px,100%)}
.ofm-resource-list{display:grid;gap:9px;max-height:min(55vh,480px);overflow:auto;padding:2px}
.ofm-resource-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-soft)}
.ofm-resource-card span{color:#a7ddf6;font-size:10px}
.ofm-resource-card h3{margin:5px 0;font-size:14px}
.ofm-resource-card p{display:-webkit-box;margin:0;color:var(--theme-text-muted);font-size:12px;line-height:1.5;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:pre-wrap}
.ofm-resource-card>div:last-child{display:flex;align-items:flex-start;gap:5px}
.ofm-resource-card .ofm-secondary{min-height:31px;padding:0 9px;font-size:10px}
.ofm-resources-modal>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.ofm-resource-empty{min-height:180px;padding:22px}
.ofm-recruit-page .ofm-form-error{margin:0}
@media(max-width:1100px){.ofm-recruit-board{grid-template-columns:repeat(5,minmax(205px,1fr))}.ofm-recruit-heading{align-items:flex-start;flex-direction:column}.ofm-recruit-actions{justify-content:flex-start;width:100%}}
@media(max-width:700px){.ofm-recruit-actions{display:grid;grid-template-columns:1fr 1fr}.ofm-recruit-search{grid-column:1/-1}.ofm-recruit-search input{width:100%}.ofm-recruit-actions .ofm-primary,.ofm-recruit-actions .ofm-secondary{min-height:38px;padding:0 8px;font-size:10px}.ofm-recruit-board{grid-template-columns:none;grid-auto-columns:minmax(260px,84vw);grid-auto-flow:column;margin-right:-17px;padding-right:17px}.ofm-recruit-column{min-height:340px}.ofm-recruit-cards{min-height:255px}.ofm-resource-card{grid-template-columns:1fr}.ofm-resource-card>div:last-child{flex-wrap:wrap}.ofm-resources-modal>footer{flex-wrap:wrap}.ofm-recruit-modal-links button{flex:1;font-size:10px}}

/* Gestion des fiches modèles : surfaces OFM neutres et accent bleu commun. */
.ofm-management-page{--theme-ofm-accent:#008CCF}
.ofm-manage-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:20px 0 18px}
.ofm-manage-heading h2{margin:0;color:var(--theme-text);font-size:clamp(25px,2.6vw,34px);font-weight:560;letter-spacing:-.035em}
.ofm-manage-heading>div>p:last-child,.ofm-model-profile>div>p:not(.ofm-eyebrow){margin:8px 0 0;color:var(--theme-text-muted);font-size:13px;line-height:1.55}
.ofm-model-list{display:grid;gap:10px}
.ofm-model-row{position:relative;display:flex;align-items:center;min-width:0;min-height:88px;padding:10px 54px 10px 14px;border:1px solid var(--theme-border);border-radius:15px;background:var(--theme-surface);transition:border-color .16s,background .16s}
.ofm-model-row:hover,.ofm-model-row:focus-within{border-color:rgba(0,140,207,.52);background:#27272b}
.ofm-model-open{appearance:none;display:flex;align-items:center;flex:1;gap:13px;min-width:0;padding:4px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.ofm-model-mark{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid rgba(0,140,207,.42);border-radius:12px;background:rgba(0,140,207,.09);color:#79cfff;font-size:18px}
.ofm-model-mark.has-photo,.ofm-model-avatar-lg.has-photo{position:relative;overflow:hidden;aspect-ratio:1;isolation:isolate}
.ofm-model-mark img,.ofm-model-avatar-lg img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;border-radius:inherit;object-fit:cover}
.ofm-avatar-fallback svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ofm-model-main{display:grid;gap:4px;min-width:0}
.ofm-model-main strong{font-size:15px;font-weight:580}
.ofm-model-main small,.ofm-model-summary{color:var(--theme-text-muted);font-size:11px;line-height:1.4}
.ofm-model-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ofm-model-summary{display:flex;gap:13px;margin-left:auto;padding:0 12px;white-space:nowrap}
.ofm-model-chevron{flex:none;color:var(--theme-text-muted);font-size:25px;line-height:1}
.ofm-model-instagram{position:absolute;left:69px;bottom:9px;color:#82ccef;font-size:10px;text-decoration:none}
.ofm-model-instagram:hover,.ofm-model-instagram-link:hover{text-decoration:underline;text-underline-offset:3px}
.ofm-model-menu{position:absolute;top:50%;right:12px;z-index:3;transform:translateY(-50%)}
.ofm-model-menu summary{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-raised);color:var(--theme-text);font-size:19px;line-height:1;cursor:pointer;list-style:none}
.ofm-model-menu summary::-webkit-details-marker{display:none}
.ofm-model-menu[open] summary{border-color:rgba(0,140,207,.65)}
.ofm-model-menu>div{position:absolute;top:calc(100% + 6px);right:0;display:grid;min-width:170px;padding:5px;border:1px solid var(--theme-border);border-radius:12px;background:#29292d;box-shadow:var(--theme-shadow)}
.ofm-model-menu button,.ofm-model-item-actions button,.ofm-extra-section header button{appearance:none;min-height:34px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--theme-text);font:500 12px/1.2 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.ofm-model-menu button:hover,.ofm-model-item-actions button:hover,.ofm-extra-section header button:hover{background:rgba(255,255,255,.08)}
.ofm-model-menu button.is-danger,.ofm-model-item-actions button.is-danger,.ofm-extra-section button.is-danger{color:#ff9c92}
.ofm-model-empty{margin-top:12px}
.ofm-model-empty .ofm-empty-mark{font-size:22px}
.ofm-model-detail{margin-top:16px}
.ofm-model-breadcrumb{display:flex;align-items:center;gap:9px;margin:0 0 17px;color:var(--theme-text-muted);font-size:12px}
.ofm-back-link{appearance:none;display:inline-flex;align-items:center;gap:6px;padding:4px 0;border:0;background:transparent;color:var(--theme-text-muted);font:500 12px/1.3 Inter,system-ui,sans-serif;cursor:pointer}
.ofm-back-link:hover{color:var(--theme-text)}
.ofm-back-link:focus-visible,.ofm-model-open:focus-visible,.ofm-model-menu summary:focus-visible{outline:2px solid #79cfff;outline-offset:3px}
.ofm-model-profile{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px;border:1px solid var(--theme-border);border-radius:17px;background:var(--theme-surface)}
.ofm-model-identity{display:flex;align-items:center;gap:16px;min-width:0}
.ofm-model-avatar-lg{display:grid;place-items:center;flex:none;width:68px;height:68px;overflow:hidden;border:1px solid rgba(0,140,207,.42);border-radius:18px;background:rgba(0,140,207,.09);color:#79cfff}
.ofm-model-avatar-lg svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ofm-photo-field{display:grid;gap:7px}
.ofm-photo-label{color:var(--theme-text-muted);font-size:11px;font-weight:530}
.ofm-photo-input{position:absolute;width:1px!important;height:1px!important;padding:0!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}
.ofm-photo-control{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ofm-photo-pick{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:11px;font-weight:520;cursor:pointer}
.ofm-photo-pick:hover{border-color:rgba(0,140,207,.65)}
.ofm-photo-input:focus-visible+.ofm-photo-control .ofm-photo-pick{outline:2px solid #79cfff;outline-offset:2px}
.ofm-photo-preview{display:grid;place-items:center;width:38px;height:38px;overflow:hidden;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-soft);color:var(--theme-text-muted)}
.ofm-photo-preview img{width:100%;height:100%;object-fit:cover}
.ofm-photo-empty{font-size:18px;line-height:1}
.ofm-manage-modal .ofm-form .ofm-photo-remove{width:auto;min-height:32px;padding:0 9px;border:1px solid var(--theme-border);border-radius:8px;background:transparent;color:var(--theme-text-muted);font:500 11px Inter,system-ui,sans-serif;cursor:pointer}
.ofm-manage-modal .ofm-form .ofm-photo-remove:hover{border-color:rgba(0,140,207,.55);color:var(--theme-text)}
.ofm-manage-modal .ofm-form .ofm-photo-remove[hidden]{display:none}
.ofm-photo-status.is-error{color:#ff9c92!important}
.ofm-model-profile h2{margin:0;font-size:clamp(22px,2.2vw,30px);font-weight:570;letter-spacing:-.03em;overflow-wrap:anywhere}
.ofm-model-profile .ofm-eyebrow{margin-bottom:7px}
.ofm-model-instagram-link{display:inline-flex;margin-top:11px;color:#82ccef;font-size:12px;text-decoration:none}
.ofm-subtle-label{display:block;margin-top:11px;color:var(--theme-text-muted);font-size:11px}
.ofm-model-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:13px}
.ofm-model-panel{min-width:0;padding:17px}
.ofm-model-panel>header,.ofm-model-notes>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ofm-model-panel>header h3,.ofm-model-notes>header h3{margin:0;font-size:16px;font-weight:560}
.ofm-model-panel>header p,.ofm-model-notes>header p{margin:4px 0 0;color:var(--theme-text-muted);font-size:11px}
.ofm-model-panel>header .ofm-secondary,.ofm-model-notes>header .ofm-secondary{min-height:35px;padding:0 10px;font-size:11px}
.ofm-model-items{display:grid}
.ofm-model-item{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 0;border-top:1px solid var(--theme-border)}
.ofm-account-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-soft);color:#8dd8fa;font-size:15px}
.ofm-model-item-main{display:grid;flex:1;gap:4px;min-width:0}
.ofm-model-item-main strong{font-size:12px;font-weight:560;overflow-wrap:anywhere}
.ofm-model-item-main small{color:var(--theme-text-muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.ofm-model-item>a{flex:none;color:#82ccef;font-size:10px;text-decoration:none}
.ofm-model-item-actions{display:flex;align-items:center;gap:3px;flex:none}
.ofm-model-item-actions button{min-height:30px;padding:0 7px;font-size:10px}
.ofm-model-item-actions button.is-danger{width:30px;padding:0;text-align:center}
.ofm-empty-inline{margin:0;padding:18px 4px;color:var(--theme-text-muted);font-size:12px}
.ofm-model-notes{margin-top:13px;padding:17px;border:1px solid var(--theme-border);border-radius:17px;background:var(--theme-surface)}
.ofm-extra-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ofm-extra-section{min-width:0;padding:14px}
.ofm-extra-section>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ofm-extra-section h4{margin:0;font-size:13px;font-weight:560;overflow-wrap:anywhere}
.ofm-extra-section header>div{display:flex;gap:2px;flex:none}
.ofm-extra-section header button{min-height:29px;padding:0 7px;font-size:10px}
.ofm-extra-section>p{margin:11px 0 0;color:var(--theme-text-muted);font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.ofm-manage-modal{width:min(540px,100%)}
.ofm-manage-modal .ofm-form{display:grid;gap:13px}
.ofm-manage-modal .ofm-form>label{display:grid;gap:6px;color:var(--theme-text-muted);font-size:11px}
.ofm-manage-modal .ofm-form input,.ofm-manage-modal .ofm-form textarea,.ofm-manage-modal .ofm-form select{width:100%;min-height:41px;padding:10px 12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface-soft);color:var(--theme-text);font:450 13px/1.4 Inter,system-ui,sans-serif}
.ofm-manage-modal .ofm-form textarea{min-height:90px;resize:vertical}
.ofm-manage-modal .ofm-form input:focus,.ofm-manage-modal .ofm-form textarea:focus,.ofm-manage-modal .ofm-form select:focus{outline:2px solid rgba(0,140,207,.7);outline-offset:1px}
.ofm-manage-modal .ofm-form small{color:var(--theme-text-muted);font-size:10px}
.ofm-manage-modal .ofm-form footer{display:flex;justify-content:flex-end;gap:9px;margin-top:4px}
.ofm-form-field-error{margin:0;color:#ff9c92;font-size:11px;line-height:1.4}
.ofm-manage-modal .ofm-form [aria-invalid="true"]{border-color:#f18475}
.ofm-management-page .ofm-local-notice{margin-top:18px}
.ofm-member-permission{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:var(--theme-text-muted);font-size:10px;cursor:pointer}
.ofm-member-permission input{accent-color:#008CCF}
@media(max-width:760px){.ofm-manage-heading{align-items:flex-start;flex-direction:column}.ofm-manage-heading>.ofm-primary{width:100%}.ofm-model-row{align-items:flex-start;min-height:100px;padding:12px 47px 25px 10px}.ofm-model-open{align-items:flex-start;gap:9px}.ofm-model-mark{width:32px;height:32px;border-radius:10px}.ofm-model-main strong{font-size:13px}.ofm-model-main small{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ofm-model-summary{position:absolute;right:48px;bottom:10px;gap:10px;margin:0;padding:0;font-size:9px}.ofm-model-chevron{font-size:21px}.ofm-model-instagram{left:51px;bottom:10px}.ofm-model-sections,.ofm-extra-sections{grid-template-columns:1fr}.ofm-model-profile{align-items:flex-start;flex-direction:column;padding:16px}.ofm-model-identity{align-items:flex-start;gap:12px}.ofm-model-avatar-lg{width:54px;height:54px;border-radius:15px}.ofm-model-profile>.ofm-secondary{width:100%}.ofm-model-panel,.ofm-model-notes{padding:13px}.ofm-model-panel>header,.ofm-model-notes>header{align-items:flex-start;flex-direction:column}.ofm-model-panel>header .ofm-secondary,.ofm-model-notes>header .ofm-secondary{width:100%}.ofm-model-item{align-items:flex-start;flex-wrap:wrap}.ofm-model-item-main{min-width:calc(100% - 45px)}.ofm-model-item-actions{margin-left:42px}.ofm-model-item>a{margin-left:42px}.ofm-manage-modal .ofm-form footer{flex-wrap:wrap}.ofm-manage-modal .ofm-form footer>*{flex:1}}

/* OFM quick chat: a persistent, non-modal panel scoped to the active local space. */
.ofm-chat-widget{position:fixed;right:24px;bottom:24px;z-index:30;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
.ofm-chat-widget>*{pointer-events:auto}
.ofm-chat-launch{position:relative;display:inline-flex;min-height:48px;align-items:center;justify-content:center;gap:9px;padding:0 16px;border:1px solid rgba(0,140,207,.55);border-radius:999px;background:var(--theme-surface-raised);color:var(--theme-text);font:560 13px/1.2 Inter,system-ui,sans-serif;box-shadow:0 8px 26px rgba(0,0,0,.32);cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.ofm-chat-launch:hover{background:#34343a;border-color:#008CCF;transform:translateY(-1px)}
.ofm-chat-launch svg{width:19px;height:19px;fill:none;stroke:#008CCF;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ofm-chat-launch:focus-visible,.ofm-chat-close:focus-visible,.ofm-chat-entry-link:focus-visible,.ofm-chat-new:focus-visible{outline:2px solid #008CCF;outline-offset:3px}
.ofm-chat-unread{position:absolute;top:-5px;right:-4px;display:grid;min-width:19px;height:19px;place-items:center;padding:0 5px;border:2px solid var(--theme-background);border-radius:99px;background:#008CCF;color:#fff;font-size:10px;line-height:1}
.ofm-chat-window{display:flex;width:min(500px,calc(100vw - 36px));height:min(640px,calc(100dvh - 104px));min-height:340px;flex-direction:column;overflow:hidden;border:1px solid rgba(0,140,207,.42);border-radius:18px;background:var(--theme-surface);box-shadow:0 20px 60px rgba(0,0,0,.48);animation:ofm-chat-enter .18s ease-out}
.ofm-chat-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid var(--theme-border);background:var(--theme-surface-soft)}
.ofm-chat-header h2{margin:0;font-size:16px;font-weight:610;letter-spacing:-.02em}
.ofm-chat-header p{margin:3px 0 0;color:var(--theme-text-muted);font-size:12px}
.ofm-chat-close{display:grid;width:34px;height:34px;flex:none;place-items:center;border:1px solid var(--theme-border);border-radius:50%;background:var(--theme-surface-raised);color:var(--theme-text);font-size:21px;line-height:1;cursor:pointer}
.ofm-chat-close:hover{border-color:rgba(0,140,207,.55);background:#34343a}
.ofm-chat-local-note{flex:none;margin:0;padding:9px 16px;border-bottom:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:11px;line-height:1.45}
.ofm-chat-history{display:flex;min-height:0;flex:1;flex-direction:column;gap:10px;overflow:auto;padding:14px 16px;overscroll-behavior:contain;scrollbar-color:rgba(255,255,255,.24) transparent;scrollbar-width:thin}
.ofm-chat-entry{max-width:88%;padding:10px 12px;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface-raised);overflow-wrap:anywhere}
.ofm-chat-entry header{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ofm-chat-entry header strong{font-size:11px;font-weight:620}
.ofm-chat-entry time{flex:none;color:var(--theme-text-muted);font-size:10px}
.ofm-chat-entry p{margin:6px 0 0;color:var(--theme-text);font-size:13px;line-height:1.5;white-space:pre-wrap}
.ofm-chat-entry.is-event{max-width:100%;align-self:stretch;padding:8px 10px;border:0;border-left:2px solid rgba(0,140,207,.72);border-radius:0 8px 8px 0;background:rgba(0,140,207,.07)}
.ofm-chat-entry.is-event p{color:var(--theme-text-muted);font-size:11px}
.ofm-chat-empty{margin:auto;color:var(--theme-text-muted);font-size:13px;text-align:center}
.ofm-chat-link-missing{display:block;margin-top:6px;color:var(--theme-text-muted);font-size:10px}
.ofm-chat-entry-link{margin-top:7px;padding:0;border:0;background:none;color:#70c9f2;font-size:11px;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.ofm-chat-new{align-self:center;margin:-5px 0 0;padding:6px 11px;border:1px solid rgba(0,140,207,.45);border-radius:99px;background:var(--theme-surface-raised);color:var(--theme-text);font-size:11px;cursor:pointer}
.ofm-chat-compose{flex:none;padding:11px 13px 13px;border-top:1px solid var(--theme-border);background:var(--theme-surface-soft)}
.ofm-chat-compose textarea{display:block;width:100%;min-height:62px;max-height:140px;resize:vertical;padding:10px 12px;border:1px solid var(--theme-border);border-radius:11px;background:var(--theme-surface);color:var(--theme-text);font:400 13px/1.45 Inter,system-ui,sans-serif}
.ofm-chat-compose textarea::placeholder{color:var(--theme-text-muted)}
.ofm-chat-compose textarea:focus-visible{outline:2px solid #008CCF;outline-offset:2px;border-color:#008CCF}
.ofm-chat-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.ofm-chat-compose-footer p{min-height:16px;margin:0;color:#ff9c91;font-size:11px;line-height:1.4}
.ofm-chat-compose-footer .ofm-primary{min-height:35px;flex:none;padding:0 14px}
.ofm-chat-compose-footer .ofm-primary:disabled{opacity:.45;cursor:not-allowed}
@keyframes ofm-chat-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.ofm-chat-widget{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));gap:8px}.ofm-chat-launch{min-height:46px;padding:0 14px}.ofm-chat-window{width:calc(100vw - 24px);height:min(640px,calc(100dvh - 88px - env(safe-area-inset-bottom)));min-height:min(360px,calc(100dvh - 110px));border-radius:15px}.ofm-chat-entry{max-width:94%}}
@media(prefers-reduced-motion:reduce){.ofm-chat-window{animation:none}.ofm-chat-launch{transition:none}}

.ofm-model-assignee{margin:8px 0 0;color:var(--theme-text-muted);font-size:12px;line-height:1.45}.ofm-model-assignee strong{color:var(--theme-text);font-weight:560}
.ofm-agenda-scale-control{position:relative;flex:none}
.ofm-agenda-controls .ofm-agenda-scale-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:72px;height:36px;padding:0 10px}
.ofm-agenda-scale-toggle>span{color:var(--theme-text-muted);font-size:13px}
.ofm-agenda-scale-menu{position:absolute;z-index:12;top:calc(100% + 7px);left:0;display:flex;min-width:138px;flex-direction:column;gap:2px;padding:5px;border:1px solid var(--theme-border);border-radius:12px;background:var(--theme-surface-raised);box-shadow:var(--theme-shadow)}
.ofm-agenda-scale-menu[hidden]{display:none}
.ofm-agenda-scale-menu button{width:100%;min-height:34px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:var(--theme-text);font:500 12px Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.ofm-agenda-scale-menu button:hover,.ofm-agenda-scale-menu button[aria-pressed=true]{background:rgba(0,140,207,.18);color:var(--theme-text)}
.ofm-agenda-scale-menu button:focus-visible{outline:2px solid #008CCF;outline-offset:1px}
.ofm-agenda-controls .ofm-agenda-now-button{display:grid;place-items:center;width:36px;height:36px;padding:0}
.ofm-agenda-now-button svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ofm-agenda-minor-line{position:absolute;z-index:0;left:0;right:0;height:0;border-top:1px dashed rgba(255,255,255,.09);pointer-events:none}
.ofm-agenda-event{z-index:2}
.ofm-agenda-now{z-index:5}
/* OFM agenda: same layout and calendar components as the personal agenda, scoped to OFM data and blue accents. */
.ofm-agenda-page{--citron:#008CCF;--ofm-agenda-glow:rgba(0,140,207,.2)}
.ofm-agenda-body{display:flex;align-items:stretch;gap:14px;height:min(78vh,900px);min-height:600px}
.ofm-agenda-page .agenda-tasks-pane{flex:0 0 32%;padding:20px 19px}
.ofm-agenda-page .calendar-pane{flex:1;min-width:0;padding:19px 14px 12px}
.ofm-agenda-page .agenda-task-row{background:var(--theme-surface-raised)}
.ofm-agenda-page .agenda-task-row:hover{background:#34343a}
.ofm-agenda-page .agenda-task-row.is-selected,.ofm-agenda-page .calendar-event.is-selected{border-color:rgba(0,140,207,.88);box-shadow:0 0 0 1px rgba(0,140,207,.46),0 6px 18px rgba(0,0,0,.24)}
.ofm-agenda-page .agenda-task-main[aria-pressed=true] .agenda-task-title{color:#fff}
.ofm-agenda-page .view-switch button.active{background:rgba(0,140,207,.28);box-shadow:inset 0 0 0 1px rgba(0,140,207,.55)}
.ofm-agenda-page .view-switch button:focus-visible,.ofm-agenda-page .control-button:focus-visible,.ofm-agenda-page .today-button:focus-visible,.ofm-agenda-page .calendar-scale-toggle:focus-visible,.ofm-agenda-page .tasks-density-toggle:focus-visible{outline:2px solid #008CCF;outline-offset:2px}
.ofm-agenda-page .calendar-scale-menu{background:#252529;border-color:rgba(0,140,207,.35);box-shadow:0 12px 32px rgba(0,0,0,.5)}
.ofm-agenda-page .calendar-scale-menu button:hover,.ofm-agenda-page .calendar-scale-menu button[aria-pressed=true]{background:rgba(0,140,207,.18)}
.ofm-agenda-page .calendar-column.is-today{background-color:rgba(0,140,207,.035)}
.ofm-agenda-page .calendar-day-heading.is-today{color:#8bd7ff;text-shadow:0 0 8px rgba(0,140,207,.45)}
.ofm-agenda-page .calendar-event{border-left-color:#008CCF;background:rgba(0,140,207,.13)}
.ofm-agenda-page .calendar-event:hover{background:rgba(0,140,207,.22)}
.ofm-agenda-page .calendar-event[data-urgency=low]{border-left-color:#92929a}
.ofm-agenda-page .calendar-event[data-urgency=high]{border-left-color:#e6bd5d}
.ofm-agenda-page .calendar-event[data-urgency=urgent]{border-left-color:#ef796d}
.ofm-agenda-page .calendar-now-indicator{border-top-color:#008CCF;filter:drop-shadow(0 0 3px rgba(0,140,207,.55))}
.ofm-agenda-page .calendar-now-indicator:before{background:#008CCF}
.ofm-agenda-page .calendar-now-label{background:#008CCF}
.ofm-agenda-page .calendar-column.drop-target:before{border-color:#79cfff;background:rgba(0,140,207,.16)}
.ofm-agenda-page .month-cell.is-selected-month{border-color:rgba(0,140,207,.72);box-shadow:0 0 0 1px rgba(0,140,207,.18),0 0 20px rgba(0,140,207,.12)}
.ofm-agenda-page .ofm-agenda-hint{margin:10px 0 0;padding-top:10px;border-top:1px solid var(--theme-border);color:var(--theme-text-muted);font-size:11px;line-height:1.45}
@media(max-width:1050px){.ofm-agenda-body{height:auto;min-height:0;flex-direction:column}.ofm-agenda-page .agenda-tasks-pane{flex:0 0 auto;max-height:360px}.ofm-agenda-page .calendar-pane{height:72vh;min-height:560px;flex:none}.ofm-agenda-page .calendar-head{align-items:flex-start;flex-wrap:wrap}.ofm-agenda-page .calendar-head h2{flex-basis:100%;font-size:22px}.ofm-agenda-page .calendar-grid-wrap{min-height:0}}
@media(max-width:700px){.ofm-agenda-body{gap:10px}.ofm-agenda-page .agenda-tasks-pane{max-height:330px;padding:14px}.ofm-agenda-page .calendar-pane{height:70vh;min-height:500px;padding:12px 8px}.ofm-agenda-page .calendar-head{gap:7px;min-height:0;margin-bottom:8px;padding:0 2px 8px}.ofm-agenda-page .calendar-head h2{font-size:18px}.ofm-agenda-page .view-switch{order:1}.ofm-agenda-page .view-switch button{min-width:58px;min-height:34px;padding:7px 9px;font-size:11px}.ofm-agenda-page .calendar-controls{order:2;max-width:100%;flex-wrap:wrap;gap:4px}.ofm-agenda-page .control-button{width:34px;height:34px}.ofm-agenda-page .today-button{min-height:34px;padding:0 8px;font-size:10px}.ofm-agenda-page .calendar-scale-toggle{min-height:34px;padding:0 7px;font-size:11px}.ofm-agenda-page .calendar-grid-wrap{padding-top:30px}.ofm-agenda-page .calendar-hours{flex-basis:38px}.ofm-agenda-page .hour-label{right:5px;font-size:10px}.ofm-agenda-page .calendar-board{min-width:630px}.ofm-agenda-page .calendar-day-heading{top:-30px;height:29px;font-size:11px}.ofm-agenda-page .calendar-board.month-view{min-width:3360px}.ofm-agenda-page .month-column-head h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){.ofm-agenda-page .agenda-task-row,.ofm-agenda-page .calendar-event{transition:none}}
@media(max-width:700px){.ofm-agenda-controls .ofm-agenda-scale-toggle{height:34px;min-width:62px;padding:0 7px}.ofm-agenda-controls .ofm-agenda-now-button{width:34px;height:34px}}

/* Empty validation messages must not display an error border. */
.ofm-form-error:empty{display:none}

/* The OFM notebook area embeds the same project workspace. */
.ofm-project-workspace .pr-page{width:100%;max-width:none;padding:28px 0 0;margin:0}
.ofm-project-workspace .pr-sidebar-note{overflow-wrap:anywhere}
.ofm-project-workspace .pr-format-toolbar button:disabled{opacity:.45;cursor:default}
.ofm-project-workspace .pr-empty{grid-column:1/-1}

.ofm-project-workspace .pr-page-heading{margin-bottom:28px}

.pr-modal{max-height:calc(100dvh - 36px);overflow:auto}.pr-access-list{display:grid;gap:10px;margin:0;padding:12px;border:1px solid var(--theme-border);border-radius:10px;max-height:180px;overflow:auto}.pr-access-list legend{color:var(--theme-text-muted);font-size:13px}.pr-access-list label{display:flex;align-items:center;gap:9px}.pr-access-list input{accent-color:#008CCF}

.cloud-status{position:fixed;bottom:8px;left:16px;z-index:90;max-width:min(75vw,650px);padding:7px 12px;border:1px solid var(--theme-border);border-radius:9px;background:var(--theme-surface);color:var(--theme-text-muted);font-size:12px}.cloud-status[data-error="true"]{color:#F18475}

html.app-starting body{visibility:hidden}.install-required{min-height:100dvh;display:grid;place-items:center;padding:30px 18px}.install-required>section{width:min(540px,100%);padding:38px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface)}.install-required h1{font-size:30px;line-height:1.2;letter-spacing:-1px}.install-required p{color:var(--theme-text-muted);font-size:14px;line-height:1.8}.install-required a{display:block;color:var(--theme-text-muted);margin-top:24px}.install-required details{margin-top:24px;font-size:13px}.install-required input{width:100%;padding:12px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface-soft);color:var(--theme-text)}@media(max-width:500px){.install-required>section{padding:25px}.install-required h1{font-size:26px}}
