:root{--navy:#143451;--navy-deep:#102940;--blue:#285c8e;--ink:#19334a;--muted:#61768a;--paper:#f4f7fa;--line:#dce5ed;--white:#fff;--red:#be3441;--green:#23774e;--shadow:0 12px 32px #1434510b;--radius:16px;color-scheme:light;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:15px;line-height:1.45}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #65a9e1;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.15;letter-spacing:-.8px;margin-bottom:12px}h2{font-size:22px;letter-spacing:-.4px}h3{font-size:17px}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:700;color:var(--blue);margin-bottom:10px}.hidden{display:none!important}.initial-loader{min-height:100vh;display:grid;align-content:center;justify-items:center;gap:16px}.spinner{width:25px;height:25px;border:3px solid #d1e0eb;border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite}.spinner.small{width:16px;height:16px;border-width:2px}@keyframes spin{to{transform:rotate(360deg)}}
.primary,.secondary,.quiet,.danger,.nav-button{border:0;border-radius:10px;padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650;min-height:44px}.primary{background:var(--navy);color:#fff;box-shadow:0 3px 0 #0c243a}.primary:hover{background:#214b70}.primary:active{transform:translateY(1px);box-shadow:0 2px 0 #0c243a}.primary:disabled{opacity:.6}.secondary{background:#fff;border:1px solid #d4e0ea;color:var(--navy)}.secondary:hover{background:#edf4fa}.quiet{background:transparent;color:var(--muted)}.quiet:hover{background:#e9f0f6;color:var(--navy)}.danger{color:#a52d3a;background:#fff0f1}.small-button{min-height:36px;padding:7px 11px;font-size:13px}.input,select.control,.date-input{width:100%;border:1px solid #ccd9e4;border-radius:8px;padding:10px 12px;color:var(--ink);background:#fff;min-height:43px}.input::placeholder{color:#8a9aab}.field{display:grid;gap:7px}.field>label{font-size:13px;font-weight:650}.field-note{font-size:12px;color:var(--muted);margin:0}.error-message{background:#fff0f1;color:#a52d3a;border:1px solid #f2c4ca;border-radius:9px;padding:11px 13px;font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.divider{height:1px;background:var(--line);margin:22px 0}
.login-screen{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(390px,1fr)}.login-art{background:var(--navy-deep);color:#fff;position:relative;overflow:hidden;padding:70px;display:flex;flex-direction:column;justify-content:flex-start}.login-art:before,.login-art:after{content:"";position:absolute;border:1px solid #ffffff10;border-radius:50%;width:760px;height:760px;right:-470px;bottom:-370px;pointer-events:none}.login-art:after{width:1020px;height:1020px;right:-600px;bottom:-500px}.login-art .eyebrow{color:#93bddf}.login-art h1{font-size:52px;max-width:500px;margin:24px 0 22px}.login-art p{color:#b8cede;max-width:410px;font-size:17px}.login-emblem{width:168px;height:auto;object-fit:contain}.login-mark{display:flex;gap:9px;align-items:center;color:#c2d6e6;font-size:12px;margin-top:48px}.login-panel{padding:40px;display:grid;place-items:center}.login-card{width:100%;max-width:380px}.login-card h2{font-size:30px;margin-bottom:10px}.login-card>p{margin-bottom:30px}.login-card form{display:grid;gap:20px}.login-card .primary{width:100%;margin-top:5px}.login-foot{font-size:12px;color:var(--muted);margin-top:27px;padding-top:20px;border-top:1px solid var(--line)}
.app-header{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:40;gap:20px}.brand{display:flex;gap:12px;align-items:center;color:var(--navy);border:0;background:none;padding:0;text-align:left}.brand img{height:45px;width:46px;object-fit:contain}.brand strong{display:block;font-size:20px;letter-spacing:-.4px}.brand small{display:block;color:var(--muted);font-size:11px}.header-tools{display:flex;align-items:center;gap:20px}.connection{font-size:12px;display:flex;gap:7px;align-items:center;white-space:nowrap;color:var(--muted)}.connection-dot{width:7px;height:7px;background:#339165;border-radius:50%;box-shadow:0 0 0 4px #3391650b}.connection.offline .connection-dot{background:#c67e22;box-shadow:0 0 0 4px #c67e220b}.user-info{border-left:1px solid var(--line);padding-left:20px;text-align:right}.user-info strong{display:block;font-size:13px;font-weight:650}.user-info small{display:block;font-size:11px;color:var(--muted)}.app-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 76px)}.sidebar{padding:26px 15px;background:#fff;border-right:1px solid var(--line);position:sticky;top:76px;height:calc(100vh - 76px);display:flex;flex-direction:column;gap:6px}.sidebar-label{font-size:10px;font-weight:750;letter-spacing:1.4px;text-transform:uppercase;color:#8596a5;padding:12px 14px 6px}.nav-button{background:none;color:#65798b;justify-content:flex-start;padding:11px 14px;width:100%;font-size:13px;box-shadow:none}.nav-button:hover{background:#f2f6fa}.nav-button.active{background:#eaf1f8;color:var(--navy)}.nav-button .icon{width:18px;height:18px}.sidebar-footer{margin-top:auto;padding:22px 14px 0;font-size:11px;color:#8294a3;border-top:1px solid var(--line)}.main-content{min-width:0;padding:32px 34px 50px;max-width:1900px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}.page-heading h1{font-size:29px;margin:0 0 6px}.page-heading p{color:var(--muted);font-size:13px;margin:0}.heading-actions{display:flex;gap:8px;flex-wrap:wrap}.back-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);background:none;border:0;padding:0;margin-bottom:15px}.back-link .icon{width:15px;height:15px}.section-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:26px}
.home-hero{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(360px,1fr);align-items:start;gap:45px;padding:35px 60px 40px;max-width:1100px;margin:20px auto 35px}.hero-emblem{width:100%;max-width:260px;justify-self:center;align-self:start;margin-top:8px;filter:drop-shadow(0 13px 16px #14345112)}.home-controls h1{font-size:54px;margin-bottom:28px}.home-controls .eyebrow{margin-bottom:8px}.home-buttons{display:grid;gap:15px}.home-nav{border:1px solid #174065;border-radius:16px;min-height:73px;color:#fff;background:linear-gradient(180deg,#4274a1 0%,#23466c 100%);box-shadow:0 4px 0 #173350,0 9px 16px #1434511c;padding:18px 23px;font-size:24px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:20px;text-align:center;transition:transform .15s,box-shadow .15s}.home-nav .icon{width:23px;height:23px;opacity:.8}.home-nav:hover{transform:translateY(-2px);box-shadow:0 6px 0 #173350,0 13px 23px #14345121}.home-nav:active{transform:translateY(2px);box-shadow:0 2px 0 #173350}.home-nav.main{min-height:85px;margin-bottom:9px;font-size:25px;background:linear-gradient(180deg,#346d9e,#1b3f60)}.home-note{font-size:12px;color:var(--muted);margin-top:22px}.summary-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;max-width:1160px;margin:0 auto 22px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 20px;position:relative;overflow:hidden}.stat small{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.stat strong{font-size:29px;display:block;color:var(--navy);line-height:1.4}.stat .stat-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#8a9db1}.stat.green .stat-dot{background:#388965}.stat.red .stat-dot{background:#c6505e}.stat.yellow .stat-dot{background:#c49a36}.stat.purple .stat-dot{background:#9570ba}.stat.azure .stat-dot{background:#62baf0}.home-bottom{display:flex;justify-content:center;gap:8px;font-size:12px;color:var(--muted)}.floor-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px;max-width:900px;margin:32px auto}.floor-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;display:flex;justify-content:space-between;align-items:center;color:var(--navy);text-align:left;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}.floor-card:hover{transform:translateY(-3px);border-color:#91afc8}.floor-number{font-size:52px;font-weight:750;line-height:1;letter-spacing:-2px}.floor-card strong{font-size:21px;display:block;margin-top:8px}.floor-card small{color:var(--muted);display:block;margin-top:10px}.floor-card .icon{width:31px;height:31px;color:#6b93b5}.hub-note{text-align:center;color:var(--muted);font-size:13px}
.toolbar{display:flex;gap:13px;align-items:center;flex-wrap:wrap;background:#fff;padding:15px 18px;border:1px solid var(--line);border-radius:13px;margin-bottom:13px}.search-field{position:relative;flex:1;min-width:210px;max-width:470px}.search-field .icon{position:absolute;left:12px;top:12px;width:19px;height:19px;color:#7c91a4}.search-field input{padding-left:39px;padding-right:38px}.search-clear{position:absolute;right:5px;top:5px;border:0;background:none;min-width:33px;height:33px;color:var(--muted);display:grid;place-items:center}.toolbar-filter{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.toolbar-filter select{min-height:42px;border:1px solid #d7e1ea;border-radius:8px;padding:9px 26px 9px 10px;color:var(--ink);background:#fff;font-size:13px;max-width:170px}.result-count{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}.access-note{display:flex;gap:10px;align-items:flex-start;padding:11px 14px;color:#657c91;font-size:12px;margin-bottom:14px;background:#eaf1f7;border-radius:9px}.access-note .icon{width:16px;height:16px;margin-top:1px;color:#6082a0}.legend{display:flex;align-items:center;gap:17px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:15px 0}.legend span{display:flex;gap:6px;align-items:center}.legend i{display:inline-block;width:8px;height:8px;border-radius:3px}.legend-green{background:#8fc8a4}.legend-yellow{background:#f1d36f}.legend-red{background:#f1a1a4}.legend-purple{background:#b8a0e0}.legend-azure{background:#62baf0}.roster-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px;max-height:calc(100vh - 325px);background:#fff;position:relative;scrollbar-color:#bccdda #f0f5f8;scrollbar-width:thin}.roster{border-spacing:0;width:100%;table-layout:fixed;min-width:var(--roster-min-width,1640px);font-size:13px}.roster th{background:#183a57;color:#fff;text-align:left;font-size:11px;font-weight:650;line-height:1.4;padding:14px 10px;border-right:1px solid #ffffff15;position:sticky;top:0;z-index:15;height:62px}.roster td{padding:12px 9px;border-bottom:1px solid #d9e3eb;border-right:1px solid #e5edf3;height:80px;vertical-align:middle;background:var(--row-bg,#fff)}.roster tbody tr:nth-child(even){--row-bg:#f5f8fb}.roster tr.color-green{--row-bg:#c1dfce!important}.roster tr.color-red{--row-bg:#f5c5c8!important}.roster tr.color-yellow{--row-bg:#f5e3a4!important}.roster tr.color-purple{--row-bg:#d9c9eb!important}.roster tr.color-azure{--row-bg:#c8eaff!important}.roster tr.saving{opacity:.75}.roster td.id-col,.roster td.name-col{position:sticky;z-index:8}.roster .id-col{left:0;width:91px;font-variant-numeric:tabular-nums}.roster .name-col{left:91px;width:auto;border-right:2px solid #c6d5e2}.roster th.id-col,.roster th.name-col{z-index:25}.roster .name-col strong{font-weight:650;line-height:1.45}.roster .group-col{width:112px}.roster .where-col{width:95px}.roster .presence-col{width:108px}.roster .reason-col{width:142px}.roster .date-col{width:146px}.roster .location-col{width:155px}.roster .late-col{width:122px}.roster .reset-col{width:125px}.roster .info-col{width:60px}.roster td .cell-select{width:100%;background:#ffffffb5;color:var(--ink);border:1px solid #14345122;border-radius:7px;font-size:13px;padding:9px 6px;min-height:39px}.roster td .cell-date{width:100%;background:#ffffffb5;border:1px solid #14345122;border-radius:7px;padding:9px 5px;font-size:12px;min-height:39px;color:var(--ink)}.roster td input:disabled{background:#ffffff25;opacity:.6}.readonly-value{font-size:13px;min-height:25px;display:flex;align-items:center;gap:5px}.readonly-empty{color:#8b9ba8}.reason-b,.reason-b select{color:#076899!important;font-weight:750!important}.reason-o,.reason-o select{color:#743aa0!important;font-weight:750!important}.reason-p,.reason-p select{color:#a87800!important;font-weight:750!important}.where-value{font-size:12px;line-height:1.7;color:#527087}.reset-button{width:46px;height:46px;border:1.5px solid #7890a4;border-radius:8px;background:#ffffffaa;color:#54738e;display:grid;place-items:center;margin:0 auto;transition:background .12s}.reset-button .icon{width:25px;height:25px;opacity:0}.reset-button:hover{background:#fff;border-color:#285c8e}.reset-button:hover .icon{opacity:0}.reset-button.saved{background:#d7efe1;border-color:#358661;color:#23774e}.reset-button.saved .icon{opacity:1}.reset-button:disabled{opacity:.35}.info-button{border:0;background:#ffffff70;border-radius:7px;display:grid;place-items:center;width:34px;height:34px;color:#54738e}.info-button:hover{background:#fff}.roster-help{font-size:11px;color:var(--muted);margin:12px 2px}.empty-state{padding:55px 20px;text-align:center;color:var(--muted)}.empty-state .icon{width:34px;height:34px;margin-bottom:13px;color:#8aa2b8}.empty-state h3{color:var(--navy);margin-bottom:6px}.empty-state p{font-size:13px;margin-bottom:0}.mobile-label{display:none}.mobile-meta{display:none}.table-foot{display:flex;gap:8px;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:12px}.table-foot .icon{width:13px;height:13px;margin-right:3px}
.admin-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:23px}.admin-tab{background:none;border:0;border-bottom:3px solid transparent;padding:13px 15px;font-size:13px;font-weight:650;color:var(--muted)}.admin-tab.active{color:var(--navy);border-color:var(--blue)}.users-list{display:grid;gap:10px}.user-row{display:flex;align-items:center;gap:15px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px}.avatar{width:42px;height:42px;border-radius:11px;background:#eaf1f7;color:#416888;font-weight:700;display:grid;place-items:center;flex:none}.user-row-main{flex:1;min-width:0}.user-row-main strong{font-size:14px;display:block}.user-row-main small{font-size:12px;color:var(--muted)}.role-badge{font-size:11px;background:#eaf1f7;color:#466681;padding:5px 9px;border-radius:6px}.scope-text{color:var(--muted);font-size:11px;margin-top:5px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-grid .section-card h3{margin-bottom:9px}.settings-grid .section-card p{font-size:13px;color:var(--muted)}.settings-grid .field{margin:22px 0}.settings-grid .input{max-width:260px}.download-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.mini-notice{font-size:12px!important;border-top:1px solid var(--line);padding-top:16px;margin-top:24px!important}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.contact-item dt{font-size:11px;color:var(--muted);margin-bottom:5px}.contact-item dd{margin:0;font-size:14px;overflow-wrap:anywhere}.contact-item.wide{grid-column:1/-1}.contact-title{font-size:23px;margin-bottom:5px}.contact-meta{font-size:12px;color:var(--muted);margin-bottom:25px}.modal{border:0;border-radius:18px;padding:30px;max-width:580px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 25px 80px #10294035;max-height:90vh;overflow:auto}.modal::backdrop{background:#10294060;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.modal-heading h2{margin-bottom:4px}.modal-heading p{font-size:12px;color:var(--muted);margin-bottom:0}.modal-close{border:0;background:#f0f5f9;border-radius:8px;height:32px;width:32px;display:grid;place-items:center;color:var(--muted);flex:none}.modal-close .icon{width:17px;height:17px}select[multiple]{min-height:132px;padding:7px}.toast-region{position:fixed;right:25px;bottom:25px;z-index:100;display:grid;gap:9px;max-width:400px;pointer-events:none}.toast{display:flex;align-items:flex-start;gap:10px;padding:14px 17px;background:var(--navy-deep);color:#fff;border-radius:11px;box-shadow:0 8px 30px #10294025;font-size:13px;animation:toast-in .2s ease;pointer-events:auto}.toast.error{background:#912b37}.toast .icon{width:18px;height:18px;margin-top:1px}@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.loading-panel{padding:70px;display:flex;justify-content:center;align-items:center;gap:13px;color:var(--muted);font-size:13px}
@media(min-width:1600px){.home-hero{margin-top:45px}.roster{font-size:14px}.roster-wrap{max-height:calc(100vh - 335px)}}
@media(max-width:1100px){.app-shell{grid-template-columns:180px 1fr}.sidebar{padding:23px 10px}.main-content{padding:27px 23px}.home-hero{padding:20px 15px 28px;gap:28px;grid-template-columns:minmax(150px,.6fr) minmax(280px,1fr)}.home-controls h1{font-size:44px}.home-nav{font-size:21px;min-height:67px}.home-nav.main{font-size:22px}.stat{padding:15px 13px}.stat strong{font-size:25px}.login-art{padding:45px}.login-art h1{font-size:42px}.settings-grid{grid-template-columns:1fr}.header-tools{gap:13px}.connection{font-size:11px}.app-header{padding:0 23px}}
@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:66px;height:auto;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:8px 14px;z-index:30;gap:3px}.sidebar-label,.sidebar-footer{display:none}.nav-button{width:auto;white-space:nowrap;padding:9px 12px;min-height:37px;font-size:12px}.app-header{height:66px;padding:0 18px}.brand img{height:39px;width:39px}.brand strong{font-size:18px}.brand small{font-size:10px}.user-info{padding-left:13px}.connection{display:none}.main-content{padding:25px 20px 40px}.home-hero{margin-top:10px}.summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat small{font-size:10px}.stat{padding:13px 10px}.stat strong{font-size:23px}.roster-wrap{max-height:calc(100vh - 350px)}.login-screen{grid-template-columns:1fr}.login-art{display:none}.login-panel{min-height:100vh;align-items:start;padding-top:36px;background:radial-gradient(ellipse at top,#e1edf6,#f4f7fa 60%)}.login-card{background:#fff;padding:32px;border-radius:20px;box-shadow:var(--shadow);max-width:430px}.login-card:before{content:"";display:block;width:96px;height:96px;background:url('/assets/emblem.png') center/contain no-repeat;margin-bottom:23px}}
@media(max-width:600px){h1{font-size:28px}.app-header{padding:0 13px;gap:8px}.brand strong{font-size:17px}.brand small{display:none}.header-tools{gap:7px}.user-info{border:0;padding:0;max-width:110px}.user-info strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info small{font-size:10px}.header-tools>.quiet{padding:8px;min-width:32px}.logout-label{display:none}.sidebar{top:66px;padding:7px 9px}.nav-button{font-size:11px;padding:8px 9px;gap:6px}.nav-button .icon{width:16px;height:16px}.main-content{padding:22px 14px 32px}.home-hero{display:flex;flex-direction:column;gap:20px;padding:5px 8px 20px;margin-bottom:12px}.hero-emblem{max-width:126px}.home-controls{width:100%;max-width:370px}.home-controls h1{font-size:40px;text-align:center;margin-bottom:22px}.home-controls .eyebrow{text-align:center;font-size:10px}.home-buttons{gap:12px}.home-nav{font-size:21px;min-height:60px;border-radius:12px;padding:15px 19px}.home-nav.main{font-size:21px;min-height:69px;margin-bottom:5px}.home-note{text-align:center;margin-top:18px}.summary-grid{grid-template-columns:repeat(3,1fr);gap:8px}.stat{padding:11px 12px}.stat strong{font-size:25px}.stat small{font-size:10px;white-space:nowrap}.home-bottom{font-size:11px;align-items:center;text-align:center}.page-heading{margin-bottom:18px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.heading-actions .secondary,.heading-actions .primary{font-size:11px;min-height:37px;padding:7px 10px}.floor-grid{gap:13px;margin-top:25px}.floor-card{padding:24px 19px;border-radius:16px}.floor-number{font-size:43px}.floor-card strong{font-size:17px}.floor-card small{font-size:11px}.floor-card .icon{width:24px;height:24px}.toolbar{padding:12px;gap:10px}.search-field{max-width:none;flex-basis:100%;min-width:0}.toolbar-filter{flex:1;gap:5px}.toolbar-filter select{max-width:none;min-width:0;width:100%;font-size:12px;padding-right:15px}.result-count{font-size:11px}.access-note{font-size:11px;padding:10px 11px}.legend{gap:12px;font-size:10px;margin:12px 0}.roster-wrap{border:0;background:none;border-radius:0;overflow:visible;max-height:none}.roster{display:block;min-width:0;width:100%;font-size:13px}.roster thead{display:none}.roster tbody{display:grid;gap:12px}.roster tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cfdce7;border-radius:13px;padding:12px;box-shadow:0 3px 10px #14345104;gap:10px;background:var(--row-bg,#fff);overflow:hidden}.roster tbody tr:nth-child(even){--row-bg:#fff}.roster td{display:flex;flex-direction:column;align-items:stretch;border:0;padding:0;height:auto;min-width:0;background:none!important}.roster td.id-col{position:static;width:auto;grid-column:1;font-size:11px;color:#668198;order:0;display:block;min-height:18px;align-self:center;font-weight:650}.roster td.id-col:before{content:'№ ';color:#8298aa}.roster td.name-col{position:static;width:auto;grid-column:1/-1;order:2;padding:0 0 11px;border-right:0;border-bottom:1px solid #14345115;line-height:1.5;font-size:16px}.roster td.info-col{width:auto;order:1;grid-column:2;align-items:flex-end;min-height:18px}.info-button{width:28px;height:28px;margin-top:-5px;background:#ffffff60}.info-button .icon{width:17px;height:17px}.roster td.group-col{width:auto;grid-column:1;order:3;font-size:11px;color:#527087}.roster td.where-col{width:auto;grid-column:2;order:4;align-items:flex-end;font-size:11px}.where-value{font-size:11px;line-height:1.5}.roster td.presence-col{width:auto;grid-column:1;order:5}.roster td.reason-col{width:auto;grid-column:2;order:6}.roster td.date-col{width:auto;order:7}.roster td.location-col{width:auto;order:8;grid-column:1}.roster td.late-col{width:auto;order:9;grid-column:2}.roster td.reset-col{width:auto;order:10;grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center;border-top:1px solid #14345115;padding-top:9px;margin-top:2px}.roster td.reset-col .mobile-label{font-size:12px;margin:0;color:#385c78}.mobile-label{display:block;font-size:10px;line-height:1.3;margin:0 0 5px;color:#55718a;font-weight:600}.roster td .cell-select,.roster td .cell-date{min-height:42px;font-size:13px;padding:9px 7px}.readonly-value{min-height:27px;font-size:13px}.reset-button{width:40px;height:40px;margin:0}.reset-button .icon{opacity:0;width:23px;height:23px}.reset-button.saved .icon{opacity:1}.roster-help{font-size:10px}.table-foot{font-size:10px;gap:15px}.user-row{padding:14px 12px;gap:10px;flex-wrap:wrap}.avatar{width:35px;height:35px;font-size:13px}.user-row .role-badge{font-size:10px}.user-row-main strong{font-size:13px}.user-row-main small{font-size:11px}.user-row .secondary{margin-left:auto;min-height:32px;font-size:11px;padding:6px 9px}.user-row-main{flex:1;min-width:140px}.section-card{padding:20px}.form-grid{grid-template-columns:1fr;gap:15px}.wide{grid-column:1}.modal{padding:23px 20px}.contact-grid{gap:17px}.contact-title{font-size:21px}.toast-region{left:14px;right:14px;bottom:15px;max-width:none}.toast{font-size:12px;padding:13px 15px}.login-panel{padding:36px 20px 20px}.login-card{padding:27px}.login-card h2{font-size:27px}.admin-tabs{margin-bottom:18px}.admin-tab{padding:11px 12px;font-size:12px}.home-controls h1,.home-nav{letter-spacing:-.3px}}
input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.roster tr.color-purple-hatch{--row-bg:#f6f1fb!important;--row-pattern:repeating-linear-gradient(135deg,transparent 0 15px,#e4d9f0 15px 16px,transparent 16px 32px)}
.roster tr.color-purple-hatch>td{background-color:var(--row-bg);background-image:var(--row-pattern)}
.roster tr.color-purple-hatch .cell-select,.roster tr.color-purple-hatch .cell-date,.roster tr.color-purple-hatch .cell-time{background-color:#ffffffdf}
.legend i.legend-purple-hatch{width:16px;height:12px;background:repeating-linear-gradient(135deg,#f6f1fb 0 6px,#d9c9eb 6px 7px,#f6f1fb 7px 13px);border:1px solid #e4d9f0}
@media(max-width:600px){.roster tr.color-purple-hatch{background-color:var(--row-bg);background-image:var(--row-pattern)}}
.roster tr.color-orange-hatch{--row-bg:#fff5ea!important;--row-pattern:repeating-linear-gradient(45deg,transparent 0 13px,#f4c38c 13px 14px)}
.roster tr.color-orange-hatch>td{background-color:var(--row-bg);background-image:var(--row-pattern)}
.roster tr.color-orange-hatch .cell-select,.roster tr.color-orange-hatch .cell-date,.roster tr.color-orange-hatch .cell-time{background-color:#ffffffdf}
.legend i.legend-orange-hatch{width:16px;height:12px;background:repeating-linear-gradient(45deg,#fff5ea 0 4px,#ec9f4c 4px 5px);border:1px solid #f5cfa3}
@media(max-width:600px){.roster tr.color-orange-hatch{background-color:var(--row-bg);background-image:var(--row-pattern)}}
.summary-person.color-orange-hatch{border-left-color:#e08a2e}
html[data-crew-mode=dark] .roster tr.color-orange-hatch{--row-bg:#3a2a1b!important;--row-pattern:repeating-linear-gradient(45deg,transparent 0 13px,#7a5228 13px 14px)}
html[data-crew-mode=dark] .summary-person.color-orange-hatch{background:#4a3218;color:#ffdcb5}
html[data-crew-mode=accessible] .roster tr.color-orange-hatch{--row-bg:#fff!important;--row-pattern:repeating-linear-gradient(45deg,transparent 0 9px,#b35c00 9px 11px)}
.roster tr.color-yellow-hatch{--row-bg:#fffbe8!important;--row-pattern:repeating-linear-gradient(135deg,transparent 0 13px,#ead27c 13px 14px)}
.roster tr.color-yellow-hatch>td{background-color:var(--row-bg);background-image:var(--row-pattern)}
.roster tr.color-yellow-hatch .cell-select,.roster tr.color-yellow-hatch .cell-date,.roster tr.color-yellow-hatch .cell-time{background-color:#ffffffdf}
.legend i.legend-yellow-hatch{width:16px;height:12px;background:repeating-linear-gradient(135deg,#fffbe8 0 4px,#dcbc45 4px 5px);border:1px solid #efdfa2}
@media(max-width:600px){.roster tr.color-yellow-hatch{background-color:var(--row-bg);background-image:var(--row-pattern)}}
.summary-person.color-yellow-hatch{border-left-color:#d1a82a}
html[data-crew-mode=dark] .roster tr.color-yellow-hatch{--row-bg:#363016!important;--row-pattern:repeating-linear-gradient(135deg,transparent 0 13px,#76662a 13px 14px)}
html[data-crew-mode=dark] .summary-person.color-yellow-hatch{background:#443a14;color:#ffeeb0}
html[data-crew-mode=accessible] .roster tr.color-yellow-hatch{--row-bg:#fff!important;--row-pattern:repeating-linear-gradient(135deg,transparent 0 9px,#8a6d00 9px 11px)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.login-crew{font-size:42px;font-weight:750;letter-spacing:-.8px;line-height:1.15;margin-top:110px}.login-card>.eyebrow{font-size:25px;text-transform:none;letter-spacing:-.5px;font-weight:750;margin-bottom:22px}
@media(max-width:1100px){.login-crew{font-size:36px}}
@media(max-width:600px){.hero-emblem{margin-top:0}.login-card>.eyebrow{font-size:28px;margin-bottom:18px}}
@media(max-width:360px){.app-header{padding:0 10px;gap:6px}.brand{gap:8px}.brand img{width:34px;height:34px}.brand strong{font-size:16px}.user-info{max-width:70px}.header-tools{gap:5px}.home-controls h1{font-size:36px}}
.user-row-actions{display:flex;align-items:center;gap:8px;flex:none}.user-row-actions button{white-space:nowrap}.user-row-actions .icon{width:16px;height:16px}.user-row-main strong,.user-row-main small{overflow-wrap:anywhere}.danger:hover{background:#ffe0e3}.danger:disabled{opacity:.6;cursor:wait}.delete-user-notice{font-size:14px;line-height:1.6;margin:0 0 16px}.delete-user-self{font-size:13px;line-height:1.5;color:#a52d3a;margin:0 0 16px}
@media(max-width:600px){.user-row-actions{width:100%;justify-content:flex-end;gap:8px}.user-row-actions .secondary,.user-row-actions .danger{margin-left:0;min-height:36px;font-size:12px;padding:7px 10px}.delete-user-notice{font-size:13px}.user-row .role-badge{white-space:normal}}
.cadet-name-button{display:block;width:100%;min-height:44px;padding:0;border:0;background:none;color:var(--ink);text-align:left;font-weight:650;line-height:1.45;overflow-wrap:anywhere;text-decoration:underline;text-decoration-color:#6e96b755;text-underline-offset:4px}.cadet-name-button:hover{text-decoration-color:var(--blue);color:var(--blue)}.educator-info{padding:18px;background:#f3f7fa;border-radius:12px}.educator-info .contact-item dt{font-size:12px;line-height:1.4}.educator-info .contact-item dd{font-size:15px;font-weight:600}
@media(max-width:600px){.roster-headman td.presence-col,.roster-headman td.late-col{order:5}.roster-headman td.reset-col{order:6}.roster-educator td.reason-col{grid-column:1/-1;order:5}.roster-educator td.start-date-col{grid-column:1;order:6}.roster-educator td.end-date-col{grid-column:2;order:6}.roster-educator td.location-col{grid-column:1/-1;order:7}.cadet-name-button{min-height:35px;font-size:16px}.educator-info{padding:15px;gap:18px 12px}.educator-info .contact-item dd{font-size:14px}}
.derived-reason{display:block;font-size:10px;line-height:1.3;color:#a52d3a;margin-top:5px}
.derived-reason.planned-leave-note{color:var(--muted)}
.scope-preview{padding:10px 12px;border:1px solid #d8e4ee;border-radius:8px;background:#f0f5f9;color:#385c78;font-size:13px;line-height:1.4}
.personnel-nav{font-size:22px;line-height:1.35}.roster-personnel .readonly-value{line-height:1.45}
@media(max-width:600px){.personnel-nav{font-size:19px;padding:15px 18px}.roster-personnel td.reason-col{grid-column:1/-1;order:4}.roster-personnel td.start-date-col{grid-column:1;order:5}.roster-personnel td.end-date-col{grid-column:2;order:5}.roster-personnel td.location-col{grid-column:1/-1;order:6}.roster-personnel .readonly-value{min-height:25px}}
.duties-layout{display:grid;grid-template-columns:minmax(420px,1.2fr) minmax(330px,1fr);gap:22px;align-items:start}.duty-calendar-card,.duty-today-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px;min-width:0}.duty-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.duty-month-controls{display:flex;align-items:center;gap:8px;min-width:0}.duty-month-controls h2{font-size:19px;margin:0;text-align:center;line-height:1.3;min-width:170px}.duty-month-button{padding:7px;min-height:34px;min-width:34px;flex:none}.duty-month-button .icon{width:18px;height:18px}.calendar-next .icon{transform:rotate(180deg)}.duty-weekdays,.duty-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.duty-weekdays{margin-bottom:9px}.duty-weekdays span{text-align:center;font-size:11px;color:#758b9e;font-weight:650}.duty-weekdays span:nth-last-child(-n+2){color:#9c7480}.duty-calendar-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-height:83px;padding:10px 4px;border:1px solid #e0e8ef;border-radius:10px;background:#f8fafc;color:var(--ink);transition:background .15s,border-color .15s}.duty-calendar-day:hover{background:#edf4fa;border-color:#8caccc}.duty-day-number{font-size:15px;font-weight:650;line-height:1.45}.duty-calendar-day.is-today{border-color:#6694bc;background:#edf5fc}.duty-calendar-day.is-today .duty-day-number{background:var(--navy);color:#fff;min-width:24px;border-radius:50%;font-weight:750}.duty-calendar-day.has-duties{background:#f0f5fa}.duty-day-count{font-size:10px;color:#507799;white-space:nowrap}.duty-day-mark{height:4px;width:18px;border-radius:4px;background:#6b96ba;margin-top:auto}.duty-day-free{font-size:10px;color:#b4c2ce}.duty-calendar-note{color:var(--muted);font-size:11px;line-height:1.5;margin:17px 0 0}.duty-board-heading{padding:3px 0 18px;border-bottom:1px solid var(--line)}.duty-board-heading .eyebrow{font-size:10px;margin-bottom:8px;letter-spacing:1.5px}.duty-board-heading h2{font-size:26px;margin:0}.duty-post-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:18px 0}.duty-post-tab{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 11px;border:1px solid #dce5ed;border-radius:8px;background:#f7f9fb;color:#637c92;font-size:12px;font-weight:600;min-height:37px}.duty-post-tab span{display:inline-grid;place-items:center;min-width:18px;height:18px;background:#e5edf4;border-radius:5px;font-size:10px}.duty-post-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}.duty-post-tab.active span{background:#ffffff20;color:#fff}.duty-board-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 13px}.duty-board-caption strong{font-size:13px;font-weight:650}.duty-board-caption>span{font-size:11px;color:var(--muted);white-space:nowrap}.duty-people-wrap{max-height:430px;overflow:auto;border:1px solid #e2eaf1;border-radius:9px}.duty-people{width:100%;border-spacing:0;table-layout:fixed;font-size:12px}.duty-people th{padding:10px 8px;background:#edf3f8;color:#607b91;font-size:10px;text-align:left;font-weight:650}.duty-people th:first-child{width:69px}.duty-people th:nth-child(3){width:62px}.duty-people th:last-child{width:45px}.duty-people td{padding:12px 8px;border-top:1px solid #e7edf3;vertical-align:top;overflow-wrap:anywhere;line-height:1.45}.duty-person-id{font-size:11px;color:#70879a;font-variant-numeric:tabular-nums}.duty-person-name{font-weight:600}.duty-person-group,.duty-person-floor{color:#617a90}.duty-empty{padding:28px 15px;background:#f7fafc;border:1px dashed #d9e4ed;border-radius:10px;font-size:12px;color:#788ea1;text-align:center;line-height:1.6}.duty-modal{max-width:690px}.duty-editor-post{margin-bottom:17px}.duty-selection-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:19px 0 12px;font-size:12px}.duty-selection-heading strong{font-size:13px;color:var(--navy)}.duty-selection-heading span{color:var(--muted);font-size:11px}.duty-candidate-search{max-width:none;margin-bottom:14px}.duty-candidate-list{display:grid;gap:7px;max-height:350px;overflow:auto;padding:1px 3px 1px 0}.duty-candidate{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #dce6ef;border-radius:10px;background:#fafcfd;cursor:pointer}.duty-candidate:hover{background:#f0f6fb}.duty-candidate.selected{background:#eaf3fb;border-color:#99b9d3}.duty-candidate.already-assigned:not(.selected){background:#f7f8fa;opacity:.6;cursor:default}.duty-candidate>input{width:20px;height:20px;accent-color:var(--navy);flex:none;margin:0}.duty-candidate-body{min-width:0;display:grid;gap:4px}.duty-candidate-body strong{font-size:13px;font-weight:650;overflow-wrap:anywhere}.duty-candidate-body small{font-size:11px;color:#72889a}.duty-candidate-other{font-size:10px;color:#a47236}.duty-remote-warning{font-size:12px;line-height:1.5;color:#8b642c;background:#fff6e6;border:1px solid #ebd8b3;border-radius:9px;padding:12px;margin-bottom:13px}.duty-remote-warning .secondary{display:flex;margin-top:10px}.duty-editor-post+.duty-day-view{margin-top:22px}.duty-candidate-list+.error-message{margin-top:13px}#duty-editor-error:not(.hidden){margin-top:13px}#retry-duties{margin-top:16px}
@media(max-width:1200px){.duties-layout{grid-template-columns:1fr}.duty-calendar-card,.duty-today-card{max-width:850px;width:100%;margin:0 auto}.duty-people th:first-child{width:85px}.duty-people th:nth-child(3){width:95px}.duty-people th:last-child{width:75px}.duty-calendar-day{min-height:88px}}
@media(max-width:600px){.duties-layout{gap:17px}.duty-calendar-card,.duty-today-card{padding:17px 14px;border-radius:14px}.duty-calendar-header{gap:7px;margin-bottom:17px}.duty-month-controls{gap:1px;flex:1}.duty-month-controls h2{min-width:0;flex:1;font-size:16px}.duty-month-button{padding:5px;min-width:28px;min-height:30px}.duty-calendar-header>.secondary{padding:6px 8px;font-size:11px;min-height:32px}.duty-weekdays,.duty-calendar-grid{gap:4px}.duty-weekdays span{font-size:10px}.duty-calendar-day{min-height:67px;padding:7px 2px;border-radius:8px;gap:5px}.duty-day-number{font-size:13px}.duty-calendar-day.is-today .duty-day-number{min-width:20px}.duty-day-count{font-size:9px}.duty-day-mark{width:13px;height:3px}.duty-calendar-note{font-size:10px;margin-top:13px}.duty-board-heading{padding:1px 0 13px}.duty-board-heading h2{font-size:23px}.duty-post-tabs{gap:6px;padding:14px 0}.duty-post-tab{font-size:11px;padding:7px 8px;gap:5px;min-height:35px}.duty-post-tab span{min-width:16px;height:16px}.duty-board-caption strong{font-size:12px}.duty-people-wrap{max-height:430px;border:0;overflow:auto}.duty-people{display:block}.duty-people thead{display:none}.duty-people tbody{display:grid;gap:8px}.duty-people tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 13px;padding:12px;border:1px solid #e0e8ef;background:#f8fafc;border-radius:9px}.duty-people td{padding:0;border:0;min-width:0}.duty-people .duty-person-id{grid-column:1/-1;order:0;font-size:10px}.duty-person-id:before{content:'№ '}.duty-people .duty-person-name{grid-column:1/-1;order:1;font-size:14px}.duty-people .duty-person-group{grid-column:1;order:2;font-size:12px}.duty-people .duty-person-floor{grid-column:2;order:3;font-size:12px}.duty-people .mobile-label{font-size:9px;margin-bottom:2px;color:#8a9eaf}.duty-empty{padding:24px 12px;font-size:11px}.duty-modal{padding:23px 17px}.duty-modal .modal-heading h2{font-size:21px}.duty-selection-heading{align-items:flex-start;margin:17px 0 11px}.duty-selection-heading span{text-align:right;font-size:10px;max-width:120px}.duty-candidate-list{max-height:310px}.duty-candidate{padding:11px 10px;gap:11px}.duty-candidate-body strong{font-size:13px}.duty-candidate-body small{font-size:10px}.duty-remote-warning{font-size:11px}.duty-modal .form-actions{gap:8px}.duty-modal .form-actions .primary,.duty-modal .form-actions .secondary{font-size:13px;padding:10px 12px}.heading-actions:has(#download-personnel-pdf){justify-content:flex-end}#download-personnel-pdf{font-size:11px}}
.duty-capacity-note{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 13px}
.role-switch-button{white-space:nowrap}.role-return-header{white-space:nowrap}.role-preview-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 30px;background:#e8f1fa;border-bottom:1px solid #b8cde0;color:var(--navy)}.role-preview-banner>div{display:flex;align-items:center;gap:12px;min-width:0}.role-preview-banner .icon{width:23px;height:23px;flex:none;color:#4d779d}.role-preview-banner span{display:grid;gap:3px;min-width:0}.role-preview-banner strong{font-size:14px;font-weight:700;overflow-wrap:anywhere}.role-preview-banner small{font-size:12px;color:#567894;overflow-wrap:anywhere}.role-preview-banner>button{flex:none;white-space:nowrap}.role-view-options{display:grid;gap:22px}.role-view-group{display:grid;gap:8px}.role-view-group h3{font-size:12px;letter-spacing:.4px;color:#71889c;margin:0 0 2px}.role-view-option{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:13px 15px;border:1px solid #d8e3ed;border-radius:10px;background:#f8fafc;color:var(--ink);text-align:left;min-height:66px}.role-view-option:hover{background:#edf4fb;border-color:#9bb7cf}.role-view-option.selected{background:#e7f1fb;border-color:#759cc0}.role-view-option>span{display:grid;gap:3px;min-width:0}.role-view-option strong{font-size:14px;overflow-wrap:anywhere}.role-view-option small{font-size:11px;color:#748ba0;overflow-wrap:anywhere}.role-view-option>.icon{width:19px;height:19px;color:#688cab;flex:none}.role-view-option:disabled{opacity:.55}.user-row-actions button:disabled{opacity:.45;cursor:default}.roster .cell-select:disabled{opacity:.65;background:#ffffff50;cursor:default}
@media(max-width:1000px){.role-switch-button{padding:8px 10px;font-size:12px}.header-tools{gap:10px}.header-tools .connection{display:none}}
@media(max-width:800px){.role-preview-banner{padding:13px 20px;gap:12px}.role-preview-banner+.app-shell .sidebar{top:66px}.role-preview-banner strong{font-size:13px}.role-preview-banner small{font-size:11px}}
@media(max-width:600px){.role-switch-button{min-width:35px;min-height:35px;padding:8px}.role-switch-label,.role-return-header{display:none}.header-tools{gap:5px}.header-tools .user-info{max-width:75px}.role-preview-banner{padding:12px 14px;align-items:flex-start;flex-wrap:wrap;gap:10px}.role-preview-banner>div{flex:1;min-width:180px}.role-preview-banner>button{margin-left:35px;font-size:11px;min-height:33px;padding:7px 10px}.role-preview-banner .icon{width:22px;height:22px}.role-view-options{gap:20px}.role-view-option{padding:12px;min-height:64px}.role-view-option strong{font-size:13px}.role-view-option small{font-size:10px}}
@media(max-width:360px){.header-tools .user-info{max-width:58px}.role-return-header{display:none}.role-preview-banner>div{flex:1 0 100%;min-width:0;width:100%}}
.emblem-logo{display:block;aspect-ratio:1;height:auto;flex:none;overflow:hidden;border-radius:50%}.brand .brand-emblem{width:45px;height:45px}.mobile-login-emblem{display:none}.login-card::before{content:none}
@media(max-width:800px){.brand .brand-emblem{width:39px;height:39px}.mobile-login-emblem{display:block;width:96px;height:96px;margin-bottom:23px}}
@media(max-width:360px){.brand .brand-emblem{width:34px;height:34px}}

/* Personal cabinet and educator requests use the same calm palette as the roster. */
.cadet-profile-card{max-width:1000px}.cadet-profile-heading{display:flex;gap:20px;align-items:center;padding-bottom:25px;border-bottom:1px solid var(--line);margin-bottom:26px}.cadet-profile-heading h2{font-size:25px;margin:0 0 7px;overflow-wrap:anywhere}.cadet-profile-heading p{margin:0;color:var(--muted);font-size:13px}.cadet-avatar{display:grid;place-items:center;width:70px;height:70px;flex:none;background:linear-gradient(145deg,#e4eef7,#d5e5f2);border:1px solid #c8dbea;border-radius:20px;font-size:24px;font-weight:700;color:var(--navy)}.cadet-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px 35px;margin:0}.cadet-profile-grid dd{font-size:17px;overflow-wrap:anywhere;line-height:1.5}.cadet-profile-grid dt{font-size:12px;color:var(--muted);margin-bottom:5px}.cadet-card-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:28px;padding-top:23px;border-top:1px solid var(--line)}.cadet-pending-note{font-size:13px;color:var(--muted);line-height:1.6;margin:13px 0 0}.cadet-history{margin-top:25px;max-width:1000px}.cadet-history h2{font-size:19px;margin-bottom:17px}.cadet-request-list{display:grid;gap:10px}.cadet-request-row{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dce6ee;border-radius:11px;padding:15px 17px;background:#f8fafc}.cadet-request-row>div{display:grid;gap:3px;flex:1;min-width:0}.cadet-request-row strong{font-size:14px}.cadet-request-row small{font-size:11px;color:var(--muted)}.request-status{font-size:11px;line-height:1.4;font-weight:650;padding:7px 10px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;background:#edf1f5;color:#61768a;flex:none;white-space:nowrap}.request-status.pending{background:#edf3fb;color:#426d97}.request-status.approved{background:#e4f2ea;color:#28704c}.request-status.rejected{background:#f9e9ec;color:#a24958}.cadet-leave-layout{display:grid;grid-template-columns:1fr 1fr;gap:23px;max-width:1200px;align-items:start}.cadet-leave-layout h2{font-size:21px}.cadet-leave-layout>.section-card>p{font-size:13px;line-height:1.6}.cadet-leave-layout form{display:grid;gap:18px}.cadet-leave-layout textarea,.report-controls textarea,#personal-request-form textarea{resize:vertical;line-height:1.6;min-height:90px;font:inherit}.cadet-leave-layout form>.primary{justify-self:start}.cadet-empty-message{padding:26px 13px;text-align:center;color:var(--muted);line-height:1.6}.cadet-empty-message>.icon{width:34px;height:34px;color:#7798b6;margin-bottom:12px}.cadet-empty-message p{font-size:13px;margin:0}.cadet-empty-message h2{font-size:21px;line-height:1.6;color:var(--ink);margin:0}.cadet-duty-layout{display:grid;grid-template-columns:minmax(400px,1.2fr) minmax(310px,1fr);gap:23px;align-items:start;max-width:1250px}.cadet-duty-layout .duty-calendar-header h2{font-size:20px;margin:0}.cadet-month-chip{font-size:11px;color:#6c89a0;background:#edf3f8;border:1px solid #dce7ef;border-radius:7px;padding:6px 9px;white-space:nowrap}.cadet-duty-layout .duty-calendar-day:disabled{background:#fafbfd;border-color:#e8edf2;cursor:default;color:#98aabb}.cadet-duty-layout .duty-calendar-day.is-today:disabled{border-color:#abc2d7;background:#edf5fc}.cadet-nearest-duty h2{font-size:23px;line-height:1.55;margin:12px 0}.cadet-nearest-duty h2 span{color:var(--blue);font-size:32px;letter-spacing:-.6px}.cadet-duty-post{padding:15px 17px;background:#eef4f9;border:1px solid #dce6ee;border-radius:10px;font-size:15px;font-weight:650;margin:17px 0 20px}.cadet-companions{display:grid;gap:10px;margin:19px 0 24px}.cadet-companions>strong{font-size:12px;color:var(--muted);margin-bottom:2px}.cadet-companions>div{padding:14px;background:#f7fafc;border:1px solid #dce6ee;border-radius:10px;display:grid;gap:5px}.cadet-companions span{font-size:15px;font-weight:600;overflow-wrap:anywhere}.cadet-companions small{font-size:11px;color:var(--muted)}.cadet-alone{padding:15px 0;color:var(--muted);font-size:14px}.cadet-nearest-duty>.secondary{margin-top:6px}.report-controls{max-width:1200px;margin-bottom:25px}.report-controls .form-grid{gap:20px}.report-fixed-date{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid #dbe5ed;background:#f2f6fa;border-radius:8px;padding:10px 13px;min-height:44px;color:var(--navy);font-weight:650}.report-fixed-date span{font-size:11px;font-weight:400;color:var(--muted)}.report-signature-controls{display:flex;gap:20px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.report-signature-controls>div:first-child{min-width:0;flex:1}.report-signature-controls strong{font-size:14px}.report-signature-controls p{font-size:12px;color:var(--muted);line-height:1.55;margin:5px 0 0}.report-signature-controls>div:last-child{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.report-signature-controls button{font-size:13px}.report-paper{background:#fff;border:1px solid #dde5ec;box-shadow:0 8px 24px #15385009;border-radius:4px;padding:48px 50px 38px;max-width:1200px;font-family:'Times New Roman',Times,serif;color:#1f2935}.report-addressee{text-align:right;margin-left:auto;width:max-content;line-height:1.6;font-size:19px;padding-right:15px}.report-paper h2{font-family:'Times New Roman',Times,serif;text-align:center;font-weight:400;font-size:25px;letter-spacing:0;margin:42px 0 34px}.report-paragraph{font-size:19px;line-height:1.8;text-align:justify;text-indent:2em;overflow-wrap:anywhere;margin:0 0 20px}.report-paragraph strong{font-weight:700}.report-footer{display:grid;grid-template-columns:.85fr 1.1fr 1fr 1fr 1fr;gap:18px;align-items:end;margin-top:70px}.report-footer>div{display:grid;gap:7px;text-align:center;min-width:0}.report-footer strong{font-size:14px;font-weight:400;overflow-wrap:anywhere;line-height:1.5;min-height:24px;align-content:end}.report-footer small{font-size:11px;color:#677580;line-height:1.5;min-height:32px}.report-footer-date strong{white-space:nowrap}.report-signature .signature-line{width:100%;height:65px;border-bottom:1px solid #455868;display:flex;justify-content:center;align-items:flex-end;padding:0 3px 3px;overflow:hidden}.saved-signature{height:100%;max-height:58px;width:100%;max-width:100%;display:block}.signature-placeholder{font-size:12px;color:#a4b2bf;font-family:inherit;padding-bottom:10px}.report-actions{display:flex;justify-content:space-between;align-items:center;gap:24px;max-width:1200px;margin-top:24px}.report-actions>p{font-size:12px;line-height:1.6;color:var(--muted);max-width:430px;margin:0}.report-actions>div{display:flex;align-items:center;gap:10px;flex:none}.report-actions .primary,.report-actions .secondary{font-size:13px}.signature-modal{width:min(950px,calc(100vw - 30px));max-width:950px}.signature-drawing-area{position:relative;background:#fff;border:1px solid #aebfd0;border-radius:12px;overflow:hidden;box-shadow:inset 0 1px 4px #14345109}.signature-drawing-area canvas{display:block;width:100%;height:auto;aspect-ratio:2.5;touch-action:none;cursor:crosshair;position:relative;z-index:1}.signature-drawing-line{position:absolute;bottom:23%;left:6%;right:6%;border-bottom:1px dashed #cbd6df;pointer-events:none}.signature-drawing-note{font-size:12px;color:var(--muted);line-height:1.5;margin:14px 2px 0}.signature-modal .form-actions{justify-content:space-between}.signature-modal .form-actions button{min-height:46px;min-width:145px}.signature-modal .error-message{margin-top:13px}.interaction-badge{display:inline-grid;place-items:center;margin-left:auto;background:#d8e8f7;color:#254f74;min-width:23px;height:23px;border-radius:6px;font-size:11px;flex:none;padding:0 5px}.nav-button.active .interaction-badge{background:#ffffff25;color:#fff}.interaction-filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:24px}.interaction-filters button{font-size:12px;min-height:39px}.interaction-filters button.active{background:var(--navy);border-color:var(--navy);color:#fff}.interaction-filters button>span{min-width:20px;padding:2px 5px;border-radius:5px;background:#ffffff25}.interaction-list{display:grid;gap:18px;max-width:1200px}.interaction-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:21px;border-bottom:1px solid var(--line);margin-bottom:20px}.interaction-card-heading>div{min-width:0}.interaction-card-heading .eyebrow{font-size:10px;margin-bottom:8px}.interaction-card-heading h2{font-size:21px;overflow-wrap:anywhere;margin:0 0 8px}.interaction-card-heading p{font-size:11px;color:var(--muted);line-height:1.5;margin:0}.request-diff{display:grid;gap:15px}.request-diff>div{display:grid;grid-template-columns:145px minmax(0,1fr) 20px minmax(0,1fr);align-items:start;gap:18px;line-height:1.6;font-size:14px}.request-diff>div>strong{font-size:12px;color:var(--muted);font-weight:600}.request-diff>div>span{overflow-wrap:anywhere;white-space:pre-wrap}.request-diff-before{color:#8a9aaa;text-decoration:line-through;text-decoration-color:#a5b3c355}.request-diff .icon{width:18px;height:18px;color:#84a0b8;margin-top:2px}.request-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 25px;margin:0 0 20px}.request-detail-grid>div{min-width:0}.request-detail-grid dt{font-size:12px;color:var(--muted);margin-bottom:5px}.request-detail-grid dd{font-size:15px;overflow-wrap:anywhere;line-height:1.7;margin:0;white-space:pre-wrap}.request-report-note{font-size:12px;color:var(--muted);line-height:1.6;max-width:700px}.interaction-decision-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.interaction-decision-actions button{font-size:13px}.interaction-decision-actions .icon{width:21px;height:21px}.request-decision-date{font-size:11px;color:var(--muted);text-align:right;margin:18px 0 0}.user-search-toolbar{display:flex;gap:14px;align-items:center;margin-bottom:19px}.user-search-toolbar .search-field{max-width:440px;flex:1}.user-search-toolbar .control{max-width:230px}.user-search-toolbar .result-count{margin-left:auto}.users-pagination{display:flex;gap:15px;align-items:center;justify-content:center;margin-top:20px;font-size:12px;color:var(--muted)}
@media(max-width:1200px){.cadet-duty-layout{grid-template-columns:1fr}.cadet-duty-layout>.duty-calendar-card,.cadet-duty-layout>.section-card{max-width:850px;width:100%;margin:0 auto}.cadet-leave-layout{grid-template-columns:1fr}.report-footer{gap:12px}.report-paper{padding:35px 32px}.report-actions{flex-wrap:wrap;gap:16px}.report-actions>div{margin-left:auto}.report-signature-controls{flex-wrap:wrap;gap:16px}.report-signature-controls>div:last-child{justify-content:flex-start}.cadet-profile-grid{gap:23px}.request-diff>div{grid-template-columns:110px minmax(0,1fr) 18px minmax(0,1fr);gap:12px}}
@media(max-width:600px){.cadet-profile-heading{gap:13px;align-items:flex-start;padding-bottom:19px;margin-bottom:22px}.cadet-profile-heading h2{font-size:21px;line-height:1.4}.cadet-profile-heading p{font-size:11px;line-height:1.6}.cadet-avatar{width:48px;height:48px;font-size:18px;border-radius:14px}.cadet-profile-grid{grid-template-columns:1fr;gap:20px}.cadet-profile-grid dt{font-size:11px}.cadet-profile-grid dd{font-size:16px}.cadet-card-actions{gap:13px;margin-top:22px;padding-top:20px}.cadet-card-actions .primary{font-size:12px;padding:11px 13px;width:100%}.cadet-pending-note{font-size:12px;margin-top:5px}.cadet-history{margin-top:20px}.cadet-request-row{gap:10px;flex-wrap:wrap;padding:13px}.cadet-request-row>div{flex-basis:150px}.cadet-request-row strong{font-size:12px}.request-status{font-size:10px;padding:6px 8px;white-space:normal;text-align:center;max-width:105px}.cadet-leave-layout{gap:17px}.cadet-leave-layout h2{font-size:19px}.cadet-leave-layout form>.primary{width:100%;font-size:13px}.cadet-duty-layout{gap:17px}.cadet-duty-layout .duty-calendar-header{align-items:flex-start;gap:10px}.cadet-duty-layout .duty-calendar-header h2{font-size:17px}.cadet-month-chip{font-size:9px;padding:5px 7px}.cadet-nearest-duty h2{font-size:21px}.cadet-nearest-duty h2 span{font-size:29px}.cadet-duty-post{font-size:13px}.cadet-companions span{font-size:14px}.cadet-empty-message h2{font-size:19px}.report-controls{margin-bottom:20px}.report-controls .field label{font-size:12px}.report-controls .field-note{font-size:10px}.report-signature-controls>div:last-child{display:grid;grid-template-columns:1fr;width:100%;gap:9px}.report-signature-controls button{font-size:12px;min-height:44px}.report-paper{padding:27px 18px 23px}.report-addressee{font-size:17px;padding-right:0}.report-paper h2{font-size:23px;margin:31px 0 25px}.report-paragraph{font-size:17px;line-height:1.75;text-align:left;text-indent:1.6em}.report-footer{grid-template-columns:1fr 1fr;gap:20px 15px;margin-top:35px;align-items:end}.report-footer>div{gap:4px}.report-footer strong{font-size:13px}.report-footer small{font-size:10px;min-height:0}.report-footer-date{padding-bottom:8px}.report-footer .report-signature{padding-bottom:8px}.report-footer>div:last-child{grid-column:1/-1}.report-signature .signature-line{height:60px}.report-actions{gap:17px;margin-top:20px}.report-actions>p{font-size:11px}.report-actions>div{display:grid;grid-template-columns:1fr;gap:11px;width:100%;margin:0}.report-actions .primary,.report-actions .secondary{font-size:13px;min-height:46px}.signature-modal{width:calc(100vw - 22px);padding:24px 17px;max-height:calc(100dvh - 22px)}.signature-modal h2{font-size:21px}.signature-drawing-area canvas{aspect-ratio:2.5;min-height:200px}.signature-drawing-note{font-size:11px;line-height:1.6}.signature-modal .form-actions{gap:9px}.signature-modal .form-actions button{min-width:0;flex:1;font-size:13px}.interaction-filters{gap:6px;margin-bottom:17px}.interaction-filters button{font-size:10px;padding:8px 10px;min-height:37px}.interaction-card-heading{gap:12px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:17px}.interaction-card-heading h2{font-size:19px}.interaction-card-heading .eyebrow{font-size:9px;letter-spacing:1.2px}.interaction-card-heading p{font-size:10px}.interaction-card-heading .request-status{max-width:none}.request-diff>div{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:8px;font-size:13px}.request-diff>div>strong{grid-column:1/-1;font-size:11px}.request-detail-grid{grid-template-columns:1fr;gap:15px}.request-detail-grid dt{font-size:11px}.request-detail-grid dd{font-size:14px}.request-report-note{font-size:11px}.interaction-decision-actions{gap:8px}.interaction-decision-actions button{font-size:12px;flex:1;padding:10px 11px}.user-search-toolbar{flex-wrap:wrap;gap:10px}.user-search-toolbar .search-field{flex-basis:100%;max-width:none}.user-search-toolbar .control{max-width:none;flex:1}.user-search-toolbar .result-count{font-size:11px}.users-pagination{gap:11px}}

/* Report reading and drafting share one layout; submitted identity stays fixed. */
.report-paper-header{display:flex;justify-content:flex-end;align-items:flex-start;min-width:0}.report-title-block{display:grid;justify-items:center;margin-top:20px}.report-title-block .report-emblem{width:68px;height:68px;flex:none}.report-title-block h2{margin:12px 0 25px}.report-paper-header .report-addressee{width:auto;max-width:65%;min-width:0;margin-left:0;font-size:18px;line-height:1.5;padding-right:0;overflow-wrap:anywhere}.report-addressee strong{font-weight:700}.report-from{display:inline-block;margin-top:5px}.report-paper h2{margin:27px 0 25px}.report-paragraph{line-height:1.55;margin:0 0 11px}.report-letter .report-paragraph:last-child{margin-bottom:0}.report-footer{margin-top:48px}.report-view-modal{max-width:1200px;width:min(1200px,calc(100vw - 40px));max-height:92dvh;padding:28px;background:#f4f7fa}.report-view-modal .modal-heading{margin-bottom:20px}.report-view-modal .modal-heading h2{font-size:23px;overflow-wrap:anywhere}.report-view-modal .report-paper{max-width:none;padding:35px 38px;box-shadow:none}.report-view-modal .report-addressee{font-size:18px}.report-view-modal .report-paragraph{font-size:18px}.report-view-tools,.interaction-report-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.report-view-tools{margin-top:23px;justify-content:flex-end}.report-view-modal .interaction-decision-actions{margin-top:20px}.report-approval-reason{margin-top:22px;padding:19px;background:#fff;border:1px solid var(--line);border-radius:12px}.report-approval-reason .control{max-width:400px}.report-view-modal .error-message{margin-top:15px}.interaction-report-tools button{font-size:12px}.report-view-modal .request-report-note{margin:16px 0 0}.brand>span{display:flex;align-items:center}
@media(max-width:600px){.report-title-block{margin-top:18px}.report-title-block .report-emblem{width:54px;height:54px}.report-title-block h2{margin:10px 0 22px}.report-paper-header .report-addressee{font-size:15px;max-width:75%;line-height:1.5}.report-paper h2{margin:23px 0 22px}.report-paragraph{font-size:17px;line-height:1.55;margin-bottom:11px}.report-footer{margin-top:30px}.report-view-modal{width:calc(100vw - 20px);padding:20px 12px;max-height:calc(100dvh - 20px)}.report-view-modal .modal-heading{margin-bottom:17px;gap:14px}.report-view-modal .modal-heading h2{font-size:20px}.report-view-modal .report-paper{padding:23px 16px}.report-view-modal .report-addressee{font-size:14px}.report-view-modal .report-paragraph{font-size:16px;line-height:1.55}.report-view-tools{justify-content:stretch;gap:8px}.report-view-tools button{flex:1;font-size:12px;min-height:40px}.report-approval-reason{padding:15px;margin-top:17px}.interaction-report-tools{display:grid;grid-template-columns:1fr;width:100%}.interaction-report-tools button{justify-content:center;min-height:40px}.report-view-modal .interaction-decision-actions button{font-size:12px}}

.contact-parent-name{display:block;font-size:14px;line-height:1.45;color:var(--ink);margin-bottom:5px;overflow-wrap:anywhere}
.report-paper .report-period{white-space:pre-line}

.report-footer strong,.cadet-profile-grid dd{white-space:pre-line}.contact-phone{display:block}.contact-phone+.contact-phone{margin-top:4px}#personal-request-form .phone-input{min-height:70px;resize:vertical}

.leave-ban-card{display:flex;align-items:center;gap:10px;background:#edf6f0;border:1px solid #c9dfd0;border-radius:10px;padding:13px 16px;color:#315e42;line-height:1.5;font-size:14px;margin-top:24px}.leave-ban-card.is-active{background:#fff2f0;border-color:#ecc5c0;color:#993f35}.leave-ban-report{max-width:1000px}.leave-ban-report .leave-ban-card{margin-top:0;margin-bottom:24px}.leave-ban-report h2{font-size:22px}.leave-ban-report>p{color:var(--muted);font-size:14px;line-height:1.6}#leave-ban-form,#report-rejection-form{display:grid;gap:20px;margin-top:22px}#leave-ban-form .form-actions,#report-rejection-form .form-actions{margin-top:0;flex-wrap:wrap}
.personal-profile-button{background:transparent;color:var(--ink);border:0;border-left:1px solid var(--line);padding:6px 8px 6px 20px;min-height:44px;max-width:340px;border-radius:0 8px 8px 0}.personal-profile-button:hover{background:#edf4fa}.personal-profile-button:focus-visible{outline:3px solid #65a9e1;outline-offset:3px}.personal-profile-button strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-actions{flex-wrap:wrap}
@media(max-width:800px){.personal-profile-button{padding-left:13px;max-width:220px}}
@media(max-width:600px){.personal-profile-button{border:0;padding:4px;max-width:110px;min-width:44px}.contact-actions>button{flex:1 1 130px}}

.contact-parent-entry+.contact-parent-entry{margin-top:13px}.contact-parent-source{margin-top:9px;margin-bottom:0;color:var(--muted)}

/* A single date row keeps both leave inputs aligned, including narrow screens. */
.report-dates-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.report-date-field{align-content:start;grid-template-rows:auto 46px;min-width:0}.report-date-field .input{height:46px;min-height:46px;box-sizing:border-box;min-width:0}.report-date-field label{min-height:20px;line-height:1.45}.report-title-block h2{margin:12px 0 25px}
.leave-date-time{display:grid;gap:9px}.leave-time-control{display:grid;gap:3px;text-align:left}.leave-time-control>span,.leave-time-readonly>small{font-size:10px;font-weight:500;color:#42617c}.cell-time{height:36px;min-height:36px;width:100%;min-width:0;box-sizing:border-box;border:1px solid #9ab0c440;border-radius:5px;background:#ffffff90;color:inherit;font:inherit;font-size:12px;padding:6px 8px}.cell-time:disabled{background:#eef3f6;opacity:.65}.leave-time-readonly{display:grid;gap:3px}.leave-time-readonly .readonly-value{min-height:20px}.report-time-field{min-width:0;grid-template-rows:auto 46px}.report-time-field .input{height:46px;min-height:46px;box-sizing:border-box;min-width:0}.schedule-settings-card{grid-column:1/-1}.schedule-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.schedule-fields .field{min-width:0}.schedule-fields .input{width:100%;max-width:100%;min-height:46px}.leave-ban-cancel-notice{display:flex;align-items:flex-start;gap:10px;background:#fff2e7;border:1px solid #e8c7a4;border-radius:10px;padding:14px 15px;font-size:13px;color:#8e5224;margin:16px 0}.leave-ban-cancel-notice .icon{flex:none;width:19px;height:19px;margin-top:2px}
@media(max-width:600px){.schedule-fields{grid-template-columns:1fr;gap:0}.settings-grid .schedule-fields .field{margin:12px 0}.report-time-field label{min-height:35px}.report-time-field .input{padding:10px 7px;font-size:14px}.cell-time{height:40px;min-height:40px;font-size:14px}.leave-time-control>span,.leave-time-readonly>small{font-size:11px}.leave-date-time{gap:7px}}
@media(max-width:600px){.report-dates-row{gap:12px}.report-date-field label{min-height:35px}.report-date-field .input{padding:10px 7px;font-size:14px}.report-title-block h2{margin:10px 0 22px}}

.roster .where-col{width:155px}.where-value small{display:block;font-size:11px;line-height:1.5}.where-value strong{font-weight:650}
@media(max-width:600px){.roster td.where-col{width:auto}.where-value small{font-size:10px}}

/* Arrival remains checked until explicitly cancelled; the saved teacher data is retained. */
.reset-button{width:48px;height:48px}.reset-button.confirmed{background:#d7efe1;border-color:#358661;color:#23774e}.reset-button.confirmed .icon{opacity:1}.reset-button.confirmed:disabled{opacity:.7}.reset-button .spinner{opacity:1}.muster-window-note{border:1px solid #d2e1ec;background:#f1f6fa;color:#46647d}.muster-window-note.is-locked{border-color:#e6d2a1;background:#fff7e6;color:#82601f}.muster-window-note.is-locked .icon{color:#967124}.arrival-preserved-note{background:#edf7f0;border:1px solid #c5dfcd;color:#386c4c}.arrival-preserved-note .icon{color:#368059}
@media(max-width:600px){.reset-button{width:44px;height:44px}.muster-window-note{font-size:11px;line-height:1.5}}

.duty-calendar-tools{margin-top:20px}.duty-calendar-tools button{width:100%;justify-content:center}.duty-editor-actions,.duty-reset-actions{flex-wrap:wrap}.duty-editor-actions .danger{margin-right:auto}.duty-reset-modal .duty-calendar-header{margin:22px 0 14px}.duty-reset-grid{gap:8px}.duty-reset-grid .duty-calendar-day{min-height:72px;padding:10px 5px;position:relative}.duty-reset-day.is-selected{background:#e2edf7;border:2px solid #426b92;color:#173956}.duty-reset-check{position:absolute;right:5px;top:5px;color:#426b92}.duty-reset-check .icon{width:15px;height:15px}.duty-reset-summary{margin:20px 0 12px;color:var(--muted);font-size:13px;line-height:1.6}.duty-reset-summary strong{color:var(--ink)}.duty-reset-dates{display:flex;flex-wrap:wrap;gap:7px;max-height:120px;overflow-y:auto}.duty-reset-dates button{display:flex;align-items:center;gap:5px;background:#edf3f8;border-radius:7px;font-size:11px;padding:7px 8px}.duty-reset-dates .icon{width:14px;height:14px}.duty-reset-modal .duty-remote-warning{margin:16px 0}.duty-reset-modal .error-message{margin-top:14px}
@media(max-width:600px){.duty-editor-actions button{width:100%;justify-content:center}.duty-editor-actions .danger{margin-right:0}.duty-reset-modal{padding:20px 14px;max-height:92dvh}.duty-reset-modal h2{font-size:21px}.duty-reset-modal .duty-month-controls h2{font-size:17px}.duty-reset-grid{gap:4px}.duty-reset-grid .duty-calendar-day{min-height:57px;padding:6px 2px}.duty-reset-grid .duty-day-number{font-size:16px}.duty-reset-grid .duty-day-count{font-size:10px}.duty-reset-check{right:2px;top:2px}.duty-reset-check .icon{width:12px;height:12px}.duty-reset-actions button{flex:1;min-width:0;font-size:12px;padding:11px 8px;justify-content:center}.duty-reset-summary{font-size:12px}.duty-calendar-tools button{font-size:12px;min-height:42px}}

/* Duty swaps retain the assignments until both cadets and the educator agree. */
.report-title-block{margin-top:0}
.cadet-duty-side{display:grid;gap:22px;min-width:0}.cadet-duty-side>.section-card{margin:0}.duty-swap-card{min-width:0;margin:0}.duty-swap-heading{display:flex;justify-content:space-between;gap:14px;align-items:center}.duty-swap-heading .eyebrow{font-size:10px;letter-spacing:1.3px;margin-bottom:8px}.duty-swap-heading h2{font-size:22px;margin:0}.duty-swap-heading>.icon{color:#7797b2;width:25px;height:25px;flex:none}.duty-swap-card>.muted{font-size:13px;line-height:1.6;margin:15px 0 20px}.duty-swap-create{width:100%;justify-content:center;font-size:13px}.duty-swap-request-list{display:grid;gap:14px;margin-top:24px}.duty-swap-request{border:1px solid var(--line);border-radius:12px;padding:16px;background:#f8fafc;min-width:0}.duty-swap-request-heading{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}.duty-swap-request-heading>div{display:grid;gap:6px;min-width:0;flex:1}.duty-swap-request-heading strong{font-size:14px;overflow-wrap:anywhere}.duty-swap-request-heading small{font-size:11px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.duty-swap-details{gap:15px;margin-bottom:0}.duty-swap-details dt{line-height:1.5}.duty-swap-details dd{font-size:13px;line-height:1.6}.duty-swap-request-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.duty-swap-request-actions button{font-size:11px;min-height:38px;padding:8px 10px}.duty-swap-request .error-message{font-size:12px;margin-top:14px}.duty-swap-refresh{display:flex;align-items:center;gap:7px;font-size:12px;margin-top:19px;color:var(--muted)}.duty-swap-refresh .icon{width:17px;height:17px}.request-status.pending_peer{background:#fff3d8;color:#8c681c}.request-status.cancelled{background:#e9eef3;color:#697f91}.headman-duty-swaps{margin-top:24px;max-width:850px}.headman-duty-swaps .duty-swap-details{max-width:640px}#duty-swap-form{display:grid;gap:19px}.duty-swap-selection-note{background:#eef4fa;border:1px solid #d5e2ed;border-radius:10px;padding:15px;font-size:13px;line-height:1.7;color:#466881}.duty-swap-report-footer{grid-template-columns:.7fr 1.6fr 1.6fr;gap:27px}.report-footer>.duty-swap-report-signer{display:grid;grid-template-columns:minmax(80px,1fr) auto;gap:15px;align-items:end}.duty-swap-report-signer .report-signature{min-width:0;display:grid;gap:7px}.duty-swap-report-signer .duty-swap-report-initials{align-self:center;padding-top:25px;font-size:16px;white-space:nowrap}.duty-swap-report-footer small{min-height:0}.duty-swap-report-footer .report-footer-date{padding-bottom:0}.duty-swap-report-footer .signature-line{height:65px}
@media(max-width:1200px){.cadet-duty-layout>.cadet-duty-side{max-width:850px;width:100%;margin:0 auto}.duty-swap-report-footer{gap:18px}.duty-swap-report-signer .duty-swap-report-initials{font-size:14px}}
@media(max-width:600px){.cadet-duty-side{gap:17px}.duty-swap-heading h2{font-size:20px}.duty-swap-heading .eyebrow{font-size:9px;letter-spacing:1px}.duty-swap-card>.muted{font-size:12px}.duty-swap-create{min-height:46px;font-size:12px}.duty-swap-request{padding:14px}.duty-swap-request-heading strong{font-size:13px}.duty-swap-request-heading small{font-size:10px}.duty-swap-request-heading .request-status{max-width:none}.duty-swap-details{grid-template-columns:1fr;gap:11px}.duty-swap-request-actions button{flex:1;min-height:42px}.headman-duty-swaps{margin-top:17px}.duty-swap-selection-note{font-size:12px;padding:12px}.duty-swap-report-footer{grid-template-columns:1fr;gap:20px}.duty-swap-report-footer>.report-footer-date{justify-self:start;padding:0}.report-footer.duty-swap-report-footer>.duty-swap-report-signer{grid-column:auto;grid-template-columns:minmax(85px,1fr) auto;gap:16px}.duty-swap-report-signer .duty-swap-report-initials{font-size:15px;padding-top:20px}.duty-swap-report-footer .signature-line{height:60px}.duty-swap-report-footer .report-signature{padding:0}}

/* The departure memo follows the institute's printed form. */
.departure-memo{max-width:860px;padding:40px 45px 34px;font-size:18.67px;line-height:1.4;color:#111}.departure-memo .report-paper-header{justify-content:flex-end}.departure-memo .report-addressee{max-width:85%;font-size:inherit;line-height:1.35;text-align:left;font-weight:400;overflow-wrap:anywhere}.departure-memo .report-from{margin-top:0}.departure-memo .memo-value{border-bottom:1px solid #333;padding:0 4px}.departure-memo .memo-author{display:block;border-bottom:1px solid #333;min-height:1.35em;padding:0 4px}.departure-memo .report-title-block{margin-top:8px}.departure-memo .report-title-block h2{font-size:inherit;font-weight:700;margin:0 0 3px}.departure-memo .report-paragraph{font-size:inherit;line-height:1.4;margin:0;text-align:justify;text-indent:1.8em;overflow-wrap:anywhere}.departure-memo .report-letter>.report-paragraph:first-child{text-align:left;word-spacing:normal}.departure-memo .memo-address{white-space:pre-line;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.memo-contact-row{display:flex;flex-wrap:wrap;gap:6px 24px;margin:7px 0 4px;font-size:inherit;line-height:1.4}.memo-contact-row>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.memo-contact-label{display:block}.memo-contact-value{display:inline-block;border-bottom:1px solid #333;white-space:pre-line}.departure-memo .memo-safety{margin-top:4px}.memo-signature-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);align-items:end;gap:13px;margin-top:2px}.memo-signature-row .report-signature,.memo-surname{display:grid;gap:4px;min-width:0;text-align:center}.memo-signature-row .signature-line{height:55px;border-color:#333;padding-bottom:3px}.memo-surname>span{display:flex;align-items:flex-end;justify-content:center;height:55px;border-bottom:1px solid #333;padding-bottom:3px;overflow-wrap:anywhere}.memo-signature-row small{font-size:16px;font-style:italic;line-height:1.2;color:#111;min-height:19px}.memo-cadet-label{padding-bottom:23px}.memo-signature-row .signature-placeholder{font-size:14px;color:#8998a5}.report-view-modal .departure-memo{max-width:860px;margin-inline:auto;padding:35px 38px}.report-view-modal .departure-memo .report-addressee,.report-view-modal .departure-memo .report-paragraph{font-size:18.67px}
@media(max-width:600px){.departure-memo,.report-view-modal .departure-memo{padding:25px 18px 23px;font-size:16px}.departure-memo .report-addressee,.report-view-modal .departure-memo .report-addressee{font-size:15px;max-width:100%;line-height:1.4}.departure-memo .report-title-block{margin-top:12px}.departure-memo .report-title-block h2{font-size:17px;margin:0 0 6px}.departure-memo .report-paragraph,.report-view-modal .departure-memo .report-paragraph{font-size:16px;line-height:1.4;text-align:justify;text-indent:1.4em}.memo-contact-row{flex-direction:column;gap:8px;font-size:15px;margin-top:8px}.memo-signature-row{gap:9px;font-size:15px;margin-top:0}.memo-signature-row .signature-line,.memo-surname>span{height:50px}.memo-signature-row .report-signature{padding-bottom:0}.memo-signature-row small{font-size:13px;min-height:16px}.memo-cadet-label{padding-bottom:20px}}
.cadet-return-reminder{display:flex;align-items:flex-start;gap:16px;padding:21px 24px;margin-bottom:24px;border:1px solid #e4c88d;border-radius:16px;background:#fff8e8;color:#684c1c}.cadet-return-reminder>.icon{flex:none;width:24px;height:24px;margin-top:2px}.cadet-return-reminder strong{display:block;font-size:19px;line-height:1.4}.cadet-return-reminder p{margin:8px 0 0;font-size:14px;line-height:1.65}.cadet-leave-layout .cadet-pending-note+dl{margin-top:23px}@media(max-width:600px){.cadet-return-reminder{gap:12px;padding:17px 16px;margin-bottom:17px}.cadet-return-reminder strong{font-size:17px}.cadet-return-reminder p{font-size:13px}}
.housing-delete-list ul { max-height: 260px; overflow-y: auto; padding-left: 24px; margin: 12px 0 18px; }
.housing-delete-list li { padding: 8px 4px; }

/* Home counts open the same scoped records used to calculate each number. */
.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
button.stat{width:100%;text-align:left;transition:border-color .15s,background-color .15s}
button.stat:hover{border-color:#8eacc8;background:#f8fbfe}
.stat-open{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px;line-height:1.4;margin-top:6px}
.stat-open .icon{width:13px;height:13px}
.stat.practice-vacation .stat-dot{background:#6989a7}
.stat.report-stat .stat-dot{background:repeating-linear-gradient(135deg,#9570ba 0 2px,#e8dff2 2px 4px)}

/* One personal report page: state, saved details, then request history. */
.report-state-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:20px;max-width:1200px;margin-bottom:24px}
.report-state-card>.icon{width:48px;height:48px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--navy)}
.report-state-body{min-width:0}
.report-state-card h2{font-size:23px;line-height:1.4;text-wrap:balance;margin:0 0 12px}
.report-state-card p{line-height:1.7;text-wrap:pretty;margin:0 0 12px}
.report-state-card p:last-child{margin-bottom:0}
.report-state-summary{gap:20px 24px;padding-block:20px;border-block:1px solid var(--line);margin-block:20px}
.report-state-summary dd{margin:0;font-variant-numeric:tabular-nums}
.report-state-summary .wide{grid-column:1/-1}
.report-state-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.report-state-actions button{white-space:normal;min-height:44px;text-align:center}
.report-sent-preview{margin-top:16px;min-width:0}
.report-sent-preview summary{display:list-item;cursor:pointer;min-height:44px;padding:12px 4px;color:var(--navy);font-weight:650}
.report-sent-preview summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.report-sent-preview .report-paper{margin-top:12px}
.report-decision-note{max-width:1200px;margin:0 0 20px;line-height:1.7;text-wrap:pretty}
.report-history .cadet-request-row{flex-wrap:wrap}
.report-history .cadet-request-row small{line-height:1.7;font-variant-numeric:tabular-nums}
.report-history [data-own-report]{min-width:44px;min-height:44px}
html[data-crew-mode=accessible] .report-state-card>.icon{background:#fff;color:#000;border:2px solid #000}
html[data-crew-mode=accessible] .report-state-card{border-width:2px}
html[data-crew-mode=accessible] .report-state-card h2{font-size:24px}
html[data-crew-mode=accessible] .report-sent-preview summary{color:#000;font-size:20px}
html[data-crew-mode=accessible] .report-decision-note{font-size:20px}
@media(max-width:600px){
 .report-state-card{grid-template-columns:minmax(0,1fr);gap:16px;margin-bottom:20px}
 .report-state-card h2{font-size:21px}
 .report-state-summary{grid-template-columns:minmax(0,1fr);gap:16px}
 .report-state-actions,.report-actions,.report-actions>div,.report-signature-controls,.report-signature-controls>div:last-child{width:100%;flex-direction:column;align-items:stretch}
 .report-state-actions button,.report-actions button,.report-signature-controls button,.cadet-leave-layout form>.primary,.report-history [data-own-report]{width:100%;min-height:44px;white-space:normal}
 .report-history .cadet-request-row>div{flex-basis:100%}
 .report-history .request-status{white-space:normal;max-width:100%}
 .report-sent-preview .report-paper{padding-inline:12px}
}
.summary-modal{max-width:1050px;width:calc(100% - 32px)}
.summary-modal .modal-heading h2{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.summary-dialog-total{font-size:18px;font-weight:600;padding:5px 10px;background:#edf3f8;border-radius:8px;white-space:nowrap}
.summary-search{width:100%;max-width:none;margin-bottom:14px}
.summary-search .input{padding-right:42px}
.summary-reason-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.summary-reason-filters button{display:flex;gap:8px;align-items:center}
.summary-reason-filters button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.summary-reason-filters button span{padding:2px 6px;border-radius:5px;background:#839db622;min-width:22px;text-align:center}
.summary-reason-filters button.active span{background:#ffffff26}
.summary-found{font-size:12px;color:var(--muted);margin:12px 0}
.summary-results{max-height:52dvh;overflow:auto;overscroll-behavior:contain}
.summary-person-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.summary-person{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.85fr);gap:14px;padding:15px 16px;border:1px solid var(--line);border-left:4px solid #b8c8d7;border-radius:10px;background:#f9fbfd;min-width:0;line-height:1.55}
.summary-person.color-green{border-left-color:#388965}.summary-person.color-yellow{border-left-color:#c49a36}.summary-person.color-red{border-left-color:#c6505e}.summary-person.color-purple,.summary-person.color-purple-hatch{border-left-color:#9570ba}.summary-person.color-azure{border-left-color:#62baf0}
.summary-person>div{min-width:0;display:grid;align-content:start;gap:4px;overflow-wrap:anywhere}
.summary-person-name{border:0;padding:0;background:transparent;text-align:left;font-weight:650;font-size:14px;color:var(--navy);line-height:1.5}
.summary-person-name:hover{text-decoration:underline;text-underline-offset:3px}
.summary-person-identity small{color:var(--muted);font-size:10px}
.summary-person-phone{font-size:12px;white-space:pre-line}
.summary-person-meta strong,.summary-person-status strong{font-size:12px;font-weight:600}
.summary-person-meta span,.summary-person-status span{font-size:11px;color:var(--muted)}
.summary-empty{text-align:center;padding:35px 20px;color:var(--muted)}
.summary-empty>.icon{width:30px;height:30px;margin-bottom:10px}
.summary-empty h3{font-size:18px;color:var(--navy);margin:0 0 8px}.summary-empty p{font-size:12px;line-height:1.6;margin:0}
@media(max-width:600px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat small{white-space:normal}.summary-modal{padding:22px 16px;max-height:calc(100dvh - 20px);width:calc(100% - 20px)}.summary-modal .modal-heading{margin-bottom:18px;gap:10px}.summary-modal .modal-heading h2{font-size:22px;gap:9px}.summary-modal .eyebrow{font-size:9px;letter-spacing:1px;line-height:1.6}.summary-dialog-total{font-size:16px}.summary-search .input{font-size:12px}.summary-reason-filters{gap:6px}.summary-reason-filters button{font-size:11px;gap:5px;padding:8px 10px}.summary-person{grid-template-columns:1fr;padding:13px;gap:10px}.summary-person-name{font-size:14px}.summary-person-meta{border-top:1px solid var(--line);padding-top:9px}.summary-person-status{border-top:1px solid var(--line);padding-top:9px}.summary-results{max-height:50dvh}.summary-modal>.form-actions{margin-top:18px}.summary-modal>.form-actions button{width:100%;justify-content:center}}
.housing-delete-list li span { display: block; color: var(--muted, #68809b); font-size: 14px; margin-top: 3px; }

.online-dot{display:inline-block;flex:none;width:8px;height:8px;background:#339165;border-radius:50%;box-shadow:0 0 0 4px #3391650b}
.online-dot.unavailable{background:#8495a4;box-shadow:none}
.online-count{margin-left:auto;min-width:25px;padding:3px 7px;border-radius:6px;background:#e8f4ed;color:#277a52;font-size:11px;line-height:1.4;font-variant-numeric:tabular-nums;text-align:center}
.nav-button[data-route="admin/online"]{gap:12px;flex:none}
.sidebar:has(.online-count){overflow-y:auto}
.online-panel{padding:22px 24px}
.online-page-heading>div{min-width:0}
.online-page-heading p{line-height:1.6;max-width:700px}
.online-page-heading>button{flex:none;min-height:44px}
.online-toolbar{display:flex;align-items:center;gap:24px;justify-content:space-between}
.online-total{display:flex;align-items:center;gap:10px;flex:none;color:var(--muted);font-size:13px}
.online-total strong{font-size:26px;color:var(--navy);font-variant-numeric:tabular-nums}
.online-toolbar .search-field{flex:1;min-width:0;max-width:440px}
.online-toolbar .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.online-update{font-size:11px;color:var(--muted);margin:16px 0 19px;line-height:1.6}
.online-list{display:grid;gap:0}
.online-user{display:grid;grid-template-columns:minmax(0,1fr) auto 166px;gap:20px;align-items:center;padding:18px 0;border-top:1px solid var(--line);min-width:0}
.online-user-name{display:grid;gap:5px;min-width:0}
.online-user-name strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.online-user-name small{font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.online-user .role-badge{justify-self:start;max-width:180px;line-height:1.5}
.online-user-activity{display:grid;gap:5px;color:var(--muted);font-size:12px;line-height:1.5}
.online-user-activity small{font-size:10px}
.online-user-activity time{font-variant-numeric:tabular-nums}
.login-password-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:-5px}
.login-password-heading>label{font-size:13px;font-weight:650}
.login-password-toggle{border:0;border-radius:7px;background:transparent;color:var(--blue);font-size:12px;font-weight:600;min-width:80px;min-height:44px;padding:8px 10px}
.login-password-toggle:hover{background:#edf4fa}
.login-copy-notice{display:grid;gap:8px;padding:9px 11px;border-radius:8px;background:#eaf1f7;color:#456680;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.login-copy-clean{justify-self:start;border:1px solid #bed0df;border-radius:7px;background:#fff;color:var(--navy);padding:7px 10px;min-height:44px;font-size:12px;max-width:100%}
.login-copy-clean:hover{background:#f6f9fc}
.online-filter-count{font-size:12px;color:var(--muted);margin:0 0 12px}
.online-empty{padding:40px 12px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}
.online-loading{padding:40px 12px}
@media(max-width:1000px){.online-user{grid-template-columns:minmax(0,1fr) auto;gap:10px 16px}.online-user-activity{grid-column:1/-1;display:flex;gap:8px;align-items:baseline}.online-user-activity small{font-size:11px}}
@media(max-width:800px){.sidebar:has(.online-count){overflow-y:hidden}.nav-button[data-route="admin/online"]{gap:8px}.online-count{margin-left:2px;min-width:23px;font-size:10px}}
@media(max-width:600px){.online-page-heading{flex-direction:column;gap:14px;margin-bottom:18px}.online-page-heading h1{font-size:24px}.online-page-heading p{font-size:12px}.online-page-heading>button{font-size:12px}.online-panel{padding:18px 16px}.online-toolbar{flex-direction:column;align-items:stretch;gap:15px}.online-total strong{font-size:24px}.online-toolbar .search-field{max-width:none;width:100%}.online-toolbar .input{font-size:12px}.online-update{margin:14px 0 16px}.online-user{grid-template-columns:minmax(0,1fr);padding:16px 0;gap:10px}.online-user-name strong{font-size:14px}.online-user-name small{font-size:11px}.online-user .role-badge{max-width:100%;font-size:10px}.online-user-activity{grid-column:auto;display:grid;gap:3px}.online-user-activity small{font-size:10px}.online-user-activity time{font-size:11px}}

/* Phone display preserves the stored canonical values. */
.crew-phone-link{display:inline-block;max-width:100%;min-height:30px;padding-block:3px;color:inherit;font-variant-numeric:tabular-nums;line-height:1.5;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px;overflow-wrap:anywhere;cursor:pointer}.crew-phone-link+.crew-phone-link{display:block;margin-top:4px}.crew-phone-link:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:3px}.phone-input{font-variant-numeric:tabular-nums}html[data-crew-mode=accessible] .crew-phone-link{min-height:44px;padding-block:8px;text-decoration-thickness:2px}@media(pointer:coarse){.crew-phone-link{min-height:44px;padding-block:9px}}

/* Family contacts are edited through the existing approval request. */
#personal-request-form [data-personal-family][hidden]{display:none!important}.personal-family-choice{padding:15px;border:1px solid var(--line);border-radius:11px;min-width:0}.personal-guardian-toggle{display:flex!important;align-items:center;gap:12px;min-height:44px;margin:0!important;cursor:pointer}.personal-guardian-toggle input[type=checkbox]{width:22px;height:22px;min-width:22px;min-height:22px;flex:none;margin:0;accent-color:var(--blue)}.personal-guardian-toggle span{line-height:1.5;overflow-wrap:anywhere}.personal-family-choice .field-note{display:block;margin:7px 0 0;line-height:1.6}html[data-crew-mode=accessible] .personal-guardian-toggle{font-size:18px;min-height:48px}
/* Keep the mobile navigation inside its own horizontal scroll area in Safari. */
@media(max-width:800px){html[data-crew-mode] body .app-shell{grid-template-columns:minmax(0,1fr)}html[data-crew-mode] body .app-shell>.sidebar{width:100%;max-width:100%;min-width:0;contain:layout paint;overflow-x:auto;overflow-y:hidden}}
/* Private workspace panels use the same responsive surfaces as the main app. */
.account-view-search{position:relative;min-width:0}.account-view-search>.icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:19px;height:19px;pointer-events:none}.account-view-search>.input{padding-left:40px;min-width:0;width:100%;box-sizing:border-box}
.activity-user-heading strong,.activity-user-summary time{color:var(--ink,#19334a)}html[data-crew-mode=accessible] .activity-panel :is(strong,time){color:#000!important}
.activity-user-details>.activity-day-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr));overflow:visible}.activity-user-details>.activity-day-buttons>button{min-width:0;max-width:100%;overflow-wrap:anywhere}
.account-view-search{margin:0 0 20px;width:100%;max-width:none}.account-view-search input{min-width:0;width:100%}.role-view-options .role-view-option{width:100%;box-sizing:border-box}.role-view-option>span{min-width:0}.role-view-option strong,.role-view-option small{overflow-wrap:anywhere}.workspace-empty{min-height:220px}.activity-panel{padding:24px;min-width:0}.activity-users{display:grid;gap:12px}.activity-user{min-width:0;border:1px solid var(--line,#d4e0ea);border-radius:14px;overflow:hidden}.activity-user-toggle{display:flex;align-items:center;gap:18px;width:100%;padding:18px;border:0;background:transparent;color:inherit;text-align:left;white-space:normal}.activity-user-heading{display:grid;gap:5px;min-width:0;flex:1}.activity-user-heading strong{font-size:15px;overflow-wrap:anywhere}.activity-user-heading small,.activity-user-summary small,.activity-user-meta small{font-size:12px;color:var(--muted,#627f95);line-height:1.6}.activity-user-summary{display:grid;gap:5px;text-align:right;min-width:0;font-size:12px}.activity-expand{flex:0 0 28px;font-size:25px;line-height:1;text-align:center}.activity-user-details{padding:0 18px 20px;border-top:1px solid var(--line,#d4e0ea)}.activity-user-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.activity-user-meta>span{display:grid;gap:5px;min-width:0}.activity-user-meta strong{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.activity-day-buttons{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:3px 2px 12px;scrollbar-width:thin}.activity-day-buttons>button{flex:0 0 auto;display:grid;gap:3px;white-space:normal;min-width:90px}.activity-day-buttons small{font-size:10px}.activity-day-buttons .selected{outline:2px solid var(--blue,#286894);outline-offset:0}.activity-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 18px}.activity-filters label{display:grid;gap:7px;font-size:13px;min-width:0}.activity-filters input,.activity-filters select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}.activity-events{display:grid;gap:10px;margin-bottom:15px}.activity-event{padding:15px;border-radius:10px;background:var(--panel-soft,#edf4f9);min-width:0}.activity-event>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;line-height:1.6}.activity-event time{font-size:12px}.activity-event p,.activity-event>small{margin:7px 0 0;font-size:12px;line-height:1.7;overflow-wrap:anywhere}html[data-crew-mode=dark] .activity-event{background:#243e50}html[data-crew-mode=dark] .activity-user{border-color:#466277}html[data-crew-mode=accessible] :is(.activity-user-heading strong,.activity-user-heading small,.activity-user-summary,.activity-user-summary small,.activity-user-meta strong,.activity-user-meta small,.activity-event time,.activity-event p,.activity-event>small,.activity-filters label,.activity-day-buttons small){font-size:1rem!important;line-height:1.7!important}html[data-crew-mode=accessible] .activity-user{border:2px solid #000}html[data-crew-mode=accessible] .activity-event{background:#fff;border:1px solid #000}@media(max-width:700px){.activity-panel{padding:16px 12px}.activity-user-toggle{padding:15px 12px;gap:10px;align-items:flex-start;flex-wrap:wrap}.activity-user-heading{flex:1 1 calc(100% - 48px)}.activity-user-summary{order:3;flex-basis:100%;text-align:left}.activity-user-details{padding:0 12px 16px}.activity-user-meta,.activity-filters{grid-template-columns:minmax(0,1fr)}.activity-user-heading strong{font-size:14px}.activity-event{padding:12px}}html[data-crew-mode=accessible] .activity-user-meta,html[data-crew-mode=accessible] .activity-filters{grid-template-columns:minmax(0,1fr)}
#role-account-results{gap:9px;max-height:55vh;overflow:auto;padding:3px 5px 3px 2px;scrollbar-width:thin}#role-account-results:focus-within{scroll-padding-block:8px}

/* Duty assignments for cadets who live in the city. */
.duty-resident-choice{margin:15px 0}.duty-resident-choice select{max-width:100%;min-width:0;white-space:normal}.duty-city-list{display:grid;gap:10px;margin:15px 0}.duty-city-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}.duty-city-row>div:first-child{display:grid;gap:5px;min-width:0;flex:1}.duty-city-row strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.duty-city-row small{font-size:11px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.duty-city-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;flex:0 1 auto;min-width:0}.duty-city-row-actions button{font-size:11px;min-height:34px;padding:6px 8px;gap:5px}.duty-city-row-actions .icon{width:16px;height:16px}.duty-city-form{padding:16px;border:1px solid var(--line);border-radius:10px;margin:15px 0;color:var(--ink)}.duty-city-form>.field-note{margin:0 0 15px;line-height:1.6}.duty-city-fields{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:14px}.duty-city-fields .field,.duty-city-fields .input{min-width:0;max-width:100%}.duty-city-form-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start;margin-top:16px}.duty-city-form-actions button{max-width:100%;white-space:normal;text-align:center}.duty-other-city{display:grid;gap:10px;margin:18px 0;font-size:12px}.duty-city-label{display:block;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.duty-people:has(.duty-city-person) th:last-child{width:95px}.duty-city-no-id:before{content:none!important}.duty-modal .duty-capacity-note{margin-top:15px}.duty-modal .duty-city-row-actions button:disabled{opacity:.6}
html[data-crew-mode=dark] .duty-city-row{background:#203240;border-color:#53697c;color:#edf4fa}html[data-crew-mode=dark] .duty-city-row small{color:#bacbd8}html[data-crew-mode=dark] .duty-city-form{border-color:#53697c}html[data-crew-mode=accessible] .duty-city-row,html[data-crew-mode=accessible] .duty-city-form{border:2px solid #222;background:#fff;color:#000}html[data-crew-mode=accessible] .duty-city-row small,html[data-crew-mode=accessible] .duty-city-label{color:#000;font-size:1rem;line-height:1.6}html[data-crew-mode=accessible] .duty-city-fields{grid-template-columns:minmax(0,1fr)}html[data-crew-mode=accessible] .duty-city-row{flex-wrap:wrap}html[data-crew-mode=accessible] .duty-city-row-actions{flex-basis:100%;justify-content:flex-start}
@media(max-width:600px){.duty-city-fields{grid-template-columns:minmax(0,1fr)}.duty-city-form{padding:13px}.duty-city-row{flex-wrap:wrap;padding:12px;gap:10px}.duty-city-row>div:first-child{flex-basis:100%}.duty-city-row-actions{width:100%;justify-content:flex-start;gap:7px}.duty-city-row-actions button{min-height:40px;font-size:12px}.duty-city-form-actions{display:grid;grid-template-columns:minmax(0,1fr)}.duty-city-form-actions button{width:100%}.duty-city-person .duty-city-no-id{display:none}.duty-city-person .duty-person-floor{grid-column:1/-1}.duty-city-label{font-size:12px}.duty-resident-choice select{font-size:13px}}

.departure-memo .memo-contact-value{border-bottom:0}
.departure-memo .memo-contact-value .crew-phone-link{text-decoration:none}

/* Explain floor-post ownership without relying on hidden candidate assignments. */
.duty-educator-lock{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;margin:14px 0;border:1px solid #abc1d3;border-radius:10px;background:#edf4fa;color:#23435d;font-size:12px;line-height:1.55;min-width:0}.duty-educator-lock>.icon{flex:none;width:19px;height:19px;margin-top:1px}.duty-educator-lock>div{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}.duty-educator-lock strong{font-weight:650}.duty-educator-lock span{font-size:11px}.duty-modal input:disabled,.duty-modal select:disabled{cursor:not-allowed}.duty-candidate:has(input:disabled):not(.selected){cursor:default}
html[data-crew-mode=dark] .duty-educator-lock{background:#203746;border-color:#627d93;color:#e6f1f8}html[data-crew-mode=accessible] .duty-educator-lock{background:#fff;color:#000;border:2px solid #000;font-size:1rem}html[data-crew-mode=accessible] .duty-educator-lock span{font-size:1rem}html[data-crew-mode=accessible] .duty-educator-lock>.icon{width:24px;height:24px}@media(max-width:600px){.duty-educator-lock{padding:12px;font-size:12px}.duty-educator-lock span{font-size:11px}}

/* Duty seen mark in the cadet calendar: grey ring = new, green fill = the cadet has seen it. */
.duty-calendar-day .duty-day-number.duty-day-ring{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 4px;border-radius:999px;border:2px solid #9fb0bf;background:transparent;color:var(--ink);font-weight:700;box-sizing:border-box;transition:background-color .7s cubic-bezier(.16,1,.3,1),border-color .7s cubic-bezier(.16,1,.3,1),color .7s ease,box-shadow .7s ease}
.duty-calendar-day.is-today .duty-day-number.duty-day-ring{background:transparent;color:var(--ink);border-color:#6f8aa3}
.duty-calendar-day .duty-day-number.duty-day-ring.is-seen{background:#23774e;border-color:#23774e;color:#fff;box-shadow:0 0 0 4px rgba(35,119,78,.14)}
@media(max-width:680px){.duty-calendar-day .duty-day-number.duty-day-ring{min-width:24px;height:24px;border-width:2px}}
html[data-crew-mode=dark] .duty-calendar-day .duty-day-number.duty-day-ring{border-color:#7f95a8;color:#e6eef5}
html[data-crew-mode=dark] .duty-calendar-day .duty-day-number.duty-day-ring.is-seen{background:#2f8a5c;border-color:#2f8a5c;color:#fff;box-shadow:0 0 0 4px rgba(47,138,92,.22)}
html[data-crew-mode=accessible] .duty-calendar-day .duty-day-number.duty-day-ring{border:3px solid #555;color:#111}
html[data-crew-mode=accessible] .duty-calendar-day .duty-day-number.duty-day-ring.is-seen{background:#0b6b3a;border-color:#0b6b3a;color:#fff}
@media(prefers-reduced-motion:reduce){.duty-calendar-day .duty-day-number.duty-day-ring{transition:none}}
/* Activity: feeds, devices, sources of events */
.activity-feeds{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.activity-feeds .selected{background:var(--navy);color:var(--white);border-color:var(--navy)}
.activity-hint{color:var(--muted);margin:0 0 12px;max-width:72ch}
.activity-devices{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:12px 0}
.activity-device{border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;min-width:0}
.activity-device p{margin:0;font-size:13px}
.activity-device small{color:var(--muted);font-size:12px}
.activity-device-head{display:flex;flex-direction:column;gap:2px}
.activity-device-hardware{color:var(--muted)}
.activity-device > button{align-self:flex-start}
.activity-device-rename{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.activity-device-rename .input{flex:1 1 160px;min-width:0}
.activity-tag{display:inline-block;font-size:11px;font-weight:600;letter-spacing:.03em;padding:2px 7px;border-radius:999px;background:var(--paper);color:var(--muted);border:1px solid var(--line);margin:4px 0}
.activity-event.is-system{border-left:3px solid var(--blue)}
.activity-event.is-change{border-left:3px solid var(--green)}
.activity-event.is-action{border-left:3px solid var(--line)}
.activity-event.is-system .activity-tag{color:var(--blue);border-color:var(--blue)}
.activity-event.is-change .activity-tag{color:var(--green);border-color:var(--green)}
.activity-who{font-weight:600}
/* Update 2: textual late categories retain a visible cue in every appearance mode. */
.stat.rose .stat-dot{background:#ac3d4b}
.ma-tone-lateValid{color:#866614;background:#fbf5e2}.ma-tone-lateInvalid{color:#ac3d4b;background:#fcf0f2}
html[data-crew-mode=dark] .ma-tone-lateValid{color:#ffedb6;background:#52451f}html[data-crew-mode=dark] .ma-tone-lateInvalid{color:#ffd5de;background:#542e38}
html[data-crew-mode=accessible] :is(.ma-tone-lateValid,.ma-tone-lateInvalid){color:inherit;background:transparent;border:1px solid currentColor}

/* Interaction educator blocks: native buttons and a contained scrolling row. */
.interaction-educators{display:flex;gap:12px;overflow-x:auto;max-width:100%;padding:4px 3px 12px;margin:0 0 16px;scrollbar-width:thin}
.interaction-educators .interaction-educator{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;min-height:44px;max-width:280px;white-space:normal;text-align:left}
.interaction-educator>span:first-child{overflow-wrap:anywhere;min-width:0}
.interaction-educator-count{flex:none;font-variant-numeric:tabular-nums}
.interaction-educators .interaction-educator[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.interaction-educators button:focus-visible,.interaction-filters button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.interaction-filters button{min-height:44px}
html[data-crew-mode=dark] .interaction-educators .interaction-educator[aria-pressed=true]{background:#d7e7f3;border-color:#d7e7f3;color:#162b3b}
html[data-crew-mode=accessible] .interaction-educators .interaction-educator{background:#fff;color:#000;border:2px solid #000;font-size:1rem;min-height:48px}
html[data-crew-mode=accessible] .interaction-educators .interaction-educator[aria-pressed=true]{background:#000;color:#fff}
html[data-crew-mode=accessible] .interaction-educators button:focus-visible{outline-color:#000}
:root:not([data-crew-mode=accessible]) .interaction-educators .interaction-educator[aria-pressed=true]{background:var(--d26-navy-800,var(--navy));border-color:var(--d26-navy-800,var(--navy));color:var(--d26-on-navy,#fff)}
:root[data-crew-mode=dark] .interaction-educators .interaction-educator[aria-pressed=true]{background:var(--d26-ink,#d7e7f3);border-color:var(--d26-ink,#d7e7f3);color:var(--d26-surface,#162b3b)}
.interaction-educator>span:first-child>small{display:block;font-size:.85em;font-weight:400;line-height:1.5;margin-top:4px;color:inherit}

/* Update 3: weekend report sheets. */
.weekend-reports,.weekend-history{margin-bottom:24px;max-width:1200px;min-width:0}
.weekend-reports>p{line-height:1.6}
.weekend-educators{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.weekend-educators button{min-height:44px;white-space:normal;text-align:left;max-width:100%}
.weekend-educators small{display:block;font-size:.85em;font-weight:400;margin-top:4px}
.weekend-educators [aria-pressed=true],.weekend-decisions [aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:var(--white)}
.weekend-sheet-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0 16px}
.weekend-sheet-heading h3{margin:0}.weekend-sheet-heading>span{font-variant-numeric:tabular-nums}
.weekend-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.weekend-table th,.weekend-table td{padding:12px 8px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere;white-space:normal}
.weekend-table thead th{font-size:12px;color:var(--muted)}
.weekend-table th:nth-child(1){width:20%}.weekend-table th:nth-child(2){width:9%}.weekend-table th:nth-child(3){width:23%}.weekend-table th:nth-child(4){width:10%}.weekend-table th:nth-child(5){width:38%}
.weekend-table select.control{min-height:44px;padding:8px;width:100%}
.weekend-decisions{display:flex;gap:8px;flex-wrap:wrap}
.weekend-decisions button{min-height:44px;min-width:44px;font-size:13px;padding:10px 12px}
.weekend-decisions button:disabled,.weekend-table select:disabled{opacity:.7;cursor:default}
.weekend-sheet-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px}
.weekend-sheet-footer p{margin:0;flex:1 1 240px;font-size:14px}.weekend-sheet-footer button{min-height:44px}
.weekend-row-note{margin:8px 0 0;line-height:1.5;font-weight:600}
.weekend-row-error{border-left:4px solid var(--red);background:var(--paper)}
.weekend-confirmed{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:600;line-height:1.6}
.weekend-history ul{list-style:none;padding:0;margin:0}.weekend-history li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;border-top:1px solid var(--line);padding:16px 0}
.weekend-history li>div{min-width:0;flex:1 1 240px;overflow-wrap:anywhere}.weekend-history p{margin:8px 0 0;font-size:14px}
.weekend-reports :is(button,select):focus-visible,.weekend-history button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
html[data-crew-mode=dark] .weekend-reports,html[data-crew-mode=dark] .weekend-history{color:var(--d26-ink,#d7e7f3);background:var(--d26-surface,#162b3b)}
html[data-crew-mode=dark] .weekend-reports [aria-pressed=true]{background:var(--d26-ink,#d7e7f3);border-color:var(--d26-ink,#d7e7f3);color:var(--d26-surface,#162b3b)}
@media(max-width:1000px){
 .weekend-table,.weekend-table tbody{display:block;width:100%}.weekend-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
 .weekend-table tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin-bottom:16px;gap:12px}
 .weekend-table th,.weekend-table td,.weekend-table th:nth-child(n){display:block;border:0;padding:0;width:auto;min-width:0}
 .weekend-table [data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);font-weight:400;margin-bottom:4px}
 .weekend-table select.control{width:100%;max-width:none}.weekend-decisions button{flex:1 1 120px}
 .weekend-table tr.weekend-row-error{border-left:4px solid var(--red)}
}
@media(max-width:600px){.weekend-reports,.weekend-history{padding:16px}.weekend-educators{display:grid;grid-template-columns:minmax(0,1fr)}.weekend-decisions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.weekend-decisions button{width:100%;min-width:0;min-height:44px;white-space:nowrap}.weekend-sheet-footer button{width:100%}.weekend-history li>button{width:100%}}
html[data-crew-mode=accessible] :is(.weekend-reports,.weekend-history){background:#fff;color:#000;border:2px solid #000;font-size:1.125rem;box-shadow:none}
html[data-crew-mode=accessible] :is(.weekend-reports,.weekend-history) :is(p,td,th,small,select,button,.muted){font-size:inherit;color:#000}
html[data-crew-mode=accessible] .weekend-reports :is(button,select),html[data-crew-mode=accessible] .weekend-history button{min-height:48px;background:#fff;color:#000;border:2px solid #000}
html[data-crew-mode=accessible] .weekend-reports [aria-pressed=true]{background:#000;color:#fff}
html[data-crew-mode=accessible] .weekend-row-error{background:#fff;border-left:6px double #000}
html[data-crew-mode=accessible] :is(.weekend-reports,.weekend-history) :focus-visible{outline:3px solid #000;outline-offset:3px}

.weekend-table .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Keep saved marks visible above the shared button theme. */
:root:not([data-crew-mode=accessible]) .weekend-reports .secondary[aria-pressed=true],:root:not([data-crew-mode=accessible]) .weekend-reports .secondary[aria-pressed=true]:not(:disabled):hover{background:var(--d26-navy-800,var(--navy));border-color:var(--d26-navy-800,var(--navy));color:var(--d26-on-navy,#fff)}
:root[data-crew-mode=dark] .weekend-reports .secondary[aria-pressed=true],:root[data-crew-mode=dark] .weekend-reports .secondary[aria-pressed=true]:not(:disabled):hover{background:var(--d26-ink,#d7e7f3);border-color:var(--d26-ink,#d7e7f3);color:var(--d26-surface,#162b3b)}
@media(max-width:600px){html[data-crew-mode=accessible] .weekend-decisions{display:grid;grid-template-columns:minmax(0,1fr)}html[data-crew-mode=accessible] .weekend-decisions button{overflow-wrap:normal;word-break:normal}}
/* Personal data consent: scoped so existing screens keep their appearance. */
/* Activity cleanup uses native dialog focus containment and theme tokens. */
.activity-heading-actions,.activity-purge-tools{display:flex;flex-wrap:wrap;gap:8px}
.activity-heading-actions button,.activity-person-purge{min-height:44px}
.activity-retention{font-size:14px;line-height:1.6;color:var(--muted);margin:16px 0}
html[data-crew-mode=accessible] .activity-retention{font-size:18px;color:#000}
.activity-purge-dialog{width:min(760px,calc(100% - 16px));max-width:100%;max-height:calc(100dvh - 16px);padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.activity-purge-dialog::backdrop{background:#10294099}
.activity-purge-dialog [hidden]{display:none}
.activity-purge-dialog .modal-heading{align-items:flex-start;gap:12px}.activity-purge-dialog h2{margin:0;overflow-wrap:normal}
.activity-purge-dialog fieldset{min-width:0;border:0;border-top:1px solid var(--line);margin:20px 0 0;padding:16px 0 0}
.activity-purge-dialog legend{font-weight:700;padding:0 8px 0 0;font-size:18px}
.activity-purge-dialog button{min-height:44px;min-width:44px;white-space:normal;word-break:normal;overflow-wrap:normal}
.activity-purge-dialog .activity-purge-tools{margin:12px 0}.activity-purge-dialog .activity-purge-tools button{font-size:14px;padding:10px 12px}
.activity-purge-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-top:16px}
.activity-purge-weekday{text-align:center;font-size:14px;padding:4px 0}
.activity-purge-dialog .activity-purge-day{display:flex;flex-direction:column;gap:0;padding:4px 0;min-width:0;min-height:68px;font-variant-numeric:tabular-nums;border-radius:8px;font-size:16px}
.activity-purge-day small{display:block;font-size:12px;min-height:16px;line-height:16px;color:inherit}
.activity-purge-check{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 4px;line-height:1.5}
.activity-purge-check input{width:24px;height:24px;flex:none;accent-color:var(--navy)}
.activity-purge-check span{min-width:0;overflow-wrap:anywhere}.activity-purge-check small{display:block;color:var(--muted);font-size:14px}
.activity-purge-users{max-height:280px;overflow:auto;border:1px solid var(--line);padding:4px 8px;border-radius:8px}
.activity-purge-dialog .form-actions{flex-wrap:wrap}.activity-purge-dialog :focus-visible{outline:3px solid var(--blue);outline-offset:2px}
:root:not([data-crew-mode=accessible]) .activity-purge-dialog .secondary[aria-pressed=true]{background:var(--d26-navy-800,var(--navy));border-color:var(--d26-navy-800,var(--navy));color:var(--d26-on-navy,#fff)}
html[data-crew-mode=dark] .activity-purge-dialog{background:var(--d26-surface,#142637);color:var(--d26-ink,#edf4fa)}
:root[data-crew-mode=dark] .activity-purge-dialog .secondary[aria-pressed=true]{background:var(--d26-ink,#edf4fa);color:var(--d26-surface,#142637);border-color:currentColor}
html[data-crew-mode=accessible] .activity-purge-dialog{background:#fff;color:#000;border:2px solid #000;font-size:20px}
html[data-crew-mode=accessible] .activity-purge-dialog :is(button,input,.activity-retention,small,.activity-purge-weekday){font-size:18px;color:#000}
html[data-crew-mode=accessible] .activity-purge-dialog button{background:#fff;color:#000;border:2px solid #000}
html[data-crew-mode=accessible] .activity-purge-dialog button:disabled{background:#fff;color:#000;border-color:#000;opacity:.6}
html[data-crew-mode=accessible] .activity-purge-dialog [aria-pressed=true]{background:#000;color:#fff}
html[data-crew-mode=accessible] .activity-purge-dialog [aria-pressed=true] small{color:inherit}
html[data-crew-mode=accessible] .activity-purge-dialog :focus-visible{outline-color:#000}
@media(max-width:600px){.activity-purge-dialog{width:100%;max-height:100dvh;padding:12px 4px;border-radius:0}.activity-purge-dialog .activity-purge-calendar{gap:0}.activity-purge-dialog .form-actions button{flex:1}.activity-purge-dialog .modal-heading{gap:4px}.activity-purge-dialog h2{font-size:22px}.activity-heading-actions{width:100%}.activity-heading-actions button{flex:1}}
.pd-admin-tabs{flex-wrap:wrap}.pd-admin-tabs button{min-height:44px}
#pd-name{font:inherit;color:inherit;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;box-shadow:none}
.pd-paper .saved-signature g{stroke:currentColor}
.pd-document-footer .signature-line::before,.pd-document-footer .signature-line::after{content:'/';padding:0 .25rem}
.pd-consent-bar{display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:.5rem 1rem;background:var(--surface,#fff);color:var(--text,#172e44);border-bottom:1px solid var(--line,#cfdce7)}
.pd-consent-bar.pd-frozen{position:sticky;top:var(--crew-header-height,76px);z-index:35;justify-content:space-between;border-bottom:2px solid currentColor}
.pd-frozen~.app-shell .sidebar{top:calc(var(--crew-header-height,76px) + var(--pd-banner-height,0px));height:calc(100dvh - var(--crew-header-height,76px) - var(--pd-banner-height,0px))}
@media(max-width:800px){.pd-frozen~.app-shell .sidebar{height:auto}}
.pd-consent-bar button,.pd-consent-dialog button,.pd-list button,.pd-filters input,.pd-filters select{min-height:44px}
.pd-consent-dialog{width:min(860px,calc(100% - 1rem));max-width:calc(100% - 1rem);max-height:calc(100dvh - 1rem);padding:1.5rem;overflow:auto;overscroll-behavior:contain}
.pd-consent-dialog .modal-heading{align-items:flex-start;gap:1rem}.pd-consent-dialog .modal-close{min-width:44px;flex-shrink:0}.pd-consent-dialog h2{font-size:1.4rem}
.pd-deadline{padding:.75rem;border:1px solid var(--line,#cfdce7);border-radius:.5rem;line-height:1.5}
.pd-paper{padding:1.5rem;margin:1rem 0;border:1px solid var(--line,#cfdce7);background:var(--surface,#fff);color:var(--text,#172e44);font:18px/1.6 Georgia,'Times New Roman',serif}
.pd-paper header{text-align:center;margin-bottom:1.5rem}.pd-paper header h3{font:700 1.25rem/1.4 Georgia,serif}.pd-paper p{margin:1rem 0;text-align:justify;overflow-wrap:break-word}.pd-paper header p{text-align:center;margin:.25rem 0}
.pd-paper small{display:block;font:14px/1.5 Georgia,serif;text-align:center}.pd-name-row{display:flex;align-items:baseline;gap:.5rem}.pd-name-row input{min-width:0;flex:1;font:inherit;color:inherit;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;padding:.25rem}
.pd-paper>label{display:block;margin-top:1rem}.pd-address{display:block;box-sizing:border-box;width:100%;min-height:6.3em;height:6.3em;resize:vertical;border:0;border-radius:0;padding:0 .25rem;font:inherit;line-height:2.1em;color:inherit;background-color:transparent;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(2.1em - 1px),currentColor calc(2.1em - 1px),currentColor 2.1em);background-attachment:local}
.pd-document-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}.pd-document-footer>div{min-width:0;flex:1}.pd-document-footer time{font-size:16px}.pd-document-footer .signature-line{height:70px;min-width:0;display:flex;align-items:center;justify-content:center}.pd-document-footer svg{max-width:100%;height:65px}.pd-document-footer strong{display:block;text-align:center;overflow-wrap:anywhere}
.pd-signature-actions{display:flex;gap:.5rem;flex-wrap:wrap}.pd-signature-actions button{flex:1;font:14px/1.4 Arial,sans-serif;padding:.5rem}
.pd-check{display:flex;align-items:center;gap:.75rem;min-height:44px;padding:.5rem 0;font-weight:600;line-height:1.5}.pd-check input{width:24px;height:24px;flex:none}.pd-consent-dialog .form-actions{flex-wrap:wrap}.pd-consent-dialog :focus-visible,.pd-filters :focus-visible,.pd-consent-bar :focus-visible{outline:3px solid currentColor;outline-offset:3px}
.pd-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1rem}.pd-filters label{display:grid;gap:.5rem;min-width:0}.pd-filters input,.pd-filters select{width:100%;min-width:0}.pd-list{display:grid;gap:.75rem}.pd-list-row{display:flex;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--line,#cfdce7);border-radius:.5rem}.pd-list-row>div{flex:1;min-width:0}.pd-list-row strong,.pd-list-row small{display:block;overflow-wrap:anywhere}.pd-list-row small{margin-top:.25rem;color:var(--muted,#526578)}
html[data-crew-mode=dark] .pd-paper,html[data-crew-mode=dark] .pd-consent-bar{background:#142637;color:#edf4fa}
html[data-crew-mode=accessible] .pd-paper,html[data-crew-mode=accessible] .pd-consent-bar,html[data-crew-mode=accessible] .pd-list-row{background:#fff;color:#000;border:2px solid #000;font-size:20px}
html[data-crew-mode=accessible] .pd-paper small{font-size:18px}html[data-crew-mode=accessible] .pd-check{font-size:20px}
@media(max-width:600px){.pd-consent-dialog{padding:1rem}.pd-paper{padding:.75rem;font-size:16px}.pd-document-footer{display:grid;grid-template-columns:1fr}.pd-document-footer>div{width:100%}.pd-list-row{flex-wrap:wrap;align-items:flex-start}.pd-list-row>div{flex-basis:100%}.pd-consent-bar{flex-wrap:wrap;justify-content:flex-start}.pd-consent-bar strong{font-size:14px}.pd-consent-dialog .form-actions button{flex:1}}
.contact-rating-button{display:grid;gap:6px;align-content:center;width:100%;min-width:0;min-height:60px;padding:14px 16px;border:1px solid var(--line);border-radius:11px;background:transparent;color:inherit;text-align:left;font:inherit;white-space:normal;overflow-wrap:normal}
.contact-rating-button strong{font-size:20px;line-height:1.5;font-variant-numeric:tabular-nums}
.contact-rating-button:hover:not(:disabled){border-color:currentColor}
.contact-rating-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.contact-rating-button:disabled{opacity:1;cursor:default}
html[data-crew-mode=accessible] .contact-rating-button{border:2px solid #000;background:#fff;color:#000;font-size:18px}

/* Update 11: compact navigation to muster floors, separate from the summary. */
.muster-floor-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.muster-floor-nav .muster-floor-link{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;min-width:0;padding:12px 16px;white-space:normal;overflow-wrap:normal;text-align:left}
.muster-floor-link .icon{flex:none;width:18px;height:18px}
.muster-floor-link:focus-visible{outline:3px solid currentColor;outline-offset:3px}
html[data-crew-mode=accessible] .muster-floor-link{border:2px solid #000;background:#fff;color:#000;font-size:18px}
@media(max-width:600px){.muster-floor-nav .muster-floor-link{flex:1 1 140px;gap:8px;padding:12px}}

/* Update 12: expandable absence breakdown. */
.summary-absence-breakdown{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0;background:var(--paper,#fff)}
.summary-absence-breakdown[hidden]{display:none}
.summary-absence-breakdown h2{font-size:18px;margin:0 0 12px}
.summary-absence-reasons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.summary-absence-breakdown button{min-height:44px;white-space:normal;text-align:left}
.summary-absence-reasons strong{margin-left:6px}
.summary-reason-group{margin-bottom:20px}
html[data-crew-mode=dark] .summary-absence-breakdown{background:var(--panel,#172735)}
html[data-crew-mode=accessible] .summary-absence-breakdown{background:#fff;color:#000;border:2px solid #000;font-size:20px}
html[data-crew-mode=accessible] .summary-absence-breakdown h2{font-size:20px}
/* Mobile back navigation needs a full touch target; the accessible mode keeps its own layout. */
@media(max-width:760px){:root:not([data-crew-mode=accessible]) button.back-link{min-width:44px;min-height:44px;padding:10px 0;}}

/* Keep every control-workspace item reachable in shorter desktop windows. */
@media(min-width:801px){
  :root:not([data-crew-mode=accessible]) .sidebar{overflow-y:auto}
  :root:not([data-crew-mode=accessible]) .sidebar>*{flex-shrink:0}
}

/* Update 19: the floor headman's muster is one document, with independent lists. */
.headman-muster-page{min-width:0}
.headman-muster-page .back-link{min-height:44px;min-width:44px;display:inline-flex;align-items:center}
.headman-personnel-panel{margin-bottom:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);overflow:clip}
.headman-personnel-panel>h2{margin:0;font-size:20px}
.headman-personnel-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:16px 20px;border:0;border-radius:inherit;background:transparent;color:var(--ink);font-weight:650;text-align:left;text-wrap:balance}
.headman-personnel-toggle>span:first-child{display:flex;align-items:center;gap:12px;min-width:0}
.headman-personnel-chevron{flex:none;font-size:24px;line-height:1;transform:rotate(0deg)}
.headman-personnel-toggle[aria-expanded=true] .headman-personnel-chevron{transform:rotate(180deg)}
.headman-personnel-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:-4px}
.headman-personnel-toggle:hover{background:var(--paper)}
#headman-personnel-content[hidden]{display:none}
#headman-personnel-roster{padding:20px;border-top:1px solid var(--line)}
.headman-muster-page [data-roster-host]{min-width:0}
.headman-muster-page [data-roster-host] .page-heading{gap:16px;flex-wrap:wrap}
.headman-muster-page [data-roster-host] .page-heading h2{margin-bottom:8px;text-wrap:balance}
.headman-muster-page [data-roster-host] .heading-actions{flex-wrap:wrap}
.headman-muster-page [data-roster-host] .roster-wrap{max-height:none}
.headman-muster-page [data-roster-host] .result-count{font-variant-numeric:tabular-nums}
.headman-muster-page [data-roster-host] :is(button,.cell-select,.input,.toolbar-filter select){min-height:44px}
.headman-muster-page [data-roster-host] :is(.search-clear,.reset-button,.info-button){min-width:44px}
.headman-muster-page [data-roster-host] .cadet-name-button{text-align:left}
.headman-muster-page #muster-delegation-root{margin-bottom:24px}
@media(min-width:1340px){
 :root:not([data-crew-mode=accessible]) .headman-muster-page #headman-floor-roster .roster-wrap{overflow:visible}
 :root:not([data-crew-mode=accessible]) .headman-muster-page #headman-floor-roster .roster th{top:calc(var(--crew-header-height,76px) + var(--pd-banner-height,0px))}
}
@media(max-width:600px){
 .headman-personnel-toggle{padding:16px 12px;font-size:17px}
 .headman-personnel-toggle>span:first-child{gap:8px}
 #headman-personnel-roster{padding:16px 12px}
 .headman-muster-page [data-roster-host] .heading-actions{width:100%}
 .headman-muster-page [data-roster-host] .heading-actions button{flex:1 1 auto;white-space:normal;text-wrap:balance}
 .headman-muster-page [data-roster-host] .toolbar-filter{max-width:100%}
 .headman-muster-page [data-roster-host] .roster td.info-col{width:44px;height:44px;right:8px}
 .headman-muster-page [data-roster-host] .roster td.name-col{padding-right:40px}
}
html[data-crew-mode=accessible] .medical-placeholder{border:2px solid #000;background:#fff;color:#000;font-size:20px}

/* Update 21: archive sheets reflow to labelled rows on small screens. */
.leave-archive-page{min-width:0}
.leave-archive-controls{display:flex;align-items:end;flex-wrap:wrap;gap:16px}
.leave-archive-controls .field{flex:1 1 260px;min-width:0;margin:0}
.leave-archive-controls select{width:100%;min-width:0}
.leave-archive-controls button,.leave-archive-controls select{min-height:44px}
.leave-archive-section{margin-top:24px}
.leave-archive-group{margin-top:24px}
.leave-archive-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}
.leave-archive-table :is(th,td){border:1px solid var(--line);padding:10px;text-align:left;overflow-wrap:anywhere;vertical-align:top}
.leave-archive-table thead th{background:var(--paper);font-weight:650}
.leave-archive-table :is(th,td):first-child{width:60px}
.leave-archive-total{font-weight:650;margin-top:16px}
.crew-complaint-replies,.crew-complaint-reply-form{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.crew-complaint-replies h3{font-size:17px;margin:0 0 12px}
.crew-complaint-reply{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:8px}
.crew-complaint-reply time{display:block;margin-top:6px}
.crew-complaint-reply-form textarea{min-height:120px}
.crew-complaint-reply-form button,[data-complaint-reply]{min-height:44px}
.crew-complaint-reply-form .crew-notice-form-footer{flex-wrap:wrap;gap:12px}
.leave-archive-page :is(button,select):focus-visible,.crew-complaint-reply-form :is(button,textarea):focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:800px){
  .leave-archive-table,.leave-archive-table tbody{display:block;width:100%}
  .leave-archive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .leave-archive-table tr{display:block;border:1px solid var(--line);margin:16px 0}
  .leave-archive-table :is(th,td),.leave-archive-table :is(th,td):first-child{display:block;width:auto;border:0;padding:8px 12px}
  .leave-archive-table :is(th,td)::before{content:attr(data-label) ": ";font-weight:650}
  .leave-archive-controls button{width:100%;justify-content:center}
}
html[data-crew-mode=accessible] :is(.leave-archive-section,.crew-complaint-reply){background:#fff;color:#000;border:2px solid #000}
html[data-crew-mode=accessible] :is(.leave-archive-table,.crew-complaint-replies,.crew-complaint-reply-form){font-size:20px;color:#000}
html[data-crew-mode=accessible] .leave-archive-table :is(th,td){border-color:#000;background:#fff;color:#000}
html[data-crew-mode=accessible] .crew-complaint-replies h3{font-size:20px}

.leave-archive-table .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
