/* ============ 设计变量 ============ */
:root{
  --sidebar:#0E1C30;
  --sidebar-2:#132541;
  --primary:#2563EB;
  --primary-dark:#1D4ED8;
  --cyan:#06B6D4;
  --success:#10B981;
  --warning:#F59E0B;
  --danger:#EF4444;
  --purple:#8B5CF6;
  --bg:#F4F6FA;
  --card:#FFFFFF;
  --ink:#0F172A;
  --muted:#64748B;
  --line:#E6EAF0;
  --shadow:0 2px 14px rgba(15,23,42,.05);
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);background:var(--bg);font-size:13px;-webkit-font-smoothing:antialiased;overflow:hidden;
}
svg{display:block}

/* ============ 布局 ============ */
.app{display:flex;height:100vh}
.sidebar{
  width:186px;flex-shrink:0;background:linear-gradient(180deg,var(--sidebar) 0%,var(--sidebar-2) 100%);
  color:#94A3B8;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;transition:width .25s;
}
.sidebar.collapsed{width:54px}
.sidebar.collapsed .txt,.sidebar.collapsed .caret,.sidebar.collapsed .nav-sub{display:none}
.sidebar.collapsed .brand{padding:0 10px}
.sidebar.collapsed .nav-item{padding:0 18px}

