/* ============================================================
   ShotFlow Studio · Cinema Console
   最后一层视觉覆盖：只做「材质 / 层级 / 排版」，不改功能与结构。
   设计原则：
     1. 单一强调色（香槟金），其余全部交给中性灰阶；
     2. 取消所有彩虹渐变、彩色顶条、发光描边 —— 那些是廉价感的主要来源；
     3. 用发丝线（1px hairline）+ 留白做层级，而不是用框和阴影；
     4. 数字一律等宽（tabular-nums），标签一律小字大字距；
     5. 动效只做颜色与背景 120–160ms，不做位移与弹跳。
   ============================================================ */

@font-face{
  font-family:"Inter SF";
  src:url("/static/fonts/inter-var.woff2") format("woff2-variations"),
      url("/static/fonts/inter-var.woff2") format("woff2");
  font-weight:400 700;
  font-style:normal;
  font-display:swap;
}

:root{
  /* 底色：影院熄灯后的黑，不是一个纯色块 */
  --bg:#07080a;
  --bg-2:#0a0c10;
  --panel:#0e1116;
  --panel2:#12151b;
  --panel-2:#12151b;
  --panel3:#171b22;

  /* 线：发丝，而不是描边 */
  --line:rgba(255,255,255,.065);
  --line-strong:rgba(255,255,255,.11);

  /* 字 */
  --text:#e9ebef;
  --txt:#e9ebef;
  --muted:#8d939e;
  --dim:#666c77;

  /* 唯一强调色：香槟金；其余状态色一律降饱和 */
  --gold:#d5ae74;
  --gold-2:#b18a52;
  --accent:#d5ae74;
  --acc:#d5ae74;
  --mint:#69c9a7;
  --acc2:#69c9a7;
  --teal:#69c9a7;
  --blue:#7fa6d4;
  --violet:#8d86cf;
  --amber:#d5ae74;
  --red:#df7078;
  --err:#df7078;
  --green:#69c9a7;
  --ok:#69c9a7;
  --run:#8d86cf;
  --warn:#d5ae74;

  --radius:12px;
  --radius-sm:8px;
  --radius-lg:16px;
  --shadow:0 1px 0 rgba(255,255,255,.03) inset;
  --ring:0 0 0 1px rgba(213,174,116,.42), 0 0 0 4px rgba(213,174,116,.09);
}

*{box-sizing:border-box}
html{color-scheme:dark}
::selection{background:rgba(213,174,116,.22);color:#fff}

body{
  background:
    radial-gradient(1200px 560px at 50% -22%, rgba(213,174,116,.05), transparent 62%),
    radial-gradient(820px 460px at 96% -8%, rgba(127,166,212,.028), transparent 64%),
    var(--bg);
  color:var(--text);
  font-family:"Inter SF","Inter","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:13.5px;
  line-height:1.62;
  letter-spacing:.004em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* 胶片颗粒：透明度压到几乎不可见，只用来去掉塑料感 */
body::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:1;
  opacity:.016;mix-blend-mode:soft-light;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='160' height='160' filter='n'/></svg>");
}

/* 滚动条 */
*{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.12) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1);border-radius:99px;border:3px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.2);background-clip:content-box}
::-webkit-scrollbar-track{background:transparent}

