/* Gallery: the entrance's sky imagery, generous typography, quiet reading surfaces. */
.projects-page{--ink:#e5ebff;--muted:#a4b2d1;--paper:#070d20;--line:#2a355a;--surface:#111a32;--action:#e5ebff;--accent:#e0c68e;--accent-soft:#1b2950;position:relative;min-height:100dvh;isolation:isolate;scrollbar-color:var(--muted) var(--paper)}
[data-theme=day] .projects-page{--ink:#272724;--muted:#696962;--paper:#fcfcfa;--line:#deded6;--surface:#fff;--action:#272724;--accent:#87734b;--accent-soft:#f2efe8}
.projects-page [hidden]{display:none!important}
.projects-scenery{position:absolute;inset:0 0 auto;height:800px;z-index:-1;pointer-events:none;background:linear-gradient(0deg,var(--paper) 0%,transparent 85%),linear-gradient(90deg,#070d20d9 0%,#070d2040 70%),url('/workspace-galaxy-v3.webp') center top/cover no-repeat}
[data-theme=day] .projects-scenery{background:linear-gradient(0deg,var(--paper) 0%,transparent 85%),linear-gradient(90deg,#fcfcfa9c 0%,#fcfcfa00 70%),url('/home-morning-v1.webp') center top/cover no-repeat}
.projects-page .academy-header{max-width:1440px;min-height:100px;padding:24px 48px;border:0;gap:40px}
.projects-page .academy-brand{font-size:20px;gap:12px}.projects-page .academy-brand svg{color:var(--accent)}
.projects-page .academy-header nav{gap:36px}.projects-page .academy-header nav a{font-size:14px}.projects-page .academy-header nav a[aria-current=page]{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:10px}
.projects-page .theme-toggle{font-family:var(--sans);font-size:14px;border-color:var(--line);background:transparent;color:var(--ink);padding:10px 16px}
.projects-page .theme-toggle:hover{background:var(--accent-soft);border-color:var(--muted)}
.projects-page .projects-shell{max-width:none;padding:0;min-height:70vh}
.projects-hero,.projects-collection{width:100%;max-width:1440px;margin-inline:auto;padding-inline:48px}
.projects-hero{padding-block:80px 84px;animation:project-arrive 900ms var(--motion-ease,cubic-bezier(.16,1,.3,1))}
.projects-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:64px}
.projects-heading>div{min-width:0}.projects-heading h1{font-size:88px;line-height:1.14;font-weight:550;letter-spacing:-.035em;margin:0 0 28px;overflow-wrap:anywhere;text-wrap:balance}
.projects-heading p{font-size:18px;line-height:1.8;color:var(--muted);max-width:32em;margin:0;text-wrap:balance}
.projects-heading p>span{display:inline-block}
.projects-page .academy-start{border-radius:999px;min-height:52px;flex-shrink:0;gap:28px;padding:14px 24px;background:var(--action);color:var(--paper)!important;font-size:15px;font-weight:500;transition:background .2s,translate .3s var(--motion-ease)}
.projects-heading .academy-start svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:translate .3s var(--motion-ease)}
.projects-page .academy-start:hover svg{translate:3px 0}.projects-page .academy-start:hover{filter:brightness(.92)}
.projects-collection{padding-bottom:64px}.projects-status{font-size:14px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 20px;font-variant-numeric:tabular-nums}.projects-status:empty{display:none}.projects-status[data-error=true]{color:#d6a38b}[data-theme=day] .projects-status[data-error=true]{color:#9f382a}
.projects-search{display:grid;grid-template-columns:minmax(0,1fr) 180px auto;align-items:end;gap:24px;padding:24px 0 32px;margin:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.projects-search label{font-size:14px;color:var(--muted);display:grid;gap:10px;min-width:0}
.projects-search input,.projects-search select{width:100%;min-height:52px;padding:12px 16px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;font:inherit;caret-color:var(--ink)}
.projects-search input::placeholder{color:var(--muted);opacity:1}
.project-primary,.project-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;font:inherit;border-radius:8px;min-height:48px;padding:12px 22px;cursor:pointer;font-size:14px;line-height:1.5;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.projects-page .project-primary{color:var(--paper);background:var(--action);border:1px solid var(--action)}.project-primary:hover{filter:brightness(.92)}
.project-secondary{color:var(--ink);background:var(--surface);border:1px solid var(--line)}.project-secondary:hover{background:var(--accent-soft);border-color:var(--muted)}
.project-primary:disabled,.project-secondary:disabled{cursor:wait;opacity:.65}
.projects-shell input,.projects-shell textarea,.projects-shell select{caret-color:var(--ink);scrollbar-color:var(--muted) var(--surface)}
.projects-list{display:grid}.project-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.55fr);gap:24px 72px;padding:48px 0;border-bottom:1px solid var(--line)}
.project-item-main{min-width:0}.project-item h2{font-size:32px;line-height:1.5;letter-spacing:-.02em;margin:0 0 16px;overflow-wrap:anywhere;font-weight:550}
.project-item h2 a{text-decoration:none}.project-item h2 a:hover{text-decoration:underline;text-decoration-thickness:1px}
.project-meta{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.project-item .project-summary{font-size:16px;line-height:1.9;margin:20px 0 0;max-width:65ch;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.project-knowledge{min-width:0;padding-top:8px}.project-knowledge h3{font-size:14px;font-weight:400;color:var(--muted);margin:0 0 16px}.project-knowledge p{font-size:18px;line-height:1.9;margin:0;overflow-wrap:anywhere;max-width:35ch}
.project-item-actions{grid-column:1/-1;display:flex;align-items:center;gap:28px}.project-item-actions a{font-size:14px;min-height:44px;display:flex;align-items:center;text-decoration:none}.project-item-actions a:first-child{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:6px}.project-item-actions a:hover{text-decoration:underline}
.projects-empty{padding:64px 0;max-width:70ch}.projects-empty h2{font-size:32px;line-height:1.5;letter-spacing:-.02em;margin:0 0 20px;font-weight:500}.projects-empty p{font-size:16px;line-height:1.9;color:var(--muted);margin:0 0 28px}.projects-empty .project-secondary{border-radius:999px}
.projects-pagination{display:flex;gap:28px;align-items:center;padding-top:32px;font-size:14px}.projects-pagination a{min-height:44px;display:flex;align-items:center}
.projects-course-link{margin-top:64px;padding-top:32px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:16px}.projects-course-link p{margin:0;color:var(--muted)}.projects-course-link a{min-height:44px;display:flex;align-items:center;white-space:nowrap;font-size:14px}
.projects-page .academy-footer{max-width:1344px;margin-inline:auto;padding:24px 0 40px;font-size:14px;gap:24px}
/* Editing and reading keep a compact heading. */
.projects-page:is([data-project-view=editor],[data-project-view=detail]) .projects-hero{padding-block:48px 40px}
.projects-page:is([data-project-view=editor],[data-project-view=detail]) .projects-heading h1{font-size:48px;max-width:26ch;line-height:1.4;margin-bottom:18px}
.projects-page:is([data-project-view=editor],[data-project-view=detail]) .projects-heading p{font-size:16px;max-width:65ch}
.project-editor{max-width:960px;padding-top:16px}.project-editor label{display:grid;gap:10px;font-size:15px;margin-bottom:28px;min-width:0}.project-editor input,.project-editor textarea,.project-editor select{width:100%;min-width:0;min-height:52px;padding:13px 16px;font:inherit;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface)}
.project-editor input::placeholder,.project-editor textarea::placeholder{color:var(--muted);opacity:1}.project-editor textarea{line-height:1.9;resize:vertical}.project-fields{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.project-code-editor{margin:4px 0 28px;border-block:1px solid var(--line);padding:18px 0}.project-code-editor summary{min-height:44px;cursor:pointer;font-size:15px;align-content:center}.project-code-editor label{margin:18px 0 0}.project-code-editor textarea{font-family:var(--mono);font-size:14px;line-height:1.8;white-space:pre;overflow:auto}
.project-code-editor p,.project-visibility{font-size:14px;line-height:1.8;color:var(--muted);max-width:75ch}.project-visibility{margin:24px 0}
.project-form-actions,.project-management,.project-links{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px}.project-form-actions a,.project-links a{display:flex;align-items:center;min-height:44px;font-size:14px}
.project-detail{max-width:80ch;padding-top:8px}.project-detail h2{font-size:24px;margin:40px 0 16px}.project-detail .project-body{font-size:17px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}.project-detail pre{max-width:100%;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:auto;font:14px/1.9 var(--mono);tab-size:4;scrollbar-color:var(--muted) var(--surface)}
.project-detail details{margin:32px 0}.project-detail summary{cursor:pointer;font-size:16px;min-height:44px;align-content:center}.project-management{padding-top:32px;border-top:1px solid var(--line);margin-top:40px}.project-detail>.project-visibility{margin-top:24px}
@keyframes project-arrive{from{translate:0 14px}to{translate:0 0}}
/* Existing homepage helpers remain unchanged. */
.course-prompts{max-width:760px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0 18px;margin:14px auto 0;font-size:12px;color:var(--muted)}.course-prompts button{font:inherit;min-height:44px;padding:7px 0;border:0;border-radius:4px;color:inherit;background:none;cursor:pointer;text-underline-offset:5px}.course-prompts button:hover{text-decoration:underline}.course-prompts button:focus-visible{outline:2px solid currentColor;outline-offset:3px}.system-course-reference{margin-top:42px;max-width:none}.system-course-reference strong{font-size:18px}.home-page .creation-entry{margin-top:40px;gap:30px}.creation-entry h3{font-size:23px;margin:0 0 10px}.creation-entry p{max-width:60ch;font-size:14px;color:var(--muted);margin:0}.creation-entry>a{white-space:nowrap;min-height:44px;display:flex;align-items:center;font-size:14px}
@media(min-width:1800px){.projects-scenery{background-position:center 38%}}
@media(max-width:1440px){.projects-page .academy-footer{margin-inline:48px}}
@media(max-width:1000px){.home-page .home-hero h1>span{display:block}.projects-page .academy-header{gap:24px;padding-inline:32px}.projects-page .academy-header nav{gap:24px}.projects-hero,.projects-collection{padding-inline:32px}.projects-hero{padding-block:64px}.projects-heading{gap:32px}.projects-heading h1{font-size:68px}.projects-heading p{font-size:16px}.project-item{column-gap:40px}.projects-page .academy-footer{margin-inline:32px}.projects-search{grid-template-columns:minmax(0,1fr) 150px auto;gap:16px}}
@media(max-width:760px){.projects-page .academy-header{min-height:80px;gap:12px;padding:18px 24px;flex-wrap:wrap}.projects-page .academy-header nav{order:3;width:100%;margin:8px 0 0;padding-top:8px;gap:28px;border-top:1px solid var(--line)}.projects-page .theme-toggle{margin-left:auto;padding:8px 14px}.projects-hero,.projects-collection{padding-inline:24px}.projects-hero{padding-block:48px}.projects-heading{flex-direction:column;align-items:flex-start;gap:28px}.projects-heading h1{font-size:56px;margin-bottom:20px}.projects-heading p{font-size:16px;max-width:29em}.projects-search{grid-template-columns:minmax(0,1fr) auto;gap:20px 16px;padding-block:24px}.projects-search label:first-child{grid-column:1/-1}.project-item{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:36px}.project-item h2{font-size:28px}.project-knowledge{padding:0}.project-knowledge h3{margin-bottom:8px}.project-knowledge p{font-size:16px;max-width:65ch}.project-item-actions{gap:28px}.project-fields{grid-template-columns:1fr;gap:0}.project-detail pre{padding:16px}.projects-empty{padding-block:40px}.projects-empty h2{font-size:28px}.projects-course-link{flex-direction:column;align-items:flex-start;gap:8px;margin-top:40px;padding-top:28px}.projects-page .academy-footer{margin-inline:24px;font-size:13px}.projects-page:is([data-project-view=editor],[data-project-view=detail]) .projects-heading h1{font-size:36px}.projects-page:is([data-project-view=editor],[data-project-view=detail]) .projects-hero{padding-block:32px}.course-prompts{gap:0 14px}.home-page .creation-entry{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.home-page .intent-toolbar>span{display:none}.home-page .intent-toolbar{justify-content:flex-end}}
@media(max-width:420px){.projects-page .academy-header{padding-inline:20px}.projects-page .academy-brand{font-size:18px}.projects-page .academy-header nav{gap:24px}.projects-hero,.projects-collection{padding-inline:20px}.projects-heading h1{font-size:48px}.projects-heading p{font-size:15px}.projects-scenery{height:760px;background-position:60% top}.projects-empty h2{font-size:26px}.project-form-actions>.project-primary{width:100%}.projects-page .academy-footer{margin-inline:20px;font-size:12px}.course-prompts>span{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.projects-hero{animation:none}.project-primary,.project-secondary,.projects-page .academy-start,.projects-heading .academy-start svg{transition:none}.projects-page .academy-start:hover svg{translate:none}}

