/* Equipment ownership and material inputs are intentionally distinct workflows. */
.form-chat { box-sizing: border-box; }
.form-chat-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-fill-entry { padding: 18px; margin-bottom: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--accent-soft); }
.ai-fill-entry textarea { display: block; width: 100%; margin-bottom: 12px; box-sizing: border-box; font-size: 17px; }
.ai-fill-entry .primary-button { min-height: 52px; font-size: 18px; padding: 12px 22px; }
.ai-fill-entry p { margin: 10px 0; color: var(--text-secondary); }
.ai-fill-entry button { min-height: 44px; margin-right: 8px; }
.workflow-page .form-chat button { min-height: 44px; font-size: 15px; }
.workflow-page .form-chat { max-height: 100dvh; }
.form-chat-compose { flex-shrink: 0; }
.form-chat-compose textarea { box-sizing: border-box; font-size: 17px; }
.form-chat-fill { width: 100%; margin-top: 12px; min-height: 48px; }
.form-chat [data-chat-status] { margin: 8px 0 0; font-size: 14px; }
.form-chat [data-message-text] { line-height: 1.7; }
.form-chat .chat-table { overflow-x: auto; white-space: normal; margin: 12px 0; }
.form-chat .chat-table table { width: 100%; border-collapse: collapse; }
.form-chat .chat-table th, .form-chat .chat-table td { padding: 8px; border: 1px solid var(--border); text-align: left; min-width: 90px; }
.form-chat .chat-list-item { margin: 6px 0; }
.form-chat [data-message-text] h3 { margin: 12px 0 6px; font-size: 17px; }
@media (max-height: 650px) { .form-chat-examples { display: none; } .workflow-page .form-chat { gap: 6px; padding: 12px; } .form-chat-compose textarea { max-height: 64px; } .form-chat-messages { min-height: 60px; } }
@media(max-width:1000px) { .workflow-page .form-chat { width:100%; min-width:0; } .workflow-page.with-form-chat { padding-right:16px !important; } }
.workflow-page { --workflow-gap: 18px; }
.workflow-page .workflow-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; margin-bottom: 18px; min-width: 0; }
.workflow-page h2 { margin-bottom: 16px; }
.workflow-page .workflow-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.workflow-toolbar > label { flex: 1 1 260px; }
.workflow-toolbar > button { flex: none; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workflow-grid > label { min-width: 0; }
.workflow-wide { grid-column: 1 / -1; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.generation-warning { box-sizing: border-box; inline-size: min(560px, calc(100vw - 24px)); max-inline-size: none; max-block-size: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; padding: 0; border: 1px solid #d9e0ea; border-radius: 16px; background: #fff; color: #17243a; box-shadow: 0 24px 70px rgba(12,21,27,.24); font: 16px/1.6 "Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif; }
.generation-warning::backdrop { background: rgba(23,32,39,.62); }
.generation-warning-head { padding: 24px 26px 18px; border-bottom: 1px solid #e8ecf2; }
.generation-warning-kicker { display: inline-block; margin-bottom: 7px; color: #916020; font-size: 13px; font-weight: 700; }
.generation-warning h3 { margin: 0 0 9px; font-size: 22px; line-height: 1.35; }
.generation-warning p { margin: 0; color: #526174; line-height: 1.65; }
.generation-warning-body { padding: 20px 26px; min-width: 0; }
.generation-warning-risk { padding: 16px 18px; border-left: 3px solid #c07d28; border-radius: 8px; background: #fff8ed; }
.generation-warning-risk strong { display: block; margin-bottom: 7px; color: #6b4519; }
.generation-warning-risk ul { margin: 0; padding-left: 1.3em; color: #4d5360; }
.generation-warning-risk li + li { margin-top: 5px; }
.generation-warning-check { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 11px; margin-top: 18px; padding: 14px; border: 1px solid #d8e0eb; border-radius: 9px; background: #f7f9fd; color: #22324c; line-height: 1.55; cursor: pointer; min-width: 0; }
.generation-warning input[type="checkbox"] { display: block; box-sizing: border-box; inline-size: 20px; block-size: 20px; min-inline-size: 20px; min-block-size: 20px; max-inline-size: 20px; margin: 2px 0 0; padding: 0; flex: none; accent-color: #2459ad; }
.generation-warning-check span { display: block; min-width: 0; overflow-wrap: anywhere; }
.generation-warning .workflow-actions { justify-content: flex-end; margin: 0; padding: 16px 26px 22px; border-top: 1px solid #e8ecf2; }
.generation-warning .workflow-actions button { min-height: 44px; }
@media (max-width: 600px) { .generation-warning-head { padding: 20px 18px 16px; } .generation-warning-body { padding: 16px 18px; } .generation-warning h3 { font-size: 19px; } .generation-warning .workflow-actions { padding: 14px 18px 18px; } }
.workflow-page .workflow-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.workflow-status { min-height: 24px; color: var(--text-secondary); font-size: 14px; margin: 14px 0; }
.workflow-status:empty { margin: 0; min-height: 0; }
.workflow-status[data-error="true"] { color: var(--danger); }
.workflow-status[data-busy="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.workflow-results { display: grid; gap: 16px; }
.workflow-result { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.workflow-result-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.workflow-result h3 { margin: 0 0 4px; }
.workflow-result p { margin: 10px 0; }
.workflow-tag { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--text-secondary); flex: none; }
.workflow-tag[data-level="recommended"], .workflow-tag[data-level="compatible"] { color: var(--success); background: #f0f7f3; }
.workflow-tag[data-level="recommended_reference"], .workflow-tag[data-level="basic_compatible"] { color: var(--success); background: #f0f7f3; }
.workflow-tag[data-level="incompatible"] { color: var(--danger); background: #fbf1f1; }
.workflow-page details { margin-top: 16px; }
.workflow-page summary { padding: 8px 0; cursor: pointer; color: var(--text-secondary); font-weight: 600; }
.workflow-page .workflow-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 14px 0; }
.workflow-fields > div { padding-bottom: 8px; border-bottom: 1px solid var(--border); min-width: 0; }
.workflow-fields dt { font-size: 13px; color: var(--muted); }
.workflow-fields dd { margin: 4px 0 0; word-break: break-word; }
.workflow-source { font-size: 13px; }
.workflow-source a { color: var(--accent-strong); }
.workflow-empty { padding: 28px 18px; border: 1px dashed var(--border-strong); border-radius: 8px; background: var(--surface-alt); color: var(--muted); }
.workflow-file { border: 1px dashed var(--border-strong); background: var(--surface-alt); border-radius: 8px; padding: 16px; }
.workflow-file input[type="file"] { display: block; width: 100%; padding: 12px 0 0; }
.workflow-file [data-file-note] { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.workflow-file [data-file-note][data-error="true"] { color: var(--danger); }
.workflow-file [data-remove-file] { margin-top: 12px; min-height: 44px; }
@media(min-width:1001px) and (max-width:1350px) { .with-form-chat .workflow-grid { grid-template-columns: 1fr; } }
.workflow-selection { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 16px; background: var(--accent-soft); border-radius: 8px; }
.workflow-selection p { margin: 4px 0 0; }
.catalog-picker { margin-bottom: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); }
.catalog-picker-results { display: grid; gap: 10px; margin-top: 14px; max-height: 420px; overflow-y: auto; }
.catalog-result-group { display: grid; gap: 10px; }
.catalog-result-group + .catalog-result-group { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.catalog-result-group h3 { margin: 0; font-size: 15px; color: var(--text-secondary); }
.catalog-load-more { margin-top: 10px; }
.catalog-choice-card, .compact-selection-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.catalog-choice-card > div, .compact-selection-card > div { min-width: 0; }
.catalog-choice-card p, .catalog-choice-card small, .compact-selection-card p { display: block; margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.catalog-choice-card > div:last-child { display: flex; align-items: flex-end; flex-direction: column; gap: 9px; flex: 0 0 auto; }
.catalog-current-selection { margin: 14px 0; border: 1px solid #c7d7f2; }
.machine-choice-summary { padding: 14px 16px; border: 1px solid #c7d7f2; border-radius: 9px; background: #f7faff; }
.machine-choice-summary p { margin: 5px 0 0; color: var(--muted); }
.cad-auto-note { padding: 14px 16px; border: 1px solid #b9cdef; border-radius: 9px; background: #f5f8ff; }
.cad-auto-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.human-condition-card { margin: 18px 0; padding: 18px; border: 1px solid #d6cfbb; border-radius: 12px; background: #fffdf7; min-width: 0; }
.human-condition-card legend { padding: 0 8px; font-weight: 750; }
.human-condition-card > p { margin: 0 0 16px; color: var(--muted); line-height: 1.6; }
.analysis-readiness { margin-top: 20px; padding: 18px; border: 1px solid #c7d7f2; border-radius: 12px; background: #f8faff; }
.analysis-readiness h3, .analysis-readiness p { margin: 0; }
.analysis-readiness .workflow-result-heading p { margin-top: 5px; color: var(--muted); }
.readiness-stages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.readiness-stages > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px; padding: 12px; border: 1px solid #d8e0eb; border-radius: 9px; background: #fff; }
.readiness-stages > div > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff2dc; color: #8a5a16; font-weight: 800; }
.readiness-stages > div[data-ready="true"] > span { background: #e9f7ee; color: #287347; }
.readiness-stages small { display: block; margin-top: 4px; color: var(--muted); }
.workflow-tag[data-availability="available"], .workflow-tag[data-level="ready"], .workflow-tag[data-level="ready_for_analysis"] { color: var(--success); background: #f0f7f3; }
.workflow-tag[data-availability="production"], .workflow-tag[data-availability="reserved"], .workflow-tag[data-level="needs_confirmation"] { color: #82530f; background: #fff7e7; }
.workflow-tag[data-availability="maintenance"], .workflow-tag[data-level="insufficient"] { color: var(--danger); background: #fbf1f1; }
.workflow-page .workflow-check { display: flex; align-items: start; gap: 10px; margin: 16px 0; }
.workflow-chat-log { display: grid; gap: 20px; margin: 20px 0; }
.workflow-message { border-left: 3px solid var(--border); padding-left: 16px; }
.workflow-message[data-role="assistant"] { border-left-color: var(--accent); }
.workflow-message > p { white-space: pre-wrap; margin: 8px 0 12px; }
.workflow-chat-log .workflow-results { margin-top: 14px; }
.workflow-table { width: 100%; overflow-x: auto; }
.workflow-table table { min-width: 540px; border-collapse: collapse; }
.workflow-page .workflow-table th { text-align: left; }
.workflow-page .workflow-disclaimer { font-size: 13px; line-height: 1.7; color: var(--muted); padding-top: 12px; margin-top: 20px; border-top: 1px solid var(--border); }
.workflow-review-confirmed { padding: 12px 16px; border: 1px solid #bdd5c6; border-radius: 6px; color: var(--success); background: #f2f8f4; }
.customer-result-summary { margin: 18px 0; padding: 18px; border: 1px solid #c7d7f2; border-radius: 10px; background: #f7faff; }
.customer-result-summary h3 { margin: 0 0 12px; }
.customer-result-summary dl, .customer-key-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; margin: 0; }
.customer-result-summary dl > div, .customer-key-specs > div { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.customer-result-summary dt, .customer-key-specs dt { color: var(--muted); font-size: 13px; }
.customer-result-summary dd, .customer-key-specs dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.analysis-input-confirmation { margin: 0 0 18px; padding: 20px; border: 1px solid #b9cdef; border-radius: 12px; background: linear-gradient(135deg,#f8faff,#f1f6ff); min-width: 0; }
.analysis-input-confirmation h2, .analysis-input-confirmation p { margin: 0; }
.analysis-input-confirmation .workflow-result-heading p { margin-top: 6px; color: var(--muted); line-height: 1.55; }
.input-confirmation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.input-confirmation-grid article { padding: 14px; border: 1px solid #d8e0eb; border-radius: 9px; background: #fff; min-width: 0; }
.input-confirmation-grid small, .input-confirmation-grid strong { display: block; }
.input-confirmation-grid small { color: var(--muted); margin-bottom: 5px; }
.input-confirmation-grid p { margin-top: 7px; color: var(--text-secondary); overflow-wrap: anywhere; }
[data-input-confirmation-form] fieldset { margin: 16px 0; padding: 16px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
[data-input-confirmation-form] legend { padding: 0 8px; font-weight: 750; }
[data-input-confirmation-form] label small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.confirmation-basis { margin-top: 10px; padding: 2px 12px; border-radius: 8px; background: var(--surface-alt); }
.customer-machine-card { padding: 20px; }
.cad-analysis-progress { display: flex; align-items: center; gap: 18px; min-height: 112px; margin: 18px 0; padding: 18px 20px; border: 1px solid #b9cdef; border-radius: 10px; background: linear-gradient(135deg,#f7faff,#edf4ff); }
.cad-analysis-progress strong, .cad-analysis-progress small { display: block; }
.cad-analysis-progress strong { margin-bottom: 7px; color: var(--text); font-size: 18px; }
.cad-analysis-progress small { margin-top: 3px; color: var(--muted); }
.cad-progress-visual { flex: 0 0 120px; width: 120px; }
.cad-progress-visual svg { display: block; width: 100%; overflow: visible; }
.cad-progress-mold { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round; }
.cad-progress-flow { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 8 8; animation: cad-flow 1.1s linear infinite; }
.cad-progress-drop { fill: var(--accent); animation: cad-drop 1.6s ease-in-out infinite; }
@keyframes cad-flow { to { stroke-dashoffset: -16; } }
@keyframes cad-drop { 0%,100% { transform: translateX(0); opacity:.55; } 50% { transform: translateX(20px); opacity:1; } }
.workflow-page [hidden] { display: none !important; }
@media (max-width: 900px) { .workflow-grid, .workflow-page .workflow-fields, .customer-result-summary dl, .customer-key-specs, .readiness-stages, .input-confirmation-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .workflow-page .workflow-card { padding: 16px; } .workflow-result-heading { flex-wrap: wrap; } .workflow-toolbar > label { flex-basis: 100%; } .workflow-selection, .catalog-choice-card, .compact-selection-card { flex-wrap: wrap; } .catalog-choice-card > div:last-child { align-items: stretch; width: 100%; } .catalog-choice-card button { width: 100%; white-space: normal; } .cad-analysis-progress { align-items:flex-start; padding:16px; } .cad-progress-visual { flex-basis:84px; width:84px; } }
@media (prefers-reduced-motion: reduce) { .cad-progress-flow, .cad-progress-drop { animation: none; } }
/* Embedded assistance: no navigation, no candidate directory, no implicit save. */
.form-chat[hidden]{display:none!important}.form-chat{position:fixed;right:0;top:0;bottom:0;width:40%;min-width:340px;background:#fff;border-left:1px solid #cbd5e1;z-index:45;display:flex;flex-direction:column;padding:20px;gap:12px}.form-chat-heading{display:flex;align-items:center;justify-content:space-between}.form-chat-heading h2{font-size:20px;margin:0}.form-chat-messages{flex:1;overflow:auto;min-height:120px}.form-chat-bubble{padding:12px;margin:10px 0;background:#f1f5f9;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}.form-chat-bubble[data-role=user]{margin-left:28px;background:#e7efff}.form-chat-bubble p{margin:0 0 8px}.form-chat-examples{display:flex;gap:6px;overflow:auto;flex-wrap:wrap;max-height:105px}.form-chat button{min-height:36px;cursor:pointer}.form-chat-examples button{font-size:13px;border:1px solid #cbd5e1;background:white;border-radius:5px;padding:6px}.form-chat-compose textarea{width:100%;resize:vertical}.form-chat-conflict{display:block;color:#8a4b08;font-size:14px}.form-chat-conflict button{margin:4px}.with-form-chat{padding-right:calc(40vw + 24px)!important}@media(max-width:760px){.form-chat{width:100%;min-width:0;box-sizing:border-box;padding:16px}.with-form-chat{padding-right:16px!important}}
.candidate-entry { border-left: 4px solid #655094; }
.trial-panel-section { margin: 1rem 0; border: 1px solid #b9b3c6; border-radius: 8px; overflow: hidden; background: #f5f4f8; }
.trial-panel-section h4 { margin: 0; padding: .7rem 1rem; background: #594180; color: white; font-size: 1rem; }
.trial-matrix-scroll { overflow-x: auto; max-width: 100%; }
.trial-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.trial-matrix th { background: #e7e2ef; text-align: center; color: #352845; padding: .65rem; }
.trial-matrix td { padding: .6rem; border: 1px solid #cbc4d6; vertical-align: top; background: #fafafd; }
.trial-matrix-scroll .trial-matrix { min-width: 580px; }
.trial-matrix-scroll th:first-child { position: sticky; left: 0; z-index: 1; background: #e7e2ef; box-shadow: 1px 0 #cbc4d6; }
.trial-matrix input[type=number] { box-sizing: border-box; width: 100%; min-width: 5rem; margin: 0; padding: .5rem; font: 600 1rem ui-monospace, monospace; color: #174c33; background: #fff; border: 1px solid #b3acbf; border-radius: 3px; }
.trial-matrix small { display: block; margin-top: .3rem; font-size: .8125rem; overflow-wrap: anywhere; }
.trial-matrix details { font-size: .875rem; margin-top: .4rem; overflow-wrap: anywhere; }
.trial-matrix details summary { cursor: pointer; }
.trial-matrix [data-parameter-state=candidate_estimate] .panel-value-state { color: #795208; }
.trial-matrix [data-parameter-state=blocked] { background: #fff0ef; }
.trial-matrix [data-parameter-state=inactive] { color: #696174; background: #edeaf1; }
.trial-scalars th { width: 36%; text-align: left; }
@media (max-width: 640px) { .trial-matrix td, .trial-matrix th { padding: .5rem; } .trial-scalars th { width: 40%; } }
/* Truthful application checkpoints; no simulated model reasoning or percentages. */
.generation-progress { margin: 12px 0; padding: 12px 16px; border: 1px solid #bed0ed; border-radius: 12px; background: #f5f8ff; overflow-wrap: anywhere; }
.generation-progress summary { cursor: pointer; font-weight: 650; }
.generation-progress li { margin: 8px 0; }
.generation-progress p { line-height: 1.6; }
/* Task details keep process values first; secondary evidence is collapsible. */
.task-trial-actions { padding: 12px 0; border-bottom: 1px solid #d8e1ef; margin-bottom: 16px; }
.task-name-editor { margin: 8px 0 16px; }
.task-feedback, .task-final-editor, .task-history, .task-supporting { margin: 18px 0; padding: 16px; border: 1px solid #d8e1ef; border-radius: 10px; }
.task-feedback > summary, .task-final-editor > summary { color: #2056b4; font-size: 1.1rem; }
.final-recipe { border: 2px solid #507354; padding: 16px; border-radius: 10px; background: #f6faf7; }
.task-history p, .task-final-editor p { overflow-wrap: anywhere; }
.task-trial-actions label { max-width: 420px; }
.condition-overview-header { margin-bottom: .5rem; }
.condition-overview-toolbar, .condition-overview-tools, .condition-progress-compact { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem 1rem; }
.condition-overview-toolbar { justify-content:space-between; }
.condition-overview-toolbar .workflow-actions, .condition-progress-compact .workflow-actions { margin:0; }
.condition-overview-tools { padding:.45rem .65rem; border:1px solid #d8e1ef; border-radius:8px; background:#f8faff; }
.condition-overview-tools label { display:flex; align-items:center; gap:.5rem; margin:0; }
.condition-progress-compact { margin:.35rem 0; }
.condition-progress-compact > * { margin:.1rem 0; }
.condition-overview-help { margin:.35rem 0 .65rem; padding:.4rem .6rem; border:1px solid #d8e1ef; border-radius:8px; }
.condition-overview-help > summary { cursor:pointer; font-weight:650; }
.inline-trial-caption { padding: 12px 16px; background: #edf4ff; border-radius: 8px; color: #24456f; }
.trial-original-value { color: #65738a; font-weight: normal; }

/* Compact condition sheet; optional explanations stay outside value cells. */
.condition-sheet .trial-matrix td, .condition-sheet .trial-matrix th { padding: .35rem .5rem; vertical-align: middle; }
.condition-sheet .trial-matrix input[type=number] { padding: .35rem .45rem; min-height: 36px; font-size: .95rem; }
.condition-sheet .sheet-cell-unit { margin: .1rem 0; font-size: .72rem; color: #526177; }
.sheet-evidence { padding: .4rem .6rem; font-size: .8rem; }
.sheet-evidence > details, .sheet-evidence > small { margin: .35rem 0; }
.condition-records { margin: 1rem 0; }
.condition-records > h4 { margin-bottom: .25rem; }
.configurable-sheet { display:grid; grid-template-columns:1fr; align-items:start; gap:.45rem; padding:.55rem; border:1px solid #b9b3c6; border-radius:8px; background:#eeebf3; }
.configurable-sheet > p, .configurable-sheet > label { grid-column:1/-1; margin:.2rem 0; }
.configurable-sheet .trial-panel-section { margin:0; }
.configurable-sheet .trial-panel-section h4 { display:inline-block; min-width:5rem; padding:.38rem .6rem; border-radius:0 0 5px 0; }
.configurable-sheet .trial-panel-section > label { display:inline-flex; align-items:center; gap:.3rem; margin:.22rem .4rem; font-size:.72rem; }
.configurable-sheet .trial-panel-section > label select { min-height:26px; padding:.1rem 1.5rem .1rem .3rem; }
.configurable-sheet .sheet-ai-advice { color:#655d70; font-size:.7rem; }
.configurable-sheet .sheet-candidate-advice { color:#17623c; font-weight:650; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
.configurable-sheet .trial-matrix { font-size:.78rem; background:#d9d7dc; }
.configurable-sheet .trial-matrix td { padding:.22rem .3rem; background:#ecebed; }
.configurable-sheet .trial-matrix th { padding:.28rem .35rem; background:#d8d4df; }
.configurable-sheet .trial-matrix input[type=number] { min-height:28px; padding:.2rem .3rem; color:#17623c; background:#f7f7f8; font-size:.9rem; }
.configurable-sheet .sheet-cell-unit { font-size:.66rem; line-height:1.1; }
.configurable-sheet .compact-scalars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:#c9c5ce; }
.configurable-sheet .compact-scalars tr { display:grid; grid-template-columns:minmax(5.5rem,.8fr) minmax(6rem,1fr); min-width:0; }
.configurable-sheet .compact-scalars th, .configurable-sheet .compact-scalars td { width:auto; min-width:0; }
.configurable-sheet .compact-scalars input[type=number] { min-width:0; }
.configurable-sheet .sheet-supplementary { grid-column:1/-1; padding:.45rem .6rem; background:#e7e4eb; border-radius:5px; }
.configurable-sheet .sheet-supplementary > summary { color:#513b70; font-weight:700; cursor:pointer; }
.condition-records > .trial-panel-section { display:block; box-sizing:border-box; width:100%; margin:.55rem 0; }
.condition-records .trial-matrix td, .condition-records .trial-matrix th { padding:.25rem .35rem; }
.app-page .condition-sheet input.sheet-unit-input { width: 100%; height: 28px; min-height: 28px; box-sizing: border-box; padding: .1rem .35rem; font-size: .72rem; margin: .15rem 0 0; border: 1px solid #dde1e8; border-radius: 2px; }
.trial-saved-outcome { background: #eef5fa; border-left: 3px solid #567aaa; padding: 12px; }
.task-feedback > h4 { font-size: 20px; margin: 0 0 10px; }
.task-feedback > label, .task-feedback [data-defect-area] > label { display: block; margin: 16px 0; max-width: 640px; }
.task-feedback select, .task-feedback textarea, .task-feedback input:not([type=hidden]) { min-height: 44px; box-sizing: border-box; width: 100%; }
.task-feedback button { min-height: 44px; }
.trial-defect-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.trial-defect-choices button { border: 1px solid #bdcce0; border-radius: 8px; padding: 8px 16px; background: #f7faff; }
.trial-more-actions { border-top: 1px solid #d8e1ef; padding-top: 12px; }
.trial-more-actions > summary { min-height: 44px; }
.analysis-machine-catalog { margin: 16px 0; padding: 16px; border: 1px solid #ccd9eb; border-radius: 12px; background: #f8faff; }
.analysis-machine-catalog > summary { cursor: pointer; font-weight: 700; min-height: 36px; }
.analysis-machine-catalog .catalog-choice-card { margin-top: 12px; }
.analysis-machine-catalog .catalog-choice-card > div { min-width: 0; width: 100%; }
.analysis-machine-catalog .workflow-check { display: flex; align-items: flex-start; gap: 10px; white-space: normal; }
.analysis-machine-catalog .workflow-check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; }
.equipment-catalog-link { margin: 16px 0; padding: 16px; border: 1px solid #ccd9eb; border-radius: 12px; background: #f8faff; }
.equipment-catalog-link > summary { cursor: pointer; font-weight: 700; min-height: 36px; }
.equipment-catalog-link [data-equipment-catalog-results] { display: grid; gap: 10px; margin-top: 12px; }
.equipment-catalog-link [data-equipment-catalog-preview] { margin-top: 12px; }
.equipment-catalog-link .catalog-choice-card { align-items: flex-start; flex-direction: column; }
.equipment-catalog-link .workflow-check { display: flex; align-items: flex-start; gap: 10px; white-space: normal; margin-top: 12px; }
.equipment-catalog-link .workflow-check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; }
@media (max-width: 760px) {
  .task-feedback, .task-final-editor, .task-history, .task-supporting { padding: 10px; }
  .task-trial-actions .workflow-actions > * { flex: 1 1 100%; text-align: center; }
  .condition-overview-toolbar, .condition-overview-tools, .condition-progress-compact { align-items:stretch; }
  .condition-overview-tools label { flex:1 1 100%; }
}
@media (max-width: 420px) {
  .configurable-sheet { grid-template-columns:1fr; padding:.45rem; }
  .configurable-sheet > p, .configurable-sheet > label { grid-column:1; }
  .condition-records > .trial-panel-section { width:100%; }
  .trial-matrix-scroll .trial-matrix { min-width:520px; }
  .condition-sheet .trial-matrix td, .condition-sheet .trial-matrix th { padding:.3rem; }
  .configurable-sheet .compact-scalars { grid-template-columns:1fr; }
}
