/* Shared semantic colors: explicit foreground/background pairs in both themes. */
:root{--ui-text:#183b2e;--ui-subtext:#4b6359;--ui-surface:#ffffff;--ui-soft:#eff6f2;--ui-border:#c6d8ce;--ui-link:#1b6346;--ui-danger:#bd2334;--ui-strong:#ffffff;--ui-accent:#205d45}
html[data-theme="dark"]{--ui-text:#edf6f0;--ui-subtext:#b4c8bc;--ui-surface:#121c17;--ui-soft:#1c3025;--ui-border:#42624e;--ui-link:#9de7ba;--ui-danger:#ff959f;--ui-strong:#ffffff;--ui-accent:#28694c}
html body .required-star{color:var(--ui-danger)!important;font-style:normal;font-weight:800;margin-left:3px}
.point-guidance{display:flex;flex-direction:column;gap:6px;padding:17px 20px;border:1px solid var(--ui-border);border-left:4px solid var(--ui-accent);border-radius:12px;background:var(--ui-soft);color:var(--ui-text);margin:0 0 18px;line-height:1.65}
.point-guidance span{color:var(--ui-subtext);font-size:13px}
.review-progress{position:sticky;top:86px;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 20px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;margin-bottom:18px;box-shadow:0 5px 16px #0000000c;color:var(--ui-text)}
.review-progress>div{display:flex;gap:10px;flex-wrap:wrap}.review-progress>div:first-child{flex-direction:column;gap:4px}.review-progress span{font-size:12px;color:var(--ui-subtext)}
.issue-confirm-dock{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:20px;background:var(--ui-soft);border-top:1px solid var(--ui-border);color:var(--ui-text)}
.issue-confirm-dock>div{display:flex;flex-direction:column;gap:5px}.issue-confirm-dock span,.issue-confirm-dock small{color:var(--ui-subtext)}
.issue-confirm-dock button{min-width:190px;flex-shrink:0}.issue-simple-meta{grid-template-columns:1fr 1.4fr 1fr!important}.issue-editor{scroll-margin-top:190px}
.manufacturer-bar{display:flex;align-items:center;gap:22px;padding:18px 20px;margin:0 0 18px}.manufacturer-bar label{min-width:280px;display:grid;gap:6px}.manufacturer-bar select{width:100%}.manufacturer-bar p{font-size:13px;line-height:1.6;color:var(--ui-subtext)}
html body :is(.review-progress,.issue-confirm-dock,.manufacturer-bar,.material-cascade) :is(select,input,textarea){background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-border);border-radius:8px;padding:10px;min-width:0}
html body :is(.review-progress,.issue-confirm-dock,.manufacturer-bar,.material-cascade) :is(b,label){color:var(--ui-text)}
html body :is(.btn.primary,.choose-process,.issue-confirm-dock .btn.primary){background:var(--ui-accent);color:#fff;border-color:var(--ui-accent)}
html body button:disabled{opacity:1;color:var(--ui-subtext);background:var(--ui-soft);border-color:var(--ui-border);cursor:not-allowed;box-shadow:none}
html body .btn:disabled,html[data-theme="dark"] body .btn:disabled{opacity:1;color:var(--ui-subtext);background:var(--ui-soft);border-color:var(--ui-border)}
html body :is(.required-note,.fine-print,.mini-title,.material-note,.project-help,.project-source-note,.process-code,.material-system){color:var(--ui-subtext)}
html body :is(.process-evidence,.parameter-summary,.dialog-note,.material-form-section,.include-appendix,.appendix-option){color:var(--ui-text);background:var(--ui-soft);border-color:var(--ui-border)}
html body :is(.process-evidence,.parameter-summary,.dialog-note,.material-form-section) :is(p,span,small){color:var(--ui-subtext)}
html body :is(.process-evidence,.parameter-summary,.dialog-note,.material-form-section) :is(b,strong,h3,h4){color:var(--ui-text)}
html body :is(.project-help,.project-source-note,.material-note,.fine-print,label small){line-height:1.65}
html body input::placeholder,html body textarea::placeholder{color:var(--ui-subtext);opacity:1}
html[data-theme="dark"] body input::placeholder,html[data-theme="dark"] body textarea::placeholder{color:var(--ui-subtext);opacity:1}
html body :is(select,input,textarea){color:var(--ui-text)}
html[data-theme="dark"] body :is(.issue-simple-meta label span,.form-grid label span,.dialog-card label span,.parameter-summary li b,.process-evidence p b,.material-form-section>b,.recognition-empty b,.upload-zone b,.mode-card b){color:#edf6f0}
html[data-theme="dark"] body :is(.photo-link-meta,.process-option-head,.process-parameter,.photo-association,.issue-simple-meta,.reference-editor,.plan-preview){background:#121c17;color:#edf6f0}
html body .major-icon,html[data-theme="dark"] body .major-icon{background:#e6bb55;color:#173b2e}
html body .issue-actions button.delete{background:#fff0f1;color:#9f2330;border:1px solid #d59a9f}
html[data-theme="dark"] body .issue-actions button.delete{background:#3c1f25;color:#ffbac1;border-color:#a35b65}
html body .appendix-toggle,html body .appendix-toggle :is(span,b,small){background:var(--ui-soft);color:var(--ui-text)}
html body .check-row,html body .check-row span{background:var(--ui-soft);color:var(--ui-text)}
.btn:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #d3a335;outline-offset:3px}
@media(max-width:800px){.review-progress{top:72px;flex-direction:column;align-items:stretch}.review-progress>div:last-child{justify-content:space-between}.issue-confirm-dock{flex-direction:column;align-items:stretch}.issue-confirm-dock button{width:100%}.issue-simple-meta{grid-template-columns:1fr!important}.manufacturer-bar{flex-direction:column;align-items:stretch}.manufacturer-bar label{min-width:0}}
