/* Workspace refinement: the established charcoal and gold palette. */
:root{color-scheme:dark}
button,input,select,textarea{font:inherit}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.btn:disabled{opacity:.4;cursor:not-allowed}
.hero-eyebrow,.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:.23em;color:var(--accent);margin-bottom:18px}
.home-stage{min-height:min(850px,calc(100svh - 62px));padding-top:80px;padding-bottom:72px}
.home-stage h1{font-size:clamp(30px,3.8vw,52px);letter-spacing:-.04em;line-height:1.25}
.home-stage>.sub{line-height:1.8;text-align:center;margin-bottom:30px}
.composer{border-color:rgba(242,189,99,.23);box-shadow:0 25px 90px #0005,0 0 0 5px #f2bd6305;background:rgba(18,22,29,.96)}
.composer-heading{display:flex;justify-content:space-between;gap:12px;padding:19px 22px 0;font-size:13px;font-weight:700}
.composer-heading small{color:var(--muted-2);font-size:11px;font-weight:400}
.composer-body{padding:16px 22px 10px}.composer textarea{min-height:118px;font-size:15px;line-height:1.8}
.composer-tools{padding:14px 18px;background:#ffffff03}.composer-hint{max-width:960px;font-size:12px;line-height:1.8}
.workspace-heading{align-items:flex-end;margin-bottom:24px}.workspace-heading .eyebrow{margin-bottom:10px}
.workspace-heading h2{font-size:28px;margin:0}.workspace-heading p{color:var(--muted);font-size:13px;margin:10px 0 0}
.filter-bar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding:18px;margin-bottom:18px;border:1px solid var(--line-soft);border-radius:16px;background:#ffffff03}
.filter-bar label{display:flex;flex-direction:column;gap:7px;min-width:120px;flex:0 1 auto;font-size:11px;color:var(--muted)}
.filter-bar .search-field{flex:1 1 230px}
.filter-bar input,.filter-bar select{min-height:40px;width:100%;min-width:0;border-radius:9px;padding:8px 10px;background:#12171f;border:1px solid var(--line);color:var(--text);font-size:12px;outline:none}
.filter-bar input:focus,.filter-bar select:focus{border-color:var(--accent)}
.filter-bar .btn{min-height:40px;border-radius:9px;font-size:12px}
.list-caption{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 16px;min-height:22px}
.list-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:26px 0 6px;font-size:12px;color:var(--muted)}
.work-card{padding:0;overflow:hidden;border-color:var(--line-soft);background:rgba(18,23,31,.88)}
.work-media{background:#06080d;aspect-ratio:16/10}.work-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.work-card .work-meta{padding:18px}
.work-card .prompt{line-height:1.8;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.work-actions{gap:7px;align-items:center}.work-task-id{font:11px ui-monospace,Consolas,monospace;color:var(--muted-2);margin-left:auto}
.work-actions .tag{font-size:10px}.work-actions .btn{font-size:11px;min-height:30px}
.work-media .placeholder{padding:20px;line-height:1.7;overflow-wrap:anywhere}
.business-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.business-kpi{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid var(--line-soft);border-radius:15px;background:linear-gradient(140deg,#f2bd6308,transparent 70%),#ffffff03}
.business-kpi>span{color:var(--muted);font-size:12px}.business-kpi>b{font-size:29px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.business-kpi:first-child>b{color:var(--accent)}.business-kpi>small{font-size:10px;color:var(--muted-2)}
.business-row{padding:18px 20px;border:1px solid var(--line-soft);border-radius:13px;margin-bottom:10px;background:#ffffff03;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px}
.business-main{min-width:0}.row-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;margin-bottom:10px}
.business-row .code{font:12px ui-monospace,Consolas,monospace;overflow-wrap:anywhere;margin-bottom:8px;color:var(--muted)}
.business-row .meta,.task-inspector .meta{font-size:11px;color:var(--muted);line-height:1.9;overflow-wrap:anywhere}
.business-row .right{display:flex;align-items:center;gap:22px;justify-content:flex-end}.business-row .amt{font-size:24px;color:var(--accent)}
.business-row .right small{font-size:11px;color:var(--muted)}.business-row .acts{display:flex;gap:8px;flex-wrap:wrap}
.business-prompt{font-size:13px;line-height:1.7;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.task-accounting{display:flex;flex-direction:column;gap:8px;font-size:12px}.task-accounting span{font-size:11px;color:var(--muted)}
.row-error{font-size:11px;color:#ffb5b5;line-height:1.7;overflow-wrap:anywhere;margin-bottom:0}
.status.paid{background:#8ae6a51a;color:var(--ok)}.status.pending{color:var(--accent);background:var(--accent-soft)}
.status.expired,.status.cancelled{background:#ffffff08;color:var(--muted)}
.task-inspector{margin-top:24px;border:1px solid #f2bd634d;border-radius:16px;padding:24px;background:#10151d;scroll-margin-top:80px}
.task-inspector .section-head h3{margin:0;font-size:18px}.detail-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.9}
.task-inspector h4{font-size:12px;margin-top:24px}.detail-lines>div{display:grid;grid-template-columns:130px 140px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line-soft);font-size:11px;line-height:1.7;overflow-wrap:anywhere}
.detail-lines time,.detail-lines span{color:var(--muted)}.atabs{overflow-x:auto;flex-wrap:nowrap}.atabs button{white-space:nowrap;flex-shrink:0}
.mobile-nav{display:none}
@media(min-width:861px) and (max-width:1150px){.composer-tools .spec-row:first-child{flex:1 1 100%}.composer-tools .spec-row:last-child{margin-left:auto}}
@media(max-width:860px){
 body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}.footer{padding-bottom:24px}
 .mobile-nav{position:fixed;display:flex;z-index:25;bottom:0;left:0;right:0;min-height:60px;padding:8px 14px calc(8px + env(safe-area-inset-bottom));gap:8px;border-top:1px solid var(--line);background:#10141df5;backdrop-filter:blur(20px)}
 .mobile-nav button{flex:1;border:0;border-radius:10px;color:var(--muted);background:transparent;font-size:12px;min-height:40px;font-weight:700}.mobile-nav button.active{color:var(--accent);background:var(--accent-soft)}
 .home-stage{min-height:auto;padding:72px 18px 42px}.home-stage h1{max-width:330px;line-height:1.4}.home-stage>.sub{font-size:12px;max-width:280px;margin-bottom:24px}
 .hero-eyebrow{font-size:9px;margin-bottom:16px}.composer-heading{padding:17px 16px 0}.composer-heading small{display:none}
 .composer{width:100%}.composer-body{padding:16px}.composer textarea{min-height:130px;font-size:14px}.composer-tools{padding:12px}
 .composer-tools .spec-row:first-child{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .composer-tools .spec-row:first-child .chip-dd:first-child{grid-column:1/-1}.composer-tools .chip-dd>.chip{width:100%;justify-content:space-between;min-width:0}
 .composer-tools .dur-ctl{grid-column:1/-1;width:100%;min-width:0}.dur-ctl input[type=range]{flex:1;min-width:0}
 .composer-tools .spec-row:last-child{width:100%;display:flex;flex-wrap:nowrap;margin-top:4px}.generate-btn{width:auto;flex:1;min-height:42px}
 .composer-hint{margin-top:12px}.workspace-heading h2{font-size:24px}.workspace-heading p{font-size:11px}
 .business-kpis{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.business-kpi{padding:16px}.business-kpi>b{font-size:25px}
 .filter-bar{padding:12px;gap:10px}.filter-bar label{flex:1 1 130px;min-width:0}.filter-bar .search-field{flex-basis:100%}.filter-bar .btn{flex:1;min-width:64px;white-space:nowrap}
 .business-row{padding:16px;grid-template-columns:1fr;gap:12px}.business-row .right{justify-content:space-between;gap:12px;flex-wrap:wrap}
 .task-inspector{padding:16px}.detail-lines>div{grid-template-columns:1fr 1fr;gap:6px}.detail-lines span{grid-column:1/-1}
 .toast-wrap{width:calc(100% - 24px)}.toast{border-radius:12px;line-height:1.7;font-size:12px;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.bg-video{display:none}}

/* Generation modes have separate asset groups and do not erase one another. */
.mode-tabs{max-width:100%;flex-wrap:wrap}.mode-tab{white-space:nowrap}.mode-help{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 12px}
#refGrid[data-mode="omni"]{grid-template-columns:repeat(3,minmax(0,1fr))}#refGrid[data-mode="frames"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.plan-price{font-size:30px;font-weight:800;margin:10px 0}.plan-card .n{font-size:22px}.plan-gift-detail{color:var(--accent);font-size:12px;line-height:1.6;margin:10px 0}.plan-card .btn{white-space:nowrap}
@media(max-width:640px){#refGrid[data-mode="omni"]{grid-template-columns:1fr}.mode-tabs{display:flex}.mode-tab{flex:1;padding-left:10px;padding-right:10px}.plan-price{font-size:27px}}
