:root{font-family:ui-rounded,"SF Pro Rounded","Avenir Next Rounded","Segoe UI",system-ui,-apple-system,sans-serif;color:#21495d;background:#eef8ff;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}html{font-size:16px}body{min-width:320px;background:#eef8ff;color:#21495d}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{text-decoration:none;color:inherit}img{display:block;max-width:100%}.ui-icon{display:block}.loading-r2{min-height:100vh;display:grid;place-items:center;align-content:center;gap:10px;background:linear-gradient(180deg,#eaf8ff,#fff7fc 55%,#f3fff2)}.loading-r2>div{width:62px;height:62px;border-radius:22px;display:grid;place-items:center;background:#fff2b9;color:#e0aa35;font-size:30px;box-shadow:0 18px 40px rgba(74,112,137,.15);animation:floaty 1.5s ease-in-out infinite}.loading-r2 strong{font-size:28px}.loading-r2 span{font-size:14px;color:#7d97a4}@keyframes floaty{50%{transform:translateY(-7px) rotate(5deg)}}
/* BRAND */
.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;color:#e5a928;background:linear-gradient(145deg,#fff7bd,#fff);box-shadow:inset 0 0 0 1px rgba(230,189,74,.25),0 8px 18px rgba(96,127,145,.12)}.brand-mark span{font-size:24px;line-height:1}.brand-copy{display:grid;grid-template-columns:auto auto;column-gap:5px;align-items:baseline}.brand-copy strong{font-size:24px;letter-spacing:-.045em;color:#377fc9}.brand-copy b{font-size:21px;color:#ef70b3}.brand-copy small{grid-column:1/-1;font-size:11px;font-weight:800;color:#7e9aa8;letter-spacing:.02em}
/* LOGIN */
.login-r2{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(420px,.8fr);background:linear-gradient(180deg,#eaf8ff 0,#f8fdff 48%,#f4fff0 100%)}.login-visual{position:relative;padding:46px 56px 42px;overflow:hidden;display:flex;flex-direction:column;min-height:100vh}.login-visual:before{content:"";position:absolute;inset:auto -6% -150px -6%;height:360px;border-radius:50% 50% 0 0/28% 28% 0 0;background:linear-gradient(#c8efc6,#97dd99);opacity:.82}.login-visual:after{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-220px;top:-150px;background:radial-gradient(circle,#fff7c8 0,rgba(255,247,200,.15) 48%,transparent 70%)}.brand-login{position:relative;z-index:3;width:max-content}.welcome-block{position:relative;z-index:3;margin:auto 0 18px;max-width:740px;padding-top:38px}.welcome-block>span{display:inline-flex;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.75);border:1px solid #fff;color:#5c8fa8;font-size:13px;font-weight:900;letter-spacing:.08em}.welcome-block h1{font-size:clamp(54px,6vw,92px);line-height:.98;letter-spacing:-.06em;margin:20px 0 20px;color:#294d62}.welcome-block h1 em{font-style:normal;background:linear-gradient(100deg,#3ea764,#3f91e8 45%,#e968ae 76%,#916ae4);-webkit-background-clip:text;background-clip:text;color:transparent}.welcome-block p{font-size:18px;line-height:1.75;color:#6b8998;max-width:660px;margin:0}.login-portraits{position:relative;z-index:4;display:grid;grid-template-columns:minmax(250px,330px) minmax(250px,330px);gap:18px;margin-top:26px}.portrait-card{border:1px solid rgba(255,255,255,.95);border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 20px 46px rgba(68,104,128,.17);padding:0;text-align:left;transition:.2s ease}.portrait-card:hover{transform:translateY(-4px);box-shadow:0 26px 52px rgba(68,104,128,.22)}.portrait-photo{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center 35%}.portrait-card span{display:block;padding:14px 17px 16px}.portrait-card strong{display:block;font-size:20px;letter-spacing:-.02em}.portrait-card small{display:block;font-size:13px;color:#78909d;margin-top:3px;line-height:1.4}.portrait-card.poca strong{color:#2f9060}.portrait-card.sunny strong{color:#ca5797}.login-note{position:relative;z-index:3;display:flex;align-items:center;gap:9px;margin-top:18px;color:#587f92}.login-note span{font-size:20px;color:#efba3c}.login-note p{font-size:14px;font-weight:800;margin:0}.login-form-panel{display:flex;align-items:center;padding:34px;background:rgba(255,255,255,.82);border-left:1px solid #dcebf3;box-shadow:-18px 0 60px rgba(66,104,128,.10);backdrop-filter:blur(20px)}.form-shell{width:min(470px,100%);margin:auto;background:#fff;border:1px solid #e3edf2;border-radius:30px;padding:32px;box-shadow:0 28px 68px rgba(58,100,124,.13)}.form-head{display:flex;gap:14px;align-items:center;margin-bottom:26px}.lock-bubble{width:58px;height:58px;border-radius:19px;display:grid;place-items:center;color:#d99d32;background:linear-gradient(145deg,#fff2b9,#fffaf0)}.form-head small{font-size:12px;letter-spacing:.12em;font-weight:950;color:#8ca1ad}.form-head h2{font-size:34px;letter-spacing:-.04em;margin:3px 0 0;color:#284d64}.form-head p{font-size:14px;line-height:1.5;color:#8198a4;margin:4px 0 0}.form-shell label{display:block;margin:15px 0}.form-shell label>span{display:block;font-size:14px;font-weight:900;color:#526f80;margin:0 0 8px}.input-r2{height:58px;display:flex;align-items:center;border:1px solid #d9e7ee;background:#fbfdff;border-radius:17px;transition:.18s}.input-r2:focus-within{border-color:#64aede;box-shadow:0 0 0 4px rgba(100,174,222,.14);background:#fff}.input-r2 i{width:48px;display:grid;place-items:center;color:#829dab}.input-r2 input{height:100%;flex:1;border:0;outline:0;background:transparent;padding:0 15px 0 0;font-size:16px;color:#2d5166}.login-submit-r2{height:60px;width:100%;border:0;border-radius:18px;color:#fff;background:linear-gradient(120deg,#42b96c,#3f94de 56%,#9a6fdf);display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:950;box-shadow:0 15px 30px rgba(68,142,183,.28);margin-top:18px}.login-submit-r2:disabled{opacity:.55}.login-submit-r2 b{font-size:22px}.login-error-r2{padding:12px 14px;border-radius:14px;background:#fff0f4;border:1px solid #ffd2df;color:#a84e68;font-size:14px;line-height:1.45}.parent-link{width:100%;border:0;background:transparent;color:#607f91;font-size:14px;font-weight:850;padding:16px 10px 6px;display:flex;align-items:center;justify-content:center;gap:8px}.privacy-note{display:flex;align-items:center;justify-content:center;gap:6px;color:#92a4ad;font-size:12px;line-height:1.45;margin-top:14px;text-align:center}
/* CHILD SHELL */
.kid-app{min-height:100vh;position:relative;overflow-x:hidden;background:linear-gradient(180deg,var(--soft2) 0,#fbfdff 44%,var(--soft) 100%);color:var(--ink)}.kid-app:before{content:"";position:fixed;width:600px;height:600px;border-radius:50%;top:90px;right:-230px;background:radial-gradient(circle,var(--primary) 0,transparent 68%);opacity:.08;pointer-events:none}.topbar{position:sticky;top:10px;z-index:60;width:min(1360px,calc(100% - 28px));height:78px;margin:10px auto 0;padding:0 14px 0 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.95);border-radius:25px;box-shadow:0 16px 42px rgba(54,93,119,.13);backdrop-filter:blur(18px)}.desktop-nav{justify-self:center;display:flex;align-items:center;gap:4px}.desktop-nav a{height:48px;padding:0 14px;border-radius:15px;display:flex;align-items:center;gap:7px;color:#718b99;font-size:13px;font-weight:900;transition:.18s}.desktop-nav a:hover{background:#f4f8fb;color:var(--secondary)}.desktop-nav a.active{background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 13%,white),color-mix(in srgb,var(--secondary) 12%,white));color:var(--secondary);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--secondary) 18%,white)}.account-pill{display:flex;align-items:center;gap:9px;background:#f8fbfc;border:1px solid #e7eff3;border-radius:16px;padding:7px 8px 7px 9px}.avatar-dot{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,var(--primary),var(--secondary));font-weight:950}.account-pill>div{min-width:84px}.account-pill strong{display:block;font-size:13px}.account-pill small{display:block;font-size:11px;color:#8aa0ac;margin-top:1px}.account-pill button{width:34px;height:34px;border:0;border-radius:11px;background:#fff;color:#77909e;display:grid;place-items:center}.kid-layout{position:relative;z-index:2;width:min(1360px,calc(100% - 28px));margin:18px auto 56px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}.kid-sidebar{display:grid;align-content:start;gap:12px}.profile-card{position:relative;min-height:300px;border-radius:28px;overflow:hidden;background:#fff;border:1px solid #fff;box-shadow:0 18px 42px rgba(64,104,128,.14)}.profile-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 38%,rgba(22,59,80,.68) 100%)}.profile-art{width:100%;height:300px;object-fit:cover;object-position:center 32%}.profile-info{position:absolute;left:20px;right:20px;bottom:18px;z-index:2;color:#fff}.profile-info span{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.85}.profile-info h2{font-size:31px;line-height:1;margin:5px 0 6px;letter-spacing:-.04em}.profile-info p{font-size:13px;margin:0;opacity:.9}.side-stat,.side-next,.side-progress{background:rgba(255,255,255,.92);border:1px solid #fff;border-radius:20px;box-shadow:0 12px 30px rgba(61,102,127,.10)}.side-stat{padding:13px 15px;display:grid;grid-template-columns:46px 1fr;gap:11px;align-items:center}.side-stat-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center}.side-stat-icon.star{background:#fff2bd;color:#dca42f}.side-stat-icon.fire{background:#ffe5d7;color:#ea7c49}.side-stat small,.side-next small{display:block;font-size:12px;color:#8198a4}.side-stat strong{display:block;font-size:21px;margin-top:2px}.side-progress{padding:16px}.side-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center}.side-progress span{font-size:13px;font-weight:850}.side-progress strong{font-size:15px}.progress-track{height:10px;background:#e9f1f4;border-radius:999px;overflow:hidden}.progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary),var(--secondary))}.side-progress .progress-track{margin:10px 0 8px}.side-progress small{font-size:12px;color:#8aa0aa}.side-next{padding:14px;display:flex;align-items:center;gap:10px;color:var(--secondary)}.side-next>span{width:42px;height:42px;border-radius:14px;background:var(--soft2);display:grid;place-items:center}.side-next strong{display:block;font-size:14px;color:var(--ink);margin-top:3px}.page-main{min-width:0;display:grid;align-content:start;gap:18px}
/* HERO */
.hero-card{min-height:340px;border-radius:32px;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;background:linear-gradient(135deg,#fff 0,var(--soft) 48%,var(--soft2) 100%);border:1px solid #fff;box-shadow:0 20px 50px rgba(60,100,126,.13)}.hero-copy{padding:40px 18px 36px 42px;display:flex;flex-direction:column;justify-content:center}.hero-eyebrow{font-size:13px;font-weight:950;letter-spacing:.1em;text-transform:uppercase;color:var(--secondary)}.hero-copy h1{font-size:clamp(44px,4.2vw,66px);line-height:1.02;letter-spacing:-.055em;margin:10px 0 14px}.hero-copy h1 em{font-style:normal;color:#efb535}.hero-copy p{font-size:17px;line-height:1.7;color:#64818f;max-width:560px;margin:0}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.primary-btn,.secondary-btn{min-height:52px;padding:0 18px;border-radius:17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:950}.primary-btn{color:#fff;background:linear-gradient(110deg,var(--primary),var(--secondary));box-shadow:0 13px 25px color-mix(in srgb,var(--secondary) 24%,transparent)}.secondary-btn{color:var(--secondary);background:#fff;border:1px solid #e4edf1}.hero-visual{position:relative;min-height:340px;overflow:hidden}.hero-photo{width:100%;height:100%;object-fit:cover;object-position:center}.hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--soft) 0,transparent 25%,transparent 100%);opacity:.7}.hero-score,.hero-progress{position:absolute;z-index:3;background:rgba(255,255,255,.92);border:1px solid #fff;box-shadow:0 12px 28px rgba(61,100,124,.16);backdrop-filter:blur(12px)}.hero-score{right:18px;top:18px;border-radius:18px;padding:10px 13px;display:flex;gap:8px;align-items:center;color:#d9a030}.hero-score strong{display:block;font-size:19px;color:#274f65}.hero-score small{display:block;font-size:11px;color:#8198a4}.hero-progress{right:18px;bottom:18px;width:116px;height:116px;border-radius:28px;display:grid;place-items:center}.hero-progress>div{position:absolute;text-align:center}.hero-progress strong{display:block;font-size:21px}.hero-progress span{display:block;font-size:10px;color:#8097a4}.hero-progress svg{width:94px;height:94px;transform:rotate(-90deg)}.hero-progress circle{fill:none;stroke-width:3.5}.ring-bg{stroke:#e7eef2}.ring-fg{stroke:var(--primary);stroke-linecap:round;path-length:100}
/* SECTIONS */
.section-head{display:flex;justify-content:space-between;align-items:end;padding:4px 4px 0}.section-head span,.page-heading>div>span{font-size:12px;font-weight:950;letter-spacing:.12em;color:var(--secondary)}.section-head h2{font-size:26px;letter-spacing:-.035em;margin:3px 0 0}.section-head a{font-size:13px;font-weight:900;color:var(--secondary)}.task-list{display:grid;gap:10px}.task-card,.day-task{background:#fff;border:1px solid #e6eef2;border-radius:20px;display:grid;grid-template-columns:74px 54px minmax(0,1fr) auto 42px;gap:12px;align-items:center;padding:12px 14px;box-shadow:0 10px 24px rgba(62,100,124,.07)}.task-card.done,.day-task.done{background:linear-gradient(90deg,#fff, color-mix(in srgb,var(--soft) 54%,white))}.time-col strong,.day-time{font-size:14px;color:#557483}.task-image{width:52px;height:52px;border-radius:16px;overflow:hidden;background:#f5fafc;display:grid;place-items:center;border:1px solid #e8f0f3}.task-image img{width:100%;height:100%;object-fit:cover}.task-text strong{display:block;font-size:15px;letter-spacing:-.01em}.task-text span{display:block;font-size:13px;color:#7e95a1;margin-top:3px;line-height:1.45}.point-chip{min-width:66px;padding:7px 9px;border-radius:999px;background:#fff2bd;color:#b77a17;font-size:12px;font-weight:950;text-align:center}.point-chip.neutral{background:#eef4f6;color:#78909c}.check-box{width:32px;height:32px;border:2px solid #d7e4ea;border-radius:10px;display:grid;place-items:center;color:#fff}.done .check-box{border-color:#50c26f;background:#50c26f}.dashboard-bottom{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.mini-panel{background:#fff;border:1px solid #e5eef2;border-radius:26px;padding:20px;box-shadow:0 13px 32px rgba(61,101,126,.08)}.panel-title{display:flex;gap:10px;align-items:center}.panel-title>i{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--soft2);color:var(--secondary)}.panel-title small{display:block;font-size:11px;font-weight:900;color:#8ba0ab;letter-spacing:.08em}.panel-title strong{display:block;font-size:16px;margin-top:2px}.week-bars{height:150px;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end;margin:18px 0 14px}.week-bars>div{display:grid;grid-template-rows:auto 1fr auto;gap:5px;text-align:center}.week-bars span,.week-bars strong{font-size:11px;color:#78919e}.week-bars i{height:100px;border-radius:12px;background:#eef4f6;position:relative;overflow:hidden}.week-bars b{position:absolute;left:0;right:0;bottom:0;border-radius:12px;background:linear-gradient(180deg,var(--secondary),var(--primary))}.mini-panel>a{font-size:13px;font-weight:900;color:var(--secondary)}.reward-mini{display:grid;grid-template-columns:140px 1fr;grid-template-rows:auto auto auto;column-gap:16px}.reward-mini .panel-title{grid-column:1/-1}.reward-mini-img{grid-row:2/4;width:140px;height:112px;object-fit:cover;border-radius:20px;margin-top:15px}.reward-mini p{font-size:13px;line-height:1.55;color:#78909d;margin:18px 0 8px}.reward-mini a{align-self:start}
/* PAGE HEADING */
.page-heading{background:#fff;border:1px solid #e6eef2;border-radius:28px;padding:22px 24px;display:flex;gap:15px;align-items:center;box-shadow:0 12px 30px rgba(61,101,126,.08)}.heading-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--soft),var(--soft2));color:var(--secondary);flex:0 0 auto}.page-heading h1{font-size:32px;line-height:1.08;letter-spacing:-.04em;margin:4px 0 5px}.page-heading p{font-size:14px;line-height:1.6;color:#7b929e;margin:0;max-width:760px}.today-summary{background:linear-gradient(120deg,var(--soft),#fff,var(--soft2));border:1px solid #fff;border-radius:24px;padding:18px 22px;display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;box-shadow:0 12px 28px rgba(61,101,126,.08)}.today-summary>div:first-child,.today-summary>div:last-child{text-align:center}.today-summary strong{display:block;font-size:22px}.today-summary span{font-size:12px;color:#7c94a0}.summary-progress{height:13px;background:#e7eff3;border-radius:999px;overflow:hidden}.summary-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),var(--secondary));border-radius:inherit}.day-group{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px}.day-label{border-radius:24px;padding:20px;background:linear-gradient(145deg,var(--soft),var(--soft2));border:1px solid #fff;box-shadow:0 10px 25px rgba(61,101,126,.07);display:flex;gap:12px;align-items:flex-start}.day-label>span{font-size:35px;line-height:1}.day-label h3{font-size:22px;margin:0 0 3px}.day-label small{font-size:12px;color:#78909d}.day-tasks{display:grid;gap:9px}.day-task{grid-template-columns:64px 52px minmax(0,1fr) auto 40px}
/* WEEK */
.week-table-wrap{overflow-x:auto;border-radius:26px;background:#fff;border:1px solid #e4edf1;box-shadow:0 14px 34px rgba(61,101,126,.08);scrollbar-width:thin}.week-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0}.week-table th,.week-table td{border-right:1px solid #e7eff2;border-bottom:1px solid #e7eff2;padding:11px 12px;text-align:center}.week-table th:first-child,.week-table td:first-child{position:sticky;left:0;z-index:2;background:#f8fcfd}.week-table th:nth-child(2),.week-table td:nth-child(2){text-align:left;background:#fbfdfe}.week-table thead th{background:linear-gradient(180deg,#f8fbfd,#eef7fa);font-size:12px;color:#5f7b8c}.week-table thead th strong{display:block;font-size:14px;color:#325a70}.week-table thead th span{display:block;font-size:11px;color:#8ca1ab;margin-top:2px}.week-table tbody td:first-child strong{font-size:13px}.week-activity{display:flex;align-items:center;gap:9px}.week-activity .task-image{width:40px;height:40px;border-radius:12px}.week-activity span{font-size:13px;font-weight:850}.week-status{width:28px;height:28px;border-radius:8px;border:2px solid #d7e4ea;display:inline-grid;place-items:center;color:#fff}.week-status.done{background:#50c26f;border-color:#50c26f}.week-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.week-summary article{background:#fff;border:1px solid #e6eef2;border-radius:21px;padding:15px;display:flex;align-items:center;gap:11px}.week-summary article>span{width:44px;height:44px;border-radius:14px;background:var(--soft2);color:var(--secondary);display:grid;place-items:center}.week-summary small{display:block;font-size:12px;color:#8399a4}.week-summary strong{display:block;font-size:17px;margin-top:2px}
/* POINTS */
.score-strip{display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:12px}.score-strip article{background:#fff;border:1px solid #e5eef2;border-radius:22px;padding:17px;display:flex;align-items:center;gap:11px;box-shadow:0 11px 26px rgba(61,101,126,.07)}.score-strip article>span{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:var(--soft2);color:var(--secondary)}.score-strip .big-score>span{background:#fff1b7;color:#dca331}.score-strip small{display:block;font-size:12px;color:#8198a4}.score-strip strong{display:block;font-size:20px;margin-top:2px}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rule-panel{background:#fff;border-radius:27px;border:1px solid #e5eef2;overflow:hidden;box-shadow:0 13px 30px rgba(61,101,126,.08)}.rule-panel header{padding:17px 19px;display:flex;gap:11px;align-items:center}.rule-panel.good header{background:linear-gradient(100deg,#eaffef,#f6fff8)}.rule-panel.bad header{background:linear-gradient(100deg,#fff0f5,#fff8fb)}.rule-panel header>span{font-size:28px}.rule-panel header small{display:block;font-size:11px;font-weight:950;color:#849aa5;letter-spacing:.08em}.rule-panel header h2{font-size:23px;margin:2px 0 0}.rule-scroll{overflow-x:auto}.rule-panel table{width:100%;min-width:620px;border-collapse:collapse}.rule-panel th,.rule-panel td{border-top:1px solid #edf2f4;padding:9px 8px;text-align:center;font-size:12px}.rule-panel th:first-child,.rule-panel td:first-child{text-align:left}.rule-name{display:flex;align-items:center;gap:9px}.rule-name .task-image{width:36px;height:36px;border-radius:10px}.rule-name strong{font-size:13px}.rule-dot.bad{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#ffe1e9;color:#d85b7b;font-size:21px;font-weight:950}.rule-points{font-size:13px}.rule-points.plus{color:#229a50}.rule-points.minus{color:#d54f70}.tiny-check{width:24px;height:24px;border-radius:7px;border:1.5px solid #d7e4ea;display:inline-grid;place-items:center;color:#fff}.tiny-check.on{background:#50c26f;border-color:#50c26f}.rule-panel.bad .tiny-check.on{background:#ef6688;border-color:#ef6688}.achievement-row{display:grid;grid-template-columns:1.05fr .95fr;gap:14px}.chart-card,.badges-card{background:#fff;border:1px solid #e6eef2;border-radius:25px;padding:19px;box-shadow:0 12px 28px rgba(61,101,126,.07)}.bar-chart{height:190px;display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end;margin-top:15px}.bar-chart>div{display:grid;grid-template-rows:1fr auto;gap:6px;text-align:center}.bar-chart i{height:145px;background:#eff4f6;border-radius:12px;position:relative;overflow:hidden}.bar-chart b{position:absolute;left:0;right:0;bottom:0;border-radius:12px;background:linear-gradient(180deg,var(--secondary),var(--primary))}.bar-chart span{font-size:11px;color:#79909d}.badge-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.badge-list>div{border:1px solid #e7eef2;border-radius:18px;padding:11px;display:grid;grid-template-columns:46px 1fr;column-gap:10px;align-items:center}.badge-medal{grid-row:1/3;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#fff2b9;color:#d99f2e}.badge-medal.m1{background:#e9f9ef;color:#39a562}.badge-medal.m2{background:#efe9ff;color:#8165d2}.badge-medal.m3{background:#eaf5ff;color:#3e91d9}.badge-list strong{font-size:13px}.badge-list small{font-size:11px;color:#8198a4}
/* REWARDS */
.wallet-banner{background:linear-gradient(110deg,#fff7d8,#fff,#f4efff);border:1px solid #fff;border-radius:25px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:22px;box-shadow:0 12px 30px rgba(61,101,126,.08)}.wallet-banner>div{display:flex;align-items:center;gap:11px}.wallet-banner>div>span{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#fff0ad;color:#d79c28}.wallet-banner small{display:block;font-size:12px;color:#7d95a1}.wallet-banner strong{display:block;font-size:23px}.wallet-banner p{font-size:13px;color:#7a919e;margin:0;max-width:460px;line-height:1.55}.reward-grid-r2{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.reward-card-r2{background:#fff;border:1px solid #e6eef2;border-radius:26px;overflow:hidden;box-shadow:0 13px 30px rgba(61,101,126,.08)}.reward-photo{width:100%;aspect-ratio:16/10;object-fit:cover}.reward-body{padding:16px}.reward-type{display:inline-flex;padding:5px 8px;border-radius:999px;background:var(--soft2);color:var(--secondary);font-size:11px;font-weight:900}.reward-body h2{font-size:19px;line-height:1.2;margin:9px 0 7px;letter-spacing:-.02em}.reward-body p{font-size:13px;line-height:1.55;color:#7a919d;margin:0 0 14px;min-height:40px}.reward-body>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.reward-body>div strong{font-size:16px;color:#b47c22}.reward-body button{border:0;border-radius:12px;background:#eef4f6;color:#768d99;padding:8px 10px;font-size:11px;font-weight:900}
/* GARDEN */
.garden-scene{position:relative;height:620px;border-radius:30px;overflow:hidden;border:1px solid #fff;box-shadow:0 17px 40px rgba(61,101,126,.13)}.garden-bg{width:100%;height:100%;object-fit:cover}.garden-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.08),transparent 45%,rgba(16,62,75,.04))}.garden-level-card,.garden-message{position:absolute;background:rgba(255,255,255,.93);border:1px solid #fff;box-shadow:0 15px 36px rgba(52,91,115,.16);backdrop-filter:blur(14px)}.garden-level-card{top:20px;right:20px;width:230px;border-radius:22px;padding:15px}.garden-level-card span{font-size:12px;font-weight:850;color:#7c94a0}.garden-level-card strong{display:block;font-size:24px;margin:4px 0 10px}.garden-level-card small{display:block;font-size:11px;color:#8499a4;margin-top:7px}.garden-message{left:20px;bottom:20px;width:min(420px,calc(100% - 40px));border-radius:22px;padding:16px}.garden-message strong{font-size:16px}.garden-message p{font-size:13px;line-height:1.5;color:#77909c;margin:6px 0 12px}.garden-message button{border:0;border-radius:12px;padding:9px 14px;background:linear-gradient(100deg,var(--primary),var(--secondary));color:#fff;font-weight:900}.garden-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.garden-actions article{background:#fff;border:1px solid #e6eef2;border-radius:22px;padding:15px;display:flex;align-items:center;gap:11px}.garden-action-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:var(--soft);font-size:26px}.garden-actions strong{display:block;font-size:15px}.garden-actions small{display:block;font-size:12px;color:#8298a3;margin-top:3px}
/* MOBILE NAV + MORE */
.mobile-nav{display:none}.more-sheet,.more-backdrop{display:none}
/* PARENT */
.parent-r2{min-height:100vh;background:linear-gradient(180deg,#eef8ff,#fbfdff 50%,#f7fbff)}.parent-topbar{position:sticky;top:10px;z-index:30;width:min(1280px,calc(100% - 28px));height:76px;margin:10px auto 0;background:#fff;border:1px solid #e6eef2;border-radius:24px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;box-shadow:0 15px 36px rgba(61,101,126,.11)}.parent-topbar>div{display:flex;align-items:center;gap:12px}.parent-topbar>div>span{font-size:14px;font-weight:850}.parent-topbar button{border:0;border-radius:13px;background:#f2f7f9;color:#5f7a89;padding:9px 12px;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:900}.parent-main{width:min(1280px,calc(100% - 28px));margin:18px auto 60px;display:grid;gap:16px}.parent-hero{min-height:210px;background:linear-gradient(120deg,#fff,#eff9ff,#fff6fb);border:1px solid #fff;border-radius:30px;padding:30px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 17px 42px rgba(61,101,126,.10)}.parent-hero>div>span{font-size:12px;font-weight:950;letter-spacing:.12em;color:#4f98c8}.parent-hero h1{font-size:40px;letter-spacing:-.045em;margin:8px 0 10px}.parent-hero p{font-size:15px;line-height:1.65;color:#76909d;max-width:700px;margin:0}.parent-heart{width:96px;height:96px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(135deg,#ffdced,#e4e7ff);color:#df6aa8}.parent-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.parent-metrics article{background:#fff;border:1px solid #e6eef2;border-radius:21px;padding:16px;display:flex;gap:11px;align-items:center}.parent-metrics article>span{width:45px;height:45px;border-radius:14px;background:#edf7ff;color:#438ed3;display:grid;place-items:center}.parent-metrics small{display:block;font-size:12px;color:#8197a3}.parent-metrics strong{display:block;font-size:18px;margin-top:2px}.parent-child-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.parent-child-card{background:#fff;border:1px solid #e6eef2;border-radius:25px;padding:14px;display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:center}.parent-child-photo{width:150px;height:130px;object-fit:cover;border-radius:20px}.parent-child-card span{font-size:11px;font-weight:900;letter-spacing:.08em;color:#8096a1}.parent-child-card h2{font-size:25px;margin:3px 0}.parent-child-card p{font-size:13px;color:#7d94a0;margin:0 0 10px}.parent-child-card small{display:block;font-size:11px;color:#7f96a1;margin-top:6px}.parent-coming{background:#fff;border:1px solid #e6eef2;border-radius:26px;padding:20px}.parent-coming h2{font-size:20px;margin:0 0 14px}.parent-coming>div{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.parent-coming article{border:1px solid #e8eff2;border-radius:18px;padding:15px;color:#5b7889}.parent-coming article strong{display:block;font-size:14px;color:#2e566d;margin:9px 0 4px}.parent-coming article span{font-size:12px;line-height:1.45;color:#8299a4}
/* DECOR */
.page-decoration{position:fixed;pointer-events:none;z-index:0;border-radius:50%;filter:blur(2px);opacity:.25}.d1{width:260px;height:260px;left:-130px;top:34%;background:radial-gradient(circle,var(--primary),transparent 68%)}.d2{width:220px;height:220px;right:-110px;bottom:10%;background:radial-gradient(circle,var(--secondary),transparent 68%)}
/* RESPONSIVE */
@media(max-width:1180px){.desktop-nav a{padding:0 10px}.desktop-nav a span{display:none}.kid-layout{grid-template-columns:240px minmax(0,1fr)}.profile-card,.profile-art{min-height:270px;height:270px}.hero-card{grid-template-columns:1fr .9fr}.rules-grid{grid-template-columns:1fr}.reward-grid-r2{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.login-r2{grid-template-columns:1fr}.login-visual{min-height:auto;padding:28px 24px 30px}.welcome-block{margin:52px 0 10px;padding-top:0}.welcome-block h1{font-size:54px}.login-portraits{grid-template-columns:1fr 1fr;max-width:680px}.login-form-panel{border-left:0;border-top:1px solid #dcebf3;padding:26px 18px 36px}.form-shell{max-width:640px}.kid-layout{grid-template-columns:1fr}.kid-sidebar{display:none}.hero-card{grid-template-columns:1fr 1fr}.dashboard-bottom{grid-template-columns:1fr}.day-group{grid-template-columns:1fr}.day-label{align-items:center}.score-strip{grid-template-columns:1fr 1fr}.achievement-row{grid-template-columns:1fr}.garden-scene{height:540px}.parent-metrics{grid-template-columns:1fr 1fr}.parent-child-cards{grid-template-columns:1fr}.parent-coming>div{grid-template-columns:1fr 1fr}}
@media(max-width:640px){html{font-size:16px}.topbar{width:calc(100% - 12px);height:64px;margin-top:6px;top:6px;padding:0 10px;border-radius:19px;grid-template-columns:1fr auto}.topbar .brand-mark{width:36px;height:36px;border-radius:12px}.topbar .brand-mark span{font-size:20px}.topbar .brand-copy strong{font-size:19px}.topbar .brand-copy b{font-size:17px}.topbar .brand-copy small{display:none}.desktop-nav{display:none}.account-pill{padding:5px;background:transparent;border:0}.account-pill>div{display:none}.account-pill button{width:38px;height:38px;border:1px solid #e5edf1}.kid-layout{width:calc(100% - 12px);margin:12px auto 100px;gap:12px}.page-main{gap:12px}.mobile-nav{position:fixed;z-index:90;left:6px;right:6px;bottom:max(7px,env(safe-area-inset-bottom));height:76px;padding:7px 6px 9px;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;background:rgba(255,255,255,.96);border:1px solid #fff;border-radius:23px;box-shadow:0 18px 42px rgba(46,83,107,.22);backdrop-filter:blur(20px)}.mobile-nav a,.mobile-nav button{border:0;background:transparent;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7b929e;font-size:11px;font-weight:850;padding:0}.mobile-nav a.active,.mobile-nav button.active{background:linear-gradient(135deg,var(--soft),var(--soft2));color:var(--secondary)}.mobile-nav span{font-size:10.5px;line-height:1.1}.more-backdrop{display:block;position:fixed;z-index:94;inset:0;background:rgba(24,52,68,.28);opacity:0;pointer-events:none;transition:.2s}.more-backdrop.show{opacity:1;pointer-events:auto}.more-sheet{display:block;position:fixed;z-index:95;left:7px;right:7px;bottom:max(7px,env(safe-area-inset-bottom));background:#fff;border-radius:25px;padding:9px 13px 18px;box-shadow:0 24px 60px rgba(36,74,97,.28);transform:translateY(calc(100% + 20px));transition:.23s ease}.more-sheet.show{transform:translateY(0)}.sheet-grab{width:42px;height:5px;border-radius:999px;background:#d7e3e8;margin:4px auto 13px}.more-sheet h3{font-size:20px;margin:0 3px 10px}.more-sheet>a,.more-sheet>button{width:100%;border:0;background:#fff;display:grid;grid-template-columns:48px 1fr 18px;gap:10px;align-items:center;text-align:left;padding:10px 3px;border-top:1px solid #edf2f4}.sheet-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center}.sheet-icon.reward{background:#fff0d0;color:#d79a28}.sheet-icon.garden{background:#e8f9ed;color:#3ea961}.sheet-icon.logout{background:#f0f4f6;color:#6e8794}.more-sheet strong{display:block;font-size:14px}.more-sheet span{display:block;font-size:12px;color:#8297a2;margin-top:2px}.more-sheet b{font-size:24px;color:#9aabb3}.hero-card{min-height:0;grid-template-columns:1fr;border-radius:24px}.hero-copy{padding:24px 18px 20px}.hero-eyebrow{font-size:11px}.hero-copy h1{font-size:38px;margin:8px 0 10px}.hero-copy p{font-size:15px;line-height:1.6}.hero-actions{display:grid;grid-template-columns:1fr;margin-top:17px}.primary-btn,.secondary-btn{width:100%;font-size:14px}.hero-visual{height:240px}.hero-score{right:12px;top:12px}.hero-progress{right:12px;bottom:12px;width:95px;height:95px;border-radius:23px}.hero-progress svg{width:77px;height:77px}.section-head{padding:2px 2px 0}.section-head h2{font-size:22px}.section-head a{font-size:12px}.task-card,.day-task{grid-template-columns:54px 46px minmax(0,1fr) 34px;gap:8px;padding:10px}.time-col strong,.day-time{font-size:12px}.task-image{width:44px;height:44px;border-radius:13px}.task-text strong{font-size:14px}.task-text span{font-size:12px}.point-chip{display:none}.check-box{width:30px;height:30px}.dashboard-bottom{gap:12px}.mini-panel{border-radius:22px;padding:15px}.week-bars{gap:5px}.week-bars i{height:82px}.reward-mini{grid-template-columns:100px 1fr}.reward-mini-img{width:100px;height:92px}.page-heading{border-radius:23px;padding:17px;gap:11px;align-items:flex-start}.heading-icon{width:48px;height:48px;border-radius:15px}.page-heading>div>span{font-size:10.5px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px;line-height:1.55}.today-summary{grid-template-columns:1fr 1fr;padding:14px 15px;gap:10px}.summary-progress{grid-column:1/-1;grid-row:2}.today-summary strong{font-size:19px}.day-label{padding:14px;border-radius:20px}.day-label>span{font-size:28px}.day-label h3{font-size:19px}.day-task{grid-template-columns:52px 44px minmax(0,1fr) 32px}.week-table-wrap{border-radius:22px}.week-summary{grid-template-columns:1fr}.score-strip{grid-template-columns:1fr 1fr;gap:8px}.score-strip article{padding:12px;border-radius:18px}.score-strip article>span{width:40px;height:40px}.score-strip small{font-size:11px}.score-strip strong{font-size:17px}.rule-panel{border-radius:22px}.achievement-row{gap:10px}.chart-card,.badges-card{border-radius:22px;padding:15px}.badge-list{grid-template-columns:1fr}.wallet-banner{display:block;padding:16px;border-radius:22px}.wallet-banner p{margin-top:10px}.reward-grid-r2{grid-template-columns:1fr;gap:11px}.reward-card-r2{display:grid;grid-template-columns:140px 1fr;border-radius:22px}.reward-photo{height:100%;aspect-ratio:auto}.reward-body{padding:13px}.reward-body h2{font-size:17px}.reward-body p{font-size:12px;min-height:0}.garden-scene{height:470px;border-radius:23px}.garden-level-card{top:12px;right:12px;width:190px}.garden-message{left:12px;bottom:12px;width:calc(100% - 24px)}.garden-actions{grid-template-columns:1fr}.login-r2{display:block}.login-visual{padding:20px 14px 22px}.brand-login{margin:auto}.brand-login .brand-copy small{display:block}.welcome-block{text-align:center;margin:30px auto 18px}.welcome-block>span{font-size:10.5px}.welcome-block h1{font-size:43px;line-height:1.02;margin:12px 0}.welcome-block p{font-size:14px;line-height:1.6;max-width:340px;margin:auto}.login-portraits{grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.portrait-card{border-radius:20px}.portrait-photo{aspect-ratio:1/1;object-position:center 30%}.portrait-card span{padding:10px}.portrait-card strong{font-size:16px}.portrait-card small{font-size:11px}.login-note{justify-content:center;margin-top:13px}.login-form-panel{padding:18px 10px 26px}.form-shell{padding:19px 16px 20px;border-radius:24px;box-shadow:0 16px 38px rgba(58,100,124,.12)}.form-head{margin-bottom:18px}.lock-bubble{width:50px;height:50px;border-radius:16px}.form-head small{font-size:10.5px}.form-head h2{font-size:29px}.form-head p{font-size:13px}.form-shell label>span{font-size:13px}.input-r2{height:54px}.input-r2 input{font-size:16px}.login-submit-r2{height:56px}.privacy-note{font-size:11px}.parent-topbar{width:calc(100% - 12px);height:64px;margin-top:6px}.parent-topbar .brand-copy small{display:none}.parent-topbar>div>span{display:none}.parent-topbar button{padding:8px}.parent-main{width:calc(100% - 12px);margin:12px auto 30px}.parent-hero{padding:20px;border-radius:23px;min-height:170px}.parent-hero h1{font-size:31px}.parent-hero p{font-size:13px}.parent-heart{display:none}.parent-metrics{grid-template-columns:1fr 1fr;gap:8px}.parent-metrics article{padding:12px}.parent-metrics small{font-size:11px}.parent-metrics strong{font-size:16px}.parent-child-card{grid-template-columns:100px 1fr;padding:10px}.parent-child-photo{width:100px;height:105px}.parent-child-card h2{font-size:21px}.parent-coming>div{grid-template-columns:1fr}.parent-coming h2{font-size:18px}}
@media(max-width:390px){.welcome-block h1{font-size:38px}.portrait-card small{display:none}.hero-copy h1{font-size:34px}.reward-card-r2{grid-template-columns:120px 1fr}.parent-metrics{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.task-svg-icon{color:var(--secondary);background:linear-gradient(135deg,var(--soft),var(--soft2))}.task-svg-icon .ui-icon{width:26px;height:26px}.hero-photo{object-position:center 30%}
/* =========================================================
   CANY KIDS STAGE 2 — LIVE TASKS + POINTS ENGINE
   ========================================================= */
.live-notice{position:sticky;top:92px;z-index:40;padding:13px 17px;border-radius:17px;background:#effff4;border:1px solid #c8eed4;color:#28734a;font-size:14px;font-weight:850;box-shadow:0 10px 28px rgba(55,113,82,.12)}
.empty-live{padding:28px;border:1px dashed #ccdce4;border-radius:20px;text-align:center;color:#77919e;background:#fbfdfe;font-size:14px;line-height:1.6}
.time-col small{display:block;font-size:11px;color:#91a3ac;margin-top:3px}
.task-card.pending,.day-task.pending{background:linear-gradient(90deg,#fff,#fffaf0);border-color:#f2dfad}
.task-complete-btn,.live-state{min-width:108px;min-height:38px;border-radius:12px;border:0;padding:0 11px;font-size:12px;font-weight:950;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.task-complete-btn{background:linear-gradient(110deg,var(--primary),var(--secondary));color:#fff;cursor:pointer;box-shadow:0 8px 18px color-mix(in srgb,var(--secondary) 18%,transparent)}
.task-complete-btn:hover{transform:translateY(-1px)}
.live-state.approved{background:#e7faed;color:#2f8e51}
.live-state.pending{background:#fff2ce;color:#a57217;cursor:pointer}
.rule-action{border:0;border-radius:10px;background:linear-gradient(110deg,var(--primary),var(--secondary));color:#fff;min-height:32px;padding:0 9px;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}
.rule-action.pending{background:#fff1c8;color:#a5761c;display:inline-grid;place-items:center}
.rule-action.done{background:#e2f8e9;color:#2f8d50;display:inline-grid;place-items:center}
.tiny-check.wait{background:#fff1c6;border-color:#ebc563;color:#a57920}
.stage2-week-wrap{background:#fff}
.stage2-week-table{border-collapse:separate;border-spacing:0;min-width:1140px;width:100%}
.stage2-week-table th,.stage2-week-table td{border-right:1px solid #e4edf1;border-bottom:1px solid #e4edf1;padding:9px;text-align:center;vertical-align:top}
.stage2-week-table thead th{position:sticky;top:0;z-index:3;background:linear-gradient(180deg,#f9fcfd,#eef7fa);padding:12px 8px;color:#466b80}
.stage2-week-table thead th:first-child,.stage2-week-table tbody td:first-child{position:sticky;left:0;z-index:4;background:#f8fcfd;min-width:78px}
.stage2-week-table thead th strong{display:block;font-size:15px}.stage2-week-table thead th span{display:block;font-size:11px;color:#8da0aa;margin-top:2px}
.stage2-week-table tbody td:first-child strong{font-size:13px;color:#587789}
.live-week-cell{position:relative;min-height:92px;border-radius:15px;padding:8px 7px;background:#f8fbfc;display:grid;justify-items:center;align-content:start;gap:4px;min-width:125px}
.live-week-cell .task-image{width:39px;height:39px;border-radius:12px}.live-week-cell strong{font-size:12px;line-height:1.3}.live-week-cell small{font-size:10px;color:#8397a2}.live-week-cell>.week-state{position:absolute;right:5px;top:5px;width:21px;height:21px;border-radius:7px;display:grid;place-items:center;font-size:11px;font-weight:950}
.live-week-cell.approved{background:#eefbf2}.live-week-cell.approved>.week-state{background:#4fc56d;color:#fff}.live-week-cell.pending{background:#fff8e8}.live-week-cell.pending>.week-state{background:#f0c665;color:#7b5611}.week-empty{color:#c3d0d6}
.stage2-rules{grid-template-columns:1fr}.stage2-rules .rule-panel{min-width:0}.stage2-rules .rule-scroll{overflow-x:auto}.stage2-rules table{min-width:900px}
.bar-chart>div{position:relative}.bar-chart>div>small{position:absolute;left:50%;transform:translateX(-50%);top:-2px;font-size:9px;color:#7b929e;white-space:nowrap}
.ledger-card{background:#fff;border:1px solid #e5eef2;border-radius:25px;padding:19px;box-shadow:0 12px 30px rgba(61,101,126,.08)}
.ledger-list{display:grid;margin-top:14px}.ledger-list>div{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf2f4}.ledger-list>div:last-child{border-bottom:0}.ledger-points{height:36px;border-radius:11px;display:grid;place-items:center;font-size:12px;font-weight:950}.ledger-points.plus{background:#e4f9eb;color:#2f8c50}.ledger-points.minus{background:#fff0f1;color:#bd4e5a}.ledger-list strong{display:block;font-size:13px}.ledger-list small{display:block;font-size:10px;color:#8da0aa;margin-top:2px}
/* Parent Stage 2 */
.parent-tabs{display:flex;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #e4edf1;border-radius:21px;padding:7px;box-shadow:0 10px 26px rgba(61,101,126,.07)}
.parent-tabs button{border:0;background:transparent;color:#728b98;min-height:43px;padding:0 14px;border-radius:14px;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:900;cursor:pointer}.parent-tabs button.active{background:linear-gradient(120deg,#ebf8ff,#f2fff4);color:#32729a;box-shadow:inset 0 0 0 1px #d7eaf2}
.parent-section-card{background:#fff;border:1px solid #e4edf1;border-radius:27px;padding:22px;box-shadow:0 14px 34px rgba(61,101,126,.08)}
.parent-section-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px}.parent-section-heading span{font-size:11px;letter-spacing:.12em;color:#6590a7;font-weight:950}.parent-section-heading h2{font-size:27px;letter-spacing:-.035em;margin:3px 0}.parent-section-heading p{font-size:13px;line-height:1.55;color:#7e95a1;margin:5px 0 0}
.approval-list{display:grid;gap:9px}.approval-list article{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e7eef2;border-radius:18px;padding:11px 12px;background:#fbfdfe}.child-mini{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:18px;font-weight:950}.child-mini.poca{background:linear-gradient(135deg,#cdf5d8,#d8edff);color:#338b58}.child-mini.sunny{background:linear-gradient(135deg,#ffd9eb,#e4dcff);color:#c35f9a}.approval-list strong{display:block;font-size:14px}.approval-list small{display:block;font-size:11px;color:#879ba5;margin-top:3px}.approval-actions{display:flex;gap:7px}.approval-actions button{border:0;border-radius:11px;min-height:38px;padding:0 12px;font-size:12px;font-weight:900;color:#fff;background:#43b96b;cursor:pointer}.approval-actions button.reject{background:#fff0f2;color:#b34c5b;border:1px solid #f5d2d8}
.penalty-children{display:grid;grid-template-columns:1fr 1fr;gap:16px}.penalty-child{border:1px solid #e5edf1;border-radius:22px;padding:16px;background:#fbfdfe}.penalty-child header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.penalty-child header>span{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:18px;font-weight:950}.penalty-child.poca header>span{background:#dff9e7;color:#348d59}.penalty-child.sunny header>span{background:#ffe0ef;color:#c75f9b}.penalty-child header strong{display:block;font-size:16px}.penalty-child header small{font-size:11px;color:#8499a4}.penalty-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.penalty-buttons button{border:1px solid #f2dadd;background:#fff7f8;color:#76545b;border-radius:13px;padding:9px 10px;text-align:left;cursor:pointer}.penalty-buttons button:hover:not(:disabled){border-color:#eaa9b3;background:#fff0f2}.penalty-buttons button:disabled{opacity:.48;cursor:not-allowed}.penalty-buttons strong{display:block;font-size:12px}.penalty-buttons span{display:block;font-size:10px;color:#b45d6b;margin-top:2px}
.schedule-head{align-items:flex-start}.add-task-btn{border:0;border-radius:13px;background:linear-gradient(110deg,#42b96c,#4194df);color:#fff;min-height:42px;padding:0 15px;font-size:12px;font-weight:950;cursor:pointer}.add-task-btn:disabled{opacity:.4}.child-switcher{display:flex;gap:8px;margin-bottom:16px}.child-switcher button{border:1px solid #dae7ed;background:#fff;min-height:41px;border-radius:13px;padding:0 17px;font-size:13px;font-weight:900;color:#667f8d;cursor:pointer}.child-switcher button.poca.active{background:#e6faec;border-color:#a5dcb6;color:#318753}.child-switcher button.sunny.active{background:#fff0f7;border-color:#efb8d5;color:#bd5791}
.plan-list{display:grid;gap:9px}.plan-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #e5edf1;border-radius:18px;padding:11px 13px;background:#fcfefe}.plan-item.disabled{opacity:.5}.plan-icon .task-image{width:50px;height:50px}.plan-main>div:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center}.plan-main h3{font-size:14px;margin:0}.plan-main p{grid-column:2;font-size:11px;color:#8499a4;margin:2px 0 0}.plan-type{grid-row:1/3;border-radius:999px;background:#eef7fa;color:#658593;padding:5px 7px;font-size:10px;font-weight:900}.schedule-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.schedule-chips span{border-radius:999px;background:#f3f7f9;color:#68818e;padding:4px 7px;font-size:9px;font-weight:800}.edit-plan-btn{border:1px solid #d8e5eb;background:#fff;border-radius:11px;min-height:36px;padding:0 12px;color:#517789;font-size:11px;font-weight:900;cursor:pointer}
.modal-backdrop{position:fixed;inset:0;z-index:130;background:rgba(28,53,68,.35);backdrop-filter:blur(5px)}.activity-modal{position:fixed;z-index:140;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100% - 24px));max-height:88vh;overflow:auto;background:#fff;border:1px solid #fff;border-radius:28px;box-shadow:0 30px 90px rgba(30,61,79,.28);padding:22px}.activity-modal>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.activity-modal>header span{font-size:10px;letter-spacing:.13em;font-weight:950;color:#6590a7}.activity-modal>header h2{font-size:26px;margin:3px 0}.activity-modal>header button{border:0;width:38px;height:38px;border-radius:12px;background:#f2f6f8;font-size:23px;color:#718a97;cursor:pointer}.activity-modal form>label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#5b7685;margin:12px 0}.activity-modal input,.activity-modal select{height:45px;border:1px solid #d9e6ec;border-radius:12px;background:#fbfdfe;padding:0 11px;color:#35586b;font:inherit;outline:0}.activity-modal input:focus,.activity-modal select:focus{border-color:#78b7d7;box-shadow:0 0 0 4px #78b7d71d}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#5b7685}.toggle-label{display:flex!important;align-items:center;grid-template-columns:auto 1fr!important}.toggle-label input{width:20px;height:20px}.schedule-editor{border-top:1px solid #e8eef1;margin-top:15px;padding-top:14px}.schedule-editor-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.schedule-editor-head strong{font-size:14px}.schedule-editor-head button{border:0;background:#ecf8ff;color:#407ea1;border-radius:10px;min-height:34px;padding:0 10px;font-size:11px;font-weight:900;cursor:pointer}.schedule-edit-row{display:grid;grid-template-columns:84px 1fr 1fr 125px 36px;gap:7px;margin:7px 0}.schedule-edit-row button{border:0;border-radius:10px;background:#fff0f2;color:#bd5260;font-size:18px;cursor:pointer}.activity-modal footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.activity-modal footer button{min-height:44px;border-radius:13px;padding:0 16px;font-size:12px;font-weight:950;border:0;cursor:pointer}.save-modal{background:linear-gradient(110deg,#42b96c,#4194df);color:#fff}.secondary-modal{background:#eef4f6;color:#69838f}
@media(max-width:900px){.penalty-children{grid-template-columns:1fr}.parent-tabs{overflow-x:auto;flex-wrap:nowrap}.parent-tabs button{white-space:nowrap}.approval-list article{grid-template-columns:44px 1fr}.approval-actions{grid-column:1/-1;justify-content:flex-end}.plan-item{grid-template-columns:50px 1fr}.edit-plan-btn{grid-column:1/-1;justify-self:end}.schedule-edit-row{grid-template-columns:70px 1fr 1fr}.schedule-edit-row select:nth-of-type(2){grid-column:1/3}.schedule-edit-row button{grid-column:3}.stage2-rules table{min-width:820px}}
@media(max-width:560px){.task-card,.day-task{grid-template-columns:58px 46px minmax(0,1fr);gap:8px}.task-card .point-chip,.day-task .point-chip{grid-column:2/3;min-width:0}.task-card .task-complete-btn,.task-card .live-state,.day-task .task-complete-btn,.day-task .live-state{grid-column:3;justify-self:stretch;min-height:35px;min-width:0}.task-image{width:44px;height:44px}.task-text strong{font-size:14px}.task-text span{font-size:12px}.today-summary{grid-template-columns:1fr 1fr}.today-summary .summary-progress{grid-column:1/-1;grid-row:2}.day-group{grid-template-columns:1fr}.day-label{padding:14px}.day-label>span{font-size:27px}.day-label h3{font-size:18px}.parent-section-card{padding:15px;border-radius:22px}.parent-section-heading h2{font-size:22px}.penalty-buttons{grid-template-columns:1fr}.schedule-head{display:block}.add-task-btn{margin-top:10px}.activity-modal{padding:16px;border-radius:22px}.form-grid{grid-template-columns:1fr}.schedule-edit-row{grid-template-columns:65px 1fr}.schedule-edit-row input:nth-of-type(2){grid-column:1/3}.schedule-edit-row select:nth-of-type(2){grid-column:1/2}.schedule-edit-row button{grid-column:2}.parent-tabs button{font-size:11px;padding:0 10px}.live-notice{top:74px;font-size:12px}.stage2-week-wrap{margin-left:-2px;margin-right:-2px}.ledger-card{padding:15px}}
.schedule-add-actions{display:flex;gap:7px;flex-wrap:wrap}.add-task-btn.soft{background:#eef7fa;color:#457c98;border:1px solid #d6e9f1}.add-task-btn.danger-soft{background:#fff0f2;color:#b34f5d;border:1px solid #f2d0d6}
.penalty-child header{position:relative}.mini-add-rule{margin-left:auto;border:1px solid #f0d1d6;background:#fff3f5;color:#b15160;border-radius:10px;min-height:34px;padding:0 9px;font-size:10px;font-weight:900;cursor:pointer}

/* Stage 2 parent direct awards + editable penalty rules */
.points-admin-stack{display:grid;gap:18px}.award-admin-card{background:linear-gradient(180deg,#fff,#fbfffc)}
.award-child{background:linear-gradient(180deg,#fbfffc,#f8fcff)}
.award-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.award-buttons button{border:1px solid #d7eadc;background:#f3fff6;color:#356349;border-radius:14px;padding:10px 11px;text-align:left;cursor:pointer;transition:.18s ease}.award-buttons button:hover:not(:disabled){transform:translateY(-1px);border-color:#98d7aa;background:#ebfff0;box-shadow:0 8px 18px rgba(67,161,93,.10)}.award-buttons button:disabled{opacity:.47;cursor:not-allowed}.award-buttons button.is-pending{border-color:#efcf83;background:#fff9e8;color:#7d662d}.award-buttons strong{display:block;font-size:12px}.award-buttons span{display:block;font-size:10px;color:#4b9b65;margin-top:2px}.award-buttons .is-pending span{color:#a27e2f}
.rule-action-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:6px}.rule-action-row>.rule-edit-btn{display:grid;place-items:center;border:1px solid #dfe8ed;background:#f8fbfd;color:#6e8795;border-radius:11px;padding:0;min-height:100%;cursor:pointer}.rule-action-row>.rule-edit-btn:hover{background:#eef6fa;color:#39789d;border-color:#c9dde8}.rule-action-row>.rule-edit-btn:disabled{opacity:1;cursor:pointer}
@media(max-width:560px){.award-buttons{grid-template-columns:1fr}.award-buttons strong,.penalty-buttons strong{font-size:13px}.award-buttons span,.penalty-buttons span{font-size:11px}}
.negative-plan-section{margin-top:22px;padding-top:20px;border-top:1px solid #e7eef2}.negative-plan-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.negative-plan-title span{font-size:10px;font-weight:950;letter-spacing:.12em;color:#a35a67}.negative-plan-title strong{font-size:12px;color:#78909d}.negative-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.negative-plan-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #efdfe2;background:#fffafb;border-radius:14px;padding:10px}.negative-plan-item.disabled{opacity:.52}.negative-plan-item>div{min-width:0}.negative-plan-item span{display:block;font-size:10px;font-weight:950;color:#bd5c6c}.negative-plan-item strong{display:block;font-size:13px;margin-top:2px;color:#654d52}.negative-plan-item small{display:block;font-size:10px;color:#8d777b;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:560px){.negative-plan-grid{grid-template-columns:1fr}.negative-plan-item strong{font-size:14px}.negative-plan-item small{font-size:11px}}
.parent-ledger-admin{overflow:hidden}.parent-ledger-children{display:grid;grid-template-columns:1fr 1fr;gap:15px}.parent-ledger-child{border:1px solid #e4edf1;border-radius:19px;overflow:hidden;background:#fbfdfe}.parent-ledger-child>header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #e8eff2}.parent-ledger-child>header strong{font-size:15px}.parent-ledger-child>header span{font-size:13px;font-weight:950;color:#3c8c61}.parent-ledger-child.sunny>header span{color:#c76099}.parent-ledger-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto 42px;gap:8px;align-items:center;padding:9px 12px;border-bottom:1px solid #edf2f4}.parent-ledger-row:last-child{border-bottom:0}.parent-ledger-row .ledger-dot{width:8px;height:8px;border-radius:50%}.parent-ledger-row .ledger-dot.plus{background:#58bc78}.parent-ledger-row .ledger-dot.minus{background:#e47787}.parent-ledger-row>div{min-width:0}.parent-ledger-row>div strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.parent-ledger-row>div small{display:block;font-size:9px;color:#8a9da7;margin-top:2px}.parent-ledger-row>b{font-size:12px}.parent-ledger-row>b.plus{color:#39955a}.parent-ledger-row>b.minus{color:#c55d6d}.parent-ledger-row>button{border:1px solid #e3e9ec;background:#fff;color:#7c8f98;border-radius:9px;height:30px;font-size:9px;font-weight:900;cursor:pointer}.parent-ledger-row>button:hover{border-color:#e3a6af;color:#b75362;background:#fff6f7}.parent-ledger-row>i{width:42px}
@media(max-width:900px){.parent-ledger-children{grid-template-columns:1fr}}@media(max-width:560px){.parent-ledger-row{grid-template-columns:9px minmax(0,1fr) auto 40px;padding:10px}.parent-ledger-row>div strong{font-size:13px}.parent-ledger-row>div small{font-size:10px}}

/* ============================================================
   CANY KIDS STAGE 2 HF1 - DESKTOP ACTION + WEEK BOARD REFINEMENT
   Scope:
   - Desktop task action stays fully inside card.
   - Week board fits all 7 days on desktop.
   - Week cell layout is always icon above, title below.
   - Mobile task action layout remains unchanged.
   ============================================================ */

/* Force a clear vertical hierarchy in every weekly cell on all devices. */
.live-week-cell{
  grid-template-columns:1fr;
  grid-auto-flow:row;
  grid-auto-rows:auto;
  justify-items:center;
  align-content:start;
  text-align:center;
}
.live-week-cell .task-image{
  grid-column:1;
  grid-row:1;
  justify-self:center;
  margin:0 auto 2px;
}
.live-week-cell>strong{
  grid-column:1;
  grid-row:2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  width:100%;
  max-width:100%;
  text-align:center;
  word-break:normal;
  overflow-wrap:anywhere;
}
.live-week-cell>small{
  grid-column:1;
  grid-row:3;
  width:100%;
  text-align:center;
}

/* Desktop/tablet task rows: reserve a real action column instead of the old 42px checkbox slot. */
@media (min-width:641px){
  .task-card,
  .day-task{
    overflow:hidden;
    min-width:0;
  }
  .task-card{
    grid-template-columns:68px 50px minmax(0,1fr) minmax(62px,78px) minmax(104px,126px);
    gap:10px;
  }
  .day-task{
    grid-template-columns:60px 50px minmax(0,1fr) minmax(62px,78px) minmax(104px,126px);
    gap:10px;
  }
  .task-card>* ,
  .day-task>*{
    min-width:0;
  }
  .task-card .point-chip,
  .day-task .point-chip{
    width:100%;
    min-width:0;
    max-width:78px;
    padding:7px 6px;
    font-size:11.5px;
    justify-self:center;
  }
  .task-card .task-complete-btn,
  .task-card .live-state,
  .day-task .task-complete-btn,
  .day-task .live-state{
    width:100%;
    min-width:0;
    max-width:126px;
    min-height:38px;
    padding:0 8px;
    font-size:11.5px;
    justify-self:stretch;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Desktop week board: all 7 days must fit inside the content frame. */
@media (min-width:901px){
  .stage2-week-wrap{
    overflow-x:hidden;
  }
  .stage2-week-table{
    width:100%;
    min-width:0;
    table-layout:fixed;
  }
  .stage2-week-table th,
  .stage2-week-table td{
    padding:7px 5px;
  }
  .stage2-week-table thead th:first-child,
  .stage2-week-table tbody td:first-child{
    width:64px;
    min-width:64px;
    max-width:64px;
  }
  .stage2-week-table thead th{
    padding:10px 4px;
  }
  .stage2-week-table thead th strong{
    font-size:14px;
  }
  .stage2-week-table thead th span{
    font-size:10px;
  }
  .live-week-cell{
    width:100%;
    min-width:0;
    min-height:86px;
    padding:7px 4px 6px;
    gap:3px;
    border-radius:13px;
  }
  .live-week-cell .task-image{
    width:35px;
    height:35px;
    border-radius:10px;
  }
  .live-week-cell>strong{
    font-size:11px;
    line-height:1.18;
    min-height:26px;
  }
  .live-week-cell>small{
    font-size:9.5px;
    line-height:1.15;
  }
  .live-week-cell>.week-state{
    right:4px;
    top:4px;
    width:19px;
    height:19px;
    border-radius:6px;
    font-size:10px;
  }
}

/* Medium desktop/tablet keeps horizontal scrolling rather than crushing content. */
@media (min-width:641px) and (max-width:900px){
  .stage2-week-table{
    min-width:900px;
    table-layout:fixed;
  }
  .live-week-cell{
    min-width:0;
  }
}


/* ============================================================
   CANY KIDS STAGE 2 HF2 - WEEK CELL ROOT FIX + PARENT NAV/WORLD
   ============================================================ */
/* Root cause fix: task image is also a direct <span>. Status now has .week-state. */
.live-week-cell>.task-image{
  position:static;
  inset:auto;
  right:auto;
  top:auto;
  grid-column:1;
  grid-row:1;
  justify-self:center;
  margin:0 auto 4px;
  z-index:1;
}
.live-week-cell>.week-state{
  position:absolute;
  right:5px;
  top:5px;
  width:21px;
  height:21px;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:950;
  z-index:3;
}
.live-week-cell>strong{grid-column:1;grid-row:2;margin-top:0;padding:0 2px;}
.live-week-cell>small{grid-column:1;grid-row:3;margin-top:0;}
.live-week-cell.approved>.week-state{background:#4fc56d;color:#fff}
.live-week-cell.pending>.week-state{background:#f0c665;color:#7b5611}

/* Parent tabs must always be interactive and above decorative layers. */
.parent-tabs{position:relative;z-index:20;pointer-events:auto}
.parent-tabs button{position:relative;z-index:21;pointer-events:auto;touch-action:manipulation}

/* Enter child world from parent dashboard. */
.enter-world-btn{margin-top:12px;min-height:42px;border:0;border-radius:13px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(110deg,#42b96c,#4194df);color:#fff;font-size:12px;font-weight:950;cursor:pointer;box-shadow:0 9px 20px rgba(65,145,191,.18)}
.parent-child-card.sunny .enter-world-btn{background:linear-gradient(110deg,#ef70b5,#936be2)}
.enter-world-btn:hover{transform:translateY(-1px)}

/* Parent read-only child-world preview. */
.parent-preview-mode{padding-top:0}
.parent-preview-banner{position:relative;z-index:70;width:min(1360px,calc(100% - 28px));margin:12px auto 0;padding:11px 14px;border-radius:18px;background:linear-gradient(100deg,#fff9dd,#fff,#eef8ff);border:1px solid #f0e3ae;box-shadow:0 10px 28px rgba(79,91,99,.10);display:flex;align-items:center;justify-content:space-between;gap:14px}
.parent-preview-banner>div{display:flex;align-items:center;gap:10px}.parent-preview-banner>div>span{width:40px;height:40px;border-radius:13px;background:#fff1ba;color:#c59128;display:grid;place-items:center}.parent-preview-banner strong{display:block;font-size:14px;color:#355b70}.parent-preview-banner small{display:block;font-size:11px;color:#7b909b;margin-top:2px}.parent-preview-banner button{border:0;border-radius:12px;min-height:40px;padding:0 13px;background:#eef5f8;color:#507487;font-size:11px;font-weight:950;cursor:pointer}
.parent-preview-mode [data-preview-disabled]{pointer-events:none;opacity:.68;cursor:default}
.parent-preview-mode .task-complete-btn[data-preview-disabled]{background:#edf3f5;color:#78909b}

@media(max-width:640px){
  .parent-preview-banner{width:calc(100% - 12px);margin-top:6px;padding:10px 11px;border-radius:16px;align-items:flex-start}
  .parent-preview-banner small{font-size:10px;line-height:1.35}
  .parent-preview-banner button{min-height:38px;padding:0 10px;font-size:10px;white-space:nowrap}
  .enter-world-btn{width:100%;font-size:12px}
}

/* =========================================================
   CANY KIDS STAGE 3 — REWARDS, ACHIEVEMENTS & MAGIC GARDEN
   ========================================================= */
.stage3-wallet{background:linear-gradient(135deg,#fff9dc,#fff 55%,#edf8ff);border:1px solid #f3e4a6}
.live-reward-card{position:relative;overflow:hidden}
.live-reward-card .reward-body>div:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
.live-reward-card button{border:0;border-radius:14px;padding:11px 15px;font-weight:900;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;cursor:pointer;box-shadow:0 9px 22px color-mix(in srgb,var(--secondary) 22%,transparent)}
.live-reward-card button:disabled{cursor:not-allowed;background:#e7edf1;color:#8496a2;box-shadow:none}
.stage3-history-card,.garden-inventory,.garden-badges{margin-top:18px;background:#fff;border:1px solid #e9f0f4;border-radius:24px;padding:22px;box-shadow:0 18px 46px rgba(57,91,111,.08)}
.redemption-list{display:grid;gap:10px;margin-top:14px}
.redemption-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px;border:1px solid #edf2f5;border-radius:16px;background:#fbfdfe}
.redemption-thumb{width:54px;height:54px;object-fit:cover;border-radius:14px}
.redemption-row strong{display:block;font-size:14px;color:#36566b}.redemption-row small{display:block;margin-top:4px;font-size:12px;color:#7d919f}
.redemption-row>b{font-size:14px;color:#d29936;white-space:nowrap}.redemption-row button{border:0;border-radius:11px;background:#fff1f3;color:#b84f65;padding:8px 11px;font-weight:800;cursor:pointer}
.stage3-garden .garden-level-card{min-width:250px}.stage3-garden .garden-message{max-width:430px}
.garden-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}
.garden-item-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:start;padding:15px;border-radius:18px;border:1px solid #e9eff2;background:linear-gradient(145deg,#fff,#fbfeff)}
.garden-item-card.locked{opacity:.62}.garden-item-card.owned{background:linear-gradient(145deg,#f4fff7,#f5f9ff);border-color:#cfead9}
.garden-item-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#e9f9ef,#eaf4ff);color:var(--secondary)}
.garden-item-card small{font-size:10px;font-weight:950;letter-spacing:.08em;color:#8b9da8}.garden-item-card strong{display:block;margin-top:2px;font-size:15px;color:#35576b}.garden-item-card p{margin:5px 0 0;font-size:12px;line-height:1.5;color:#7d919d}
.garden-item-card>b,.garden-item-card>button{grid-column:1/-1;justify-self:stretch;border:0;border-radius:12px;min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:900}
.garden-item-card>b{background:#f0f3f5;color:#8999a3}.garden-item-card>button{cursor:pointer;background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff}.garden-item-card>button.equipped{background:#eaf8ef;color:#34835a;border:1px solid #cde9d7}
.earned-badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.mini-earned-badge{display:flex;align-items:center;gap:11px;padding:12px;border-radius:16px;background:linear-gradient(135deg,#fff9dc,#fff);border:1px solid #f1e3a7;color:#c99331}
.mini-earned-badge strong{display:block;color:#4d6370;font-size:14px}.mini-earned-badge small{display:block;margin-top:2px;color:#8295a0;font-size:11px;line-height:1.4}
.parent-tabs{overflow-x:auto;scrollbar-width:none}.parent-tabs::-webkit-scrollbar{display:none}.parent-tabs button{white-space:nowrap;flex:0 0 auto}
.stage3-parent-stack{display:grid;gap:16px}
.primary-small-btn{border:0;border-radius:13px;background:linear-gradient(135deg,#48b877,#4e92db);color:#fff;font-weight:900;padding:10px 14px;cursor:pointer}
.parent-redemption-list{display:grid;gap:10px;margin-top:14px}
.parent-redemption{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border-radius:18px;border:1px solid #e8eef2;background:#fbfdfe}
.parent-redemption.pending{border-color:#f0d9a1;background:#fffcf3}.parent-redemption.approved{border-color:#cce8d5;background:#f5fff8}
.parent-redemption-img{width:70px;height:70px;border-radius:16px;object-fit:cover}.parent-redemption small{font-size:11px;color:#8295a0}.parent-redemption h3{margin:3px 0;font-size:16px;color:#36566b}.parent-redemption p{margin:0;font-size:12px;color:#6f8795}.parent-redemption em{display:block;margin-top:5px;font-size:11px;color:#8b6d7a}
.redemption-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.redemption-actions button{border:0;border-radius:11px;padding:9px 12px;font-weight:900;cursor:pointer}.redemption-actions .approve{background:#e7f8ed;color:#33825a}.redemption-actions .reject{background:#fff0f2;color:#b54c63}.redemption-actions span{font-size:12px;font-weight:800;color:#7b8d98}
.parent-reward-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.parent-reward-item{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #e9eff2;border-radius:17px}.parent-reward-item.inactive{opacity:.55}.parent-reward-thumb{width:66px;height:58px;object-fit:cover;border-radius:13px}.parent-reward-item small,.parent-reward-item span{display:block;font-size:11px;color:#8295a0}.parent-reward-item strong{display:block;font-size:14px;color:#38576a;margin:2px 0}.parent-reward-item button{border:0;border-radius:10px;background:#edf5fb;color:#51748b;padding:8px 10px;font-weight:800;display:flex;gap:5px;align-items:center;cursor:pointer}
.parent-garden-children{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.parent-garden-child{padding:16px;border-radius:20px;border:1px solid #e8eef2;background:#fff}.parent-garden-child.poca{background:linear-gradient(145deg,#f3fff6,#f1f8ff)}.parent-garden-child.sunny{background:linear-gradient(145deg,#fff5fb,#f7f2ff)}.parent-garden-child header{display:flex;align-items:center;gap:10px}.parent-garden-child header>span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#fff;font-weight:950;color:#56778b}.parent-garden-child header strong{display:block;color:#38576a}.parent-garden-child header small{display:block;font-size:11px;color:#8295a0}.garden-admin-level{margin-top:14px}.garden-admin-level>b{font-size:20px;color:#3e6175}.garden-admin-level>span{display:block;margin-top:5px;font-size:11px;color:#8295a0}.garden-admin-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.garden-admin-badges span{display:flex;align-items:center;gap:5px;padding:6px 8px;border-radius:10px;background:#fff;border:1px solid #e8eef2;font-size:10px;color:#5d7482}.garden-admin-badges small{font-size:11px;color:#8a9aa4}
.reward-editor textarea{min-height:90px;resize:vertical;border:1px solid #dce7ed;border-radius:13px;padding:11px;font:inherit;color:#3e5c6d}
@media(max-width:820px){.garden-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.parent-reward-catalog,.parent-garden-children{grid-template-columns:1fr}.parent-redemption{grid-template-columns:60px minmax(0,1fr)}.parent-redemption-img{width:60px;height:60px}.redemption-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:560px){.garden-item-grid,.earned-badge-grid{grid-template-columns:1fr}.redemption-row{grid-template-columns:48px minmax(0,1fr) auto}.redemption-thumb{width:48px;height:48px}.redemption-row button{grid-column:2/-1;justify-self:start}.stage3-history-card,.garden-inventory,.garden-badges{padding:15px;border-radius:20px}.parent-tabs{padding-bottom:5px}.parent-tabs button{font-size:11px}.parent-redemption{padding:10px}.parent-reward-item{grid-template-columns:55px minmax(0,1fr)}.parent-reward-thumb{width:55px;height:50px}.parent-reward-item button{grid-column:2;justify-self:start}}


/* Stage 3 HF2 — Live Magic Garden */
.live-magic-garden{isolation:isolate;background:#dff7ef}
.live-magic-garden .garden-bg{position:absolute;inset:0;z-index:0;display:block}
.live-magic-garden .garden-overlay{z-index:1;pointer-events:none}
.garden-live-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.garden-live-layer.empty{display:flex;align-items:flex-end;justify-content:center;padding:0 20px 105px}
.garden-scene-empty{display:flex;align-items:center;gap:10px;max-width:390px;padding:12px 15px;border:1px solid rgba(255,255,255,.94);border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 14px 34px rgba(50,93,112,.15);backdrop-filter:blur(12px);color:#46697a}
.garden-scene-empty>span{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#eaf9ee;color:#45a768;flex:0 0 auto}
.garden-scene-empty strong{display:block;font-size:13px}.garden-scene-empty small{display:block;margin-top:2px;font-size:11px;color:#7d939e;line-height:1.35}
.garden-equipped-count{position:absolute;left:20px;top:20px;display:flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.96);box-shadow:0 10px 24px rgba(50,91,112,.13);color:#3e815d;font-size:11px;font-weight:900;backdrop-filter:blur(10px)}
.garden-decor{position:absolute;z-index:4;pointer-events:auto;transform-origin:center bottom;filter:drop-shadow(0 12px 16px rgba(48,77,66,.12));transition:transform .22s ease,filter .22s ease;animation:gardenDecorIn .42s cubic-bezier(.2,.8,.25,1) both}
.garden-decor:hover{transform:translateY(-4px) scale(1.025);filter:drop-shadow(0 18px 20px rgba(48,77,66,.2))}
.garden-decor svg{display:block;width:100%;height:auto;overflow:visible}
.garden-decor-label{position:absolute;left:50%;bottom:-4px;transform:translate(-50%,100%);white-space:nowrap;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.96);box-shadow:0 8px 18px rgba(48,80,98,.14);font-size:10px;font-weight:900;color:#4f7182;opacity:0;transition:.18s}
.garden-decor:hover .garden-decor-label{opacity:1}
.garden-decor-sunflower_patch{left:2.5%;bottom:3.5%;width:18.5%;min-width:180px;z-index:7}
.garden-decor-blue_butterflies{left:32%;top:14%;width:17%;min-width:150px;z-index:8;animation:gardenDecorIn .42s ease both,gardenFloat 4.8s ease-in-out infinite .5s}
.garden-decor-magic_tree{right:2.5%;bottom:3%;width:20%;min-width:205px;z-index:6}
.garden-decor-rainbow_gate{left:4%;top:7%;width:20%;min-width:210px;z-index:2;opacity:.96}
.garden-decor-garden_bench{left:29%;bottom:4.5%;width:18%;min-width:185px;z-index:8}
.garden-decor-bird_house{right:23%;bottom:16%;width:12.5%;min-width:130px;z-index:7}
.garden-decor-magic_fountain{left:49%;bottom:4.5%;width:17%;min-width:180px;z-index:8}
.garden-generic-decor{display:grid;place-items:center;width:90px;height:90px;border-radius:28px;background:rgba(255,255,255,.92);color:var(--secondary);box-shadow:0 12px 28px rgba(45,86,108,.15)}
.garden-butterfly-flight{transform-origin:center;animation:gardenWing 1.5s ease-in-out infinite alternate}
.garden-water-jets{animation:gardenWater 1.8s ease-in-out infinite alternate;transform-origin:center bottom}
.garden-star-twinkle{animation:gardenTwinkle 1.6s ease-in-out infinite alternate;transform-origin:center}
.live-magic-garden .garden-level-card,.live-magic-garden .garden-message{z-index:12}
.garden-item-card.is-equipped{box-shadow:0 12px 28px rgba(66,155,102,.12);border-color:#bde0c8;background:linear-gradient(145deg,#f1fff5,#f3fbff)}
.garden-item-state{display:inline-flex;align-items:center;gap:4px;margin-top:8px;padding:4px 7px;border-radius:999px;background:#e7f8ed;color:#358257;font-size:10px;font-weight:900}
.garden-item-card>button{gap:7px}.garden-item-card>button.equipped{background:#fff4e6;color:#a36c2c;border:1px solid #f0d8b8}.garden-item-card>button.equipped:hover{background:#ffedd7}
@keyframes gardenDecorIn{from{opacity:0;transform:translateY(18px) scale(.86)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes gardenFloat{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes gardenWing{from{transform:rotate(-2deg) scale(.98)}to{transform:rotate(2deg) scale(1.03)}}
@keyframes gardenWater{from{opacity:.7;transform:scaleY(.92)}to{opacity:1;transform:scaleY(1.05)}}
@keyframes gardenTwinkle{from{opacity:.65;transform:scale(.92)}to{opacity:1;transform:scale(1.08)}}
@media(max-width:900px){
 .garden-decor-sunflower_patch{width:22%;left:1%;min-width:155px}.garden-decor-magic_tree{width:23%;right:1%;min-width:180px}.garden-decor-rainbow_gate{width:23%;left:2%;min-width:175px}.garden-decor-garden_bench{left:26%;width:20%;min-width:155px}.garden-decor-magic_fountain{left:48%;width:19%;min-width:160px}.garden-decor-bird_house{right:22%;width:14%;min-width:115px}.garden-decor-blue_butterflies{left:29%;width:18%;min-width:135px}
}
@media(max-width:640px){
 .live-magic-garden{height:510px}
 .garden-equipped-count{left:10px;top:10px;font-size:10px;padding:6px 8px}
 .garden-decor-label{display:none}
 .garden-decor-sunflower_patch{left:-2%;bottom:4%;width:37%;min-width:0}.garden-decor-blue_butterflies{left:28%;top:19%;width:29%;min-width:0}.garden-decor-magic_tree{right:-3%;bottom:5%;width:36%;min-width:0}.garden-decor-rainbow_gate{left:-4%;top:13%;width:38%;min-width:0}.garden-decor-garden_bench{left:26%;bottom:7%;width:31%;min-width:0}.garden-decor-bird_house{right:20%;bottom:23%;width:23%;min-width:0}.garden-decor-magic_fountain{left:49%;bottom:7%;width:29%;min-width:0}
 .garden-live-layer.empty{padding-bottom:94px}.garden-scene-empty{max-width:310px;padding:10px 12px}.garden-scene-empty strong{font-size:12px}.garden-scene-empty small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.garden-decor,.garden-butterfly-flight,.garden-water-jets,.garden-star-twinkle{animation:none!important;transition:none!important}}



/* Production UI HF1 — Today columns, complete task imagery, Parent Points usability */
@media (min-width:901px){
  .day-group{grid-template-columns:255px minmax(0,1fr);gap:16px}
  .day-label{padding:18px 20px;align-items:center;min-width:0}
  .day-label>span{flex:0 0 auto}
  .day-label>div{min-width:0}
  .day-label h3{font-size:21px;white-space:nowrap}
  .day-label small{display:block;font-size:13px;white-space:nowrap;letter-spacing:.01em}
  .day-tasks{min-width:0}
  .day-task{grid-template-columns:54px 48px minmax(0,1fr) minmax(60px,74px) minmax(98px,116px);gap:9px;padding:11px 12px}
  .day-task .task-image{width:46px;height:46px;border-radius:14px}
  .day-task .task-text strong{font-size:14px}
  .day-task .task-text span{font-size:12px}
}
.task-image img{image-rendering:auto}

.parent-points-refresh{gap:18px}
.points-admin-hero{display:grid;grid-template-columns:62px minmax(0,1fr);gap:15px;align-items:center;background:linear-gradient(120deg,#f2fbff,#fff,#f7fff4);border:1px solid #dcecf2;border-radius:26px;padding:20px 22px;box-shadow:0 14px 34px rgba(61,101,126,.08)}
.points-admin-hero-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#fff0ba,#e8f5ff);color:#d79c27;box-shadow:inset 0 0 0 1px #fff}
.points-admin-hero span{display:block;font-size:11px;letter-spacing:.13em;font-weight:950;color:#6590a7}
.points-admin-hero h2{font-size:27px;margin:3px 0 4px;letter-spacing:-.03em;color:#31566c}
.points-admin-hero p{font-size:13px;line-height:1.55;color:#78909d;margin:0}
.award-admin-card{background:linear-gradient(180deg,#ffffff,#f5fff7);border-color:#dbeee1}
.penalty-admin-card{background:linear-gradient(180deg,#ffffff,#fff7f8);border-color:#f0dfe2}
.award-child.poca{background:linear-gradient(180deg,#fbfffc,#f2fbff)}
.award-child.sunny{background:linear-gradient(180deg,#fffafd,#fbf8ff)}
.award-buttons,.penalty-buttons{grid-template-columns:1fr 1fr;gap:9px}
.parent-point-action{width:100%;min-height:70px;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left!important;padding:9px 11px!important;border-radius:16px!important}
.parent-point-action .parent-rule-icon{display:block;min-width:0}
.parent-point-action .parent-rule-icon .task-image{width:46px;height:46px;border-radius:13px;background:#fff}
.parent-point-action .parent-rule-copy{display:block;min-width:0}
.parent-point-action .parent-rule-copy strong{display:block;font-size:13px!important;line-height:1.25;color:#405d6d;white-space:normal}
.parent-point-action .parent-rule-copy small{display:block;font-size:11px!important;line-height:1.3;margin-top:3px;color:#7e95a1}
.parent-point-action>b{min-width:44px;padding:7px 8px;border-radius:999px;text-align:center;font-size:12px;font-weight:950}
.parent-point-action.positive{border:1px solid #d8eadf!important;background:#f7fff9!important;color:#356349!important}
.parent-point-action.positive>b{background:#e2f8e9;color:#2f8c50}
.parent-point-action.positive:hover:not(:disabled){background:#eefff3!important;border-color:#9ed8ae!important;transform:translateY(-1px)}
.parent-point-action.positive.is-pending{border-color:#efd189!important;background:#fffaea!important}
.parent-point-action.positive.is-pending>b{background:#fff1c5;color:#a8781c}
.parent-point-action.negative{border:1px solid #f0d9dd!important;background:#fff9fa!important;color:#76545b!important}
.parent-point-action.negative>b{background:#ffe8eb;color:#b84f5c}
.parent-point-action.negative:hover:not(:disabled){background:#fff1f3!important;border-color:#e9adb5!important;transform:translateY(-1px)}
.parent-point-action:disabled{opacity:.54!important;filter:saturate(.75);cursor:not-allowed!important}
.rule-action-row{grid-template-columns:minmax(0,1fr) 38px;gap:7px}
.rule-action-row>.rule-edit-btn{min-height:70px;border-radius:13px}
.penalty-child header small{font-size:12px}
.penalty-child header strong{font-size:17px}
@media(max-width:900px){
  .points-admin-hero{grid-template-columns:52px 1fr;padding:17px}
  .points-admin-hero-icon{width:50px;height:50px;border-radius:16px}
  .points-admin-hero h2{font-size:23px}
}
@media(max-width:640px){
  .points-admin-hero{grid-template-columns:1fr;gap:10px}
  .points-admin-hero-icon{width:46px;height:46px}
  .award-buttons,.penalty-buttons{grid-template-columns:1fr}
  .parent-point-action{min-height:66px;grid-template-columns:46px minmax(0,1fr) auto;padding:8px 10px!important}
  .parent-point-action .parent-rule-icon .task-image{width:44px;height:44px}
  .rule-action-row>.rule-edit-btn{min-height:66px}
}
.parent-rule-icon,.parent-rule-copy{margin:0!important;color:inherit!important;font-size:inherit!important}.parent-rule-icon .task-image{margin:0!important}
