@font-face{font-family:Nunito;src:url('/nunito.woff2') format('woff2');font-weight:400 900;font-display:swap}
:root{--ink:#26352e;--muted:#5c675f;--blue:#2854bd;--deep:#1e4090;--lav:#f2f4f1;--line:#dce1da;--radius:16px;--shadow:none;color:var(--ink);font-family:Nunito,system-ui,sans-serif;font-weight:500;font-size:17px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:300px;background:#fff}
button,input,select{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #252955;outline-offset:4px}
main:focus,.question:focus,.feedback:focus{outline:0}
a{color:#3141c6;text-underline-offset:3px}
h1,h2,h3,p{margin:0}
h1,h2,h3,strong{font-weight:750}
h1{font-size:clamp(2.15rem,5vw,3.8rem);line-height:1.03;letter-spacing:-.035em;overflow-wrap:anywhere}
h2{font-size:1.3rem;line-height:1.18;letter-spacing:-.025em}
p{line-height:1.55}
small{font-size:.82rem}
svg,img{vertical-align:middle}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;z-index:30;background:#fff;border:2px solid var(--blue);padding:12px;top:10px;left:10px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:1.36rem;font-weight:750;letter-spacing:-.035em;white-space:nowrap}
.brand img{border-radius:11px;flex:none}
.brand-link{border:0;background:none;padding:0;border-radius:12px}
.topbar{background:#fff;border-bottom:1px solid var(--line)}
.top-inner{max-width:1152px;min-height:77px;margin:auto;padding:0 clamp(18px,4vw,38px);display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-button{border:1px solid var(--line);border-radius:30px;display:flex;align-items:center;gap:9px;background:#fff;padding:5px 14px 5px 5px;font-weight:700;max-width:44%}
.profile-button span:last-child:not(.avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.avatar{width:42px;height:42px;border-radius:50%;display:inline-grid;place-items:center;background:#e6e4ff;color:#352b88;font-weight:750;flex:none;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.profile-button .avatar{width:33px;height:33px}
.bottom-nav{position:fixed;z-index:5;left:0;right:0;bottom:0;padding:7px 14px max(7px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff}
.bottom-nav>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:650px;margin:auto}
.nav-item{border:0;border-radius:17px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:53px;padding:7px 4px;background:none;color:#515773;font-weight:700}
.nav-item.active,.nav-item:hover{background:#edeeff;color:#2f3bb7}
.main{max-width:1080px;margin:auto;padding:clamp(26px,5vw,58px) clamp(16px,4vw,40px) 110px}
.main--home{max-width:930px;padding-top:30px}
.page-heading{margin-bottom:28px}
.page-heading p{color:var(--muted);margin-top:12px;font-size:1.1rem}
.welcome{display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;gap:8px;padding:22px 35px 22px 38px;min-height:212px;border-radius:32px;background:#f5f4ee;isolation:isolate}
.welcome::after,.welcome::before{position:absolute;content:"";z-index:-1;border-radius:50%;border:1px solid #d9d6ff;width:330px;height:330px;right:-47px;top:-64px}
.welcome::before{width:284px;height:284px;right:-23px;top:-40px}
.welcome-copy{position:relative;z-index:1;min-width:0}
.welcome h1{margin:11px 0 8px}
.welcome p:not(.date-line){font-size:1.16rem;color:#414967}
.date-line{display:flex;align-items:center;gap:8px;color:#463fa1;font-size:.91rem;font-weight:750}
.welcome-art{width:min(29%,240px);flex:none;margin:-14px -4px -21px 0}
.glimt{display:block;width:100%;height:auto;overflow:visible}
.glimt-body,.glimt-eyes,.glimt-arm{transform-box:fill-box;transform-origin:center}
.glimt--wave .glimt-arm{transform-origin:20% 85%;animation:wave 900ms ease-in-out 2}
.glimt--wave .glimt-eyes,.glimt--think .glimt-eyes{animation:blink 3.7s linear 1}
.glimt--think .glimt-body{animation:bob 1.8s ease-in-out 1}
.glimt--happy .glimt-body{animation:pop 650ms cubic-bezier(.23,1,.32,1) 1}
@keyframes wave{0%,100%{transform:rotate(0)}40%{transform:rotate(-22deg)}75%{transform:rotate(8deg)}}
@keyframes blink{0%,64%,71%,100%{transform:scaleY(1)}67%{transform:scaleY(.07)}}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px) rotate(-3deg)}}
@keyframes pop{0%,100%{transform:scale(1)}40%{transform:translateY(-10px) scale(1.08)}75%{transform:scale(.96,1.05)}}
.demo-note{margin:0 2px 15px;display:flex;justify-content:space-between;align-items:center;gap:8px;color:#53587a;font-size:.82rem}
.demo-note button,.help-link{background:none;border:0;color:#3e45a7;min-height:42px;font-weight:700}
.demo-note button{text-decoration:underline;text-underline-offset:3px}
.main-actions{display:grid;gap:16px;margin-top:21px}
.action-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;text-align:left;border:1px solid transparent;border-radius:50px;padding:12px 18px 12px 14px;min-height:82px;transition:transform .13s,filter .13s}
.action-card:hover{filter:brightness(1.05);transform:translateY(-1px)}
.action-card:active{transform:translateY(3px)}
.action-card.blue{background:linear-gradient(105deg,#4359e7,#3448d6 72%);color:#fff;box-shadow:0 5px 0 #2937aa}
.action-card.orange{background:linear-gradient(110deg,#ffd080,#ffb154 75%);color:#462909;box-shadow:0 5px 0 #e48d30}
.action-card.purple{background:#f0eefe;color:#382d83;border-color:#dfdcfc;box-shadow:0 5px 0 #dfdcf8}
.card-icon,.action-arrow{display:grid;place-items:center;border-radius:50%;width:54px;height:54px;background:#ffffff25}
.orange .card-icon,.orange .action-arrow{background:#fff2daab}
.purple .card-icon{background:#dcd7fb}
.purple .action-arrow{background:#fff9}
.action-arrow{width:41px;height:41px}
.action-text{display:grid;gap:1px}
.action-text strong{font-size:1.36rem;line-height:1.18;letter-spacing:-.025em}
.action-text>span{font-size:.94rem;line-height:1.28;overflow-wrap:anywhere}
.help-link{display:flex;align-items:center;gap:8px;margin:22px auto 0;padding:5px 15px;border-radius:14px}
.help-link:hover{background:var(--lav)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:49px;padding:10px 17px;border-radius:16px;border:1px solid transparent;text-align:center;font-weight:750;line-height:1.25;transition:filter .15s,transform .15s}
.btn:active:not(:disabled){transform:translateY(2px)}
.btn:hover:not(:disabled){filter:brightness(.97)}
.primary{background:var(--blue);color:#fff;box-shadow:0 3px 0 var(--deep)}
.primary:disabled{background:#e8e9f1;color:#60667d;box-shadow:none}
.secondary{background:#f4f5f0;border-color:#dce1da;color:#314b39}
.text-btn{background:none;color:#314b39;padding-inline:9px}
.text-btn:hover{background:#f4f5f0}
.block{display:flex;width:100%}
.square{width:46px;height:46px;min-height:46px;padding:0;flex:none;border-radius:14px}
.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:24px;box-shadow:var(--shadow)}
.empty{padding:16px;background:#f6f6f2;border-radius:16px;color:var(--muted);margin:12px 0}
form{display:grid;gap:13px}
label{display:grid;gap:5px;font-weight:700;color:var(--ink)}
label small{display:inline;font-weight:700;color:var(--muted)}
input:not([type="checkbox"]),select{display:block;width:100%;min-width:0;min-height:50px;border:1px solid #cbd2c9;border-radius:13px;padding:9px 13px;background:#fff;color:var(--ink)}
input::placeholder{color:#656b83}
input[type="file"]{font-size:.86rem;padding:8px;max-width:100%}
input[type="checkbox"]{width:22px;height:22px;accent-color:var(--blue)}
.checkbox{display:flex;align-items:center;gap:9px;min-height:43px}
.form-error{color:#a02b3d;font-size:.91rem;font-weight:700}
.form-error:empty{display:none}
.auth-wrap{max-width:1210px;margin:auto;padding:clamp(18px,4vw,38px)}
.auth-header{margin-bottom:clamp(20px,5vw,62px)}
.auth-layout{display:grid;grid-template-columns:1.12fr 1fr;align-items:stretch;gap:clamp(28px,6vw,85px);max-width:1030px;margin:auto}
.auth-art{min-height:540px;position:relative;isolation:isolate;overflow:hidden;border-radius:39px;background:#eeedff;display:grid;justify-items:center;align-content:center;padding:40px 18px}
.auth-art .glimt{width:min(100%,320px);z-index:1}
.art-ring{position:absolute;z-index:-1;border:1px solid #d7d3ff;border-radius:50%;width:330px;height:330px;left:50%;top:46%;transform:translate(-50%,-50%)}
.ring-b{width:410px;height:410px}
.auth-speech{position:relative;background:#fff;border:1px solid #dad7f7;color:#342f76;border-radius:20px;padding:11px 17px;font-weight:750;box-shadow:0 4px 0 #dcd8fa}
.auth-speech::before{position:absolute;content:"";width:12px;height:12px;background:#fff;border-left:1px solid #dad7f7;border-top:1px solid #dad7f7;left:48%;top:-7px;transform:rotate(45deg)}
.auth-card{align-self:center}
.auth-card h1{margin-bottom:10px}
.auth-card>p{margin-bottom:19px;color:var(--muted);max-width:36ch}
.auth-card form button{margin-top:4px}
.auth-links{display:grid;gap:5px;margin-top:10px}

.calendar-layout,.network-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);align-items:start;gap:clamp(22px,4vw,48px)}
.circle-picker{max-width:360px;margin-bottom:20px}
.calendar{padding:15px}
.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:12px}
.calendar-head h2{text-align:center}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.weekday{text-align:center;color:var(--muted);font-size:.76rem;padding:6px 0}
.day{border:1px solid transparent;min-height:44px;padding:4px 0 7px;background:#f6f5ff;border-radius:11px;position:relative;font-weight:700}
.day:hover{border-color:var(--blue)}
.day.is-today{border-color:#6b6bd8}
.day.other-month{color:#63687f;background:#fff}
.day[aria-pressed="true"]{background:var(--blue);color:#fff}
.day i{position:absolute;width:5px;height:5px;background:currentColor;border-radius:50%;bottom:4px;left:calc(50% - 2.5px)}
.calendar>.btn{margin-top:8px}
.day-plan h2{margin:3px 0 12px}
.day-plan>.btn{margin-top:16px}
.reminder{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid #f2e0c6;border-radius:18px;background:#fff8ed;margin:9px 0}
.reminder strong,.reminder small{display:block;overflow-wrap:anywhere}
.reminder small{color:#655647}
.reminder-time{color:#713e16;background:#ffe1b4;border-radius:12px;padding:9px;font-weight:750}
.reminder.done{background:#f0faf4;border-color:#d7ebdd}
.reminder.done .reminder-time{background:#dcf2e4;color:#275740}
.orbit{position:relative;min-width:0;height:360px;isolation:isolate;overflow:hidden;border-radius:30px;background:radial-gradient(ellipse at 50% 49%,#413481,#22204c 56%,#1a1839 92%);box-shadow:0 12px 28px #312a5d22;color:#fff}
.orbit-ring{position:absolute;top:50%;left:50%;border:1px solid #b4a7fb40;border-radius:50%;width:122px;height:122px;transform:translate(-50%,-50%)}
.orbit-ring.two{width:222px;height:222px}
.orbit-ring.three{width:320px;height:320px}
.sky-dot{position:absolute;border-radius:50%;width:4px;height:4px;background:#d8c9ff}
.dot1{top:16%;left:22%}.dot2{top:22%;right:20%;background:#ffc773}.dot3{bottom:13%;left:32%;background:#b6aaff}.dot4{bottom:24%;right:16%}
.orbit-branch{position:absolute;left:50%;top:50%}
.orbit-person>span{animation:drift 4.8s var(--delay) ease-in-out infinite alternate;pointer-events:none}
.orbit:focus-within .orbit-person>span,.orbit:hover .orbit-person>span{animation-play-state:paused}
@keyframes drift{0%{transform:translate(0,0)}100%{transform:translate(4px,-6px)}}
.orbit-line{position:absolute;left:0;top:0;width:var(--length);height:1px;background:linear-gradient(90deg,#c8bdf34d,#c9bdff);transform-origin:0 50%;transform:rotate(var(--angle));pointer-events:none}
.orbit-person,.orbit-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:0;background:transparent;color:#fff;display:grid;justify-items:center;gap:2px;padding:0;border-radius:16px;min-width:57px;font-size:.78rem;font-weight:750}
.orbit-person{left:var(--x);top:var(--y);padding:4px 6px}
.orbit-person .avatar,.orbit-center .avatar{border:2px solid #d9ceff;width:56px;height:56px;box-shadow:0 0 0 4px #b8a3f13b}
.orbit-center .avatar{width:80px;height:80px;border:3px solid #ffdb8b;box-shadow:0 0 0 6px #dfb76a32;font-size:1.25rem}
.orbit-center span:last-child,.orbit-person span:last-child{background:#201843df;border-radius:9px;padding:1px 7px;max-width:90px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.orbit :is(.orbit-center,.orbit-person):focus-visible{outline-color:#ffe9a4}
.people-panel h2{margin-bottom:12px}
.people-list,.network-actions{display:grid;gap:8px}
.network-actions{margin-top:16px}
.person-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:18px;text-align:left;background:#fff;padding:8px 12px}
.person-row:hover{border-color:#9993d8;background:#f5f4ee}
.person-row strong,.person-row small{display:block;overflow-wrap:anywhere}
.person-row small{color:var(--muted)}
.orbit-controls{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:7px;flex-wrap:wrap}
.orbit-controls:empty{display:none}
.main--settings,.main--progress{max-width:740px}
.settings-panel,.report{margin-bottom:15px}
.settings-panel>p,.report>p,.progress-top p{color:var(--muted);margin-top:8px}
.settings-panel>form{margin-top:15px}
.settings-panel .btn.block+.btn.block{margin-top:10px}
.settings-panel>h2+.btn{margin-top:14px}
.settings-panel form>.btn{justify-self:start}
.profile-photo{display:flex;align-items:center;gap:13px}
.profile-photo label{min-width:0;flex:1}
.profile-photo .avatar{width:58px;height:58px}
.progress-top{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:12px 16px;background:#eef4ec;border-color:#cbdac9;margin-bottom:15px;
}
.progress-top h2{font-size:clamp(1.3rem,4.7vw,1.75rem)}
.progress-top .btn{grid-column:1 / -1}
.mini-glimt{width:clamp(54px,16vw,86px)}
.activity-week{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;padding:0;margin:16px 0 4px;list-style:none;
}
.activity-day time{
  display:grid;justify-items:center;gap:3px;padding:6px 1px 5px;
  background:#f3f5f1;border:1px solid transparent;border-radius:9px;color:#56635a;
  font-size:.88rem;line-height:1.3;
}
.activity-day time[aria-current="date"]{border-color:#3d644b}
.activity-day time>span:nth-child(2){font-weight:800;color:var(--ink)}
.activity-day.is-done time{background:#e3efe1;color:#235937}
.activity-mark{display:grid;place-items:center;width:22px;height:21px;font-weight:750}
.activity-report .practice-history{margin-top:13px}
.report small{display:block;margin-top:15px;color:var(--muted)}
.report-bars{display:grid;gap:11px;margin:16px 0}
.report-bars>div>div,.history li{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
progress{display:block;width:100%;height:12px;border:0;border-radius:15px;overflow:hidden;background:#e4e8df;color:var(--blue)}
progress::-webkit-progress-bar{background:#e4e8df;border-radius:15px}
progress::-webkit-progress-value{background:var(--blue);border-radius:15px}
progress::-moz-progress-bar{background:var(--blue);border-radius:15px}
.report-bars progress{margin-top:5px}
.history{padding:0;margin:10px 0 0;list-style:none}
.history li{padding:10px 0;border-top:1px solid var(--line)}
.solo,.quiz{max-width:650px;margin:auto;padding:clamp(20px,4vw,48px) 20px 38px}
.solo{text-align:center}
.solo-art{width:min(68%,290px);margin:20px auto 18px;border-radius:50%;background:#f5f4ee}
.solo>p{margin:16px auto 23px;max-width:36ch;color:var(--muted);font-size:1.12rem}
.solo-actions{display:grid;gap:12px;max-width:350px;margin:auto}
.practice-result .solo-art{width:min(48%,155px)}
.practice-result .solo-actions h2{margin-bottom:4px}
.quiz-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin-bottom:22px}
.quiz-header progress{margin-top:5px}
.quiz-header>span{white-space:nowrap;color:var(--muted)}
.quiz-card{display:grid;gap:13px;border:1px solid var(--line);border-radius:27px;padding:clamp(14px,4vw,28px);box-shadow:var(--shadow)}
.quiz-intro{display:flex;align-items:center;gap:15px;padding:9px 16px 9px 7px;background:#f5f4ee;border-radius:19px}
.quiz-intro h1{font-size:clamp(1.47rem,4vw,2.38rem);letter-spacing:-.045em}
.quiz-mascot{width:82px;flex:none}
.skill{display:flex;align-items:center;gap:5px;color:#4d6053;font-weight:750;font-size:.87rem;margin-bottom:3px}
.question{font-size:clamp(1.5rem,4.5vw,1.8rem);line-height:1.45;font-weight:700}
.memory-item{border-radius:17px;background:#fff2d6;color:#513623;text-align:center;padding:20px 10px;font-size:1.8rem;font-weight:750}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.choice{min-height:56px;border:2px solid #dce1da;border-radius:15px;background:#fff;text-align:left;padding:9px 12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:4px;overflow-wrap:anywhere}
.choice{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.choice svg{flex:none}
.choice.chosen{border-color:#2854bd;background:#eff4ff}
.choice.incorrect{border-color:#ba4a43;color:#92332c;background:#fff0ee}
.retry-feedback{color:#92332c;font-weight:700;margin:14px 0}
.feedback.incorrect{background:#fff0ee;color:#92332c}
.choice.correct{background:#e9f7ee;border-color:#83bc95;color:#185436}
.feedback{background:#f5f4ee;border-radius:14px;padding:10px 12px;color:#4c564c}
.feedback.good{background:#e9f7ee;color:#185436}
.quiz-tools{display:flex;justify-content:space-between;gap:5px}
.quiz-tools .btn{font-size:.91rem;padding-inline:5px}
dialog{width:min(92%,470px);max-height:calc(100% - 32px);border:1px solid #dce1da;border-radius:24px;padding:23px;color:var(--ink);box-shadow:0 16px 65px #1d1a4650}
dialog::backdrop{background:#211f4780}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.dialog-head h2{font-size:1.45rem;overflow-wrap:anywhere}
dialog p+*,dialog>button+button{margin-top:12px}
dialog li+li{margin-top:8px}
dialog ol,dialog ul{padding-left:23px}
.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.help-content{display:flex;align-items:center;gap:8px;margin-bottom:15px}
.help-content>div{width:90px;flex:none}
.person-detail{display:grid;justify-items:center;gap:4px}
.person-detail .avatar{width:94px;height:94px;font-size:1.8rem}
.contact-info>div{border-top:1px solid var(--line);padding:11px 0}
.contact-info dt{display:flex;gap:6px;align-items:center;font-weight:750}
.contact-info dd{margin:5px 0 0 30px;overflow-wrap:anywhere}
#toast:not(:empty){position:fixed;z-index:8;bottom:82px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;background:#26352e;color:#fff;border-radius:14px;padding:11px 17px;box-shadow:var(--shadow)}
.guide-bubble{position:fixed;z-index:6;right:max(12px,calc((100vw - 1020px)/2));bottom:80px;display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:8px;width:min(390px,calc(100% - 24px));border:1px solid #dce1da;border-radius:22px;padding:9px 13px 13px;background:#fff;box-shadow:0 8px 32px #2b254228}
.guide-bubble p span,.guide-bubble p strong{display:block}
.guide-bubble p span{font-size:.84rem;color:var(--muted)}
.guide-bubble .primary{grid-column:2}
.guide-bubble .square{grid-area:1/3}
.reduce-motion *, .reduce-motion *::before,.reduce-motion *::after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:700px){
  .auth-wrap{max-width:495px}
  .auth-header{margin-bottom:16px}
  .auth-layout{grid-template-columns:1fr;gap:19px}
  .auth-art{min-height:164px;padding:2px 11px 12px;border-radius:24px}
  .auth-art .glimt{width:145px}
  .auth-speech{padding:4px 10px;border-radius:11px;font-size:.78rem}
  .art-ring{width:192px;height:192px}
  .ring-b{width:259px;height:259px}
  .auth-card>p{margin-bottom:12px}
  .calendar-layout,.network-layout{grid-template-columns:1fr}
  .orbit{height:340px}
  .welcome{min-height:167px;padding:14px 17px;border-radius:23px}
  .welcome-art{width:34%;margin:0 -7px 0 0}
  .welcome::after{width:202px;height:202px;right:-50px;top:-20px}
  .welcome::before{width:165px;height:165px;right:-33px;top:-2px}
}
@media(max-width:450px){
  :root{font-size:16px}
  .main{padding-top:21px;padding-bottom:108px}
  .top-inner{min-height:62px;padding-inline:15px}
  .brand img{width:35px;height:35px}
  .brand{gap:8px;font-size:1.24rem}
  .profile-button{padding:4px 9px 4px 4px}
  .profile-button .avatar{width:30px;height:30px}
  .nav-item{flex-direction:column;gap:2px;font-size:.78rem}
  .nav-item svg{width:21px;height:21px}
  .welcome h1{font-size:clamp(1.94rem,8vw,2.75rem)}
  .welcome p:not(.date-line){font-size:1rem}
  .date-line{font-size:.78rem;gap:5px}
  .main-actions{gap:13px;margin-top:16px}
  .action-card{gap:10px;min-height:77px;padding:10px 11px}
  .card-icon{width:45px;height:45px}
  .card-icon svg{width:26px;height:26px}
  .action-arrow{width:31px;height:31px}
  .action-arrow svg{width:18px;height:18px}
  .action-text strong{font-size:1.19rem}
  .action-text>span{font-size:.84rem}
  .panel,dialog{padding:15px}
  .calendar{padding:9px}
  .calendar-grid{gap:2px}
  .quiz-header{gap:8px}
  .quiz-mascot{width:63px}
  .reminder{gap:7px}
  .choice{padding:8px}
}
/* The main actions keep their own colors; supporting surfaces stay quiet. */
.brand{letter-spacing:-.04em;font-weight:800;color:var(--ink)}
.brand img{border-radius:0}
.profile-button{background:#fff;border-color:var(--line)}
.top-inner{max-width:1050px;min-height:82px}
.main--home{max-width:790px;padding-top:24px}
.welcome{padding:22px 0 27px;min-height:210px;border-radius:0;background:#fff;overflow:visible}
.welcome::after,.welcome::before{content:none}
.welcome h1{font-size:clamp(2.2rem,5vw,3.25rem);margin:12px 0 10px;letter-spacing:-.04em}
.welcome-art{width:190px;margin:0 -8px 0 16px;transform:rotate(-5deg)}
.date-line{color:var(--muted);font-weight:600}
.welcome p:not(.date-line){color:var(--muted)}
.main-actions{margin-top:0;gap:18px}
.action-card{min-height:103px;border-radius:20px;padding:17px 23px;gap:20px}
.action-card.blue{background:#2854bd;box-shadow:0 4px 0 #1e4090}
.action-card.orange{background:#f4a24c;color:#392917;box-shadow:0 4px 0 #cc7c2c}
.card-icon{width:44px;height:48px;background:none!important;border-radius:0}
.action-arrow{background:none!important;width:30px}
.action-text{gap:5px}
.action-text strong{font-size:1.5rem;font-weight:750;letter-spacing:-.025em}
.action-text>span{font-size:1rem}
.action-card.network{border:1px solid #c9d4c5;border-radius:18px;background:#f4f6ef;color:#314b39;box-shadow:0 3px 0 #d7dfd0;margin-top:9px;min-height:89px}
.network .card-icon{border:1px solid #b4c4af;border-radius:50%;width:48px;height:48px}
.network .action-text strong{font-size:1.3rem}
.help-link{color:#4b5e4e;margin-top:27px;font-weight:600}
.help-link:hover{background:#f4f6ef}
.nav-item{border-radius:10px;color:#536052;font-weight:650}
.nav-item.active,.nav-item:hover{background:#f0f3e9;color:#314b39}
.bottom-nav>div{max-width:650px}
.demo-note{color:#667061;font-size:.8rem}
.demo-note button{color:#385431}
.btn{border-radius:11px;font-weight:700}
.secondary{background:#f4f5f0;border-color:#dce1da;color:#314b39}
.text-btn{color:#3f5942}
.panel{border-radius:16px;box-shadow:none}
.avatar{background:#e6ebdf;color:#34513c}
.auth-wrap{max-width:1100px}
.auth-layout{grid-template-columns:1fr 1fr;gap:80px}
.auth-art{background:#f5f4ee;border-radius:4px;min-height:510px}
.auth-art .glimt{width:310px;transform:rotate(-5deg)}
.auth-speech{background:none;border:0;box-shadow:none;border-radius:0;color:#4d5b4f;font-size:1.05rem;font-weight:600;padding-top:22px}
.auth-speech::before{content:none}
.auth-card h1{font-size:2.6rem;letter-spacing:-.035em}
.auth-card>p{font-size:1.05rem}
.auth-links{gap:10px}
input:not([type="checkbox"]),select{border-radius:9px;background:#fff}
label{font-weight:650}
input::placeholder{font-weight:400}
.orbit{background:#f5f6f1;border:1px solid #dde3d6;border-radius:16px;box-shadow:none;color:var(--ink)}
.orbit-line{background:#adbca7}
.orbit-person,.orbit-center{color:var(--ink);font-weight:700}
.orbit-person .avatar{border:3px solid #fff;box-shadow:0 0 0 1px #bfcbb8}
.orbit-center .avatar{border:3px solid #fff;box-shadow:0 0 0 3px #63825b}
.orbit-center span:last-child,.orbit-person span:last-child{background:#f5f6f1;border-radius:4px;padding:2px 5px}
.orbit :is(.orbit-center,.orbit-person):focus-visible{outline-color:#2854bd}
.person-row{border-radius:0;border-width:0 0 1px;background:#fff;padding:12px 1px}
.person-row:hover{background:#f5f6f1;border-color:#a9bba0}
.people-list{gap:0}
.calendar-head h2{font-weight:700}
.day{background:#f5f6f1;border-radius:8px;font-weight:600}
.day.is-today{border-color:#31563d}
.day[aria-pressed="true"]{background:var(--blue);color:#fff}
.weekday{color:#536052}
.reminder{border-radius:12px}
.reminder-time{border-radius:7px}
.quiz-card{border:0;border-radius:0;box-shadow:none;padding:8px 0;gap:20px}
.quiz-intro{background:#fff;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0 19px;margin-bottom:8px}
.quiz-mascot{width:105px}
.quiz-intro h1{font-size:2rem;letter-spacing:-.035em}
.question{font-weight:700;color:#1e2d25}
.shape-line{white-space:nowrap;overflow-wrap:normal}
.question .shape-line{display:block;margin-top:5px}
.sms-exercise{display:grid;gap:8px}
.sms-copy{margin:0 0 8px;padding:14px 16px;background:#f3f5ef;border-radius:11px;font-size:clamp(1.45rem,5vw,1.8rem);font-weight:800;line-height:1.6;overflow-wrap:anywhere}
.sms-copy span.correct{color:#146b37}
.sms-copy span.incorrect{color:#b42325}
.sms-exercise label{font-weight:800}
#sms-answer{width:100%;min-height:58px;padding:12px 14px;border:2px solid #687c71;border-radius:11px;font-size:1.35rem;background:#fff;color:#1e2d25}
.sms-status{margin:0;color:#9e2824}
.skill{color:#52654d;font-weight:600}
.choice{border-radius:11px;font-weight:700;font-size:1.25rem;line-height:1.4;min-height:72px;padding:14px 16px}
.memory-item{background:#f5f4ee;color:var(--ink);border-radius:11px}
.solo-art{background:none}
.solo h1{font-size:2.5rem}
.extra-level{max-width:780px;padding-inline:clamp(14px,3vw,24px)}
.extra-level h1{margin:clamp(22px,4vh,36px) 0 24px;font-size:clamp(1.85rem,5.5vw,2.5rem)}
.extra-level .solo-actions{max-width:none;gap:14px}
.level-button{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:76px;min-height:clamp(76px,14svh,120px);padding:14px 20px;
  border:2px solid var(--level-border);border-radius:18px;
  background:rgba(var(--level-tint),.09);color:var(--level-text);
  font-size:clamp(1.35rem,4vw,1.65rem);font-weight:800;
}
.level-button::before{
  content:"";position:absolute;inset:8% 6%;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(var(--level-tint),.38),transparent 74%);
  filter:blur(10px);
}
.level-easy{--level-tint:91,183,111;--level-border:#3d8753;--level-text:#204c30}
.level-medium{--level-tint:242,194,64;--level-border:#ad7d08;--level-text:#5b420a}
.level-hard{--level-tint:232,102,104;--level-border:#bd494d;--level-text:#702b30}
.dialog-head h2{font-weight:700}
dialog{border-radius:17px}
.guide-bubble{border-radius:15px;box-shadow:0 6px 24px #26352e20}
@media(max-width:700px){
  .auth-layout{grid-template-columns:1fr;gap:24px}
  .auth-art{min-height:168px;border-radius:4px;padding:0 12px 10px}
  .auth-art .glimt{width:154px}
  .auth-speech{padding:0;font-size:.9rem}
  .welcome{min-height:175px;padding:9px 0 22px}
  .welcome-art{width:140px;margin:0 -10px 0 4px}
}
@media(max-width:450px){
  .top-inner{min-height:70px}
  .main--home{padding-top:12px}
  .welcome{gap:0;min-height:170px}
  .welcome h1{font-size:2.1rem}
  .welcome-art{width:112px;margin-right:-5px}
  .welcome p:not(.date-line){font-size:1rem}
  .date-line{font-size:.78rem}
  .action-card{min-height:94px;padding:16px 14px;gap:11px;border-radius:16px}
  .action-text strong{font-size:1.3rem}
  .action-text>span{font-size:.9rem}
  .card-icon{width:34px}
  .action-card.network{min-height:87px}
  .network .card-icon{width:40px;height:40px}
  .main-actions{gap:16px}
  .auth-card h1{font-size:2.2rem}
  .quiz-intro h1{font-size:1.65rem}
  .quiz-mascot{width:82px}
}

.memory-item:has(.memory-picture){background:#fff;padding:0}
.memory-picture{position:relative;width:min(100%,280px);aspect-ratio:1;margin:0 auto;overflow:hidden;background:#fff;border-radius:12px}
.memory-sheet{position:absolute;width:calc(var(--columns) * 100%);height:calc(var(--rows) * 100%);max-width:none;left:calc(var(--column) * -100%);top:calc(var(--row) * -100%)}
.image-status{font-size:1rem;font-weight:600;line-height:1.5;margin-top:8px}
.image-retry{margin:12px auto}
[hidden]{display:none!important}
@media(max-width:450px){
 .choices{grid-template-columns:1fr}
 .quiz-card{gap:17px}
 .quiz-tools .btn{font-size:1rem}
 .quiz-intro h1{font-size:1.7rem}
}
.demo-photos{border:0;padding:0;margin:3px 0;display:flex;flex-wrap:wrap;gap:9px}
.demo-photos legend{font-weight:700;margin-bottom:8px}
.demo-photos label{position:relative;display:flex;align-items:center;gap:5px;border:2px solid transparent;border-radius:12px;padding:5px;cursor:pointer}
.demo-photos label:has(input:checked){border-color:var(--blue);background:#eff4ff}
.demo-photos input{width:18px;min-height:18px;height:18px;accent-color:var(--blue)}
.demo-photos img{width:45px;height:45px;object-fit:cover;border-radius:50%}
.demo-photos label>span:last-child:not(.avatar){font-size:.8rem}
.calendar .day{min-height:53px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1;padding:6px 0;font-size:1.14rem}
.calendar .day i{left:auto;right:5px;top:auto;bottom:5px;width:6px;height:6px}
.today-label{font-size:.65rem;font-weight:800}
.calendar .day.is-today{border:2px solid #31563d}
.calendar .day[aria-pressed="true"]{border:2px solid #17387f;font-weight:800}
.calendar-key{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:14px 0;color:var(--muted);font-size:.82rem}
.calendar-key>span{display:flex;gap:6px;align-items:center}
.calendar-key i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ink)}
.selected-date-label{font-size:.9rem;font-weight:700;color:#415a45;margin-bottom:5px}
.day-plan{scroll-margin-top:16px}
.day-plan>h2{font-size:1.5rem}
#notification-controls{margin-top:14px}
#notification-controls>p{margin-bottom:12px}
#notification-controls .btn+.btn{margin-top:10px}
@media(max-width:700px){
 .day-plan{grid-row:1}
 .calendar-layout{gap:24px}
}
@media(max-width:450px){
 .calendar .day{min-height:50px}
 .calendar-key{font-size:.78rem}
}

.orbit-person{width:76px;min-width:76px;padding:4px 2px}
.orbit-person>span:last-child{max-width:72px}
.orbit-line{pointer-events:none}
.orbit-person:focus-visible{z-index:2}

.memory-picture { clip-path: inset(1.2% round 12px); }

.calendar-export{margin:16px 0;border-top:1px solid #dce1da;padding-top:12px}
.calendar-export summary{font-weight:750;cursor:pointer;min-height:44px}
.calendar-export p{font-size:1rem;line-height:1.5;margin:10px 0}
.counting-objects{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:340px;margin:0 auto 16px;padding:12px;background:#f5f7f2;border-radius:12px}
.counting-objects .counting-picture{width:100%;max-width:88px;border-radius:8px}
.counting-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.counting-choices .choice{justify-content:center;font-size:1.6rem}
.counting-image-status{margin:8px 0}
.invite-link{margin:16px 0}

.family-welcome .family-avatar{width:84px;height:84px;margin:0 12px;font-size:1.4rem}
.family-practice{margin:24px 0}
.family-practice progress{width:100%;height:18px;accent-color:#2854bd}
.practice-state{display:flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:800;margin:10px 0 4px}
.practice-count{margin:4px 0 10px}
.practice-history{border-top:1px solid #dce1da;margin-top:16px}
.practice-history summary{cursor:pointer;padding:14px 0 4px;font-size:1.05rem;font-weight:750;min-height:44px}
.practice-history summary:focus-visible{outline:3px solid #252955;outline-offset:2px}
.practice-history .practice-days{margin-bottom:0}
.family-practice-actions .text-btn{min-height:44px;padding:8px}
.practice-state.finished{color:#155438}
.family-practice-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.practice-note{font-size:1rem;line-height:1.5;color:#4c594f}
.practice-days{list-style:none;padding:0}
.practice-days li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #dce1da}
.family-today{margin-top:24px}
.family-today p,.family-today ul{margin:12px 0 16px}
.family-today ul{list-style:none;padding:0}
.family-today li{padding:7px 0;border-bottom:1px solid #dce1da}
.family-today li strong{margin-right:8px}
