/* Scoped adaptation of Hermes OPS v0.4.1: existing Triwwel shell stays intact. */
.ops-toolbar,.ops-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.ops-editor{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:16px;align-items:start}
.ops-sheet-wrap{overflow:auto;border:1px solid #35383d;border-radius:12px;background:#191b1e;max-height:70vh}
.ops-sheet{width:100%;min-width:760px;border-collapse:collapse;margin:0}
.ops-sheet th{position:sticky;top:0;background:#24272b;z-index:1;color:#a8abb0;font-size:12px;text-align:left;padding:12px}
.ops-sheet td{padding:8px;border-bottom:1px solid #292c30;vertical-align:middle}
.ops-sheet input{min-width:70px;width:100%;font-size:16px;min-height:44px}
.ops-sheet td:nth-child(2){min-width:230px}
.ops-sheet .selected td{background:#2a2025}
.ops-sheet .ops-group td{background:#222529;font-weight:bold}
.ops-group input{flex:1;min-width:150px}
.ops-actions{margin:0;flex-wrap:nowrap}
.ops-editor button,.ops-toolbar button,.ops-inventory button{min-height:44px;min-width:44px}
.ops-detail{display:block;align-items:initial;gap:0;background:#191b1e;border:1px solid #35383d;border-radius:12px;padding:18px;position:sticky;top:16px}
.ops-detail label{display:block;margin:14px 0}
.ops-detail select,.ops-detail input:not([type=checkbox]),.ops-detail textarea{width:100%;font-size:16px;min-height:44px}
.ops-check{display:flex!important;align-items:center;gap:10px;min-height:44px}
.ops-check input{width:20px;height:20px;accent-color:#ff1642}
.ops-meta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:16px}
.ops-meta input,.ops-meta select{width:100%;font-size:16px;min-height:44px}
.ops-manual{display:block;color:#caaaf8}.ops-manual[hidden]{display:none}
.ops-inventory{min-width:1150px}.ops-inventory td:nth-child(2){min-width:100px}.ops-inventory td:nth-child(3){min-width:180px}
dialog:has(.ops-inventory){width:min(1400px,96vw);max-width:96vw}
@media(max-width:1050px){.ops-editor{grid-template-columns:minmax(0,1fr)}.ops-detail{position:static}.ops-meta{grid-template-columns:1fr}.ops-actions{flex-wrap:wrap}}
.feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
