#diagnosisFormPanel { padding: 20px; border-radius: 8px; }
.vd-form, .vd-report { max-width: 760px; margin: 0 auto; color: #172532; }
.vd-form h3, .vd-report h3 { font-size: 20px; line-height: 1.5; margin: 0 0 18px; overflow-wrap: anywhere; }
.vd-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.vd-photo-input { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 260px; border: 1px dashed #bfc8d8; border-radius: 8px; background: #f4f6fa; overflow: hidden; }
.vd-photo-input > .app-icon { width: 36px; height: 36px; color: #6b60dd; }
.vd-photo-input img { display: block; width: 100%; max-height: 400px; object-fit: contain; }
.vd-upload { position: relative; cursor: pointer; padding: 12px 18px; font-size: 14px; color: #5244d4; min-height: 44px; box-sizing: border-box; }
.vd-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vd-upload:focus-within { outline: 2px solid #6755eb; outline-offset: -2px; }
.vd-options { border-bottom: 1px solid #e0e5ee; padding: 10px 0; }
.vd-options > summary { min-height: 44px; align-content: center; cursor: pointer; color: #5b697e; font-size: 13px; line-height: 1.5; }
.vd-fields { display: grid; gap: 14px; padding: 10px 0 12px; }
.vd-fields label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #59667a; font-size: 13px; }
.vd-fields input:not([type=file]):not([type=checkbox]), .vd-fields select, .vd-fields textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px 10px; border: 1px solid #dce1eb; border-radius: 8px; background: #fff; color: #172532; font: inherit; font-size: 14px; }
.vd-fields textarea { min-height: 90px; resize: vertical; }
.vd-fields .vd-check { flex-direction: row; align-items: center; gap: 8px; line-height: 1.6; }
.vd-check input { width: 17px; height: 17px; accent-color: #6251e8; flex: 0 0 17px; }
.vd-primary, .vd-secondary { min-height: 46px; border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 14px; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.vd-primary { border: 0; background: #6150e8; color: #fff; font-weight: 600; }
.vd-form > .vd-primary { width: 100%; }
.vd-secondary { border: 1px solid #dce1eb; background: #fff; color: #253447; }
.vd-primary:disabled, .vd-secondary:disabled { opacity: .6; cursor: wait; }
.vd-link { padding: 10px; min-height: 44px; border: 0; background: transparent; color: #69758a; font-size: 13px; cursor: pointer; }
.vd-status { color: #695c41; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.vd-status:empty { display: none; }
.vd-boundary { font-size: 12px; color: #7a8495; line-height: 1.6; overflow-wrap: anywhere; }
.vd-report.result-layout { display: block; padding: 0 !important; }
.vd-result-heading { margin-bottom: 16px; }
.vd-result-heading h3 { font-size: 18px; }
.vd-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #ecedf5; border-radius: 8px; }
.vd-tabs button { border: 0; border-radius: 6px; min-height: 40px; background: transparent; color: #667389; font-size: 13px; }
.vd-tabs button[aria-selected=true] { background: #fff; color: #5141d7; }
.vd-output { background: #f3f5f8; border-radius: 8px; overflow: hidden; }
.vd-output-image, .vd-original { width: 100%; height: auto; display: block; object-fit: contain; -webkit-touch-callout: default; user-select: auto; }
.vd-output-image { cursor: zoom-in; }
body.subpage-scroll-lock:has(#subpage .vd-report) #imagePreviewBackdrop { z-index: 3010; }
body.subpage-scroll-lock:has(#subpage .vd-report) #imagePreviewSheet { z-index: 3011; }
.vd-original { max-height: 600px; }
.vd-chart-pending { min-height: 300px; display: grid; align-content: center; gap: 16px; text-align: center; color: #6d7789; font-size: 14px; padding: 16px; }
.vd-save-hint { margin: 10px 0; text-align: center; color: #73809a; font-size: 12px; }
.vd-summary { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.vd-main-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.vd-main-actions > button { flex: 1 1 160px; }
.vd-issue { padding: 14px 0; border-bottom: 1px solid #e4e8f0; }
.vd-report h4 { font-size: 15px; margin: 10px 0; line-height: 1.5; }
.vd-issue p, .vd-report li { font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.vd-issue small { color: #7a8495; }
.vd-bottom-actions { display: flex; justify-content: space-between; padding-top: 12px; }
.vd-legacy-data { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; color: #69758a; }
html body.subpage-scroll-lock #subpage.diagnosis-mode, html body.subpage-scroll-lock #subpage.material-detail-mode:has(.vd-report) { top: var(--creation-plan-viewport-top, 0px); height: var(--creation-plan-viewport-height, 100dvh); bottom: auto; padding: 0; }
#subpage.diagnosis-mode .subpage-body { min-height: 0 !important; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: 18px; }
@media (max-width: 360px) { #diagnosisFormPanel { padding: 14px; } .vd-form h3 { font-size: 18px; } }
