:root{color:#0f172a;background-color:#f7f9fc;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button{font-family:inherit}.app-shell{min-height:100vh;background:#f7f9fc;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,SF Pro Display,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";padding:16px;-webkit-user-select:none;user-select:none}input,textarea,select,button{-webkit-user-select:text;user-select:text}.topbar{display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px;margin-bottom:12px;position:sticky;top:0;z-index:10;box-shadow:0 6px 18px #0f172a0f}.topbar-mode{display:flex;justify-content:center;position:relative}.mode-pill{padding:6px 12px;border-radius:16px;background:#e2e8f0;font-weight:700;letter-spacing:.3px;color:#0f172a;border:none;cursor:pointer}.auth-popover{position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%);background:#fff;border:1px solid #e5e7eb;box-shadow:0 10px 30px #0000001f;border-radius:12px;padding:12px;min-width:220px;z-index:20}.auth-form{display:flex;flex-direction:column;gap:8px}.auth-form input{padding:6px 8px;border:1px solid #e5e7eb;border-radius:8px}.overlay-backdrop{position:fixed;inset:0;background:#0f172a40;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}.fav-overlay-card{background:#fff;border-radius:16px;padding:16px;width:min(520px,90vw);box-shadow:0 18px 40px #0f172a2e;border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:12px}.fav-overlay-header h3{margin:0;font-size:18px}.fav-overlay-search{position:relative}.fav-overlay-search input{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #dce3ee;font-size:14px}.fav-overlay-list{max-height:320px;overflow:auto;border:1px solid #e5e7eb;border-radius:12px;padding:8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}.fav-overlay-item{border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:8px 10px;text-align:left;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;transition:background .15s ease,border-color .15s ease}.fav-overlay-item:hover{background:#e0f2fe;border-color:#bfdbfe}.fav-overlay-item.selected{border-color:#22c55e;background:#dcfce7;color:#166534}.fav-overlay-item .check{font-weight:700}.fav-overlay-actions{display:flex;justify-content:center;width:100%}.fav-overlay-actions button{width:100%;padding:12px;border-radius:12px;border:1px solid #d7dce5;background:#fff;color:#0f172a;font-weight:600;box-shadow:0 4px 10px #0f172a14;transition:transform .1s ease,box-shadow .2s ease,background .2s ease}.fav-overlay-actions button:hover{background:#f8fafc;transform:translateY(-1px);box-shadow:0 6px 14px #0f172a1f}.topbar button{background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;cursor:pointer;margin:0 3px;transition:transform .1s ease,background .2s ease}.topbar button:hover{background:#f3f4f6;transform:translateY(-1px)}.topbar .primary{background:#2563eb;color:#fff;font-weight:700;border-color:#2563eb;margin:5px}.topbar .ghost{background:#fff;border:1px solid #d7dce5}.month-picker{position:absolute;left:0;transform:none;top:70px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 30px #0f172a1f;padding:12px;z-index:20;min-width:260px}.month-picker-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:700}.month-picker-header button{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:6px 10px;cursor:pointer}.month-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(60px,1fr));gap:8px}.month-picker-cell{border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;padding:8px;cursor:pointer;transition:background .2s ease,transform .1s ease}.month-picker-cell:hover{background:#e0f2fe;transform:translateY(-1px)}.topbar .left{display:flex;align-items:center;gap:8px}.month-label{font-weight:500;letter-spacing:.3px;padding:6px 10px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0}.month-label .month-strong{font-weight:800}.month-label .month-light{font-weight:500}.month-label.clickable{cursor:pointer;-webkit-user-select:none;user-select:none}.tabs{display:flex;gap:8px;margin-bottom:12px}.tabs button{flex:1;padding:10px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;color:#475569;cursor:pointer}.tabs .active{background:#2563eb;color:#fff;font-weight:700;border-color:#2563eb}.banner{background:#fef3c7;color:#92400e;padding:10px 12px;border-radius:10px;margin-bottom:10px;border:1px solid #fcd34d}.modal-backdrop{position:fixed;inset:0;background:#00000059;display:flex;align-items:center;justify-content:center;z-index:10}.modal{background:#fff;padding:12px;border-radius:12px;box-shadow:0 10px 30px #0f172a40;width:min(420px,90vw);display:flex;flex-direction:column;gap:12px}.modal-footer{display:flex;justify-content:flex-end;gap:10px}.calendar-nav{display:flex;align-items:center;gap:10px;justify-content:left;margin-bottom:12px}.holiday-modal{background:#fff;color:#0f172a;padding:20px;border-radius:16px;width:min(520px,95vw);box-shadow:0 14px 32px #0f172a2e;display:flex;flex-direction:column;gap:12px}.holiday-modal-header,.modal-header{display:flex;justify-content:space-between;align-items:center;font-size:16px}.holiday-nav{display:flex;align-items:center;gap:10px}.holiday-nav button{background:#f8fafc;color:#0f172a;border:1px solid #e2e8f0;border-radius:8px;padding:6px 10px;cursor:pointer}.holiday-grid{display:grid;grid-template-columns:repeat(7,44px);gap:8px;justify-content:center}.holiday-weekday{text-align:center;font-size:12px;color:#9ca3af}.holiday-weekdays{display:grid;grid-template-columns:repeat(7,44px);gap:8px;justify-content:center;margin:8px 0 4px}.holiday-day{background:#f8fafc;color:#0f172a;border:1px solid #e2e8f0;border-radius:14px;padding:0;height:44px;width:44px;cursor:pointer;font-size:14px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,border-color .15s ease}.holiday-day.selected{background:#2563eb;border-color:#2563eb;color:#fff}.holiday-day:hover{background:#e0f2fe;border-color:#bfdbfe}.holiday-modal-actions{display:flex;justify-content:flex-end;gap:10px}.holiday-modal-actions button{background:#f8fafc;color:#0f172a;border:1px solid #e2e8f0;border-radius:8px;padding:8px 14px;cursor:pointer}.holiday-modal-actions button:last-child{background:#2563eb;border-color:#2563eb;color:#fff}.calendar-grid-compact{display:grid;grid-template-columns:repeat(7,44px);gap:4px;justify-content:center;margin:12px 0}.calendar-cell-btn{height:44px;width:44px;border-radius:14px;border:1px solid #d7dce5;background:#f8fafc;font-weight:700;color:#0f172a;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .1s ease}.calendar-cell-btn:hover{background:#e0f2fe;border-color:#bfdbfe}.calendar-cell-btn.muted{opacity:.35;cursor:default}.calendar-cell-btn.selected{background:#2563eb;color:#fff;border-color:#1d4ed8}.holiday-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:12px}.holiday-chip{background:#f8fafc;color:#0f172a;padding:10px 12px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;box-shadow:0 2px 6px #0f172a0d}.holiday-chip button{border:1px solid #e2e8f0;background:#fff;cursor:pointer;color:#0f172a;font-weight:700;font-size:14px;border-radius:8px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0f172a14}main{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;box-shadow:0 12px 24px #0f172a0d}@media(max-width:768px){.app-shell{padding:4px}main{padding:4px}}.list-view details{margin-bottom:10px;background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px}.summary-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:700}.shift-card{display:flex;flex-direction:column;gap:8px;margin-top:8px}.worker-row{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border-radius:10px;padding:8px 10px;border:1px solid #e5e7eb}.worker-name{display:flex;align-items:center;gap:8px}.worker-controls{display:flex;align-items:center;gap:10px}select{background:#fff;color:#0f172a;border:1px solid #cbd5e1;border-radius:8px;padding:6px 8px}.badge{padding:4px 8px;border-radius:999px;font-size:12px;text-transform:uppercase;letter-spacing:.5px;border:1px solid #e2e8f0;white-space:nowrap}.role-stayer{background:#fee2e2;color:#b91c1c}.role-goer{background:#dcfce7;color:#166534}.role-goer2{background:#e8f5d5;color:#3b7c38}.pill{padding:4px 10px;border-radius:999px;font-weight:700;text-transform:uppercase;font-size:12px;letter-spacing:.4px}.pill-stayer{background:#ef4444;color:#fff}.pill-goer{background:#16a34a;color:#fff}.pill-twr{background:#1d4ed8;color:#fff}.pill-app{background:#16a34a;color:#fff}.pill-twr.role-stayer,.role-stayer{border-color:#ef4444}.pill-twr.role-goer,.role-goer{border-color:#22c55e}.pill-twr.role-goer2,.role-goer2{border-color:#14b8a6}.dot{width:10px;height:10px;border-radius:50%;background:#cbd5e1;display:inline-block}.dot-manual{background:#f59e0b}.dot-past{background:#ef4444}.calendar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.calendar-cell{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px;box-shadow:0 6px 16px #0f172a0d}.calendar-scroll{overflow-x:auto;padding-bottom:8px;cursor:grab}.calendar-scroll.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.calendar-cell.holiday{background:#fee2e2;border-color:#fecdd3}.calendar-date{font-weight:700;margin-bottom:6px;display:flex;flex-direction:column;gap:2px}.calendar-date-number{font-size:14px}.calendar-date-dow{font-size:12px;color:#475569}.cell-shift{background:#f8fafc;border-radius:8px;padding:6px;margin-bottom:6px;border:1px solid #e5e7eb}.cell-shift-header{font-size:12px;text-transform:uppercase;letter-spacing:.4px;opacity:.8;margin-bottom:8px}.cell-role{display:flex;align-items:center;gap:8px;padding:6px;margin:4px;border-radius:6px}.cell-role.role-stayer{background:#fee2e2}.cell-role.role-goer{background:#d1fae5}.cell-role.role-goer2{background:#e8f5d5}.calendar-month-wrapper{padding:12px}.calendar-month-header{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}.calendar-month-header h2{margin:0;font-size:22px;font-weight:800}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;font-weight:700;color:#374151;font-size:12px;padding:0 4px}.calendar-weekday{text-align:center}.calendar-month-grid{display:flex;flex-direction:column;gap:8px}.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(160px,1fr));gap:4px}.calendar-day-cell{border:1px solid #e5e7eb;border-radius:8px;min-height:140px;padding:6px;background:#fff;display:flex;flex-direction:column;gap:6px}.calendar-day-cell.muted{background:#f9fafb;color:#9ca3af}.calendar-day-cell-header{display:flex;justify-content:space-between;align-items:baseline;font-weight:700;color:#111827;font-size:12px}.calendar-day-cell-header .day-number{font-size:14px}.calendar-day-cell-header .day-number.today{background:#ef4444;color:#fff;border-radius:999px;padding:4px 7px;min-width:26px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.calendar-day-cell-header .day-dow{color:#6b7280}.calendar-events{display:flex;flex-direction:column;gap:4px}.cal-shift-pill{border-radius:8px;padding:4px 6px;background:#f8fafc;border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:3px}.cal-shift-title{font-weight:700;font-size:12px;color:#0f172a}.cal-shift-title.cal-app{color:#15803d}.cal-shift-title.cal-twr{color:#1d4ed8}.cal-worker{border-radius:6px;padding:4px 6px;display:flex;align-items:center;gap:6px;color:#0f172a;background:#fff;border:1px solid #e5e7eb}.cal-worker select{flex:1;font-size:12px}.cal-worker-name{font-weight:400;background:transparent;border:none;padding:0;text-align:left;cursor:pointer;color:#0f172a}.cal-worker-name:hover{text-decoration:underline}.cal-select-wrap{flex:1}.pill .pill-text{display:inline-flex;width:100%;height:100%;align-items:center;justify-content:center}.calendar-mobile-wrapper{display:flex;flex-direction:column;gap:10px}.calendar-mobile-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-mobile-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;font-size:11px;color:#6b7280;text-align:center;margin-bottom:6px}.cal-mobile-weekday{font-weight:700}.cal-mobile-day{background:#fff;border:none;border-radius:10px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 1px 3px #00000014;cursor:pointer}.cal-mobile-day.muted{color:#cbd5e1;opacity:.7}.cal-mobile-day.active{outline:2px solid #2563eb}.cal-mobile-day.today .cal-mobile-num{background:#ef4444;color:#fff;border-radius:999px;padding:4px 8px;min-width:28px;text-align:center;display:inline-flex;align-items:center;justify-content:center}.cal-mobile-num{font-weight:700}.cal-mobile-bars{display:flex;gap:3px}.cal-mobile-bars .bar{width:16px;height:4px;border-radius:4px}.cal-mobile-bars .bar.fav{background:#fbbf24}.calendar-mobile-bottom{background:#fff;border-radius:12px 12px 0 0;padding:10px;box-shadow:0 -2px 10px #00000014}.calendar-mobile-bottom .bottom-header{font-weight:800;margin-bottom:8px}.bottom-shift{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid #e5e7eb}.bottom-shift:last-of-type{border-bottom:none}.bottom-shift-body{flex:1;display:flex;flex-direction:column;gap:6px}.bottom-worker{display:flex;align-items:center;gap:8px;justify-content:space-between}.bottom-name{font-weight:600}.pill-text{display:inline-block;width:100%;text-align:center}.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}.stats-search{margin-bottom:10px;position:relative}.stats-search input{width:100%;padding:8px 10px;border:1px solid #e2e8f0;border-radius:8px}.stats-suggestions{position:absolute;top:38px;left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 6px 16px #0f172a14;z-index:4;display:flex;flex-direction:column}.stats-suggestions button{padding:6px 10px;text-align:left;background:transparent;border:none;cursor:pointer}.stats-suggestions button:hover{background:#f1f5f9}.stat-card{background:#fff;border:1px solid #e5e7eb;padding:10px;border-radius:12px;box-shadow:0 8px 18px #0f172a0d;cursor:pointer;position:relative}.fav-toggle{position:absolute;top:8px;right:8px;border:none;background:transparent;font-size:18px;padding:0;cursor:pointer}.fav-toggle.fav-on{color:#f59e0b}.stat-name{font-weight:800;margin-bottom:8px;padding-right:16px}.stat-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.stat-expansion{margin-top:8px;border-top:1px dashed #e5e7eb;padding-top:8px;display:flex;flex-direction:column;gap:10px}.stat-expansion-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px;box-shadow:inset 0 1px #f1f5f9}.stat-shift-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.stat-shift-row{display:flex;align-items:center;justify-content:space-between;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:8px 10px;margin-top:6px}.stat-shift-name{display:flex;align-items:center;gap:8px;font-weight:600;color:#0f172a;font-size:15px;line-height:1.2}.stat-shift-controls{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.people-table-container{max-width:100%;overflow:auto;cursor:grab}.people-table-container.dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.people-table{width:100%;border-collapse:collapse}.people-table th{padding:6px 8px;border:1px solid #e5e7eb;text-align:center;min-width:70px;vertical-align:top;height:70px}.people-table td{padding:6px 24px 6px 8px;border:1px solid #e5e7eb;text-align:left;min-width:70px;vertical-align:top;height:70px}.people-table th{background:#f8fafc;z-index:2}.people-table thead{background:#f8fafc;box-shadow:0 6px 16px #0f172a14}.people-table th.weekend{background:#dee2e5}.people-table th.holiday{background:#fee2e2;color:#b91c1c}.people-table td.weekend{background:#f8fafc}.people-table td.holiday{background:#ffe4e6}.date-header{display:flex;flex-direction:column;align-items:center;line-height:1.2}.date-header small{color:#64748b;font-size:11px}.calendar-date.holiday{color:#b91c1c}.extra-shift-codes{display:flex;flex-wrap:wrap;gap:4px;max-width:140px;justify-content:center}.extra-code-pill{background:#eef2ff;color:#4338ca;border-radius:8px;padding:2px 6px;font-size:10px;border:1px solid #c7d2fe;white-space:nowrap}.sticky-name{position:sticky;left:0;background:#f8fafc;text-align:left;font-weight:700;z-index:2}.people-role-card{position:relative;display:flex;flex-direction:column;gap:4px;padding:4px;border-radius:8px;background:#f8fafc;border:2px solid #e5e7eb;min-width:55px;max-width:75px}.people-role-card.twr{border-color:#1d4ed8}.people-role-card.app{border-color:#16a34a}.people-role-dot{position:absolute;top:4px;right:4px;width:6px;height:6px;border-radius:50%;background:#f59e0b}.people-role-dot.dot-past{background:#ef4444}.people-role-badge{align-self:flex-start}@media(max-width:768px){.people-table thead{top:68px}.people-table th,.people-table td{padding:5px 4px;min-width:50px;height:56px}.people-table .sticky-name{font-size:13px;font-weight:600;padding-right:12px}.people-table td{font-size:12px}.date-header small{font-size:10px}.fav-toggle{position:absolute;top:1px;right:1px;border:none;background:transparent;font-size:12px;padding:0;cursor:pointer}}.settings-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.setting-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;padding:10px;border-radius:10px}.setting-value{font-weight:700}.sliders-row{flex-direction:column;align-items:flex-start;gap:14px}.slider-card{display:flex;align-items:center;gap:10px;width:100%}.slider-card input[type=range]{flex:1}.settings-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}.settings-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;box-shadow:0 12px 24px #0f172a0d;display:flex;flex-direction:column;gap:12px}.settings-card-title{font-weight:800;font-size:16px;margin:0}.settings-card-subtitle{color:#64748b;font-size:12px;margin-top:-6px}.stayer-runs{display:flex;flex-direction:column;gap:8px}.stayer-run-card{padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 1px 2px #0000000a}.stayer-run-name{font-weight:700;font-size:15px;margin-bottom:4px}.stayer-run-dates{color:#475569;font-size:14px}.empty-state{padding:12px;color:#475569}.info-tooltip{position:relative;display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:50%;border:1px solid #94a3b8;color:#475569;font-weight:700;font-size:13px;cursor:default}.info-tooltip .tooltip-content{position:absolute;top:28px;left:0;min-width:260px;background:#0f172a;color:#f8fafc;border-radius:10px;padding:10px;box-shadow:0 8px 16px #0000002e;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:5}.info-tooltip:hover .tooltip-content{opacity:1;pointer-events:auto}.info-tooltip .tooltip-content strong{color:#e0f2fe}.settings-sliders{display:flex;flex-direction:column;gap:10px}.settings-rolelabels{display:flex;flex-direction:column;gap:10px;margin:10px 0}.setting-row.compact{padding:10px}.settings-card button{background:#f8fafc;border:1px solid #d7dce5;border-radius:10px;padding:8px 12px;cursor:pointer;transition:background .2s ease,transform .1s ease,box-shadow .2s ease;font-weight:600;color:#0f172a}.settings-card button:hover{background:#e8f0ff;transform:translateY(-1px);box-shadow:0 6px 12px #2563eb1f}.algo-toggle{display:grid;grid-template-columns:1fr 1fr;background:#e2e8f0;border-radius:24px;padding:4px;gap:4px;width:200px}.algo-toggle button{border:none;background:transparent;border-radius:20px;font-weight:700;color:#475569;transition:background .2s ease,color .2s ease}.algo-toggle button.active{background:#2563eb;color:#fff}.uploads-list{max-height:220px;overflow:auto;width:100%;font-size:12px;border-top:1px dashed #e5e7eb;padding-top:10px}@media(min-width:960px){.list-view{column-count:2;column-gap:12px}.list-view details{break-inside:avoid}}
