:root{--sky:#89aa40;--sky-soft:#dde9ba;--sky-pale:#f0f4e4;--ink:#294625;--muted:#5c6a54;--paper:#fff;--line:#f0f4e4;--shadow:0 15px 35px rgba(44,64,29,.13)}
*{box-sizing:border-box}html{min-width:320px;background:#f0f4e4}body{margin:0;color:var(--ink);font-family:"DM Sans",sans-serif;background:radial-gradient(circle at 14% 18%,#fffdf2 0 10%,transparent 10.1%),radial-gradient(circle at 82% 15%,#fffdf2 0 12%,transparent 12.1%),#f0f4e4}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #527428;outline-offset:2px}::selection{background:#dde9ba;color:#527428}h1,h2,h3,h4{font-family:Nunito,sans-serif}h1,h2,h3,h4,p{margin-top:0}.fi{display:inline-flex;line-height:1;align-items:center;justify-content:center}
.phone-shell{width:min(100%,440px);min-height:100dvh;margin:auto;background:#fffdf2;box-shadow:0 18px 55px rgba(44,64,29,.16);position:relative;overflow:hidden;padding-bottom:calc(83px + env(safe-area-inset-bottom))}
.sky{min-height:100dvh;background:linear-gradient(180deg,#89aa40 0%,#dde8bb 48%,#f0f4e4 100%);position:relative;overflow:hidden}.cloud{position:absolute;background:rgba(255,255,255,.45);border-radius:50%;filter:blur(1px)}.cloud-one{width:260px;height:100px;left:-70px;top:80px;box-shadow:110px -40px 0 10px rgba(255,255,255,.35)}.cloud-two{width:240px;height:90px;right:-100px;top:260px;box-shadow:-100px 35px 0 0 rgba(255,255,255,.25)}
.login-wrap{position:relative;z-index:1;min-height:100dvh;padding:28px 22px 36px;display:flex;flex-direction:column;justify-content:center}.login-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:absolute;top:22px;left:22px;right:22px}.login-top img{width:150px;height:auto;filter:drop-shadow(0 2px 2px rgba(44,64,29,.12))}.lang-select{border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.88);border-radius:999px;padding:7px 25px 7px 10px;color:#527428;font-size:12px;font-weight:700;max-width:132px}.login-mascot{display:grid;place-items:center;width:130px;height:130px;margin:76px auto -25px;border:7px solid #fff;border-radius:36px;background:#e6f9b9;box-shadow:0 14px 28px rgba(44,64,29,.17);transform:rotate(-7deg);z-index:2}.login-mascot img{width:100%;height:100%;object-fit:contain}.login-card{background:#fff;border-radius:28px;padding:45px 23px 24px;box-shadow:var(--shadow)}.login-card h1{font-size:clamp(28px,8vw,38px);line-height:1.02;letter-spacing:-.025em;font-weight:900;color:#527428;max-width:310px}.login-card p{font-size:14px;line-height:1.55;color:var(--muted)}.account-caption{display:inline-flex;gap:8px;align-items:center;color:#527428;background:#f0f4e4;border-radius:999px;font-size:12px;font-weight:700;padding:7px 11px;margin:4px 0 12px}.login-card form{display:grid;gap:13px;text-align:left}.login-card label,.record-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#5c6a54}.login-card .form-control,.record-form input:not([type=checkbox]),.record-form textarea,.scope-select{width:100%;min-height:45px;border:1px solid #d9e2c7;border-radius:12px;padding:10px 12px;background:#fff;color:var(--ink);font-size:14px}.login-card .form-control:focus,.record-form input:focus,.record-form textarea:focus,.scope-select:focus{border-color:#89aa40;box-shadow:0 0 0 3px rgba(44,64,29,.15)}.btn-sky{width:100%;border:0;border-radius:14px;background:#527428;color:#fff;min-height:47px;padding:10px 17px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 16px rgba(44,64,29,.2)}.btn-sky:hover{background:#527428}.btn-sky:disabled{opacity:.55;cursor:wait}.login-card .btn-sky{justify-content:space-between;margin-top:4px}.login-card .btn-sky span{font-size:24px;line-height:1}.login-card .privacy-line{font-size:11px;color:#5c6a54;text-align:center;margin:19px 0 0}
.app-header{position:relative;padding:20px 22px 34px;color:#fff;background:linear-gradient(145deg,#527428,#89aa40 62%,#dde8bb);overflow:hidden}.app-header:before,.app-header:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.16)}.app-header:before{width:260px;height:150px;right:-130px;top:24px}.app-header:after{width:180px;height:100px;left:-90px;bottom:-48px}.header-line,.welcome-line{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.header-line img{width:143px;height:auto}.header-line .lang-select{background:#fff}.welcome-line{margin-top:28px;align-items:end}.welcome-line span{font-size:12px;font-weight:700;opacity:.88}.welcome-line h1{font-size:28px;font-weight:900;line-height:1.1;margin:5px 0 0;max-width:285px;overflow-wrap:anywhere}.round-tree{width:70px;height:70px;border-radius:22px;background:#fff;transform:rotate(8deg);display:grid;place-items:center;box-shadow:0 9px 20px rgba(44,64,29,.18)}.round-tree img{width:63px;height:63px;object-fit:contain}
.content-head{padding:23px 20px 10px}.content-head h2{font-size:24px;font-weight:900;letter-spacing:-.025em;margin:0 0 14px}.scope-label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#5c6a54}.scope-select{appearance:auto;font-weight:700;background:#fff;border-color:#f0f4e4}.teacher-selectors{display:grid;grid-template-columns:1fr 1fr;gap:9px}.page-content{padding:5px 20px 22px;display:grid;gap:15px}.loading{padding:40px;text-align:center;color:var(--muted)}
.sky-card{position:relative;min-height:184px;border-radius:20px;background:linear-gradient(130deg,#527428 0%,#dde8bb 100%);color:#fff;overflow:hidden;padding:25px 24px;box-shadow:0 11px 25px rgba(44,64,29,.18)}.sky-card:after{content:"";position:absolute;right:-45px;bottom:-65px;width:180px;height:130px;background:rgba(255,255,255,.22);border-radius:50%}.sky-card p{font-size:13px;font-weight:700;opacity:.9;margin:0 0 6px}.sky-card h3{font-size:28px;line-height:1.06;font-weight:900;max-width:220px;margin:0 0 12px}.sky-card span{font-size:12px;font-weight:700}.sky-card-icon{position:absolute;right:16px;top:17px;width:69px;height:69px;background:#fff;border-radius:21px;transform:rotate(9deg);display:grid;place-items:center}.sky-card-icon img{width:62px;height:62px;object-fit:contain}
.white-card,.record-form{background:#fff;border-radius:17px;padding:18px;box-shadow:0 6px 20px rgba(44,64,29,.07)}.card-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:12px}.card-top h3{font-size:17px;font-weight:900;margin:0}.card-top button,.form-heading button{border:0;background:transparent;color:#527428;font-size:12px;font-weight:800;white-space:nowrap}.body-copy{font-size:13px;line-height:1.6;color:#5c6a54;margin:0}.white-card small{color:var(--muted);font-size:11px}.meta-pair{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-top:1px solid #f0f4e4;font-size:12px}.meta-pair:first-child{border-top:0}.meta-pair span{color:var(--muted)}.meta-pair strong{text-align:right}.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-links button{min-height:82px;border:0;background:#f0f4e4;border-radius:16px;color:#527428;font-weight:900;text-align:left;padding:15px;display:flex;flex-direction:column;justify-content:space-between;gap:9px}.quick-links .fi{font-size:20px}
.empty-state{text-align:center;padding:26px 12px;color:#5c6a54;font-size:13px}.empty-state p{margin:7px auto 0;max-width:260px;line-height:1.5}.empty-icon{width:45px;height:45px;border-radius:14px;background:#f0f4e4;color:#527428;display:grid;place-items:center;margin:auto;font-size:21px}.record-list{display:grid}.record-item{padding:14px 0;border-top:1px solid #f0f4e4}.record-item:first-child{border-top:0;padding-top:2px}.record-body h4{font-size:14px;font-weight:900;margin-bottom:6px}.record-body p{font-size:12px;line-height:1.55;color:#5c6a54;margin:0;white-space:pre-line}.record-body small{display:block;margin-top:6px}.item-actions{display:flex;gap:14px;margin-top:8px}.item-actions button{border:0;background:transparent;color:#527428;font-size:11px;font-weight:800;padding:2px 0}.item-actions .danger-link{color:#b84747}.gallery-photo{width:100%;max-height:240px;object-fit:cover;border-radius:12px;margin-top:8px}.weekly-list{display:grid;gap:10px}.weekly-list div{display:grid;gap:3px}.weekly-list b{font-size:12px}.weekly-list span{font-size:12px;color:var(--muted)}.teacher-quote{margin:12px 0 0!important;padding:11px;border-radius:10px;background:#fffdf2}
.record-form{display:grid;gap:12px}.record-form textarea{resize:vertical;min-height:85px}.record-form input[type=file]{font-size:12px}.form-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-heading h3{font-size:17px;font-weight:900;margin:0}.record-form .checkline{display:flex;align-items:center;gap:8px}.form-help{font-size:11px;color:#5c6a54;line-height:1.5;margin:0}.record-form .btn-sky{margin-top:4px}.record-form + .white-card{margin-top:1px}
.student-list{display:grid}.student-list button{display:flex;align-items:center;gap:11px;width:100%;border:0;border-top:1px solid #f0f4e4;background:transparent;text-align:left;padding:11px 0;color:var(--ink)}.student-list button:first-child{border-top:0}.student-list button span:nth-child(2){flex:1}.student-list b,.student-list small{display:block}.student-list small{color:var(--muted);font-size:11px;margin-top:2px}.student-avatar{width:35px;height:35px;background:#f0f4e4;border-radius:11px;display:grid;place-items:center;color:#527428;font-weight:900}.event-card{margin-bottom:0}.event-card h3{font-size:17px;font-weight:900;margin:4px 0 7px}.event-card p{font-size:12px;line-height:1.55;color:#5c6a54;margin:0}.event-date{font-size:11px;font-weight:800;color:#527428}.rsvp-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:14px}.rsvp-controls span{width:100%;font-size:11px;color:var(--muted)}.rsvp-controls button{border:1px solid #d9e2c7;border-radius:9px;background:#fffdf2;color:#527428;padding:7px 10px;font-size:11px;font-weight:800}
.more-list{display:grid;gap:8px}.more-list button{display:flex;align-items:center;gap:14px;width:100%;min-height:54px;border:0;border-radius:12px;background:#fff;color:#294625;padding:12px 14px;text-align:left;box-shadow:0 3px 10px rgba(44,64,29,.06)}.more-list .fi{color:#527428;font-size:18px}.more-list span{flex:1;font-weight:800}.more-list b{color:#5c6a54}.text-logout{border:0;background:transparent;color:#a53737;font-size:13px;font-weight:800;margin:6px auto 20px}
.bottom-nav{position:fixed;z-index:20;bottom:0;width:min(100%,440px);display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid #f0f4e4;padding:7px 7px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 20px rgba(44,64,29,.08)}.bottom-nav button{display:grid;place-items:center;gap:3px;min-width:0;min-height:51px;border:0;background:transparent;color:#5c6a54;font-size:10px;font-weight:800}.bottom-nav button .fi{font-size:21px}.bottom-nav button.active{color:#527428}.bottom-nav button.active .fi{transform:translateY(-2px)}.bottom-nav span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.gallery-tile{min-width:0;margin:0}.gallery-open{display:block;width:100%;aspect-ratio:1;border:0;border-radius:10px;padding:0;background:#f0f4e4;overflow:hidden}.gallery-open img{display:block;width:100%;height:100%;object-fit:cover}.gallery-open:hover img{transform:scale(1.04)}.gallery-open img{transition:transform .18s ease-out}.gallery-tile figcaption{font-size:11px;font-weight:700;color:#5c6a54;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.gallery-tile .item-actions{gap:10px;margin-top:4px;flex-wrap:wrap}.gallery-tile .item-actions button{font-size:10px}.report-teacher{font-size:12px;font-weight:800;color:#5c6a54;margin:0 0 10px}.lightbox-open{overflow:hidden}.photo-lightbox{position:fixed;inset:0;z-index:1100;background:rgba(44,64,29,.92);display:grid;place-items:center;padding:18px}.lightbox-panel{width:min(100%,900px);max-height:calc(100dvh - 36px);display:grid;justify-items:center;gap:10px;position:relative}.lightbox-panel img{display:block;max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain;border-radius:10px}.lightbox-panel p{color:#fff;font-size:13px;text-align:center;margin:0;max-width:65ch}.lightbox-close{position:absolute;right:0;top:0;transform:translateY(-10px);width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#294625;font-size:20px;display:grid;place-items:center;box-shadow:0 5px 16px rgba(0,0,0,.25)}.lightbox-close:focus-visible{outline-color:#fff;outline-offset:3px}
.notice{position:fixed;z-index:1000;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(380px,calc(100% - 30px));background:#527428;color:#fff;padding:12px 15px;border-radius:13px;font-size:12px;font-weight:700;box-shadow:0 10px 27px rgba(44,64,29,.24)}.notice.error{background:#a63543}.notice[hidden]{display:none!important}
@media(max-width:360px){.teacher-selectors{grid-template-columns:1fr}.login-wrap{padding-left:17px;padding-right:17px}.content-head,.page-content{padding-left:15px;padding-right:15px}.bottom-nav button{font-size:9px}.header-line img{width:124px}}
@media(min-width:441px){.phone-shell{margin:18px auto;min-height:calc(100dvh - 36px);border-radius:28px}.sky{min-height:calc(100dvh - 36px)}.bottom-nav{border-radius:0 0 28px 28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
