/* Pusula study studio. Shared tokens also theme the existing feature modules. */
:root {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  color: #253e35; background: #f8f9f5;
  --green: #27664e; --muted: #606f65; --border: #e4e8df;
  --ink: #213b30; --forest: #183d31; --lime: #d8ef9b;
  --surface: #fff; --canvas: #f8f9f5; --mint: #e6efd8;
  --coral: #f9e2d8; --lilac: #eee9f8; --blue: #e2eef8;
}
body { font-size: 14px; line-height: 1.55; }
h1,h2,h3 { color: var(--ink); }
h1 { font-size: clamp(1.8rem,3vw,2.5rem); letter-spacing: -.055em; font-weight: 800; line-height: 1.22; }
h2 { font-weight: 800; letter-spacing: -.04em; line-height: 1.35; }
h3 { font-weight: 800; letter-spacing: -.025em; }
a { text-underline-offset: 4px; }
button { min-height: 44px; border-radius: 12px; font-size: .85rem; }
button.primary,.primary { background: var(--forest); border-color: var(--forest); font-weight: 700; }
button.primary:hover,.primary:hover { background: #2c5943; }
button:disabled { cursor: default; }
button:not(:disabled):active { transform: translateY(1px); }
input,select,textarea { min-height: 44px; border-color: #d7ddd2; border-radius: 10px; font-family: inherit; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor; mask: var(--icon) center/contain no-repeat; -webkit-mask: var(--icon) center/contain no-repeat; vertical-align: middle; }
button .ui-icon,a .ui-icon { width: 17px; height: 17px; }
.shell { grid-template-columns: 224px minmax(0,1fr); }
.sidebar { background: var(--forest); color: #edf2e6; border: 0; padding: 30px 17px 20px; gap: 32px; }
.brand { padding: 0 12px; font-size: 1.65rem; letter-spacing: -.06em; }
.brand svg, .brand img { width: 42px; height: 42px; flex-shrink: 0; }
.sidebar .brand img { filter: none; }
.brand small { color: #b0c5b4; font-size: .68rem; letter-spacing: .33em; font-weight: 600; margin: 0; }
.sidebar nav { display: block; overflow-y: auto; max-height: none; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #547363 transparent; }
.nav-group { margin-bottom: 22px; }
.nav-group>small { color: #a4bba9; font-size: .7rem; letter-spacing: .18em; padding: 0 14px; margin-bottom: 11px; }
.sidebar nav a { color: #c9d8ca; align-items: center; font-size: .85rem; padding: 10px 13px; margin: 3px 0; min-height: 40px; border-radius: 10px; gap: 12px; }
.sidebar nav a .ui-icon { opacity: .8; width: 17px; height: 17px; }
.sidebar nav a:hover { background: #ffffff0d; color: white; }
.sidebar nav a.active { background: var(--lime); color: #244333; box-shadow: 0 3px 8px #10291a24; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; }
.nav-more summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 10px 13px; cursor: pointer; font-size: .85rem; color: #c9d8ca; min-height: 44px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .ui-icon { width: 17px; height: 17px; }
.nav-more summary .ui-icon:last-child { margin-left: auto; width: 14px; }
.nav-more[open] summary .ui-icon:last-child { transform: rotate(90deg); }
.sidebar footer { flex-shrink: 0; color: #a9bfae; font-size: .75rem; }
.sidebar footer>a { color: #a9bfae; padding: 0 12px; display: block; text-decoration: none; }
.sidebar footer>a .ui-icon { width: 13px; height: 13px; }
.sidebar-note { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; background: #ffffff08; border: 1px solid #ffffff12; padding: 15px 12px; border-radius: 12px; margin-bottom: 17px; }
.sidebar-note .ui-icon { grid-row: span 2; color: var(--lime); width: 23px; height: 23px; margin-top: 3px; }
.sidebar-note strong { color: #edf2e6; font-size: .82rem; }
.sidebar-note span { font-size: .74rem; }
.workspace { padding: 0 32px 28px; max-width: 1550px; width: 100%; margin-inline: auto; }
.topbar { min-height: 88px; margin-bottom: 30px; gap: 16px; }
.page-location { display: grid; gap: 3px; flex-shrink: 0; }
.page-location>span { color: var(--muted); letter-spacing: .17em; font-size: .68rem; font-weight: 700; }
.page-location>strong { font-size: .8rem; font-weight: 700; }
.topbar-tools { display: flex; align-items: center; gap: 20px; }
.quick-search { color: var(--ink); display: grid; place-items: center; width: 36px; height: 44px; }
.bank-picker { position: relative; display: block; }
.bank-picker>span { position: absolute; top: -8px; left: 12px; background: var(--canvas); padding-inline: 4px; font-size: .68rem; letter-spacing: .01em; color: var(--muted); }
.bank-picker select { width: 152px; padding: 11px 12px; background: transparent; font-size: .82rem; font-weight: 700; }
.identity { gap: 10px; }
.profile-link { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; }
.avatar { width: 35px; height: 35px; background: #f2dcc8; color: #73523a; border: 3px solid white; font-size: .8rem; }
.icon-button { width: 36px; min-width: 36px; min-height: 36px; padding: 8px; background: transparent; border-color: transparent; color: var(--muted); }
.eyebrow { display: block; font-size: .7rem; letter-spacing: .18em; font-weight: 800; color: #4f634b; margin-bottom: 8px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.welcome-row .eyebrow { display: flex; align-items: center; gap: 6px; }
.welcome-row .ui-icon { width: 14px; height: 14px; color: #9b772d; }
.welcome-row h1 { font-size: clamp(1.5rem,2.1vw,2rem); margin: 0; }
.today-date { font-size: .78rem; color: var(--muted); padding-bottom: 5px; }
.dashboard-top { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 20px; }
.studio-hero { background: #e6eddb; border: 1px solid #dae4cd; border-radius: 20px; position: relative; display: flex; align-items: center; min-height: 332px; overflow: hidden; isolation: isolate; }
.studio-hero::before { content: ''; position: absolute; width: 380px; height: 380px; right: -70px; top: -35px; border: 1px solid #b6c7a34d; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 40px #b6c7a312,0 0 0 80px #b6c7a30c; }
.hero-copy { position: relative; z-index: 1; padding: 32px; min-width: 56%; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 700; color: #4b6446; background: #ffffff60; border: 1px solid #c9d6b866; padding: 4px 8px; border-radius: 6px; margin-bottom: 18px; }
.hero-tag i { width: 4px; height: 4px; border-radius: 50%; background: #558351; }
.hero-copy h2 { font-size: clamp(2rem,3.2vw,3.1rem); line-height: 1.08; letter-spacing: -.065em; margin-bottom: 16px; }
.hero-copy h2 em { font-style: normal; position: relative; }
.hero-copy h2 em::after { content: ''; position: absolute; left: 0; bottom: -6px; right: -4px; height: 5px; border-top: 2px solid #6e995a; border-radius: 50%; transform: rotate(-3deg); }
.hero-copy p { color: #52684b; font-size: .83rem; line-height: 1.7; margin-bottom: 20px; }
.hero-actions { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.hero-actions button { font-size: .81rem; display: inline-flex; align-items: center; gap: 13px; padding: 12px 16px; }
.hero-actions>a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; font-size: .78rem; text-decoration: none; font-weight: 700; }
.hero-actions .ui-icon { width: 14px; height: 14px; }
.hero-session { display: flex; align-items: center; gap: 6px; font-size: .73rem; color: #52664b; margin-top: 15px; }
.hero-session .ui-icon { width: 12px; height: 12px; }
.hero-art { position: absolute; right: -14px; width: 45%; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hero-art img { width: 100%; height: auto; display: block; }
.art-chip { position: absolute; display: flex; align-items: center; gap: 6px; background: #fffdf1; border: 1px solid #dae2c7; padding: 8px 10px; border-radius: 8px; color: #406145; font-size: .73rem; font-weight: 700; box-shadow: 0 5px 12px #3348230b; white-space: nowrap; }
.art-chip .ui-icon { width: 13px; height: 13px; }
.chip-top { top: 8%; left: 6%; transform: rotate(-6deg); }
.chip-bottom { bottom: 6%; right: 14%; transform: rotate(6deg); }
.daily-card { padding: 22px; border-radius: 20px; background: var(--forest); color: #f6f9ed; position: relative; overflow: hidden; }
.daily-card .eyebrow { color: #b9cdb4; font-size: .68rem; margin: 0; }
.daily-card>.row>.ui-icon { color: #b6cba2; width: 19px; height: 19px; }
.daily-card h2 { color: #f5f7e9; font-size: .95rem; max-width: 18ch; line-height: 1.5; margin-top: 16px; }
.goal-ring { background: conic-gradient(var(--lime) var(--goal),#3a5b46 0); width: 146px; height: 146px; border-radius: 50%; padding: 8px; margin: 17px auto 18px; transform: rotate(-90deg); }
.goal-ring>div { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: var(--forest); transform: rotate(90deg); }
.goal-ring strong { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -.05em; }
.goal-ring strong small { font-size: .82rem; color: #c2d2b9; font-weight: 500; }
.goal-ring span { font-size: .75rem; color: #b2c8ae; margin-top: 3px; }
.daily-card>p { font-size: .75rem; color: #c2d2b9; text-align: center; margin-bottom: 11px; }
.daily-card>a { display: block; color: #e3f5ba; font-size: .75rem; text-align: center; text-decoration: none; }
.daily-card>a .ui-icon { width: 12px; height: 12px; }
.studio-metrics { margin: 24px 0 32px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--border); padding: 18px 0; }
.studio-metrics>div { display: grid; grid-template-columns: 36px auto; gap: 0 10px; padding-left: 24px; border-right: 1px solid var(--border); }
.studio-metrics>div:first-child { padding-left: 4px; }
.studio-metrics>div:last-child { border: 0; }
.studio-metrics .ui-icon { grid-row: span 2; align-self: center; width: 30px; height: 30px; padding: 8px; color: #769560; }
.studio-metrics strong { font-size: 1.24rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.studio-metrics span:not(.ui-icon) { font-size: .75rem; color: var(--muted); }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; align-items: start; }
.section-heading { margin: 0 0 17px; align-items: flex-end; }
.section-heading h2 { font-size: 1.15rem; margin: 0; }
.section-heading a { font-size: .75rem; text-decoration: none; white-space: nowrap; font-weight: 700; }
.section-heading .ui-icon { width: 13px; height: 13px; }
.section-heading .eyebrow { margin-bottom: 4px; }
.studio-subjects { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.subject-tile { --tone: #e5edda; --tone-ink: #49633d; display: flex; flex-direction: column; border: 1px solid var(--border); background: white; padding: 18px; border-radius: 15px; text-decoration: none; color: var(--ink); }
.subject-symbol { width: 38px; height: 38px; background: var(--tone); color: var(--tone-ink); border-radius: 12px; display: grid; place-items: center; }
.subject-symbol .ui-icon { width: 20px; height: 20px; }
.tile-arrow { width: 13px!important; height: 13px!important; color: #92a08d; }
.subject-tile h3 { font-size: .87rem; margin: 15px 0 6px; }
.subject-tile p { color: var(--muted); font-size: .75rem; line-height: 1.65; margin-bottom: 16px; }
.subject-bottom { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0e9; padding-top: 11px; margin-top: auto; font-size: .7rem; color: #62705b; }
.subject-bottom>span:first-child { color: #4b6545; font-weight: 700; }
.tone-1 { --tone: #f8e9d2; --tone-ink: #9a682c; }.tone-2 { --tone: #eee7f8; --tone-ink: #77628e; }.tone-3 { --tone: #e2eef5; --tone-ink: #4e7b99; }.tone-4 { --tone: #f6e1dd; --tone-ink: #a2675c; }.tone-5 { --tone: #e0eeea; --tone-ink: #4d8374; }.tone-6 { --tone: #eae9d7; --tone-ink: #797a3e; }
.study-play { margin: 30px 0; }
.play-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.play-tile { padding: 20px 18px; display: flex; flex-direction: column; align-items: flex-start; border-radius: 16px; color: var(--ink); text-decoration: none; border: 1px solid #00000006; }
.coral { background: var(--coral); }.lilac { background: var(--lilac); }.blue { background: var(--blue); }
.play-art { width: 49px; height: 49px; display: grid; place-items: center; background: #ffffff70; border: 1px solid #ffffff90; border-radius: 16px; transform: rotate(-8deg); margin: 0 0 21px 3px; color: #a5694b; box-shadow: 4px 5px 0 #b7815412; }
.lilac .play-art { color: #8370a4; transform: rotate(7deg); }.blue .play-art { color: #648aab; }
.play-art .ui-icon { width: 27px; height: 27px; }
.play-tile .eyebrow { font-size: .66rem; color: #586254; }
.play-tile h3 { font-size: .95rem; line-height: 1.45; margin: 0 0 6px; }
.play-tile p { color: #566151; font-size: .75rem; margin-bottom: 22px; }
.play-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: .77rem; font-weight: 800; }
.play-cta .ui-icon { width: 14px; height: 14px; }
.card { border-radius: 16px; border-color: var(--border); box-shadow: 0 2px 3px #243d2102; animation: none; }
.dashboard-rail { display: grid; gap: 22px; }
.rhythm-card { padding: 21px; }
.rhythm-card h2 { font-size: .95rem; margin: 0; }
.rhythm-card>.row { margin-bottom: 7px; }
.rhythm-card>.row .ui-icon { width: 17px; color: #829274; }
.rhythm-card>small { font-size: .73rem; }
.bars { height: 111px; gap: 8px; margin: 20px 0; }
.bar i { background: #c4d79d; width: 67%; border-radius: 4px; }.bar:last-child i { background: var(--forest); }
.bar { font-size: .68rem; gap: 7px; }.bar small { font-size: .68rem; }
.rhythm-note { border-top: 1px solid var(--border); padding-top: 15px; color: #627256; font-size: .7rem; display: flex; align-items: center; gap: 8px; }
.rhythm-note .ui-icon { width: 13px; height: 13px; }
.mini-cards { background: #f0eddf; border-color: #e8e2cf; padding: 24px; text-decoration: none; color: var(--ink); }
.mini-card-art { height: 100px; position: relative; margin: 0 0 20px; }
.mini-card-art>span { position: absolute; width: 80px; height: 92px; border-radius: 10px; background: #d6debb; border: 1px solid #bacaa0; left: calc(50% - 40px); top: 2px; transform: rotate(-18deg); }
.mini-card-art>span:nth-child(2) { transform: rotate(13deg); background: #e6d7b5; border-color: #d1bc8a; }
.mini-card-art>span:last-child { transform: rotate(-3deg); background: #fffdf0; border-color: #e7e2c8; display: grid; place-items: center; box-shadow: 0 5px 8px #6b623512; }
.mini-card-art .ui-icon { width: 30px; height: 30px; color: #73915b; }
.mini-cards h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; }
.mini-cards p { font-size: .77rem; color: #62694f; margin-bottom: 20px; }
.rail-note { display: flex; align-items: flex-start; gap: 9px; padding: 0 8px; color: #566a4b; }
.rail-note>.ui-icon { width: 16px; height: 16px; margin-top: 4px; }
.rail-note p { font-size: .73rem; margin: 0; line-height: 1.8; }.rail-note a { color: #607451; }.rail-note a .ui-icon { width: 12px; height: 12px; }
.recent-card { padding: 22px; margin-bottom: 20px; }
.recent-card .section-heading h2 { font-size: 1rem; }
.recent-card .list-item { font-size: .83rem; }.recent-card .list-item small { font-size: .74rem; }.recent-card .list-item button { font-size: .78rem; }
.app-footer { font-size: .75rem; text-align: center; padding-top: 20px; margin-top: 30px; border-top: 1px solid var(--border); }.app-footer span { padding-inline: 5px; }.app-footer small { font-size: .72rem; }
.page-intro { font-size: .9rem; line-height: 1.8; max-width: 72ch; margin-bottom: 28px; }
.card-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: white; border: 1px solid var(--border); border-radius: 15px; padding: 18px 22px; margin-bottom: 28px; }
.card-toolbar .filters { margin: 0; flex: 1; gap: 18px; }
.card-toolbar .filters label { min-width: 140px; font-size: .73rem; }
.card-toolbar select { font-size: .8rem; }
.card-knowledge { max-width: 240px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .75rem; }
.card-knowledge .ui-icon { color: #70915e; width: 25px; height: 25px; }.card-knowledge strong { color: var(--ink); }
.card-studio { display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: start; gap: 30px; }
.deck-meta { display: flex; justify-content: space-between; font-size: .64rem; font-weight: 700; color: var(--muted); letter-spacing: .15em; padding: 0 8px; margin: 0 0 13px; }
.flashcard { position: relative; min-height: 410px; padding: 28px 32px; border: 1px solid #2e5942; border-radius: 22px; background: var(--forest); color: #f4f8e8; box-shadow: 0 8px 0 -3px #d6e0bd,0 16px 0 -6px #e7ebdc; gap: 20px; overflow: hidden; isolation: isolate; }
.flashcard::before { content: ''; width: 260px; height: 260px; border: 1px solid #ffffff08; border-radius: 50%; position: absolute; right: -100px; bottom: -120px; box-shadow: 0 0 0 35px #ffffff03,0 0 0 70px #ffffff02; z-index: -1; }
.flashcard-heading { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #c6d5bc; font-size: .7rem; }
.flashcard-heading>span:first-child { display: flex; align-items: center; gap: 8px; }.flashcard-heading .ui-icon { width: 16px; height: 16px; }.flashcard-heading>span:last-child { letter-spacing: .2em; font-size: .58rem; }
.flashcard-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px 0; }
.deck-symbol { width: 42px; height: 42px; border-radius: 14px; background: #ffffff0a; color: #d8ebad; display: grid; place-items: center; }.deck-symbol .ui-icon { width: 23px; height: 23px; }
.flashcard p { color: #f6f9ec; font-size: clamp(1.1rem,1.7vw,1.65rem); font-weight: 600; line-height: 1.65; max-width: 34ch; letter-spacing: -.025em; }
.flashcard #flip { background: var(--lime); border-color: var(--lime); color: #28452e; display: flex; align-items: center; gap: 9px; padding: 12px 22px; font-size: .8rem; }
.flashcard>small { color: #b3c8ac; font-size: .7rem; }
.flashcard.is-back { background: #fffdf1; border-color: #e5e5cd; color: var(--ink); }.flashcard.is-back p { color: var(--ink); font-size: 1.1rem; max-width: 53ch; font-weight: 500; }.flashcard.is-back .flashcard-heading,.flashcard.is-back>small { color: #61704c; }.flashcard.is-back .deck-symbol { background: #eaf0d7; color: #608350; }.flashcard.is-back::before { border-color: #aec68f20; box-shadow: 0 0 0 35px #aec68f06,0 0 0 70px #aec68f04; }
.deck-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }.deck-controls button { font-size: .77rem; }.deck-hint { font-size: .7rem; color: var(--muted); }.deck-controls .row { justify-content: center; gap: 8px; }
.deck-guide { margin-top: 33px; background: #f0eee4; border-color: #e6e3d4; padding: 27px 23px; }.guide-icon { display: grid; place-items: center; color: #8f9266; width: 40px; height: 40px; background: #e6e5d2; border-radius: 12px; margin-bottom: 18px; }.deck-guide h2 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 25px; }
.deck-guide ol { list-style: none; counter-reset: steps; padding: 0; display: grid; gap: 24px; margin: 0 0 27px; }.deck-guide li { position: relative; padding-left: 30px; counter-increment: steps; }.deck-guide li::before { content: counter(steps,decimal-leading-zero); color: #687a55; font-size: .68rem; position: absolute; top: 2px; left: 0; }.deck-guide li strong { display: block; font-size: .76rem; margin-bottom: 4px; }.deck-guide li span { display: block; color: #606951; font-size: .74rem; line-height: 1.7; }
.deck-summary { border-block: 1px solid #dedfce; padding: 17px 0; display: grid; gap: 10px; margin-bottom: 18px; }.deck-summary>span { display: flex; align-items: center; gap: 6px; font-size: .73rem; color: #596c4b; }.deck-summary .ui-icon { width: 14px; height: 14px; }.deck-guide>a { font-size: .73rem; font-weight: 700; text-decoration: none; }.deck-guide>a .ui-icon { width: 13px; height: 13px; }
.launch-heading { display: flex; align-items: center; gap: 16px; }.launch-heading .subject-symbol { width: 50px; height: 50px; border-radius: 14px; background: #e8efd9; color: #5e7a49; }.launch-heading h2 { margin-bottom: 4px; font-size: 1.05rem; }.launch-heading p { margin: 0; font-size: .78rem; color: var(--muted); }
[data-page="questions"] #practice-form { gap: 12px; }[data-page="questions"] .filters { margin-block: 15px 4px; }[data-page="questions"] .question-preview { position: relative; overflow: hidden; }[data-page="questions"] .question-preview::before { content: ''; display: block; position: absolute; width: 3px; left: 0; top: 25px; height: 28px; background: #b8cc96; border-radius: 0 3px 3px 0; }[data-page="questions"] .question-preview:nth-child(3n+2)::before { background: #d6c3e6; }[data-page="questions"] .question-preview:nth-child(3n)::before { background: #e9b9a4; }
[data-page="lessons"] .subjects { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }.lesson-card { padding: 0 22px 22px; overflow: hidden; }.lesson-cover { background: var(--tone,#e5edda); align-self: stretch; margin: 0 -22px 21px; padding: 22px; display: flex; justify-content: space-between; align-items: center; min-height: 100px; }.lesson-cover .subject-symbol { background: #ffffff70; width: 47px; height: 47px; border-radius: 15px; transform: rotate(-6deg); }.lesson-cover>span:last-child { color: #425a3d; font-size: .72rem; font-weight: 700; }.lesson-card .pill { font-size: .62rem; }.lesson-card h2 { font-size: 1.04rem; line-height: 1.5; }.lesson-card p { font-size: .8rem; }.lesson-card button { font-size: .76rem; margin-top: auto; }
.lesson-body { max-width: 78ch; margin-inline: auto; padding-block: 25px; font-size: 1.05rem; }
.pathways-root,.learning-root,.search-root,.library-root,.community-root,.assistant-root { max-width: none; }.pathways-root .pathways-bank { padding: 27px; background: #f1f4e8; border-color: #dfe7cf; border-top: 4px solid #a8bc85; }.pathways-root .pathways-bank:nth-child(2) { background: #edf3f8; border-color: #d5e4ed; border-top-color: #93b5cd; }.pathways-root .pathways-bank:nth-child(3) { background: #faf1df; border-color: #efdfb9; border-top-color: #d9b56d; }.pathways-root .pathways-bank h2 { font-size: 1.5rem; }.pathways-root .pathways-scope { background: #f0f3e8; border-left-color: #8aab6d; }.pathways-root .pathways-subjects>li { padding: 20px; border: 1px solid var(--border); background: white; border-radius: 15px; margin: 0 0 12px; }
.game-tile { padding: 25px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }.game-math { background: #f8e7d9; border-color: #f0dac5; }.game-match { background: #eae5f5; border-color: #ded5ed; }.game-wheel { background: #e3eef5; border-color: #d4e5ef; }.game-tile h2 { font-size: 1.2rem; }.game-tile>p { font-size: .8rem; color: #58644f; }.game-tile .eyebrow { font-size: .64rem; }.game-art { height: 120px; align-self: stretch; position: relative; margin-bottom: 26px; display: flex; align-items: center; justify-content: center; gap: 9px; }.game-art>span { font-size: 2rem; width: 60px; height: 66px; border: 1px solid #ffffff90; background: #fffc; border-radius: 15px; box-shadow: 4px 6px 0 #7653270a; display: grid; place-items: center; color: #a7784e; transform: rotate(-9deg); }.game-art>span:nth-child(2) { transform: rotate(8deg) translateY(-18px); }.game-art>span:nth-child(3) { transform: rotate(17deg); }.game-match .game-art>span { color: #88729d; }.game-match .game-art>span:nth-child(2) { border: 0; background: transparent; box-shadow: none; font-size: 1.8rem; width: 25px; transform: none; }.game-wheel .game-art>span { width: 105px; height: 105px; border: 11px solid #bad4e3; border-radius: 50%; font-size: 3.7rem; color: #5c8ba4; background: #f4faff; outline: 1px solid #a0c4d7; }
[data-page="attempt"] .columns { grid-template-columns: minmax(0,1fr) 280px; align-items: start; }[data-page="attempt"] .columns>.card { padding: 30px; }[data-page="attempt"] .columns>aside { position: sticky; top: 20px; }[data-page="attempt"] .question { font-size: 1.12rem; }.option { border-radius: 13px; padding: 17px; font-size: .9rem; }.option b { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border-radius: 10px; font-weight: 700; }.option.selected { border-color: #729456; background: #f1f6e9; padding: 16px; }.navigator button.answered { background: #e0ecc8; }.navigator button.current { outline-color: #5c7f3b; }.feedback { border: 1px solid #d5e3ca; background: #eef5e6; }.feedback.bad { border-color: #f0d9ca; }.save-state { margin-block: 17px; font-size: .75rem; }
.auth-story { background: var(--forest); position: relative; overflow: hidden; }.auth-story::after { content: ''; position: absolute; width: 400px; height: 400px; border: 1px solid #d6ed9a10; border-radius: 50%; bottom: -150px; right: -180px; box-shadow: 0 0 0 65px #d6ed9a05,0 0 0 130px #d6ed9a03; pointer-events: none; }.auth-story h1 { color: #eff6dd; font-weight: 800; }.auth-story p { color: #bdd0b8; }.auth-story .brand { color: #eff6dd; padding: 0; }.auth-panel { background: var(--canvas); }.auth-panel .tabs { background: #e9ede1; padding: 5px; border-radius: 13px; gap: 4px; }.auth-panel .tabs button { background: transparent; border: 0; font-size: .77rem; }.auth-panel .tabs .selected { background: white; box-shadow: 0 3px 5px #233e2210; }.auth-panel h2 { font-size: 1.7rem; }.auth-panel form label { font-size: .8rem; }.auth-panel .footer-note { font-size: .7rem; }
@media (prefers-reduced-motion:no-preference) { .flashcard.is-back .flashcard-content { animation: reveal-answer .23s ease-out; }@keyframes reveal-answer { from { opacity: .25; transform: translateY(6px); }to { opacity: 1; transform: translateY(0); } }.game-tile:hover .game-art>span { transform: rotate(0deg); transition: transform .2s; } }
@media (max-width:1200px) { .card-studio { grid-template-columns: minmax(0,1fr) 220px; gap: 20px; }.card-toolbar { flex-wrap: wrap; gap: 14px; }.card-knowledge { max-width: none; }.deck-controls { flex-wrap: wrap; }.deck-controls>.row { order: 3; flex-basis: 100%; }.deck-controls .deck-hint { display: none; }[data-page="lessons"] .subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }[data-page="attempt"] .columns { grid-template-columns: 1fr; }[data-page="attempt"] .columns>aside { position: static; grid-template-columns: 1fr 1fr; }.game-art>span { width: 48px; height: 56px; font-size: 1.7rem; } }
@media (max-width:1023px) { .card-studio { grid-template-columns: 1fr; }.deck-guide { margin: 0; }.deck-guide ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }.deck-guide h2 br { display: none; }.deck-summary { display: flex; gap: 24px; }.flashcard { min-height: 350px; }.card-knowledge { font-size: .72rem; }[data-page="attempt"] .columns>aside { grid-template-columns: 1fr; } }
@media (max-width:700px) { .card-toolbar { padding: 17px; }.card-toolbar .filters { gap: 14px; }.card-toolbar .filters label { min-width: 110px; }.card-toolbar select { padding-inline: 8px; font-size: .75rem; }.card-knowledge { font-size: .67rem; }.card-studio { gap: 24px; }.flashcard { padding: 23px 20px; min-height: 360px; border-radius: 18px; }.flashcard p { font-size: 1.25rem; }.flashcard.is-back p { font-size: 1rem; }.flashcard-content { padding: 15px 0; }.flashcard>small { font-size: .66rem; }.deck-controls { gap: 10px; }.deck-controls button { font-size: .72rem; padding-inline: 14px; }.deck-guide { padding: 23px; }.deck-guide ol { grid-template-columns: 1fr; gap: 20px; }.deck-guide h2 { font-size: 1.3rem; }.deck-summary { flex-wrap: wrap; gap: 14px; }.page-intro { font-size: .83rem; }.launch-heading h2 { font-size: .95rem; }.launch-heading p { font-size: .73rem; }.launch-heading { align-items: flex-start; gap: 12px; }.launch-heading .subject-symbol { width: 40px; height: 40px; flex-shrink: 0; }[data-page="lessons"] .subjects { grid-template-columns: 1fr; }.lesson-card { padding-inline: 22px; }.game-tile { padding: 25px; }[data-page="attempt"] .columns>.card { padding: 21px; }[data-page="attempt"] .question { font-size: 1rem; }.option { font-size: .84rem; padding: 14px; gap: 12px; }.option.selected { padding: 13px; }.question-preview .pill { font-size: .66rem; } }
#main:focus { outline: none; } #main:focus-visible { outline: none; }
:focus-visible { outline: 3px solid #b47825; outline-offset: 4px; }
.sidebar :focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion:no-preference) {
  button,a { transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
  .subject-tile:hover { border-color: #b3c59e; transform: translateY(-3px); box-shadow: 0 7px 16px #283c1e08; }
  .play-tile:hover .play-art { transform: rotate(0deg) translateY(-3px); transition: transform .2s; }
  .play-tile:hover { transform: translateY(-3px); }
  .studio-hero .hero-art { animation: compass-arrive .7s ease-out both; }
  @keyframes compass-arrive { from { opacity: 0; transform: translate(12px,calc(-50% + 8px)); } to { opacity: 1; transform: translateY(-50%); } }
}
@media (min-width:1600px) { .workspace { padding-inline: 46px; }.dashboard-top,.dashboard-bottom { grid-template-columns: minmax(0,1fr) 290px; }.hero-copy { padding: 40px; }.hero-art { width: 42%; right: 0; } }
@media (max-width:1200px) {
 .shell { grid-template-columns: 198px minmax(0,1fr); }.sidebar { padding-inline: 13px; }.workspace { padding-inline: 24px; }.topbar-tools { gap: 12px; }.profile-link>span:last-child { display: none; }
 .dashboard-top,.dashboard-bottom { grid-template-columns: minmax(0,1fr) 220px; gap: 18px; }.hero-copy { padding: 25px; }.hero-copy h2 { font-size: 2.5rem; }.hero-art { width: 43%; right: -18px; }.hero-actions { gap: 10px; }.hero-actions>a { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; font-size: .73rem; }
 .daily-card { padding: 20px; }.studio-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }.studio-metrics>div { padding-left: 13px; grid-template-columns: 25px auto; gap: 0 7px; }.studio-metrics .ui-icon { width: 23px; height: 23px; }.play-grid { grid-template-columns: 1fr; }.play-tile { display: grid; grid-template-columns: 54px 1fr; gap: 0 14px; padding: 18px; }.play-art { grid-row: span 3; margin: 0; align-self: center; }.play-tile p { margin: 0; }.play-tile .play-cta { grid-column: 2; margin-top: 12px; }.play-tile h3 { font-size: .88rem; }
}
@media (max-width:1023px) {
 .shell { grid-template-columns: 185px minmax(0,1fr); }.brand { padding-inline: 7px; }.sidebar nav a { padding-inline: 9px; font-size: .81rem; gap: 9px; }.sidebar { gap: 26px; }
 .dashboard-top { grid-template-columns: 1fr; }.studio-hero { min-height: 310px; }.hero-art { width: 44%; right: -8px; }.hero-copy { padding: 28px; }.hero-copy h2 { font-size: 2.8rem; }
 .daily-card { display: grid; grid-template-columns: 1fr 100px; column-gap: 15px; padding: 20px 24px; align-items: center; }.daily-card>.row { grid-column: 1; }.daily-card h2 { font-size: 1rem; margin: 7px 0; max-width: none; }.goal-ring { grid-column: 2; grid-row: 1 / 5; width: 96px; height: 96px; padding: 6px; margin: 0; }.goal-ring strong { font-size: 1.5rem; }.goal-ring strong small { font-size: .75rem; }.goal-ring span { font-size: .65rem; }.daily-card>p,.daily-card>a { text-align: left; margin: 0; }.daily-card>a { padding-top: 9px; }
 .dashboard-bottom { grid-template-columns: 1fr; }.dashboard-rail { grid-template-columns: 1fr 1fr; }.rail-note { grid-column: span 2; }.mini-cards { display: grid; grid-template-columns: 1fr 70px; align-items: center; }.mini-card-art { grid-column: 2; grid-row: 1 / 5; margin: 0; }.mini-cards h2 { font-size: 1.3rem; }.today-date { display: none; }
 .topbar-tools { gap: 5px; }.quick-search { width: 30px; }.identity { gap: 0!important; }.bank-picker select { width: 131px; font-size: .77rem; }.studio-metrics strong { font-size: 1.1rem; }.studio-metrics span:not(.ui-icon) { font-size: .7rem; }
}
@media (max-width:700px) {
 .shell { display: block; }.sidebar { height: auto; position: relative; padding: 15px 17px; gap: 15px; }.sidebar .brand { justify-content: flex-start; font-size: 1.5rem; }.brand svg, .brand img { width: 36px; height: 36px; }.mobile-menu { display: grid; place-items: center; margin-left: auto; padding: 9px; min-height: 44px; width: 44px; background: #ffffff0d; border-color: #ffffff24; color: var(--lime); }.mobile-menu:hover { background: #ffffff17; }
 .sidebar nav { display: none; max-height: none; }.sidebar nav.open { display: block; max-height: 65vh; }.sidebar nav a { min-height: 44px; font-size: .8rem; }.nav-group { margin: 8px 0 22px; }.nav-more summary { font-size: .8rem; min-height: 44px; }.sidebar footer { display: none; }
 .workspace { padding: 0 18px 24px; }.topbar { min-height: 76px; margin-bottom: 23px; flex-wrap: nowrap; gap: 8px; }.page-location>span { font-size: .63rem; }.page-location>strong { font-size: .77rem; }.topbar-tools { gap: 6px; }.quick-search { display: none; }.bank-picker { width: auto; order: initial; }.bank-picker select { width: 128px; padding: 10px 7px; font-size: .75rem; }.bank-picker>span { font-size: .65rem; }.avatar { width: 30px; height: 30px; }.identity .icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; width: 44px; padding: 10px; }.welcome-row { margin-bottom: 20px; }.welcome-row h1 { font-size: 1.5rem; }.eyebrow { font-size: .68rem; }
 .studio-hero { min-height: 338px; }.hero-copy { padding: 25px; min-width: 66%; }.hero-copy h2 { font-size: 2.6rem; }.hero-copy p { font-size: .81rem; }.hero-art { width: 45%; right: -20px; top: 35%; opacity: .85; }.art-chip { font-size: .63rem; padding: 5px 7px; }.chip-top { top: 0; left: 10%; }.chip-bottom { right: 6%; }.hero-actions { gap: 14px; flex-direction: column; align-items: flex-start; }.hero-actions button { font-size: .8rem; }.hero-session { font-size: .7rem; }
 .studio-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 22px 0 26px; gap: 19px 0; }.studio-metrics>div { padding-left: 16px; }.studio-metrics>div:nth-child(odd) { padding-left: 4px; }.studio-metrics>div:nth-child(2) { border: 0; }.studio-metrics strong { font-size: 1.2rem; }.studio-metrics span:not(.ui-icon) { font-size: .73rem; }
 .section-heading h2 { font-size: 1.07rem; }.section-heading a { font-size: .72rem; }.studio-subjects { gap: 11px; }.subject-tile { padding: 15px; }.subject-tile h3 { font-size: .83rem; }.subject-tile p { font-size: .74rem; }.subject-bottom { font-size: .66rem; flex-wrap: wrap; gap: 3px 8px; }.subject-symbol { width: 34px; height: 34px; border-radius: 10px; }
 .dashboard-rail { grid-template-columns: 1fr; }.rail-note { grid-column: 1; }.mini-card-art { width: 100px; }.mini-cards { grid-template-columns: 1fr 100px; }.recent-card { padding: 18px; }.recent-card .section-heading { align-items: flex-start; }.recent-card .section-heading a { font-size: .7rem; }.recent-card .list-item { font-size: .81rem; }.daily-card h2 { font-size: .93rem; }.daily-card>.row { flex-wrap: nowrap; }.daily-card>.row>.ui-icon { display: none; }
}
@media (max-width:360px) { .workspace { padding-inline: 14px; }.page-location>span { display: none; }.page-location>strong { max-width: 75px; }.bank-picker select { width: 115px; }.avatar { width: 27px; height: 27px; }.topbar-tools { gap: 3px; }.hero-copy { padding: 22px; }.hero-art { opacity: .65; width: 43%; right: -23px; }.hero-copy h2 { font-size: 2.35rem; }.hero-tag { font-size: .66rem; }.art-chip { display: none; }.subject-tile { padding: 12px; }.subject-tile p { font-size: .73rem; }.daily-card { padding: 18px; gap: 12px; }.daily-card>p { font-size: .72rem; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }.subject-tile:hover,.play-tile:hover,button:not(:disabled):active { transform: none; } }

/* Compact common finish; scoped module layouts keep their own stylesheet rules. */
:root { --canvas: #f8f9f5; --border: #dce3d7; --muted: #56665a; }
h1 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.3; letter-spacing: -.035em; }
.workspace { max-width: 1200px; }
.card { border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); }
:where(.card, .empty-state) > :last-child { margin-bottom: 0; }
.sidebar nav a { min-height: 44px; }
.sidebar nav a, .nav-more summary { overflow-wrap: anywhere; }
.topbar, .topbar-tools, .section-heading, .welcome-row { min-width: 0; }
.topbar-tools { flex-wrap: wrap; }
.section-heading { flex-wrap: wrap; }
:where(.card, .auth-panel) > form { max-width: 760px; }
.auth-panel form { gap: 12px; }
.auth-panel form label { font-size: 14px; }
.auth-panel h2 { font-size: 26px; }
.auth-panel .tabs button, .deck-controls button, .lesson-card button { font-size: 14px; }
.option, .option.selected { min-height: 44px; padding: 14px; font-size: 14px; align-items: flex-start; }
.option.selected { border-width: 1px; box-shadow: inset 3px 0 0 #729456; }
.option > :where(span, div) { min-width: 0; }
.navigator button { width: 44px; min-height: 44px; }
.error, .success, .feedback { overflow-wrap: anywhere; }
#main:focus-visible { outline-width: 3px; outline-style: solid; outline-color: var(--ui-focus); outline-offset: 4px; }
:focus-visible { outline-color: var(--ui-focus); }
@media (forced-colors: active) {
  .option-card:has(input:checked), .option-card.selected, .option.selected { border-width: 2px; border-style: solid; border-color: Highlight; }
  :focus-visible, .option-card:focus-within { outline-color: Highlight; }
}

@media (max-width: 700px) { .sidebar nav.open { overscroll-behavior: contain; } }
/* Narrow hero art follows the copy; cancel its desktop entrance translation. */
@media (max-width: 390px) {
  .studio-hero .hero-art { animation: none; transform: none; }
}

@media (max-width: 700px) {
  .studio-hero { flex-direction: column; align-items: stretch; }
  .hero-copy { width: 100%; min-width: 0; max-width: 100%; }
  .studio-hero .hero-art {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(72%, 240px);
    margin: 0 auto 24px;
    opacity: 1;
    animation: none;
  }
}

.sidebar .brand .brand-tagline { font-size: .64rem; line-height: 1.45; letter-spacing: .01em; font-weight: 500; text-transform: none; margin-top: 5px; }
