:root{color-scheme:light;font-family:system-ui,sans-serif;color:#111827;background:#f4f5f7;font-synthesis:none;--ink: #111827;--muted: #566173;--line: #e5e7eb;--paper: #fff;--subtle: #f8fafc;--bg: #f4f5f7;--accent: #2563eb}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,input,select,textarea{border:1px solid #c9d0da;border-radius:.65rem;color:var(--ink);background:var(--paper)}button{padding:.55rem .8rem;min-height:44px;cursor:pointer;font-weight:650}button:disabled{cursor:default;opacity:.55}button:hover:not(:disabled){border-color:var(--accent);background:#eff6ff}:focus-visible{outline:3px solid #2156a3;outline-offset:2px}input,select,textarea{width:100%;min-width:0;min-height:44px;padding:.5rem .65rem}textarea{resize:vertical}label{display:grid;gap:.3rem;min-width:0;font-weight:600}form{display:grid;gap:.8rem;justify-items:start}form label{width:100%}h1,h2,h3,p{margin:0}p,li{line-height:1.5}h1,h2{line-height:1.15;letter-spacing:-.025em}h1{font-size:clamp(1.6rem,5vw,2.45rem);font-weight:750}h2{font-size:1.45rem}h3{font-size:1.05rem}ul,ol{margin:0;padding-inline-start:1.15rem}.eyebrow{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;color:var(--accent)}.primary,.primary:hover:not(:disabled){background:var(--ink);color:#fff;border-color:var(--ink)}.quiet{background:transparent}.access,.card{background:var(--paper);border:1px solid var(--line);border-radius:.9rem}.access{width:min(31rem,calc(100% - 1.5rem));margin:clamp(1rem,9vh,6rem) auto;padding:clamp(1rem,5vw,2rem);display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;justify-items:start;overflow-wrap:anywhere}.access>*,.access form>*{min-width:0;max-width:100%}.access form{width:100%;grid-template-columns:minmax(0,1fr)}.workspace{max-width:78rem;padding:1rem clamp(.5rem,3vw,2rem) 2rem;margin:auto;display:grid;gap:.9rem}.masthead{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;padding:.6rem .3rem 1rem;border-bottom:2px solid var(--accent)}.masthead p:last-child{margin-top:.35rem;color:var(--muted)}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.card{min-width:0;padding:clamp(.5rem,2vw,1.2rem)}.idel-app{width:min(100%,520px);height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}.topbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:.35rem;background:var(--paper);border-bottom:1px solid var(--line);padding:calc(.4rem + env(safe-area-inset-top)) .65rem .4rem}.brand{font-size:1rem;display:flex;align-items:center;gap:.45rem}.brand-dot{width:.5rem;height:.5rem;border-radius:50%;background:#059669;flex:none}.top-actions{display:flex;align-items:center;gap:.3rem}.account-chip{border:1px solid var(--line);border-radius:.6rem;background:var(--subtle);padding:.4rem .5rem;font-size:.8rem;font-weight:700}.icon-button{min-width:44px;display:inline-grid;place-items:center;padding:.35rem}.idel-app>.notice,.idel-app>[role=status]{margin:.35rem .65rem}.planning-view{flex:1;min-height:0;display:flex;flex-direction:column}.planning-controls{flex:none;background:var(--paper);border-bottom:1px solid var(--line);padding:.45rem .65rem .3rem}.month-jump{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-bottom:.35rem}.month-jump button,.filters-bar button{padding:.25rem;font-size:.75rem;font-weight:750;border-color:var(--line);min-width:0}.month-jump button{background:var(--subtle)}.month-jump [aria-pressed=true],.filters-bar [aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}.filters-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-bottom:.35rem}.tour-segment,.nurse-filters{display:flex;align-items:center;gap:3px}.tour-segment{flex:none;max-width:100%;padding:2px;border-radius:99px;background:var(--subtle);border:1px solid var(--line)}.filters-bar button{border-radius:99px;min-height:38px;padding-inline:.37rem}.tour-segment button:not([aria-pressed=true]){border-color:transparent;background:transparent}.nurse-filters{min-width:0;overflow-x:auto;scrollbar-width:thin;padding:3px}.nurse-filters button{flex:none;min-width:1.75rem}.planning-scroll{flex:1;min-height:0;overflow:auto;padding:0 .65rem .9rem;overscroll-behavior-y:contain}.month-block{margin-bottom:.65rem}.month-block:last-of-type{min-height:100%}.month-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;padding:.45rem .25rem;background:var(--bg);font-size:.95rem}.month-head span{color:var(--muted);font-size:.75rem}.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekdays{text-align:center;font-size:.65rem;font-weight:750;color:var(--muted);text-transform:uppercase}.day{min-width:0;min-height:63px;padding:3px;display:flex;flex-direction:column;gap:2px;text-align:left;border-color:var(--line)}.day[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:-2px}.day[aria-current=date] .day-number{text-decoration:underline;text-underline-offset:.15em}.day-number{align-self:stretch;display:flex;align-items:center;justify-content:space-between;padding:0 2px;font-size:.72rem}.tone-action{--status-bg: #fff4e6;--status-line: #e39b53;--status-accent: #c2410c;--status-chip: #ffead1;--status-text: #7c2d12}.tone-wait{--status-bg: #f4f8ff;--status-line: #93baff;--status-accent: #2563eb;--status-chip: #dbeafe;--status-text: #1e40af}.tone-done{--status-bg: #f1fbf6;--status-line: #8cd5ba;--status-accent: #047857;--status-chip: #d1fae5;--status-text: #065f46}.tone-rejected{--status-bg: #fff6f6;--status-line: #fecaca;--status-accent: #b91c1c;--status-chip: #fee2e2;--status-text: #991b1b}.state-mark{display:inline-grid;place-items:center;flex:none;width:15px;height:15px;border-radius:50%;font: 800 .72rem/1 system-ui,sans-serif;color:var(--status-text);background:var(--status-chip)}.day-action .state-mark{color:#fff;background:var(--status-text)}.day.day-action{box-shadow:inset 0 0 0 1px var(--status-accent)}.day:is(.day-action,.day-wait,.day-done){border-color:var(--status-line);background:var(--status-bg)}.vote-callout{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.6rem;flex:none;text-align:start;margin:.35rem .65rem;padding:.45rem .65rem;color:#7c2d12;background:#fff1db;border-color:#e39b53}.vote-callout:hover:not(:disabled){color:#7c2d12;border-color:#9a3412;background:#ffead1}.vote-callout-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#9a3412;color:#fff}.vote-callout small{display:block;font-weight:550}.code{align-self:stretch;padding:2px 0;text-align:center;border:1px solid transparent;border-radius:6px;font-weight:750;font-size:.68rem;line-height:1.1}.code.slot-dimmed{background:var(--subtle);border-color:var(--line);color:var(--muted)}.linda{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.julie{background:#fff1f2;color:#be123c;border-color:#fecdd3}.lucie{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.fanny{background:#fffbeb;color:#92400e;border-color:#fde68a}.unassigned{color:var(--muted);background:var(--subtle)}.note{color:var(--muted);font-size:.85rem}.bottom-nav{display:flex;justify-content:space-between;flex:none;padding:.2rem .3rem calc(.2rem + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);margin-top:auto}.bottom-nav button{position:relative;flex:1;min-width:0;border:0;display:grid;place-items:center;gap:.2rem;padding:.35rem .12rem;color:var(--muted);font-size:.7rem}.bottom-nav [aria-current=page]{color:var(--accent);background:#eff6ff}.tab-badge{position:absolute;top:.1rem;left:calc(50% + .5rem);padding:0 .26rem;background:var(--accent);color:#fff;border-radius:99px}.day-sheet{width:min(100%,520px);max-width:100%;max-height:84dvh;margin:auto auto 0;padding:0;border:1px solid var(--line);border-radius:22px 22px 0 0;color:var(--ink);background:var(--paper);overscroll-behavior-y:contain}.day-sheet::backdrop{background:#11182773;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.day-detail{display:grid;gap:.65rem;padding:.6rem 1rem calc(1rem + env(safe-area-inset-bottom))}.sheet-handle{width:36px;height:4px;background:#d1d5db;border-radius:99px;margin:0 auto}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:.45rem;width:100%}.sheet-header h2{font-size:1.12rem;text-transform:capitalize}.sheet-links,.tour-left{display:flex;gap:.45rem;align-items:center}.link-pill,.close-sheet{border:1px solid var(--line);border-radius:99px;background:var(--subtle)}.link-pill{padding:.35rem .55rem;font-size:.74rem}.tour-card{border:1px solid var(--line);border-radius:14px;background:var(--paper)}.tour-card:focus-within{outline:1px solid var(--line)}.tour-row{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.65rem .8rem;border:0;border-radius:14px;background:transparent}.tour-tag{display:inline-flex;align-items:center;border-radius:6px;background:var(--subtle);border:1px solid var(--line);color:var(--muted);font-size:.69rem;font-weight:800;padding:.13rem .35rem;white-space:nowrap}.nurse-chip{display:inline-flex;align-items:center;border-width:1px;border-style:solid;border-radius:99px;font-size:.78rem;font-weight:750;padding:.15rem .5rem}.nurse-chip.unassigned{border-color:var(--line)}.edit-hint{color:var(--accent);font-size:.82rem;font-weight:750}.inline-picker{display:grid;gap:.55rem;padding:.7rem;background:var(--subtle);border-top:1px solid var(--line);border-radius:0 0 14px 14px}.change-preview{display:grid;gap:.55rem}.vote-progress{color:#7c2d12;font-weight:750;font-size:.8rem}.picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.pick-nurse{display:flex;align-items:center;justify-content:space-between;gap:.2rem;min-width:0;padding:.35rem .45rem;font-size:.82rem}.pick-nurse .nurse-chip{padding:.12rem .27rem;font-size:.65rem}.swap-button{border:1px dashed #93c5fd;color:#1d4ed8;background:#eff6ff;font-size:.8rem}.swap-form{justify-items:stretch}.change-flow{display:grid;gap:.25rem;min-width:0}.change-line,.change-person{display:flex;align-items:center;gap:.28rem}.change-line{flex-wrap:wrap}.change-arrow,.proposal-count{color:var(--muted);font-size:.73rem}.proposal-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem;align-items:start}.proposal-actions{display:flex;flex-wrap:wrap;gap:.5rem}.proposal-actions button{flex:1}.proposal-actions .reject{background:#fee2e2;color:#991b1b;border-color:#fee2e2}.refusal-form{background:var(--paper);border:1px solid #fecaca;border-radius:.7rem;padding:.65rem;gap:.45rem;justify-items:stretch}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.feed{display:grid;gap:.8rem;justify-items:start}.feed>*{max-width:100%}.assignments,.entries{display:grid;list-style:none;padding:0;gap:.5rem;width:100%}.proposal,.entries>li{display:grid;gap:.45rem;width:100%;border-top:1px solid var(--line);padding-top:.65rem}.votes{display:flex;flex-wrap:wrap;gap:.25rem .7rem;list-style:none;padding:0;font-size:.88rem}.day-sheet .proposal{padding:.65rem;border:1px solid var(--status-line, var(--line));background:var(--status-bg, var(--subtle));border-radius:.85rem}@media(prefers-reduced-motion:no-preference){.vote-sheet .proposal{animation:next-vote .18s ease-out}@keyframes next-vote{0%{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}.proposal>.decision-badge{justify-self:start}.votes li{border:1px solid var(--line);border-radius:99px;padding:.12rem .45rem;background:var(--paper);font-size:.75rem}.votes .vote-yes{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.votes .vote-no{background:#fff1f2;color:#be123c;border-color:#fecdd3}.vote-receipt{justify-self:start;padding:.15rem .5rem;border:1px solid #a7f3d0;border-radius:99px;color:#065f46;background:#ecfdf5;font-size:.72rem;font-weight:700}.notice{background:#fff0d7;border-inline-start:3px solid #8d521a;color:#513710;padding:.55rem .75rem;overflow-wrap:anywhere}.card>.notice{margin-bottom:.5rem}.feed form{width:min(100%,38rem)}.idel-app>.feed{flex:1;align-content:start;min-height:0;overflow:auto;border:0;border-radius:0;background:var(--bg);padding:.8rem}.history-view{flex:1;min-height:0;display:flex;flex-direction:column}.history-top{display:flex;flex-wrap:wrap;gap:.35rem;padding:.5rem .65rem;border-bottom:1px solid var(--line);background:var(--paper)}.filter-chip{border:1px solid var(--line);border-radius:99px;padding:.25rem .65rem;font-size:.75rem;color:var(--muted)}.filter-chip[aria-pressed=true],.filter-chip.day-filter{background:var(--ink);border-color:var(--ink);color:#fff}.history-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:.65rem .75rem}.history-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}.history-card{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:.55rem .6rem;text-align:start}.history-date{width:42px;min-height:44px;padding:.2rem;display:grid;justify-items:center;align-content:center;background:var(--subtle);border:1px solid var(--line);border-radius:11px}.history-date strong{font-size:1rem;line-height:1}.history-date span{text-transform:uppercase;font-size:.61rem;font-weight:750;color:var(--muted)}.history-flow{display:grid;gap:.2rem}.history-flow .note{font-size:.7rem}.history-meta{display:grid;justify-items:end;gap:.2rem}.history-meta time{font-size:.65rem;color:var(--muted);text-align:end}.decision-badge{padding:.15rem .45rem;border-radius:99px;background:var(--status-chip, var(--subtle));border:1px solid var(--status-line, var(--line));color:var(--status-text, var(--muted));font-weight:800;font-size:.66rem}.history-card:is(.tone-action,.tone-wait,.tone-done,.tone-rejected){background:var(--status-bg);border-color:var(--status-line);border-inline-start:4px solid var(--status-accent)}.pane-empty{padding:.65rem;text-align:center;border-radius:.75rem;background:var(--paper);color:var(--muted);font-size:.8rem}.load-more{display:block;margin:.55rem auto;font-size:.8rem}.simulation-controls{flex:none;padding:.5rem .65rem;background:#fff0d7;color:#513710;border-bottom:1px solid #e9c489}.simulation-controls>p{font-size:.85rem;margin-bottom:.3rem}.simulation-controls .toolbar{align-items:end}.simulation-controls label,.simulation-controls button{font-size:.76rem}.simulation-controls select{min-width:5.5rem}@media(min-width:600px){.idel-app{height:calc(100dvh - 28px);margin:14px auto;border:1px solid var(--line);border-radius:22px;box-shadow:0 14px 36px #1118271f}.day-sheet{margin:auto;border-radius:20px}}
