@charset "UTF-8";

/* ── canvas: full-bleed 16px boxes → centered measured column ── */
html body #tabAuditlog > div, html body #tabVersions > div, html body #tabSandbox > div,
html body #tabFormatrules > div, html body #tabClientportal > div, html body #tabAgency > div,
html body #tabWebhooks > div, html body #tabApikeys > div, html body #tabCompliance > div,
html body #tabSysteminfo > div, html body #tabAdmin > div, html body #tabRevenue > div {
  max-width: 1180px !important; margin: 0 auto !important;
  padding: 30px 28px 64px !important; box-sizing: border-box !important;
}
/* ── gold eyebrow crowning each admin surface (pure CSS, honest label) ── */
#tabAuditlog > div::before, #tabVersions > div::before, #tabSandbox > div::before,
#tabFormatrules > div::before, #tabClientportal > div::before, #tabAgency > div::before,
#tabWebhooks > div::before, #tabApikeys > div::before, #tabCompliance > div::before,
#tabSysteminfo > div::before, #tabAdmin > div::before, #tabRevenue > div::before {
  display: block; font-family: var(--k1xv2-font-main, inherit);
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--k1xv2-gold-2, #E2B857); opacity: 0.92; margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--k1xv2-line, rgba(255,255,255,0.07));
}
#tabAuditlog > div::before   { content: "AutoClipper · Admin · Audit Log"; }
#tabVersions > div::before   { content: "AutoClipper · Admin · Version History"; }
#tabSandbox > div::before    { content: "AutoClipper · Admin · Sandbox"; }
#tabFormatrules > div::before{ content: "AutoClipper · Admin · Format Rules"; }
#tabClientportal > div::before{ content: "AutoClipper · Admin · Client Portal"; }
#tabAgency > div::before     { content: "AutoClipper · Admin · Agency"; }
#tabWebhooks > div::before   { content: "AutoClipper · Admin · Webhooks"; }
#tabApikeys > div::before    { content: "AutoClipper · Admin · API Keys"; }
#tabCompliance > div::before { content: "AutoClipper · Admin · Compliance"; }
#tabSysteminfo > div::before { content: "AutoClipper · Admin · System Info"; }
#tabAdmin > div::before      { content: "AutoClipper · Admin · Console"; }
#tabRevenue > div::before    { content: "AutoClipper · Admin · Revenue"; }
/* ── headline: 20px/900 inline header → display type ── */
#tabAuditlog [style*="font-size:20px"][style*="font-weight:900"],
#tabVersions [style*="font-size:20px"][style*="font-weight:900"],
#tabSandbox [style*="font-size:20px"][style*="font-weight:900"],
#tabFormatrules [style*="font-size:20px"][style*="font-weight:900"],
#tabClientportal [style*="font-size:20px"][style*="font-weight:900"],
#tabAgency [style*="font-size:20px"][style*="font-weight:900"],
#tabWebhooks [style*="font-size:20px"][style*="font-weight:900"],
#tabApikeys [style*="font-size:20px"][style*="font-weight:900"],
#tabCompliance [style*="font-size:20px"][style*="font-weight:900"],
#tabSysteminfo [style*="font-size:20px"][style*="font-weight:900"],
#tabAdmin [style*="font-size:20px"][style*="font-weight:900"],
#tabRevenue [style*="font-size:20px"][style*="font-weight:900"] {
  font-family: var(--k1xv2-font-display, inherit) !important;
  font-size: 30px !important; font-weight: 700 !important;
  letter-spacing: -0.6px !important; line-height: 1.15 !important;
  color: var(--k1xv2-text, #F4F2EC) !important; margin-bottom: 2px;
}
/* quiet subline under the headline */
#tabAuditlog [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabVersions [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabSandbox [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabFormatrules [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabClientportal [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabAgency [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabWebhooks [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabApikeys [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabCompliance [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabSysteminfo [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabAdmin [style*="font-size:20px"][style*="font-weight:900"] + div,
#tabRevenue [style*="font-size:20px"][style*="font-weight:900"] + div {
  font-size: 12.5px !important; color: var(--k1xv2-text-3, #9A958A) !important;
  margin-top: 4px; max-width: 62ch;
}
/* ── flat glass boxes → layered elevated cards ── */
#tabAuditlog [style*="background:var(--bg-glass)"], #tabVersions [style*="background:var(--bg-glass)"],
#tabSandbox [style*="background:var(--bg-glass)"], #tabFormatrules [style*="background:var(--bg-glass)"],
#tabClientportal [style*="background:var(--bg-glass)"], #tabAgency [style*="background:var(--bg-glass)"],
#tabWebhooks [style*="background:var(--bg-glass)"], #tabApikeys [style*="background:var(--bg-glass)"],
#tabCompliance [style*="background:var(--bg-glass)"], #tabSysteminfo [style*="background:var(--bg-glass)"],
#tabAdmin [style*="background:var(--bg-glass)"], #tabRevenue [style*="background:var(--bg-glass)"] {
  background: linear-gradient(180deg, var(--k1xv2-s2, #16171B), var(--k1xv2-s1, #101114)) !important;
  border: 1px solid var(--k1xv2-edge, rgba(255,255,255,0.09)) !important;
  box-shadow: var(--k1xv2-e1, 0 8px 24px rgba(0,0,0,0.35));
  border-radius: var(--k1xv2-r-lg, 14px) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* ── selects: deep wells with gold focus ── */
#tabAuditlog select, #tabVersions select, #tabSandbox select, #tabFormatrules select,
#tabClientportal select, #tabAgency select, #tabWebhooks select, #tabApikeys select,
#tabCompliance select, #tabSysteminfo select, #tabAdmin select, #tabRevenue select {
  background: var(--k1xv2-s1, #101114) !important;
  border: 1px solid var(--k1xv2-line-strong, rgba(255,255,255,0.12)) !important;
  border-radius: 9px !important; min-height: 32px; padding: 6px 12px !important;
  font-size: 11px !important; color: var(--k1xv2-text-2, #C9C5BB) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#tabAuditlog select:focus, #tabVersions select:focus, #tabSandbox select:focus,
#tabFormatrules select:focus, #tabClientportal select:focus, #tabAgency select:focus,
#tabWebhooks select:focus, #tabApikeys select:focus, #tabCompliance select:focus,
#tabSysteminfo select:focus, #tabAdmin select:focus, #tabRevenue select:focus {
  outline: none !important;
  border-color: var(--k1xv2-gold-2, #E2B857) !important;
  box-shadow: 0 0 0 3px rgba(226,184,87,0.18) !important;
}
/* ── buttons: keep their own colors, add premium shape + motion ── */
#tabAuditlog button, #tabVersions button, #tabSandbox button, #tabFormatrules button,
#tabClientportal button, #tabAgency button, #tabWebhooks button, #tabApikeys button,
#tabCompliance button, #tabSysteminfo button, #tabAdmin button, #tabRevenue button {
  border-radius: 10px !important; min-height: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
#tabAuditlog button:hover, #tabVersions button:hover, #tabSandbox button:hover,
#tabFormatrules button:hover, #tabClientportal button:hover, #tabAgency button:hover,
#tabWebhooks button:hover, #tabApikeys button:hover, #tabCompliance button:hover,
#tabSysteminfo button:hover, #tabAdmin button:hover, #tabRevenue button:hover {
  transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
#tabAuditlog button:active, #tabVersions button:active, #tabSandbox button:active,
#tabFormatrules button:active, #tabClientportal button:active, #tabAgency button:active,
#tabWebhooks button:active, #tabApikeys button:active, #tabCompliance button:active,
#tabSysteminfo button:active, #tabAdmin button:active, #tabRevenue button:active {
  transform: translateY(0); filter: brightness(0.98);
}
/* ── inputs ── */
#tabAuditlog input[type="text"], #tabVersions input[type="text"], #tabSandbox input[type="text"],
#tabFormatrules input[type="text"], #tabClientportal input[type="text"], #tabAgency input[type="text"],
#tabWebhooks input[type="text"], #tabApikeys input[type="text"], #tabCompliance input[type="text"],
#tabSysteminfo input[type="text"], #tabAdmin input[type="text"], #tabRevenue input[type="text"],
#tabAdmin input[type="number"], #tabAdmin input[type="email"] {
  background: var(--k1xv2-s1, #101114) !important;
  border: 1px solid var(--k1xv2-line-strong, rgba(255,255,255,0.12)) !important;
  border-radius: 9px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#tabAuditlog input:focus, #tabVersions input:focus, #tabSandbox input:focus,
#tabFormatrules input:focus, #tabClientportal input:focus, #tabAgency input:focus,
#tabWebhooks input:focus, #tabApikeys input:focus, #tabCompliance input:focus,
#tabSysteminfo input:focus, #tabAdmin input:focus, #tabRevenue input:focus {
  outline: none !important;
  border-color: var(--k1xv2-gold-2, #E2B857) !important;
  box-shadow: 0 0 0 3px rgba(226,184,87,0.18) !important;
}
/* ── mobile: keep the measured canvas breathing at 375 ── */
@media (max-width: 640px) {
  html body #tabAuditlog > div, html body #tabVersions > div, html body #tabSandbox > div,
  html body #tabFormatrules > div, html body #tabClientportal > div, html body #tabAgency > div,
  html body #tabWebhooks > div, html body #tabApikeys > div, html body #tabCompliance > div,
  html body #tabSysteminfo > div, html body #tabAdmin > div, html body #tabRevenue > div {
    padding: 22px 14px 48px !important;
  }
  #tabAuditlog [style*="font-size:20px"][style*="font-weight:900"],
  #tabVersions [style*="font-size:20px"][style*="font-weight:900"],
  #tabSandbox [style*="font-size:20px"][style*="font-weight:900"],
  #tabFormatrules [style*="font-size:20px"][style*="font-weight:900"],
  #tabClientportal [style*="font-size:20px"][style*="font-weight:900"],
  #tabAgency [style*="font-size:20px"][style*="font-weight:900"],
  #tabWebhooks [style*="font-size:20px"][style*="font-weight:900"],
  #tabApikeys [style*="font-size:20px"][style*="font-weight:900"],
  #tabCompliance [style*="font-size:20px"][style*="font-weight:900"],
  #tabSysteminfo [style*="font-size:20px"][style*="font-weight:900"],
  #tabAdmin [style*="font-size:20px"][style*="font-weight:900"],
  #tabRevenue [style*="font-size:20px"][style*="font-weight:900"] { font-size: 24px !important; }
}
