.og-admin {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Subtab navigation ───────────────────────────────────────────────────── */

.og-admin-subtabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 6px;
}

.og-admin-subtab {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted, #8899aa);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.og-admin-subtab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--fg-1, #c8d0db);
}

.og-admin-subtab.active {
  background: hsl(var(--accent-h, 268) 70% 55% / 0.18);
  color: hsl(var(--accent-h, 268) 80% 78%);
  font-weight: 600;
}

.og-admin-subtab-body {
  /* single-column — each card takes full width */
}

/* Card that stretches to fill its column (kept for backwards compat) */
.og-admin-card--fill {
  height: auto;
}

.og-admin-card {
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 24px;
}

.og-admin-card-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #8899aa);
  margin-bottom: 20px;
}

.og-admin-loading,
.og-admin-error {
  font-size: 0.9rem;
  color: var(--muted, #8899aa);
  padding: 8px 0;
}

.og-admin-error {
  color: #ff8585;
}

/* Config */

.og-admin-config-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.og-admin-label {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.og-admin-hint {
  font-size: 0.76rem;
  color: var(--muted, #8899aa);
  font-weight: 400;
}

.og-admin-config-ctrl {
  display: flex;
  gap: 10px;
  align-items: center;
}

.og-admin-input {
  width: 140px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.og-admin-input:focus {
  border-color: hsl(var(--accent-h, 268) 80% 60% / 0.5);
}

.og-admin-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: hsl(var(--accent-h, 268) 70% 55%);
  color: #fff;
  transition: opacity 0.15s;
}

.og-admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.og-admin-btn--saved { background: #3a9e6e; }

.og-admin-meta {
  font-size: 0.75rem;
  color: var(--muted, #8899aa);
}

/* Users table */

.og-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.og-admin-table th {
  text-align: left;
  padding: 6px 10px 10px;
  color: var(--muted, #8899aa);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.og-admin-table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.og-admin-row--inactive td {
  opacity: 0.45;
}

.og-admin-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.og-admin-you {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: hsl(var(--accent-h, 268) 70% 55% / 0.25);
  color: hsl(var(--accent-h, 268) 80% 75%);
  font-weight: 600;
}

.og-admin-date {
  color: var(--muted, #8899aa);
  font-size: 0.8rem;
}

.og-admin-role,
.og-admin-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.og-admin-role--admin {
  background: hsl(var(--accent-h, 268) 60% 50% / 0.2);
  color: hsl(var(--accent-h, 268) 80% 75%);
}

.og-admin-role--user {
  background: rgba(255,255,255,0.07);
  color: var(--muted, #8899aa);
}

.og-admin-status--active {
  background: rgba(58, 158, 110, 0.18);
  color: #6de0a8;
}

.og-admin-status--inactive {
  background: rgba(255,255,255,0.05);
  color: var(--muted, #8899aa);
}

.og-admin-actions {
  display: flex;
  gap: 8px;
}

.og-admin-act-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s;
}

.og-admin-act-btn:hover { background: rgba(255,255,255,0.07); }
.og-admin-act-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.og-admin-act-btn--deact {
  border-color: rgba(255, 100, 100, 0.3);
  color: #ff9e9e;
}

.og-admin-act-btn--act {
  border-color: rgba(58, 158, 110, 0.35);
  color: #6de0a8;
}

/* Card header row (title + button side-by-side) */

.og-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* Info banner */

.og-admin-info {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(243, 167, 63, 0.1);
  border: 1px solid rgba(243, 167, 63, 0.25);
  color: #f3c97f;
  font-size: 0.82rem;
}

/* Symbol tabs */

.og-admin-symbol-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.og-admin-sym-tab {
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted, #8899aa);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.og-admin-sym-tab.active {
  background: hsl(var(--accent-h, 268) 70% 55% / 0.2);
  color: hsl(var(--accent-h, 268) 80% 75%);
  border-color: hsl(var(--accent-h, 268) 70% 55% / 0.4);
}

/* Expiry table — prevent columns from wrapping inside the card */

.og-admin-table {
  min-width: 0;
  table-layout: auto;
}

/* Expiry date column */

.og-exp-date {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  white-space: nowrap;
  min-width: 110px;
}

/* Add expiry row */

.og-exp-add-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.og-exp-monthly-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted, #8899aa);
  white-space: nowrap;
}

/* Universe list */

.og-uni-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.og-uni-row {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.og-uni-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.og-uni-header:hover { background: rgba(255,255,255,0.03); }

.og-uni-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.og-uni-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.og-uni-meta {
  font-size: 0.75rem;
  color: var(--muted, #8899aa);
}

.og-uni-chevron {
  font-size: 0.7rem;
  color: var(--muted, #8899aa);
}

.og-uni-editor {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.og-uni-stocks-input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  resize: vertical;
  outline: none;
  font-family: "JetBrains Mono", monospace;
}

.og-uni-stocks-input:focus {
  border-color: hsl(var(--accent-h, 268) 80% 60% / 0.5);
}

.og-uni-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* New universe form */

.og-uni-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.og-uni-form-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #8899aa);
  margin-bottom: 14px;
}

.og-uni-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* Universe editor: 2-col grid for the symbol fields */
.og-uni-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

/* ── Ticker tape symbol list ─────────────────────────────────────────────── */

.og-ticker-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  max-height: 340px;
  overflow-y: auto;
}

.og-ticker-row {
  display: grid;
  grid-template-columns: 22px 1fr 88px 1fr 76px;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}

.og-ticker-row:hover { background: rgba(255,255,255,0.04); }

.og-ticker-num {
  font-size: 0.72rem;
  color: var(--muted, #8899aa);
  text-align: center;
  user-select: none;
}

.og-ticker-input {
  width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  min-width: 0;
}

.og-ticker-input:focus {
  border-color: hsl(var(--accent-h, 268) 80% 60% / 0.5);
}

.og-ticker-btns {
  display: flex;
  gap: 3px;
  justify-content: flex-end;
}

.og-ticker-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--muted, #8899aa);
  font-size: 0.75rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s;
}

.og-ticker-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.og-ticker-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.og-ticker-btn--del { border-color: rgba(255,100,100,0.25); color: #ff9e9e; }
.og-ticker-btn--del:hover { background: rgba(255,100,100,0.12); }

.og-ticker-add-row {
  display: grid;
  grid-template-columns: 1fr 88px 1fr auto;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.og-ticker-col-hd {
  display: grid;
  grid-template-columns: 22px 1fr 88px 1fr 76px;
  gap: 6px;
  padding: 0 6px;
  margin-bottom: 4px;
}

.og-ticker-col-hd span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted, #8899aa);
}

/* ── Schedule card ───────────────────────────────────────────────────────── */

.og-sched-desc {
  font-size: 0.84rem;
  color: var(--muted, #8899aa);
  line-height: 1.55;
  margin: 0 0 18px;
}

.og-sched-section {
  margin-bottom: 20px;
}

.og-sched-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #8899aa);
  margin-bottom: 10px;
}

/* Enable/Disable toggle in header */
.og-sched-enable-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.og-sched-enable-label {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.og-sched-enable-label.on {
  background: rgba(58, 158, 110, 0.18);
  color: #6de0a8;
}

.og-sched-enable-label.off {
  background: rgba(255,255,255,0.07);
  color: var(--muted, #8899aa);
}

/* Time list */
.og-sched-time-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.og-sched-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.og-sched-time-badge {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg-0, #fff);
  min-width: 50px;
}

.og-sched-time-label {
  font-size: 0.75rem;
  color: var(--muted, #8899aa);
  font-weight: 500;
  margin-right: 2px;
}

.og-sched-time-lastrun {
  flex: 1;
  font-size: 0.8rem;
  color: var(--muted, #8899aa);
}

.og-sched-time-lastrun strong {
  color: var(--fg-1, #c8d0db);
}

/* Add time row */
.og-sched-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.og-sched-time-input {
  width: 130px !important;
  font-variant-numeric: tabular-nums;
}

/* ── Toggle switch (used in Config card) ─────────────────────────────────────── */
.og-admin-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.og-admin-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.og-admin-toggle-track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.og-admin-toggle input:checked ~ .og-admin-toggle-track {
  background: hsl(142 72% 29% / 0.85);
  border-color: hsl(142 72% 40% / 0.6);
}

.og-admin-toggle input:disabled ~ .og-admin-toggle-track {
  opacity: 0.5;
  cursor: not-allowed;
}

.og-admin-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: left 0.2s, background 0.2s;
}

.og-admin-toggle input:checked ~ .og-admin-toggle-track .og-admin-toggle-thumb {
  left: 20px;
  background: #fff;
}
