/* Shared phone/tablet layouts; wide schedules retain an explicit scroll area. */
main,header,.card,.bar,.li,.w,.r2>*{min-width:0}.w{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.w:focus-visible{outline:3px solid #3184ed;outline-offset:2px}img,video,canvas{max-width:100%}button,input,select,textarea{touch-action:manipulation}button:focus-visible{outline:3px solid #73b6ff;outline-offset:2px}dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain}dialog .ft{flex-wrap:wrap}dialog input,dialog select,dialog textarea{max-width:100%}.mobile-menu{display:none}.install-app{margin:8px;font-size:13px}.install-login{text-align:center}.connection-notice{position:sticky;top:0;z-index:100;background:#fff1cf;color:#663f00;padding:10px 16px;text-align:center}.scroll-help{font-size:12px;color:#506584;margin:6px 0}.standalone .install-app{display:none}main{padding-bottom:max(30px,env(safe-area-inset-bottom))}
@media(max-width:1024px){
 header{position:static;padding:12px;gap:10px}header .app-brand{flex:1;border:0;padding:0}header .app-brand b{font-size:18px}header>span{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0}header nav{display:none;flex-basis:100%;order:4;overflow:visible}header nav.mobile-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}header nav button{white-space:normal;justify-content:flex-start;min-height:46px;padding:10px;font-size:13px}.mobile-menu{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#ffffff15;color:white;border:1px solid #9eb4d0;min-height:44px}.install-app{min-height:44px}button{min-height:44px}input,select,textarea{min-height:44px;font-size:16px}input[type=checkbox],input[type=radio]{min-height:24px;min-width:24px;width:24px;height:24px;vertical-align:middle}.u select{min-width:52px;min-height:44px!important;font-size:14px!important}.bar select{max-width:100%}.bar{gap:8px}.li{flex-wrap:wrap;gap:10px;overflow-wrap:anywhere}.li>select{max-width:100%!important}.li>.sp{min-width:0}.region-grid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}.r2{gap:12px}dialog .ft button{flex:1;min-width:100px}.generation-people{max-height:42dvh}.point-full .li>div{flex:1 1 100%}.point-full .li>button{flex:1 1 130px}.point-full .sp{display:none}.cal .ch{min-height:32px;display:flex;align-items:center}.u td.n{position:sticky;left:0;z-index:2;background:#edf3ff;max-width:150px;white-space:normal}.u th:nth-child(2){position:sticky;left:0;z-index:3;background:#e1ebfa}.u td.n{box-shadow:3px 0 5px #102c5120}
}
@media(max-width:600px){
 header .app-brand{flex-basis:calc(100% - 95px)}header>span{flex-basis:100%;justify-content:space-between}header .header-profile{padding:0!important;flex:1;min-width:0}header .header-profile b{display:block;max-width:135px;overflow-wrap:anywhere}header>span>button:not(.header-profile){padding:8px;font-size:12px}header nav.mobile-open{grid-template-columns:repeat(2,minmax(0,1fr))}.install-app{margin:4px;font-size:12px}main{padding:14px 10px 30px}.r2,.profile-fields,.generation-people{grid-template-columns:minmax(0,1fr)!important}.bar h2{flex:1 1 100%;text-align:left!important;font-size:19px}.bar>input,.bar>select{min-width:0;flex:1 1 140px;max-width:100%!important}.bar>button{flex-grow:1}.bar>.sp{display:none}.card{padding:14px}.li>select{flex:1 1 100%;width:100%!important}.li>b,.li>span:not(.sp){overflow-wrap:anywhere}.li>.sp{display:none}.lo{width:calc(100% - 24px)!important;max-width:400px;margin:28px auto!important}.lo input{width:100%}.lg{gap:8px;font-size:11px}dialog{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;padding:18px;max-height:calc(100dvh - 20px)}dialog h3{font-size:20px}dialog .ft{gap:8px}dialog input[type=file]{font-size:14px;padding:8px}.today-card{flex-wrap:wrap;gap:8px;padding:14px}.today-card strong{white-space:normal}.today-card .date-divider{display:none}.today-card>div{min-width:0}.point-welcome>div{min-width:0}.point-welcome h2{overflow-wrap:anywhere}.point-day{gap:10px;padding:12px}.point-day strong{white-space:normal;font-size:21px}.point-clock strong{font-size:32px}.point-footer{gap:8px;flex-wrap:wrap}.rotation-summary{font-size:12px}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-metric{padding:12px 9px;gap:7px}.dash-metric strong{font-size:26px}.metric-icon{width:32px;height:32px}.metric-icon svg{width:20px;height:20px}.dash-metric div>span{font-size:11px}.responsive-records{display:block;min-width:0!important}.responsive-records thead,.responsive-records tr:first-child:has(th){display:none}.responsive-records tbody{display:block}.responsive-records tr{display:block;border:1px solid #d4dfef;border-radius:12px;margin:10px 0;padding:10px;background:white}.responsive-records td{display:grid;grid-template-columns:minmax(100px,38%) minmax(0,1fr);gap:10px;border:0;border-bottom:1px solid #edf1f7;padding:9px 3px;overflow-wrap:anywhere;font-size:13px}.responsive-records td:before{content:attr(data-label);font-weight:650;color:#526783}.responsive-records td:last-child{border:0}.responsive-records td>input,.responsive-records td>select{width:100%;min-width:0}.responsive-records tr[onclick]{cursor:pointer}.point-history .bar h3{font-size:16px}.point-history .bar button{min-height:44px}.point-timeline small{font-size:10px}
}
@media(max-width:360px){.metric-icon{display:none}.point-day{grid-template-columns:1fr}.point-day>div{border-right:0;padding:0}.point-day ul{border-top:1px solid #c4d6ef;padding-top:10px}.header-profile small{display:none}.point-clock{gap:12px}}
@media(display-mode:standalone){.install-app{display:none}body{min-height:100dvh}}
#saveStatus{position:fixed;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);background:#143963;color:white;padding:12px 18px;border-radius:12px;z-index:150;box-shadow:0 4px 20px #0003;font-size:14px}#saveStatus.error{background:#8b2f25}.u td:nth-child(2)>select{max-width:210px}.u td:nth-child(2) small{display:block}.u td.n{left:0}.u th:first-child{position:sticky;left:0;z-index:3;background:#e1ebfa}.u th:nth-child(2){position:static}#switchCamera{margin:8px}
@media(max-width:1024px){.lg span,#viewContent>span{white-space:normal!important;overflow-wrap:anywhere;max-width:100%}}
.branch-location{min-width:210px;max-width:280px;white-space:normal;overflow-wrap:anywhere;padding:6px}.branch-location>b,.branch-location>span{display:block}.branch-location>b{font-size:14px;color:#102c51}.branch-location>span{font-size:12px;color:#526783}.u td:nth-child(2){min-width:240px}.u td:nth-child(2)>select{width:100%;max-width:280px;min-width:220px!important}.notification-list{display:grid;gap:12px;max-height:60dvh;overflow:auto}.notification-list p{overflow-wrap:anywhere}#notificationButton{min-height:44px;color:white;background:#ffffff15;border:1px solid #9eb4d0}#rangeManual{width:22px;height:22px;vertical-align:middle}
.u td.schedule-issue{position:relative;animation:schedule-attention 1.6s ease-in-out infinite;box-shadow:inset 0 0 0 3px #a50000}.u .schedule-issue-badge{position:absolute;right:1px;top:1px;min-width:20px;width:20px;height:20px;padding:0;border:1px solid white;border-radius:50%;background:#a50000;color:white;font-weight:900;line-height:18px;z-index:2}#scheduleIssueTip{position:fixed;z-index:10000;max-width:min(320px,calc(100vw - 16px));padding:12px 14px;border:1px solid #c7d4e5;border-radius:10px;background:#102b4b;color:white;box-shadow:0 4px 18px #0004;font-size:14px;line-height:1.4;white-space:pre-line;pointer-events:none}@keyframes schedule-attention{50%{box-shadow:inset 0 0 0 3px #ffcc65}}@media(prefers-reduced-motion:reduce){.u td.schedule-issue{animation:none}}
.developer textarea,#advancedData{width:100%;max-width:100%}#mainContent>.bar{flex-wrap:wrap}#mainContent>.bar label select{max-width:260px}.role-title{display:block;font-size:11px}.card textarea{min-height:80px}.card td input{min-width:130px}.card td select{min-width:125px}@media(max-width:600px){#mainContent>.bar label{max-width:100%}#mainContent>.bar label select{max-width:100%}.li{flex-wrap:wrap}.li>div:first-child{max-width:100%}#mainContent .card p{overflow-wrap:anywhere}}
