: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(5,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}.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}.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.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:#b12432!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{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}
@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}
.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}}
.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}}
