:root {
  --ink:#2e2c28; --muted:#706d65; --yellow:#ffbf31; --yellow-hover:#f4b120;
  --green:#506428; --green-dark:#3d4d21; --sage:#e9eddc; --peach:#f2e3db;
  --line:#e9e7e1; --paper:#f5f4f0; --white:#fff; --amber:#79521c; --radius:24px;
}
*{box-sizing:border-box}html{font-size:18px}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Segoe UI Variable','Segoe UI',Arial,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{min-height:48px;border:1px solid transparent;border-radius:18px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;font-weight:650;line-height:1.3}button:hover,.button:hover{text-decoration:none}button:disabled{cursor:not-allowed;opacity:.48}
input:not([type=radio]):not([type=hidden]),select,textarea{background:#f5f4f1;border:1px solid transparent;border-radius:16px;min-height:52px;padding:12px 15px;color:var(--ink);max-width:100%}input::placeholder,textarea::placeholder{color:#807d75}label{font-weight:600}input:focus,select:focus,textarea:focus{background:white;border-color:#a47b1d}:focus-visible{outline:3px solid #88621a;outline-offset:3px}
h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.045em;line-height:1.15;margin-bottom:10px;font-weight:750}h2{font-size:1.2rem;letter-spacing:-.025em;margin-bottom:5px;font-weight:700}h3{font-size:1.05rem}small,.small{font-size:.83rem}.muted{color:var(--muted)}.primary{background:var(--yellow);color:#302b21;border-color:var(--yellow)}.primary:hover{background:var(--yellow-hover)}.secondary{background:#efeee9;color:var(--ink);border-color:transparent}.secondary:hover{background:#e6e4dd}.full{width:100%}.eyebrow{font-size:.65rem;letter-spacing:.12em;font-weight:650;color:var(--muted);margin-bottom:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;left:20px;top:-100px;z-index:99;background:white;padding:12px}.skip-link:focus{top:12px}[hidden]{display:none!important}.ui-icon{flex-shrink:0}

/* A quiet desktop rail becomes a thumb-friendly dock on smaller screens. */
.sidebar{width:252px;position:fixed;inset:0 auto 0 0;background:#efeee9;padding:32px 22px 18px;display:flex;flex-direction:column;z-index:10}
.brand{display:flex;gap:12px;align-items:center;color:var(--ink);font-size:1.5rem;font-weight:750;letter-spacing:-.06em;line-height:1}.brand:hover{text-decoration:none}.brand small{display:block;font-size:.61rem;color:var(--muted);font-weight:450;margin-top:9px;letter-spacing:0;line-height:1.3}.brand-mark{width:46px;height:46px;display:grid;place-items:center;flex-shrink:0;background:var(--yellow);border-radius:17px}.brand-mark svg{width:28px;height:28px}.sidebar-caption{margin:52px 16px 16px;font-size:.58rem;font-weight:650;letter-spacing:.11em;color:var(--muted)}.sidebar nav{display:flex;flex-direction:column;gap:9px}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:14px 17px;min-height:54px;border-radius:18px;color:#69665f;font-size:.88rem;font-weight:550}.sidebar nav a.active{background:var(--yellow);color:var(--ink);font-weight:700}.sidebar nav a:hover{background:#e4e2d9;text-decoration:none}.sidebar nav a.active:hover{background:var(--yellow-hover)}.sidebar-bottom{margin-top:auto}.sidebar-note{margin:42px 0 26px;padding:20px;background:#e5e9d6;border-radius:22px;color:#4e5b31}.sidebar-note svg{width:30px;height:30px}.sidebar-note p{font-size:.8rem;margin:10px 0 0;font-weight:550}.settings-link{display:block;padding:13px;font-size:.83rem}.user-block{padding:20px 0 8px;display:flex;align-items:center;gap:10px}.avatar{width:42px;height:42px;border-radius:50%;background:#e1d8ed;color:#5c4a69;display:grid;place-items:center;flex-shrink:0;font-weight:600}.user-block strong{display:block;font-size:.75rem;font-weight:650}.user-block small{display:block;font-size:.64rem;color:var(--muted)}.logout{padding:9px 0;background:none;color:var(--muted);font-size:.73rem;font-weight:450}.mobile-account{display:none}
.workspace{margin-left:252px;padding:36px 42px 30px;max-width:1700px}.page-top{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.date-title{font-size:.88rem;margin-bottom:0;color:var(--muted)}.heading-dot{display:none}.date-form{flex-shrink:0}.date-form label{display:block;color:var(--muted);font-size:.7rem;margin-bottom:6px;font-weight:500}.date-controls{display:flex;gap:7px;align-items:center}.date-controls input{font-size:.86rem;width:178px;background:white!important;border:0!important}.date-controls button{font-size:.8rem;background:#e8e6de}.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;max-width:540px;margin:0 0 24px;padding:10px 16px;background:white;border-radius:24px}.week-day{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:68px;padding:3px 0;color:var(--muted);border-radius:20px}.week-day>span{font-size:.65rem}.week-day strong{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:.85rem;font-weight:600;background:#f4f3ef;color:var(--ink)}.week-day.selected strong{background:var(--yellow)}.week-day.selected>span{color:var(--ink);font-weight:700}.week-day:hover{text-decoration:none;background:#f7f6f2}.week-day.unavailable{opacity:.42}.week-day.unavailable:hover{background:transparent}

/* Attendance summaries use compact pastel tiles, keeping groups in view. */
.completion{display:flex;gap:24px;align-items:center;justify-content:space-between;background:#ebeedd;border-radius:20px;padding:16px 20px;margin-bottom:14px}.completion>div:first-child{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.completion strong{font-size:.89rem}.completion-icon{height:30px;width:30px;display:grid;place-items:center;border-radius:50%;background:#d7e0b6;color:#3d4d22}.completion .small{font-size:.75rem}.completion-track,.progress-track{background:#dfe2d4;border-radius:10px;overflow:hidden;height:7px}.completion-track{width:135px;flex-shrink:0}.completion-track>span,.progress-track>span{height:100%;display:block;background:#899e48;border-radius:10px;transition:width .2s}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.stats>div{display:flex;align-items:center;gap:14px;padding:21px 18px;border-radius:22px;background:#fff0c6}.stats>div:nth-child(2){background:#f0e0d9}.stats>div:nth-child(3){background:#e5dff2}.stats>div:nth-child(4){background:#e7eadc}.stats strong{font-size:1.85rem;font-weight:750;line-height:1;letter-spacing:-.04em}.stats small{display:block;color:#5d584f;font-size:.72rem;margin-top:7px}.stat-icon{border-radius:50%;height:32px;width:32px;display:grid;place-items:center;font-size:1.1rem;flex-shrink:0;background:#ffffff80}.total-stat{justify-content:center}.notice{display:flex;gap:6px 16px;flex-wrap:wrap;background:#eeeae1;color:#61533c;border-radius:16px;padding:13px 17px;margin:0 0 22px;font-size:.79rem}.notice strong{font-weight:650}.notice.neutral{background:#e9e8e2;color:#5c5a52}.notice span{flex:1 1 280px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-heading p{margin-bottom:0;font-size:.77rem}.count{font-size:.71rem;font-weight:650;background:#eeece6;color:#676359;border-radius:50px;padding:3px 9px;vertical-align:middle;margin-left:6px}.print-button{font-size:.78rem;white-space:nowrap;background:white}.table-toolbar{display:flex;align-items:center;gap:8px;padding:14px 18px;background:white;border-radius:24px 24px 0 0}.table-toolbar>.muted{margin-left:auto}.filter-chip{min-height:48px;padding:12px 16px;border-radius:16px;color:var(--muted);font-size:.77rem}.filter-chip.selected{background:#fff0c9;color:#604b1b;font-weight:650}.filter-chip span{margin-left:7px;font-size:.7rem}.table-wrap{border-radius:0 0 24px 24px;overflow:hidden;background:white}table{width:100%;border-collapse:collapse;text-align:left}.groups-table th{padding:12px 16px;color:var(--muted);font-size:.68rem;font-weight:550;background:#fcfbf8;white-space:nowrap}.groups-table td{padding:12px 16px;border-top:1px solid #f0eee8;font-size:.85rem}.groups-table tbody tr:hover{background:#fffdf6}.groups-table th:first-child{width:26%}.group-link{display:flex;align-items:center;gap:12px;color:var(--ink);min-height:48px}.group-link strong{font-size:.92rem;font-weight:650}.group-link small{display:block;color:var(--muted);font-size:.68rem;margin-top:2px}.group-icon{height:44px;width:44px;border-radius:16px;display:grid;place-items:center;background:#e8ebd8;color:#66763a;font-size:1.4rem;flex-shrink:0}.tone-a{background:#eee0d7;color:#8b5845}.tone-b{background:#e5dff2;color:#76628b}.badge{display:inline-flex;gap:5px;align-items:center;font-size:.7rem;line-height:1.35;padding:7px 11px;border-radius:30px;white-space:nowrap;font-weight:600}.badge.approved{color:#405327;background:#e0e8c9}.badge.submitted{color:#505d32;background:#edf0df}.badge.draft{color:#77551c;background:#fff0ca}.badge.empty{background:#eeede8;color:#69665d}.incomplete{color:#8a621d}.row-arrow{color:#8a8579}.empty-cell{text-align:center;padding:35px!important}.page-footnote{font-size:.71rem;color:var(--muted);margin:18px 0}.empty-state{background:white;border-radius:24px;text-align:center;padding:50px 24px}.empty-state>span{font-size:3rem;color:#a2a877}.empty-state p{color:var(--muted)}

.back-link{display:inline-flex;min-height:40px;align-items:center;font-size:.77rem;margin-bottom:8px;color:var(--muted)}.group-switch{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.group-switch a{min-height:48px;border-radius:16px;padding:12px 16px;background:#eae8e1;color:#676258;font-size:.82rem}.group-switch a.selected{color:var(--ink);background:var(--yellow);font-weight:650}.attendance-form{background:white;border-radius:24px;overflow:visible}.sheet-header{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:24px 24px 7px}.sheet-header p{margin-bottom:4px}.sheet-header .badge{white-space:normal;text-align:center;max-width:270px}.feedback{margin:12px 24px;font-size:.86rem;color:#4c612c;border-radius:14px}.feedback:not(:empty){padding:12px 15px;background:#edf2df}.feedback.error{background:#fae9df;color:#8b402a}.reload-link{display:block;text-decoration:underline;margin-top:10px;font-weight:650}.attendance-form>.notice{margin:16px 24px}.sheet-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 24px 22px;border-bottom:1px solid var(--line)}.sheet-tools button{font-size:.8rem;background:#f1efe8}.fill-progress{min-width:170px}.fill-progress strong{font-size:.85rem;font-weight:600}.progress-track{margin-top:10px;max-width:240px}.progress-track>span{background:var(--yellow)}.child-row{padding:16px 24px;border-bottom:1px solid #f0eee8}.child-row:nth-child(even){background:#fdfcf9}.child-row fieldset{margin:0;padding:0;border:0;min-width:0;display:grid;grid-template-columns:1fr 500px;gap:8px 20px;position:relative}.child-row legend{font-size:.97rem;font-weight:600;width:100%;float:left;padding:13px 0;line-height:1.4}.child-number{font-size:.7rem;color:#8a8579;display:inline-block;width:32px;font-weight:450}.mark-options{display:flex;gap:4px;align-items:stretch;padding:4px;border-radius:18px;background:#f2f1ec}.mark-option{position:relative;flex:1;display:flex;font-size:.79rem;font-weight:500;cursor:pointer;min-width:0}.mark-option input{position:absolute;opacity:0;width:1px;height:1px}.mark-option span{min-height:48px;display:flex;align-items:center;justify-content:center;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:14px;white-space:nowrap}.mark-option input:checked+span{background:white;border-color:#ddd9cd;box-shadow:0 2px 4px #39312409}.mark-option.present input:checked+span{background:#ffcc58;border-color:#e6b03b;color:#40301a}.mark-option.absent input:checked+span{background:#e9d7cd;border-color:#c9ac9b;color:#714534}.mark-option input:focus-visible+span{outline:3px solid #88621a;outline-offset:1px}.child-row fieldset:disabled .mark-option{cursor:default}.reason-wrap{grid-column:2;display:flex;align-items:center;gap:14px;margin-top:8px}.reason-wrap label{font-size:.78rem;font-weight:500}.reason-wrap select{font-size:.81rem;flex:1;min-width:160px}.save-bar{position:sticky;bottom:14px;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;background:#fff;border:1px solid #e8e3d6;border-radius:22px;box-shadow:0 8px 30px #40372314;margin:14px -1px -1px}.save-bar strong{display:block;font-size:.82rem}.save-bar small{display:block;color:var(--muted);margin-top:5px;font-size:.71rem}.save-actions{display:flex;gap:10px}.save-actions button{font-size:.81rem;white-space:nowrap}.approve-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;background:#eef1df;border-radius:0 0 24px 24px}.approve-bar p{margin:0}.correction{margin:24px;padding:14px 0 20px;border-top:1px solid var(--line)}details>summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:600;font-size:.88rem}details>summary:hover{color:#796023}.correction p{font-size:.87rem}.correction label{display:block;font-size:.8rem}.correction textarea{width:100%;display:block;margin:8px 0 12px}.history{margin-top:24px;padding:0 24px;border-radius:22px;background:white}.history>summary{padding:18px 0}.history-event{border-top:1px solid var(--line);padding:18px 0;font-size:.82rem}.history-event>div{display:flex;justify-content:space-between;gap:16px}.history-event time{color:var(--muted);font-size:.77rem}.history-event p{margin:5px 0;color:var(--muted)}.history-event details{font-size:.78rem}.history-event li{padding:4px 0}

.search-form{display:flex;gap:14px;align-items:end;background:white;padding:22px;border-radius:24px;margin-bottom:24px}.search-form>div{flex:1;min-width:0}.search-form label{display:block;font-size:.79rem;margin-bottom:6px}.search-form input,.search-form select{width:100%}.directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.directory-card{background:white;border-radius:24px;padding:22px}.directory-card header{display:flex;gap:12px;align-items:center}.directory-card:nth-child(3n+1) .group-icon{background:#fff0c9}.directory-card:nth-child(3n+2) .group-icon{background:#e6e0f1}.directory-card h2{font-size:1rem}.directory-card header p{margin-bottom:0}.directory-card ul{padding:0;margin:18px 0 0;list-style:none}.directory-card li{font-size:.86rem;border-top:1px solid #f0eee8;padding:9px 0}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-radius:24px;overflow:hidden;background:white}.weekday{text-align:center;padding:16px 4px;color:var(--muted);font-size:.8rem;background:#eae8e0}.calendar-cell{min-height:114px;padding:14px;border-right:1px solid #f0eee8;border-top:1px solid #f0eee8}.calendar-cell:nth-child(7n){border-right:0}.calendar-cell>a,.calendar-cell>span{display:inline-flex;min-height:48px;min-width:48px;align-items:center;justify-content:center;border-radius:50%;font-weight:650}.calendar-cell a:hover{background:#fff0c9}.calendar-cell small{display:block;font-size:.67rem;color:var(--muted);padding-left:8px}.calendar-cell.weekend{background:#f1f0ea}.calendar-cell.outside{opacity:.5}.calendar-cell.is-today>a,.calendar-cell.is-today>span{background:var(--yellow);color:var(--ink)}

/* Welcome screen: warm illustration, generous fields, one clear primary action. */
.auth-workspace{min-height:100vh;display:grid;place-items:center;padding:28px 36px;background:#eeece8}.login-layout{width:100%;max-width:1060px;display:grid;grid-template-columns:1.12fr 1fr;gap:24px 32px;padding:28px 30px 22px;background:#faf9f6;border-radius:34px}.login-brand{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px;gap:20px}.login-brand-note{font-size:.73rem;color:var(--muted)}.welcome-card{position:relative;min-height:535px;border-radius:26px;overflow:hidden;background:#ffd368}.welcome-copy{position:relative;z-index:1;padding:34px 34px 0}.welcome-tag{display:inline-flex;padding:7px 12px;background:#fff3cc;border-radius:40px;font-size:.61rem;font-weight:600;letter-spacing:0}.welcome-copy h1{font-size:2.1rem;margin:22px 0 14px;line-height:1.12;letter-spacing:-.05em}.welcome-copy p{font-size:.88rem;color:#6d582c;line-height:1.55}.welcome-art{position:absolute;width:100%;bottom:0;left:0;display:block}.welcome-sticker{position:absolute;bottom:22px;left:26px;right:26px;display:flex;align-items:center;justify-content:space-between;padding:11px 18px;background:#fffaf0ed;border-radius:40px;font-size:.71rem;font-weight:600}.welcome-sticker span{font-size:1.1rem}.login-card{background:white;padding:30px 34px;border-radius:26px;align-self:stretch}.hello-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:16px;background:#fff0ca;color:#ad7411;font-size:1.65rem;margin-bottom:18px}.login-card .eyebrow{font-size:.58rem;margin-bottom:8px}.login-card h2{font-size:1.9rem;letter-spacing:-.05em;margin-bottom:10px;line-height:1.15}.login-card>.muted{font-size:.86rem;margin-bottom:22px}.login-card form label{display:block;font-size:.78rem;margin:16px 0 7px}.login-card input{width:100%;font-size:.86rem;min-height:54px}.login-card .primary{margin:24px 0 20px;border-radius:40px;min-height:54px;justify-content:space-between;padding-left:24px;padding-right:24px;font-size:.9rem}.login-help{font-size:.72rem;line-height:1.6;margin-bottom:0;color:#59574f}.login-help span{color:var(--muted)}.login-card .feedback{margin:10px 0;font-size:.78rem}.login-foot{grid-column:1/-1;text-align:center;font-size:.64rem;color:var(--muted);padding-top:1px}.htmx-request .primary{cursor:wait}

@media(min-width:1600px){.workspace{padding:44px 54px}.groups-table td{padding-top:15px;padding-bottom:15px}}
@media(max-width:1250px){.sidebar{width:218px;padding-left:16px;padding-right:16px}.workspace{margin-left:218px;padding:30px 24px}.sidebar nav a{font-size:.82rem;padding-left:14px;gap:10px}.brand{font-size:1.35rem}.brand small{font-size:.57rem}.stats>div{padding:19px 15px;gap:9px}.stats .stat-icon{display:none}.stats small{font-size:.68rem}.groups-table th,.groups-table td{padding-left:10px;padding-right:10px}.groups-table .row-arrow{display:none}.child-row fieldset{grid-template-columns:1fr}.child-row legend{float:none;padding-top:0}.reason-wrap{grid-column:1}.mark-options{max-width:600px}.save-bar{flex-wrap:wrap}.save-actions{margin-left:auto}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-top{align-items:start}.auth-workspace{padding:22px}.login-layout{gap:22px;padding:24px}.login-card{padding:28px}.welcome-copy{padding:30px 28px 0}.welcome-copy h1{font-size:1.95rem}}
@media(max-width:900px){.sidebar{width:100%;position:relative;padding:20px 24px;background:transparent;flex-direction:row;align-items:center;justify-content:space-between}.sidebar-caption,.sidebar-bottom{display:none}.sidebar .brand{font-size:1.45rem}.sidebar .brand small{font-size:.59rem}.sidebar nav{position:fixed;inset:auto 18px 12px;bottom:calc(12px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(15px);display:grid;grid-template-columns:repeat(4,1fr);gap:4px;border-radius:26px;padding:8px 10px;box-shadow:0 6px 32px #3c352717;z-index:15}.sidebar nav a{flex-direction:column;justify-content:center;font-size:.66rem;gap:3px;min-height:62px;padding:6px 4px;border-radius:20px;text-align:center}.sidebar nav a.active{background:#fff1c9}.sidebar nav a.active svg{color:#846014}.sidebar nav a svg{width:22px;height:22px}.workspace{margin-left:0;padding:12px 24px 120px}.mobile-account{display:block;position:absolute;right:22px;top:20px;z-index:20}.mobile-account>summary{font-size:.72rem;padding:12px 14px;min-height:48px;border-radius:18px;background:white;list-style:none}.mobile-account>summary::-webkit-details-marker{display:none}.mobile-account>div{position:absolute;right:0;top:56px;background:white;border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 30px #352e2320;width:260px;padding:22px}.mobile-account strong{font-size:.9rem}.mobile-account p{font-size:.8rem;color:var(--muted)}.mobile-account form{margin-top:12px}.save-bar{bottom:104px}.page-top{gap:15px}.sidebar-note{display:none}.login-layout{grid-template-columns:1fr 1fr;gap:18px}.login-card{padding:25px}.welcome-copy{padding:28px 22px 0}.welcome-copy h1{font-size:1.8rem}.welcome-tag{font-size:.55rem}.login-brand-note{font-size:.65rem}.auth-workspace{padding:20px}.login-layout{padding:22px}.login-card h2{font-size:1.7rem}}
@media(max-width:650px){h1{font-size:1.7rem}.workspace{padding:10px 16px 115px}.sidebar{padding:18px 16px 14px}.brand-mark{width:42px;height:42px;border-radius:15px}.sidebar .brand{font-size:1.35rem}.sidebar .brand small{font-size:.56rem}.mobile-account{right:16px;top:17px}.sidebar nav{left:10px;right:10px;padding:7px 6px;gap:2px;border-radius:24px}.sidebar nav a{font-size:.61rem;min-height:60px}.page-top{flex-direction:column;gap:15px;margin-bottom:17px}.eyebrow{font-size:.59rem;margin-bottom:8px}.date-title{font-size:.82rem}.date-form{width:100%}.date-form label{font-size:.65rem;margin-bottom:4px}.date-controls{width:100%}.date-controls input{flex:1;width:0;min-width:0;min-height:48px;font-size:.85rem}.date-controls button{min-width:100px;font-size:.78rem;padding:10px 15px}.week-strip{padding:9px 7px;gap:2px;margin-bottom:18px;border-radius:22px}.week-day{gap:6px;min-height:66px}.week-day>span{font-size:.62rem}.week-day strong{width:36px;height:36px;font-size:.79rem}.completion{padding:14px;flex-wrap:wrap;gap:12px;border-radius:18px}.completion>div:first-child{gap:8px}.completion strong{font-size:.8rem}.completion .small{font-size:.7rem;padding-left:38px}.completion-track{width:100%;height:6px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.stats>div{padding:17px 15px;gap:11px;min-height:99px;border-radius:20px}.stats .stat-icon{display:grid;height:29px;width:29px;font-size:1rem}.stats strong{font-size:1.7rem}.stats small{font-size:.68rem;margin-top:5px}.stats .total-stat{justify-content:start;padding-left:55px}.notice{padding:13px 15px;font-size:.76rem;gap:5px;margin-bottom:20px}.notice span{flex-basis:100%}.section-heading{align-items:start;gap:10px}.section-heading h2{font-size:1.1rem}.section-heading p{font-size:.69rem;margin-top:6px}.print-button{padding:10px 12px;font-size:.69rem;white-space:normal;max-width:112px;border-radius:16px}.table-toolbar{padding:10px;gap:2px;flex-wrap:wrap;border-radius:22px 22px 0 0}.table-toolbar>.muted{display:none}.filter-chip{font-size:.71rem;padding:12px 10px;min-height:48px}.filter-chip span{font-size:.67rem;margin-left:4px}.groups-table thead{display:none}.groups-table,.groups-table tbody,.groups-table tr,.groups-table td{display:block}.groups-table tr{padding:15px 18px 18px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:11px 12px}.groups-table td{border:0;padding:0;font-size:.82rem}.groups-table td:before{content:attr(data-label);display:block;color:var(--muted);font-size:.66rem;margin-bottom:3px}.groups-table td:first-child{grid-column:1/-1;margin-bottom:3px}.groups-table td:nth-child(4){grid-row:2;grid-column:2}.groups-table td:nth-child(3){grid-column:1;grid-row:3}.groups-table td:nth-child(5){grid-column:2;grid-row:3}.groups-table td:nth-child(6){grid-column:1/-1;display:flex;gap:8px;align-items:center;font-size:.69rem}.groups-table td:nth-child(6):before{margin:0}.groups-table .row-arrow{display:none}.group-link strong{font-size:1rem}.badge{font-size:.68rem}.group-switch{gap:6px;margin-bottom:16px;flex-wrap:nowrap;overflow:auto;padding:2px 1px 6px;scrollbar-width:thin}.group-switch a{flex-shrink:0;font-size:.78rem;padding:12px 14px}.sheet-header{padding:18px 16px 7px;flex-wrap:wrap;gap:10px}.sheet-header .badge{max-width:none;text-align:left}.sheet-header p{font-size:.73rem}.sheet-tools{padding:14px 16px 18px;flex-direction:column;align-items:stretch;gap:14px}.fill-progress{width:100%;min-width:0}.progress-track{max-width:none}.sheet-tools button{font-size:.77rem}.feedback{margin:12px 16px;font-size:.8rem}.feedback:empty{margin:3px}.child-row{padding:17px 12px}.child-row legend{font-size:.97rem;line-height:1.5;margin-bottom:3px}.child-number{width:26px;font-size:.67rem}.mark-options{gap:2px;padding:3px;border-radius:16px}.mark-option{font-size:.73rem}.mark-option span{padding:9px 3px;min-height:48px;border-radius:12px}.mark-option.unknown{flex:1.12}.mark-option.absent{flex:1.24}.reason-wrap{display:block;margin-top:10px}.reason-wrap label{display:block;margin-bottom:5px;font-size:.75rem}.reason-wrap select{width:100%}.save-bar{padding:12px;bottom:99px;gap:10px;border-radius:18px;margin-left:-1px;margin-right:-1px}.save-bar>div{width:100%}.save-bar strong{font-size:.75rem}.save-bar small{display:none}.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.save-actions button{font-size:.74rem;white-space:normal;padding:10px 8px;min-height:52px;border-radius:14px}.approve-bar{padding:18px 16px;flex-direction:column;align-items:stretch;font-size:.83rem}.correction{margin:18px 16px}.history{padding:0 16px}.history-event>div{flex-direction:column;gap:5px}.history-event ul{padding-left:20px}.search-form{flex-direction:column;align-items:stretch;padding:18px;gap:13px}.directory-grid{grid-template-columns:1fr}.calendar-cell{min-height:85px;padding:4px 1px;text-align:center}.calendar-cell>a,.calendar-cell>span{min-width:36px;min-height:48px;font-size:.83rem}.calendar-cell small{font-size:.49rem;padding:0}.weekday{padding:12px 2px;font-size:.7rem}.attendance-form>.notice{margin:14px 16px}.back-link{min-height:36px;margin-bottom:3px}
.auth-workspace{padding:16px 12px;align-items:start;background:var(--paper)}.login-layout{padding:0;background:transparent;display:flex;flex-direction:column;gap:17px;border-radius:0;max-width:430px}.login-brand{padding:5px 5px 2px}.login-brand-note{display:none}.login-brand .brand{font-size:1.4rem}.welcome-card{min-height:190px;flex-shrink:0;width:100%;border-radius:24px}.welcome-copy{padding:21px 22px 0;width:75%}.welcome-tag{font-size:.5rem;padding:5px 8px;background:#fff2ca}.welcome-copy h1{font-size:1.38rem;margin:13px 0 0;line-height:1.15;max-width:210px}.welcome-copy p,.welcome-sticker{display:none}.welcome-art{width:64%;right:0;left:auto;bottom:-2px}.login-card{padding:25px 25px 24px;width:100%;border-radius:25px}.hello-mark{display:none}.login-card .eyebrow{font-size:.55rem}.login-card h2{font-size:1.65rem;margin-bottom:8px}.login-card>.muted{font-size:.79rem;margin-bottom:16px}.login-card form label{margin-top:14px;font-size:.77rem}.login-card input{min-height:52px;font-size:.84rem}.login-card .primary{margin:22px 0 17px;min-height:52px}.login-help{font-size:.67rem}.login-foot{font-size:.59rem;padding:0 12px 10px}.desktop-only{display:none}}
.mobile-date{display:none}
@media(min-width:1251px){.page-top>.week-strip{width:335px;flex-shrink:0;gap:3px;padding:8px 12px;margin:0}.page-top{gap:20px;margin-bottom:20px}.page-top>div:first-child{flex:1}.page-top>.date-form{min-width:270px}.page-top h1{font-size:1.8rem}}
@media(max-width:1250px){.page-top{flex-wrap:wrap}.page-top>.week-strip{order:3;width:100%;margin:0}.page-top>.date-form{margin-left:auto}}
@media(max-width:650px){.page-top{position:relative}.page-top>.desktop-date{display:none}.page-top>div:first-child{padding-right:55px}.page-top>.date-form{margin-left:0}.page-top>.week-strip{max-width:none}.mobile-date{display:block;position:absolute;right:0;top:0;z-index:8}.mobile-date>summary{display:grid;place-items:center;width:48px;height:48px;padding:0;background:white;border-radius:17px;list-style:none}.mobile-date>summary::-webkit-details-marker{display:none}.mobile-date[open]>summary{background:var(--yellow)}.mobile-date>form{position:absolute;right:0;top:57px;width:min(300px,calc(100vw - 32px));padding:17px;background:white;box-shadow:0 8px 30px #40372320;border:1px solid var(--line);border-radius:20px}.mobile-date label{display:block;font-size:.75rem;margin-bottom:8px}.mobile-date .date-controls{flex-wrap:wrap}.mobile-date input{flex-basis:100%;width:100%;background:#f5f4f1!important}.mobile-date button{width:100%}.group-switch{scrollbar-width:none}.group-switch::-webkit-scrollbar{display:none}}
@media(min-width:651px) and (max-height:800px){.auth-workspace{padding:18px 24px}.login-layout{gap:18px 26px;padding:22px 26px 18px}.login-card{padding:24px 30px}.hello-mark{display:none}.welcome-card{min-height:480px}.login-card>.muted{margin-bottom:16px}.login-card .primary{margin:20px 0 16px}.login-brand{padding-bottom:2px}.login-card form label{margin-top:14px}.welcome-copy h1{font-size:1.9rem}.welcome-art{width:95%;left:auto;right:0}}
@media(max-width:650px){.workspace:has(#sheet-panel) .week-strip{display:none}.workspace:has(#sheet-panel) .page-top{margin-bottom:14px}.sheet-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:12px;padding:14px 12px}.sheet-tools button{font-size:.7rem;padding:10px 8px;min-height:56px}.fill-progress strong{font-size:.77rem}.progress-track{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{html{font-size:12px}body{background:white;color:black}.sidebar,.date-form,.week-strip,.print-button,.table-toolbar,.group-switch,.back-link,.page-footnote,.skip-link,.mobile-account{display:none!important}.workspace{padding:0;margin:0;max-width:none}.page-top{display:block;margin-bottom:15px}.completion{background:white;border:1px solid #999;margin-bottom:12px}.stats{gap:8px}.stats>div{background:white!important;border:1px solid #999;padding:12px;border-radius:8px}.stats strong{font-size:22px}.stats .stat-icon{display:none}.notice{background:white!important;border:1px solid #999;color:black}.section-heading{margin-bottom:12px}.groups-table thead{display:table-header-group}.groups-table{display:table}.groups-table tbody{display:table-row-group}.groups-table tr{display:table-row;break-inside:avoid}.groups-table td{display:table-cell}.groups-table td:before{display:none}.groups-table td,.groups-table th{font-size:12px;padding:9px}.groups-table td:nth-child(6){display:table-cell}.group-icon{display:none}.badge{background:white!important;border:1px solid #999;color:black!important}.table-wrap{overflow:visible;border-radius:0}.completion-track{display:none}h1{font-size:26px}a{color:black}.date-title{font-size:16px}.save-bar{position:static;box-shadow:none}.save-actions{display:none}}
