/* Authenticated workspaces only. Public redemption keeps its original styling. */
#app .admin-topbar {
  min-height: 76px;
}
#app .page-heading h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
}
#app .dashboard-command-center {
  min-height: 0;
  padding: 26px;
}
#app .ops-copy h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  line-height: 1.15;
}
#app .metrics .metric {
  padding: 20px;
}
#app .panel {
  border-color: rgba(255, 255, 255, 0.095);
}
#app .panel-heading h3,
#app .settings-card-head h3 {
  font-size: 1.05rem;
}
#app .operation-center {
  margin: 0 0 20px;
}
#app .operation-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
#app .operation-alert b {
  font-size: 0.9rem;
  font-weight: 600;
}
#app .operation-alert p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--tx-3);
  line-height: 1.6;
}
#app .operation-alert.danger {
  border-left: 2px solid #c78686;
  padding-left: 14px;
}
#app .operations-runtime {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--bd);
}
#app .operations-runtime span {
  display: grid;
  gap: 8px;
  color: var(--tx-3);
  font-size: 0.7rem;
}
#app .operations-runtime b {
  color: var(--tx);
  font-size: 0.88rem;
}
#app .guest-advanced-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
}
#app .guest-advanced-filters label {
  display: grid;
  gap: 8px;
  color: var(--tx-3);
  font-size: 0.75rem;
}
#app .guest-advanced-filters input,
#app .guest-advanced-filters select {
  min-width: 0;
}
#app .guest-center-actions {
  flex-wrap: wrap;
}
#app .table-pagination,
#reseller-app .table-pagination,
#socio-app .table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
#app .table-pagination span,
#reseller-app .table-pagination span,
#socio-app .table-pagination span {
  margin-right: auto;
  font-size: 0.75rem;
  color: var(--tx-3);
}
#app table th,
#reseller-app table th,
#socio-app table th {
  font-size: 0.66rem;
  letter-spacing: 0.045em;
}
#app table td,
#reseller-app table td,
#socio-app table td {
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 0.8rem;
}
#reseller-app .reseller-hero {
  min-height: 0;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.1);
}
#reseller-app .reseller-hero h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  letter-spacing: -0.04em;
}
#reseller-app .reseller-credit-card {
  min-height: 126px;
  padding: 22px;
}
#reseller-app .reseller-section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  letter-spacing: -0.04em;
}
#reseller-app .reseller-tab-balance {
  padding: 18px 22px;
}
#reseller-app .reseller-guest-card {
  padding: 24px;
}
#socio-app .socio-hero {
  padding: 28px;
}
#socio-app .socio-hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
#socio-app .socio-section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}
#socio-app .socio-overview-actions button {
  padding: 20px;
}
#admin-security-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid #383838;
  border-radius: 18px;
  background: #101010;
  color: #f5f5f5;
}
#admin-security-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}
#admin-security-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
#admin-security-dialog h3 {
  font-size: 1.1rem;
  margin: 0;
}
#admin-security-close {
  background: transparent;
  color: #aaa;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
}
#admin-security-info {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b3b3b3;
  font-size: 0.83rem;
  line-height: 1.65;
  max-height: 50vh;
  overflow-y: auto;
}
#admin-security-form {
  display: grid;
  gap: 16px;
}
#admin-security-form label {
  display: grid;
  gap: 10px;
  font-size: 0.8rem;
}
#admin-security-code {
  color: #fff;
  background: #080808;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 13px;
}
#admin-security-error {
  color: #dba1a1;
  margin: 0;
}
#admin-security-form[hidden],
#admin-security-enable[hidden],
#admin-security-disable[hidden] {
  display: none !important;
}
#app {
  --admin-surface: #111111;
  --admin-raised: #171717;
  --admin-line: #2b2b2b;
  --admin-muted: #999999;
  background: #080808;
}
#reseller-app .integration-center { display:grid; gap:20px; }
#reseller-app .integration-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
#reseller-app .integration-heading h3 {margin:4px 0 0;font-size:1.15rem;}
#reseller-app .integration-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0;}
#reseller-app .integration-form label {display:grid;gap:9px;font-size:.8rem;}
#reseller-app .integration-form input,#reseller-app .integration-form select {width:100%;min-width:0;}
#reseller-app .integration-form fieldset {grid-column:1/-1;border:1px solid #303030;border-radius:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;}
#reseller-app .integration-form fieldset label {display:flex;align-items:center;gap:9px;}
#reseller-app .integration-form fieldset input {width:auto;}
#reseller-app .integration-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
#reseller-app #integration-secret {border:1px solid #555;background:#191919;padding:20px;border-radius:12px;display:grid;gap:14px;}
#reseller-app #integration-secret[hidden],#reseller-app #integration-error[hidden] {display:none;}
#reseller-app #integration-secret-value {overflow-wrap:anywhere;user-select:all;}
#reseller-app #integration-error {color:#dfabab;}
#reseller-app .integration-center details {margin-top:20px;}
#reseller-app .integration-center summary {cursor:pointer;font-size:.9rem;}
#reseller-app .integration-center td a {display:block;margin-top:6px;}
@media(max-width:700px){#reseller-app .integration-form,#reseller-app .integration-form fieldset {grid-template-columns:1fr;}#reseller-app .integration-heading {align-items:flex-start;}}
#app #admin-sidebar { background: #0d0d0d; }
#app .admin-topbar { background: #080808f5; }
#app #page-dashboard > .admin-view-heading { display: none; }
#app #page-dashboard .dashboard-command-center {
  min-height: 0;
  padding: 22px;
  background: linear-gradient(120deg, #171717, #0e0e0e);
  border-color: #2b2b2b;
}
#app #page-dashboard .dashboard-command-center h3 { font-size: 1.6rem; }
#app #partner-apis-table tr { background: #121212; border-color: #2b2b2b; }
@media (max-width: 900px) {
  #app .guest-advanced-filters,
  #app .operations-runtime {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  #app .dashboard-command-center,
  #reseller-app .reseller-hero,
  #socio-app .socio-hero {
    padding: 20px;
  }
  #app .operation-alert {
    align-items: flex-start;
  }
  #app .operation-alert button {
    flex-shrink: 0;
  }
  #app .guest-advanced-filters {
    grid-template-columns: 1fr;
  }
}
