:root{
  color-scheme:dark;
  --bg:#0b0e13;
  --bg-elevated:#10151d;
  --surface:#131923;
  --surface-2:#171e29;
  --surface-3:#1c2531;
  --line:#273140;
  --line-soft:#1c2430;
  --text:#edf2f8;
  --text-2:#aeb8c7;
  --text-3:#8d99ab;
  --accent:#86acf0;
  --accent-strong:#a8c7ff;
  --accent-soft:rgba(134,172,240,.12);
  --danger:#e09a9a;
  --warning:#d4b27b;
  --success:#86b9a0;
  --shadow:0 24px 70px rgba(1,7,16,.48);
  --rail:84px;
  --topbar:72px;
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  font-synthesis:none;
}
.project-output-viewer{width:min(900px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface)}
.project-output-viewer::backdrop{background:rgba(0,0,0,.72)}
.project-output-viewer header,.project-output-viewer footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px}
.project-output-viewer header button{padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);color:var(--text);cursor:pointer}
.project-output-viewer video{display:block;width:100%;height:min(62dvh,650px);background:#080b10;object-fit:contain}
.project-output-viewer p{padding:0 20px;color:var(--text-3);font-size:12px;overflow-wrap:anywhere}
.project-output-viewer footer a{color:var(--accent);font-size:14px}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font-size:15px;overflow:hidden}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.45;filter:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
svg{display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;z-index:50;top:8px;left:8px;transform:translateY(-150%);padding:10px 14px;background:var(--accent);color:#0b1017;border-radius:6px;text-decoration:none;font-weight:700}
.skip-link:focus{transform:none}
.app-shell{height:100dvh;display:grid;grid-template-columns:var(--rail) minmax(0,1fr);grid-template-rows:var(--topbar) minmax(0,1fr)}
.app-rail{grid-row:1/-1;position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;padding:14px 10px;border-right:1px solid var(--line-soft);background:#0e1218}
.brand-mark{display:grid;place-items:center;width:44px;height:44px;color:var(--accent-strong);border-radius:12px;background:#141b25}
.brand-mark svg{width:27px;height:27px;stroke-width:2.2}
.rail-nav{display:flex;flex-direction:column;gap:8px;margin-top:30px;width:100%}
.rail-bottom{display:flex;flex-direction:column;gap:10px;margin-top:auto;width:100%;align-items:center}
.rail-link{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;height:54px;border:0;border-radius:9px;background:transparent;color:var(--text-3);text-decoration:none;transition:background .2s ease,color .2s ease,transform .2s ease}
.rail-link svg{width:20px;height:20px}
.rail-link span{font-size:13px;font-weight:600}
.rail-link:hover{background:var(--surface-2);color:var(--text-2)}
.rail-link:active{transform:translateY(1px)}
.rail-link.active{background:var(--accent-soft);color:var(--accent-strong)}
.rail-link.active::before{content:"";position:absolute;left:-10px;width:3px;height:24px;border-radius:0 3px 3px 0;background:var(--accent)}
.account-mini{position:relative;display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}
.account-mini>span{font-weight:700}.presence-dot{position:absolute;right:-1px;bottom:-1px;width:9px;height:9px;border:2px solid var(--bg);border-radius:50%;background:#85bea0}
.topbar{grid-column:2;display:grid;grid-template-columns:minmax(190px,1fr) minmax(300px,480px) minmax(330px,1fr);align-items:center;gap:24px;padding:0 28px;border-bottom:1px solid var(--line-soft);background:rgba(11,14,19,.93);backdrop-filter:blur(18px)}
.product-wordmark{display:flex;align-items:baseline;gap:10px}.product-wordmark strong{font-size:17px;letter-spacing:-.02em}.product-wordmark span{font-size:13px;letter-spacing:.13em;color:var(--text-3);font-weight:700}
.command-search{height:36px;display:flex;align-items:center;gap:9px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text-3);transition:border-color .2s ease,background .2s ease}
.command-search:hover{border-color:#3a4658;background:var(--surface-2)}.command-search svg{width:16px}.command-search span{flex:1;text-align:left}.command-search kbd{padding:2px 6px;border:1px solid var(--line);border-radius:4px;background:var(--bg);font:13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--text-3)}
.topbar-actions{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:10px}.service-status{display:flex;flex:0 0 auto;align-items:center;gap:7px;height:34px;padding:0 10px;border:1px solid var(--line-soft);border-radius:7px;background:var(--surface);color:var(--text-2);white-space:nowrap}.service-status i{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:#82bfa0;box-shadow:0 0 0 4px rgba(130,191,160,.09)}.service-status b{font-size:13px;color:var(--text-3)}
.service-status.loading i{background:var(--text-3);box-shadow:none}
.account-mini:not(.identity-ready)>span{font-size:0;color:transparent}.account-mini:not(.identity-ready)>span::after{content:"—";font-size:13px;color:var(--text-2)}
.icon-button{position:relative;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:var(--text-2)}.icon-button:hover{background:var(--surface-2)}.icon-button svg{width:19px}.notice-dot{position:absolute;right:6px;top:5px;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.user-menu{display:flex;flex:0 0 auto;align-items:center;gap:8px;padding:3px 6px 3px 3px;border:0;border-radius:8px;background:transparent;white-space:nowrap}.user-menu:hover{background:var(--surface-2)}.user-menu .avatar{display:grid;flex:0 0 auto;place-items:center;width:30px;height:30px;border-radius:9px;background:#293344;color:var(--accent-strong);font-weight:700}.user-menu>span:nth-child(2){display:flex;flex-direction:column;align-items:flex-start}.user-menu b{font-size:13px}.user-menu small{font-size:13px;color:var(--text-3)}.user-menu svg{flex:0 0 auto;width:14px;margin-left:3px}
.workspace{grid-column:2;min-width:0;overflow:auto;padding:26px 28px 30px;background:radial-gradient(circle at 78% -20%,rgba(78,103,145,.10),transparent 32%),var(--bg)}
.workspace>*{width:min(100%,1680px);margin-inline:auto}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:20px}.eyebrow{margin:0 0 6px;color:var(--accent);font-size:13px;font-weight:700;letter-spacing:.08em}.page-heading h1{margin:0;font-size:30px;line-height:1.1;letter-spacing:-.035em;font-weight:650;text-wrap:balance}.page-heading p:last-child{margin:8px 0 0;color:var(--text-3);font-size:13px}.heading-actions{display:flex;align-items:center;gap:10px}.text-action,.secondary-action,.compact-button{border:1px solid var(--line);background:var(--surface);color:var(--text-2);border-radius:7px;transition:background .2s,border-color .2s,transform .15s}.text-action{height:38px;padding:0 15px;background:transparent}.secondary-action{height:38px;padding:0 15px}.compact-button{height:32px;padding:0 10px}.text-action:hover,.secondary-action:hover,.compact-button:hover{background:var(--surface-2);border-color:#3a4658}.text-action:active,.secondary-action:active,.compact-button:active,.primary-action:active{transform:translateY(1px)}
.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;padding:0 16px;border:1px solid #a8c7ff;border-radius:8px;background:var(--accent-strong);color:#0c121a;font-weight:700;white-space:nowrap;transition:filter .2s,transform .15s}.primary-action:hover{filter:brightness(1.06)}.primary-action svg{width:17px;stroke-width:2}
.metric-strip{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) minmax(210px,1.25fr);border:1px solid var(--line-soft);border-radius:10px;background:var(--surface);overflow:hidden;margin-bottom:14px}.metric{position:relative;min-height:70px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 10px;padding:12px 15px;border:0;border-right:1px solid var(--line-soft);background:transparent;text-align:left}.metric:hover{background:var(--surface-2)}.metric.active{background:var(--accent-soft)}.metric.active::after{content:"";position:absolute;left:15px;right:15px;bottom:0;height:2px;background:var(--accent)}.metric span{font-size:13px;color:var(--text-3)}.metric strong{grid-row:1/3;grid-column:2;font-size:24px;line-height:1;font-variant-numeric:tabular-nums}.metric small{color:var(--text-2);white-space:nowrap}.metric-footnote{display:grid;grid-template-columns:1fr auto;align-content:center;gap:7px 12px;padding:12px 16px}.metric-footnote span{font-size:13px;color:var(--text-3)}.metric-footnote strong{font-size:13px;font-variant-numeric:tabular-nums}.metric-footnote div{grid-column:1/-1;height:4px;border-radius:4px;background:#252e3a;overflow:hidden}.metric-footnote i{display:block;height:100%;background:var(--accent)}
.content-grid{display:grid;grid-template-columns:minmax(720px,2.15fr) minmax(320px,.85fr);gap:14px;align-items:start}.panel{border:1px solid var(--line-soft);border-radius:10px;background:var(--surface);overflow:hidden}.projects-panel{min-width:0}.panel-toolbar{display:flex;align-items:center;gap:9px;height:54px;padding:0 12px 0 16px;border-bottom:1px solid var(--line-soft)}.panel-toolbar>div:first-child{display:flex;align-items:baseline;gap:8px;margin-right:auto}.panel-toolbar h2,.section-title h2{margin:0;font-size:14px;letter-spacing:-.01em}.panel-toolbar>div:first-child>span,.section-title div>span{font-size:13px;color:var(--text-3)}.table-search{width:200px;height:32px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:var(--bg-elevated)}.table-search:focus-within{border-color:var(--accent)}.table-search svg{width:15px;color:var(--text-3)}.table-search input{width:100%;border:0;outline:0;background:transparent;font-size:13px}.panel-toolbar select{height:32px;padding:0 28px 0 9px;border:1px solid var(--line);border-radius:7px;background:var(--bg-elevated);font-size:13px;color:var(--text-2)}
.project-table-wrap{position:relative;min-height:496px;overflow:auto}.project-table{width:100%;border-collapse:collapse;table-layout:fixed}.project-table th{position:sticky;top:0;z-index:2;height:35px;padding:0 10px;background:#10151d;color:var(--text-3);font-size:13px;font-weight:600;text-align:left;border-bottom:1px solid var(--line-soft)}.project-table th:first-child{width:28%;padding-left:16px}.project-table th:nth-child(2){width:14%}.project-table th:nth-child(3){width:22%}.project-table th:nth-child(4){width:13%}.project-table th:nth-child(5){width:15%}.project-table th:last-child{width:8%}.project-row{height:66px;border-bottom:1px solid var(--line-soft);transition:background .16s ease}.project-row:last-child{border-bottom:0}.project-row:hover,.project-row.selected{background:#171e28}.project-row.selected{box-shadow:inset 2px 0 var(--accent)}.project-row td{padding:7px 10px;vertical-align:middle;color:var(--text-2);font-size:13px}.project-row td:first-child{padding-left:16px}.project-identity{display:flex;align-items:center;gap:10px;min-width:0}.project-identity img{width:40px;height:50px;object-fit:cover;border-radius:6px;background:var(--surface-3)}.project-identity>span{display:flex;flex-direction:column;gap:5px;min-width:0}.project-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:13px;font-weight:600}.project-identity small,.cell-note{display:block;color:var(--text-3);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-identity i{font-style:normal;color:var(--accent);margin-right:4px}.stage-badge{display:inline-flex;align-items:center;min-height:21px;padding:0 7px;border-radius:5px;background:#202936;color:var(--text-2);font-size:13px;font-weight:650}.stage-badge.attention{background:rgba(212,178,123,.11);color:#d8bd91}.stage-badge.running{background:var(--accent-soft);color:var(--accent-strong)}.stage-badge.review{background:rgba(171,143,207,.11);color:#c4aadf}.stage-badge.done{background:rgba(134,185,160,.11);color:#9fc9b3}.cell-note{margin-top:4px}.next-action{display:block;color:var(--text);font-size:13px;font-weight:580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-progress{display:flex;align-items:center;gap:7px}.row-progress>span{height:4px;flex:1;border-radius:3px;background:#27303d;overflow:hidden}.row-progress i{display:block;height:100%;background:var(--accent)}.row-progress.complete i{background:var(--success)}.row-progress b{width:30px;text-align:right;font:13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--text-3)}.row-open{height:27px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--text-2);font-size:13px}.row-open:hover{border-color:var(--accent);color:var(--accent-strong);background:var(--accent-soft)}
.projects-panel.compact .project-row{height:54px}.projects-panel.compact .project-identity img{width:32px;height:38px}.projects-panel.compact .project-identity small,.projects-panel.compact .cell-note{display:none}.projects-panel.compact .project-table-wrap{min-height:430px}.empty-filter{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:var(--text-3)}.empty-filter strong{color:var(--text);font-size:14px}.empty-filter button{margin-top:6px;border:0;background:transparent;color:var(--accent)}
.right-column{display:grid;gap:14px}.section-title{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--line-soft)}.section-title>div{display:flex;align-items:baseline;gap:8px}.section-title button,.section-title>a{border:0;background:transparent;color:var(--text-3);font-size:13px;text-decoration:none}.section-title button:hover,.section-title>a:hover{color:var(--accent-strong)}.task-list{padding:4px 10px 7px}.task-item{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:7px 4px;border-bottom:1px solid var(--line-soft)}.task-item:last-child{border-bottom:0}.task-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--accent-soft)}.task-icon i{width:10px;height:10px;border:2px solid var(--accent);border-right-color:transparent;border-radius:50%;animation:spin 1.4s linear infinite}.task-icon.generation i{border-radius:2px;border:0;background:var(--accent);animation:pulse 1.5s ease-in-out infinite}.task-item>div:nth-child(2){min-width:0}.task-item strong,.task-item span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-item strong{font-size:13px;font-weight:600}.task-item span{margin-top:3px;color:var(--text-3);font-size:13px}.task-item>b{font:13px ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--text-3)}.task-progress{height:3px;margin-top:6px;border-radius:2px;background:#252f3d;overflow:hidden}.task-progress i{display:block;height:100%;background:var(--accent)}.task-item.queued .task-icon i{width:7px;height:7px;border:0;background:var(--warning);animation:none}.task-item.queued>b{color:var(--warning)}
.output-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.output-card{position:relative;min-width:0;padding:0 0 7px;border:0;border-radius:7px;background:var(--bg-elevated);overflow:hidden;text-align:left;transition:background .2s,transform .2s}.output-card:hover{background:var(--surface-3);transform:translateY(-1px)}.output-card img{display:block;width:100%;aspect-ratio:16/8.5;object-fit:cover;filter:saturate(.72) contrast(1.03)}.output-card>span{position:absolute;left:6px;right:6px;top:calc(100% - 39px);display:flex;justify-content:space-between;align-items:center}.output-card>span strong,.output-card>span i{padding:2px 4px;border-radius:3px;background:rgba(7,10,14,.75);font-size:13px;font-style:normal}.output-card small{display:block;padding:6px 7px 0;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.project-inspector{position:fixed;z-index:31;top:var(--topbar);right:0;bottom:0;width:min(390px,calc(100vw - 20px));display:flex;flex-direction:column;padding:18px;background:#111720;border-left:1px solid var(--line);box-shadow:var(--shadow);transform:translateX(105%);transition:transform .25s cubic-bezier(.2,.8,.2,1)}.project-inspector.open{transform:none}.project-inspector>header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.project-inspector header span{color:var(--text-3);font-size:13px}.project-inspector h2{margin:4px 0 0;font-size:20px;letter-spacing:-.025em}.project-inspector header button,.create-dialog header button{width:30px;height:30px;border:0;border-radius:7px;background:var(--surface-2);color:var(--text-2);font-size:20px}.inspector-cover{position:relative;border-radius:8px;overflow:hidden}.inspector-cover img{display:block;width:100%;height:160px;object-fit:cover;filter:saturate(.7)}.inspector-cover span{position:absolute;left:10px;bottom:10px;padding:4px 7px;border-radius:4px;background:rgba(8,12,17,.82);color:var(--accent-strong);font-size:13px}.inspector-facts{display:grid;grid-template-columns:1fr 1fr;margin:16px 0;border:1px solid var(--line-soft);border-radius:8px;overflow:hidden}.inspector-facts div{padding:11px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}.inspector-facts div:nth-child(even){border-right:0}.inspector-facts div:nth-last-child(-n+2){border-bottom:0}.inspector-facts dt{font-size:13px;color:var(--text-3)}.inspector-facts dd{margin:5px 0 0;font-size:13px;font-weight:600}.next-step{padding:14px;border-radius:8px;background:var(--accent-soft)}.next-step span{font-size:13px;color:var(--accent)}.next-step strong{display:block;margin-top:6px;font-size:14px}.next-step p{margin:6px 0 0;color:var(--text-2);font-size:13px;line-height:1.6}.mini-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:5px;margin-top:18px}.mini-timeline span{position:relative;padding-top:15px;color:var(--text-3);font-size:13px;text-align:center}.mini-timeline span::before{content:"";position:absolute;top:4px;left:0;right:0;height:2px;background:var(--line)}.mini-timeline span.done,.mini-timeline span.current{color:var(--text-2)}.mini-timeline span.done::before{background:var(--success)}.mini-timeline span.current::before{background:var(--accent)}.project-inspector>footer{display:flex;gap:8px;margin-top:auto}.project-inspector>footer>*{flex:1}.inspector-scrim{position:fixed;z-index:30;inset:var(--topbar) 0 0 var(--rail);border:0;background:rgba(3,6,10,.44);backdrop-filter:blur(2px)}
.create-dialog{width:min(700px,calc(100vw - 28px));padding:0;border:1px solid var(--line);border-radius:12px;background:#121821;color:var(--text);box-shadow:var(--shadow)}.create-dialog::backdrop{background:rgba(3,6,10,.72);backdrop-filter:blur(5px)}.create-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:20px}.create-dialog header{grid-column:1/-1;display:flex;justify-content:space-between;padding-bottom:15px;border-bottom:1px solid var(--line-soft)}.create-dialog header>div>span{color:var(--accent);font-size:13px;font-weight:700}.create-dialog h2{margin:5px 0 0;font-size:23px}.create-dialog header p{margin:6px 0 0;color:var(--text-3);font-size:13px}.span-2{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:7px}.field>span,.mode-choice legend{color:var(--text-2);font-size:13px;font-weight:600}.field input,.field select{width:100%;height:39px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:var(--bg-elevated)}.field input[type=file]{padding:7px}.field small{color:var(--text-3);font-size:13px}.mode-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0;border:0}.mode-choice legend{margin-bottom:8px}.mode-choice label{position:relative}.mode-choice input{position:absolute;opacity:0;pointer-events:none}.mode-choice label>span{display:flex;flex-direction:column;gap:4px;min-height:70px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-elevated)}.mode-choice label:hover>span{border-color:#3d4a5c}.mode-choice input:checked+span{border-color:var(--accent);background:var(--accent-soft)}.mode-choice b{font-size:13px}.mode-choice small{color:var(--text-3);font-size:13px;line-height:1.45}.create-dialog footer{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding-top:15px;border-top:1px solid var(--line-soft)}.create-dialog footer>span{margin-right:auto;color:var(--text-3);font-size:13px}
.toast{position:fixed;z-index:60;left:50%;bottom:24px;max-width:min(460px,calc(100vw - 30px));padding:10px 14px;border:1px solid var(--line);border-radius:7px;background:#1b2430;color:var(--text);box-shadow:var(--shadow);font-size:13px;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}
/* Project stage · materials and goals */
.project-top-context{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;color:var(--text-3);font-size:13px}.project-top-context a{color:var(--text-2);text-decoration:none}.project-top-context b{max-width:260px;overflow:hidden;color:var(--text);text-overflow:ellipsis;white-space:nowrap}.project-top-context i{padding:3px 6px;border-radius:4px;background:var(--accent-soft);color:var(--accent);font-size:13px;font-style:normal}
.project-tabs{display:flex;min-width:0;height:38px;align-items:flex-end;gap:3px;padding:0 3px;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.project-tabs::-webkit-scrollbar{display:none}.project-tabs.project-top-context{justify-content:flex-start}.project-tab{position:relative;display:flex;min-width:72px;max-width:150px;height:34px;align-items:center;gap:6px;padding:0 10px;border:1px solid transparent;border-bottom:0;border-radius:7px 7px 0 0;color:var(--text-3);font-size:13px;text-decoration:none}.project-tab:hover{background:var(--surface);color:var(--text-2)}.project-tab.active{border-color:var(--line);background:var(--surface-2);color:var(--text)}.project-tab span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-tab-status-dot{display:none;flex:0 0 auto;width:7px!important;height:7px;border-radius:50%;background:var(--accent)}.project-tab.running .project-tab-status-dot{display:block;animation:project-tab-pulse 1.25s ease-in-out infinite}.project-tab em{color:var(--accent);font-size:13px;font-style:normal;white-space:nowrap}.project-tab-home,.project-tab-add{flex:0 0 auto;min-width:0}.project-tab-add{width:32px;justify-content:center;padding:0;font-size:17px}@keyframes project-tab-pulse{0%,100%{opacity:.35;box-shadow:0 0 0 0 rgba(123,167,227,.25)}50%{opacity:1;box-shadow:0 0 0 5px rgba(123,167,227,0)}}
.project-tab[data-project-tab]{padding:0 4px 0 8px}.project-tab-link{display:flex;min-width:0;flex:1;align-items:center;gap:6px;color:inherit;text-decoration:none}.project-tab-close{display:grid;width:22px;height:22px;flex:0 0 auto;place-items:center;border:0;border-radius:5px;background:transparent;color:var(--text-3);font-size:15px;line-height:1}.project-tab-close:hover,.project-tab-close:focus-visible{background:var(--surface-3);color:var(--text)}
.stage-workspace{padding-top:18px;padding-bottom:20px}.stage-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:13px}.back-link{display:inline-flex;align-items:center;gap:3px;margin-bottom:7px;color:var(--text-3);font-size:13px;text-decoration:none}.back-link:hover{color:var(--text)}.back-link svg{width:14px}.stage-title-line{display:flex;align-items:center;gap:9px}.stage-heading h1{margin:0;font-size:25px;line-height:1.1;letter-spacing:-.03em}.stage-heading p{margin:6px 0 0;color:var(--text-3);font-size:13px}.state-badge{padding:3px 7px;border-radius:4px;font-size:13px}.state-badge.draft{background:rgba(212,178,123,.10);color:var(--warning)}.save-state{display:flex;align-items:center;gap:7px;color:var(--text-3);font-size:13px}.save-state>i{width:6px;height:6px;border-radius:50%;background:var(--success)}.save-state time{padding-right:8px;font-variant-numeric:tabular-nums}
.stage-steps{display:grid;grid-template-columns:repeat(5,1fr);margin-bottom:13px;border:1px solid var(--line-soft);border-radius:9px;overflow:hidden;background:var(--bg-elevated);scrollbar-width:none}.stage-steps::-webkit-scrollbar{display:none}.stage-steps a,.stage-steps button{position:relative;display:flex;align-items:center;gap:9px;min-width:0;height:54px;padding:0 13px;border:0;border-right:1px solid var(--line-soft);background:transparent;color:var(--text-3);text-align:left;text-decoration:none}.stage-steps>*:last-child{border-right:0}.stage-steps a.active{background:var(--accent-soft);color:var(--text)}.stage-steps a.active::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:var(--accent)}.stage-steps b{font-size:13px;font-variant-numeric:tabular-nums}.stage-steps span{display:flex;min-width:0;flex-direction:column;gap:2px;font-size:13px;font-weight:600}.stage-steps small{overflow:hidden;color:var(--text-3);font-size:13px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.stage-steps button:hover{background:var(--surface);color:var(--text-2)}
.materials-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(370px,.92fr) 310px;align-items:start;gap:12px}.materials-column{display:grid;align-content:start;gap:12px;min-width:0}.setup-panel{padding:0;overflow:hidden}.setup-panel-header{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:9px 13px;border-bottom:1px solid var(--line-soft)}.setup-panel-header>div{display:flex;align-items:baseline;gap:8px}.setup-panel h2,.readiness-panel h2{margin:0;font-size:14px;letter-spacing:-.01em}.section-index{color:var(--text-3);font-size:13px}.complete-mark{display:flex;align-items:center;gap:5px;color:var(--success);font-size:13px}.complete-mark i{width:6px;height:6px;border-radius:50%;background:currentColor}.text-link{padding:3px 0;border:0;background:none;color:var(--accent);font-size:13px}.text-link:hover{color:var(--accent-strong)}
.reference-video{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(205px,.65fr);gap:12px;padding:12px}.video-frame{position:relative;min-height:210px;border-radius:7px;overflow:hidden;background:#070a0e}.video-frame>img{display:block;width:100%;height:100%;min-height:210px;object-fit:cover;filter:saturate(.7) brightness(.7)}.video-frame>button{position:absolute;left:50%;top:50%;display:grid;width:45px;height:45px;place-items:center;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.32);border-radius:50%;background:rgba(8,13,19,.72);color:#fff;transition:transform .2s,background .2s}.video-frame>button:hover{transform:translate(-50%,-50%) scale(1.05);background:rgba(12,20,31,.88)}.video-frame>button.playing{background:var(--accent);color:#0c121a}.video-frame>button svg{width:20px}.video-chrome{position:absolute;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:6px 8px;border-radius:5px;background:rgba(5,8,12,.8);font-size:13px;font-variant-numeric:tabular-nums}.video-chrome i{height:2px;background:linear-gradient(90deg,var(--accent) 38%,rgba(255,255,255,.2) 38%)}.file-facts{display:flex;min-width:0;flex-direction:column}.file-facts>div:first-child span,.product-summary span{display:block;color:var(--text-3);font-size:13px}.file-facts>div:first-child strong{display:block;margin-top:4px;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.file-facts dl{display:grid;grid-template-columns:1fr 1fr;margin:12px 0;border:1px solid var(--line-soft);border-radius:6px;overflow:hidden}.file-facts dl div{padding:7px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}.file-facts dl div:nth-child(even){border-right:0}.file-facts dl div:nth-last-child(-n+2){border-bottom:0}.file-facts dt{color:var(--text-3);font-size:13px}.file-facts dd{margin:3px 0 0;font-size:13px;font-variant-numeric:tabular-nums}.file-facts>p{display:flex;align-items:flex-start;gap:5px;margin:0;color:var(--success);font-size:13px;line-height:1.45}.file-facts>p svg{flex:0 0 auto;width:12px}.inline-actions{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:10px}.source-note{display:grid;grid-template-columns:auto 1fr auto;gap:9px;padding:9px 12px;border-top:1px solid var(--line-soft);background:rgba(134,172,240,.05);font-size:13px}.source-note strong{color:var(--accent)}.source-note span{color:var(--text-2)}.source-note em{color:var(--text-3);font-style:normal}
.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line-soft)}.support-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:8px;min-height:61px;padding:9px 11px;background:var(--surface)}.support-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:6px;background:var(--bg-elevated);color:var(--text-3)}.support-item.added .support-icon{background:var(--accent-soft);color:var(--accent)}.support-icon svg{width:17px}.support-item>div:nth-child(2){display:flex;min-width:0;flex-direction:column;gap:3px}.support-item strong{font-size:13px}.support-item span{overflow:hidden;color:var(--text-3);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.support-item>b{min-width:18px;color:var(--text-3);font-size:13px;text-align:center}.support-item.added>b{color:var(--accent)}.support-item>button{padding:4px 6px;border:1px solid var(--line-soft);border-radius:4px;background:transparent;color:var(--text-2);font-size:13px}.support-item>button:hover{border-color:var(--accent);color:var(--accent)}.add-reference{display:flex;align-items:center;justify-content:center;gap:7px;min-height:61px;border:0;background:var(--surface);color:var(--text-3);font-size:13px}.add-reference:hover{background:var(--surface-2);color:var(--text)}.add-reference svg{width:15px}
.bound-product{display:grid;grid-template-columns:82px 1fr;gap:11px;padding:11px 12px}.bound-product>img{width:82px;height:82px;border-radius:7px;object-fit:cover}.product-summary{display:flex;min-width:0;flex-direction:column;justify-content:space-between}.product-summary strong{display:block;margin-top:3px;font-size:13px}.product-summary small{display:block;margin-top:3px;color:var(--text-3);font-size:13px}.product-summary label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;color:var(--text-3);font-size:13px}.product-summary select{min-width:0;height:29px;padding:0 8px;border:1px solid var(--line);border-radius:5px;background:var(--bg-elevated);font-size:13px}.product-facts{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:0;border-top:1px solid var(--line-soft);list-style:none}.product-facts li{display:grid;grid-template-columns:46px 1fr;gap:5px;padding:7px 11px;border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);font-size:13px}.product-facts li:nth-child(even){border-right:0}.product-facts li:nth-last-child(-n+2){border-bottom:0}.product-facts b{color:var(--text-3);font-weight:500}.product-facts span{color:var(--text-2)}
.goal-panel form{display:grid;gap:11px;padding:11px 12px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.stage-field{display:flex;min-width:0;flex-direction:column;gap:5px}.stage-field>span,.choice-field legend{color:var(--text-2);font-size:13px;font-weight:600}.stage-field input,.stage-field select,.stage-field textarea{width:100%;border:1px solid var(--line);border-radius:5px;background:var(--bg-elevated);color:var(--text);font-size:13px}.stage-field input,.stage-field select{height:33px;padding:0 9px}.stage-field textarea{height:69px;padding:8px;resize:vertical;line-height:1.5}.stage-field small{color:var(--text-3);font-size:13px}.choice-field{padding:0;border:0}.choice-field legend{margin-bottom:5px}.choice-row{display:flex;gap:5px}.choice-row label{position:relative;flex:1}.choice-row input{position:absolute;opacity:0;pointer-events:none}.choice-row span{display:grid;height:31px;place-items:center;border:1px solid var(--line);border-radius:5px;background:var(--bg-elevated);color:var(--text-3);font-size:13px}.choice-row input:checked+span{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}
.readiness-panel{overflow:hidden}.readiness-panel>header{display:flex;align-items:center;justify-content:space-between;padding:13px;border-bottom:1px solid var(--line-soft)}.readiness-panel>header span,.responsibility-panel>header>span,.mode-summary>span{display:block;margin-bottom:4px;color:var(--text-3);font-size:13px}.readiness-panel>header>b{font-size:18px;color:var(--success);font-variant-numeric:tabular-nums}.readiness-panel ul{margin:0;padding:5px 12px;list-style:none}.readiness-panel li{display:grid;grid-template-columns:12px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid var(--line-soft)}.readiness-panel li:last-child{border-bottom:0}.readiness-panel li>i{width:8px;height:8px;margin-top:3px;border-radius:50%;background:var(--warning);box-shadow:0 0 0 3px rgba(212,178,123,.08)}.readiness-panel li.ready>i{background:var(--success);box-shadow:0 0 0 3px rgba(134,185,160,.08)}.readiness-panel li div{display:flex;flex-direction:column;gap:3px}.readiness-panel li strong{font-size:13px}.readiness-panel li span{color:var(--text-3);font-size:13px}.estimate{padding:11px 12px;background:var(--bg-elevated)}.estimate span,.estimate small{display:block;color:var(--text-3);font-size:13px}.estimate strong{display:block;margin:4px 0;font-size:13px}.responsibility-panel{padding:12px}.responsibility-panel>header{display:flex;align-items:center;justify-content:space-between}.icon-help{display:grid;width:22px;height:22px;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text-3);font-size:13px}.responsibility-panel dl{margin:7px 0 0}.responsibility-panel dl div{display:grid;grid-template-columns:75px 1fr;gap:8px;padding:7px 0;border-bottom:1px solid var(--line-soft);font-size:13px}.responsibility-panel dt{color:var(--text-2);font-weight:600}.responsibility-panel dd{margin:0;color:var(--text-3)}.responsibility-panel p{margin:10px 0 0;padding:8px;border-left:2px solid var(--warning);background:rgba(212,178,123,.06);color:var(--text-2);font-size:13px;line-height:1.55}.mode-summary{padding:12px}.mode-summary strong{font-size:13px}.mode-summary p{margin:6px 0 7px;color:var(--text-3);font-size:13px;line-height:1.5}
.stage-actionbar{position:sticky;z-index:8;bottom:-1px;display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:rgba(16,21,29,.96);box-shadow:0 -18px 40px rgba(5,9,15,.35);backdrop-filter:blur(18px)}.stage-actionbar>div{display:flex;align-items:center;gap:9px;margin-right:auto}.keyboard-hint{padding:4px 6px;border:1px solid var(--line);border-radius:4px;color:var(--text-3);font-size:13px}.stage-actionbar p{margin:0}.stage-actionbar p strong,.stage-actionbar p small{display:block}.stage-actionbar p strong{font-size:13px}.stage-actionbar p small{margin-top:2px;color:var(--text-3);font-size:13px}.back-action{display:inline-grid;place-items:center;text-decoration:none}
.operation-progress{position:relative;display:block;flex:0 0 clamp(110px,12vw,210px);height:4px;margin-left:6px;border-radius:999px;background:#263244;overflow:hidden}.operation-progress[hidden]{display:none}.operation-progress i{position:absolute;inset-block:0;left:0;width:38%;border-radius:inherit;background:var(--accent);animation:operation-progress-slide 1.1s ease-in-out infinite}.operation-progress.determinate i{animation:none;transition:width .24s ease}@keyframes operation-progress-slide{0%{transform:translateX(-110%)}100%{transform:translateX(280%)}}@media(prefers-reduced-motion:reduce){.operation-progress i{animation-duration:2.2s}}
.analysis-progress{margin:-2px 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-elevated)}.analysis-progress[hidden]{display:none}.analysis-progress>div{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}.analysis-progress strong,.analysis-progress output{font-size:13px}.analysis-progress output{color:var(--accent-strong);font-variant-numeric:tabular-nums}.analysis-progress>span{display:block;height:5px;border-radius:999px;background:var(--surface-3);overflow:hidden}.analysis-progress>span>i{display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .35s ease}.analysis-progress.failed{border-color:rgba(221,126,126,.35)}.analysis-progress.failed output{color:var(--danger)}.analysis-progress.failed>span>i{background:var(--danger)}
/* Shared by recreation, AI modes and company-asset editor action bars. */
.action-readiness{min-width:0}.readiness-dot{width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px rgba(134,185,160,.08)}.action-readiness.incomplete .readiness-dot{background:var(--warning);box-shadow:0 0 0 4px rgba(212,178,123,.08)}.action-readiness.incomplete p strong{color:var(--warning)}.cost-estimate{margin-left:10px;padding-left:14px;border-left:1px solid var(--line);color:var(--text-3);font-size:13px;white-space:nowrap}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35;transform:scale(.8)}}
@media (max-width:1250px){.topbar{grid-template-columns:1fr minmax(260px,380px) auto}.product-wordmark span,.service-status span,.user-menu>span:nth-child(2){display:none}.content-grid{grid-template-columns:minmax(680px,1fr) 300px}.project-table th:nth-child(4),.project-row td:nth-child(4){display:none}.project-table th:first-child{width:31%}.project-table th:nth-child(3){width:25%}}
@media (max-width:980px){body{overflow:auto}.app-shell{height:auto;min-height:100dvh;grid-template-columns:1fr;grid-template-rows:58px auto}.app-rail{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:20;height:58px;grid-row:auto;flex-direction:row;padding:5px 8px;border-right:0;border-top:1px solid var(--line);box-shadow:0 -12px 30px rgba(2,5,9,.3)}.brand-mark{display:none}.rail-nav{margin:0;flex-direction:row;justify-content:center}.rail-bottom{margin:0 0 0 auto;flex-direction:row;width:auto}.rail-link{width:64px;height:47px}.rail-link.active::before{left:17px;right:17px;top:-5px;width:auto;height:2px}.account-mini{display:none}.topbar{grid-column:1;grid-template-columns:1fr auto;padding:0 16px}.command-search{display:none}.workspace{grid-column:1;padding:20px 16px 82px}.content-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.inspector-scrim{inset:var(--topbar) 0 58px 0}.project-inspector{bottom:58px}.metric-strip{grid-template-columns:repeat(4,1fr)}.metric-footnote{grid-column:1/-1;border-top:1px solid var(--line-soft)}.project-table th:nth-child(5),.project-row td:nth-child(5){display:none}}
@media (max-width:700px){.topbar-actions .service-status,.icon-button{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.page-heading p:last-child,.text-action{display:none}.metric-strip{grid-template-columns:1fr 1fr}.metric{border-bottom:1px solid var(--line-soft)}.content-grid{display:block}.right-column{display:grid;grid-template-columns:1fr;margin-top:12px}.panel-toolbar{flex-wrap:wrap;height:auto;padding:10px 12px}.table-search{order:2;width:100%}.project-table{min-width:620px}.project-table-wrap{overflow:auto}.mode-choice{grid-template-columns:1fr}.create-dialog form{grid-template-columns:1fr;padding:15px}.span-2,.create-dialog header,.create-dialog footer{grid-column:1}.create-dialog footer>span{display:none}}

/* Four creation modes need equal weight without compressing their explanations. */
.create-dialog{width:min(820px,calc(100vw - 28px))}
.mode-choice{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.mode-choice{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.mode-choice{grid-template-columns:1fr}}
@media (max-width:1250px){.materials-layout{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr)}.readiness-column{grid-column:1/-1;grid-template-columns:1.08fr 1fr .82fr}.project-top-context b{max-width:190px}.source-note{grid-template-columns:auto 1fr}.source-note em{grid-column:2}}
@media (max-width:980px){.stage-workspace{padding-bottom:142px}.materials-layout{grid-template-columns:1fr}.readiness-column{grid-column:auto;grid-template-columns:1fr 1fr}.mode-summary{grid-column:1/-1}.stage-steps{display:flex;overflow-x:auto}.stage-steps>*{flex:0 0 165px}.stage-actionbar{position:fixed;left:16px;right:16px;bottom:66px;width:auto;margin:0}.project-top-context{justify-content:flex-start}.reference-video{grid-template-columns:minmax(0,1.2fr) minmax(215px,.8fr)}}
@media (max-width:700px){.project-top-context{display:none}.stage-heading{align-items:flex-start}.stage-heading p{max-width:240px}.save-state{display:none}.stage-steps>*{flex-basis:145px}.materials-layout{display:block}.materials-column{margin-bottom:10px}.reference-video{grid-template-columns:1fr}.video-frame,.video-frame>img{min-height:185px}.file-facts dl{margin:9px 0}.source-note{grid-template-columns:1fr}.source-note em{grid-column:auto}.support-grid{grid-template-columns:1fr}.bound-product{grid-template-columns:68px 1fr}.bound-product>img{width:68px;height:68px}.product-summary label{grid-template-columns:1fr}.product-facts{grid-template-columns:1fr}.product-facts li,.product-facts li:nth-child(even){border-right:0}.product-facts li:nth-last-child(2){border-bottom:1px solid var(--line-soft)}.field-grid{grid-template-columns:1fr}.readiness-column{display:grid;grid-template-columns:1fr}.mode-summary{grid-column:auto}.stage-actionbar>div,.stage-actionbar .back-action{display:none}.stage-actionbar .secondary-action,.stage-actionbar .primary-action{flex:1;padding-inline:9px}.stage-actionbar{padding:8px}.toast{bottom:128px}}



/* Shared settings action */

.customer-usage-empty{display:grid;height:250px;place-items:center;color:var(--text-3);font-size:13px}

/* System administrator console */



@import url("./account-menu.css");

/* Commercial readability baseline: readable at 100% desktop zoom. */
@media (min-width:981px){
  .app-rail{padding:16px 11px}
  .brand-mark{width:50px;height:50px}
  .brand-mark svg{width:31px;height:31px}
  .rail-nav{gap:10px;margin-top:32px}
  .rail-link{height:62px;border-radius:11px}
  .rail-link svg{width:23px;height:23px}
  .account-mini{width:44px;height:44px}
  .topbar{gap:28px;padding:0 32px}
  .command-search{height:42px;padding:0 13px}
  .service-status,.customer-service-status{height:40px;padding:0 13px}
  .icon-button{width:40px;height:40px}
  .user-menu{gap:10px;padding:5px 9px 5px 5px}
  .user-menu .avatar{width:36px;height:36px}
  .workspace{padding:30px 32px 34px}
  .text-action,.secondary-action{height:42px;padding-inline:17px}
  .compact-button{height:38px;padding-inline:12px}
  .primary-action{height:44px;padding-inline:18px}
}
@media (max-width:980px){:root{--rail:72px;--topbar:58px}}

/* Desktop sign-in and status controls */
.desktop-release{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin-top:12px;border:1px solid var(--line-soft);border-radius:9px;background:var(--line-soft);overflow:hidden}
.desktop-release[hidden]{display:none}.desktop-release>div{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;background:var(--surface)}
.desktop-release span{overflow:hidden;color:var(--text-3);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.desktop-release strong{font:13px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.desktop-release button{height:30px;padding:0 9px;border:1px solid var(--line);border-radius:5px;background:var(--bg-elevated);color:var(--accent-strong);font-size:13px;white-space:nowrap}.desktop-release button:disabled{opacity:.55}
.desktop-update-progress{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) 38px;align-items:center!important;gap:9px!important;padding:8px 12px!important}.desktop-update-progress[hidden]{display:none!important}.desktop-update-progress::before{grid-column:1;grid-row:1;width:100%;height:6px;border-radius:999px;background:var(--surface-3);content:""}.desktop-update-progress i{grid-column:1;grid-row:1;display:block;width:0;height:6px;border-radius:999px;background:var(--accent-strong);transition:width .2s}.desktop-update-progress span{grid-column:2;grid-row:1;color:var(--text-2)!important;text-align:right;font-variant-numeric:tabular-nums}
@media (min-width:1800px){.workspace>*{width:min(100%,1900px);margin-inline:auto}}
@media (max-width:560px){.desktop-release{grid-template-columns:1fr}}

/* 2026-09 usability pass: readable dialogs, explicit consent and distinct admin sections. */

.create-dialog{width:min(1080px,calc(100vw - 42px));max-height:min(88dvh,820px)}
.create-dialog form{max-height:min(88dvh,820px);padding:26px;overflow:auto}
.mode-choice{gap:12px}.mode-choice label>span{height:100%;min-height:178px;padding:14px;gap:7px}.mode-choice b{font-size:15px}.mode-choice small{font-size:13px;line-height:1.6}
.mode-demo{position:relative;display:grid;height:72px;grid-template-columns:repeat(3,1fr);align-items:end;gap:5px;margin-bottom:3px;padding:9px;border:1px solid var(--line-soft);border-radius:7px;background:#0b1119;overflow:hidden}
.mode-demo::after{position:absolute;right:8px;bottom:7px;left:8px;height:2px;background:var(--line);content:""}.mode-demo em{position:relative;z-index:1;display:block;border:1px solid #35445a;border-radius:3px;background:#172234;animation:modePulse 2.4s ease-in-out infinite}.mode-demo em:nth-child(1){height:24px}.mode-demo em:nth-child(2){height:43px;animation-delay:.25s}.mode-demo em:nth-child(3){height:32px;animation-delay:.5s}.mode-demo.creative em{border-radius:50% 50% 4px 4px}.mode-demo.script{align-items:center}.mode-demo.script em{height:3px;border:0;background:#6689bd}.mode-demo.script em:nth-child(2){width:75%;justify-self:end}.mode-demo.free em{height:36px;background:transparent}.mode-demo.free em:nth-child(2){height:22px}.mode-demo.free em:nth-child(3){height:46px}
@keyframes modePulse{0%,100%{border-color:#35445a;transform:translateY(0)}50%{border-color:var(--accent);transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.mode-demo em{animation:none}}
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px}

#adminOverviewView{display:grid;min-height:0;grid-template-rows:auto 80px minmax(0,1fr);gap:11px}

@media (max-width:1100px){.create-dialog{width:min(920px,calc(100vw - 28px))}.mode-choice{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.create-dialog form{padding:16px}.mode-choice{grid-template-columns:1fr}.mode-choice label>span{min-height:126px}}

/* Explicit destructive actions and reversible confirmation affordances. */
.project-inspector>footer{display:grid;grid-template-columns:auto 1fr 1.25fr}.project-inspector>footer>*{min-width:0}.danger-action{height:36px;padding:0 13px;border:1px solid rgba(224,154,154,.45);border-radius:6px;background:rgba(224,154,154,.08);color:var(--danger);font-size:13px;font-weight:650}.danger-action:hover{border-color:var(--danger);background:rgba(224,154,154,.14)}.danger-action:disabled{cursor:wait;opacity:.55}.confirm-delete-dialog{width:min(570px,calc(100vw - 28px))}.confirm-delete-dialog form{grid-template-columns:1fr}.delete-project-summary{display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid rgba(224,154,154,.24);border-radius:8px;background:rgba(224,154,154,.06)}.delete-project-summary span,.delete-project-summary small{color:var(--text-3);font-size:13px;line-height:1.55}.delete-project-summary strong{font-size:16px}


.project-tab.attention .project-tab-status-dot{display:block;background:var(--danger)}
.project-tab.attention em{color:var(--danger)}

/* Preserve the complete source frame instead of cropping portrait media. */
.video-frame>img,.video-frame>video{object-fit:contain;object-position:center;background:#05080c}

@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Project tabs keep independent hit areas when many projects are open. */
.project-tabs{align-items:center;scrollbar-width:thin;scrollbar-color:var(--line) transparent;scroll-padding-inline:4px}
.project-tabs::-webkit-scrollbar{display:block;height:3px}
.project-tabs::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.project-tab[data-project-tab]{flex:0 0 228px;width:228px;min-width:0;max-width:228px;overflow:hidden}
.project-tab-link{overflow:hidden}
.project-tab-link>span:not(.project-tab-status-dot){flex:1 1 auto;min-width:40px}
.project-tab-link em{flex:0 1 auto;min-width:0;max-width:100px;overflow:hidden;text-overflow:ellipsis}
.project-tab-close{position:relative;z-index:1}
.project-identity .project-creator{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;color:var(--text-2);line-height:1.5;margin-top:4px}
.inspector-facts dd{overflow-wrap:anywhere}
@media(max-width:980px){.topbar:has(.project-tabs){grid-template-columns:minmax(120px,1fr) auto;height:96px;grid-template-rows:58px 38px;row-gap:0}.project-tabs.project-top-context{display:flex;grid-column:1/-1;grid-row:2;width:100%;height:38px}.app-shell:has(.project-tabs){--topbar:96px;grid-template-rows:96px auto}.project-tab[data-project-tab]{flex-basis:208px;width:208px;max-width:208px}}

/* Compact project switching: project names take priority over task status. */
.project-tabs.project-top-context{display:flex;align-items:center;gap:5px;overflow:hidden;min-width:0}
.project-tabs .project-tab[data-project-tab]{flex:0 1 180px;width:180px;min-width:90px;max-width:180px}
.project-tabs .project-tab-link{min-width:0;flex:1;overflow:hidden}
.project-tabs .project-tab-link>span:not(.project-tab-status-dot){min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-tabs .project-tab-link em{display:none!important}
.project-tabs .project-tab.attention .project-tab-status-dot{display:block;background:var(--warning,#e0b574);animation:none}
.project-tabs .project-switch-button{flex:0 0 auto;white-space:nowrap;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--text-2);padding:6px 9px;cursor:pointer}
.project-switcher{width:min(540px,calc(100vw - 32px));max-height:75vh;background:var(--surface,#151c26);color:var(--text,#eee);border:1px solid var(--line,#344050);border-radius:12px;padding:18px}
.project-switcher::backdrop{background:rgb(0 0 0 / .55)}
.project-switcher header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.project-switcher button{color:inherit;background:transparent;border:0;cursor:pointer;font-size:20px}
.project-switcher>input{width:100%;margin-bottom:12px;padding:10px;border-radius:6px;background:var(--bg,#10151d);color:inherit;border:1px solid var(--line)}
.project-switcher>label{display:flex;gap:8px;font-size:13px;margin-bottom:12px}
.project-switch-list{max-height:48vh;overflow:auto;display:grid;gap:5px}
.project-switch-list a{display:flex;gap:15px;justify-content:space-between;padding:12px;border-radius:7px;color:inherit;text-decoration:none}
.project-switch-list a:hover,.project-switch-list a[aria-current]{background:var(--surface-2,#263247)}
.project-switch-list strong{min-width:0;overflow-wrap:anywhere}.project-switch-list small{flex:0 0 auto;color:var(--text-3,#9aa8bc)}
@media(max-width:1500px){.project-tabs [data-project-tab]:not(.active){display:none}.project-tabs .project-tab.active{flex:1;max-width:260px}}
@media(prefers-reduced-motion:reduce){.project-tab.running .project-tab-status-dot{animation:none}}

/* Use available header width for readable project names. */
@media(min-width:981px){
 .topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(16px,2vw,32px)}
 .project-tabs.project-top-context{width:100%;justify-self:stretch}
 .project-tabs .project-tab[data-project-tab]{flex:1 1 230px;width:auto;min-width:100px;max-width:320px}
 .project-tabs .project-tab[data-project-tab].active{flex:1.4 1 300px;max-width:420px}
}
@media(min-width:981px) and (max-width:1500px){.project-tabs .project-tab[data-project-tab].active{max-width:none}}

/* Project creation: one scrolling body, stable heading and actions. */
#createProjectDialog{box-sizing:border-box;width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden}
#createProjectDialog #createProjectForm{display:flex;flex-direction:column;gap:0;max-height:min(820px,calc(100dvh - 34px));padding:0;overflow:hidden}
#createProjectDialog header{flex:none;margin:0;padding:20px 24px;align-items:center}
#createProjectDialog h2{margin:0;font-size:22px}
#createProjectDialog .create-dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;min-height:0;padding:20px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#createProjectDialog .create-dialog-body>.span-2{grid-column:1/-1}
#createProjectDialog .mode-choice{display:flex;flex-direction:column;gap:14px;min-width:0;margin:0}
#createProjectDialog .mode-choice legend{margin-bottom:10px}
#createProjectDialog .create-mode-heading{margin:0 0 7px;color:var(--text-3);font-size:13px}
#createProjectDialog .create-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#createProjectDialog .mode-choice label{display:block;min-width:0;cursor:pointer}
#createProjectDialog .mode-choice label>span{box-sizing:border-box;height:100%;min-height:82px;padding:14px 38px 14px 14px;gap:5px}
#createProjectDialog .mode-choice input:checked+span::after{content:'✓';position:absolute;right:14px;top:14px;color:var(--accent);font-weight:700}
#createProjectDialog .mode-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}
#createProjectDialog footer{flex:none;flex-wrap:wrap;gap:8px;margin:0;padding:16px 24px;background:var(--surface)}
#createProjectDialog footer>span{flex:1 1 260px;line-height:1.5}
#createProjectDialog footer button{flex-shrink:0}
#createProjectDialog .field{min-width:0}
#createProjectDialog .field input[type=file]{max-width:100%;font-size:13px}
body:has(#createProjectDialog[open]){overflow:hidden}
@media(max-width:700px){
 #createProjectDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 #createProjectDialog #createProjectForm{max-height:calc(100dvh - 22px)}
 #createProjectDialog header{padding:16px}
 #createProjectDialog .create-dialog-body{grid-template-columns:1fr;padding:16px;gap:16px}
 #createProjectDialog .create-mode-options{grid-template-columns:1fr;gap:8px}
 #createProjectDialog footer{padding:12px 16px}
 #createProjectDialog footer>span{display:block;flex-basis:100%;font-size:13px}
 #createProjectDialog footer button[type=submit]{margin-left:auto}
}