a{color:#cbb388;text-decoration:none;transition:color .15s}
a:hover{color:#e8d2ac}

h1,h2,h3,h4{font-weight:600;letter-spacing:-.005em;margin:0}

/* ============================================================
   1. 顶栏 / 页头 / 导航
   ============================================================ */
.topbar{
  padding:11px 20px 0;
  gap:6px 16px;
  background:rgba(8,9,12,.82);
  border-bottom:1px solid var(--line);
  box-shadow:none;
  backdrop-filter:blur(22px) saturate(1.25);
  -webkit-backdrop-filter:blur(22px) saturate(1.25);
}
.topbar-main{gap:16px}

/* 品牌：三格分镜标 + 克制的字标 */
.brand{gap:10px;margin-right:2px}
.logo,.brand .logo,.head .logo,.h1 .logo,.login-brand .logo{
  width:28px;height:28px;flex:0 0 28px;
  border-radius:7px;border:1px solid rgba(213,174,116,.28);
  background:linear-gradient(180deg,#14120e,#0d0c0a) ;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'><rect x='4.2' y='8.2' width='5.4' height='11.6' rx='1.2' fill='none' stroke='%23d5ae74' stroke-width='1.1' opacity='.62'/><rect x='11.3' y='4.6' width='5.4' height='18.8' rx='1.2' fill='%23d5ae74' fill-opacity='.14' stroke='%23d5ae74' stroke-width='1.25'/><rect x='18.4' y='10.2' width='5.4' height='7.6' rx='1.2' fill='none' stroke='%23d5ae74' stroke-width='1.1' opacity='.62'/></svg>");
  background-repeat:no-repeat;background-position:center;background-size:22px 22px;
  font-size:0;line-height:0;color:transparent;letter-spacing:0;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset;
}
.brand h1,h1{font-size:15px;font-weight:600;letter-spacing:.006em;line-height:1.25}
.sub{font-size:11px;color:#6f7681;letter-spacing:.055em;line-height:1.35}

/* 导航：从「一排按钮」变成「一条文本导航」，当前页才有一层薄底 */
.nav{
  background:transparent;border:0;box-shadow:none;padding:0;
  gap:1px;border-radius:0;
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;max-width:100%;
}
.nav::-webkit-scrollbar{height:0;display:none}
.nav a,.nav button{
  padding:7px 10px;border-radius:7px;
  font-size:12.5px;font-weight:500;letter-spacing:.01em;color:#98a0ab;
  border:1px solid transparent;background:transparent;
  transition:color .14s,background .14s,border-color .14s;
  line-height:1.4;
}
.nav a:before{display:none}
.nav a:hover,.nav button:hover{
  color:#eef1f5;background:rgba(255,255,255,.045);
  border-color:transparent;transform:none;box-shadow:none;
}
.nav a:active,.nav button:active{transform:none}
.nav a[aria-current="page"],.nav .active{
  color:#eccd9b;background:rgba(213,174,116,.075);
  border-color:rgba(213,174,116,.2);
  box-shadow:none;font-weight:560;
}
.nav .sep{width:1px;height:13px;margin:0 7px;background:rgba(255,255,255,.09);
  background-image:none;opacity:1}

/* 页头（dashboard / assets / studio 等内页） */
.head{
  gap:12px;margin-bottom:18px;padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.head .logo{width:26px;height:26px;flex:0 0 26px;border-radius:6px;background-size:20px 20px}
.h1{font-size:17px;font-weight:600;letter-spacing:.004em;line-height:1.3}
.h1 small{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:#6f7681;margin-top:3px}
.head .nav{padding:0;flex:1 1 100%;order:20;margin-top:8px}
.head .pill{padding:4px 10px;font-size:11px}

.wrap{padding:20px 24px 44px;max-width:1500px}
.hero{padding:4px 0 16px;margin-bottom:18px;border-bottom:1px solid var(--line);gap:20px}
.hero h1{font-size:22px;letter-spacing:-.015em;font-weight:600}
.hero-sub{font-size:11.5px;color:#7b828d;letter-spacing:.02em}

/* ============================================================
   2. 控件：按钮 / 输入 / 药丸 / 徽章
   ============================================================ */
button,a.ghost,.btn,.ghost,a.btn{
  height:32px;padding:0 13px;
  font:inherit;font-size:12.5px;font-weight:500;letter-spacing:.01em;
  border-radius:8px;border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.028);color:#dde1e7;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  cursor:pointer;text-decoration:none;white-space:nowrap;
  transition:background .14s,border-color .14s,color .14s;
  box-shadow:none;
}
button:hover,a.ghost:hover,.btn:hover,.ghost:hover,a.btn:hover{
  background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.17);
  color:#fff;transform:none;box-shadow:none;filter:none;
}
button:active,.btn:active{transform:none;background:rgba(255,255,255,.04)}
button:focus-visible,.btn:focus-visible,a:focus-visible{outline:none;box-shadow:var(--ring)}

button.primary,.btn.primary,.primary,.wrap .btn:not(.ghost):not(.mini):not(.goldline):not(.danger):not(.on){
  background:#d5ae74;
  border-color:transparent;color:#171106;font-weight:600;
  box-shadow:0 1px 0 rgba(255,255,255,.16) inset;
}
button.primary:hover,.btn.primary:hover,.primary:hover,.wrap .btn:not(.ghost):not(.mini):not(.goldline):not(.danger):not(.on):hover{
  background:#dfbd88;border-color:transparent;color:#171106;filter:none;
}

button.ghost,.btn.ghost,.ghost,button.ghost.small{
  background:transparent;border-color:transparent;color:#9aa1ac;
}
button.ghost:hover,.btn.ghost:hover,.ghost:hover,.wrap .btn.ghost:hover{
  background:rgba(255,255,255,.05);border-color:transparent;color:#eef1f5;
}
button.small,.btn.small,.ghost.small{
  height:26px;padding:0 9px;font-size:11.5px;border-radius:6px;
}
.btn.mini{padding:0 9px;height:26px;border-radius:6px;font-size:11.5px}
button.danger,.btn.danger{border-color:rgba(223,112,120,.28);color:#e58e95;background:transparent}
button.danger:hover,.btn.danger:hover{background:rgba(223,112,120,.09);border-color:rgba(223,112,120,.45);color:#f2a2a8}
button:disabled,.btn:disabled{opacity:.42;cursor:not-allowed;filter:none}
.btn.on{border-color:rgba(213,174,116,.42);color:#eccd9b;background:rgba(213,174,116,.08)}

/* 输入：内凹的深色，而不是半透明白块 */
input,textarea,select{
  background:#0a0c10;color:var(--text);
  border:1px solid rgba(255,255,255,.085);border-radius:8px;
  padding:8px 11px;margin-top:5px;
  font:inherit;font-size:12.5px;line-height:1.5;
  outline:none;
  transition:border-color .14s,box-shadow .14s,background .14s;
}
input::placeholder,textarea::placeholder{color:#5c626c}
input:hover,textarea:hover,select:hover{border-color:rgba(255,255,255,.14)}
input:focus,textarea:focus,select:focus{
  border-color:rgba(213,174,116,.45);background:#0c0e13;
  box-shadow:0 0 0 3px rgba(213,174,116,.075);
}
textarea{resize:vertical;line-height:1.7}
select{cursor:pointer;appearance:none;padding-right:32px;
  background-image:linear-gradient(45deg,transparent 50%,#7d848f 50%),linear-gradient(135deg,#7d848f 50%,transparent 50%);
  background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;
}
select option{background:#12151b;color:#e7ebf1}
select option:checked{background:#20242c;color:#fff}
input[type=checkbox]{accent-color:#d5ae74}
label{font-size:11px;color:#7b828d;letter-spacing:.025em;margin-bottom:9px}
.sidebar label{font-size:11px;margin-bottom:9px}

/* 药丸：全部降为「描边 + 淡字」，不再有彩底发光 */
.pill{
  padding:3px 9px;border-radius:6px;font-size:11px;font-weight:500;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);
  color:#8d939e;letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.pill b{color:#dde1e7;font-weight:560}
.pill.ok,.pill.on{border-color:rgba(105,201,167,.26);background:rgba(105,201,167,.06);color:#82d3b4}
.pill.bad,.pill.offp{border-color:rgba(223,112,120,.24);background:rgba(223,112,120,.055);color:#e08e94}
.pill.wait{border-color:rgba(255,255,255,.08);color:#7b828d}
.pill.wait:before{width:5px;height:5px;background:#d5ae74;opacity:.55;animation:none}
.pill.prof{border-color:rgba(213,174,116,.26);color:#dcbb88}
.pill.remote,.pill.auth{border-color:rgba(141,134,207,.24);color:#b4addf}
.pill.kind{border-color:rgba(255,255,255,.09);color:#8d939e;font-size:10px;padding:2px 6px}
.pill.user{border-color:rgba(255,255,255,.1);color:#c6cad1;background:rgba(255,255,255,.03)}

.badge{
  font-size:10px;padding:2px 7px;border-radius:5px;letter-spacing:.06em;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);color:#8d939e;
  font-weight:500;
}
.badge.ok,.badge.DONE{border-color:rgba(105,201,167,.24);background:rgba(105,201,167,.055);color:#7fcfb0}
.badge.fail,.badge.FAILED{border-color:rgba(223,112,120,.24);background:rgba(223,112,120,.055);color:#e08e94}
.badge.warn{border-color:rgba(213,174,116,.24);background:rgba(213,174,116,.06);color:#dcbb88}
.badge.RUNNING{border-color:rgba(141,134,207,.24);background:rgba(141,134,207,.06);color:#b4addf}

/* 运行状态灯：只有一个小圆点，不加光圈 */
.dot,.node .st,.stage .dot{box-shadow:none}

/* ============================================================
   3. 容器：面板 / 卡片 / 表格 / 弹层
   ============================================================ */
.panel,.card,.rule,.rev,.shot,.script-card,.render-card,.ast,.modal-box,.login-box,
.kpis .kpi,.node-row,.pcard,.node,.sumcell,.deploy-box,.flow,.spark,.log,.tbl,.stage{
  background:#0d1015;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 1px 0 rgba(255,255,255,.028) inset;
  position:relative;
}
/* 关键：去掉所有彩色顶条 —— 廉价感最强的单一元素 */
.card:before,.kpis .kpi:before,.rule:before,.panel:before{display:none !important;content:none}
.card:hover,.panel:hover,.shot:hover,.ast:hover,.node-row:hover,.pcard:hover,.stage:hover,.deploy-item:hover{
  border-color:rgba(255,255,255,.11);
}
.card{padding:16px 16px 13px;border-radius:14px}
.panel{padding:16px}
.card h2,.panel h2{
  font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#858c97;
  margin:0 0 12px;
}
.sidebar{
  background:#08090c;
  border-right:1px solid var(--line);
  padding:6px 18px 24px;gap:0;
  backdrop-filter:none;
}
.sidebar .panel{
  background:transparent;border:0;border-top:1px solid var(--line);
  border-radius:0;padding:16px 0 6px;box-shadow:none;
}
.sidebar .panel:first-child{border-top:0;padding-top:10px}
.sidebar .panel h2{
  padding-left:0;font-size:10.5px;letter-spacing:.16em;color:#7a818c;margin-bottom:14px;
}
.sidebar .panel h2:before{display:none}
.sidebar input,.sidebar textarea{border-radius:8px;font-size:12.5px}

/* 表格 */
table{font-size:12px}
th{
  font-size:9.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#6d7480;
  padding:10px 14px;border-bottom:1px solid var(--line);background:transparent;
}
td{padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.045);color:#c4c9d2}
tbody tr:hover td{background:rgba(255,255,255,.022)}
.tbl{border-radius:12px;overflow:hidden}
.tbl th{background:rgba(255,255,255,.018)}
.tbl td{color:#c4c9d2}

/* 进度 / 标签页 */
.progress{height:3px;border-radius:99px;background:rgba(255,255,255,.06)}
#progress-bar{background:linear-gradient(90deg,#b18a52,#d5ae74 70%,#e8cda0);box-shadow:none;border-radius:99px}
#progress-text{font-size:11px;color:#7b828d;letter-spacing:.04em}
.tabs{gap:0;border-bottom:1px solid var(--line);margin:16px 0 14px}
.tab{
  background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;
  padding:8px 13px;font-size:12.5px;color:#848b96;transition:color .14s,border-color .14s;
}
.tab:hover{color:#e4e8ee;background:transparent;transform:none;box-shadow:none}
.tab.active,.tab.on{color:#eccd9b;background:transparent;border-bottom-color:#d5ae74;font-weight:560}
.wrap .tab{
  border-radius:7px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);color:#8d939e;padding:5px 10px;font-size:11.5px;
}
.wrap .tab.on,.wrap .tab.active{
  border-color:rgba(213,174,116,.36);color:#eccd9b;background:rgba(213,174,116,.08);
}

/* 弹层 */
.modal{background:rgba(4,5,7,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.modal-box{
  background:#0d1015;border:1px solid rgba(255,255,255,.1);border-radius:14px;
  padding:20px 22px;
  box-shadow:0 40px 120px -50px #000, 0 1px 0 rgba(255,255,255,.05) inset;
}
.modal-head h2{font-size:14px;font-weight:600;letter-spacing:.01em}
.modal-hint{font-size:11.5px;color:#7b828d;line-height:1.85}
.modal-box label{font-size:11px;color:#7b828d}

/* 下拉菜单 */
.profile-menu{
  background:#101319;border:1px solid rgba(255,255,255,.1);border-radius:10px;
  box-shadow:0 24px 60px -20px rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.05) inset;
  padding:5px;gap:1px;
}
.profile-item{padding:8px 10px;border-radius:6px;font-size:12px;color:#d3d8e0}
.profile-item:hover{background:rgba(255,255,255,.05);color:#fff}
.profile-item.active{
  background:rgba(213,174,116,.09);color:#f0dcbb;font-weight:560;
  box-shadow:inset 2px 0 0 #d5ae74;
}
.vm-group{font-size:9.5px;letter-spacing:.14em;color:#6d7480;padding:8px 10px 4px}
.vm-name{font-size:12px;font-weight:500}
.vm-meta{font-size:10.5px;color:#7b828d}
.vm-meta.bad{color:#dc8b92}

/* 日志 */
.log{
  background:#07080b;border:1px solid rgba(255,255,255,.055);border-radius:10px;
  padding:12px 14px;font-size:11.5px;line-height:1.75;color:#98a0ac;
  font-family:"JetBrains Mono","Cascadia Mono",Consolas,ui-monospace,monospace;
}

/* 项目列表：行 + 选中时一根金线，不再是填色块 */
.project-list{gap:0}
.project-list li{
  padding:10px 12px;border-radius:8px;background:transparent;
  border:1px solid transparent;border-bottom:1px solid rgba(255,255,255,.045);
  font-size:12.5px;color:#c9ced6;
}
.project-list li:last-child{border-bottom-color:transparent}
.project-list li:hover{background:rgba(255,255,255,.035);border-color:transparent;border-bottom-color:rgba(255,255,255,.045)}
.project-list li.active{
  background:rgba(213,174,116,.055);border-color:transparent;
  box-shadow:inset 2px 0 0 #d5ae74;color:#f2e6d2;
}
.project-list li .pmeta{font-size:10.5px;color:#727986;margin-top:2px}

/* ============================================================
   4. 业务组件
   ============================================================ */
/* 镜头卡 */
.shots{gap:12px}
.shot{padding:12px;gap:8px;border-radius:12px}
.shot-seq{color:#d5ae74;font-weight:600;font-size:12px;letter-spacing:.06em}
.shot video{border-radius:8px;box-shadow:0 12px 30px -22px #000}
.shot .prompt{background:#0a0c10;border:1px solid rgba(255,255,255,.055);border-radius:8px;font-size:11.5px;color:#a9b0bb}

/* 空态：像一张片头卡 */
.content > .empty{min-height:64vh}
.empty-card{
  width:min(500px,94%);padding:34px 34px 28px;border-radius:16px;
  border:1px solid rgba(255,255,255,.075);
  background:radial-gradient(600px 300px at 50% -20%, rgba(213,174,116,.06), transparent 70%), #0b0d11;
  box-shadow:0 40px 100px -70px #000;
}
.empty-kicker{font-size:9.5px;letter-spacing:.32em;color:#b18a52}
.empty-card h2{font-size:24px;font-weight:600;letter-spacing:-.015em;margin:14px 0 10px}
.empty-card p{font-size:12px;color:#7e8590;line-height:1.9;margin:0 0 22px}
.empty-steps{gap:0;flex-direction:row;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:18px}
.empty-steps li{flex:1 1 0;min-width:120px;font-size:11.5px;color:#9aa1ac;align-items:flex-start;flex-direction:column;gap:6px}
.empty-steps b{width:auto;height:auto;border:0;background:none;color:#b18a52;font-size:9.5px;letter-spacing:.16em;padding:0}
.empty-actions{border-top:0;padding-top:20px;margin-top:20px}
.empty-actions .btn{height:34px;padding:0 16px}

/* 节点行 / 表单 */
.node-row{background:#0b0e13;border-radius:10px;padding:10px 12px}
.node-row .nm{color:#dde1e7;font-weight:560;font-size:12px}
.node-row .addr{color:#727986;font-size:10.5px}
.node-form{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}
.node-form-row label{font-size:10.5px;color:#727986}
.deploy-box{background:#0a0c10;border-radius:10px}
.deploy-item{background:#0d1015;border-radius:8px;border-color:rgba(255,255,255,.07)}
.deploy-item.locked{background:rgba(105,201,167,.035);border-color:rgba(105,201,167,.2)}
.deploy-txt b{color:#dde1e7;font-size:11.5px}
.deploy-txt em{color:#7fcfb0}
.deploy-hint,.deploy-txt i{color:#727986}

/* 档位 / 引擎下拉：紧凑的控制件 */
.profile-select,#profile-dd-btn,#vm-dd-btn{
  height:30px;padding:0 12px;border-radius:7px;
  background:#0d1015;border:1px solid rgba(255,255,255,.09);
  font-size:11.5px;color:#c9ced6;letter-spacing:.01em;
}
#vm-dd-btn{max-width:190px;margin-right:6px}
#profile-dd-btn{max-width:230px}
#profile-dd-btn:hover,#vm-dd-btn:hover,.profile-select:hover{border-color:rgba(255,255,255,.18);background:#11141a}
#profile-dd-btn .ps-caret,#vm-dd-btn .ps-caret{color:#7b828d;font-size:9px}

/* 仪表盘 */
.grid{gap:14px}
.hname{font-size:13.5px;font-weight:600}
.hsub{font-size:10.5px;color:#727986}
.tag{font-size:9px;letter-spacing:.09em;padding:2px 6px;border-radius:5px;
  border:1px solid rgba(105,201,167,.22);background:rgba(105,201,167,.055);color:#7fcfb0;font-weight:500}
.tag.off{border-color:rgba(223,112,120,.22);background:rgba(223,112,120,.05);color:#dc8b92}
.ring{width:68px;height:68px;background:conic-gradient(var(--c) calc(var(--p)*1%), rgba(255,255,255,.055) 0)}
.ring:before{inset:6px;background:#0b0e13}
.ring span{font-size:15px;font-weight:600}
.g label{font-size:9.5px;letter-spacing:.12em;color:#6d7480;text-transform:uppercase}
.bar{height:4px;background:rgba(255,255,255,.055)}
.bar i{background:linear-gradient(90deg,#8f7040,#d5ae74)}
.foot{border-top:1px solid rgba(255,255,255,.05);font-size:10px;color:#727986}
.spark{background:#090b0f;border-radius:8px}
.legend{font-size:9.5px;color:#6d7480}
.sumcell{background:#0a0d11;border-radius:10px;padding:10px 12px}
.sumcell span{font-size:9px;letter-spacing:.16em;color:#6d7480}
.sumcell b{font-size:18px;font-weight:600;letter-spacing:-.02em}

/* 工作流图 */
.flow{background:#0b0d11;padding:18px 16px;border-radius:14px}
.node{background:#0d1015;border-radius:10px;transition:border-color .2s,background .2s}
.node .ico{background:rgba(213,174,116,.08);color:#d5ae74;border-radius:6px;font-size:10px}
.node.run{
  border-color:rgba(213,174,116,.4);
  background:rgba(213,174,116,.055);
  box-shadow:none;
}
.node.run .st{background:#d5ae74}
.node.done .st{background:#69c9a7}
.link:before{background:repeating-linear-gradient(90deg,rgba(255,255,255,.1) 0 5px,transparent 5px 10px)}
.link.active:before{background:repeating-linear-gradient(90deg,rgba(213,174,116,.55) 0 5px,transparent 5px 10px)}
.chip{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.07);color:#848b96}
.chip.done{background:rgba(105,201,167,.06);color:#7fcfb0;border-color:rgba(105,201,167,.2)}
.chip.run{background:rgba(213,174,116,.075);color:#dcbb88;border-color:rgba(213,174,116,.24)}
.pbar i{background:linear-gradient(90deg,#b18a52,#d5ae74)}

/* 自动化中枢 */
.rules{gap:12px}
.rule{padding:16px 16px 14px;border-radius:12px}
.rule.on{border-color:rgba(213,174,116,.26)}
.rname{font-size:13px;font-weight:560;letter-spacing:.005em}
.rdesc{font-size:11px;color:#7b828d;line-height:1.75}
.switch{width:38px;height:21px;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1)}
.switch i{width:15px;height:15px;top:2px;left:2px;background:#5d6572}
.switch.on{background:rgba(213,174,116,.16);border-color:rgba(213,174,116,.4)}
.switch.on i{left:19px;background:linear-gradient(180deg,#e2c290,#d5ae74)}
.field label{font-size:10.5px;color:#848b96}
.field input,.field select{font-size:11.5px;padding:6px 8px;border-radius:6px}
.ev{font-size:10px;border-radius:5px;background:rgba(255,255,255,.03)}
.ev.on{border-color:rgba(213,174,116,.35);background:rgba(213,174,116,.08);color:#e3c89b}

/* KPI */
.kpis{gap:12px}
.kpis .kpi{padding:14px 15px;border-radius:12px}
.kpis .kpi .k{font-size:9.5px;letter-spacing:.16em;color:#6d7480}
.kpis .kpi .v{font-size:24px;font-weight:600;letter-spacing:-.025em;margin-top:7px}
.kpis .kpi .n{font-size:10.5px;color:#6d7480}

/* 区块标题 */
.sec{margin-top:24px}
.sec-h{margin-bottom:10px}
.sec-h h2{font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#858c97;display:flex;align-items:center;gap:9px}
.sec-h h2:before{width:2px;height:10px;border-radius:1px;background:#8f7040;margin-right:0}
.sec-h .line{background:linear-gradient(90deg,rgba(255,255,255,.07),transparent)}
.sec-h .sub{font-size:10.5px;color:#6d7480;letter-spacing:.02em}

/* 提示 / 警告块 */
.warnbox{
  border:1px solid rgba(213,174,116,.2);background:rgba(213,174,116,.045);
  color:#dcbb88;border-radius:8px;padding:10px 12px;font-size:11.5px;
}
.toast{
  background:rgba(14,16,21,.96);border:1px solid rgba(213,174,116,.28);
  border-radius:8px;color:#e7d7bb;backdrop-filter:blur(14px);font-size:12px;
}
.rev{border-color:rgba(213,174,116,.2);background:#0d1015;border-radius:12px}

/* 登录页 */
.login-body{
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(213,174,116,.09), transparent 62%),
    radial-gradient(800px 600px at 84% 100%, rgba(127,166,212,.04), transparent 62%),
    #06070a;
}
.login-box{
  width:min(376px,92vw);padding:32px 28px 26px;border-radius:14px;
  border-color:rgba(255,255,255,.09);
  box-shadow:0 60px 140px -60px #000;
}
.login-brand .logo{width:34px;height:34px;flex:0 0 34px;background-size:26px 26px}
.login-form input{padding:10px 12px;border-radius:8px}
.login-form button{height:40px;font-size:12.5px;border-radius:8px}
.login-hint{color:#6f7681;font-size:10.5px}
.login-hint code{background:#12151b;border:1px solid rgba(255,255,255,.07);border-radius:4px;padding:1px 5px}

/* 资产页 / 素材库 */
.filters{gap:8px}
.storage,.assetrow .ab{background:rgba(255,255,255,.05)}
.ast{border-radius:10px;overflow:hidden}
.ast .nm{font-weight:560}

/* ============================================================
   5. 响应式：窄屏要「一条一条」，不要堆成一堵墙
   ============================================================ */
@media (max-width:1080px){
  .topbar{grid-template-columns:minmax(0,1fr);padding:10px 14px 0}
  .topbar-main{gap:10px;flex-wrap:wrap}
  .topbar-right{justify-content:flex-start;order:3;padding-bottom:2px}
  .health-row{padding:8px 0 9px;margin-top:2px}
  .head{flex-wrap:wrap}
}
@media (max-width:720px){
  body{font-size:13px}
  .topbar{padding:8px 12px 0}
  .brand h1,h1{font-size:14px}
  .sub{display:none}
  .logo,.brand .logo{width:26px;height:26px;flex:0 0 26px;background-size:20px 20px}
  .nav{margin-top:2px}
  .nav a,.nav button{font-size:12px;padding:6px 9px}
  .nav .sep{margin:0 4px}
  .health .pill{padding:2px 9px;font-size:10.5px}
  .content{padding:14px 14px 32px}
  .sidebar{padding:4px 14px 18px}
  .wrap{padding:14px 14px 32px}
  .empty-card{padding:24px 22px 20px}
  .empty-card h2{font-size:20px}
  .empty-steps li{flex:1 1 100%}
  .shot,.card,.panel{border-radius:10px}
  .modal-box{padding:16px}
  #vm-dd-btn,#profile-dd-btn{max-width:100%}
}

/* 让状态带在窄屏可以横向拖，而不是换三行 */
.health{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.health::-webkit-scrollbar{height:0;display:none}
.health .pill{
  flex:0 0 auto;border:0;background:transparent;border-radius:0;
  padding:2px 12px;font-size:11px;color:#7b828d;position:relative;letter-spacing:.02em;
}
.health .pill:first-child{padding-left:0}
.health .pill + .pill:before{
  content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:1px;height:11px;background:rgba(255,255,255,.08);
}
.health .pill.ok{color:#82d3b4}
.health .pill.bad{color:#e08e94}
.health .pill b{color:#b9bec7}

@media print{
  body::after,.topbar,.sidebar{display:none}
  body{background:#fff;color:#000}
}

/* ============================================================
   6. 顶栏第二行：做成「状态条」——引擎 / 档位与运行状态同排
   ============================================================ */
.health-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:7px 0 9px;margin-top:3px;
  border-top:1px solid rgba(255,255,255,.055);
}
.engine-controls{display:flex;align-items:center;gap:6px;flex:0 0 auto;position:relative;z-index:3}
.engine-controls:after{content:"";width:1px;height:16px;background:rgba(255,255,255,.08);margin-left:5px}
#vm-dd-btn{max-width:210px;margin-right:0}
#profile-dd-btn{max-width:170px}
.health{flex:1 1 320px;min-width:0}
.health .pill:first-child{padding-left:0}

@media (max-width:820px){
  .health-row{gap:7px}
  .engine-controls{width:100%}
  .engine-controls:after{display:none}
  .health{flex:1 1 100%}
}

/* 空态步骤：竖向三行，编号成一列，读起来像片头字幕表 */
.empty-card{width:min(540px,94%)}
.empty-steps{
  display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;
  border-top:1px solid var(--line);padding-top:4px;
}
.empty-steps li{
  flex:0 0 auto;min-width:0;flex-direction:row;align-items:baseline;
  gap:12px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.045);
  font-size:11.5px;color:#98a0ab;
}
.empty-steps li:last-child{border-bottom:0}
.empty-steps b{flex:0 0 22px;text-align:left;font-size:9.5px;letter-spacing:.14em;color:#b18a52}

/* 侧栏首块留一点呼吸 */
.sidebar{padding-top:8px}

/* 侧栏项目行：清掉 theme 里「卡中卡」的底，只留发丝分隔与选中金线 */
.sidebar .project-list li{
  background:transparent;border:1px solid transparent;
  border-bottom:1px solid rgba(255,255,255,.05);border-radius:8px;
  padding:9px 11px 9px 12px;
}
.sidebar .project-list li:hover{background:rgba(255,255,255,.035)}
.sidebar .project-list li.active{
  background:rgba(213,174,116,.05);border-color:transparent;
  border-bottom-color:rgba(213,174,116,.22);box-shadow:inset 2px 0 0 #d5ae74;
}
.sidebar .project-list li .proj-del{
  width:18px;height:18px;color:#5f6672;border:0;background:transparent;
}
.sidebar .project-list li .proj-del:hover{color:#df7078;background:transparent;border-color:transparent}

/* 账号：一颗小圆点 + 名字，不再是一块厚药丸 */
.pill.user{
  border:0;background:transparent;color:#a9b0bb;
  padding:4px 6px;font-size:11.5px;letter-spacing:.02em;
}
.pill.user:before{
  content:"";width:5px;height:5px;border-radius:50%;
  background:#d5ae74;opacity:.8;margin-right:7px;
}
.topbar-right{gap:2px}

/* responsive.css 里有一条旧规则把状态条锁在第 1 列（grid-area:2/1），
   这里用更高的选择器优先级把它放回「横跨整行」，否则状态会被裁在中间。 */
.topbar > .health-row{
  grid-area:2 / 1 / 3 / -1;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:6px 0 10px;margin-top:2px;
  border-top:1px solid rgba(255,255,255,.055);
}
@media (max-width:1000px){
  .topbar > .health-row{grid-area:auto}
}

/* 顶栏布局接管：≥901 用「上行=品牌+导航+账号 / 下行=引擎档位+状态」两行结构。
   responsive.css 里旧的 grid-area 版本会被这里按选择器优先级覆盖。 */
@media (min-width:901px){
  body > .topbar{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px}
  body > .topbar > .topbar-main{grid-column:1;grid-row:1;min-width:0}
  body > .topbar > .topbar-right{grid-column:2;grid-row:1;align-self:center;padding-bottom:0;justify-content:flex-end;flex-wrap:nowrap}
  body > .topbar > .health-row{grid-column:1 / -1;grid-row:2}
}
@media (max-width:900px){
  body > .topbar{grid-template-columns:minmax(0,1fr) auto;padding:10px 14px;gap:4px 10px}
  body > .topbar > .topbar-main{grid-column:1 / -1;grid-row:1;flex-wrap:wrap;gap:0 12px;row-gap:2px}
  body > .topbar > .topbar-main .brand>div>p{display:none}
  body > .topbar > .topbar-main .nav{width:100%;flex-wrap:wrap;gap:0}
  body > .topbar > .topbar-main .nav a{padding:0 7px;height:26px;font-size:11px}
  body > .topbar > .health-row{grid-column:1;grid-row:2;margin-top:4px}
  body > .topbar > .topbar-right{grid-column:2;grid-row:1;align-self:flex-start;justify-content:flex-end;flex-wrap:nowrap;gap:4px;padding-top:6px}
  body > .topbar > .topbar-right .gpu-node,body > .topbar > .topbar-right .vm-dd{display:none}
}

/* 空态标题要压过 .empty 的灰字继承 */
.empty-card h2{color:#eef0f4}
.empty-card p{color:#858c97}

/* 导航再收一点，保证 10 个入口在 1280 宽下不被挤掉最后一个 */
.nav a,.nav button{padding:7px 9px;font-size:12px}
.nav .sep{margin:0 5px}
.topbar-right{gap:2px}

/* 账号菜单：右上角一颗用户名，点开才是账号操作 */
.acct{position:relative;display:inline-flex;align-items:center}
.acct-menu{
  min-width:172px;display:flex;flex-direction:column;gap:1px;
  background:#0f1218;border:1px solid rgba(255,255,255,.1);border-radius:10px;
  padding:5px;box-shadow:0 28px 60px -22px rgba(0,0,0,.9),0 1px 0 rgba(255,255,255,.05) inset;
  z-index:80;
}
.acct-menu button{
  height:30px;justify-content:flex-start;border:0;background:transparent;
  border-radius:6px;padding:0 10px;font-size:12px;color:#c6cbd4;
}
.acct-menu button:hover{background:rgba(255,255,255,.055);color:#fff;border:0}
.acct-menu .sep{height:1px;background:rgba(255,255,255,.07);margin:4px 2px}
#me{cursor:pointer;user-select:none}
#me:focus-visible{outline:none;box-shadow:var(--ring)}

/* ============ 内页精修（第 10 节） ============ */
/* 页头：标题收敛、副标单行灰、底部发丝线 */
h1{font-size:20px;font-weight:600;letter-spacing:-.01em;margin:0 0 3px}
.sub{font-size:12px;line-height:1.5;color:#868d98;margin:0 0 14px;max-width:900px}
.card h2{font-size:13px;font-weight:600;letter-spacing:.01em}
.card h2 span{font-size:11px;letter-spacing:.02em}

/* 门限卡：彩色描边降成极淡提示，状态只靠文字与点 */
.gate-item{background:#0b0e13;border:1px solid rgba(255,255,255,.055);border-radius:9px;padding:9px 10px}
.gate-item.ok{border-color:rgba(105,201,167,.16)}
.gate-item.bad{border-color:rgba(223,112,120,.18)}
.gate-item b{font-size:11.5px;font-weight:600;color:#d7dbe2;letter-spacing:.01em}
.gate-item.ok .st{color:#7ed0b2}
.gate-item.bad .st{color:#e58b91}

/* 环形表：降饱和，环更细，数字更像仪表 */
.ring{width:68px;height:68px;filter:saturate(.55)}
.ring:before{inset:5px;background:#0c1016}
.ring span{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.ring span i{font-size:9px;color:#8b929d}

/* 采样曲线画布：给一条底与细边，避免像空输入框 */
.spark{background:linear-gradient(180deg,#0b1017,#090d13);border:1px solid rgba(255,255,255,.05);border-radius:8px}

/* 状态徽标：真正重要的只有"在线/运行"，其余降权 */
.pbadge{background:transparent;border:1px solid rgba(255,255,255,.1);color:#9aa1ac;font-size:10.5px;letter-spacing:.06em}
.pbadge.live{border-color:rgba(105,201,167,.3);color:#7ed0b2;background:rgba(105,201,167,.06)}

/* 节点卡头部：状态收成右侧一枚点+字，标题最多两行 */
.chead{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}
.chead>div:first-child{min-width:0;flex:1 1 auto}
.hname{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:13.5px;line-height:1.38;font-weight:600;letter-spacing:-.005em}
.chead .tag{font-size:9.5px;letter-spacing:.06em;padding:2px 5px;border-radius:4px;vertical-align:1px;
  border:1px solid rgba(213,174,116,.28);color:#cfa670;background:rgba(213,174,116,.05)}
.hsub{font-size:10.5px;color:#7f8792;letter-spacing:.015em;margin-top:3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ost{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;margin-top:2px;
  font-size:11px;white-space:nowrap;letter-spacing:.02em}
.ost .dot{width:6px;height:6px;border-radius:50%;display:inline-block}

/* 内页页头右侧的读数：去掉三个圆角框，只留"标签 + 数值" */
.head .pill:not(.user){
  background:transparent;border:0;padding:0 12px 0 0;height:auto;border-radius:0;
  font-size:11px;letter-spacing:.02em;color:#7c8490
}
.head .pill:not(.user) b{color:#e2e6ed;font-weight:600}
.head .pill:not(.user)+.pill:not(.user){}

/* 导演台 hero 头：图标与标题顶对齐，说明文字降成一行注释 */
.hero-id{align-items:flex-start;gap:10px}
.hero-id .logo{margin-top:2px;width:24px;height:24px;flex:0 0 24px;background-size:17px 17px}
.hero h1{font-size:20px;font-weight:600;letter-spacing:-.01em;margin:0;line-height:1.4}
.hero-sub{max-width:1040px;margin:4px 0 0;font-size:11.5px;line-height:1.65;color:#868d98}
.hero .nav{margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.05)}

/* 素材库：存储条从"六个彩色小卡"改成"六列仪表"，说明文字的金/绿霓虹收掉 */
.policy{font-size:11.5px;line-height:1.85;color:#8b929d;border-left:2px solid rgba(213,174,116,.45);padding-left:12px}
.policy b{color:#d5ae74;font-weight:600}
.sbox{background:transparent;border:0;border-top:1px solid rgba(255,255,255,.06);border-radius:0;padding:10px 0 0}
.sbox .k{font-size:10px;letter-spacing:.1em;color:#78818c}
.sbox .v{font-size:15px;font-weight:600;color:#e9ebef;margin-top:4px;font-variant-numeric:tabular-nums;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sbox.ok .v{color:#e9ebef}
.sbox.warn .v{color:#e0858c}
.chip{background:transparent;border-color:rgba(255,255,255,.08);color:#8d939e}
.chip:hover{border-color:rgba(255,255,255,.16);color:#c9ced6}
.chip.on{border-color:rgba(213,174,116,.42);color:#e2c091;background:rgba(213,174,116,.055)}

/* KPI 读数块：去掉数字底下的"内嵌小盒"，只留字 */
.kpi{box-shadow:none}
.kpi .k{font-size:10px;letter-spacing:.09em;color:#8b929d}
.kpi .v{background:transparent;border:0;border-radius:0;padding:0;font-size:23px;font-weight:600;
  line-height:1.25;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.kpi .v small{font-size:11.5px;font-weight:500;color:#79818c;margin-left:3px;letter-spacing:0}
.kpi .n{font-size:10.5px;color:#79818c;margin-top:3px}

/* 同上：把 .k / .n 的浅色"底槽"也去掉，读数块整块干净 */
.kpi .k,.kpi .n{background:transparent;border:0;border-radius:0;padding:0}

/* 窄屏（<900）压缩顶栏：品牌只留名字、导航可横滑、隐藏说明性副标 */
@media (max-width:900px){
  .brand small,.topbar-main .sub{display:none}
  .nav{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .health-row{gap:10px 12px;flex-wrap:wrap}
}

/* 云机卡：只让"开机"是实心金，其余操作降成安静按钮，避免一排四个金块 */
.ops .btn:not(.primary):not(.danger){
  background:transparent;border:1px solid rgba(255,255,255,.1);color:#a9b0ba
}
.ops .btn:not(.primary):not(.danger):hover{border-color:rgba(255,255,255,.2);color:#e9ebef}
.ops .btn.danger{background:transparent;border:1px solid rgba(223,112,120,.28);color:#d98b92}

/* 创作者中心：五个步骤从"五个小盒子"改成一条编号序列（有分隔线、无框） */
.steps{grid-template-columns:repeat(5,1fr);gap:0;margin:10px 0 14px;
  border-top:1px solid rgba(255,255,255,.06);padding-top:10px}
.step{border:0;border-left:1px solid rgba(255,255,255,.06);border-radius:0;padding:2px 12px 2px 12px;
  font-size:10.5px;color:#8b929d;line-height:1.55}
.step:first-child{border-left:0;padding-left:0}
.step b{font-size:10px;letter-spacing:.06em;color:#cfa877;margin-bottom:3px}

/* 多行输入框留一点呼吸，避免首行贴边 */
textarea{padding:10px 12px}

/* ===== 11 · 度量对齐（像素级） ===== */
/* 控件高度：输入/下拉 34、常规按钮 34、紧凑按钮 28、导航 30 */
input:not([type=checkbox]):not([type=radio]):not([type=file]),select{height:34px;padding:0 11px}
textarea{padding:10px 11px;line-height:1.7}
.btn{height:34px;padding:0 14px}
.btn.small,.ghost.small{height:28px;padding:0 10px}
.nav a,.nav button{height:30px;padding:0 10px;display:inline-flex;align-items:center}

/* 卡片基线：12 圆角 / 16 内边距 / 标题 12.5 */
.card{border-radius:12px;padding:16px}
.card h2{font-size:12.5px;margin-bottom:10px}
.card h2 span{font-size:10.5px}

/* 流水线状态：拆掉"卡中卡"，改发丝线行 */
.stage{background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.055);border-radius:0;
  padding:11px 2px;margin:0;gap:12px}
.stage:last-child{border-bottom:0}
.stage .dot{width:7px;height:7px}
.stage b{font-size:12.5px;font-weight:600;letter-spacing:-.005em}
.stage .detail{font-size:10.5px;color:#79818c;line-height:1.5;margin-top:1px}
.stage .pill{min-width:54px;justify-content:center;height:22px;border-radius:6px;
  font-size:9.5px;letter-spacing:.07em;color:#9aa1ac}

/* 出片门槛：等高、内边距收紧、标题与状态分离 */
.gate-grid{gap:8px}
.gate-item{min-height:68px;padding:10px 11px;display:flex;flex-direction:column;gap:3px}
.gate-item b{font-size:11px;margin:0}
.gate-item .st{font-size:10px;letter-spacing:.02em}

/* 项目列表：删除按钮只在悬停/聚焦时露出来 */
.project-list li .proj-del{opacity:0;transition:opacity .12s ease}
.project-list li:hover .proj-del,.project-list li:focus-within .proj-del{opacity:1}

/* 三档按钮层级：实心金（主）/ 金描边（次主）/ 中性描边（次） */
.btn.goldline{background:transparent;border:1px solid rgba(213,174,116,.45);color:#e2c391}
.btn.goldline:hover{background:rgba(213,174,116,.08);border-color:rgba(213,174,116,.62);color:#f0d3a9}

/* 流水线行再收紧 4px，5 行省出一行的高度 */
.stage{padding:9px 2px}

/* ===== 12 · 覆盖旧 theme 的 .wrap 级规则 =====
   旧 theme 里存在 .wrap .btn / .wrap .card 这类"父容器 + 类"的复合选择器，
   单类选择器压不过它们。这里统一采用"双类"写法（.card.card / .btn.btn.ghost），
   特异性持平且本文件最后加载，因此无需 !important 即可稳定生效。 */

.btn.btn,body .wrap .btn{
  height:34px;padding:0 14px;border-radius:8px;font-weight:600;
  background-color:#d5ae74;background-image:none;border:0;color:#171106;
  box-shadow:none;transform:none;
}
.btn.btn:hover,body .wrap .btn:hover{background-color:#dfbd88;filter:none;transform:none;color:#171106}
.btn.btn.ghost,body .wrap .btn.ghost{
  background-color:transparent;background-image:none;border:1px solid rgba(255,255,255,.11);
  color:#c9ced6;font-weight:500;box-shadow:none;
}
.btn.btn.ghost:hover,body .wrap .btn.ghost:hover{
  background-color:transparent;border-color:rgba(255,255,255,.2);color:#fff;filter:none;transform:none;
}
.btn.btn.goldline,body .wrap .btn.goldline{
  background-color:transparent;background-image:none;
  border:1px solid rgba(213,174,116,.45);color:#e2c391;
}
.btn.btn.goldline:hover,body .wrap .btn.goldline:hover{
  background-color:rgba(213,174,116,.08);border-color:rgba(213,174,116,.62);color:#f0d3a9;
}
.btn.btn.danger,body .wrap .btn.danger{
  background-color:transparent;background-image:none;
  border:1px solid rgba(223,112,120,.3);color:#dd9096;
}
.btn.btn.danger:hover,body .wrap .btn.danger:hover{background-color:rgba(223,112,120,.08);color:#eda1a7}
.btn.btn.small,body .wrap .btn.small,.btn.ghost.small,.ghost.ghost.small{
  height:28px;padding:0 10px;font-size:11.5px;border-radius:7px;
}

.card.card{padding:16px;border-radius:12px}
.card.card h2{font-size:12.5px;margin-bottom:10px}
.card.card h2 span{font-size:10.5px;letter-spacing:.02em}

input:not([type=checkbox]):not([type=radio]):not([type=file]),select{height:34px;padding:0 11px}

.stage.stage{
  background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.055);
  border-radius:0;padding:10px 2px;margin:0;gap:12px;
}
.stage.stage:last-child{border-bottom:0}
.stage.stage .dot{width:7px;height:7px}
.stage.stage b{font-size:12.5px;font-weight:600;letter-spacing:-.005em}
.stage.stage .detail{font-size:10.5px;color:#79818c;margin-top:1px}
.stage.stage .pill{min-width:54px;justify-content:center;height:22px;border-radius:6px;
  font-size:9.5px;letter-spacing:.07em;color:#9aa1ac;background:transparent;
  border:1px solid rgba(255,255,255,.1);box-shadow:none}

.gate-item.gate-item{min-height:72px;padding:10px 11px;display:flex;flex-direction:column;gap:3px}
.gate-item.gate-item b{font-size:11px;margin:0}
.gate-item.gate-item .st{font-size:10px;letter-spacing:.02em}

/* ── 13. 顶栏单行化 + 侧栏度量复核 ─────────────────────── */
@media (min-width:1280px){
  .topbar-main{flex-wrap:nowrap;min-width:0;gap:18px}
  .topbar-main .nav{display:flex;flex-wrap:nowrap;flex:1 1 auto;min-width:0;gap:0;overflow:hidden}
  .topbar-main .nav a{padding:0 8px;height:30px}
  .topbar-main .nav .sep{margin:0 5px}
  .topbar-main .brand{flex:0 0 auto}
  .topbar-main .brand>div{max-width:none}
}

/* 品牌文字裁切，避免压到导航 */
.topbar-main .brand>div{min-width:0;overflow:hidden}
.topbar-main .brand>div>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-main .brand{min-width:0}

/* 出片门槛：控制列宽，长条目不再挤压 */
.gate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gate-item .st{font-size:10.5px;line-height:1.5}
.gate-grid .gate-item{min-height:86px}
@media (max-width:1240px){.gate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 空采样框不显示描边占位 */
.spark:empty{border-color:transparent;background:transparent;box-shadow:none}

/* 窄桌面：状态条横向滚动，不裁切 */
@media (max-width:1279px){
  .health-row{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}
  .health-row::-webkit-scrollbar{display:none}
  .health-row>*{flex:0 0 auto}
}

/* 出片门槛：等高 82，标题单行、明细两行截断 */
.gate-item.gate-item{height:74px;min-height:74px;padding:9px 10px;display:flex;flex-direction:column;gap:3px;overflow:hidden;border-radius:10px}
.gate-item.gate-item b{font-size:11px;font-weight:600;color:#ccd1d9;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gate-item.gate-item .st{font-size:10px;font-weight:600;letter-spacing:.02em}
.gate-item.ok .st{color:#8fbfa4}
.gate-item.bad .st{color:#d9838f}
.gate-item.gate-item>div{font-size:10.5px;line-height:1.55;color:#8d939e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 自动化中枢：卡片按内容高度、卡内按钮降一级 */
.rules{align-items:start}
.btn.btn.mini.primary{background:transparent;border:1px solid rgba(213,174,116,.45);color:#e2c391;box-shadow:none;font-weight:600}
.btn.btn.mini.primary:hover{background:rgba(213,174,116,.09);border-color:rgba(213,174,116,.62);color:#f0d3a9}
.btn.btn.mini:not(.primary):not(.danger){background:transparent;border:1px solid rgba(255,255,255,.11);color:#c0c5cd;font-weight:500}
.btn.btn.mini:not(.primary):not(.danger):hover{border-color:rgba(255,255,255,.2);color:#dcdfe4}

/* 仪表盘导航在窄桌面换行，不裁切 */
.head .nav{flex-wrap:wrap;overflow:visible;row-gap:2px}

/* 危险动作：只描边，不抢实心金 */
.btn.btn.danger{background:transparent;background-image:none;border:1px solid rgba(223,112,120,.38);color:#dd8c92;box-shadow:none}
.btn.btn.danger:hover{background:rgba(223,112,120,.09);border-color:rgba(223,112,120,.55);color:#eda1a7}

/* 开关态按钮：描边金，不再抢实心金 */
.btn.btn.on{background:rgba(213,174,116,.08);background-image:none;border:1px solid rgba(213,174,116,.42);color:#eccd9b;font-weight:600}
.btn.btn.on:hover{background:rgba(213,174,116,.13);border-color:rgba(213,174,116,.58)}

/* 卡标题：金色竖线 + 右侧附注（唯一来源，原先寄居 theme.css） */
.card h2{position:relative;padding-left:11px;display:flex;align-items:center;gap:8px;min-height:15px}
.card h2:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:2px;height:11px;border-radius:2px;background:linear-gradient(180deg,#e6cda2,#a98352)}
.card h2 span{margin-left:auto;text-transform:none;font-weight:600}

/* 小型 ghost 按钮保留描边，和正文提示区分开 */
.btn.btn.ghost.small,.btn.ghost.small{border:1px solid rgba(255,255,255,.12);color:#c6cbd3;padding:0 10px;height:28px;font-size:11.5px;border-radius:7px}
.btn.ghost.small:hover{border-color:rgba(213,174,116,.38);color:#e8d1ab}

/* 窄桌面：双列不塌成一列，侧栏收窄；更窄才堆叠 */
@media (min-width:861px) and (max-width:1000px){
  .layout{grid-template-columns:280px minmax(0,1fr)!important}
  .sidebar{padding:6px 12px 20px}
  .sidebar .panel{padding:12px 12px 14px}
}

/* 空态标题与项目删除钮的最终归属 */
body .empty-card h2{color:#eef0f4}
.proj-del{opacity:0;transform:none;transition:opacity .15s}
.project-list li:hover .proj-del,.project-list li:focus-within .proj-del,.proj-del:focus-visible{opacity:1}

/* 仪表盘主机卡：状态字与标签不折行 */
.ost{flex:0 0 auto;white-space:nowrap}
.hname{min-width:0}
.hname .tag{flex:0 0 auto;white-space:nowrap}

/* ============ 15. 自动提示词 / 配乐时间轴 ============ */
.pb-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.pb-row > select{flex:1 1 150px;min-width:0}
.pb-row > button{flex:0 0 auto}
.pb-out{margin-top:8px;padding:8px 10px;max-height:160px;overflow:auto;
  font-size:11.5px;line-height:1.7;color:#9aa1ac;white-space:pre-wrap;word-break:break-word;
  background:rgba(255,255,255,.022);border:1px solid rgba(255,255,255,.055);border-radius:8px}
.pb-out a{color:#e3c89e;text-decoration:none;border-bottom:1px solid rgba(213,174,116,.35)}
.bgm-cues{display:flex;flex-direction:column;gap:4px;margin:0;max-height:230px;overflow:auto}
.bgm-cue{display:grid;align-items:center;gap:8px;padding:7px 9px;border-radius:8px;
  grid-template-columns:48px 62px minmax(0,1fr) 46px 52px 42px;
  background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.05);font-size:11.5px}
.bgm-cue .t{color:#e3c89e;font-variant-numeric:tabular-nums;font-weight:600}
.bgm-cue .mood{font-size:10px;color:#c8ab7c;text-align:center;padding:2px 0;border-radius:999px;
  border:1px solid rgba(213,174,116,.28);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bgm-cue .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cdd2da}
.bgm-cue .du,.bgm-cue .gn{color:#8d939e;font-size:10.5px;text-align:right;font-variant-numeric:tabular-nums}
.bgm-cue .btn{height:24px !important;min-height:24px;padding:0 8px;font-size:10.5px;line-height:1}

#peText{height:58px !important;min-height:58px !important;resize:vertical}

.pb-hint{flex:0 0 auto;font-size:11px;color:#8d939e;white-space:nowrap}
#genSec{flex:0 0 88px}

