.readonly-task dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px}.readonly-task dd{margin:0;overflow-wrap:anywhere}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}.mobile-agenda{max-width:650px;margin:auto}.mobile-week-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.mobile-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-bottom:18px}.mobile-days button{padding:6px 2px;font-size:11px;min-height:55px}.mobile-days button strong{display:block;font-size:16px}.mobile-days button.active{background:#ffd34a;color:#10212f;border-color:#ffd34a}.mobile-agenda>label{margin-bottom:14px}.mobile-agenda h2{font-size:20px;margin:20px 0 4px}.mobile-appointments{display:flex;flex-direction:column;gap:12px}.mobile-appointment{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;background:#132c40;padding:16px;border-left:5px solid #0a8d5b;overflow-wrap:anywhere}.mobile-appointment.reserved{border-left-color:#2874ec}.mobile-appointment.absent{border-left-color:#ce3446}.mobile-appointment.rest{border-left-color:#89552c}.mobile-appointment.unclassified{border-left-color:#adb3bb}.mobile-appointment strong{font-size:17px;line-height:1.3}.mobile-appointment em{font-size:13px}.mobile-time{font-weight:650}.mobile-time.agreed-time{border:1px solid #ff344e;padding:3px 6px;border-radius:4px}.employee-view .menu-toggle{display:none}.employee-view .nav{display:flex}.employee-view .nav-icon{display:none}
@media(max-width:700px){.employee-view .main{padding:16px 12px}.employee-view .topbar h1{font-size:24px}.employee-view .topbar .eyebrow{display:none}.employee-view .topbar{gap:8px}.employee-view .topbar .pill{font-size:10px}.employee-view .sidebar .nav{display:none}.employee-view .sidebar{grid-template-columns:170px 1fr}.employee-view .sidebar .sidebar-bottom{grid-column:2}.readonly-task dl{grid-template-columns:1fr;gap:4px}.readonly-task dd{margin-bottom:12px}dialog{max-width:calc(100vw - 16px)}.dialog-body{max-height:70dvh}.auth-card{width:100%;max-width:430px}}

.mobile-days.five-days{grid-template-columns:repeat(5,minmax(0,1fr))}

/* Phone workspace shared by readers and planners; TV remains on its fixed canvas. */
.mobile-week-nav>div{min-width:0;flex:1;text-align:center}.mobile-week-nav small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.mobile-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mobile-filters>label{min-width:0}.mobile-filters>.check{grid-column:1/-1}.mobile-day-heading h2{margin:20px 0 6px}.mobile-day-heading p{font-size:13px}
.mobile-person{background:#102536;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}.mobile-person>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.mobile-person h3{font-size:16px;margin:0 0 3px;overflow-wrap:anywhere}.mobile-person header small,.mobile-count{color:var(--muted);font-size:11px}.mobile-count{white-space:nowrap}.mobile-person .mobile-appointment{width:100%;margin:8px 0;background:#173449;border-radius:8px;color:var(--text);gap:8px;padding:13px 12px}.mobile-appointment>span,.mobile-appointment>small,.mobile-appointment>em{max-width:100%;white-space:normal;overflow-wrap:anywhere}.mobile-appointment small{line-height:1.5;font-size:13px;color:#c5d7e4}.mobile-appointment em{color:#d3e0e8;line-height:1.5}.mobile-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;flex-wrap:wrap}.mobile-status{font-size:10px;color:#bcd0de}.mobile-open{font-size:11px;color:var(--cyan);margin-top:3px}.mobile-no-plan{font-size:13px;color:var(--muted);margin:12px 0}.mobile-add{width:100%;border:1px dashed #4f7b96;background:transparent;color:var(--cyan);margin-top:6px;min-height:44px}.mobile-selection{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.mobile-selection strong{font-size:13px}.mobile-appointment.selected{outline:2px solid var(--yellow);outline-offset:-2px}
@media(max-width:700px){
 .app-shell:not(.screen)>.sidebar{position:sticky;top:0;z-index:4;background:#0a1927;grid-template-columns:minmax(110px,1fr) auto auto;box-shadow:0 4px 16px #0003}
 .app-shell:not(.screen) .sidebar .nav button{min-height:44px;flex:1 0 42%;white-space:normal}.app-shell:not(.screen) .sidebar .logo{max-width:155px;width:100%}.app-shell:not(.screen) .sidebar .sidebar-bottom{min-width:0}
 .app-shell:not(.screen)>.main{padding:16px 12px 30px}.app-shell:not(.screen) .topbar{margin-bottom:18px;gap:10px}.app-shell:not(.screen) .topbar h1{font-size:24px;margin-bottom:6px}.app-shell:not(.screen) .topbar .eyebrow{display:none}.app-shell:not(.screen) .topbar p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.app-shell:not(.screen) .topbar .actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.app-shell:not(.screen) .topbar .actions .pill{font-size:9px}.app-shell:not(.screen) .topbar .actions>button{min-height:44px}.app-shell:not(.screen) button{touch-action:manipulation}
 .mobile-agenda{max-width:650px}.mobile-week-nav{gap:6px}.mobile-week-nav>button{min-width:40px;min-height:44px;padding:7px}.mobile-week-nav>button[data-action=today]{font-size:11px}.mobile-days button{min-height:62px}.mobile-filters select{width:100%;min-height:44px}.mobile-filters label{font-size:12px}.mobile-time{font-size:14px}.mobile-appointment strong{font-size:17px}.mobile-selection button{min-height:44px}
 .app-shell:not(.screen) input:not([type=checkbox]),.app-shell:not(.screen) select,.app-shell:not(.screen) textarea,dialog input:not([type=checkbox]),dialog select,dialog textarea,.auth input{font-size:16px;min-width:0;max-width:100%}
 .app-shell:not(.screen) .searchbar{display:grid;grid-template-columns:1fr;align-items:stretch}.app-shell:not(.screen) .searchbar label{min-width:0}.app-shell:not(.screen) .panel-intro{padding:16px}.app-shell:not(.screen) .table-wrap{overscroll-behavior-x:contain}.app-shell:not(.screen) th,.app-shell:not(.screen) td{padding:12px;font-size:12px}.app-shell:not(.screen) .table-wrap button{min-height:44px}.app-shell:not(.screen) .event-head{gap:6px}.app-shell:not(.screen) .change{grid-template-columns:1fr;gap:4px}.app-shell:not(.screen) .change>span:empty{display:none}
 dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0}dialog #editor-form{height:100%;display:flex;flex-direction:column;min-height:0}dialog .dialog-head{padding:16px;border-bottom:1px solid var(--line);flex-shrink:0;gap:10px}dialog .dialog-head h2{font-size:19px}dialog .dialog-head button{min-width:44px;min-height:44px}dialog .dialog-body{flex:1;min-height:0;max-height:none;padding:16px;overflow-y:auto;overscroll-behavior:contain}dialog .dialog-footer{flex-shrink:0;flex-wrap:wrap;padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:8px}dialog .dialog-footer .actions{flex:1;justify-content:flex-end;flex-wrap:wrap}dialog .dialog-footer button{min-height:44px}dialog .form-grid{grid-template-columns:minmax(0,1fr)}dialog .team-options{grid-template-columns:1fr;max-height:190px}dialog .team-options label{min-height:40px}dialog .form-grid>*{min-width:0}dialog fieldset{max-width:100%;box-sizing:border-box}dialog .readonly-task p{line-height:1.6}dialog .readonly-task dl{grid-template-columns:1fr}
 #toast{left:12px;right:12px;bottom:12px;max-width:none;z-index:20;font-size:13px}.employee-view .sidebar .sidebar-bottom{grid-column:3}.employee-view .sidebar{grid-template-columns:minmax(110px,1fr) auto auto}
}

@media(max-width:700px){#content footer.legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:18px;padding:14px 0;align-items:center;font-size:12px}#content footer.legend .legend-item{display:inline-flex;align-items:center;gap:7px;min-width:0;white-space:normal}#content footer.legend .swatch{display:inline-block;width:20px;height:14px;min-width:20px;border-radius:3px}.mobile-filters .save-calendar-view{align-self:end;min-height:40px}}

@media(max-width:700px){#content footer.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:100%}#content footer.legend .legend-item{margin:0;min-width:0}.mobile-filters .save-calendar-view{order:1;grid-column:1/-1}.mobile-filters>label{min-width:0}html[data-theme=light] .mobile-person{background:var(--panel);color:var(--text);border-color:var(--line)}html[data-theme=light] .mobile-person h3,html[data-theme=light] .mobile-person .mobile-no-plan{color:var(--text)}}

html[data-theme=light] .mobile-appointment .mobile-status,html[data-theme=light] .mobile-appointment em{color:var(--muted)}
