:root{--bg:#f5f2ef;--paper:#fff;--ink:#15213d;--muted:#6d7587;--edge:#e5e7ed;--main:#e8f0ff;--mainInk:#18396b;--flex:#fbe7f3;--flexInk:#713158;--good:#177348;--goodBg:#def4e7;--bad:#a13e4d;--badBg:#fde8ea;--slate:#f0f1f4;--blue:#195be6;--shadow:0 2px 3px rgba(15,25,45,.04),0 6px 24px rgba(15,25,45,.05)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #79a8ff;outline-offset:2px}[hidden]{display:none!important}.shell{max-width:1450px;padding:0 24px;margin:0 auto}.topbar{background:#faf9f8;border-bottom:1px solid var(--edge)}.topbar-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:14px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--ink);color:#fff;font-size:22px;font-weight:850;flex:0 0 auto}.brand h1{margin:0;font-size:clamp(19px,2.1vw,25px);letter-spacing:-.035em;line-height:1.13}.brand-sub{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:10px}.identity{font-size:13px;color:var(--muted);max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.role-chip,.soft-chip{font-size:12px;padding:6px 11px;border-radius:999px;background:#fff;border:1px solid var(--edge);white-space:nowrap}.page{padding-top:22px;padding-bottom:36px}.banner{margin-bottom:16px;background:#fff5e9;color:#814500;border:1px solid #ffd3a7;border-radius:12px;padding:12px 14px}.banner.ok{background:#e9f7ed;color:#1e6840;border-color:#bde6ca}.banner.error{background:#fff0f0;color:#922f37;border-color:#ffcbd0}.tabs{display:flex;gap:7px;margin-bottom:24px;padding:5px;background:#eae8e7;width:max-content;max-width:100%;border-radius:14px;overflow:auto}.tab{border:0;background:transparent;color:#505d73;border-radius:10px;padding:10px 17px;white-space:nowrap;font-weight:600}.tab.active{background:#fff;box-shadow:0 2px 6px #14213d18;color:var(--ink)}.view{animation:fade .15s ease}@keyframes fade{from{opacity:.75}to{opacity:1}}.section-header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:15px;flex-wrap:wrap}.section-header h2{font-size:clamp(22px,2.3vw,28px);line-height:1.2;letter-spacing:-.03em;margin:0 0 3px}.subtle{color:var(--muted);font-size:14px;margin:3px 0;line-height:1.45}.month-nav,.week-control{display:flex;align-items:center;gap:10px}.month-name{font-weight:750;font-size:18px;min-width:140px;text-align:center}.nav-icon{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--edge);border-radius:12px;background:#fff;color:var(--ink);box-shadow:var(--shadow)}.nav-icon:hover,.secondary-btn:hover,.text-button:hover{border-color:#bdc5d3}.text-button{border:1px solid var(--edge);border-radius:11px;padding:8px 11px;background:#fff;font-size:13px}.roster-summary{display:flex;gap:15px;align-items:center;flex-wrap:wrap;background:var(--paper);border:1px solid var(--edge);box-shadow:var(--shadow);padding:13px 15px;border-radius:24px;margin-bottom:14px}.summary-item{display:flex;gap:8px;align-items:center;min-width:0;font-size:14px}.mini-label{display:inline-block;border-radius:99px;font-weight:800;font-size:11px;letter-spacing:.025em;padding:5px 10px;flex:0 0 auto}.label-main{background:var(--main);color:var(--mainInk)}.label-flex{background:var(--flex);color:var(--flexInk)}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;text-align:center;font-size:13px;font-weight:600;color:var(--muted);margin:0 0 8px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.month-spacer{min-height:1px}.day-card{background:#fff;min-width:0;min-height:211px;border-radius:17px;border:1px solid var(--edge);padding:12px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}.day-card.past{background:#ececee;border-color:#dddfe3;box-shadow:none}.day-card.past .view-rotation{background:#f6f6f7}.day-card.today{border-color:#ee6269;box-shadow:0 0 0 2px #f7c4c7}.day-top{display:flex;align-items:center;justify-content:space-between}.day-top strong{font-size:17px}.day-top span{color:var(--muted);font-size:13px}.day-chips{display:flex;align-items:flex-start;flex-direction:column;gap:5px;flex:1}.driver-chip{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;border:1px solid #e4e6ec;border-radius:30px;padding:4px 9px;background:var(--main);color:var(--mainInk)}.driver-chip.rotation{background:var(--flex);color:var(--flexInk)}.split-label{display:flex;align-items:center;gap:6px;width:100%;color:var(--muted);font-size:11px;margin-top:3px}.split-label:before,.split-label:after{content:"";border-top:1px dashed #dcdfe7;flex:1}.view-rotation{border:1px solid var(--edge);background:#fff;color:var(--ink);padding:8px 10px;border-radius:12px;font-weight:400;font-size:13px;line-height:1.3}.view-rotation:hover{border-color:#bfc7d6}.footnote{font-size:13px;color:var(--muted);margin:15px 2px 0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:#fff;padding:22px;border:1px solid var(--edge);border-radius:20px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;gap:10px;align-items:center;margin-bottom:14px}.panel-heading h3{font-size:18px;letter-spacing:-.02em;margin:0}.step{border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-weight:800;background:#ecf0fa;color:#25375e;font-size:12px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.quick,.secondary-btn{background:#fff;color:var(--ink);border:1px solid var(--edge);border-radius:11px;padding:10px 11px}.quick.active{background:#e7eeff;border-color:#8eaaf5;color:#173b82;font-weight:650}.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.date-fields label,.field{font-size:13px;color:var(--muted);font-weight:650;display:flex;flex-direction:column;gap:6px}.date-fields input,.field input,.field select,.admin-bulk select{width:100%;max-width:100%;border:1px solid #d8dce6;border-radius:11px;padding:10px;background:#fff;color:var(--ink);min-height:43px}.divider{border-top:1px solid var(--edge);margin:18px 0}.status-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.status-option{background:#fff;border:1px solid var(--edge);border-radius:12px;padding:12px 7px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px}.status-option.selected{border-color:#4167a9;box-shadow:inset 0 0 0 1px #4167a9;background:#f4f7fc}.status-dot,.dot{width:11px;height:11px;display:inline-block;border-radius:50%;background:#c8ced8;flex:0 0 auto}.is-available .status-dot,.dot.green{background:#31a166}.is-unavailable .status-dot,.dot.red{background:#e06772}.dot.grey{background:#b5bdca}.range-preview{margin:15px 0 10px;font-size:14px;color:#37445d}.primary-btn{border:1px solid #1b3156;background:#1b3156;color:#fff;padding:12px 17px;border-radius:11px;font-weight:650;min-height:43px}.primary-btn:hover{background:#263f6d}.editor-panel>.primary-btn{width:100%}.helper{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.month-nav.compact{justify-content:space-between;margin:5px auto 15px}.month-name.small{font-size:16px;min-width:120px}.mini-weekdays,.mini-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.mini-weekdays{margin:0 0 5px;color:var(--muted);text-align:center;font-size:12px}.mini-day{border:1px solid var(--edge);border-radius:9px;min-height:45px;background:var(--slate);font-size:13px;color:#586071}.mini-day.empty{background:transparent;border:none;cursor:default}.mini-day.is-available{background:var(--goodBg);color:#185538;border-color:#bbebce}.mini-day.is-unavailable{background:var(--badBg);color:#8b3544;border-color:#f6cad0}.mini-day.today{outline:2px solid #4778db;outline-offset:-2px}.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:16px;font-size:12px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.manage-tabs{display:flex;gap:10px;margin-bottom:18px}.manage-tab{border:1px solid var(--edge);border-radius:12px;background:#fff;padding:10px 17px;color:var(--muted)}.manage-tab.active{background:var(--ink);color:#fff;border-color:var(--ink)}.row{display:flex;align-items:center}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.gap{gap:12px}.section-title{font-size:18px;margin:0}.small-btn{font-size:13px;padding:9px 13px}.toggle-line{margin:14px 0 16px;font-size:13px;color:var(--muted)}.toggle-line input{accent-color:#1b3156}.roster-editor{display:grid;grid-template-columns:1fr 1fr;gap:18px}.roster-group{padding:16px;border:1px solid var(--edge);border-radius:16px;background:#fff;box-shadow:var(--shadow);min-width:0}.roster-group h4{margin:0 0 12px;font-size:16px}.roster-entry{display:flex;align-items:center;gap:9px;padding:10px 6px;border-top:1px solid #eef0f3}.roster-entry.inactive{opacity:.6}.entry-index{font-size:12px;color:var(--muted);width:20px;text-align:center}.entry-info{flex:1;min-width:0}.entry-info strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry-info small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.entry-actions{display:flex;align-items:center;gap:4px}.mini-icon{width:31px;height:31px;border:1px solid var(--edge);border-radius:9px;background:#fff;color:var(--ink);display:grid;place-items:center;font-size:16px}.mini-icon:hover{background:#f6f7f9}.overview-scroll{width:100%;overflow-x:auto;border:1px solid var(--edge);border-radius:16px;background:#fff;padding:12px}.overview-grid{min-width:670px;display:grid;grid-template-columns:125px repeat(7,minmax(65px,1fr));gap:5px}.overview-driver{font-size:13px;font-weight:600;padding:9px 6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overview-heading{text-align:center;font-size:12px;font-weight:700;color:var(--muted);padding:8px 0}.availability-cell{min-height:43px;border:1px solid #e3e5eb;border-radius:9px;background:#f0f1f4;font-size:12px;color:#657080;display:grid;place-items:center}.availability-cell.available{background:var(--goodBg);color:var(--good);border-color:#c2ebd2}.availability-cell.unavailable{background:var(--badBg);color:var(--bad);border-color:#f5cbd2}.availability-cell:hover{filter:brightness(.98)}.week-control span{font-size:14px;font-weight:650;min-width:140px;text-align:center}.admin-bulk{margin-top:20px;background:#fff;border:1px solid var(--edge);padding:15px;border-radius:14px;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.admin-bulk label{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:6px;flex:1;min-width:200px}.modal{width:min(480px,calc(100% - 25px));border:0;padding:0;background:transparent;border-radius:18px;box-shadow:0 30px 85px #111b2c40;max-height:90vh;overflow:auto}.modal::backdrop{background:#0b152f8c}.modal-body{background:#fff;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:16px}.modal-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.modal-head h3{margin:0;font-size:20px;letter-spacing:-.025em}.close{height:33px;width:33px;background:#f2f3f5;border:0;border-radius:10px;font-size:22px;line-height:1}.full{width:100%}.radio-stack{margin:0;padding:13px;border:1px solid var(--edge);border-radius:13px;display:flex;flex-direction:column;gap:10px}.radio-stack legend{font-weight:650;font-size:13px}.radio-stack label{display:flex;gap:8px;align-items:center;padding:5px 0}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.checkbox-line{display:flex;gap:8px;align-items:center;font-size:14px}.rotation-stack{display:flex;flex-direction:column;gap:8px;margin:12px 0}.rotation-row{display:flex;gap:10px;align-items:center}.rotation-row .mini-label{min-width:45px;text-align:center}.rotation-row .driver-chip{min-width:95px}.empty-state{padding:18px;text-align:center;color:var(--muted);border:1px dashed var(--edge);border-radius:14px}.inline-warning{color:#a24e38;font-size:13px}
@media(max-width:1050px){.month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.weekdays,.month-spacer{display:none}.two-col{grid-template-columns:1fr}.roster-editor{grid-template-columns:1fr 1fr}}@media(max-width:680px){.shell{padding:0 12px}.topbar-inner{min-height:67px}.brand-mark{width:31px;height:31px;font-size:19px}.brand h1{font-size:19px}.identity{display:none}.tabs{width:100%;justify-content:space-around}.tab{flex:1;padding:10px 8px;font-size:13px}.section-header{align-items:start}.section-header .month-nav{width:100%;justify-content:space-between}.month-name{min-width:0}.month-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.day-card{min-height:194px;padding:10px}.roster-summary{border-radius:17px}.summary-item{width:100%;font-size:13px}.panel{padding:15px}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.roster-editor{grid-template-columns:1fr}.status-options{grid-template-columns:1fr 1fr}.status-option.is-clear{grid-column:span 2}.manage-tabs{width:100%}.manage-tab{flex:1;font-size:13px;padding:9px}.entry-actions{gap:3px}.mini-icon{height:29px;width:29px}.brand-sub{font-size:11px}}@media(max-width:375px){.day-card{min-height:185px}.day-top strong{font-size:15px}.driver-chip{font-size:12px}.view-rotation{font-size:12px}.mini-calendar{gap:3px}.mini-day{min-height:39px}.date-fields{grid-template-columns:1fr}}

.admin-target{margin:0 0 14px;background:#fff;border:1px solid #e4e6ec;border-radius:14px;padding:13px 16px}.admin-target label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;font-weight:650}.admin-target select{border:1px solid #d8dce6;padding:9px;border-radius:9px;background:#fff;min-width:150px}.banner.success{border-color:#bbe9cd;background:#e9f9ef;color:#185538}.banner.error{border-color:#fac8d0;background:#fff0f1;color:#8b3544}

/* v47 photo treatment and selection */
.topbar{background:linear-gradient(90deg,rgba(16,35,27,.86),rgba(16,35,27,.28)),url('/IMG_8219.jpeg') center 48%/cover;min-height:240px;color:white;display:flex;align-items:flex-end;padding-bottom:30px}.topbar h1,.topbar .brand-sub,.topbar .identity{color:white}.brand-mark{background:#faf4e5;color:#284a3a}.day-card{border-radius:16px;box-shadow:0 3px 14px #263b2910}.date-selected{outline:3px solid #234e8c;outline-offset:1px}#private-reasons{border:1px solid #ddd;border-radius:12px;margin:16px 0;padding:16px}#private-reasons label{display:block;margin:8px 0}textarea{width:100%;min-height:80px;font:inherit}button:focus-visible,a:focus-visible{outline:3px solid #2465b3;outline-offset:3px}@media(max-width:600px){.topbar{min-height:190px;background-position:58% center}.topbar-inner{align-items:flex-start;gap:15px;flex-direction:column}.brand h1{font-size:24px}.mini-day{min-height:40px}}
.topbar .role-chip{color:#274532;background:#fff9e9}.topbar-inner{width:100%}
