:root{
  --primary:#5B5BF7; --primary2:#7C5CFF; --blue:#2E5BFF;
  --ink:#1B1F3B; --ink2:#4A4F6A; --muted:#8A90A8; --line:#ECEEF6;
  --bg:#F5F6FB; --card:#FFFFFF; --radius:20px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{width:1440px;height:900px;overflow:hidden}
body{
  font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  background:linear-gradient(160deg,#EEF1FF 0%,#F7F8FD 40%,#F5F6FB 100%);
  color:var(--ink); display:flex; align-items:center; justify-content:center;
}
.app{
  width:1392px;height:852px;background:#FAFBFF;border-radius:28px;overflow:hidden;
  display:grid;grid-template-columns:236px 1fr;
  box-shadow:0 30px 80px rgba(62,70,130,.16), 0 2px 0 rgba(255,255,255,.8) inset;
}
/* ---------------- sidebar ---------------- */
.sidebar{
  background:linear-gradient(180deg,#4B45E0 0%,#5E50EC 45%,#7C5CFF 100%);
  color:#fff;padding:18px 14px 12px;display:flex;flex-direction:column;position:relative;overflow:hidden;
}
.sidebar:before{content:"";position:absolute;width:280px;height:280px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),transparent 65%);top:-120px;right:-120px}
.brand{display:flex;align-items:center;gap:10px;padding:2px 6px 18px;position:relative}
.logo{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 16px rgba(20,10,80,.25)}
.logo svg{width:21px;height:21px}
.brand-name{font-size:16.5px;font-weight:700;letter-spacing:.5px}
.brand-sub{font-size:10.5px;color:rgba(255,255,255,.72);margin-top:2px}
.nav{display:flex;flex-direction:column;gap:2px;position:relative;flex:1}
.nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:11px;
  color:rgba(255,255,255,.82);text-decoration:none;font-size:13px;transition:.2s}
.nav a svg{width:17px;height:17px;opacity:.9}
.nav a.on{background:rgba(255,255,255,.18);color:#fff;font-weight:600;
  box-shadow:0 6px 16px rgba(20,10,80,.16)}
.nav a.on svg{opacity:1}
.side-bottom{position:relative;display:flex;flex-direction:column;gap:10px;padding:0 2px 0}
.pro-card{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);
  border-radius:13px;padding:10px 12px}
.pro-card .t{font-size:12px;font-weight:600;display:flex;align-items:center;gap:6px}
.pro-card .d{font-size:10px;color:rgba(255,255,255,.66);margin:4px 0 8px}
.pro-btn{display:block;text-align:center;background:#fff;color:#5B4FE8;font-size:11px;
  font-weight:700;border-radius:8px;padding:5px 0}
.user{display:flex;align-items:center;gap:8px;padding:6px 2px}
.avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#FFD8A8,#FFB86B);
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:#7A4A12;flex:none}
.user .n{font-size:12.5px;font-weight:600}
.user .e{font-size:10px;color:rgba(255,255,255,.6)}
/* ---------------- main ---------------- */
.main{padding:20px 24px 16px 26px;display:flex;flex-direction:column;gap:13px;overflow:hidden}
.topbar{display:flex;align-items:flex-start;justify-content:space-between}
.topbar h1{font-size:22px;letter-spacing:.2px}
.topbar h1 span{font-weight:400}
.topbar p{color:var(--muted);font-size:12px;margin-top:5px}
.top-actions{display:flex;align-items:center;gap:10px;margin-top:2px}
.search{width:270px;height:38px;background:#fff;border:1px solid var(--line);border-radius:12px;
  display:flex;align-items:center;gap:8px;padding:0 12px;color:#A5AAC0;font-size:12px;
  box-shadow:0 4px 14px rgba(80,90,160,.05)}
