:root{font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif;color:#21352c;background:#eee9dd;font-synthesis:none;font-optical-sizing:auto;text-rendering:optimizeLegibility;scrollbar-color:#e0dccf #f2ecdf}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 20% 0%,#fff8e9 0,#f2ecdf 38%,#e8e3d9);line-height:1.55}button{font:inherit}:focus-visible{outline:2px solid #2f5d47;outline-offset:3px;border-radius:4px}.app-shell{width:100%;max-width:520px;min-height:100vh;margin:0 auto;background:#faf8f2eb;box-shadow:0 0 42px #25362d17;padding-bottom:calc(100px + env(safe-area-inset-bottom));overflow-x:hidden}.topbar{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:calc(18px + env(safe-area-inset-top)) 20px 14px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#faf8f2e0;border-bottom:1px solid rgba(39,76,58,.08)}.eyebrow{color:#a25238;font-size:12px;letter-spacing:.18em;font-weight:800}h1{margin:3px 0 0;font-size:28px;letter-spacing:-.01em}.offline-pill{font-size:12px;color:#446e59;background:#e4eee7;border-radius:999px;padding:8px 10px}main{padding:16px 16px 32px}.date-card{color:#fff8eb;background:linear-gradient(135deg,#274c3a,#3e6b54);border-radius:24px;padding:26px;box-shadow:0 14px 32px #274c3a33}.date-card p{margin:0;color:#cfe0d4;font-weight:700}.date-card h2{margin:18px 0 7px;font-size:26px}.date-card span{font-size:14px;color:#dfe9e2}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.metric-grid article{background:#fff;border-radius:18px;padding:18px;border:1px solid #ece5d8}.metric-grid span,.metric-grid small{display:block;color:#718078}.metric-grid strong{display:block;margin:6px 0;font-size:32px;color:#274c3a;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.service-card{display:flex;justify-content:space-between;align-items:end;min-height:150px;margin:12px 0;border-radius:22px;padding:20px;overflow:hidden}.service-card.lunch{background:#f7dfb2}.service-card.aftercare{background:#d9e5da}.service-tag,.step{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.service-card h3{margin:12px 0 5px;font-size:20px}.service-card p{margin:0;max-width:270px;color:#5f655f;font-size:13px;line-height:1.55}button{min-height:50px;border:0;border-radius:14px;color:#fff;background:#2f5d47;padding:0 18px;font-weight:750;font-size:15px;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{width:100%;min-height:48px;margin-top:6px;border:1px solid #d9d5ca;border-radius:12px;background:#fffdf8;color:#21352c;padding:11px 13px;font:inherit;font-size:16px}textarea{min-height:96px;resize:vertical}label{display:block;color:#66736c;font-size:14px;font-weight:650}.global-notice{position:sticky;z-index:8;top:82px;width:calc(100% - 32px);min-height:44px;margin:8px 16px 0;display:flex;justify-content:space-between;align-items:center;color:#244835;background:#dfeee4;box-shadow:0 8px 20px #274c3a1f}.global-notice span{font-size:20px}.welcome{padding:70px 28px;text-align:center}.welcome-mark{display:grid;place-items:center;width:92px;height:92px;margin:auto;color:#fff8eb;background:#274c3a;border-radius:29px;font:800 42px serif;box-shadow:0 18px 36px #274c3a38}.welcome h2{margin:25px 0 8px;font-size:26px}.welcome p{color:#69766f;line-height:1.75}.welcome button{width:100%;margin-top:12px}.date-card label{color:#cfe0d4}.date-card input{width:auto;color:#fff;background:#ffffff1f;border-color:#ffffff40;color-scheme:dark}.segment{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0;padding:5px;border-radius:16px;background:#e7e3d9}.segment button{color:#69766f;background:transparent}.segment button.active{color:#fff;background:#274c3a;box-shadow:0 5px 12px #274c3a2e}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-title h2{margin:0;font-size:17px}.section-title>button{min-height:44px;font-size:13px}.roll-list,.student-list{overflow:hidden;background:#fff;border:1px solid #ebe4d7;border-radius:20px;padding:18px}.roll-row,.student-row{display:flex;align-items:center;gap:10px;min-height:76px;border-top:1px solid #eee8dd}.roll-row:first-of-type{margin-top:12px}.avatar{flex:0 0 46px;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#274c3a;background:#e3ece5;font-weight:800;font-size:17px}.roll-name,.student-main{flex:1;min-width:78px}.roll-name strong,.student-main strong,.student-main small{display:block}.roll-name strong,.student-main strong{font-size:16px}.student-main small{margin-top:4px;color:#8a958e;font-size:13px}.status{display:block;margin-top:3px;color:#8a958e;font-size:12px}.status.leave,.status.waived{color:#387154}.status.absent_unexcused{color:#a25238}.quick-actions{display:flex;gap:4px}.quick-actions button{min-width:44px;min-height:44px;padding:0;color:#65736b;background:#efede7}.quick-actions button.selected{color:#fff;background:#357054}.quick-actions button.absent{background:#bd6247}.quick-actions button.waived{background:#b48c3c}.compact{padding:30px 20px}.muted{color:#89938e;text-align:center}.roll-list .hint{margin:0 0 6px;text-align:left;font-size:13px;color:#89938e}.form-stack{display:grid;gap:12px;margin:14px 0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.button-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.search{margin:0 0 12px;background:#fff}.student-row{flex-wrap:wrap;padding:10px 0}.student-row .check{display:flex;align-items:center;gap:3px;font-size:11px}.student-row .check input{width:18px;min-height:18px;margin:0;accent-color:#274c3a}.text-danger{min-height:40px;padding:0 5px;color:#a25238;background:transparent;font-size:12px}.info-card{margin:14px 0;padding:16px 18px;border-left:4px solid #d6a751;border-radius:6px 16px 16px 6px;background:#fff5df}.info-card h3{margin:0 0 5px}.info-card p{margin:0;color:#6d7069;font-size:13px;line-height:1.7}.stats-hero{margin-bottom:14px;padding:22px;border-radius:22px;color:#fff;background:linear-gradient(135deg,#274c3a,#4a735d)}.stats-hero label{color:#dce9df}.stats-hero input{width:auto;background:#ffffff1f;border-color:#ffffff40;color:#fff;color-scheme:dark}.stats-hero>span,.stats-hero>strong,.stats-hero>small{display:block}.stats-hero>span{margin-top:20px;color:#cfe0d4}.stats-hero>strong{margin:4px 0;font-size:36px}.stats-hero>small{color:#dce9df}.mini{min-height:38px;padding:0 10px;font-size:12px}.top-gap{margin-top:10px}.inline-checks{display:flex;gap:18px;margin:12px 0}.inline-checks label{display:flex;align-items:center;gap:6px}.inline-checks input{width:20px;min-height:20px;margin:0;accent-color:#274c3a}.settlement-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:15px 17px;border:1px solid #e2d9c9;border-radius:16px;background:#fff}.settlement-actions div{flex:1}.settlement-actions strong,.settlement-actions small{display:block}.settlement-actions small{margin-top:4px;color:#7a857f;line-height:1.45}.settlement-actions button{flex:0 0 auto}.locked-badge{color:#fff;background:#68756e;border-radius:999px;padding:8px 11px;font-size:12px}.attendance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}.attendance-grid article{padding:12px;border-radius:14px;background:#f5f3ed}.attendance-grid strong{display:block;margin-bottom:8px;font-size:15px}.attendance-grid article div{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.attendance-grid button{min-height:44px;padding:0;color:#65736b;background:#e7e4dc;font-size:13px}.attendance-grid button.selected{color:#fff;background:#357054}.attendance-grid button.late{background:#b48c3c}.attendance-grid button.leave{background:#6688a7}.attendance-grid button.absent{background:#bd6247}.record-list{margin-top:14px;padding:18px;border:1px solid #ebe4d7;border-radius:20px;background:#fff}.record-list article{display:flex;gap:10px;padding:15px 0;border-top:1px solid #eee8dd}.record-list article:first-of-type{margin-top:10px}.record-list .record-check{flex:0 0 40px;width:40px;min-height:40px;height:40px;padding:0;color:#274c3a;background:#e4eee7}.record-list article>div{min-width:0}.record-list small,.record-list strong{display:block}.record-list small{color:#89938e;font-size:12px}.record-list strong{margin-top:3px;font-size:15px}.record-list p{margin:5px 0 0;color:#67736c;line-height:1.55;white-space:pre-wrap}.record-list article.done{opacity:.6}.record-list article.done strong{text-decoration:line-through}.service-card button{background:#274c3a1f;color:#274c3a}.bottom-nav{position:fixed;z-index:9;left:50%;bottom:0;transform:translate(-50%);width:100%;max-width:520px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffdf8f2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-top:1px solid #e8e1d5}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:60px;color:#7b837e;background:transparent;border-radius:14px;font-size:12px;padding:6px 2px}.bottom-nav button span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#ece9df;font-size:14px}.bottom-nav button.active{color:#274c3a}.bottom-nav button.active span{color:#fff;background:#274c3a}.empty-state{padding:54px 22px;text-align:center}.empty-state h2{margin:12px 0 7px}.empty-state p{color:#69766f;line-height:1.7}.big-number{font-size:72px;line-height:1;font-weight:850;color:#d56d4a}.list-panel,.settings-card,.preview-card{background:#fff;border:1px solid #ebe4d7;border-radius:20px;padding:18px;margin-bottom:14px}.list-panel h2,.settings-card h2,.preview-card h2{margin:4px 0 12px}.list-row{width:100%;display:flex;justify-content:space-between;color:#27382f;background:transparent;border-top:1px solid #eee8dd;border-radius:0;padding:14px 2px}.list-row b{color:#8a958e;font-size:13px}.settings-card p{color:#66736c;line-height:1.65}.settings-card button{width:100%}.settings-card button.secondary{color:#274c3a;background:#e5eee8}.settings-card.warning{background:#fff3df;border-color:#f1d49f}.notice{padding:10px 12px;border-radius:10px;background:#f0eee7}.preview-head{display:flex;justify-content:space-between;align-items:center}.preview-head span{color:#a25238;font-size:13px}.table-wrap{overflow-x:auto;margin-bottom:14px}table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}th,td{text-align:left;white-space:nowrap;padding:12px 10px;border-bottom:1px solid #eee8dd}th{font-weight:700;color:#66736c}td.error{color:#b33830}td.ok{color:#387154}.preview-card>button{width:100%}.chart-placeholder{height:120px;display:flex;align-items:end;justify-content:center;gap:12px}.chart-placeholder i{width:28px;border-radius:8px 8px 0 0;background:#b9ceb8}.chart-placeholder i:nth-child(1){height:45%}.chart-placeholder i:nth-child(2){height:75%}.chart-placeholder i:nth-child(3){height:58%}.chart-placeholder i:nth-child(4){height:92%;background:#d56d4a}@media(display-mode:standalone){.app-shell{box-shadow:none}}@media(max-width:390px){.quick-actions{gap:2px}.quick-actions button{min-width:44px}.student-row .avatar{display:none}.form-row,.attendance-grid{grid-template-columns:1fr}}.metric-grid.four strong{font-size:27px}.metric-grid.four small{font-size:12px}.metric-grid article.metric-pending{background:#fff6e6;border-color:#f0d49b}.metric-grid article.metric-pending strong{color:#a25238}.mark-all{width:100%;min-height:54px;margin:14px 0 4px;background:#2f5d47;font-size:16px;box-shadow:0 8px 18px #274c3a2e}.section-title.clickable{cursor:pointer}.collapse-hint{color:#8a958e;font-size:12px;font-weight:700}.collapse-body{padding-top:2px}.student-row .switch{display:flex;align-items:center;gap:5px;font-size:12px;color:#66736c;font-weight:650}.switch input{display:none}.switch .track{position:relative;flex:0 0 auto;width:44px;height:27px;border-radius:999px;background:#dcd7cb;transition:background .18s}.switch .track b{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000040;transition:left .18s}.switch input:checked+.track{background:#357054}.switch input:checked+.track b{left:20px}.switch input:disabled+.track{opacity:.45}.month-nav{display:flex;align-items:center;gap:6px}.month-nav button{min-width:40px;min-height:40px;padding:0;color:#fff;background:#ffffff24;border:1px solid rgba(255,255,255,.2);border-radius:11px;font-size:17px;line-height:1}.month-nav input{margin-top:0}tfoot td{font-weight:750;color:#274c3a;border-top:2px solid #d8d2c4}
