/* Selected direction: theme-led creation. Existing application shell stays intact. */
.home-page{padding-top:14px}.home-page .welcome h1{font-size:21px;line-height:1.35;font-weight:700;letter-spacing:.15px}.home-page .welcome p{font-size:13px;color:#727186;margin-top:4px}
.feature-hero{position:relative;isolation:isolate;overflow:hidden;display:block;border-radius:19px;aspect-ratio:358/280;margin-top:16px;background:#232361;color:#fff}
.feature-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% center;z-index:-2}
.feature-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#100d4059,transparent 85%)}
.feature-content{padding:26px 15px 20px;display:flex;flex-direction:column;align-items:flex-start}
.feature-tag{background:#a657ebd9;border:1px solid #c69dff55;border-radius:24px;padding:5px 11px;font-size:12px;line-height:1.35;backdrop-filter:blur(5px)}
.feature-example{position:absolute;top:15px;right:12px;padding:4px 8px;border-radius:15px;background:#242044b3;font-size:11px;color:#fff}
.feature-hero h2{font-size:27px;font-style:italic;line-height:1.2;letter-spacing:.4px;margin:16px 0 0;color:#fff;text-shadow:0 0 5px #e9a2ff,0 0 16px #c746ff,0 2px 5px #52256a}
.feature-subtitle{font-size:16px;line-height:1.5;font-weight:650;margin-top:7px;text-shadow:0 1px 6px #242044}
.feature-description{font-size:12px;line-height:1.6;margin-top:11px;letter-spacing:.2px;text-shadow:0 1px 4px #100c39}
.feature-use{display:inline-flex;align-items:center;justify-content:center;gap:13px;margin-top:42px;min-height:43px;min-width:151px;padding:9px 19px;border-radius:27px;background:linear-gradient(120deg,#9260ff,#d66ac3 80%,#ec80c6);box-shadow:inset 0 1px 4px #fff9,0 0 15px #b94af06b;border:1px solid #e7bbffb3;font-size:15px;font-weight:650;transition:transform .18s}
.feature-hero:hover .feature-use{transform:translateX(3px)}.feature-hero:focus-visible{outline-offset:4px}
.home-page .quick-section{margin:20px 0 23px}.home-page .quick-heading{font-size:18px;margin-bottom:14px;line-height:1.4}.home-page .quick-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.home-page .quick-grid a{gap:8px}.home-page .quick-grid a>span{width:49px;height:49px;border-radius:16px;box-shadow:none}.home-page .quick-grid strong{font-size:11px;color:#747186;white-space:nowrap}
.home-templates .section-heading{margin-bottom:14px}.home-templates .section-heading h2{font-size:18px;line-height:1.4}.home-templates .more-link{font-size:12px}
.template-rows{display:flex;flex-direction:column;gap:9px}.template-row{display:flex;align-items:stretch;min-height:77px;border-radius:14px;overflow:hidden;background:#fff;transition:box-shadow .18s}.template-row:hover{box-shadow:0 4px 17px #67529418}.template-row>img{width:48%;height:77px;max-width:200px;object-fit:cover}.template-row-copy{flex:1;display:flex;justify-content:center;flex-direction:column;padding:10px 9px 10px 13px;min-width:0}.template-row-copy strong{font-size:16px;line-height:1.5;font-weight:650}.template-row-copy span{font-size:12px;line-height:1.5;margin-top:4px;color:#7e798f}.template-row>.h5-icon{align-self:center;margin:0 11px 0 0;color:#615a74;width:17px}
.home-below-fold{margin-top:40px}.home-below-fold .guides-section{margin-bottom:28px}
.templates-page .page-heading p{max-width:580px;font-size:13px;line-height:1.7}.template-gallery{display:grid;grid-template-columns:1fr;gap:22px;margin-top:24px}.template-card{border-radius:18px;background:#fff;overflow:hidden;border:1px solid #eee9f8}.template-cover{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.template-card-body{padding:18px}.template-card-type{font-size:11px;color:#7655ae}.template-card h2{font-size:20px;margin:5px 0 8px}.template-card p{font-size:13px;line-height:1.8;color:#787081}.template-card-actions{display:flex;gap:10px;margin-top:16px;align-items:center}.template-button{border:1px solid #e2d8f3;border-radius:22px;background:#f5f0ff;color:#7750b6;min-height:42px;padding:9px 16px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px}.template-button-primary{background:#8057d6;border-color:#8057d6;color:#fff}.template-help{margin-top:24px;color:#726b7e;font-size:12px;line-height:1.8}
.template-modal{position:fixed;inset:0;z-index:60;background:#17142699;display:grid;place-items:center;padding:18px;backdrop-filter:blur(5px)}.template-modal[hidden]{display:none}.template-preview{width:min(1100px,100%);height:min(860px,94dvh);background:#f8f6ff;border-radius:18px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 80px #19103955}.template-preview:fullscreen,.template-preview.is-expanded{width:100%;height:100%;max-height:none;border-radius:0}.template-preview.is-expanded{position:fixed;inset:0}.template-preview-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #e8e1f2}.template-preview-head strong{font-size:14px;margin-right:auto}.template-preview-head .template-button{min-height:36px;padding:6px 12px;font-size:12px}.template-preview iframe{flex:1;width:100%;border:0;min-height:0;background:#fff}.template-preview-note{font-size:11px;padding:9px 14px;line-height:1.6;color:#746d80;background:#fff}.template-close{width:36px;min-height:36px;padding:6px;border:0;border-radius:50%;background:#eee8f7;color:#675674;display:grid;place-items:center}
@media(max-width:359px){.home-page .welcome h1{font-size:20px}.feature-content{padding-top:24px}.feature-tag{font-size:10px}.feature-example{font-size:9px;right:9px}.feature-hero h2{font-size:24px;margin-top:14px}.feature-subtitle{font-size:14px}.feature-description{font-size:11px}.feature-use{margin-top:28px;min-height:39px;font-size:13px}.home-page .quick-grid a>span{width:44px;height:44px}.home-page .quick-grid strong{font-size:10px}.template-row-copy{padding-left:10px}.template-row-copy strong{font-size:14px}.template-row-copy span{font-size:11px}.template-row>img{width:43%}}
@media(min-width:560px){.feature-hero{aspect-ratio:2.1}.feature-content{padding:30px}.feature-hero h2{font-size:36px}.feature-subtitle{font-size:20px}.feature-description{font-size:14px}.feature-use{margin-top:28px;min-height:45px}.feature-tag{font-size:13px}.feature-example{top:18px;right:20px}.home-page .quick-grid a>span{width:52px;height:52px}.home-page .quick-grid strong{font-size:13px}.template-row{min-height:94px}.template-row-copy strong{font-size:18px}.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.template-row-copy span{font-size:13px}}
@media(min-width:960px){.home-page{max-width:1000px;padding:25px 30px 40px}.home-page .welcome h1{font-size:25px}.feature-hero{height:370px;aspect-ratio:auto;margin-top:20px;border-radius:24px}.feature-hero>img{object-position:50% 55%}.feature-content{padding:37px}.feature-hero h2{font-size:46px;margin-top:22px}.feature-subtitle{font-size:22px}.feature-description{font-size:16px}.feature-use{margin-top:34px;min-width:180px;font-size:17px}.feature-tag{font-size:14px}.feature-example{font-size:12px}.home-page .quick-section{margin:26px 0}.home-page .quick-grid{max-width:730px;margin:auto}.home-page .quick-grid a>span{width:56px;height:56px}.template-rows{display:grid;grid-template-columns:1fr 1fr;gap:16px}.template-row{min-height:103px}.template-row>img{width:44%;max-width:none}.template-row-copy strong{font-size:17px}.template-row-copy span{font-size:12px}.home-below-fold{margin-top:32px}.templates-page{max-width:1000px}.template-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.feature-use,.template-row{transition:none}.feature-hero:hover .feature-use{transform:none}}
@media(min-width:960px){.feature-hero{height:390px}.feature-content{padding:30px 34px 20px}.feature-hero h2{font-size:40px;margin-top:16px}.feature-subtitle{font-size:20px;margin-top:6px}.feature-description{font-size:14px;margin-top:8px}.feature-use{margin-top:22px;min-height:43px}}
@media(min-width:560px){.template-row>img{height:94px}}
@media(min-width:960px){.template-row>img{height:103px}}
.template-cover{height:auto}
@media(max-width:559px){.home-page .welcome h1{font-size:20px;line-height:1.25}.home-page .welcome p{font-size:12px;line-height:1.5;margin-top:1px}.feature-hero{margin-top:10px}.home-page .quick-section{margin:16px 0 19px}.home-page .quick-grid a{gap:4px}}

/* One-screen home: reduce choices, not type size. Secondary pages retain
   their normal scrolling. No fixed-height clipping, zoom lock or hidden content. */
body.is-home #app{min-height:0}
@media(max-width:959px){body.is-home{padding-bottom:calc(80px + env(safe-area-inset-bottom))}}
.home-page{padding:10px 16px 8px;max-width:1000px}
.home-intro{display:flex;align-items:center;justify-content:space-between;gap:8px}
.home-page .welcome h1{font-size:21px;line-height:1.3;letter-spacing:0}
.home-page .welcome p{font-size:13px;line-height:1.5;margin-top:4px;color:#6f6c7a}
.home-guide{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;gap:2px;min-width:44px;min-height:44px;color:#7851b5;font-size:13px}
.home-page .feature-hero{height:clamp(170px,28svh,254px);aspect-ratio:auto;margin-top:12px;border-radius:18px}
.home-page .feature-hero>img{object-position:63% 57%}
.home-page .feature-content{height:100%;padding:20px 16px;justify-content:center}
.home-page .feature-example{top:10px;right:10px;font-size:11px}
.home-page .feature-hero h2{font-size:27px;line-height:1.2;margin:0}
.home-page .feature-subtitle{font-size:15px;line-height:1.5;margin-top:8px}
.home-page .feature-use{margin-top:22px;min-height:44px;min-width:145px;padding:8px 16px;font-size:14px;gap:8px}
.home-page .quick-section{margin:16px 0 10px}
.home-page .quick-grid{max-width:none;gap:8px}
.home-page .quick-grid a{gap:6px;min-height:68px;justify-content:center}
.home-page .quick-grid a>span{height:44px;width:44px;border-radius:14px}
.home-page .quick-grid strong{font-size:12px;line-height:18px;color:#625b70}
.home-templates .section-heading{margin:0 0 6px;min-height:40px}
.home-templates .section-heading h2{font-size:17px;line-height:1.4}
.home-templates .more-link{font-size:12px;min-height:40px;display:inline-flex;align-items:center}
.template-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.template-row{display:flex;flex-direction:column;min-height:0;border-radius:13px}
.template-row>img{width:100%;max-width:none;height:clamp(68px,10svh,96px);object-fit:cover}
.template-row-copy{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:10px;min-height:40px;flex:none}
.template-row-copy strong{font-size:14px;line-height:20px;font-weight:650}
.template-row-copy .h5-icon{color:#726782}
@media(max-width:359px){
  .home-page{padding-inline:12px}
  .home-page .welcome h1{font-size:19px}
  .home-page .welcome p{font-size:12px}
  .home-page .quick-grid{gap:4px}
  .template-row-copy{padding:8px}
  .template-row-copy strong{font-size:13px}
}
@media(max-width:959px) and (max-height:700px){
  .home-page{padding-top:4px;padding-bottom:4px}
  .home-page .welcome h1{font-size:19px}
  .home-page .welcome p{margin-top:1px;font-size:12px}
  .home-page .feature-hero{height:140px;margin-top:6px}
  .home-page .feature-content{padding:12px 14px}
  .home-page .feature-hero h2{font-size:24px}
  .home-page .feature-subtitle{font-size:13px;margin-top:4px}
  .home-page .feature-use{margin-top:10px;min-height:44px}
  .home-page .quick-section{margin:10px 0 4px}
  .home-page .quick-grid a{min-height:60px;gap:4px}
  .home-page .quick-grid a>span{width:40px;height:40px;border-radius:12px}
  .home-templates .section-heading,.home-templates .more-link{min-height:32px}
  .home-templates .section-heading{margin-bottom:4px}
  .template-row>img{height:54px}
  .template-row-copy{min-height:32px;padding-block:6px}
}
@media(min-width:960px){
  .home-page{padding:20px 28px 16px}
  .home-page .welcome h1{font-size:24px}
  .home-page .welcome p{font-size:14px}
  .home-page .feature-hero{height:clamp(210px,32svh,310px);margin-top:16px}
  .home-page .feature-content{padding:26px 30px}
  .home-page .feature-hero h2{font-size:38px}
  .home-page .feature-subtitle{font-size:18px}
  .home-page .feature-use{min-width:160px;font-size:15px;margin-top:24px}
  .home-page .quick-section{margin:16px 0 8px}
  .home-page .quick-grid a{flex-direction:row;gap:12px;min-height:52px}
  .home-page .quick-grid strong{font-size:14px}
  .template-row{flex-direction:row;align-items:stretch}
  .template-row>img{width:48%;height:104px}
  .template-row-copy{flex:1;padding:12px}
  .template-row-copy strong{font-size:16px}
}

/* Three destinations, three intentions: inspiration, action, continuation. */
.home-page .feature-hero{height:clamp(150px,27svh,242px)}
.home-page .feature-content{align-items:flex-start}
.feature-actions{display:flex;align-items:center;gap:10px;margin-top:22px}
.home-page .feature-actions .feature-use{margin:0}
.feature-preview{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border-radius:24px;border:1px solid #ffffffa3;background:#201b49d9;color:#fff;font-size:14px}
.template-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.template-pick{min-width:0;display:flex;flex-direction:column;border:2px solid transparent;border-radius:12px;background:#fff;overflow:hidden;transition:border-color .15s}
.template-pick[aria-current="true"]{border-color:#8a57cf;background:#f1e9fd;box-shadow:0 0 0 1px #8a57cf}
.template-pick img{display:block;width:100%;height:clamp(52px,8svh,76px);object-fit:cover}
.template-pick strong{display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.5;min-height:32px;padding:5px 2px;font-weight:600;color:#5c526c}
.template-pick[aria-current="true"] strong{color:#6731b1}
body.is-directory #app{min-height:0}
@media(max-width:959px){body.is-directory{padding-bottom:calc(80px + env(safe-area-inset-bottom))}}
.tools-page,.personal-page{padding-top:14px;max-width:880px}
.tools-page .page-heading,.personal-page .page-heading{padding-top:0}
.tools-page .page-heading h1,.personal-page .page-heading h1{font-size:22px}
.tools-page .page-heading p,.personal-page .page-heading p{font-size:13px;line-height:1.6;margin-top:3px}
.tools-page .search-box{margin-top:14px;height:42px}
.tools-page .search-box input{font-size:13px}
.tools-page .category-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;overflow:visible;margin:14px 0 0;padding:0}
.tools-page .category-tabs a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px 3px;font-size:13px}
.tools-page .category-tabs a.active{border-color:#b996e5;background:#f0e7fc}
.tools-page .results-heading,.personal-page .results-heading{margin:14px 0 10px;min-height:24px}
.tools-page .tool-grid{grid-template-columns:1fr;gap:10px}
.tools-page .tool-main{flex-direction:row;align-items:center;min-height:78px;padding:14px 44px 14px 13px;gap:13px}
.tools-page .tool-icon{flex-shrink:0;width:38px;height:38px}
.tools-page .tool-copy{flex:1;width:auto;min-width:0;padding:0}
.tools-page .tool-copy strong{font-size:15px;line-height:1.5;padding:0;white-space:normal;overflow:visible;text-overflow:clip}
.tools-page .tool-copy>span{font-size:12px;line-height:1.6;margin-top:3px;white-space:normal;height:auto;display:block;overflow:visible}
.tools-page .tool-copy small,.personal-page .tool-copy small{display:none}
.tools-page .save-button{top:50%;right:5px;transform:translateY(-50%);width:36px;height:40px;display:grid;place-items:center}
.result-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:14px;min-height:40px;color:#71657f;font-size:12px}
.result-pagination a,.result-pagination button{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:40px;padding:6px 12px;border:1px solid #e4d8f2;border-radius:8px;background:#fff;color:#784ab3;font-size:13px}
.result-pagination [aria-disabled="true"],.result-pagination button:disabled{color:#8a838f;border-color:#ece7f1;background:#f5f1f8;cursor:default}
.personal-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.personal-links a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:12px;border:1px solid #e4d9f2;border-radius:12px;background:#eee7fb;color:#7650ac;font-size:14px}
.personal-page .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.personal-page .tool-main{min-height:112px;padding:13px 12px;gap:9px;flex-direction:column}
.personal-page .tool-copy{width:100%;padding:0}
.personal-page .tool-copy strong{font-size:14px;padding:0}
.personal-page .tool-copy>span{font-size:12px;line-height:1.6;height:auto;white-space:normal;margin-top:4px}
.personal-page .save-button{top:7px;right:5px;width:36px;height:36px;display:grid;place-items:center}
.personal-page .empty-state{padding:24px 16px}
.personal-page .empty-state p{max-width:280px;font-size:13px}
@media(max-width:359px){
  .template-picker{gap:6px}
  .template-pick strong{font-size:12px;letter-spacing:-.2px}
  .feature-actions{gap:7px}
  .home-page .feature-actions .feature-use{min-width:130px}
  .feature-preview{font-size:13px;padding-inline:11px}
  .tools-page .category-tabs{gap:4px}
  .tools-page .category-tabs a{font-size:12px}
}
@media(max-width:959px) and (max-height:700px){
  .home-page .feature-hero{height:140px}
  .feature-actions{margin-top:10px}
  .template-picker{margin-top:8px}
  .template-pick img{height:44px}
  .template-pick strong{min-height:29px;padding-block:3px}
  .tools-page,.personal-page{padding-top:6px;padding-bottom:6px}
  .tools-page .page-heading h1,.personal-page .page-heading h1{font-size:20px;line-height:1.3}
  .tools-page .page-heading p,.personal-page .page-heading p{font-size:12px;line-height:1.5}
  .tools-page .search-box{margin-top:8px;height:38px}
  .tools-page .category-tabs{margin-top:8px}
  .tools-page .category-tabs a{min-height:34px}
  .tools-page .results-heading,.personal-page .results-heading{margin:8px 0 6px;min-height:20px}
  .tools-page .tool-grid{gap:6px}
  .tools-page .tool-main{min-height:64px;padding-top:8px;padding-bottom:8px}
  .tools-page .tool-copy strong{font-size:14px}
  .tools-page .tool-copy>span{font-size:12px;margin-top:2px}
  .result-pagination{margin-top:8px}
  .personal-links{margin-top:10px}
  .personal-links a{min-height:48px;padding:10px}
}
@media(min-width:960px){
  .home-page .feature-hero{height:clamp(210px,30svh,280px)}
  .template-picker{gap:14px}
  .template-pick{flex-direction:row;align-items:center}
  .template-pick img{width:46%;height:76px}
  .template-pick strong{flex:1;justify-content:center;font-size:14px;padding:8px}
  .tools-page,.personal-page{padding:28px;max-width:900px}
  .tools-page .tool-grid{grid-template-columns:1fr;gap:12px}
  .tools-page .tool-main{min-height:84px}
  .tools-page .category-tabs a{font-size:14px}
  .personal-links{margin-top:20px}
  .personal-links a{min-height:74px}
  .personal-page .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Purposeful use of the remaining home space; these are real study presets,
   not fabricated student progress or a new tracking system. */
.learning-growth{margin:14px 0 2px}
.learning-growth-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;min-height:26px}
.learning-growth-heading h2{font-size:17px;line-height:1.4;font-weight:650}
.learning-growth-heading>span{font-size:12px;color:#81718e;white-space:nowrap}
.learning-growth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.learning-growth-card{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:94px;padding:11px 10px;border:1px solid #e2dcf5;border-radius:13px;background:#eeebff;color:#7754ad;transition:border-color .15s,box-shadow .15s}
.learning-growth-card:hover{border-color:#b79acb;box-shadow:0 3px 12px #55427415}
.learning-growth-card.learning-practice{background:#e8f3f0;border-color:#d9e9e4;color:#337f72}
.learning-growth-card.learning-review{background:#fff0e6;border-color:#f0e2d6;color:#aa6b41}
.learning-growth-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.learning-growth-copy strong{font-size:14px;line-height:1.5;font-weight:650}
.learning-growth-copy>span{font-size:11px;line-height:1.5;color:#6f677b;white-space:nowrap}
.learning-growth-card>.h5-icon:last-child{display:none}
@media(min-width:560px){
  .learning-growth-card{flex-direction:row;align-items:center;min-height:90px;padding:14px;gap:12px}
  .learning-growth-copy strong{font-size:15px}
  .learning-growth-copy>span{font-size:12px}
}
@media(min-width:960px){
  .learning-growth{margin-top:16px}
  .learning-growth-card{min-height:80px;padding:16px;gap:14px}
  .learning-growth-card>.h5-icon:last-child{display:block;margin-left:auto}
}
@media(max-width:959px) and (max-height:600px){
  .home-page .feature-hero{height:128px}
  .home-page .quick-section{margin:8px 0 4px}
  .home-page .quick-grid a{min-height:34px;gap:0;border-radius:9px;background:#eee8f9}
  .home-page .quick-grid a>span{display:none}
  .home-page .quick-grid strong{font-size:12px;color:#715d88}
  .learning-growth{margin:8px 0 0}
  .learning-growth-heading{min-height:23px;margin-bottom:6px}
  .learning-growth-heading h2{font-size:15px}
  .learning-growth-heading>span{font-size:11px}
  .learning-growth-card{flex-direction:row;align-items:center;justify-content:center;min-height:38px;padding:7px 4px;gap:5px;border-radius:10px}
  .learning-growth-card>.h5-icon{width:16px;height:16px}
  .learning-growth-copy strong{font-size:12px;line-height:20px}
  .learning-growth-copy>span{display:none}
}
@media(prefers-reduced-motion:reduce){.learning-growth-card{transition:none}}
