
/* Full-screen start workspace, deliberately independent of the editor grid. */
#prHome.sem-home{position:fixed;inset:0;z-index:350;display:grid;grid-template-columns:244px minmax(0,1fr);padding:0;background:#f7f8f5;color:#233e35;backdrop-filter:none;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;overflow:hidden;text-align:left}
#prHome.sem-home[hidden],#prHome [hidden]{display:none!important}
#prHome *{box-sizing:border-box}
#prHome .home-sidebar{display:flex;position:static;inset:auto;flex-direction:column;width:auto;min-width:0;height:100%;max-height:none;overflow:auto;background:#f4f5f0;border:0;border-right:1px solid #d9ded4;padding:24px 16px;gap:20px;color:inherit;grid-row:auto;grid-column:auto}
#prHome .home-brand{display:flex;align-items:center;gap:7px;min-height:74px;padding-bottom:22px;border-bottom:1px solid #d9ded4}
#prHome .home-brand strong{font:700 27px/1.2 Georgia,serif;letter-spacing:-1px;white-space:nowrap}
#prHome .home-brand small{display:block;font-size:12px;color:#54675e;margin-top:3px}
#prHome .home-mark{width:48px;flex:none;position:relative;padding-top:18px}
#prHome .home-mark>svg{position:absolute;width:48px;height:21px;top:0;left:0;fill:none;stroke:#244d3e;stroke-width:2}
#prHome .home-mark>span{display:block;width:48px;height:41px;overflow:hidden}
#prHome .home-mark img{display:block;width:64px;max-width:none;height:auto;margin-left:-8px;mix-blend-mode:multiply}
#prHome #homeNav{display:flex;flex-direction:column;gap:7px;margin-top:2px}
#prHome button{font:600 14px/1.4 system-ui;color:#25473a;background:#fff;border:1px solid #ccd5c9;border-radius:9px;padding:11px 15px;cursor:pointer;min-height:42px;white-space:normal;text-align:center;box-shadow:none;letter-spacing:0;transition:background .12s,border-color .12s}
#prHome button:hover{background:#e9efe5;border-color:#9dad97}
#prHome button:focus-visible,#prHome main:focus-visible{outline:3px solid #b48b3f;outline-offset:3px}
#prHome button svg{width:24px;height:24px;flex-shrink:0}
#prHome #homeNav button,#prHome .home-sidebar-bottom button{display:flex;align-items:center;gap:17px;border-color:transparent;background:transparent;text-align:left;font-size:16px;padding:12px 14px}
#prHome #homeNav button[aria-current="page"]{background:#dce5d5;color:#1d4736}
#prHome .home-sidebar-bottom{margin-top:auto;border-top:1px solid #d9ded4;padding-top:15px;display:grid;gap:5px}
#prHome #prHomeClose{font-size:12px;background:transparent;padding:8px;min-height:36px}
#prHome #homeMain{display:block;position:static;min-width:0;width:auto;height:100%;overflow-y:auto;overflow-x:hidden;padding:34px clamp(20px,3vw,54px) 24px;background:#f7f8f5;overscroll-behavior:contain;scrollbar-gutter:stable;outline:none}
#prHome #homePages{max-width:1500px;margin:0 auto}
#prHome .home-page{display:block;padding:0;margin:0;border:0;width:auto;max-width:none}
#prHome h1{font:750 clamp(30px,3vw,44px)/1.15 system-ui;color:#203c31;white-space:normal;max-width:none;width:auto;overflow:visible;margin:0 0 7px;letter-spacing:-1px}
#prHome h2{font:650 23px/1.25 system-ui;color:#263e34;margin:0 0 12px}
#prHome h3{font:650 22px/1.2 system-ui;color:#263e34;margin:0 0 5px}
#prHome p{font-size:14px;line-height:1.6;color:#647166;margin:0 0 14px}
#prHome .home-lead{font-size:18px;margin-bottom:26px}
#prHome .home-top-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(240px,1fr);gap:20px}
#prHome .home-last,#prHome .home-new,#prHome .home-study,#prHome .home-example{border:1px solid #d4dbcf;border-radius:14px;overflow:hidden;background:#fff}
#prHome .home-last{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(180px,1fr);min-height:276px}
#prHome canvas{display:block;width:100%;max-width:100%;height:auto;background:#c5cfae}
#prHome .home-last-preview{height:100%;object-fit:cover;min-height:276px}
#prHome .home-last-info{padding:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0}
#prHome .home-last-info h2{font:700 30px/1.2 Georgia;margin-top:16px;overflow-wrap:anywhere}
#prHome .home-last-info button{align-self:stretch;margin-top:auto}
#prHome .home-tag{font-size:11px;border:1px solid #cbb375;border-radius:15px;padding:3px 10px;color:#7b632e;background:#fbf6e8}
#prHome .home-local{font-size:12px;background:#edf2e8;border-radius:7px;padding:3px 8px}
#prHome .home-primary,#homePreviewDialog .home-primary{background:#24513e!important;color:#fff!important;border-color:#24513e!important}
#prHome .home-primary:hover,#homePreviewDialog .home-primary:hover{background:#33664e!important}
#prHome .home-new{padding:20px;display:flex;flex-direction:column;gap:9px}
#prHome .home-new h2{margin-bottom:4px}
#prHome .home-new button{display:flex;align-items:center;gap:18px;text-align:left;flex:1}
#prHome .home-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:30px;background:linear-gradient(130deg,#edf1e5,#fff)}
#prHome .home-empty>svg{width:46px;height:46px;color:#52795c;margin-bottom:10px}
#prHome .home-study{display:flex;gap:20px;align-items:center;padding:20px 24px;margin:22px 0 28px;background:#f5f3e9}
#prHome .home-study>svg{width:52px;height:52px;flex:none;color:#82956f}
#prHome .home-study>div{flex:1}#prHome .home-study h2{margin:0 0 5px;font-size:22px}#prHome .home-study p{margin:0}
#prHome .home-section-title{margin-bottom:18px}
#prHome .home-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#prHome .home-example canvas{height:200px;object-fit:cover}
#prHome .home-example-body{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:18px}
#prHome .home-example-body>div{flex:1;min-width:160px}
#prHome .home-example-body p{margin:0;font-size:12px}
#prHome .home-example-body button{font-size:12px;min-height:36px;padding:8px 10px}
#prHome .home-footnote{font-size:12px;margin:24px 0 0;padding-top:16px;border-top:1px solid #d9ded4}
#prHome .home-inline-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
#prHome .home-project-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #d9ded4}
#prHome .home-project-row strong{min-width:160px;flex:1;overflow-wrap:anywhere}
#prHome .home-project-row span{color:#647166;font-size:12px}
#prHome .home-lesson-list{padding-left:25px;max-width:900px}
#prHome .home-lesson-list li{padding:14px 12px}#prHome .home-lesson-list h2{font-size:20px}
#prHome #homeNotice:empty{display:none}#prHome #homeNotice{background:#f5e6be;border:1px solid #dbba74;border-radius:9px;padding:12px;margin-bottom:20px;color:#624b24}
#prHome .asteria-examples{border:0;margin-top:20px}#prHome .asteria-example-buttons{display:flex;flex-wrap:wrap;gap:12px}
#homePreviewDialog{z-index:365}#homePreviewDialog canvas{display:block;width:100%;height:auto;border-radius:10px;margin-bottom:20px}.home-preview-dialog{max-width:1080px}
#homeLesson{position:fixed;left:96px;bottom:40px;z-index:160;width:min(370px,calc(100vw - 120px));padding:18px;background:#fffef4;color:#264537;border:1px solid #b7c9ac;border-radius:12px;box-shadow:0 8px 35px #183f3430;font:14px/1.5 system-ui}
#homeLesson[hidden]{display:none}#homeLesson>div{display:flex;align-items:center;justify-content:space-between;gap:10px}#homeLesson p{margin:10px 0 16px}#homeLesson button{padding:7px 10px}#homeLessonClose{background:transparent;border:0;font-size:22px}
@media(min-width:1700px){#prHome .home-last-preview{min-height:340px}#prHome .home-example canvas{height:250px}}
@media(max-width:1120px){#prHome.sem-home{grid-template-columns:205px minmax(0,1fr)}#prHome .home-brand strong{font-size:23px}#prHome #homeMain{padding:25px 20px}#prHome .home-top-grid{grid-template-columns:minmax(0,1fr)}#prHome .home-new{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#prHome .home-new h2{grid-column:1/-1}#prHome .home-last{min-height:220px}#prHome .home-last-preview{min-height:220px}#prHome .home-study{flex-wrap:wrap}}
@media(max-width:700px){#prHome.sem-home{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}#prHome .home-sidebar{height:auto;padding:10px 14px;gap:8px;border:0;border-bottom:1px solid #d9ded4;overflow:visible}#prHome .home-brand{min-height:0;padding:0;border:0;gap:10px}#prHome .home-mark{display:none}#prHome .home-brand strong{font-size:22px}#prHome .home-brand small{display:inline;margin-left:10px}#prHome #homeNav{flex-direction:row;overflow-x:auto;margin:0}#prHome #homeNav button{font-size:12px;padding:8px 10px;white-space:nowrap;gap:6px}#prHome #homeNav svg{width:18px;height:18px}#prHome .home-sidebar-bottom{display:none}#prHome #prHomeClose{position:absolute;right:14px;top:8px;max-width:125px}#prHome .home-examples{grid-template-columns:1fr}#prHome .home-last{grid-template-columns:1fr}#prHome .home-last-preview{height:200px;min-height:0}#prHome #homeMain{padding:20px 16px}#prHome .home-last-info{padding:18px}#prHome .home-study{padding:18px}#prHome .home-study>svg{display:none}#prHome .home-study button{width:100%}#prHome .home-new button{font-size:12px;gap:8px}#homeLesson{left:14px;width:calc(100vw - 28px)}}
@media(prefers-reduced-motion:reduce){#prHome button{transition:none}}

@media(max-width:700px){#prHome .home-sidebar-bottom{display:flex;flex-direction:row;gap:6px;margin:0;border:0;padding:0}#prHome .home-sidebar-bottom button{min-height:30px;padding:5px 10px;font-size:12px;gap:7px}#prHome .home-sidebar-bottom svg{width:17px;height:17px}}

#prHome button.home-map-delete{color:#a34b3e;background:#fff7f3;border-color:#e4c9c0;font-weight:500}#prHome button.home-map-delete:hover{background:#fbe9e1}#prHome .home-map-trash{margin-top:26px;border-top:1px solid #d9ded4;padding-top:18px}#prHome .home-map-trash summary{font:600 15px/1.5 system-ui;color:#536b57;padding:8px 0;cursor:pointer}#prHome .home-map-trash p{margin-top:12px}

#prHome .home-brand a,#prHome .home-contact-links a,#prHome .home-author-contact{color:#315d49;text-decoration:underline;text-underline-offset:3px}#prHome .home-contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px}#prHome .home-author-contact{font-size:12px;padding:4px 8px;line-height:1.5}#prHome .home-brand a:focus-visible,#prHome .home-author-contact:focus-visible,#prHome .home-contact-links a:focus-visible{outline:2px solid #997530;outline-offset:4px}
