:root{--ink:#59466c;--muted:#9b8ca2;--pink:#f5d6e4;--rose:#c978a0;--purple:#8e69aa;--lav:#eee6fa;--cream:#fff8f0;--line:#f0e1e8;--white:#fffdfc;--shadow:0 8px 24px #80638d12}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(145deg,#f7eaf2,#f3eafa 52%,#fff3e9);font-family:'Cairo',Tahoma,Arial,sans-serif;color:var(--ink);min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c89ad9;outline-offset:3px}.app-shell{max-width:520px;min-height:100dvh;margin:auto;background:linear-gradient(180deg,#fffaf8,#fff8f2);position:relative;box-shadow:0 0 70px #6f52701c;padding-bottom:86px}.app-header{height:76px;padding:12px 20px;display:flex;align-items:center;gap:12px;background:#fffaf8ed;border-bottom:1px solid #f3e5eb;position:sticky;top:0;z-index:5;backdrop-filter:blur(16px)}.avatar{border:2px solid white;border-radius:50%;width:46px;height:46px;background:linear-gradient(145deg,#f8dce9,#e9dcfa);box-shadow:0 3px 12px #b38aa328;font-size:1.35rem}.header-copy{display:flex;flex-direction:column;line-height:1.45;flex:1}.header-copy strong{font-size:1rem}.tiny-label,.eyebrow{font-size:.72rem;color:#b17b9c;font-weight:800;letter-spacing:.01em}.heart{color:#d77ca6}.icon-button{position:relative;border:1px solid #f0e1eb;background:white;border-radius:50%;width:40px;height:40px;font-size:1.3rem}.icon-button i{position:absolute;top:8px;right:8px;width:6px;height:6px;background:#df8caa;border-radius:50%}main{padding:18px 17px 24px}.screen{display:none;animation:appear .22s ease}.screen.active{display:block}@keyframes appear{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}.welcome{position:relative;display:flex;align-items:flex-start;justify-content:space-between;padding:20px 18px 150px;gap:8px;min-height:285px;overflow:hidden;border-radius:24px;background:linear-gradient(180deg,#fff0f4 0%,#fff3ed 45%,#e9d9ef 100%);border:1px solid #f0dbe8;box-shadow:0 8px 24px #80638d12}.welcome>div:first-child{position:relative;z-index:2;max-width:72%}.welcome:after{content:'';position:absolute;inset:auto 0 0;height:155px;background:linear-gradient(180deg,#ffffff00,#f3dfe7 70%);pointer-events:none}.welcome-scene{position:absolute;z-index:1;bottom:0;left:0;right:0;height:230px;background-image:linear-gradient(180deg,#fff6f500 55%,#f7e7ed38),url('./images/judy-welcome.webp');background-size:cover;background-position:center 55%;border-top:1px solid #e7c5d9}.welcome-art{display:none}.welcome h1{font-size:1.6rem}.welcome p:not(.eyebrow){color:#806d89;font-size:.82rem}.welcome .eyebrow{color:#a96c91}.welcome h1,.page-heading h1{font-size:1.48rem;line-height:1.5;margin:2px 0 3px;font-weight:900}.welcome h1 span,.page-heading h1 span{color:#d17fa6}.welcome p:not(.eyebrow),.page-heading>p:last-child{font-size:.8rem;color:var(--muted);line-height:1.8;margin:0}.welcome-art{width:118px;height:112px;flex-shrink:0;display:grid;place-items:center;border-radius:28px;background:linear-gradient(145deg,#fff0f5,#f0e8fb);transform:rotate(2deg);box-shadow:inset 0 0 0 1px white,0 8px 20px #9c78a51a;overflow:hidden}.welcome-art img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.goal-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#fff6f8,#e9def7);font-size:0}.goal-icon:before{content:'♡';font-size:2rem;color:#c77da5}.quick-icon{font-size:0}.quick-card:nth-child(1) .quick-icon:before{content:' ';width:38px;height:32px;border:2px solid #8d68a8;border-radius:5px 5px 3px 3px;background:linear-gradient(90deg,transparent 48%,#8d68a8 49% 52%,transparent 53%);box-shadow:inset 0 -4px #f4dce9}.quick-card:nth-child(2) .quick-icon:before{content:' ';width:28px;height:35px;border:2px solid #b97597;border-radius:6px;background:repeating-linear-gradient(to bottom,transparent 0 6px,#dba8c0 7px 8px);box-shadow:-6px -5px 0 -2px #f4dce9}.quick-card:nth-child(3) .quick-icon:before{content:' ';width:30px;height:36px;border:2px solid #8e69aa;border-radius:4px;background:repeating-linear-gradient(to bottom,transparent 0 6px,#d4c0e4 7px 8px);transform:rotate(-5deg)}.quick-card:nth-child(4) .quick-icon:before{content:' ';width:34px;height:29px;border:2px solid #bd8a5e;border-radius:50% 50% 45% 45%;background:radial-gradient(circle at 30% 35%,#e3a9c5 0 4px,transparent 5px),radial-gradient(circle at 65% 35%,#bda5df 0 4px,transparent 5px),radial-gradient(circle at 48% 65%,#f0c98f 0 4px,transparent 5px)}.goal-card{display:flex;gap:12px;align-items:center;padding:17px;border-radius:22px;background:linear-gradient(115deg,#f7e1eb,#f0e7fb 72%,#fff0e6);border:1px solid #f3dfe9;box-shadow:var(--shadow)}.goal-copy{flex:1;min-width:0}.goal-copy h2{font-size:1rem;margin:3px 0}.goal-copy p{font-size:.75rem;color:#8d7a96;margin:0 0 10px}.goal-icon{font-size:2.15rem;align-self:center}.goal-progress{height:8px;background:#ffffffa8;border-radius:99px;overflow:hidden;margin:10px 0 6px}.goal-progress span{display:block;width:0;height:100%;border-radius:99px;background:linear-gradient(90deg,#9265ac,#d88eb1);transition:width .25s}.goal-copy small{font-size:.7rem;color:#a57999}.section-title{display:flex;align-items:center;justify-content:space-between;margin:25px 2px 13px}.section-title h2{font-size:1.08rem;margin:1px 0}.flower{font-size:1.6rem;color:#d39ab9}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.quick-card{border:1px solid #ffffffc9;border-radius:20px;padding:15px 14px 13px;text-align:right;display:flex;flex-direction:column;align-items:flex-start;min-height:121px;box-shadow:0 6px 18px #8c668a0b;transition:transform .15s}.quick-card:active{transform:scale(.98)}.quick-card.pink{background:linear-gradient(145deg,#ffe4ec,#f9d9e6)}.quick-card.peach{background:linear-gradient(145deg,#fff0e7,#fbe0df)}.quick-card.lilac{background:linear-gradient(145deg,#f0e6fb,#e9ddf5)}.quick-card.yellow{background:linear-gradient(145deg,#fff0d9,#ffe8ce)}.quick-icon{font-size:1.65rem;margin-bottom:4px}.quick-card b{font-size:.9rem}.quick-card small{font-size:.72rem;color:#8d7b94}.text-link{border:0;background:none;color:#a66f95;font-weight:800;font-size:.75rem}.continue-list{display:grid;gap:10px}.continue-card{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);background:#fffdfd;border-radius:17px;text-align:right;width:100%}.continue-icon{width:52px;height:52px;display:block;overflow:hidden;flex-shrink:0;border-radius:15px;background:#f5e7f4}.continue-copy{flex:1;min-width:0}.continue-copy b{display:block;font-size:.84rem}.continue-copy small{display:block;color:var(--muted);font-size:.7rem}.continue-arrow{color:#c17ba1;font-size:1.2rem}.soft-note{display:flex;align-items:center;gap:10px;margin-top:20px;padding:14px;border-radius:17px;background:#fff2f6;color:#a47a96;font-size:.76rem;line-height:1.8}.soft-note p{margin:0;flex:1}.soft-note span{color:#d58cad}.page-heading{padding:7px 2px 18px}.page-heading h1{font-size:1.55rem}.search-wrap{display:flex;align-items:center;gap:8px;border:1px solid #efe0ea;background:white;border-radius:15px;padding:0 13px;margin-bottom:17px;color:#ba8cab}.search-wrap input{border:0;outline:0!important;min-width:0;width:100%;height:45px;background:transparent;color:var(--ink);font-size:.83rem}.subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.subject-card{overflow:hidden;border:1px solid #f0e0ea;border-radius:21px;background:white;box-shadow:var(--shadow);min-width:0}.subject-open{display:flex;flex-direction:column;width:100%;height:100%;text-align:right;padding:0;border:0;background:none}.subject-art{height:132px;display:block;position:relative;overflow:hidden;background:#f6e7ed}.subject-art .decor{position:absolute;left:10px;top:6px;color:#fff;font-size:1.2rem;text-shadow:0 1px 5px #74536c}.subject-artwork{display:block;width:100%;height:100%;object-fit:cover;object-position:center 54%;transition:transform .35s ease}.subject-open:hover .subject-artwork{transform:scale(1.035)}.mini-art{width:100%;height:100%;object-fit:cover;border-radius:inherit}.detail-art{width:100%;height:170px;object-fit:cover;border-radius:16px;display:block;margin:0 0 12px}.quick-icon svg{width:43px;height:43px;display:block;color:#8d68a8}.quick-icon{display:grid;place-items:center;width:45px;height:45px;margin-bottom:6px}.welcome-art{background-image:radial-gradient(circle at 20% 20%,#fff 0 2px,transparent 3px),linear-gradient(145deg,#fff0f5,#f0e8fb)}.subject-copy{padding:12px 12px 13px;display:flex;flex-direction:column;flex:1}.subject-copy h3{font-size:.88rem;line-height:1.55;margin:0 0 4px}.subject-copy p{font-size:.68rem;color:var(--muted);line-height:1.7;margin:0 0 12px;min-height:38px}.progress-label{display:flex;justify-content:space-between;gap:5px;font-size:.64rem;color:#a08ba5;margin-top:auto;margin-bottom:5px}.progress-label b{color:#a56691}.progress-track{height:6px;background:#f1e8f0;border-radius:99px;overflow:hidden}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#9266ad,#d78fb0);border-radius:99px}.subject-footer{font-size:.68rem;color:#a36e96;font-weight:800;margin-top:11px}.source-disclaimer{font-size:.72rem;line-height:1.9;color:#9a899c;background:#fff5f5;border:1px dashed #ecd9e6;border-radius:15px;padding:12px;margin-top:18px}.bottom-nav{position:fixed;z-index:8;bottom:0;left:50%;transform:translateX(-50%);width:min(520px,100%);height:76px;padding:8px 13px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:#fffdfbf2;border-top:1px solid #f0e2eb;backdrop-filter:blur(18px)}.nav-item{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#a99aaf}.nav-item span{font-size:1.45rem;line-height:1.3}.nav-item small{font-size:.64rem;font-weight:700}.nav-item.active{color:#77508f}.nav-item.active span{background:#f1e4f8;border-radius:13px;min-width:42px;padding:1px 8px}.tool-menu{display:grid;gap:10px}.tool-menu button{display:flex;align-items:center;gap:13px;padding:15px;border-radius:18px;border:1px solid var(--line);background:white;text-align:right}.tool-menu button>span:first-child{font-size:1.55rem;width:45px;height:45px;display:grid;place-items:center;border-radius:15px;background:#f5e8f3}.tool-menu button div{flex:1}.tool-menu b,.tool-menu small{display:block}.tool-menu b{font-size:.85rem}.tool-menu small{font-size:.72rem;color:var(--muted)}.calendar-card,.form-card,.quiz-card{border:1px solid var(--line);border-radius:21px;background:#fff;padding:17px;box-shadow:var(--shadow);margin-bottom:14px}.calendar-top{display:flex;align-items:center;justify-content:space-between}.calendar-top button{border:0;background:#f5e7f4;border-radius:10px;width:33px;height:33px;font-size:1.3rem}.week-days{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:15px}.day-button{border:0;background:#fff7fb;border-radius:13px;padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:.66rem}.day-button b{font-size:.8rem}.day-button.active{background:#9269aa;color:white}.day-button i{width:4px;height:4px;background:#d991b5;border-radius:50%}.day-button.active i{background:white}.form-card{display:grid;gap:13px}.form-card h2{font-size:1rem;margin:0}.form-card label{display:grid;gap:6px;font-size:.77rem;font-weight:800;color:#826d8e}.form-card input,.form-card textarea,.form-card select{width:100%;border:1px solid #ecdeea;background:#fffdfd;border-radius:12px;padding:11px 12px;color:var(--ink);font-weight:500;font-size:.83rem;min-width:0}.primary-button,.secondary-button{width:100%;border:0;border-radius:14px;padding:12px 16px;font-size:.83rem;font-weight:800}.primary-button{color:white;background:linear-gradient(110deg,#a37ab8,#cc88aa);box-shadow:0 5px 14px #ae7cae29}.secondary-button{background:#f3e9f6;color:#806091;margin-top:12px}.task-list,.notes-list,.resource-list{display:grid;gap:10px}.task-item,.note-item,.resource-item{border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px}.task-item{display:flex;align-items:center;gap:10px}.task-item input{accent-color:#a67bb8;width:18px;height:18px}.task-item div{flex:1}.task-item b,.task-item small{display:block}.task-item b{font-size:.8rem}.task-item small{font-size:.7rem;color:var(--muted)}.task-item.done b{text-decoration:line-through;color:#ac9fb0}.quiz-card h2{font-size:1rem;line-height:1.9}.quiz-option{display:block;text-align:right;width:100%;padding:12px;margin:8px 0;border:1px solid #eee0ec;border-radius:13px;background:#fff9fc;font-size:.83rem}.quiz-option.correct{background:#e7f5ea;border-color:#9bceab}.quiz-option.wrong{background:#fff0ed;border-color:#e5aaa0}.feedback{background:#f3ebf8;border-radius:13px;padding:12px;font-size:.8rem;line-height:1.8}.note-item h3{font-size:.9rem;margin:0 0 5px}.note-item p{font-size:.8rem;white-space:pre-wrap;line-height:1.8;margin:8px 0;color:#776a83}.note-item button{border:0;border-radius:10px;background:#fff0f4;color:#a35e7f;padding:6px 10px;font-size:.75rem}.resource-item{display:flex;align-items:flex-start;gap:12px}.resource-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#f1e7f8;font-size:1.35rem;flex-shrink:0}.resource-item div{flex:1;min-width:0}.resource-item h3{font-size:.84rem;margin:0}.resource-item p{font-size:.73rem;line-height:1.7;color:var(--muted);margin:4px 0 8px}.resource-item a{font-size:.76rem;color:#a15d8b;font-weight:800;text-decoration:none}.toast{position:fixed;z-index:20;bottom:88px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#654c73;color:white;padding:10px 16px;border-radius:13px;font-size:.8rem;transition:.2s;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{width:min(520px,calc(100% - 22px));max-height:88dvh;overflow:auto;border:1px solid #efdfea;border-radius:25px;padding:24px 18px;background:#fffaf9;color:var(--ink);box-shadow:0 20px 80px #51385a45}dialog::backdrop{background:#4b385775;backdrop-filter:blur(4px)}.close-dialog{position:sticky;top:0;float:left;border:0;border-radius:50%;width:35px;height:35px;background:#f6e5ef;font-size:1.5rem;line-height:1}.detail-title{font-size:1.25rem;line-height:1.6;margin:6px 0}.detail-summary{color:#8b7a94;font-size:.82rem;line-height:1.9}.lesson-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f1e5ed}.lesson-row:last-child{border-bottom:0}.lesson-row>div{flex:1;min-width:0}.lesson-row h3{font-size:.84rem;margin:0 0 3px}.lesson-row p{font-size:.72rem;color:var(--muted);line-height:1.7;margin:0}.lesson-row button{border:0;border-radius:11px;background:#f1e6f8;color:#80608f;padding:8px 10px;font-size:.73rem;font-weight:800;flex-shrink:0}.lesson-body h3{font-size:.95rem;margin:20px 0 7px}.lesson-body p,.lesson-body li{font-size:.84rem;line-height:2;color:#756781}.example-box{padding:14px;border-radius:15px;background:#f4edf9;line-height:1.9;font-size:.83rem}.tiny-muted{font-size:.69rem;line-height:1.8;color:#9c8ca1}.hidden{display:none!important}@media(min-width:700px){body{padding:22px 0}.app-shell{border-radius:32px;overflow:hidden;min-height:calc(100dvh - 44px)}.app-header{position:relative}.bottom-nav{bottom:22px;border-radius:0 0 32px 32px}}@media(max-width:360px){main{padding-inline:12px}.subject-grid{gap:9px}.subject-copy{padding:10px}.subject-art{height:105px}.welcome h1{font-size:1.3rem}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Original watercolor artwork integrated as real assets */
.welcome{padding-bottom:205px;min-height:355px}.welcome>div:first-child{max-width:78%}.welcome-scene{height:220px;opacity:.98}.subject-card{background:#fffaf7}.subject-artwork{filter:saturate(.94)}.quick-card{position:relative}.quick-card .quick-icon{border-radius:14px;background:#ffffff8a;box-shadow:inset 0 0 0 1px #ffffffa8}.app-header .avatar{padding:0;display:grid;place-items:center}.app-header .avatar svg{width:100%;height:100%}
@media(min-width:700px){.app-shell{max-width:760px}.welcome{min-height:420px;padding-bottom:245px}.welcome-scene{height:270px}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.subject-art{height:160px}}

.quick-icon svg,.nav-item svg{width:30px;height:30px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.nav-item span{display:grid;place-items:center;min-height:35px}.nav-item svg{width:22px;height:22px}.quick-icon:before{content:none!important}.tool-menu button>span:first-child{font-size:0}.subject-art .decor{font-style:normal}
/* Subject detail behaves like a dedicated study page on mobile. */
dialog{width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border:0;border-radius:0;padding:24px 18px calc(24px + env(safe-area-inset-bottom));}
@media(min-width:700px){dialog{width:min(760px,calc(100% - 40px));height:min(92dvh,1000px);max-width:760px;max-height:92dvh;margin:auto;border:1px solid #efdfea;border-radius:25px;padding:24px 24px 30px}}

/* Preview refinement: warmer pastel surfaces and a gentle first-visit welcome */
:root{--ink:#563b68;--muted:#927f9b;--pink:#f6d6e5;--rose:#c66e9b;--purple:#8b62a8;--lav:#e9ddf6;--cream:#fff3eb;--line:#efd7e5;--white:#fff8f5;--shadow:0 10px 28px #916b9418}
body{background:radial-gradient(ellipse at 12% 5%,#f8dce9 0,transparent 35%),radial-gradient(ellipse at 95% 28%,#e9def8 0,transparent 32%),linear-gradient(145deg,#f8e8ef,#f0e7f8 55%,#fff0e5)}
.app-shell{background:linear-gradient(180deg,#fff5f3,#fff1ee 45%,#fff6f0)}
.app-header{background:#fff5f0e8;border-bottom-color:#eedce7}
.avatar{padding:0;overflow:hidden;display:grid;place-items:center}
.avatar svg{width:100%;height:100%;display:block}
.welcome,.goal-card,.quick-card,.subject-card,.continue-card,.tool-menu,.soft-note{box-shadow:0 8px 22px #9d7b9a12}
.welcome{background:linear-gradient(145deg,#ffe8f0 0%,#fff0e6 48%,#e8def7 100%)}
.welcome h1 span:after{content:'♡'}
.quick-card{border:1px solid #ffffffa8}
.bottom-nav{background:#fff5f0ed}
.welcome-overlay{position:fixed;inset:0;z-index:99;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 20% 15%,#f7cfe1cc,transparent 35%),radial-gradient(circle at 90% 85%,#ded1f5dd,transparent 35%),#fff0e8ee;backdrop-filter:blur(12px);transition:opacity .28s ease,visibility .28s ease}
.welcome-overlay.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
.welcome-modal{width:min(100%,390px);text-align:center;position:relative;overflow:hidden;padding:30px 24px 24px;border:1px solid #ffffffc9;border-radius:34px;background:linear-gradient(160deg,#fff8f7,#fff0f4 52%,#f3eafb);box-shadow:0 24px 70px #8e64942b}
.welcome-crown{position:absolute;top:15px;left:20px;color:#d6a54c;font-size:2rem;transform:rotate(-12deg)}
.welcome-portrait{width:126px;height:126px;margin:8px auto 18px;border-radius:44% 56% 51% 49%;display:grid;place-items:center;font-size:4rem;background:radial-gradient(circle at 40% 35%,#fff,#f8dce8 65%,#e8d9f7);border:5px solid #fff;box-shadow:0 8px 24px #bb8aa42b}
.welcome-modal h1{font-size:1.8rem;margin:4px 0;color:#654777}
.welcome-modal h1 span{color:#d77ba4}
.welcome-modal>p:not(.eyebrow){font-size:.92rem;line-height:1.9;color:#8c7895;margin:8px auto 18px;max-width:290px}
.welcome-tags{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:16px 0 22px}
.welcome-tags span{font-size:.7rem;color:#8d6b9b;background:#fff9;border:1px solid #f1dce9;padding:7px 10px;border-radius:999px}
.welcome-start{width:100%;border:0;border-radius:18px;padding:13px 18px;background:linear-gradient(100deg,#c975a1,#9974bd);color:white;font-weight:800;box-shadow:0 8px 18px #c07ba42d}
.welcome-start span{margin-right:8px}
.welcome-modal small{display:block;margin-top:13px;color:#b09aaf;font-size:.69rem}
@media(min-width:700px){.welcome-modal{padding:36px 30px 28px}.welcome-portrait{width:140px;height:140px}}


/* Study-room update: clear curriculum roles and in-app revision summaries */
.subject-status{display:inline-flex;align-self:flex-start;max-width:100%;margin:0 0 8px;padding:5px 8px;border-radius:999px;background:#f6e8f4;color:#856293;font-size:.62rem;font-weight:800;line-height:1.5}
.subject-card:has([data-subject="psychology"]) .subject-status{background:#e9f3e6;color:#62825e}
.official-choice-note{margin-top:16px;padding:15px 16px;border-radius:17px;background:linear-gradient(120deg,#fff0f5,#f2eafa);border:1px solid #edd9e8;color:#806d8a}
.official-choice-note strong{display:block;font-size:.8rem;color:#6f507f;margin-bottom:5px}
.official-choice-note p{font-size:.74rem;line-height:1.9;margin:0}
.notes-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:5px;border-radius:16px;background:#f2e7f2;margin:0 0 14px}
.notes-tab{border:0;border-radius:12px;background:transparent;padding:10px 8px;font-size:.78rem;font-weight:800;color:#8e7a97}
.notes-tab.active{background:#fffafa;color:#80598f;box-shadow:0 3px 12px #8e6e9819}
.revision-panel,.personal-notes-panel{min-width:0}
.revision-panel .source-disclaimer{margin:0 0 13px}
.summary-grid{display:grid;gap:10px}
.summary-card{padding:15px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(150deg,#fffdfb,#fff5f7);box-shadow:0 5px 16px #8c67900b}
.summary-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:7px}
.summary-card-top h3{font-size:.88rem;line-height:1.6;margin:0;color:#654875}
.summary-subject{font-size:.66rem;font-weight:800;color:#b07499;flex-shrink:0}
.summary-card p{font-size:.77rem;line-height:1.9;color:#7f7088;margin:0 0 10px}
.summary-card button{border:0;border-radius:11px;background:#f1e5f6;color:#805a91;font-size:.72rem;font-weight:800;padding:8px 12px}
.revision-panel .search-wrap{margin-bottom:12px}
.personal-notes-panel .form-card{margin-top:0}
@media(min-width:700px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Hand-drawn SVG details instead of text emoji or symbol placeholders */
.welcome-crown{width:36px;height:32px;display:grid;place-items:center;font-size:0}
.welcome-crown svg{width:100%;height:100%;display:block}
.welcome-modal h1 .title-spark,.welcome h1 .title-spark{display:inline-flex;vertical-align:middle;width:19px;height:19px;margin-inline-start:3px}
.title-spark svg{width:100%;height:100%;display:block}
.welcome h1 span:after,.page-heading h1 span:after{content:none}
.goal-icon:before{content:none}
.goal-icon svg{display:block;width:48px;height:48px}
.icon-button svg{width:21px;height:21px;stroke:#896a9b;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.subject-art .decor{position:absolute;left:10px;top:8px;width:23px;height:23px;color:#fff;filter:drop-shadow(0 1px 4px #74536c55)}
.resource-icon svg{width:25px;height:25px;fill:none;stroke:#9372a7;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}

/* Judy Study v3: custom illustrated avatar, curriculum outline metadata, iOS install guide. */
.app-header .avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%;}
.welcome-portrait{overflow:hidden;padding:0;}
.welcome-portrait img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;}
.lesson-unit{display:block!important;margin:3px 0 7px!important;color:#a077a2!important;font-size:.68rem!important;line-height:1.7!important;font-weight:800;}
.curriculum-badge{display:inline-flex;max-width:100%;padding:6px 9px;margin:3px 0 9px;border-radius:999px;background:#f8e9f1;color:#986282;font-size:.68rem;font-weight:800;line-height:1.5;}
.keyword-list{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 14px;}
.keyword-list span{display:inline-block;border:1px solid #eed6e4;background:#fff7fa;color:#806489;padding:6px 9px;border-radius:11px;font-size:.74rem;line-height:1.5;}
.install-card{margin:0 0 18px;padding:17px;border-radius:21px;background:linear-gradient(140deg,#fff2f6,#fff9f1 54%,#f0e8fb);border:1px solid #eedbe9;box-shadow:0 8px 24px #9c7a9a11;color:var(--ink);}
.install-card-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.install-card-head>div{display:flex;flex-direction:column;gap:4px;}
.install-card-head b{font-size:.94rem;}
.install-card-head small{font-size:.72rem;line-height:1.7;color:var(--muted);}
.install-book{width:44px;height:44px;flex-shrink:0;border-radius:15px;display:grid;place-items:center;background:#fff9;color:#c46f9d;font-size:1.7rem;border:1px solid #efd8e6;}
.install-card ol{margin:10px 0;padding-inline-start:22px;}
.install-card li{font-size:.8rem;line-height:1.9;color:#77677f;margin:5px 0;}
.install-card p{font-size:.72rem;line-height:1.9;color:#917f98;margin:10px 0 0;border-top:1px solid #eddce8;padding-top:10px;}
@media(min-width:700px){.install-card{padding:20px;}}

.welcome-character{position:absolute;z-index:4;bottom:12px;left:14px;width:108px;height:108px;object-fit:cover;object-position:center 43%;border-radius:50%;border:4px solid #fffaf8;box-shadow:0 8px 20px #805b7b33;}
@media(min-width:700px){.welcome-character{width:130px;height:130px;left:20px;bottom:17px;}}
.subject-art .decor svg{width:100%;height:100%;display:block;}
.install-book svg{width:29px;height:29px;display:block;}

/* V4 study tools, richer iconography and accessible review UX */
.tool-menu{gap:11px}.tool-menu button{min-height:76px;padding:13px 14px;border-radius:19px;box-shadow:0 5px 15px #82668a0a;transition:transform .16s ease,border-color .16s ease}.tool-menu button:active{transform:scale(.985)}.tool-menu button .tool-icon{width:46px;height:46px;flex:0 0 46px;border-radius:15px;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #ffffffa8}.tool-menu button .tool-icon svg{width:25px;height:25px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tool-menu button>div{flex:1;min-width:0}.tool-menu .tool-arrow{color:#ac91b7;font-size:1.15rem;width:auto;height:auto;background:none}.tool-menu .tool-purple .tool-icon{background:#efe5fb;color:#916bb0}.tool-menu .tool-pink .tool-icon{background:#fae5ef;color:#bd7399}.tool-menu .tool-peach .tool-icon{background:#ffecdf;color:#bd8763}.tool-menu .tool-lilac .tool-icon{background:#f0eafb;color:#8f7ab9}.tool-menu .tool-blue .tool-icon{background:#e5f0fb;color:#6c93b4}.tool-menu .tool-green .tool-icon{background:#e4f3e9;color:#6a9d7d}.tool-menu button small{line-height:1.65;margin-top:3px}.focus-card{background:linear-gradient(145deg,#fff2f6,#f2eafb);border:1px solid #ecd9ed;border-radius:22px;padding:18px;margin-top:18px;box-shadow:var(--shadow)}.focus-head{display:flex;align-items:center;gap:12px}.focus-icon{width:43px;height:43px;border-radius:14px;background:#ffffffb0;color:#8f70a9;display:grid;place-items:center}.focus-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.focus-head h2{font-size:1rem;margin:0}.focus-head p{font-size:.73rem;color:var(--muted);margin:3px 0 0;line-height:1.6}.focus-clock{font-variant-numeric:tabular-nums;text-align:center;font-size:2.55rem;font-weight:900;letter-spacing:.06em;padding:18px 0 10px;color:#78598f}.focus-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:9px}.focus-actions .secondary-button{margin-top:0}.calendar-reminder-note{background:#f1eaf8;border:1px solid #e4d6f0;border-radius:18px;padding:14px;margin-bottom:14px}.calendar-reminder-note strong{font-size:.82rem}.calendar-reminder-note p{font-size:.74rem;line-height:1.8;color:#806e8d;margin:6px 0 12px}.calendar-reminder-note .secondary-button{margin-top:0}.calendar-export-one{border:0;padding:5px 8px;margin-top:6px;border-radius:8px;background:#f0e8f7;color:#7b5c94;font-size:.68rem;font-weight:800}.day-button i.has-tasks{width:6px;height:6px;background:#76a88c}.quiz-mode-hint,.quiz-instruction{font-size:.74rem;line-height:1.85;color:#8d7d99;background:#f8f1fa;padding:10px 12px;border-radius:12px;margin:0}.quiz-option{display:flex;align-items:flex-start;gap:9px;text-align:right;line-height:1.85;min-height:58px;color:#665574;border-color:#e7d8ea;box-shadow:0 2px 8px #785e8506}.quiz-option:disabled{opacity:1}.quiz-option>span:last-child{flex:1;min-width:0}.quiz-option-letter{display:inline-grid;place-items:center;flex:0 0 25px;height:25px;border-radius:9px;background:#f0e5f6;color:#8967a0;font-size:.72rem;font-weight:900}.quiz-option.correct .quiz-option-letter{background:#b9ddc3;color:#315f41}.quiz-option.wrong .quiz-option-letter{background:#f2c6bf;color:#873f3a}.quiz-instruction{margin-bottom:10px}.quiz-result-score{font-size:2rem;font-weight:900;color:#8c66a6;text-align:center;margin:8px}.empty-review{padding:10px 2px}.empty-review h2{font-size:1.05rem}.empty-review p{font-size:.82rem;line-height:1.9;color:var(--muted)}@media(min-width:400px){.tool-menu button{gap:15px;padding:14px 16px}}

.review-nudge{display:flex;align-items:center;gap:10px;margin:14px 0 24px;padding:13px;border:1px solid #e9d9ef;border-radius:18px;background:linear-gradient(110deg,#f7eefb,#fff4f7);box-shadow:0 5px 17px #80638d0b}.review-nudge-icon{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#ffffffb5;color:#9670ad}.review-nudge-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.review-nudge>div{flex:1;min-width:0}.review-nudge b{display:block;font-size:.78rem}.review-nudge p{font-size:.68rem;line-height:1.65;color:#8d7b98;margin:4px 0 0}.review-nudge button{flex:0 0 auto;max-width:115px;border:0;border-radius:11px;background:#a27db7;color:white;padding:8px 10px;font-size:.68rem;font-weight:900;line-height:1.4}

.backup-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.backup-actions .secondary-button{margin-top:0;display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer}.import-backup-button{font-size:.79rem}


/* V5: lesson actions are one intentional, accessible group instead of adjacent buttons. */
.lesson-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:22px 0 12px;padding:12px;border:1px solid #f0e1ec;border-radius:20px;background:linear-gradient(145deg,#fff5f8,#fffaf7 55%,#f7f1fb);}
.lesson-actions .lesson-action{width:100%;min-height:70px;margin:0;padding:12px 14px;display:flex;align-items:center;gap:12px;text-align:right;border-radius:15px;white-space:normal;line-height:1.45;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;background-clip:padding-box;}
.lesson-actions .lesson-action:active{transform:scale(.99);}
.lesson-action-test{justify-content:space-between;box-shadow:0 5px 14px #a67db01c;}
.lesson-action-done{justify-content:flex-start;border:1px solid #e7d7ed;background:#fff;color:#785d8b;box-shadow:none;}
.lesson-action-done.is-done{background:#eff8f0;border-color:#c8e4ce;color:#477858;}
.lesson-action-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#ffffff32;color:currentColor;}
.lesson-action-done .lesson-action-icon{background:#f1e8f7;color:#8e6ca5;}
.lesson-action-done.is-done .lesson-action-icon{background:#dff0e2;color:#477858;}
.lesson-action-icon svg{width:25px;height:25px;display:block;}
.lesson-action-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;}
.lesson-action-copy strong{display:block;font-size:.84rem;font-weight:900;line-height:1.5;}
.lesson-action-copy small{display:block;font-size:.68rem;font-weight:600;line-height:1.65;opacity:.83;}
.lesson-action-arrow{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.85;}
.lesson-action-done .done-check{opacity:0;transition:opacity .15s ease;}
.lesson-action-done.is-done .done-check{opacity:1;}
.lesson-source-note{margin:12px 2px 0;}
@media(max-width:360px){.lesson-actions{padding:9px;gap:10px}.lesson-actions .lesson-action{padding:11px;gap:9px;min-height:66px}.lesson-action-icon{width:38px;height:38px;flex-basis:38px}.lesson-action-copy strong{font-size:.8rem}.lesson-action-copy small{font-size:.64rem}}
