.op-panel { overflow: hidden; }
.op-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 22px 0;
}
.op-scope {
  margin: 10px 22px 17px;
  color: var(--muted);
  font-size: 13px;
}
.op-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.op-filters .search input { width: 150px; }
.op-column-head,
.op-account-row {
  display: grid;
  grid-template-columns: minmax(128px, 1.45fr) minmax(62px, .64fr) minmax(95px, 1fr) minmax(78px, .86fr) minmax(78px, .86fr) minmax(156px, 1.46fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
}
.op-column-head {
  min-height: 37px;
  background: #f6f8fc;
  color: #617186;
  font-size: 13px;
  border-block: 1px solid var(--line);
}
.op-account { border-bottom: 1px solid var(--line); }
.op-account:last-child { border-bottom: 0; }
.op-account-row {
  min-height: 82px;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.op-account-row:hover,
.op-account.expanded > .op-account-row { background: #f7f9ff; }
.op-account-row:focus-visible { outline-offset: -3px; }
.op-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.op-initial {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #ecf1ff;
  color: #4268cb;
  font-size: 16px;
  font-weight: 650;
}
.op-id { min-width: 0; }
.op-id strong,
.op-detail-link {
  display: block;
  max-width: 100%;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.op-id strong { font-weight: 650; }
.op-id small,
.op-account-status small,
.op-account-sync small,
.op-game-sync small,
.op-game-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.op-account-sync { min-width: 0; line-height: 1.45; }
.op-account-sync strong { font-weight: 450; font-size: 13px; }
.op-account-sync .op-warning { color: #a34f33; }
.op-metric { min-width: 0; overflow-wrap: anywhere; }
.op-revenue { color: #345dd0; font-weight: 650; }
.op-mobile-label { display: none; }
.op-caret { color: #71809a; transition: transform .16s ease; }
.op-account.expanded .op-caret { transform: rotate(180deg); }
.op-games {
  margin: 0 18px 14px;
  padding: 0 14px;
  border: 1px solid #dee7f6;
  border-radius: 9px;
  background: #f8faff;
}
.op-game-row,
.op-game-head {
  display: grid;
  grid-template-columns: minmax(122px, 1.8fr) minmax(82px, 1.1fr) minmax(76px, .9fr) minmax(68px, .9fr) minmax(75px, 1fr) minmax(86px, 1fr);
  align-items: center;
  gap: 10px;
}
.op-game-row {
  min-height: 60px;
  padding-block: 8px;
  border-top: 1px solid #e5eaf4;
  font-size: 14px;
}
.op-game-head { min-height: 32px; color: var(--muted); font-size: 12px; }
.op-game-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.op-game-name .game-art { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 7px; }
.op-game-name > div { min-width: 0; }
.op-detail-link { padding: 0; text-align: left; font-weight: 600; color: #365eba; }
.op-detail-link:hover { text-decoration: underline; }
.op-game-time { color: #617186; font-size: 13px; }
.op-no-games, .op-inactive { padding: 12px 0; color: var(--muted); font-size: 13px; }
.op-inactive { overflow-wrap: anywhere; }
.op-inactive span { font-weight: 600; }
.op-empty { min-height: 180px; }
.operator-view .sync-toggle { display: inline-flex; }

@media (max-width: 1120px) {
  .op-column-head, .op-account-row { padding-inline: 16px; gap: 8px; }
  .op-toolbar { padding-inline: 16px; }
  .op-scope { margin-inline: 16px; }
}
@media (max-width: 1000px) {
  .op-column-head, .op-game-head { display: none; }
  .op-account-row {
    position: relative;
    padding: 14px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    border-top: 1px solid #eff2f7;
  }
  .op-person { grid-column: span 2; }
  .op-account-status { justify-self: end; margin-right: 22px; }
  .op-account-sync { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .op-account-sync small { margin: 0; }
  .op-caret { position: absolute; right: 14px; top: 24px; }
  .op-mobile-label { display: block; font-size: 12px; font-weight: 400; line-height: 1.6; color: var(--muted); }
  .op-games { margin: 0 12px 12px; padding-inline: 12px; }
  .op-game-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-block: 12px; }
  .op-game-row:first-of-type, .op-game-row:nth-child(2) { border-top: 0; }
  .op-game-name { grid-column: 1 / 3; grid-row: 1; }
  .op-game-sync { grid-column: 3; grid-row: 1; text-align: right; }
  .op-game-time { grid-column: 1 / -1; }
  .op-game-time .op-mobile-label { display: inline; margin-right: 6px; }
}
@media (max-width: 600px) {
  .op-toolbar { padding: 14px 14px 0; }
  .op-filters { width: 100%; gap: 6px; }
  .op-filters .search { width: 100%; }
  .op-filters .search input { width: 100%; box-sizing: border-box; }
  .op-filters select { flex: 1; min-width: 0; }
  .op-scope { margin: 10px 14px 12px; }
  .op-account-row { padding-inline: 14px; }
}
