:root{--ink:#1d1d1f;--sub:#737378;--bg:#f7f7f8;--paper:#fff;--line:#e5e5e8;--green:#e9e9ec;--green2:#242426;--warn:#85858a;--red:#55555a;--nav:#fff;color-scheme:light}body{background:#f7f7f8;color:#1d1d1f;-webkit-font-smoothing:antialiased;letter-spacing:-.015em}button{color:#242426!important;background:#f0f0f2!important;box-shadow:none!important;transition:background .15s,border-color .15s}button:hover{background:#e7e7e9!important}button:disabled{opacity:.45;cursor:default}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #737378;outline-offset:3px}input,select{accent-color:#555!important;color:#1d1d1f!important;background:#fff!important;border-color:#d8d8dc!important}button,input,select{font-family:inherit}.top,.day-compact .top{background:#fff;color:#1d1d1f;border-bottom:1px solid var(--line);border-radius:0}.top{padding:18px 20px 14px}.brand h1{font-size:17px;font-weight:600;letter-spacing:-.03em}.brand-status .badge,.account-badge{background:#f3f3f5;color:#68686d;border-radius:6px;font-weight:500}.datebar{margin-top:16px}.date strong{font-size:22px;font-weight:600;letter-spacing:-.04em}.date span{color:#86868b;font-size:12px}.datebar button{border-radius:50%;width:36px;height:36px;background:#f5f5f7!important}.main{padding-top:16px}.calendar-tools{margin-bottom:12px}.calendar-tools h2{font-size:20px;font-weight:600}.today-btn{font-size:14px;border:0}.account-details{margin-bottom:14px}.account-details summary{color:#86868b;font-size:13px}.account-actions{gap:6px}.account-actions button{border:1px solid transparent;padding:9px 12px;font-size:14px;border-radius:9px}.account-actions button[aria-pressed=true]{background:#fff!important;color:#1d1d1f;border-color:#bdbdc3;font-weight:600}.account-actions[role=group]{display:inline-flex;background:#eaeaec;padding:3px;border-radius:10px;margin:0 0 16px}.account-actions[role=group] button{padding:7px 22px}.month-action-panel{display:block!important;margin:12px 0 16px!important}.month-primary-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:8px}.month-primary-actions button{font-size:15px;font-weight:600;min-height:44px;padding:10px 8px;border:1px solid #e1e1e5}.month-primary-actions button:last-child{background:#e8e8eb!important}.month-secondary-actions{margin-top:9px;font-size:13px;color:#77777d}.month-secondary-actions summary{cursor:pointer;padding:5px 0}.month-secondary-actions button{margin:7px 6px 0 0;font-size:13px}.calendar-card{border-radius:14px;border-color:#e3e3e7}.weekdays{background:#fafafa}.weekdays span,.weekdays span:first-child,.weekdays span:last-child{color:#86868b;font-weight:500}.day-cell{background:#fff!important;border-color:#ededf0;color:#252528!important}.day-cell.sun .day-number,.day-cell.sat .day-number{color:#77777d}.day-cell.out{background:#fafafa!important;opacity:.45}.day-cell.today .day-number{background:#303034;color:white!important}.day-summary{font-weight:500;color:#727278}.day-cell.has-issue{box-shadow:inset 0 0 0 1px #bfc0c5}.day-cell.has-unassigned{box-shadow:none}.cal-warning,.cal-note,.cal-note.off-note,.status-line{color:#737379;background:none}.status-pip,.status-pip.done,.dot{background:#a0a0a5!important}.month-legend{font-size:12px;padding:10px;color:#86868b}.section{border-radius:12px;border-color:#e4e4e8}.section-head{background:#fbfbfc}.section h2{font-weight:600}.counter{background:#f2f2f4}.counter button{background:#fff!important}.person{background:#fafafa!important;border-color:#dddde2;color:#252528!important;font-weight:500}.person.selected{background:#dfdfe3!important;border-color:#48484e;box-shadow:0 0 0 1px #48484e!important}.person.empty{background:#fff!important;color:#97979d!important}.role-note,.role-note.assistant{background:#eeeef1;color:#6c6c72;font-weight:500}.trip.ok .trip-label:after,.trip.bad .trip-label:after{color:#525258}.trip.bad{background:#f4f4f6}.trip-label{color:#818187}.leader-choice{background:#eeeef0!important;color:#55555b!important}.alert,.sync-banner,.review-card{background:#f1f1f3;color:#55555c;border-color:#d6d6dc}.compact-notice{background:#f1f1f3!important;border-color:#dddde2;color:#68686e!important;font-size:12px;padding:6px 9px}.bottom{background:rgba(255,255,255,.97);border-color:#e6e6e9;padding-top:8px}.navbtn{background:transparent!important;color:#96969c!important;font-size:14px;min-height:40px}.navbtn.active{color:#1d1d1f!important;font-weight:600}.navbtn b{display:none}.navbtn.active:after{content:'';display:block;width:16px;height:2px;background:#44444a;margin:5px auto 0;border-radius:1px}.panel-title{font-weight:600;letter-spacing:-.03em}.employee{padding:16px 14px}.employee strong{font-size:16px;font-weight:600}.tag{background:#f3f3f5;color:#838389;font-size:12px}.helper,.settings-note{color:#86868b;font-size:14px;line-height:1.6}.setting{padding:16px}.setting small{color:#86868b}.switch{background:#d4d4d8!important}.toast{background:#343439;color:#fff}.login-shell{background:#f5f5f7}.login-card{border:1px solid #e7e7eb;border-radius:20px}.login-card h1{letter-spacing:-.04em;font-weight:600}.login-error{color:#505057!important}.request-day.requested{background:#e4e4e8!important;box-shadow:inset 0 0 0 1px #77777d}.request-day.requested:after{background:#77777d;color:white}.home-list label,.ng-list label,.weekday-list label{background:#f6f6f8}.week-table th{background:#f2f2f4}.week-trip{background:#f5f5f7!important;border-color:#dedee3;border-left-color:#a2a2aa}.attendance-table thead{background:#f4f4f6}.attendance-table td strong{color:#24242a}.dialog-closebar{border-color:#eeeef1}.dialog-closebar button{background:#f4f4f6!important;border:0;font-size:14px;min-height:40px}.modal{padding:20px}.modal h2{font-weight:600;font-size:22px;letter-spacing:-.04em}.modal p{font-size:14px;line-height:1.65}.modal-actions button{font-size:15px}.delete-month{background:#e9e9ec!important;color:#333!important}.month-area-rule{border-bottom:1px solid #ededf0;padding:16px 0}.month-area-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.month-area-top h3{font-size:16px;font-weight:600;margin:0}.month-area-top label{font-size:13px;color:#818187}.month-area-top select{padding:7px;border:1px solid #d8d8dc;border-radius:8px;margin-left:4px;font-size:16px}.rule-caption{display:block;font-size:12px;color:#86868b;margin:12px 0 8px}.closed-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.closed-weekdays label{position:relative;cursor:pointer}.closed-weekdays input{position:absolute;opacity:0;width:100%;height:100%;margin:0}.closed-weekdays span{display:grid;place-items:center;height:38px;border:1px solid #e2e2e6;border-radius:8px;font-size:14px;background:#fafafa}.closed-weekdays input:checked+span{background:#dedee3;border-color:#8a8a92;font-weight:600}.closed-weekdays input:focus-visible+span{outline:2px solid #666;outline-offset:2px}.settings-preview{padding:10px 12px;background:#f4f4f6;border-radius:9px;color:#55555c;font-size:14px}#monthSettingsDialog{max-width:520px}.day-compact .pool-details>summary{color:#727278}.day-compact #sections .section-head{background:#f8f8fa}.day-compact .trip.bad{background:#f1f1f4}.day-compact .top .date strong{font-size:18px}.day-compact .main{padding-top:5px}.day-compact .account-details{margin-bottom:3px}.day-compact .navbtn{min-height:30px}.day-compact .app{padding-bottom:64px}@media(min-width:800px){.top{max-width:1100px;margin:auto;padding:24px 30px 18px}.main{max-width:1000px;padding-left:130px;padding-right:30px}.bottom{left:max(20px,calc(50% - 485px));width:100px;top:180px;border-radius:12px;padding:12px 6px}.navbtn{padding:12px 4px;margin:6px 0}.calendar-grid .day-cell{min-height:110px}.day-summary{font-size:13px}.day-compact .main{padding-left:130px}.month-action-panel{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.month-primary-actions{flex:1}.month-secondary-actions{margin:0}.month-secondary-actions[open]{min-width:160px}}@media(max-width:420px){.main{padding:12px}.top{padding:14px 14px 12px}.brand h1{font-size:16px}.date strong{font-size:20px}.month-primary-actions button{font-size:14px}.day-cell{min-height:86px}.day-summary{font-size:11px}.cal-warning,.cal-note{font-size:10px}}

input,select{accent-color:#555!important}.day-compact #sections .section-head{height:auto;min-height:36px;padding:4px 7px}
.day-compact .counter button{width:32px;height:32px}.day-compact .trip{min-height:42px;padding:4px 35px 4px 0;gap:5px}
.day-compact .trip .person,.day-compact .pool .person{min-height:36px;padding:6px;font-size:14px}
.day-compact .leader-choice{min-width:32px;min-height:36px}.day-compact .trip-role-action{top:4px}
.day-compact #boardView .actionbar button{height:40px}.day-compact .datebar button{height:36px}
.day-compact .pool-details>summary{padding:10px}.employee-mode .person{background:#fafafa!important}

.calendar-mode-row{display:flex!important;width:100%;gap:4px;align-items:center}.calendar-mode-row button{padding:8px 12px!important;min-height:40px}.calendar-mode-row #monthRestOpen{margin-left:auto;font-size:14px;white-space:nowrap}
#calendarGrid .cal-warning{color:#c53333!important;font-size:11px}#calendarGrid .status-line{display:block!important;font-size:11px;line-height:1.5}#calendarGrid .status-line.confirmed{color:#2563c0!important}#calendarGrid .status-line.editing{color:#a87900!important}#calendarGrid .day-cell{min-height:116px}#calendarGrid .day-summary{line-height:1.5}
.day-compact #sections>.account-actions{padding:6px;margin:3px 0 7px;gap:6px}.day-compact #sections>.account-actions select,.day-compact #sections>.account-actions button{min-height:36px;font-size:14px}.day-compact #sections>.account-actions .helper{display:none}

/* Calendar-inspired semantic colors: blue actions, red attention, amber drafts. */
:root{--ink:#202124;--sub:#5f6368;--bg:#f7faf8;--paper:#fff;--line:#dadce0;--green:#4f9b70;--green2:#286344;--warn:#946200;--red:#b3261e;--tap:#eafff2}
body{background:var(--bg);color:var(--ink)}
body button{background:#fff!important;color:#286344!important;border-color:#dadce0;transition:background .15s,box-shadow .15s}
body button:hover:not(:disabled){background:#eafff2!important;filter:none}
body button:focus-visible,body summary:focus-visible,body input:focus-visible,body select:focus-visible{outline:3px solid #4f9b70;outline-offset:2px}
body button:disabled{color:#80868b!important;background:#f1f3f4!important;opacity:.65}
body .primary,body .save-staff,body #bulkOpen,body #autoBtn,body #bulkRun,body #loginForm button[type=submit]{background:#4f9b70!important;color:#fff!important;border-color:#4f9b70;box-shadow:0 1px 3px #245b3e2b!important}
body .primary:hover,body .save-staff:hover,body #bulkOpen:hover,body #autoBtn:hover{background:#286344!important;color:#fff!important}
body #publishBtn{background:#e6f4ea!important;color:#137333!important;border-color:#b7dfc2}
body #monthSettingsOpen,body #monthRestOpen,body #weekAutoBtn,body #supportAdd,body .today-btn,body .add-staff{background:#eafff2!important;color:#286344!important;border-color:#dff5e8}
body .delete-staff,body .delete-month,body #clearMonthRun{background:#fce8e6!important;color:#b3261e!important;border-color:#f3c7c3}
body .top{background:#fff;border-bottom:1px solid #dce9e0}
.brand h1{color:#202124}.brand h1:before{content:'';display:inline-block;width:10px;height:10px;background:#6bdc8a;border-radius:3px;margin-right:8px;box-shadow:3px 3px 0 #dff5e8}
.brand-status .badge,.account-badge{background:#eafff2;color:#286344}
body .datebar button{background:#f1f3f4!important;color:#3c4043!important}
.account-details summary,.month-secondary-actions summary{color:#5f6368;background:transparent;border-radius:8px}.account-details summary:hover,.month-secondary-actions summary:hover{background:#eafff2;color:#286344}
body .account-actions[role=group]{background:#eef7f1;border-radius:12px;padding:4px}
body .account-actions button[aria-pressed=true]{background:#dff5e8!important;color:#245b3e!important;border-color:#a9d8b9;box-shadow:none!important}
body .account-actions button[aria-pressed=false]{background:transparent!important;color:#5f6368!important}
.calendar-card{border-color:#dadce0;box-shadow:0 1px 3px #20212408}.weekdays{background:#f7fbf8}
.weekdays span{color:#5f6368}.weekdays span:first-child{color:#c5221f}.weekdays span:last-child{color:#286344}
body .day-cell{background:#fff!important;color:#202124!important;border-color:#e8eaed}
body .day-cell:hover:not(:disabled){background:#f4fff8!important;box-shadow:inset 0 0 0 1px #a9d8b9!important}
body .day-cell.out{background:#f8f9fa!important;opacity:.6}
.day-cell.sun .day-number{color:#c5221f}.day-cell.sat .day-number{color:#286344}
.day-cell.today .day-number{background:#4f9b70!important;color:#fff!important;border-radius:50%}
body .day-cell.today{box-shadow:inset 0 0 0 2px #dff5e8!important}.day-summary{color:#3c4043}
#calendarGrid .cal-note.off-note{color:#5f6368}
#calendarGrid .cal-warning{color:#b3261e!important;background:#fce8e6;border-radius:4px;padding:1px 2px;margin-top:3px}
#calendarGrid .status-line.confirmed{color:#286344!important}#calendarGrid .status-line.editing{color:#8c6500!important}
.status-pip.done{background:#4f9b70!important}.status-pip{background:#f9ab00!important}
body .request-day.requested,body .request-day.requested:hover{background:#dff5e8!important;box-shadow:inset 0 0 0 2px #4f9b70!important}
.request-day.requested:after{background:#286344;color:#fff}.request-help{color:#5f6368}
body .navbtn{color:#5f6368!important;background:transparent!important;border-radius:14px}
body .navbtn.active{background:#dff5e8!important;color:#245b3e!important;box-shadow:none!important}
.navbtn.active:after{background:#4f9b70}.bottom{border-color:#dce9e0;box-shadow:0 -2px 10px #20212406}
body .person{background:#f7fbf8!important;border-color:#d3e3d8;color:#202124!important}
body .person:hover{background:#eafff2!important}body .person.selected{background:#dff5e8!important;border-color:#4f9b70;box-shadow:0 0 0 2px #4f9b70!important}
body .person.empty{background:#fff!important;color:#286344!important;border-color:#a9d8b9}
.role-note{background:#eafff2;color:#286344}.role-note.assistant{background:#f1f3f4;color:#5f6368}
body .leader-choice,body .counter button{background:#eafff2!important;color:#286344!important}
.day-compact .trip.bad,.trip.bad{background:#fff8e7}.trip.bad .trip-label:after{color:#b3261e}.trip.ok .trip-label:after{color:#188038}
#sections>.section,.week-trip{--area-color:#286344;--area-surface:#eafff2}
[data-area=kanonji]{--area-color:#137333!important;--area-surface:#e6f4ea!important}
[data-area=tonosho]{--area-color:#946200!important;--area-surface:#fef7e0!important}
[data-area=etact]{--area-color:#b3261e!important;--area-surface:#fce8e6!important}
[data-area=fujita],[data-area=saijo]{--area-color:#5f6368!important;--area-surface:#f1f3f4!important}
#sections>.section{border-left:3px solid var(--area-color)}
body #sections .section-head{background:var(--area-surface)}
#sections .section-head h2{color:var(--area-color)}#sections .dot{background:var(--area-color)!important}
body .week-trip{background:var(--area-surface)!important;border-left:3px solid var(--area-color);color:#202124!important}.week-trip strong{color:var(--area-color)}
.week-table th{background:#f4fff8}body .week-table th button{background:transparent!important;color:#286344!important}
.day-compact .pool-details>summary{background:#f4fff8;color:#286344;border-radius:8px}
body input,body select{accent-color:#4f9b70!important;border-color:#bdc1c6!important}
body .closed-weekdays input:checked+span{background:#dff5e8;border-color:#4f9b70;color:#245b3e}
.tag{background:#eef7f1;color:#52665a}.attendance-table thead{background:#eafff2}.attendance-table td strong{color:#286344}
body .dialog-closebar button{background:#eafff2!important;color:#286344!important}.settings-preview{background:#eafff2;color:#286344}
.alert,.sync-banner{background:#fef7e0;border-color:#f9d77e;color:#795500}.login-error{color:#b3261e!important}
.toast{background:#303134;color:#fff}.login-shell{background:#f4fff8}.login-card{border-color:#dff5e8;box-shadow:0 8px 36px #245b3e10}
@media(prefers-reduced-motion:reduce){body button{transition:none}}
/* Separate, read-only employee calendar. */
.employee-mode #calendarView>.calendar-card,.employee-mode #weekCalendar,.employee-mode #reviewNotices,.employee-mode #calendarView>.month-action-panel{display:none!important}
.employee-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 14px}.employee-calendar-tools h2{font-size:16px;margin:0;color:#3c4043}.employee-calendar-tools label{font-size:13px;color:#5f6368}.employee-calendar-tools select{font-size:14px;border:1px solid #dadce0;padding:9px 7px;border-radius:9px}
.employee-note{font-size:13px;color:#5f6368;line-height:1.6}.employee-day{text-align:left;vertical-align:top}.employee-day .day-summary{white-space:normal}
.employee-shift-label,.employee-mini-trip,.employee-trip{--area-color:#286344;--area-surface:#eafff2}
.employee-shift-label{display:block;background:var(--area-surface);color:var(--area-color);border-left:2px solid var(--area-color);border-radius:4px;font-size:12px;line-height:1.5;padding:3px;margin-top:4px}
#employeeWeek{display:grid;grid-template-columns:repeat(7,minmax(132px,1fr));overflow-x:auto;border:1px solid #dadce0;border-radius:12px;align-items:stretch}#employeeWeek>.day-cell{min-width:132px;max-width:none;overflow:visible;padding:8px;min-height:180px}#employeeWeek .day-number{font-size:13px}#employeeWeek .today .day-number{border-radius:5px;padding:3px}
.employee-mini-trip{display:block;border-left:3px solid var(--area-color);background:var(--area-surface);padding:8px 5px;margin:8px 0;border-radius:5px;font-size:13px;line-height:1.6}.employee-mini-trip strong,.employee-mini-trip>span{display:block;white-space:normal}.employee-mini-trip strong{color:var(--area-color)}
#employeeDayDialog{width:min(94vw,560px)}.employee-dialog-tabs{display:flex;gap:6px;margin:14px 0}.employee-dialog-tabs button{border:1px solid #dadce0;padding:8px 20px;border-radius:20px;font-size:14px}.employee-dialog-tabs button[aria-pressed=true]{background:#dff5e8!important;color:#245b3e!important}
.employee-trip{border:1px solid #dce9e0;border-left:4px solid var(--area-color);border-radius:12px;margin:10px 0;overflow:hidden}.employee-trip h3{background:var(--area-surface);color:var(--area-color);font-size:15px;margin:0;padding:10px 12px}.employee-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.employee-member{padding:7px;border-radius:7px;overflow-wrap:anywhere}.employee-member small{display:block;color:#5f6368;font-size:12px;margin-bottom:4px}.employee-member strong{font-size:16px}.employee-member.is-me{background:#eafff2}.me-label{display:inline-block;font-size:11px;color:#286344;margin-left:5px}.employee-rest{border-radius:12px;background:#f1f3f4;padding:12px;margin-top:14px}.employee-rest h3{margin:0;font-size:14px}.employee-rest p{margin-bottom:0}.employee-empty{padding:24px 0;text-align:center}.employee-request-footer{border-top:1px solid #e8eaed;margin-top:18px;padding-top:16px;text-align:center}.employee-request-footer button{width:100%;border:1px solid #dadce0;border-radius:12px;min-height:44px}.employee-request-footer small{display:block;font-size:12px;color:#5f6368;margin-top:8px}
@media(max-width:380px){.employee-calendar-tools{align-items:flex-start;flex-direction:column}.employee-shift-label{font-size:11px;padding:2px}.employee-members{gap:4px;padding:6px}}
.attendance-table .low-rest th,.attendance-table .low-rest td strong{color:#b3261e!important}.low-rest th small{display:block;font-size:11px;font-weight:normal}.attendance-controls select{padding:8px;border-radius:8px;border:1px solid #dadce0}.attendance-controls p{font-size:13px}.leave-adjust-day{border-top:1px solid #dadce0;padding:12px 0}.leave-adjust-day h3{font-size:15px}.leave-adjust-person{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}.leave-adjust-day button{border:1px solid #dadce0;border-radius:9px;padding:9px;font-size:13px;min-height:40px}#leaveAdjustOpen{background:#fef7e0!important;color:#795500!important;margin:6px 0 10px}
/* Stable header and reachable assignment tray. */
body .top{position:sticky;top:0;z-index:15;background:#fff;box-shadow:0 2px 6px #2021240d}
body.day-compact:not(.employee-mode) #boardView>.assignment-dock{position:fixed;z-index:12;bottom:var(--bottom-nav-height,64px);left:10px;right:10px;margin:0;border:1px solid #c4dfce;border-radius:14px 14px 0 0;background:#fff;box-shadow:0 -5px 20px #245b3e17;max-height:38dvh;overflow-y:auto}
.day-compact .assignment-dock>.pool{padding:9px 10px}.day-compact .assignment-dock #unassigned{max-height:100px;overflow-y:auto;min-height:36px}.day-compact .assignment-dock .person{min-height:38px;padding:7px 9px}.day-compact .assignment-dock .pool-details>summary{padding:8px 10px}.day-compact .assignment-dock #off{max-height:100px;overflow-y:auto}
body.day-compact:not(.employee-mode) .main{padding-bottom:calc(var(--assignment-dock-height,160px) + 20px)}
#boardView{touch-action:pan-y pinch-zoom}
@media(min-width:800px){body.day-compact:not(.employee-mode) #boardView>.assignment-dock{left:max(130px,calc(50% - 370px));right:max(30px,calc(50% - 470px));bottom:12px;max-height:30dvh}}
body:not(.employee-mode) .bottom{grid-template-columns:repeat(5,minmax(0,1fr))}
.employee-preview #calendarView>.calendar-card,.employee-preview #weekCalendar,.employee-preview #reviewNotices,.employee-preview .month-action-panel,.employee-preview #monthRestOpen{display:none!important}
.preview-person-label{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;margin:0 0 14px}.preview-person-label select{padding:8px;border-radius:9px;border:1px solid #dadce0;max-width:100%;font-size:16px}.preview-person-label>span{width:100%;font-size:12px;color:#5f6368}
body .bottom .navbtn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;padding:7px 3px;font-size:12px;line-height:1.2}.nav-icon{width:23px;height:23px;flex:none}.nav-label{white-space:nowrap}body .navbtn.active:after{display:none}
.login-role-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#eef7f1;padding:4px;border-radius:12px;margin:22px 0 16px}.login-card .login-role-tabs button{margin:0;width:auto;border:0;border-radius:9px;padding:10px 5px;font-size:14px;min-height:44px}.login-role-tabs button[aria-pressed=true]{background:#dff5e8!important;color:#245b3e!important;font-weight:700}.login-role-tabs button[aria-pressed=false]{background:transparent!important;color:#5f6368!important}
.day-notes-content{padding:12px}.day-notes-content label{font-size:15px;font-weight:600;display:block;margin-bottom:8px}.day-notes-content textarea{width:100%;resize:vertical;min-height:84px;font:inherit;font-size:16px;line-height:1.5;padding:10px;border:1px solid #bdc1c6;border-radius:9px;background:#fff;color:#202124}.day-notes-content textarea:focus{outline:2px solid #4f9b70;outline-offset:1px}.day-notes-content small{display:block;font-size:12px;color:#5f6368;margin-top:6px;line-height:1.5}.employee-day-note{background:#fef7e0;border-radius:12px;padding:12px;margin-top:12px}.employee-day-note h3{font-size:14px;margin:0}.employee-day-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}

/* Leap: pale corporate greens, with readable dark text on light controls. */
:root{--ink:#243c2e;--sub:#65736a;--bg:#f7faf8;--line:#dce9e0;--green:#dff5e8;--green2:#286344;--tap:#eafff2}
body .primary,body .save-staff,body #bulkOpen,body #autoBtn,body #bulkRun,body #loginForm button[type=submit]{background:#dff5e8!important;color:#245b3e!important;border:1px solid #b9dfc8;box-shadow:0 2px 5px #245b3e0c!important}
body .primary:hover,body .save-staff:hover,body #bulkOpen:hover,body #autoBtn:hover,body #bulkRun:hover,body #loginForm button[type=submit]:hover{background:#ccebd8!important;color:#245b3e!important}
body .navbtn.active{background:#dff5e8!important;color:#286344!important}body .account-actions button[aria-pressed=true],body .login-role-tabs button[aria-pressed=true]{background:#dff5e8!important;color:#286344!important}
body .top,.bottom{border-color:#dce9e0}.brand h1{color:#244331}.brand h1:before{background:#6bdc8a;box-shadow:3px 3px 0 #dff5e8}
.brand-status .badge,.account-badge{background:#f0f8f3;color:#406b50}
body .request-day.requested,body .request-day.requested:hover,body .person.selected{background:#dff5e8!important;border-color:#79b28e;box-shadow:inset 0 0 0 2px #79b28e!important}
.day-cell.today .day-number{background:#dff5e8!important;color:#245b3e!important;font-weight:700}.request-day.requested:after{background:#c5e8d2;color:#245b3e}
#sections>.section,.week-trip,.employee-shift-label,.employee-mini-trip,.employee-trip{--area-color:#4f8764;--area-surface:#eafff2}
[data-area=kanonji]{--area-color:#4d7c66!important;--area-surface:#edf7f0!important}
[data-area=tonosho]{--area-color:#687e50!important;--area-surface:#f2f7eb!important}
[data-area=etact],[data-area=fujita],[data-area=saijo]{--area-color:#637c6b!important;--area-surface:#f0f5f1!important}
#calendarGrid .status-line.confirmed{color:#537ca2!important}#calendarGrid .status-line.editing{color:#927419!important}#calendarGrid .cal-warning{color:#a44e47!important;background:#fcf0ed}
.day-compact .trip.bad,.trip.bad{background:#fffaf0}.employee-day-note{background:#f4fff8;border:1px solid #dce9e0}.login-shell{background:#f4fff8}.login-card{border-color:#dce9e0}
body .delete-day-assignments{display:block;width:100%;min-height:42px;margin:8px 0 14px;padding:10px;border:1px solid #e4c9c4;border-radius:10px;background:#fcf0ed!important;color:#a44e47!important;font-size:14px}body .delete-day-assignments:hover{background:#f9e5e0!important}

/* Monday-first calendars and accessible weekday route controls. */
.weekdays span:first-child{color:#5f6368}.weekdays span:nth-child(6){color:#286344}.weekdays span:last-child{color:#c5221f}
.weekday-route-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.weekday-route-counts label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;padding:6px 10px;background:#f3f8f4;border-radius:10px}.weekday-route-counts select{width:72px;min-height:44px;padding:8px;border:1px solid #d5e3d9;border-radius:8px;font-size:16px}
/* Change requests share the existing Leap palette. */
#changeBell{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px;border:0;border-radius:12px}#changeBellCount{position:absolute;right:-5px;top:-5px;background:#c43d35;color:white;border-radius:12px;min-width:18px;padding:2px 4px;font-size:11px}.changes-dialog{width:min(94vw,600px);max-height:90dvh}.changes-title{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:white;z-index:2;padding:8px 0}.changes-title h2{margin:0}.changes-title button,.change-tools button,.push-settings button{min-height:44px;border:1px solid var(--line);border-radius:10px;padding:8px 12px}.change-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.change-field{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-size:14px}.change-field input,.change-field textarea,.change-member-selects select{width:100%;box-sizing:border-box;min-height:44px;font:inherit;font-size:16px;padding:10px;border:1px solid #d5e3d9;border-radius:8px}.change-notice,.change-card{display:flex;flex-direction:column;gap:7px;width:100%;text-align:left;margin:8px 0;padding:13px;border:1px solid var(--line);border-radius:12px;font-size:14px}.change-notice.unread{border-left:4px solid #39834d;background:#e9f5eb!important}.change-notice small{color:var(--sub);font-size:12px}.change-status{align-self:flex-start;font-size:12px;color:#58635c;background:#e6ece8;padding:3px 7px;border-radius:6px}.change-status.approved{color:#256537;background:#d9efdf}.change-status.pending{color:#705813;background:#fff0cc}.change-trip-choice{display:flex!important;align-items:center;gap:12px;margin:8px 0;padding:12px;background:#f3f8f4;border-radius:10px}.change-trip-choice input{width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;margin:0}.change-trip-choice span{display:flex;flex-direction:column;gap:5px}.change-trip-choice small{font-size:13px}.change-member-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.change-member-selects label{font-size:14px;display:flex;flex-direction:column;gap:7px}.change-editor-trip{padding:12px 0;border-bottom:1px solid var(--line)}.change-editor-trip h3{font-size:16px}.change-editor-trip small{font-weight:400;font-size:13px}.changes-dialog pre,.change-lines{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.7}.changes-dialog pre{padding:12px;background:#f3f7f4;border-radius:10px}.changes-dialog [role=alert]{color:#b3261e!important;font-size:14px}.push-settings{margin:14px 0;padding:12px;background:#f5f8f6;border-radius:12px}.push-settings summary{font-size:14px;cursor:pointer}.push-settings small{display:block;font-size:12px;line-height:1.6;margin-top:8px}.changes-dialog button:disabled{opacity:.5}

.employee-partner{display:block;font-size:inherit;white-space:nowrap;overflow-wrap:normal;word-break:normal}
/* Partner names inherit the area size; only overflowing names shrink. */
:is(#employeeGrid,.snapshot-employeeGrid) .employee-shift-label{padding:3px 1px;letter-spacing:0}
:is(#employeeGrid,.snapshot-employeeGrid) .employee-partner{font-size:inherit;line-height:1.55;letter-spacing:0}
.employee-mini-trip>.employee-partner{white-space:nowrap;font-size:inherit}
/* Compact read-only route cards while preserving the two-column role order. */
#employeeDayDialog .employee-trip{margin:7px 0;border-radius:10px}
#employeeDayDialog .employee-trip h3{padding:6px 10px;font-size:14px;line-height:1.35}
#employeeDayDialog .employee-members{padding:6px 10px;gap:4px 8px}
#employeeDayDialog .employee-member{padding:2px 3px;line-height:1.3}
#employeeDayDialog .employee-member small{font-size:11px;margin-bottom:2px}
#employeeDayDialog .employee-member strong{font-size:15px}
#pwaUpdate{position:fixed;top:env(safe-area-inset-top,0px);left:50%;transform:translateX(-50%);z-index:2000;width:min(94vw,480px);padding:12px 14px;box-sizing:border-box;background:#fff;border:1px solid #b8d9c5;border-radius:12px;box-shadow:0 4px 20px #0002;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}#pwaUpdate[hidden]{display:none}#pwaUpdate button{padding:10px 14px;border:0;border-radius:9px;white-space:nowrap;background:#dff5e8!important}.app-version{font-size:12px;color:#737378;margin:10px 0}

.employee-week-navigation{display:flex;justify-content:space-between;gap:12px;margin:0 0 10px}.employee-week-navigation[hidden]{display:none}.employee-week-navigation button{border:1px solid #cfe2d6;border-radius:12px;padding:10px 15px;min-height:44px;color:#315e44!important;font-weight:600}
[data-area=takamatsu]{--area-color:#587da3!important;--area-surface:#edf4fb!important}
[data-area=tonosho]{--area-color:#947c3e!important;--area-surface:#faf6e7!important}
[data-area=fujita],[data-area=saijo]{--area-color:#a37850!important;--area-surface:#fbf1e8!important}

/* Keep unequal weekly trip lists aligned at the top of their button columns. */
#employeeWeek>.day-cell{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}
#employeeWeek>.day-cell>.day-number{align-self:flex-start}
#employeeWeek>.day-cell>*{flex-shrink:0}
#employeeWeek>.day-cell>.employee-mini-trip+.employee-mini-trip{margin-top:0}

#employeeWeek .employee-mini-trip>.employee-member-names{display:block;min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:inherit}

.publication-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d93025;margin-left:3px;vertical-align:top;flex:none}.publication-status{display:block;font-size:11px;line-height:1.4;color:#c5221f!important;margin-top:4px;white-space:nowrap}

body.day-compact:not(.employee-mode) #boardView>.assignment-dock{opacity:.9}
.request-day.work-requested{background:#e7f4ec!important;box-shadow:inset 0 0 0 1px #629779}.request-day.work-requested .day-summary{color:#286344;font-weight:600}
#monthOverview{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:12px;border:0;border-radius:0;box-sizing:border-box;overflow:hidden;background:var(--paper,#fff);color:var(--ink)}#monthOverview[open]{display:flex;flex-direction:column}#monthOverview header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:none}#monthOverview header button{min-height:44px;padding:8px 14px;border:0;border-radius:10px}#monthOverview>p{font-size:12px;margin:8px 0;flex:none}#monthOverviewSpace{flex:1;min-height:0;position:relative;overflow:hidden}#monthOverviewGrid{width:1400px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));transform-origin:top left;gap:2px}#monthOverviewGrid .overview-day{display:flex;flex-direction:column;justify-content:flex-start;text-align:left;gap:3px;border:1px solid var(--line);padding:5px;background:var(--paper)!important;font-size:13px;min-width:0;overflow-wrap:anywhere}#monthOverviewGrid .overview-day>span{display:block;padding:3px;border-left:3px solid #57856b;background:#edf6f0}#monthOverviewGrid .overview-day>span[data-area=takamatsu]{border-color:#6687ae;background:#edf2fa}#monthOverviewGrid .overview-day>span[data-area=tonosho]{border-color:#a89551;background:#faf7e8}#monthOverviewGrid .overview-day>span[data-area=fujita],#monthOverviewGrid .overview-day>span[data-area=saijo]{border-color:#bd8852;background:#fbf1e6}#monthOverviewGrid .overview-weekday{text-align:center;font-size:14px}#monthOverviewOpen{margin:8px 0 12px;min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:10px}
#publishProgress{width:210px;max-width:calc(100vw - 48px);padding:28px 20px;border:0;border-radius:22px;margin:auto;color:var(--text,#244234);background:var(--card,#fff);box-shadow:0 12px 48px #0002}#publishProgress::backdrop{background:#152c2433}#publishProgress .dialog-closebar{display:none!important}.publish-progress-content{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.publish-progress-content small{font-size:12px;opacity:.7}.publish-spinner{display:block;width:40px;height:40px;border:4px solid #dceee3;border-top-color:#66a77c;border-radius:50%;animation:publish-spin .85s linear infinite}@keyframes publish-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.publish-spinner{animation-duration:2s}}
