/* 在原型样式之上的少量补充，保持同一视觉语言 */
*{box-sizing:border-box}
html{scrollbar-gutter:stable}
/* 部分 Chromium 内核对根元素 scrollbar-gutter 不生效，登录页以外强制保留滚动条轨道，避免页面高低切换时横向位移 */
html:has(body:not(.login-mode)){overflow-y:scroll}
#view>*{transition:opacity .12s ease}
/* 同栏目切换等待新内容时置灰旧内容；目录 tab 保持原样且可点击（选中态已即时切换） */
#view.is-loading>:not(.dir-tabs){opacity:.55;pointer-events:none}
body.login-mode .side,body.login-mode .topbar,body.login-mode .sidebar-edge-toggle{display:none}
body.login-mode .app{display:block}
body.login-mode .content{padding:0}

.user-chip{display:flex;align-items:center;gap:8px;font-size:13px;color:#5b6779;padding:6px 12px;border:1px solid #e7ebf3;border-radius:20px;background:#fff}
.user-chip b{font-weight:600;color:#141d2d}
.user-chip .role{font-size:11px;color:#1477f8;background:#eaf2ff;border-radius:10px;padding:1px 7px}

.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(160deg,#f5f8ff,#ffffff 45%,#eef4ff)}
.login-card{width:400px;max-width:92vw;background:#fff;border:1px solid #e7ebf2;border-radius:18px;box-shadow:0 18px 50px rgba(23,59,120,.10);padding:34px 32px}
.login-brand{display:flex;align-items:center;gap:11px;margin-bottom:22px}
.login-brand .logo{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(150deg,#4bbaff,#1374f2 64%,#2163d8);color:#fff}
.login-brand strong{font-size:20px;letter-spacing:-.4px}
.login-brand span{display:block;font-size:12px;color:#8b96a7;margin-top:1px}
.login-card h1{font-size:22px;margin:0 0 6px}
.login-card p.sub{margin:0 0 22px;color:#798598;font-size:13px}
.login-field{margin-bottom:14px}
.login-field label{display:block;font-size:12px;color:#5b6779;margin-bottom:6px;font-weight:600}
.login-field input{width:100%;height:42px;border:1px solid #e2e8f2;border-radius:10px;padding:0 13px;font-size:14px;background:#fbfcfe}
.login-field input:focus{outline:2px solid #a4c9ff;border-color:#1477f8;background:#fff}
.login-error{min-height:18px;font-size:12px;color:#d64545;margin:4px 0 8px}
.login-card .btn.primary{width:100%;height:42px;justify-content:center;font-size:14px}
.login-card .btn.primary:disabled{opacity:1;background:#eef2f8;color:#5b6779;border-color:#e4eaf3}
.login-note{margin:0 0 20px;color:#5b6779;font-size:13px;line-height:1.7}
.login-switch{margin-top:18px;text-align:center;font-size:13px;color:#798598}
.login-switch a{color:#1477f8;font-weight:600;text-decoration:none;margin-left:6px}
.login-switch a:hover{text-decoration:underline}
.login-help{display:block;margin-top:6px;font-size:11px;color:#798598;line-height:1.5}
.login-success{padding:10px 12px;margin:12px 0;border-radius:10px;background:#effaf3;color:#237a46;font-size:13px;line-height:1.5}
.login-brand .logo{flex-shrink:0}
.login-wrap{padding:24px 0}

.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:4px 0 18px}
.toolbar .inputbox{flex:1;min-width:240px}
.toolbar select{height:38px;min-width:108px;border:1px solid #e2e8f2;border-radius:9px;padding:0 12px;background:#fff;color:#3d4756;font-size:13px}
.toolbar .filter-input{height:38px;min-width:96px;border:1px solid #e2e8f2;border-radius:9px;padding:0 12px;background:#fff;color:#3d4756;font-size:13px;outline:0}
.toolbar .filter-input:focus{border-color:#9bbcff;box-shadow:0 0 0 3px #eaf2ff}
.filter-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}
.filter-row label{display:block;font-size:11px;color:#8b96a7;margin-bottom:5px}
.filter-row select{width:100%;height:36px;border:1px solid #e6ebf3;border-radius:8px;padding:0 8px;background:#fbfcfe;font-size:12.5px}
@media(max-width:1100px){.filter-row{grid-template-columns:repeat(3,minmax(0,1fr))}}

.chip.on{background:#e7efff;color:#106afa;border-color:#d4e2ff}
.chip{cursor:pointer}
.muted{color:#8b96a7}
.tiny{font-size:11.5px}
.mono{font-family:"SF Mono","Cascadia Mono",Consolas,monospace}

.grid-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media(max-width:1180px){.grid-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.grid-cards{grid-template-columns:1fr}}

.ds-card{border:1px solid #e7ebf2;border-radius:14px;background:#fff;padding:18px;display:flex;flex-direction:column;gap:12px;cursor:pointer;transition:.16s;box-shadow:0 2px 10px rgba(23,59,120,.03)}
.ds-card:hover{border-color:#cfe0ff;box-shadow:0 10px 26px rgba(23,59,120,.07);transform:translateY(-1px)}
.ds-card-top{display:flex;align-items:center;gap:10px;min-width:0}
.ds-card-top .appico{flex:none}
.ds-card h3{margin:0;font-size:15px;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-card .meta-line{font-size:11.5px;color:#8b96a7;margin-top:3px}
.ds-card .summary{font-size:12.5px;color:#5b6779;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:41px}
.ds-card .specs{display:flex;gap:14px;flex-wrap:wrap;font-size:11.5px;color:#5b6779}
.ds-card .specs b{display:block;color:#141d2d;font-size:12.5px;font-weight:600}
.ds-card-foot{display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid #f0f3f8}
.ds-card-foot .spacer{flex:1}

.badge{display:inline-flex;align-items:center;height:21px;padding:0 8px;border-radius:11px;font-size:11px;font-weight:600;background:#eef2f8;color:#5b6779}
.badge.blue{background:#eaf2ff;color:#1266d6}
.badge.green{background:#e7f6ee;color:#0b7a4b}
.badge.orange{background:#fff4e2;color:#9a5b00}
.badge.purple{background:#f0ecff;color:#5b46c9}
.badge.red{background:#fdeceb;color:#b42318}

.kv{display:grid;grid-template-columns:150px minmax(0,1fr);gap:0;border-top:1px solid #f0f3f8}
.kv>div{padding:9px 4px;border-bottom:1px solid #f0f3f8;font-size:12.5px}
.kv .k{color:#8b96a7}
.kv .v{color:#141d2d;word-break:break-all}

.hero-ds{border:1px solid #e7ebf2;border-radius:16px;background:linear-gradient(120deg,#f7faff,#ffffff 60%);padding:24px;display:flex;gap:18px;align-items:flex-start}
.hero-ds .appico{flex:none}
.hero-ds h1{font-size:24px;margin:0 0 6px;letter-spacing:-.5px}
.hero-ds .sub{color:#5b6779;font-size:13px;line-height:1.7;max-width:760px}
.hero-ds .badges{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 0}
.hero-ds .actions{margin-left:auto;display:flex;flex-direction:column;gap:8px;flex:none}
.metrics-ds{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0}
.metric-ds{border:1px solid #e7ebf2;border-radius:12px;background:#fff;padding:12px 14px}
.metric-ds span{display:block;font-size:11px;color:#8b96a7;margin-bottom:4px}
.metric-ds b{font-size:16px;letter-spacing:-.3px}
@media(max-width:1000px){.metrics-ds{grid-template-columns:repeat(3,minmax(0,1fr))}}

.tab-panel{margin-top:14px}
.panel{border:1px solid #e7ebf2;border-radius:12px;background:#fff;padding:18px}
.panel h3{margin:0 0 12px;font-size:14px}
.panel-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px}
@media(max-width:1000px){.panel-grid{grid-template-columns:1fr}}

.prose p{margin:0 0 10px;color:#3d4756;font-size:13px;line-height:1.8}
.prose h4{margin:14px 0 6px;font-size:13px}
.code-sample{background:#0f172a;color:#dbe7ff;border-radius:10px;padding:14px 16px;font:12px/1.7 "SF Mono",Consolas,monospace;overflow:auto;max-height:340px}

.item-table th{white-space:nowrap}
.item-table td{max-width:320px}
.item-cell{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;line-height:1.55;color:#3d4756}
/* 正文列吃掉剩余宽度，其余列保持紧凑，避免内部字段把表格撑到横向滚动。 */
.item-table .col-seq{width:64px}
.item-table .col-split{width:96px}
.item-table .col-score{width:84px}
.item-table .col-ops{width:72px}
.item-table td[data-field="text"],.item-table th[data-field="text"]{min-width:260px}
.item-table th[data-field="topic"],.item-table td[data-field="topic"]{width:180px;white-space:nowrap}
.item-table td[data-field="topic"] .item-cell{display:block;white-space:nowrap;text-overflow:ellipsis}
.item-table th[data-field="language"],.item-table td[data-field="language"]{width:80px}
.item-cell-prose{min-width:260px}
.item-seq{color:#8b96a7;font:11.5px "SF Mono",Consolas,monospace;white-space:nowrap}
.score{font:600 12px "SF Mono",Consolas,monospace;color:#0b7a4b}
.score.low{color:#9a5b00}

.schema-table td{font-size:12.5px}
.schema-table .fname{font-family:"SF Mono",Consolas,monospace;font-weight:600;color:#141d2d}
.req{color:#d64545;font-size:10px;margin-left:3px}

.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.field-grid .field{display:flex;flex-direction:column;gap:6px}
.field-grid label{font-size:12px;color:#5b6779;font-weight:600}
.field-grid input,.field-grid select,.field-grid textarea{width:100%;border:1px solid #e2e8f2;border-radius:9px;padding:9px 11px;font-size:13px;background:#fbfcfe;font-family:inherit}
.field-grid textarea{min-height:84px;resize:vertical}
.field-grid input:focus,.field-grid select:focus,.field-grid textarea:focus{outline:2px solid #a4c9ff;border-color:#1477f8;background:#fff}
.field-full{grid-column:1/-1}
.upload-drop{display:block !important;flex-direction:initial !important;border:1.5px dashed #cfe0ff;border-radius:12px;background:#f7faff;padding:22px;text-align:center;color:#63799a;font-size:12.5px;cursor:pointer}
.upload-drop:hover{background:#eef5ff;border-color:#1477f8}
.upload-drop > svg{display:block;margin:0 auto 8px;color:#1477f8}
.upload-drop input{display:none !important}
.file-list{margin-top:10px;display:grid;gap:6px}
.file-row{display:flex;align-items:center;gap:10px;border:1px solid #eef2f8;border-radius:8px;padding:8px 10px;font-size:12px;background:#fff}
.file-row .spacer{flex:1}

/* ZIP 上传/下载体验增强 */
.upload-drop.drag{background:#e8f2ff;border:1.5px solid #1477f8;border-style:solid;box-shadow:0 0 0 4px rgba(20,119,248,.12)}
.upload-drop.drag > svg{transform:translateY(-2px)}
.up-progress{margin-top:10px;display:flex;align-items:center;gap:10px;font-size:11.5px;color:#5b6779}
.up-progress[hidden]{display:none !important}
.up-progress .task-bar{max-width:none;flex:1}
.up-progress b{font-size:11.5px;color:#0f6df7;min-width:34px;text-align:right}
.up-progress span{flex:none}
.up-progress.indet .task-bar span{width:38%;animation:indetmove 1.1s ease-in-out infinite}
@keyframes indetmove{0%{margin-left:0}100%{margin-left:62%}}
.alert.warn{border:1px solid #f5d9a8;background:#fdf6e7;color:#8a5a00;border-radius:10px;padding:10px 12px;font-size:12px;line-height:1.6;margin-top:10px}

.modal.wide{max-width:900px}
.modal.xwide{max-width:1080px}
.modal{max-height:90vh;display:flex;flex-direction:column;overflow:hidden}
.modal .modal-head,.modal .modal-actions{flex:none}
.modal .modal-body{overflow-y:auto}
.overlay:has(>.review-modal){padding:16px}
.modal.review-modal{width:calc(100vw - 32px);max-width:none;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);border-radius:18px}
.review-modal .modal-head{padding:7px 14px;gap:10px}
.review-modal .modal-head h2{font-size:18px;margin:0}
.review-head-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.review-modal .modal-head .task-helper{margin:3px 0 0;font-size:11px}
.review-modal .modal-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding:6px 10px;gap:0}
.review-modal .modal-actions{padding:10px 14px;gap:8px;align-items:center}
.review-modal .review-summary{margin:0;flex:none;font-size:11px}
.review-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#657184;font-size:12px;margin-bottom:14px}
.review-history{margin:0 0 20px;border:1px solid #e3eaf4;border-radius:12px;background:#fff;padding:14px 18px;font-size:13px}
.review-history>summary{cursor:pointer;color:#334155;font-weight:600}
.review-history-entry{margin-top:14px;padding-top:12px;border-top:1px solid #edf1f7}
.review-history-entry .review-summary{margin-bottom:8px}
.review-history-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#475569;line-height:1.8}
.review-opinion{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:start;gap:8px;padding:8px 2px 0;flex:none;font-size:12px;color:#657184}
.review-opinion>label,.review-opinion>span{padding-top:7px}
.review-opinion textarea{width:100%;min-height:48px;max-height:100px;resize:vertical;padding:6px 9px;border:1px solid #dfe7f3;border-radius:7px;font:inherit;line-height:1.5;color:#334155}
.review-comment-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0;font-size:12px;line-height:1.6;color:#475569;max-width:480px}
.review-opinion .review-comment-text{max-width:none;max-height:70px;overflow:auto;margin:0;padding:6px 0}
.review-history-entry .review-comment-text{margin-bottom:8px}
.review-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:10px;flex:1;min-height:0}
.review-comparison.has-validation{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) clamp(210px,22vw,300px)}
.review-validation-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #f0c9c4;border-radius:12px;background:#fffafa;overflow:hidden}
.review-validation-panel[hidden]{display:none}
.review-validation-panel header{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px;border-bottom:1px solid #f2dcd8}
.review-validation-panel h3{margin:0;font-size:14px;color:#a33326}
.review-validation-list{overflow:auto;min-height:0;flex:1;padding:8px}
.review-validation-issue{display:flex;flex-direction:column;gap:5px;width:100%;border:0;border-bottom:1px solid #f2dcd8;background:transparent;padding:10px 7px;text-align:left;color:#9b352d;font:inherit;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:normal}
button.review-validation-issue{cursor:pointer}button.review-validation-issue:hover{background:#fff0ec;border-radius:6px}
.review-validation-location{font-size:11px;color:#6b7280}
.review-validation-toggle{margin-left:auto;color:#b13627;font-size:12px}
.review-validation-extra{font-size:11px;color:#7d6965;padding:0 12px}
.review-code-line.is-validation-error,.review-code-item.is-validation-error{outline:2px solid #e7988b;outline-offset:-2px;background:#fff3ee}
.review-inline-value:empty::before{content:'\00a0'}
@media(max-width:700px){.review-comparison.has-validation{grid-template-columns:1fr}.review-validation-panel{position:absolute;right:10px;top:75px;bottom:68px;width:min(280px,75vw);z-index:5;box-shadow:-6px 0 20px #33415522}}
.review-preview-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #e3eaf4;border-radius:12px;background:#fff;overflow:hidden}
.review-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px 4px;flex:none}
.review-preview-heading h3{font-size:15px;margin:0;color:#26364d}
.review-item-count{margin-left:auto;font-size:11px;color:#657184;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.review-preview-meta{font-size:11px;color:#657184;padding:0 12px;min-height:18px;overflow-wrap:anywhere;flex:none}
.review-preview-toolbar{min-height:30px;display:flex;align-items:center;gap:6px;padding:3px 10px;flex-wrap:wrap;font-size:11px;flex:none}
.review-preview-toolbar .btn{padding:5px 9px;font-size:11.5px}
.review-preview-toolbar select{max-width:140px;border:1px solid #e1e6f0;border-radius:7px;padding:4px;color:#56647b;background:#fff}
.review-preview-toolbar [aria-pressed=true]{background:#eaf2ff;border-color:#b7d5ff;color:#1769d4}
.review-original-host{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto}
.review-original-tools{display:contents}
.review-original-selectors{min-height:0;padding-bottom:0}
.review-original-selectors[hidden]{display:none}
.review-original-selectors #rv-original-file-select{max-width:min(100%,300px);min-width:0;flex:1}
.review-preview-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#fbfcfe;border-top:1px solid #edf1f7;overflow-wrap:anywhere}
.review-source-code{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 Consolas,"Cascadia Mono",monospace;margin:0;padding:14px;color:#334155;tab-size:2}
.review-source-code code{font:inherit}
.review-pdf-pages{padding:12px;background:#e2e7ed;text-align:center}
.review-pdf-pages canvas{display:block;background:white;margin:0 auto;box-shadow:0 2px 8px #24344d22}
.review-pdf-page{width:46px;padding:4px;border:1px solid #e1e6f0;border-radius:6px;font-size:11px}
.review-empty{padding:24px 18px;font-size:13px;line-height:1.9;color:#7b8799}
.review-empty .btn{margin-top:10px}
.review-browse-tools{display:flex;gap:6px;align-items:center;padding:3px 10px 5px;flex:none}
.review-browse-tools input{min-width:0;width:110px;height:29px;padding:4px 7px;font-size:11px;border:1px solid #dfe7f3;border-radius:6px}
.review-browse-tools input[type=search]{flex:1;width:0}
.review-browse-tools input[type=number]{width:78px}
.review-code-hint{font-size:10.5px;line-height:1.5;color:#7b8799;margin:0;padding:2px 10px 6px;flex:none}
.review-code-item{border-bottom:1px solid #e3eaf4;padding-bottom:8px}
.review-code-item>header{position:sticky;top:0;z-index:1;padding:7px 12px;background:#edf3fc;color:#46628b;font-size:11px;font-weight:600}
.review-code-item>header:has(.review-source-link){padding:0}
.review-source-link{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;padding:9px 12px;background:transparent;color:#46628b;font:inherit;text-align:left;cursor:pointer}
.review-source-link:hover,.review-source-link.is-linked{background:#dceaff;color:#0963db}
.review-source-link:focus-visible{outline:2px solid #1875fa;outline-offset:-2px}
.review-source-link-hint{font-size:10px;font-weight:500;white-space:nowrap;color:#1c6ace}
.review-source-location{margin:0;padding:6px 12px;background:#edf5ff;color:#235887;font-size:11px;line-height:1.5;border-top:1px solid #dce9fc}
.review-source-location.is-warning{background:#fff7e8;color:#94641d}
mark.review-source-match{background:#ffe482;color:inherit;border-radius:2px;box-shadow:0 1px 0 #dfa528}
.review-pdf-stage{position:relative;margin:0 auto;background:white;flex:none}
.review-pdf-stage.is-location-page{outline:2px solid #e6ac24;outline-offset:2px}
.review-pdf-match{position:absolute;background:#ffce3980;border-bottom:1px solid #c89012;pointer-events:none;mix-blend-mode:multiply}
.review-json-code{padding:7px 3px}
.review-code-line{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;min-height:24px;border-radius:3px}
.review-code-line:hover{background:#eff5ff}
.review-code-text{font:12px/1.85 Consolas,"Cascadia Mono",monospace;color:#334155;white-space:pre-wrap;overflow-wrap:anywhere;padding-right:8px;user-select:text}
.review-line-number{font:10px/24px Consolas,monospace;text-align:right;color:#a1adbf;padding-right:5px;user-select:none}
.syntax-key{color:#1463ad}.syntax-string{color:#237348}.syntax-number{color:#aa550a}.syntax-literal{color:#8a3eab}.syntax-tag{color:#a94048}.syntax-comment{color:#82909e;font-style:italic}
.review-load-more{display:block;margin:16px auto}
.review-browse-tools[hidden],.review-code-hint[hidden]{display:none}
.review-save-state{margin-right:auto;font-size:11px;color:#70829b;max-width:45%;overflow-wrap:anywhere}
.review-modal .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.review-markdown{padding:16px 20px;font-size:13px;line-height:1.9;color:#34435a}
.review-markdown h1{font-size:24px}.review-markdown h2{font-size:20px}.review-markdown h3{font-size:17px}
.review-markdown p{margin:10px 0}.review-markdown code{background:#eaf0f7;border-radius:4px;padding:2px 4px;font-family:Consolas,monospace}
.review-markdown pre{background:#edf2f8;padding:12px;border-radius:8px;overflow:auto;white-space:pre-wrap}
.review-markdown blockquote{margin:12px 0;padding:4px 12px;border-left:3px solid #a9c5eb;background:#f2f6fc}
@media(max-width:600px){.review-comparison{grid-template-columns:1fr;grid-template-rows:1fr 1.4fr}.review-modal .review-summary{display:none}.review-modal .modal-actions .btn{padding:7px 9px;font-size:11px}.review-save-state{font-size:10px}}
.pdf-frame{width:100%;height:min(72vh,760px);border:1px solid #e7ebf2;border-radius:10px;background:#f5f7fb}
.pdf-thumb{width:100%;max-height:min(72vh,760px);object-fit:contain;border-radius:10px;border:1px solid #e7ebf2;background:#fff;display:block}
.text-preview{white-space:pre-wrap;background:#fbfcfe;border:1px solid #e7ebf2;border-radius:10px;padding:14px;font:12px/1.75 "SF Mono",Consolas,monospace;max-height:62vh;overflow:auto;color:#3d4756}

.pager{display:flex;align-items:center;gap:6px;justify-content:flex-end;padding:14px 4px 2px}
.pager button{min-width:32px;height:32px;border:1px solid #e7ebf2;background:#fff;border-radius:8px;color:#5b6779;font-size:12px;cursor:pointer}
.pager button.current{background:#1477f8;border-color:#1477f8;color:#fff}
.pager button:disabled{opacity:.45;cursor:not-allowed}

.empty-soft{border:1px dashed #dfe7f3;border-radius:14px;padding:46px 20px;text-align:center;color:#8b96a7;background:#fbfcfe}
.empty-soft h3{color:#3d4756;margin:10px 0 4px;font-size:15px}
.empty-soft p{margin:0 0 14px;font-size:12.5px}

.spin{width:16px;height:16px;border:2px solid #dbe7ff;border-top-color:#1477f8;border-radius:50%;display:inline-block;animation:sp .7s linear infinite;vertical-align:-3px}
@keyframes sp{to{transform:rotate(360deg)}}

.placeholder-page{border:1px solid #e7ebf2;border-radius:16px;padding:44px;text-align:center;background:linear-gradient(140deg,#f8fbff,#fff)}
.placeholder-page h2{margin:12px 0 6px;font-size:18px}
.placeholder-page p{color:#798598;font-size:13px;max-width:560px;margin:0 auto 16px;line-height:1.8}
.tpl-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}
@media(max-width:1000px){.tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tpl-card{border:1px solid #e7ebf2;border-radius:12px;padding:16px;background:#fff}
.tpl-card b{display:block;font-size:13px;margin:8px 0 4px}
.tpl-card span{font-size:11.5px;color:#8b96a7;line-height:1.6}

.toast{position:fixed;left:50%;bottom:34px;transform:translateX(-50%);background:#141d2d;color:#fff;border-radius:11px;padding:11px 18px;font-size:13px;z-index:99;box-shadow:0 12px 30px rgba(15,23,42,.25);display:flex;align-items:center;gap:8px}

/* ===== 二级导航（侧栏目录） ===== */
.nav-group{display:grid;gap:2px}
.nav-caret{margin-left:auto;display:inline-flex;color:#9aa6b8;transition:.18s}
.nav-caret.open{transform:rotate(90deg);color:#106afa}
.nav-subwrap{display:grid;gap:2px;margin:2px 0 6px 20px;padding-left:10px;border-left:1px solid #e4ebf6}
.nav-subwrap[hidden]{display:none !important}
.nav-sub{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:#66738a;font-size:12.5px;font-weight:560;text-align:left;padding:8px 10px;border-radius:9px;width:100%;transition:.15s}
.nav-sub svg{color:#94a1b4}
.nav-sub:hover{background:#eef4ff;color:#106afa}
.nav-sub:hover svg{color:#106afa}
.nav-sub.on{background:#eef4ff;color:#0f6df7;font-weight:700}
.nav-sub.on svg{color:#0f6df7}
@media(max-width:950px){.nav-subwrap{display:none}}

/* ===== 面包屑与目录页签 ===== */
.crumb{font-size:12px;color:#8b96a7;margin-bottom:6px}
.crumb b{color:#3d4756}
.dir-tabs{position:relative;display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.dir-tab{display:inline-flex;align-items:center;gap:7px;border:1px solid #e7ebf2;background:#fff;color:#5b6779;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:600;transition:.15s;height:36px}
.dir-tab svg{color:#94a1b4}
.dir-tab:hover{background:#f5f9ff;border-color:#cfe0ff;color:#106afa}
.dir-tab.on{background:#0a70f9;border-color:#0a70f9;color:#fff;box-shadow:0 6px 14px rgba(10,112,249,.22)}
.dir-tab.on svg{color:#fff}
.dir-count{font-size:11px;font-weight:700;padding:0 6px;border-radius:9px;background:#f0f3f8;color:#8b96a7;min-width:20px;text-align:center}
.dir-tab.on .dir-count{background:rgba(255,255,255,.24);color:#fff}
/* 目录 tab 切换胶囊：位于 tab 之上，毛玻璃（半透明浅蓝 + backdrop blur）常驻；
   实心蓝底在 __solid 层，只做 opacity 动画，避免对 backdrop-filter 插值 */
.dir-tab-indicator{position:absolute;z-index:2;pointer-events:none;border-radius:999px;border:1px solid rgba(255,255,255,.7);background:rgba(10,112,249,.16);-webkit-backdrop-filter:blur(6px) saturate(160%);backdrop-filter:blur(6px) saturate(160%);box-shadow:0 6px 14px rgba(10,112,249,.22)}
@supports not (backdrop-filter: blur(1px)){.dir-tab-indicator{-webkit-backdrop-filter:none;backdrop-filter:none}}
.dir-tab-indicator__solid{position:absolute;inset:-1px;border-radius:inherit;background:#0a70f9}
.dir-tab-indicator__label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;opacity:0}
.dir-tab-indicator__label svg{color:#fff}
.dir-tab-indicator__label .dir-count{font-size:11px;font-weight:700;padding:0 6px;border-radius:9px;background:rgba(255,255,255,.24);color:#fff;min-width:20px;text-align:center}

/* ===== 流水线链路 ===== */
.metrics-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:6px}
@media(max-width:900px){.metrics-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
.metric-box{border:1px solid #e7ebf2;border-radius:13px;background:linear-gradient(160deg,#fbfdff,#fff);padding:15px 17px}
.metric-box span{display:block;font-size:12px;color:#8b96a7}
.metric-box b{display:block;font-size:22px;letter-spacing:-.6px;margin-top:4px;color:#141d2d}

.flow-strip{display:flex;align-items:stretch;gap:4px;margin:4px 0 22px;flex-wrap:wrap}
.flow-node{flex:1;min-width:132px;border:1px solid #e7ebf2;border-radius:13px;background:#fff;padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;transition:.16s}
.flow-node:hover{border-color:#cfe0ff;box-shadow:0 8px 20px rgba(23,59,120,.07);transform:translateY(-1px)}
.flow-node b{font-size:13px;color:#141d2d}
.flow-count{font-size:19px;font-weight:750;letter-spacing:-.5px;color:#0f6df7}
.flow-note{font-size:11px;color:#8b96a7;line-height:1.5}
.flow-arrow{display:flex;align-items:center;color:#c3cede;flex:none}
@media(max-width:1100px){.flow-arrow{display:none}.flow-node{min-width:calc(50% - 6px)}}

.stage-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:1000px){.stage-cards{grid-template-columns:1fr}}
.stage-card{display:flex;align-items:center;gap:12px;border:1px solid #e7ebf2;border-radius:13px;background:#fff;padding:14px 16px;text-align:left;transition:.16s}
.stage-card:hover{border-color:#cfe0ff;box-shadow:0 8px 20px rgba(23,59,120,.07)}
.stage-card-main{flex:1;min-width:0}
.stage-card-main b{display:block;font-size:13px;color:#141d2d}
.stage-card-main span{display:block;font-size:11.5px;color:#8b96a7;line-height:1.55;margin-top:2px}
.stage-card-count{text-align:right;flex:none}
.stage-card-count b{display:block;font-size:17px;color:#0f6df7;letter-spacing:-.4px}
.stage-card-count span{font-size:10.5px;color:#8b96a7}

/* 表格里的加工进度点 */
.step-dots{display:flex;align-items:center;gap:0}
.step-dot{width:20px;height:20px;border-radius:50%;border:1px solid #dfe6f1;background:#f6f8fc;color:#9aa6b8;font-size:10px;font-weight:700;display:grid;place-items:center;flex:none;transition:.15s}
.step-dot.done{background:#e7f6ee;border-color:#bee6d2;color:#0b7a4b}
.step-dot:hover{transform:scale(1.12)}
.step-line{width:10px;height:1px;background:#e2e8f2;flex:none}

/* ===== 中间产物时间线（资产详情） ===== */
.stage-block{margin-top:18px;border-top:1px solid #eef2f8;padding-top:16px}
.stage-block-head{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.stage-block-head b{font-size:13px}
.stage-timeline{display:flex;align-items:stretch;gap:2px;flex-wrap:wrap}
.stage-node{flex:1;min-width:120px;border:1px solid #e7ebf2;border-radius:11px;background:#fff;padding:11px 12px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;transition:.15s}
.stage-node.ready:hover{border-color:#bfe0cd;background:#f7fdfa}
.stage-node.pending{opacity:.72;cursor:default}
.stage-dot{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:700;background:#f0f3f8;color:#8b96a7;border:1px solid #e2e8f2;margin-bottom:2px}
.stage-node.ready .stage-dot{background:#e7f6ee;border-color:#bee6d2;color:#0b7a4b}
.stage-node b{font-size:12px;color:#141d2d}
.stage-meta{font-size:10.5px;color:#8b96a7}
.stage-link{width:12px;display:flex;align-items:center;justify-content:center;color:#d3dce8;flex:none}
.stage-link::before{content:"";width:100%;height:1px;background:#e2e8f2}
.stage-pre{max-height:56vh;overflow:auto;margin:0}

/* ===== 细节修正 ===== */
.table th{white-space:nowrap}
.stage-card{min-height:76px}
.stage-card-count{min-width:46px}
.stage-block{padding-bottom:2px}
.flow-node{min-height:104px}

/* ===== 加工任务与审核 ===== */
.task-list{border:1px solid #e7ebf2;border-radius:14px;background:#fff;overflow:hidden}
.task-row{display:flex;align-items:center;gap:16px;padding:13px 16px;border-bottom:1px solid #eef2f8}
.task-row:last-child{border-bottom:0}
.task-main{flex:1;min-width:0}
.task-progress{display:flex;align-items:center;gap:9px;margin-top:8px}
.task-bar{flex:1;max-width:360px;height:6px;border-radius:6px;background:#eef2f8;overflow:hidden}
.task-bar span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#4bbaff,#0a70f9);transition:width .5s ease}
.task-progress b{font-size:11px;color:#0f6df7;min-width:34px}
.task-state{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:110px}
.task-ops{display:flex;gap:10px;align-items:center;min-width:100px;justify-content:flex-end}
.task-summary{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.task-summary b{font-size:18px;color:#0f6df7}
.task-steps{display:grid;gap:0}
.task-step{display:flex;align-items:flex-start;gap:12px;padding:10px 0 10px 2px;position:relative}
.task-step:not(:last-child)::before{content:"";position:absolute;left:11px;top:32px;bottom:-2px;width:1px;background:#e6ebf4}
.task-step-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none;font-size:10px;font-weight:700;background:#f0f3f8;color:#8b96a7;border:1px solid #e2e8f2;z-index:1}
.task-step.done .task-step-dot{background:#e7f6ee;border-color:#bee6d2;color:#0b7a4b}
.task-step.running .task-step-dot{background:#eaf2ff;border-color:#cfe0ff;color:#0f6df7}
.task-step.failed .task-step-dot{background:#fdeceb;border-color:#f6cfcb;color:#b42318}
.task-step div{flex:1;min-width:0}
.task-step b{font-size:12.5px;color:#141d2d}
.task-step p{margin:2px 0 0;font-size:11.5px;color:#8b96a7;line-height:1.55}
@media(max-width:900px){.task-state,.task-ops{display:none}}

/* ===== 简洁模式：去掉解释性与重复的小字 ===== */
.crumb,
.subtitle,
.page-title + .subtitle,
.flow-note,
.stage-card-main > span,
.stage-meta,
.stat-foot,
.results-head .tiny.muted,
.section-heading > .tiny.muted,
.empty-soft p,
.task-row .item-sub,
.task-state .tiny.muted,
.task-summary .tiny.muted,
.stage-block-head .tiny.muted,
.item-sub,
.latest,
.side-bottom .demo-note,
.login-card p.sub { display: none !important; }
.head-row { margin-bottom: 22px; }
.section-heading { margin: 22px 0 12px; }
.recent-datasets .store-item { gap: 15px; padding: 15px 12px; cursor: default; }
.recent-datasets .store-item:hover .pack-title { color: inherit; }
.recent-datasets .pack-meta { flex-wrap: wrap; gap: 8px 10px; }
.recent-datasets .category-tag { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.recent-dataset-size { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.recent-datasets .store-action { flex: 0 0 auto; margin-left: 5px; }
.recent-datasets .store-action .btn { width: 64px; min-height: 34px; padding: 7px 12px; }
.page-title { font-size: 26px; }
.results-head { margin-bottom: 10px; }
.flow-node { min-height: 84px; }
.stage-card { min-height: 64px; }

/* ===== 简洁模式：卡片级去噪 ===== */
.stage-card-count > span,
.ds-card-foot .tiny.muted,
.store-item .pack-desc { display: none !important; }
.stage-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stage-card { gap: 8px; padding: 12px; }
.stage-card-main b { font-size: 12px; }
@media(max-width:1180px){ .stage-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media(max-width:760px){ .stage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 智能检索 ===== */
.ai-search{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.ai-search .inputbox{width:100%;max-width:none;flex:1;height:42px;border-radius:12px}
.ai-search .inputbox input{border:0;outline:0;flex:1;min-width:0;font-size:13.5px;background:transparent}
.ai-search .inputbox svg{color:#0f6df7;flex:none}
.ai-search .btn{height:42px;flex:none;padding:0 20px}
.cond-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-2px 0 16px}
.cond-source{display:inline-flex;align-items:center;gap:5px;border:0;border-radius:999px;padding:5px 11px;font-size:11.5px;font-weight:700;background:#eaf2ff;color:#1266d6}
.cond-source:hover{background:#dceaff}
.cond-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #d9e6ff;background:#f4f8ff;color:#3d5c94;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:600}
.cond-chip:hover{background:#e7f0ff;border-color:#b9d2ff}
.cond-chip svg{opacity:.55}
.cond-add,.cond-clear{border:0;background:transparent;color:#0f6df7;font-size:12px;font-weight:650;padding:5px 8px;display:inline-flex;align-items:center;gap:3px}
.cond-clear{color:#8b96a7}
@media(max-width:760px){.ai-search{flex-wrap:wrap}.ai-search .inputbox{flex-basis:100%}}
.modal.wide .field-grid{gap:9px 12px}
.modal.wide .field-grid input,.modal.wide .field-grid select{padding:7px 10px}

/* ===== 一级导航：整行切换子菜单 ===== */
.navwrap{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px;scrollbar-width:thin;align-content:start}
.navwrap::-webkit-scrollbar{width:6px}
.navwrap::-webkit-scrollbar-thumb{background:#dfe6f1;border-radius:6px}
.nav-row{display:flex;align-items:center;gap:2px}
.nav-row .nav{flex:1;min-width:0}
.nav-parent .nav-caret{flex:none}
.nav-parent .nav-caret svg{width:13px;height:13px}
.nav-group .nav-subwrap{margin-top:2px}

/* ===== 数据采集：来源分布条形图 ===== */
.source-bars{display:grid;gap:10px;border:1px solid #e7ebf2;border-radius:13px;background:#fff;padding:16px 18px}
.source-bar{display:flex;align-items:center;gap:12px;font-size:12.5px}
.source-bar>span{width:78px;flex:none;color:#5b6779;font-weight:600}
.source-bar .bar{flex:1;height:8px;border-radius:6px;background:#eef2f8;overflow:hidden}
.source-bar .bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#4bbaff,#0a70f9)}
.source-bar b{width:44px;flex:none;text-align:right;color:#141d2d;font-weight:700}

/* ===== 数据采集总览：四个入口卡片 ===== */
.collect-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:4px}
.collect-card{display:flex;align-items:center;gap:14px;padding:20px;background:#fff;border:1px solid #e7ebf2;border-radius:16px;text-align:left;cursor:pointer;box-shadow:0 4px 14px rgba(23,59,120,.04);transition:.18s}
.collect-card:hover{border-color:#cfe0ff;box-shadow:0 10px 26px rgba(23,59,120,.09);transform:translateY(-2px)}
.collect-icon{width:52px;height:52px;flex:0 0 auto;border-radius:14px;display:grid;place-items:center;color:#fff;box-shadow:0 4px 10px rgba(23,59,120,.14)}
.collect-icon.blue{background:linear-gradient(145deg,#5dcaff,#1376fb)}
.collect-icon.cyan{background:linear-gradient(145deg,#6fe3e3,#0fa8b8)}
.collect-icon.indigo{background:linear-gradient(145deg,#79adff,#2857ed)}
.collect-icon.orange{background:linear-gradient(145deg,#ffd969,#fb7a17)}
.collect-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.collect-copy b{font-size:15px;color:#141d2d;font-weight:600;white-space:nowrap}
.collect-copy span{font-size:12px;color:#8b96a7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collect-num{margin-left:auto;display:flex;align-items:baseline;gap:3px;font-size:28px;font-weight:740;letter-spacing:-1.2px;line-height:1;color:#141d2d;font-variant-numeric:tabular-nums}
.collect-num em{font-style:normal;font-size:11px;font-weight:600;letter-spacing:0;color:#9aa6b8}
.collect-arrow{color:#b7c2d4;margin-left:4px;display:grid;place-items:center;transition:.18s}
.collect-card:hover .collect-arrow{color:#1477f8;transform:translateX(2px)}
@media(max-width:1180px){
  .collect-card{gap:11px;padding:15px}
  .collect-icon{width:44px;height:44px;border-radius:12px}
  .collect-copy b{font-size:13.5px}
  .collect-num{font-size:22px;letter-spacing:-.8px}
  .collect-num em{font-size:10px}
  .collect-arrow{display:none}
}
@media(max-width:900px){.collect-grid{grid-template-columns:1fr}.collect-arrow{display:grid}}

/* ===== 顶栏：平台名 + 右上角入口（我的下载 / 系统设置） ===== */
.topbar{padding:0 30px}
.topbar-title{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:750;letter-spacing:-.3px;color:#141d2d}
.topbar-title .t-mark{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;color:#fff;background:linear-gradient(150deg,#4bbaff,#1374f2 70%);box-shadow:0 4px 10px rgba(19,116,242,.22)}
.righttop{gap:10px}
.topnav{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border:1px solid #e7ebf3;background:#fff;border-radius:11px;color:#56647b;font-size:12.5px;font-weight:650;transition:.15s;white-space:nowrap}
.topnav .nav-icon{display:inline-flex;align-items:center;color:#94a1b4}
.topnav:hover{background:#f4f8ff;border-color:#cfe0ff;color:#106afa}
.topnav:hover .nav-icon{color:#106afa}
.topnav.active{background:#eef4ff;border-color:#cfe0ff;color:#0f6df7}
.topnav.active .nav-icon{color:#0f6df7}
@media(max-width:1080px){.topnav span:last-child{display:none}.topnav{padding:0 11px}}

/* ===== 侧栏 Logo + 产品名，顶栏另带版本号 ===== */
.brand{padding:2px 11px 18px;justify-content:flex-start;gap:10px}
.brand-text{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 auto;overflow:hidden;line-height:1.15}
.brand-text strong{display:block;font-size:16px;font-weight:640;letter-spacing:-.3px;color:#141d2d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:950px){.brand-text{display:none}}
.topbar-title .ver-chip{font-size:11px;font-weight:600;color:#7c8798;background:#f1f4f9;border-radius:7px;padding:2px 7px;letter-spacing:0}
.metric-box b{white-space:nowrap}
.metric-box b .unit{font-size:12px;font-weight:600;color:#8b96a7;margin-left:4px;letter-spacing:0}

.review-code-item>header{display:flex;align-items:center;gap:8px;padding-right:10px}.review-source-link{flex:1;min-width:0}.review-code-line.is-modified{background:#e4f7ec;box-shadow:inset 3px 0 #29935a}

.review-code-line[data-edit-field]{cursor:text}.review-code-line[data-edit-field]:focus-visible{outline:2px solid #2676ed;outline-offset:1px}

/* ===== 可调整侧栏与自适应主工作区 ===== */
#app{position:relative;--sidebar-width:254px}
#app .side{width:var(--sidebar-width);min-width:var(--sidebar-width);flex:0 0 var(--sidebar-width);transition:width .2s ease,min-width .2s ease,flex-basis .2s ease,padding .2s ease}
#app.sidebar-hidden .side{width:0;min-width:0;flex-basis:0;padding-left:0;padding-right:0;border-right:0;overflow:hidden;visibility:hidden}
#app.sidebar-hidden #sidebar-resize{display:none}
.work{min-width:0;flex:1;container-name:workarea;container-type:inline-size}
.sidebar-edge-toggle{position:absolute;z-index:9;top:26px;left:var(--sidebar-width);transform:translateX(-50%);width:24px;height:24px;padding:0;display:grid;place-items:center;border:1px solid #e3e9f3;border-radius:50%;background:#fff;color:#8a97ab;box-shadow:0 1px 2px #1c34500d,0 3px 8px #1c34500f;transition:left .2s ease,width .2s ease,border-radius .2s ease,background .15s,color .15s,border-color .15s,box-shadow .15s}
.sidebar-edge-toggle:hover{background:#f3f7ff;color:#106afa;border-color:#c8dbff;box-shadow:0 0 0 3px #e8f1ff,0 3px 8px #106afa1f}
.sidebar-edge-toggle:active{background:#e7efff}
.sidebar-edge-toggle:focus-visible{outline:0;border-color:#2784ff;box-shadow:0 0 0 3px #d6e7ff}
.sidebar-edge-toggle svg{width:13px;height:13px;stroke-width:2.4;transition:transform .2s ease}
.sidebar-edge-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
#app.sidebar-hidden .sidebar-edge-toggle{left:0;transform:none;top:20px;width:22px;height:36px;border-left:0;border-radius:0 10px 10px 0}
#app.sidebar-hidden .sidebar-edge-toggle:hover{width:26px}
.sidebar-resize{position:absolute;z-index:6;top:0;right:-6px;bottom:0;width:12px;display:flex;align-items:center;justify-content:center;cursor:col-resize;touch-action:none}
.sidebar-resize:after{content:"";width:3px;height:42px;border-radius:999px;background:#9eacc0;opacity:.5;transition:height .15s,background .15s,opacity .15s}
.sidebar-resize:hover:after,.sidebar-resize:focus-visible:after,body.resizing-sidebar .sidebar-resize:after{height:64px;background:#1477f8;opacity:1}
body.resizing-sidebar{cursor:col-resize;user-select:none}
body.resizing-sidebar *{cursor:col-resize!important;user-select:none!important}
@media(max-width:950px){
  #app .side{width:72px;min-width:72px;flex-basis:72px;padding:22px 10px}
  .sidebar-edge-toggle{left:72px}
  .sidebar-resize{display:none}
}
@media(max-width:600px){
  #app .side{width:56px;min-width:56px;flex-basis:56px;padding:16px 6px}
  .sidebar-edge-toggle{left:56px}
}
.nav,.nav-sub{white-space:nowrap;flex-shrink:0}
.nav>svg,.nav-sub>svg{width:20px;height:20px;flex:0 0 20px}
.nav-sub>svg{width:15px;height:15px;flex-basis:15px}
.nav>span,.nav-sub>span{white-space:nowrap;flex-shrink:0}
.brand .logo{flex-shrink:0}
.brand-text{white-space:nowrap;flex-shrink:1;overflow:hidden}
@container workarea (max-width:1100px){
  .content{padding:31px 27px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container workarea (max-width:800px){
  .content{padding:25px 20px}
  .store-list{grid-template-columns:1fr}
  .review-layout{grid-template-columns:1fr}
  .factory-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container workarea (max-width:560px){
  .content{padding:23px 15px}
  .head-row{align-items:flex-start}
  .stats{grid-template-columns:1fr}
  .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .righttop{gap:5px}
  .topbar-title{font-size:14px}
  .topbar-title .ver-chip{display:none}
}

.review-raw-editor{display:block;width:100%;min-height:400px;height:100%;resize:none;font:13px/1.8 Consolas,monospace;padding:14px;border:0;background:#fafcff;white-space:pre;tab-size:2;color:#1b416a}.review-raw-editor:focus{outline:2px solid #92b9ef;outline-offset:-2px}

.review-inline-value{white-space:pre-wrap;overflow-wrap:anywhere;outline:none;border:0;background:transparent;min-width:1ch;display:inline;color:#08766b;caret-color:#164c9f}.review-code-line.is-editing{background:#eff6ff}.review-inline-error{grid-column:2;color:#b42318;font:12px/1.6 sans-serif}.review-inline-error:empty{display:none}

/* ===== 数据采集 · 本地批量导入（PDF / ZIP / 文件夹） ===== */
.import-drop{display:block;border:2px dashed #cfe0ff;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#f5f9ff);padding:36px 20px;text-align:center;cursor:pointer;transition:.18s;color:#5b6b83}
.import-drop > svg{color:#1477f8;margin:0 auto 10px}
.import-drop h2{font-size:18px;margin:0 0 6px;color:#141d2d}
.import-drop p{font-size:13px;margin:0;color:#798598}
.import-drop .link{font-size:13px}
.import-drop .import-cap{margin-top:14px;font-size:11.5px;color:#9aa6b8}
.import-drop:hover,.import-drop.dragover{border-color:#1477f8;background:#eef5ff;box-shadow:0 8px 24px rgba(20,119,248,.08)}
.import-settings{margin-top:16px}
.import-settings h3{margin:0 0 12px}
.import-check .chip{display:flex;align-items:center;justify-content:flex-start;gap:8px;height:36px;padding:0 12px;font-size:12px;font-weight:600;white-space:nowrap}
.import-check .chip input[type=checkbox]{width:15px;height:15px;flex:0 0 auto;margin:0;padding:0;accent-color:#1477f8}
.ai-mode-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d4e2ff;background:#eef4ff;color:#0f6df7;border-radius:20px;padding:6px 13px;font-size:12.5px;font-weight:600;cursor:pointer}
.ai-mode-chip svg{width:13px;height:13px}
.ai-mode-chip:hover{background:#e2edff;border-color:#a9c8ff}
.import-ai-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:18px;padding:11px 14px;border:1px solid #dfe9ff;background:#f6f9ff;border-radius:10px;font-size:12.5px;color:#4b5b73}
.import-ai-summary svg{color:#1477f8;flex:0 0 auto}
.import-ai-summary b{color:#141d2d}
.badge.ai{background:#efe8ff;color:#7746d6;border:1px solid #ddcdff}

/* ===== 本地导入：顶部工具组 / 数量感知 / 弹窗清单与设置 ===== */
.import-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tool-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f2;background:#fff;color:#5b6779;border-radius:20px;padding:6px 13px;font-size:12.5px;font-weight:600;cursor:pointer}
.tool-chip svg{width:14px;height:14px}
.tool-chip:hover{border-color:#a9c8ff;background:#f4f9ff;color:#106afa}
.import-count{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:16px;padding:10px 14px;border-radius:10px;background:#fff;border:1px solid #dfe9ff;font-size:12.5px;color:#5b6779}
.import-count[hidden]{display:none!important}
.import-count-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.import-count b{color:#1477f8;font-size:15px}
.import-count .link{font-size:12.5px}
.import-file-chips{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;max-width:100%}
.import-file-chip{display:flex;align-items:center;gap:6px;max-width:190px;padding:7px 9px;border:1px solid #e3ebf8;border-radius:9px;background:#f9fbff;color:#33415c;font-size:11.5px;cursor:pointer}
.import-file-chip:hover{border-color:#a9c8ff;background:#eef5ff}
.import-file-chip svg{color:#1477f8;flex:0 0 auto}
.import-file-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.import-file-chip .link{color:#93a1b5;font-size:14px;line-height:1;padding:0 1px}
.import-file-chip.more{color:#1477f8;font-weight:600;background:#eef5ff;border-style:dashed}
.import-reopen{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 16px;border:1px solid #dfe9ff;background:#f6f9ff;border-radius:10px;font-size:12.5px;color:#4b5b73}
.import-reopen svg{color:#1477f8}
/* ===== 导入预览：左清单 + 右核对表单 ===== */
.modal.import-preview{width:min(1440px,96vw);max-width:96vw;height:min(940px,90dvh)}
.import-preview-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:14px 24px 16px;overflow:hidden}
.imp-top{flex:none;display:grid;gap:8px}
.imp-stats{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;padding:9px 14px;border:1px solid #e1ecff;background:#f7faff;border-radius:10px;font-size:12.5px;color:#5b6779}
.imp-stats b{color:#141d2d;font-weight:650}
.imp-stats .import-ai-summary{margin:0 0 0 auto;padding:0;border:0;background:none;display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.imp-stats .import-ai-summary svg{color:#1477f8}
.imp-top .import-skipped{margin:0}
.imp-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:16px}
.imp-list-col{min-height:0;display:flex;flex-direction:column;border:1px solid #e7edf7;border-radius:12px;background:#fbfcfe;overflow:hidden}
.imp-list-tools{flex:none;display:grid;gap:8px;padding:10px 10px 8px;border-bottom:1px solid #edf1f7;background:#fff}
.imp-filters{display:flex;flex-wrap:wrap;gap:5px}
.imp-filter{border:1px solid #e1e8f3;background:#fff;border-radius:14px;padding:3px 9px;font-size:11.5px;color:#5b6779;cursor:pointer}
.imp-filter span{color:#9aa6b8;margin-left:2px}
.imp-filter:hover{border-color:#bcd6ff;color:#1477f8}
.imp-filter.active{background:#e8f1ff;border-color:#bcd6ff;color:#0f6df7;font-weight:600}
.imp-filter.active span{color:#0f6df7}
.imp-search{display:flex;align-items:center;gap:6px;border:1px solid #e4eaf4;border-radius:8px;padding:0 9px;color:#9aa6b8;background:#fff}
.imp-search input{flex:1;border:0;outline:none;padding:6px 0;font-size:12px;color:#141d2d;background:transparent}
.imp-search:focus-within{border-color:#1477f8;box-shadow:0 0 0 2px #e6f0ff}
.imp-all{display:flex;align-items:center;gap:6px;color:#657184}
.imp-all input,.imp-item input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:#1477f8}
.imp-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:6px}
.imp-item{display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:background .12s,border-color .12s}
.imp-item[hidden]{display:none}
.imp-item + .imp-item{margin-top:2px}
.imp-item input[type=checkbox]{margin-top:2px;flex:none}
.imp-item:hover{background:#f2f6fd}
.imp-item.active{background:#fff;border-color:#bcd6ff;box-shadow:0 2px 10px rgba(20,90,220,.08)}
.imp-item.off .imp-item-main{opacity:.45}
.imp-item-main{min-width:0;flex:1;display:grid;gap:3px}
.imp-item-title{font-size:13px;font-weight:600;color:#141d2d;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.imp-item-sub{font-size:12px;color:#4b5b73;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imp-item-sub.missing{color:#b26a00}
.imp-item-file{font-size:11px;color:#9aa6b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imp-item-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.imp-item-tags > span:empty{display:none}
.imp-item-tags .badge{font-size:10.5px;padding:1px 6px}
.imp-list-empty,.imp-pane-empty{padding:30px 10px;text-align:center;font-size:12px;color:#9aa6b8}
.imp-list-empty[hidden],.imp-pane-empty[hidden]{display:none}
.imp-pane-col{min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;border:1px solid #e7edf7;border-radius:12px;background:#fff}
.imp-pane{display:flex;flex-direction:column;gap:14px;padding:18px 20px 22px}
.imp-pane[hidden]{display:none}
.imp-back{display:none;align-self:flex-start;align-items:center;gap:4px}
.imp-src{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:10px;background:#f6f8fb;border:1px solid #edf1f7}
.imp-src-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#e8f1ff;color:#1477f8;flex:none}
.imp-src-main{min-width:0;flex:1}
.imp-src-name{font-size:13.5px;font-weight:650;color:#141d2d;overflow-wrap:anywhere}
.imp-src-path{margin-top:3px;font-size:11.5px;color:#8b96a7;overflow-wrap:anywhere}
.imp-src-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:46%}
.imp-need-line{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:#fff7e8;color:#9a5b00;font-size:12px}
.imp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.imp-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.imp-field.wide{grid-column:1 / -1}
.imp-label{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#69768c}
.imp-label .badge{font-size:10.5px;padding:1px 6px}
.imp-src-tag{font-style:normal;font-weight:500;font-size:10.5px;color:#8b96a7;background:#f1f4f9;border-radius:5px;padding:0 6px;line-height:17px}
.imp-src-tag::before{content:"来源 · "}
.imp-pane .imp-edit{font-size:13px;padding:8px 10px;min-width:0}
.imp-area{resize:vertical;line-height:1.5;font-family:inherit;min-height:40px}
.imp-pane textarea[data-field=name]{font-weight:600}
.imp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0;padding:12px 14px;border:1px solid #edf1f7;border-radius:10px}
.imp-facts div{min-width:0}
.imp-facts dt{font-size:11px;color:#8b96a7;font-weight:600}
.imp-facts dd{margin:2px 0 0;font-size:12px;color:#33415c;overflow-wrap:anywhere}
.imp-abstract{padding:12px 14px;border:1px solid #edf1f7;border-radius:10px;background:#fbfcff}
.imp-abstract b{display:block;font-size:11px;color:#8b96a7;font-weight:600;margin-bottom:6px}
.imp-abstract p{margin:0;font-size:12.5px;line-height:1.7;color:#33415c;max-height:150px;overflow:auto}
.imp-warn{display:flex;gap:6px;align-items:flex-start;padding:8px 12px;border-radius:8px;background:#fff7e8;color:#b26a00;font-size:12px}
.modal.import-preview .modal-actions{gap:12px}
.imp-foot{font-size:12.5px;color:#4b5b73;white-space:nowrap}
.imp-foot b{color:#141d2d}
.imp-foot-need{color:#b26a00}
.imp-foot-hint{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1100px){
  .imp-layout{grid-template-columns:1fr}
  .imp-layout .imp-pane-col{display:none}
  .imp-layout.show-pane .imp-list-col{display:none}
  .imp-layout.show-pane .imp-pane-col{display:block}
  .imp-back{display:inline-flex}
  .imp-foot-hint{display:none}
  .imp-stats .import-ai-summary{margin-left:0}
}

/* ===== 原始数据 · 多格式预览弹窗 ===== */
.modal.asset-detail{width:1180px;max-width:96vw;height:min(900px,90dvh)}
.modal.asset-detail .asset-detail-body{flex:1;min-height:0;max-height:none;overflow:hidden;display:flex}
.asset-detail-layout{flex:1;min-height:0;overflow:hidden;display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);grid-template-rows:minmax(0,1fr);gap:18px}
.asset-meta{min-width:0;min-height:0;overflow:auto;padding-right:6px}
.asset-preview{min-width:0;min-height:0;display:flex;flex-direction:column}
.pv-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex:none}
.pv-badge{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eef4ff;color:#1477f8;flex:0 0 auto}
.pv-head .spacer{flex:1}
.pv-tools{display:flex;align-items:center;gap:8px}
.pv-tool-group{display:flex;align-items:center;gap:4px;padding:2px 5px;border:1px solid #e6ecf6;border-radius:10px;background:#fff}
.pv-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid transparent;border-radius:9px;background:transparent;color:#5b6779;font-size:17px;line-height:1;cursor:pointer;text-decoration:none;transition:.15s}
.pv-icon:hover{background:#f0f6ff;border-color:#d5e4ff;color:#0f6df7}
.pv-icon.active{background:#e8f1ff;border-color:#bcd6ff;color:#0f6df7}
.pv-icon svg{width:16px;height:16px}
.pv-tool-group input{width:50px;border:0;background:transparent;text-align:right;font-size:12.5px;color:#141d2d;font-weight:600;outline:none;-moz-appearance:textfield}
.pv-tool-group input::-webkit-inner-spin-button,.pv-tool-group input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.pv-total{font-size:12px;color:#8b96a7;white-space:nowrap;padding-right:2px}
.pv-body{flex:1;height:auto;min-height:0;overflow:auto;background:#f7f9fc;border:1px solid #e7edf7;border-radius:12px;padding:14px;overscroll-behavior:contain}
.pv-pdf:focus{outline:none}
.pv-scroll{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;min-height:100%}
.pv-scroll[hidden]{display:none!important}
.pv-page-slot{position:relative;width:100%;max-width:820px;background:#fff;border:1px solid #e5ebf5;border-radius:3px;box-shadow:0 4px 18px rgba(20,40,80,.12);overflow:hidden;flex:0 0 auto}
.pv-page-slot img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.pv-textpane[hidden]{display:none!important}
.pv-textpane{min-height:100%}
.pv-pre{margin:0;padding:14px;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,Consolas,"Microsoft YaHei",monospace;font-size:12px;line-height:1.65;color:#2a3548}
.pv-image{text-align:center}
.pv-image img{display:block;margin:0 auto;max-width:none;border-radius:6px;box-shadow:0 4px 18px rgba(20,40,80,.12)}
.pv-html{padding:0}
.pv-frame{width:100%;height:100%;min-height:490px;border:0;background:#fff}
.pv-tablebox{max-height:100%;overflow:auto;background:#fff;border-radius:8px}
.pv-table{font-size:12px}
.pv-table td{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.asset-preview .empty-soft{display:grid;place-items:center;height:100%;text-align:center}
@media(max-width:1100px){
  .modal.asset-detail{height:auto}
  .modal.asset-detail .asset-detail-body{display:block;overflow:auto;max-height:78vh}
  .asset-detail-layout{grid-template-columns:1fr;grid-template-rows:auto}
  .asset-preview .pv-body{height:460px;flex:none}
  .asset-meta{overflow:visible;padding-right:0}
}
.pending-list{display:grid;gap:6px;max-height:420px;overflow:auto}
.pending-list .file-row{padding:9px 11px}
.pending-list .file-row .link{margin-left:4px}
.import-settings-modal .settings-section{margin-bottom:20px}
.import-settings-modal .settings-section:last-child{margin-bottom:0}
.import-settings-modal h3{font-size:14px;margin:0 0 12px;color:#141d2d}
.import-settings-modal .field-grid .chip{font-size:12px}
.import-settings-modal .kv{margin-bottom:4px}
.import-model-choice{display:grid;gap:4px;margin:16px 0 8px}
.import-model-choice label{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.import-model-choice input{margin:0;accent-color:#1477f8}
.import-model-choice small{margin-left:22px;color:#657184;font-size:12px}
.import-actions{display:flex;align-items:center;gap:8px;margin-top:16px;flex-wrap:wrap}
.import-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.import-summary .metric-box b{font-size:24px}
.imp-edit{width:100%;min-width:88px;border:1px solid #e4eaf4;border-radius:7px;padding:6px 8px;font-size:12px;color:#141d2d;background:#fff}
.imp-edit:focus{outline:none;border-color:#1477f8;box-shadow:0 0 0 2px #e6f0ff}
.import-skipped{margin:12px 0;padding:9px 12px;border-radius:8px;background:#fff7e8;color:#9a6b12;font-size:12px}
.import-done{border:1px solid #dff0e4;background:#f8fffa;border-radius:14px;padding:22px;margin-top:18px}
.import-done-head{display:flex;align-items:center;gap:12px;color:#159957}
.import-done-head h2{margin:0;font-size:19px;color:#141d2d}
.import-done-head p{margin:2px 0 0;font-size:12px;color:#8b96a7}
@media(max-width:1100px){.import-summary{grid-template-columns:repeat(2,1fr)}}

/* ===== 期刊 / 会议（关注清单） ===== */
.venue-tag{display:inline-flex;align-items:center;height:21px;padding:0 8px;border-radius:6px;margin-right:6px;
  font-size:11px;font-weight:650;letter-spacing:.2px;color:#2f4a7d;background:#eef4ff;max-width:150px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.venue-tag .venue-marquee{display:inline-flex;flex:none;white-space:nowrap}
.venue-tag .venue-marquee-text{padding-right:24px}          /* 与循环位移配合，保证首尾衔接无跳动 */
.venue-tag .venue-marquee-text + .venue-marquee-text{display:none}
.venue-tag.is-scroll{position:relative;text-overflow:clip}
.venue-tag.is-scroll .venue-marquee-text + .venue-marquee-text{display:inline-block}
.venue-tag.is-scroll .venue-marquee{animation:venue-marquee var(--venue-marquee-duration,8s) linear infinite}
.venue-tag.is-scroll:hover .venue-marquee{animation-play-state:paused}   /* 悬停可停下来读 */
.venue-tag.is-scroll::after{content:"";position:absolute;top:0;right:0;bottom:0;width:16px;pointer-events:none;
  background:linear-gradient(90deg,rgba(238,244,255,0),#eef4ff 85%)}
@keyframes venue-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.venue-tag.is-scroll .venue-marquee{animation:none}}
.badge.indigo{background:#e8eeff;color:#2a49c9}
.asset-meta .venue-tag{margin-right:8px}

.assets-table{width:max-content;min-width:100%}
.assets-table td,.assets-table th{white-space:nowrap}
.assets-table td:nth-child(1){white-space:normal;width:clamp(240px,30vw,420px);max-width:clamp(240px,30vw,420px)}
.assets-table td:nth-child(1) .item-title{line-height:1.45;overflow-wrap:anywhere}
.assets-table th:nth-child(1){width:clamp(240px,30vw,420px)}


/* ===== 智能解析字段（年份 / 摘要 / 解析提示） ===== */
.item-year{margin-left:7px;font-size:11px;font-weight:650;color:#9aa6b8;letter-spacing:.2px}
.asset-abstract{margin-top:14px;padding:12px 14px;border:1px solid #e7ebf2;border-radius:12px;background:#fbfcff}
.asset-abstract b{display:block;font-size:11px;color:#8b96a7;font-weight:600;margin-bottom:6px}
.asset-abstract p{margin:0;font-size:12px;line-height:1.7;color:#33415c;max-height:132px;overflow:auto}
.asset-warn{margin-top:10px;display:grid;gap:6px}
.asset-warn > div{display:flex;align-items:flex-start;gap:7px;font-size:11.5px;line-height:1.6;color:#9a6b12;
  background:#fff8ea;border:1px solid #f7eacb;border-radius:9px;padding:7px 10px}
.asset-warn svg{flex:none;margin-top:2px}

/* ===== 原始数据列表：关注度标记 + 列设置 ===== */
.assets-table tr.asset-row td:first-child{box-shadow:inset 3px 0 0 transparent}
.assets-table tr.tier-crypto_top td:first-child{box-shadow:inset 3px 0 0 #7c5cff}
.assets-table tr.tier-security_top td:first-child{box-shadow:inset 3px 0 0 #2f7bf6}
.assets-table tr.tier-ccf_a td:first-child{box-shadow:inset 3px 0 0 #3f5bd6}
.col-intro{font-size:12px;color:#8b96a7;line-height:1.6;margin-bottom:12px}
.col-list{display:grid;gap:6px;max-height:52vh;overflow:auto;padding-right:2px}
.col-item{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #e7ebf2;border-radius:10px;background:#fff}
.col-item.on{border-color:#cfe0ff;background:#fbfdff}
.col-check{display:flex;align-items:center;gap:8px;min-width:150px;font-size:13px;font-weight:600;color:#141d2d;cursor:pointer}
.col-check input{width:15px;height:15px;flex:0 0 auto}
.col-hint{flex:1;min-width:0;font-size:11.5px;color:#8b96a7}
.col-move{display:flex;gap:4px;flex:0 0 auto}
.col-btn{width:26px;height:26px;border:1px solid #e4eaf4;border-radius:7px;background:#fff;color:#5b6779;font-size:12px;line-height:1}
.col-btn:hover:not(:disabled){border-color:#b9d2ff;color:#1477f8}
.col-btn:disabled{opacity:.35;cursor:not-allowed}

/* 待确认字段高亮：该类型需要的 P1 字段还空着时的提示（08 §4.6） */
.imp-edit.imp-need{border-color:#edb978;background:#fffaf3}
.imp-edit.imp-need:focus{border-color:#d98f2b;box-shadow:0 0 0 2px #fdeed6}

/* 数据源接入：沿用表格与弹窗，允许配置、消息和操作自然换行 */
.modal.source-modal.wide{width:900px;max-width:95vw}
.modal.source-modal.xwide{width:1080px;max-width:95vw}
.modal.source-modal [hidden]{display:none!important}
.source-table{min-width:760px}
.source-table td{vertical-align:top}
.source-message{overflow-wrap:anywhere;white-space:normal;max-width:360px;margin-top:4px}
.collect-job-message{white-space:normal;overflow-wrap:anywhere;min-width:190px;max-width:360px;margin-top:6px;line-height:1.5}
.source-actions{display:flex;flex-wrap:wrap;gap:8px 12px;min-width:150px;max-width:200px}
.source-actions button:disabled{opacity:.45;cursor:not-allowed}
.source-notice{margin-bottom:12px}
.source-catalog{margin:16px 0;border:1px solid var(--line,#e5e7eb);border-radius:8px;padding:12px 16px}
.source-catalog summary{cursor:pointer;font-weight:600}
.source-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-top:14px}
.source-provider-card{padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:6px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.source-provider-card p{margin:0;flex:1}
.source-provider-card .badge{white-space:normal}
.modal.source-modal .source-inline-actions{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.modal.source-modal .source-inline-actions h3{margin:0 auto 0 0}
.modal.source-modal .field textarea{width:100%;min-height:76px;padding:10px 12px;border:1px solid #e2e8f2;border-radius:9px;background:#fbfcfe;color:#3d4756;font-family:inherit;font-size:12.5px;line-height:1.6;resize:vertical}
.modal.source-modal .field textarea:focus{outline:2px solid #a4c9ff;border-color:#1477f8;background:#fff}
.modal.source-modal [data-config-name]{min-width:0}
.modal.source-modal .field .chip{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:36px;margin-bottom:0}
.modal.source-modal .field .chip input[type=checkbox]{width:15px;height:15px;flex:0 0 auto;margin:0;padding:0;accent-color:#1477f8}
.modal.source-modal textarea[data-config-name],.modal.source-modal textarea[name="mappings"]{font-family:"SF Mono",Consolas,monospace;font-size:12px;line-height:1.6}
.source-query-plan .source-query-details{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;border:1px solid #e7ebf2;border-radius:8px;background:#f7f9fc;padding:12px;font:12px/1.6 "SF Mono",Consolas,monospace}
.source-query-plan .source-query-list{max-height:320px;overflow:auto;min-width:0}
#sources-page .source-query-plan{max-width:380px;font-size:12px;overflow-wrap:anywhere}
.source-query-plan summary{cursor:pointer}
.modal.source-modal .source-preview .table{min-width:420px}
.modal.source-modal .source-preview-stale{opacity:.55}
.modal.source-modal .source-candidates{display:grid;gap:10px;margin:12px 0}
.modal.source-modal .source-candidates>div{padding:12px;border:1px solid #e7ebf2;border-radius:8px;overflow-wrap:anywhere}
.modal.source-modal .source-candidates .source-message{max-width:none;margin-bottom:0}
.modal.source-modal .source-domain-review{font-size:11.5px;line-height:1.6;min-width:150px;margin-top:5px;overflow-wrap:anywhere}
.modal.source-modal button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:640px){.modal.source-modal .field-grid{grid-template-columns:minmax(0,1fr)}.modal.source-modal .source-inline-actions{align-items:flex-start}.modal.source-modal .source-inline-actions h3{width:100%}.modal.source-modal .modal-actions{flex-wrap:wrap}}

/* DataFlow 数据工厂：需求单、任务详情与人工审核 */
.factory-kicker{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#7c8798;font-size:11.5px;font-weight:650;letter-spacing:.02em;margin-bottom:7px}
.factory-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.factory-filter button{padding:7px 14px;font-size:12px}
.factory-create-modal.modal{max-width:940px}
.factory-create-modal .modal-body{padding-top:4px}
.factory-type-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:2px 0 12px}
.factory-type{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:10px 11px;border:1px solid #e2e8f2;border-radius:11px;background:#fbfcfe;color:#3d4756;text-align:left;transition:.15s}
.factory-type:hover{border-color:#bcd3f7;background:#f7faff}
.factory-type.on{border-color:#1477f8;background:#f2f7ff;box-shadow:0 0 0 2px rgba(20,119,248,.12)}
.factory-type-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#e9f1ff;color:#1266d6}
.factory-type b{font-size:12.5px;line-height:1.25}
.factory-type small{font-size:10.5px;color:#8793a6}
.factory-type{position:relative}
.factory-type-cost{position:absolute;top:9px;right:9px;font-style:normal;font-size:10px;font-weight:650;line-height:1;padding:3px 6px;border-radius:999px;color:#9a5b00;background:#fff4e0}
.factory-type-cost.free{color:#0b7a4b;background:#e6f6ee}
.factory-type-hint{display:flex;align-items:flex-start;gap:6px;color:#68778c;font-size:12px;line-height:1.6;margin:-2px 0 2px}
.factory-type-hint svg{flex:none;margin-top:3px;color:#8793a6}
.factory-type-hint b{flex:none;color:#47617f;font-weight:650}
.factory-type-hint b::before{content:"·";margin-right:6px;color:#b5bfcc}
.factory-create .field-grid label,.factory-release-field label{font-size:12px;color:#5b6779;font-weight:600}
.factory-release-field{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.factory-release-field input{width:100%;border:1px solid #e2e8f2;border-radius:9px;padding:9px 11px;font-size:13px;background:#fbfcfe;font-family:inherit}
.factory-source-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:14px 0 8px}
.factory-source-head h3{margin:0 0 2px;font-size:13px}
.factory-source-tools{display:flex;gap:6px}
.factory-source-list{display:grid;gap:7px;max-height:252px;overflow:auto;border:1px solid #e7ebf2;border-radius:11px;padding:8px;background:#fbfcfe}
.factory-source{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #e7ebf2;border-radius:9px;background:#fff;cursor:pointer}
.factory-source:hover{border-color:#c8d8f4}
.factory-source input{width:15px;height:15px;flex:0 0 auto;accent-color:#1477f8}
.factory-source-main{flex:1;min-width:0}
.factory-source-main b{display:block;font-size:12.5px;line-height:1.35;overflow-wrap:anywhere}
.factory-source-main small{display:block;color:#8793a6;font-size:10.5px;line-height:1.45;margin-top:1px}
.factory-source-main .factory-source-reason{color:#b06a13}
.factory-source.is-disabled{opacity:.55;background:#f7f9fc;cursor:not-allowed}
.factory-source-empty{padding:14px 12px;border:1px dashed #d9e2ef;border-radius:10px;color:#7c8798;font-size:12px;line-height:1.6;background:#fbfcfe}
.factory-pool{margin-top:24px}
.factory-policy-setup{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px;font-size:12px;line-height:1.6}
.factory-pool-list{display:grid;gap:8px}
.factory-pool-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:11px 14px;border:1px solid #e7ebf2;border-radius:11px;background:#fbfcfe}
.factory-pool-main{flex:1;min-width:220px}
.factory-pool-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.factory-pool-title b{font-size:13px;color:#243044;overflow-wrap:anywhere}
.factory-pool-main small{display:block;margin-top:3px;color:#8793a6;font-size:11px;line-height:1.5}
.factory-pool-perms{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.factory-perm{display:flex;flex-direction:column;gap:3px;font-size:10.5px;color:#8793a6}
.factory-perm select{height:29px;padding:0 7px;border:1px solid #dfe6f0;border-radius:8px;background:#fff;color:#3d4756;font-size:11.5px;font-family:inherit}
.factory-plan-type{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 13px;margin-bottom:12px;border:1px solid #dbe9ff;border-radius:10px;background:#f2f7ff;color:#47617f;font-size:12.5px}
.factory-plan-type b{color:#0d63d8}
.factory-plan-type .mono{margin-left:auto;color:#7c8798;font-size:11px}
.factory-advanced{margin-top:14px;border-top:1px solid #eef2f8;padding-top:10px}
.factory-advanced summary{cursor:pointer;color:#5b6779;font-size:12px;font-weight:650}
.factory-check{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12px;color:#5b6779}
.factory-check input{width:15px;height:15px;accent-color:#1477f8}
.factory-rag-eval{margin:12px 0;padding:12px;border:1px solid #dbe9ff;border-radius:11px;background:#f8fbff}
.factory-rag-eval .factory-source-head{margin-top:0}
.factory-query-types{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}
.factory-query-types label{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#3d4756;font-size:12px;font-weight:500;cursor:pointer}
.factory-query-types label.is-disabled{opacity:.55;background:#f5f7fa;cursor:not-allowed}
.factory-query-types input{width:14px;height:14px;accent-color:#1477f8}
.factory-rag-eval .alert{margin-bottom:0}
.factory-plan-metrics{margin-bottom:12px}
.factory-plan-metrics .metric-box{padding:11px 14px}
.factory-plan-metrics .metric-box b{font-size:19px}
.factory-excluded{display:grid;gap:4px;margin-top:7px}
.factory-excluded-row{display:flex;gap:10px;font-size:11.5px;line-height:1.5}
.factory-excluded-row .mono{color:#8b96a7;min-width:170px}
.factory-banner{display:flex;align-items:center;gap:12px;padding:13px 16px;border-radius:12px;border:1px solid #e7ebf2;background:#f8fafc;margin-bottom:16px}
.factory-banner>div{flex:1;min-width:0}
.factory-banner b{display:block;font-size:13px}
.factory-banner p{margin:2px 0 0;font-size:12px;line-height:1.55;color:#66758a;overflow-wrap:anywhere}
.factory-banner.blue{background:#f3f8ff;border-color:#dbe9ff;color:#1266d6}
.factory-banner.green{background:#f2fbf6;border-color:#d6f0e0;color:#0b7a4b}
.factory-banner.orange{background:#fffaf1;border-color:#f5e5c6;color:#9a5b00}
.factory-banner.red{background:#fff6f5;border-color:#f5d8d5;color:#b42318}
.factory-banner.gray{background:#f7f9fc;border-color:#e7ebf2;color:#66758a}
.factory-stages{display:grid;gap:0}
.factory-stage{display:flex;align-items:center;gap:10px;padding:8px 2px;border-bottom:1px solid #f1f4f9}
.factory-stage:last-child{border-bottom:0}
.factory-stage-dot{display:grid;place-items:center;width:20px;height:20px;flex:0 0 auto;border-radius:50%;background:#eef2f8;color:#8b96a7;font-size:10px}
.factory-stage.succeeded .factory-stage-dot{background:#e7f6ee;color:#0b7a4b}
.factory-stage.running .factory-stage-dot{background:#eaf2ff;color:#1266d6}
.factory-stage.failed .factory-stage-dot{background:#fdeceb;color:#b42318}
.factory-stage.waiting .factory-stage-dot{background:#fff4e2;color:#9a5b00}
.factory-stage-main{flex:1;min-width:0}
.factory-stage-main b{display:block;font-size:12px;line-height:1.4}
.factory-stage-main small{display:block;font-size:10.5px;color:#8b96a7;line-height:1.4;overflow-wrap:anywhere}
.factory-budget{margin-top:12px;padding-top:10px;border-top:1px solid #eef2f8}
.factory-budget-head{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:#66758a}
.factory-budget-head b{color:#243044}
.factory-budget-bar{height:6px;border-radius:999px;background:#edf1f7;overflow:hidden;margin:6px 0}
.factory-budget-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#4d9bff,#1477f8)}
.factory-review-section{margin-top:8px}
.factory-round{margin-bottom:12px}
.factory-round-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.factory-round-head h3{margin:0 0 2px}
.factory-round-head small{display:block}
.factory-review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:8px 10px;border-radius:9px;background:#f7f9fc}
.factory-review-list{display:grid;gap:8px;max-height:520px;overflow:auto;padding-right:2px}
.factory-review-item{border:1px solid #e7ebf2;border-radius:10px;padding:10px 12px;background:#fff}
.factory-review-item.is-decided{background:#f8fafc}
.factory-review-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.factory-review-text{margin:7px 0 0;padding:8px 10px;border-radius:8px;background:#fbfcfe;color:#3d4756;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}
.factory-review-item.is-decided .factory-review-text{max-height:74px;color:#66758a}
.factory-review-actions{display:flex;gap:7px;margin-top:8px}
.factory-review-actions .btn.reject{color:#b42318}
.factory-review-evidence{margin:8px 0 0;padding:9px 11px;border-radius:8px;background:#f4f7fb;border:1px solid #e1e7f0;color:#3d4756;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}
.factory-review-rubric{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}
.factory-review-rubric label{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#66758a}
.factory-review-rubric select{padding:5px 6px;border:1px solid #dfe5ee;border-radius:7px;background:#fff;font-size:12px;color:#243044}
.factory-review-reason{width:100%;margin-top:7px;padding:7px 9px;border:1px solid #dfe5ee;border-radius:8px;font:inherit;font-size:12px;line-height:1.55;resize:vertical}
@media(max-width:760px){.factory-review-rubric{grid-template-columns:repeat(2,minmax(0,1fr))}}
.factory-round-summary{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px;padding:9px 11px;border-radius:9px;background:#f7f9fc;color:#66758a;font-size:12px}
.factory-round-summary b{color:#243044}
.factory-version-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px 15px;border:1px solid #e7ebf2;border-radius:12px;background:#fff;font-size:12px;color:#5b6779}
.factory-version-panel>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.factory-version-panel .mono{color:#243044;font-weight:650;overflow-wrap:anywhere}
.factory-output-preview{margin-top:12px}
.factory-output-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.factory-output-preview-head h3{margin:0 0 2px;font-size:14px}
.factory-output-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.factory-output-item{min-width:0;border:1px solid #e7ebf2;border-radius:10px;background:#fbfcfe;padding:10px 11px}
.factory-output-item-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:7px;border-bottom:1px solid #e9edf3;font-size:12px}
.factory-output-fields{display:grid;gap:8px;padding-top:8px}
.factory-output-field{min-width:0;display:grid;gap:3px}
.factory-output-field b{font-size:10.5px;color:#8793a6;font-weight:600}
.factory-output-field span{max-height:86px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#3d4756;font-size:11.5px;line-height:1.55}
.factory-confirm-text{margin:0;font-size:13px;line-height:1.75;color:#3d4756}
.factory-confirm-text b{color:#b42318}
@media(max-width:900px){
  .factory-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .factory-head-actions{justify-content:flex-start}
  .factory-version-panel{align-items:flex-start;flex-direction:column}
  .factory-review-list{max-height:none}
  .factory-output-list{grid-template-columns:1fr}
}
/* 危险操作确认：红色主按钮（配色取自 .badge.red 的红色系） */
.btn.danger{background:#d92d20;color:#fff;border-color:#d92d20}
.btn.danger:hover:not(:disabled){background:#b42318;border-color:#b42318}
.btn.danger:disabled{background:#d92d20;border-color:#d92d20;opacity:.45;cursor:not-allowed}
/* 用户管理确认弹窗 */
.user-confirm-text{margin:0;font-size:13px;line-height:1.75;color:#3d4756}
.user-confirm-warn,.user-confirm-error{margin:12px 0 0;padding:9px 12px;border-radius:9px;font-size:12px;line-height:1.6;color:#b42318;background:#fdeceb}
.user-confirm-warn{font-weight:650}
.user-confirm-error:empty{display:none}
.user-confirm-error{border:1px solid #f4b8b3}
.user-confirm-error::before{content:"操作失败：";font-weight:650}

/* 广场卡片 ↔ 详情页共享元素过渡（frontend/src/datasetMorph.js）。
   名称宽度贴合文字，让卡片与详情页两处名称的宽高比一致，放大时不变形。 */
.ds-card h3,.hero-ds h1{width:fit-content;max-width:100%}
.ds-card.is-opening{border-color:#9cc2ff;box-shadow:0 0 0 3px rgba(21,120,249,.12),0 10px 26px rgba(23,59,120,.07)}
html.df-morph::view-transition-group(*){animation-duration:.42s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
/* 简介两处宽度差异大，不缩放截图，只随容器展开/收起并交叉淡化 */
html.df-morph::view-transition-old(ds-summary),
html.df-morph::view-transition-new(ds-summary){width:100%;height:100%;object-fit:none;object-position:left top;overflow:hidden}
html.df-morph::view-transition-old(df-view){animation:.16s ease both df-morph-out}
html.df-morph::view-transition-new(df-view){animation:.32s cubic-bezier(.2,.8,.2,1) .1s both df-morph-in}
@keyframes df-morph-out{to{opacity:0}}
@keyframes df-morph-in{from{opacity:0;transform:translateY(8px)}}
/* 等待详情/列表数据时的加载状态（超过 300ms 才出现）：起点顶部流动细进度条，其余卡片置灰 */
.ds-card.is-waiting,.hero-ds.is-waiting{position:relative;overflow:hidden}
.ds-card.is-waiting::before,.hero-ds.is-waiting::before{content:"";position:absolute;top:0;left:0;width:40%;height:3px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,rgba(21,120,249,0),#1578f9 50%,rgba(21,120,249,0));animation:df-wait-bar 1.1s cubic-bezier(.45,0,.55,1) infinite}
.grid-cards.is-waiting>.ds-card:not(.is-waiting){opacity:.55;pointer-events:none;transition:opacity .2s}
@keyframes df-wait-bar{from{transform:translateX(-100%)}to{transform:translateX(250%)}}

/* 数据集详情子模块切换（frontend/src/detailTabMotion.js）：下划线滑动 + 加载慢时的占位骨架。
   下划线就绪前仍用按钮自带的下边框，避免首屏没有高亮。 */
.ds-detail-tabs{position:relative}
.ds-detail-tabs.has-ink button.active{border-bottom-color:transparent}
.ds-detail-tabs .tab-ink{position:absolute;left:0;bottom:0;height:2px;border-radius:2px;background:#1476f6;pointer-events:none;transition:transform .28s cubic-bezier(.2,.8,.2,1),width .28s cubic-bezier(.2,.8,.2,1)}
.sk-panel{display:flex;flex-direction:column;gap:14px}
.sk-row{display:flex;align-items:center;gap:18px}
.sk-split{display:grid;grid-template-columns:1.6fr 1fr;gap:28px}
.sk-block{display:flex;flex-direction:column;gap:12px}
.sk-line{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,#eef1f6 25%,#f7f9fc 45%,#eef1f6 65%) 0 0/300% 100%;animation:df-sk-shimmer 1.3s ease-in-out infinite}
.sk-line.sk-title{height:15px;margin-top:4px}
.sk-line.sk-input{height:34px;border-radius:9px}
.sk-toolbar{margin-bottom:6px}
@keyframes df-sk-shimmer{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion: reduce){
  .ds-detail-tabs .tab-ink{transition:none}
  .sk-line{animation:none}
}

/* 我的下载：行尾操作（查看详情 / 再次下载） */
.downloads-table th:last-child,.downloads-table td:last-child{width:1%;white-space:nowrap}
.downloads-table td:last-child{text-align:right}
.downloads-table .download-ops{justify-content:flex-end}
.download-ops{display:flex;align-items:center;gap:16px;white-space:nowrap}
.download-ops .link{padding:0}
/* 下载历史弹框：三列表格不需要列表页的 840px 最小宽度 */
.download-history-table{min-width:0}

/* 来源池页：表格 + 筛选 + 批量操作 */
.pool-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:16px}
.pool-metric{text-align:left;cursor:pointer;font:inherit;color:inherit;transition:.15s}
.pool-metric:hover{border-color:#bcd3f7}
.pool-metric.on{border-color:#1477f8;box-shadow:0 0 0 2px rgba(20,119,248,.12)}
.pool-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.pool-toolbar select{height:38px;padding:0 10px;border:1px solid #dfe6f0;border-radius:10px;background:#fff;color:#3d4756;font-size:12.5px;font-family:inherit}
.pool-search{display:flex;align-items:center;gap:8px;flex:1;min-width:220px;max-width:420px;height:38px;padding:0 12px;border:1px solid #dfe6f0;border-radius:10px;background:#fff;color:#8793a6}
.pool-search:focus-within{border-color:#2784ff;box-shadow:0 0 0 3px #e8f2ff}
.pool-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:13px;color:#2f4059;font-family:inherit}
.pool-batch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;margin-bottom:12px;border:1px solid #cfe0fb;border-radius:12px;background:#f2f7ff;font-size:12.5px;color:#2f4a70;position:sticky;top:84px;z-index:3}
.pool-batch:empty{display:none}
.pool-batch input{height:32px;width:160px;padding:0 10px;border:1px solid #d6e2f3;border-radius:8px;background:#fff;font-size:12.5px;font-family:inherit}
.pool-batch-sep{width:1px;height:20px;background:#cfdcf0}
.pool-table{min-width:880px}
.pool-table td{padding:10px 14px;vertical-align:middle}
.pool-table th{padding:10px 14px}
.pool-table .num{text-align:right}
.pool-table tr.is-selected{background:#f4f8ff}
.pool-check{width:34px}
.pool-check input{width:15px;height:15px;accent-color:#1477f8}
.pool-title{max-width:420px}
.pool-title b{display:block;color:#26344b;font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pool-ops{white-space:nowrap;text-align:right}
.pool-ops .link{font-size:12px;padding:0 4px}
.pool-perms{display:inline-flex;gap:4px}
.pool-perm{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;font-size:10.5px;font-weight:700}
.pool-perm.ok{background:#e6f6ee;color:#0b7a4b}
.pool-perm.no{background:#fdecec;color:#c0392b;text-decoration:line-through}
.pool-perm.unknown{background:#f1f3f7;color:#8793a6}
.pool-edit .field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.pool-edit .field label{font-size:12px;color:#5b6779;font-weight:600}
.pool-edit input{border:1px solid #e2e8f2;border-radius:9px;padding:9px 11px;font-size:13px;background:#fbfcfe;font-family:inherit}
.pool-perm-edit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.pool-perm-toggle{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#5b6779;font-weight:600}
.pool-perm-toggle select{height:36px;padding:0 9px;border:1px solid #dfe6f0;border-radius:9px;background:#fff;font-family:inherit}

/* 来源池 · 领域卡片墙与详情 */
.pool-metric-domains{position:relative}
.pool-metric-go{position:absolute;right:14px;bottom:15px;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;color:#8b96a7;background:#f2f5fa;transition:.15s}
.pool-metric-domains:hover .pool-metric-go{color:#1477f8;background:#eaf2ff;transform:translateX(2px)}
.pool-metric-domains.on .pool-metric-go{color:#fff;background:#1477f8}
#pool-domains[hidden],#pool-list[hidden]{display:none}
.pool-domain-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:4px 0 12px}
.pool-domain-head h2{display:inline;margin:0 10px 0 0;font-size:16px}
.pool-domain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media(max-width:1100px){.pool-domain-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pool-domain-grid{grid-template-columns:1fr}}
.pool-domain-card{--tone:#0b9a5c;position:relative;display:flex;flex-direction:column;gap:12px;padding:16px 18px 14px;border:1px solid #e7ebf2;border-radius:14px;background:linear-gradient(160deg,#fbfdff,#fff);cursor:pointer;outline:0;transition:border-color .15s,box-shadow .15s,transform .15s}
.pool-domain-card:hover{border-color:#bcd3f7;box-shadow:0 6px 18px rgba(20,60,120,.07);transform:translateY(-1px)}
.pool-domain-card:focus-visible{border-color:#1477f8;box-shadow:0 0 0 3px rgba(20,119,248,.16)}
.pool-domain-card.health-warn{--tone:#d98a00}
.pool-domain-card.health-danger{--tone:#d0362a}
.pool-domain-card.health-idle{--tone:#9aa5b3}
.pool-domain-card.is-unlabeled{border-style:dashed;border-color:#d5dbe5;background:#fbfcfe}
.pdc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pdc-name{min-width:0}
.pdc-name small{display:block;font-size:11.5px;color:#8b96a7;margin-bottom:2px}
.pdc-name b{display:block;font-size:16px;color:#141d2d;letter-spacing:-.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdc-health{flex:none;display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#5b6779;white-space:nowrap}
.pdc-health i{width:8px;height:8px;border-radius:50%;background:var(--tone);box-shadow:0 0 0 3px color-mix(in srgb,var(--tone) 18%,transparent)}
.pdc-nums{display:flex;gap:18px;font-size:12px;color:#8b96a7}
.pdc-nums b{font-size:22px;color:#141d2d;letter-spacing:-.6px;margin-right:2px}
.pdc-states{display:flex;flex-wrap:wrap;gap:5px;min-height:20px}
.pdc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid #f0f3f8}
.pdc-tip{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:12px;line-height:1.5;color:#8a5a00}
.pdc-tip svg{flex:none;margin-top:2px}
.pdc-tip.ok{color:#0b7a4b}
.health-danger .pdc-tip{color:#b42318}
.health-idle .pdc-tip,.is-unlabeled .pdc-tip{color:#6b7686}
.pdc-more{flex:none;display:inline-flex;align-items:center;gap:2px;font-size:12px;color:#1477f8;font-weight:600;opacity:.75;transition:.15s}
.pool-domain-card:hover .pdc-more{opacity:1}
.pd-bar{display:flex;gap:2px;height:8px;border-radius:99px;overflow:hidden;background:#eef2f7}
.pd-seg{display:block;min-width:4px}
.pd-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:-4px;font-size:11.5px;color:#6b7686}
.pd-legend span{display:inline-flex;align-items:center;gap:5px}
.pd-legend b{color:#26344b;font-weight:650}
.pd-dot{width:8px;height:8px;border-radius:3px}
.p-train{background:#1477f8}
.p-validation{background:#12a38a}
.p-test{background:#7c5cff}
.p-benchmark_dev{background:#e8a33a}
.p-benchmark_test{background:#e2683c}
.p-none{background:#d5dbe5}

.pool-domain-modal.modal{max-width:880px}
.pool-domain-detail{display:flex;flex-direction:column;gap:16px;padding-top:6px}
.pd-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pd-top-tip{font-size:12.5px;color:#5b6779}
.pd-top-actions{display:flex;gap:8px;margin-left:auto}
.pd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pd-stat{padding:12px 14px;border:1px solid #e7ebf2;border-radius:12px;background:#fbfcfe}
.pd-stat span{display:block;font-size:11.5px;color:#8b96a7}
.pd-stat b{display:block;font-size:20px;letter-spacing:-.5px;margin-top:3px;color:#141d2d}
.pd-stat small{display:block;font-size:11px;color:#8b96a7;margin-top:1px}
.pd-section h3{margin:0 0 10px;font-size:13.5px;color:#26344b}
.pd-section h3 .tiny{font-weight:400;margin-left:4px}
.pd-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pd-cols .pd-section{min-width:0;padding:14px;border:1px solid #edf0f5;border-radius:12px}
.pd-cols .pd-legend{margin-top:8px}
.pd-note{margin:10px 0 0;font-size:12px;line-height:1.6;color:#6b7686}
.pd-note.warn{color:#8a5a00}
.pd-sub{margin:12px 0 6px;font-size:11.5px;color:#8b96a7}
.pd-chips{display:flex;flex-wrap:wrap;gap:6px}
.pd-chip{padding:3px 9px;border-radius:99px;background:#f2f5fa;color:#3d4756;font-size:11.5px}
.pd-chip b{font-weight:600;color:#8b96a7;margin-left:2px}
.pd-chip.muted{color:#8b96a7}
.pd-types{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #edf0f5;border-radius:12px;overflow:hidden}
.pd-type{display:grid;grid-template-columns:22px 150px 90px minmax(0,1fr);align-items:center;gap:10px;padding:9px 14px;font-size:12.5px}
.pd-type + .pd-type{border-top:1px solid #f0f3f8}
.pd-type-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:6px}
.pd-type.ok .pd-type-icon{background:#e7f6ee;color:#0b7a4b}
.pd-type.partial .pd-type-icon{background:#fff4e2;color:#9a5b00}
.pd-type.none .pd-type-icon{background:#f1f3f7;color:#8793a6}
.pd-type-name b{color:#26344b;margin-right:6px}
.pd-type-name small{color:#8b96a7;font-size:11.5px}
.pd-type-count{color:#5b6779}
.pd-type-count b{color:#141d2d}
.pd-type-note{color:#6b7686;font-size:12px}
.pd-type.none .pd-type-note{color:#9aa5b3}
.pd-perms{display:grid;gap:7px}
.pd-perm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:#3d4756}
.pd-perm-vals{display:flex;gap:6px}
.pd-perm-vals em{font-style:normal;font-size:11.5px;padding:2px 8px;border-radius:6px}
.pd-perm-vals .ok{background:#e6f6ee;color:#0b7a4b}
.pd-perm-vals .no{background:#fdecec;color:#c0392b}
.pd-perm-vals .unknown{background:#f1f3f7;color:#8793a6}
.pd-issues{display:grid;gap:6px}
.pd-issue{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;background:#fffaf0;font-size:12.5px;color:#5b4a2a}
.pd-issue .link{margin-left:auto;font-size:12px}
.pd-sources,.pd-requests{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #edf0f5;border-radius:12px;overflow:hidden}
.pd-source,.pd-request{display:flex;align-items:center;gap:10px;padding:9px 14px;font-size:12.5px}
.pd-source + .pd-source,.pd-request + .pd-request{border-top:1px solid #f0f3f8}
.pd-source b,.pd-request b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#26344b;font-weight:600}
.pd-source-docs{width:52px;text-align:right;color:#6b7686}
.pd-more{margin-top:8px;font-size:12px}
.pd-dict summary{display:flex;align-items:baseline;gap:10px;cursor:pointer;list-style:none}
.pd-dict summary::-webkit-details-marker{display:none}
.pd-dict summary h3{margin:0}
.pd-dict summary h3::after{content:"›";display:inline-block;margin-left:6px;color:#8b96a7;transition:transform .15s}
.pd-dict[open] summary h3::after{transform:rotate(90deg)}
@media(max-width:760px){.pd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-cols{grid-template-columns:1fr}.pd-type{grid-template-columns:22px 1fr auto}.pd-type-note{grid-column:2/-1}.pd-top-actions{margin-left:0}}

/* 语料生成首页 */
.factory-launcher{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.factory-launch{position:relative;display:flex;align-items:center;gap:12px;padding:18px 16px;border:1px solid #e4eaf3;border-radius:14px;background:linear-gradient(160deg,#fbfdff,#fff);text-align:left;transition:.15s}
.factory-launch:hover{border-color:#a9c8f7;box-shadow:0 8px 20px rgba(40,90,170,.08);transform:translateY(-1px)}
.factory-launch .factory-type-icon{width:40px;height:40px;border-radius:11px}
.factory-launch-text{display:flex;flex-direction:column;gap:2px}
.factory-launch-text b{font-size:15px;color:#243044}
.factory-launch-text small{font-size:12px;color:#8793a6}
.factory-overview-card{margin-top:22px;padding:16px 18px;border:1px solid #e7ebf2;border-radius:14px;background:#fbfcfe}
.factory-overview-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.factory-overview-head h3{margin:0;font-size:15px}
.factory-domain-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-items:center}
.factory-domain-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:#eef4ff;color:#47617f;font-size:12px}
.factory-domain-chip b{color:#1a5fc4;font-weight:650}
@media(max-width:1100px){.factory-launcher{grid-template-columns:repeat(3,minmax(0,1fr))}.pool-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 新建语料：全屏两栏 */
.overlay:has(>.factory-create-modal){padding:24px}
.modal.factory-create-modal{width:min(1360px,calc(100vw - 48px));max-width:none;height:calc(100dvh - 48px);max-height:none;border-radius:18px}
.factory-create-modal .fc-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-top:6px}
.fc-types{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:10px}
.fc-types .factory-type{padding:14px 14px;gap:4px}
.fc-types .factory-type-icon{width:34px;height:34px;border-radius:10px}
.fc-types .factory-type b{font-size:14px}
.fc-types .factory-type small{font-size:11.5px}
.fc-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;flex:1;min-height:0;margin-top:12px}
.fc-sources{display:flex;flex-direction:column;min-height:0;border:1px solid #e7ebf2;border-radius:14px;background:#fbfcfe;overflow:hidden}
.fc-sources-head{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #eef2f8;background:#fff;flex-wrap:wrap}
.fc-mode{display:inline-flex;padding:3px;border-radius:10px;background:#eef2f8}
.fc-mode button{border:0;background:transparent;padding:6px 14px;border-radius:8px;font-size:12.5px;font-weight:650;color:#5b6779}
.fc-mode button.on{background:#fff;color:#0d63d8;box-shadow:0 1px 3px rgba(30,60,110,.12)}
.fc-search{max-width:none;height:34px}
.fc-source-body{flex:1;min-height:0;overflow:auto;padding:12px}
.fc-unavailable{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 14px;border-top:1px solid #eef2f8;background:#fff;font-size:12px;color:#7c8798}
.fc-unavailable:empty{display:none}
.fc-unavailable span{display:flex;align-items:center;gap:6px;flex:1;min-width:240px}
.fc-unavailable .link{font-size:12px;padding:0}
.fc-domains{display:grid;gap:8px}
.fc-domain{border:1px solid #e4eaf3;border-radius:12px;background:#fff;overflow:hidden}
.fc-domain.has-picked{border-color:#bcd3f7}
.fc-domain-head{display:flex;align-items:center;gap:10px;padding:12px 14px}
.fc-domain-head input{width:17px;height:17px;accent-color:#1477f8;flex:none}
.fc-domain-name{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;background:none;padding:0;text-align:left;min-width:0}
.fc-domain-name b{font-size:14px;color:#243044}
.fc-domain-name small{font-size:11.5px;color:#8793a6}
.fc-domain-count{font-size:12px;font-weight:650;color:#0d63d8}
.fc-domain-caret{border:0;background:none;color:#8793a6;padding:4px;border-radius:6px;transition:transform .15s}
.fc-domain.open .fc-domain-caret{transform:rotate(90deg)}
.fc-domain-items{display:grid;gap:2px;padding:4px 10px 10px 38px;border-top:1px solid #f0f3f8}
.fc-papers{display:grid;gap:2px}
.fc-paper{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:12.5px;color:#3d4756}
.fc-paper:hover{background:#f2f7ff}
.fc-paper input{width:15px;height:15px;accent-color:#1477f8;flex:none}
.fc-paper-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-paper-domain{flex:none;padding:2px 8px;border-radius:999px;background:#eef2f8;color:#5b6779;font-size:11px}
.fc-paper-reason{flex:none;color:#b06a13;font-size:11px}
.fc-paper-meta{flex:none;color:#9aa5b3;font-size:11px}
.fc-paper.is-disabled{opacity:.55;cursor:not-allowed}
.fc-more{padding:10px}
.fc-side{display:flex;flex-direction:column;gap:12px;min-width:0;min-height:0;overflow:auto;padding-right:2px}
.fc-card{border:1px solid #e7ebf2;border-radius:14px;background:#fff;padding:14px}
.fc-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.fc-card-head h3{margin:0;font-size:13.5px}
.fc-side .field{display:flex;flex-direction:column;gap:6px;min-width:0;margin-top:10px}
.fc-side .field:first-child{margin-top:0}
.fc-side .field label{font-size:12px;color:#5b6779;font-weight:600}
.fc-side .field input:not([type=checkbox]),.fc-side .field select{width:100%;border:1px solid #e2e8f2;border-radius:9px;padding:8px 10px;font-size:13px;background:#fbfcfe;font-family:inherit}
.fc-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fc-picked-empty{padding:16px 8px;text-align:center;color:#9aa5b3;font-size:12px;border:1px dashed #dfe6f0;border-radius:10px}
.fc-picked-list{display:grid;gap:4px}
.fc-picked-row{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;background:#f5f8fd;font-size:12.5px;color:#3d4756}
.fc-picked-row span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fc-picked-row b{color:#0d63d8;font-weight:650}
.fc-x{display:grid;place-items:center;width:20px;height:20px;border:0;border-radius:6px;background:transparent;color:#8793a6}
.fc-x:hover{background:#e6edf8;color:#c0392b}
.fc-partitions{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.fc-warn{margin-top:8px;padding:7px 10px;border-radius:8px;background:#fff8ea;color:#9a6f2f;font-size:11.5px;line-height:1.5}
.fc-side .factory-advanced{margin-top:0;padding-top:14px}
/* 展开动画会裁剪内容，给原生焦点轮廓留出两侧空间，同时保持字段和标题对齐。 */
.factory-advanced > .details-motion-body{margin-inline:-4px}
.fc-advanced-inner{padding:12px 4px 4px}
.fc-side .factory-rag-eval{margin:0}
.fc-side [hidden]{display:none !important}
@media(max-width:980px){.fc-layout{grid-template-columns:1fr;overflow:auto}.fc-sources{min-height:420px}.fc-types{grid-template-columns:repeat(3,minmax(0,1fr))}}
.fc-side .factory-query-types label{padding:5px 9px;font-size:11.5px}

/* 未完成需求单列表 */
.req-heading{margin-top:28px}
.req-heading h2{display:flex;align-items:center;gap:8px}
.req-count{display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 7px;border-radius:999px;background:#eef2f8;color:#5b6779;font-size:11.5px;font-weight:700;letter-spacing:0}
.req-list{border:1px solid #e7ebf2;border-radius:14px;background:#fff;overflow:hidden}
.req-row{display:grid;grid-template-columns:auto minmax(0,1fr) 150px 88px auto;align-items:center;gap:16px;padding:11px 16px;border-bottom:1px solid #eef2f8;transition:background .12s}
.req-row:last-child{border-bottom:0}
.req-row:hover{background:#fafcff}
.req-icon-type{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e9f1ff;color:#1266d6;flex:none}
.req-meta b{color:#5b6779;font-weight:650}
.req-flag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:#fff4e0;color:#9a5b00;font-size:11.5px;font-weight:650;letter-spacing:0}
.req-main{min-width:0}
.req-name{font-size:13.5px;font-weight:650;color:#243044;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.req-meta{margin-top:2px;font-size:11.5px;color:#8793a6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.req-state{display:flex;align-items:center;gap:7px;font-size:12px;color:#4b5b70;white-space:nowrap}
.req-dot{width:7px;height:7px;border-radius:50%;flex:none;background:#b5bfcc}
.req-dot.blue{background:#1477f8;box-shadow:0 0 0 3px #e3eeff}
.req-dot.green{background:#21ad78;box-shadow:0 0 0 3px #e2f6ec}
.req-dot.orange{background:#f08c1a;box-shadow:0 0 0 3px #fff0dc}
.req-time{font-size:12px;color:#8793a6;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.req-ops{display:flex;align-items:center;gap:4px;justify-content:flex-end;min-width:176px}
.req-ops .btn.small{margin-right:4px}
.req-icon{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:#8793a6;transition:.12s}
.req-icon:hover{background:#eef3fb;color:#1266d6}
.req-icon.danger:hover{background:#fdecec;color:#c0392b}
.req-more{display:block;margin:10px auto 0;font-size:12.5px}
@media(max-width:1000px){.req-row{grid-template-columns:auto minmax(0,1fr) auto;row-gap:6px}.req-state,.req-time{grid-column:2}.req-ops{grid-column:3;grid-row:1 / span 3}}

/* 上传数据集 / 新建知识库：左侧数据包与解析结果，右侧元信息 */
.modal.ds-upload-modal{width:min(1120px,calc(100vw - 48px));max-width:none}
.ds-upload-modal .dsu-body{padding-top:6px}
.dsu-resume{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.dsu-resume span{flex:1}
.dsu-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.dsu-left{display:flex;flex-direction:column;gap:12px;min-width:0}
.dsu-drop{display:flex !important;flex-direction:column !important;align-items:center;gap:6px;padding:34px 20px;border-radius:14px}
.dsu-drop b{font-size:14px;color:#243044}
.dsu-drop span{font-size:12px;color:#7c8798}
.dsu-drop.compact{padding:14px 16px;flex-direction:row !important;justify-content:center;gap:10px}
.dsu-drop.compact > svg{margin:0;width:18px;height:18px}
.dsu-drop.compact b{font-size:12.5px;font-weight:600}
.dsu-drop.compact span{display:none}
.dsu-drop.compact b::after{content:"（更换文件）";color:#7c8798;font-weight:400}
.dsu-file{border:1px solid #e7ebf2;border-radius:12px;padding:12px 14px;background:#fff}
.dsu-file-head{display:flex;align-items:center;gap:8px;font-size:13px}
.dsu-file-head b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#243044}
.dsu-file-state{padding:2px 9px;border-radius:999px;font-size:11px;font-weight:650;background:#eef2f8;color:#5b6779}
.dsu-file-state.uploading,.dsu-file-state.parsing{background:#e8f1ff;color:#1266d6}
.dsu-file-state.ready{background:#e6f6ee;color:#0b7a4b}
.dsu-file-state.failed{background:#fdecec;color:#c0392b}
.dsu-bar{height:6px;margin:10px 0 6px;border-radius:99px;background:#eef2f8;overflow:hidden}
.dsu-bar span{display:block;height:100%;background:linear-gradient(90deg,#4bb0ff,#1477f8);transition:width .2s}
.dsu-result:empty{display:none}
.dsu-result{display:flex;flex-direction:column;gap:10px}
.dsu-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dsu-metrics>div{padding:10px 12px;border:1px solid #e7ebf2;border-radius:10px;background:#fbfcfe}
.dsu-metrics span{display:block;font-size:11px;color:#8793a6}
.dsu-metrics b{display:block;margin-top:2px;font-size:16px;color:#243044}
.dsu-flag{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:10px;background:#f5f7fa;color:#6b7890;font-size:12px}
.dsu-flag.ok{background:#e6f6ee;color:#0b7a4b}
.dsu-sub{font-size:12px;font-weight:650;color:#5b6779;margin-top:2px}
.dsu-sub em{font-style:normal;font-weight:400;color:#9aa5b3;margin-left:4px}
.dsu-fields{display:flex;flex-wrap:wrap;gap:6px}
.dsu-field-tag{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:8px;background:#eef2f8;color:#3d4756;font-size:12px;font-family:ui-monospace,Menlo,Consolas,monospace}
.dsu-field-tag.req{background:#e8f1ff;color:#0d63d8}
.dsu-field-tag em{font-style:normal;font-size:10.5px;color:#8793a6;font-family:inherit}
.dsu-samples{display:grid;gap:8px;max-height:260px;overflow:auto}
.dsu-sample{border:1px solid #eef2f8;border-radius:10px;padding:8px 10px;background:#fbfcfe}
.dsu-sample-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.5}
.dsu-sample-row span{color:#8793a6;font-family:ui-monospace,Menlo,Consolas,monospace;overflow:hidden;text-overflow:ellipsis}
.dsu-sample-row p{margin:0;color:#3d4756;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.dsu-right{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid #e7ebf2;border-radius:14px;background:#fbfcfe;min-width:0}
.dsu-field{display:flex;flex-direction:column;gap:6px}
.dsu-field label{font-size:12px;color:#5b6779;font-weight:650}
.dsu-field label em{font-style:normal;font-weight:400;color:#9aa5b3;margin-left:4px}
.dsu-field input,.dsu-field select,.dsu-field textarea{width:100%;border:1px solid #e2e8f2;border-radius:9px;padding:8px 10px;font-size:13px;background:#fff;font-family:inherit}
.dsu-field textarea{resize:vertical}
.dsu-chips{display:flex;flex-wrap:wrap;gap:6px}
.dsu-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border:1px solid #dfe6f0;border-radius:999px;background:#fff;color:#4b5b70;font-size:12.5px;transition:.12s}
.dsu-chip:hover{border-color:#a9c8f7}
.dsu-chip.on{border-color:#1477f8;background:#eef5ff;color:#0d63d8;font-weight:650}
.dsu-hint{font-size:11.5px;color:#8793a6;line-height:1.5}
.dsu-hint:empty{display:none}
.dsu-hint.ok{color:#0b7a4b}
.dsu-hint.warn{color:#b06a13}
.dsu-more summary{font-size:12px;font-weight:650;color:#5b6779}
.dsu-more-inner{padding-top:10px}
.dsu-more{display:block}
.dsu-more .dsu-field{margin-top:10px}
.dsu-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dsu-two .dsu-field{margin-top:0}
@media(max-width:900px){.dsu-layout{grid-template-columns:1fr}.dsu-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dsu-resume[hidden],.dsu-file[hidden]{display:none}

/* 可动画的 <details>（见 detailsMotion.js）：自绘旋转箭头；动画层不带任何边距 */
.details-motion>summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;user-select:none}
.details-motion>summary::-webkit-details-marker{display:none}
.details-motion>summary:hover{color:#1266d6}
.details-motion>summary svg{flex:none;transition:transform .22s cubic-bezier(.3,.7,.2,1)}
.details-motion[open]:not(.closing)>summary svg{transform:rotate(90deg)}
.details-motion-body{overflow:hidden;padding:0;margin:0}
.fc-side .fc-two{margin-top:10px}.fc-side .fc-two>.field{margin-top:0}

/* ---------------- 人工审核：任务页入口卡片 ---------------- */
.rv-entry{margin-bottom:16px;padding:18px 20px}
.rv-entry.is-setup{border-color:#f5e5c6}
.rv-entry.is-compact{padding:14px 18px}
.rv-entry-title{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}
.rv-entry-title h3{margin:0;font-size:14px}
.rv-entry-head{display:flex;align-items:flex-start;gap:13px}
.rv-entry-head>div{flex:1;min-width:0}
.rv-entry-head h3{margin:1px 0 3px;font-size:15px}
.rv-entry-head p{margin:0;font-size:12.5px;line-height:1.6;color:#66758a}
.rv-entry-icon{display:inline-grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:#eef4ff;color:#1266d6}
.rv-entry-icon.orange{background:#fff4e2;color:#b26a00}
.rv-entry-icon.red{background:#ffeceb;color:#b42318}
.rv-entry-icon.green{background:#e7f7ee;color:#0b7a4b}
.rv-setup{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:16px;margin-top:16px}
.rv-setup-ctrl{display:flex;flex-direction:column;gap:9px;padding:14px;border:1px solid #e7ebf2;border-radius:11px;background:#fbfcfe}
.rv-setup-ctrl label{font-size:12px;font-weight:650;color:#3d4756}
.rv-setup-ctrl p{margin:0;line-height:1.55}
.rv-percent-input{display:flex;align-items:center;gap:6px}
.rv-percent-input input{width:110px;height:38px;padding:0 10px;border:1px solid #d6deea;border-radius:9px;font-size:20px;font-weight:700;color:#243044;background:#fff}
.rv-percent-input input:focus{outline:none;border-color:#1266d6;box-shadow:0 0 0 3px rgba(18,102,214,.12)}
.rv-percent-input span{font-size:16px;font-weight:650;color:#66758a}
.rv-chips{display:flex;flex-wrap:wrap;gap:6px}
.rv-chip{height:26px;padding:0 10px;border:1px solid #dfe5ee;border-radius:13px;background:#fff;color:#4a5668;font-size:12px;cursor:pointer}
.rv-chip:hover:not(:disabled){border-color:#1266d6;color:#1266d6}
.rv-chip.on{background:#1266d6;border-color:#1266d6;color:#fff}
.rv-chip:disabled{opacity:.5;cursor:not-allowed}
.rv-estimate{padding:14px 16px;border-radius:11px;background:#f7f9fc;transition:opacity .15s}
.rv-estimate.is-loading{opacity:.55}
.rv-estimate-main{display:flex;align-items:baseline;gap:7px;color:#66758a;font-size:13px}
.rv-estimate-num{font-size:30px;line-height:1.1;font-weight:750;color:#243044}
.rv-estimate-num.warn{color:#b26a00}
.rv-estimate-num.danger{color:#b42318}
.rv-estimate-notes{margin:8px 0 0;padding-left:17px;font-size:12px;line-height:1.75;color:#66758a}
.rv-alert{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 12px;border-radius:9px;font-size:12px}
.rv-alert>div{flex:1;min-width:0}
.rv-alert b{display:block;margin-bottom:2px}
.rv-alert p{margin:0;line-height:1.55}
.rv-alert.warn{background:#fffaf1;border:1px solid #f5e5c6;color:#9a5b00}
.rv-alert.danger{background:#fff6f5;border:1px solid #f5d8d5;color:#b42318}
.rv-alert .btn{flex:none;align-self:center}
.rv-entry-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px}
.rv-entry-progress{margin-top:14px}
.rv-bar{display:flex;height:8px;border-radius:5px;background:#edf1f7;overflow:hidden}
.rv-bar span{height:100%;transition:width .25s ease}
.rv-bar .ok{background:#12a150}
.rv-bar .fix{background:#f0a020}
.rv-bar .bad{background:#e5484d}
.rv-entry-stats{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:9px;font-size:12px;color:#66758a}
.rv-entry-stats b{color:#243044}
.rv-entry-stats .g b{color:#0b7a4b}
.rv-entry-stats .o b{color:#9a5b00}
.rv-entry-stats .r,.rv-entry-stats .r b{color:#b42318}
.rv-history-title{margin:16px 0 6px;font-size:12px;font-weight:650;color:#8793a6}
.rv-history{display:grid;gap:4px}
.rv-history-row{display:grid;grid-template-columns:70px 1fr 1fr auto 130px;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#f7f9fc;color:#4a5668;font-size:12px;text-decoration:none}
.rv-history-row:hover{background:#eef4ff}
.rv-history-row .tiny{text-align:right}

/* ---------------- 人工审核：工作台 ---------------- */
.rv-head{align-items:flex-end}
.rv-head-actions{display:flex;gap:8px}
.rv-ghost{color:#8793a6}
.rv-progress{padding:14px 18px;margin-bottom:12px}
.rv-progress-top{display:flex;align-items:center;gap:16px}
.rv-progress-top .rv-bar{flex:1}
.rv-progress-count{display:flex;align-items:baseline;gap:5px;white-space:nowrap;color:#66758a;font-size:12px}
.rv-progress-count b{font-size:22px;color:#243044}
.rv-progress-rate{display:flex;align-items:baseline;gap:8px;white-space:nowrap;font-size:12px;color:#66758a}
.rv-progress-rate b{font-size:15px;color:#243044}
.rv-progress-rate span{color:#8793a6}
.rv-doomed{padding:1px 8px;border-radius:9px;background:#fff1f0;color:#b42318}
.rv-finished{display:flex;align-items:center;gap:14px;margin-bottom:12px;padding:14px 18px;border-radius:12px;border:1px solid}
.rv-finished>div{flex:1}
.rv-finished h3{margin:0 0 3px;font-size:15px}
.rv-finished p{margin:0;font-size:12.5px;line-height:1.6;color:#4a5668}
.rv-finished.green{background:#f2fbf6;border-color:#d6f0e0}
.rv-finished.red{background:#fff6f5;border-color:#f5d8d5}
.rv-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:12px;height:calc(100vh - 370px);min-height:440px}
.rv-list{display:flex;flex-direction:column;min-height:0;padding:10px}
.rv-filters{display:flex;gap:4px;padding-bottom:8px;border-bottom:1px solid #eef1f6}
.rv-filter{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;height:28px;border:0;border-radius:7px;background:transparent;color:#66758a;font-size:12px;cursor:pointer}
.rv-filter em{font-style:normal;font-size:11px;color:#9aa5b5}
.rv-filter:hover{background:#f3f6fa}
.rv-filter.on{background:#eef4ff;color:#1266d6;font-weight:650}
.rv-filter.on em{color:#1266d6}
.rv-list-items{flex:1;overflow:auto;padding-top:6px;display:flex;flex-direction:column;gap:2px}
.rv-list-item{display:flex;align-items:flex-start;gap:7px;width:100%;padding:8px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;cursor:pointer;font:inherit}
.rv-list-item:hover{background:#f6f8fb}
.rv-list-item.on{background:#eef4ff;border-color:#cfe0fb}
.rv-list-item.is-accept .rv-list-text{color:#8793a6}
.rv-dot{flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;border:1.5px solid #c3ccd9;background:#fff}
.rv-dot.green{background:#12a150;border-color:#12a150}
.rv-dot.orange{background:#f0a020;border-color:#f0a020}
.rv-dot.red{background:#e5484d;border-color:#e5484d}
.rv-list-no{flex:none;width:30px;font-size:11px;font-weight:650;color:#8793a6;padding-top:1px}
.rv-list-text{flex:1;min-width:0;font-size:12px;line-height:1.5;color:#3d4756;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rv-risk{flex:none;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#fff4e2;color:#b26a00;font-size:11px;font-weight:800}
.rv-list-empty{padding:30px 10px;text-align:center;color:#8793a6;font-size:12.5px}
.rv-detail{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}
.rv-detail-head{display:flex;align-items:center;gap:8px;padding:12px 18px;border-bottom:1px solid #eef1f6}
.rv-detail-head>b{font-size:15px}
.rv-nav{margin-left:auto;display:flex;gap:4px}
.rv-nav .rv-next svg{transform:rotate(180deg)}
.rv-detail-scroll{flex:1;overflow:auto;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.rv-loading{display:grid;place-items:center;padding:60px 0}
.rv-block{border-radius:10px;border:1px solid #e7ebf2;background:#fff}
.rv-label{display:flex;align-items:center;gap:8px;padding:8px 12px 0;font-size:11.5px;font-weight:700;letter-spacing:.02em;color:#8793a6}
.rv-label span{font-weight:500;color:#9aa5b5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-text{padding:6px 12px 11px;font-size:13.5px;line-height:1.75;color:#243044;white-space:pre-wrap;overflow-wrap:anywhere}
.rv-block.q{border-color:#d7e6fb;background:#f6faff}
.rv-block.q .rv-label{color:#1266d6}
.rv-block.q .rv-text{font-size:14.5px;font-weight:600}
.rv-block.a .rv-label{color:#0b7a4b}
.rv-block.rej{border-color:#f5d8d5}
.rv-block.rej .rv-label{color:#b42318}
.rv-block.ev{background:#fffdf5;border-color:#f3e6bf}
.rv-block.ev .rv-label{color:#9a5b00}
.rv-block.ev .rv-text{font-size:12.5px;color:#4a5668}
.rv-context{border:1px dashed #dfe5ee;border-radius:10px;background:#fbfcfe}
.rv-context summary{display:flex;align-items:center;gap:6px;padding:9px 12px;font-size:12px;color:#66758a;cursor:pointer;list-style:none}
.rv-context summary::-webkit-details-marker{display:none}
.rv-context summary svg{transition:transform .2s}
.rv-context[open] summary svg{transform:rotate(90deg)}
.rv-context .rv-text{max-height:360px;overflow:auto;font-size:12.5px;color:#4a5668}
.rv-context mark{background:#ffe9a8;color:#243044;border-radius:2px;padding:0 1px}
.rv-signals{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.rv-signals-title{font-size:11px;color:#9aa5b5;margin-right:2px}
.rv-signal{display:inline-flex;gap:4px;padding:2px 8px;border-radius:10px;background:#f3f6fa;color:#66758a;font-size:11px}
.rv-signal b{color:#3d4756;font-weight:650}
.rv-signal.low{background:#fff4e2;color:#9a5b00}
.rv-signal.low b{color:#9a5b00}
.rv-decide-wrap{border-top:1px solid #eef1f6;padding:12px 18px;background:#fff}
.rv-decide{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px}
.rv-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:42px;border-radius:10px;border:1px solid #dfe5ee;background:#fff;font:inherit;font-size:13.5px;font-weight:650;cursor:pointer;transition:background .15s,border-color .15s}
.rv-btn kbd,.rv-issue kbd,.rv-issue-actions kbd,.rv-keys kbd{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:4px;border:1px solid currentColor;font:600 10.5px/1 ui-monospace,monospace;opacity:.6}
.rv-btn.ok{background:#12a150;border-color:#12a150;color:#fff}
.rv-btn.ok:hover:not(:disabled){background:#0b8a43}
.rv-btn.ok:disabled{opacity:.55;cursor:not-allowed}
.rv-btn.fix{color:#9a5b00}
.rv-btn.fix:hover{background:#fffaf1;border-color:#f0c77a}
.rv-btn.bad{color:#b42318}
.rv-btn.bad:hover{background:#fff6f5;border-color:#f1a8a3}
.rv-issue-panel{display:flex;flex-direction:column;gap:9px}
.rv-issue-title{font-size:13px;font-weight:650;color:#243044}
.rv-issue-title span{margin-left:8px;font-size:11.5px;font-weight:500;color:#8793a6}
.rv-issue-chips{display:flex;flex-wrap:wrap;gap:6px}
.rv-issue{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:1px solid #dfe5ee;border-radius:15px;background:#fff;color:#3d4756;font:inherit;font-size:12.5px;cursor:pointer}
.rv-issue:hover{border-color:#f0a020}
.rv-issue.on{background:#fff4e2;border-color:#f0a020;color:#9a5b00}
.rv-issue.critical.on{background:#ffeceb;border-color:#e5484d;color:#b42318}
.rv-issue-panel textarea{width:100%;padding:8px 10px;border:1px solid #dfe5ee;border-radius:9px;font:inherit;font-size:12.5px;line-height:1.55;resize:vertical}
.rv-issue-panel textarea:focus{outline:none;border-color:#1266d6}
.rv-issue-actions{display:flex;justify-content:flex-end;gap:8px}
.rv-decided{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12.5px}
.rv-decided-reason{color:#3d4756}
.rv-decided .tiny{margin-left:auto}
.rv-issue-tag{padding:2px 8px;border-radius:10px;background:#fff4e2;color:#9a5b00;font-size:11.5px}
.rv-keys{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;font-size:13px;color:#3d4756}
.rv-pending-list{display:grid;gap:2px;padding:8px}
.rv-pending-row{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:9px}
.rv-pending-row:hover{background:#f7f9fc}
.rv-pending-main{flex:1;min-width:0}
@media(max-width:900px){
  .rv-setup{grid-template-columns:1fr}
  .rv-body{grid-template-columns:1fr;height:auto}
  .rv-list{max-height:260px}
  .rv-history-row{grid-template-columns:70px 1fr auto}
  .rv-history-row>span:nth-child(3),.rv-history-row .tiny{display:none}
}

/* ===== 全局通知：右上角通知卡 + 顶栏通知中心 ===== */
.toast-stack{position:fixed;top:92px;right:30px;z-index:120;display:flex;flex-direction:column;gap:10px;width:360px;max-width:calc(100vw - 24px);pointer-events:none}
.toast-card{pointer-events:auto;display:flex;align-items:flex-start;gap:11px;background:#fff;border:1px solid #e7ebf2;border-radius:13px;box-shadow:0 14px 38px rgba(15,23,42,.14);padding:13px 13px 12px;animation:toast-in .18s ease-out}
.toast-card.leaving{animation:toast-out .16s ease-in forwards}
.toast-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none}
.toast-card.success .toast-ico{background:#e7f6ee;color:#0b7a4b}
.toast-card.warning .toast-ico{background:#fff4e2;color:#9a5b00}
.toast-card.error .toast-ico{background:#fdeceb;color:#b42318}
.toast-card.info .toast-ico{background:#eaf2ff;color:#1266d6}
.toast-body{flex:1;min-width:0;padding-top:1px}
.toast-body b{display:block;font-size:13px;font-weight:700;color:#141d2d;line-height:1.45;word-break:break-word}
.toast-body p{margin:3px 0 0;font-size:12px;color:#66738a;line-height:1.55;word-break:break-word}
.toast-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;font-size:11px;color:#98a2b3}
.toast-action{color:#0a70f9;font-weight:650;white-space:nowrap}
.toast-close{border:0;background:transparent;color:#a6b0c0;font-size:18px;line-height:1;padding:0 2px;margin-top:-2px}
.toast-close:hover{color:#56647b}
@keyframes toast-in{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:translateX(0)}}
@keyframes toast-out{to{opacity:0;transform:translateX(14px)}}
.notify-btn{position:relative}
.notify-count{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 5px;border-radius:9px;background:#e5484d;color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;border:2px solid #fff;line-height:1}
.notify-count[hidden]{display:none}
.notify-panel{position:fixed;top:84px;right:28px;width:380px;max-width:calc(100vw - 24px);max-height:80vh;overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid #e7ebf2;border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,.16);z-index:130;padding:0}
.notify-panel[hidden]{display:none}
.notify-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#fff;border-bottom:1px solid #eef1f6}
.notify-head b{font-size:13.5px;color:#141d2d}
.notify-head .btn.small{padding:5px 10px}
.notify-list{display:flex;flex-direction:column;min-height:0}
.notify-list.has-overflow{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c6d0df #f6f8fc}
.notify-list.has-overflow::-webkit-scrollbar{width:9px}
.notify-list.has-overflow::-webkit-scrollbar-track{background:#f6f8fc;border-left:1px solid #eef1f6}
.notify-list.has-overflow::-webkit-scrollbar-thumb{background:#c6d0df;border-radius:9px;border:2px solid #f6f8fc}
.notify-list.has-overflow::-webkit-scrollbar-thumb:hover{background:#aebacd}
.notify-foot{flex:none;padding:8px 15px;border-top:1px solid #eef1f6;background:#fbfcfe;color:#98a2b3;font-size:10.5px;text-align:center;letter-spacing:.2px}
.notify-item{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;border:0;border-bottom:1px solid #f2f5f9;background:#fff;padding:12px 15px;cursor:pointer}
.notify-item:hover{background:#f7f9fd}
.notify-item:last-child{border-bottom:0}
.notify-item.unread{background:#fbfdff}
.notify-ico{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:none;margin-top:1px}
.notify-ico.success{background:#e7f6ee;color:#0b7a4b}
.notify-ico.warning{background:#fff4e2;color:#9a5b00}
.notify-ico.error{background:#fdeceb;color:#b42318}
.notify-ico.info{background:#eaf2ff;color:#1266d6}
.notify-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.notify-copy b{font-size:12.5px;color:#141d2d;line-height:1.45;word-break:break-word}
.notify-msg{font-size:11.5px;color:#66738a;line-height:1.5;word-break:break-word}
.notify-time{font-size:10.5px;color:#98a2b3;margin-top:2px}
.notify-dot{width:7px;height:7px;border-radius:50%;background:#0a70f9;flex:none;margin-top:7px}
.notify-empty{padding:34px 16px;text-align:center;color:#8b96a7}
.notify-empty svg{color:#c2ccda}
.notify-empty p{margin:8px 0 0;font-size:12.5px}
@media(max-width:640px){
  .toast-stack{top:72px;left:12px;right:12px;width:auto}
  .notify-panel{top:68px;left:12px;right:12px;width:auto;max-height:70vh}
}
@media(prefers-reduced-motion:reduce){
  .toast-card,.toast-card.leaving{animation:none}
}
