:root{color-scheme:dark;--bg:var(--surface-canvas);--panel:var(--surface-1);--panel-2:var(--surface-2);--panel-3:var(--surface-panel);--line:var(--line-1);--line-soft:rgba(255,255,255,.06);--text:rgba(255,255,255,.92);--muted:var(--text-3);--dim:var(--text-4);--amber:var(--text-2);font-family:var(--font-sans)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-size:var(--fs-md);-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none}input,textarea,code,[contenteditable="true"]{-webkit-user-select:text;user-select:text}button,input{font:inherit}button,a{color:inherit}a{text-decoration:none}button{cursor:pointer}:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.home-shell{display:grid;grid-template-columns:196px minmax(0,1fr);min-height:100vh}.home-rail{position:sticky;top:0;display:flex;height:100vh;flex-direction:column;padding:22px 14px;border-right:1px solid var(--line);background:#0a0a0a}.home-brand{display:flex;height:46px;align-items:center;padding:0 8px;margin-bottom:20px}.home-brand img{display:block;width:115px;height:auto}.rail-new-project{display:flex;height:43px;align-items:center;justify-content:center;gap:8px;border:1px solid var(--accent);border-radius:10px;background:var(--accent);color:var(--accent-ink);font-weight:600}.rail-new-project:hover{border-color:var(--accent-hover);background:var(--accent-hover)}.rail-new-project span{font-size:var(--fs-xl);font-weight:400;line-height:1}.rail-nav{display:grid;gap:4px;margin-top:20px}.rail-nav a{display:flex;height:40px;align-items:center;gap:11px;padding:0 12px;border-radius:9px;color:var(--muted);font-weight:600}.rail-nav a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.rail-nav a:hover,.rail-nav a.active{background:var(--panel-2);color:var(--text)}.home-workspace{min-width:0}.home-topbar{position:sticky;top:0;z-index:20;display:flex;height:66px;align-items:center;justify-content:flex-end;padding:0 34px;border-bottom:1px solid var(--line);background:rgba(10,10,10,.94);backdrop-filter:blur(14px)}.home-topbar-actions{display:flex;align-items:center;gap:10px}.home-main{width:min(1420px,calc(100% - 64px));margin:0 auto;padding:34px 0 110px}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}.section-head.compact{margin-bottom:20px}.section-head span{display:block;margin-top:6px;color:var(--text-4);font-family:"AUVRA Display",var(--font-sans);font-size:var(--fs-2xs);font-weight:400;line-height:1.4;letter-spacing:.14em}.section-head h1,.section-head h2{margin:0;font-family:"AUVRA Display",var(--font-sans);letter-spacing:.02em;line-height:var(--lh-tight)}.section-head h1{font-size:clamp(var(--fs-3xl),3vw,var(--fs-display));font-weight:400}.section-head h2{font-size:clamp(var(--fs-xl),1.75vw,25px);font-weight:400}.section-head p,.section-head small{margin:0;color:var(--dim);font-size:var(--fs-xs)}
.quick-start-grid{display:grid;grid-template-columns:minmax(400px,1.08fr) minmax(430px,1fr);gap:12px}.quick-canvas,.quick-service{border:1px solid var(--line);background:var(--panel);transition:border-color .16s ease,background .16s ease,transform .16s ease}.quick-canvas:hover,.quick-service:hover{border-color:rgba(255,255,255,0.293);background:var(--panel-2);transform:translateY(-2px)}.quick-canvas{position:relative;display:grid;min-height:330px;overflow:hidden;place-items:center;border-radius:18px;background-color:#161616;background-image:radial-gradient(rgba(255,255,255,.14) .8px,transparent .8px);background-size:18px 18px}.quick-canvas svg{position:absolute;inset:0;width:100%;height:100%}.quick-canvas path{fill:none;stroke:rgba(255,255,255,.18);stroke-width:1.4;stroke-dasharray:8 12;animation:canvas-flow 3.2s linear infinite}.quick-canvas path:last-child{animation-direction:reverse}@keyframes canvas-flow{to{stroke-dashoffset:-80}}.quick-canvas>span{position:relative;display:grid;place-items:center;gap:8px;text-align:center}.quick-canvas strong{display:grid;width:72px;height:72px;place-items:center;margin-bottom:10px;border-radius:20px;background:#f4f4f4;color:#111;font-size:var(--fs-display);font-weight:300;box-shadow:0 18px 38px rgba(0,0,0,.38)}.quick-canvas b{font-size:18px;font-weight:500;line-height:1.4;letter-spacing:.02em}.quick-canvas small{max-width:390px;color:var(--text-4);font-size:var(--fs-sm);line-height:1.5;letter-spacing:.02em}.quick-service-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-canvas::before,.quick-service::before,.project-card::before,.style-card::before{position:absolute;z-index:1;inset:0;border-radius:inherit;background:radial-gradient(320px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.075),transparent 62%);content:"";opacity:0;pointer-events:none;transition:opacity var(--t-slow) var(--ease)}.quick-canvas:hover::before,.quick-service:hover::before,.project-card:hover::before,.style-card:hover::before{opacity:1}.reveal:not(.is-in){opacity:0}.reveal.is-in{animation:ui-rise var(--t-reveal) var(--ease-out) calc(var(--i,0) * 50ms) backwards}.quick-service{position:relative;display:flex;min-height:159px;flex-direction:column;justify-content:center;gap:16px;padding:20px;border-radius:16px}.service-mark{display:grid;width:43px;height:43px;overflow:hidden;place-items:center;border-radius:11px;background:#2c2c2c;transition:scale .45s var(--ease-spring)}.quick-service:hover .service-mark{scale:1.08}.service-mark img{display:block;width:27px;height:27px;object-fit:contain}.service-mark.minimax{background:#fff}.service-mark.minimax img{width:29px}.service-mark.xai{background:#050505}.service-mark.xai img{width:43px;height:43px}.service-mark.comfy{background:#f2ff59}.service-mark.comfy img{width:43px;height:43px}.service-mark.camera{background:#282828}.service-mark.camera img{width:43px;height:43px}.quick-service b{display:block;font-size:15px;font-weight:500;line-height:1.4;letter-spacing:.02em}.quick-service small{display:block;margin-top:4px;color:var(--text-4);font-size:var(--fs-xs);line-height:1.5;letter-spacing:.02em}.quick-service em{position:absolute;top:15px;right:15px;padding:4px 8px;border-radius:99px;background:var(--accent);color:#111;font-size:var(--fs-3xs);font-style:normal;font-weight:600;letter-spacing:.08em}
.project-section,.style-library{padding-top:76px}/* Layout contract: one grid algorithm; breakpoints only change --project-columns. */.project-grid{--project-columns:4;display:grid;grid-template-columns:repeat(var(--project-columns),minmax(0,1fr));gap:10px;overflow:visible}.project-card{position:relative;display:grid;grid-template-columns:132px minmax(0,1fr);min-height:142px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--panel);transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.project-card:hover{border-color:rgba(255,255,255,.25)}.project-visual{display:grid;height:142px;min-height:0;place-items:center;overflow:hidden;background:#1f1f1f;color:#666666}.project-visual img,.all-project-visual img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s var(--ease),scale .9s var(--ease-out)}.project-visual img.is-loaded,.all-project-visual img.is-loaded{opacity:1}.project-card:hover .project-visual img,.all-project-card:hover .all-project-visual img{scale:1.05}.project-visual.is-empty,.all-project-visual.is-empty{background-color:#161616;background-image:radial-gradient(rgba(255,255,255,.1) .8px,transparent .8px);background-size:12px 12px}.empty-cover{width:72%!important;max-width:150px;height:auto!important;overflow:visible;fill:rgba(255,255,255,.035)!important;stroke:rgba(255,255,255,.22)!important;stroke-width:1.2!important}.empty-cover .empty-cover-edge{fill:none;stroke-dasharray:3 4;stroke:rgba(255,255,255,.28)}.empty-cover rect{transition:translate .5s var(--ease-out),fill .3s var(--ease)}.project-card:hover .empty-cover rect:nth-of-type(2),.all-project-card:hover .empty-cover rect:nth-of-type(2){translate:2px 2px;fill:rgba(255,255,255,.07)}.project-card:hover .empty-cover rect:nth-of-type(3),.all-project-card:hover .empty-cover rect:nth-of-type(3){translate:2px -2px}.project-card:hover .empty-cover .empty-cover-edge,.all-project-card:hover .empty-cover .empty-cover-edge{animation:canvas-flow 1.6s linear infinite}.project-visual svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.project-card-body{display:flex;min-width:0;flex-direction:column;padding:18px}.project-meta{overflow:hidden;color:var(--muted);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.project-card h3{overflow:hidden;margin:0 0 9px;font-size:var(--fs-lg);line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.project-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.project-card footer small{color:var(--dim);font-size:var(--fs-2xs)}.project-actions{display:flex;gap:6px}.project-delete{padding:7px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text-4);font-size:var(--fs-2xs);font-weight:600;transition:opacity var(--t-base) var(--ease),color var(--t-base) var(--ease),background-color var(--t-base) var(--ease),border-color var(--t-base) var(--ease)}.project-delete:hover,.project-delete:focus-visible{border-color:rgba(224,112,112,.3);background:rgba(224,112,112,.1);color:var(--danger)}@media(hover:hover){.project-card .project-delete,.all-project-card .project-delete{opacity:0}.project-card:hover .project-delete,.project-card:focus-within .project-delete,.all-project-card:hover .project-delete,.all-project-card:focus-within .project-delete{opacity:1}}.project-delete:disabled{display:none}.project-empty{grid-column:1/-1;padding:42px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);text-align:center}
.pagination button{height:31px;padding:0 13px;border:1px solid var(--line);border-radius:99px;background:transparent;color:var(--muted)}.pagination button:hover:not(:disabled){color:var(--text);border-color:rgba(255,255,255,.28)}.pagination button.active{background:var(--accent);color:#111;border-color:var(--accent)}.style-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:10px}.style-card{position:relative;display:block;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel);transition:border-color .16s ease,transform .16s ease}.style-card:hover{border-color:rgba(255,255,255,0.248);transform:translateY(-2px)}.style-card[aria-busy="true"]{pointer-events:none;opacity:.6}.style-card-image{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--panel-2);opacity:0;transition:opacity .5s var(--ease),scale .9s var(--ease-out)}.style-card-image.is-loaded{opacity:1}.style-card:hover .style-card-image{scale:1.045}.style-card-copy{position:relative;z-index:1;padding:12px 13px 6px;background:inherit}.style-card-copy h3{margin:0;font-size:var(--fs-sm);line-height:1.45}.style-card-copy p{display:-webkit-box;min-height:31px;margin:5px 0 0;overflow:hidden;color:var(--muted);font-size:var(--fs-3xs);line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.style-card footer{display:flex;align-items:center;justify-content:flex-end;padding:8px 13px 13px}.style-card-link{color:var(--muted);font-size:var(--fs-3xs);font-weight:600}.style-card:hover .style-card-link{color:var(--amber)}.pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:24px}.pagination button:disabled{cursor:not-allowed;opacity:.35}
.project-dialog{width:min(440px,calc(100vw - 30px));padding:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);box-shadow:0 26px 80px rgba(0,0,0,.6)}.project-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}.project-dialog form{display:grid;gap:var(--account-gap,22px);padding:var(--account-padding,25px)}.project-dialog span{color:var(--muted);font-size:var(--fs-3xs);font-weight:600;letter-spacing:.15em}.project-dialog h2{margin:7px 0 5px;font-size:var(--fs-2xl)}.project-dialog p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.6}.project-dialog label{display:grid;gap:8px;color:var(--muted);font-size:var(--fs-2xs)}.project-dialog input{width:100%;height:var(--account-control-height,44px);padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#0f0f0f;color:var(--text);outline:none}.project-dialog input:focus{border-color:rgba(255,255,255,0.338)}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.dialog-actions button{min-height:39px;padding:0 15px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted)}.dialog-actions .new-project-button{border-color:var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:600}.dialog-actions .danger-button{border-color:#a34b4b;background:#8b3939;color:#fff}.delete-project-summary{display:grid;gap:4px;padding:13px;border:1px solid rgba(216,116,116,.25);border-radius:9px;background:rgba(216,116,116,.06)}.delete-project-summary small{color:var(--muted)}.home-toast{position:fixed;inset:18px auto auto 50%;margin:0;z-index:100;max-width:min(520px,calc(100vw - 32px));padding:10px 14px;border:1px solid rgba(255,255,255,.1);border-radius:var(--radius-md);background:rgba(38,38,38,.96);color:var(--text-1);font-size:var(--fs-sm);box-shadow:0 12px 40px rgba(0,0,0,.45);backdrop-filter:blur(20px);opacity:0;transform:translate(-50%,-10px);pointer-events:none;transition:opacity .2s var(--ease),transform .3s var(--ease-out)}.home-toast.show{opacity:1;transform:translate(-50%,0)}
.quick-canvas>span{position:absolute;z-index:2;inset:0;display:flex;align-items:center;flex-direction:column;justify-content:center}.quick-canvas strong{position:absolute;top:calc(50% - 32px);left:50%;margin:0;transform:translate(-50%,-50%);transition:scale .45s var(--ease-spring),box-shadow .45s var(--ease-out)}.quick-canvas:hover strong{scale:1.06;box-shadow:0 22px 48px rgba(0,0,0,.5),0 0 0 6px rgba(255,255,255,.06)}.quick-canvas small{margin-top:0}.quick-canvas::after{position:absolute;z-index:1;inset:-45%;background:linear-gradient(110deg,transparent 40%,rgba(255,255,255,.12) 50%,transparent 60%);content:"";opacity:0;pointer-events:none;transform:translateX(-70%)}.quick-canvas:hover{background-color:var(--panel-2);background-image:radial-gradient(rgba(255,255,255,.3) .8px,transparent .8px)}.quick-canvas:hover::after{animation:canvas-scan 1.15s ease-out forwards;opacity:1}@keyframes canvas-scan{to{transform:translateX(70%)}}.project-card{cursor:pointer}.project-card:hover,.project-card:focus-visible{border-color:rgba(255,255,255,.34);background:var(--panel-2);box-shadow:0 14px 34px rgba(0,0,0,.22)}.project-card:active{background:var(--panel-3)}.project-delete{height:31px;padding-block:0;display:grid;width:31px;padding-inline:0;place-items:center}.project-delete svg{width:16px;height:16px;fill:currentColor}.style-card-copy{padding-bottom:13px}.preset-filters{display:flex;gap:6px;margin:-3px 0 20px;overflow-x:auto;scrollbar-width:none}.preset-filters::-webkit-scrollbar{display:none}.preset-filters button{flex:0 0 auto;height:38px;padding:0 20px;border:0;border-radius:99px;background:transparent;color:var(--muted);font-size:var(--fs-sm)}.preset-filters button:hover{color:var(--text)}.preset-filters button.active{background:var(--panel-3);color:var(--text)}
.quick-canvas:hover{background-size:18px 18px}
.quick-canvas{transition-property:border-color,background-color,transform}.quick-canvas:hover{background-image:radial-gradient(rgba(255,255,255,.14) .8px,transparent .8px)}
@media(prefers-reduced-motion:reduce){.quick-canvas:hover::after{animation:none;opacity:.08;transform:none}}
.home-shell{grid-template-columns:220px minmax(0,1fr)}.home-rail{padding:20px}.home-brand{height:48px;padding:0 10px}.rail-new-project{height:48px}.rail-new-project,.rail-nav a{justify-content:flex-start;gap:12px;padding:0 18px;font-size:var(--fs-md);font-weight:500;line-height:1.25;text-align:left}.rail-new-project span{position:relative;display:block;width:22px;height:22px;flex:0 0 22px}.rail-new-project span::before,.rail-new-project span::after{position:absolute;top:50%;left:50%;width:20px;height:2px;border-radius:2px;background:currentColor;content:"";transform:translate(-50%,-50%)}.rail-new-project span::after{transform:translate(-50%,-50%) rotate(90deg)}.rail-nav a{height:44px}.rail-nav a svg{display:block;width:22px;height:22px;flex:0 0 22px}
.rail-brand-row{display:flex;height:48px;align-items:center;gap:8px;margin-bottom:20px}.rail-brand-row .home-brand{min-width:0;flex:1;margin:0}.rail-toggle{display:grid;width:36px;height:36px;flex:0 0 auto;padding:0;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--text)}.rail-toggle:hover{background:var(--panel-3)}.rail-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}.rail-toggle-logo{display:none;width:34px;height:34px;object-fit:cover}.home-shell.rail-collapsed{grid-template-columns:88px minmax(0,1fr)}.home-shell.rail-collapsed .home-rail{padding-inline:20px}.home-shell.rail-collapsed .rail-brand-row{justify-content:center}.home-shell.rail-collapsed .home-brand{display:none}.home-shell.rail-collapsed .rail-toggle{width:48px;height:48px}.home-shell.rail-collapsed .rail-toggle-logo{display:block}.home-shell.rail-collapsed .rail-toggle-glyph{display:none}.home-shell.rail-collapsed .rail-toggle:hover .rail-toggle-logo{display:none}.home-shell.rail-collapsed .rail-toggle:hover .rail-toggle-glyph{display:block}.home-shell.rail-collapsed .rail-new-project{justify-content:center;padding:0;font-size:0}.home-shell.rail-collapsed .rail-new-project span{width:auto}.home-shell.rail-collapsed .rail-nav a{justify-content:center;padding:0;font-size:0}
.rail-brand-row{gap:14px}.rail-brand-row .home-brand{padding-right:0}.rail-brand-row .home-brand img{width:106px}
.home-view[hidden],.all-projects-view[hidden]{display:none}.view-all-projects{padding:8px 0;border:0;background:transparent;color:var(--muted);font-weight:600}.view-all-projects:hover{color:var(--text)}.view-all-projects span{display:inline;margin:0 0 0 8px;color:inherit;font-size:var(--fs-xl);font-weight:400;letter-spacing:0}.all-projects-view{min-height:calc(100vh - 145px)}.all-projects-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 42px;padding:2px 0 24px;border-bottom:1px solid var(--line-soft)}.all-projects-title,.all-projects-tools{display:flex;align-items:center}.all-projects-title{gap:14px}.all-projects-title h1{margin:0;font-family:"AUVRA Display",var(--font-sans);font-size:var(--fs-3xl);font-weight:400;letter-spacing:.02em}.all-projects-title button{width:38px;height:38px;padding:0;border:0;background:transparent;color:var(--muted);font-size:var(--fs-display);line-height:1}.all-projects-title button:hover{color:var(--text)}.all-projects-tools{gap:10px}.project-search{display:flex;width:min(330px,30vw);height:44px;align-items:center;gap:9px;padding:0 13px;border:1px solid var(--line);border-radius:11px;background:#0f0f0f}.project-search:focus-within{border-color:rgba(255,255,255,.3)}.project-search svg{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:1.5}.project-search input{min-width:0;flex:1;border:0;background:transparent;color:var(--text);outline:0}.all-projects-create{display:flex;height:44px;align-items:center;gap:7px;padding:0 16px;border:1px solid var(--line);border-radius:11px;background:var(--panel-3);color:var(--text);font-weight:600}.all-projects-create:hover{background:#282828}.all-projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:34px 18px}.all-project-card{min-width:0;cursor:pointer}.all-project-card:hover .all-project-visual{border-color:rgba(255,255,255,.32);transform:translateY(-2px)}.all-project-visual{display:grid;width:100%;aspect-ratio:16/10;overflow:hidden;place-items:center;border:1px solid var(--line-soft);border-radius:14px;background:#232323;color:#525252;transition:border-color .16s ease,transform .16s ease}.all-project-visual svg{width:54px;height:54px;fill:none;stroke:currentColor;stroke-width:1.4}.all-project-copy{position:relative;padding:13px 40px 0 4px}.all-project-copy h3{overflow:hidden;margin:0 0 6px;font-size:var(--fs-md);text-overflow:ellipsis;white-space:nowrap}.all-project-copy small{color:var(--muted);font-size:var(--fs-2xs)}.all-project-copy .project-delete{position:absolute;top:9px;right:0}.all-projects-start{display:flex;min-height:0;aspect-ratio:16/10;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:14px;background:var(--panel-2);color:var(--muted)}.all-projects-start:hover{border-color:rgba(255,255,255,.3);background:var(--panel-3);color:var(--text)}.all-projects-start span{font-size:var(--fs-display);font-weight:200}.all-projects-start b{font-size:var(--fs-md)}.all-projects-start small{font-size:var(--fs-3xs)}.all-projects-empty{display:grid;min-height:180px;place-items:center;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.quick-canvas path{animation:none}}@media(max-width:1050px){.home-shell{grid-template-columns:72px minmax(0,1fr)}.home-rail{padding-inline:10px}.home-brand{justify-content:center;padding:0}.home-brand img{width:40px;object-fit:cover;object-position:left}.rail-new-project{justify-content:center;gap:0;padding:0;font-size:0}.rail-new-project span{font-size:var(--fs-xl)}.rail-nav a{justify-content:center;padding:0;font-size:0}.quick-start-grid{grid-template-columns:1fr}}@media(max-width:680px){.home-shell{display:block}.home-rail{position:static;width:100%;height:auto;flex-direction:row;align-items:center;padding:10px 14px;border-right:0;border-bottom:1px solid var(--line)}.home-brand{width:92px;height:38px;margin:0;justify-content:start}.home-brand img{width:83px;object-fit:contain}.rail-new-project{width:42px;margin-left:auto}.rail-nav{display:none}.home-topbar{height:56px;padding:0 16px}.home-main{width:calc(100% - 28px);padding-top:24px}.section-head{align-items:start;flex-direction:column;gap:8px}.quick-canvas{min-height:250px}.quick-service-grid{grid-template-columns:1fr}.quick-service{min-height:125px}.project-section,.style-library{padding-top:55px}}
@media (min-width:681px) and (max-width:1050px){.rail-brand-row{justify-content:center}.rail-brand-row .home-brand{display:none}.rail-toggle{width:48px;height:48px}.rail-toggle-logo{display:block}.rail-toggle-glyph{display:none}.rail-toggle:hover .rail-toggle-logo{display:none}.rail-toggle:hover .rail-toggle-glyph{display:block}}
@media(max-width:680px){.rail-brand-row{width:92px;height:38px;margin:0}.rail-brand-row .home-brand,.home-shell.rail-collapsed .home-brand{display:flex}.rail-brand-row .home-brand img{width:83px}.rail-toggle{display:none}.home-shell.rail-collapsed .rail-new-project{margin-left:auto}}
@media(max-width:1100px){.all-projects-head{align-items:flex-start;flex-direction:column}.project-search{width:min(330px,55vw)}}
@media(max-width:680px){.project-grid{--project-columns:1}.all-projects-head{margin-bottom:26px}.all-projects-tools{width:100%}.project-search{width:auto;flex:1}.all-projects-create{padding-inline:12px}.all-projects-grid{grid-template-columns:1fr 1fr;gap:24px 12px}}
@media(max-width:460px){.all-projects-grid{grid-template-columns:1fr}.all-projects-tools{align-items:stretch;flex-direction:column}.all-projects-create{justify-content:center}.project-search{width:100%}}
.project-card footer small,.project-action{white-space:nowrap}@media(min-width:681px) and (max-width:1050px){.project-grid{--project-columns:2}}@media(min-width:681px){.home-shell.rail-collapsed .home-rail{align-items:center;padding-inline:0}.home-shell.rail-collapsed .rail-brand-row,.home-shell.rail-collapsed .rail-new-project,.home-shell.rail-collapsed .rail-nav,.home-shell.rail-collapsed .rail-nav a{width:48px}}
.home-shell.rail-collapsed .rail-new-project,.home-shell.rail-collapsed .rail-nav a{gap:0}@media (min-width:681px) and (max-width:1050px){.rail-new-project,.rail-nav a{gap:0}}
.quick-canvas b{margin-top:82px}
.home-topbar{justify-content:center;padding:0}.home-topbar-actions{width:min(1420px,calc(100% - 64px));justify-content:flex-end;padding:0;margin:0 auto}
@media(max-width:680px){.home-topbar{padding:0}.home-topbar-actions{width:calc(100% - 28px)}}
.home-topbar-actions.global-top-actions{width:min(1420px,calc(100% - 64px));padding:0}
@media(max-width:680px){.home-topbar-actions.global-top-actions{width:calc(100% - 28px);padding:0}}
.quick-canvas:hover,.quick-service:hover{border-color:rgba(255,255,255,.34)}
.style-card:hover{border-color:rgba(255,255,255,.34)}
.style-card:hover .style-card-link{color:var(--text)}
.project-card-skeleton{min-height:142px;border:1px solid var(--line-soft);border-radius:16px;background:linear-gradient(110deg,var(--panel) 25%,var(--panel-2) 45%,var(--panel) 65%);background-size:220% 100%;animation:project-loading 1.4s ease-in-out infinite}
@keyframes project-loading{to{background-position:-120% 0}}
@media(prefers-reduced-motion:reduce){.project-card-skeleton{animation:none}}

/* Account settings fit in two compact columns; small screens retain accessible scrolling. */
.home-account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-width:0}.home-account-head-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px}.home-account-lang{display:flex;align-items:center}.home-account-lang .auvra-lang-trigger{height:34px}.home-account-head>div{min-width:0}.home-account-head p{overflow-wrap:anywhere}.account-close{width:34px;height:34px;flex:0 0 34px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font-size:var(--fs-xl)}.account-close:hover{color:var(--text)}.account-feedback{min-height:18px;margin:0;color:var(--muted);font-size:var(--fs-2xs)}.account-feedback.error{color:#e99b9b}.account-feedback.success{color:var(--success)}
.home-account-dialog{--account-width:820px;--account-gap:12px;--account-padding:20px;--account-columns:repeat(2,minmax(0,1fr));--account-identity-columns:minmax(0,1.4fr) minmax(0,1fr);--account-control-height:36px;--account-card-gap:8px;--account-card-padding:14px;width:min(var(--account-width),calc(100vw - 30px));max-height:calc(100dvh - 24px);overflow:hidden;border-color:transparent;background:var(--surface-2);box-shadow:0 0 0 1px rgba(255,255,255,.12),0 30px 86px rgba(0,0,0,.54)}
.home-account-dialog form{max-height:calc(100dvh - 24px);overflow-y:auto}
.home-account-dialog label{min-width:0}.home-account-dialog input{min-width:0;border-color:rgba(255,255,255,.11);background:#111}.home-account-dialog input[readonly]{cursor:not-allowed;color:var(--dim)}
.home-account-dialog .account-feedback:empty{display:none}
.home-account-summary{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:#111}
.home-account-summary i{display:grid;width:44px;height:44px;place-items:center;border-radius:11px;background:var(--accent);color:#111;font-style:normal;font-weight:600}
.home-account-summary .home-account-avatar-button{display:grid;justify-items:center;gap:5px;flex:0 0 62px;padding:0;border:0;background:transparent;color:var(--muted);font-size:var(--fs-3xs);cursor:pointer}.home-account-summary .home-account-avatar-button:hover,.home-account-summary .home-account-avatar-button:focus-visible{color:var(--text)}.home-account-summary .home-account-avatar-button i{overflow:hidden}.home-account-summary .home-account-avatar-button img{display:block;width:100%;height:100%;object-fit:cover}
.home-account-summary .home-account-identity{display:grid;grid-template-columns:var(--account-identity-columns);gap:12px;min-width:0;flex:1}
.home-account-summary .home-account-name-row{display:flex;align-items:end;gap:8px}.home-account-summary .home-account-name-row label{min-width:0;flex:1}.home-account-summary .home-account-name-row button{height:var(--account-control-height);padding:0 14px;border:1px solid var(--line);border-radius:9px;background:#252525;color:var(--text);font-size:var(--fs-sm);font-weight:var(--fw-medium);cursor:pointer;white-space:nowrap}.home-account-summary .home-account-name-row button:hover{background:#353535}
.home-account-panels{display:grid;grid-template-columns:var(--account-columns);gap:var(--account-gap);align-items:start;min-width:0}
.home-account-storage{display:grid;align-content:start;gap:var(--account-card-gap,9px);min-width:0;padding:var(--account-card-padding,12px);border:1px solid rgba(255,255,255,.09);border-radius:9px;background:#111}
.home-account-storage-head,.home-account-storage-details{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.home-account-storage-head div{display:grid;gap:3px}.home-account-storage-head b{font-size:var(--fs-sm)}.home-account-storage-head strong{color:var(--text-1);font-size:var(--fs-xl);font-weight:var(--fw-semibold);font-variant-numeric:tabular-nums}
.home-account-storage-meter{height:7px;overflow:hidden;border-radius:6px;background:#282828}.home-account-storage-meter i{display:block;width:0;height:100%;border-radius:inherit;background:rgba(255,255,255,.72);transition:width .2s}.home-account-storage[data-level="warning"] .home-account-storage-head strong{color:var(--warning)}.home-account-storage[data-level="warning"] .home-account-storage-meter i{background:var(--warning)}.home-account-storage[data-level="full"] .home-account-storage-head strong{color:var(--danger)}.home-account-storage[data-level="full"] .home-account-storage-meter i{background:var(--danger)}
.home-account-storage-details{color:#bcbcbc;font-size:var(--fs-2xs)}.home-account-storage-details span{font-size:inherit;font-weight:400;letter-spacing:normal;overflow-wrap:anywhere}
.home-account-storage small{color:var(--muted);font-size:var(--fs-3xs);line-height:1.5;overflow-wrap:anywhere}.home-account-storage button{width:100%;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text-2);font-size:var(--fs-sm);line-height:1.4}.home-account-storage button:hover{color:var(--text);border-color:rgba(255,255,255,.28)}
@media(max-height:740px){.home-account-dialog{--account-gap:10px;--account-padding:16px;--account-control-height:34px;--account-card-gap:6px;--account-card-padding:12px}}
@media(max-width:680px){.home-account-dialog{--account-width:440px;--account-columns:1fr;--account-identity-columns:1fr;--account-padding:16px}}
.home-admin-dialog{width:min(1040px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:hidden;border-color:transparent;background:#1c1c1c;box-shadow:0 0 0 1px rgba(255,255,255,.12),0 30px 86px rgba(0,0,0,.54)}
.home-admin-card{display:flex;max-height:calc(100dvh - 24px);overflow-y:auto;flex-direction:column;gap:12px;padding:22px}
.home-admin-create{display:grid;grid-template-columns:minmax(180px,1fr) 150px auto;align-items:end;gap:10px;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#111}.home-admin-create strong{align-self:center;font-size:var(--fs-md)}.home-admin-create label{gap:5px}.home-admin-create input{height:36px}.home-admin-create button,.home-admin-credentials button,.home-admin-user-row>button{height:36px;padding:0 14px;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:#111;font-weight:600;white-space:nowrap}
.home-admin-registration{grid-template-columns:minmax(180px,1fr) 110px 125px auto}.home-admin-registration[hidden]{display:none}.home-admin-registration label:has(input[type="checkbox"]){display:flex;align-items:center;gap:6px;white-space:nowrap}.home-admin-registration input[type="checkbox"]{width:17px;height:17px;margin:0;padding:0;accent-color:var(--accent)}.home-admin-audit{color:var(--muted);font-size:var(--fs-2xs)}.home-admin-audit>div{max-height:100px;overflow:auto;white-space:pre-line;padding:8px}
.home-admin-credentials{display:grid;gap:8px;padding:12px;border:1px solid rgba(143,192,170,.3);border-radius:10px;background:#121212}.home-admin-credentials b{font-size:var(--fs-xs)}.home-admin-credentials textarea{width:100%;height:96px;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:8px;background:#0b0b0b;color:var(--text);font:var(--fs-2xs)/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.home-admin-credentials div{display:flex;justify-content:flex-end;gap:8px}.home-admin-credentials button{height:32px;border-color:var(--line);background:transparent;color:var(--text)}
.home-admin-search{grid-template-columns:auto minmax(180px,320px);align-items:center;justify-content:end}.home-admin-search input{height:36px}.home-admin-list-head,.home-admin-user-row{display:grid;grid-template-columns:minmax(105px,1fr) 110px 70px minmax(280px,2fr) 72px;align-items:center;gap:10px}.home-admin-list-head{padding:0 10px;color:var(--muted);font-size:var(--fs-3xs)}.home-admin-user-list{min-height:160px;overflow:auto;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#111}.home-admin-user-list>p{padding:34px;color:var(--muted);text-align:center}.home-admin-user-row{min-height:54px;padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.07);font-size:var(--fs-2xs)}.home-admin-user-row:last-child{border-bottom:0}.home-admin-user-row>div:first-child{display:grid;gap:3px}.home-admin-user-row small{color:var(--muted)}.home-admin-user-row .admin-user-settings{display:flex;align-items:center;gap:8px}.home-admin-user-row label{display:flex;grid-template-columns:none;align-items:center;gap:4px;white-space:nowrap}.home-admin-user-row input[type="checkbox"]{width:15px;height:15px;flex:0 0 15px;margin:0;padding:0;accent-color:var(--accent)}.home-admin-user-row input[type="number"]{width:55px;height:32px;padding:0 7px}.home-admin-user-row>button{height:30px;padding:0 9px;border-color:var(--line);background:transparent;color:var(--text)}.home-admin-user-row.is-dirty>button{border-color:var(--accent);background:var(--accent);color:#111}
.home-admin-usage{grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px}.home-admin-usage summary{cursor:pointer;color:var(--text-3)}.home-admin-usage dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:8px 20px;margin:12px 0}.home-admin-usage dl>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px}.home-admin-usage dt{color:var(--muted)}.home-admin-usage dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.home-admin-usage button{margin:8px 0 0;padding:4px 10px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text)}
.home-admin-user-row select{height:32px;max-width:68px;border:1px solid var(--line);border-radius:6px;background:#171717;color:var(--text)}
@media(max-width:800px){.home-admin-card{padding:14px}.home-admin-create,.home-admin-registration{grid-template-columns:1fr}.home-admin-list-head{display:none}.home-admin-user-list{border:0;background:transparent}.home-admin-user-row{grid-template-columns:1fr auto;gap:8px;margin-bottom:8px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#111}.home-admin-user-row .admin-user-settings{grid-column:1/-1;flex-wrap:wrap}.home-admin-search{grid-template-columns:1fr}.home-admin-search input{width:100%}}
.home-feedback-types{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#111}.home-feedback-types button{height:34px;border:0;border-radius:7px;background:transparent;color:var(--text-3);font-size:var(--fs-sm);letter-spacing:.02em}.home-feedback-types button:hover{color:var(--text)}.home-feedback-types button[aria-pressed="true"]{background:#262626;color:var(--text);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.home-feedback-dialog textarea{width:100%;min-height:112px;padding:10px 12px;resize:vertical;border:1px solid rgba(255,255,255,.11);border-radius:9px;background:#111;color:var(--text);font:inherit;font-size:var(--fs-sm);line-height:1.6;outline:none}.home-feedback-dialog textarea:focus{border-color:rgba(255,255,255,.34)}.home-feedback-shot{display:flex;align-items:center;gap:10px;min-width:0}.home-feedback-shot button{height:32px;flex:0 0 auto;padding:0 12px;border:1px dashed rgba(255,255,255,.18);border-radius:8px;background:transparent;color:var(--text-3);font-size:var(--fs-xs)}.home-feedback-shot button:hover{border-color:rgba(255,255,255,.34);color:var(--text)}.home-feedback-shot small{overflow:hidden;color:var(--text-4);font-size:var(--fs-xs);text-overflow:ellipsis;white-space:nowrap}.home-feedback-context:empty,.home-feedback-business[hidden],.home-feedback-dialog .account-feedback:empty{display:none}.home-feedback-context{color:var(--text-4);font-size:var(--fs-2xs);line-height:1.5}.home-feedback-business{padding-top:14px;border-top:1px solid rgba(255,255,255,.07);color:var(--text-4);font-size:var(--fs-xs)}.home-feedback-business a{color:var(--text-2)}
.home-admin-feedback{border:1px solid rgba(255,255,255,.09);border-radius:10px;background:#111}.home-admin-feedback summary{padding:11px 12px;color:var(--text-2);font-size:var(--fs-xs);font-weight:600;cursor:pointer}.home-admin-feedback summary em{margin-left:6px;color:var(--text-4);font-style:normal;font-weight:400}.home-admin-feedback .home-admin-feedback-filter{display:flex;align-items:center;gap:6px;padding:0 12px 8px;color:var(--text-4);font-size:var(--fs-2xs)}.home-admin-feedback .home-admin-feedback-filter input{width:15px;height:15px}.home-admin-feedback-list{max-height:280px;overflow:auto;border-top:1px solid rgba(255,255,255,.07)}.home-admin-feedback-list>p{padding:12px}.home-admin-feedback-item{display:grid;gap:6px;padding:12px;border-bottom:1px solid rgba(255,255,255,.07);font-size:var(--fs-xs)}.home-admin-feedback-item.is-done{opacity:.55}.home-admin-feedback-item header{display:flex;align-items:center;gap:8px}.home-admin-feedback-item header b{padding:2px 7px;border-radius:5px;background:#262626;color:var(--text-2);font-size:var(--fs-2xs);font-weight:500}.home-admin-feedback-item header small{flex:1;min-width:0;overflow:hidden;color:var(--text-4);text-overflow:ellipsis;white-space:nowrap}.home-admin-feedback-item header button{height:28px;padding:0 10px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:transparent;color:var(--text-3);font-size:var(--fs-2xs)}.home-admin-feedback-item header button:hover{color:var(--text)}.home-admin-feedback-item>p{margin:0;color:var(--text);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.home-admin-feedback-item>small{color:var(--text-4);font-size:var(--fs-2xs);line-height:1.5;overflow-wrap:anywhere}.home-admin-feedback-item a{color:var(--text-2);font-size:var(--fs-2xs)}

/* Keep Home sections compact and consistent across project and preset content. */

.project-section,.style-library{padding-top:48px}
.quick-start-grid,.quick-service-grid{gap:10px}
.preset-filters{margin-bottom:14px}
@media(max-width:680px){.project-section,.style-library{padding-top:40px}}

.preset-preview-dialog{width:min(820px,calc(100vw - 30px));max-height:90vh;overflow:auto}#presetPreviewBody{display:grid;gap:16px}#presetPreviewBody img,#presetPreviewBody video{width:100%;max-height:65vh;object-fit:contain;border-radius:10px}#presetPreviewBody audio{width:100%}#presetPreviewBody pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}#presetPreviewBody h3{font-size:var(--fs-md)}.preset-preview-dialog .dialog-actions a{align-self:center;padding:10px 15px;background:var(--accent);color:var(--accent-ink);border-radius:9px;text-decoration:none}
/* Final neutral action language before release. */
:focus-visible{outline-color:var(--accent)}.dialog-actions .new-project-button{border-color:var(--accent);background:var(--accent);color:#111;box-shadow:none}.dialog-actions .new-project-button:hover{border-color:#fff;background:#fff}.project-dialog input:focus{border-color:rgba(255,255,255,.34)}
.style-card-visual{position:relative}.style-card-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#111;opacity:0;pointer-events:none}.style-card-video.playing{opacity:1}.style-card-video-badge{position:absolute;top:10px;left:10px;z-index:1;display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:8px;background:rgba(16,16,16,.8);color:#fff;pointer-events:none}.style-card-video-badge svg{width:18px;height:18px}

.mcp-view{max-width:960px;margin:0 auto;--mcp-columns:repeat(3,minmax(0,1fr));--mcp-padding:30px}.mcp-hero{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 0 28px;text-align:center}.mcp-eyebrow{color:var(--amber);font-size:var(--fs-2xs);letter-spacing:.16em}.mcp-hero h1{font-size:clamp(var(--fs-2xl),3vw,var(--fs-display));line-height:var(--lh-tight);letter-spacing:-.02em;margin:12px 0;white-space:nowrap}.mcp-view p{color:var(--muted);line-height:1.8}.mcp-guide{padding:var(--mcp-padding);border:1px solid var(--line);border-radius:20px;background:var(--panel)}.mcp-guide>h2{margin-top:0}.mcp-install-tabs{display:flex;gap:8px;overflow-x:auto;margin:22px 0 0;padding-bottom:8px}.mcp-install-tabs button{flex:0 0 auto;min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--muted);white-space:nowrap}.mcp-install-tabs button[aria-selected="true"]{border-color:var(--accent);background:var(--panel-3);color:var(--text)}.mcp-install-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mcp-install-panel{padding:18px 0 4px}.mcp-install-panel h3{margin:0 0 8px}.mcp-install-panel .mcp-copy-row+.mcp-copy-row{margin-top:10px}.mcp-guide article{position:relative;border-top:1px solid var(--line);padding:22px 0 12px}.mcp-step{color:var(--amber);font-size:var(--fs-xs);letter-spacing:.1em}.mcp-copy-row{display:flex;flex-wrap:wrap;gap:10px}.mcp-copy-row input,.mcp-copy-row textarea{flex:1 1 240px;min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--bg);color:var(--text);font:inherit;resize:vertical}.mcp-copy-row button{align-self:flex-start;min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--panel-3);padding:10px 18px}.mcp-features{display:grid;grid-template-columns:var(--mcp-columns);gap:16px;margin:28px 0}.mcp-features article{padding:20px;border:1px solid var(--line);border-radius:14px}.mcp-faq{padding:20px 0}.mcp-faq details{padding:18px 0;border-bottom:1px solid var(--line)}.mcp-faq summary{cursor:pointer;font-weight:600}#mcpCopyStatus{min-height:24px}#mcpLocalNotice{color:var(--amber)}@media(max-width:700px){.mcp-view{--mcp-columns:1fr;--mcp-padding:18px}.mcp-install-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.mcp-install-tabs button{min-width:0;white-space:normal;font-size:var(--fs-xs)}}

.mcp-chat-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:18px}.mcp-chat-steps article{min-width:0}.mcp-chat-steps h4{margin:12px 0}.mcp-chat-steps .mcp-copy-row textarea{flex-basis:100%;font-size:var(--fs-sm);line-height:1.6}.mcp-chat-steps p{margin:12px 0}@media(max-width:700px){.mcp-chat-steps{grid-template-columns:1fr;gap:0}}
.mcp-mobile-entry{display:var(--mcp-mobile-display,none);margin-right:auto;color:var(--muted);font-size:var(--fs-sm);white-space:nowrap}@media(max-width:680px){.home-topbar{--mcp-mobile-display:block}}

.mcp-hero-art{display:flex;align-items:center;justify-content:center;min-height:150px;max-width:100%;margin:0}.mcp-logo-tile{position:relative;display:grid;place-items:center;flex:0 0 auto;width:78px;height:78px;margin:0 -7px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#1e1e1e;box-shadow:0 12px 30px rgba(0,0,0,.22)}.mcp-logo-tile img{display:block;width:100%;height:100%;object-fit:contain}.mcp-logo-hermes,.mcp-logo-codebuddy{z-index:1;width:60px;height:60px;border-radius:15px}.mcp-logo-hermes img,.mcp-logo-codebuddy img{filter:blur(.7px)}.mcp-logo-codebuddy img{width:44px;height:44px}.mcp-logo-claude,.mcp-logo-gpt{z-index:2}.mcp-logo-claude{background:#27201d}.mcp-logo-claude img{width:58px;height:58px}.mcp-logo-gpt{background:#fff}.mcp-logo-auvra{z-index:3;width:112px;height:112px;border-radius:22px;background:#080808}.mcp-logo-codebuddy{background:#ececec}@media(max-width:700px){.mcp-hero{gap:6px;padding:16px 0 24px}.mcp-hero-art{min-height:120px}.mcp-logo-hermes,.mcp-logo-codebuddy{width:44px;height:44px;border-radius:11px}.mcp-logo-codebuddy img{width:32px;height:32px}.mcp-logo-claude,.mcp-logo-gpt{width:58px;height:58px;border-radius:14px}.mcp-logo-claude img{width:44px;height:44px}.mcp-logo-auvra{width:86px;height:86px;border-radius:18px}}

/* Home hero: positioning first — continuity across shots — with a compact mini-canvas strip (keyframe → new camera → video). Breakpoints only change the --hero-* variables. */
/* Desktop: copy takes its natural width and the demo fills the rest, stretched to the copy block's height (no aspect ratio); stacked layouts give the demo a ratio instead. */
.home-hero{--hero-title-wrap:nowrap;--hero-columns:auto minmax(0,1fr);--hero-gap:56px;--hero-title:clamp(30px,2.5vw,36px);--hero-demo:grid;--hero-ratio:3.4/1;--hero-inset:18px;--hero-card-w:min(27cqw,calc((68cqh - 10px) * 16 / 9));--hero-side:clamp(20px,4cqw,40px);--hero-card-gap:min(120px,(100cqw - 3 * var(--hero-card-w) - 2 * var(--hero-side)) / 2);display:grid;grid-template-columns:var(--hero-columns);align-items:center;gap:var(--hero-gap);padding:14px 0 48px}
/* Display face for the hero title and section headings: Noto Sans SC (OFL), subset to exactly those strings' characters plus A–Z and space (~6.7 KB per weight); unicode-range keeps it off everything else. If a heading's text changes, re-subset these files. */
@font-face{font-family:"AUVRA Display";src:url(fonts/display-sans-400.woff2) format("woff2");font-weight:400;font-display:block;unicode-range:U+4E00,U+4ECE,U+5168,U+5173,U+51FA,U+573A,U+59CB,U+5E27,U+5F00,U+5F20,U+5FEB,U+620F,U+62CD,U+6700,U+683C,U+7684,U+76EE,U+8BBE,U+8D2F,U+8FD1,U+8FDE,U+901F,U+90E8,U+952E,U+9879,U+9884,U+98CE,U+0020,U+0041-005A}
@font-face{font-family:"AUVRA Display";src:url(fonts/display-sans-300.woff2) format("woff2");font-weight:300;font-display:block;unicode-range:U+4E00,U+4ECE,U+5168,U+5173,U+51FA,U+573A,U+59CB,U+5E27,U+5F00,U+5F20,U+5FEB,U+620F,U+62CD,U+6700,U+683C,U+7684,U+76EE,U+8BBE,U+8D2F,U+8FD1,U+8FDE,U+901F,U+90E8,U+952E,U+9879,U+9884,U+98CE,U+0020,U+0041-005A}
/* Two lines, one measure: the 6-character lead line sets the size and the 8-character line runs at 6/8 of it; with a monospaced CJK face and the same em tracking, both end at the same edge. */
.home-hero h1{margin:0;font-family:"AUVRA Display",var(--font-sans);font-size:var(--hero-title);font-weight:300;line-height:1.2;letter-spacing:.02em}.home-hero h1 span{display:block;white-space:var(--hero-title-wrap)}.home-hero h1 .hero-title-sub{margin-top:.1em;color:var(--text-3);font-size:.75em;font-weight:400;line-height:1.3;letter-spacing:.02em}
.hero-lede{margin:18px 0 0;color:var(--text-3);font-size:var(--fs-lg);line-height:1.7;letter-spacing:.02em}
.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.hero-primary,.hero-secondary{display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border-radius:var(--radius-sm);font-size:var(--fs-sm);font-weight:500;transition:background-color var(--t-base) var(--ease),color var(--t-base) var(--ease)}
.hero-primary{background:var(--accent);color:var(--accent-ink)}.hero-primary:hover{background:var(--accent-hover)}.hero-primary:active,.hero-secondary:active{scale:.97}
.hero-secondary{background:rgba(255,255,255,.06);color:var(--text-2);font-weight:500}.hero-secondary:hover{background:rgba(255,255,255,.1);color:var(--text-1)}
.hero-demo{position:relative;display:var(--hero-demo);width:100%;min-width:0;min-height:180px;aspect-ratio:var(--hero-ratio);container-type:size;overflow:hidden;border-radius:var(--radius-lg);background-color:#141414;background-image:radial-gradient(rgba(255,255,255,.08) .8px,transparent .8px);background-size:16px 16px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.hero-demo-edges{position:absolute;z-index:1;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
/* Edges: the canvas edge look (ui.css tokens + edge-comet); geometry, --len and --dur are set in home.js with the canvas's own formulas. */
.hero-demo-edges path{fill:none;stroke-linecap:round}
.hero-edge-line{stroke:var(--edge-line);stroke-width:1.4}
.hero-edge-flow{stroke:var(--edge-flow);stroke-width:3;filter:var(--edge-flow-glow);stroke-dashoffset:44;animation:edge-comet var(--dur,1.6s) var(--edge-flow-ease) infinite}
.hero-edge-port{fill:#141414;stroke:rgba(236,238,234,.42);stroke-width:1.5}
.hero-card{--c:#3d83d2;position:absolute;width:var(--hero-card-w);margin:0;padding:5px;border-radius:10px;background:linear-gradient(135deg,rgb(34,34,34),rgb(20,20,20));box-shadow:0 0 0 1px rgba(255,255,255,.07),0 18px 40px rgba(0,0,0,.45)}
/* Labels sit outside the cards, alternating below / above / below, so the frames keep all the height. */
.hero-card figcaption{position:absolute;left:2px;top:calc(100% + 8px);display:flex;align-items:center;gap:6px;color:var(--text-2);font-size:var(--fs-xs);font-weight:500;white-space:nowrap}.hero-card-view figcaption{top:auto;bottom:calc(100% + 8px)}
.hero-card figcaption i{width:6px;height:6px;border-radius:50%;background:var(--c)}
.hero-card img{display:block;width:100%;aspect-ratio:16/9;border-radius:6px;object-fit:cover}
.hero-card-key{left:calc(50% - var(--hero-card-w) * 1.5 - var(--hero-card-gap));top:var(--hero-inset)}.hero-card-view{left:calc(50% - var(--hero-card-w) / 2);bottom:var(--hero-inset)}.hero-card-video{--c:#d56454;right:calc(50% - var(--hero-card-w) * 1.5 - var(--hero-card-gap));top:var(--hero-inset)}
.hero-video{position:relative;overflow:hidden;border-radius:6px}
.hero-video video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#111}
.hero-play{position:absolute;left:50%;top:50%;width:30px;height:30px;border-radius:50%;background:rgba(0,0,0,.5);backdrop-filter:blur(6px);translate:-50% -50%;transition:opacity var(--t-slow) var(--ease)}.hero-video.is-playing .hero-play{opacity:0}
.hero-play::after{content:"";position:absolute;left:12px;top:9px;border-style:solid;border-width:6px 0 6px 9px;border-color:transparent transparent transparent #fff}
.hero-progress{position:absolute;left:8px;right:8px;bottom:6px;height:2px;overflow:hidden;border-radius:2px;background:rgba(255,255,255,.2)}
.hero-progress i{display:block;width:0;height:100%;background:#fff}
@media(max-width:1050px){.home-hero{--hero-title-wrap:normal;--hero-columns:minmax(0,1fr);--hero-gap:28px;--hero-ratio:3/1;--hero-card-w:min(25cqw,calc((68cqh - 10px) * 16 / 9))}}
@media(max-width:680px){.home-hero{--hero-title:clamp(28px,8vw,34px);--hero-demo:none;padding-bottom:32px}}