.search svg{width:15px;height:15px}
.icon-btn{width:38px;height:38px;border-radius:11px;background:#fff;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:#7C819B;box-shadow:0 4px 14px rgba(80,90,160,.05)}
.icon-btn svg{width:17px;height:17px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;
  display:flex;align-items:center;gap:12px;box-shadow:0 8px 22px rgba(80,90,160,.05)}
.stat .ic{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:none}
.stat .ic svg{width:19px;height:19px}
.stat .v{font-size:21px;font-weight:700;line-height:1}
.stat .k{font-size:11px;color:var(--muted);margin-top:4px}
.stat .d{margin-left:auto;font-size:10.5px;color:#10B981;background:#E9FBF4;border-radius:8px;padding:4px 7px}
.stat .d.warn{color:#B45309;background:#FFF2E4}
.ic.purple{background:#EFEDFF;color:#6C5CE7}
.ic.blue{background:#EAF2FF;color:#2E5BFF}
.ic.orange{background:#FFF2E4;color:#F59E0B}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:2px}
.section-head h2{font-size:15.5px}
.section-head span{font-size:11.5px;color:var(--muted)}
.section-head .link{color:var(--primary);font-weight:600;cursor:pointer}
.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tool{border-radius:17px;padding:15px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.9);
  min-height:130px;display:flex;flex-direction:column;justify-content:space-between;
  box-shadow:0 10px 26px rgba(80,90,160,.07)}
.tool:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;
  background:rgba(255,255,255,.5);filter:blur(2px);right:-38px;top:-46px}
.tool .t-ic{width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;
  color:#fff;box-shadow:0 8px 18px rgba(80,90,160,.18);position:relative;z-index:1}
.tool .t-ic svg{width:22px;height:22px}
.tool .t-title{font-size:14px;font-weight:700;margin-top:10px;position:relative;z-index:1}
.tool .t-sub{font-size:10.8px;color:#7C819B;margin-top:4px;line-height:1.5;position:relative;z-index:1}
.tool .arrow{position:absolute;right:14px;bottom:14px;width:28px;height:28px;border-radius:50%;
  background:#fff;display:flex;align-items:center;justify-content:center;color:#8A90A8;
  box-shadow:0 4px 12px rgba(80,90,160,.12);z-index:1}
.tool .arrow svg{width:13px;height:13px}
.t1{background:linear-gradient(135deg,#EFEDFF 0%,#F8F5FF 70%)}
.t1 .t-ic{background:linear-gradient(135deg,#7C6CF6,#9B8CFF)}
.t2{background:linear-gradient(135deg,#EAF2FF 0%,#F5F9FF 70%)}
.t2 .t-ic{background:linear-gradient(135deg,#3B82F6,#60A5FA)}
.t3{background:linear-gradient(135deg,#FFF2E4 0%,#FFF9F2 70%)}
.t3 .t-ic{background:linear-gradient(135deg,#F59E0B,#FBBF24)}
.t4{background:linear-gradient(135deg,#E9FBF4 0%,#F5FFFB 70%)}
.t4 .t-ic{background:linear-gradient(135deg,#10B981,#34D399)}
.bottom-grid{display:grid;grid-template-columns:1fr 318px;gap:12px;flex:1;min-height:0}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 26px rgba(80,90,160,.05)}
.recent{padding:14px 16px;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.recent h2{font-size:14.5px;margin-bottom:8px}
.task{display:flex;align-items:center;gap:11px;padding:8px 6px;border-radius:12px}
.task:hover{background:#F8F9FF}
.task .t-av{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-size:15px;flex:none}
.task .t-name{font-size:12.8px;font-weight:600}
.task .t-meta{font-size:10.8px;color:var(--muted);margin-top:4px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chip{font-size:9.8px;padding:2px 7px;border-radius:6px;background:#F2F3FB;color:#6B6F8A}
.chip.g{background:#E9FBF4;color:#0E9F6E}
.chip.b{background:#EAF2FF;color:#2E5BFF}
.chip.o{background:#FFF2E4;color:#B45309}
.task .time{margin-left:auto;font-size:10.8px;color:#A5AAC0;flex:none}
.more{margin-top:auto;padding-top:10px;font-size:11px;color:#5B5BF7;font-weight:600;display:flex;align-items:center;gap:4px}
.more svg{width:12px;height:12px}
.right-col{display:flex;flex-direction:column;gap:12px;min-height:0}
.presets{padding:13px 14px}
.presets h2, .recent-gen h2{font-size:13.5px;margin-bottom:8px}
.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.preset{background:#F8F9FF;border:1px solid #EEF0FA;border-radius:10px;padding:7px 8px;font-size:10.6px;color:#4A4F6A}
.preset b{display:block;font-size:11px;color:#2C3150;margin-bottom:2px}
.recent-gen{padding:13px 14px;flex:1}
.gen-row{display:flex;align-items:center;gap:8px;padding:7px 2px;border-bottom:1px dashed #F0F1F8}
.gen-row:last-child{border:0}
.dot{width:7px;height:7px;border-radius:50%;background:#5B5BF7;flex:none}
.gen-row .g-name{font-size:11.2px;color:#3C4160}
.gen-row .g-time{margin-left:auto;font-size:10px;color:#A5AAC0}

/* ===================== App additions ===================== */
html,body{height:auto;min-height:100vh;overflow:auto}
body{display:block;background:linear-gradient(160deg,#EEF1FF 0%,#F7F8FD 40%,#F5F6FB 100%)}
.app{width:calc(100% - 48px);max-width:1392px;min-width:1180px;height:calc(100vh - 44px);min-height:780px;margin:22px auto}
.main{overflow:hidden}
.nav a,.side-bottom a,.dev-links a{cursor:pointer}
a{color:inherit}
.link{color:var(--primary);font-weight:600;cursor:pointer;font-size:11.5px}
.link:hover{opacity:.8}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.crumbs{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#A5AAC0;margin-bottom:6px}
.crumbs a{color:#8A90A8;text-decoration:none}
.crumbs .sep{color:#C9CDE0}
.btn-primary{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#5B5BF7,#7C5CFF);color:#fff;
  border:0;border-radius:11px;padding:10px 16px;font-size:12.5px;font-weight:700;cursor:pointer;
  box-shadow:0 10px 22px rgba(91,91,247,.28)}
.btn-primary:hover{filter:brightness(1.04)}
.btn-ghost{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);color:#4A4F6A;
  border-radius:11px;padding:9px 14px;font-size:12px;font-weight:600;cursor:pointer}
.btn-ghost:hover{background:#F8F9FF}
.btn-sm{padding:7px 11px;font-size:11.5px;border-radius:9px}
.tabs{display:inline-flex;gap:4px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px}
.tab{padding:7px 14px;border-radius:9px;font-size:12px;color:#6B6F8A;cursor:pointer;border:0;background:transparent}
.tab.on{background:#F0EFFF;color:#4B45E0;font-weight:700}
.tab:hover{color:#4B45E0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.client-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 16px;
  box-shadow:0 8px 22px rgba(80,90,160,.05);display:flex;flex-direction:column;gap:10px;cursor:pointer}
.client-card:hover{border-color:#DCD9FF;box-shadow:0 12px 28px rgba(91,91,247,.10)}
.client-card .cc-top{display:flex;align-items:center;gap:10px}
.client-card .cc-av{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:17px}
.client-card .cc-name{font-size:13.5px;font-weight:700}
.client-card .cc-sub{font-size:10.5px;color:#8A90A8;margin-top:3px}
.client-card .cc-meta{display:flex;gap:6px;flex-wrap:wrap}
.client-card .cc-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px dashed #F0F1F8;padding-top:9px;font-size:10.5px;color:#A5AAC0}
.badge{font-size:9.8px;padding:3px 7px;border-radius:6px;background:#F2F3FB;color:#6B6F8A;display:inline-flex;align-items:center;gap:4px}
.badge.g{background:#E9FBF4;color:#0E9F6E}.badge.b{background:#EAF2FF;color:#2E5BFF}
.badge.o{background:#FFF2E4;color:#B45309}.badge.p{background:#EFEDFF;color:#5B4FE8}
.badge.r{background:#FFEBEE;color:#D32F2F}
.table{width:100%;border-collapse:collapse;font-size:11.5px}
.table th{text-align:left;font-size:10.5px;color:#A5AAC0;font-weight:600;padding:9px 10px;border-bottom:1px solid #F0F1F8;white-space:nowrap}
.table td{padding:10px;border-bottom:1px solid #F5F6FB;color:#4A4F6A;vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tr:hover td{background:#FAFBFF}
.panel-card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 26px rgba(80,90,160,.05);padding:16px 18px}
.panel-card h2{font-size:14.5px;margin-bottom:12px}
.empty{padding:40px 0;text-align:center;color:#A5AAC0;font-size:12px}
.note{font-size:10.5px;color:#A5AAC0;line-height:1.7}
.code{background:#F8F9FF;border:1px solid #EEF0FA;border-radius:10px;padding:11px 12px;font-family:Consolas,"Courier New",monospace;
  font-size:10.8px;color:#4A4F6A;white-space:pre-wrap;line-height:1.6}
kbd{background:#F4F5FC;border:1px solid #E4E6F2;border-bottom-width:2px;border-radius:5px;padding:1px 5px;font-size:10px;color:#6B6F8A}
/* modal */
.modal-mask{position:fixed;inset:0;background:rgba(20,20,50,.35);backdrop-filter:blur(2px);display:none;align-items:center;justify-content:center;z-index:80}
.modal-mask.show{display:flex}
.modal{background:#fff;border-radius:18px;width:760px;max-width:calc(100vw - 80px);max-height:82vh;overflow:auto;padding:22px 24px;
  box-shadow:0 30px 80px rgba(30,30,80,.28)}
.modal h3{font-size:16px;margin-bottom:6px}
.modal .m-sub{font-size:11px;color:#A5AAC0;margin-bottom:14px}
.modal .m-close{float:right;border:0;background:#F4F5FC;width:28px;height:28px;border-radius:9px;cursor:pointer;color:#6B6F8A}
.modal .m-body{font-size:12px;color:#4A4F6A;line-height:1.8}
.modal .m-body h4{font-size:12.5px;margin:12px 0 6px;color:#2C3150}
/* toast */
.toast{position:fixed;left:50%;bottom:38px;transform:translateX(-50%) translateY(18px);background:#1B1F3B;color:#fff;
  padding:10px 18px;border-radius:12px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;z-index:90;
  box-shadow:0 14px 34px rgba(20,20,60,.28)}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
/* checklist */
.check-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px dashed #F0F1F8}
.check-item:last-child{border:0}
.check-item input{width:15px;height:15px;margin-top:2px;accent-color:#5B5BF7;cursor:pointer}
.check-item .ci-t{font-size:12px;color:#2C3150;font-weight:600}
.check-item .ci-d{font-size:10.5px;color:#8A90A8;margin-top:3px;line-height:1.6}
.check-item.done .ci-t{color:#8A90A8;text-decoration:line-through}
/* log */
.log-row{display:flex;gap:10px;padding:9px 2px;border-bottom:1px dashed #F0F1F8;font-size:11px}
.log-row .lt{color:#A5AAC0;width:66px;flex:none;font-variant-numeric:tabular-nums}
.log-row .lk{color:#5B4FE8;width:96px;flex:none;font-weight:600}
.log-row .ld{color:#4A4F6A;word-break:break-all}
/* stepper / generate (copied from design) */
.stepper{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 20px;display:flex;align-items:center;
  box-shadow:0 8px 22px rgba(80,90,160,.05)}
.step{display:flex;align-items:center;gap:9px;flex:none;cursor:pointer}
.step .num{width:23px;height:23px;border-radius:50%;background:#EEF0FA;color:#8A90A8;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;flex:none}
.step .lb{font-size:11.6px;color:#8A90A8}
.step.done .num{background:#E9FBF4;color:#0E9F6E}.step.done .lb{color:#4A4F6A}
.step.on .num{background:var(--primary);color:#fff;box-shadow:0 4px 12px rgba(91,91,247,.35)}
.step.on .lb{color:#1B1F3B;font-weight:700}
.line{flex:1;height:1px;background:#EEF0FA;margin:0 10px}
.content{display:grid;grid-template-columns:1fr 320px;gap:12px;flex:1;min-height:0}
.left{display:flex;flex-direction:column;gap:12px;min-height:0}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px 16px;box-shadow:0 10px 26px rgba(80,90,160,.05)}
.panel .ph{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.panel .ph h2{font-size:14px}.panel .ph span{font-size:10.8px;color:var(--muted)}
.preset-grid2{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.p-card{border:1px solid #EEF0FA;border-radius:13px;padding:10px;position:relative;background:#FBFBFF;cursor:pointer}
.p-card:hover{border-color:#DCD9FF}
.p-card .pi{width:28px;height:28px;border-radius:9px;background:#EFEDFF;color:#6C5CE7;display:flex;align-items:center;
  justify-content:center;font-size:12px;margin-bottom:7px}
.p-card .pi svg{width:15px;height:15px}
.p-card .pn{font-size:12.2px;font-weight:700}
.p-card .pd{font-size:10.2px;color:#8A90A8;margin-top:3px;line-height:1.45}
.p-card.on{border-color:var(--primary);background:#F5F4FF;box-shadow:0 8px 20px rgba(91,91,247,.12)}
.p-card.on .pi{background:var(--primary);color:#fff}
.p-card .ck{position:absolute;right:10px;top:10px;width:16px;height:16px;border-radius:50%;background:var(--primary);
  color:#fff;font-size:10px;display:none;align-items:center;justify-content:center}
.p-card.on .ck{display:flex}
.opts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.opt-row{display:flex;gap:8px;margin-top:9px}
.seg{flex:1;border:1px solid #EEF0FA;border-radius:10px;padding:8px 10px;font-size:11.6px;text-align:center;
  color:#4A4F6A;background:#FBFBFF;position:relative;cursor:pointer}
.seg.on{border-color:var(--primary);background:#F5F4FF;color:#4B45E0;font-weight:700}
.tag{position:absolute;top:-8px;right:6px;font-size:8.5px;background:#FFF2E4;color:#B45309;border-radius:5px;padding:1px 5px}
.summary{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px 16px;display:flex;flex-direction:column;
  box-shadow:0 10px 26px rgba(80,90,160,.05)}
.summary h2{font-size:13.5px;margin-bottom:10px}
.s-row{display:flex;align-items:flex-start;gap:9px;padding:7px 0;border-bottom:1px dashed #F0F1F8}
.s-row:last-of-type{border:0}
.s-row .k{width:48px;font-size:10.6px;color:#A5AAC0;flex:none;padding-top:1px}
.s-row .v{font-size:11.8px;color:#2C3150;font-weight:600}
.s-row .v small{display:block;font-weight:400;color:#8A90A8;font-size:10px;margin-top:2px}
.btn{display:block;text-align:center;border-radius:11px;padding:10px 0;font-size:12.8px;font-weight:700;margin-top:10px;border:0;cursor:pointer;width:100%}
.btn.p{background:linear-gradient(135deg,#5B5BF7,#7C5CFF);color:#fff;box-shadow:0 10px 22px rgba(91,91,247,.32)}
.btn.s{background:#F4F5FC;color:#4B45E0;margin-top:7px;font-weight:600}
.prompt{margin-top:11px;background:#F8F9FF;border:1px solid #EEF0FA;border-radius:11px;padding:9px 10px}
.prompt .pt{font-size:9.8px;color:#A5AAC0;margin-bottom:5px}
.prompt .pc{font-size:9.8px;color:#6B6F8A;line-height:1.6}
.prompt b{color:#4B45E0}
.hint{font-size:9.6px;color:#A5AAC0;margin-top:8px;text-align:center}
.banner{background:linear-gradient(120deg,#EEF0FF,#F6F2FF);border:1px solid #E9E6FF;border-radius:14px;padding:10px 12px;
  display:flex;align-items:center;gap:9px}
.banner .bi{width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#7C6CF6,#9B8CFF);display:flex;
  align-items:center;justify-content:center;color:#fff;font-size:13px;flex:none}
.banner .bt{font-size:11.6px;font-weight:700}.banner .bd{font-size:10px;color:#7C819B;margin-top:2px}

.task{cursor:pointer}


/* sidebar stretch fix */
#sidebar{height:100%;min-height:0;display:flex}
.sidebar{height:100%;width:100%}
.nav{flex:1;min-height:0;overflow:hidden}
.side-bottom{margin-top:auto}
.dev-links{display:flex;gap:6px;justify-content:center;font-size:9.8px;color:rgba(255,255,255,.55);padding:2px 0 0}
.dev-links a{color:rgba(255,255,255,.78);text-decoration:none}
.dev-links a:hover{color:#fff}

.main{overflow-y:auto;overflow-x:hidden}


/* compact layout when window is narrow (tiled dev windows) */
@media (max-width:1180px){
  .app{min-width:0;width:calc(100% - 24px);margin:12px auto;height:calc(100vh - 24px);grid-template-columns:200px 1fr}
  .sidebar{padding:14px 10px}
  .brand{padding:0 4px 12px}
  .nav a{font-size:12px;padding:8px 9px}
  .main{padding:14px 14px 10px;gap:10px}
  .tool-grid{grid-template-columns:repeat(2,1fr)}
  .tool{min-height:112px}
  .bottom-grid{grid-template-columns:1fr 250px}
  .content{grid-template-columns:1fr 270px}
  .preset-grid2{grid-template-columns:repeat(2,1fr)}
  .preset-grid{grid-template-columns:1fr}
  .topbar .search{width:180px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:1fr 1fr}
}

/* very narrow windows (backend/audit dev windows): full-width content, no sidebar */
@media (max-width:700px){
  #sidebar{display:none}
  .app{grid-template-columns:1fr;width:calc(100% - 16px);margin:8px auto;min-height:calc(100vh - 16px);height:auto}
  .main{padding:12px;gap:10px;overflow:visible}
  .bottom-grid,.grid-2,.grid-3,.content{grid-template-columns:1fr}
  .opts{grid-template-columns:1fr}
  .stats{grid-template-columns:1fr}
  .tool-grid{grid-template-columns:1fr}
  .topbar .search{display:none}
  .table{font-size:11px}
  .table th,.table td{padding:7px 6px}
  .panel-card{padding:12px 12px}
}

/* compact overflow guards */
.bottom-grid{grid-template-columns:minmax(0,1fr) 318px}
.content{grid-template-columns:minmax(0,1fr) 320px}
.recent,.task,.stat,.client-card{min-width:0}
.task .t-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1180px){
  .bottom-grid{grid-template-columns:minmax(0,1fr) 236px}
  .content{grid-template-columns:minmax(0,1fr) 264px}
  .right-col{min-width:0}
  .preset{min-width:0}
}

html,body{width:100%!important;max-width:100%!important}


/* narrow dev windows: stack header, scrollable tables */
@media (max-width:700px){
  .page-head{flex-wrap:wrap}
  .page-head>div:last-child{width:100%;display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
  .page-head h1{font-size:20px}
  .panel-card{overflow-x:auto}
  .table{min-width:560px}
  .topbar{flex-wrap:wrap}
  .crumbs{display:none}
  .grid-2,.grid-3{grid-template-columns:1fr}
}

/* ================= v2: 底料详情 / 拆解详情 / 设置 ================= */
a.btn-primary,a.btn-ghost{text-decoration:none;color:inherit}
a.btn-ghost{color:#4A4F6A}
.page-body{display:flex;flex-direction:column;gap:13px;flex:none;min-width:0}
/* -- sidebar 子导航（详情页入口） -- */
.nav a.sub{padding-left:27px;font-size:11.8px;color:rgba(255,255,255,.72)}
.nav a.sub .sub-ic{width:5px;height:5px;border-radius:50%;background:rgba(255,255,255,.55);flex:none}
.nav a.sub.on{color:#fff;font-weight:600;background:rgba(255,255,255,.14)}
.nav a.sub.on .sub-ic{background:#fff}
.nav a.up{background:rgba(255,255,255,.06)}
/* -- 实体页头（品牌/视频） -- */
.entity-head{display:flex;align-items:center;gap:13px;min-width:0}
.entity-av{width:52px;height:52px;border-radius:15px;display:flex;align-items:center;justify-content:center;
  font-size:24px;flex:none;border:1px solid rgba(255,255,255,.9);box-shadow:0 8px 20px rgba(80,90,160,.10)}
.entity-head .eh-t{min-width:0}
.entity-head h1{font-size:26px;line-height:1.25;letter-spacing:.2px}
.eh-sub{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}
.eh-meta{font-size:10.8px;color:#A5AAC0;margin-top:6px;line-height:1.5}
.entity-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex:none}
@media (max-width:1180px){.entity-actions{justify-content:flex-start}}
/* -- 迷你指标条 -- */
.stat-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mini-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 13px;
  box-shadow:0 8px 20px rgba(80,90,160,.05);min-width:0;display:flex;flex-direction:column;gap:3px}
.mini-stat .ms-v{font-size:19px;font-weight:800;line-height:1.15;letter-spacing:.2px}
.mini-stat .ms-v small{font-size:10.5px;font-weight:600;color:#8A90A8;margin-left:3px}
.mini-stat .ms-k{font-size:10.2px;color:#A5AAC0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-stat .ms-d{font-size:9.8px;color:#8A90A8}
.mini-stat .progress{margin-top:4px}
@media (max-width:1180px){.stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
.progress{height:6px;border-radius:999px;background:#EEF0FA;overflow:hidden;min-width:56px}
.progress>i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#5B5BF7,#8C7BFF)}
.progress.warn>i{background:linear-gradient(90deg,#F59E0B,#FBBF24)}
/* -- 分组卡片 -- */
.g-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
@media (max-width:1180px){.g-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.g-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 15px;
  box-shadow:0 8px 22px rgba(80,90,160,.05);min-width:0;display:flex;flex-direction:column}
.g-head{display:flex;align-items:center;gap:9px;margin-bottom:6px;min-width:0}
.g-ic{width:31px;height:31px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex:none}
.g-ic svg{width:16px;height:16px}
.g-ic.purple{background:#EFEDFF;color:#6C5CE7}
.g-ic.blue{background:#EAF2FF;color:#2E5BFF}
.g-ic.orange{background:#FFF2E4;color:#B45309}
.g-ic.green{background:#E9FBF4;color:#0E9F6E}
.g-ic.red{background:#FFEBEE;color:#D32F2F}
.g-head>div{min-width:0}
.g-title{font-size:12.6px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-sub{font-size:9.8px;color:#A5AAC0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-head .badge{margin-left:auto;flex:none}
.kv{display:flex;flex-direction:column;min-width:0}
.kv-row{display:flex;gap:10px;padding:6px 0;border-bottom:1px dashed #F0F1F8;min-width:0}
.kv-row:last-child{border-bottom:0}
.kv-row .k{width:70px;flex:none;font-size:10.3px;color:#A5AAC0;line-height:1.55}
.kv-row .v{font-size:11.2px;color:#2C3150;line-height:1.6;min-width:0;word-break:break-word}
.kv-row .v small{display:block;color:#8A90A8;font-size:9.8px;margin-top:1px}
.kv-row .v b{color:#1B1F3B}
.chip-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
/* -- 产品价格 -- */
.price-list{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.price-item{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:10px;background:#FBFBFF;
  border:1px solid #EEF0FA;min-width:0}
.price-item>div{min-width:0}
.price-item .pi-n{font-size:11.2px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-item .pi-d{font-size:9.6px;color:#A5AAC0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-item .pi-p{margin-left:auto;flex:none;font-size:12.5px;font-weight:800;color:#4B45E0;font-variant-numeric:tabular-nums}
.price-item .pi-p small{font-size:9px;color:#A5AAC0;font-weight:400;margin-left:1px}
/* -- 引用块 / 合规行 -- */
.quote-block{margin-top:8px;background:#F8F9FF;border:1px solid #EEF0FA;border-left:3px solid #7C6CF6;
  border-radius:9px;padding:8px 10px;font-size:10.6px;color:#4A4F6A;line-height:1.6}
.quote-block .qb-t{font-size:9.4px;color:#A5AAC0;margin-bottom:3px}
.checkline{display:flex;align-items:flex-start;gap:7px;font-size:10.6px;color:#4A4F6A;padding:5px 0;line-height:1.5;min-width:0}
.checkline .ci{width:15px;height:15px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:9px;flex:none;margin-top:1px;font-weight:800}
.checkline .ci.ok{background:#E9FBF4;color:#0E9F6E}
.checkline .ci.warn{background:#FFF2E4;color:#B45309}
.checkline .ci.bad{background:#FFEBEE;color:#D32F2F}
/* -- 折叠块（原始表格原文） -- */
.fold{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 26px rgba(80,90,160,.05);overflow:hidden}
.fold+.fold{margin-top:12px}
.fold summary{display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;list-style:none;min-width:0}
.fold summary::-webkit-details-marker{display:none}
.fold summary .fold-ic{width:24px;height:24px;border-radius:8px;background:#F0EFFF;color:#5B4FE8;
  display:flex;align-items:center;justify-content:center;font-size:10px;flex:none;transition:transform .2s}
.fold[open] summary .fold-ic{transform:rotate(90deg)}
.fold summary .fs-t{font-size:12.4px;font-weight:700}
.fold summary .fs-d{font-size:10px;color:#A5AAC0;margin-top:2px}
.fold summary .badge{margin-left:auto;flex:none}
.fold[open] summary{border-bottom:1px dashed #F0F1F8}
.fold-body{padding:13px 16px}
.fold .tip-open{display:none}
.fold[open] .tip-closed{display:none}
.fold[open] .tip-open{display:inline}
pre.raw{margin:0;background:#F8F9FF;border:1px solid #EEF0FA;border-radius:11px;padding:12px;
  font-family:Consolas,"Courier New",monospace;font-size:10.2px;line-height:1.7;color:#4A4F6A;
  white-space:pre-wrap;word-break:break-word;max-height:300px;overflow:auto}
.table-wrap{overflow-x:auto}
.table-wrap .table{min-width:460px}
/* -- 时间轴 -- */
.tl{min-width:0}
.tl-item{display:grid;grid-template-columns:78px minmax(0,1fr);gap:11px;position:relative;padding-bottom:10px}
.tl-item:last-child{padding-bottom:0}
.tl-time{font-size:10.2px;color:#5B4FE8;font-weight:700;font-variant-numeric:tabular-nums;padding-top:1px;white-space:nowrap}
.tl-body{min-width:0;border-left:2px solid #EEF0FA;padding:0 0 2px 12px;position:relative}
.tl-body:before{content:"";position:absolute;left:-5px;top:3px;width:8px;height:8px;border-radius:50%;
  background:#C9C6F8;border:2px solid #fff;box-shadow:0 0 0 1px #E0DDFB}
.tl-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.tl-head b{font-size:11.2px;color:#2C3150;min-width:0}
.tl-shot{font-size:9.4px;color:#A5AAC0}
.tl-voice{font-size:10.4px;color:#6B6F8A;margin-top:3px;line-height:1.55;word-break:break-word}
/* -- 5 层摘要条 -- */
.layer-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:stretch}
@media (max-width:1180px){.layer-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
.layer{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;
  box-shadow:0 8px 20px rgba(80,90,160,.05);min-width:0;display:flex;flex-direction:column;gap:4px}
.layer .l-k{font-size:9.4px;font-weight:800;color:#5B4FE8;letter-spacing:.5px}
.layer .l-t{font-size:11.8px;font-weight:700}
.layer .l-d{font-size:10px;color:#8A90A8;line-height:1.5}
.layer .l-m{font-size:9.6px;color:#4A4F6A;background:#F8F9FF;border:1px solid #EEF0FA;border-radius:7px;
  padding:4px 6px;margin-top:auto;line-height:1.4}
.layer.hot{border-color:#DCD9FF;background:linear-gradient(180deg,#FBFBFF,#F5F3FF)}
/* -- 详情两栏（左侧时间轴/槽位，右侧差异/口令） -- */
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:12px;align-items:start}
@media (max-width:1180px){.detail-layout{grid-template-columns:minmax(0,1fr)}}
.detail-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.pc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;min-width:0}
.pc-head h2{margin:0;font-size:13.6px;white-space:nowrap}
.pc-head .note{flex:none}
/* -- L5 槽位 -- */
.slot{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:9px;align-items:center;
  padding:7px 0;border-bottom:1px dashed #F0F1F8;min-width:0}
.slot:last-child{border-bottom:0}
.slot .s-n{font-size:10.2px;font-weight:700;color:#5B4FE8;background:#F0EFFF;border-radius:6px;
  padding:3px 5px;text-align:center;white-space:nowrap}
.slot .s-t{font-size:10.6px;color:#4A4F6A;line-height:1.55;min-width:0;word-break:break-word}
.slot .s-t small{display:block;color:#A5AAC0;font-size:9.4px;margin-top:2px}
.slot .s-st{flex:none}
@media (max-width:1180px){.slot{grid-template-columns:58px minmax(0,1fr)}.slot .s-st{display:none}}
/* -- 差异点 -- */
.diff-item{display:flex;gap:8px;padding:8px 0;border-bottom:1px dashed #F0F1F8;min-width:0}
.diff-item:last-child{border-bottom:0}
.diff-ic{width:19px;height:19px;border-radius:6px;display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;flex:none;margin-top:1px}
.diff-ic.plus{background:#E9FBF4;color:#0E9F6E}
.diff-ic.minus{background:#FFEBEE;color:#D32F2F}
.diff-ic.tilde{background:#FFF2E4;color:#B45309}
.diff-b{min-width:0}
.diff-b .dt{font-size:11px;font-weight:700;color:#2C3150}
.diff-b .dd{font-size:10px;color:#8A90A8;line-height:1.55;margin-top:2px;word-break:break-word}
/* -- 口令匹配建议 -- */
.match{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px dashed #F0F1F8;min-width:0}
.match:last-child{border-bottom:0}
.match>div{min-width:0}
.match .m-n{font-size:11.2px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match .m-w{font-size:9.6px;color:#A5AAC0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match .m-bar{width:64px;flex:none}
.match .m-p{font-size:9.8px;color:#5B4FE8;font-weight:700;flex:none;width:34px;text-align:right;font-variant-numeric:tabular-nums}
.match .btn-ghost{padding:5px 8px;font-size:10.2px;border-radius:8px;flex:none}
/* -- 结论 -- */
.conclusion{font-size:10.8px;color:#4A4F6A;line-height:1.75}
.conclusion b{color:#2C3150}
/* -- 设置页 -- */
.set-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
@media (max-width:1180px){.set-grid{grid-template-columns:minmax(0,1fr)}}
.set-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;
  box-shadow:0 8px 22px rgba(80,90,160,.05);min-width:0}
.set-head{display:flex;align-items:center;gap:9px;margin-bottom:6px;min-width:0}
.set-head h2{font-size:13px}
.set-head .badge{margin-left:auto;flex:none}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;
  border-bottom:1px dashed #F0F1F8;min-width:0}
.set-row:last-child{border-bottom:0}
.set-row .sr-k{font-size:11px;color:#3C4160;min-width:0}
.set-row .sr-k small{display:block;font-size:9.6px;color:#A5AAC0;margin-top:2px;line-height:1.45}
.set-row .sr-v{flex:none;display:flex;align-items:center;gap:6px;max-width:62%}
.seg-mini{display:inline-flex;gap:3px;background:#F8F9FF;border:1px solid #EEF0FA;border-radius:9px;padding:3px;flex-wrap:wrap}
.seg-mini button{border:0;background:transparent;font-size:10px;color:#6B6F8A;padding:5px 8px;border-radius:6px;
  cursor:pointer;white-space:nowrap;font-family:inherit}
.seg-mini button:hover{color:#4B45E0}
.seg-mini button.on{background:#F0EFFF;color:#4B45E0;font-weight:700}
.switch{width:36px;height:20px;border-radius:999px;background:#E4E6F2;position:relative;cursor:pointer;
  border:0;padding:0;flex:none;transition:.2s}
.switch:after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;
  background:#fff;box-shadow:0 1px 3px rgba(20,20,60,.2);transition:.2s}
.switch.on{background:#5B5BF7}
.switch.on:after{left:18px}
.input{height:31px;border:1px solid #E4E6F2;border-radius:9px;background:#FBFBFF;font-size:10.6px;
  color:#4A4F6A;padding:0 9px;min-width:0;width:210px;outline:none;font-family:inherit}
.input:focus{border-color:#B9B2FF;background:#fff}
.input:disabled{color:#A5AAC0;background:#F4F5FC}
.set-account{display:flex;align-items:center;gap:11px;padding:2px 0 10px;border-bottom:1px dashed #F0F1F8;margin-bottom:2px}
.set-account .sa-av{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#FFD8A8,#FFB86B);
  display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;color:#7A4A12;flex:none}
.set-account .sa-n{font-size:12.8px;font-weight:700}
.set-account .sa-m{font-size:10px;color:#A5AAC0;margin-top:3px}
.win-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.win-card{border:1px solid #EEF0FA;border-radius:12px;padding:10px 12px;background:#FBFBFF;min-width:0;
  cursor:pointer;display:flex;flex-direction:column;gap:4px;text-decoration:none}
.win-card:hover{border-color:#DCD9FF;background:#F7F6FF}
.win-card .wc-t{font-size:11.2px;font-weight:700;color:#2C3150;display:flex;align-items:center;gap:6px}
.win-card .wc-t svg{width:14px;height:14px;color:#6C5CE7;flex:none}
.win-card .wc-d{font-size:9.6px;color:#8A90A8;line-height:1.5}
.win-card .wc-a{font-size:9.6px;color:#5B4FE8;font-weight:700;margin-top:1px}
.dev-cmd{display:flex;align-items:center;gap:8px;margin-top:9px;min-width:0}
.dev-cmd code{flex:1;min-width:0;background:#F8F9FF;border:1px solid #EEF0FA;border-radius:8px;padding:6px 8px;
  font-family:Consolas,monospace;font-size:9.6px;color:#6B6F8A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* -- 通用兜底：防止详情/设置页出现横向溢出 -- */
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1180px){
  .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* ================= v2.1：可改 UI 的稳定层（令牌 / 响应式 / a11y） ================= */
:root{
  --radius-card:18px; --radius-btn:11px; --radius-pill:999px;
  --grad-primary:linear-gradient(135deg,#5B5BF7,#7C5CFF);
  --shadow-card:0 10px 26px rgba(80,90,160,.05);
  --shadow-soft:0 8px 22px rgba(80,90,160,.05);
  --focus-ring:0 0 0 3px rgba(91,91,247,.28);
}
/* 页头设计令牌：标题 22px / 副标题 12px（A-09） */
.page-head h1{font-size:22px;line-height:1.3;letter-spacing:.2px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-head p{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}
.entity-head h1{font-size:22px;line-height:1.3}
.page-head .head-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex:none}
.btn-primary,.btn-ghost,.btn{white-space:nowrap}
.btn-primary:disabled,.btn-ghost:disabled,.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;filter:none}
/* 键盘焦点可见（A-11） */
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,
.p-card:focus-visible,.client-card:focus-visible,.task:focus-visible,.tool:focus-visible,
.preset:focus-visible,.step:focus-visible,.win-card:focus-visible,.match:focus-visible,
.recent-gen:focus-visible,#recentImport tr:focus-visible{
  outline:2px solid var(--primary);outline-offset:2px;border-radius:10px
}
.p-card,.client-card,.task,.tool,.preset,.step,.win-card,#recentImport tr[data-id]{cursor:pointer}
/* 警告 toast（A-18） */
.toast.warn{background:#B45309;box-shadow:0 14px 34px rgba(120,60,10,.3)}
.toast.warn::before{content:"⚠ ";font-weight:700}
/* 搜索框改为真实 input（A-17） */
.search{position:relative}
.search input{flex:1;min-width:0;border:0;outline:none;background:transparent;font-family:inherit;
  font-size:12px;color:#4A4F6A;height:100%}
.search input::placeholder{color:#A5AAC0}
.search:focus-within{border-color:#C9C4FF;box-shadow:var(--focus-ring)}
input.search{width:270px;height:38px;background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:0 12px;font-family:inherit;font-size:12px;color:#4A4F6A;outline:none;
  box-shadow:0 4px 14px rgba(80,90,160,.05)}
input.search::placeholder{color:#A5AAC0}
input.search:focus{border-color:#C9C4FF;box-shadow:var(--focus-ring)}
/* 侧栏开发窗口分组（A-16） */
.dev-group{display:flex;flex-direction:column;gap:3px;padding:2px 2px 0}
.dev-label{font-size:9px;color:rgba(255,255,255,.45);letter-spacing:.5px;text-align:center}
.dev-links .on{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* Tab 单行 + 横向滚动（A-10） */
.tabs{flex-wrap:nowrap;max-width:100%;overflow-x:auto;overflow-y:hidden}
.tabs .tab{white-space:nowrap;flex:none}
/* 表格：宽表在卡片内横向滚动，不撑宽页面（A-02 / A-10） */
.panel-card{min-width:0}
.table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden}
.table-wrap .table{width:auto;min-width:max-content}
.table th,.table td{white-space:nowrap}
/* 模板中心：骨架槽位 */
.slot-flow{display:flex;flex-direction:column;gap:2px;margin-top:2px}
.flow-step{display:flex;align-items:flex-start;gap:8px;font-size:10.6px;color:#4A4F6A;padding:4px 0;line-height:1.55}
.flow-step .fs-n{width:17px;height:17px;border-radius:50%;background:#F0EFFF;color:#5B4FE8;font-size:9px;
  font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;margin-top:1px}
/* 审计日志：事件来源列 */
.log-head{display:flex;gap:10px;font-size:9.6px;color:#A5AAC0;padding:0 2px 6px;border-bottom:1px solid #F0F1F8}
.log-head .lt{width:66px;flex:none}
.log-head .lk{width:96px;flex:none}
.log-head .lp{width:86px;flex:none}
.log-row .lp{color:#8A90A8;width:86px;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* 窄窗：宽表滚动提示 + 审计窗口日志优先（A-02 / A-24） */
.scroll-hint{display:none;font-size:10px;color:#A5AAC0;margin:6px 2px 0;text-align:center}
@media (max-width:700px){
  .scroll-hint{display:block}
  .audit-grid{display:flex!important;flex-direction:column}
  .audit-log{order:-1}
}
.hint.warn{color:#B45309}
/* ===== 窄屏（≤700）：单列 + 无页面级横向滚动（A-02 / A-03） ===== */
@media (max-width:700px){
  html,body{max-width:100%!important;overflow-x:hidden}
  .app{grid-template-columns:minmax(0,1fr)!important;width:calc(100% - 16px);min-width:0}
  .main{min-width:0;max-width:100%;padding:12px;overflow-x:hidden;overflow-y:visible}
  .bottom-grid,.content,.grid-2,.grid-3,.opts,.stats,.tool-grid,.preset-grid2,.stat-strip,
  .set-grid,.g-grid,.layer-strip,.detail-layout,.win-grid{grid-template-columns:minmax(0,1fr)!important}
  .page-head{flex-wrap:wrap}
  .page-head h1{font-size:20px}
  .page-head .head-actions,.page-head>div:last-child{width:100%;flex-wrap:wrap;justify-content:flex-start;margin-top:8px}
  .entity-head h1{font-size:19px}
  .set-row .sr-v{max-width:100%}
  .input{width:100%}
  .crumbs{display:none}
  .panel-card{overflow-x:visible}
  .search,input.search{display:none}
  .topbar,.top-actions{flex-wrap:wrap}
  .table{min-width:max-content}
}
/* ===== 1020 实际前端窗：页头按钮 / Tab 单行，表格不压列（A-10） ===== */
@media (min-width:701px) and (max-width:1180px){
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bottom-grid{grid-template-columns:minmax(0,1fr) 236px}
  .content{grid-template-columns:minmax(0,1fr) 264px}
  .page-head{flex-wrap:nowrap}
  .head-actions,.entity-actions{flex-wrap:nowrap}
  .entity-actions{justify-content:flex-end}
}

/* ================= v3：多租户 / 额度 / 登录 / 五级面板 ================= */
/* 侧栏租户区 */
.tenant-box{margin:0 0 10px;padding:8px 9px 9px;border-radius:14px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);position:relative}
.tenant-btn{display:flex;align-items:center;gap:8px;width:100%;padding:2px;border:0;background:transparent;
  color:#fff;cursor:pointer;font-family:inherit;text-align:left;border-radius:9px}
.tenant-btn:hover{background:rgba(255,255,255,.10)}
.tb-emoji{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.2);display:flex;
  align-items:center;justify-content:center;font-size:15px;flex:none}
.tb-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.tb-name{font-size:11.8px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-sub{font-size:9.4px;color:rgba(255,255,255,.62);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-chev{width:13px;height:13px;opacity:.65;flex:none}
.quota-chips{display:flex;gap:4px;margin-top:7px;flex-wrap:wrap}
.quota-chip{font-size:9.2px;line-height:1;padding:4px 6px;border-radius:999px;
  background:rgba(255,255,255,.16);color:rgba(255,255,255,.88);white-space:nowrap;font-variant-numeric:tabular-nums}
.quota-chip.over{background:rgba(255,138,128,.30);color:#FFE1DD;font-weight:700}
.admin-entry a{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 8px;border-radius:9px;
  font-size:10.6px;color:#fff;background:rgba(255,255,255,.16);text-decoration:none;font-weight:700}
.admin-entry a span{font-size:8.6px;font-weight:500;color:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.3);
  border-radius:999px;padding:1px 4px}
.admin-entry a:hover{background:rgba(255,255,255,.24)}
.nav{overflow-y:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}

/* 租户切换弹窗 */
.tenant-pick-list{display:flex;flex-direction:column;gap:7px}
.tenant-pick{display:flex;align-items:center;gap:9px;text-align:left;padding:9px 11px;border-radius:11px;
  border:1px solid #EEF0FA;background:#FBFBFF;cursor:pointer;font-family:inherit;width:100%}
.tenant-pick:hover{border-color:#DCD9FF;background:#F7F6FF}
.tenant-pick.on{border-color:#5B5BF7;background:#F5F3FF;box-shadow:0 0 0 1px #5B5BF7 inset}
.tenant-pick[disabled]{opacity:.55;cursor:not-allowed}
.tp-av{width:30px;height:30px;border-radius:9px;background:#EFEDFF;display:flex;align-items:center;
  justify-content:center;font-size:15px;flex:none}
.tp-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.tp-meta b{font-size:11.8px;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-meta small{font-size:9.6px;color:#8A90A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tp-state{font-size:9.6px;color:#5B4FE8;font-weight:700;flex:none}

/* 登录页 */
.login-app{grid-template-columns:360px minmax(0,1fr)}
.login-hero{background:linear-gradient(170deg,#4B45E0 0%,#5E50EC 48%,#7C5CFF 100%);color:#fff;
  padding:26px 26px 20px;display:flex;flex-direction:column;gap:14px;position:relative;overflow:hidden}
.login-hero:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),transparent 65%);top:-150px;right:-140px}
.login-brand{padding:0;position:relative}
.login-hero h2{font-size:18px;font-weight:700;position:relative;margin-top:6px}
.login-hero p{font-size:11.6px;line-height:1.75;color:rgba(255,255,255,.78);position:relative}
.login-points{list-style:none;display:flex;flex-direction:column;gap:10px;margin-top:4px;position:relative}
.login-points li{display:flex;flex-direction:column;gap:2px;padding-left:14px;position:relative}
.login-points li:before{content:"";position:absolute;left:0;top:5px;width:7px;height:7px;border-radius:50%;background:#fff;opacity:.85}
.login-points b{font-size:11.8px}
.login-points span{font-size:10.2px;color:rgba(255,255,255,.66);line-height:1.5}
.login-hero-foot{margin-top:auto;display:flex;flex-direction:column;gap:7px;position:relative}
.login-hero-foot .btn-ghost{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:#fff;justify-content:center;display:flex}
.login-hero-foot .btn-ghost:hover{background:rgba(255,255,255,.22)}
.login-main{padding:26px 28px 20px;display:flex;flex-direction:column;gap:14px;min-width:0;overflow-y:auto}
.login-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.login-head h1{font-size:22px;letter-spacing:.2px}
.login-head p{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.6}
.tenant-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.tenant-card{display:flex;flex-direction:column;gap:8px;text-align:left;padding:14px 15px;border-radius:16px;
  border:1px solid var(--line);background:#fff;cursor:pointer;font-family:inherit;
  box-shadow:0 8px 22px rgba(80,90,160,.05);min-width:0}
.tenant-card:hover{border-color:#DCD9FF;transform:translateY(-1px)}
.tenant-card.on{border-color:#5B5BF7;box-shadow:0 0 0 1px #5B5BF7 inset,0 10px 26px rgba(91,91,247,.14)}
.tenant-card[disabled]{opacity:.55;cursor:not-allowed}
.tc-top{display:flex;align-items:center;gap:9px;min-width:0}
.tc-av{width:38px;height:38px;border-radius:11px;background:#EFEDFF;display:flex;align-items:center;
  justify-content:center;font-size:19px;flex:none}
.tc-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.tc-meta b{font-size:13px;color:#1B1F3B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-meta small{font-size:10px;color:#8A90A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-quota{display:flex;justify-content:space-between;font-size:10.2px;color:#4A4F6A;
  font-variant-numeric:tabular-nums}
.tc-bars{display:flex;flex-direction:column;gap:3px}
.tc-bars .progress{height:5px}
.tc-foot{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#A5AAC0;
  border-top:1px dashed #F0F1F8;padding-top:7px;margin-top:2px}

/* 五级面板（generate 第 1–3 步） */
.level-block{display:flex;flex-direction:column;gap:6px;padding:8px 0;border-bottom:1px dashed #F0F1F8}
.level-block:last-child{border-bottom:0;padding-bottom:2px}
.level-label{font-size:10.6px;color:#8A90A8;font-weight:700;display:flex;align-items:center;gap:6px}
.level-label .note{font-weight:400}
.base-row{display:flex;gap:6px;flex-wrap:wrap}
.base-opt{display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:10px;border:1px solid #EEF0FA;
  background:#FBFBFF;cursor:pointer;min-width:0;max-width:100%}
.base-opt:hover{border-color:#DCD9FF;background:#F7F6FF}
.base-opt.on{border-color:#5B5BF7;background:#F5F3FF;box-shadow:0 0 0 1px #5B5BF7 inset}
.bo-av{font-size:15px;flex:none}
.bo-meta{display:flex;flex-direction:column;gap:1px;min-width:0}
.bo-meta b{font-size:11px;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bo-meta small{font-size:9.2px;color:#A5AAC0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.m-body h4{margin:12px 0 4px;font-size:11.6px;color:#2C3150}
.m-body h4:first-of-type{margin-top:0}
.m-body p{font-size:11px;color:#4A4F6A;line-height:1.7}


/* 响应式：登录 / 框架 / 五级 */
@media (max-width:1180px){
  .login-app{grid-template-columns:300px minmax(0,1fr)}
  .login-hero{padding:20px 20px 16px}
  .tenant-grid{gap:10px}
}
@media (max-width:900px){
  .login-app{grid-template-columns:minmax(0,1fr)}
  .login-hero{padding:16px 18px;gap:9px}
  .login-points{display:none}
  .login-main{padding:16px 18px}
}
@media (max-width:700px){
  .tenant-grid{grid-template-columns:minmax(0,1fr)}
  .level-label{font-size:10px}
  .base-opt{max-width:100%}
  .login-head{flex-direction:column;gap:6px}
  .tb-name{font-size:11px}
  .log-head .lp,.log-row .lp{width:104px}
}

/* ================= v3.1：当前门店 / 账号区 / 底料可编辑 ================= */
/* 侧栏顶部：当前门店选择器 */
.store-box{margin:0 0 10px;padding:8px 9px;border-radius:14px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.20)}
.store-btn{display:flex;align-items:center;gap:8px;width:100%;padding:2px;border:0;background:transparent;
  color:#fff;cursor:pointer;font-family:inherit;text-align:left;border-radius:9px}
.store-btn:hover{background:rgba(255,255,255,.10)}
.st-emoji{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.22);display:flex;
  align-items:center;justify-content:center;font-size:15px;flex:none}
.st-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.st-name{font-size:11.6px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-sub{font-size:9.4px;color:rgba(255,255,255,.66);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 侧栏底部：商家账号（与门店分开） */
.account-box{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);
  border-radius:14px;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.account-btn{display:flex;align-items:center;gap:8px;width:100%;padding:1px;border:0;background:transparent;
  color:#fff;cursor:pointer;font-family:inherit;text-align:left;border-radius:8px}
.account-btn:hover{background:rgba(255,255,255,.08)}
.ac-av{width:26px;height:26px;border-radius:8px;background:rgba(255,255,255,.22);display:flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:none}
.ac-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.ac-name{font-size:10.8px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-sub{font-size:8.8px;color:rgba(255,255,255,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-box .quota-chips{margin-top:0}
.account-links{display:flex;align-items:center;gap:6px;font-size:9.2px;color:rgba(255,255,255,.55)}
.account-links a{color:rgba(255,255,255,.82);text-decoration:none}
.account-links a:hover{color:#fff;text-decoration:underline}
/* 门店切换弹窗 */
.store-pick-list{display:flex;flex-direction:column;gap:7px}
.store-pick{display:flex;align-items:center;gap:9px;text-align:left;padding:9px 11px;border-radius:11px;
  border:1px solid #EEF0FA;background:#FBFBFF;cursor:pointer;font-family:inherit;width:100%}
.store-pick:hover{border-color:#DCD9FF;background:#F7F6FF}
.store-pick.on{border-color:#5B5BF7;background:#F5F3FF;box-shadow:0 0 0 1px #5B5BF7 inset}
.sp-av{width:30px;height:30px;border-radius:9px;background:#EFEDFF;display:flex;align-items:center;
  justify-content:center;font-size:15px;flex:none}
.sp-meta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.sp-meta b{font-size:11.8px;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-meta small{font-size:9.6px;color:#8A90A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-state{font-size:9.6px;color:#5B4FE8;font-weight:700;flex:none}
/* 首页「我的商家底料」卡可点 */
.stat-link{cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
.stat-link:hover{border-color:#DCD9FF;transform:translateY(-1px);box-shadow:0 12px 26px rgba(91,91,247,.10)}
/* v3.2：首页仅保留「我的商家底料」一张卡时整行展示 */
.stats.stats-single{grid-template-columns:minmax(0,1fr)}
.stats.stats-single .stat{min-height:74px}
/* v3.2：额度移到当前门店选择器下方（切换门店不变） */
.store-quota{margin-top:8px;padding-top:7px;border-top:1px dashed rgba(255,255,255,.18)}
.store-quota .quota-chip{background:rgba(255,255,255,.20)}
/* 底料详情：解析结果行内编辑 */
.bd-group{display:flex;flex-direction:column;gap:2px}
.bd-ghead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.bd-ghead h2{margin:0}
.field-list{display:flex;flex-direction:column}
.field-row{display:flex;align-items:center;gap:10px;padding:7px 2px;border-bottom:1px dashed #F0F1F8;min-width:0}
.field-row:last-child{border-bottom:0}
.f-k{width:112px;flex:none;font-size:10.6px;color:#8A90A8;line-height:1.5;overflow:hidden;text-overflow:ellipsis}
.f-val{flex:1;min-width:0;font-size:11.4px;color:#2C3150;line-height:1.55;word-break:break-word}
.f-actions{flex:none;display:flex;gap:5px}
.btn-xs{padding:3px 9px;font-size:10px;border-radius:8px;line-height:1.5}
.field-row.editing{background:#FBFAFF;border-radius:8px;padding:6px 8px}
.f-input{width:100%;height:30px;font-size:11.4px;padding:0 8px}
/* 添加底料弹窗 */
.form-row{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}
.form-row label{font-size:11px;color:#4A4F6A;font-weight:700}
.form-row label small{font-weight:400;color:#A5AAC0}
.form-row .input{width:100%;height:34px}
.req{color:#F04438}
.check-line{display:flex;align-items:center;gap:6px;font-size:11px;color:#4A4F6A;margin:2px 0 8px}
.check-line input{width:13px;height:13px;accent-color:#5B5BF7}
.m-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
@media (max-width:1180px){
  .f-k{width:96px}
}
@media (max-width:700px){
  .store-box{margin-bottom:8px}
  .st-name{font-size:11px}
  .field-row{flex-wrap:wrap;gap:4px}
  .f-k{width:100%}
  .f-val{flex:1 1 100%}
  .f-actions{margin-left:auto}
}

/* ================= v3.3：首页只读 / 生成页主动选择 ================= */
/* 工作台 main 全部只读：无 pointer / 无 hover 跳转（侧栏不受影响） */
body[data-page="home"] .main .tool,
body[data-page="home"] .main .task,
body[data-page="home"] .main .preset,
body[data-page="home"] .main .more,
body[data-page="home"] .main .stat,
body[data-page="home"] .main .icon-btn,
body[data-page="home"] .main .search,
body[data-page="home"] .main .search input{pointer-events:none;cursor:default}
body[data-page="home"] .main .tool:hover{transform:none;box-shadow:var(--shadow);border-color:#EEF0FA}
body[data-page="home"] .main .stat:hover{transform:none;box-shadow:var(--shadow);border-color:#EEF0FA}
body[data-page="home"] .main .task:hover,
body[data-page="home"] .main .preset:hover,
body[data-page="home"] .main .more:hover{border-color:#EEF0FA;background:#fff}
body[data-page="home"] .main .more:hover{color:var(--muted)}
body[data-page="home"] .main .more{color:#A5AAC0}
/* 生成页：步骤条可点、摘要轻提示、生成按钮灰/蓝两态 */
.stepper .step{cursor:pointer}
.summary .s-hint{padding:10px 2px;font-size:11px;color:#A5AAC0;line-height:1.7}
.summary .btn.p:disabled{background:#E7E9F1!important;color:#A5AAC0!important;box-shadow:none!important;cursor:not-allowed;filter:none}
.summary .btn.p:not(:disabled){background:linear-gradient(135deg,#6D6BF8,#4E4BE8);color:#fff}
/* v3.4：历史生成记录（右侧 summary 底部，可滚动） */
.gen-history{margin-top:14px;padding-top:12px;border-top:1px dashed #EDEFF7;display:flex;flex-direction:column;min-height:0}
.gh-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.gh-head h3{font-size:12.5px;color:#2C3150;margin:0;font-weight:800}
.gh-head .note{font-size:9.6px;color:#A5AAC0}
.gh-list{max-height:210px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-right:2px}
.gh-row{display:flex;align-items:center;gap:8px;padding:7px 8px;border:1px solid #EEF0FA;border-radius:10px;background:#FBFBFF;min-width:0}
.gh-main{min-width:0;flex:1}
.gh-t{font-size:10.8px;font-weight:700;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gh-d{font-size:9.2px;color:#A5AAC0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gh-dl{flex:none;font-size:9.6px;padding:3px 8px;white-space:nowrap}
.gh-empty{font-size:10.5px;color:#A5AAC0;line-height:1.7;padding:6px 2px}
@media (max-width:700px){
  .summary .s-hint{font-size:10.5px}
  .gh-list{max-height:180px}
}
/* v3.5：视频拆解顶部统计只保留两张卡，两列等宽 */
.stats.stats-two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:700px){
  .stats.stats-two{grid-template-columns:minmax(0,1fr)}
}

/* ================= v3.9：同行爆款拆解队列 + 内嵌拆解库 ================= */
.peer-form{display:flex;gap:8px;align-items:center;margin:11px 0 6px}
.peer-form .input{flex:1;width:auto;height:34px;min-width:0}
.peer-form .btn-primary{flex:none;white-space:nowrap;padding-left:14px;padding-right:14px;margin-top:0}
.queue-summary{font-size:10.8px;color:#8A90A8;line-height:1.6;margin:9px 0}
.queue-list{display:flex;flex-direction:column;gap:8px}
.queue-item{display:flex;align-items:center;gap:10px;border:1px solid #EEF0FA;border-radius:12px;background:#FBFBFF;padding:9px 11px;min-width:0}
.q-idx{width:22px;height:22px;border-radius:50%;background:#EFEDFF;color:#5B4FE8;font-size:10.5px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none}
.q-main{flex:1;min-width:0}
.q-name{font-size:11.2px;font-weight:700;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-meta{font-size:9.6px;color:#A5AAC0;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-eta{flex:none;font-size:9.8px;color:#5B4FE8;font-weight:700;white-space:nowrap}
.queue-item .badge{flex:none}
.lib-card{display:flex;flex-direction:column;gap:2px;cursor:default}
.lib-go{flex:none;display:inline-block;text-decoration:none;white-space:nowrap}
.hit-help{margin:6px 0 10px;font-size:10.2px;line-height:1.7}
.hit-tip{border-bottom:1px dashed #C9CCDA;cursor:help}
@media (max-width:700px){
  .peer-form{flex-direction:column;align-items:stretch}
  .peer-form .btn-primary{width:100%}
  .queue-item{flex-wrap:wrap}
  .q-eta{margin-left:32px}
}

/* ================= v3.11：拆解结果页骨架命中情况 ================= */
.hit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.hit-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 13px;min-width:0;width:100%;display:block;text-align:left;font-family:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.hit-card:hover{border-color:#C9C6FF}
.hit-card.selected{box-shadow:0 0 0 2px rgba(91,91,247,.22);border-color:#8E8BFF}
.hit-card.ok{border-color:#D6F5E6;background:#F8FFFB}
.hit-card.miss{border-color:#FFE0DD;background:#FFF9F8}
.hit-card.selected.ok{background:#F2FFF8}
.hit-card.selected.miss{background:#FFF4F2}
.hit-card.incomplete{border-color:#D93025!important;box-shadow:0 0 0 2px rgba(217,48,37,.22)!important}
.hit-card.incomplete .hc-tag{background:#FDE8E6;color:#D93025}
.hc-top{display:flex;align-items:center;gap:7px;margin-bottom:5px;min-width:0}
.hc-ic{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex:none}
.hit-card.ok .hc-ic{background:#E7F9EF;color:#0F9D58}
.hit-card.miss .hc-ic{background:#FDE8E6;color:#D93025}
.hc-name{flex:1;min-width:0;font-size:12px;font-weight:700;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-tag{flex:none;font-size:9.2px;padding:2px 7px;border-radius:999px}
.hit-card.ok .hc-tag{background:#E7F9EF;color:#0F9D58}
.hit-card.miss .hc-tag{background:#FDE8E6;color:#D93025}
.hit-card p{margin:0;font-size:10.4px;line-height:1.65;color:#6A708A}
.hit-hint{margin:-2px 0 10px}
.slot-detail{margin-top:2px}
.slot-detail[hidden]{display:none}
.slot-input{height:auto;min-height:86px;padding:8px 10px;line-height:1.65;resize:vertical;font-family:inherit}
.slot-input.invalid{border-color:#D93025;box-shadow:0 0 0 2px rgba(217,48,37,.12)}
.slot-error{display:block;margin:5px 0 0;font-size:10.4px;line-height:1.55;color:#D93025}
.slot-error[hidden]{display:none}
.slot-tip{display:block;margin:5px 0 0;font-size:10.2px;line-height:1.55;color:#8A90A8}
.ok-text{color:#0F9D58}
.miss-text{color:#D93025}
.td-rewrite-box{border:1px solid #E7E4FF;background:#FBFAFF;border-radius:14px;padding:12px 14px;margin:12px 0 4px}
.td-dialect{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.rw-label{font-size:11px;font-weight:700;color:#2C3150;flex:none}
.rw-label small{font-weight:400;color:#A5AAC0;margin-left:4px}
.td-dialect-row{flex:1;min-width:200px;max-width:340px;margin:0}
.td-dialect .seg{padding:7px 10px;font-size:11px}
.td-rewrite-box .td-actions{margin:0}
.rewrite-tag{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:10.8px;color:#5A6078}
.delivery-preview{white-space:pre-wrap;max-height:365px;overflow:auto;margin:0;padding:10px 12px;border:1px solid #EEF0FA;border-radius:10px;background:#FBFBFF;font:10px/1.5 "SFMono-Regular",Consolas,monospace;color:#4A5068}
.gh-tag{margin-left:6px;font-size:9px;padding:1px 6px;vertical-align:1px}
.td-actions{display:flex;justify-content:flex-end;gap:8px;margin:12px 0 4px;flex-wrap:wrap}
@media (max-width:1180px){.hit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .hit-grid{grid-template-columns:1fr}
  .td-actions{justify-content:stretch}
  .td-actions .btn{width:100%;text-align:center}
}








.prompt-card{grid-column:1/-1}
.prompt-list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.prompt-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #ECEAF8;border-radius:10px;background:#FBFAFF;flex-wrap:wrap}
.prompt-info{min-width:240px;flex:1}
.prompt-t{font-size:12px;font-weight:700;color:#2C3150;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.prompt-d{font-size:10.4px;line-height:1.6;color:#8A90A8;margin-top:3px}
.prompt-actions{display:flex;gap:6px;flex-wrap:wrap;flex:none}
@media (max-width:700px){.prompt-row{align-items:flex-start}.prompt-actions{width:100%;justify-content:flex-start}}

/* v3.24 口令拆解 / 我的口令 */
.pd-card .pc-head{margin-bottom:8px}
.pd-input-row{display:flex;gap:8px;align-items:center;margin-top:6px}
.pd-input-row .input{flex:1;min-width:0}
.pd-state[hidden]{display:none}\n.pd-state{display:flex;flex-direction:column;gap:5px;border:1px solid #E7E4FF;background:#FBFAFF;border-radius:10px;padding:10px 12px;margin:8px 0;font-size:11px;color:#5B6178}
.pd-state b{font-size:12px;color:#2C3150}
.pd-state.ok{border-color:#D6F5E6;background:#F8FFFB}
.pd-state.warn{border-color:#FFE0DD;background:#FFF9F8}
.pd-state.busy{border-color:#E0E6FF;background:#F7F8FF}
.pd-progress{height:5px;border-radius:99px;background:#EDEBFA;overflow:hidden;margin-top:3px}
.pd-progress i{display:block;height:100%;width:45%;border-radius:99px;background:#5B5BF7;animation:pdmove 1s ease-in-out infinite alternate}
@keyframes pdmove{from{transform:translateX(-20%)}to{transform:translateX(120%)}}
.link-btn{border:0;background:none;color:#5B5BF7;font-size:11px;cursor:pointer;padding:0}
.my-p-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #ECEAF8;border-radius:10px;margin:7px 0;flex-wrap:wrap}
.my-p-main{min-width:220px;flex:1}
.my-p-name{font-size:12.5px;font-weight:700;color:#2C3150;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.my-p-meta{font-size:10.8px;color:#5B6178;margin-top:3px}
.my-p-time{font-size:10px;color:#A5AAC0;margin-top:2px}
.my-p-actions{display:flex;gap:6px;flex:none}
.pd-save-source{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border:1px solid #ECEAF8;border-radius:10px;padding:9px 11px;margin-bottom:10px;flex-wrap:wrap}
.pd-save-source .code{max-width:520px;word-break:break-all;margin:0;background:#F7F8FF;padding:5px 7px;border-radius:6px}
.pd-save-dur{text-align:right;flex:none}
.pd-save-dur b{font-size:20px;color:#5B5BF7}
.pd-save-dur small{display:block;color:#8A90A8;font-size:10px}
.pd-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.preset-group{margin-bottom:14px}
.preset-group h3{font-size:13px;margin:0 0 7px;color:#2C3150}
@media(max-width:700px){.pd-input-row{flex-direction:column;align-items:stretch}.pd-two{grid-template-columns:1fr}.my-p-actions{width:100%;justify-content:flex-start}}


#presetGrid.preset-groups-wrap{display:block}


/* v3.25 通用口令添加/下架/删除 */
#commonRestore[hidden]{display:none}
.pc-head-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.common-card{position:relative}
.common-card.is-off{opacity:.62;background:#FAFAFC;border-style:dashed}
.p-off-tag{display:inline-block;margin-left:4px;font-size:9px;font-weight:600;color:#B26B00;background:#FFF4DE;border:1px solid #FFE2A8;border-radius:99px;padding:1px 5px;vertical-align:middle}
.common-card .p-actions{display:flex;gap:5px;margin-top:8px;align-items:center}
.p-status,.p-del{border-radius:7px;font-size:10px;line-height:1;padding:5px 8px;cursor:pointer;border:1px solid #DCD9F5;background:#F5F4FF;color:#5B5BF7;font-family:inherit}
.p-status.is-add{background:#EEF9F3;border-color:#BFE8D1;color:#168A55}
.p-del{border-color:#FFD7D2;background:#FFF6F5;color:#C2413B}
.p-status:hover,.p-del:hover{filter:brightness(.97)}


/* v3.26 自定义类型 / 动态行业 / 60 字段 */
.type-add{border-style:dashed;color:#5B5BF7;background:#FAFAFF;font-family:inherit}
.seg-custom{position:relative;padding-right:44px}
.type-custom-tag{position:absolute;right:7px;top:5px;font-size:8px;line-height:1;color:#7A5AF8;background:#F0ECFF;border:1px solid #DDD3FF;border-radius:99px;padding:2px 4px;font-weight:600}
.no-base-cta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px dashed #D9D5F2;border-radius:10px;background:#FBFAFF;color:#5B6178;font-size:11px;width:100%}
.no-base-cta b{font-size:12px;color:#2C3150}
.no-base-cta span{flex:1;min-width:180px}
body.no-bases #baseSegs,body.no-bases #typeSegs,body.no-bases #presetGrid,body.no-bases #dialectSegs{opacity:.42;pointer-events:none;filter:grayscale(.25)}

/* v3.29 反馈/建议（仅客服联系方式） */
.feedback-card{max-width:620px;margin:8px auto 0;text-align:center;padding:30px 26px 26px}
.fb-icon{width:54px;height:54px;border-radius:16px;background:#F0ECFF;color:#5B5BF7;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.fb-icon svg{width:26px;height:26px}
.feedback-card h2{font-size:19px;margin:0 0 8px;color:#2C3150}
.feedback-card>.note{max-width:430px;margin:0 auto 18px}
.fb-contact{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #E4E0F8;background:#FBFAFF;border-radius:12px;padding:13px 15px;margin:0 auto 14px;text-align:left;flex-wrap:wrap}
.fb-contact-main{display:flex;align-items:center;gap:10px;min-width:0}
.fb-k{font-size:10px;color:#8A90A8;flex:none}
.fb-v{border:0;background:transparent;padding:0;font:600 22px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;color:#5B5BF7;cursor:pointer;letter-spacing:.2px;word-break:break-all}
.fb-v:hover{text-decoration:underline}
.feedback-ver{text-align:center;margin-top:18px;color:#B0B4C8}
@media(max-width:600px){.fb-contact{flex-direction:column;align-items:flex-start}.fb-v{font-size:18px}}

/* v3.30 充值页 */
.recharge-head{align-items:center}
.recharge-head>span{flex:none}
.recharge-hero{background:linear-gradient(135deg,#4F46E5 0%,#6C63FF 58%,#8B7CFF 100%);border-radius:18px;padding:22px 24px 18px;color:#fff;box-shadow:0 12px 30px rgba(91,91,247,.22);margin-bottom:16px}
.rh-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.rh-k{font-size:10px;letter-spacing:.8px;opacity:.72;text-transform:uppercase}
.rh-plan{font-size:25px;font-weight:800;margin:4px 0 3px}
.rh-sub{font-size:11px;opacity:.82}
.rh-expiry{text-align:right;font-size:10px;opacity:.8;flex:none}
.rh-expiry b{display:block;font-size:15px;margin-top:4px;opacity:.98}
.rh-quotas{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.rh-quota{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);border-radius:11px;padding:10px 12px}
.rh-q-head{display:flex;justify-content:space-between;font-size:11px;opacity:.9;margin-bottom:6px}
.rh-q-head b{font-size:13px;opacity:1}
.rh-quota .progress{height:6px;background:rgba(255,255,255,.2)}
.rh-quota .progress i{background:#fff}
.rh-left{font-size:10px;opacity:.7;margin-top:5px}
.rh-tip{font-size:10px;opacity:.7;margin-top:12px}
.recharge-section{padding:16px 18px}
.recharge-section .section-head{margin:0 0 10px}
.recharge-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.recharge-plan{border:1px solid #E9E6FA;border-radius:12px;padding:13px;background:#fff;display:flex;flex-direction:column;gap:7px}
.recharge-plan.is-current{border-color:#5B5BF7;background:#FAF9FF}
.rp-head{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.rp-head h3{font-size:14px;margin:0;color:#2C3150}
.rp-price b{font-size:25px;color:#5B5BF7;letter-spacing:-.5px}
.rp-price small{font-size:10px;color:#8A90A8}
.rp-desc{font-size:10.5px;color:#6B7088;margin:0;min-height:26px}
.rp-list{margin:2px 0 6px;padding-left:15px;color:#5B6178;font-size:10.5px;line-height:1.7}
.rp-list b{color:#2C3150}
.recharge-plan .btn{margin-top:auto}
.addon-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.addon-card{display:flex;align-items:center;gap:9px;border:1px solid #ECEAF8;border-radius:10px;padding:9px 10px}
.addon-ic{width:29px;height:29px;border-radius:8px;flex:none;display:flex;align-items:center;justify-content:center}
.addon-ic svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}
.addon-ic.purple{background:#F0ECFF;color:#5B5BF7}
.addon-ic.orange{background:#FFF4E4;color:#D97706}
.addon-main{flex:1;min-width:0}
.addon-name{font-size:11.5px;font-weight:700;color:#2C3150}
.addon-name b{color:#5B5BF7}
.addon-desc{font-size:10px;color:#8A90A8;margin-top:2px}
.addon-price{font-size:13px;font-weight:700;color:#2C3150;flex:none}
.faq-list{display:flex;flex-direction:column;gap:6px}
.faq-item{border:1px solid #ECEAF8;border-radius:9px;padding:8px 10px;background:#FCFCFF}
.faq-item summary{cursor:pointer;font-size:11px;font-weight:600;color:#3B3F58;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:before{content:'＋';color:#5B5BF7;margin-right:5px}
.faq-item[open] summary:before{content:'−'}
.faq-item p{margin:6px 0 0;font-size:10.5px;color:#6B7088;line-height:1.65}
.recharge-foot{text-align:center;margin-top:16px}
.rc-modal-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid #ECEAF8;border-radius:10px;padding:10px 11px;margin-bottom:10px}
.rc-modal-name{font-size:14px;font-weight:700;color:#2C3150}
.rc-modal-detail{font-size:10.5px;color:#6B7088;margin-top:4px}
.rc-modal-price{font-size:24px;font-weight:800;color:#5B5BF7;white-space:nowrap}
.rc-modal-price small{display:block;font-size:9px;color:#8A90A8;font-weight:400;text-align:right}
@media(max-width:1000px){.recharge-plan-grid{grid-template-columns:1fr 1fr}.addon-grid{grid-template-columns:1fr}}
@media(max-width:700px){.rh-quotas{grid-template-columns:1fr}.recharge-plan-grid{grid-template-columns:1fr}.addon-grid{grid-template-columns:1fr}}

/* v3.31 登录页（左右分栏 + 手机号验证码） */
.login2{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);background:#F7F6FF}
.login2-left{position:relative;overflow:hidden;background:linear-gradient(155deg,#3F38D9 0%,#5B4EE8 48%,#7C63FF 100%);color:#fff;padding:46px 54px 34px;display:flex;flex-direction:column;gap:28px}
.login2-left:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-200px;top:-240px;background:rgba(255,255,255,.09)}
.login2-left:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;left:-180px;bottom:-180px;background:rgba(255,255,255,.06)}
.login2-brand{display:flex;align-items:center;gap:11px;position:relative;z-index:1}
.login2-brand .logo{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.login2-brand .logo svg{width:23px;height:23px}
.login2-brand .brand-name{font-size:18px;font-weight:800}
.login2-brand .brand-sub{font-size:10px;color:rgba(255,255,255,.62);margin-top:2px}
.login2-value{position:relative;z-index:1;margin-top:22px;max-width:520px}
.login2-eyebrow{font-size:10px;letter-spacing:2.4px;color:rgba(255,255,255,.58)}
.login2-value h1{font-size:38px;line-height:1.25;letter-spacing:.4px;margin:12px 0 14px;font-weight:800}
.login2-value h1 em{font-style:normal;color:#DCD6FF}
.login2-value>p{font-size:12.5px;line-height:1.8;color:rgba(255,255,255,.68);max-width:430px}
.login2-points{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.login2-points li{display:flex;gap:12px;align-items:flex-start}
.login2-points .lp-no{font-size:10px;font-weight:700;color:rgba(255,255,255,.45);letter-spacing:.8px;padding-top:3px}
.login2-points b{display:block;font-size:12.5px;margin-bottom:3px}
.login2-points span:not(.lp-no){font-size:10.8px;color:rgba(255,255,255,.6);line-height:1.55}
.login2-left-foot{margin-top:auto;position:relative;z-index:1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:10.5px;color:rgba(255,255,255,.6)}
.login-contact{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);color:#fff;border-radius:9px;padding:7px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;cursor:pointer;display:flex;align-items:center;gap:7px}
.login-contact small{font-family:inherit;font-size:9px;color:rgba(255,255,255,.55)}
.login-contact:hover{background:rgba(255,255,255,.2)}
.login-admin-link{color:rgba(255,255,255,.62);font-size:10.5px;text-decoration:none;margin-left:auto}
.login-admin-link:hover{color:#fff;text-decoration:underline}
.login2-right{padding:34px 42px 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow-y:auto}
.login2-card{width:100%;max-width:410px;background:#fff;border:1px solid #E9E6FA;border-radius:20px;box-shadow:0 18px 46px rgba(45,37,143,.1);padding:25px 27px 22px}
.lc-head{display:flex;flex-direction:column;gap:4px;margin-bottom:16px}
.lc-badge{align-self:flex-start;font-size:9px;color:#5B5BF7;background:#F0ECFF;border-radius:20px;padding:3px 8px;font-weight:700;letter-spacing:.4px}
.lc-head h2{font-size:25px;color:#262A44;margin:7px 0 0;letter-spacing:.2px}
.lc-head p{font-size:11.5px;color:#8A90A8;margin:0}
.lc-status{font-size:10px;color:#5B5BF7;background:#F7F5FF;border-radius:6px;padding:5px 7px;margin-top:6px;line-height:1.5}
.lc-form{display:flex;flex-direction:column}
.lc-form label{font-size:10.5px;font-weight:600;color:#4C5168;margin:10px 0 5px}
.lc-form label:first-child{margin-top:0}
.lc-code{display:flex;gap:7px;align-items:center}
.lc-code .input{flex:1;min-width:0}
.lc-code .btn-ghost{flex:none;white-space:nowrap}
.lc-submit{width:100%;height:40px;margin-top:14px;font-size:13px;border-radius:9px}
.lc-note{font-size:9.8px;line-height:1.6;color:#9A9DB2;margin:10px 0 0}
.lc-note b{color:#5B5BF7}
.login2-foot{font-size:9.5px;color:#A3A7BA;margin:0;text-align:center}
@media(max-width:1000px){.login2-left{padding:34px 32px 26px}.login2-value h1{font-size:31px}.login2-value>p{font-size:11.5px}.login2-right{padding:26px 24px 20px}.login2-card{max-width:390px}}
@media(max-width:760px){.login2{grid-template-columns:1fr}.login2-left{padding:26px 22px 20px;gap:16px}.login2-value{margin-top:0}.login2-value h1{font-size:29px}.login2-points{margin-top:12px;gap:9px}.login2-left-foot{margin-top:12px}.login2-right{padding:20px 18px 18px}.login2-card{max-width:440px}.login2-foot{padding-bottom:6px}}


/* v3.35 平台对标库 */
.bench-card{display:flex;flex-direction:column;gap:8px;cursor:default}
.bench-card .cc-top .cc-av{background:#EFEDFF}
.bench-fw,.bench-st{margin:0;font-size:10.5px;line-height:1.6;color:#5F6580;word-break:break-word}
.bench-fw b,.bench-st b{color:#2C3150}
.bench-card .chip-row{margin:0}
.bench-card .cc-foot{gap:8px;flex-wrap:wrap}
.bench-card .cc-foot a.btn-primary{white-space:nowrap}
.preset-group .bench-card .pn{font-size:12.5px}


.preset-groups-wrap{display:block}
.bench-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
@media(max-width:700px){.bench-grid{grid-template-columns:1fr}}

/* v3.37 生成页/拆解页质感 & 二选一模式 */
.type-add{
  flex:0 0 auto;min-height:38px;padding:0 14px;border:1px solid #DDD8FF!important;
  border-radius:11px;background:linear-gradient(135deg,#FBFAFF 0%,#F1EEFF 100%)!important;
  color:#5145E5!important;font-weight:800;font-size:11.5px;box-shadow:0 5px 14px rgba(91,91,247,.10);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.type-add:hover{transform:translateY(-1px);border-color:#BCB4FF!important;box-shadow:0 9px 20px rgba(91,91,247,.17)}
.mode-choice-head{display:flex;align-items:center;gap:7px;margin:2px 0 7px;color:#8A90A8;font-size:10.5px;font-weight:700;letter-spacing:.02em}
.mode-choice-head em{font-style:normal;font-size:9.5px;font-weight:700;color:#6657DA;background:#F0EDFF;border:1px solid #E2DDFB;border-radius:99px;padding:2px 7px}
.mode-choice{display:grid;grid-template-columns:1fr auto 1fr;gap:9px;align-items:stretch;margin:0 0 12px}
.mode-card{position:relative;display:flex;align-items:center;gap:9px;min-width:0;padding:10px 11px;border:1px solid #E8E5F6;border-radius:13px;background:#fff;color:#2C3150;font:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease}
.mode-card:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(60,55,150,.10);border-color:#CFC8F2}
.mode-card .mc-ic{width:30px;height:30px;flex:none;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;background:#F1EFFF;color:#6657DA}
.mode-card[data-mode="benchmark"] .mc-ic{background:#EAF1FF;color:#3D74E8}
.mode-card[data-mode="preset"] .mc-ic{background:#F2EBFF;color:#7A5AF8}
.mode-card .mc-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.mode-card .mc-tx b{font-size:12.2px;line-height:1.25;color:#2C3150;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mode-card .mc-tx small{font-size:10.2px;line-height:1.35;color:#8A90A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mode-card .mc-count{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#F1EFFF;color:#6657DA;font-size:10px;font-weight:700}
.mode-card.on{border-color:#7C6CF6;background:linear-gradient(135deg,#F7F5FF,#EEF2FF);box-shadow:0 7px 20px rgba(91,91,247,.16)}
.mode-card.on[data-mode="benchmark"]{border-color:#77A0F8;background:linear-gradient(135deg,#F4F8FF,#EBF3FF);box-shadow:0 7px 20px rgba(61,116,232,.15)}
.mode-card.on[data-mode="preset"]{border-color:#9B82F7;background:linear-gradient(135deg,#FBF7FF,#F1ECFF);box-shadow:0 7px 20px rgba(122,90,248,.15)}
.mode-card.on::after{content:'✓';position:absolute;top:7px;right:8px;width:15px;height:15px;border-radius:99px;background:#5B5BF7;color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}
.mode-card.on[data-mode="benchmark"]::after{background:#3D74E8}
.mode-card.on[data-mode="preset"]::after{background:#7A5AF8}
.mode-or{display:flex;align-items:center;justify-content:center;color:#A8ACC0;font-size:10px;font-weight:700}
.mode-panel{min-height:70px}
.mode-placeholder{display:flex;align-items:center;justify-content:center;min-height:80px;border:1px dashed #E6E2FA;border-radius:12px;background:#FCFBFF;color:#8A90A8;font-size:11.2px}
.mode-empty{display:flex;align-items:flex-start;gap:11px;border:1px dashed #DED9F7;border-radius:13px;background:linear-gradient(135deg,#FBFAFF,#F6F3FF);padding:14px 15px}
.mode-empty .me-ic{width:32px;height:32px;flex:none;border-radius:10px;background:#EFECFF;color:#6357E8;display:flex;align-items:center;justify-content:center;font-size:16px}
.mode-empty b{font-size:12.2px;color:#2C3150}
.mode-empty p{margin:4px 0 9px;color:#8A90A8;font-size:10.8px;line-height:1.6}
.mode-empty .me-actions{display:flex;gap:7px;flex-wrap:wrap}
/* 右侧摘要 */
.summary{padding:17px 17px 15px;background:linear-gradient(180deg,#fff 0%,#FCFBFF 100%);border-color:#EAE7FA;box-shadow:0 14px 34px rgba(80,90,160,.07)}
.sum-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:11px}
.sh-title{font-size:14px;font-weight:900;color:#232849;letter-spacing:.01em}
.sh-sub{font-size:9.8px;color:#A5AAC0;margin-top:4px}
.sum-step{flex:none;display:inline-flex;align-items:center;justify-content:center;height:24px;padding:0 9px;border-radius:99px;background:#F0EDFF;color:#5A4DE0;font-size:10.5px;font-weight:800}
.sum-list{display:flex;flex-direction:column;padding:2px 11px;background:#FAF9FF;border:1px solid #F0EDFF;border-radius:12px;margin-bottom:13px}
.s-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 0;border-bottom:1px dashed #ECE9F8}
.s-row:last-child{border-bottom:0}
.s-k{flex:none;font-size:10.4px;color:#969BB2;padding-top:1px}
.s-v{font-size:11.6px;color:#292E4D;font-weight:700;text-align:right;line-height:1.55;word-break:break-word}
.gen-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;border:0;border-radius:12px;background:linear-gradient(135deg,#6E68FF 0%,#5148E8 100%);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(91,91,247,.30);transition:transform .15s ease,box-shadow .15s ease,filter .15s ease}
.gen-btn small{font-size:9.6px;font-weight:600;opacity:.78;padding-left:7px;border-left:1px solid rgba(255,255,255,.32)}
.gen-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 14px 27px rgba(91,91,247,.36);filter:brightness(1.03)}
.gen-btn:disabled{background:#E9EAF2;color:#A2A7BB;box-shadow:none;cursor:not-allowed}
.gen-btn:disabled small{opacity:.7;border-left-color:rgba(255,255,255,.2)}
.sum-hint{font-size:10px;color:#A0A5BA;line-height:1.7;padding:9px 1px 0;min-height:22px}
.hint-warn{color:#B26B00}
.sum-history{margin-top:13px;padding-top:12px;border-top:1px dashed #ECE9F7}
.sh-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:11.5px;font-weight:800;color:#353A58}
.sh-head span{font-size:9.8px;font-weight:500;color:#A5AAC0}
#genHistory{display:flex;flex-direction:column;gap:7px;max-height:214px;overflow-y:auto;padding-right:2px}
.history-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border:1px solid #EFEDFA;border-radius:10px;background:#FBFBFF;transition:border-color .15s ease,background .15s ease}
.history-row:hover{border-color:#DCD6FF;background:#FAF8FF}
.hr-main{min-width:0}
.hr-title{font-size:11px;font-weight:700;color:#333855;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-meta{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:9.6px;color:#969BB2}
.hr-tag{display:inline-block;padding:1px 5px;border-radius:99px;background:#F0EDFF;color:#5F54DA;font-size:8.8px;font-weight:700;white-space:nowrap}
.history-empty{font-size:10.5px;color:#A5AAC0;padding:9px 2px;text-align:center;border:1px dashed #EEECF8;border-radius:9px;background:#FCFBFF}
/* 拆解库命中徽章 & 实心主按钮 */
.hit-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;border-radius:99px;font-size:9.8px;font-weight:800;line-height:1.45;white-space:nowrap}
.hit-badge.ok{background:#E7F9EF;color:#0F8A50;border:1px solid #C3EED7}
.hit-badge.miss{background:#FDE8E6;color:#C7352B;border:1px solid #F6C9C4}
.lib-card .lib-go{background:linear-gradient(135deg,#625BFF,#4B43E4)!important;color:#fff!important;border:0;box-shadow:0 6px 14px rgba(80,70,220,.22);opacity:1;font-weight:800}
.lib-card .lib-go:hover{filter:brightness(1.05);box-shadow:0 9px 20px rgba(80,70,220,.30);transform:translateY(-1px)}


[hidden]{display:none!important}


#platformBenchmarks .bench-empty{grid-column:1/-1}


/* v3.38 平台框架 / 对标文案 */
.pf-badge{display:inline-flex;align-items:center;padding:1px 6px;border-radius:99px;background:#EEF1FF;border:1px solid #D9E0FF;color:#3D5BD9;font-size:8.8px;font-weight:800;line-height:1.6;vertical-align:middle;white-space:nowrap}
.platform-fw-card .cc-name{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.platform-fw-card .cc-foot a.btn-primary{white-space:nowrap}
.bench-copy{margin:0;font-size:10.8px;line-height:1.65;color:#3B405E;background:#FAF9FF;border:1px solid #F0EDFF;border-radius:9px;padding:7px 9px;word-break:break-word}
.bench-copy b,.bench-fw b,.bench-st b{color:#5A4DE0;font-weight:800}
.bench-copy-mini,.bench-hooks-mini,.bench-steps-mini{line-height:1.5}
.bench-copy-mini b,.bench-hooks-mini b,.bench-steps-mini b{color:#5A4DE0}
.bench-card .bench-copy{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}

/* 备案号（工信部要求：首页底部展示并链接 beian.miit.gov.cn） */
.icp-note { padding: 8px 0 2px; text-align: center; font-size: 11px; line-height: 1.5; opacity: .55; }
.icp-note a, a.icp-link { color: inherit; text-decoration: none; }
.icp-note a:hover, a.icp-link:hover { text-decoration: underline; }
a.icp-link { font-size: 11px; opacity: .65; margin-left: 8px; white-space: nowrap; }