/* Learning surfaces share the reader's palette, without changing reader layout. */
.study-site-shell{max-width:1320px;margin:auto;padding:0 48px}
.study-site-header{display:flex;align-items:center;gap:30px;flex-wrap:wrap;padding:22px 0 18px;border-bottom:1px solid var(--line)}
.study-site-brand{font:650 21px/1.5 var(--ui);letter-spacing:-.5px;white-space:nowrap;color:var(--ink);text-decoration:none}
.study-site-brand span{font:10px/1.5 var(--ui);letter-spacing:1.5px;display:block;color:var(--muted)}
.study-site-nav{display:flex;align-items:center;gap:7px;margin-left:auto}
.study-site-nav button{min-height:42px;padding:10px 13px;border:0;border-radius:12px;font:13px/1.5 var(--ui);background:transparent;color:var(--muted);white-space:nowrap}
.study-site-nav button.active,.study-site-nav button[aria-current="page"]{background:var(--soft);color:var(--ink);font-weight:600}
.study-site-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font:11px/1.5 var(--ui)}
.study-site-toolbar .btn,.study-site-toolbar select{border-radius:10px}
.study-site-header button:focus-visible,.study-site-header select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.study-dashboard{max-width:1150px;margin:0 auto;color:var(--ink);font-family:var(--ui);--study-subtle:color-mix(in srgb,var(--soft) 55%,var(--paper))}
.study-dashboard *{box-sizing:border-box}
.study-dashboard h1,.study-dashboard h2,.study-dashboard h3{font-family:var(--ui);letter-spacing:-.3px;color:var(--ink)}
.study-dashboard button,.study-dashboard input,.study-dashboard select{font-family:var(--ui);color:var(--ink)}
.study-dashboard button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.study-dashboard button:disabled{opacity:.5;cursor:default}
.study-dashboard button:focus-visible,.study-dashboard input:focus-visible,.study-dashboard select:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.study-dashboard svg{display:block;width:20px;height:20px;flex:none}
.study-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 27px}
.study-page-heading>div>p{font:12px/1.7 var(--ui);color:var(--muted);margin:0 0 8px}
.study-page-heading h1{font-size:28px;line-height:1.5;font-weight:600;margin:0}
.study-resume{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:32px 36px;border:1px solid var(--line);border-radius:24px;background:var(--study-subtle)}
.study-resume-copy{min-width:0;max-width:650px;flex:1}
.study-overline{font:11px/1.6 var(--ui);color:var(--muted);margin:0 0 12px;letter-spacing:.5px}
.study-resume h2{font:600 25px/1.5 var(--ui);margin:0;overflow-wrap:anywhere}
.study-resume-subtitle{font:13px/1.8 var(--ui);color:var(--muted);margin:9px 0 0}
.study-resume-stage{display:flex;align-items:center;gap:8px;margin-top:21px;font:13px/1.6 var(--ui)}
.study-stage-dot{width:6px;height:6px;border-radius:50%;background:var(--green);flex:none}
.study-resume-progress{font:11px/1.7 var(--ui);color:var(--muted);margin:9px 0 0}
.study-meter{height:4px;max-width:360px;background:var(--line);border-radius:3px;overflow:hidden;margin-top:13px}
.study-meter span{display:block;background:var(--green);height:100%;border-radius:3px}
.study-primary{display:inline-flex;align-items:center;justify-content:center;gap:22px;flex:none;border:1px solid var(--green);border-radius:14px;padding:15px 23px;min-height:52px;background:var(--green);color:var(--on-accent)!important;font:500 14px/1.5 var(--ui)}
.study-primary:hover{opacity:.9}
.study-section{margin-top:36px}
.study-section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 17px}
.study-section-title h2{font:600 18px/1.5 var(--ui);margin:0}
.study-section-title p{font:12px/1.7 var(--ui);color:var(--muted);margin:5px 0 0}
.study-text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:7px 0;border:0;border-radius:8px;background:transparent;font:12px/1.5 var(--ui);white-space:nowrap}
.study-text-button svg{width:16px;height:16px}
.study-lesson-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.study-lesson-half{border:1px solid var(--line);border-radius:20px;padding:19px 22px;background:var(--paper);min-width:0}
.study-phase-label{display:flex;align-items:center;gap:9px;font:600 13px/1.5 var(--ui);margin:0 0 7px}
.study-phase-label>span{font:400 11px/1.5 var(--ui);color:var(--muted)}
.study-unit{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}
.study-unit-copy{min-width:0;width:100%;flex:1}
.study-unit-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:var(--muted);font:10px/1.6 var(--ui);margin-bottom:11px}
.study-kind{border:1px solid var(--line);border-radius:6px;padding:2px 6px;color:var(--ink)}
.study-unit h3{font:550 16px/1.65 var(--ui);margin:0;overflow-wrap:anywhere}
.study-unit-subtitle,.study-unit-status{font:11px/1.7 var(--ui);color:var(--muted);margin:8px 0 0}
.study-unit-count{font:10px/1.6 var(--ui);color:var(--muted);margin:5px 0 0;font-variant-numeric:tabular-nums}
.study-unit .study-meter{max-width:none;margin-top:12px;height:3px}
.study-open{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:40px;margin-top:18px;padding:9px 13px;border:1px solid var(--line);border-radius:11px;background:transparent;font:12px/1.5 var(--ui);white-space:nowrap}
.study-open svg{width:16px;height:16px}
.study-open:hover:not(:disabled){background:var(--soft);border-color:var(--muted)}
.study-unit.is-compact{flex-direction:row;align-items:center;gap:14px;border:0;border-radius:0;padding:18px 0;background:transparent}
.study-unit.is-compact+.study-unit.is-compact{border-top:1px solid var(--line)}
.study-unit.is-compact h3{font-size:14px}
.study-unit.is-compact .study-unit-meta{margin-bottom:7px}
.study-unit.is-compact .study-open{margin-top:0;flex:none;font-size:11px;padding:8px 10px}
.study-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.study-review-card{text-align:left;display:flex;flex-direction:column;gap:13px;padding:23px 25px;border:1px solid var(--line);border-radius:20px;background:var(--paper);font:13px/1.5 var(--ui)}
.study-review-card>strong{font:550 31px/1.25 var(--ui);font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.study-review-card strong small{font:400 11px/1.5 var(--ui);color:var(--muted);margin-left:7px}
.study-review-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;font:11px/1.6 var(--ui);color:var(--muted)}
.study-review-caption svg{width:16px;height:16px}
.study-review-card:hover,.study-collection-card:hover{background:var(--study-subtle)}
.study-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.study-collection-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--paper);min-width:0}
.study-collection-index{font:12px/1.5 var(--ui);color:var(--muted);margin-bottom:22px}
.study-collection-card h3{font:600 18px/1.6 var(--ui);margin:0}
.study-collection-card p{font:12px/1.7 var(--ui);color:var(--muted);margin:8px 0 0}
.study-collection-link{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;font:12px/1.5 var(--ui);margin-top:24px}
.study-collection-link svg{width:17px;height:17px}
.study-textbook-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;border:1px solid var(--line);border-radius:16px;background:transparent;padding:20px 24px;margin-top:16px;text-align:left}
.study-textbook-entry>span{display:flex;align-items:center;gap:18px}
.study-textbook-entry strong{font:550 14px/1.5 var(--ui)}
.study-textbook-entry span span{font:12px/1.7 var(--ui);color:var(--muted)}
.study-home-notice{font:11px/1.8 var(--ui);color:var(--muted);margin:25px 0 0}
.study-source-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:25px}
.study-source-tabs button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:19px 21px;gap:7px;border:1px solid var(--line);border-radius:16px;background:transparent}
.study-source-tabs strong{font:550 15px/1.5 var(--ui)}
.study-source-tabs span{font:11px/1.5 var(--ui);color:var(--muted)}
.study-source-tabs button[aria-pressed="true"]{background:var(--soft);border-color:var(--ink)}
.study-library-tools{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-bottom:19px}
.study-view-tabs{display:inline-flex;border:1px solid var(--line);padding:4px;border-radius:12px;gap:3px}
.study-view-tabs button{padding:9px 13px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:12px/1.5 var(--ui);min-height:37px;white-space:nowrap}
.study-view-tabs button[aria-pressed="true"]{background:var(--green);color:var(--on-accent)}
.study-search{display:flex;align-items:center;gap:9px;flex:1;min-width:180px;border:1px solid var(--line);border-radius:12px;padding:0 12px;height:47px}
.study-search svg{width:18px;height:18px;color:var(--muted)}
.study-search input{width:100%;min-width:0;border:0;background:transparent;padding:10px 0;font:12px/1.5 var(--ui)}
.study-search input::placeholder{color:var(--muted)}
.study-order{display:flex;align-items:center;gap:8px;font:11px/1.5 var(--ui);color:var(--muted)}
.study-order select{border:1px solid var(--line);border-radius:11px;padding:11px 9px;background:var(--paper);font:12px/1.5 var(--ui);min-height:46px}
.study-type-tabs{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:21px;border-bottom:1px solid var(--line)}
.study-type-tabs button{display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid transparent;border-radius:9px;background:transparent;font:12px/1.5 var(--ui);color:var(--muted)}
.study-type-tabs button[aria-pressed="true"]{background:var(--soft);border-color:var(--line);color:var(--ink)}
.study-type-tabs button>span{font:10px/1.5 var(--ui);color:var(--muted)}
.study-result-count{font:11px/1.7 var(--ui);color:var(--muted);margin:18px 0 19px}
.study-lesson-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px;margin-bottom:28px}
.study-lesson-picker button{padding:11px 6px;border:1px solid var(--line);border-radius:10px;background:transparent;font:12px/1.5 var(--ui);min-height:42px;white-space:nowrap}
.study-lesson-picker button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:var(--on-accent)}
.study-unit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.study-result-group+.study-result-group{margin-top:30px}
.study-result-group .study-section-title{margin-bottom:15px}
.study-empty{text-align:center;padding:60px 24px;border:1px dashed var(--line);border-radius:20px;margin-top:22px}
.study-empty h2{font:500 20px/1.6 var(--ui);margin:0}
.study-empty p{font:13px/1.8 var(--ui);color:var(--muted);margin:10px 0}
@media(max-width:1100px){.study-site-shell{padding:0 30px}.study-site-header{gap:18px}.study-site-toolbar{width:100%;justify-content:flex-end}.study-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.study-unit.is-compact{flex-direction:column;align-items:flex-start;gap:12px}.study-unit.is-compact .study-open{align-self:flex-end}.study-resume{padding:28px}}
@media(max-width:760px){.study-site-shell{padding:0 22px}.study-site-header{gap:16px;padding-top:17px}.study-site-brand{font-size:19px}.study-site-nav{width:100%;order:3;margin:0;justify-content:space-between;gap:0}.study-site-nav button{padding:10px 9px;font-size:12px}.study-site-toolbar{width:auto;margin-left:auto;gap:7px}.study-site-brand span{display:none}.study-page-heading h1{font-size:24px}.study-resume{align-items:flex-start;flex-direction:column;gap:24px;padding:26px}.study-resume h2{font-size:23px}.study-primary{width:100%;justify-content:space-between}.study-lesson-columns{grid-template-columns:1fr;gap:13px}.study-unit.is-compact{flex-direction:row;align-items:center}.study-unit.is-compact .study-open{align-self:center}.study-review-card{padding:19px 17px}.study-review-caption{font-size:10px}.study-review-caption svg{display:none}.study-collection-grid{grid-template-columns:1fr}.study-collection-card{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:3px 14px;padding:21px}.study-collection-index{grid-row:1/3;margin:4px 0 0}.study-collection-card h3{font-size:16px}.study-collection-card p{grid-column:2;margin:4px 0 0;font-size:11px}.study-collection-link{grid-column:3;grid-row:1/3;margin:0;font-size:0;width:auto}.study-source-tabs{gap:8px}.study-source-tabs button{padding:14px 12px}.study-source-tabs strong{font-size:12px}.study-source-tabs span{font-size:10px}.study-library-tools{gap:10px}.study-view-tabs{flex:1;justify-content:space-between}.study-search{order:3;flex-basis:100%}.study-lesson-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.study-textbook-entry>span{display:block}.study-textbook-entry span span{display:block;margin-top:6px}.study-section{margin-top:30px}}
@media(max-width:480px){.study-site-shell{padding:0 17px}.study-site-brand{font-size:17px}.study-site-toolbar .sync-status{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.study-site-toolbar .theme-control{font-size:0}.study-site-toolbar .theme-control select{font-size:11px;max-width:103px}.study-page-heading{margin-bottom:22px}.study-page-heading h1{font-size:22px}.study-page-heading>div>p{font-size:11px}.study-resume{border-radius:22px;padding:23px}.study-resume h2{font-size:21px}.study-section-title{gap:10px}.study-section-title h2{font-size:17px}.study-section-title p{font-size:11px}.study-text-button{font-size:11px}.study-review-grid{gap:9px}.study-review-card{padding:18px 14px;gap:12px;border-radius:16px;font-size:12px}.study-review-card>strong{font-size:27px}.study-review-caption{font-size:10px;line-height:1.7;min-height:34px}.study-lesson-half{padding:17px 17px}.study-unit.is-compact{gap:10px}.study-unit.is-compact h3{font-size:13px}.study-unit.is-compact .study-open{font-size:10px;min-height:42px;padding:8px}.study-open svg{width:14px;height:14px}.study-unit-grid{grid-template-columns:1fr}.study-unit:not(.is-compact){padding:21px}.study-source-tabs{grid-template-columns:1fr;gap:7px}.study-source-tabs button{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px}.study-source-tabs strong{font-size:13px}.study-source-tabs span{font-size:10px}.study-view-tabs button{font-size:11px;padding:8px 10px}.study-order>span{display:none}.study-order select{font-size:11px}.study-lesson-picker{gap:6px}.study-lesson-picker button{font-size:11px;padding:10px 4px}.study-unit-meta{font-size:10px}.study-section-title .study-text-button svg{display:none}.study-textbook-entry{padding:18px 20px}}

/* A direct first visit: one practice action and its real daily outcome. */
.simple-home{max-width:1000px;padding-top:8px}
.home-intro{margin:0 0 28px}.home-intro>p:first-child{font-size:12px;color:var(--muted);margin:0 0 10px}.home-intro h1{font-size:32px;line-height:1.4;margin:0}.home-how{font-size:15px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.home-focus{display:grid;grid-template-columns:1.35fr 1fr;gap:22px}.home-start,.home-checkin{border:1px solid var(--line);border-radius:24px;padding:32px;background:var(--paper);min-width:0}.home-start{background:var(--soft)}.home-kicker{font-size:12px;color:var(--muted)}.home-start h2{font-size:34px;line-height:1.5;font-weight:600;margin:16px 0 25px}.home-start .home-start-button{width:100%;justify-content:space-between;min-height:58px;font-size:18px}.home-book{margin-top:21px}.home-book p{font-size:14px;font-weight:550;margin:0 0 5px;overflow-wrap:anywhere}.home-book>span{font-size:12px;color:var(--muted)}.home-book .study-text-button{display:flex;margin-top:7px;font-size:13px}
.home-checkin-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-checkin h2{font-size:20px;margin:0}.home-checkin-state{border:1px solid var(--line);border-radius:30px;padding:5px 12px;font-size:12px}.is-done .home-checkin-state{background:var(--green);color:var(--on-accent);border-color:var(--green)}.home-today{margin-top:24px;display:flex;align-items:baseline;gap:14px}.home-today strong{font-size:60px;font-weight:550;line-height:1.2;font-variant-numeric:tabular-nums}.home-today span{font-size:13px;color:var(--muted)}.home-checkin-hint{font-size:13px;line-height:1.8;color:var(--muted);margin:10px 0 25px}.home-streak{border-top:1px solid var(--line);padding:20px 0 8px;display:flex;align-items:center;justify-content:space-between}.home-streak>span{font-size:14px}.home-streak strong{font-size:25px;font-weight:550}.home-streak small{font-size:13px;font-weight:400;color:var(--muted)}.home-checkin .study-text-button{font-size:13px}
.home-more{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:22px}.home-more button{display:grid;grid-template-columns:1fr auto;gap:5px 16px;text-align:left;border:1px solid var(--line);border-radius:16px;background:transparent;padding:19px 24px}.home-more span{font-size:15px;font-weight:550}.home-more small{font-size:12px;color:var(--muted)}.home-more svg{grid-column:2;grid-row:1/3;align-self:center}.home-more button:hover{background:var(--soft)}.home-local-note{font-size:12px;line-height:1.8;color:var(--muted);margin:23px 0 0}
@media(max-width:600px){.simple-home{padding-top:0}.home-intro{margin-bottom:18px}.home-intro h1{font-size:27px}.home-how{font-size:13px;margin-top:8px}.home-focus{grid-template-columns:1fr;gap:14px}.home-start,.home-checkin{padding:22px;border-radius:20px}.home-start h2{font-size:28px;line-height:1.35;margin:11px 0 18px}.home-start h2 br{display:block}.home-start .home-start-button{min-height:54px;font-size:17px}.home-book{margin-top:14px}.home-book .study-text-button{margin-top:2px;min-height:36px}.home-checkin h2{font-size:18px}.home-today{margin-top:12px}.home-today strong{font-size:43px}.home-checkin-hint{margin:7px 0 12px}.home-streak{padding:12px 0 0}.home-more{gap:12px;margin-top:14px}.home-more button{padding:15px;gap:6px}.home-more small{font-size:11px}.home-more svg{display:none}.home-local-note{margin-top:16px;font-size:11px}}
