/* TWINS v0.2.86 — 4K/full-width ops dashboard */
.ops-page{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:10px 14px 28px!important;
}
.ops-head{
  align-items:center!important;
  margin-bottom:8px!important;
  min-height:34px;
}
.ops-head h1{font-size:18px!important;line-height:1.1}
.ops-head p{font-size:9px!important;margin-top:2px!important}
.ops-head a{padding:5px 8px!important;border-radius:7px!important;font-size:9px!important}

.ops-grid{
  grid-template-columns:repeat(9,minmax(100px,1fr))!important;
  gap:5px!important;
}
.ops-card{
  min-height:58px!important;
  padding:8px 9px!important;
  border-radius:9px!important;
}
.ops-card small{font-size:8px!important;line-height:1.15}
.ops-card strong{font-size:19px!important;margin-top:4px!important}
.ops-card em{font-size:7px!important;margin-top:3px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.ops-section{
  margin-top:7px!important;
  padding:8px!important;
  border-radius:9px!important;
}
.ops-section h2{font-size:11px!important;margin:0 0 6px!important}
.ops-section h3{font-size:10px;margin:0 0 6px}
.ops-columns{
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important;
  gap:7px!important;
}
.ops-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px
}
.ops-section-head>div{display:flex;align-items:baseline;gap:8px;min-width:0}
.ops-section-head h2{margin:0!important}
.ops-section-head small{font-size:8px;color:#77707d;white-space:nowrap}

.ops-table-scroll{overflow-x:auto;overflow-y:visible;width:100%}
.ops-table{font-size:9px!important;line-height:1.15!important}
.ops-table th,.ops-table td{
  padding:4px 5px!important;
  height:26px!important;
  max-height:26px;
  white-space:nowrap;
  border-bottom:1px solid rgba(255,255,255,.045)!important;
}
.ops-table th{font-size:7px!important;letter-spacing:.01em}
.ops-table-dense th,.ops-table-dense td{padding:3px 5px!important;height:24px!important}
.ops-table tbody tr:hover{background:rgba(255,255,255,.028)}
.ops-num{text-align:right!important;font-variant-numeric:tabular-nums}
.ops-center{text-align:center!important}
.ops-member-name{font-weight:850;color:#f3edf5!important}
.ops-pill{padding:2px 5px!important;font-size:7px!important}
.ops-detail-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:18px;padding:2px 6px;border:1px solid rgba(255,255,255,.11);
  border-radius:6px;text-decoration:none;color:#f2eaf4;font-size:8px;font-weight:800
}

.ops-member-search{display:flex;align-items:center;gap:4px;min-width:0}
.ops-member-search input,.ops-member-search select,.ops-member-search button{
  height:26px;border-radius:6px;border:1px solid rgba(255,255,255,.10);
  background:#0a080c;color:#e8e0eb;font-size:8px;padding:0 7px
}
.ops-member-search input{width:260px}
.ops-member-search select{min-width:92px}
.ops-member-search button{background:#f23eaf;border-color:#f23eaf;color:#fff;font-weight:850;cursor:pointer}
.ops-member-search a{font-size:8px;color:#8f8794;text-decoration:none;padding:4px}

.ops-chat-list,.ops-memory-list{gap:4px!important}
.ops-chat-list article,.ops-memory-list article{padding:7px!important;border-radius:7px!important}
.ops-chat-list header strong,.ops-memory-list header strong{font-size:9px!important}
.ops-chat-list header small,.ops-memory-list header small{font-size:7px!important}
.ops-chat-list p,.ops-memory-list p{font-size:8px!important;line-height:1.45!important;margin-top:3px!important}
.ops-empty{font-size:9px!important;padding:7px 0!important}

/* Member detail drawer: wide enough for 4K, still readable */
.ops-member-modal{position:fixed;inset:0;z-index:9999;display:flex;justify-content:flex-end}
.ops-member-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58);backdrop-filter:blur(2px)}
.ops-member-drawer{
  position:relative;z-index:1;width:min(82vw,2700px);height:100dvh;overflow:auto;
  background:#09070b;border-left:1px solid rgba(255,255,255,.10);padding:10px 12px 24px
}
.ops-member-drawer-head{
  position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;
  min-height:42px;padding:4px 0 7px;background:rgba(9,7,11,.96);border-bottom:1px solid rgba(255,255,255,.07)
}
.ops-member-drawer-head>a{font-size:23px;line-height:1;color:#b9b0bd;text-decoration:none;padding:4px 7px}
.ops-member-ident{display:flex;align-items:center;gap:8px}
.ops-member-ident img{width:34px;height:34px;object-fit:cover;border-radius:6px}
.ops-member-ident strong{display:block;font-size:13px}
.ops-member-ident span{display:block;margin-top:2px;font-size:8px;color:#817986}
.ops-detail-summary,.ops-detail-counts{
  display:flex;align-items:stretch;gap:4px;flex-wrap:wrap;margin-top:6px
}
.ops-detail-summary span,.ops-detail-counts span{
  display:flex;align-items:center;gap:5px;min-height:27px;padding:4px 7px;
  border:1px solid rgba(255,255,255,.07);border-radius:6px;background:#0d0a0f;font-size:8px;color:#827a88
}
.ops-detail-summary b{font-size:9px;color:#e8e1ea}
.ops-detail-counts span{min-width:82px;justify-content:space-between}
.ops-detail-counts small{font-size:7px;color:#77707d}
.ops-detail-counts b{font-size:12px;color:#f0e8f2}
.ops-detail-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:7px;margin-top:7px}
.ops-detail-grid>section,.ops-detail-block{
  border:1px solid rgba(255,255,255,.07);border-radius:8px;background:#0c090e;padding:8px;margin-top:0
}
.ops-detail-block{margin-top:7px}
.ops-kv{width:100%;border-collapse:collapse;font-size:8px}
.ops-kv th,.ops-kv td{padding:4px 5px;border-bottom:1px solid rgba(255,255,255,.045);vertical-align:top;text-align:left}
.ops-kv th{width:90px;color:#746d79;font-weight:750}
.ops-kv td{color:#d8d1dc;line-height:1.45}
.ops-memory-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.ops-memory-compact article{border:1px solid rgba(255,255,255,.055);border-radius:6px;padding:6px;background:#09070b}
.ops-memory-compact header{display:flex;justify-content:space-between;gap:8px}
.ops-memory-compact header b{font-size:8px;color:#f08bc9}
.ops-memory-compact header small{font-size:7px;color:#6f6873}
.ops-memory-compact p{font-size:8px;line-height:1.5;color:#c9c1cc;margin:4px 0 0;white-space:normal}
.ops-report-actions{display:flex;gap:3px}
.ops-report-actions button{padding:3px 5px!important;font-size:7px!important;min-height:20px!important}

@media (max-width:1700px){
  .ops-grid{grid-template-columns:repeat(6,minmax(105px,1fr))!important}
}
@media (max-width:1100px){
  .ops-page{padding:8px!important}
  .ops-grid{grid-template-columns:repeat(3,minmax(100px,1fr))!important}
  .ops-columns,.ops-detail-grid{grid-template-columns:1fr!important}
  .ops-section-head{align-items:flex-start;flex-direction:column}
  .ops-member-search{width:100%;overflow-x:auto}
  .ops-member-search input{min-width:220px}
  .ops-member-drawer{width:96vw}
  .ops-memory-compact{grid-template-columns:1fr}
}
