@charset "UTF-8";
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#2b1416;background:#fff;font-synthesis:none;--green:#c8102e;--orange:#fff;--muted:#7a6466;--line:#f0d9dc;--white:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;min-height:46px;border:0;border-radius:12px;background:var(--green);color:white;padding:11px 18px;font-weight:650}button:hover{filter:brightness(1.08)}button:disabled{cursor:wait;opacity:.6}button.secondary{background:#fff0f1;color:var(--green);border:1px solid var(--line)}button.danger{color:#922e23;background:#fff0ed}button.small{padding:8px 14px;font-size:14px}a{color:var(--green)}:focus-visible{outline:3px solid #7a0a1c;outline-offset:3px}input,select{width:100%;min-height:48px;border:1px solid #dcbfc3;border-radius:10px;padding:11px 12px;background:white;color:#2b1416}input[type=radio]{width:20px;min-height:20px;accent-color:var(--green);margin:0}label{font-size:14px;font-weight:600;display:grid;gap:8px}small,.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.15}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:17px}p{line-height:1.6}svg{width:22px;height:22px;flex-shrink:0;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.brand{display:flex;align-items:center;gap:12px;font-weight:750;font-size:17px;line-height:1.25}.brand img{width:46px;height:46px;border-radius:50%;border:2px solid #fff;background:#fff;box-shadow:0 2px 8px #0003}.brand small{display:block;font-size:11px;letter-spacing:2px;font-weight:550;margin-top:5px;color:#ffd5da}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:32px 22px;background:var(--green);color:white;display:flex;flex-direction:column;z-index:10}.sidebar nav{display:grid;gap:8px;margin-top:42px}.sidebar nav button{display:flex;align-items:center;text-align:left;gap:12px;background:transparent;color:#ffe3e6;border-radius:12px;font-size:15px}.sidebar nav button.active{background:#fff;color:var(--green)}.sidebar nav button.active svg{color:var(--green)}.side-footer{margin-top:auto;padding:20px 8px 0;color:#ffd5da;font-size:12px;line-height:1.7}.side-footer strong{display:block;color:#fff;font-size:14px}.online-dot{display:inline-block;background:#fff;width:7px;height:7px;border-radius:50%;margin-right:6px}.main{margin-left:248px;padding:0 40px 40px;max-width:1600px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px;border-bottom:1px solid var(--line);margin-bottom:34px;font-size:13px}.account{display:flex;align-items:center;gap:12px}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#ffe3e6;font-weight:750;color:var(--green)}.account strong,.account small{display:block}.account small{font-size:11px;margin-top:2px}.account button{min-height:40px;padding:6px 12px}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:24px}.page-head h1{margin-bottom:8px}.page-head p{margin-bottom:0;font-size:14px;color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:750;color:#a04450;margin-bottom:10px}.welcome{display:grid;grid-template-columns:1fr auto;align-items:center;gap:24px;background:var(--green);color:white;padding:30px 32px;border-radius:20px;margin-bottom:24px;overflow:hidden}.welcome h2{font-size:27px;max-width:480px;margin-bottom:10px}.welcome p{color:#ffe3e6;margin:0;font-size:14px;max-width:540px}.welcome .eyebrow{color:var(--orange)}.field-art{width:145px;height:110px;border:2px solid #f08a9a;border-radius:8px;position:relative;transform:rotate(-12deg)}.field-art:before{content:"";position:absolute;height:100%;width:2px;left:50%;background:#f08a9a}.field-art:after{content:"";position:absolute;border:2px solid #f08a9a;width:44px;height:44px;border-radius:50%;top:30px;left:49px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:16px;padding:20px}.stat .stat-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}.stat svg{color:#c8102e}.stat strong{display:block;font-size:30px;letter-spacing:-1px;margin:15px 0 6px}.stat small{font-size:12px}.grid-two{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.panel-head h2{margin-bottom:0}.list{display:grid;gap:12px}.list-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-bottom:1px solid #f7e9eb}.list-row:last-child{border-bottom:0}.list-row strong{display:block;font-size:14px}.list-row small{display:block;margin-top:5px;font-size:12px}.tag{display:inline-flex;align-items:center;padding:6px 10px;white-space:nowrap;border-radius:8px;background:#edf4e7;color:#3c6135;font-size:12px;font-weight:650}.tag.orange{background:#fff3df;color:#8c5814}.tag.red{background:#fdece7;color:#973d31}.tag.gray{background:#eef0ed;color:#68746d}.empty{padding:32px 14px;text-align:center;color:var(--muted);font-size:14px}.empty svg{width:36px;height:36px;color:#e39aa5;margin-bottom:12px}.empty h3{color:var(--green);margin-bottom:8px}.empty p{max-width:370px;margin:0 auto 18px}.toolbar{display:flex;gap:12px;margin-bottom:20px}.toolbar input{max-width:400px}.toolbar select{max-width:260px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{font-size:11px;letter-spacing:.6px;color:#8a6a6e;text-transform:uppercase;text-align:left;padding:12px 10px;border-bottom:1px solid var(--line)}td{padding:16px 10px;border-bottom:1px solid #f7e9eb;vertical-align:middle}td strong,td small{display:block}td small{margin-top:5px;font-size:12px}td.actions{text-align:right}tr:last-child td{border-bottom:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.class-card{padding:24px;background:white;border:1px solid var(--line);border-radius:16px}.class-card h2{margin:16px 0 10px}.class-card p{font-size:14px;color:var(--muted);margin-bottom:14px}.class-card .actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.class-card .tag{font-size:11px}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100dvh}.auth-story{background:var(--green);color:white;padding:56px;display:flex;flex-direction:column;justify-content:space-between}.auth-story .brand img{width:72px;height:72px}.auth-story h1{font-size:48px;max-width:520px;line-height:1.14;margin-top:65px}.auth-story p{color:#ffe3e6;max-width:420px}.auth-story .eyebrow{color:var(--orange)}.auth-story footer{font-size:12px;color:#ffd5da;margin-top:32px}.auth-side{display:flex;align-items:center;justify-content:center;padding:40px}.auth-card{width:100%;max-width:390px}.auth-card h2{font-size:28px;margin-bottom:10px}.auth-card>p{font-size:14px;color:var(--muted);margin-bottom:28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-stack{display:grid;gap:20px}.full{grid-column:1/-1}.form-error{color:#a53724;font-size:14px;margin:0;line-height:1.5}.hint{background:#fff3f4;border-radius:12px;padding:16px;font-size:13px;line-height:1.6;color:var(--muted);margin-top:24px}.button-row{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.attendance-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.attendance-item strong{font-size:15px}.choices{display:flex;gap:8px}.choices label{display:flex;align-items:center;gap:8px;padding:12px;background:#fff3f4;border-radius:10px;font-size:13px;min-height:48px;cursor:pointer}.choices label:has(input:checked){background:#ffe3e6;color:#8f0b21;outline:1px solid #e39aa5}.save-bar{position:sticky;bottom:16px;border:1px solid var(--line);border-radius:14px;background:white;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;box-shadow:0 5px 25px #c8102e14}.save-bar small{font-size:12px}dialog{border:1px solid var(--line);padding:28px;border-radius:20px;width:min(560px,calc(100% - 28px));max-height:90dvh;color:#2b1416;box-shadow:0 24px 100px #0003}dialog::backdrop{background:#3a060ec0}dialog h2{margin:0;font-size:23px}dialog .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}dialog .close{min-width:44px;padding:8px;background:#fff0f1;color:var(--green);font-size:22px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:12px;color:white;background:var(--green);box-shadow:0 6px 25px #0002;max-width:90vw;z-index:100;display:none}#toast.show{display:block}.loading{padding:48px;text-align:center}.mobile-brand{display:none}.guide ol{padding-left:22px;line-height:1.9;font-size:14px}.guide p{font-size:14px}.guide code{background:#fff0f1;border-radius:5px;padding:3px 6px;overflow-wrap:anywhere}.nav-bottom{display:none}.notice{background:#fff3df;border:1px solid #efd7ad;color:#73501b;padding:14px 18px;border-radius:12px;font-size:13px;line-height:1.6;margin-bottom:20px}
@media(max-width:1100px){.sidebar{width:220px;padding:28px 16px}.main{margin-left:220px;padding:0 24px 28px}.stats{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.auth-story{padding:40px}.auth-story h1{font-size:38px}}
@media(max-width:760px){.sidebar{display:none}.main{margin:0;padding:0 18px 104px}.topbar{min-height:76px;margin-bottom:24px}.topbar>.muted{display:none}.mobile-brand{display:flex;font-size:13px;gap:8px}.mobile-brand img{width:34px;height:34px}.mobile-brand small{font-size:8px;letter-spacing:1px;color:#a04450}.account{gap:7px}.account .avatar{display:none}.account strong{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.account button{padding:6px 9px;font-size:12px}.page-head{align-items:flex-start}.page-head h1{font-size:27px}.page-head p{font-size:13px}.page-head button{font-size:13px;white-space:nowrap;padding:11px 14px}.welcome{padding:25px 22px;grid-template-columns:1fr;margin-bottom:18px}.welcome h2{font-size:24px}.field-art{display:none}.stats{gap:10px;margin-bottom:18px}.stat{padding:16px}.stat strong{font-size:26px}.stat .stat-top{font-size:12px}.stat svg{width:18px}.stat small{font-size:11px}.panel{padding:18px}.cards{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.toolbar input,.toolbar select{max-width:none}.auth-page{grid-template-columns:1fr;min-height:100dvh}.auth-story{padding:28px 24px 24px;justify-content:flex-start}.auth-story h1{font-size:28px;margin:26px 0 12px}.auth-story .story-body>.eyebrow{display:none}.auth-story p,.auth-story footer{display:none}.auth-side{padding:30px 24px 40px;align-items:flex-start}.auth-card h2{font-size:24px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.attendance-item{display:block;padding:18px 0}.choices{margin-top:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.choices label{font-size:12px;padding:10px 7px;gap:6px}.choices input{width:16px;min-height:16px}.save-bar{bottom:88px;padding:12px}.save-bar small{max-width:170px}.nav-bottom{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:white;padding:8px 4px max(8px,env(safe-area-inset-bottom));z-index:20}.nav-bottom button{display:grid;justify-items:center;gap:4px;font-size:10px;padding:7px 6px;background:white;color:#7a6466;border-radius:10px;min-width:48px}.nav-bottom button.active{background:#ffe9ec;color:var(--green)}.nav-bottom button.active svg{color:#c8102e}.nav-bottom svg{width:21px;height:21px}#toast{bottom:100px;width:max-content;max-width:90vw}.mobile-table thead{display:none}.mobile-table,.mobile-table tbody,.mobile-table tr,.mobile-table td{display:block}.mobile-table tr{border-bottom:1px solid var(--line);padding:12px 0}.mobile-table td{border:0;padding:6px 0}.mobile-table td[data-label]:before{content:attr(data-label) ': ';font-size:12px;color:var(--muted)}.mobile-table td.actions{text-align:left;padding-top:10px}.mobile-table td small{display:inline-block;margin-right:8px}.mobile-table td strong{font-size:16px}.panel-head{align-items:flex-start}dialog{padding:22px}.button-row{flex-wrap:wrap}}
