/* 仅作用于数字稻田专题工作台，沿用原有绿色与公共卡片。 */
.rice-product-workbench { display:flex; flex-direction:column; overflow:hidden; }
.rice-product-workbench .rice-recognition-heading { min-width:0; }
.rice-product-workbench .rice-recognition-heading h2 { font-size:21px; line-height:1.45; }
.rice-product-workbench .rice-recognition-heading p { font-size:15px; }
.rice-product-workbench .rice-recognition-steps { flex-shrink:0; padding:16px 20px; }
.rice-product-workbench .rice-recognition-step b { font-size:14px; }
.rice-product-workbench .rice-recognition-body { min-height:0; padding:18px; font-size:16px; line-height:1.6; }
.rice-product-workbench .section-body { padding:16px; min-width:0; }
.rice-product-workbench .section-header { font-size:17px; }
.rice-product-workbench .rp-note { font-size:14px; color:#64748b; line-height:1.7; margin:10px 0; }
.rice-product-workbench .rp-label { display:block; font-weight:600; margin-bottom:8px; }
.rice-product-workbench select { width:100%; box-sizing:border-box; min-height:44px; padding:10px; font:inherit; color:#334155; background:white; border:1px solid #cbd5e1; border-radius:8px; }
.rice-product-workbench .rp-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.rice-product-workbench .rice-primary-btn,.rice-product-workbench .rice-secondary-btn,.rice-product-workbench .rice-text-btn { font-size:15px; line-height:1.4; min-height:40px; }
.rice-product-workbench button:focus-visible,.rice-product-workbench input:focus-visible { outline:3px solid #6ee7b7; outline-offset:2px; }
.rice-product-workbench .rp-file { position:relative; overflow:hidden; cursor:pointer; box-sizing:border-box; }
.rice-product-workbench .rp-file input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.rice-product-workbench .rp-check { display:flex; align-items:flex-start; gap:8px; font-size:14px; line-height:1.6; margin-top:14px; }
.rice-product-workbench .rp-check input { flex-shrink:0; margin-top:5px; }
.rice-product-workbench .rp-message { padding:8px 18px; color:#047857; background:#ecfdf5; font-size:14px; flex-shrink:0; }
.rice-product-workbench .rp-message:empty { display:none; }
.rice-product-workbench .rp-message.is-error { color:#b45309; background:#fffbeb; }
.rice-product-workbench .rp-facts { display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; margin:0; }
.rice-product-workbench .rp-facts dt { color:#64748b; }
.rice-product-workbench .rp-facts dd { margin:0; overflow-wrap:anywhere; }
.rice-product-workbench .rp-processing { text-align:center; padding:24px 8px; }
.rice-product-workbench .rp-processing>i { font-size:28px; color:#059669; }
.rice-product-workbench .rp-tabs { display:flex; gap:8px; margin-bottom:16px; }
.rice-product-workbench .rp-tabs button { flex:1; border:1px solid #d1fae5; border-radius:8px; background:white; padding:10px 5px; font:inherit; font-size:15px; color:#475569; cursor:pointer; }
.rice-product-workbench .rp-tabs [aria-selected=true] { background:#ecfdf5; color:#047857; border-color:#10b981; font-weight:600; }
.rice-product-workbench .rp-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rice-product-workbench .rp-metrics>div { background:#f8fafc; padding:14px; border:1px solid #e2e8f0; border-radius:10px; font-size:14px; color:#64748b; }
.rice-product-workbench .rp-metrics b { display:block; margin-top:6px; font-size:19px; color:#0f5132; overflow-wrap:anywhere; }
.rice-product-workbench .rp-table { overflow:auto; max-height:380px; }
.rice-product-workbench table { width:100%; border-collapse:collapse; font-size:14px; }
.rice-product-workbench th,.rice-product-workbench td { padding:10px 8px; text-align:left; border-bottom:1px solid #e2e8f0; vertical-align:top; overflow-wrap:anywhere; }
.rice-product-workbench th { background:#f0fdf4; color:#334155; }
.rice-product-workbench details { font-size:14px; }
.rice-product-workbench summary { cursor:pointer; color:#047857; }
.rice-product-workbench .rp-explanation { padding:14px; background:#fff; border-radius:10px; overflow-wrap:anywhere; }
@media(max-width:640px) {
 #digitalRiceFieldPanel.rice-product-workbench { width:calc(100vw - 16px)!important; right:8px!important; top:76px!important; height:calc(100dvh - 84px)!important; }
 .rice-product-workbench .rice-recognition-header { padding:14px; }
 .rice-product-workbench .rice-recognition-heading h2 { font-size:18px; }
 .rice-product-workbench .rice-recognition-heading p { font-size:13px; }
 .rice-product-workbench .rice-recognition-body { padding:12px; }
 .rice-product-workbench .rice-recognition-steps { padding:12px 8px; }
 .rice-product-workbench .rice-recognition-step b { font-size:13px; }
 .rice-product-workbench .rp-metrics { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) { .rice-product-workbench .fa-spin { animation:none; } }

/* 数字稻田双专题入口：沿用水稻绿色，仅作用于当前模块。 */
.rice-product-workbench .rp-intro { margin:0 0 18px; color:#475569; }
.rice-product-workbench .rp-module-list { display:grid; gap:16px; margin-bottom:20px; }
.rice-product-workbench .rp-module { display:flex; align-items:center; gap:14px; width:100%; padding:20px; border:1px solid #d1fae5; border-radius:12px; background:#fff; text-align:left; font:inherit; color:#065f46; cursor:pointer; transition:border-color .18s,box-shadow .18s; }
.rice-product-workbench .rp-module:hover { border-color:#10b981; box-shadow:0 4px 14px #05966918; }
.rice-product-workbench .rp-module>i:first-child { padding:12px; background:#ecfdf5; border-radius:10px; font-size:23px; }
.rice-product-workbench .rp-module>span { flex:1; min-width:0; }
.rice-product-workbench .rp-module strong { display:block; font-size:20px; }
.rice-product-workbench .rp-module small { display:block; font-size:15px; color:#475569; margin-top:5px; }
.rice-product-workbench .rp-module em { display:inline-block; font-size:13px; font-style:normal; padding:3px 8px; margin-top:10px; background:#ecfdf5; border-radius:6px; }
.rice-product-workbench .rp-module .is-pending { color:#64748b; background:#f1f5f9; }
.rice-product-workbench .rp-tags { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.rice-product-workbench .rp-tags span { font-size:14px; padding:3px 9px; border-radius:6px; background:#ecfdf5; color:#047857; }
.rice-product-workbench .rp-empty { text-align:center; padding:20px 10px; border:1px dashed #cbd5e1; border-radius:10px; background:#f8fafc; }
.rice-product-workbench .rp-empty>i { color:#059669; font-size:28px; }
.rice-product-workbench .rp-empty h3 { font-size:18px; color:#334155; }
.rice-product-workbench .rp-empty p { font-size:15px; color:#64748b; }
.rice-product-workbench .rp-output-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; color:#475569; font-size:15px; }
.rice-product-workbench .rp-composition { display:grid; gap:14px; margin-top:20px; }
.rice-product-workbench .rp-share>div { display:flex; justify-content:space-between; }
.rice-product-workbench .rp-share progress { --rp-share-color:#21a179; display:block; width:100%; height:8px; margin-top:8px; appearance:none; border:0; border-radius:5px; overflow:hidden; background:#e2e8f0; }
.rice-product-workbench .rp-share:first-child progress { --rp-share-color:#f2b134; }
.rice-product-workbench progress::-webkit-progress-bar { background:#e2e8f0; border-radius:5px; }
.rice-product-workbench progress::-webkit-progress-value { background:var(--rp-share-color); border-radius:5px; }
.rice-product-workbench progress::-moz-progress-bar { background:var(--rp-share-color); border-radius:5px; }
.rice-product-workbench .rp-metrics span { font-size:14px; }
.rice-product-workbench button:disabled { opacity:.55; cursor:not-allowed; }
@media(max-width:640px) {
 .rice-product-workbench .rp-module { padding:14px; gap:10px; }
 .rice-product-workbench .rp-module>i:first-child { padding:8px; font-size:20px; }
 .rice-product-workbench .rp-module strong { font-size:18px; }
 .rice-product-workbench .rp-facts { grid-template-columns:88px minmax(0,1fr); gap:10px; }
}
