/* Survey V2: desktop rows stay editable; field mode reuses their actual controls. */
.survey-field-start{width:100%;margin:1rem 0}
.survey-field-header[hidden],.survey-field-footer[hidden]{display:none!important}
.survey-field-header,.survey-field-footer{background:var(--ds-surface,var(--surface,#fff));padding:.75rem;border-bottom:1px solid #c8d9d5}
.survey-field-title [data-field-name]{flex:1;min-width:0;font-size:1.1rem;font-weight:700;text-align:left;overflow-wrap:anywhere}
.survey-field-kpis{font-size:.9rem;padding-top:.4rem;color:var(--ds-text,var(--text,#20342f))}
.survey-field-navigation>*{flex:1}
.survey-field-row-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.5rem}
.survey-field-extras,.survey-field-cover{grid-column:1/-1;min-width:0;border:1px solid #c4dcd5;border-radius:.75rem;padding:.75rem;margin:.4rem 0}
.survey-field-extras summary{cursor:pointer;font-weight:700;color:#126f62}
.survey-process-quantity{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:.5rem;align-items:end;padding:.5rem 0}
.survey-process-quantity input{min-width:0;width:100%;box-sizing:border-box}
.survey-complete-control{grid-column:1/-1;display:flex;align-items:center;gap:.5rem}
.survey-field-picker{position:absolute;inset:0;z-index:20;background:var(--ds-surface,var(--surface,#fff));padding:1rem;overflow:auto;display:flex;flex-direction:column;gap:.75rem}
.survey-dialog.is-field-mode{position:fixed!important;inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border-radius:0!important;overflow:hidden!important;box-sizing:border-box}
.survey-dialog.is-field-mode #surveyForm{height:100%;display:flex;flex-direction:column;min-width:0}
.survey-dialog.is-field-mode #surveyForm>:not(.survey-field-header):not(.survey-field-footer):not(#surveySections):not(.survey-editor-body):not(.survey-field-picker):not(.survey-keypad-host){display:none!important}
.survey-dialog.is-field-mode #surveySections{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:.75rem}
.survey-dialog.is-field-mode .survey-section:not(.survey-field-section),.survey-dialog.is-field-mode [data-sr-row]:not(.survey-field-active){display:none!important}
.survey-dialog.is-field-mode .survey-field-section{border:0!important;box-shadow:none!important;padding:0!important;background:transparent!important}
.survey-dialog.is-field-mode .survey-field-section>:not([data-repeat]){display:none!important}
.survey-dialog.is-field-mode .survey-field-active{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:auto!important;min-width:0!important;gap:.65rem!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
.survey-dialog.is-field-mode .survey-field-active>*{min-width:0!important;max-width:100%!important;box-sizing:border-box;overflow-wrap:anywhere}
.survey-dialog.is-field-mode input:not([type=checkbox]),.survey-dialog.is-field-mode select,.survey-dialog.is-field-mode textarea{width:100%;min-width:0;box-sizing:border-box;font-size:16px}
.survey-dialog.is-field-mode [data-remove-row],.survey-dialog.is-field-mode [data-field-edit]{display:none!important}
.survey-field-footer{flex:none;border-top:1px solid #c8d9d5;border-bottom:0;padding-bottom:calc(.6rem + env(safe-area-inset-bottom))}
.survey-dialog.is-field-mode .survey-process-quantity{grid-template-columns:minmax(0,1fr)}
.survey-dialog.is-field-mode .survey-field-header{flex:none;padding-top:calc(.65rem + env(safe-area-inset-top))}
:root[data-theme=dark] .survey-field-header,:root[data-theme=dark] .survey-field-footer,:root[data-theme=dark] .survey-field-picker{background:#172b28;color:#edf6f3}

.survey-field-row-actions{display:block}
.survey-field-row-actions summary{cursor:pointer;padding:.35rem;font-size:.85rem}
.survey-field-row-actions[open] button{margin:.25rem}
.survey-field-title [data-field-name]{padding:.35rem 0}

.survey-field-footer{position:relative}

.survey-version-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.survey-custom-work{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;border:1px solid #c4dcd5;border-radius:.75rem;padding:.75rem;margin:.75rem 0}
.survey-custom-work label:has(textarea),.survey-custom-work details{grid-column:1/-1}
.survey-custom-work input,.survey-custom-work textarea,.survey-base-work input{min-width:0;max-width:100%;box-sizing:border-box}
.survey-base-work{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem;margin:.5rem 0;align-items:center}
.survey-project-custom summary{font-weight:700;cursor:pointer}
.survey-version-panel [data-version-list]{display:flex;flex-wrap:wrap;gap:.4rem}
.survey-version-panel [data-version-list] button{white-space:normal;text-align:left}
.survey-dialog.is-field-mode .survey-custom-work{grid-template-columns:minmax(0,1fr)}
@media(max-width:600px){.survey-custom-work,.survey-base-work{grid-template-columns:minmax(0,1fr)}}

/* Header has independent title/status tracks: long save text cannot shrink the title. */
dialog.survey-dialog[open]{box-sizing:border-box;width:min(1100px,calc(100vw - 16px));min-width:0}
dialog.survey-dialog[open]>#surveyForm{box-sizing:border-box;min-width:0;width:100%}
dialog.survey-dialog[open] .survey-modal-head{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:start}
dialog.survey-dialog[open] .survey-modal-head>div:first-child{grid-column:1;min-width:0}
dialog.survey-dialog[open] .survey-modal-head>[data-close]{grid-column:2;grid-row:1;width:44px;height:44px}
dialog.survey-dialog[open] .survey-save-state{grid-column:1/-1;grid-row:2;white-space:normal;overflow-wrap:anywhere;margin:0;justify-self:stretch}
.survey-dialog .survey-step-strip span{white-space:nowrap}
.survey-field-context{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:.5rem}
.survey-field-context strong{font-size:.85rem;letter-spacing:.06em;color:#126f62;min-width:0}
.survey-field-context [data-field-close]{width:44px;height:44px;min-width:44px}
.survey-field-save-status{font-size:.8rem;line-height:1.35;margin-top:.35rem;white-space:normal;overflow-wrap:anywhere;color:var(--survey-muted,#596d69)}
.survey-field-group{display:contents}
.survey-field-group>h3{display:none}
.survey-dialog.is-field-mode .survey-field-group{display:grid;gap:.65rem;padding:.8rem;border:1px solid #d4e3df;border-radius:.75rem;background:var(--ds-surface,var(--surface,#fff))}
.survey-dialog.is-field-mode .survey-field-group>h3{display:block;margin:0;font-size:.9rem;color:#126f62}
.survey-dialog.is-field-mode [data-field-group=openings]{border-inline-start:3px solid #91aaa1}
.survey-dialog.is-field-mode .survey-field-header{background:var(--ds-surface,var(--surface,#fff));z-index:4}
.survey-dialog.is-field-mode{height:var(--survey-viewport-height,100dvh)!important;max-height:var(--survey-viewport-height,100dvh)!important;top:var(--survey-viewport-top,0px)!important;bottom:auto!important}
.survey-dialog.is-field-mode #surveyForm{padding:0!important;box-sizing:border-box}
@media(max-width:700px){dialog.survey-dialog[open] input:not([type=checkbox]),dialog.survey-dialog[open] select,dialog.survey-dialog[open] textarea{font-size:16px}}

/* Felmérések */
:is(#surveysView,.survey-workspace,.survey-area-dialog) {
 --survey-panel:#fff;--survey-soft:#f3f6f8;--survey-border:#dce3e8;
 --survey-text:#172b3a;--survey-muted:#596b78;--survey-control:#0f6f67;
}
:root[data-theme=dark] :is(#surveysView,.survey-workspace,.survey-area-dialog) {
 --survey-panel:#172331;--survey-soft:#202e3b;--survey-border:#30404e;
 --survey-text:#e8f0f5;--survey-muted:#a8b8c5;--survey-control:#81cfc1;
}
#surveysView [hidden],.survey-workspace [hidden],.survey-area-dialog [hidden] {display:none!important}
#surveysView .page-header {min-height:60px;margin-bottom:10px}
#surveysView .page-header h1 {font-size:28px;margin:0}
#surveysView .ui-list-filters {gap:8px;margin-bottom:12px}
#surveysView .ui-list-filters input {min-width:min(260px,100%)}
#surveysView .survey-list-filters > div {display:flex;gap:8px;flex-wrap:wrap}
#surveysView .survey-list-filters > summary {display:none}
#surveysView #surveysTable {min-width:0;overflow-x:auto;padding:0;background:none;border:0;box-shadow:none}
#surveysView .survey-data-table {width:100%;min-width:920px;color:var(--survey-text);background:var(--survey-panel);border:1px solid var(--survey-border)}
#surveysView .survey-data-table th {background:var(--survey-soft);color:var(--survey-muted);font-size:12px}
#surveysView .survey-data-table th button {border:0;background:none;color:inherit;font:inherit;font-weight:650;cursor:pointer;padding:5px 0}
#surveysView .survey-data-table th[aria-sort] button {color:var(--survey-control)}
#surveysView .survey-data-table :is(th,td) {padding:8px 10px;border-color:var(--survey-border)}
#surveysView .survey-data-table td {height:56px;vertical-align:middle;font-size:13px}
#surveysView .survey-data-table td > small {display:block;margin-top:4px;color:var(--survey-muted)}
#surveysView .survey-data-table .entity-link {padding:0;text-align:left;color:var(--survey-control);overflow-wrap:anywhere}
#surveysView .survey-list-tags {display:flex;flex-wrap:wrap;gap:4px}
#surveysView .survey-list-tags > span {padding:3px 5px;background:var(--survey-soft);border:1px solid var(--survey-border);border-radius:6px;white-space:nowrap}
#surveysView .survey-list-tags svg {width:14px;height:14px}
#surveysView .survey-list-actions {display:flex;gap:4px;flex-wrap:wrap;white-space:nowrap}
#surveysView .survey-list-actions button {min-height:36px;padding:5px 8px;background:var(--survey-soft);color:var(--survey-text);border-color:var(--survey-border);border-radius:8px}
#surveysView [data-survey-quote],#surveysView [data-survey-quote-open] {color:var(--survey-control);font-weight:650}
#surveysView .survey-status-COMPLETED {background:#e6f3eb;color:#247447}
#surveysView .survey-status-QUOTE_PREPARED {background:#e5eff8;color:#315e91}
#surveysView .survey-status-DRAFT {background:#fff3db;color:#80550d}
:root[data-theme=dark] #surveysView .survey-status-COMPLETED {background:#193629;color:#85d4a0}
:root[data-theme=dark] #surveysView .survey-status-QUOTE_PREPARED {background:#253851;color:#9bbce6}
:root[data-theme=dark] #surveysView .survey-status-DRAFT {background:#382d1d;color:#f3ca85}

dialog.survey-workspace[open]:not(.is-field-mode) {
 width:min(1450px,calc(100vw - 24px));max-width:none;height:94dvh;max-height:94dvh;
 background:var(--survey-panel);color:var(--survey-text);overflow:hidden
}
dialog.survey-workspace[open] > #surveyForm {display:flex;flex-direction:column;height:100%;min-height:0;gap:0;padding:0!important;overflow:hidden}
dialog.survey-workspace[open]:not(.is-field-mode) .survey-modal-head {
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto) 44px;align-items:center;gap:8px;
 padding:12px 24px;background:var(--survey-panel);color:var(--survey-text);border-color:var(--survey-border);flex:none
}
dialog.survey-workspace .survey-modal-head h2 {font-size:20px;margin:3px 0 0;color:var(--survey-text)}
dialog.survey-workspace .survey-modal-head > [data-close] {grid-column:3}
dialog.survey-workspace .survey-modal-head .survey-save-state {grid-column:2;grid-row:1;max-width:24ch;font-size:12px;color:var(--survey-text);background:var(--survey-soft)}
dialog.survey-workspace:not(.is-field-mode) #surveyForm > .survey-work-tabs {
 display:flex;gap:5px;flex:none;overflow-x:auto;margin:0;max-width:none;padding:4px 24px;
 background:var(--survey-panel);border-bottom:1px solid var(--survey-border);scrollbar-width:thin
}
.survey-work-tabs button {min-height:40px;border:0;border-bottom:2px solid transparent;background:none;color:var(--survey-muted);font:inherit;font-weight:650;white-space:nowrap;padding:5px 12px;cursor:pointer}
.survey-work-tabs [aria-selected=true] {border-color:var(--survey-control);color:var(--survey-control);background:var(--survey-soft)}
dialog.survey-workspace:not(.is-field-mode) #surveyForm > .survey-editor-body {
 flex:1;min-height:0;min-width:0;max-width:none;margin:0;padding:16px 24px;overflow:auto;overscroll-behavior:contain
}
.survey-workspace [role=tabpanel] {min-width:0}
.survey-workspace .survey-basic-fields {max-width:1040px}
.survey-workspace .survey-types-picker {max-width:1040px;margin-top:14px;color:var(--survey-text);background:var(--survey-soft);border-color:var(--survey-border)}
.survey-workspace .survey-types-picker .survey-type-buttons button {min-width:0;word-break:normal;overflow-wrap:normal}
.survey-workspace .survey-field-start {width:auto;min-height:44px;margin:10px 0}
dialog.survey-workspace:not(.is-field-mode) #surveyForm > .modal-actions {
 display:flex;flex:none;justify-content:flex-start;gap:8px;margin:0;padding:8px 24px;
 background:var(--survey-panel);border-color:var(--survey-border)
}
dialog.survey-workspace:not(.is-field-mode) #surveyForm > .survey-keypad-host {max-width:none;margin:0;padding:0}
.survey-workspace .survey-section {border-color:var(--survey-border);background:var(--survey-panel)}
.survey-workspace .survey-section [data-section-summary] {padding-block:5px}
.survey-workspace .survey-repeat-row {background:var(--survey-soft);border-color:var(--survey-border);min-width:0}
.survey-workspace :is(input:not([type=checkbox],[type=radio],[type=file]),select,textarea) {
 background:var(--survey-panel);color:var(--survey-text);border-color:var(--survey-border);border-radius:8px;min-width:0
}
.survey-workspace .survey-row-review {display:none}
.survey-workspace:not(.is-field-mode) [data-readonly=true] .survey-repeat-row {
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px 8px;margin:4px 0;background:var(--survey-panel);border:1px solid var(--survey-border)
}
.survey-workspace:not(.is-field-mode) [data-readonly=true] .survey-row-review,
.survey-workspace:not(.is-field-mode) .survey-row-review {
 grid-column:1/-1;min-width:0;padding:6px 8px;text-align:left;border:0;border-radius:8px;background:var(--survey-soft);color:var(--survey-text);font:inherit;cursor:pointer
}
.survey-workspace:not(.is-field-mode) [data-readonly=true] .survey-row-review {
 display:grid;grid-template-columns:minmax(95px,1fr) minmax(90px,.7fr) minmax(180px,2.1fr) minmax(90px,.8fr);gap:7px;align-items:center;min-height:44px
}
.survey-workspace .survey-row-review small {color:var(--survey-muted)}
.survey-workspace .survey-row-review > span {color:var(--survey-control);font-weight:650}
.survey-workspace .survey-row-review > small:last-child::after {content:' ⌄';color:var(--survey-control)}
.survey-workspace .survey-row-review[aria-expanded=true] > small:last-child::after {content:' ⌃'}
.survey-workspace [data-readonly=true] .survey-row-review[aria-expanded=false] ~ *,
.survey-workspace [data-readonly=true] :is([data-survey-text-control],.person-combobox-input,.survey-repeat-head) {display:none!important}
.survey-workspace .survey-read-value {display:block;color:var(--survey-text);font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
.survey-workspace #surveyOverview > :is(.survey-summary-card,.survey-version-panel,.survey-project-custom,.quantity-geometry) {
 position:static;max-width:none;margin:0 0 12px;padding:12px;border:1px solid var(--survey-border);border-radius:12px;background:var(--survey-panel);color:var(--survey-text)
}
.survey-workspace #surveyOverview > label {display:grid;gap:4px;margin-block:12px}
.survey-workspace .survey-quantity-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.survey-workspace .survey-quantity-pair > section {min-width:0;padding:10px;border:1px solid var(--survey-border);border-radius:8px;background:var(--survey-soft)}
.survey-workspace .survey-summary-values {display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:8px}
.survey-workspace .survey-summary-values span {font-size:16px;font-variant-numeric:tabular-nums;color:var(--survey-control)}
.survey-workspace .survey-version-panel summary {cursor:pointer}
.survey-workspace #surveyFilesSection {background:var(--survey-panel);border-color:var(--survey-border)}
.survey-workspace #surveyFilesBox {display:grid;gap:6px}
.survey-workspace .survey-file-row {min-width:0;padding:8px;background:var(--survey-soft);border-color:var(--survey-border)}
.survey-workspace .survey-file-row a {overflow-wrap:anywhere;color:var(--survey-control)}
.survey-workspace .survey-calculator-control {display:flex;min-width:0;align-items:stretch;gap:4px}
.survey-workspace .survey-calculator-control input {flex:1;min-width:0}
.survey-workspace .survey-calc-trigger {display:none}
.survey-workspace .survey-calc-trigger:focus-visible,.survey-work-tabs button:focus-visible,.survey-row-review:focus-visible {outline:2px solid var(--survey-control);outline-offset:1px}
.survey-workspace .survey-field-context {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px}
.survey-workspace .survey-field-context strong {font-size:13px;letter-spacing:0}
.survey-workspace .survey-field-context [data-field-close] {order:-1;width:auto;min-width:44px;min-height:44px;color:var(--survey-control);font-weight:700}
.survey-workspace.is-field-mode #surveyForm > .survey-editor-body,
.survey-workspace.is-field-mode #surveyMeasurements {flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.survey-workspace.is-field-mode :is(.survey-field-header,.survey-field-footer,.survey-field-picker) {background:var(--survey-panel);border-color:var(--survey-border);color:var(--survey-text)}
.survey-workspace.is-field-mode .survey-field-kpis {font-size:clamp(14px,4.1vw,24px);font-weight:700;color:var(--survey-text)}
.survey-workspace.is-field-mode .survey-field-group {grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;background:var(--survey-panel);border-color:var(--survey-border)}
.survey-workspace.is-field-mode .survey-field-group > :is(h3,:has([data-k=roomName],[data-k=name],[data-k=description],textarea)) {grid-column:1/-1}
.survey-workspace.is-field-mode .survey-field-active :is(input:not([type=checkbox],[type=file]), select) {min-height:48px}
.survey-workspace .er3-room-card {margin:0;padding:8px 10px;min-height:48px}
.survey-workspace .survey-field-picker {gap:6px}
.survey-workspace [data-keypad-result] {color:var(--survey-control)}
.survey-workspace [data-keypad-result]:empty {display:none}
.survey-area-dialog[open] {
 width:min(540px,calc(100vw - 16px));max-width:540px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
 padding:16px;overflow:auto;border-radius:12px;background:var(--survey-panel);color:var(--survey-text)
}
.survey-area-dialog h3 {margin:0;font-size:20px}
.survey-area-dialog > p {font-size:13px;margin:5px 0 8px;color:var(--survey-muted)}
.survey-area-dialog .survey-area-inputs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.survey-area-dialog input {width:100%;min-width:0;min-height:44px;font-size:16px;background:var(--survey-panel);color:var(--survey-text);border-color:var(--survey-border)}
.survey-area-dialog .survey-area-preview {display:grid;gap:3px;margin:8px 0;padding:8px;border-radius:8px;background:var(--survey-soft)}
.survey-area-dialog .survey-area-preview > div {display:flex;justify-content:space-between;gap:8px}
.survey-area-dialog dd {margin:0;color:var(--survey-control);font-weight:700}
.survey-area-dialog [data-area-error]:empty {display:none}
.survey-area-dialog .modal-actions {gap:4px;margin:8px 0 0;flex-wrap:wrap}
.survey-area-dialog .modal-actions button {min-height:44px}
.survey-area-dialog [data-field-done] {background:#0f6f67;color:#fff}
@media (any-pointer:coarse), (max-width:760px) {
 .survey-workspace:not(.is-field-mode) .survey-calc-trigger {min-width:44px;min-height:44px;display:grid;place-items:center;border:1px solid var(--survey-border);border-radius:8px;background:var(--survey-soft);color:var(--survey-control);cursor:pointer}
}
@media(max-width:760px) {
 #surveysView .page-header h1 {font-size:24px}
 #surveysView .survey-list-filters > summary {display:list-item;min-height:44px;line-height:44px;color:var(--survey-control);cursor:pointer}
 #surveysView .survey-data-table {min-width:0;display:block;border:0;background:none}
 #surveysView .survey-data-table thead {display:none}
 #surveysView .survey-data-table tbody {display:grid;gap:8px}
 #surveysView .survey-data-table tr {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;padding:9px 11px;border:1px solid var(--survey-border);border-radius:12px;background:var(--survey-panel)}
 #surveysView .survey-data-table td {display:block;height:auto;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
 #surveysView .survey-data-table :is(td:nth-child(2),td:nth-child(6),td:last-child) {grid-column:1/-1}
 #surveysView .survey-data-table td:nth-child(8) {grid-area:1/2}
 #surveysView .survey-data-table .survey-list-actions button {min-height:44px}
 dialog.survey-workspace[open]:not(.is-field-mode) {width:calc(100vw - 8px);height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8px)}
 dialog.survey-workspace[open]:not(.is-field-mode) .survey-modal-head {padding:6px 12px;grid-template-columns:minmax(0,1fr) 44px}
 dialog.survey-workspace .survey-modal-head h2 {font-size:16px}
 dialog.survey-workspace .survey-modal-head > [data-close] {grid-column:2}
 dialog.survey-workspace .survey-modal-head .survey-save-state {grid-column:1/-1;grid-row:2;max-width:none}
 dialog.survey-workspace:not(.is-field-mode) #surveyForm > :is(.survey-work-tabs,.survey-editor-body,.modal-actions) {padding-inline:12px}
 .survey-work-tabs button {min-height:44px;font-size:13px;padding-inline:8px}
 .survey-workspace .survey-type-buttons button [data-work-type] {flex-wrap:wrap;justify-content:center}
 .survey-workspace:not(.is-field-mode) .survey-repeat-row {grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0}
 .survey-workspace:not(.is-field-mode) .survey-repeat-head {display:none}
 .survey-workspace:not(.is-field-mode) .survey-row-review,
 .survey-workspace:not(.is-field-mode) [data-readonly=true] .survey-row-review {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;min-height:44px}
 .survey-workspace:not(.is-field-mode) .survey-row-review[aria-expanded=false] ~ * {display:none!important}
 .survey-workspace :is(input:not([type=checkbox],[type=file]),select,textarea) {font-size:16px;min-height:44px}
 .survey-workspace .survey-quantity-pair {gap:6px}
 .survey-workspace .survey-quantity-pair > section {padding:7px}
 dialog.survey-workspace:not(.is-field-mode) #surveyForm > .modal-actions {padding-block:6px;font-size:13px}
}
.survey-workspace .survey-file-group h3 {font-size:15px;margin:2px 0 7px}
.survey-workspace .survey-photo-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px}
.survey-workspace .survey-photo-grid .survey-file-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px}
.survey-workspace .survey-photo-grid .survey-file-row small {grid-row:2;grid-column:1}
.survey-workspace .survey-photo-grid .survey-file-row button {grid-row:1/3;grid-column:2}
.survey-workspace .survey-doc-list {display:grid;gap:5px}
.survey-workspace .survey-read-row-more {grid-column:1/-1;padding:8px;background:var(--survey-soft);border-radius:8px}
.survey-workspace .survey-read-row-more p {white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.survey-workspace .survey-read-row-more a {display:block;margin:5px 0;color:var(--survey-control)}
.survey-draft-choice [data-draft-context] > p {margin:4px 0}
.survey-draft-choice > .modal-actions {gap:6px;flex-wrap:wrap}
.survey-workspace .survey-photo-grid img {display:block;width:100%;max-height:124px;aspect-ratio:4/3;object-fit:cover;border-radius:6px;margin-bottom:4px}
dialog.modal.survey-dialog.survey-workspace[open] {background:var(--survey-panel);color:var(--survey-text)}
dialog.survey-dialog.survey-workspace[open]:not(.is-field-mode) > #surveyForm {padding:0!important}
dialog.survey-workspace:not(.is-field-mode) #surveyForm > :is(.survey-modal-head,.modal-actions) {position:static;margin:0}
@media(max-width:760px) {
 dialog.survey-workspace:not(.is-field-mode) #surveyForm > .modal-actions > button {width:auto;min-height:44px;flex:1 1 auto}
}
