/* V0.42.2 产品中心「基础资料」「产品使用说明」（及产品完成库里同名两栏）：
   只读也用白底（深色主题用卡片底色），不再灰；字体换成界面主字体，字号更大、行距更松、文字更黑。 */
html body #app :is(#b-basicInfoText,#b-instructions):not(#\#),
html body #app #completion-form :is(textarea[name=basicInfoText],textarea[name=instructions]):not(#\#){
  background:var(--surface);color:var(--text);
  font-family:var(--font);font-size:15px;line-height:1.8;letter-spacing:.01em;
  padding:12px 14px;border:1px solid var(--border);border-radius:var(--r-md,10px);
  -webkit-font-smoothing:antialiased;box-shadow:none;
}
html body #app :is(#b-basicInfoText,#b-instructions):not(#\#){width:100%;min-height:220px}
html body #app :is(#b-basicInfoText,#b-instructions)[readonly]:not(#\#),
html body #app #completion-form :is(textarea[name=basicInfoText],textarea[name=instructions])[readonly]:not(#\#){
  background:var(--surface);color:var(--text);cursor:zoom-in;
}
html body #app :is(#b-basicInfoText,#b-instructions)[readonly]:hover:not(#\#),
html body #app #completion-form :is(textarea[name=basicInfoText],textarea[name=instructions])[readonly]:hover:not(#\#){
  background:var(--surface);border-color:var(--accent);
}
html body #app :is(#b-basicInfoText,#b-instructions):focus:not(#\#),
html body #app #completion-form :is(textarea[name=basicInfoText],textarea[name=instructions]):focus:not(#\#){
  background:var(--surface);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring);
}
/* 弹出的大窗口（编辑 / 展开）里同样用白底、同一套字体 */
html dialog :is(#b-basicInfoText,#b-instructions,textarea[name=basicInfoText],textarea[name=instructions]):not(#\#){
  background:var(--surface);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.8;letter-spacing:.01em;
}
html body #app .biz-tile.expanded :is(#b-basicInfoText,#b-instructions):not(#\#){font-size:16px}

/* V0.43.1 利润计算器：关联登记产品后，带入了哪些项、哪些没读出来 */
html body #app .profit-link-note:not(#\#){margin:10px 0 0;line-height:1.7;color:var(--text-2)}


/* 产品资料和FBA修订：只隐藏用户要求不常显的正文；编辑/复制入口保留。 */
html body #app .biz-info-compact textarea[hidden]{display:none}
html body #app .biz-info-compact{min-height:112px;align-self:start}
html body #app .biz-info-compact .cat-cardhead{flex-wrap:wrap;gap:var(--space-3,12px)}
html body #app .profit-adbox>div>strong:not(#\#):not(#\#):not(#\#):not(#\#){color:var(--danger);font-size:clamp(24px,2.1vw,30px);font-weight:750;line-height:1.3}
@media(max-width:600px){html body #app .biz-info-compact .actions{flex-wrap:wrap}}

/* 资料卡整块进入原编辑器；复制按钮保留自己的点击与键盘操作。 */
html body #app .biz-info-compact{position:relative}
html body #app .biz-info-compact .biz-info-open{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer;z-index:1}
html body #app .biz-info-compact .cat-cardhead{position:relative;z-index:2;pointer-events:none}
html body #app .biz-info-compact .actions{pointer-events:none}
html body #app .biz-info-compact .actions :is(button,a){pointer-events:auto}
html body #app .biz-info-compact .biz-info-open:focus-visible{outline:2px solid var(--accent);outline-offset:0}
html dialog .own-basic .own-basic-links{min-width:0;margin:0;padding:0;border:0}
html dialog .own-basic .own-basic-choice{display:flex;align-items:flex-start;gap:var(--space-2,8px);padding:var(--space-2,8px) 0;cursor:pointer}
html dialog .own-basic .own-basic-choice input{flex:0 0 auto;width:auto;margin:3px 0 0}
html dialog .own-basic .own-basic-choice>span{min-width:0;display:grid;gap:var(--space-1,4px);overflow-wrap:anywhere}
html dialog .own-basic .own-basic-choice>span>span{font-size:var(--fs-sm);color:var(--text-2)}

/* Reuse product form controls; native vertical scrolling chains at boundaries. */
.own-card textarea,.own-profile textarea,.own-card .own-pre{overscroll-behavior-y:auto;scroll-behavior:auto}
html dialog .own-basic-correction{display:flex;gap:var(--s-2);align-items:start;margin:var(--s-3) 0}
html dialog .own-basic-correction>input{width:auto;flex:none;margin-top:4px}
html dialog .own-basic-correction>span{display:grid;gap:var(--s-1);min-width:0;overflow-wrap:anywhere}
.own-category-browser{display:grid;gap:var(--s-2);min-width:0}
.own-category-browser select,.own-category-browser input{max-width:100%;min-width:0;width:100%}
.own-category-browser small{color:var(--text-2);overflow-wrap:anywhere}
.own-category-path{display:flex;flex-direction:column;gap:var(--s-2)}

/* FBA厘米参考：独立预览，不覆盖登记弹窗或计算表单。 */
.fba-head{flex-wrap:wrap;gap:var(--space-2,8px)}
.fba-reference-button{margin-left:auto;white-space:nowrap}
.fba-reference-dialog{width:min(1180px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border);border-radius:var(--r-lg);color:var(--text-1);background:var(--surface)}
.fba-reference-body{overflow:auto;max-height:calc(100dvh - 128px);padding:var(--space-4,24px)}
.fba-ref-meta,.fba-ref-sources{font-size:var(--fs-sm);color:var(--text-2)}
.fba-ref-controls{display:flex;gap:var(--space-3,16px);flex-wrap:wrap;margin:16px 0}
.fba-ref-controls label{display:flex;flex-direction:column;gap:6px;min-width:180px}
.fba-ref-controls select{min-height:40px;color:var(--text-1);background:var(--surface);border:1px solid var(--border);border-radius:var(--r-sm);padding:8px}
.fba-ref-summary{padding:12px;background:var(--accent-soft);border-radius:var(--r-md);font-weight:650}
.fba-ref-scroll{overflow:auto;max-width:100%;margin:16px 0;border:1px solid var(--border);border-radius:var(--r-md)}
.fba-ref-scroll table{width:100%;min-width:780px;border-collapse:collapse;font-size:var(--fs-sm)}
.fba-ref-scroll caption{text-align:left;padding:12px;font-weight:700;color:var(--text-1);background:var(--surface-2)}
.fba-ref-scroll th,.fba-ref-scroll td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top;min-width:94px;white-space:normal;line-height:1.55}
.fba-ref-scroll th{background:var(--surface-2);font-weight:650}
.fba-ref-current{background:var(--accent-soft)}
.fba-ref-sources{display:flex;gap:8px 16px;flex-wrap:wrap;padding:12px 0}
@media(max-width:600px){.fba-reference-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.fba-reference-body{padding:12px}.fba-ref-controls label{min-width:0;width:100%}.fba-ref-controls select{width:100%}.fba-reference-button{margin-left:0}}

/* 后台属性与品牌VI复用资料卡；原完整内容和操作在弹窗内保留。 */
html body #app .biz-tile-compact{min-width:0;position:relative}
html body #app .biz-info-compact>.biz-info-content[hidden]{display:none}
