:root{--ink:#1d3152;--muted:#758399;--teal:#148b82;--line:#e3eaf3;--bg:#f6f9fd}body{background:#edf3f8;color:var(--ink)}h1{font-weight:750;color:#162d50}h2,h3{color:#203654}button{transition:background .15s,box-shadow .15s,transform .15s}button:active:enabled{transform:translateY(1px)}.primary{background:linear-gradient(135deg,#1a9b8b,#087f78);box-shadow:0 3px 6px #13897c16;min-height:46px;font-size:13px}.secondary{min-height:44px;color:#36526b;box-shadow:0 2px 4px #38567705}.icon-btn{color:#7b8fa6}.sidebar{width:224px;inset:12px auto 12px 12px;border:1px solid #e5eaf0;border-radius:19px;background:linear-gradient(170deg,#fffdf9 35%,#f5f4fc 80%,#e9f2e2);padding:24px 14px}.brand{gap:7px;margin-bottom:28px}.brand img{width:55px;height:64px}.brand div{font-size:21px;color:#0a676e;letter-spacing:1px}.brand small{font-size:6px;letter-spacing:.4px}.structure-picker{background:#eef3fa;border:1px solid #e0e8f3;padding:13px 11px;margin-bottom:18px}.structure-picker select{font-size:13px;color:#304b6b}.structure-picker label{font-size:9px;color:#8b9bae}.nav-item{font-size:13px;min-height:46px;gap:10px;color:#50617a}.nav-item.active{background:linear-gradient(100deg,#249a91,#20857f);color:white;box-shadow:0 4px 9px #228c8520}.nav-item.active .group-dot{background:#fff}.group-btn{background:#f1effa;margin-bottom:8px}.group-btn:nth-child(3n+2){background:#edf4ec}.group-btn:nth-child(3n){background:#f7f1e5}.group-btn.active{background:linear-gradient(100deg,#249a91,#20857f)}.nav-caption{padding-top:14px;font-size:9px;color:#8c92a9}.nav-rule{margin:17px 6px}.sidebar-bottom{position:relative;padding:22px 7px 4px}.sidebar-bottom:before{content:'';height:70px;position:absolute;left:-14px;right:-14px;bottom:0;pointer-events:none;background:radial-gradient(ellipse at 18% 100%,#bcd8978c 0 35%,transparent 36%),radial-gradient(ellipse at 85% 130%,#d0e6b9a6 0 50%,transparent 51%);z-index:0;border-radius:0 0 18px 18px}.sidebar-bottom>*{position:relative}.sidebar-bottom p{color:#758b84;font-size:12px}.little-mountain{color:#96bfc5}.app-body{margin-left:248px;margin-right:12px;min-height:100vh}.topbar{height:84px;border-radius:0 0 18px 18px;background:linear-gradient(115deg,#d8eeff 0%,#eaf4ff 48%,#dbeaff 100%);border:1px solid #d2e2f5;padding:0 28px;position:relative}.topbar:after{content:'';position:absolute;left:42%;top:12px;width:150px;height:40px;background:radial-gradient(ellipse at 30% 80%,#ffffff65 0 29%,transparent 30%),radial-gradient(ellipse at 55% 60%,#ffffff50 0 35%,transparent 36%),radial-gradient(ellipse at 85% 80%,#ffffff50 0 25%,transparent 26%);pointer-events:none}.topbar-right,.breadcrumb{position:relative;z-index:1}.profile{color:#36556f}.avatar.small{background:white;box-shadow:0 0 0 1px #cad9e9}.tag{background:#ffffffb3;color:#6b8ea2}.breadcrumb{color:#6d89a4}.breadcrumb strong{color:#1e4268}main{padding:32px 26px 24px;max-width:1900px;background:radial-gradient(ellipse at top left,#f6faff,transparent 65%)}.page-heading h1{font-size:34px;margin-bottom:8px}.page-heading p{font-size:13px}.eyebrow{color:#7991ad;font-weight:700}.page-heading .eyebrow{font-size:10px;letter-spacing:1.4px}.date-control{background:#f8fbff;border:1px solid #cbdcf1;box-shadow:0 3px 8px #b1c7dc12}.date-control input{font-size:13px;color:#345573}.presence-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}.presence-main,.day-panel{min-width:0}.day-summary{border:6px solid #edf0fa;background:white;border-radius:16px;overflow:hidden}.summary-heading{display:flex;align-items:center;gap:12px;padding:18px 15px;background:linear-gradient(#fafaff,#f4f6fd)}.summary-heading>.icon{width:28px;height:28px;color:#1e9b91;flex-shrink:0}.summary-heading h2{font-size:16px;margin:0 0 5px}.summary-heading p{font-size:10px;margin:0;color:#8792ab}.day-panel .stats{display:flex;flex-direction:column;gap:0;margin:0;padding:0 10px}.day-panel .stat{border:0;border-bottom:1px solid #eaeef7;border-radius:0;padding:16px 3px;gap:10px;position:relative}.day-panel .stat:last-child{border-bottom:0}.day-panel .stat-icon{width:33px;height:33px;border-radius:9px}.day-panel .stat small{font-size:11px;margin:0;max-width:98px;color:#6d7e96}.day-panel .stat>div{display:flex;align-items:center;gap:9px;justify-content:space-between;width:100%}.day-panel .stat strong{font-size:20px;letter-spacing:-.5px;color:#315274;padding:5px;background:#edf4ff;border-radius:7px;white-space:nowrap}.day-panel .stat em{font-size:12px}.day-panel .stat>.live-dot{position:absolute;right:3px;top:6px}.mascot-card{margin-top:16px;border:1px solid #dcece1;border-radius:14px;background:linear-gradient(150deg,#edf8ed,#f6fbf5);padding:20px 20px 22px;text-align:center;overflow:hidden;position:relative}.mascot-card:after{content:'';position:absolute;width:110px;height:110px;border:22px solid #e2f0dd80;border-radius:50%;right:-50px;top:-45px;pointer-events:none}.mascot-card img{width:145px;height:150px;object-fit:contain;position:relative;z-index:1}.mascot-card h3{font-size:20px;color:#1a7868;line-height:1.3;margin:13px 0 8px;letter-spacing:-.5px}.mascot-card p{font-size:11px;color:#7a9a8a;line-height:1.7;margin:0}.day-panel .bottom-cards{display:flex;flex-direction:column;gap:12px;margin-top:16px}.day-panel .soft-card{padding:15px 12px;border:1px solid #e4e7f2;border-radius:12px}.day-panel .soft-card strong{font-size:12px}.day-panel .soft-card p{font-size:10px;line-height:1.6}.day-panel .soft-card .stat-icon{width:29px;height:29px;border-radius:7px}.roster-panel{border:1px solid #dfe8f3;border-radius:14px;box-shadow:0 6px 20px #355b8012}.panel-toolbar{padding:21px 18px}.panel-toolbar h2{font-size:19px;color:#223855}.panel-toolbar p{font-size:11px;color:#8696aa}.toolbar-actions{gap:5px}.search{width:175px;background:#f9fbfe;border-color:#e1e9f3}.search input{background:none;font-size:11px}.toolbar-actions .secondary{padding:9px;font-size:12px}.child-row,.roster-head{grid-template-columns:minmax(125px,1fr) 95px 190px 62px 30px;gap:9px;padding:18px}.roster-head{font-size:10px;background:linear-gradient(90deg,#eaf1fa,#e9eef7);color:#607494;padding-top:13px;padding-bottom:13px}.roster-head>span:nth-child(4){display:none}.roster-head>span:nth-child(5){grid-column:4}.child-row{min-height:103px}.child-row>.child-name{grid-column:1;grid-row:1}.child-row>.pill{grid-column:2;grid-row:1}.child-row>.row-actions{grid-column:3;grid-row:1}.child-row>.duration{grid-column:4;grid-row:1}.child-row>.row-more{grid-column:5;grid-row:1}.child-name strong{font-size:13px;line-height:1.4}.child-name small{font-size:9px}.avatar{width:38px;height:38px;border-radius:50%;font-size:12px}.child-row .timeline{grid-row:2;grid-column:1/-1;margin-left:47px;gap:6px}.pill{font-size:11px;padding:8px}.pill.present{background:#e7f6dd;color:#478449}.pill.neutral{background:#eaf2fe;color:#7497c3}.pill.departed{background:#f0edf6;color:#8b80a3}.row-actions{gap:6px}.row-actions button{width:92px;min-height:46px;padding:10px 8px;font-size:12px;font-weight:600;border-radius:9px;background:linear-gradient(#fff,#effaf3);border-color:#8fc8b6;color:#29836b;box-shadow:0 2px 4px #569e8020}.row-actions button.out{background:linear-gradient(#fff,#fff0f0);border-color:#e8a1a5;color:#c26068;box-shadow:0 2px 4px #a3445910}.row-actions button:disabled{opacity:.37;box-shadow:none;background:#f8f9fb;border-color:#d5dfeb;color:#a6b1c1}.row-actions .icon{width:17px;height:17px}.time-chip{font-size:11px;background:#edf8e5;color:#58853f;padding:7px 9px;border-radius:7px}.time-chip.out{background:#fdeeed;color:#b96d72}.time-chip small{font-size:9px;padding-left:12px}.duration{color:#345a79;font-size:17px}.duration small{font-size:9px}.row-more{color:#90a3b9}.panel-footer{font-size:9px;background:#fbfcff;padding:15px 18px;color:#91a3b8}.notice{border-radius:10px;background:#fff8e7;border-color:#f1e6c5;color:#a18c53}.card{border:1px solid #e0e8f2;border-radius:14px;box-shadow:0 4px 16px #3c628408}.main-footer{color:#a0b0c1;padding:6px 27px 24px}.admin-heading{margin-bottom:25px}.admin-heading-icon{width:70px;height:70px;display:flex;align-items:center;justify-content:center;background:#e5effb;border-radius:20px;transform:rotate(-5deg);color:#6395b9}.admin-heading-icon .icon{width:34px;height:34px}.admin-tabs{display:flex;gap:7px;background:#eaf0f8;padding:7px;border:1px solid #e0e8f4;border-radius:12px;margin-bottom:30px;width:max-content;max-width:100%;overflow-x:auto}.admin-tabs button{background:transparent;padding:12px 17px;color:#7890ab;font-weight:600;font-size:12px;white-space:nowrap;border-radius:8px;min-height:43px}.admin-tabs button.active{background:white;color:#2e6f85;box-shadow:0 3px 8px #b1c4dc28}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px}.section-heading h2{font-size:23px;margin:0 0 7px;letter-spacing:-.5px}.section-heading p{font-size:12px;margin:0;color:#8a9aaf}.structure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.structure-card{border:1px solid #dce8ed;border-radius:15px;padding:22px;min-width:0;background:linear-gradient(140deg,#ffffff,#f6faf4);box-shadow:0 4px 14px #49627b08}.structure-card.palette-1{background:linear-gradient(140deg,#fff,#f5f2fd);border-color:#e5e0f2}.structure-card.palette-2{background:linear-gradient(140deg,#fff,#fff9ea);border-color:#ede6d6}.structure-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.structure-symbol{display:flex;width:46px;height:46px;align-items:center;justify-content:center;border-radius:13px;background:#e4f2e8;color:#6b9a75}.palette-1 .structure-symbol{background:#ece6f7;color:#a190c4}.palette-2 .structure-symbol{background:#f9efd5;color:#c1a358}.structure-symbol .icon{width:24px;height:24px}.structure-card .pill{font-size:9px;padding:6px}.structure-card h3{font-size:20px;line-height:1.35;margin:22px 0 8px;overflow-wrap:anywhere}.structure-card p{font-size:12px;margin-bottom:22px}.management-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.management-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px;border:1px solid #dce6ed;background:#ffffffb3;color:#627f95;border-radius:8px;font-size:10px;min-height:40px;white-space:nowrap}.management-button:hover{background:#f0f7fa;border-color:#a6c5d2}.management-button .icon{width:14px;height:14px}.management-button.danger{border-color:#efd8da;color:#c2787d;background:#fffaf9}.danger-fill{background:#c96d76}.danger-fill:hover{background:#b35863}.class-kind{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#9daabd}.helper-note{font-size:12px;line-height:1.7;color:#95a3b5;border-left:3px solid #d8e7f7;padding:8px 14px;margin:0 0 20px}.recycle-panel{padding:17px 20px;box-shadow:none;background:#fafcff}.recycle-panel summary{cursor:pointer;color:#9baabc;font-size:12px;font-weight:600}.recycle-panel>div{padding-top:15px}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e5ebf3;padding:11px 0;font-size:13px}.children-manager{padding:22px}.children-filters{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px;margin-bottom:10px}.children-filters label{font-size:11px;color:#8596ac}.children-filters input,.children-filters select{background:#f8fbff}.children-admin-table td{padding:16px 12px}.children-admin-table th{padding:14px 12px;font-size:10px;background:#edf3fa;color:#8799b0}.children-admin-table .management-actions{min-width:245px}.children-admin-table .child-name{min-width:145px}.children-admin-table .child-name strong{font-size:12px}.children-admin-table .management-button{min-height:36px;font-size:9px;padding:8px}.children-admin-table .pill{font-size:10px}.pager{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:20px;color:#8c9db3;font-size:11px}.pager>span:first-child{margin-right:auto}.pager .secondary{min-height:36px;padding:6px 12px}.team-member{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid #edf1f7;flex-wrap:wrap}.team-member strong{font-size:12px}.team-member small{font-size:10px;display:block;margin-top:5px;overflow-wrap:anywhere}.team-member .pill{margin-left:auto;font-size:10px}.team-member .avatar{background:#ecf1fd;color:#8b9cc4}.webhook-cards{display:grid;grid-template-columns:1fr 1.2fr;gap:22px}.webhook-explainer{background:linear-gradient(145deg,#f2f7ff,#f1f9f3);padding:30px}.large-icon{width:62px;height:62px;background:#e1edf8;color:#729aba;border-radius:17px;display:flex;align-items:center;justify-content:center;margin-bottom:25px}.large-icon .icon{width:31px;height:31px}.webhook-explainer h2{font-size:25px;line-height:1.3;max-width:300px;margin-bottom:25px}.webhook-explainer p{font-size:12px;line-height:1.9}.webhook-explainer strong{color:#496985}.webhook-cards label{color:#6b839d;font-size:12px}.webhook-cards input{background:#f9fbff}.webhook-cards .checkbox{font-size:11px;margin:13px 0 22px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-grid label{color:#71879e}dialog{border-radius:16px;border-color:#dce7f3;box-shadow:0 25px 80px #1e385740}.modal-header{padding-bottom:14px;border-bottom:1px solid #e8eef6}.modal-header h2{font-size:20px}.modal-actions{align-items:center}#toast{background:#266e70;box-shadow:0 7px 24px #15375d30}
@media(min-width:1760px){.child-row,.roster-head{grid-template-columns:minmax(155px,1fr) 95px 190px minmax(205px,1.3fr) 70px 28px;gap:10px}.roster-head>span:nth-child(4){display:block}.roster-head>span:nth-child(5){grid-column:5}.child-row>.timeline{grid-column:4;grid-row:1;margin:0}.child-row>.duration{grid-column:5}.child-row>.row-more{grid-column:6}.child-row{min-height:90px}}
@media(max-width:1400px){.structure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.presence-layout{grid-template-columns:minmax(0,1fr) 235px;gap:16px}.day-panel .stat{gap:6px}.day-panel .stat-icon{width:26px;height:28px}.day-panel .stat small{font-size:10px;max-width:85px}.day-panel .stat strong{font-size:18px}.day-summary{border-width:4px}.summary-heading{padding:15px 10px;gap:8px}.summary-heading h2{font-size:14px}.summary-heading>.icon{width:22px}.child-row,.roster-head{grid-template-columns:minmax(100px,1fr) 80px 172px 54px 24px;padding:15px 12px;gap:7px}.row-actions button{width:83px;font-size:11px;padding:9px 6px}.child-name{gap:7px}.child-name strong{font-size:12px}.avatar{width:33px;height:33px}.child-row .timeline{margin-left:40px}.pill{font-size:10px;padding:7px}.panel-toolbar{flex-wrap:wrap;gap:15px}.toolbar-actions .search{width:185px}.date-control input{width:135px}.duration{font-size:16px}.page-heading h1{font-size:30px}.webhook-cards{grid-template-columns:1fr 1.2fr}}
@media(max-width:1200px){.presence-layout{grid-template-columns:1fr}.day-panel{display:grid;grid-template-columns:1.2fr 1fr;gap:17px;align-items:start}.day-summary{grid-column:1}.mascot-card{grid-column:2;grid-row:1/3;margin:0;padding:15px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}.mascot-card img{width:90px;height:105px}.mascot-card h3{font-size:18px;margin:0;text-align:left}.mascot-card p{width:100%}.day-panel .bottom-cards{grid-column:1;margin:0}.day-panel .stat small{font-size:12px;max-width:none}.day-panel .stat strong{font-size:20px}.day-panel .stat{padding:12px 6px}.summary-heading h2{font-size:16px}.child-row,.roster-head{grid-template-columns:minmax(140px,1fr) 95px 190px 70px 30px;padding:18px;gap:9px}.row-actions button{width:92px;font-size:12px}.child-name strong{font-size:13px}.pill{font-size:11px}.presence-main{order:0}.day-panel{order:1}.admin-tabs button{padding:11px 12px;font-size:11px}.structure-card{padding:20px}.structure-card .management-button{font-size:9px}.topbar{padding:0 20px}main{padding:26px 20px}.webhook-cards{grid-template-columns:1fr}.webhook-explainer{display:none}}
@media(max-width:1000px){.sidebar{width:198px;padding:22px 10px}.app-body{margin-left:222px}.brand img{width:44px;height:52px}.brand div{font-size:18px}.brand small{font-size:5px}.sidebar .nav-item{font-size:12px}.structure-grid{grid-template-columns:1fr}.children-filters{grid-template-columns:1fr 1fr}.children-filters label:first-child{grid-column:1/-1}.child-row,.roster-head{grid-template-columns:minmax(110px,1fr) 85px 172px 55px 25px;padding:15px 12px;gap:7px}.row-actions button{width:83px;font-size:11px}.pill{font-size:10px}.child-name strong{font-size:12px}.section-heading{align-items:flex-start}.section-heading h2{font-size:21px}.section-heading .primary{font-size:11px;padding:10px}.admin-heading-icon{display:none}.admin-grid{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar{width:232px;inset:8px auto 8px 8px;z-index:40}.app-body{margin:0}.topbar{height:70px;border-radius:0 0 15px 15px;padding:0 14px}.topbar:after{left:37%;width:100px}.breadcrumb{font-size:11px}.topbar-right{gap:7px}.date-control input{width:auto;font-size:14px}.page-heading h1{font-size:30px}.page-heading{margin-bottom:20px}.page-heading p:not(.eyebrow){font-size:12px}.date-control{border-radius:10px}.date-control .icon-btn{width:45px;height:45px}.presence-layout{gap:18px}.panel-toolbar{padding:19px 15px;gap:15px;flex-direction:column}.panel-toolbar h2{font-size:19px}.panel-toolbar p{font-size:11px}.toolbar-actions .search{width:100%;min-width:0}.search input{font-size:12px;min-width:0}.toolbar-actions .secondary{padding:10px 11px;white-space:nowrap}.child-row{grid-template-columns:minmax(0,1fr) auto 28px;gap:13px;padding:18px 15px}.child-row>.child-name{grid-column:1;grid-row:1}.child-name strong{font-size:14px;line-height:1.4}.child-name small{font-size:10px}.avatar{width:39px;height:39px;font-size:12px}.child-row>.pill{grid-column:2;grid-row:1;font-size:11px}.child-row>.row-more{grid-column:3;grid-row:1}.child-row>.row-actions{grid-column:1/3;grid-row:2}.row-actions{gap:9px}.row-actions button{width:108px;min-height:48px;font-size:13px;padding:10px}.child-row>.duration{grid-column:3;grid-row:2;justify-self:end;font-size:18px;min-width:48px;text-align:right}.child-row>.timeline{grid-row:3;grid-column:1/-1;margin:0;gap:6px}.time-chip{padding:8px;font-size:11px}.time-chip small{font-size:9px}.timeline .empty{font-size:10px}.panel-footer{font-size:8px;padding:13px}.day-panel{display:flex;flex-direction:column;gap:14px}.day-summary,.mascot-card,.day-panel .bottom-cards{width:100%}.day-summary{border-width:5px}.day-panel .stats{padding:0 14px}.day-panel .stat{padding:14px 5px}.day-panel .stat small{font-size:13px;max-width:none}.day-panel .stat strong{font-size:22px}.summary-heading{padding:18px 15px}.summary-heading h2{font-size:17px}.summary-heading p{font-size:11px}.summary-heading>.icon{width:28px}.mascot-card{padding:20px}.mascot-card img{width:110px;height:125px}.mascot-card h3{font-size:22px}.mascot-card p{font-size:12px}.day-panel .bottom-cards{gap:12px}.day-panel .soft-card{padding:18px 15px}.day-panel .soft-card p{font-size:11px}.day-panel .soft-card strong{font-size:13px}.admin-tabs{width:100%;margin-bottom:25px;gap:3px;padding:5px}.admin-tabs button{font-size:11px;padding:10px 12px}.section-heading{flex-direction:column;gap:15px;margin-bottom:20px}.section-heading .primary{font-size:13px;width:100%;min-height:46px}.section-heading h2{font-size:23px}.section-heading p{font-size:12px}.structure-card{padding:21px}.structure-card h3{font-size:22px}.structure-card .management-button{font-size:11px;padding:10px;min-height:43px}.structure-card .pill{font-size:10px}.recycle-panel{padding:17px}.children-manager{padding:16px}.children-filters{gap:10px}.children-filters input,.children-filters select{font-size:12px;padding:10px}.children-filters label{font-size:10px}.children-admin-table td{padding:15px 10px}.children-admin-table .management-actions{min-width:220px}.children-admin-table .child-name{min-width:155px}.children-admin-table .child-name strong{font-size:13px}.children-admin-table .management-button{font-size:10px;min-height:40px}.webhook-cards{gap:0}.webhook-cards .card{padding:20px}.webhook-cards label{font-size:12px}.webhook-cards input{font-size:12px}.webhook-cards .primary{width:100%;font-size:12px}.form-columns{grid-template-columns:1fr;gap:0}.team-member{gap:9px}.team-member .pill{font-size:9px}.team-member small{font-size:10px}.team-member>div{max-width:190px}.main-footer{padding:14px 17px 24px;font-size:9px}main{padding:25px 13px 20px}.admin-tabs::-webkit-scrollbar{height:3px}.admin-tabs::-webkit-scrollbar-thumb{background:#b7c9de;border-radius:5px}}
@media(max-width:360px){.row-actions button{width:93px}.child-row{padding:16px 10px}.child-name strong{font-size:12px}.pill{font-size:10px}.duration{font-size:16px}}
@media(min-width:1400px){.child-row,.roster-head{grid-template-columns:minmax(125px,1.1fr) 88px 190px minmax(150px,1fr) 60px 24px;gap:8px;padding-left:16px;padding-right:16px}.roster-head>span:nth-child(4){display:block}.roster-head>span:nth-child(5){grid-column:5}.child-row>.timeline{grid-column:4;grid-row:1;margin:0;gap:5px}.child-row>.duration{grid-column:5}.child-row>.row-more{grid-column:6}.child-row{min-height:100px}.time-chip{font-size:10px;padding:7px}.time-chip small{font-size:8px}}
@media(max-width:760px){.sidebar{transform:translateX(calc(-100% - 10px))}.sidebar.open{transform:translateX(0)}.children-admin-table,.children-admin-table tbody{display:block;width:100%}.children-admin-table thead{display:none}.children-admin-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:18px 0;border-bottom:1px solid #e4ebf5}.children-admin-table td{display:block;padding:0;border:0;min-width:0}.children-admin-table td:nth-child(1){grid-column:1;grid-row:1}.children-admin-table td:nth-child(2){grid-column:1/-1;grid-row:2;font-size:12px;color:#7f93ab}.children-admin-table td:nth-child(2):before{content:'Classe : ';font-weight:600;color:#506e8c}.children-admin-table td:nth-child(3){grid-column:2;grid-row:1}.children-admin-table td:nth-child(4){grid-column:1/-1;grid-row:3}.children-admin-table .child-name{min-width:0}.children-admin-table .management-actions{min-width:0;gap:7px}.children-admin-table .management-button{font-size:11px;padding:10px;min-height:42px}.children-admin-table .avatar{width:35px;height:35px}.children-admin-table .child-name strong{font-size:13px}.children-admin-table td:nth-child(3) .pill{font-size:10px;padding:7px}.children-admin-table .child-name>div{min-width:0}.children-manager>.table-scroll{overflow:visible}}
@media print{.app-body{margin:0}.topbar,.sidebar,.main-footer{display:none}.card{box-shadow:none}main{background:white}}
.child-title{display:flex;align-items:center;gap:4px;min-width:0}.child-title strong{min-width:0;overflow-wrap:anywhere}.child-info-button{width:32px;height:34px;min-width:32px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#709fca;font-family:Georgia,serif;font-weight:700;font-style:normal;font-size:13px;border-radius:50%;position:relative;flex-shrink:0}.child-info-button:before{content:'';position:absolute;width:17px;height:17px;border:1.5px solid currentColor;border-radius:50%}.child-info-button:hover{color:#238d92;background:#eef8fa}.info-loading{padding:35px;text-align:center;color:#8b9bb0}.info-identity{display:flex;align-items:center;gap:15px;margin-bottom:23px}.info-identity .avatar{width:52px;height:52px;font-size:16px;background:#e9f3ee;color:#6b9b83}.info-identity h3{margin:0 0 5px;font-size:21px;overflow-wrap:anywhere}.info-identity p{margin:0;font-size:12px;color:#8b9db2}.child-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.info-wide{grid-column:1/-1}.info-section{background:#f8fbff;border:1px solid #e1eaf4;border-radius:11px;padding:18px;min-width:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.info-section h3{font-size:12px;color:#6e8da9;margin:0 0 12px}.info-section p{margin:0 0 10px;color:#354e69}.info-unfilled{color:#a8b4c3;font-size:12px;font-weight:400;font-style:italic}.contact-call{display:inline-flex;align-items:center;gap:8px;background:#e8f6ee;color:#2d8065;padding:10px 12px;border-radius:8px;text-decoration:none;font-size:13px;min-height:44px;overflow-wrap:anywhere;max-width:100%}.contact-call .icon{width:16px;height:16px;flex-shrink:0}.emergency-section{background:#fffaf1;border-color:#f0e6d0}.emergency-section h3{color:#ad9356}.emergency-contact{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #eee6d4}.emergency-contact:last-child{border-bottom:0}.emergency-contact strong{font-size:13px;font-weight:600}.emergency-contact small{display:block;color:#b29d71;font-size:11px;margin-top:4px}.info-notes{font-size:13px;white-space:normal}.info-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.info-footer small{font-size:10px;line-height:1.6;max-width:300px;color:#99a9ba}.info-footer .primary{font-size:12px;white-space:nowrap}textarea{font:inherit;color:var(--ink);display:block;width:100%;padding:12px;border:1px solid #dce4df;border-radius:8px;background:#fff;margin-top:7px;resize:vertical;min-height:75px;line-height:1.6}textarea:focus{outline:2px solid #b2d7e2;outline-offset:1px}#child-info-form label{font-size:12px;color:#71879e}#child-info-form fieldset{margin:0 0 17px;padding:16px;background:#f8fbfe}#child-info-form fieldset label:last-child{margin-bottom:0}#child-info-form legend{font-size:12px;font-weight:600}#child-info-form h3{font-size:16px;margin:8px 0 17px}.emergency-fields{padding:17px;border:1px solid #ece5d4;border-radius:10px;background:#fffcf6;margin-bottom:12px}.emergency-fields label{margin-bottom:13px}.contact-edit-bottom{display:flex;align-items:flex-end;gap:14px}.contact-edit-bottom label{flex:1;min-width:0;margin:0}.contact-edit-bottom .secondary{font-size:11px;color:#bd7a80}.notes-label{margin-top:22px}#child-info-form .primary .icon{width:18px}.children-admin-table .child-title{gap:2px}
@media(max-width:760px){.child-info-button{width:36px;height:36px;min-width:36px}.child-title{gap:2px}.child-title strong{font-size:13px}.child-info-grid{grid-template-columns:1fr}.info-section{padding:16px}.info-wide{grid-column:1}.info-identity{gap:11px}.info-identity h3{font-size:20px}.info-identity p{font-size:11px}.emergency-contact{align-items:flex-start;flex-direction:column;gap:10px}.info-footer{align-items:stretch;flex-direction:column;gap:14px}.info-footer .primary{width:100%}.contact-call{min-height:46px;font-size:14px}.contact-edit-bottom{flex-wrap:wrap}.contact-edit-bottom label{width:100%;flex:auto}.contact-edit-bottom .secondary{font-size:12px}#child-info-form .form-columns{grid-template-columns:1fr;gap:0}}
.csa-setup-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 18px}.csa-setup-actions .secondary{font-size:11px;min-height:43px}.grid-kind-label{display:block;margin-top:6px;font-size:10px;color:#929db4}#csa-period{align-items:flex-end}#csa-period>label{min-width:130px}#csa-period>label:first-child{flex:1.3}#csa-period>label:nth-child(2){flex:1.1}#csa-period>label input,#csa-period>label select{font-size:12px}
@media(max-width:760px){.csa-setup-actions{flex-direction:column}.csa-setup-actions .secondary{width:100%;font-size:12px}#csa-period>label{min-width:0}}
.child-name>div{min-width:0}.child-name .child-attention,.info-identity .child-attention{display:block;font-size:10px;line-height:1.55;font-weight:500;color:#a36a54;white-space:normal;overflow-wrap:anywhere;margin:5px 0}.parent-email{display:block;margin:12px 0 0;font-size:12px;line-height:1.5;color:#477caa;text-decoration:underline;overflow-wrap:anywhere}.csa-matricule{font-variant-numeric:tabular-nums;letter-spacing:1px;color:#386383}.attention-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:8px 0 20px}.attention-choice{display:flex;align-items:center;gap:9px;border:1px solid #e1e9ee;border-radius:8px;background:#fff;padding:12px;margin:0;min-height:46px}.attention-choice input{width:17px;min-height:17px;margin:0;flex-shrink:0}.attention-choice span{font-size:12px}.attention-choice:has(input:checked){background:#fff7e9;border-color:#e9d5b0}#child-info-form .attention-editor{background:#fbfcff}.attention-editor p{margin-bottom:0}#child-info-form .attention-editor label:last-of-type{margin-bottom:15px}
@media(max-width:760px){.child-name .child-attention{font-size:10px;line-height:1.55}.attention-choices{grid-template-columns:1fr}.parent-email{font-size:13px;min-height:35px}.info-identity .child-attention{font-size:11px}}
.parent-email-unfilled{display:block;margin-top:12px}.child-name .child-attention{max-width:100%}

.webhook-result{margin-top:16px;padding:15px;border:1px solid #d9e5ee;border-radius:10px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.webhook-result p{margin:6px 0 0}.webhook-success{background:#edf9f1;border-color:#b8dfc6;color:#196e46}.webhook-warning{background:#fff5e7;border-color:#ecd0a0;color:#855115}
.team-filters{display:grid;grid-template-columns:1fr 150px;gap:12px;margin-bottom:16px}.team-person{padding:18px 0;border-bottom:1px solid #e5edf4}.team-person-heading{display:flex;align-items:center;gap:12px}.team-person-heading>div{flex:1;min-width:0}.team-person strong{font-size:13px}.team-person small{display:block;font-size:11px;color:#8194a9;overflow-wrap:anywhere;margin-top:4px}.team-person-heading>.pill{font-size:10px}.team-person-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px}.team-role{display:inline-flex;align-items:center;padding:5px 9px;border-radius:6px;font-size:11px;font-weight:650;color:#6b819a;line-height:1.35}.team-avatar{overflow:hidden;flex-shrink:0}.avatar img{display:block;width:100%;height:100%;object-fit:cover}.team-avatar-large{width:80px;height:80px;font-size:30px}.team-profile-heading{display:flex;align-items:center;gap:18px;margin:10px 0 25px}.team-profile-heading h3{margin:0 0 5px}.team-profile-heading p{margin:0 0 10px;overflow-wrap:anywhere;font-size:13px}.team-photo-editor{display:flex;align-items:center;gap:18px;margin:20px 0}.team-photo-editor label{flex:1;min-width:0}.team-photo-editor input[type=file]{font-size:12px;padding:10px}.team-optional{margin:18px 0;padding:14px;background:#f8fbff;border:1px solid #e1eaf3;border-radius:9px}.team-optional summary{cursor:pointer;font-size:12px;color:#66829b}.team-optional label:first-of-type{margin-top:18px}
@media(max-width:760px){.team-filters{grid-template-columns:1fr}.team-person-heading{flex-wrap:wrap}.team-person-heading>.pill{margin-left:54px}.team-person-footer .management-actions{width:100%}.team-person-footer .management-button{flex:1}.team-profile-heading{align-items:flex-start}.team-photo-editor{flex-direction:column;align-items:flex-start}.team-photo-editor label{width:100%}.team-avatar-large{width:64px;height:64px}}

.profile .avatar{overflow:hidden}

.info-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.info-actions a{display:inline-flex;gap:6px;align-items:center;text-decoration:none}.info-actions .secondary,.info-actions .primary{font-size:12px;min-height:42px}

/* The daily actions share one row and a consistent touch target. */
.row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.row-actions button{width:100%;min-width:0;min-height:44px;padding:6px 4px;white-space:nowrap}
.row-actions .icon{width:15px;height:15px;flex-shrink:0}
.row-actions button.meal{background:#eef0f3;color:#657186;border-color:#d6dde5}
.row-actions button.meal.is-eaten{background:#138344;color:#fff;border-color:#0b7138}
.row-actions button:focus-visible{outline:3px solid #2e9ad8;outline-offset:2px}

@media(min-width:1451px){
 .child-row,.roster-head{grid-template-columns:minmax(125px,1fr) 88px minmax(200px,230px) minmax(100px,1fr) 62px 26px}
}
@media(max-width:1450px){
 .roster-head{display:none}
 .child-row{grid-template-columns:minmax(0,1fr) clamp(192px,25vw,230px) auto 28px;gap:8px 10px;min-height:0;padding:12px 15px}
 .child-row>.child-name{grid-column:1;grid-row:1;min-width:0}
 .child-row>.row-actions{grid-column:2;grid-row:1}
 .child-row>.pill{grid-column:3;grid-row:1;justify-self:start}
 .child-row>.row-more{grid-column:4;grid-row:1}
 .child-row>.timeline{grid-column:1/4;grid-row:2;margin:0}
 .child-row>.duration{grid-column:4;grid-row:2;justify-self:end;text-align:right}
 .child-row .child-title{flex-wrap:wrap}
 .child-row .child-title strong{overflow-wrap:anywhere}
}
@media(max-width:760px){
 .child-row{grid-template-columns:minmax(0,1fr) auto 28px;gap:8px}
 .child-row>.pill{grid-column:2}
 .child-row>.row-more{grid-column:3}
 .child-row>.row-actions{grid-column:1/-1;grid-row:2}
 .child-row>.timeline{grid-column:1/3;grid-row:3}
 .child-row>.duration{grid-column:3;grid-row:3;font-size:14px}
}

.child-shortcuts{display:inline-flex;align-items:center;flex-shrink:0;gap:1px}
.child-transmissions-button{width:34px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:#08766b;background:#eaf6f3;border-radius:8px}
.child-transmissions-button .icon{width:17px;height:17px}
.child-transmissions-button:hover{background:#dcefeb}
.child-transmissions-button:focus-visible{outline:2px solid #147d72;outline-offset:2px}
.offline-mode [data-child-transmissions]{display:none!important}
.transmission-controls,.transmission-actions,.transmission-note-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.transmission-controls,.transmission-note-heading{justify-content:space-between}
.transmission-controls{margin-bottom:14px}
.transmission-controls label{margin:0}
.transmission-note{border-top:1px solid var(--line);padding:15px 0}
.transmission-note-heading{align-items:flex-start;flex-wrap:nowrap}
.transmission-note h3,#transmission-editor h3{font-size:15px;margin:0 0 4px}
.transmission-note small{color:var(--muted)}
.transmission-note-meta{text-align:right;flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.transmission-note-meta strong,.transmission-note-meta small{display:block;font-size:11px}
.transmission-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;font-size:14px;line-height:1.55}
.transmission-note>.transmission-actions{justify-content:flex-end}
#transmission-editor{margin:0 0 14px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#f8fbfc}
#transmission-editor .form-error:empty{display:none}
.transmission-empty{padding:14px 0}
#transmission-print{display:none}
@media print{
 body.printing-transmissions #app,body.printing-transmissions #modal,body.printing-transmissions #responsible-dialog{display:none!important}
 body.printing-transmissions #transmission-print{display:block!important;padding:12mm 10mm;color:#111}
 .printing-transmissions .transmission-note-heading{break-after:avoid}
}
/* CapriKids 1.0.0: fit the supplied complete transparent mark without distortion. */
.wordmark em{font-style:normal;color:#ff9200}.login-story .story-main img{width:min(310px,80%);height:auto;max-height:40vh;object-fit:contain}.sidebar .brand{justify-content:center;margin-bottom:18px}.sidebar .brand img{width:154px;height:154px;max-width:100%;object-fit:contain}.mascot-card img{width:155px;height:155px;object-fit:contain}
@media(max-width:1020px){.sidebar .brand img{width:132px;height:132px}}
@media(max-height:760px) and (min-width:821px){.login-story .story-main img{max-height:30vh;width:240px}.sidebar .brand img{width:124px;height:124px}}

.child-file-nav{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.child-file-nav [aria-pressed="true"]{background:#e6f6f1;border-color:#9ccfc4;color:#126e62}
.child-document-heading,.child-document-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.child-document-heading{margin-bottom:12px}
.child-document-heading h3,.child-document-row h4{margin:0}
.child-document-form{background:#f7fafc;border:1px solid var(--line);border-radius:9px;padding:14px;margin:10px 0}
.child-document-form input[type=file]{padding:8px;min-width:0;width:100%}
.child-document-row{padding:12px 0;border-top:1px solid var(--line)}
.child-document-description{min-width:0;overflow-wrap:anywhere}
.child-document-description h4{margin-top:6px}
.child-document-description small{color:var(--muted)}
.child-document-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.child-document-actions a{text-decoration:none}
@media(max-width:540px){
 .child-document-heading,.child-document-row{align-items:flex-start;flex-direction:column}
}

.team-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.team-filters label{margin:0;min-width:0}
.team-filters select{width:100%;min-width:0;text-overflow:ellipsis}
.team-role.team-role--admin{color:#59348a;background:#f0e8fc}
.team-role.team-role--director{color:#245189;background:#e6effc}
.team-role.team-role--collaborator{color:#126756;background:#e2f5ec}
@media(max-width:400px){.team-filters{grid-template-columns:1fr}}

.offline-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 14px;margin-bottom:14px;border:1px solid #d6e7e3;background:#edf7f4;border-radius:9px;color:#195d51;font-size:12px}
.offline-banner.offline-disconnected{background:#fff3da;border-color:#ecd5a1;color:#6f5119}
.offline-actions{display:flex;gap:8px;flex-wrap:wrap}
.offline-actions button{min-height:36px}
.offline-mode .sidebar [data-view]:not([data-view=attendance]),.offline-mode #nav-settings,.offline-mode #profile-button,.offline-mode #add-child,.offline-mode #open-csa,.offline-mode [data-child-info],.offline-mode [data-history],.offline-mode .date-control{display:none!important}
.offline-conflict{border-top:1px solid var(--line);padding:12px 0}
@media print{.offline-banner{display:none!important}}

/* Supplied CapriKids illustrations keep the working area clear. */
body{background:linear-gradient(145deg,#eef7fd 0%,#f6fbf7 68%,#edf6f1 100%)}
.topbar{background:#dcefff url('decoration/cloud-banner-soft.png') center / max(1100px,102%) auto no-repeat;border:0;border-radius:14px;box-shadow:none;height:clamp(76px,5vw,100px);margin:8px 12px 0;padding-inline:28px}
.topbar:after{display:none}
.topbar .breadcrumb{color:#274963}
.topbar .profile{background:#ffffffdd}
.topbar .icon-btn{background:#ffffffdc;color:#315673}
.sidebar{isolation:isolate;overflow:hidden;--sidebar-pad-x:14px;--sidebar-pad-y:24px}
.sidebar-illustration{position:relative;height:clamp(190px,23vh,240px);flex-shrink:0;margin:0 calc(-1 * var(--sidebar-pad-x)) calc(-1 * var(--sidebar-pad-y));overflow:hidden}
.sidebar-goats{position:absolute;left:0;bottom:0;width:128%;max-width:none;height:auto;max-height:none;pointer-events:none}
.sidebar .brand,.sidebar .structure-picker{flex-shrink:0}
.sidebar-bottom .little-mountain,.sidebar-bottom>p{display:none}
.sidebar-bottom>a{display:inline-block;background:#ffffffde;border-radius:5px;padding:5px 7px;font-size:8px}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;padding-bottom:12px;scrollbar-width:thin}
.avatar.child-avatar{padding:0;border:0;background:transparent!important;box-shadow:none;flex-shrink:0}
.child-avatar img{width:100%;height:100%;object-fit:contain;display:block}
.info-identity .avatar.child-avatar-large{width:64px;height:64px}
.child-avatar:hover{box-shadow:0 0 0 2px #83bfb1}
.avatar-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.avatar-filters [aria-pressed=true]{background:#e4f5ee;border-color:#80bda9}
.child-avatar-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px}
.avatar-option{display:flex;justify-content:center;align-items:center;padding:7px;border:2px solid transparent;border-radius:12px;cursor:pointer;margin:0;position:relative}
.avatar-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}
.avatar-option img{width:62px;max-width:100%;height:auto;display:block}
.avatar-option:has(input:checked){border-color:#13877b;background:#e8f7f1}
.avatar-option:has(input:focus-visible){outline:3px solid #91bfea;outline-offset:2px}
.offline-mode [data-child-avatar]{pointer-events:none}
@media(max-width:1020px){.sidebar{--sidebar-pad-x:10px;--sidebar-pad-y:22px}}

@media(max-width:760px){.topbar{margin:6px 5px 0;padding-inline:16px}.child-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}}
@media print{.sidebar-goats{display:none!important}}

/* Keep faces legible and the attribution clear of the supplied illustration. */
.child-name>.avatar.child-avatar{width:clamp(48px,4vw,62px);height:clamp(48px,4vw,62px)}
.info-identity .avatar.child-avatar-large{width:76px;height:76px}
.main-footer{flex-wrap:wrap;row-gap:10px}
.main-footer .developer-credit{font-size:10px;font-weight:500;letter-spacing:0;text-decoration:none;color:#617b94}
.main-footer .developer-credit:hover{text-decoration:underline}
@media(max-width:760px){.child-name>.avatar.child-avatar{width:44px;height:44px}.main-footer .developer-credit{font-size:9px}}



/* A welcoming farm and an optional story behind the project. */
.mascot-card img.farm-illustration{display:block;width:min(100%,220px);height:auto;max-height:245px;object-fit:contain;margin:0 auto 8px;flex-basis:100%}
.mascot-card .mission-link{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;width:100%;padding:8px 0;margin:0 0 12px;background:transparent;color:#276f60;font-size:11px;line-height:1.5;font-weight:500;text-decoration:underline;text-underline-offset:3px;flex-basis:100%}
.mascot-card .mission-link:hover{color:#154e43}
.mascot-card h3{text-align:center}
.mission-story p{line-height:1.8;font-size:14px;color:#506a72}
.mission-story .mission-thanks{color:#176b59;font-weight:600;margin-bottom:0}

.mission-project-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:14px;color:#176b59;font-size:12px;text-underline-offset:3px}

/* Supplied group icons: native 64px artwork, bounded in navigation and cards. */
.group-btn .group-icon { width: 28px; height: 28px; min-width: 28px; max-width: 28px; object-fit: contain; flex: 0 0 28px; }
.group-btn { min-width: 0; }
.group-nav-label { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.group-card-symbol { width: 56px; height: 56px; padding: 4px; background: #fff!important; border: 1px solid #e1e8ec; flex: 0 0 56px; }
.group-card-symbol .group-icon { display: block; width: 48px; height: 48px; object-fit: contain; }
.group-card-symbol:hover { border-color: #74baad; background: #f2faf7!important; }
.group-icon-picker { min-width: 0; padding: 0; margin: 18px 0; border: 0; }
.group-icon-picker legend { font-size: 12px; font-weight: 700; }
.group-icon-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.group-icon-option { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 64px; margin: 0; padding: 6px; border: 2px solid #e0e8ee; border-radius: 10px; background: white; cursor: pointer; }
.group-icon-option img { display: block; width: 48px; height: 48px; max-width: 100%; object-fit: contain; }
.group-icon-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.group-icon-option:has(input:checked) { background: #e8f7ef; border-color: #0b8b7f; box-shadow: 0 0 0 1px #0b8b7f; }
.group-icon-option:has(input:focus-visible) { outline: 3px solid #7dbfdf; outline-offset: 2px; }
@media(max-width:480px) { .group-icon-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }

/* Keep section mascots proportional and give the text its own bounded column. */
.illustrated-heading { display: grid; grid-template-columns: minmax(0,1fr) 128px; align-items: center; gap: 16px 24px; }
.illustrated-heading > div { min-width: 0; }
.illustrated-heading h1 { overflow-wrap: anywhere; }
.section-mascot { display: block; width: 128px; height: 128px; max-width: 100%; object-fit: contain; justify-self: end; }
.illustrated-heading--actions { grid-template-columns: minmax(0,1fr) 128px auto; }
.illustrated-heading--actions > button { max-width: 100%; white-space: normal; }
@media(max-width:1100px) {
 .illustrated-heading, .illustrated-heading--actions { grid-template-columns: minmax(0,1fr) 104px; }
 .section-mascot { width: 104px; height: 104px; }
 .illustrated-heading--actions > button { grid-column: 1/-1; justify-self: start; }
}
@media(max-width:600px) {
 .illustrated-heading, .illustrated-heading--actions { grid-template-columns: minmax(0,1fr) 72px; gap: 12px; }
 .section-mascot { width: 72px; height: 72px; }
 .illustrated-heading h1 { font-size: 26px; line-height: 1.2; }
 .illustrated-heading .eyebrow { line-height: 1.6; }
}
@media(max-width:380px) {
 .illustrated-heading, .illustrated-heading--actions { grid-template-columns: minmax(0,1fr) 56px; }
 .section-mascot { width: 56px; height: 56px; }
 .illustrated-heading h1 { font-size: 23px; }
}
@media print { .section-mascot { display: none; } }
@media(max-width:600px) {
 #report-form, #csa-period { grid-template-columns: repeat(2,minmax(0,1fr)); }
 #report-form > *, #csa-period > *, #report-form input, #report-form select, #csa-period input, #csa-period select { min-width: 0; max-width: 100%; }
}
@media(max-width:420px) {
 #report-form, #csa-period { grid-template-columns: minmax(0,1fr); }
}

.group-title-line { display: flex; align-items: center; gap: 14px; margin-bottom: 9px; min-width: 0; }
.group-title-line h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
#group-title-icon { display: flex; flex: 0 0 64px; width: 64px; height: 64px; align-items: center; justify-content: center; }
#group-title-icon .group-icon { display: block; width: 64px; height: 64px; object-fit: contain; }
@media(max-width:600px) {
 .group-title-line { gap: 10px; }
 #group-title-icon { flex-basis: 48px; width: 48px; height: 48px; }
 #group-title-icon .group-icon { width: 48px; height: 48px; }
}
.trm-filters { display: grid; grid-template-columns: minmax(160px,1fr) minmax(180px,1.4fr) minmax(130px,.7fr) minmax(130px,.7fr); gap: 16px; align-items: end; }
.trm-filters > * { min-width: 0; max-width: 100%; }
.trm-filters input, .trm-filters select { min-width: 0; width: 100%; }
.trm-filters > button { grid-column: 1/-1; justify-self: start; }
.trm-export-actions { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.trm-pdf-button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; text-decoration: none; border-radius: 8px; }
.trm-pdf-button .icon { width: 18px; height: 18px; }
.trm-day { margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #dce7ee; color: #087f79; }
#trm-result { margin-top: 20px; overflow-wrap: anywhere; }
@media(max-width:1100px) { .trm-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .trm-filters { grid-template-columns: minmax(0,1fr); } .trm-export-actions { justify-content: flex-start; } }

/* Compact offline status beside the lower attendance support cards. */
.day-panel .offline-card { display: grid; grid-template-columns: 29px minmax(0,1fr); align-items: start; gap: 10px; margin: 0; padding: 15px 12px; }
.offline-card-content { min-width: 0; }
.offline-card #offline-message { margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: inherit; overflow-wrap: anywhere; }
.offline-card .offline-actions { flex-direction: column; align-items: stretch; gap: 6px; }
.offline-card .offline-actions:has(button:not([hidden])) { margin-top: 10px; }
.offline-card .offline-actions button { width: 100%; min-width: 0; min-height: 40px; padding: 8px; font-size: 11px; white-space: normal; }
.offline-card.offline-disconnected .stat-icon { background: #fff0c9; color: #997118; }

.mission-story .mission-release{margin:20px 0 0;padding-top:14px;border-top:1px solid #dce7e6;font-size:12px;line-height:1.7;color:#61757b}

.support-login{margin:24px 0 20px;border-top:1px solid #dce7e6;padding-top:16px}.support-login summary{cursor:pointer;color:#506a72;font-size:12px}.support-login form{margin-top:18px}.session-logout{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid #d9a5ab;border-radius:8px;background:#fff5f5;color:#9b3445;font-weight:700;font-size:12px;white-space:normal;line-height:1.3}.session-logout .icon{flex-shrink:0}.topbar-right .profile{max-width:200px}.topbar-right .profile #user-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-box #pin-login-form input{font-size:24px;letter-spacing:5px;text-align:center;min-height:58px}.login-box #pin-login-form input::placeholder{font-size:14px;letter-spacing:1px}.login-box #pin-login-form .primary{min-height:50px}
@media(max-width:760px){.topbar{height:auto;min-height:78px;flex-wrap:wrap;gap:8px;padding:12px 10px}.topbar-right{flex:1;justify-content:flex-end;min-width:0}.topbar-right .profile{max-width:125px}.topbar-right .profile #user-name{font-size:10px}.session-logout{font-size:11px;max-width:126px;min-height:46px;padding:8px}.topbar .breadcrumb{display:none}.topbar-right .tag{display:none}}

@media(max-width:760px){.topbar-right .profile{padding:5px;max-width:130px;min-width:65px}.topbar-right .profile .avatar{display:none}.topbar-right .profile #user-name{display:block!important;white-space:normal;text-align:left;line-height:1.3;max-width:110px;font-size:11px;overflow-wrap:anywhere}}
