/* Properties browser: an instrument ledger, dense without becoming cryptic. */
.sw-task-detail:has(.sw-properties){width:min(1680px,100%)}
.sw-task-detail-mount:has(.sw-properties){max-width:none;border-top:3px solid var(--sw-acid)}
.sw-properties{--sp-row:#0d1312;--sp-rule:#192422;display:grid;grid-template-rows:auto auto minmax(260px,1fr) auto auto;min-height:min(780px,calc(100dvh - 165px));background:#0b0f0f}
.sw-properties-controls{display:grid;grid-template-columns:auto minmax(180px,.8fr) minmax(250px,1.45fr) 120px auto auto;align-items:end;gap:10px;padding:12px 14px;border-bottom:1px solid var(--sw-line-strong);background:#151e1c}
.sw-properties-controls>label{display:grid;gap:5px;color:var(--sw-muted);font:600 8px var(--sw-mono);letter-spacing:.09em;text-transform:uppercase}
.sw-properties-controls select,.sw-properties-controls input[type="search"]{width:100%;height:39px;padding:7px 9px;border:1px solid var(--sw-line-strong);border-radius:0;background:#0e1917;color:var(--sw-ink);font:500 9px var(--sw-mono)}
.sw-properties-controls fieldset{display:flex;min-height:39px;margin:0;padding:0;border:1px solid var(--sw-line-strong);background:#0e1917}
.sw-properties-controls fieldset legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.sw-properties-controls fieldset label{position:relative;display:grid;place-items:center;min-width:82px;padding:0 10px;color:var(--sw-muted);font:600 9px var(--sw-mono);text-transform:uppercase}
.sw-properties-controls fieldset label+label{border-left:1px solid var(--sw-line)}
.sw-properties-controls fieldset input{position:absolute;opacity:0;pointer-events:none}
.sw-properties-controls fieldset label:has(input:checked){background:var(--sw-deep);color:#c4d2cc;box-shadow:inset 0 -3px var(--sw-acid)}
.sw-properties-return{display:flex!important;min-height:39px;align-items:center;grid-template-columns:17px minmax(120px,1fr)!important;padding:6px 9px;border:1px solid var(--sw-line);background:#0c1110;line-height:1.35!important}
.sw-properties-return input{width:16px;height:16px;accent-color:var(--sw-teal)}
.sw-properties-export{display:flex;gap:6px}.sw-properties-export .sw-button{min-height:39px;white-space:nowrap}
.sw-properties-status{display:block;min-height:32px;padding:8px 14px;border-bottom:1px solid var(--sw-line);background:#102a26;color:#111817;font:500 8px/1.5 var(--sw-mono);letter-spacing:.025em}
.sw-properties-status::before{content:"LIVE TABLE";display:inline-block;margin-right:10px;padding:2px 5px;background:var(--sw-acid);color:var(--sw-deep);font-weight:700;letter-spacing:.1em}
.sw-properties-table-wrap{min-height:0;overflow:auto;overscroll-behavior:contain;background:#0e1917;scrollbar-width:thin;scrollbar-color:var(--sw-line-strong) transparent}
.sw-properties-table{width:100%;min-width:1280px;border-spacing:0;border-collapse:separate;table-layout:fixed;font-family:var(--sw-mono)}
.sw-properties-table th{position:sticky;z-index:3;top:0;height:35px;padding:7px 9px;border-right:1px solid #456058;border-bottom:1px solid #456058;background:#173a34;color:#111817;font:600 7px var(--sw-mono);letter-spacing:.09em;text-align:left;text-transform:uppercase}
.sw-properties-table th:nth-child(1){width:190px}.sw-properties-table th:nth-child(2){width:180px}.sw-properties-table th:nth-child(3){width:210px}.sw-properties-table th:nth-child(4){width:130px}.sw-properties-table th:nth-child(5){width:145px}.sw-properties-table th:nth-child(6){width:190px}.sw-properties-table th:nth-child(7){width:235px}.sw-properties-table th:nth-child(8){width:145px}
.sw-properties-table tbody tr{cursor:pointer;outline:none;background:var(--sp-row);transition:background .1s ease,box-shadow .1s ease}
.sw-properties-table tbody tr:nth-child(even){background:#0a0e0d}.sw-properties-table tbody tr:hover{background:#151e1d}.sw-properties-table tbody tr:focus-visible{position:relative;z-index:2;background:#151e1c;box-shadow:inset 4px 0 var(--sw-cyan),inset 0 0 0 2px var(--sw-cyan)}
.sw-properties-table td{height:57px;padding:7px 9px;overflow:hidden;border-right:1px solid var(--sp-rule);border-bottom:1px solid var(--sp-rule);vertical-align:top}
.sw-properties-table td strong,.sw-properties-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sw-properties-table td strong{color:var(--sw-ink);font:600 9px/1.35 var(--sw-mono)}.sw-properties-table td small{margin-top:4px;color:var(--sw-muted);font:400 7.5px/1.35 var(--sw-mono)}
.sw-properties-table td:first-child strong{color:var(--sw-teal);font-size:10px}.sw-properties-table td:first-child small,.sw-properties-table td:nth-child(3) small{font-size:6.8px}
.sw-properties-empty{height:150px!important;padding:35px!important;color:var(--sw-muted);font:500 10px var(--sw-mono);text-align:center;cursor:default}
.sw-properties-pages{display:grid;grid-template-columns:auto minmax(150px,1fr) auto;align-items:center;gap:10px;padding:9px 14px;border-top:1px solid var(--sw-line-strong);background:#151e1c}.sw-properties-pages output{text-align:center;color:var(--sw-ink-2);font:600 9px var(--sw-mono)}
.sw-properties-note{margin:0;padding:8px 14px;border-top:1px solid var(--sw-line);background:#0c1211;color:var(--sw-muted);font:500 7.5px/1.5 var(--sw-mono)}

@media(max-width:1180px){
  .sw-properties-controls{grid-template-columns:auto minmax(150px,1fr) minmax(230px,1.5fr) 110px}.sw-properties-return{grid-column:1/3}.sw-properties-export{grid-column:3/5;justify-content:flex-end}
}
@media(max-width:780px){
  .sw-task-body:has(.sw-properties){padding:8px}.sw-task-detail:has(.sw-properties){width:100%}.sw-properties{min-height:calc(100dvh - 132px);grid-template-rows:auto auto minmax(300px,1fr) auto auto}
  .sw-properties-controls{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;padding:10px}.sw-properties-controls fieldset,.sw-properties-search,.sw-properties-return,.sw-properties-export{grid-column:1/-1}.sw-properties-controls fieldset label{width:50%}.sw-properties-export{display:grid;grid-template-columns:1fr 1fr}.sw-properties-export .sw-button{width:100%}
  .sw-properties-table{min-width:1040px}.sw-properties-table th:nth-child(1){position:sticky;z-index:4;left:0;width:165px}.sw-properties-table td:first-child{position:sticky;z-index:2;left:0;width:165px;background:inherit;box-shadow:1px 0 var(--sw-line-strong)}
  .sw-properties-pages{position:sticky;z-index:5;bottom:0;padding:max(9px,env(safe-area-inset-bottom)) 9px 9px}.sw-properties-pages .sw-button{min-height:42px;padding-inline:8px}.sw-properties-note{font-size:7px}
}
@media(prefers-reduced-motion:reduce){.sw-properties-table tbody tr{transition:none}}
