/* "Painel do Konvo" (owner only). */

.rail-btn.owner {
  background: linear-gradient(135deg, #3a2a05, #6b4a00);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 106, 0.55);
}

.owner-crown {
  font-size: 22px;
  line-height: 1;
}

.owner-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.op-crown {
  font-size: 18px;
}

.op-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 28px;
}

.op-section {
  display: grid;
  gap: 14px;
}

.op-section h3 {
  margin: 8px 0 0;
}

.op-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.op-stat {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-sidebar);
  border: 1px solid rgba(255, 215, 106, 0.12);
}

.op-stat strong {
  font-size: 28px;
  color: #ffd76a;
}

.op-search {
  max-width: 360px;
}

.op-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.op-table th {
  position: sticky;
  top: -16px;
  z-index: 1;
  padding: 8px 10px;
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.op-table td {
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.op-table tbody tr:hover {
  background: var(--bg-hover);
}

.op-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.op-user-names {
  display: grid;
  line-height: 1.15;
}

.op-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.op-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-faint);
}

.op-status.online .op-dot {
  background: #23a55a;
}

.op-status.idle .op-dot {
  background: #f0b232;
}

.op-status.dnd .op-dot {
  background: #f23f43;
}

.op-status.invisible .op-dot {
  background: transparent;
  box-shadow: inset 0 0 0 2px #23a55a;
}

.op-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}

.op-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 12px;
}

.op-in-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #23a55a;
  font-weight: 600;
}

.op-server {
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-server img,
.op-server-initial {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg-elevated);
  object-fit: cover;
  font-weight: 700;
}

.op-calls {
  display: grid;
  gap: 10px;
}

.op-call {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-sidebar);
  border-left: 3px solid #23a55a;
}

.op-call-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.op-call-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.op-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.op-person:hover {
  background: var(--bg-input);
}

.op-person svg {
  color: var(--text-muted);
}

.op-count {
  background: #6b4a00;
}
