/**
 * 商品资料库 · 样式（T30 建立，T45 增加详情分区与单品编辑）
 * ================================================
 * 命名统一前缀 t30-，全部用公共框架 workbench.css 的主题变量，
 * 不覆盖 .panel / .btn / .chip / .state 等公共类，只做本页布局与状态补充。
 * 需与 workbench.css 一起加载（顺序在后即可）。
 */

#t30Root { min-width: 0; max-width: 100%; padding: 8px; color: var(--text-1); }
/* T68: the H top bar already names a single-level page. Parent paths remain visible. */
html[data-ui="amber"]:not(.mw-app-mode):has(#page-products.is-active #t30Root) #navigation-breadcrumb[data-path-depth="1"]{display:none}
/* Final T68 preview: one compact stats row, two separate page blocks. */
html[data-ui="amber"] #t30Root[data-h15-final-layout]:not([data-t49]) #t30Stats{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:8px;margin:0 0 12px}
html[data-ui="amber"] #t30Root[data-h15-final-layout]:not([data-t49]) #t30Stats>.t30-card{display:flex;align-items:center;gap:6px;min-height:52px!important;height:auto!important;padding:8px 10px;box-sizing:border-box}
html[data-ui="amber"] #t30Root[data-h15-final-layout]:not([data-t49]) #t30Stats>.t30-card>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
html[data-ui="amber"] #t30Root[data-h15-final-layout]:not([data-t49]) #t30Stats>.t30-card>strong{flex:none;margin:0;font-size:clamp(16px,1.2vw,22px);line-height:1.3;white-space:nowrap}
html[data-ui="amber"] #t30Root[data-h15-final-layout]:not([data-t49]) #t30Stats>.t30-card>small,html[data-ui="amber"] #t30Root[data-h15-final-layout]:not([data-t49]) #t30Stats>.t30-card.is-selected::after{display:none}
html[data-ui="amber"] #t30Root[data-h15-final-layout] :is(.h15-search-workspace,.h15-products-workspace){container-type:inline-size;box-sizing:border-box;min-width:0;max-width:100%;border:1px solid var(--border);border-radius:10px;background:var(--bg-elev)}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-search-workspace{margin:0 0 16px;padding:10px 12px}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-products-workspace{margin:0 0 12px}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-search-row{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;min-width:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter{display:flex;flex:1 1 740px;flex-wrap:wrap;align-items:flex-end;min-width:0;max-width:100%;gap:8px;margin:0;padding:0;border:0;border-radius:0;background:transparent}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter>:is(label,.h12-field){flex:1 1 70px;min-width:70px;max-width:180px;margin-right:0!important}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter>label>span:not(.t80-range){display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter .t80-hot{transform:none!important}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter:has(>:nth-child(8):not([hidden])){flex-wrap:wrap;min-width:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter :is(input,select,.h12-trigger){width:100%!important;min-width:0;max-width:100%;box-sizing:border-box}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter>label:has(.t80-range){flex-basis:230px;min-width:min(100%,220px);max-width:280px}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter .t80-range{display:flex;gap:4px;min-width:0;max-width:100%;white-space:normal;overflow:visible}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter .t80-range>input{flex:1 1 0;width:0!important;min-width:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter>.t30-filter-actions{display:flex;flex:none;align-items:center;flex-wrap:nowrap;gap:8px;max-width:100%}
html[data-ui="amber"] #t30Root[data-h15-final-layout] [data-h30-inventory]{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0;margin:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] [data-h30-inventory]>span{max-width:170px;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-list-tools{display:flex;flex:0 1 auto;align-items:center;flex-wrap:wrap;gap:10px;min-width:0;max-width:100%;margin-left:auto}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .t63-main-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .t30-list-head[hidden]{display:none}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-table-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:7px 12px;color:var(--text-2);font-size:12px}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Status{margin:0;max-width:100%;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-products-workspace .t63-caption{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
html[data-ui="amber"] #t30Root[data-h15-final-layout] :is(.h12-layout-status,#t80HiddenNote){margin:6px 0 0;padding:0;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root[data-h15-final-layout] :is(.h12-layout-status,#t80HiddenNote):empty{display:none}
html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30List{margin:0;min-width:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .t63-scroll{border:0;border-top:1px solid var(--border);border-radius:0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .t30-pager{margin:0;padding:10px 12px;border-top:1px solid var(--border)}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-compact-note{position:relative;min-width:0;max-width:260px;color:var(--text-2);font-size:12px}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-compact-note>summary{cursor:pointer;border-radius:4px;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-note-body{position:absolute;right:0;top:calc(100% + 8px);z-index:35;box-sizing:border-box;width:320px;max-width:calc(100vw - 40px);padding:12px;background:var(--bg-elev);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 18px #0002;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-note-body>p{margin:4px 0}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-search-row:has(.h15-compact-note[data-important="1"]){flex-wrap:wrap}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-search-row:has(.h15-compact-note[data-important="1"]) #t30Filter{flex:1 1 100%;min-width:0;flex-wrap:wrap}
@container(max-width:900px){html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-search-row{flex-wrap:wrap}html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter{flex:1 1 100%;min-width:0;flex-wrap:wrap}html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-list-tools{flex-wrap:wrap;max-width:100%;margin-left:0}html[data-ui="amber"] #t30Root[data-h15-final-layout] #t30Filter>.t30-filter-actions{flex-wrap:wrap}}
@container(max-width:1100px){html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-note-body{position:static;width:320px;max-width:100%;margin-top:8px}}
html[data-ui="amber"] #t30Root[data-h15-final-layout] .h15-compact-note[data-important="1"] .h15-note-body{position:static;max-width:100%;margin-top:8px}
/* H11: fixed file/header and actions, scroll only the middle of the import window. */
html[data-ui="amber"] #h11Import.h11-import{width:min(1080px,94vw);max-width:94vw;height:min(850px,90vh);max-height:90vh;padding:0;overflow:hidden;background:var(--bg-elev);color:var(--text-1);border:1px solid var(--border);border-radius:var(--radius-lg,12px)}
html[data-ui="amber"] #h11Import[open]{display:flex;flex-direction:column}
html[data-ui="amber"] .h11-head,html[data-ui="amber"] .h11-foot{flex:none;padding:16px 20px;background:var(--bg-elev)}
html[data-ui="amber"] .h11-head{border-bottom:1px solid var(--border)}
html[data-ui="amber"] #h11Title{margin:0 0 6px}
html[data-ui="amber"] .h11-head p{margin:6px 0;overflow-wrap:anywhere}
html[data-ui="amber"] #h11FileName{display:block;overflow-wrap:anywhere;color:var(--text-2)}
html[data-ui="amber"] .h11-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px}
html[data-ui="amber"] .h11-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:12px}
html[data-ui="amber"] .h11-fields label{display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--text-2);font-size:13px}
html[data-ui="amber"] .h11-fields input,html[data-ui="amber"] .h11-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;background:var(--bg-elev);color:var(--text-1);font:inherit}
html[data-ui="amber"] .h11-foot{border-top:1px solid var(--border);display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
html[data-ui="amber"] .h11-foot>span{margin-right:auto}
html[data-ui="amber"] .h11-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}
html[data-ui="amber"] .h11-summary [aria-pressed="true"]{border-color:var(--accent);background:var(--bg-hover);color:var(--text-1)}
html[data-ui="amber"] .h11-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:8px}
html[data-ui="amber"] .h11-table{width:100%;border-collapse:collapse;font-size:13px}
html[data-ui="amber"] .h11-table th,html[data-ui="amber"] .h11-table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
html[data-ui="amber"] .h11-table th{white-space:nowrap;background:var(--bg-hover)}
html[data-ui="amber"] .h11-table .h11-number{text-align:right;font-variant-numeric:tabular-nums}
html[data-ui="amber"] .h11-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:13px}
html[data-ui="amber"] #h11Result{max-width:min(520px,90vw);padding:20px;background:var(--bg-elev);color:var(--text-1);border:1px solid var(--border)}
html[data-ui="amber"] #h11ResultMessage,html[data-ui="amber"] #h11Status{overflow-wrap:anywhere}
html[data-ui="amber"] #h11Import :focus-visible,html[data-ui="amber"] #h11Result :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#t30Root h1 { font-size: 26px; margin: 6px 0; }
#t30Root h2 { font-size: 18px; margin: 18px 0 10px; }
#t30Root code { font-family: var(--mono); }
#t30Root img { max-width: 100%; }
#t30Root button:disabled { opacity: .5; cursor: not-allowed; }
/* T63: 表格自身滚动，固定编码列；不改变整页布局草稿。 */
.t30-list-head { flex-wrap: wrap; gap: 12px; }
#t30List { min-width: 0; max-width: 100%; }
.t63-scroll { width: 100%; max-width: 100%; max-height: 70vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.t63-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; }
.t63-table th, .t63-table td { padding: 10px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; background: var(--bg-elev); }
.t63-table th { position: sticky; top: 0; z-index: 2; background: var(--bg-elev2); color: var(--text-2); user-select: none; }
.t63-table th[data-col] { cursor: grab; }
.t63-table td[data-field="code"] { min-width: 145px; }
.t63-table tbody tr:hover td { background: var(--bg-hover); }
.t63-note { display: block; color: var(--text-3); margin-top: 4px; }
.t63-sorters { display: inline-flex; margin-left: 8px; gap: 3px; }
.t63-sorters button { display: inline-flex; align-items: center; justify-content: center; gap: 1px; padding: 2px 6px; min-width: 32px; min-height: 32px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); cursor: pointer; border-radius: 5px; }
.t63-sort-arrow { opacity: .4; font-size: 17px; line-height: 1; }
.t63-sort-arrow.is-active { opacity: 1; color: var(--text-1); font-weight: 900; }
.t63-settings-actions { display: flex; gap: 12px; }
.t63-table .t63-dragging { opacity: .55; }
.t63-table .t63-drop-before { box-shadow: inset 4px 0 var(--text-1); }
.t63-table .t63-drop-after { box-shadow: inset -4px 0 var(--text-1); }
.t63-caption { text-align: left; font-size: 12px; color: var(--text-3); padding: 8px 14px; }
#t63ColumnChoices { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 4px 16px; margin-bottom: 18px; }
.t63-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.t63-choice input { width: 18px; height: 18px; }
.t63-scroll:focus-visible, .t63-sorters button:focus-visible, .t63-table th:focus-visible { outline: 2px solid var(--text-1); outline-offset: -2px; }
#t30Root .t30-danger { color: var(--danger); border-color: var(--danger); }
.t30-clear { max-width: min(560px, 94vw); }
.t30-clear label { display: block; margin: 16px 0 8px; }
.t30-clear input { width: 100%; box-sizing: border-box; }
.t30-clear .btn { min-height: 44px; }

