.ops { min-width: 0; padding: 0 clamp(12px, 2vw, 28px) 24px; }
.ops-head, .ops-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ops-head { margin: 8px 0 14px; justify-content: flex-end; }
.ops-dialog h3 { margin: 0; font-size: 1.1rem; }
.ops-head label { color: var(--muted); font-size: .82rem; }
.ops-table-wrap { min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ops table, .ops-dialog table { width: 100%; border-collapse: collapse; color: var(--text); font-variant-numeric: tabular-nums; font-size: .83rem; }
.ops th, .ops td, .ops-dialog th, .ops-dialog td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.ops th, .ops-dialog th { color: var(--muted); background: var(--bg); font-weight: 600; }
.ops td, .ops-dialog td { overflow-wrap: anywhere; }
.ops td strong, .ops-dialog td strong { font-weight: 600; }
.ops td small, .ops-dialog td small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.ops tr:last-child td, .ops-dialog tr:last-child td { border-bottom: 0; }
.ops-btn { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); padding: 6px 10px; font: inherit; cursor: pointer; }
.ops td .ops-btn { margin: 2px; }
.ops-btn.ops-primary { background: var(--text); color: var(--surface); border-color: var(--text); font-weight: 600; }
.ops-btn:disabled { opacity: .6; }
.ops-tag { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 8px; background: var(--bg); color: var(--muted); }
.ops-tag.positive { color: var(--green); }.ops-tag.warning { color: var(--amber); }
.ops-empty { padding: 18px; color: var(--muted); }
.ops-dialog { width: min(480px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); padding: 22px; }
.ops-dialog::backdrop { background: rgb(0 0 0 /.48); }
.ops-dialog form { display: grid; gap: 12px; }
.ops-field { display: grid; gap: 5px; font-size: .84rem; font-weight: 600; }
.ops-dialog input:not([type=checkbox]), .ops-dialog select, .ops-dialog textarea, .ops-head input { width: 100%; padding: 9px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: inherit; }
.ops-dialog textarea { min-height: 65px; resize: vertical; }
.ops-head input { width: auto; }
.ops-check { display: flex; align-items: center; gap: 7px; }
.ops-actions { justify-content: flex-end; margin-top: 6px; }
.ops-error { color: var(--red); margin: 0; }
.ops-head { justify-content:space-between; color:var(--muted); font-size: .86rem; }
.ops-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.ops-btn:not(:disabled):hover { border-color:var(--muted); }
.ops .ops-btn:focus-visible,.ops-dialog .ops-btn:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
.ops-section { margin-bottom:16px; padding:0; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.ops-section h2 { margin:0; padding:16px 18px; font-size: .95rem; }
.ops-section header { display:flex; align-items:center; justify-content:space-between; padding-right:16px; gap:12px; }
.ops-section .ops-table-wrap { border-width:1px 0 0; border-radius:0 0 10px 10px; }
.ops-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.ops-metrics > div { padding:16px 18px; background:var(--surface); border:1px solid var(--line); border-radius:10px; min-width:0; }
.ops-metrics span, .ops-metrics small, .ops-caption { color:var(--muted); font-size:.8rem; }
.ops-metrics strong { display:block; margin:8px 0 4px; font:600 clamp(1rem,1.6vw,1.4rem)/1.25 var(--sans);font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ops-metrics .green::before,.ops-metrics .amber::before,.ops-tag::before { content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px; }
.ops-metrics .green::before { color:var(--green); }.ops-metrics .amber::before { color:var(--amber); }
.ops-identity { display:flex; align-items:center; gap:9px; min-width:0; }
.ops-avatar { display:grid; place-items:center; width:30px; height:30px; flex:none; border-radius:7px; color:white; font-size:.7rem; font-weight:700; }
.ops-avatar.round {border-radius:50%;}
.ops-avatar.tint-0{background:#286a95}.ops-avatar.tint-1{background:#76558d}.ops-avatar.tint-2{background:#875238}.ops-avatar.tint-3{background:#25736d}.ops-avatar.tint-4{background:#6d617b}
.ops-row-actions { display:flex; flex-wrap:wrap; gap:4px; }
.ops-row-actions .ops-btn { margin:0; font-size:.77rem; }
.ops-presets,.ops-switch { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:.82rem; }
.ops-access { display:grid; grid-template-columns:minmax(155px,.35fr) minmax(0,1fr); border-top:1px solid var(--line); }
.ops-roster { padding:12px; display:flex; flex-direction:column; gap:4px; border-right:1px solid var(--line); }
.ops-roster .ops-btn { flex-direction:column; align-items:flex-start; padding:10px 12px; border:1px solid transparent; }
.ops-roster [aria-pressed=true] { border-color:var(--line); background:var(--bg); }
.ops small,.ops-access-form small { color:var(--muted); }
.ops-access-form { display:grid; gap:14px; padding:18px; min-width:0; }
.ops-access-form h3 { margin:0 0 3px; font-size:.98rem; }
.ops-access-form select { font:inherit; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:7px; }
.ops-switches { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:12px; }
.ops-perms,.ops-scope { min-width:0; margin:0; padding:8px 10px; border:1px solid var(--line); border-radius:7px; }
.ops-perms legend,.ops-scope legend { font-size:.8rem; font-weight:600; padding:0 4px; }
.ops-perms label,.ops-scope label:not([hidden]) { display:flex; align-items:center; gap:7px; padding:5px 0; font-size:.8rem; cursor:pointer; }
.ops-perms small { margin-left:auto; color:var(--amber); }
.ops-scope label:not([hidden]) { display:inline-flex; margin-right:12px; }
.ops-access-form input,.ops-perms input,.ops-switch input { accent-color:var(--green); }
.ops-save-status { margin-right:auto; font-size:.8rem; color:var(--muted); }
.ops-caption { display:flex; gap:6px; align-items:center; margin:14px 2px; }
.ops-lock-note {display:flex;align-items:flex-start;gap:7px;font-size:.8rem;line-height:1.5;color:var(--muted);margin:0}
.ops-lock-note svg {flex-shrink:0;margin-top:2px}
.ops-lock-note a {display:block;color:var(--text);text-decoration:underline}
.ops-mode,.ops-success-symbol { display:flex;align-items:center;gap:8px;border-radius:8px;padding:9px 12px;font-size:.86rem; }
.ops-mode { color:var(--amber);background:color-mix(in srgb,var(--amber) 12%,transparent); }
.ops-success-symbol { justify-content:center;width:44px;height:44px;border-radius:50%;color:var(--green);background:color-mix(in srgb,var(--green) 14%,transparent); }
.ops-review { display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 16px;margin:0;padding:12px;border:1px solid var(--line);border-radius:8px; }
.ops-review dt {color:var(--muted)}.ops-review dd {margin:0;overflow-wrap:anywhere;font-weight:500;}
.ops-box {position:relative;width:18px;height:18px;flex:none;}
.ops-box input {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer;}
.ops-box > span {display:grid;width:100%;height:100%;place-items:center;border:1.5px solid var(--muted);border-radius:4px;box-sizing:border-box;}
.ops-box svg {visibility:hidden;}
.ops-box input:checked + span {border-color:var(--green);background:var(--green);color:var(--surface);}
.ops-box input:checked + span svg {visibility:visible;}
.ops-box input:focus-visible + span {outline:2px solid var(--text);outline-offset:2px;}
.ops-box input:disabled + span {opacity:.6;}
.ops-switch input {appearance:none;width:28px;height:16px;border:1px solid var(--line);border-radius:99px;background:var(--bg);cursor:pointer;position:relative;}
.ops-switch input::before {content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:var(--muted);}
.ops-switch input:checked {background:var(--green);border-color:var(--green);}
.ops-switch input:checked::before {left:14px;background:var(--surface);}
@media (min-width:721px) {
  .ops-table-wrap td { vertical-align:middle; }
  .ops-table-wrap th { font-size:.76rem; }
}
@media (max-width: 720px) {
  .ops-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .ops-metrics > div { padding:12px; }
  .ops-access { grid-template-columns:minmax(0,1fr); }
  .ops-roster { flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line); }
  .ops-roster .ops-btn { flex-shrink:0; }
  .ops-table-wrap { overflow: visible; }
  .ops table thead, .ops-dialog table thead { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
  .ops table, .ops tbody, .ops-dialog table, .ops-dialog tbody { display: block; }
  .ops tr, .ops-dialog tr { display: grid; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .ops td, .ops-dialog td { display: grid; grid-template-columns: 32% 1fr; gap: 5px 8px; border: 0; padding: 4px; }
  .ops td::before, .ops-dialog td::before { content: attr(data-label); color: var(--muted); align-self: start; }
  .ops td > *, .ops-dialog td > * { grid-column: 2; }
}
