:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#111827;background:#fff;color-scheme:light;--blue: #1d4ed8;--blue-dark: #1e40af;--gray-100: #f3f4f6;--gray-200: #e5e7eb;--gray-300: #d1d5db;--gray-600: #4b5563}*{box-sizing:border-box}body{margin:0;min-height:100vh;line-height:1.4}a{color:var(--blue)}h1{font-size:1.5rem;margin:.5rem 0}h2{font-size:1.125rem;margin:1.5rem 0 .5rem}h3{font-size:1rem;margin:1rem 0 .5rem}.container{max-width:40rem;margin:0 auto;padding:1rem}.muted{color:var(--gray-600);font-size:.9375rem}.lead{font-size:1.125rem;line-height:1.5}.button{display:inline-block;padding:.875rem 1.25rem;border-radius:.5rem;font-weight:600;text-decoration:none;min-height:44px;border:1px solid transparent;font:inherit;cursor:pointer}.button:disabled{opacity:.6;cursor:default}.button-primary{background:var(--blue);color:#fff}.button-primary:hover:not(:disabled),.button-primary:focus-visible{background:var(--blue-dark)}.button-secondary{background:var(--gray-100);color:#111827;border-color:var(--gray-300)}.button-secondary:hover:not(:disabled),.button-secondary:focus-visible{background:var(--gray-200)}.button-small{padding:.5rem .75rem;min-height:36px;font-size:.875rem}.page-public{padding-top:2rem;padding-bottom:2rem}.page-footer{margin-top:3rem;padding-top:1rem;border-top:1px solid var(--gray-200);font-size:.9375rem}.prose{line-height:1.6}.prose h1{line-height:1.3}.prose ul{padding-left:1.25rem}.prose li{margin-bottom:.5rem}.topbar{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid var(--gray-200);display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.375rem .75rem;min-height:3rem}.topbar-title{font-weight:700;font-size:1.0625rem}.topbar-user{display:flex;align-items:center;gap:.5rem;margin-left:auto}.topbar-user .driver-badge span:last-child{display:none}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:#fff;border-top:1px solid var(--gray-200);padding-bottom:env(safe-area-inset-bottom)}.tabbar a{display:flex;align-items:center;justify-content:center;min-height:3.25rem;padding:0 .25rem;text-decoration:none;color:var(--gray-600);font-weight:600;font-size:.75rem;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-top:3px solid transparent}.tabbar a.active{color:var(--blue);border-top-color:var(--blue)}.container-shell{padding-bottom:calc(4rem + env(safe-area-inset-bottom))}@media (min-width: 40rem){.topbar-user .driver-badge span:last-child{display:inline}.tabbar{position:static;display:flex;gap:.25rem;border-top:0;padding-bottom:0;background:transparent}.tabbar a{min-height:40px;padding:.5rem .625rem;border-top:0;border-radius:.375rem;color:#111827;font-size:.9375rem}.tabbar a.active{background:var(--gray-100);color:var(--blue)}.container-shell{padding-bottom:1rem}}.driver-badge{display:inline-flex;align-items:center;gap:.375rem;font-weight:600}.driver-swatch{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;padding:0 .25rem;border-radius:.375rem;color:#fff;font-size:.8125rem;letter-spacing:.02em;text-shadow:0 0 2px rgba(0,0,0,.6)}.chip{display:inline-block;padding:.125rem .5rem;border-radius:999px;font-size:.8125rem;font-weight:600;border:1px solid transparent}.chip-uncovered{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.chip-assigned{background:#dcfce7;color:#166534;border-color:#86efac}.chip-not_needed{background:var(--gray-100);color:var(--gray-600);border-color:var(--gray-300)}.chip-emergency{background:#7f1d1d;color:#fff;border-color:#7f1d1d}.chip-muted{background:var(--gray-100);color:var(--gray-600)}.badge{display:inline-block;padding:.5rem .75rem;border-radius:.5rem;font-weight:600}.badge-error{background:#fee2e2;color:#991b1b}.feedback{padding:.625rem .75rem;border-radius:.5rem;margin:.5rem 0}.feedback-error{background:#fee2e2;color:#991b1b}.feedback-success{background:#dcfce7;color:#166534}.feedback-info{background:#dbeafe;color:#1e3a8a}.feedback-warning{background:#fef3c7;color:#92400e}.slot-list,.card-list{list-style:none;padding:0;margin:.75rem 0;display:grid;gap:.75rem}.slot-card{border:2px solid var(--gray-200);border-radius:.75rem;padding:.875rem 1rem}.slot-card.slot-uncovered{border-color:#fca5a5}.slot-card.slot-emergency{border-color:#7f1d1d;background:#fef2f2}.slot-card.slot-assigned{border-color:#86efac}.slot-card.slot-not_needed{border-style:dashed}.slot-card-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem}.slot-direction{font-size:1.125rem;font-weight:700}.slot-card-body{font-size:1.125rem}.slot-note{margin:.5rem 0 0;font-size:.9375rem;color:var(--gray-600)}.card{border:1px solid var(--gray-200);border-radius:.75rem;padding:.75rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}.card-muted{opacity:.6}.card-actions{display:flex;gap:.5rem;flex-wrap:wrap}.form{display:grid;gap:.75rem;margin:.5rem 0 1rem}.form label{display:grid;gap:.25rem;font-weight:600;font-size:.9375rem}.form input,.form select{font:inherit;padding:.625rem .75rem;border:1px solid var(--gray-300);border-radius:.5rem;min-height:44px;width:100%}.form .field{display:grid;gap:.25rem}.form .field label{font-weight:600;font-size:.9375rem}.field-hint{font-weight:400;font-size:.8125rem;color:var(--gray-600)}.form-row{display:grid;gap:.75rem;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.form label,.form input,.form select{min-width:0}.button-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.form-fieldset{border:0;padding:0;margin:0;min-width:0;display:grid;gap:.75rem}.form input:disabled,.form textarea:disabled{background:var(--gray-100);color:var(--gray-600)}.settings-section{padding-bottom:1rem;border-bottom:1px solid var(--gray-200)}.color-picker{border:0;padding:0;margin:0}.color-picker legend{font-weight:600;font-size:.9375rem;margin-bottom:.25rem}.color-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.375rem}.color-option{display:flex!important;flex-direction:row;align-items:center;gap:.5rem;padding:.5rem;border:1px solid var(--gray-300);border-radius:.5rem;font-weight:500!important;cursor:pointer;min-height:44px}.color-option:has(input:checked){border-color:var(--blue);background:#eff6ff}.color-option-disabled{opacity:.4;cursor:default}.color-option input{width:auto;min-height:0;margin:0}.color-swatch{width:1.5rem;height:1.5rem;border-radius:.25rem;border:1px solid rgba(0,0,0,.15);flex-shrink:0}.date-echo{font-weight:400;font-size:.875rem;color:var(--gray-600);min-height:1.25rem}.card-column{flex-direction:column;align-items:stretch}.card-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap}.form-inline{margin:0}.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap}.segmented{display:inline-flex;border:1px solid var(--gray-300);border-radius:.5rem;overflow:hidden}.segmented a{padding:.5rem .75rem;text-decoration:none;color:#111827;font-weight:600;font-size:.9375rem;min-height:40px;display:inline-flex;align-items:center}.segmented a.active{background:var(--blue);color:#fff}.calendar-nav{display:flex;align-items:center;gap:.5rem;margin:.75rem 0}.calendar-title{flex:1;text-align:center;text-transform:capitalize}.week{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}.week-day{display:grid;grid-template-columns:3.25rem minmax(0,1fr);gap:.5rem;align-items:stretch;border-radius:.75rem;padding:.375rem}.week-day-today{background:#eff6ff;outline:2px solid var(--blue)}.week-day-label{display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}.week-day-name{font-size:.8125rem;text-transform:uppercase;color:var(--gray-600)}.week-day-number{font-size:1.375rem;font-weight:700}.week-day-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.375rem}.slot-cell{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:.375rem;padding:.5rem;min-height:52px;border-radius:.5rem;border:2px solid var(--gray-300);background:#fff;font:inherit;text-align:left;cursor:pointer;color:#111827}.slot-cell-dir{font-size:.75rem;font-weight:700;opacity:.8}.slot-cell-label{font-weight:700;font-size:1rem}.slot-cell-text{font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot-cell-uncovered{border-color:#dc2626;background:#fee2e2;color:#991b1b}.slot-cell-emergency{border-color:#7f1d1d;background:#7f1d1d;color:#fff}.slot-cell-not_needed{border-style:dashed;color:var(--gray-600);background:var(--gray-100)}.slot-cell-compact{grid-template-columns:auto minmax(0,1fr);min-height:34px;padding:.25rem .375rem;font-size:.8125rem}.month{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.25rem}.month-head{text-align:center;font-size:.75rem;text-transform:uppercase;color:var(--gray-600);font-weight:600}.month-day{border:1px solid var(--gray-200);border-radius:.5rem;padding:.25rem;min-height:5rem;display:flex;flex-direction:column;gap:.25rem}.month-day-today{outline:2px solid var(--blue)}.month-day-number{font-size:.8125rem;font-weight:700}.month-day-slots{display:grid;gap:.25rem}.slot-list li>.slot-card{width:100%;text-align:left;font:inherit;cursor:pointer;background:#fff;color:inherit}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182773;display:flex;align-items:flex-end;justify-content:center;z-index:20}.sheet{background:#fff;width:100%;max-width:40rem;max-height:90vh;overflow-y:auto;border-radius:1rem 1rem 0 0;padding:1rem 1rem calc(1rem + env(safe-area-inset-bottom));display:grid;gap:.75rem}.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}.sheet-head h2{margin:0;font-size:1.125rem}.sheet-head p{margin:.125rem 0 0}.sheet-status{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:0;font-size:1.0625rem}.sheet-actions{display:grid;gap:.5rem}.sheet-admin,.sheet-note{display:grid;gap:.25rem;font-weight:600;font-size:.9375rem}.sheet select,.sheet textarea{font:inherit;padding:.625rem .75rem;border:1px solid var(--gray-300);border-radius:.5rem;width:100%;min-height:44px}.icon-link{display:inline-flex;align-items:center;gap:.25rem;min-width:40px;min-height:40px;justify-content:center;border-radius:.375rem;text-decoration:none;color:#111827;font-weight:600;font-size:1.25rem}.icon-link.active{background:var(--gray-100);color:var(--blue)}.icon-link-text{display:none;font-size:.9375rem}@media (min-width: 40rem){.icon-link-text{display:inline}}.segmented-form button{flex:1;padding:.5rem .75rem;border:0;background:transparent;font:inherit;font-weight:600;min-height:40px;cursor:pointer;color:#111827}.segmented-form button.active{background:var(--blue);color:#fff}.segmented-form{display:flex}.autofill-list{max-height:20rem;overflow-y:auto}.counts{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.375rem}.counts li{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--gray-200);padding:.25rem 0}.button-danger{background:#fee2e2;color:#991b1b;border-color:#fca5a5}.button-danger:hover:not(:disabled),.button-danger:focus-visible{background:#fecaca}.card-highlight{border-color:var(--blue);background:#eff6ff}.card-emergency{border:2px solid #7f1d1d;background:#fef2f2}.emergency-banner{border:2px solid #7f1d1d;border-radius:.75rem;padding:.75rem 1rem;margin:.75rem 0;background:#fff5f5}.emergency-banner h2{margin:0 0 .25rem;color:#7f1d1d}.emergency-banner p{margin:0 0 .5rem}.swap-inbox h2{margin-top:1rem}.slot-cell-dots{display:inline-flex;gap:.2rem;margin-left:.375rem;align-items:center;grid-column:1 / -1}.slot-cell .slot-cell-dots{margin-left:0}.slot-dot{width:.5rem;height:.5rem;border-radius:50%;border:1px solid rgba(0,0,0,.25);display:inline-block}.slot-cell-compact .slot-dot{width:.375rem;height:.375rem}.preview-list{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.375rem}.telegram-card{margin-top:1.5rem}.telegram-card h2{margin:0}.ics-box{display:grid;gap:.5rem;margin:.75rem 0}.ics-box label{display:grid;gap:.25rem;font-weight:600;font-size:.9375rem}.ics-box input{font:inherit;font-size:.8125rem;padding:.625rem .75rem;border:1px solid var(--gray-300);border-radius:.5rem;width:100%;min-width:0}.ics-client ol{padding-left:1.25rem}.ics-client li{margin-bottom:.375rem}.ics-card{margin-top:.75rem}.ics-card h2{margin:0}.card-link{text-decoration:none;color:inherit}.card-link:hover{background:var(--gray-100)}.segmented-wrap{flex-wrap:wrap}.segmented-wrap button{flex:1 1 auto}.history{list-style:none;padding:0;margin:.75rem 0;display:grid;gap:.5rem}.history-entry{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:.5rem;padding:.5rem 0;border-bottom:1px solid var(--gray-200);font-size:.9375rem}.history-time{color:var(--gray-600);font-variant-numeric:tabular-nums}.fairness{list-style:none;padding:0;margin:.75rem 0;display:grid;gap:.75rem}.fairness-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.fairness-total{margin-left:auto}.fairness-bar{height:.75rem;border-radius:999px;background:var(--gray-100);overflow:hidden;margin:.25rem 0}.fairness-fill{display:block;height:100%;border-radius:999px}.fairness-detail{font-size:.875rem}.table-wrap{overflow-x:auto}.month-table{border-collapse:collapse;font-size:.875rem;min-width:100%}.month-table th,.month-table td{padding:.375rem .5rem;text-align:center;border-bottom:1px solid var(--gray-200)}.month-table th[scope=row]{text-align:left}.update-banner{display:flex;align-items:center;justify-content:space-between;gap:.75rem;background:#e0f2fe;color:#075985;padding:.5rem 1rem;font-size:.9375rem;border-bottom:1px solid #7dd3fc}.offline-banner{background:#fef3c7;color:#92400e;padding:.5rem 1rem;font-size:.9375rem;border-bottom:1px solid #fcd34d}.day-heading{margin-top:1.5rem}.day-heading-date{font-weight:500;font-size:1rem}.version-line{margin-top:2rem;font-size:.8125rem;text-align:center}.card-link{flex-wrap:nowrap}.card-link>div{min-width:0;flex:1 1 auto}.guide-section,.guide h2{scroll-margin-top:4.5rem}.guide-index ol{padding-left:1.25rem}.guide-index li{margin-bottom:.25rem}.guide-section{border-top:1px solid var(--gray-200);padding-top:.5rem}.guide-figure{margin:.75rem 0}.guide-figure img{display:block;width:100%;height:auto;max-width:20rem;border:1px solid var(--gray-200);border-radius:.5rem;background:#fff}.guide-figure figcaption{font-size:.875rem;color:var(--gray-600);margin-top:.25rem}.guide-qa{margin-bottom:.75rem}.guide-question{font-weight:600;margin-bottom:.125rem}.guide-back{font-size:.875rem}.slot-cell-review{box-shadow:inset 0 0 0 3px #d97706}.slot-cell-review-mark,.slot-cell-special-mark{grid-column:1 / -1;justify-self:start;display:block;margin-top:.125rem;padding:0 .25rem;border-radius:.25rem;background:#fef3c7;color:#92400e;font-size:.6875rem;font-weight:600;line-height:1.4}.checkbox-group{border:1px solid #e2e8f0;border-radius:.5rem;padding:.5rem .75rem .75rem;margin:0}.checkbox-group legend{padding:0 .25rem;font-size:.875rem;color:#475569}.radio-row,.form .radio-row{display:flex;flex-wrap:wrap;column-gap:1.5rem;border:none;padding:0}.radio-row legend{padding:0 0 .25rem;font-weight:600;font-size:.9375rem;color:inherit}.checkbox-option,.form .checkbox-option{display:flex;flex-direction:row;align-items:center;gap:.5rem;min-height:2rem;font-weight:400}.checkbox-option input[type=checkbox],.form .checkbox-option input[type=checkbox],.form .checkbox-option input[type=radio]{flex:none;width:1.125rem;height:1.125rem;min-height:0;padding:0;margin:0}.card-stack{display:block}.card-stack .card-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;margin-bottom:.5rem}.slot-cell-special-mark{background:#e0f2fe;color:#075985}.special-chip{padding:.125rem .5rem;border-radius:999px;background:#e0f2fe;color:#075985;border:1px solid #0284c7;font-size:.75rem;font-weight:600}.review-chip{padding:.125rem .5rem;border-radius:999px;background:#fef3c7;color:#92400e;border:1px solid #d97706;font-size:.75rem;font-weight:600}.document-card{flex-direction:column;align-items:stretch;gap:.75rem}.document-actions{display:flex;flex-wrap:wrap;gap:.5rem}.document-views summary{cursor:pointer;font-size:.875rem}.document-views ul{margin:.25rem 0 0;padding-left:1.25rem;font-size:.875rem}.document-share{border-top:1px solid var(--gray-200);padding-top:.75rem}.scan-preview{margin:0;display:grid;gap:.75rem}.scan-preview img{width:100%;max-height:70vh;object-fit:contain;border:1px solid var(--gray-200);border-radius:.5rem;background:var(--gray-100)}.scan-pages{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}.scan-pages li{display:flex;align-items:center;gap:.75rem}.scan-pages img{width:56px;height:72px;object-fit:cover;border:1px solid var(--gray-200);border-radius:.25rem}.scan-pages span{flex:1}.slot-cell.slot-done,.slot-list li>.slot-card.slot-done{background-image:repeating-linear-gradient(135deg,rgba(17,24,39,.14) 0 3px,transparent 3px 9px)}.slot-list li>.slot-card.slot-done{border-color:var(--gray-300);color:var(--gray-600)}.slot-done-mark{font-weight:700}.slot-list li>.slot-card.slot-next{border-color:var(--blue);box-shadow:0 0 0 2px var(--blue)}.done-chip{padding:.125rem .5rem;border-radius:999px;font-size:.75rem;font-weight:700;white-space:nowrap;background:var(--gray-100);color:var(--gray-600);border:1px solid var(--gray-300)}.slot-card-head .chip,.slot-row .chip{white-space:nowrap}.slot-time{font-weight:400;color:var(--gray-600)}.today-done{margin:1.5rem 0 .75rem}.today-done>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}.slot-rows{list-style:none;padding:0;margin:.5rem 0;display:grid;gap:.375rem}.slot-row{width:100%;min-height:44px;display:grid;grid-template-columns:4.5rem 3rem minmax(0,1fr);align-items:center;gap:.25rem .5rem;padding:.375rem .75rem;border:1px solid var(--gray-200);border-radius:.5rem;background:#fff;font:inherit;text-align:left;color:inherit;cursor:pointer}.slot-row.slot-next{border:2px solid var(--blue);box-shadow:0 0 0 1px var(--blue)}.slot-row.slot-uncovered{border-color:#fca5a5}.slot-row.slot-emergency{border-color:#7f1d1d;background:#fef2f2}.slot-row.slot-not_needed{border-style:dashed;color:var(--gray-600)}.slot-row-dir{font-weight:700}.slot-row-time{color:var(--gray-600)}.slot-row-who{min-width:0}.slot-row-marks{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:.25rem .5rem;align-items:center}.slot-row-marks:empty{display:none}.slot-row-note{font-size:.875rem;color:var(--gray-600);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}.fairness-bar{display:flex}.fairness-bar .fairness-fill{border-radius:0}.fairness-bar .fairness-done{border-radius:999px 0 0 999px}.fairness-planned{opacity:.45;background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.7) 0 3px,transparent 3px 7px)}.fairness-legend{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.875rem}.fairness-legend-item{display:inline-flex;align-items:center;gap:.375rem}.fairness-key{display:inline-block;width:1.5rem;height:.75rem;border-radius:999px;background-color:var(--gray-600)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.delivery-button{width:100%;margin-top:.375rem}.note-ack{margin:.25rem 0 0;font-size:.875rem}.note-ack-done{color:var(--gray-600)}.note-ack-waiting{font-weight:600}.note-ack-button{width:100%;margin-top:.375rem}.delivery-panel{margin-top:.375rem;padding:.75rem 1rem;border:2px solid var(--blue);border-radius:.75rem}.delivery-panel h3{margin-top:0}.delivery-reported{margin:.5rem 0 0;font-size:.9375rem;font-weight:600;color:#166534}