.t30-heading { margin-bottom: 14px; }
.t30-heading p { margin: 4px 0; }
.t30-status { color: var(--text-2); overflow-wrap: anywhere; margin: 8px 0 14px; }

/* ---------- 统计卡片 ---------- */
.t30-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.t30-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); min-width: 0; }
.t30-card span { display: block; font-size: 12px; color: var(--text-2); }
.t30-card strong { display: block; margin-top: 6px; font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.t30-card small { display: block; margin-top: 6px; font-size: 11px; overflow-wrap: anywhere; }
.t30-card:has(.t69-metric){position:relative}
.t69-metric{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:inherit;background:transparent;cursor:pointer;color:inherit}
#t30Root .t30-card.is-selected{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
#t30Root .t30-card.is-selected::after{content:'✓';position:absolute;right:10px;top:8px;color:var(--accent);pointer-events:none;font-weight:700}
.t69-metric:hover{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.t69-metric:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.t69-group-toggle{margin-top:6px;white-space:normal}
.t30-dups { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.t30-dups summary { cursor: pointer; font-size: 12px; color: var(--text-2); }
.t30-dups ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.t30-dups li { display: flex; gap: 10px; align-items: baseline; font-size: 12px; flex-wrap: wrap; }

/* ---------- 筛选 ---------- */
.t30-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 16px; margin-bottom: 16px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; }
.t30-filter label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.t30-filter input, .t30-filter select { box-sizing: border-box; width: 100%; min-width: 0; }
.t30-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; grid-column: 1 / -1; }

/* ---------- 列表 ---------- */
.t30-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.t30-list { min-width: 0; }
.t30-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t30-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.t30-item:hover { background: var(--bg-hover); }
.t30-item .t30-main { min-width: 0; }
.t30-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t30-code { font-size: 14px; overflow-wrap: anywhere; }
.t30-short { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.t30-meta { margin-top: 6px; overflow-wrap: anywhere; }
.t30-empty { padding: 40px; text-align: center; color: var(--text-2); }

.t30-thumb-btn { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.t30-thumb { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-elev2); font-size: 10px; color: var(--text-3); text-align: center; }
.t30-thumb-missing { line-height: 1.3; }
.t30-zoom-btn { margin-top: 6px; }
.t30-open-btn { align-self: start; }

/* ---------- 分页 ---------- */
.t30-pager { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; flex-wrap: wrap; }
.t30-pager #t30Page { flex: 1; min-width: 120px; }

/* ---------- 详情 / 大图对话框 ---------- */
.t30-dialog { box-sizing: border-box; width: min(900px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elev, #131620); color: var(--text-1); padding: 20px; }
.t30-dialog::backdrop { background: #0009; }
.t30-import-kind { width: min(520px, calc(100vw - 24px)); }
.t30-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.t30-dialog-head h2 { margin: 0 !important; }
.t30-dialog-body { min-width: 0; }
.t30-dialog-head h2 { flex: 1; }
.t30-dialog-actions { display: flex; gap: 8px; }
.t30-detail-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.t30-detail-image { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.t30-detail-image .t30-thumb { width: 96px; height: 96px; }
.t30-detail-meta { min-width: 0; flex: 1; }
.t30-detail-meta p { margin: 4px 0; overflow-wrap: anywhere; }
.t30-detail-meta .t30-short { font-size: 16px; font-weight: 600; }
.t30-note { color: var(--text-2); font-size: 12px; }
.t30-note[data-duplicate], .t30-note[data-bs-status="missing"] { color: var(--danger); }
.t30-note[data-bs-status="stale"] { color: var(--info); }
.t30-edit-status { font-size: 12px; min-height: 18px; margin: 0 0 8px; color: var(--text-2); overflow-wrap: anywhere; }
.t30-edit-status[data-kind="busy"] { color: var(--info); }
.t30-edit-status[data-kind="ok"] { color: var(--success); }
.t30-edit-status[data-kind="error"] { color: var(--danger); }
/* 业务字段分区：桌面双列、窄屏单列 */
.t30-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.t30-section { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--bg-elev2); min-width: 0; }
.t30-section h3 { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.t30-section dl { margin: 0; }
.t30-field { display: grid; grid-template-columns: minmax(96px, 42%) minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.t30-field:last-child { border-bottom: 0; }
.t30-field dt { color: var(--text-2); }
.t30-field dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.t30-field[data-calc] dd { font-weight: 600; }
.t30-edited { margin-left: 6px; color: var(--info); }
.t30-reason { display: block; margin-top: 2px; }
.t30-cost-source { display: block; margin-top: 2px; font-weight: 400; }
.t30-input { box-sizing: border-box; width: 100%; min-width: 0; }
.t30-field dd:has(.t30-unit) { display: flex; align-items: center; gap: 6px; }
.t30-unit { color: var(--text-2); }
.t30-input-short { font-size: 15px; margin-bottom: 4px; }
.t30-zoom-body { display: flex; justify-content: center; background: var(--bg-elev2); border-radius: 10px; padding: 10px; }
.t30-zoom-body img { max-width: 100%; max-height: calc(100vh - 240px); object-fit: contain; }

/* ---------- 空值 / 零值 / 错误 / 公式 / 缺图 ---------- */
.t30-blank { color: var(--text-3); }
.t30-error { color: var(--danger); }
.t30-warn { color: var(--warning, var(--danger)); }
.t30-thumb-missing { color: var(--text-3); }
.t30-error-mark { color: var(--danger); }

/* ---------- 导入 ---------- */
.t30-import { margin-bottom: 16px; }
.t30-kind { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.t30-kind label { display: flex; gap: 8px; align-items: baseline; }
.t30-blockers { border: 1px solid var(--danger); border-radius: 10px; padding: 8px 12px; color: var(--danger); font-size: 12px; margin-bottom: 10px; }
.t30-blockers p { margin: 4px 0; }
.t30-conflicts li label { white-space: nowrap; }
.t30-import-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.t30-import-row input[type="file"] { max-width: 100%; color: var(--text-2); font-size: 12px; }
.t30-import-status { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; min-height: 18px; }
.t30-import-status[data-kind="busy"] { color: var(--info); }
.t30-import-status[data-kind="ok"] { color: var(--success); }
.t30-import-status[data-kind="error"] { color: var(--danger); }
.t30-preview { min-width: 0; }
.t30-preview-body { margin-top: 10px; }
.t30-stats-preview { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.t30-preview-block { margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg-elev); }
.t30-preview-block summary { cursor: pointer; font-size: 12px; color: var(--text-2); }
.t30-preview-block ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.t30-preview-block li { display: flex; gap: 10px; align-items: baseline; font-size: 12px; flex-wrap: wrap; }
.t30-import-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.t30-batches { margin-top: 12px; }
.t30-batches summary { cursor: pointer; font-size: 12px; color: var(--text-2); }
.t30-batch-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.t30-batch-tabs .btn { min-height: 36px; white-space: nowrap; }
html[data-ui="amber"] #t30Root .t30-batch-tabs .btn[aria-pressed="true"]:not(:disabled) { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
#t30Root .t30-batch-tabs .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t30-rejected-wrap { max-height: 320px; overflow: auto; }
.t30-rejected-wrap .t30-batches-table { min-width: 460px; }
.t30-rejected-wrap .t30-batches-table th { position: sticky; top: 0; }
.t30-rejected-wrap td.mono { white-space: nowrap; overflow-wrap: normal; }
.t30-batches-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.t30-batches-table th, .t30-batches-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border-soft); overflow-wrap: anywhere; }
.t30-batches-table th { color: var(--text-2); background: var(--bg-elev2); }

/* ---------- 窄屏（约 390px）仍可查看关键字段 ---------- */
@media (max-width: 600px) {
  #t30Root { padding: 0; }
  #t30Root h1 { font-size: 20px; }
  .t30-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t30-stats-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t30-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  .t30-filter-actions { grid-column: 1 / -1; }
  .t30-filter-actions .btn { flex: 1; }
  .t30-item { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px; }
  .t30-open-btn { grid-column: 1 / -1; }
  .t30-thumb { width: 48px; height: 48px; }
  .t30-dialog { padding: 14px; }
  .t30-detail-image { flex-direction: row; align-items: center; }
  .t30-sections { grid-template-columns: minmax(0, 1fr); }
  .t30-dialog-head { flex-wrap: wrap; }
  .t30-pager { gap: 8px; }
  .t30-pager .btn { flex: 1; }
  .t30-pager #t30Page { flex: 1 0 100%; order: 3; }
}

/* T63 两行表头及独立调宽边界 */
.t63-table { table-layout: fixed; min-width: 0; }
.t63-table th, .t63-table td { box-sizing: border-box; padding: 8px 10px; white-space: normal; overflow-wrap: anywhere; }
.t63-table td[data-field="code"] { min-width: 0; }
.t63-table th[data-col] > span:first-child { display: block; line-height: 18px; min-height: 36px; }
.t63-sorters { display: flex; margin: 4px 0 0; }
.t63-resize { position: absolute; right: -3px; top: 0; width: 8px; height: 100%; z-index: 4; cursor: col-resize; touch-action: none; }
.t63-resize:hover { background: var(--border); }
.t63-resizing, .t63-resizing * { cursor: col-resize !important; user-select: none !important; }

/* T68: compact default appearance. Saved T49 coordinates are deliberately excluded. */
html[data-theme="light"] #t30Root{--bg-elev:#fffefa;--bg-elev2:#f6f4ef;--bg-hover:#f6f0e4;--border:#dedad1;--text:#292822;--text-1:#292822;--text-2:#615d54;--text-3:#6e685e;--accent:#805b20;--accent-soft:#f3ead8;--danger:#b5322e}
#t30Root .t30-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
#t30Root .t30-heading>div{min-width:0}
#t30Root h1{font-size:27px;line-height:1.4;margin:0 0 5px}
#t30Root .t30-heading p{font-size:12px;line-height:1.6;color:var(--text-2)}
#t30Root .btn{min-height:36px;padding:7px 14px;border-radius:7px;line-height:1.5;box-shadow:none}
#t30Root .btn-primary{background:var(--accent);color:var(--bg-elev);border-color:var(--accent)}
html[data-theme="dark"] #t30Root .btn-primary{color:#1c1913}
#t30Root [hidden]{display:none!important}
#t30Root :is(button,input,select,summary,th):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#t30Root .t30-card{border-radius:9px;background:var(--bg-elev);padding:12px 14px}
#t30Root .t30-card strong{font-size:26px;line-height:1.3;margin-top:4px;font-variant-numeric:tabular-nums;overflow-wrap:normal}
#t30Root .t30-card span{font-size:12px}
#t30Root .t30-card small{font-size:11px;color:var(--text-2);margin-top:4px}
#t30Root .t30-card:nth-of-type(9) strong,#t30Root .t30-card:nth-of-type(10) strong{font-size:18px;word-break:normal}
#t30Root .t30-dups{border-radius:7px;padding:8px 12px;background:var(--bg-elev2)}
#t30Root .t30-dups summary{font-size:12px;color:var(--text-2)}
#t30Root .t30-filter{border-radius:9px;padding:14px 16px;background:var(--bg-elev)}
#t30Root .t30-filter label{font-size:12px;gap:6px}
#t30Root .t30-filter :is(input,select){height:38px;border-radius:6px;padding:7px 11px;background:var(--bg-elev);border:1px solid var(--border);box-shadow:none}
#t30Root .t30-filter-actions{gap:8px}
#t30Root .t30-filter-actions .btn{white-space:nowrap}
/* T68 round 4: fixed compact header; feedback occupies space only while needed. */
#t30Root .t30-heading{display:block;position:relative;margin:0 0 12px}
#t30Root .t68-title-row{display:flex;align-items:center;gap:20px;padding-right:48px;min-width:0}
#t30Root .t68-title-info{display:flex;align-items:center;gap:20px;min-width:0;flex-shrink:0}
#t30Root .t68-title-info h1{margin:0;white-space:nowrap}
#t30Root .t68-sources{display:flex;flex-direction:column;gap:1px;min-width:0}
#t30Root .t68-source{position:relative;min-width:0;color:var(--text-2)}
#t30Root .t68-source summary{list-style:none;display:flex;align-items:center;white-space:nowrap;font-size:12px;line-height:21px;cursor:pointer;border-radius:3px}
#t30Root .t68-source summary::-webkit-details-marker{display:none}
#t30Root .t68-source time{font-variant-numeric:tabular-nums;color:var(--text);font-size:13px}
#t30Root .t68-source-file{position:absolute;left:0;top:100%;z-index:32;width:max-content;max-width:min(340px,calc(100vw - 100px));overflow-wrap:anywhere;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg-elev);box-shadow:0 4px 12px #0002;font-size:12px}
#t30Root .t68-page-description{margin:8px 0 0;font-size:12px}
#t30Root .t30-heading>.t68-layout-menu{position:absolute;right:0;top:0;margin:0}
#t30Root #t30Import{position:relative;flex-shrink:1;min-width:0;margin:0 0 0 auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
#t30Root .t68-import-toolbar{display:flex;align-items:center;gap:9px;min-width:0}
#t30Root .t68-import-label{font-size:12px;white-space:nowrap;color:var(--text-2)}
#t30Root #t30Import .t30-import-row{display:flex;align-items:center;gap:7px;margin:0;flex-wrap:wrap}
#t30Root #t30Import .t30-import-row>.btn{white-space:nowrap;min-height:36px;padding:6px 12px}
#t30Root .t68-import-help{position:relative;min-width:0}
#t30Root .t68-import-help summary{list-style:none;cursor:pointer;padding:6px 3px;font-size:12px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px;color:var(--text-2)}
#t30Root .t68-import-help summary::-webkit-details-marker{display:none}
#t30Root .t68-import-help>div{position:absolute;top:100%;right:0;z-index:31;padding:12px 14px;border:1px solid var(--border);border-radius:7px;background:var(--bg-elev);box-shadow:0 8px 20px #0002;width:min(420px,calc(100vw - 100px));font-size:12px;line-height:1.7}
#t30Root .t68-import-feedback{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:min(760px,calc(100vw - 28px));max-height:calc(100vh - 90px);overflow:auto;padding:14px;border:1px solid var(--border);border-radius:9px;background:var(--bg-elev);box-shadow:0 10px 28px #0003}
#t30Root .t68-feedback-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;font-size:14px}
#t30Root .t68-import-feedback .t30-import-status{margin:0 0 8px}
#t30Root .t68-import-feedback .t30-preview{margin:0}
#t30Root .t68-import-feedback .t30-preview-body{min-width:0;overflow-wrap:anywhere}
#t30Root .t68-import-feedback .t30-batches{padding:8px 0 0;border:0;background:transparent;font-size:12px}
#t30Root .t68-import-feedback :is(.t30-batches-table,.t30-rejected table){max-width:100%;table-layout:fixed;width:100%}
#t30Root .t68-import-feedback :is(th,td){overflow-wrap:anywhere}
#t30Root:not(:has(>.t49-grid)){display:block}
#t30Root:not(:has(>.t49-grid))>#t30Stats{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:10px;margin:0 0 12px}
#t30Root:not(:has(>.t49-grid))>#t30Stats>.t30-card{grid-area:auto!important;order:initial!important;height:100%;min-height:98px}
#t30Root:not(:has(>.t49-grid))>#t30Filter{margin:0 0 12px}
#t30Root:not(:has(>.t49-grid)) .t30-filter-actions{grid-column:auto;flex-wrap:nowrap}
#t30Root:not(:has(>.t49-grid))>.t30-list-head{margin:0}
#t30Root:not(:has(>.t49-grid))>#t30List{margin:0 0 12px}
#t30Root:not(:has(>.t49-grid))>.t30-pager{margin:0}

/* The same list toolbar works inside a saved layout block or the default grid. */
#t30Root .t30-list-head{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:12px 13px;border:1px solid var(--border);border-bottom:0;border-radius:9px 9px 0 0;background:var(--bg-elev);min-height:60px}
#t30Root .t68-list-info{display:flex;align-items:center;flex-wrap:wrap;gap:12px;flex:1;min-width:0}
#t30Root .t68-list-info h2{font-size:19px;line-height:28px;margin:0;white-space:nowrap}
#t30Root #t30Count{font-size:12px;line-height:20px;padding:3px 9px;border-radius:5px;background:var(--bg-elev2);white-space:nowrap}
#t30Root .t68-list-info #t30Status{font-size:11px;line-height:20px;margin:0;padding:0;max-width:100%;min-width:0}
#t30Root .t30-list-head [data-t30=columns]{margin-left:auto;flex-shrink:0}
#t30Root #t63ColumnStatus{font-size:11px;max-width:100%;overflow-wrap:anywhere}
#t30Root #t63ColumnStatus:empty{display:none}
#t30Root .t63-scroll{border-top:0;border-radius:0 0 9px 9px;max-height:70vh;background:var(--bg-elev)}
#t30Root .t63-caption{background:var(--bg-elev2);color:var(--text-2);font-size:11px;padding:7px 13px}
#t30Root .t63-table th{font-size:12px;padding:8px 12px}
#t30Root .t63-table th[data-col]>span:first-child{min-height:18px}
#t30Root .t63-table td{font-size:13px;padding:8px 12px}
#t30Root .t63-table tr:nth-child(even) td{background:var(--bg-elev2)}
#t30Root .t63-table .t30-thumb{width:40px;height:40px;border-radius:5px}
#t30Root .t63-sorters button{min-height:22px;padding:0 4px;border:0;background:transparent}
#t30Root .t63-sort-arrow{font-size:13px}
#t30Root .t30-pager{gap:14px}

@media(max-width:1500px){#t30Root:not(:has(>.t49-grid))>#t30Stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}#t30Root:not(:has(>.t49-grid)) .t30-filter-actions{grid-column:1/-1;flex-wrap:wrap}#t30Root .t68-list-info #t30Status{flex-basis:100%}}
@media(max-width:1200px){#t30Root .t68-title-row{flex-wrap:wrap;gap:10px}#t30Root .t68-import-inline{margin-left:0!important;flex-basis:100%}#t30Root .t68-import-toolbar{justify-content:flex-start}}
@media(max-width:600px){#t30Root:not(:has(>.t49-grid))>#t30Stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}#t30Root .t68-title-info{flex-wrap:wrap;gap:6px}#t30Root .t68-title-row{padding-right:44px}#t30Root .t68-import-toolbar{align-items:flex-start;gap:6px}#t30Root .t68-import-label{display:none}#t30Root .t30-import-row{flex-wrap:wrap}#t30Root .t68-import-inline .btn{font-size:12px;padding:6px 9px}#t30Root .t68-list-info{flex-basis:calc(100% - 110px);gap:8px}#t30Root .t30-list-head{align-items:flex-start;gap:10px}#t30Root .t30-filter-actions .btn{flex:0 1 auto}#t30Root h1{font-size:24px}}
@media(max-width:600px){#t30Root .t68-title-info{flex:1 1 100%;max-width:100%}}
#t30Root .t68-import-feedback{max-height:min(65vh,600px)}
@media(max-width:600px){#t30Root .t68-import-feedback{left:0;right:auto;width:calc(100vw - 100px)}}

/* T80：输入与选择控件统一初始尺寸、按内容变宽、悬停 1.1 倍。宽度由 view.js 测量后写入；
   同组初始宽度 --t80-w0、统一高度 --t80-h、组内间距 8px。复选框、文件选择器与按钮不受影响。 */
#t30Root{--t80-h:38px;--t80-gap:8px}
#t30Root #t30Filter.t30-filter{--t80-w0:168px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--t80-gap)}
#t30Root #t30Filter.t30-filter>label{flex:0 0 auto;min-width:0;max-width:100%}
#t30Root #t30Filter.t30-filter>.t30-filter-actions{flex:0 0 auto;max-width:100%}
#t30Root #t30Filter.t30-filter :is(input,select){width:var(--t80-w0);max-width:100%;min-width:0}
#t30Root #t30DetailBody{--t80-w0:180px}
#t30Root #t30Clear .t30-dialog-body{--t80-w0:200px}
#t30Root #t30ClearText{display:block;margin:6px 0 0}
#t30Root :is(#t30Filter :is(input,select),#t30DetailBody input[data-edit-key],#t30ClearText){box-sizing:border-box;width:var(--t80-w0);max-width:100%;min-width:0;height:var(--t80-h);min-height:var(--t80-h);flex:none}
#t30Root .t80-line{position:relative}
#t30Root .t80-line>*{transition:transform 180ms ease}
#t30Root .t80-hot{position:relative;z-index:2}
@media (prefers-reduced-motion:reduce){#t30Root .t80-line>*{transition:none}}
/* T80 补充：筛选字段设置。成对输入框（最小～最大、起止日期）合计为一个统一宽度；齿轮按钮与相邻按钮同高。 */
#t30Root #t30Filter .t80-range{display:flex;align-items:center;gap:4px;min-width:0}
#t30Root #t30Filter .t80-range>span{color:var(--text-2);font-size:12px;flex:none}
#t30Root #t30Filter .t80-range>input{width:calc((var(--t80-w0) - 20px) / 2);padding-left:8px;padding-right:8px}
#t30Root #t30Filter [aria-invalid="true"]{border-color:var(--danger)}
#t30Root .t80-gear{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:7px 10px}
#t80FilterChoices{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:4px 16px;margin-bottom:18px}

/* H1 补充：筛选下拉（UI 规范 R19，参照经营数据页）。弹层挂在 body，固定定位，避免被筛选区裁切或随悬停放大变形。 */
.t30-choice-pop{position:fixed;z-index:1000;box-sizing:border-box;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elev1,var(--bg));color:var(--text-1,var(--text));box-shadow:var(--shadow,0 6px 18px rgb(30 25 15 / .12));font-size:13px}
.t30-choice-search{display:block;box-sizing:border-box;width:100%;height:36px;margin:0 0 6px;padding:6px 8px;border:1px solid var(--border);border-radius:5px;background:var(--bg);color:inherit;font:inherit}
.t30-choice-search:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.t30-choice-list{display:block;max-height:240px;overflow:auto;overscroll-behavior:contain}
.t30-choice-option{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;box-sizing:border-box;padding:8px 6px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;line-height:1.5;text-align:left;cursor:pointer}
.t30-choice-option:hover,.t30-choice-option:focus-visible{background:var(--accent-soft,var(--bg-hover))}
.t30-choice-option:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.t30-choice-option[aria-selected=true]{color:var(--accent);background:var(--accent-soft,var(--bg-hover))}
.t30-choice-option:disabled{opacity:.5;cursor:not-allowed}
.t30-choice-mark{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1px solid var(--border);border-radius:3px;font-size:12px;line-height:1}
.t30-choice-name{min-width:0;overflow-wrap:anywhere}
.t30-choice-option small{color:var(--text-3,var(--text-2));font-size:12px;font-variant-numeric:tabular-nums}
.t30-choice-group{display:block;padding:8px 6px 4px;color:var(--text-3,var(--text-2));font-size:12px}
.t30-choice-empty{display:block;padding:12px;color:var(--text-3,var(--text-2))}
@media (pointer:coarse){.t30-choice-option{min-height:44px}.t30-choice-search{height:44px}}
@media (prefers-reduced-motion:reduce){.t30-choice-pop *{transition:none}}

/* H2：商品详情右侧抽屉（桌面非模态 400px 覆盖表格右部；<768px 全宽模态）与字段设置七组 */
.t30-drawer{position:fixed;top:var(--topbar-h,52px);right:0;bottom:0;z-index:40;box-sizing:border-box;width:min(400px,100vw);display:flex;flex-direction:column;background:var(--bg-elev,#131620);color:var(--text-1);border-left:1px solid var(--border);box-shadow:-8px 0 24px #0003;outline:none}
.t30-drawer[hidden]{display:none}
.t30-drawer-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--border)}
.t30-drawer-id{flex:1 1 160px;min-width:0;display:flex;align-items:center;gap:10px}
.t30-drawer-thumb{flex:0 0 auto;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.t30-drawer-thumb .t30-thumb{width:56px;height:56px}
.t30-drawer-thumb .t30-zoom-btn{min-height:24px;padding:0 6px;font-size:12px}
.t30-drawer-title{min-width:0}
.t30-drawer-title h2{margin:0 !important;font-size:15px;overflow-wrap:anywhere}
.t30-drawer-sub{margin:2px 0 0;font-size:13px;color:var(--text-2);overflow-wrap:anywhere}
.t30-drawer .t30-dialog-actions{flex:0 0 auto}
.t30-drawer-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 16px 20px}
.t30-drawer .t30-sections{grid-template-columns:minmax(0,1fr)}
.t30-drawer .t30-field{grid-template-columns:minmax(84px,38%) minmax(0,1fr);align-items:start}
.t30-drawer .t30-field[data-multiline]{grid-template-columns:minmax(0,1fr)}
.t30-drawer .t30-field[data-multiline] dt{padding-bottom:2px}
.t30-drawer span[data-value-kind=text]{white-space:pre-wrap;overflow-wrap:anywhere}
.t30-textarea{box-sizing:border-box;width:100%;min-height:72px;resize:vertical;font:inherit;line-height:1.5}
.t30-empty-group,.t30-all-shown{margin:6px 0}
.t30-all-shown{padding:20px 0;text-align:center}
.t63-row.is-selected td{background:var(--accent-soft,var(--bg-hover))}
.t63-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.t63-table tbody tr.t63-row{cursor:pointer}
.t63-group{margin:0 0 12px;padding:8px 12px 4px;border:1px solid var(--border);border-radius:10px;min-width:0}
.t63-group legend{padding:0 6px;font-size:13px;color:var(--text-2)}
.t63-group-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:0 16px}
#t63ColumnChoices:has(.t63-group){display:block}
@media (max-width:767px){
  .t30-drawer{top:0;width:100vw;border-left:0;box-shadow:none;z-index:200}
  .t30-drawer-head{padding:10px 12px}
  .t30-drawer-body{padding:10px 12px 20px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:no-preference){.t30-drawer:not([hidden]){animation:t30-drawer-in .18s ease-out}@keyframes t30-drawer-in{from{transform:translateX(24px);opacity:.4}to{transform:none;opacity:1}}}
.t30-drawer .t30-edit-status:empty{display:none}
.t30-drawer.h15-comparison-drawer{width:min(850px,85vw)}
.t30-drawer.h15-comparison-drawer.h15-self-collapsed{width:min(480px,85vw)}
.h15-self-collapsed .h15-source-table th:first-child{width:43%}
.h15-section-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.h15-section-head h3{margin:0}
.h15-section-head .btn{min-height:32px;padding:4px 8px;font-size:12px}
.h15-source-scroll{overflow-x:auto;max-width:100%}
.h15-source-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.h15-source-table th,.h15-source-table td{padding:10px 8px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left;overflow-wrap:anywhere}
.h15-source-table thead th{color:var(--text-1);background:var(--bg-elev)}
.h15-source-table th:first-child{width:23%;font-weight:400;color:var(--text-2)}
.h15-source-table tbody td{font-variant-numeric:tabular-nums}
.h15-source-table tr:last-child>*{border-bottom:0}
.h15-source-info,.h15-adoption{margin-top:4px;font-size:12px;line-height:1.55;font-weight:400}
.h15-source-info summary,.h15-adoption summary{cursor:pointer;color:var(--text-2)}
.h15-adoption[open] summary,.h15-source-info[open] summary{margin-bottom:4px}
.t30-drawer.h15-classic-drawer{width:min(490px,90vw)}
.t30-drawer.h15-classic-drawer.h15-comparison-drawer:not(.h15-self-collapsed){width:min(880px,90vw)}
.t30-drawer.h15-classic-drawer.h15-self-collapsed{width:min(490px,90vw)}
.h15-classic-drawer .t30-sections,.h15-classic-drawer .t30-section>dl{display:block}
.h15-classic-drawer .t30-section>dl{margin:0}
.h15-classic-drawer .t30-field,.h15-classic-drawer .t30-field[data-multiline]{display:grid;grid-template-columns:minmax(100px,38%) minmax(0,1fr);gap:12px;padding:10px 0;align-items:start;border-bottom:1px solid var(--border)}
.h15-classic-drawer .t30-field:last-child{border-bottom:0}
.h15-classic-drawer .t30-field dd{margin:0;min-width:0;overflow-wrap:anywhere}
.h15-classic-drawer .h15-source-table{min-width:0;table-layout:fixed}
.h15-classic-drawer .h15-source-table td{font-variant-numeric:tabular-nums}
.h15-classic-drawer .h15-source-table td:has(>.mono){text-align:right}
.h15-classic-drawer .h15-source-table th:first-child{width:27%}
.h15-classic-drawer.h15-self-collapsed .h15-source-table th:first-child{width:43%}
.h15-merged-stock{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;line-height:1.7}
.h15-stock-pair{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:3px;max-width:100%}
.h15-common-cost:first-of-type>*{border-top:1px solid var(--border)}
.h15-complete-sources{margin-top:12px;padding:12px;border:1px solid var(--border);border-radius:8px;font-size:12px;color:var(--text-2)}
.h15-complete-sources>summary{cursor:pointer;color:var(--text-1)}
.h15-basis-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:10px}
.h15-basis-columns[data-source-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.h15-basis-columns>div{min-width:0;overflow-wrap:anywhere}
.h15-basis-columns p{margin:5px 0}
@media(max-width:767px){.t30-drawer.h15-classic-drawer,.t30-drawer.h15-classic-drawer.h15-comparison-drawer:not(.h15-self-collapsed),.t30-drawer.h15-classic-drawer.h15-self-collapsed{width:100vw}.h15-classic-drawer .h15-source-table{min-width:0}.h15-basis-columns[data-source-count="3"]{grid-template-columns:minmax(0,1fr)}}
.t30-stock-choice{display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:8px}
.t30-stock-choice label{display:grid;gap:4px}
.t30-stock-choice select,.t30-stock-choice input{min-height:36px;max-width:100%;background:var(--bg-elev);color:var(--text-1);border:1px solid var(--border);border-radius:6px;padding:6px 8px}
.h15-cost-preview table{width:100%;border-collapse:collapse;font-size:13px}
.h15-cost-preview th,.h15-cost-preview td{padding:8px;border:1px solid var(--border);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.h15-cost-preview .h15-cost-scroll{overflow:auto;max-width:100%}
@media(max-width:767px){.t30-drawer.h15-comparison-drawer,.t30-drawer.h15-comparison-drawer.h15-self-collapsed{width:100vw}.h15-source-table{min-width:570px}.h15-self-collapsed .h15-source-table{min-width:0}}

/* C12（UI规范 v1.3 R20/R21）：筛选项标签与取值同行并按内容定宽，不等宽撑满；长值省略、title 可查看完整值。
   隐藏的筛选条件继续生效并提示；排序用独立手柄。 */
#t30Root #t30Filter.t30-filter{--t80-w0:132px;align-items:center}
#t30Root #t30Filter.t30-filter>label{flex-direction:row;align-items:center;gap:6px;white-space:nowrap}
#t30Root #t30Filter.t30-filter :is(input,select){text-overflow:ellipsis}
#t30Root #t30Filter.t30-filter>label:has(.t80-range){gap:6px}
#t30Root .t80-bar-handle{order:-1;flex:none;min-width:24px;height:var(--t80-h);padding:0 4px;border:1px dashed var(--border);border-radius:6px;background:var(--bg-elev);color:var(--text-2);cursor:grab;touch-action:none;letter-spacing:-2px}
#t30Root .t80-bar-handle:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
#t30Root #t30Filter.t80-sorting>label{outline:1px dashed var(--border);outline-offset:2px;border-radius:6px}
#t30Root .t80-hidden-note{margin:-8px 0 12px;padding:0 4px;color:var(--text-2);overflow-wrap:anywhere}
#t30Root .t80-choice-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
#t30Root .t80-handle{min-width:32px;min-height:32px;padding:0 6px;cursor:grab;touch-action:none;letter-spacing:-2px}
#t30Root .t80-handle:disabled{cursor:not-allowed;opacity:.4}
@media(max-width:600px){#t30Root #t30Filter.t30-filter>label{white-space:normal}}

#t30Root .t30-batch-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:100px}
/* J43: 主区域编辑操作与独立整列手柄，保留原列轨道。 */
.t63-main-actions,.t80-main-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.t63-main-actions [hidden],.t80-main-actions[hidden],[data-t30="columns-edit"][hidden],[data-t30="filter-sort"][hidden]{display:none!important}.t63-column-handle{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;margin-right:6px;cursor:grab;touch-action:none}.t63-column-handle:focus-visible{outline:2px solid var(--accent,#c55312);outline-offset:2px}#t80FilterChoices{display:block}

.t63-group legend label{display:inline-flex;align-items:center;gap:6px}.t63-group legend input[type=checkbox]{width:auto}

/* H12: product-owned cascaded multi-select and scoped action menus (Amber). */
html[data-ui="amber"] #t30Root #t30Filter{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
html[data-ui="amber"] #t30Root #t30Filter>label,html[data-ui="amber"] #t30Root .h12-field{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:125px;max-width:250px;color:var(--text-3);font-size:12px}
html[data-ui="amber"] #t30Root .h12-trigger{display:flex;justify-content:space-between;align-items:center;gap:14px;min-width:125px;max-width:250px;min-height:40px;font-size:14px;color:var(--text-1)}
html[data-ui="amber"] #t30Root .h12-trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="amber"] #t30Root .h12-trigger.is-selected{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}
html[data-ui="amber"] #t30Root .h12-popup{position:fixed;z-index:180;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elev);color:var(--text-1);box-shadow:0 12px 36px #0003;overflow:hidden}
html[data-ui="amber"] #t30Root .h12-popup>input{width:100%;box-sizing:border-box;min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--bg-elev2);color:var(--text-1);padding:8px 10px;font:inherit;flex:none}
html[data-ui="amber"] #t30Root .h12-pop-actions{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--text-3);flex:none}
html[data-ui="amber"] #t30Root .h12-pop-actions .btn{min-height:32px;padding:4px 8px;color:var(--accent)}
html[data-ui="amber"] #t30Root .h12-options{overflow:auto;min-height:0;max-height:420px;overscroll-behavior:contain}
html[data-ui="amber"] #t30Root .h12-group+.h12-group{margin-top:10px}
html[data-ui="amber"] #t30Root .h12-choice{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 10px;border-radius:6px;cursor:pointer;font-size:14px}
html[data-ui="amber"] #t30Root .h12-choice input[type=checkbox]{appearance:auto;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;padding:0;flex:none;accent-color:var(--accent)}
html[data-ui="amber"] #t30Root .h12-choice>span{flex:1;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root .h12-choice small{font-size:12px;color:var(--text-3);font-variant-numeric:tabular-nums}
html[data-ui="amber"] #t30Root .h12-choice:hover{background:var(--bg-hover)}
html[data-ui="amber"] #t30Root .h12-choice.is-selected{background:var(--accent-soft);color:var(--accent)}
html[data-ui="amber"] #t30Root .h12-group-title{background:var(--bg-elev2);font-size:12px;font-weight:600;color:var(--text-3)}
html[data-ui="amber"] #t30Root .h12-hint{font-size:11px;color:var(--text-3);flex:none}
html[data-ui="amber"] #t30Root .h12-tools{position:relative;display:inline-flex}
html[data-ui="amber"] #t30Root .h12-tool-menu{position:absolute;z-index:120;top:calc(100% + 6px);right:0;min-width:245px;max-width:calc(100vw - 32px);padding:8px;background:var(--bg-elev);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 36px #0003;color:var(--text-1);max-height:65vh;overflow:auto}
html[data-ui="amber"] #t30Root .h12-tool-menu .btn{display:block;width:100%;border:0;box-shadow:none;background:transparent;text-align:left;min-height:40px;padding:8px 10px;border-radius:6px}
html[data-ui="amber"] #t30Root .h12-tool-menu .btn:hover{background:var(--bg-hover)}
html[data-ui="amber"] #t30Root .h12-menu-title{font-size:11px;color:var(--text-3);margin:5px 10px 3px}
html[data-ui="amber"] #t30Root .h12-sync-menu{display:flex;position:static;flex-direction:column;padding:0;box-shadow:none;border:0;background:transparent;min-width:0}
html[data-ui="amber"] #t30Root .h12-tool-menu .wb-layout-sync{display:block;margin-top:6px;border-top:1px solid var(--border);padding-top:5px}
html[data-ui="amber"] #t30Root .t30-filter-actions{display:flex;flex-wrap:wrap;align-items:center;align-self:flex-end;gap:8px;margin-left:0}
html[data-ui="amber"] #t30Root .t30-pager{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html[data-ui="amber"] #t30Root .t30-pager label{margin-left:auto;display:flex;align-items:center;gap:8px;color:var(--text-3);font-size:13px}
html[data-ui="amber"] #t30Root .h12-layout-status:empty{display:none}
html[data-ui="amber"] #t30Root .h12-layout-status{margin:6px 0;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root .wb-layout-sync-status{display:block;flex-basis:100%;font-size:12px;overflow-wrap:anywhere}
html[data-ui="amber"] #t30Root #t30Filter.t80-sorting>.h12-field{outline:1px dashed var(--border);outline-offset:2px;border-radius:6px}
html[data-ui="amber"] #t30Root .h12-popup :focus-visible,html[data-ui="amber"] #t30Root .h12-tools :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-ui="amber"] #t30Root [hidden]{display:none!important}

/* H12 / R46: preserve full text and natural row height at the user's column widths. */
html[data-ui="amber"] #t30Root .t63-table :is(th,td){white-space:normal;overflow-wrap:anywhere;word-break:normal;height:auto;max-height:none;overflow:visible;text-overflow:clip}
html[data-ui="amber"] #t30Root .t63-table :is(.t63-column-title,[data-value-kind],.t63-note,.t30-reason,.t30-cost-source,code){white-space:normal;overflow-wrap:anywhere;max-height:none;-webkit-line-clamp:unset;text-overflow:clip;overflow:visible}
html[data-ui="amber"] #t30Root .t63-table .t63-column-title{display:block;min-height:18px;line-height:18px;padding-right:6px}
html[data-ui="amber"] #t30Root .t63-table .t63-column-handle{display:inline-flex;min-height:28px;line-height:1;vertical-align:middle}
html[data-ui="amber"] #t30Root .t63-table .t63-resize{min-height:0;min-width:0;display:block;line-height:normal;padding:0;outline-offset:-3px}
html[data-ui="amber"] #t30Root .t63-resize:focus-visible{outline:2px solid var(--accent);background:var(--accent-soft)}
html[data-ui="amber"] #t30Root .t63-resize-guide{position:fixed;width:2px;z-index:160;background:var(--accent);pointer-events:none}
html[data-ui="amber"] #t30Root.t63-moving,html[data-ui="amber"] #t30Root.t63-moving *{cursor:grabbing!important;user-select:none!important}

html[data-ui="amber"] #t30Root .t63-table th[data-col]{cursor:default}
html[data-ui="amber"] #t30Root .t63-column-handle[hidden]{display:none!important}
html[data-ui="amber"] #t30Root .t63-table th[data-col]>.t63-column-handle{min-height:28px}

/* H14 uses the existing Amber dialog/table tokens in both color modes. */
html[data-ui="amber"] #h14Dates{width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;overflow:auto;background:var(--bg-elev);color:var(--text);border:1px solid var(--border)}
html[data-ui="amber"] #h14Dates small{display:block;color:var(--text-3);overflow-wrap:anywhere}
html[data-ui="amber"] #h14Dates :is(td,th){white-space:normal;overflow-wrap:anywhere}
html[data-ui="amber"] #h14Dates :is(input,select){min-width:0;max-width:100%}
html[data-ui="amber"] #h14Result{max-width:min(520px,calc(100vw - 32px));padding:20px;background:var(--bg-elev);color:var(--text);border:1px solid var(--border)}
html[data-ui="amber"] :is(#h14Dates,#h14Result) :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html[data-ui="amber"] #h14Dates[open]{display:flex;flex-direction:column;overflow:hidden}

/* H16: 仓库成本时间段维护。 */
html[data-ui="amber"] #t30ImportKind{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px)}
html[data-ui="amber"] #t30Manage .h16-cost-block{box-sizing:border-box;display:grid;gap:12px;padding:16px;width:auto;min-width:0;max-height:none;overflow:visible;border:1px solid var(--border);border-radius:10px;background:var(--bg-elev);color:var(--text)}
html[data-ui="amber"] #t30Manage .h16-cost-block :is(h3,h4,p){margin:0}
html[data-ui="amber"] #t30Manage .h16-cost-block :is(label,form){display:grid;gap:8px;min-width:0}
html[data-ui="amber"] #t30Manage .h16-cost-block :is(input,select){box-sizing:border-box;min-width:0;width:100%;min-height:36px;padding:6px 10px;border:1px solid var(--border);border-radius:6px;background:var(--bg-elev);color:var(--text);font:inherit}
html[data-ui="amber"] #t30Manage .h16-cost-block .btn{justify-self:start;white-space:normal;height:auto;min-height:36px}
html[data-ui="amber"] #t30Manage #h14Form[hidden]{display:none}
html[data-ui="amber"] #t30Manage .h11-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
html[data-ui="amber"] #t30Manage #h14History :is(th,td){white-space:normal;overflow-wrap:anywhere}
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage) :focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* H17: two independent windows share the existing dialog controls and tokens. */
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage)[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 48px)}
html[data-ui="amber"] #t30Manage{width:min(940px,calc(100vw - 32px))}
html[data-ui="amber"] #t30ImportKind:has(.t30-preview-body){width:min(1040px,calc(100vw - 32px))}
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage) .h17-dialog-head{display:block;flex:none;margin-bottom:14px}
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage) .h17-dialog-head h2{margin:0 0 8px}
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage) .h17-dialog-head p{margin:0}
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage) .h17-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;display:grid;gap:16px}
html[data-ui="amber"] :is(#t30ImportKind,#t30Manage) .h17-dialog-footer{flex:none;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding-top:14px;margin-top:14px;border-top:1px solid var(--border)}
html[data-ui="amber"] #t30Root #t30ImportKind .t68-import-feedback{position:static;box-sizing:border-box;width:100%;max-height:none;margin:0;padding:14px;overflow:visible;box-shadow:none}
html[data-ui="amber"] #t30ImportKind .t68-import-help>div{position:static;box-sizing:border-box;width:100%;margin-top:8px;box-shadow:none}
html[data-ui="amber"] #t30Manage .t30-batches{margin:0}
html[data-ui="amber"] #t30ManageStatus:empty{display:none}
html[data-ui="amber"] #t30Manage .t30-batches summary{font-size:14px;font-weight:600;color:var(--text)}
html[data-ui="amber"] #t30Manage .t30-batches-table{table-layout:fixed;max-width:100%}
html[data-ui="amber"] #t30Manage .h17-clear-section{display:grid;justify-items:start;gap:10px;padding:16px;border:1px solid var(--border);border-radius:10px}
html[data-ui="amber"] #t30Manage .h17-clear-section :is(h3,p){margin:0}

.h21-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }
#t30Root .h21-card { position:relative; display:grid; gap:4px; min-width:0; width:100%; text-align:left; align-content:start; color:var(--text); background:var(--bg-elev); cursor:pointer; font:inherit; }
#t30Root .h21-card.is-selected { background:var(--accent-soft); }
.h21-card span { padding-right:16px; }
.h21-card small { color:var(--muted); }
.h21-scroll { overflow-x:auto; max-width:100%; }
.h21-scroll td { overflow-wrap:anywhere; }
.h21-actions { display:flex; flex-wrap:wrap; gap:6px; }
.h21-actions .btn { white-space:nowrap; }
#t30Root .h21-retire { color:var(--accent); border-color:var(--accent); }
#t30Root .h21-date { display:block; margin-top:4px; }
html[data-ui="amber"] #t30Manage .h21-date[hidden] { display:none; }
html[data-ui="amber"] #t30Manage table:has(td > #h26DateFields) th:nth-last-child(2) { width:10rem; }
html[data-ui="amber"] #t30Manage td > #h26DateFields,
html[data-ui="amber"] #t30Manage td > #h26DateFields label { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; }
html[data-ui="amber"] #t30Manage td > #h26DateFields { gap:8px; }
html[data-ui="amber"] #t30Manage td > #h26DateFields input {
  box-sizing:border-box; width:100%; min-width:0; min-height:36px; padding:4px 6px;
  border:1px solid var(--border); border-radius:6px; background:var(--bg-elev); color:var(--text); font:inherit;
}
html[data-ui="amber"] #h26Editor { display:grid; gap:8px; min-width:0; }
html[data-ui="amber"] #t30Manage .h26-date-details { padding:8px 10px 14px; }
#h21Stats .t30-stats { margin:8px 0; }
#h21Detail { margin:12px 0; }
#h21Rules select { margin:8px; }
#h21ReviewSummary { margin-right:auto; }
.h17-dialog-footer [data-h21-submit][hidden] { display:none; }

.t30-import-kind-options { display: grid; gap: 12px; margin: 16px 0; }
.t30-import-kind-option { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 72px; width: 100%; height: auto; padding: 14px 16px; text-align: left; white-space: normal; }
.t30-import-kind-option span { text-align: left; overflow-wrap: anywhere; }
.t30-import-kind-option:focus-visible { outline: 2px solid var(--accent, #b38a42); outline-offset: 3px; }
html:not([data-ui="amber"]) #t30ImportKind :is(.t30-desktop-import-hint,#t30ImportSelection,#t30ImportSetup,#t68ImportHelp,.t30-legacy-inline-submit),
html[data-ui="amber"] #t30ImportKind :is(.t30-legacy-import-hint,.t30-import-kind-options,#t30LegacyImportHelp) {display:none}
/* H27: 商品资料表与库存成本共用同一个文件区。 */
html[data-ui="amber"] #t30ImportKind .h17-dialog-body {
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:12px;
}
html[data-ui="amber"] #t30ImportKind :is(.t30-import-setup,.t30-import-selection,.t30-stock-field,[data-t30="cancel"])[hidden] {
  display:none;
}
html[data-ui="amber"] #t30ImportKind .t30-import-setup {
  display:grid;
  gap:12px;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types {
  min-width:0;
  padding:0;
  margin:0;
  border:0;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types > div {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
  padding:4px;
  margin-top:4px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-elev);
}
html[data-ui="amber"] #t30ImportKind .t30-import-types label {
  position:relative;
  min-width:0;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types input {
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types span {
  display:grid;
  place-items:center;
  min-height:40px;
  padding:4px 8px;
  border:1px solid transparent;
  border-radius:7px;
  color:var(--muted);
  text-align:center;
  cursor:pointer;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types input:checked + span {
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--text);
  font-weight:650;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types input:focus-visible + span {
  outline:2px solid var(--accent);
  outline-offset:1px;
}
html[data-ui="amber"] #t30ImportKind .t30-import-types input:disabled + span {
  cursor:default;
}
html[data-ui="amber"] #t30ImportKind .t30-stock-field {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
html[data-ui="amber"] #t30ImportKind .t30-stock-field select {
  flex:1 1 9rem;
  min-width:0;
  min-height:36px;
}
html[data-ui="amber"] #t30ImportKind .t30-drop-zone {
  display:grid;
  justify-items:center;
  align-content:center;
  gap:8px;
  min-height:120px;
  padding:12px;
  text-align:center;
  border:2px dashed var(--border);
  border-radius:10px;
  background:var(--bg-elev);
}
html[data-ui="amber"] #t30ImportKind .t30-drop-zone.is-dragover {
  border-color:var(--accent);
  background:var(--accent-soft);
}
html[data-ui="amber"] #t30ImportKind .t30-drop-zone .btn,
html[data-ui="amber"] #t30ImportKind .t30-import-selection .btn {
  min-height:36px;
}
html[data-ui="amber"] #t30ImportKind #t30DropStatus {
  margin:0;
  color:var(--danger-text,var(--text));
}
html[data-ui="amber"] #t30ImportKind #t30DropStatus:empty {position:absolute}
html[data-ui="amber"] #t30ImportKind .t30-import-selection {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:10px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--bg-elev);
}
html[data-ui="amber"] #t30ImportFileSummary {
  min-width:0;
  overflow-wrap:anywhere;
}
html[data-ui="amber"] #t30ImportKind .t30-import-selection .btn {flex-shrink:0}
html[data-ui="amber"] #t30ImportKind #t68ImportHelp p {margin:0}
html[data-ui="amber"] #t30ImportKind #t68ImportHelp p + p {margin-top:8px}
html[data-ui="amber"] #t30ImportKind #t68ImportHelp strong {margin-inline-end:8px}

/* H 商品列表字段提示与详情规格，仅电脑版琥珀入口生成对应标记。 */
.t30-field-hint { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.t30-field-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t30-field-tooltip { position: fixed; z-index: 80; pointer-events: none; width: max-content; max-width: min(34em, calc(100vw - 12px)); padding: 6px 10px; overflow-wrap: anywhere; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elev); color: var(--text); box-shadow: 0 3px 12px #0003; font-size: 13px; }
.t30-basic-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 6px 12px; }
.t30-drawer .t30-basic-specs .t30-field { grid-template-columns: auto minmax(0, 1fr); border-bottom: 0; }
.t63-table td[data-field="code"] small:has(.t30-field-hint) { display: inline-block; margin-inline-end: 6px; }
.t63-table td[data-field="code"]:has(.t30-field-hint) code { display: block; }
