:root {
  font-family: "DM Sans", sans-serif;
  color: #24253a;
  background: #f5f6fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #ededed;
  --muted: #a4a4a4;
  --purple: #6b62f2;
  --line: #393939;
  --surface: #161616;
  --workspace-bg: #0a0a0a;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.screen { min-height: 100vh; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font: 500 20px "Geist", sans-serif; letter-spacing: -.5px; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 4px; background: #cef79e; color: #222f30; font: 400 20px "DM Sans", sans-serif; }
.brand-light { color: #fff; }
.eyebrow, .mini-label, .step-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1.65px; }
.muted { color: var(--muted); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 20px; padding: 0 16px; border: 0; border-radius: 9999px; font: 400 13px "Roboto Mono", monospace; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #222f30; color: #fff; }
.button-primary:hover { background: #344344; }
.button-full { width: 100%; margin-top: 21px; }

/* Animated welcome */
.intro-screen { position: relative; display: flex; overflow: hidden; min-height: 100vh; align-items: center; padding: 6vh 10vw; background: #222f30; color: #fff; isolation: isolate; }
.intro-screen::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(ellipse at 72% 48%, #384d4c 0, transparent 38%), radial-gradient(ellipse at 19% 84%, #314345 0, transparent 35%), #222f30; content: ""; }
.intro-content { z-index: 2; width: min(510px, 52%); animation: rise-in .9s both; }
.intro-content .brand { margin-bottom: clamp(70px, 13vh, 132px); }
.intro-copy .eyebrow { color: #c9cbbe; font: 400 11px "Roboto Mono", monospace; letter-spacing: .04em; }
.intro-copy h1 { margin: 18px 0; font: 400 clamp(45px, 5.2vw, 72px)/1 "DM Sans", sans-serif; letter-spacing: -.035em; }
.intro-copy h1 span { color: #cef79e; }
.intro-description { max-width: 420px; color: #e7e8e1; font-size: 16px; line-height: 1.5; letter-spacing: -.001em; }
.intro-pill { display: flex; width: fit-content; align-items: center; gap: 9px; margin: 27px 0 30px; padding: 8px 12px; border: 1px solid #4d5757; border-radius: 9999px; color: #e7e8e1; font: 400 11px "Roboto Mono", monospace; }
.pulse-dot, .step-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #cef79e; box-shadow: 0 0 10px #cef79e88; }
.button-light { min-width: 190px; background: #fff; color: #222f30; }
.button-light.launching { transform: scale(.97); opacity: .8; }
.intro-footer { display: flex; width: min(510px, 100%); justify-content: space-between; margin-top: clamp(58px, 10vh, 104px); color: #c9cbbe; font: 400 10px "Roboto Mono", monospace; letter-spacing: .02em; }
.intro-art { position: absolute; top: 50%; right: 7%; width: min(54vw, 690px); aspect-ratio: 1; transform: translateY(-50%); }
.intro-glow { position: absolute; z-index: -1; top: 50%; right: 12%; width: min(38vw, 510px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: #cef79e0b; filter: blur(40px); }
.planet { position: absolute; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.planet-large { width: 54%; aspect-ratio: 1; border: 1px solid #e8c79328; background: radial-gradient(ellipse at 28% 22%, #f0d7a2 0, #d6a77c 8%, transparent 28%), radial-gradient(ellipse at 61% 36%, #7c7560 0, #64705e 19%, transparent 39%), radial-gradient(ellipse at 31% 68%, #aa7964 0, #8b6b5b 18%, transparent 39%), radial-gradient(ellipse at 64% 79%, #374e49 0, #263c3a 33%, transparent 54%), radial-gradient(circle at 36% 33%, #b98c71, #786f5c 50%, #304341 83%); box-shadow: inset -30px -19px 48px #101a1a99, inset 13px 10px 25px #ffe0aa24, 0 0 65px #e6b7781d; animation: planet-appear 1.6s cubic-bezier(.15,.7,.25,1) both, float 7s ease-in-out 1.6s infinite; }
.planet-large::before { position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(163deg, transparent 0 16px, #d3b28a0b 17px 19px, transparent 20px 34px), radial-gradient(ellipse at 21% 56%, #d3b28a30 0 5%, transparent 24%), radial-gradient(ellipse at 71% 28%, #cbd1a71c 0 4%, transparent 22%), radial-gradient(ellipse at 59% 71%, #172a2940 0 8%, transparent 32%); content: ""; }
.planet-small { top: 20%; left: 74%; width: 12%; aspect-ratio: 1; background: radial-gradient(circle at 32% 26%, #f2dfb6, #a89d7d 42%, #4f625d 79%); box-shadow: 0 0 24px #e6c79738; animation: float 5s ease-in-out .7s infinite; }
.planet-ring { width: 84%; height: 28%; border: 1px solid #c9cbbe55; border-radius: 50%; box-shadow: 0 0 18px #cef79e12; transform: translate(-50%,-50%) rotate(-24deg); }
.intro-orbit { position: absolute; z-index: -1; top: 50%; right: 3%; width: 52vw; height: 16vw; border: 1px solid #c9cbbe18; border-radius: 50%; transform: translateY(-50%) rotate(-24deg); }
.orbit-two { width: 62vw; height: 24vw; transform: translateY(-50%) rotate(42deg); }
.art-caption { position: absolute; right: 0; bottom: 18%; display: flex; align-items: center; gap: 10px; color: #c9cbbe; font: 400 9px "Roboto Mono", monospace; letter-spacing: .08em; }
.art-caption-line { width: 28px; height: 1px; background: #cef79e; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes planet-appear { from { opacity: 0; transform: translate(-50%,-50%) scale(.3) rotate(-35deg); } to { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0); } }
@keyframes float { 0%,100% { margin-top: 0; } 50% { margin-top: -13px; } }

/* Sign in */
.auth-screen { display: grid; min-height: 100vh; grid-template-columns: minmax(350px, .92fr) 1.08fr; background: #0a0a0a; }
.auth-visual { position: relative; display: flex; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 42px clamp(35px, 6vw, 88px); background: #161616; color: white; isolation: isolate; }
.auth-visual::before, .auth-visual::after { position: absolute; z-index: -1; width: 470px; height: 470px; border: 1px solid #e5e5e51c; border-radius: 50%; content: ""; }
.auth-visual::before { right: -200px; bottom: -70px; box-shadow: 0 0 0 52px #d4d4d40a, 0 0 0 105px #d4d4d406; }
.auth-visual::after { right: -83px; bottom: 44px; width: 250px; height: 250px; background: radial-gradient(circle at 30% 25%, #6b62f255, #ffffff08 53%, transparent 70%); }
.auth-visual-copy { max-width: 440px; margin: auto 0; padding: 45px 0; }
.auth-visual-copy .eyebrow { color: #b2b2b2; }
.auth-visual-copy h2 { margin: 20px 0; font: 500 clamp(38px, 4vw, 57px)/1.08 "DM Sans", sans-serif; letter-spacing: -.035em; }
.auth-visual-copy h2 span { color: #c2c2c2; }
.auth-visual-copy p { max-width: 350px; color: #c2c2c2; font-size: 16px; line-height: 1.5; }
.auth-visual-bottom { color: #b2b2b2; font: 400 11px "Roboto Mono", monospace; }
.auth-visual-bottom span { margin-right: 8px; color: #6b62f2; }
.auth-form-side { display: grid; align-items: center; justify-items: center; padding: 48px 30px; background: radial-gradient(ellipse at 65% 45%, #6b62f21b 0, transparent 46%), #0a0a0a; }
.auth-form-wrap { width: min(100%, 380px); }
.step-kicker { display: flex; align-items: center; gap: 9px; color: #b2b2b2; font: 400 10px "Roboto Mono", monospace; }
.step-dot { width: 6px; height: 6px; background: #6b62f2; box-shadow: none; }
.auth-form-wrap h1 { margin: 23px 0 7px; color: #ededed; font: 500 28px "DM Sans", sans-serif; letter-spacing: -.035em; }
.auth-form-wrap > .muted { margin: 0 0 28px; font-size: 13px; }
label { display: block; margin: 17px 0 8px; color: #c2c2c2; font-size: 12px; font-weight: 500; }
input:not([type="checkbox"]), select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #e5e5e53a; border-radius: 10px; outline: none; background: #161616; color: #ededed; font-size: 13px; transition: border .2s, box-shadow .2s; }
input:focus, select:focus { border-color: #6b62f2; box-shadow: 0 0 0 3px #6b62f21c; }
input::placeholder { color: #686868; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row label { margin-bottom: 8px; }
.secure-label { padding: 4px 7px; border-radius: 5px; background: #6b62f21c; color: #c2c2c2; font-size: 9px; font-weight: 500; }
.input-hint { margin: 7px 0 0; color: #686868; font-size: 10px; }
.input-hint b { color: #77718d; }
.auth-links { display: flex; justify-content: space-between; margin-top: 22px; }
.text-button { padding: 4px 0; border: 0; background: transparent; color: #b2b2b2; font: 400 10px "Roboto Mono", monospace; }
.text-button:hover { color: #fff; text-decoration: underline; }
.demo-note { margin-top: 34px; color: #686868; font: 400 9px "Roboto Mono", monospace; text-align: center; }
.form-error { min-height: 16px; margin: 8px 0 0; color: #c64556; font-size: 11px; }
.auth-mobile-brand { display: none; }

/* Personalization flow */
.onboarding-screen { display: grid; min-height: 100vh; place-items: center; padding: clamp(14px, 3vw, 42px); background: #e9e9e1; color: #222f30; }
.onboarding-card { display: grid; overflow: hidden; width: min(1440px, 100%); min-height: min(820px, calc(100svh - clamp(28px, 6vw, 84px))); grid-template-columns: minmax(320px, 35fr) minmax(0, 65fr); border: 1px solid #d5d7cf; border-radius: 25px; background: #fbfbf8; box-shadow: 0 24px 70px #222f3014; }
.onboarding-sidebar { position: relative; display: flex; overflow: hidden; min-height: 680px; flex-direction: column; padding: 34px clamp(25px, 3.2vw, 48px) 30px; background: radial-gradient(ellipse at 60% 48%, #8b845b55 0, transparent 28%), radial-gradient(ellipse at 15% 83%, #5e715644 0, transparent 42%), #182625; color: #fff; isolation: isolate; }
.onboarding-sidebar::before { position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 12% 18%, #e8ead7 0 1px, transparent 1.5px), radial-gradient(circle at 82% 15%, #e8ead7 0 1px, transparent 1.5px), radial-gradient(circle at 73% 33%, #e8ead7 0 1px, transparent 1.5px), radial-gradient(circle at 18% 44%, #e8ead7 0 1px, transparent 1.5px), radial-gradient(circle at 91% 56%, #e8ead7 0 1px, transparent 1.5px), radial-gradient(circle at 36% 29%, #e8ead7 0 1px, transparent 1.5px), radial-gradient(circle at 58% 13%, #e8ead7 0 1px, transparent 1.5px); opacity: .46; content: ""; }
.onboarding-sidebar::after { position: absolute; z-index: -1; right: 0; bottom: 0; left: 0; height: 34%; background: linear-gradient(0deg, #121d1b 0, #17242100 100%); content: ""; }
.onboarding-brand { z-index: 3; color: #f6f6ef; }
.onboarding-art { position: absolute; z-index: -1; inset: 11% 0 20%; overflow: hidden; }
.onboarding-art::before { position: absolute; top: 6%; left: 50%; width: 90%; height: 85%; transform: translateX(-50%); border: 1px solid #d9deca20; border-radius: 50%; content: ""; }
.onboarding-art::after { position: absolute; right: 0; bottom: 14%; left: 0; height: 28%; background: radial-gradient(ellipse at 51% 100%, #d89c5d42, transparent 65%); content: ""; }
.onboarding-planet { position: absolute; top: 13%; left: 50%; width: min(77%, 365px); aspect-ratio: 1; transform: translateX(-50%); border: 1px solid #e8c79328; border-radius: 50%; background: radial-gradient(ellipse at 28% 22%, #f0d7a2 0, #d6a77c 8%, transparent 28%), radial-gradient(ellipse at 61% 36%, #7c7560 0, #64705e 19%, transparent 39%), radial-gradient(ellipse at 31% 68%, #aa7964 0, #8b6b5b 18%, transparent 39%), radial-gradient(ellipse at 64% 79%, #374e49 0, #263c3a 33%, transparent 54%), radial-gradient(circle at 36% 33%, #b98c71, #786f5c 50%, #304341 83%); box-shadow: inset -30px -19px 48px #101a1a99, inset 13px 10px 25px #ffe0aa24, 0 0 65px #e6b7781d; }
.onboarding-planet::before { position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(163deg, transparent 0 16px, #d3b28a0b 17px 19px, transparent 20px 34px), radial-gradient(ellipse at 21% 56%, #d3b28a30 0 5%, transparent 24%), radial-gradient(ellipse at 71% 28%, #cbd1a71c 0 4%, transparent 22%), radial-gradient(ellipse at 59% 71%, #172a2940 0 8%, transparent 32%); content: ""; }
.onboarding-orbit { position: absolute; z-index: 1; top: 31%; left: 50%; width: 112%; height: 31%; transform: translate(-50%, -50%) rotate(-24deg); border: 1px solid #d9deca4a; border-radius: 50%; }
.onboarding-satellite { position: absolute; z-index: 2; display: block; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #f2dfb6, #a89d7d 42%, #4f625d 79%); box-shadow: 0 0 24px #e6c79738; }
.satellite-one { top: 23%; right: 14%; width: 22px; height: 22px; }
.satellite-two { top: 55%; left: 12%; width: 11px; height: 11px; opacity: .85; }
.onboarding-mountains { position: absolute; right: -5%; bottom: 0; left: -5%; height: 31%; background: #192824; clip-path: polygon(0 100%, 0 56%, 17% 24%, 26% 52%, 40% 15%, 57% 62%, 73% 27%, 89% 61%, 100% 34%, 100% 100%); }
.onboarding-mountains::before { position: absolute; inset: 28% 0 0; background: #24352e; clip-path: polygon(0 100%, 0 34%, 14% 55%, 33% 7%, 54% 54%, 72% 21%, 86% 59%, 100% 32%, 100% 100%); content: ""; }
.onboarding-mountains::after { position: absolute; right: 0; bottom: 0; left: 0; height: 45%; background: linear-gradient(90deg, #17251f, #344336 47%, #1a2823); clip-path: polygon(0 100%, 0 56%, 8% 46%, 10% 12%, 12% 48%, 20% 39%, 24% 0, 28% 43%, 42% 52%, 55% 9%, 60% 50%, 73% 42%, 79% 4%, 84% 50%, 100% 38%, 100% 100%); content: ""; }
.onboarding-message { z-index: 2; margin: auto 0 26px; color: #e6e9df; font: 400 clamp(18px, 1.7vw, 25px)/1.45 "DM Sans", sans-serif; letter-spacing: -.025em; }
.onboarding-message b { color: #cef79e; font-weight: 400; }
.onboarding-steps { z-index: 2; display: flex; align-items: center; gap: 7px; color: #aab4ae; font: 400 10px "Roboto Mono", monospace; }
.onboarding-step { position: relative; padding: 7px 9px; border: 1px solid #c9cbbe32; border-radius: 999px; color: #c2c8bc; white-space: nowrap; transition: .2s; }
.onboarding-step:not(:last-child)::after { display: inline-block; width: 6px; height: 6px; margin: 0 10px 1px 13px; transform: rotate(45deg); border-top: 1px solid #9da69b; border-right: 1px solid #9da69b; content: ""; }
.onboarding-step.active { border-color: #cef79e90; background: #cef79e12; color: #cef79e; }
.question-panel { display: flex; min-width: 0; flex-direction: column; padding: clamp(32px, 5vw, 68px) clamp(30px, 6vw, 88px) 28px; background: #fbfbf8; }
.question-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.question-overline, .onboarding-progress-label { color: #68716b; font: 400 10px "Roboto Mono", monospace; letter-spacing: .08em; }
.onboarding-progress-label { white-space: nowrap; }
.onboarding-progress-label b { margin-left: 5px; color: #263a35; font-weight: 400; }
.question-panel h1 { max-width: 540px; margin: 30px 0 9px; color: #222f30; font: 400 clamp(32px, 3.3vw, 45px)/1.12 "DM Sans", sans-serif; letter-spacing: -.04em; }
.question-panel .question-subtitle { max-width: 560px; margin: 0 0 24px; color: #68716b; font-size: 14px; line-height: 1.6; }
.question-options { display: grid; gap: 10px; }
.question-option { display: flex; min-height: 77px; align-items: center; gap: 17px; padding: 12px 16px; border: 1px solid #e0e2d9; border-radius: 12px; background: #fff; color: #222f30; text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.question-option:hover { transform: translateY(-1px); border-color: #899781; background: #f8faf4; }
.question-option.selected { border-color: #8ca878; background: #f5f8ee; }
.area-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #f0f1e9; color: #5b6c58; }
.area-icon svg { width: 22px; height: 22px; }
.area-icon-finance { color: #8b7654; }
.area-icon-study { color: #667b78; }
.area-icon-fun { color: #987b5c; }
.area-copy { display: grid; min-width: 0; gap: 4px; }
.area-title { color: #263430; font: 400 12px "Roboto Mono", monospace; letter-spacing: .08em; }
.area-description { color: #737b73; font-size: 12px; line-height: 1.4; }
.option-mark { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; margin-left: auto; border: 1px solid #cbd0c5; border-radius: 50%; color: #263a35; font-size: 12px; }
.question-option.selected .option-mark { border-color: #263a35; background: #263a35; color: #cef79e; }
.question-input { margin-top: 8px; }
.question-habit-label { margin-top: 15px; color: #4d5757; }
.onboarding-consent { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0 0; color: #68716b; font-size: 11px; line-height: 1.5; }
.onboarding-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #263a35; }
.question-actions { display: flex; justify-content: space-between; margin-top: auto; padding-top: 21px; }
.question-actions .button-primary { min-width: 148px; border-radius: 8px; background: #263a35; color: #fff; }
.button-quiet { border: 1px solid #d6d9d0; border-radius: 8px; background: transparent; color: #5e6962; }
.button-quiet:hover { background: #f0f1e9; }
.onboarding-footnote { margin: 17px 0 0; color: #929991; font-size: 10px; line-height: 1.5; }

/* Personal dashboard */
.dashboard-screen { position: relative; min-height: 100vh; padding: 0 0 0 86px; background-color: var(--workspace-bg); background-image: linear-gradient(#090a0d8c, #090a0dd9), var(--workspace-image, url("Jupiter.png")); background-position: center; background-size: cover; background-attachment: fixed; transition: background-color .25s, padding-left .2s; }
.dashboard-screen.sidebar-hidden { padding-left: 0; }
.topbar { position: fixed; z-index: 10; top: 0; right: 0; left: 0; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 27px 0 26px; border-bottom: 1px solid #ebeaf0; background: #ffffffed; backdrop-filter: blur(18px); }
.topbar .brand { font-size: 17px; }
.topbar .brand-mark { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.brand-divider { margin-left: 5px; color: #d1cfda; font-size: 17px; font-weight: 400; }
.workspace-label { color: #77778c; font: 500 12px "DM Sans", sans-serif; letter-spacing: 0; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.today-label { color: #858496; font-size: 11px; }
.top-icon-button, .profile-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #eeedf3; border-radius: 11px; background: white; color: #6960bd; font-size: 20px; }
.top-icon-button:hover { background: #f4f1ff; }
.logout-button { display: inline-flex; width: auto; align-items: center; gap: 7px; padding: 0 11px; color: #4d5757; font: 400 10px "Roboto Mono", monospace; }
.logout-button > span:first-child { font: 400 17px "DM Sans", sans-serif; }
.logout-button:hover { border-color: #c9cbbe; background: #f7f7f5; color: #222f30; }
.profile-button { width: 32px; height: 32px; overflow: hidden; border: 0; border-radius: 50%; background: #e7e2ff; color: #5d50c4; font-size: 12px; font-weight: 700; }
.profile-button img { width: 100%; height: 100%; object-fit: cover; }
.sidebar { position: fixed; z-index: 9; top: 62px; bottom: 0; left: 0; display: flex; width: 86px; flex-direction: column; align-items: center; padding: 22px 10px 14px; border-right: 1px solid #ebeaf0; background: #fff; }
.sidebar { transition: transform .2s, opacity .2s; }
.sidebar-hidden .sidebar { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.side-label { margin: 3px 0 20px; color: #b2b0bf; font-size: 7px; font-weight: 700; letter-spacing: .9px; white-space: nowrap; }
.nav-item { display: flex; width: 66px; min-height: 61px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin: 0 0 5px; border: 0; border-radius: 12px; background: transparent; color: #9392a3; font-size: 9px; transition: .2s; }
.nav-item:hover, .nav-item.selected { background: #f2efff; color: #6153ca; }
.nav-icon { display: grid; overflow: hidden; width: 27px; height: 27px; place-items: center; border-radius: 50%; font: 500 20px "Geist",sans-serif; }
.nav-icon img, .window-icon img { width: 100%; height: 100%; transform: scale(2.5); border-radius: 50%; object-fit: cover; }
.sidebar-bottom { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: auto; }
.profile-nav { min-height: 54px; }
.sidebar-version { color: #b9b7c3; font-size: 7px; letter-spacing: .55px; white-space: nowrap; writing-mode: vertical-rl; }
.workspace { position: relative; min-height: 100vh; margin: 0 auto; padding: 87px clamp(19px, 3.3vw, 47px) 25px; }
.windows-area { position: absolute; z-index: 5; top: 155px; right: clamp(19px, 3.3vw, 47px); bottom: 80px; left: clamp(19px, 3.3vw, 47px); width: auto; height: auto; min-height: 0; max-height: none; margin: 0 auto; pointer-events: none; }
.widget-window { position: absolute; top: 0; left: 0; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: auto; resize: none; border: 1px solid #eae9f0; border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px #2b295308; pointer-events: auto; transition: box-shadow .2s, border-color .2s; }
.widget-window[hidden] { display: none !important; }
.widget-window:hover { border-color: #dcd8f0; box-shadow: 0 7px 22px #2b29530d; }
.widget-window.dragging { z-index: 5; opacity: .94; box-shadow: 0 14px 35px #25204b24; }
.window-header { display: flex; min-height: 66px; flex: 0 0 auto; align-items: center; justify-content: space-between; padding: 11px 17px; border-bottom: 1px solid #f0eff4; cursor: grab; user-select: none; }
.window-header:active { cursor: grabbing; }
.window-resize-handle { position: absolute; z-index: 3; touch-action: none; }
.resize-n, .resize-s { right: 12px; left: 12px; height: 8px; cursor: ns-resize; }
.resize-n { top: 0; }.resize-s { bottom: 0; }
.resize-e, .resize-w { top: 12px; bottom: 12px; width: 12px; cursor: ew-resize; }
.resize-e { right: 0; }.resize-w { left: 0; }
.resize-ne, .resize-nw, .resize-se, .resize-sw { width: 14px; height: 14px; }
.resize-ne, .resize-sw { cursor: nesw-resize; }.resize-nw, .resize-se { cursor: nwse-resize; }
.resize-ne { top: 0; right: 0; }.resize-nw { top: 0; left: 0; }
.resize-se { right: 0; bottom: 0; }.resize-sw { bottom: 0; left: 0; }
.window-resize-handle::after { position: absolute; inset: 4px; border-radius: 50%; background: #b2b2b2; content: ""; opacity: 0; transition: opacity .15s; }
.widget-window:hover .window-resize-handle::after { opacity: .8; }
.window-controls { display: flex; height: 34px; flex: 0 0 auto; align-items: stretch; margin: -11px -17px -11px 8px; }
.window-control { display: grid; width: 42px; place-items: center; border: 0; background: transparent; color: #777; font-size: 15px; }
.window-control:hover { background: #ffffff18; }
.window-control-close:hover { background: #c42b1c; color: #fff; }
.window-taskbar { position: absolute; z-index: 6; right: clamp(19px, 3.3vw, 47px); bottom: 31px; left: clamp(19px, 3.3vw, 47px); display: flex; min-height: 0; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.window-taskbar:empty { display: none; }
.taskbar-window { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #ffffff24; border-radius: 8px; background: #ffffff0b; color: var(--ink); font-size: 10px; }
.window-taskbar:not(:empty) { pointer-events: auto; }
.taskbar-window:hover { border-color: #ffffff5c; background: #ffffff14; }
.widget-window.maximized { position: absolute !important; z-index: 20 !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none; max-height: none; resize: none; }
.widget-window.maximized .window-resize-handle { display: none; }
.widget-window.focused { z-index: 4; }
.window-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.window-icon { display: grid; overflow: hidden; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 20px; }
.health-icon { background: #fff1f1; color: #df7c87; }
.study-icon { background: #f1efff; color: #7765d7; }
.finance-icon { background: #eaf8f1; color: #4ea984; }
.fun-icon { background: #fff5e9; color: #e29950; }
.window-title h2 { overflow: hidden; margin: 0; font: 500 13px "Geist", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.window-title p { overflow: hidden; margin: 3px 0 0; color: #9a99a8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.window-close { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #aaa8b5; font-size: 18px; }
.window-close:hover { background: #f3f1fa; color: #6d5fd1; }
.window-body { display: flex; min-height: 0; flex: 1; flex-direction: column; justify-content: center; padding: 16px 18px; }
.health-body { justify-content: flex-start; gap: 12px; }
.health-model-frame { display: block; width: 100%; height: 840px; flex: 0 0 auto; border: 0; border-radius: 12px; background: #14111b; }
.health-summary { display: flex; align-items: center; gap: 15px; }
.health-ring { position: relative; display: grid; width: 61px; height: 61px; flex: 0 0 auto; place-items: center; border: 5px solid #f7e9ed; border-top-color: #d98191; border-right-color: #e9abb1; border-radius: 50%; color: #dc8797; font-size: 19px; }
.mini-label { color: #a5a2b1; font-size: 8px; letter-spacing: 1px; }
.window-body h3 { margin: 6px 0 4px; font: 500 14px "Geist",sans-serif; letter-spacing: -.2px; }
.window-body p { margin: 0; color: #9998a7; font-size: 10px; line-height: 1.5; }
.widget-bottom-line { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #f1eff4; color: #8d8b9b; font-size: 9px; }
.mood-options { display: flex; gap: 6px; }
.mood-options button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: #f7f5fa; color: #8981ba; }
.mood-options button:hover, .mood-options button.chosen { background: #eeeaff; color: #6453ce; }
.study-focus { margin-bottom: 12px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: #8e8b9b; font-size: 9px; }
.progress-label span:last-child { color: #b0aebb; }
.progress-track { overflow: hidden; height: 5px; border-radius: 5px; background: #f0eff5; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9b8bea, #7060d7); }
.inline-action { display: flex; width: fit-content; align-items: center; gap: 9px; margin-top: 12px; padding: 0; border: 0; background: transparent; color: #695bd0; font-size: 10px; font-weight: 700; }
.inline-action:hover { color: #4033a5; }
.finance-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.finance-sparkline { display: flex; height: 36px; align-items: flex-end; gap: 4px; }
.finance-sparkline span { width: 5px; height: 40%; border-radius: 5px; background: #c5e9d8; }
.finance-sparkline span:nth-child(2) { height: 65%; }.finance-sparkline span:nth-child(3) { height: 50%; }.finance-sparkline span:nth-child(4) { height: 75%; }.finance-sparkline span:nth-child(5) { height: 58%; }.finance-sparkline span:nth-child(6) { height: 90%; background: #6ebf98; }.finance-sparkline span:nth-child(7) { height: 70%; background: #91d1b0; }
.finance-advice { max-width: 370px; margin-top: 10px !important; }
.fun-body { position: relative; flex-direction: row; align-items: center; gap: 14px; }
.fun-art { position: relative; display: grid; width: 67px; height: 67px; flex: 0 0 auto; place-items: center; border-radius: 19px; background: linear-gradient(145deg,#fff1d9,#f8d7b9); color: #dd985d; font-size: 29px; }
.fun-art span:nth-child(2) { position: absolute; top: 7px; right: 11px; color: #cb837e; font-size: 12px; }
.fun-art span:nth-child(3) { position: absolute; bottom: 8px; left: 12px; color: #d9a25d; font-size: 15px; }
.fun-copy { min-width: 0; }
.fun-copy h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fun-play { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; margin-left: auto; border: 0; border-radius: 11px; background: #fff4e8; color: #d58e49; font-weight: 700; }
.fun-play:hover { background: #ffe8d0; }
.desktop-hint { display: flex; width: min(100%, 1380px); align-items: center; gap: 7px; margin: 11px auto 0; color: #aaa8b6; font-size: 9px; }
.desktop-hint span { font-size: 13px; }
.canvas-view { display: flex; width: min(100%, 1380px); height: calc(100vh - 132px); min-height: 360px; flex-direction: column; margin: 0 auto; }
.canvas-toolbar { display: flex; min-height: 30px; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 8px; }
.canvas-actions { display: flex; align-items: center; gap: 8px; }
.canvas-actions[hidden] { display: none; }
.canvas-button { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #ffffff2a; border-radius: 9999px; background: #ffffff0a; color: #ededed; font: 400 9px "Roboto Mono", monospace; }
.canvas-button:hover, .canvas-button[aria-pressed="true"] { border-color: #6b62f2; background: #6b62f21c; }
.canvas-button span { font-size: 12px; }
.canvas-tools-toggle { width: 30px; min-height: 30px; justify-content: center; padding: 0; font-size: 14px; }
.canvas-actions { flex-wrap: wrap; justify-content: flex-end; }
.canvas-palette { display: flex; align-items: center; gap: 5px; }
.canvas-color { display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 1px solid #ffffff36; border-radius: 50%; background: #ffffff0a; }
.canvas-color span { width: 12px; height: 12px; border-radius: 50%; background: #fff0b0; box-shadow: 0 0 8px #fff0b080; }
.canvas-color[data-ink-color="lavender"] span { background: #d7c1ff; box-shadow: 0 0 8px #b896ff80; }
.canvas-color[data-ink-color="starlight"] span { background: #a9e8ff; box-shadow: 0 0 8px #81d8ff80; }
.canvas-color:hover, .canvas-color.selected { border-color: #ffffffc7; box-shadow: 0 0 0 2px #ffffff20; }
.brush-size { display: flex; align-items: center; gap: 7px; margin: 0; color: #b2b2b2; font: 400 9px "Roboto Mono", monospace; }
.brush-size input { width: 62px; height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: #6b62f2; }
.canvas-clear { color: #b2b2b2; }
.canvas-sheet { position: relative; min-height: 0; flex: 1; overflow: hidden; border: 0; border-radius: 0; background-color: #090a0d; background-image: linear-gradient(#08090c24, #08090c24), var(--workspace-image, url("Jupiter.png")); background-position: center, center; background-size: cover, auto 100%; background-repeat: no-repeat; box-shadow: none; isolation: isolate; }
.canvas-sheet::before { position: absolute; z-index: -1; inset: -14px; background: var(--workspace-image, url("Jupiter.png")) center / cover no-repeat; content: ""; filter: blur(13px); opacity: .48; }
#canvas-ink { position: relative; z-index: 1; display: block; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.canvas-sheet.is-drawing #canvas-ink { cursor: crosshair; pointer-events: auto; }
.canvas-hint { display: flex; justify-content: space-between; gap: 12px; margin: 9px 2px 0; color: #d3cede; font: 400 9px "Roboto Mono", monospace; }
.customize-popover { position: fixed; z-index: 20; top: 54px; right: 74px; width: 260px; padding: 18px; border: 1px solid #e8e6f0; border-radius: 15px; background: white; box-shadow: 0 14px 40px #28234a1c; }
.popover-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; }
.popover-heading h3 { margin: 4px 0 0; font: 500 15px "Geist", sans-serif; }
.customize-popover label { margin-top: 13px; font-size: 10px; }
.customize-popover select { height: 38px; font-size: 11px; }
.toggle-row { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row input { accent-color: #6c5ed5; }
.customize-popover > .text-button { margin-top: 10px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 23px; padding: 11px 16px; transform: translateY(15px); border: 1px solid #e7e4f0; border-radius: 11px; background: #fff; box-shadow: 0 8px 24px #28234a18; color: #514a78; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
.settings-overlay { position: fixed; z-index: 40; inset: 0; display: grid; overflow-y: auto; place-items: center; padding: 20px; background: #101312b8; backdrop-filter: blur(8px); }
.settings-dialog { width: min(100%, 620px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 27px 30px 24px; border: 1px solid #e4e6df; border-radius: 20px; background: #fbfcf8; color: #242b26; box-shadow: 0 24px 80px #0005; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.settings-heading .mini-label { color: #879081; }
.settings-heading h2 { margin: 5px 0 0; font: 500 25px "DM Sans", sans-serif; letter-spacing: -.03em; }
.settings-heading .window-close { color: #687267; }
.settings-profile { display: flex; min-height: 78px; align-items: center; gap: 13px; padding: 13px 0 17px; border-bottom: 1px solid #e8ebe4; }
.settings-avatar-preview, .settings-avatar-fallback { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.settings-avatar-fallback { display: grid; place-items: center; background: #e6ecd9; color: #52634d; font-size: 20px; font-weight: 600; }
.settings-profile strong { font-size: 12px; }
.settings-profile p, .settings-section p { margin: 4px 0 0; color: #7e877e; font-size: 11px; line-height: 1.45; }
.settings-file-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; margin: 0 0 0 auto; padding: 0 13px; border: 1px solid #dfe4da; border-radius: 9px; background: #fff; color: #45554a; cursor: pointer; font-size: 10px; }
.settings-file-button:hover { border-color: #9baa91; background: #f4f7f0; }
.settings-file-input { position: absolute; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0,0,0,0); }
.settings-file-input:focus-visible + .settings-file-button, .settings-file-button:focus-visible { outline: 3px solid #9baa91; outline-offset: 3px; }
.settings-fields { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 19px 0; }
.settings-dialog .settings-fields label { margin: 0; color: #505b51; font-size: 11px; }
.settings-dialog .settings-fields input { height: 39px; border: 1px solid #dfe4da; border-radius: 8px; background: #fff; color: #283129; font-size: 12px; }
.settings-dialog .settings-fields input:focus { border-color: #819479; outline: 2px solid #8194792b; }
.settings-section { padding: 18px 0; border-top: 1px solid #e8ebe4; }
.settings-section h3 { margin: 0; font-size: 13px; font-weight: 600; }
.settings-section .settings-fields { padding: 15px 0 0; }
.canvas-settings { padding-bottom: 3px; }
.canvas-image-preview { height: 118px; margin-top: 14px; border: 1px solid #dfe4da; border-radius: 11px; background-color: #202821; background-position: center; background-size: cover; }
.canvas-image-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.canvas-image-actions .settings-file-button { margin: 0; }
.text-button { border: 0; background: transparent; color: #7067ce; font-size: 10px; }
.settings-dialog .form-error { min-height: 17px; margin: 12px 0 0; font-size: 11px; }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.settings-actions .button { min-height: 39px; gap: 10px; font-size: 11px; }
.settings-actions .button-primary { background: #293d34; }
.settings-actions .button-primary:hover { background: #3a5548; }
.dashboard-screen.theme-dark { --ink: #eeedf8; --muted: #aaa8bf; --line: #39374d; --surface: #242338; --workspace-bg: #181827; }
.theme-dark .topbar, .theme-dark .sidebar, .theme-dark .customize-popover { border-color: #343247; background: #211f32f2; color: #efedf8; }
.theme-dark .top-icon-button, .theme-dark .profile-button, .theme-dark .focus-chip { border-color: #3a384e; background: #2a293e; color: #d4d0ec; }
.theme-dark .workspace-label, .theme-dark .today-label { color: #aaa8bd; }
.theme-dark .widget-window { border-color: #39374d; background: var(--surface); color: var(--ink); }
.theme-dark .window-header { border-color: #37354a; }
.theme-dark .window-title p, .theme-dark .window-body p, .theme-dark .widget-bottom-line, .theme-dark .progress-label { color: #aaa8bd; }
.theme-dark .progress-track, .theme-dark .mood-options button { background: #39374d; }
.theme-dark .window-close { color: #b9b6cb; }
.theme-dark .window-control { color: #b2b2b2; }
.theme-dark .window-control:hover { background: #ffffff16; color: #fff; }
.theme-dark .customize-popover label { color: #d4d1e4; }
.theme-dark .customize-popover select { border-color: #46435b; background: #29273b; color: #eee; }
.dashboard-screen.theme-lavender { --workspace-bg: #f1effb; }
.theme-lavender .sidebar, .theme-lavender .topbar { background: #faf9ff; }
.theme-lavender .widget-window { border-color: #e4e0f2; }

/* Integrated Biosciences language for the welcome and profile setup. */
.intro-screen .brand-mark, .onboarding-screen .brand-mark { background: #cef79e; color: #222f30; }
.onboarding-screen { background: #e9e9e1; color: #222f30; }
.onboarding-card { border: 1px solid #c9cbbe; border-radius: 20px; background: #fff; box-shadow: none; }
.onboarding-sidebar { background-color: #182625; }
.onboarding-progress-label, .onboarding-footnote { color: #68716b; font-family: "Roboto Mono", monospace; }
.onboarding-progress-label b { color: #263a35; }
.question-panel h1 { color: #222f30; font: 400 clamp(32px, 3.3vw, 45px)/1.12 "DM Sans", sans-serif; letter-spacing: -.04em; }
.question-panel .question-subtitle { color: #68716b; }
.question-panel .question-habit-label { color: #222f30; }
.question-panel .onboarding-consent { color: #68716b; }
.question-option { border-color: #e0e2d9; border-radius: 12px; color: #222f30; }
.question-option:hover { border-color: #899781; background: #f8faf4; }
.question-option.selected { border-color: #8ca878; background: #f5f8ee; color: #222f30; }
.option-mark { border: 1px solid #cbd0c5; border-radius: 50%; background: #fff; color: #263a35; }
.question-option.selected .option-mark { border-color: #263a35; background: #263a35; color: #cef79e; }
.question-actions .button-primary { border-radius: 8px; background: #263a35; color: #fff; }
.question-actions .button-primary:hover { background: #344344; }
.question-actions .button-quiet { border: 1px solid #d6d9d0; background: transparent; color: #5e6962; }
.question-actions .button-quiet:hover { background: #e7e8e1; }

/* Dimension language for the access flow and personal workspace. */
.auth-form-wrap > .muted { color: #c2c2c2; }
.auth-form-side .button-primary { background: #fff; color: #161616; }
.auth-form-side .button-primary:hover { background: #ededed; }
.auth-links { gap: 12px; }
.auth-links .text-button { color: #b2b2b2; }
.auth-links .text-button:hover { color: #fff; }
.dashboard-screen { --ink: #161616; --muted: #686868; --line: #e5e5e5; --surface: #fff; --workspace-bg: #f5f5f5; }
.dashboard-screen.theme-dark { --ink: #ededed; --muted: #a4a4a4; --line: #ffffff1a; --surface: #161616; --workspace-bg: #0a0a0a; }
.theme-dark .topbar, .theme-dark .sidebar, .theme-dark .customize-popover { border-color: #ffffff1a; background: #161616eF; color: #ededed; backdrop-filter: blur(12px); }
.theme-dark .topbar .brand-mark { background: #fff; color: #161616; }
.theme-dark .top-icon-button, .theme-dark .profile-button, .theme-dark .focus-chip { border: 1px solid #ffffff26; background: #ffffff0a; color: #ededed; }
.theme-dark .profile-button { border: 0; background: #ffffff; color: #161616; }
.theme-dark .workspace-label, .theme-dark .today-label { color: #b2b2b2; }
.theme-dark .sidebar { border-right: 1px solid #ffffff1a; }
.theme-dark .side-label, .theme-dark .sidebar-version { color: #686868; }
.theme-dark .nav-item { color: #b2b2b2; }
.theme-dark .nav-item:hover, .theme-dark .nav-item.selected { background: #ffffff12; color: #fff; }
.theme-dark .widget-window { border: 1px solid #ffffff1a; border-radius: 24px; background: #d4d4d41a; box-shadow: none; backdrop-filter: blur(4px); }
.theme-dark .widget-window:hover { border-color: #ffffff35; box-shadow: none; }
.theme-dark .widget-window.dragging { border-color: #ffffff55; box-shadow: 0 0 0 1px #ffffff1a inset; }
.theme-dark .window-header { border-color: #ffffff1a; }
.theme-dark .window-title h2, .theme-dark .window-body h3, .theme-dark .popover-heading h3 { color: #ededed; font-family: "Geist", sans-serif; font-weight: 500; }
.theme-dark .window-title p, .theme-dark .window-body p, .theme-dark .widget-bottom-line, .theme-dark .progress-label { color: #a4a4a4; }
.theme-dark .window-close { color: #b2b2b2; }
.theme-dark .window-close:hover { background: #ffffff12; color: #fff; }
.theme-dark .window-icon { border: 1px solid #ffffff24; background: #ffffff08; color: #ededed; }
.theme-dark .health-ring { border-color: #ffffff25; border-top-color: #c2c2c2; border-right-color: #ededed; color: #ededed; }
.theme-dark .widget-bottom-line { border-color: #ffffff1a; }
.theme-dark .mood-options button, .theme-dark .fun-play { border: 1px solid #ffffff26; background: #ffffff0a; color: #ededed; }
.theme-dark .mood-options button:hover, .theme-dark .mood-options button.chosen, .theme-dark .fun-play:hover { background: #ffffff20; color: #fff; }
.theme-dark .mini-label { color: #929292; font-family: "Roboto Mono", monospace; }
.theme-dark .progress-track { background: #ffffff1a; }
.theme-dark .progress-track span { background: linear-gradient(90deg, #ffffff35, #6b62f2); }
.theme-dark .progress-label span:last-child { color: #686868; }
.theme-dark .inline-action { color: #c2c2c2; font-family: "Roboto Mono", monospace; font-weight: 400; }
.theme-dark .inline-action:hover { color: #fff; }
.theme-dark .finance-sparkline span, .theme-dark .finance-sparkline span:nth-child(6), .theme-dark .finance-sparkline span:nth-child(7) { background: #b2b2b2; }
.theme-dark .fun-art { border: 1px solid #ffffff2a; background: linear-gradient(135deg,#d4d4d41c,#ffffff05); color: #ededed; }
.theme-dark .fun-art span:nth-child(2), .theme-dark .fun-art span:nth-child(3) { color: #c2c2c2; }
.theme-dark .focus-chip .pulse-dot { background: #6b62f2; box-shadow: 0 0 10px #6b62f288; }
.theme-dark .desktop-hint { color: #686868; }
.theme-dark .customize-popover { border-radius: 19px; box-shadow: none; }
.theme-dark .customize-popover label { color: #c2c2c2; }
.theme-dark .customize-popover select { border-color: #ffffff2a; border-radius: 10px; background: #161616; color: #ededed; }
.theme-dark .toggle-row input { accent-color: #6b62f2; }
.theme-dark .customize-popover .text-button { color: #b2b2b2; }
.theme-dark .toast { border-color: #ffffff26; background: #161616f2; color: #ededed; box-shadow: none; backdrop-filter: blur(8px); }
.theme-dark .canvas-toolbar .eyebrow { color: #686868; }
.theme-dark .canvas-button { border-color: #ffffff26; background: #ffffff0a; color: #ededed; }
.theme-dark .canvas-button:hover, .theme-dark .canvas-button[aria-pressed="true"] { border-color: #6b62f2; background: #6b62f21c; }
.theme-dark .brush-size { color: #b2b2b2; }
.theme-dark .window-taskbar .taskbar-window { border-color: #ffffff24; }
.theme-dark .widget-window.maximized { background: #161616; }
.theme-lavender { --workspace-bg: #f1effb; }
.theme-lavender .sidebar, .theme-lavender .topbar { background: #faf9ff; }
.theme-lavender .widget-window { border-color: #e4e0f2; }
.auth-visual .brand-mark, .auth-mobile-brand .brand-mark { background: #fff; color: #161616; }
.question-option:focus-visible, .question-actions .button:focus-visible, .onboarding-consent input:focus-visible { outline: 3px solid #8ca878; outline-offset: 3px; }
.dashboard-screen { color: var(--ink); }
.theme-dark .welcome-row .eyebrow { color: #b2b2b2; }

@media (max-width: 900px) {
  .onboarding-card { grid-template-columns: minmax(270px, 32fr) minmax(0, 68fr); }
  .onboarding-sidebar { padding-right: 24px; padding-left: 24px; }
  .question-panel { padding-right: clamp(24px, 4vw, 48px); padding-left: clamp(24px, 4vw, 48px); }
}
@media (max-width: 760px) {
  .onboarding-screen { display: block; min-height: 100svh; padding: 12px; }
  .onboarding-card { min-height: 0; grid-template-columns: 1fr; margin: 0; border-radius: 20px; }
  .onboarding-sidebar { min-height: 250px; padding: 20px 22px 18px; }
  .onboarding-art { inset: 0 0 0 40%; }
  .onboarding-art::before { width: 120%; height: 100%; }
  .onboarding-planet { top: 6%; width: min(75%, 220px); }
  .onboarding-orbit { top: 40%; width: 122%; }
  .satellite-one { top: 17%; right: 12%; width: 16px; height: 16px; }
  .satellite-two { top: 53%; left: 18%; width: 8px; height: 8px; }
  .onboarding-mountains { height: 34%; }
  .onboarding-message { max-width: 58%; margin: auto 0 42px; font-size: 19px; }
  .onboarding-steps { position: absolute; right: 12px; bottom: 13px; left: 18px; justify-content: flex-start; gap: 3px; font-size: 8px; }
  .onboarding-step { padding: 5px 6px; }
  .onboarding-step:not(:last-child)::after { margin-right: 5px; margin-left: 7px; }
  .question-panel { min-height: 0; padding: 27px 22px 21px; }
  .question-panel h1 { margin-top: 26px; font-size: 32px; }
  .question-panel .question-subtitle { margin-bottom: 18px; font-size: 13px; }
  .question-option { min-height: 68px; gap: 12px; padding: 10px 12px; }
  .area-icon { width: 38px; height: 38px; }
  .area-icon svg { width: 20px; height: 20px; }
  .area-description { font-size: 11px; }
  .question-actions { margin-top: 20px; padding-top: 0; }
  .onboarding-footnote { text-align: center; font-size: 9px; }
}

@media (max-width: 850px) {
  .intro-screen { padding: 7vh 8vw; }
  .intro-content { width: 72%; }
  .intro-art { right: -19%; width: 61vw; opacity: .68; }
  .intro-glow { right: -8%; }
  .auth-screen { grid-template-columns: minmax(260px,.75fr) 1.25fr; }
  .auth-visual { padding: 30px; }
  .dashboard-screen { padding-left: 70px; }
  .dashboard-screen.sidebar-hidden { padding-left: 0; }
  .sidebar { width: 70px; }
  .workspace { padding-right: 17px; padding-left: 17px; }
  .windows-area { top: 155px; right: 17px; bottom: 80px; left: 17px; }
  .window-taskbar { right: 17px; left: 17px; }
  .window-header { padding: 9px 12px; }
  .window-body { padding: 13px; }
}
@media (max-width: 620px) {
  .health-model-frame { height: 760px; }
  .intro-screen { min-height: 100svh; align-items: flex-start; padding: 26px 25px; }
  .intro-content { width: 100%; }
  .intro-content .brand { margin-bottom: 17vh; }
  .intro-copy h1 { font-size: clamp(44px,12vw,61px); letter-spacing: -2.5px; }
  .intro-description { max-width: 360px; font-size: 13px; }
  .intro-art { top: 61%; right: -28%; width: 83vw; opacity: .35; }
  .intro-glow { top: 63%; right: -20%; width: 80vw; }
  .intro-footer { position: absolute; right: 25px; bottom: 25px; left: 25px; width: auto; margin: 0; }
  .auth-screen { display: block; min-height: 100svh; padding: 24px; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: calc(100svh - 48px); align-content: center; padding: 10px 0; }
  .auth-mobile-brand { display: flex; margin-bottom: 35px; }
  .auth-form-wrap h1 { font-size: 25px; }
  .onboarding-progress-label { font-size: 8px; letter-spacing: .04em; }
  .dashboard-screen { min-height: 100svh; padding: 0 0 67px; }
  .dashboard-screen.sidebar-hidden { padding-bottom: 0; }
  .sidebar-hidden .windows-area { bottom: 10px; }
  .sidebar-hidden .window-taskbar { bottom: 10px; }
  .topbar { height: 55px; padding: 0 13px; }
  .topbar .brand { gap: 6px; font-size: 15px; }
  .topbar .brand-mark { width: 25px; height: 25px; }
  .workspace-label, .brand-divider, .today-label { display: none; }
  .topbar-right { gap: 9px; }
  .top-icon-button { width: 31px; height: 31px; border-radius: 9px; font-size: 17px; }
  .logout-button { width: 34px; justify-content: center; padding: 0; }
  .logout-label { display: none; }
  .sidebar { top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 64px; flex-direction: row; justify-content: space-around; padding: 5px 4px; border-top: 1px solid #ebeaf0; border-right: 0; }
  .sidebar-hidden .sidebar { transform: translateY(100%); }
  .side-label, .sidebar-bottom, .sidebar-version { display: none; }
  .nav-item { width: 23%; min-height: 51px; gap: 2px; margin: 0; font-size: 8px; }
  .nav-icon { width: 23px; height: 23px; font-size: 18px; }
  .workspace { padding: 74px 13px 15px; }
  .windows-area { position: fixed; z-index: 8; top: 63px; right: 8px; bottom: 116px; left: 8px; }
  .window-taskbar { position: fixed; z-index: 9; right: 8px; bottom: 73px; left: 8px; }
  .sidebar-hidden .windows-area { bottom: 50px; }
  .sidebar-hidden .window-taskbar { bottom: 10px; }
  .widget-window { min-height: 185px; }
  .widget-window[hidden] { display: none !important; }
  .window-header { min-height: 60px; }
  .window-body { min-height: 135px; }
  .desktop-hint { margin-top: 9px; font-size: 8px; }
  .customize-popover { top: 50px; right: 10px; }
  .toast { right: 13px; bottom: 75px; left: 13px; text-align: center; }
  .canvas-toolbar { min-height: 30px; align-items: center; margin-bottom: 6px; }
  .canvas-actions { flex-direction: row; align-items: center; }
  .brush-size { justify-content: center; min-height: 20px; }
  .settings-overlay { align-items: start; padding: 10px; }
  .settings-dialog { max-height: calc(100dvh - 20px); padding: 22px 18px 18px; border-radius: 16px; }
  .settings-profile { gap: 10px; }
  .settings-profile p { max-width: 185px; }
  .settings-file-button { padding: 0 10px; white-space: nowrap; }
  .settings-fields { grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 15px 0; }
  .settings-dialog .settings-fields label:not(:first-child) { margin-top: 6px; }
  .settings-section .settings-fields { padding-top: 12px; }
  .canvas-image-preview { height: 104px; }
  .canvas-image-actions { flex-wrap: wrap; gap: 11px; }
  .settings-actions .button { flex: 1; }
  .canvas-button { min-height: 27px; justify-content: center; font-size: 8px; }
  .canvas-tools-toggle { width: 30px; min-height: 30px; }
  .canvas-view { height: calc(100svh - 155px); }
  .canvas-sheet { min-height: 230px; }
  .canvas-hint { flex-direction: column; gap: 4px; font-size: 8px; }
  .window-controls { margin-right: -12px; }
  .window-control { width: 32px; }
  .window-resize-handle::after { opacity: .8; }
}
@media (max-width: 620px) and (pointer: coarse) {
  .resize-e, .resize-w { width: 18px; }
  .resize-ne, .resize-nw, .resize-se, .resize-sw { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Tema galáctico y hoja de scratch art */
.intro-screen {
  min-height: 100svh;
  background: #08070d;
  color: #fff;
}
.intro-screen::before {
  z-index: -2;
  background:
    radial-gradient(ellipse at 75% 42%, #7135ad55 0, transparent 37%),
    radial-gradient(ellipse at 19% 82%, #30134888 0, transparent 45%),
    #08070d;
}
.intro-content { width: min(760px, 85%); }
.intro-content .brand { margin-bottom: clamp(70px, 15vh, 150px); }
.intro-content .brand-mark { background: #a879ff; color: #11091d; }
.intro-copy h1 {
  max-width: 760px;
  margin: 0 0 44px;
  font: 400 clamp(54px, 8vw, 106px)/1.08 "Parisienne", cursive;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 8px 40px #a354ff45;
}
.intro-copy h1 span {
  color: #c5a0ff;
  background: linear-gradient(100deg, #9b64ee, #e0c3ff 48%, #9b64ee);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-nebula {
  position: absolute;
  top: 50%;
  right: 7%;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid #c9a1ff32;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #b78aff21 0 17%, transparent 18%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 48px, #b78aff12 49px 50px),
    radial-gradient(circle at 45% 45%, #6d3c9f55, transparent 68%);
  box-shadow: 0 0 100px #793fbb25, inset 0 0 60px #7f49bd20;
  pointer-events: none;
}
.button-light { background: #b68bff; color: #10091b; font-weight: 600; }
.button-light:hover { background: #d3b8ff; }
.auth-screen { background: #09070e; }
.auth-visual {
  background:
    radial-gradient(ellipse at 65% 58%, #7135ad4a 0, transparent 48%),
    radial-gradient(ellipse at 16% 90%, #30134888 0, transparent 47%),
    #100c17;
}
.auth-visual::before { border-color: #c9a1ff24; box-shadow: 0 0 0 52px #c9a1ff08, 0 0 0 105px #c9a1ff05; }
.auth-visual::after { background: radial-gradient(circle at 30% 25%, #9d5dea5a, #ffffff08 53%, transparent 70%); }
.auth-visual-copy { max-width: 500px; }
.auth-visual-copy h2 {
  color: #f2eaff;
  font: 500 clamp(27px, 3vw, 43px)/1.35 "DM Sans", sans-serif;
  letter-spacing: -.035em;
}
.auth-visual-bottom { color: #cab8e3; }
.auth-visual-bottom span { color: #b68bff; }
.auth-form-side {
  background: radial-gradient(ellipse at 65% 45%, #6b37a825 0, transparent 48%), #09070e;
}
.auth-form-side .brand-mark { background: #a879ff; color: #10091b; }
.step-dot { background: #bd91ff; box-shadow: 0 0 12px #bd91ff88; }
.auth-form-side .button-primary { background: #b68bff; color: #10091b; font-weight: 600; }
.auth-form-side .button-primary:hover { background: #d3b8ff; }
.auth-links .text-button:hover { color: #d4b8ff; }
.dashboard-screen {
  --ink: #f0e9fa;
  --muted: #aaa0b9;
  --line: #35273f;
  --surface: #18121f;
  --workspace-bg: #0a0710;
  background-color: #0a0710;
  background-image:
    radial-gradient(ellipse at 76% 18%, #572a762b, transparent 40%),
    radial-gradient(ellipse at 15% 92%, #31154833, transparent 42%);
}
.dashboard-screen.theme-dark {
  --ink: #f0e9fa;
  --muted: #aaa0b9;
  --line: #35273f;
  --surface: #18121f;
  --workspace-bg: #0a0710;
}
.theme-dark .topbar,
.theme-dark .sidebar,
.theme-dark .customize-popover {
  border-color: #ffffff19;
  background: #120d19f2;
  color: #f0e9fa;
}
.theme-dark .topbar .brand-mark { background: #b68bff; color: #10091b; }
.theme-dark .nav-item:hover,
.theme-dark .nav-item.selected { background: #a879ff17; color: #d9c2ff; }
.theme-dark .widget-window { border-color: #ffffff1b; background: #17111eeb; }
.theme-dark .progress-track span { background: linear-gradient(90deg, #9b64ee, #d6b7ff); }
.theme-dark .finance-sparkline span,
.theme-dark .finance-sparkline span:nth-child(6),
.theme-dark .finance-sparkline span:nth-child(7) { background: #b68bff; }
.theme-dark .window-icon { border-color: #ffffff1c; background: #a879ff15; color: #d1b3ff; }
.sidebar {
  width: 218px;
  align-items: stretch;
  padding: 21px 12px 14px;
  background: #120d19;
}
.dashboard-screen { padding-left: 218px; }
.side-label {
  margin: 3px 8px 15px;
  color: #867b93;
  font: 500 10px "Roboto Mono", monospace;
  letter-spacing: .08em;
}
.nav-folder {
  width: 100%;
  min-height: 37px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 9px;
  margin: 0 0 2px;
  padding: 0 8px;
  border-radius: 6px;
  color: #c5b9d1;
  font-size: 12px;
  text-align: left;
}
.folder-caret { width: 9px; color: #8d829a; font-size: 16px; line-height: 1; }
.folder-mark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: #c59aff;
}
.folder-mark::before {
  position: absolute;
  top: -4px;
  left: 1px;
  width: 6px;
  height: 4px;
  border: 1px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
}
.nav-folder:hover,
.nav-folder.selected { background: #a879ff17; color: #e4d4ff; }
.nav-folder.selected .folder-caret { transform: rotate(90deg); }
.sidebar-bottom { align-items: stretch; gap: 16px; }
.profile-nav { min-height: 37px; }
.sidebar-version {
  padding-left: 34px;
  color: #71677c;
  font-size: 8px;
  writing-mode: horizontal-tb;
}
.window-icon {
  width: 34px;
  height: 28px;
  border: 1px solid #ffffff24;
  border-radius: 7px;
  background: #a879ff14;
  color: #d0b1ff;
  font: 600 10px "Roboto Mono", monospace;
}
.health-icon, .study-icon, .finance-icon, .fun-icon { background: #a879ff14; color: #d0b1ff; }
.scratch-heading {
  position: relative;
  flex: 0 0 auto;
  padding: 0 20px 14px;
  color: #fff;
  text-align: center;
}
.scratch-heading h1 {
  margin: 0;
  color: #fff;
  font: 700 clamp(28px, 4vw, 46px)/1.05 "Fredoka", sans-serif;
  letter-spacing: .04em;
  -webkit-text-stroke: 2px #111018;
  paint-order: stroke fill;
  text-shadow: 3px 4px 0 #111018, 0 0 22px #ffffff3b;
}
.scratch-heading p { margin: 7px 0 0; color: #ded0ee; font-size: 11px; }
.scratch-crayon { position: absolute; top: -4px; font-size: 26px; filter: drop-shadow(0 3px 3px #0006); }
.crayon-one { left: 18%; transform: rotate(-24deg); }
.crayon-two { right: 18%; transform: rotate(25deg) scaleX(-1); }
.scratch-stage {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #ffffff30;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 20% 28%, #70f08e 0, transparent 41%),
    radial-gradient(ellipse at 82% 72%, #30c8ee 0, transparent 44%),
    linear-gradient(135deg, #47c976, #30a8ca 53%, #3657c7);
  box-shadow: 0 15px 48px #0005, inset 0 0 24px #ffffff24;
}
.scratch-tools { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; }
.scratch-tools label { margin: 0 1px 0 5px; color: #f8f3ff; font-size: 10px; font-weight: 600; }
.scratch-tools select,
.scratch-tools input[type="color"] {
  width: auto;
  height: 31px;
  padding: 0 9px;
  border: 1px solid #ffffff69;
  border-radius: 8px;
  background: #14101de8;
  color: white;
  font-size: 10px;
}
.scratch-tools input[type="color"] { width: 36px; padding: 4px; }
.canvas-button {
  min-height: 31px;
  padding: 0 10px;
  border-color: #ffffff66;
  border-radius: 8px;
  background: #17111fe8;
  color: #fff;
  font: 500 10px "DM Sans", sans-serif;
}
.canvas-button:hover { border-color: #fff; background: #37204a; }
.canvas-download { background: #f5edff; color: #241333; }
.canvas-download:hover { background: #fff; color: #241333; }
.canvas-sheet {
  position: relative;
  width: auto;
  height: min(56vh, 480px);
  max-width: 100%;
  min-height: 190px;
  flex: 0 1 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 4px solid #ffffffbb;
  border-radius: 12px 18px 12px 18px;
  background: #101014;
  box-shadow: 0 12px 28px #06120d70, inset 0 0 0 1px #000;
  isolation: isolate;
}
.canvas-sheet::before { display: none; }
#canvas-color,
#canvas-ink {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
#canvas-color { z-index: 0; }
#canvas-ink {
  z-index: 1;
  cursor: crosshair;
  pointer-events: auto;
  touch-action: none;
}
.canvas-hint {
  flex: 0 0 auto;
  justify-content: center;
  margin: 8px 2px 0;
  color: #ded0ee;
  font: 400 9px "Roboto Mono", monospace;
  text-align: center;
}
@media (max-width: 850px) {
  .dashboard-screen { padding-left: 190px; }
  .sidebar { width: 190px; align-items: stretch; }
}
@media (max-width: 620px) {
  .intro-screen { align-items: center; padding: 28px 25px; }
  .intro-content { width: 100%; }
  .intro-content .brand { margin-bottom: 17vh; }
  .intro-copy h1 { margin-bottom: 36px; font-size: clamp(53px, 13vw, 76px); letter-spacing: 0; }
  .intro-nebula { top: 72%; right: -14%; width: 78vw; opacity: .7; }
  .auth-visual { display: none; }
  .dashboard-screen { padding: 0 0 67px; }
  .sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 4px;
    border-top: 1px solid #ffffff19;
  }
  .nav-folder {
    width: 24%;
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 2px;
    font-size: 8px;
    text-align: center;
  }
  .nav-folder .folder-caret { display: none; }
  .folder-mark { width: 14px; height: 10px; }
  .scratch-heading { padding-bottom: 9px; }
  .scratch-heading p { font-size: 9px; }
  .scratch-crayon { top: 0; font-size: 20px; }
  .crayon-one { left: 5%; }
  .crayon-two { right: 5%; }
  .scratch-stage { gap: 8px; padding: 8px; border-radius: 14px; }
  .scratch-tools { gap: 5px; }
  .scratch-tools label { font-size: 9px; }
  .scratch-tools select { height: 29px; padding: 0 6px; font-size: 9px; }
  .canvas-button { min-height: 29px; padding: 0 7px; font-size: 9px; }
  .canvas-sheet { height: min(52svh, 390px); min-height: 185px; border-width: 3px; }
  .canvas-hint { font-size: 8px; }
  .workspace { min-height: calc(100svh - 68px); }
}

/* Pizarra matemática de pantalla amplia */
.math-view {
  position: relative;
  width: 100%;
  height: calc(100svh - 106px);
  min-height: 430px;
  max-width: none;
  gap: 9px;
  color: #eee8f5;
}
.math-header {
  display: flex;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.math-header[hidden] { display: none; }
.math-controls[hidden] { display: none; }
.math-kicker { color: #9888a9; font: 10px "Roboto Mono", monospace; letter-spacing: .1em; }
.math-header h1 { margin: 0; color: #f7f2fc; font: 600 23px "DM Sans", sans-serif; letter-spacing: -.04em; }
.math-header-actions { display: flex; gap: 7px; }
.math-header-toggle-row { display: flex; min-height: 24px; flex: 0 0 auto; justify-content: flex-end; }
.math-header-toggle { min-height: 24px !important; padding: 0 8px; border-color: #ffffff20 !important; background: transparent !important; color: #a99bb8 !important; font-size: 9px !important; }
.math-header-toggle:hover { border-color: #a879ff !important; background: #a879ff25 !important; color: #e8def3 !important; }
.math-controls {
  display: flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.math-controls .canvas-button,
.math-header-actions .canvas-button {
  min-width: 34px;
  min-height: 32px;
  justify-content: center;
  border-color: #ffffff25;
  background: #17121e;
  color: #e8def3;
  font: 500 11px "DM Sans", sans-serif;
}
.math-controls .canvas-button:hover,
.math-header-actions .canvas-button:hover,
.math-controls .canvas-button.tool-active { border-color: #a879ff; background: #a879ff25; }
.math-controls .canvas-button:disabled { opacity: .35; cursor: default; }
.math-controls .canvas-download { border-color: #a879ff70; background: #a879ff; color: #11091b; }
.math-color-label,
.math-expression-label { margin: 0 0 0 5px; color: #a99bb8; font-size: 10px; white-space: nowrap; }
.math-controls input[type="color"] {
  width: 34px;
  height: 31px;
  padding: 3px;
  border: 1px solid #ffffff25;
  border-radius: 7px;
  background: #17121e;
}
.math-controls select {
  width: auto;
  min-width: 78px;
  height: 31px;
  padding: 0 8px;
  border: 1px solid #ffffff25;
  border-radius: 7px;
  background: #17121e;
  color: #eee8f5;
  font-size: 10px;
}
.math-expression-input {
  width: min(27vw, 310px) !important;
  height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid #ffffff25 !important;
  border-radius: 7px !important;
  background: #17121e !important;
  color: #eee8f5 !important;
  font-size: 11px !important;
}
.math-expression-input::placeholder { color: #766b82; }
.math-status-row {
  display: flex;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a99bb8;
  font-size: 10px;
}
#math-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#math-answer { flex: 0 0 auto; color: #c5a0ff; font: 600 12px "DM Sans", sans-serif; }
.math-sheet {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-width: none;
  flex: 1 1 0;
  aspect-ratio: auto;
  border: 1px solid #31273b;
  border-radius: 9px;
  background-color: #09090d;
  background-image:
    linear-gradient(#ffffff09 1px, transparent 1px),
    linear-gradient(90deg, #ffffff09 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 28px 28px;
  box-shadow: inset 0 0 40px #0007, 0 8px 26px #0003;
}
.math-sheet #canvas-ink { pointer-events: auto; touch-action: none; cursor: crosshair; }
.math-graph-panel {
  position: relative;
  min-height: 150px;
  max-height: 34vh;
  flex: 0 0 190px;
  overflow: hidden;
  border: 1px solid #3b2d49;
  border-radius: 9px;
  background: #12101a;
}
.math-graph-panel[hidden] { display: none; }
.math-graph-heading { display: flex; justify-content: space-between; gap: 10px; padding: 8px 11px 0; color: #c9b8dd; font-size: 10px; }
.math-graph-heading span { color: #8d809b; }
#math-graph { display: block; width: 100%; height: 140px; touch-action: none; cursor: grab; }
#math-graph:active { cursor: grabbing; }
#math-graph-coordinates { margin: -2px 11px 6px; color: #a99bb8; font: 9px "Roboto Mono", monospace; }
.math-hint { display: block; flex: 0 0 auto; margin: 0; color: #766c80; font: 9px "DM Sans", sans-serif; text-align: left; }
.math-light .math-view { color: #30243c; }
.math-light .math-header h1 { color: #21192b; }
.math-light .math-kicker,
.math-light .math-hint { color: #74657f; }
.math-light .math-sheet { border-color: #d3cadc; background-color: #fff; background-image: linear-gradient(#8b6ca512 1px, transparent 1px), linear-gradient(90deg, #8b6ca512 1px, transparent 1px); }
.math-light .math-controls .canvas-button,
.math-light .math-header-actions .canvas-button,
.math-light .math-controls select,
.math-light .math-expression-input,
.math-light .math-controls input[type="color"] { border-color: #d6ccdf !important; background: #fff !important; color: #342541 !important; }
.math-light .math-controls .canvas-download { border-color: #8e61cd !important; background: #a879ff !important; color: #140c20 !important; }
.math-light .math-color-label,
.math-light .math-expression-label,
.math-light .math-status-row { color: #74657f; }
.math-light #math-answer { color: #7048a5; }
.math-light .math-graph-panel { border-color: #d3cadc; background: #fff; }
@media (max-width: 850px) {
  .math-view { height: calc(100svh - 115px); gap: 7px; }
  .math-controls { gap: 5px; }
  .math-expression-input { width: min(30vw, 250px) !important; }
}
@media (max-width: 620px) {
  .math-view { height: calc(100svh - 142px); min-height: 470px; gap: 7px; }
  .math-header { min-height: 38px; }
  .math-header h1 { font-size: 19px; }
  .math-kicker { font-size: 8px; }
  .math-header-actions .canvas-button { min-height: 29px; padding: 0 8px; }
  .math-controls { gap: 5px; }
  .math-controls .canvas-button { min-height: 29px; padding: 0 7px; font-size: 9px; }
  .math-color-label,
  .math-expression-label { margin-left: 1px; font-size: 9px; }
  .math-expression-input { width: min(43vw, 220px) !important; }
  .math-controls select { min-width: 63px; height: 29px; padding: 0 5px; font-size: 9px; }
  .math-status-row { font-size: 9px; }
  .math-sheet { min-height: 220px; background-size: 24px 24px; }
  .math-graph-panel { flex-basis: 165px; }
  #math-graph { height: 115px; }
  .math-hint { font-size: 8px; }
}

.onboarding-screen {
  background: #09070e;
  color: #eee5fa;
}
.onboarding-card {
  border-color: #3a2a4b;
  background: #15101b;
  box-shadow: 0 24px 70px #0007;
}
.onboarding-sidebar {
  background:
    radial-gradient(ellipse at 60% 48%, #7344a855 0, transparent 31%),
    radial-gradient(ellipse at 15% 83%, #39205766 0, transparent 42%),
    #100b17;
}
.onboarding-sidebar::before {
  background:
    radial-gradient(circle at 12% 18%, #d8c2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 15%, #d8c2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 33%, #d8c2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 18% 44%, #d8c2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 56%, #d8c2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 36% 29%, #d8c2ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 58% 13%, #d8c2ff 0 1px, transparent 1.5px);
}
.onboarding-sidebar::after { background: linear-gradient(0deg, #0d0812 0, #21152b00 100%); }
.onboarding-screen .brand-mark { background: #b68bff; color: #10091b; }
.onboarding-planet {
  border-color: #d7bcff35;
  background:
    radial-gradient(ellipse at 30% 25%, #f1dfff 0, #bd83ef 11%, transparent 31%),
    radial-gradient(ellipse at 65% 60%, #8e54c8 0, #563575 38%, transparent 64%),
    radial-gradient(circle at 40% 40%, #4a2863, #21152b 72%);
  box-shadow: inset -30px -19px 48px #10081699, 0 0 65px #b277e91d;
}
.onboarding-planet::before { background: repeating-linear-gradient(163deg, transparent 0 16px, #e1ccff0b 17px 19px, transparent 20px 34px); }
.onboarding-orbit { border-color: #d9c4ff55; }
.onboarding-mountains { background: #160e1e; }
.onboarding-mountains::before { background: #241730; }
.onboarding-mountains::after { background: linear-gradient(90deg, #170e20, #34213f 47%, #1a1025); }
.onboarding-message { color: #e6daf7; }
.onboarding-message b { color: #c6a1ff; }
.onboarding-step { border-color: #c9a1ff32; color: #c9badb; }
.onboarding-step.active { border-color: #c6a1ff90; background: #a879ff16; color: #d4b8ff; }
.question-panel { background: #15101b; }
.question-overline, .onboarding-progress-label, .onboarding-footnote { color: #a99bb8; }
.onboarding-progress-label b { color: #d1b3ff; }
.question-panel h1, .question-panel .question-habit-label { color: #f0e8fa; }
.question-panel .question-subtitle { color: #b7a9c5; }
.question-panel .onboarding-consent { color: #b7a9c5; }
.question-option {
  border-color: #42314f;
  background: #1d1625;
  color: #eee5fa;
}
.question-option:hover { border-color: #9b74ce; background: #241a30; }
.question-option.selected { border-color: #a879ff; background: #a879ff1c; color: #f1e8ff; }
.area-icon { background: #a879ff19; color: #d1b3ff; }
.option-mark { border-color: #70598a; background: #1b1423; color: #e5d6fa; }
.question-option.selected .option-mark { border-color: #a879ff; background: #a879ff; color: #11091d; }
.question-actions .button-primary { background: #a879ff; color: #140c20; }
.question-actions .button-primary:hover { background: #c3a2ff; }
.question-actions .button-quiet { border-color: #463652; color: #c7b9d5; }
.question-actions .button-quiet:hover { background: #241a30; }
