/* Next UI v1: reversible presentation layer. Classic styles are intentionally untouched. */
.next-only,.next-action-face{display:none}
html[data-ui=next] .next-only{display:block}
.ui-version-switch{display:flex;gap:4px;padding:4px;border:1px solid #e8e8ed;border-radius:12px;background:#f5f5f7}
.ui-version-switch button{flex:1;min-height:34px;border:0;border-radius:9px;background:transparent;color:#515154;font:inherit;font-size:13px;cursor:pointer}
.ui-version-switch button[aria-pressed=true]{background:white;color:#1d1d1f;box-shadow:0 1px 4px #00000010;font-weight:600}
.next-choice-chips{display:none}
html[data-ui=next]{--ink:#1d1d1f;--ink-2:#515154;--muted:#727277;--paper:#f5f5f7;--panel:#fff;--line:#e8e8ed;--line-dark:#d2d2d7;--blue:#0071e3;--lime:#eaf3ff;--lime-dark:#0071e3;--sidebar:264px;--next-ease:cubic-bezier(.28,.11,.32,1)}
html[data-ui=next] body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
html[data-ui=next] .sidebar{width:264px;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(20px);padding:26px 18px 18px;border-right:1px solid var(--line);gap:12px}
html[data-ui=next] .brand{padding:0 8px;height:48px}
html[data-ui=next] .brand strong{font-size:18px;letter-spacing:-.02em}
html[data-ui=next] .brand small{font-size:10px;letter-spacing:.1em;color:#86868b}
html[data-ui=next] .brand-mark{background:#1d1d1f;border-radius:11px}
html[data-ui=next] .workspace-switch{border:0;padding:0 4px;background:transparent}
html[data-ui=next] .workspace-switch>span{display:none}
html[data-ui=next] .workspace-switch>div{padding:4px;border-radius:12px;background:#f5f5f7}
html[data-ui=next] .workspace-switch button{min-height:34px;border-radius:9px;color:#515154}
html[data-ui=next] .workspace-switch button[aria-pressed=true]{background:#fff;color:#1d1d1f;box-shadow:0 1px 4px #0000000d}
html[data-ui=next] .workspace-switch small{font-size:11px;color:#86868b}
html[data-ui=next] .nav-item{border-radius:11px;min-height:42px;height:42px;color:#515154;font-weight:400}
html[data-ui=next] .nav-item.active{background:#1d1d1f;color:#fff}
html[data-ui=next] .nav-item:not(.active):hover{background:#00000007;color:#1d1d1f}
html[data-ui=next] .nav-label{font-size:11px;color:#86868b}
html[data-ui=next] .main-area{margin-left:264px}
html[data-ui=next] .topbar{height:auto;min-height:70px;padding:12px 36px;background:#f5f5f7dc;backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
html[data-ui=next] .topbar h1{font-size:20px;letter-spacing:-.02em}
html[data-ui=next] .topbar p{font-size:10px;letter-spacing:.12em;color:#86868b}
html[data-ui=next] .view{max-width:1200px;padding:32px 36px 72px}
html[data-ui=next] .view.studio-reserved-view{padding:0}
html[data-ui=next] :is(#projectListPane,#projectEditorPane){max-width:1128px;width:calc(100% - 72px)}
html[data-ui=next] :is(.panel,.stat-card,.project-card,.buyer-card,.ca-card,.provider-card,.side-setting-card,.volc-family-card,.statistics-summary-card,.project-identity-card,.project-module-card,.agent-panel){border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 1px 3px #00000006,0 4px 16px #00000008}
html[data-ui=next] :is(.buyer-section,.ca-card,.project-identity-card){padding:24px}
html[data-ui=next] :is(.primary-button,.ghost-button,.launch-button,.secondary-button){border-radius:980px;min-height:44px;padding:10px 22px;font-size:14px;font-weight:500;box-shadow:none;transition:background .18s,transform .18s var(--next-ease),box-shadow .18s}
html[data-ui=next] .primary-button{background:#0071e3;border-color:#0071e3;color:white}
html[data-ui=next] .primary-button:not(:disabled):hover{background:#0077ed;box-shadow:0 6px 20px #0071e326}
html[data-ui=next] .ghost-button{background:#f5f5f7;border-color:transparent;color:#1d1d1f}
html[data-ui=next] .ghost-button:not(:disabled):hover{background:#e8e8ed}
html[data-ui=next] button:not(:disabled):active{transform:scale(.97)}
html[data-ui=next] button:disabled{cursor:not-allowed}
html[data-ui=next] .icon-button{width:40px;min-height:40px;border-radius:50%;background:#00000005;border:0}
html[data-ui=next] :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #0071e3;outline-offset:3px}
html[data-ui=next] :is(.field input,.field select,.field textarea,.ca-card input,.ca-card select,.ca-card textarea,.ai-model-fields select){border:1px solid #d2d2d7;border-radius:12px;background:#fff;color:#1d1d1f;font-size:14px}
html[data-ui=next] .field>span{color:#515154;font-size:13px}
html[data-ui=next] .hero-panel{border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#fff,#fcfcff);box-shadow:0 4px 20px #00000006}
html[data-ui=next] .hero-copy{padding:40px}
html[data-ui=next] .hero-copy h2{font-size:clamp(30px,3.5vw,48px);font-weight:700;line-height:1.12;letter-spacing:-.025em;margin:16px 0}
html[data-ui=next] .hero-copy h2 br{display:block}
html[data-ui=next] .hero-copy p{max-width:670px;color:#515154;line-height:1.7}
html[data-ui=next] .hero-copy .primary-button{background:#1d1d1f;border-color:#1d1d1f}
html[data-ui=next] .hero-actions{margin-top:24px}
/* Actual project cards keep their real data, not the prototype's sample counts. */
html[data-ui=next] .home-recent-panel{padding:0;background:transparent;border:0;box-shadow:none;margin-top:36px}
html[data-ui=next] .home-recent-heading{align-items:center;margin-bottom:24px;gap:16px;flex-wrap:wrap}
html[data-ui=next] .home-recent-heading>div>small{display:none}
html[data-ui=next] .home-recent-heading h3{font-size:28px;letter-spacing:-.02em}
html[data-ui=next] .home-recent-heading p{font-size:14px;margin-top:6px}
html[data-ui=next] .home-recent-heading>div:last-child button{font-size:14px;height:40px;border:0;padding:0 20px;border-radius:980px;background:#eaeaed}
html[data-ui=next] .home-recent-heading .recent-new-button{background:#1d1d1f!important;color:#fff}
html[data-ui=next] .home-recent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
html[data-ui=next] .home-recent-card{background:white;border:0;border-radius:20px;box-shadow:0 2px 12px #00000009}
html[data-ui=next] .home-recent-cover{height:auto;aspect-ratio:4/3}
html[data-ui=next] .home-recent-cover::after{display:none}
html[data-ui=next] .recent-time{font-size:12px;font-style:normal;border-radius:980px;background:#ffffffea;color:#515154;padding:5px 10px}
html[data-ui=next] .home-recent-body{padding:20px}
html[data-ui=next] .home-recent-title>span{display:none}
html[data-ui=next] .home-recent-title h4{font-size:17px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
html[data-ui=next] .home-recent-title small{font-size:13px;margin-top:8px}
html[data-ui=next] .home-recent-meta{font-size:13px;gap:14px;margin:14px 0;color:#727277}
html[data-ui=next] .home-recent-meta b{font-weight:500;color:inherit}
html[data-ui=next] .home-recent-actions{display:block}
html[data-ui=next] .home-recent-actions button{width:100%;height:40px;font-size:13px;border-radius:980px;background:#f5f5f7;color:#1d1d1f;border:0;font-weight:500}
html[data-ui=next] .home-recent-empty{border-radius:20px;background:white;min-height:180px}
html[data-ui=next] .home-recent-empty strong{font-size:16px}
html[data-ui=next] .home-recent-empty small{font-size:13px}
html[data-ui=next] .home-recent-empty button{height:42px;font-size:13px;border-radius:980px}
html[data-ui=next] .web-employee-account summary{background:#f5f5f7;border:1px solid var(--line);border-radius:16px;padding:16px}
html[data-ui=next] .sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:14px}
html[data-ui=next] .stats-grid{gap:14px}
html[data-ui=next] .stat-card{padding:18px}
html[data-ui=next] .stat-card strong{font-size:28px;color:#1d1d1f}
html[data-ui=next] :is(.project-grid,.home-recent-grid){gap:20px}
html[data-ui=next] :is(.project-card,.home-recent-card,.project-module-card){overflow:hidden;transition:transform .25s var(--next-ease),box-shadow .25s}
@media(hover:hover){html[data-ui=next] :is(.project-card,.home-recent-card,.project-module-card):hover{transform:translateY(-3px);box-shadow:0 8px 30px #00000014}}
html[data-ui=next] .project-cover{border-radius:0;aspect-ratio:4/3}
html[data-ui=next] .project-card-body{padding:20px}
html[data-ui=next] .project-module-card{padding:24px;background:#fff}
html[data-ui=next] .project-module-card.selected{border-color:#0071e340;background:#f6faff}
html[data-ui=next] .project-context-bar{border-radius:16px;background:#fff;padding:16px;border-color:var(--line)}
html[data-ui=next] .buyer-layout{grid-template-columns:minmax(0,1fr) 218px;gap:20px}
html[data-ui=next] .buyer-stepper{border-radius:16px;background:#fff;border:1px solid var(--line);padding:16px}
html[data-ui=next] .buyer-section-head h3{font-size:19px;letter-spacing:-.02em}
html[data-ui=next] .buyer-section-head>span{border-color:#e8e8ed;color:#86868b;background:#fff}
html[data-ui=next] :is(.photo-source-empty,.photo-board-card){border:1px dashed #d2d2d7;background:#fafafa;border-radius:14px}
html[data-ui=next] :is(.buyer-result-card,.agent-asset,.agent-result){border-radius:16px;overflow:hidden;border-color:var(--line)}
html[data-ui=next] .photo-start-row{display:grid;grid-template-columns:minmax(0,1fr) 200px;align-items:center;gap:32px;border-top:1px solid var(--line);padding-top:20px}
html[data-ui=next] .photo-auto-options{flex:1;min-width:210px;padding:0;border:0;background:transparent;box-shadow:none}
html[data-ui=next] .photo-auto-toggle strong{font-size:16px}
html[data-ui=next] :is(#photoAutoHint,#photoAutoConsent){font-size:12px;color:#727277}
html[data-ui=next] .production-action-row>.production-start-button{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:48px;height:48px;width:200px;max-width:100%;padding:12px 20px;border-radius:980px;font-size:14px;transition:background .2s,box-shadow .2s}
html[data-ui=next] .photo-start-row>.photo-auto-options{flex:1 1 240px;width:auto}
html[data-ui=next] .photo-start-row>.production-start-button{flex:0 1 auto}
html[data-ui=next] .photo-start-row .photo-auto-toggle{justify-content:flex-start;gap:24px}
html[data-ui=next] .photo-start-row .photo-auto-options{min-width:0;padding-right:16px}
html[data-ui=next] .photo-board-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
html[data-ui=next] .photo-board-row>.photo-board-actions{align-self:stretch}
html[data-ui=next] .production-start-button .production-start-content strong{font-size:14px}
html[data-ui=next] .production-start-button :is(.production-start-arrow,.production-start-content small){display:none}
html[data-ui=next] .production-start-icon{width:22px;height:22px;font-size:18px;background:none}
html[data-ui=next] .board-generation-action{display:flex;justify-content:flex-end}
html[data-ui=next] .board-generation-action>.production-action-copy{display:none}
html[data-ui=next] .next-chip-source{display:none}
html[data-ui=next] .next-choice-chips{display:flex;gap:7px;flex-wrap:wrap;min-width:0}
html[data-ui=next] .next-choice-chips button{background:#f5f5f7;color:#515154;border:1px solid transparent;border-radius:980px;padding:10px 14px;min-height:40px;font:inherit;font-size:12px;cursor:pointer}
html[data-ui=next] .next-choice-chips button[aria-pressed=true]{background:#1d1d1f;color:#fff}
html[data-ui=next] .ratio-control{display:flex;flex-wrap:wrap}
html[data-ui=next] :is(.modal-card,.request-review,.agent-modal){border-radius:20px}
html[data-ui=next] .agent-heading h2{font-size:22px}
html[data-ui=next] .agent-welcome h3{font-size:26px;letter-spacing:-.02em}
html[data-ui=next] .agent-composer{border-radius:20px;border-color:#d2d2d7;box-shadow:0 4px 20px #00000005}
html[data-ui=next] .toast{border-radius:980px;background:#1d1d1f;color:white}
html[data-ui=next] .production-start-button:has(.next-action-face)>:not(.next-action-face){display:none}
html[data-ui=next] .next-action-face{display:flex;align-items:center;gap:10px;min-width:0;pointer-events:none}
html[data-ui=next] .production-start-button:has(.next-action-face).matrix-ai-busy::after{display:none}
html[data-ui=next] .agent-task{border-radius:20px;overflow:hidden;box-shadow:0 4px 18px #00000004}
html[data-ui=next] .agent-task>header{gap:14px;align-items:center;padding-bottom:16px;border-bottom:1px solid #e8e8ed}
html[data-ui=next] .agent-task>header>span{flex:none;border-radius:980px;padding:7px 12px;font-size:12px;background:#eaf3ff;color:#24528e}
html[data-ui=next] .agent-task:is([data-status=waiting_confirmation],[data-status=waiting_sample],[data-status=unknown_result],[data-status=needs_review])>header>span{background:#fff3d9;color:#825b11}
html[data-ui=next] .agent-task[data-status=completed]>header>span{background:#e9f7ee;color:#216640}
html[data-ui=next] .agent-task:is([data-status=failed],[data-status=interrupted],[data-status=blocked])>header>span{background:#fff0ed;color:#993c2d}
html[data-ui=next] .agent-task .agent-actions{gap:10px;margin:16px 0;flex-wrap:wrap}
html[data-ui=next] .agent-task .agent-actions>button{border-radius:980px;min-height:40px;padding:10px 18px}
html[data-ui=next] .agent-task .agent-plan>div{border-radius:14px;background:#f5f5f7;padding:14px}
html[data-ui=next] .next-action-face b{font-size:14px;font-weight:500;display:block;line-height:1.4;white-space:normal}
html[data-ui=next] .next-action-face small{display:block;font-size:11px;margin-top:3px;color:inherit;opacity:.8}
html[data-ui=next] .next-action-face small:empty{display:none}
html[data-ui=next] .next-action-face i{width:16px;height:16px;flex:none}
html[data-ui=next] .next-action-face i:before{content:'✦';font-style:normal}
html[data-ui=next] .production-start-button:is([data-next-status=running],[data-next-status=queued],[data-next-status=saving],[data-next-status=partial-running]){width:200px;background:#fff;color:#0071e3;box-shadow:0 8px 24px #0071e31a;opacity:1}
html[data-ui=next] .production-start-button:is([data-next-status=running],[data-next-status=queued],[data-next-status=saving],[data-next-status=partial-running]) i{border:2px solid #0071e330;border-top-color:#0071e3;border-radius:50%;animation:next-spin 1s linear infinite}
html[data-ui=next] .production-start-button:is([data-next-status=running],[data-next-status=queued],[data-next-status=saving],[data-next-status=partial-running]) i:before{content:''}
html[data-ui=next] .production-start-button[data-next-status=done]{background:#0071e3;border-color:#0071e3;color:white}
html[data-ui=next] .production-start-button[data-next-status=done] i:before{content:'↻'}
html[data-ui=next] .production-start-button:is([data-next-status=review],[data-next-status=partial],[data-next-status=error]){background:#fff8eb;color:#895705;border-color:#eac77d}
html[data-ui=next] .next-task-banner{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 24px;margin-bottom:24px;border:1px solid #c6ddfa;border-radius:20px;background:#f1f7ff;color:#24528e;animation:next-reveal .25s ease}
html[data-ui=next] .next-task-banner strong{font-size:16px}
html[data-ui=next] .next-task-banner p{font-size:13px;margin:6px 0;overflow-wrap:anywhere}
html[data-ui=next] .next-task-banner small{font-size:12px}
html[data-ui=next] .next-task-banner button{min-height:40px;border:0;border-radius:980px;padding:10px 16px;background:#fff;color:inherit;font:inherit;font-size:13px}
html[data-ui=next] .next-task-track{height:4px;margin-top:10px;background:#0071e31a;border-radius:8px;overflow:hidden}
html[data-ui=next] .next-task-track i{display:block;height:100%;background:currentColor;transition:width .35s ease}
html[data-ui=next] .next-task-orb{width:28px;height:28px;border:3px solid #0071e326;border-top-color:currentColor;border-radius:50%;animation:next-spin 1.5s linear infinite}
html[data-ui=next] .next-task-banner:is([data-status=done],[data-status=review],[data-status=partial],[data-status=error]) .next-task-orb{animation:none;border:0;display:grid;place-items:center;background:#00000006}
html[data-ui=next] .next-task-banner[data-status=done]{background:#f1faf4;border-color:#bfdfc9;color:#216640}
html[data-ui=next] .next-task-banner[data-status=done] .next-task-orb:before{content:'✓'}
html[data-ui=next] .next-task-banner:is([data-status=review],[data-status=partial]){background:#fff8eb;border-color:#eddbac;color:#825b11}
html[data-ui=next] .next-task-banner:is([data-status=review],[data-status=partial],[data-status=error]) .next-task-orb:before{content:'!'}
html[data-ui=next] .next-task-banner[data-status=error]{background:#fff3f1;border-color:#efc8c1;color:#993c2d}
html[data-ui=next] :is(.modal-card,.request-review,.agent-modal,.account-panel){animation:next-reveal .2s ease}
html[data-ui=next] :is(.photo-source-card,.buyer-result-card,.result-card){animation:next-reveal .25s ease}
@keyframes next-spin{to{transform:rotate(360deg)}}
@keyframes next-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
html[data-ui=next] :is(.library-toolbar,.library-batch-bar,.library-batch-bar>div){display:flex;flex-wrap:wrap;gap:10px;min-width:0}
html[data-ui=next] :is(.library-project-filter,.library-project-filter select){min-width:0;max-width:100%}
@media(min-width:761px) and (max-width:1180px){html[data-ui=next] .sidebar{width:226px}html[data-ui=next] .main-area{margin-left:226px}html[data-ui=next] .view{padding:24px}html[data-ui=next] .buyer-layout{grid-template-columns:minmax(0,1fr)}html[data-ui=next] .buyer-side{position:static}html[data-ui=next] .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 html[data-ui=next] .main-area{margin-left:0}
 html[data-ui=next] .view{padding:18px 14px 40px}
 html[data-ui=next] .home-recent-grid{grid-template-columns:minmax(0,1fr)}
 html[data-ui=next] .home-recent-heading h3{font-size:24px}
 html[data-ui=next] .home-recent-empty{flex-wrap:wrap;padding:20px}
 html[data-ui=next] .next-task-banner{grid-template-columns:28px minmax(0,1fr);padding:16px}
 html[data-ui=next] .next-task-banner>button{grid-column:2;justify-self:start}
 html[data-ui=next] .production-start-button:is([data-next-status=running],[data-next-status=queued],[data-next-status=saving],[data-next-status=partial-running]){width:100%}
 html[data-ui=next] :is(#projectListPane,#projectEditorPane){width:calc(100% - 28px)}
 html[data-ui=next] .topbar{padding:14px;min-height:64px;backdrop-filter:none}
 html[data-ui=next] .topbar h1{font-size:20px}
 html[data-ui=next] .topbar .primary-button{padding:10px 14px;font-size:12px}
 html[data-ui=next] .hero-copy{padding:28px 22px}
 html[data-ui=next] .hero-copy h2{font-size:32px}
 html[data-ui=next] .hero-copy p{font-size:14px}
 html[data-ui=next] :is(.buyer-section,.ca-card,.project-identity-card){padding:18px}
 html[data-ui=next] .buyer-layout{grid-template-columns:minmax(0,1fr)}
 html[data-ui=next] .buyer-side{width:100%;min-width:0;max-width:none}
 html[data-ui=next] .production-action-row>.production-start-button{width:100%;min-height:46px}
 html[data-ui=next] .mobile-toolbar{background:#f5f5f7ef;backdrop-filter:blur(20px)}
 html[data-ui=next] .mobile-toolbar button{border:0;border-radius:980px;background:#e8e8ed;color:#1d1d1f}
 html[data-ui=next] .project-module-card{padding:20px}
}
/* Photography keeps its project header and in-section controls; omit the redundant top summary in Next only. */
html[data-ui=next] #view-productphoto > :is(.next-task-banner,.buyer-page-intro){display:none}
/* Shared production cards: stable geometry; only the composited light layer moves. */
html[data-ui=next] .production-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;container-type:inline-size}
html[data-ui=next] .board-generation-action{grid-template-columns:minmax(0,1fr);justify-content:stretch}
html[data-ui=next] .board-generation-action>.production-start-button{grid-column:1}
html[data-ui=next] .production-action-row>:is(.production-action-copy,.photo-auto-options){border:1px solid #e8e8ed;border-radius:14px;background:#f5f5f7;padding:20px;min-width:0;min-height:128px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}
html[data-ui=next] .board-generation-action>.production-action-copy{display:none}
html[data-ui=next] .photo-start-row{border-top:0;padding-top:0}
html[data-ui=next] .photo-start-row .photo-auto-toggle{gap:16px;justify-content:space-between}
html[data-ui=next] .photo-start-row .photo-auto-toggle>span{min-width:0}
html[data-ui=next] .photo-start-row .photo-auto-toggle input{flex-shrink:0}
html[data-ui=next] #photoAutoConsent{margin-bottom:0}
html[data-ui=next] .production-action-row>.production-start-button,
html[data-ui=next] .next-production-button{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;justify-self:stretch;flex:none;width:100%;max-width:100%;min-width:0;height:100%;min-height:128px;padding:24px;border:1px solid transparent;border-radius:14px;overflow:hidden;background:#315cf4;color:#fff;opacity:1;box-shadow:none;transition:box-shadow .2s ease;transform:none}
html[data-ui=next] :is(.production-start-button,.next-production-button):is(.matrix-ai-busy,[data-next-status]){width:100%;background:#315cf4;color:#fff;border-color:transparent;box-shadow:none;opacity:1;transform:none}
html[data-ui=next] :is(.production-start-button,.next-production-button):is([data-next-status=partial],[data-next-status=review],[data-next-status=error],[data-next-status=waiting-provider]){background:#fff5df;color:#805500;border-color:#ead7af}
html[data-ui=next] :is(.production-start-button,.next-production-button) .next-action-face{position:relative;z-index:1;width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:14px;text-align:left}
html[data-ui=next] :is(.production-start-button,.next-production-button) .next-action-face b{font-size:18px;font-weight:600;line-height:1.5}
html[data-ui=next] :is(.production-start-button,.next-production-button) .next-action-face small{font-size:12px;line-height:1.5}
html[data-ui=next] :is(.production-start-button,.next-production-button)[data-next-status] .next-action-face i{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:#ffffff24;mask:none;animation:none;font-size:24px}
html[data-ui=next] :is(.production-start-button,.next-production-button)[data-next-status] .next-action-face i:before{content:'✦'}
html[data-ui=next] .next-action-count{font-size:17px;font-weight:600;line-height:1.4;font-style:normal;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:38px;text-align:right}
html[data-ui=next] :is(.production-start-button,.next-production-button)::before{content:'';position:absolute;inset:-40% -70%;pointer-events:none;background:linear-gradient(110deg,transparent 32%,#67c5ff38 42%,#ffffff42 49%,#9b8bff30 57%,transparent 68%);opacity:0;transform:translate3d(-35%,0,0)}
html[data-ui=next] :is(.production-start-button,.next-production-button):is([data-next-status=preparing],[data-next-status=running],[data-next-status=queued],[data-next-status=saving],[data-next-status=partial-running])::before{opacity:1;animation:next-flow 2.8s ease-in-out infinite;will-change:transform}
@keyframes next-flow{from{transform:translate3d(-35%,0,0)}to{transform:translate3d(35%,0,0)}}
@container (max-width:560px){
 html[data-ui=next] .production-action-row>.production-start-button{padding:16px}
 html[data-ui=next] .production-start-button .next-action-face{grid-template-columns:minmax(0,1fr) auto;gap:8px}
 html[data-ui=next] .production-start-button[data-next-status] .next-action-face i{display:none}
 html[data-ui=next] .production-start-button .next-action-face b{font-size:16px}
}
html[data-ui=next] :is(#photoProgress,#buyerProgress){display:none}
html[data-ui=next] .next-action-source{display:none}
html[data-ui=next] .next-production-button::after{display:none}
html[data-ui=next] .agent-actions>.next-production-button{width:min(100%,400px);height:auto;min-height:96px}
html[data-ui=next] .pq-submit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px}
html[data-ui=next] .pq-submit>button{grid-column:2;grid-row:1}
html[data-ui=next] .pq-submit>small{grid-column:1;grid-row:1}
/* Photography batches: no destructive controls, no retained/discarded filtering in Next. */
html[data-ui=next] #photoStep5{grid-column:1/-1;background:transparent;border:0;box-shadow:none;padding:12px 0}
html[data-ui=next] #photoStep5 .buyer-section-head{border:0;margin-bottom:14px;padding-bottom:0}
html[data-ui=next] #photoStep5 .buyer-section-head>span{display:none}
html[data-ui=next] #photoStep5 .buyer-section-head h3{font-size:26px}
html[data-ui=next] #photoExportZip{background:#e8e8ed;color:#1d1d1f;border-color:transparent}
html[data-ui=next] #photoStep5 .buyer-result-toolbar>div{display:none}
html[data-ui=next] #photoResultSummary{font-size:13px;color:#727277}
html[data-ui=next] .photo-batch-picker{display:flex;align-items:center;gap:12px;min-width:0;max-width:100%}
html[data-ui=next] .photo-batch-picker>span{font-size:13px;white-space:nowrap;color:#727277}
html[data-ui=next] .photo-batch-picker select{min-width:0;max-width:100%;border:1px solid #d2d2d7;border-radius:12px;background:#fff;padding:10px 14px;color:#1d1d1f;font:inherit;font-size:13px}
html[data-ui=next] #photoResultGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:18px}
html[data-ui=next] #photoResultGrid.hidden{display:none}
html[data-ui=next] .photo-batch-tile{position:relative;display:block;aspect-ratio:3/4;width:100%;min-width:0;padding:0;border:0;border-radius:14px;overflow:hidden;background:#e8e8ed;cursor:zoom-in;animation:next-reveal .5s ease;transition:transform .25s var(--next-ease),box-shadow .25s}
html[data-ui=next] .photo-batch-tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s var(--next-ease)}
html[data-ui=next] .photo-tile-number{position:absolute;right:10px;bottom:10px;padding:3px 8px;border-radius:980px;background:#0006;color:white;font-size:11px;opacity:0;transition:opacity .2s}
@media(hover:hover){html[data-ui=next] .photo-batch-tile:hover{transform:translateY(-3px);box-shadow:0 10px 24px #0002}html[data-ui=next] .photo-batch-tile:hover img{transform:scale(1.04)}html[data-ui=next] .photo-batch-tile:hover .photo-tile-number{opacity:1}}
html[data-ui=next] .photo-batch-tile:focus-visible .photo-tile-number{opacity:1}
@media(max-width:760px){
 html[data-ui=next] .production-action-row,html[data-ui=next] .pq-submit{grid-template-columns:minmax(0,1fr)!important}
 html[data-ui=next] .production-action-row>.production-start-button,html[data-ui=next] .next-production-button{width:100%}
 html[data-ui=next] .production-action-row>.production-start-button{grid-column:1;min-height:116px}
 html[data-ui=next] :is(.production-start-button,.next-production-button) .next-action-face{gap:10px;grid-template-columns:32px minmax(0,1fr) auto}
 html[data-ui=next] :is(.production-start-button,.next-production-button)[data-next-status] .next-action-face i{display:grid;width:32px;height:32px;font-size:20px}
 html[data-ui=next] :is(.production-start-button,.next-production-button) .next-action-face b{font-size:16px}
 html[data-ui=next] .pq-submit>button,html[data-ui=next] .pq-submit>small{grid-column:1;grid-row:auto}
 html[data-ui=next] #photoResultGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html[data-ui=next] #photoStep5 .buyer-result-toolbar{flex-wrap:wrap;gap:12px}
 html[data-ui=next] #photoStep5 .buyer-section-head h3{font-size:22px}
 html[data-ui=next] .photo-tile-number{opacity:1}
}
@media(prefers-reduced-motion:reduce){html[data-ui=next] *,html[data-ui=next] *::before,html[data-ui=next] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
