:root {
  --primary: #1268e8;
  --primary-dark: #0754c6;
  --primary-soft: #edf4ff;
  --teal: #0c847d;
  --teal-soft: #e8f6f3;
  --purple: #7953b4;
  --purple-soft: #f3edfc;
  --orange: #a96912;
  --orange-soft: #fff3df;
  --red: #be4249;
  --red-soft: #fff0f1;
  --text: #252a32;
  --muted: #6f7783;
  --line: #e4e7ed;
  --bg: #f7f8fa;
  --blue: #1268e8;
  --radius: 6px;
  --sidebar: 220px;
  --shadow: 0 16px 48px #20273424;
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--text);font-size:14px;line-height:1.55;letter-spacing:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button,a{transition:background .15s,color .15s}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8eb8f5;outline-offset:2px}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--text);white-space:normal}button:hover{background:#f3f6fc}button.primary{background:var(--primary);color:white;border-color:var(--primary)}button.primary:hover{background:var(--primary-dark)}button.danger{color:var(--red);border-color:#ebc8c5}button.text{padding:4px 7px;color:var(--primary);border:0;background:transparent;min-height:30px}button.icon{width:36px;padding:8px;flex-shrink:0}svg.lucide{width:18px;height:18px;flex-shrink:0;stroke-width:1.7}.skip{position:fixed;top:-60px;left:260px;z-index:100;background:white;padding:12px}.skip:focus{top:5px}.app-shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100vh}
.sidebar{position:fixed;width:var(--sidebar);inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}.brand{height:77px;display:flex;align-items:center;padding:18px 21px;gap:10px;border-bottom:1px solid var(--line)}.brand-mark{width:37px;height:37px;border-radius:8px;background:var(--primary);color:white;display:grid;place-items:center}.brand-mark svg{width:23px;height:23px}.brand strong{display:block;font-size:21px;font-weight:700}.brand small{font-size:10px;letter-spacing:0;color:var(--muted)}.workspace{margin:18px 15px 10px;background:var(--bg);padding:10px 12px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:5px}.workspace>svg{color:var(--primary)}.workspace small{display:block;color:var(--muted);font-size:12px}.nav-scroll{overflow:auto;flex:1;padding:3px 12px 16px}.nav-label{font-size:12px;color:#89919d;margin:17px 12px 7px}.nav-item{display:flex;width:100%;justify-content:flex-start;border:0;background:transparent;gap:11px;min-height:39px;border-radius:5px;padding:8px 12px;margin:3px 0;color:#555e6b;text-align:left}.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:600}.nav-item .count{margin-left:auto;background:#e1ebfb;border-radius:4px;padding:0 6px;font-size:11px}.sidebar-bottom{padding:13px 18px;border-top:1px solid var(--line);display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.status-dot{width:7px;height:7px;background:var(--teal);border-radius:50%;display:inline-block}.main-shell{grid-column:2;min-width:0}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;background:white;border-bottom:1px solid var(--line);gap:12px;position:sticky;top:0;z-index:20}.topbar-left,.topbar-right,.row,.actions{display:flex;align-items:center;gap:10px}.breadcrumb{color:var(--muted);font-size:13px}.breadcrumb span{color:var(--text);margin-left:8px}.topbar select{max-width:180px;background:transparent;border:0;font-weight:600}.avatar{width:32px;height:32px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:600}.account{border-left:1px solid var(--line);padding-left:15px;display:flex;align-items:center;gap:9px}.account small{font-size:11px;color:var(--muted);display:block}.demo{font-size:11px;color:var(--blue);border:1px solid #dae6f5;background:#f3f7fd;border-radius:3px;padding:2px 7px;white-space:nowrap}.menu-toggle{display:none}.content{padding:26px 30px 12px;max-width:1880px;margin:0 auto;min-height:calc(100vh - 110px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.page-heading h1{font-size:25px;line-height:1.3;margin:0 0 6px;font-weight:650}.subtitle{font-size:13px;color:var(--muted)}.eyebrow{font-size:12px;color:var(--primary);margin-bottom:7px}.page-heading .actions{flex-wrap:wrap;justify-content:flex-end}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:23px;background:#fff;border:1px solid var(--line);border-radius:6px}.metric{padding:19px 22px;border-right:1px solid var(--line);position:relative}.metric:last-child{border-right:0}.metric-label{color:#606a78;font-size:13px;display:flex;align-items:center;gap:8px}.metric-label svg{width:17px;color:var(--primary)}.metric-value{font-family:Arial,sans-serif;font-size:30px;font-weight:600;line-height:1.3;margin:10px 0 8px;font-variant-numeric:tabular-nums}.metric-value small{font-family:inherit;font-size:12px;font-weight:400;margin-left:7px;color:var(--muted)}.metric-foot{font-size:12px;color:var(--muted)}.metric-foot em{font-style:normal;color:var(--primary);margin-right:5px}.metric.orange .metric-label svg,.metric.orange .metric-foot em{color:var(--orange)}.metric.blue .metric-label svg{color:var(--blue)}.metric.purple .metric-label svg{color:var(--purple)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.section-title h2{font-size:16px;margin:0;font-weight:600}.section-title small{font-size:12px;color:var(--muted)}.flow{background:white;border:1px solid var(--line);padding:18px 22px;margin-bottom:24px;border-radius:6px}.flow-steps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.flow-step{display:flex;align-items:center;gap:9px;position:relative;padding:8px 0;color:#566171}.flow-step svg{width:20px;height:20px;color:var(--primary)}.flow-step strong{font-size:13px;font-weight:500;display:block}.flow-step small{font-size:11px;color:var(--muted)}.flow-step .step-count{font-family:Arial,sans-serif;font-size:18px;color:var(--text);font-weight:600}.split{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:23px}.panel{background:white;border:1px solid var(--line);border-radius:5px;overflow:hidden;min-width:0}.panel-head{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head h2{font-size:16px;margin:0}.panel-body{padding:19px 20px}.panel+.panel{margin-top:20px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);padding:0 20px}.tabs button{border:0;border-radius:0;border-bottom:2px solid transparent;min-height:47px;padding:8px 0;background:none;color:var(--muted)}.tabs button.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}th{background:#f8f9fb;color:#717a88;font-weight:500;font-size:12px;padding:12px 16px;border-bottom:1px solid var(--line)}td{padding:13px 16px;border-bottom:1px solid #edf0f4;color:#505968}tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8faff}td strong{font-weight:500;color:var(--text)}td small{display:block;font-size:11px;color:var(--muted);margin-top:3px}td .actions{gap:4px}td button{font-size:12px}.badge{display:inline-flex;padding:3px 8px;background:var(--teal-soft);color:var(--teal);border-radius:4px;font-size:11px;line-height:1.6;white-space:nowrap}.badge.orange{color:var(--orange);background:var(--orange-soft)}.badge.blue{color:var(--primary);background:var(--primary-soft)}.badge.red{color:var(--red);background:var(--red-soft)}.badge.gray{color:#717986;background:#f0f2f5}.badge.purple{color:var(--purple);background:var(--purple-soft)}.table-footer{padding:12px 18px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.todo{padding:15px 0;display:flex;gap:12px;border-bottom:1px solid #edf0f4;align-items:flex-start}.todo:last-child{border:0}.todo-icon{width:32px;height:32px;background:var(--primary-soft);color:var(--primary);border-radius:6px;display:grid;place-items:center;flex-shrink:0}.todo-icon.orange{background:var(--orange-soft);color:var(--orange)}.todo-icon.blue{background:var(--primary-soft);color:var(--blue)}.todo strong{font-size:13px;display:block;font-weight:500}.todo p{font-size:12px;color:var(--muted);margin:4px 0}.todo button{min-height:25px;font-size:12px;padding:0}.mini-chart{height:119px;display:flex;align-items:flex-end;justify-content:space-around;gap:9px;padding:14px 3px 0;border-bottom:1px solid var(--line)}.bar-group{height:100%;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:5px;flex:1}.bar{width:70%;max-width:32px;background:var(--primary);border-radius:3px 3px 0 0;min-height:2px}.bar-group:nth-child(even) .bar{background:var(--teal)}.bar-group span{font-size:10px;color:var(--muted)}.chart-key{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;margin-top:10px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:15px 18px;background:white;border:1px solid var(--line);border-bottom:0;border-radius:5px 5px 0 0}.toolbar+.panel{border-radius:0 0 5px 5px}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;padding:0 11px;background:#fff;min-width:200px;max-width:100%;height:37px}.search-box svg{color:#8691a1;width:17px}.search-box input{border:0;outline:0;background:none;min-width:0;width:220px;font-size:13px}.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.filters select{min-width:130px}select,input,textarea{border:1px solid #dce1e9;border-radius:4px;padding:8px 10px;background:white;color:var(--text);max-width:100%;min-width:0}select{min-height:37px}input[type=number]{font-variant-numeric:tabular-nums}textarea{min-height:85px;resize:vertical}.empty{text-align:center;padding:56px 20px;color:var(--muted)}.empty svg{width:38px;height:38px;color:#a9b9d2}.empty h3{font-size:16px;color:#566477;font-weight:500}.empty p{font-size:13px}.progress{height:5px;min-width:80px;background:#eaf0f8;border-radius:2px;overflow:hidden;margin-top:6px}.progress>span{display:block;height:100%;background:var(--primary)}.notice{padding:13px 16px;background:#f2f7ff;border:1px solid #d6e4fa;color:#496e9f;display:flex;align-items:flex-start;gap:10px;font-size:13px;margin-bottom:18px;border-radius:5px}.notice.warning{background:#fff7e8;border-color:#f2e7ce;color:#977236}.inline-product{display:flex;align-items:center;gap:10px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.task-card{border:1px solid var(--line);border-radius:6px;background:white;padding:20px;min-width:0}.task-card h3{margin:12px 0 4px;font-size:17px;font-weight:600}.task-card .task-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.task-card .task-value{font:600 30px/1.4 Arial,sans-serif;margin:18px 0 12px}.task-value small{font-size:13px;color:var(--muted);font-weight:400}.task-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;font-size:13px}.task-details small{color:var(--muted);font-size:11px;display:block}.task-card .actions{border-top:1px solid var(--line);padding-top:15px;flex-wrap:wrap}.stage-track{display:flex;margin:18px 0;gap:4px}.stage-track span{height:5px;flex:1;background:#e7edf6;border-radius:1px}.stage-track span.done{background:var(--primary)}.dual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.detail-list dt{font-size:12px;color:var(--muted);margin-bottom:4px}.detail-list dd{margin:0;font-size:14px}.data-value{font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}.timeline{border-left:2px solid #dce7f8;margin-left:8px;padding-left:23px}.timeline-item{position:relative;margin-bottom:22px}.timeline-item:before{content:"";position:absolute;left:-29px;top:6px;width:9px;height:9px;background:var(--primary);border-radius:50%;border:2px solid white}.timeline-item strong{font-size:13px;font-weight:500}.timeline-item p{font-size:12px;color:var(--muted);margin:3px 0}.trace-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.trace-node{padding:17px;border:1px solid var(--line);border-radius:5px;background:white}.trace-node small{color:var(--muted);display:block}.trace-node strong{display:block;margin:6px 0}.trace-node svg{color:var(--primary)}footer{padding:14px 30px 19px;display:flex;justify-content:space-between;gap:10px;color:#8a919c;font-size:11px}footer a{color:#5274a1}dialog{border:0;border-radius:8px;width:min(680px,calc(100% - 28px));padding:0;box-shadow:var(--shadow);max-height:88vh;color:var(--text)}dialog::backdrop{background:#202b3b66;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:19px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-head h2{font-size:19px;margin:0}.dialog-body{padding:24px;overflow:auto}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line);background:#f8faff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px}.field.wide{grid-column:1/-1}.field>span{font-weight:500}.field small{font-size:11px;color:var(--muted)}.check-field{display:flex;align-items:flex-start;gap:9px;margin:15px 0;font-size:13px}.check-field input{margin-top:4px}.form-error{color:var(--red);background:var(--red-soft);padding:9px 12px;margin-top:15px;font-size:13px;border-radius:4px}.form-error:empty{display:none}.toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,20px);max-width:calc(100% - 28px);background:#2c3543;color:white;padding:12px 20px;border-radius:6px;box-shadow:var(--shadow);font-size:13px;opacity:0;pointer-events:none;z-index:100;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:var(--red)}.mobile-bottom{display:none}.screen-mode .sidebar,.screen-mode .account{display:none}.screen-mode .app-shell{grid-template-columns:1fr}.screen-mode .main-shell{grid-column:1}.screen-mode .content{max-width:1900px}.screen-mode .metrics .metric-value{font-size:42px}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.settings-grid .panel{margin:0}.legend{display:flex;flex-wrap:wrap;gap:15px;color:var(--muted);font-size:12px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--primary);margin-right:5px}.overview-lower{margin-top:22px}.subnav{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.subnav button.active{color:var(--primary);background:var(--primary-soft);border-color:#c7daf6}.number-pill{background:#edf1f6;padding:3px 7px;border-radius:3px;font-size:12px}.mobile-overlay{display:none}.save-warning{position:sticky;top:64px;z-index:19;background:#fff2d6;color:#8b621a;padding:10px 30px}.small-muted{color:var(--muted);font-size:12px}.full{width:100%}.right{text-align:right}.green-text{color:var(--primary)}.red-text{color:var(--red)}
.split>*{min-width:0}.dialog-footer{position:sticky;bottom:0;z-index:1}
@media(min-width:1500px){.split{grid-template-columns:minmax(0,1fr) 350px}.content{padding:30px 36px}.metric{padding:22px 26px}}
@media(max-width:1180px){:root{--sidebar:190px}.content{padding:23px 20px}.topbar{padding:0 20px}.split{grid-template-columns:minmax(0,1fr) 280px}.metric{padding:16px}.metric-value{font-size:26px}.flow-step{gap:6px}.flow-step svg{display:none}.cards{grid-template-columns:repeat(2,1fr)}.breadcrumb{display:none}}
@media(max-width:940px){.split{grid-template-columns:1fr}.split>aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.split>aside .panel{margin:0}.flow{overflow:auto}.flow-steps{min-width:660px}.metrics{grid-template-columns:repeat(2,1fr)}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.account .account-info{display:none}.dual{grid-template-columns:1fr}.trace-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body{font-size:15px}.app-shell{grid-template-columns:1fr}.main-shell{grid-column:1}.sidebar{transform:translateX(-100%);transition:transform .2s;width:240px}.nav-open .sidebar{transform:translateX(0)}.nav-open .mobile-overlay{display:block;position:fixed;inset:0;background:#202b3b66;z-index:29}.menu-toggle{display:inline-flex}.topbar{height:59px;padding:0 14px;gap:7px}.topbar-left{gap:5px;min-width:0}.topbar select{font-size:14px;max-width:140px}.topbar-right{gap:7px}.account{border:0;padding:0}.account .avatar{width:29px;height:29px}.demo{font-size:10px}.content{padding:20px 15px 12px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:18px}.page-heading h1{font-size:24px}.page-heading .actions{justify-content:flex-start;width:100%}.page-heading .actions>button{min-height:41px}.subtitle{font-size:12px}.metrics{margin-bottom:18px}.metric{padding:15px 13px}.metric-value{font-size:27px;margin:8px 0}.metric-label{font-size:12px;gap:5px}.metric-foot{font-size:11px}.metric-value small{font-size:11px;margin-left:4px}.flow{padding:14px;margin-bottom:18px}.flow-steps{min-width:620px}.split>aside{display:block}.split>aside .panel+.panel{margin-top:18px}.panel-head{padding:15px}.panel-body{padding:15px}.panel-head h2{font-size:15px}.cards{grid-template-columns:1fr}.task-card{padding:18px}.toolbar{padding:12px;align-items:stretch}.filters{width:100%}.filters select{flex:1;min-width:100px;max-width:100%}.search-box{width:100%;min-width:0;flex:1}.search-box input{width:100%}.toolbar .actions{width:100%;justify-content:flex-end}th,td{padding:12px;font-size:12px}.form-grid{grid-template-columns:1fr}.dialog-head{padding:16px 18px}.dialog-body{padding:18px}.dialog-footer{padding:14px 18px}.field input,.field select,.field textarea{font-size:16px;min-height:44px}.trace-grid,.settings-grid{grid-template-columns:1fr}.detail-list{gap:14px}.mobile-bottom{display:flex;position:sticky;bottom:0;background:white;border-top:1px solid var(--line);justify-content:space-around;z-index:18;padding:5px 5px max(5px,env(safe-area-inset-bottom))}.mobile-bottom button{border:0;flex-direction:column;font-size:10px;gap:3px;padding:5px;min-width:55px;color:var(--muted)}.mobile-bottom button.active{color:var(--primary)}footer{padding:14px 15px;flex-direction:column;align-items:center;font-size:10px;gap:3px}.toast{bottom:77px;width:max-content;text-align:center}.screen-mode .metric-value{font-size:30px}.topbar-right .header-export{display:none}.save-warning{top:59px;padding:10px 15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* 一秒互联公司 www.yimiaonet.com：以品牌蓝统一工作台，状态用青、橙、紫区分。 */
* { letter-spacing: 0; }
[hidden] { display: none !important; }
body { background: #fff; }
.skip { left: 12px; max-width: calc(100% - 24px); }
img { max-width: 100%; }
button { max-width: 100%; overflow-wrap: anywhere; }
button.text:hover { background: var(--primary-soft); }
button.danger:hover { background: var(--red-soft); }
button.icon { height: 36px; flex-basis: 36px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
.workspace { min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }
.workspace > div { min-width: 0; overflow-wrap: anywhere; }
.nav-scroll { min-height: 0; overscroll-behavior: contain; }
.brand-mark { background: var(--primary); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.green-text { color: var(--teal); }
.metric.green .metric-label svg, .metric.teal .metric-label svg { color: var(--teal); }
.metric.red .metric-label svg { color: var(--red); }
.metric.purple .metric-label svg { color: var(--purple); }
.metric-foot em { color: var(--teal); }
.badge.green, .badge.teal { background: var(--teal-soft); color: var(--teal); }
.todo-icon.purple { background: var(--purple-soft); color: var(--purple); }
.todo-icon.teal { background: var(--teal-soft); color: var(--teal); }
.item-symbol { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 5px; color: var(--primary); background: var(--primary-soft); }
.item-symbol svg { width: 17px; }
.topbar { height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.topbar-left, .topbar-right, .row, .actions { min-width: 0; }
.topbar-left { flex: 0 1 auto; }
.topbar-right { flex: 0 1 440px; justify-content: flex-end; }
.topbar select { width: 174px; max-width: 100%; padding-left: 0; }
.breadcrumb { white-space: nowrap; }
.avatar { flex: 0 0 32px; }
.demo { flex-shrink: 0; }
.global-search { display: flex; align-items: center; gap: 7px; flex: 1 1 240px; min-width: 0; max-width: 310px; margin: 0; padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); }
.global-search > svg { width: 16px; color: var(--muted); }
.global-search input { flex: 1; width: 100%; min-width: 0; padding: 7px 0; border: 0; background: transparent; font-size: 12px; }
.global-search button { border: 0; background: transparent; }
.global-search:focus-within, .search-box:focus-within { border-color: #8eb8f5; }
.content, .page-heading > div { min-width: 0; }
.page-heading h1, .subtitle, .metric-foot { overflow-wrap: anywhere; }
.page-heading .actions { flex-shrink: 0; }
.metrics { border-right: 0; border-left: 0; border-radius: 0; }
.metric { min-width: 0; }
.metric:first-child { padding-left: 0; }
.metric-value { font-size: 28px; overflow-wrap: anywhere; }
.flow { min-width: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.flow-steps { grid-template-columns: repeat(6,minmax(0,1fr)); min-width: 0; }
.flow-step { min-width: 0; }
.flow-step:nth-child(3) svg { color: var(--teal); }
.flow-step:nth-child(4) svg { color: var(--orange); }
.flow-step:nth-child(5) svg { color: var(--purple); }
.section-title h2, .panel-head h2 { min-width: 0; overflow-wrap: anywhere; }
.panel { border-radius: 0; box-shadow: none; }
.panel-body { min-width: 0; }
.panel-body > .panel { border: 0; }
.dual { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dual > *, .settings-grid > *, .form-grid > * { min-width: 0; }
.dual > .panel + .panel { margin-top: 0; }
.tabs { min-width: 0; overflow-x: auto; }
.tabs button { flex-shrink: 0; white-space: nowrap; }

/* 一秒互联公司 www.yimiaonet.com：宽表在自身容器滚动，避免撑开手机页面与弹窗。 */
.table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
td .actions { flex-wrap: nowrap; }
td button { flex-shrink: 0; white-space: nowrap; }
.table-footer { flex-wrap: wrap; gap: 10px; }
.todo > div { min-width: 0; }
.todo strong, .todo p { overflow-wrap: anywhere; }
.mini-chart { height: 182px; padding-top: 8px; }
.bar-group { flex: 1 1 0; min-width: 0; gap: 6px; }
.bar-group strong { font: 500 12px/1.4 Arial,sans-serif; }
.bar { max-height: 120px; flex-shrink: 0; }
.bar-group:nth-child(2) .bar { background: var(--teal); }
.bar-group:nth-child(3) .bar { background: #d59a39; }
.bar-group:nth-child(4) .bar { background: var(--purple); }
.bar-group span { min-height: 27px; text-align: center; overflow-wrap: anywhere; }
.progress > span { max-width: 100%; }
.toolbar, .filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-width: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; }
.toolbar + .panel { border-radius: 0; }
.search-box { flex: 0 1 350px; min-width: 0; min-height: 38px; height: auto; }
.search-box input { width: 100%; }
.filters, .filter-bar > * { min-width: 0; }
.cards { margin-bottom: 24px; }
.task-top { flex-wrap: wrap; gap: 8px; }
.detail-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
.detail-list > div { min-width: 0; }
.detail-list dd { overflow-wrap: anywhere; }
.record-detail { min-width: 0; }
.record-detail > * + *, .dialog-body > * + * { margin-top: 22px; }
.timeline { min-width: 0; margin: 22px 0 0 6px; }
.panel-body.timeline { margin: 20px 20px 20px 25px; padding: 0 0 0 23px; }
.timeline-item { min-width: 0; overflow-wrap: anywhere; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item small { color: #8a929e; font-size: 11px; }
.trace-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.trace-node { min-width: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.trace-node:last-child { border-right: 0; }
.trace-node:nth-child(2) svg { color: var(--teal); }
.trace-node:nth-child(3) svg { color: var(--purple); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.material-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.material-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; padding: 18px; background: #f7f9fc; color: var(--primary); }
.material-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.material-photo > svg { width: 48px; height: 48px; }
.material-card > .material-info, .material-card > .panel-body { padding: 16px; }
.material-card h3 { margin: 0 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.material-card p { margin: 6px 0; color: var(--muted); font-size: 12px; }
.material-card .actions { flex-wrap: wrap; margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line); }
.scan-field { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid #c7daf6; border-radius: 5px; background: #f6f9ff; }
.scan-field > svg { color: var(--primary); }
.scan-field input { flex: 1; width: 100%; border: 0; background: transparent; }
.scan-field button { flex-shrink: 0; }
.role-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; margin-bottom: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.role-context > svg { color: var(--primary); }
.role-context strong { color: var(--text); font-weight: 500; }
footer { flex-wrap: wrap; align-items: center; gap: 8px 18px; border-top: 1px solid #eef0f4; }
footer > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
dialog { width: min(760px,calc(100% - 32px)); max-width: 100%; max-height: calc(100dvh - 40px); overflow: hidden; border: 1px solid #dce1e9; }
dialog > form { display: flex; flex-direction: column; min-width: 0; max-height: calc(100dvh - 42px); margin: 0; }
.dialog-head, .dialog-footer { position: static; flex-shrink: 0; }
.dialog-head h2 { min-width: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.dialog-body { min-width: 0; min-height: 0; padding: 22px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-body > :first-child { margin-top: 0; }
.dialog-body .table-wrap { border: 1px solid var(--line); }
.dialog-footer { flex-wrap: wrap; background: #fafbfd; }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; }
.check-field span, .form-error, .save-warning { overflow-wrap: anywhere; }
.toast { width: max-content; overflow-wrap: anywhere; }

@media (min-width:1500px) {
  .metric-value { font-size: 32px; }
}
@media (max-width:1180px) {
  .topbar select { width: 166px; font-size: 13px; }
  .metric-value { font-size: 24px; }
  .flow-step svg { display: block; width: 18px; height: 18px; }
  .flow-step { align-items: flex-start; gap: 7px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:940px) {
  .dual { grid-template-columns: minmax(0,1fr); }
  .metric:nth-child(3) { padding-left: 0; }
  .flow-steps { grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; gap: 13px; }
  .topbar, .topbar-right { gap: 8px; }
  .demo { display: none; }
  .page-heading { align-items: flex-start; }
  .page-heading .actions { max-width: 190px; }
}
@media (max-width:700px) {
  html { scroll-padding-top: 130px; }
  body.nav-open { overflow: hidden; }
  button, button.text, .todo button, .tabs button, select, input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
  button.icon { width: 44px; height: 44px; flex-basis: 44px; }
  .main-shell { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
  .sidebar { width: min(278px,calc(100% - 58px)); visibility: hidden; transition: transform .2s,visibility .2s; }
  .nav-open .sidebar { visibility: visible; }
  .nav-item { min-height: 44px; }
  .topbar { display: grid; grid-template-columns: minmax(0,1fr); min-height: 112px; height: auto; gap: 6px; padding: 8px 14px; }
  .topbar-left, .topbar-right { width: 100%; gap: 8px; }
  .topbar select { flex: 1; width: auto; max-width: 100%; font-size: 14px; }
  .global-search { display: flex; flex: 1; max-width: none; min-height: 44px; }
  .global-search input { font-size: 16px; }
  .global-search > svg { display: none; }
  .avatar { flex-basis: 30px; width: 30px; height: 30px; }
  .content { padding: 20px 15px; min-height: calc(100vh - 220px); }
  .page-heading h1 { font-size: 22px; }
  .page-heading .actions { max-width: none; gap: 8px; }
  .page-heading .actions > button, td button { min-height: 44px; }
  .metric-value, .screen-mode .metrics .metric-value { font-size: 24px; }
  .flow { padding: 0 0 18px; }
  .flow-steps { gap: 8px 12px; }
  .flow-step { gap: 6px; }
  .flow-step svg { width: 16px; height: 16px; margin-top: 2px; }
  .flow-step strong { font-size: 12px; }
  .section-title { align-items: flex-start; flex-wrap: wrap; gap: 5px; }
  .section-title small { font-size: 11px; }
  .toolbar, .filter-bar { padding: 14px 0; gap: 10px; align-items: stretch; }
  .search-box { flex: 1 1 100%; width: 100%; min-height: 44px; }
  .search-box input { font-size: 16px; }
  .toolbar > select, .filter-bar > select { flex: 1 1 130px; }
  .filters { flex: 1 1 100%; }
  .filters select { flex: 1 1 130px; min-width: 0; }
  .toolbar .actions, .filter-bar .actions { flex-wrap: wrap; }
  .catalog-grid { grid-template-columns: minmax(0,1fr); }
  .trace-grid { grid-template-columns: minmax(0,1fr); }
  .trace-node { border-right: 0; border-bottom: 1px solid var(--line); }
  .trace-node:last-child { border-bottom: 0; }
  .material-photo { aspect-ratio: 16/9; }
  .scan-field { flex-wrap: wrap; }
  .scan-field input { flex-basis: calc(100% - 32px); }
  .scan-field button { width: 100%; }
  footer { align-items: flex-start; padding: 15px; gap: 7px; font-size: 11px; }
  footer a { display: flex; align-items: center; min-height: 44px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  dialog > form { max-height: calc(100dvh - 26px); }
  .dialog-head { padding: 12px 15px; gap: 10px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-body { padding: 18px 15px; }
  .dialog-footer { padding: 12px 15px; }
  .dialog-footer button { min-width: 86px; }
  .check-field { align-items: center; min-height: 44px; }
  .check-field input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
  .detail-list { gap: 16px; }
  .detail-list dd { font-size: 13px; }
  .panel-body.timeline { margin: 18px 15px 18px 22px; }
  .mobile-bottom { position: fixed; inset: auto 0 0; min-height: 60px; padding: 4px 5px calc(4px + env(safe-area-inset-bottom)); }
  .mobile-bottom button { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 4px 2px; }
  .mobile-bottom button.active { background: var(--primary-soft); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); padding: 11px 15px; }
  .screen-mode .menu-toggle { display: none; }
}
@media (max-width:380px) {
  .content { padding-right: 12px; padding-left: 12px; }
  .metric-value, .screen-mode .metrics .metric-value { font-size: 21px; }
  .metric-label svg { display: none; }
  .flow-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-list { grid-template-columns: minmax(0,1fr); }
  .page-heading .actions > button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.mobile-records { display: none; }
@media (max-width: 640px) {
  .desktop-records { display: none; }
  .mobile-records { display: block; padding: 16px; }
  .mobile-record { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
  .mobile-record:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .mobile-record p { margin: 8px 0 14px; color: var(--muted); }
  .mobile-record > button { width: 100%; justify-content: center; }
  .mobile-record .task-top { align-items: flex-start; gap: 8px; }
}
