/* Shared ergonomics: allow toolbar wrapping without making the document horizontally scroll. */
.valve-filters{flex:1 1 100%;justify-content:center;gap:12px}
.valve-filters input{width:240px}
.valve-data-editor .table-wrap{max-height:65vh;overscroll-behavior:contain;scrollbar-gutter:stable}
.valve-data-editor thead th{position:sticky;top:0;z-index:2;font-size:14px;font-weight:700;background:#dceaf5;border-bottom:1px solid #b5cede}
.valve-data-editor th:nth-child(5){width:auto}
.valve-data-editor th:nth-child(6),.valve-data-editor th:nth-child(7){width:25%}
.valve-data-editor td{text-align:center}
.valve-data-editor td textarea{text-align:left}
#feedback:empty{display:none}
#feedback{min-height:24px;font-size:13px;color:#3c6b8f}
#feedback[data-kind="error"]{color:#ad4350}
header .actions{justify-content:flex-end}
button{touch-action:manipulation}
#manageDialog:has(.valve-import-guide){width:min(620px,calc(100vw - 24px));box-sizing:border-box}
.valve-import-guide{display:grid;gap:13px;min-width:0}
.valve-import-guide .valve-import-file{margin:0;color:#254b6e;font-weight:650;overflow-wrap:anywhere}
.valve-import-guide .valve-import-note{margin:0;color:#526d84;font-size:13px;line-height:1.55}
.valve-import-guide>label{display:grid;gap:6px;color:#254b6e}
.valve-import-modes{display:grid;gap:9px;margin:0;padding:0;border:0;min-width:0}
.valve-import-modes legend{padding:0 0 8px;color:#234867;font-weight:700}
.valve-import-guide .valve-import-mode{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:11px;margin:0;padding:11px 12px;border:1px solid #d7e4ef;border-radius:8px;background:#f8fbfe;cursor:pointer}
.valve-import-guide .valve-import-mode:has(input:checked){background:#eaf4fc;border-color:#7ca9ce}
.valve-import-guide .valve-import-mode:focus-within{outline:2px solid #3b79ad;outline-offset:2px}
.valve-import-guide .valve-import-mode input{width:auto;margin:0;accent-color:#346d9c}
.valve-import-mode strong,.valve-import-mode small{display:block;line-height:1.5}
.valve-import-mode small{margin-top:3px;font-size:12px;color:#526d84}
.valve-import-guide>button{justify-self:end}
.valve-import-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.valve-import-metrics>div{padding:10px;border:1px solid #d7e4ef;border-radius:8px;background:#f8fbfe}
.valve-import-metrics dt{font-size:13px;color:#526d84}
.valve-import-metrics dd{margin:5px 0 0;font-size:19px;font-weight:700;color:#234867}
.valve-import-result h3{margin:0;font-size:14px}
.valve-import-tags{max-height:220px;overflow:auto;margin:0;padding:10px 12px;border:1px solid #d7e4ef;border-radius:8px;font:inherit;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){
 .workspace{padding:14px 10px}
 header{padding:18px 14px}
 .notice{padding:10px 14px}
 #projectName{width:100%}
 .workspace>.section-heading,.workspace #projectEditor>.section-heading{align-items:stretch}
 .workspace .actions{gap:6px}
 .workspace .actions button{padding:8px 10px}
 .valve-filters{flex-wrap:wrap}
 .valve-filters input{flex:1;min-width:130px}
 .stat{min-width:100px;padding:12px}
 .stats{gap:8px}
 dialog{padding:16px}
 .user-row{flex-wrap:wrap}
}
