/* TreeTodd's mobile layer: playful arrival and home, quiet records. */
:root{
  --ink:#294625;
  --muted:#5c6a54;
  --paper:#fff;
  --line:#f0f4e4;
  --shadow:0 14px 30px rgba(44,64,29,.14);
}
html{min-width:0;background:#f0f4e4}
body{min-width:0;background:#f0f4e4;color:var(--ink)}
.phone-shell{background:#fffdf2;padding-bottom:calc(81px + env(safe-area-inset-bottom))}
h1,h2,h3,h4{font-family:"Fredoka","Nunito",sans-serif;letter-spacing:-.02em}
.fi{vertical-align:middle}
.language-dropdown{position:relative;z-index:20;flex:none}
.language-dropdown summary{display:flex;align-items:center;justify-content:center;gap:2px;width:58px;height:44px;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(44,64,29,.12);cursor:pointer;list-style:none;color:#527428}
.language-dropdown summary::-webkit-details-marker{display:none}
.language-dropdown summary:focus-visible,.language-options button:focus-visible{outline:3px solid #527428;outline-offset:2px}
.language-dropdown summary .fi{font-size:15px}
.language-dropdown img,.login-top .language-dropdown img,.header-line .language-dropdown img{display:block;width:27px;height:19px;object-fit:cover;border:1px solid rgba(44,64,29,.15);border-radius:2px}
.language-options{position:absolute;right:0;top:calc(100% + 6px);width:176px;padding:5px;border-radius:13px;background:#fff;box-shadow:0 13px 30px rgba(44,64,29,.25)}
.language-options button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 9px;border:0;border-radius:9px;background:transparent;color:#294625;text-align:left;font-size:12px;font-weight:700}
.language-options button:hover,.language-options button[aria-current="true"]{background:#f0f4e4}
.app-header{overflow:visible}
.header-line{z-index:10}

/* Arrival */
.sky{background:linear-gradient(180deg,#527428 0%,#527428 50%,#d9e2c7 100%)}
.cloud{background:rgba(255,255,255,.16);filter:none}
.cloud-one{left:-135px;top:38px}
.cloud-two{right:-145px;top:220px}
.login-shell{padding-bottom:0}
.login-wrap{min-height:100dvh;display:flex;flex-direction:column;justify-content:initial;padding:77px 17px calc(23px + env(safe-area-inset-bottom))}
.login-top{top:15px;left:18px;right:18px}
.login-top > img{width:135px}
.login-intro{position:relative;flex:1;min-height:245px;padding:11px 5px 0;isolation:isolate}
.login-intro h1{position:relative;z-index:2;max-width:285px;margin:0 0 8px;color:#fff;font-size:clamp(29px,8.4vw,38px);font-weight:700;line-height:1.02;text-wrap:balance;text-shadow:0 3px 0 rgba(44,64,29,.28)}
.login-intro p{position:relative;z-index:2;max-width:225px;margin:0;color:#fffdf2;font-size:13px;font-weight:600;line-height:1.43}
.login-art{position:absolute;z-index:1;right:-26px;bottom:-27px;width:min(108%,410px);height:auto;pointer-events:none;user-select:none}
.login-card{position:relative;z-index:3;padding:18px 18px 17px;border-radius:23px;background:#fff;box-shadow:0 21px 40px rgba(44,64,29,.2)}
.account-caption{margin:0 0 11px;padding:7px 11px;color:#527428;background:#f0f4e4;font-size:11px}
.login-card form{gap:10px}
.login-card label,.record-form label{font-size:12px;color:#5c6a54}
.login-card .form-control,.record-form input:not([type=checkbox]),.record-form textarea,.scope-select{min-height:48px;border-color:#d9e2c7;border-radius:12px;font-size:16px}
.login-card .btn-sky{margin-top:5px}
.btn-sky{min-height:49px;background:#527428;border-radius:13px;box-shadow:0 8px 17px rgba(44,64,29,.22)}
.btn-sky:hover{background:#527428}
.login-card .privacy-line{margin:12px 0 0;font-size:11px;line-height:1.4;color:#5c6a54}

/* App frame and navigation */
.app-header{padding:16px 17px 28px;background:linear-gradient(135deg,#527428 0%,#89aa40 100%)}
.app-header:before{right:-135px;top:-72px;background:rgba(255,255,255,.1)}
.app-header:after{left:-105px;bottom:-63px;background:rgba(255,255,255,.1)}
.header-line > img{width:132px}
.welcome-line{margin-top:15px;gap:14px;align-items:center}
.welcome-line span{font-size:11px;opacity:.95}
.welcome-line h1{max-width:270px;margin:2px 0 0;font-size:25px;font-weight:700;line-height:1.08}
.round-tree{flex:0 0 55px;width:55px;height:55px;border-radius:17px;box-shadow:0 9px 18px rgba(44,64,29,.16)}
.round-tree img{width:50px;height:50px}
.compact-header{padding-bottom:15px}
.compact-header .welcome-line{display:none}
.content-head{padding:17px 17px 5px}
.content-head h2{margin:0 0 10px;font-size:25px;font-weight:700;line-height:1.08}
.page-content{padding:8px 17px 24px;gap:12px}
.scope-label{font-size:11px;gap:5px;color:#5c6a54}
.scope-select{min-height:46px;padding:9px 12px;font-size:14px;box-shadow:0 3px 9px rgba(44,64,29,.06)}
.teacher-selectors{gap:8px}
.teacher-selectors .scope-label:only-child{grid-column:1/-1}
.page-home .content-head{position:relative;z-index:2;margin-top:-18px;padding-top:0}
.page-home .content-head h2{display:none}
.page-home .content-head>.scope-label,.page-home .teacher-selectors{padding:9px 11px;border-radius:16px;background:#fff;box-shadow:0 8px 18px rgba(44,64,29,.12)}
.page-home .scope-select{border-color:#f0f4e4;box-shadow:none}
.page-home .page-content{padding-top:9px}
.bottom-nav{padding:6px 5px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #f0f4e4;box-shadow:0 -7px 21px rgba(44,64,29,.08)}
.bottom-nav button{min-height:55px;gap:2px;padding:6px 1px;border-radius:13px;color:#5c6a54;font-size:10px;line-height:1.1}
.bottom-nav button .fi{font-size:21px}
.bottom-nav button.active{background:#f0f4e4;color:#527428}
.bottom-nav button.active .fi{transform:none}
.bottom-nav button:active,.quick-links button:active,.more-list button:active{transform:scale(.97)}

/* The illustrated home moment */
.sky-card{min-height:223px;padding:21px 21px 91px;border-radius:20px;background:linear-gradient(105deg,#527428 0%,#527428 58%,#527428 100%);box-shadow:0 12px 24px rgba(44,64,29,.2)}
.sky-card:before{content:"";position:absolute;z-index:0;right:-12px;bottom:-35px;width:280px;height:205px;background:url("../img/garden-hero.png") right bottom/contain no-repeat;pointer-events:none}
.sky-card:after{display:none}
.sky-card>*{position:relative;z-index:1}
.sky-card p{font-size:12px;opacity:1}
.sky-card h3{max-width:205px;margin:0 0 9px;font-size:clamp(25px,7.4vw,30px);font-weight:700;line-height:1.03;text-shadow:0 2px 0 rgba(44,64,29,.24);overflow-wrap:anywhere}
.sky-card span{display:block;max-width:225px;font-size:11px;line-height:1.35}
.sky-card-icon{display:none}
.portrait{display:grid;place-items:center;overflow:hidden;flex:none;background:#f0f4e4;color:#527428;font-family:"Fredoka","Nunito",sans-serif;font-weight:700}
.portrait img{display:block;width:100%;height:100%;object-fit:cover}
.portrait-fallback[hidden]{display:none!important}
.child-hero .hero-portrait{position:absolute;z-index:2;right:18px;top:22px;width:76px;height:76px;border:4px solid #fff;border-radius:22px;box-shadow:0 7px 15px rgba(44,64,29,.22);transform:rotate(5deg);font-size:30px}
.child-hero h3,.child-hero>span:not(.hero-portrait){max-width:calc(100% - 87px)}
.place-identities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.place-identity{display:flex;align-items:center;gap:8px;min-width:0;min-height:62px;padding:8px;border-radius:13px;background:#f0f4e4;color:#5c6a54}
.place-identity .place-picture{width:42px;height:42px;border-radius:10px;background:#fff;font-size:18px}
.place-identity:first-child .place-picture img{object-fit:contain;padding:3px}
.place-identity>span:last-child{display:grid;gap:2px;min-width:0;max-width:none}
.place-identity small{font-size:10px;font-weight:700;line-height:1.1;color:#5c6a54}
.place-identity b{font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.quick-links{gap:9px}
.quick-links button{position:relative;min-height:92px;gap:8px;padding:13px 14px;border-radius:15px;color:#5c6a54;font-family:"Fredoka","Nunito",sans-serif;font-size:14px;font-weight:600;line-height:1.15;box-shadow:0 5px 12px rgba(44,64,29,.09);transition:transform .18s ease-out,box-shadow .18s ease-out}
.quick-links button:nth-child(4n+1){background:#dff2cb;color:#355b2f}
.quick-links button:nth-child(4n+2){background:#ffe9cc;color:#754b2c}
.quick-links button:nth-child(4n+3){background:#f0f4e4;color:#5c6a54}
.quick-links button:nth-child(4n+4){background:#f0f4e4;color:#5c6a54}
.quick-links .fi{width:29px;height:29px;border-radius:10px;background:rgba(255,255,255,.75);font-size:17px}
.school-ribbon{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;border-radius:12px;background:#f0f4e4;color:#5c6a54;font-size:12px;font-weight:700;line-height:1.3}
.school-ribbon .fi{flex:0 0 25px;width:25px;height:25px;border-radius:8px;background:#fff;color:#527428;font-size:14px}

/* Working screens stay compact and readable. */
.white-card,.record-form{padding:16px;border-radius:15px;box-shadow:0 4px 13px rgba(44,64,29,.06)}
.card-top{margin-bottom:9px}
.card-top h3,.event-card h3{font-size:17px;font-weight:600}
.card-top button,.form-heading button{min-height:44px;padding:8px 2px;font-size:12px}
.body-copy,.event-card p{font-size:13px;line-height:1.55}
.white-card small,.student-list small{font-size:11px}
.meta-pair{padding:8px 0;font-size:12px}
.record-item{padding:13px 0}
.record-body h4{font-size:15px;font-weight:600}
.record-body p{font-size:13px;line-height:1.55}
.item-actions{gap:8px;margin-top:9px}
.item-actions button{min-height:40px;padding:9px 12px;border-radius:9px;background:#f0f4e4;font-size:12px}
.item-actions .danger-link{background:#fff0f0}
.student-list button{min-height:57px;padding:10px 0}
.student-avatar{flex:0 0 39px;width:39px;height:39px;border-radius:12px;background:#f0f4e4;font-family:"Fredoka","Nunito",sans-serif;font-size:17px}
.student-avatar img{border-radius:12px}
.student-context{display:flex;align-items:center;gap:9px;min-height:52px;padding:7px 10px;border-radius:12px;background:#f0f4e4;color:#5c6a54}
.student-context-photo{width:36px;height:36px;border-radius:10px;font-size:16px}
.student-context>span:last-child{display:grid;gap:2px;min-width:0}
.student-context b{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.student-context small{font-size:11px;color:#5c6a54}
.more-list button{min-height:54px}
.rsvp-controls button{min-height:44px;padding:8px 12px;font-size:12px}
.gallery-open{border-radius:11px}
.gallery-open:active img{transform:scale(.97)}

/* Teachers can open a composer when they are ready to add a record. */
.compose-panel{overflow:hidden;border-radius:15px;background:#fff;box-shadow:0 5px 14px rgba(44,64,29,.07)}
.compose-panel summary{display:flex;align-items:center;gap:10px;min-height:57px;padding:10px 14px;color:#527428;font-family:"Fredoka","Nunito",sans-serif;font-size:16px;font-weight:600;list-style:none;cursor:pointer}
.compose-panel summary::-webkit-details-marker{display:none}
.compose-panel summary>.fi:first-child{flex:0 0 32px;width:32px;height:32px;border-radius:10px;background:#f0f4e4;font-size:17px}
.compose-panel summary span{flex:1}
.compose-panel summary>.fi:last-child{font-size:18px;transition:transform .18s ease-out}
.compose-panel[open] summary>.fi:last-child{transform:rotate(180deg)}
.compose-panel[open] summary{border-bottom:1px solid #f0f4e4}
.compose-panel .record-form{padding:15px;box-shadow:none;border-radius:0;gap:12px}
.compose-panel .form-heading{justify-content:flex-end;min-height:0}
.record-form textarea{min-height:94px}
.form-help{font-size:12px;line-height:1.45}

@media(max-width:360px){
  .login-top > img{width:125px}
  .login-wrap{padding-left:14px;padding-right:14px}
  .login-intro{min-height:230px}
  .login-intro h1{font-size:30px;max-width:250px}
  .login-art{right:-33px;width:110%}
  .login-card{padding:16px}
  .teacher-selectors{grid-template-columns:1fr}
  .content-head,.page-content{padding-left:14px;padding-right:14px}
  .bottom-nav button{font-size:9px}
  .bottom-nav button .fi{font-size:20px}
  .sky-card:before{width:245px}
}
@media(max-height:700px){
  .login-wrap{padding-top:67px}
  .login-intro{min-height:205px}
  .login-intro h1{font-size:30px}
  .login-art{width:min(94%,340px)}
}
@media(min-width:441px){
  .phone-shell{margin:18px auto;border-radius:26px}
  .sky{min-height:calc(100dvh - 36px)}
  .login-wrap{min-height:calc(100dvh - 36px)}
}
@media(prefers-reduced-motion:reduce){.bottom-nav button,.quick-links button,.compose-panel summary>.fi:last-child{transition:none}}

/* Motion follows the illustrated garden on arrival; working pages stay quick. */
::selection{background:#dde9ba;color:#527428}
input,textarea{caret-color:#527428}
.phone-shell{scrollbar-color:#d9e2c7 transparent}
.boot-shell{padding-bottom:0}
.boot-scene{position:relative;display:grid;place-items:center;align-content:center;gap:17px;min-height:100dvh;padding:35px;overflow:hidden;background:linear-gradient(180deg,#527428,#89aa40 65%,#d9e2c7);color:#fff}
.boot-logo{position:relative;z-index:1;width:min(55%,185px);height:auto;filter:drop-shadow(0 4px 8px rgba(44,64,29,.14))}
.boot-garden{position:absolute;bottom:-24px;right:-20px;width:min(94%,390px);height:auto;pointer-events:none}
.boot-label{position:relative;z-index:1;font-size:12px;font-weight:800;letter-spacing:.02em}
.login-intro h1{animation:headline-arrive .48s cubic-bezier(.16,1,.3,1) both}
.login-intro p{animation:headline-arrive .52s .07s cubic-bezier(.16,1,.3,1) both}
.login-art{animation:garden-arrive .7s .1s cubic-bezier(.16,1,.3,1) both}
.login-card{animation:card-arrive .42s .12s cubic-bezier(.16,1,.3,1) both}
.cloud-one{animation:cloud-arrive .62s ease-out both}
.cloud-two{animation:cloud-arrive .68s .1s ease-out both}
.page-home .sky-card:before{animation:garden-arrive .54s cubic-bezier(.16,1,.3,1) both}
.page-home .child-hero .hero-portrait{animation:portrait-arrive .42s .13s cubic-bezier(.16,1,.3,1) both}
.page-arrive{animation:content-arrive .2s cubic-bezier(.16,1,.3,1) both}
.quick-links button,.bottom-nav button,.gallery-open,.more-list button,.rsvp-controls button,.btn-sky{
  transition:transform .16s cubic-bezier(.16,1,.3,1),background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
@media(hover:hover){
  .quick-links button:hover{transform:translateY(-3px);box-shadow:0 10px 18px rgba(44,64,29,.16)}
  .gallery-open:hover img{transform:scale(1.05)}
  .more-list button:hover{background:#fffdf2}
}
.btn-sky:active,.rsvp-controls button:active{transform:scale(.98)}
.bottom-nav button:focus-visible,.quick-links button:focus-visible,.more-list button:focus-visible,
.gallery-open:focus-visible,.rsvp-controls button:focus-visible,.btn-sky:focus-visible,
.load-error button:focus-visible,.compose-panel summary:focus-visible,.item-actions button:focus-visible{
  outline:3px solid #527428;outline-offset:2px;
}
.bottom-nav button.active{box-shadow:inset 0 0 0 1px rgba(44,64,29,.08)}
.rsvp-controls button[aria-pressed="true"]{background:#dff2cb;border-color:#7fae59;color:#264d2d;box-shadow:inset 0 0 0 1px rgba(43,89,47,.12)}
.rsvp-controls button:disabled{opacity:.66;cursor:wait}
.btn-sky.is-pending{justify-content:center;gap:9px}
.btn-sky.is-pending:after,.rsvp-controls .is-pending:after{
  content:"";display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;
  border-radius:50%;animation:pending-spin .7s linear infinite;
}
.compose-panel[open] .record-form{animation:composer-arrive .2s cubic-bezier(.16,1,.3,1) both}
.photo-lightbox{animation:lightbox-backdrop .18s ease-out both}
.lightbox-panel{animation:lightbox-panel .24s cubic-bezier(.16,1,.3,1) both}
.notice:not([hidden]){animation:toast-arrive .22s cubic-bezier(.16,1,.3,1) both}

/* The content footprint stays steady while a page is fetched. */
.content-skeleton{display:grid;gap:14px;min-height:240px;align-content:start;padding-top:3px}
.skeleton-card{display:grid;align-content:start;gap:13px;min-height:165px;padding:20px 17px;border-radius:15px;background:#fff;box-shadow:0 4px 13px rgba(44,64,29,.06)}
.skeleton-line{display:block;width:100%;height:13px;border-radius:8px;background:#f0f4e4;animation:skeleton-arrive .65s ease-out both}
.skeleton-title{width:42%;height:18px;margin:4px 0 0;background:#f0f4e4}
.skeleton-short{width:49%}
.skeleton-middle{width:73%}
.load-error{display:grid;justify-items:start;gap:9px;padding:20px 18px;border-radius:15px;background:#fff;box-shadow:0 4px 13px rgba(44,64,29,.06)}
.load-error-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff1df;color:#8b5b20;font-size:19px}
.load-error h3{margin:0;font-size:18px;color:#294625}
.load-error p{margin:0;color:#5c6a54;font-size:13px;line-height:1.5}
.load-error button{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:5px;padding:9px 15px;border:0;border-radius:10px;background:#527428;color:#fff;font-size:13px;font-weight:800}
.load-error button:active{transform:scale(.98)}

@keyframes headline-arrive{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes garden-arrive{from{opacity:.55;transform:translateY(16px);clip-path:inset(0 0 10% 0)}to{opacity:1;transform:translateY(0);clip-path:inset(0)}}
@keyframes card-arrive{from{opacity:.75;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes cloud-arrive{from{opacity:.4;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@keyframes portrait-arrive{from{opacity:.7;transform:translateY(8px) rotate(0)}to{opacity:1;transform:translateY(0) rotate(5deg)}}
@keyframes content-arrive{from{opacity:.75;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes composer-arrive{from{opacity:.6;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@keyframes lightbox-backdrop{from{background:rgba(44,64,29,.65)}to{background:rgba(44,64,29,.92)}}
@keyframes lightbox-panel{from{opacity:.7;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@keyframes toast-arrive{from{opacity:.65;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes skeleton-arrive{from{opacity:.5}to{opacity:1}}
@keyframes pending-spin{to{transform:rotate(360deg)}}

/* TreeTodd mobile workspace — shared with the blue back-office world. */
:root{--ink:#294625;--muted:#5c6a54;--line:#f0f4e4;--action:#527428;--action-hover:#3f5e1f;--sky-pale:#fffdf2}
body{background:#f0f4e4;caret-color:var(--action)}
.phone-shell{background:#fffdf2;box-shadow:none;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
h1,h2,h3,h4{font-family:"Nunito",sans-serif;font-weight:800;letter-spacing:-.02em}
.login-intro h1,.page-home .welcome-line h1{font-family:"Fredoka","Nunito",sans-serif;font-weight:600}
.sky{background:#f0f4e4;min-height:100dvh}
.login-wrap{min-height:0;display:flex;justify-content:flex-start;padding:76px 20px 28px}
.login-top{top:18px;left:22px;right:22px}
.login-top>img{width:150px}
.login-intro{flex:none;min-height:0;height:225px;padding:12px 0 0}
.login-intro h1{max-width:245px;font-size:32px;line-height:1.08;color:var(--ink);text-shadow:none}
.login-intro p{max-width:235px;font-size:13px;color:#5c6a54;line-height:1.55}
.login-art{width:190px;right:-23px;bottom:-15px;opacity:1}
.cloud{display:none}
.login-card{padding:22px 20px;border-radius:16px;box-shadow:none;border:1px solid #f0f4e4}
.account-caption{background:transparent;color:var(--muted);padding:0;margin-bottom:16px;font-size:12px;font-family:"Nunito",sans-serif}
.login-card label{color:var(--ink);font-size:13px}
.login-card .form-control{background:#fffdf2;border-color:#d9e2c7;border-radius:10px;min-height:48px;font-size:16px}
.login-card form{gap:14px}
.login-card .privacy-line{color:var(--muted);font-size:12px;line-height:1.55}
.btn-sky{min-height:48px;border-radius:12px;background:var(--action);color:#fff;box-shadow:none;font-family:"Nunito",sans-serif;font-weight:800;font-size:15px}
.btn-sky:hover{background:var(--action-hover);box-shadow:none}
.btn-sky:disabled{opacity:.65}
.language-dropdown summary{box-shadow:none;border:1px solid #f0f4e4;border-radius:12px}
.language-options{border:1px solid #f0f4e4;box-shadow:0 12px 28px rgb(25 45 73 / 15%)}
.app-header{padding:18px 20px 26px;background:#f0f4e4;color:var(--ink)}
.app-header:before,.app-header:after{display:none}
.header-line>img{width:145px}
.welcome-line{margin-top:22px;gap:14px}
.welcome-line>div:first-child{min-width:0}
.welcome-line span{color:#5c6a54;font-size:12px}
.welcome-line h1{color:var(--ink);font-size:26px;line-height:1.15;overflow-wrap:anywhere}
.round-tree{width:50px;height:50px;border-radius:16px;background:#fff;box-shadow:none;flex:none}
.compact-header{padding-bottom:18px;border-bottom:1px solid var(--line)}
.content-head{padding:20px 18px 8px}
.content-head h2{font-size:24px;color:var(--ink);margin-bottom:14px}
.scope-label{font-size:12px;color:#5c6a54;gap:6px}
.scope-select{font-family:"Nunito",sans-serif;font-size:16px;min-height:48px;box-shadow:none;border:1px solid #d9e2c7;border-radius:10px;color:var(--ink)}
.page-home .content-head{margin-top:-10px}
.page-home .content-head>.scope-label,.page-home .teacher-selectors{border:1px solid var(--line);box-shadow:none;border-radius:14px;padding:12px}
.page-content{padding:10px 18px 24px;gap:16px}
.white-card,.record-form{border:1px solid var(--line);box-shadow:none;border-radius:16px;padding:18px}
.white-card h3,.event-card h3{font-size:17px;font-family:"Nunito",sans-serif;font-weight:800;color:var(--ink)}
.card-top{gap:12px;align-items:center}
.card-top button,.form-heading button{color:var(--action);font-size:12px;min-width:44px}
.body-copy,.event-card p,.record-body p{font-size:14px;line-height:1.6;color:var(--ink)}
.record-item{border-color:var(--line);padding:16px 0}
.record-body h4{font-family:"Nunito",sans-serif;font-weight:800;font-size:15px;color:var(--ink)}
.quick-links{gap:10px}
.quick-links button{display:flex;flex-direction:row;align-items:center;min-height:76px;padding:14px 12px;gap:10px;border:1px solid var(--line);border-radius:14px;font-family:"Nunito",sans-serif;font-size:14px;font-weight:800;box-shadow:none;line-height:1.3;text-align:left}
.quick-links button:nth-child(n){background:#fff;color:var(--ink)}
.quick-links .fi{flex:none;width:34px;height:34px;border-radius:10px;background:#f0f4e4;color:var(--action);font-size:19px}
.quick-links button:hover{background:#f0f4e4;box-shadow:none;transform:none}
.sky-card{background:#527428;box-shadow:none;border-radius:16px;padding:20px;min-height:132px}
.sky-card h3{font-family:"Nunito",sans-serif;font-weight:800;line-height:1.2;color:#fff;overflow-wrap:anywhere}
.sky-card p,.sky-card span{color:#fff}
.sky-card::before,.sky-card::after{display:none}
.place-identities{gap:10px}
.place-identity{background:transparent;box-shadow:none;border:0;padding:8px 0;min-width:0}
.place-identity b{font-size:12px;color:var(--ink);overflow-wrap:anywhere}
.place-identity small{color:var(--muted);font-size:11px}
.student-context{background:#f0f4e4;color:var(--ink);padding:11px 12px;border-radius:12px}
.student-context small{color:var(--muted)}
.student-list button{min-height:64px;gap:12px;border-color:var(--line)}
.student-avatar{border-radius:12px;background:#f0f4e4;color:var(--action)}
.item-actions button{min-width:44px;min-height:44px;background:#f0f4e4;color:var(--action);font-size:13px}
.more-list button{min-height:58px;border-radius:12px;box-shadow:none;border:1px solid var(--line);font-size:14px}
.more-list button>.fi{color:var(--action)}
.compose-panel{border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:none}
.compose-panel summary{min-height:52px;font-family:"Nunito",sans-serif;color:var(--action);font-size:14px}
.compose-panel .record-form{border:0;border-top:1px solid var(--line);border-radius:0 0 14px 14px}
.record-form input:not([type=checkbox]),.record-form textarea,.record-form select{font-size:16px;min-height:48px;border-color:#d9e2c7;border-radius:10px}
.record-form label{font-size:13px;color:var(--ink)}
.bottom-nav{background:#fff;border-top:1px solid #f0f4e4;border-radius:18px 18px 0 0;box-shadow:none;padding:9px 8px calc(9px + env(safe-area-inset-bottom));gap:4px}
.bottom-nav button{min-width:0;min-height:54px;border-radius:12px;padding:8px 3px;color:#5c6a54;font-size:11px;font-weight:800;font-family:"Nunito",sans-serif;gap:4px;line-height:1.2}
.bottom-nav button .fi{font-size:20px}
.bottom-nav button.active{background:var(--action);color:#fff;box-shadow:none}
.bottom-nav button.active .fi{color:#fff}
.bottom-nav button:active,.quick-links button:active,.more-list button:active{transform:none}
.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gallery-open{border-radius:12px}
.notice{background:#527428;font-size:13px}
@media(max-width:360px){.login-wrap{padding:72px 16px 24px}.login-top{left:18px;right:18px}.login-top>img{width:138px}.login-intro{height:215px}.login-intro h1{font-size:29px;max-width:220px}.login-intro p{max-width:210px;font-size:12px}.login-art{width:155px;right:-17px;bottom:-12px}.login-card{padding:20px 16px}.page-content,.content-head{padding-left:14px;padding-right:14px}.app-header{padding-left:16px;padding-right:16px}.quick-links button{gap:7px;font-size:13px;padding:12px 10px}.quick-links .fi{width:29px;height:29px}.bottom-nav button{font-size:10px}}
@media(min-width:700px){.login-shell{min-height:0}.login-wrap{min-height:0}.login-shell .sky{min-height:0}.phone-shell{margin:24px auto;border:1px solid #f0f4e4;border-radius:20px}.phone-shell:not(.login-shell){min-height:calc(100dvh - 48px)}}
@media(max-height:700px){.login-wrap{padding-top:70px}.login-intro{height:185px}.login-art{width:145px}.login-intro h1{font-size:28px}.login-card{padding:18px 16px}}
@media(prefers-reduced-motion:reduce){.login-intro h1,.login-intro p,.login-art,.login-card,.page-arrive{animation:none}.quick-links button,.bottom-nav button,.btn-sky{transition:none}}
.phone-shell.login-shell{padding-bottom:0}
.gallery-tile .item-actions{display:flex;flex-wrap:wrap;gap:4px}
.gallery-tile .item-actions button{flex:1 1 44px;min-width:44px;padding:8px 4px;font-size:11px}
/* Keep the development toolbar accessible above the portal's thumb navigation. */
#toolbarContainer #debug-icon:not(.fixed-top){bottom:calc(86px + env(safe-area-inset-bottom))}
.classroom-information{background:var(--paper,#fff);border:1px solid #f0f4e4;border-radius:16px;padding:14px 16px;color:var(--ink)}
.classroom-information dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;margin:0}
.classroom-information dl>div{min-width:0}.classroom-information dl>div:first-child,.classroom-information [data-student-nric]{grid-column:1/-1}
.classroom-information dt{font-size:12px;font-weight:600;color:#5c6a54}.classroom-information dd{font-size:13px;font-weight:800;line-height:1.45;margin:2px 0 0;overflow-wrap:anywhere}
.classroom-information>small{display:block;margin-top:9px;font-size:11px;color:#5c6a54}