.brand{height:56px;display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.06);white-space:nowrap;flex-shrink:0;cursor:pointer;transition:background .15s}
.brand:hover{background:rgba(255,255,255,.05)}
.brand .logo{width:34px;height:34px;object-fit:contain;flex-shrink:0;border-radius:8px}
.brand strong{display:block;color:#fff;font-size:17px;font-weight:600;line-height:1.1;letter-spacing:.02em}
.brand span{display:block;font-size:9px;color:#67E8F9;letter-spacing:.11em;line-height:1.5;margin-top:3px}

.nav{padding:6px 0;flex:1}
.nav-item{
  display:flex;align-items:center;gap:10px;height:38px;padding:0 16px;cursor:pointer;position:relative;
  white-space:nowrap;transition:.15s;font-size:12.5px;user-select:none;
}
.nav-item:hover{background:rgba(255,255,255,.05);color:#E2E8F0}
.nav-item.active{background:linear-gradient(90deg,rgba(37,99,235,.32),rgba(37,99,235,.04));color:#fff}
.nav-item.active::before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 3px 3px 0;background:var(--cyan)}
.nav-item svg{width:16px;height:16px;flex-shrink:0;opacity:.85}
.caret{margin-left:auto;width:12px;height:12px;transition:transform .2s;opacity:.6}
.nav-item.open .caret{transform:rotate(90deg)}
.nav-sub{display:none;padding:2px 0}
.nav-sub.show{display:block}
.nav-sub .nav-item{padding-left:42px;font-size:12px;height:33px}
.nav-sub .nav-item.active{background:rgba(37,99,235,.2)}
.sidebar-footer{border-top:1px solid rgba(255,255,255,.06);padding:10px 0;flex-shrink:0}
.sidebar-footer .nav-item{font-size:11px;color:#64748B}
.powered{padding:8px 16px 2px;font-size:9px;color:#475569;white-space:nowrap}

.main{flex:1;display:flex;flex-direction:column;min-width:0}

/* ============ 顶栏 ============ */
.topbar{height:52px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 10px;flex-shrink:0;gap:8px}
.top-left{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
.breadcrumb{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px}
.breadcrumb .sep{color:#CBD5E1}
.icon-btn{width:30px;height:30px;display:grid;place-items:center;border:none;background:transparent;cursor:pointer;border-radius:6px;color:var(--muted);position:relative}
.icon-btn:hover{background:var(--bg);color:var(--primary)}
.badge{position:absolute;top:0;right:-2px;background:var(--danger);color:#fff;font-size:9px;min-width:16px;height:16px;border-radius:8px;display:grid;place-items:center;padding:0 4px;border:2px solid #fff}
.top-actions{display:flex;align-items:center;gap:14px}
.user-chip{position:relative;display:flex;align-items:center;gap:8px;cursor:pointer}
.avatar{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#EC4899,#8B5CF6);color:#fff;display:grid;place-items:center;font-weight:600;font-size:12px}
.user-meta strong{display:block;font-size:12px;line-height:1.2}
.user-meta span{display:block;font-size:10px;color:var(--muted);line-height:1.4}
.user-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:126px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.14);padding:5px;display:none;z-index:300}
.user-menu.show{display:block}
.user-menu button{width:100%;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:6px;color:#334155;font-size:12px;cursor:pointer}
.user-menu button:hover{background:#F1F5F9;color:var(--primary)}

/* ============ 多标签页 ============ */
.tabs{height:38px;background:transparent;display:flex;align-items:stretch;padding:0;gap:2px;flex:1;min-width:0;overflow-x:auto;align-self:stretch}
.tabs::-webkit-scrollbar{height:0}
.tab{display:flex;align-items:center;gap:7px;padding:0 12px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap;font-size:12px;transition:.15s}
.tab:hover{color:var(--primary);background:#F8FAFC}
.tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.tab .dot{width:5px;height:5px;border-radius:50%;background:#CBD5E1}
.tab.active .dot{background:var(--primary)}
.tab .close{font-size:14px;color:#CBD5E1;line-height:1;padding:0 2px;border-radius:3px}
.tab .close:hover{color:var(--danger);background:#FEF2F2}

/* ============ 内容区 ============ */
.content{flex:1;overflow-y:auto;padding:18px 20px 34px}
.page{display:none;animation:fade .25s ease}
.page.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.section-head h2{font-size:15px;font-weight:600}
.section-head .sub{font-size:11px;color:var(--muted);margin-top:2px}
.count-pill{background:#EFF6FF;color:var(--primary);padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600}

/* ============ 工作台卡片 ============ */
.dash-title{display:flex;align-items:baseline;gap:14px}
.dash-title .sub{font-size:12px;color:var(--muted)}
.dash-actions{display:flex;align-items:center;gap:10px}
.project-switch{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:3px 6px 3px 9px;box-shadow:var(--shadow)}
.ps-icon svg{width:15px;height:15px;color:var(--primary)}
.project-switch select{border:none;outline:none;font-size:12px;color:var(--ink);font-weight:600;background:transparent;max-width:170px;cursor:pointer}
.ps-star{border:none;background:transparent;cursor:pointer;font-size:16px;color:#CBD5E1;line-height:1;padding:0 2px}
.ps-star.active{color:#F59E0B}
.ps-star:hover{color:#F59E0B}
@media(max-width:640px){.dash-title{flex-direction:column;gap:2px}.section-head{flex-wrap:wrap;gap:10px}}

.todo-grid{display:grid;gap:14px}
.todo-card{background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;transition:.2s;display:flex;flex-direction:column}
.todo-card:hover{box-shadow:0 10px 28px rgba(15,23,42,.09);transform:translateY(-2px)}
.card-head{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line)}
.card-head-left{display:flex;align-items:center;gap:9px;flex-shrink:0}
.card-icon{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;color:#fff;flex-shrink:0}
.card-icon svg{width:16px;height:16px}
.c-blue{background:linear-gradient(135deg,#60A5FA,#2563EB)}
.c-cyan{background:linear-gradient(135deg,#22D3EE,#0891B2)}
.c-red{background:linear-gradient(135deg,#FB7185,#E11D48)}
.c-purple{background:linear-gradient(135deg,#A78BFA,#7C3AED)}
.c-orange{background:linear-gradient(135deg,#FBBF24,#D97706)}
.c-green{background:linear-gradient(135deg,#34D399,#059669)}
.card-title{font-weight:600;font-size:13.5px}
.card-count{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#EFF6FF;color:var(--primary);font-size:11px;font-weight:600;display:grid;place-items:center;flex-shrink:0}
.card-tool{width:26px;height:26px;display:grid;place-items:center;border:1px solid #BFDBFE;border-radius:6px;background:#EFF6FF;color:var(--primary);cursor:pointer;flex-shrink:0;transition:.15s;font-size:17px;line-height:1}
.card-tool:hover{background:var(--primary);border-color:var(--primary);color:#fff}
.card-tabs{display:flex;gap:12px;flex:1;min-width:0;font-size:11.5px;overflow-x:auto;padding-top:8px}
.card-tabs::-webkit-scrollbar{height:0}
.card-tab{position:relative;padding:5px 2px;color:var(--muted);cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent}
.card-tab:hover{color:var(--primary)}
.card-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.card-tab b{position:absolute;top:-7px;right:-7px;min-width:15px;height:15px;line-height:15px;padding:0 3px;border-radius:5px;font-size:9.5px;font-weight:700;text-align:center}
.card-tab b.b-blue{background:#DBEAFE;color:#2563EB}
.card-tab b.b-cyan{background:#CFFAFE;color:#0891B2}
.card-tab b.b-red{background:#FEE2E2;color:#DC2626}
.card-tab b.b-purple{background:#EDE9FE;color:#7C3AED}
.card-tab b.b-orange{background:#FFEDD5;color:#EA580C}
.card-tab b.b-green{background:#D1FAE5;color:#059669}
.card-tab b.b-gray{background:#E2E8F0;color:#64748B}
.card-list{max-height:206px;min-height:206px;overflow-y:auto}
.todo-item{padding:9px 14px;border-bottom:1px solid #F1F5F9;cursor:pointer;transition:.15s;display:flex;gap:8px;align-items:flex-start}
.todo-item:last-child{border-bottom:none}
.todo-item:hover{background:#F8FAFC}
.todo-item .body{min-width:0;flex:1}
.todo-item .t{font-size:12px;color:var(--ink);line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.todo-item .m{font-size:10.5px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-tag{font-size:10px;padding:2px 6px;border-radius:4px;white-space:nowrap;flex-shrink:0;margin-left:auto}

/* ============ 通用工具栏与表格 ============ */
.toolbar{display:flex;gap:9px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.input,.select{height:32px;border:1px solid #D8DEE8;border-radius:6px;padding:0 10px;font-size:12px;background:#fff;color:var(--ink);outline:none;transition:.15s}
.input:focus,.select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.input.search{width:190px}
.btn{height:32px;padding:0 14px;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;display:inline-flex;align-items:center;gap:6px;transition:.15s;white-space:nowrap}
.btn:hover{filter:brightness(.95);transform:translateY(-1px)}
.btn-primary{background:var(--primary);color:#fff}
.btn-success{background:var(--success);color:#fff}
.btn-ghost{background:#fff;border:1px solid #D8DEE8;color:var(--ink)}
.btn-reset{background:linear-gradient(135deg,#F59E0B,#EA580C);color:#fff;border:1px solid #EA580C;box-shadow:0 2px 8px rgba(234,88,12,.25);font-weight:600;padding:0 16px}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:auto;box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse;font-size:12px;min-width:720px}
th{background:#F8FAFC;color:#475569;font-weight:600;text-align:left;padding:11px 13px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:10px 13px;border-bottom:1px solid #F1F5F9;white-space:nowrap;color:#334155}
tr:hover td{background:#F8FAFC}
tr:last-child td{border-bottom:none}
.empty-cell{text-align:center;padding:56px 13px!important;color:#94A3B8}
.empty-state{display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:#94A3B8}
.fixer-col{display:table-cell}
#page-tests.stage-todo .fixer-col{display:none}
th:last-child,td:last-child{position:sticky;right:0;background:#fff;border-left:1px solid var(--line);box-shadow:-6px 0 10px rgba(15,23,42,.06);z-index:1}
th:last-child{background:#F8FAFC;z-index:2}
tr:hover td:last-child{background:#F8FAFC}
.tag{display:inline-block;padding:2px 8px;border-radius:4px;font-size:10.5px}
.tag-blue{background:#EFF6FF;color:var(--primary)}
.tag-green{background:#ECFDF5;color:var(--success)}
.tag-orange{background:#FFF7ED;color:#EA580C}
.tag-red{background:#FEF2F2;color:var(--danger)}
.tag-purple{background:#F5F3FF;color:var(--purple)}
.tag-cyan{background:#ECFEFF;color:#0891B2}
.tag-gray{background:#F1F5F9;color:#64748B}
.op-btn{font-size:11px;padding:3px 9px;border:none;border-radius:4px;cursor:pointer;margin-right:4px;transition:.15s}
.op-btn:hover{filter:brightness(.92)}
.op-edit{background:#3B82F6;color:#fff}
.op-orange{background:#F59E0B;color:#fff}
.op-green{background:#10B981;color:#fff}
.online-time{font-size:11px;color:#64748B;white-space:nowrap}
.done-time{font-size:11px;color:#64748B;white-space:nowrap}
.op-gray{background:#94A3B8;color:#fff}
.op-del{background:#EF4444;color:#fff}
.op-actions{display:grid;grid-template-columns:repeat(2,max-content);grid-template-rows:repeat(2,auto);gap:4px}
.desc-col{width:225px;min-width:225px;max-width:225px}
.desc-cell{position:relative;width:260px;min-width:260px;max-width:260px;white-space:normal;vertical-align:top}
.desc-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em;overflow:hidden;word-break:break-word}
.desc-actions{position:absolute;right:8px;bottom:6px;display:flex;gap:4px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 14%)}
.desc-view{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:600}
.desc-view:hover{filter:brightness(.95)}
.desc-view-inline{display:inline;background:none;border:0;color:var(--primary);font-size:11px;cursor:pointer;padding:0;margin-left:4px;vertical-align:baseline}
.desc-view-inline:hover{text-decoration:underline}
.remark-col{width:168px;min-width:168px;max-width:168px}
.remark-cell{position:relative;width:168px;min-width:168px;max-width:168px;white-space:normal;vertical-align:top}
.remark-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-height:1.5;max-height:4.5em;overflow:hidden;word-break:break-word}
.remark-actions{position:absolute;right:8px;bottom:6px;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 14%)}
.remark-view{background:var(--primary);color:#fff;border:0;border-radius:4px;font-size:11px;padding:3px 8px;cursor:pointer;font-weight:600}
.desc-body{max-height:60vh;overflow:auto;white-space:pre-wrap;line-height:1.7;font-size:13px;color:#334155;background:#F8FAFC;border:1px solid var(--line);border-radius:8px;padding:14px}
.desc-body img{max-width:100%;height:auto;border-radius:6px;margin:6px 0;cursor:zoom-in}
.flow-view{background:#7C3AED;color:#fff;border:0;border-radius:4px;font-size:11px;padding:3px 8px;cursor:pointer;font-weight:600}
.flow-basic{background:#F8FAFC;border:1px solid var(--line);border-radius:8px;padding:14px;margin:14px 0}
.flow-basic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;font-size:12px}
.flow-basic-item{color:#475569;word-break:break-word}
.flow-basic-item b{color:#334155;margin-right:5px}
.flow-basic-desc{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px;margin-top:4px;line-height:1.7}
.flow-basic-desc img,.flow-note img,.flow-media img{width:64px;height:48px;object-fit:cover;border-radius:4px;margin:3px;cursor:zoom-in;border:1px solid var(--line)}
.flow-list{margin:6px 0 14px}
.flow-item{position:relative;margin-left:7px;padding:0 0 16px 18px;border-left:2px solid #DBEAFE}
.flow-item:before{content:"";position:absolute;left:-6px;top:2px;width:10px;height:10px;border-radius:50%;background:var(--primary);border:2px solid #fff;box-shadow:0 0 0 2px #BFDBFE}
.flow-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:#475569;margin-bottom:6px}
.flow-note{font-size:12px;line-height:1.7;color:#334155;background:#F8FAFC;border-radius:6px;padding:8px 10px;margin-bottom:6px;word-break:break-word}
.flow-media{display:flex;flex-wrap:wrap;gap:6px}
.flow-empty{text-align:center;color:#94A3B8;padding:22px;font-size:12px}
.img-viewer{position:relative;display:flex;align-items:center;justify-content:center;max-width:92vw;max-height:90vh}
.img-viewer img{max-width:92vw;max-height:90vh;object-fit:contain;border-radius:8px;background:#fff}
.img-viewer .modal-x{position:absolute;top:-30px;right:0;color:#fff;font-size:24px}
.banner{background:linear-gradient(100deg,#EFF6FF,#ECFEFF);border:1px solid #DBEAFE;border-radius:10px;padding:16px 18px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center}
.banner h3{font-size:16px;margin-bottom:3px}
.banner p{font-size:11px;color:var(--muted)}
.pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:12px;font-size:11px;color:var(--muted)}
.pagination .pg{border:1px solid #D8DEE8;background:#fff;border-radius:5px;padding:4px 9px;cursor:pointer}
.pagination .pg.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.empty-page{background:#fff;border:1px solid var(--line);border-radius:10px;padding:60px 20px;text-align:center;color:var(--muted)}
.empty-page svg{width:46px;height:46px;margin:0 auto 14px;color:#CBD5E1}
.empty-page h3{font-size:14px;color:var(--ink);margin-bottom:6px}

/* 滚动条 */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#CBD5E1;border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:#94A3B8}
::-webkit-scrollbar-track{background:transparent}

/* ============ 工作台布局与字号（仅作用于工作台） ============ */
#page-dashboard{height:100%}
#page-dashboard.active{display:flex;flex-direction:column}
#page-dashboard .todo-grid{
  flex:1;min-height:0;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) minmax(0,1fr);
}
#page-dashboard .todo-card[data-key="test"]{grid-column:1;grid-row:1 / span 2}
#page-dashboard .todo-card[data-key="version"]{grid-column:2;grid-row:1}
#page-dashboard .todo-card[data-key="todo"]{grid-column:2;grid-row:2}
#page-dashboard .card-list{flex:1;min-height:0;max-height:none;overflow-y:auto}
@media(max-width:1100px){
  #page-dashboard{height:auto}
  #page-dashboard .todo-grid{flex:none;grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(300px,auto)}
  #page-dashboard .todo-card[data-key="test"],
  #page-dashboard .todo-card[data-key="version"],
  #page-dashboard .todo-card[data-key="todo"]{grid-column:auto;grid-row:auto}
  #page-dashboard .card-list{max-height:320px}
}
#page-dashboard .section-head h2{font-size:18px}
#page-dashboard .section-head .sub{font-size:13px}
#page-dashboard .count-pill{font-size:13px;padding:5px 14px}
#page-dashboard .card-title{font-size:16px}
#page-dashboard .card-count{font-size:13px;height:22px;min-width:22px}
#page-dashboard .card-tabs{font-size:13px;gap:14px;padding-top:8px}
#page-dashboard .todo-item{padding:11px 14px}
#page-dashboard .todo-item .t{font-size:14px}
#page-dashboard .todo-item .m{font-size:12px;margin-top:4px}
#page-dashboard .mini-tag{font-size:11.5px;padding:3px 8px}

/* 工作台测试记录条目：严格两行，首行描述 + 同行的查看入口 */
.dash-test-item{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:12px;row-gap:4px;align-items:center}
.dash-test-item .dash-test-desc{grid-column:1 / 3;grid-row:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:120px;position:relative;z-index:0}
.dash-test-item .dash-test-links{grid-column:2;grid-row:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;position:relative;z-index:1}
.dash-test-item .dash-test-links .flow-view{font-size:10.5px;padding:2px 6px;white-space:nowrap}
#page-dashboard .dash-test-item .dash-test-meta{grid-column:1;grid-row:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:0}
.dash-test-item .dash-due{margin-left:10px;color:#EA580C;font-weight:600}
.dash-test-item .dash-test-right{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:nowrap;white-space:nowrap}
.dash-todo-row{cursor:pointer}
.dash-todo-row:hover{background:#F8FAFC}
.dash-priority{font-size:10.5px;padding:2px 7px;border-radius:4px;white-space:nowrap;font-weight:600}

/* 工作台版本管理条目：两行，超长省略 */
.dash-version-item{display:grid;grid-template-rows:auto auto;row-gap:4px;align-items:center}
.dash-version-top,.dash-version-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.dash-version-no{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.dash-version-count{font-size:11px;color:var(--muted);white-space:nowrap;flex-shrink:0}
#page-dashboard .dash-version-item .dash-version-reports{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:0}
.dash-version-bottom .dash-enter{flex-shrink:0}

/* ============ 移动端适配 ============ */
@media(max-width:768px){
  .app{display:block}
  .sidebar,.sidebar.collapsed{
    position:fixed;left:0;top:0;bottom:0;width:232px;z-index:1000;
    transform:translateX(-100%);transition:transform .25s ease;
  }
  .sidebar.open{transform:translateX(0)}
  .sidebar.collapsed .brand{padding:0 16px}
  .sidebar.collapsed .txt,.sidebar.collapsed .caret{display:block}
  .sidebar.collapsed .nav-sub.show{display:block}
  .sidebar-footer #collapseBtn{display:none}
  .sidebar-mask{display:none;position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:999}
  .sidebar-mask.show{display:block}
  .main{width:100%;height:100vh}
  .topbar{height:52px;padding:0 8px}
  .user-meta,.user-chip>svg{display:none}
  .tab{padding:0 9px}
  .card-head{flex-wrap:wrap}
  .card-head-left{width:100%}
  .card-tabs{width:100%;order:3}
  .content{padding:12px 10px 26px}
  .section-head h2{font-size:17px}
  .head-left{width:100%;flex-wrap:wrap;gap:10px}
  .head-search{width:100%}
  .toolbar{gap:7px}
  .input.search{width:100%}
  .banner{padding:13px;flex-direction:column;align-items:flex-start;gap:10px}
  .pagination{justify-content:center}
}

/* ============ 登录层 ============ */
.login-overlay{
  display:none;position:fixed;inset:0;z-index:2000;overflow:hidden;
  background:
    radial-gradient(ellipse 65% 60% at 78% 48%, rgba(6,182,212,.16), transparent 62%),
    radial-gradient(ellipse 55% 50% at 12% 18%, rgba(37,99,235,.22), transparent 60%),
    linear-gradient(135deg,#071120 0%,#0B1E33 48%,#061325 100%);
  align-items:center;justify-content:center;padding:20px;
}
.login-overlay.show{display:flex}
.login-bg{position:absolute;inset:0;pointer-events:none}
.bg-stars{position:absolute;inset:0;opacity:.7;background-image:
  radial-gradient(1px 1px at 30px 40px,#67E8F9,transparent),
  radial-gradient(1px 1px at 170px 120px,#93C5FD,transparent),
  radial-gradient(1px 1px at 90px 220px,#67E8F9,transparent),
  radial-gradient(1px 1px at 240px 300px,#E0F2FE,transparent),
  radial-gradient(1px 1px at 140px 380px,#93C5FD,transparent);
  background-size:320px 420px}
.bg-lines{position:absolute;inset:0;width:100%;height:100%}

.login-copy{position:absolute;left:6%;top:50%;transform:translateY(-50%);max-width:400px;color:#fff}
.copy-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 14px;border:1px solid rgba(103,232,249,.32);border-radius:20px;background:rgba(6,182,212,.08);font-size:11px;color:#A5F3FC}
.pulse{width:6px;height:6px;border-radius:50%;background:#22D3EE;box-shadow:0 0 8px #22D3EE;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.login-copy h1{font-size:38px;line-height:1.25;font-weight:700;letter-spacing:-.02em;margin-top:18px}
.login-copy h1 em{font-style:normal;background:linear-gradient(90deg,#67E8F9,#3B82F6);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.login-copy p{margin-top:16px;font-size:12px;color:#94A3B8;line-height:1.9}
.copy-tags{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap}
.copy-tags span{font-size:10px;color:#7DD3FC;padding:4px 10px;border:1px solid rgba(125,211,252,.22);border-radius:4px;background:rgba(8,30,50,.4)}

.agent-orbit{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:440px;height:440px}
.orbit-ring{position:absolute;border:1px solid rgba(103,232,249,.18);border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%)}
.orbit-ring.r1{width:190px;height:190px;border-style:dashed;animation:spin 30s linear infinite}
.orbit-ring.r2{width:290px;height:290px;border-color:rgba(103,232,249,.14)}
.orbit-ring.r3{width:400px;height:400px;border-color:rgba(103,232,249,.08)}
@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.orbit-core{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:118px;height:118px;border-radius:50%;background:radial-gradient(circle,rgba(37,99,235,.4),rgba(6,182,212,.06));border:1px solid rgba(103,232,249,.4);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 50px rgba(6,182,212,.35)}
.orbit-core img{width:50px;height:50px;object-fit:contain;border-radius:10px}
.orbit-core span{font-size:8px;color:#67E8F9;letter-spacing:.2em;margin-top:3px}
.node{position:absolute;width:46px;height:46px;border-radius:50%;border:1px solid rgba(103,232,249,.4);background:rgba(10,30,52,.85);display:grid;place-items:center;font-size:10px;color:#BAE6FD;box-shadow:0 0 18px rgba(6,182,212,.18)}
.node.n1{top:5%;left:50%;transform:translateX(-50%)}
.node.n2{top:20%;right:9%}
.node.n3{top:46%;right:1%}
.node.n4{bottom:16%;right:10%}
.node.n5{bottom:5%;left:50%;transform:translateX(-50%)}
.node.n6{top:46%;left:1%}
.float-card{position:absolute;background:rgba(12,32,56,.85);border:1px solid rgba(103,232,249,.28);border-radius:8px;padding:8px 12px;color:#E0F2FE;font-size:11px;backdrop-filter:blur(6px);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.float-card small{display:block;color:#7DD3FC;font-size:9px;margin-top:3px}
.float-card.f1{top:24%;left:-6%}
.float-card.f2{bottom:22%;right:-4%}

.login-card{position:relative;z-index:10;width:min(340px,100%);background:#fff;border-radius:14px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.4)}
.login-brand{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.login-brand img{width:38px;height:38px;object-fit:contain;border-radius:9px}
.login-brand strong{display:block;font-size:16px;line-height:1.2}
.login-brand span{display:block;font-size:9px;color:var(--cyan);letter-spacing:.1em}
.login-card h2{font-size:19px;margin-bottom:4px}
.login-desc{font-size:12px;color:var(--muted);margin-bottom:20px}
.login-card .input{width:100%;margin-bottom:12px;height:38px}
.login-err{color:var(--danger);font-size:11px;min-height:16px;margin-bottom:6px}
.login-card .btn{height:38px;margin-top:4px}
.login-tip{text-align:center;font-size:10px;color:#94A3B8;margin-top:14px}
@media(max-width:1200px){.login-copy{display:none}.agent-orbit{right:-8%;opacity:.6}}
@media(max-width:768px){.agent-orbit,.bg-lines{display:none}}

/* ============ 编辑弹窗 ============ */
.modal-overlay{display:none;position:fixed;inset:0;z-index:1500;background:rgba(15,23,42,.45);align-items:center;justify-content:center;padding:20px}
.modal-overlay.show{display:flex}
#flowOverlay{z-index:1800}
.flow-add-progress{margin-left:auto;margin-right:12px;display:inline-flex;align-items:center;gap:5px;background:#EFF6FF;color:var(--primary);border:1px solid #BFDBFE;border-radius:16px;padding:5px 14px;font-size:12px;font-weight:500;transition:background .15s,border-color .15s}
.flow-add-progress:hover{background:#DBEAFE;border-color:#93C5FD}
.flow-add-progress svg{width:14px;height:14px;flex-shrink:0}
#confirmOverlay{z-index:1900}
#imgOverlay{z-index:2100}
.modal{width:min(460px,100%);max-height:86vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.25)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line)}
.modal-head h3{font-size:15px}
.modal-x{font-size:22px;color:#94A3B8;cursor:pointer;line-height:1}
.modal-form{padding:16px 18px 4px}
.modal-label{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
.req{color:var(--danger);font-weight:700;margin-left:3px}
.field-hint{font-size:10px;color:var(--muted);margin:-8px 0 10px}
.multi-select{position:relative}
.multi-display-wrap{position:relative}
.multi-display{padding-right:32px;cursor:pointer;background:#fff}
.multi-caret{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11px;color:#94A3B8;pointer-events:none}
.multi-panel{display:none;position:absolute;left:0;right:0;top:calc(100% - 8px);z-index:60;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 30px rgba(15,23,42,.15);padding:8px}
.multi-panel.show{display:block}
.multi-toolbar{display:flex;gap:14px;padding:2px 4px 8px;border-bottom:1px solid var(--line)}
.link-btn{border:0;background:none;color:var(--primary);font-size:11px;cursor:pointer;padding:0}
.multi-options{max-height:180px;overflow-y:auto;padding:6px 2px}
.multi-option{display:flex;align-items:center;gap:8px;padding:6px;border-radius:6px;font-size:12px;color:#334155;cursor:pointer}
.multi-option:hover{background:#F1F5F9}
.multi-option input{accent-color:var(--primary);cursor:pointer}
.multi-empty{padding:14px 6px;text-align:center;color:var(--muted);font-size:11px}
.multi-foot{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid var(--line)}
.multi-foot .btn{height:28px;padding:0 14px}
.modal-form .input{width:100%;margin-bottom:13px}
.modal-foot{position:sticky;bottom:0;z-index:5;display:flex;justify-content:flex-end;gap:8px;padding:12px 18px 14px;background:#fff;border-top:1px solid var(--line)}
.zoom-modal{width:min(1020px,100%)}
.zoom-body{padding:4px 22px 22px;max-height:76vh;overflow-y:auto}
.zoom-tabs{display:flex;gap:22px;padding:14px 0 0;border-bottom:1px solid var(--line);overflow-x:auto}
.zoom-tabs::-webkit-scrollbar{height:0}
.zoom-tab{position:relative;padding:8px 2px;color:var(--muted);cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;font-size:13px}
.zoom-tab:hover{color:var(--primary)}
.zoom-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.zoom-tab b{position:absolute;top:-6px;right:-8px;min-width:15px;height:15px;line-height:15px;padding:0 3px;border-radius:5px;font-size:9.5px;font-weight:700;text-align:center}
.zoom-tab b.b-blue{background:#DBEAFE;color:#2563EB}.zoom-tab b.b-cyan{background:#CFFAFE;color:#0891B2}.zoom-tab b.b-red{background:#FEE2E2;color:#DC2626}
.zoom-tab b.b-purple{background:#EDE9FE;color:#7C3AED}.zoom-tab b.b-orange{background:#FFEDD5;color:#EA580C}.zoom-tab b.b-green{background:#D1FAE5;color:#059669}.zoom-tab b.b-gray{background:#E2E8F0;color:#64748B}
.zoom-list{padding-top:8px}
.zoom-list .todo-item{padding:10px 12px;border-bottom:1px solid #F1F5F9}
.zoom-list .todo-item:last-child{border-bottom:none}
.zoom-list .todo-item:hover{background:#F8FAFC}

/* ============ 角色权限 ============ */
.perm-hidden{display:none !important}
.stage-hidden{display:none !important}
.perm-section{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.perm-title{font-size:12px;font-weight:600;margin-bottom:10px}
.perm-title small{font-weight:400;color:var(--muted);margin-left:6px}
.perm-group{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:10px;background:#FAFBFD}
.perm-group-head{font-weight:600}
.perm-check{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#334155;cursor:pointer;white-space:nowrap;margin:3px 10px 3px 0}
.perm-check input{width:14px;height:14px;accent-color:var(--primary);cursor:pointer}
.perm-children{margin:6px 0 0 20px;padding-left:12px;border-left:1px dashed #CBD5E1}
.perm-node{margin:2px 0}
.perm-actions{margin:2px 0 6px 20px;padding:6px 8px;background:#F1F5F9;border-radius:6px}
.perm-hint{font-size:11px;color:var(--muted);line-height:1.6}

/* ============ 测试记录改造 ============ */
.head-left{display:flex;align-items:center;gap:18px;min-width:0}
.head-right{display:flex;align-items:center;gap:8px}
.head-right .select{width:auto;min-width:180px}
.head-search{width:470px;flex-shrink:0;height:34px;border-radius:17px;padding:0 14px 0 34px;background:#EFF6FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;background-size:14px;border-color:#BFDBFE;transition:border-color .15s,box-shadow .15s,background-color .15s}
.head-search:focus{background-color:#fff;border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.test-filters{flex-wrap:wrap;gap:10px;align-items:center}
.filter-block{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px 8px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.filter-label{font-size:12px;font-weight:600;color:#475569;white-space:nowrap}
.filter-block.priority .filter-group{background:#EFF6FF}
.filter-block.type .filter-group{background:#F5F3FF}
.filter-block.port .filter-group{background:#ECFDF5}
#todosActiveFilters.stage-done .filter-block.type{display:none}
.filter-group,.stage-tabs{display:inline-flex;align-items:center;gap:2px;background:#F1F5F9;border-radius:9px;padding:3px}
.stage-tabs{background:#EFF6FF;border:1px solid #BFDBFE}
.stage-tabs .opt-btn.active{background:#2563EB;color:#fff}
.btn-group{display:inline-flex;gap:3px;padding:3px;background:#F1F5F9;border:1px solid var(--line);border-radius:9px;margin-bottom:13px}
.opt-btn{position:relative;border:0;background:transparent;padding:6px 12px;font-size:12px;line-height:1;color:#475569;cursor:pointer;border-radius:6px;transition:background .15s,color .15s,box-shadow .15s}
.opt-btn:hover{background:rgba(15,23,42,.06)}
.opt-btn.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.25)}
.btn-group .opt-btn{border:0;border-radius:6px;background:#fff;color:#475569;padding:8px 16px;font-weight:500}
.btn-group .opt-btn:hover{background:#E2E8F0;color:#334155}
.btn-group .opt-btn.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(37,99,235,.25)}
.opt-btn.has-badge{padding-right:24px}
.filter-badge{position:absolute;top:2px;right:3px;min-width:14px;height:14px;padding:0 3px;border-radius:7px;background:#EF4444;color:#fff;font-size:9px;line-height:14px;text-align:center}
.filter-badge:empty{display:none}
.opt-btn.active .filter-badge{background:#fff;color:var(--primary)}
.filter-badge.soft-badge{background:#94A3B8}
.opt-btn.active .filter-badge.soft-badge{background:#fff;color:#64748B}
.test-filters .btn-ghost{color:var(--muted);box-shadow:none}
.recycle-link{border:0;background:transparent;color:#94A3B8;font-size:11px;cursor:pointer;padding:3px 4px}
.recycle-link:hover{color:var(--primary)}
.gen-version-list{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#F8FAFC;padding:8px}
.gen-version-item{display:flex;align-items:center;gap:8px;padding:6px 4px;font-size:12px;color:#334155;border-bottom:1px solid var(--line)}
.gen-version-item:last-child{border-bottom:0}
.gen-version-item span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-no-text{font-size:11px;color:#64748B;white-space:nowrap}
#page-versions table{table-layout:fixed;min-width:660px;width:100%}
#page-versions table th:nth-child(1),#page-versions table td:nth-child(1){width:96px}
#page-versions table th:nth-child(2),#page-versions table td:nth-child(2){width:90px}
#page-versions table th:nth-child(3),#page-versions table td:nth-child(3){width:68px}
#page-versions table th:nth-child(4),#page-versions table td:nth-child(4){width:auto}
#page-versions table th:nth-child(5),#page-versions table td:nth-child(5){width:190px;min-width:190px;padding-left:10px;padding-right:10px;white-space:normal}
#page-versions table td:nth-child(4){white-space:normal;overflow:hidden}
.version-req-list{min-width:0;width:100%;overflow:hidden}
.version-req-line{display:flex;align-items:center;gap:8px;min-width:0;line-height:1.7;font-size:12px;color:#475569}
.vr-index{flex:0 0 18px;color:#64748B;font-weight:600}
.vr-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vr-report{flex:0 0 190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748B}
.vr-flow{flex:0 0 58px;width:58px;text-align:center;padding:1px 4px}
.verify-ops{white-space:nowrap;flex-shrink:0}
.verify-ops .op-btn{margin-left:4px;padding:1px 6px}
.verify-line .vr-report{flex:0 0 130px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:0}
.verify-line .vr-flow{margin-left:0}
.verify-line .verify-ops{flex:0 0 200px;margin-left:50px}
#page-versions table th:last-child,#page-versions table td:last-child{position:sticky;right:0;background:#fff;z-index:3;box-shadow:-6px 0 10px rgba(15,23,42,.08)}
#page-versions table th:last-child{background:#F8FAFC;z-index:4}
#page-versions table tr:hover td:last-child{background:#F8FAFC}
#page-versions table td:last-child .op-btn{margin-right:3px;margin-bottom:3px}
.req-detail-item{border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:10px;background:#fff}
.req-detail-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.req-detail-desc{font-size:12px;color:#475569;line-height:1.7;word-break:break-word}
.req-detail-desc img{max-width:120px;max-height:90px;object-fit:cover;border-radius:4px;margin:3px;cursor:zoom-in}
.confirm-text{font-size:12px;color:#334155;line-height:1.6;background:#F8FAFC;border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin-bottom:14px}
.dev-instruction{background:#EFF6FF;border:1px solid #BFDBFE;border-radius:8px;padding:12px 14px;margin-bottom:16px}
.dev-instruction-label{font-size:12px;font-weight:700;color:#1D4ED8;margin-bottom:6px}
.dev-instruction-text{font-size:12px;color:#334155;line-height:1.7;word-break:break-word;margin-bottom:10px;white-space:pre-wrap}
.edit-hint{font-weight:400;color:#64748B;font-size:11px}
.dev-instruction-text.report-editable{background:#fff;border:1px solid #BFDBFE;border-radius:6px;padding:10px 12px;outline:none;cursor:text;transition:border-color .15s,box-shadow .15s}
.dev-instruction-text.report-editable:hover{border-color:#93C5FD}
.dev-instruction-text.report-editable:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.dev-instruction-copy{height:28px;padding:0 12px;font-size:11px}
#copyReportBtn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 20px;background:linear-gradient(135deg,#2563EB,#1D4ED8);color:#fff;border:1px solid #1D4ED8;border-radius:8px;font-size:13px;font-weight:600;box-shadow:0 2px 8px rgba(37,99,235,.25);transition:transform .15s,box-shadow .15s}
#copyReportBtn::before{content:'⧉';font-size:15px}
#copyReportBtn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(37,99,235,.35)}
#copyReportBtn:active{transform:translateY(0)}
.recycle-toolbar{display:flex;align-items:center;gap:10px;padding-top:14px;margin-bottom:12px}
.attach-list{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;margin:-6px 0 10px}
.attach-paste-wrap{border:1px solid var(--line);border-radius:9px;background:#F8FAFC;padding:10px;margin-bottom:13px}
.paste-boxes{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.paste-box{min-height:62px;border:1px dashed #CBD5E1;border-radius:8px;background:#fff;color:#94A3B8;font-size:12px;display:flex;align-items:center;justify-content:center;cursor:text;outline:none;transition:border-color .15s,background .15s}
.paste-box:focus{border-color:var(--primary);background:#EFF6FF;color:var(--primary)}
.modal-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}
.modal-label-row .modal-label{margin-bottom:0}
.field-tip{color:#EF4444;font-size:11px;white-space:nowrap}
.rich-actions{display:flex;align-items:center;gap:10px}
.rich-actions .btn{height:26px;padding:0 10px;font-size:11px}
.rich-toolbar{display:flex;justify-content:flex-end;margin-bottom:6px}
.rich-toolbar .btn{height:26px;padding:0 10px;font-size:11px}
.rich-editor{min-height:104px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-bottom:13px;background:#fff;line-height:1.6;outline:none}
.rich-editor:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.rich-editor:empty:before{content:attr(data-placeholder);color:#94A3B8}
.rich-editor img{display:inline-block;width:64px;height:48px;object-fit:cover;border-radius:4px;margin:2px 4px 2px 0;vertical-align:middle}
.attach-previews{display:flex;flex-wrap:wrap;gap:10px}
.attach-preview{position:relative;width:96px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.attach-preview img{display:block;width:100%;height:72px;object-fit:cover;background:#F1F5F9}
.attach-file-placeholder{height:72px;display:grid;place-items:center;color:var(--muted);font-size:11px;background:#F1F5F9}
.attach-cap{padding:5px 6px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.attach-existing{position:relative;display:inline-flex;margin:0 8px 8px 0}
.attach-del{position:absolute;top:-5px;right:-5px;width:18px;height:18px;border:0;border-radius:50%;background:#EF4444;color:#fff;font-size:12px;line-height:18px;cursor:pointer;padding:0;box-shadow:0 1px 4px rgba(15,23,42,.2)}
.attach-thumb-link{display:inline-block}
.attach-thumb{width:72px;height:56px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.attach-file-link{display:inline-block;padding:5px 8px;background:#F1F5F9;border-radius:5px;color:var(--primary)}
.attach-remove{position:absolute;top:3px;right:3px;width:18px;height:18px;border:0;border-radius:50%;background:rgba(15,23,42,.65);color:#fff;font-size:12px;line-height:18px;cursor:pointer;padding:0}
.attach-list a{color:var(--primary);text-decoration:none}
.attach-icon-link{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;border-radius:5px;font-size:11px;text-decoration:none;white-space:nowrap}
.attach-icon-link svg{width:13px;height:13px}
.attach-image{color:#059669;background:#ECFDF5}
.attach-video{color:#7C3AED;background:#F5F3FF}
.attach-file{color:#2563EB;background:#EFF6FF}
.modal textarea.input{min-height:80px;resize:vertical}

/* ============ 操作提示 ============ */
.toast{position:fixed;left:50%;top:24px;transform:translate(-50%,-16px);z-index:3000;background:var(--success);color:#fff;padding:10px 20px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 8px 24px rgba(0,0,0,.15)}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.err{background:var(--danger)}
