body {
  margin: 0;
  background: #101113;
  color: #e8eaed;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

body > header {
  align-items: center;
  background: #181a1f;
  border-bottom: 1px solid #30343c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  min-height: 66px;
  padding: 0 28px;
}

h1 {
  align-items: center;
  color: #f4f6f8;
  display: flex;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0;
  margin: 0;
}

h1 a {
  color: inherit;
}

h1 a:hover {
  color: #f4f6f8;
  text-decoration: none;
}

.brand-link {
  align-items: center;
  display: inline-flex;
}

.brand-logo {
  display: block;
  height: 38px;
  object-fit: contain;
  transform: translateY(2px);
  width: auto;
}

h2 {
  color: #f4f6f8;
  font-size: 16px;
  margin: 0 0 14px;
}

h3 {
  color: #f4f6f8;
  font-size: 15px;
  margin: 0 0 8px;
}

p {
  color: #b8bec8;
  margin: 0 0 12px;
}

strong {
  color: #f2c36b;
  display: inline-block;
  font-weight: 700;
  margin: 2px 0 4px;
}

small {
  color: #9ea7b4;
  display: block;
  font-size: 12px;
}

nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

nav form {
  align-items: center;
  display: flex;
  margin: 0;
}

.nav-menu {
  position: relative;
}

.nav-menu::after {
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
  top: 100%;
}

.nav-menu-trigger::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 6px;
  margin-left: 7px;
  opacity: 0.72;
  transform: rotate(45deg) translateY(-2px);
  width: 6px;
}

.nav-menu:hover .nav-menu-trigger::after,
.nav-menu:focus-within .nav-menu-trigger::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.nav-menu-panel {
  background: #171a20;
  border: 1px solid #343943;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  display: none;
  gap: 6px;
  min-width: 160px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
  display: grid;
}

.nav-menu-panel a,
.nav-menu-panel button {
  justify-content: flex-start;
  width: 100%;
}

.nav-menu-panel form {
  display: block;
}

main {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
  width: min(100%, calc(100% - 56px));
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 1180px;
  width: min(100%, calc(100% - 56px));
}

.flash {
  border-radius: 6px;
  font-weight: 700;
  padding: 11px 13px;
}

.flash-success {
  background: rgba(105, 199, 214, 0.12);
  border: 1px solid rgba(105, 199, 214, 0.55);
  color: #9be4ef;
}

.flash-error {
  background: rgba(214, 101, 101, 0.12);
  border: 1px solid rgba(214, 101, 101, 0.55);
  color: #ffb4b4;
}

a {
  color: #69c7d6;
  text-decoration: none;
}

a:hover {
  color: #8adce8;
  text-decoration: underline;
}

button {
  background: #69c7d6;
  border: 1px solid #69c7d6;
  border-radius: 6px;
  color: #071113;
  cursor: pointer;
  font-weight: 700;
  min-height: 36px;
  padding: 8px 13px;
}

button:hover:not(:disabled) {
  background: #8adce8;
  border-color: #8adce8;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button {
  background: #22262d;
  border-color: #343943;
  color: #dfe4ea;
}

.secondary-button:hover:not(:disabled) {
  background: #2a3038;
  border-color: #4b5360;
  color: #ffffff;
}

.danger-button {
  background: #5a2428;
  border-color: #8f3a42;
  color: #ffe2e5;
}

.danger-button:hover:not(:disabled) {
  background: #783139;
  border-color: #c7505a;
  color: #ffffff;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.button-link {
  align-items: center;
  background: #69c7d6;
  border: 1px solid #69c7d6;
  border-radius: 6px;
  color: #071113;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
}

.button-link:hover {
  background: #8adce8;
  border-color: #8adce8;
  color: #071113;
  text-decoration: none;
}

.button-link.secondary {
  background: #22262d;
  border-color: #343943;
  color: #dfe4ea;
}

.button-link.secondary:hover {
  background: #2a3038;
  border-color: #4b5360;
  color: #ffffff;
}

input,
select,
textarea {
  background: #111317;
  border: 1px solid #373c45;
  border-radius: 6px;
  box-sizing: border-box;
  color: #e8eaed;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #69c7d6;
  box-shadow: 0 0 0 3px rgba(105, 199, 214, 0.16);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #7d8592;
}

input:disabled,
select:disabled,
textarea:disabled {
  background: #171a1f;
  border-color: #282d35;
  color: #68717e;
  cursor: not-allowed;
  opacity: 1;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.config-textarea {
  font-family: "JetBrains Mono", "Consolas", monospace;
  min-height: 320px;
  overflow: auto;
  white-space: pre;
}

.obfuscation-config-form {
  max-width: none;
  width: 100%;
}

.checkbox-row {
  align-items: center;
  color: #dfe4ea;
  display: flex;
  gap: 8px;
}

.checkbox-row input {
  min-height: 0;
  width: auto;
}

table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;
}

thead {
  background: #1d2026;
}

td,
th {
  border-bottom: 1px solid #30343c;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #aeb6c4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.sort-link {
  color: inherit;
  text-decoration: none;
}

.sort-link:hover,
.sort-link.active {
  color: #69c7d6;
}

td form {
  align-items: center;
  display: flex;
  gap: 8px;
}

td form select {
  min-width: 150px;
}

.account-row-actions {
  justify-content: flex-end;
}

.account-row-actions .button-link {
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 13px;
}

.account-row-actions select {
  min-width: 118px;
  width: 128px;
}

.table-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.table-actions form {
  margin: 0;
}

.stack {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.compact-form {
  margin-bottom: 14px;
}

.payment-minimums {
  border-top: 1px solid #30343c;
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding-top: 16px;
}

.payment-minimums h3 {
  color: #dfe4ea;
  font-size: 16px;
  margin-bottom: 4px;
}

.payment-minimums p {
  color: #9ea7b4;
  font-size: 13px;
  margin: 0;
}

.payment-minimums table {
  max-width: 760px;
}

.health-page {
  max-width: 1240px;
}

.health-summary {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.health-summary p {
  margin: 0;
}

.health-grid,
.health-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.health-card-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.health-card h3 {
  margin: 0;
}

.health-card dl {
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
}

.health-card dl div {
  display: grid;
  gap: 3px;
}

.health-card dt {
  color: #8f98a7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.health-card dd {
  color: #dfe4ea;
  margin: 0;
  overflow-wrap: anywhere;
}

.health-metrics article {
  gap: 2px;
}

.health-metrics strong {
  color: #f4f6f8;
  font-size: 28px;
  margin: 0;
}

.inline-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.inline-form label {
  color: #aeb6c4;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.inline-form input {
  min-width: 180px;
}

.stacktrace-filter-form {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.stacktrace-filter-toggle {
  align-items: center;
  color: #aeb6c4;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 0;
}

.stacktrace-filter-toggle input[type="checkbox"] {
  margin: 0;
  min-height: 0;
  min-width: 0;
  vertical-align: middle;
  width: auto;
}

.choice-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.choice-row input {
  min-height: auto;
  width: auto;
}

article > form:not(.stack) {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: auto;
}

article > form:not(.stack) input {
  max-width: 260px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

article,
section {
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  padding: 16px;
}

article {
  display: grid;
  gap: 8px;
}

.grid article {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.grid article p {
  align-self: start;
}

.plugin-description {
  align-self: start;
  color: #b8bec8;
  overflow-wrap: anywhere;
}

.plugin-description p {
  margin: 0 0 8px;
}

.plugin-description p:last-child {
  margin-bottom: 0;
}

.plugin-description ul,
.plugin-description ol {
  display: grid;
  gap: 4px;
  list-style-position: outside;
  margin: 0 0 8px 18px;
  padding: 0;
}

.plugin-description ul {
  list-style-type: disc;
}

.plugin-description ol {
  list-style-type: decimal;
}

.plugin-description li {
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #b8bec8;
  display: list-item;
  padding: 0;
}

.plugin-description em {
  color: #d4dae2;
}

.plugin-description h1,
.plugin-description h2,
.plugin-description h3,
.plugin-description h4 {
  color: #eef3f8;
  margin: 12px 0 8px;
}

.plugin-description blockquote {
  border-left: 3px solid #46505f;
  color: #d4dae2;
  margin: 10px 0;
  padding: 2px 0 2px 12px;
}

.plugin-description code {
  background: #111317;
  border: 1px solid #373c45;
  border-radius: 4px;
  color: #eef3f8;
  padding: 1px 4px;
}

.plugin-description pre {
  background: #111317;
  border: 1px solid #373c45;
  border-radius: 6px;
  overflow-x: auto;
  padding: 10px;
}

.plugin-description pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.plugin-description table {
  margin: 10px 0;
}

.landing {
  gap: 22px;
}

.landing-hero {
  align-items: center;
  background: #181a1f;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  min-height: 430px;
  padding: 34px;
}

.landing-hero-copy {
  max-width: 720px;
}

.eyebrow {
  color: #69c7d6;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-hero h2 {
  font-size: 30px;
  line-height: 1.16;
  margin-bottom: 16px;
  max-width: 720px;
}

.landing-logo {
  display: block;
  height: auto;
  margin-bottom: 18px;
  max-width: min(460px, 100%);
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.landing-hero p {
  font-size: 17px;
  max-width: 680px;
}

.landing-points {
  align-items: center;
  color: #cfd8e3;
  display: flex;
  flex-wrap: nowrap;
  font-size: 13px;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  white-space: nowrap;
}

.landing-points span {
  color: #dbe4ed;
  font-weight: 650;
}

.landing-points span + span::before {
  color: #69c7d6;
  content: "•";
  font-weight: 800;
  margin-right: 12px;
  opacity: 0.8;
}

.client-preview {
  background: #0f1115;
  border: 1px solid #30343c;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  min-height: 320px;
  overflow: hidden;
}

.client-preview-toolbar {
  align-items: center;
  background: #13161b;
  border-bottom: 1px solid #30343c;
  display: flex;
  gap: 7px;
  padding: 12px;
}

.client-preview-toolbar span {
  background: #69c7d6;
  border-radius: 50%;
  height: 10px;
  opacity: 0.85;
  width: 10px;
}

.client-preview-toolbar span:nth-child(2) {
  background: #f2c36b;
}

.client-preview-toolbar span:nth-child(3) {
  background: #75d58a;
}

.client-preview-body {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  min-height: 300px;
}

.client-sidebar {
  align-content: start;
  background: #151820;
  border-right: 1px solid #30343c;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.client-sidebar span {
  background: #252b35;
  border-radius: 6px;
  height: 34px;
}

.client-sidebar span.active {
  background: #69c7d6;
  box-shadow: 0 0 0 3px rgba(105, 199, 214, 0.14);
}

.client-main {
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr auto;
  padding: 16px;
}

.client-status {
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.client-status strong {
  color: #f4f6f8;
}

.client-status small {
  color: #9ea7b4;
}

.client-map {
  background:
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(135deg, #203026, #17212b);
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid #30343c;
  border-radius: 8px;
  min-height: 150px;
  overflow: hidden;
  position: relative;
}

.client-map span {
  background: #f2c36b;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(242, 195, 107, 0.14);
  height: 12px;
  position: absolute;
  width: 12px;
}

.client-map span:nth-child(1) {
  left: 28%;
  top: 36%;
}

.client-map span:nth-child(2) {
  background: #69c7d6;
  box-shadow: 0 0 0 6px rgba(105, 199, 214, 0.14);
  left: 56%;
  top: 52%;
}

.client-map span:nth-child(3) {
  background: #75d58a;
  box-shadow: 0 0 0 6px rgba(117, 213, 138, 0.14);
  left: 72%;
  top: 28%;
}

.client-log {
  display: grid;
  gap: 8px;
}

.client-log span {
  background: #2a3039;
  border-radius: 999px;
  height: 9px;
}

.client-log span:nth-child(2) {
  width: 82%;
}

.client-log span:nth-child(3) {
  width: 58%;
}

.landing-panel {
  background: rgba(17, 19, 23, 0.78);
  border: 1px solid rgba(105, 199, 214, 0.25);
  border-radius: 8px;
  padding: 16px;
}

.landing-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.landing-panel div {
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 6px;
  padding: 12px;
}

.landing-panel dt {
  color: #9ea7b4;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.landing-panel dd {
  color: #f4f6f8;
  font-weight: 700;
  margin: 0;
}

.landing-band,
.landing-steps {
  padding: 22px;
}

.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  background: #111317;
}

.landing-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
}

.landing-steps ol {
  counter-reset: step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-steps li {
  align-items: start;
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
  counter-increment: step;
  display: grid;
  gap: 4px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 12px;
}

.landing-steps li::before {
  align-items: center;
  background: #69c7d6;
  border-radius: 6px;
  color: #071113;
  content: counter(step);
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.landing-steps li strong,
.landing-steps li span {
  grid-column: 2;
}

.landing-split {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

.dashboard {
  gap: 16px;
}

.dashboard-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) repeat(auto-fit, minmax(220px, 280px));
  padding: 22px;
}

.dashboard-hero h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.dashboard-balance {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 16px;
}

.dashboard-balance span,
.stat-card span {
  color: #9ea7b4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-balance strong {
  color: #f2c36b;
  font-size: 34px;
  line-height: 1;
  margin: 4px 0;
}

.dashboard-promotion {
  align-items: center;
  border-color: rgba(242, 195, 107, 0.45);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-promotion p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
}

.dashboard-promotion h2 {
  margin-bottom: 4px;
}

.dashboard-promotion span {
  color: #f2c36b;
  font-weight: 700;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 4px;
}

.section-heading p {
  margin: 0;
}

.marketplace-promotion {
  align-items: start;
  background:
      linear-gradient(135deg, rgba(242, 195, 107, 0.11), rgba(104, 199, 215, 0.055)),
      #111317;
  border: 1px solid rgba(242, 195, 107, 0.32);
  border-radius: 8px;
  display: block;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 16px;
}

.marketplace-promotion-copy {
  display: grid;
  gap: 10px;
}

.marketplace-promotion h3 {
  color: #f4f6f8;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.promotion-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.promotion-chip {
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  white-space: nowrap;
}

.promotion-chip span {
  color: #9ea7b4;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.promotion-chip strong {
  color: #f2c36b;
  font-weight: 800;
}

.promotion-chip-muted strong {
  color: #dfe4ea;
}

.entitlement-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.entitlement-card {
  background: #111317;
  align-content: start;
  padding: 14px;
}

.entitlement-card h3 {
  margin-top: 8px;
}

.entitlement-card p {
  margin: 0;
}

.entitlement-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(82px, max-content) minmax(138px, max-content);
  margin: 4px 0 0;
}

.entitlement-card dl div {
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 6px;
  align-self: start;
  padding: 7px 10px;
}

.entitlement-card dt {
  color: #7d8592;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.entitlement-card dd {
  color: #dfe4ea;
  margin: 0;
}

.entitlement-card .date-value {
  font-size: 13px;
  white-space: nowrap;
}

.instance-list {
  display: grid;
  gap: 10px;
}

.instance-row {
  align-items: center;
  background: #111317;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.instance-row h3 {
  margin: 10px 0 4px;
}

.instance-row small {
  color: #9ea7b4;
  overflow-wrap: anywhere;
}

.instance-row dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0;
}

.instance-row dl div {
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 6px;
  padding: 9px;
}

.instance-row dt {
  color: #7d8592;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.instance-row dd {
  color: #dfe4ea;
  margin: 0;
}

.admin-instance-groups {
  display: grid;
  gap: 10px;
}

.admin-instance-group {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
  overflow: hidden;
}

.admin-instance-group[open] {
  background: #181a1f;
}

.admin-instance-group summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  list-style: none;
  padding: 12px 14px;
}

.admin-instance-group summary::-webkit-details-marker {
  display: none;
}

.admin-instance-group summary::before {
  color: #69c7d6;
  content: "+";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.admin-instance-group[open] summary::before {
  content: "-";
}

.admin-instance-group summary strong {
  color: #f4f6f8;
  display: block;
}

.admin-instance-group summary small,
.admin-instance-breakdown {
  color: #9ea7b4;
  font-size: 12px;
}

.admin-instance-group table {
  border-width: 1px 0 0;
  margin: 0;
}

.code-cell {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.empty-state {
  background: #111317;
  border: 1px dashed #3b424d;
  border-radius: 8px;
  color: #aeb6c4;
  margin: 12px 0 0;
  padding: 14px;
}

.price-tiers {
  display: grid;
  gap: 4px;
}

.marketplace-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-end;
  min-height: 58px;
}

.marketplace-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marketplace-card-featured {
  background:
      linear-gradient(180deg, rgba(104, 199, 215, 0.1), rgba(104, 199, 215, 0.02) 46%),
      var(--surface);
  border-color: rgba(104, 199, 215, 0.62);
  box-shadow: 0 0 0 1px rgba(104, 199, 215, 0.12), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.grid article.marketplace-card-featured:hover {
  background:
      linear-gradient(180deg, rgba(104, 199, 215, 0.17), rgba(255, 207, 92, 0.045) 54%),
      var(--surface-raised);
  border-color: rgba(255, 207, 92, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 207, 92, 0.16), 0 20px 44px rgba(0, 0, 0, 0.28);
}

.marketplace-card-title {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marketplace-card-title h3 {
  margin: 0;
}

.marketplace-card .plugin-description,
.marketplace-card > p {
  flex: 1 1 auto;
}

.marketplace-card-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.marketplace-card-footer form {
  margin-top: 0;
}

.marketplace-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-card-actions form {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.marketplace-card-actions form[data-price-form] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  width: 100%;
}

.marketplace-card-actions form.local-instance-form[data-price-form] {
  grid-template-columns: minmax(0, 1fr);
}

.local-instance-form .marketplace-card-action-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
}

.local-instance-form .marketplace-card-action-row button[name="unlimited"] {
  width: 100%;
}

.local-instance-form .marketplace-card-action-row button {
  height: 42px;
  min-height: 42px;
}

.unlimited-local-button {
  display: grid !important;
  gap: 1px;
  line-height: 1.05;
  padding-bottom: 5px;
  padding-top: 5px;
  white-space: normal;
}

.unlimited-local-button span {
  color: inherit;
  display: block;
  font-weight: 800;
  line-height: 1;
}

.unlimited-local-button span + span {
  font-size: 12px;
}

.marketplace-card-action-row {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.marketplace-card-actions .details-link,
.marketplace-card-actions button {
  align-items: center;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  height: 36px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 36px;
  padding: 8px 12px;
}

.marketplace-card-action-row .details-link,
.marketplace-card-action-row button {
  width: 88px;
}

.marketplace-card-actions form:not([data-price-form]) .details-link,
.marketplace-card-actions form:not([data-price-form]) button {
  width: 76px;
}

.marketplace-card-actions select {
  max-width: none;
  min-width: 92px;
}

.marketplace-card-actions input[type="number"] {
  max-width: 82px;
}

.marketplace-card-actions .local-instance-form input[type="number"] {
  max-width: none;
}

.marketplace-card-footer .marketplace-price {
  min-height: 0;
}

.local-instance-price {
  gap: 8px;
}

.price-tiers span {
  color: #aeb6c4;
  font-size: 12px;
}

.table-filter {
  margin-bottom: 12px;
  max-width: 360px;
}

.payment-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 12px 0 18px;
}

.payment-summary div {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  padding: 12px;
}

.payment-summary dt {
  color: #9ea7b4;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-summary dd {
  color: #f4f6f8;
  margin: 6px 0 0;
}

.sort-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sort-form label {
  color: #aeb6c4;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  min-width: 190px;
}

.plugin-list {
  display: grid;
  gap: 10px;
}

.repository-list {
  display: grid;
  gap: 10px;
}

.repository-row {
  align-items: center;
  background: #111317;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  padding: 12px 14px;
}

.repository-row h3 {
  margin: 0 0 2px;
}

.repository-row .button-link {
  min-height: 34px;
}

.repository-row form {
  margin: 0;
}

.repository-message {
  color: #cbd1da;
  grid-column: 1 / -1;
}

.plugin-panel {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
}

.plugin-panel[open] {
  background: #181a1f;
}

.plugin-panel summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto;
  list-style: none;
  padding: 12px 14px;
}

.plugin-panel summary::-webkit-details-marker {
  display: none;
}

.plugin-panel summary::before {
  color: #69c7d6;
  content: "+";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.plugin-panel[open] summary::before {
  content: "-";
}

.plugin-title {
  display: grid;
  gap: 2px;
  grid-column: 2 / 3;
}

.plugin-title strong {
  color: #f4f6f8;
  margin: 0;
}

.plugin-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  align-items: center;
  background: #22262d;
  border: 1px solid #343943;
  border-radius: 999px;
  color: #dfe4ea;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  text-decoration: none;
  white-space: nowrap;
}

.clickable-pill:hover {
  background: rgba(104, 199, 215, 0.14);
  border-color: rgba(104, 199, 215, 0.48);
  color: #a9edf5;
  text-decoration: none;
}

.pill.status-approved,
.pill.status-finished,
.pill.status-settled,
.pill.status-ok {
  background: rgba(67, 160, 105, 0.16);
  border-color: rgba(67, 160, 105, 0.55);
  color: #7ee0a2;
}

.pill.status-failed,
.pill.status-rejected,
.pill.status-invalid,
.pill.status-expired,
.pill.status-down {
  background: rgba(225, 82, 82, 0.15);
  border-color: rgba(225, 82, 82, 0.55);
  color: #ff8d8d;
}

.pill.status-pending,
.pill.status-building,
.pill.status-processing,
.pill.status-new {
  background: rgba(242, 195, 107, 0.13);
  border-color: rgba(242, 195, 107, 0.5);
  color: #f2c36b;
}

.plugin-price {
  color: #f2c36b;
  font-weight: 700;
  white-space: nowrap;
}

.release-state {
  color: #9ea7b4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: flex-end;
}

.inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.role-request-actions {
  align-items: center;
  flex-wrap: nowrap;
}

.role-request-actions form {
  flex-wrap: nowrap;
}

.role-request-actions input,
.role-request-actions button {
  height: 36px;
  min-height: 36px;
}

.role-request-actions input {
  min-width: 220px;
}

.plugin-panel-body {
  border-top: 1px solid #30343c;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.plugin-meta {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.plugin-meta-group {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
}

.plugin-meta-group span {
  color: #7d8592;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.plugin-meta-group strong,
.plugin-meta-group a {
  color: #dfe4ea;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.plugin-meta-group a {
  color: #69c7d6;
}

.plugin-actions {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 1fr);
}

.compact-plugin-actions {
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.35fr) minmax(260px, 0.9fr);
}

.admin-plugin-middle-column {
  display: grid;
  gap: 14px;
}

.plugin-actions .stack,
.action-section {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
  max-width: none;
  padding: 12px;
}

.form-hint {
  color: #8d96a3;
  font-size: 12px;
  margin: 0;
}

.purchase-option-list {
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.purchase-option-row {
  background: #181b20;
  border: 1px solid #30343c;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.purchase-option-row label {
  color: #aeb6c4;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.purchase-option-row textarea {
  min-height: 58px;
}

.purchase-option-row button {
  justify-self: start;
}

.plugin-actions h3 {
  margin-bottom: 2px;
}

.tier-list {
  display: grid;
  gap: 8px;
}

.tier-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tier-row label {
  color: #aeb6c4;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.tier-row button {
  background: #22262d;
  border-color: #343943;
  color: #dfe4ea;
  grid-column: 1 / -1;
  justify-self: start;
}

.tier-row button:hover:not(:disabled) {
  background: #2a3038;
  border-color: #4b5360;
  color: #ffffff;
}

section + section {
  margin-top: 0;
}

ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  align-items: center;
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

li span {
  color: #cbd1da;
}

.pagination {
  justify-content: flex-start;
  margin-top: 14px;
}

.pagination span {
  align-items: center;
  color: #aeb6c4;
  display: inline-flex;
  min-height: 34px;
}

.update-request-list {
  display: grid;
  gap: 12px;
}

.update-request {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.changelog-section {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  max-width: 820px;
  overflow: hidden;
}

.changelog-section[open] {
  background: #181a1f;
}

.changelog-section summary.section-heading {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  list-style: none;
  margin-bottom: 0;
  padding: 12px 14px;
}

.changelog-section summary.section-heading::-webkit-details-marker {
  display: none;
}

.changelog-section summary.section-heading::before {
  color: #69c7d6;
  content: "+";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.changelog-section[open] summary.section-heading::before {
  content: "-";
}

.changelog-section .update-request-list,
.changelog-section .empty-state {
  padding: 0 14px 14px;
}

.update-request-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.update-request-header h3 {
  margin: 0;
}

.update-request-header p {
  color: #aeb6c4;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.request-pill-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.update-request-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.update-request-meta div {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  padding: 9px;
}

.update-request-meta dt {
  color: #7d8592;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.update-request-meta dd {
  color: #dfe4ea;
  margin: 0;
}

.commit-text {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.update-notes {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  color: #cbd1da;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 10px;
}

.developer-update-list {
  max-width: 900px;
}

.developer-update-request {
  background: #111317;
}

.security-event-list {
  display: grid;
  gap: 12px;
}

.security-event {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.security-event-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.security-event-header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.security-event-header strong {
  color: #f4f6f8;
}

.security-event-header small,
.security-event-details small {
  color: #8d96a3;
}

.security-event-details {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.security-event-details div {
  min-width: 0;
}

.security-event-details dt {
  color: #7d8592;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.security-event-details dd {
  color: #dfe4ea;
  display: grid;
  gap: 3px;
  margin: 0;
}

.admin-message {
  display: grid;
  gap: 6px;
}

.admin-message strong {
  color: #f2c36b;
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
}

.warning-note {
  border-color: #6b4e24;
  color: #f2c36b;
}

.update-group-list {
  max-width: 960px;
}

.update-plugin-group {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 8px;
}

.update-plugin-group[open] {
  background: #181a1f;
}

.update-plugin-group summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
  padding: 12px 14px;
}

.update-plugin-group summary::-webkit-details-marker {
  display: none;
}

.update-plugin-group summary::before {
  color: #69c7d6;
  content: "+";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.update-plugin-group[open] summary::before {
  content: "-";
}

.update-plugin-group summary strong {
  color: #f4f6f8;
  margin: 0;
}

.update-plugin-group .update-request {
  background: #111317;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
}

.update-plugin-group .update-request:last-child {
  border-radius: 0 0 8px 8px;
}

.update-request-actions {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, max-content) minmax(240px, 1fr);
}

.update-request-actions form {
  margin: 0;
}

.update-request-actions textarea {
  min-height: 70px;
}

.reject-update-form label {
  color: #aeb6c4;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

body > header nav a,
body > header nav button {
  align-items: center;
  background: #22262d;
  border: 1px solid #343943;
  border-radius: 6px;
  box-sizing: border-box;
  color: #dfe4ea;
  display: inline-flex;
  font-size: 13px;
  justify-content: center;
  line-height: 1;
  min-height: 34px;
  padding: 7px 11px;
  white-space: nowrap;
}

body > header nav a:hover,
body > header nav button:hover {
  background: #2a3038;
  border-color: #4b5360;
  color: #ffffff;
  text-decoration: none;
}

body > header nav a.active,
body > header nav .nav-menu.active > .nav-menu-trigger {
  background: #69c7d6;
  border-color: #69c7d6;
  color: #071113;
}

body > header nav a.active:hover,
body > header nav .nav-menu.active > .nav-menu-trigger:hover {
  background: #8adce8;
  border-color: #8adce8;
  color: #071113;
}

.tabs {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

.tabs > input {
  display: none;
}

.tabs > label,
.tab-strip > label {
  background: #121418;
  border: 1px solid #30343c;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: #aeb6c4;
  cursor: pointer;
  font-weight: 700;
  padding: 11px 15px;
  white-space: nowrap;
}

.admin-tabs {
  display: block;
}

.tab-strip {
  display: flex;
  gap: 0 6px;
}

.admin-tab-strip {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  width: 100%;
}

.admin-tab-strip > label {
  flex: 0 0 auto;
}

.tab-panel {
  display: none;
  flex-basis: 100%;
  border-top-left-radius: 0;
  width: 100%;
}

.account-search {
  position: relative;
}

.account-search-results {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.account-search-result {
  background: #22262d;
  border-color: #343943;
  color: #dfe4ea;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.account-search-result:hover:not(:disabled) {
  background: #2a3038;
  border-color: #4b5360;
  color: #ffffff;
}

.account-search-empty {
  color: #9ea7b4;
  font-size: 12px;
}

#developer-tab-repositories:checked ~ label[for="developer-tab-repositories"],
#developer-tab-upload:checked ~ label[for="developer-tab-upload"],
#developer-tab-plugins:checked ~ label[for="developer-tab-plugins"],
#developer-tab-purchases:checked ~ label[for="developer-tab-purchases"],
#developer-tab-stacktraces:checked ~ label[for="developer-tab-stacktraces"],
#developer-tab-reports:checked ~ label[for="developer-tab-reports"],
#developer-tab-terms:checked ~ label[for="developer-tab-terms"],
#dashboard-tab-access:checked ~ label[for="dashboard-tab-access"],
#dashboard-tab-instances:checked ~ label[for="dashboard-tab-instances"],
#dashboard-tab-credits:checked ~ label[for="dashboard-tab-credits"],
#dashboard-tab-transfer:checked ~ label[for="dashboard-tab-transfer"],
#dashboard-tab-terms:checked ~ label[for="dashboard-tab-terms"],
#admin-tab-promotions:checked ~ label[for="admin-tab-promotions"],
#admin-tab-settings:checked ~ label[for="admin-tab-settings"],
#admin-tab-accounts:checked ~ label[for="admin-tab-accounts"],
#admin-tab-instances:checked ~ label[for="admin-tab-instances"],
#admin-tab-plugins:checked ~ label[for="admin-tab-plugins"],
#admin-tab-maintenance:checked ~ label[for="admin-tab-maintenance"],
#admin-tab-purchases:checked ~ label[for="admin-tab-purchases"],
#admin-tab-platform:checked ~ label[for="admin-tab-platform"],
#admin-tab-docs:checked ~ label[for="admin-tab-docs"],
#admin-tab-obfuscation:checked ~ label[for="admin-tab-obfuscation"],
#admin-tab-updates:checked ~ label[for="admin-tab-updates"],
#admin-tab-reports:checked ~ label[for="admin-tab-reports"],
#admin-tab-security:checked ~ label[for="admin-tab-security"],
#admin-tab-promotions:checked ~ .admin-tab-strip label[for="admin-tab-promotions"],
#admin-tab-settings:checked ~ .admin-tab-strip label[for="admin-tab-settings"],
#admin-tab-accounts:checked ~ .admin-tab-strip label[for="admin-tab-accounts"],
#admin-tab-instances:checked ~ .admin-tab-strip label[for="admin-tab-instances"],
#admin-tab-plugins:checked ~ .admin-tab-strip label[for="admin-tab-plugins"],
#admin-tab-maintenance:checked ~ .admin-tab-strip label[for="admin-tab-maintenance"],
#admin-tab-purchases:checked ~ .admin-tab-strip label[for="admin-tab-purchases"],
#admin-tab-platform:checked ~ .admin-tab-strip label[for="admin-tab-platform"],
#admin-tab-docs:checked ~ .admin-tab-strip label[for="admin-tab-docs"],
#admin-tab-obfuscation:checked ~ .admin-tab-strip label[for="admin-tab-obfuscation"],
#admin-tab-updates:checked ~ .admin-tab-strip label[for="admin-tab-updates"],
#admin-tab-reports:checked ~ .admin-tab-strip label[for="admin-tab-reports"],
#admin-tab-security:checked ~ .admin-tab-strip label[for="admin-tab-security"] {
  background: #181a1f;
  color: #69c7d6;
}

#developer-tab-repositories:checked ~ .tab-panel-repositories,
#developer-tab-upload:checked ~ .tab-panel-upload,
#developer-tab-plugins:checked ~ .tab-panel-plugins,
#developer-tab-purchases:checked ~ .tab-panel-purchases,
#developer-tab-stacktraces:checked ~ .tab-panel-stacktraces,
#developer-tab-reports:checked ~ .tab-panel-reports,
#developer-tab-terms:checked ~ .tab-panel-terms,
#dashboard-tab-access:checked ~ .tab-panel-access,
#dashboard-tab-instances:checked ~ .tab-panel-instances,
#dashboard-tab-credits:checked ~ .tab-panel-credits,
#dashboard-tab-transfer:checked ~ .tab-panel-transfer,
#dashboard-tab-terms:checked ~ .tab-panel-terms,
#admin-tab-promotions:checked ~ .tab-panel-promotions,
#admin-tab-settings:checked ~ .tab-panel-settings,
#admin-tab-accounts:checked ~ .tab-panel-accounts,
#admin-tab-instances:checked ~ .tab-panel-instances,
#admin-tab-plugins:checked ~ .tab-panel-plugins,
#admin-tab-maintenance:checked ~ .tab-panel-maintenance,
#admin-tab-purchases:checked ~ .tab-panel-purchases,
#admin-tab-platform:checked ~ .tab-panel-platform,
#admin-tab-docs:checked ~ .tab-panel-docs,
#admin-tab-obfuscation:checked ~ .tab-panel-obfuscation,
#admin-tab-updates:checked ~ .tab-panel-updates,
#admin-tab-role-requests:checked ~ .tab-panel-role-requests,
#admin-tab-reports:checked ~ .tab-panel-reports,
#admin-tab-security:checked ~ .tab-panel-security {
  display: block;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2:not(:first-child) {
  border-top: 1px solid #30343c;
  margin-top: 18px;
  padding-top: 18px;
}

.status-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 12px 0;
}

.status-list div {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  padding: 10px;
}

.status-list dt {
  color: #8f98a7;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.status-list dd {
  color: #dfe4ea;
  margin: 0;
  overflow-wrap: anywhere;
}

.build-output {
  background: #0f1115;
  border: 1px solid #30343c;
  border-radius: 6px;
  color: #cfd8e3;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  header {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  nav {
    flex-wrap: wrap;
  }

  main {
    padding: 16px;
    width: auto;
  }

  .flash-stack {
    width: calc(100% - 32px);
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabs > label,
  .tab-strip > label {
    border: 1px solid #30343c;
    border-radius: 6px;
    text-align: center;
  }

  .admin-tab-strip {
    padding-bottom: 4px;
  }

  .tab-panel {
    border-radius: 8px;
    margin-top: 8px;
  }

  .update-request-actions {
    grid-template-columns: 1fr;
  }

  td form,
  article > form:not(.stack) {
    align-items: stretch;
    display: grid;
  }

  .plugin-panel summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .plugin-panel summary::before {
    grid-column: 1;
    grid-row: 1;
  }

  .plugin-title,
  .pill,
  .plugin-price,
  .release-state {
    grid-column: 2;
  }

  .release-state {
    justify-content: flex-start;
  }

  .plugin-actions {
    grid-template-columns: 1fr;
  }

  .tier-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .repository-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .instance-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .instance-row dl {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .landing-steps,
  .landing-split,
  .dashboard-hero,
  .dashboard-promotion,
  .section-heading,
  .sort-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .tabs {
    grid-template-columns: 1fr;
  }
}

/* App-wide UX polish */
:root {
  --bg: #0d0f12;
  --surface: #171a1f;
  --surface-raised: #1d2128;
  --surface-soft: #111419;
  --surface-hover: #242a33;
  --border: #313845;
  --border-strong: #414b5a;
  --text: #edf1f5;
  --text-muted: #aab4c2;
  --text-soft: #7f8998;
  --accent: #68c7d7;
  --accent-hover: #8adde8;
  --accent-ink: #061114;
  --warning: #f0c46c;
  --success: #7adf9c;
  --danger: #ff8e98;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  --radius: 8px;
}

* {
  scrollbar-color: #3d4654 #111419;
}

html {
  background: var(--bg);
}

body {
  background:
      linear-gradient(180deg, rgba(104, 199, 215, 0.04), transparent 220px),
      var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: antialiased;
}

body > header {
  background: rgba(23, 26, 31, 0.96);
  border-bottom-color: var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

main {
  max-width: 1280px;
}

h2 {
  font-size: 18px;
}

h3 {
  line-height: 1.25;
}

a,
.sort-link:hover,
.sort-link.active {
  color: var(--accent);
}

a:hover {
  color: #95e0eb;
}

button,
.button-link {
  background: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: var(--accent-ink);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

button:hover:not(:disabled),
.button-link:hover {
  background: #91dfeb;
  border-color: #91dfeb;
  transform: translateY(-1px);
}

button:active:not(:disabled),
.button-link:active {
  transform: translateY(0);
}

button:focus-visible,
.button-link:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(104, 199, 215, 0.85);
  outline-offset: 2px;
}

.secondary-button,
.button-link.secondary,
body > header nav a,
body > header nav button {
  background: #20252d;
  border-color: var(--border);
  color: #dfe6ee;
}

.secondary-button:hover:not(:disabled),
.button-link.secondary:hover,
body > header nav a:hover,
body > header nav button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.danger-button {
  background: #5a252b;
  border-color: #a64752;
  color: #ffe3e7;
}

body > header nav {
  gap: 6px;
}

body > header nav a,
body > header nav button {
  min-height: 36px;
}

body > header nav a.active,
body > header nav .nav-menu.active > .nav-menu-trigger {
  box-shadow: 0 0 0 3px rgba(104, 199, 215, 0.14);
}

section,
article {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

section {
  overflow-x: auto;
}

article {
  min-width: 0;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid article {
  border-radius: var(--radius);
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.grid article:hover {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.section-heading {
  align-items: start;
  border-bottom: 1px solid rgba(49, 56, 69, 0.7);
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 5px;
}

.section-heading p {
  color: var(--text-muted);
}

.stack label,
.sort-form label,
.inline-form label,
.purchase-option-row label,
.tier-row label,
.reject-update-form label {
  color: var(--text-muted);
}

input,
select,
textarea {
  background: #0f1217;
  border-color: var(--border);
  color: var(--text);
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(104, 199, 215, 0.15);
}

table {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

thead {
  background: #20252d;
}

th {
  color: #c6ced9;
  letter-spacing: 0;
}

td,
th {
  border-bottom-color: var(--border);
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: rgba(104, 199, 215, 0.045);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tabs {
  background: transparent;
  gap: 0 6px;
}

.tab-strip {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 0 6px;
  padding: 0;
}

.tabs > label,
.tab-strip > label {
  align-items: center;
  background: #111419;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-sizing: border-box;
  color: var(--text-muted);
  display: inline-flex;
  min-height: 36px;
  padding: 0 15px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.tabs > label:hover,
.tab-strip > label:hover {
  background: #171b22;
  color: var(--text);
}

#developer-tab-repositories:checked ~ label[for="developer-tab-repositories"],
#developer-tab-upload:checked ~ label[for="developer-tab-upload"],
#developer-tab-plugins:checked ~ label[for="developer-tab-plugins"],
#developer-tab-purchases:checked ~ label[for="developer-tab-purchases"],
#developer-tab-stacktraces:checked ~ label[for="developer-tab-stacktraces"],
#developer-tab-reports:checked ~ label[for="developer-tab-reports"],
#developer-tab-terms:checked ~ label[for="developer-tab-terms"],
#dashboard-tab-access:checked ~ label[for="dashboard-tab-access"],
#dashboard-tab-instances:checked ~ label[for="dashboard-tab-instances"],
#dashboard-tab-credits:checked ~ label[for="dashboard-tab-credits"],
#dashboard-tab-transfer:checked ~ label[for="dashboard-tab-transfer"],
#dashboard-tab-terms:checked ~ label[for="dashboard-tab-terms"],
#admin-tab-promotions:checked ~ .admin-tab-strip label[for="admin-tab-promotions"],
#admin-tab-settings:checked ~ .admin-tab-strip label[for="admin-tab-settings"],
#admin-tab-accounts:checked ~ .admin-tab-strip label[for="admin-tab-accounts"],
#admin-tab-instances:checked ~ .admin-tab-strip label[for="admin-tab-instances"],
#admin-tab-plugins:checked ~ .admin-tab-strip label[for="admin-tab-plugins"],
#admin-tab-maintenance:checked ~ .admin-tab-strip label[for="admin-tab-maintenance"],
#admin-tab-purchases:checked ~ .admin-tab-strip label[for="admin-tab-purchases"],
#admin-tab-platform:checked ~ .admin-tab-strip label[for="admin-tab-platform"],
#admin-tab-docs:checked ~ .admin-tab-strip label[for="admin-tab-docs"],
#admin-tab-obfuscation:checked ~ .admin-tab-strip label[for="admin-tab-obfuscation"],
#admin-tab-updates:checked ~ .admin-tab-strip label[for="admin-tab-updates"],
#admin-tab-reports:checked ~ .admin-tab-strip label[for="admin-tab-reports"],
#admin-tab-security:checked ~ .admin-tab-strip label[for="admin-tab-security"] {
  background: var(--surface);
  border-color: rgba(104, 199, 215, 0.46);
  border-bottom-color: var(--surface);
  color: #a9edf5;
  margin-bottom: -1px;
  min-height: 38px;
  position: relative;
  z-index: 2;
}

.tab-panel {
  margin-top: 0;
}

.pill {
  background: #242a33;
  border-color: var(--border-strong);
}

.pill.featured-marker {
  background: rgba(255, 207, 92, 0.14);
  border-color: rgba(255, 207, 92, 0.78);
  color: #ffdf86;
}

.pill.status-approved,
.pill.status-finished,
.pill.status-settled,
.pill.status-ok {
  background: rgba(67, 160, 105, 0.18);
  border-color: rgba(122, 223, 156, 0.52);
  color: var(--success);
}

.pill.status-failed,
.pill.status-rejected,
.pill.status-invalid,
.pill.status-expired,
.pill.status-down {
  background: rgba(225, 82, 82, 0.17);
  border-color: rgba(255, 142, 152, 0.5);
  color: var(--danger);
}

.pill.status-pending,
.pill.status-building,
.pill.status-processing,
.pill.status-new {
  background: rgba(240, 196, 108, 0.14);
  border-color: rgba(240, 196, 108, 0.48);
  color: var(--warning);
}

.empty-state,
.notice {
  background: #12161c;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 14px;
}

.notice.warning,
.warning-note {
  background: rgba(240, 196, 108, 0.1);
  border-color: rgba(240, 196, 108, 0.45);
  color: #f5d491;
}

.flash {
  box-shadow: var(--shadow);
}

.dashboard-hero,
.landing-hero {
  background: var(--surface);
  border-color: var(--border);
}

.dashboard-balance,
.payment-summary div,
.status-list div,
.health-metrics article,
.dashboard-stats article,
.entitlement-card,
.instance-row,
.plugin-meta-group,
.action-section,
.plugin-actions .stack,
.repository-row,
.security-event,
.update-request,
.admin-instance-group,
.plugin-panel,
.update-plugin-group {
  background: var(--surface-soft);
  border-color: var(--border);
}

.dashboard-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 12px 0 16px;
}

.stat-card {
  display: grid;
  gap: 4px;
}

.stat-card-link {
  color: inherit;
  display: grid;
  gap: 4px;
  text-decoration: none;
}

.stat-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.stat-card-attention {
  background:
      linear-gradient(180deg, rgba(240, 196, 108, 0.13), rgba(255, 142, 152, 0.04)),
      var(--surface-soft);
  border-color: rgba(240, 196, 108, 0.56);
  box-shadow: 0 0 0 1px rgba(240, 196, 108, 0.12);
}

.stat-card-attention span {
  color: #ffdf86;
}

.stat-card-attention strong {
  color: #ffdf86;
}

.stat-card strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  margin: 0;
}

.dashboard-balance strong,
.plugin-price,
.marketplace-price strong {
  color: var(--warning);
}

.plugin-panel summary,
.admin-instance-group summary,
.update-plugin-group summary {
  min-height: 54px;
}

.plugin-panel summary:hover,
.admin-instance-group summary:hover,
.update-plugin-group summary:hover {
  background: rgba(104, 199, 215, 0.045);
}

.plugin-panel summary::before,
.admin-instance-group summary::before,
.update-plugin-group summary::before {
  align-items: center;
  background: rgba(104, 199, 215, 0.12);
  border: 1px solid rgba(104, 199, 215, 0.32);
  border-radius: 6px;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.plugin-title small,
.repository-message,
.code-cell,
.commit-text,
.security-event-details dd {
  overflow-wrap: anywhere;
}

.marketplace-price {
  background: rgba(240, 196, 108, 0.07);
  border: 1px solid rgba(240, 196, 108, 0.22);
  border-radius: var(--radius);
  margin-top: 4px;
  min-height: auto;
  padding: 10px;
}

.plugin-description {
  line-height: 1.5;
}

.plugin-description a {
  font-weight: 700;
}

.landing-points span + span::before {
  content: "\2022";
}

.client-preview,
.client-status,
.client-map,
.landing-panel,
.landing-panel div,
.landing-steps li {
  border-color: var(--border);
}

.account-search-results {
  position: relative;
  z-index: 4;
}

.account-search-result {
  min-height: 38px;
}

@media (max-width: 980px) {
  body > header {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  body > header nav {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }

  .plugin-panel summary,
  .admin-instance-group summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-instance-breakdown,
  .plugin-price,
  .release-state,
  .plugin-panel .pill,
  .admin-instance-group .pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  .landing-points {
    align-items: flex-start;
    display: grid;
    white-space: normal;
  }

  .landing-points span + span::before {
    content: none;
  }

  table {
    min-width: 680px;
  }

  .section-heading {
    display: grid;
  }
}

.tabs > a.tab-link,
.tab-strip > a.tab-link {
  align-items: center;
  background: #111419;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-sizing: border-box;
  color: var(--text-muted);
  display: inline-flex;
  font-weight: 700;
  min-height: 36px;
  padding: 0 15px;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.tabs > a.tab-link:hover,
.tab-strip > a.tab-link:hover {
  background: #171b22;
  color: var(--text);
  text-decoration: none;
}

#developer-tab-repositories:checked ~ a[data-tab-for="developer-tab-repositories"],
#developer-tab-upload:checked ~ a[data-tab-for="developer-tab-upload"],
#developer-tab-plugins:checked ~ a[data-tab-for="developer-tab-plugins"],
#developer-tab-purchases:checked ~ a[data-tab-for="developer-tab-purchases"],
#developer-tab-stacktraces:checked ~ a[data-tab-for="developer-tab-stacktraces"],
#developer-tab-reports:checked ~ a[data-tab-for="developer-tab-reports"],
#developer-tab-terms:checked ~ a[data-tab-for="developer-tab-terms"],
#dashboard-tab-access:checked ~ a[data-tab-for="dashboard-tab-access"],
#dashboard-tab-instances:checked ~ a[data-tab-for="dashboard-tab-instances"],
#dashboard-tab-credits:checked ~ a[data-tab-for="dashboard-tab-credits"],
#dashboard-tab-transfer:checked ~ a[data-tab-for="dashboard-tab-transfer"],
#dashboard-tab-terms:checked ~ a[data-tab-for="dashboard-tab-terms"],
.tabs > a.tab-link.active,
.tab-strip > a.tab-link.active,
#admin-tab-promotions:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-promotions"],
#admin-tab-settings:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-settings"],
#admin-tab-accounts:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-accounts"],
#admin-tab-instances:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-instances"],
#admin-tab-plugins:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-plugins"],
#admin-tab-maintenance:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-maintenance"],
#admin-tab-purchases:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-purchases"],
#admin-tab-platform:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-platform"],
#admin-tab-docs:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-docs"],
#admin-tab-obfuscation:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-obfuscation"],
#admin-tab-updates:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-updates"],
#admin-tab-reports:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-reports"],
#admin-tab-security:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-security"] {
  background: var(--surface);
  border-color: rgba(104, 199, 215, 0.46);
  border-bottom-color: var(--surface);
  color: #a9edf5;
  margin-bottom: -1px;
  min-height: 38px;
  position: relative;
  z-index: 2;
}

.admin-tab-groups {
  display: grid;
  gap: 10px;
}

.admin-tab-groups .tab-strip {
  align-items: center;
  margin: 0;
  padding-bottom: 0;
}

.admin-tab-group-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 6px;
  text-transform: uppercase;
}

#admin-tab-promotions:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-promotions"],
#admin-tab-settings:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-settings"],
#admin-tab-accounts:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-accounts"],
#admin-tab-instances:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-instances"],
#admin-tab-plugins:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-plugins"],
#admin-tab-maintenance:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-maintenance"],
#admin-tab-purchases:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-purchases"],
#admin-tab-platform:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-platform"],
#admin-tab-docs:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-docs"],
#admin-tab-obfuscation:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-obfuscation"],
#admin-tab-updates:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-updates"],
#admin-tab-reports:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-reports"],
#admin-tab-security:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-security"] {
  background: var(--surface);
  border-color: rgba(104, 199, 215, 0.46);
  border-bottom-color: var(--surface);
  color: #a9edf5;
  margin-bottom: -1px;
  min-height: 38px;
  position: relative;
  z-index: 2;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.filter-chips,
.plugin-meta-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips {
  margin: -4px 0 18px;
}

.filter-chip {
  background: rgba(104, 199, 215, 0.12);
  border: 1px solid rgba(104, 199, 215, 0.34);
  border-radius: 999px;
  color: #a9edf5;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  text-decoration: none;
}

.filter-chip:hover {
  background: rgba(104, 199, 215, 0.18);
  text-decoration: none;
}

.secondary-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-muted);
}

.marketplace-summary {
  margin-top: 0;
}

.usage-meter {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  max-width: 440px;
  padding: 12px;
}

.usage-meter-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.usage-meter progress {
  appearance: none;
  background: #0b0f13;
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  width: 100%;
}

.usage-meter progress::-webkit-progress-bar {
  background: #0b0f13;
}

.usage-meter progress::-webkit-progress-value {
  background: #68c7d7;
}

.usage-meter progress::-moz-progress-bar {
  background: #68c7d7;
}

.plugin-detail-hero {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

.plugin-detail-hero h2 {
  margin-bottom: 10px;
}

.plugin-detail-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plugin-detail-grid article,
.plugin-detail-grid > article {
  min-width: 0;
}

.plugin-detail-card-wide {
  grid-column: 1 / -1;
}

.plugin-description ul,
.plugin-description ol {
  margin: 8px 0 8px 22px;
}

.plugin-description a {
  color: #a9edf5;
}

.lifecycle-steps {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

.lifecycle-steps li {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
}

.lifecycle-steps li.complete,
.lifecycle-steps li.current {
  border-color: rgba(104, 199, 215, 0.46);
  color: #a9edf5;
}

.lifecycle-steps li.current {
  background: rgba(104, 199, 215, 0.12);
}

button[aria-busy="true"] {
  opacity: 0.76;
}

fieldset,
.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

legend {
  color: var(--text);
  font-weight: 800;
  padding: 0 6px;
}

.entitlement-group {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
  overflow: hidden;
}

.entitlement-group summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  font-weight: 800;
  list-style: none;
  padding: 12px 14px;
}

.entitlement-group summary::-webkit-details-marker {
  display: none;
}

.entitlement-group summary::before {
  color: var(--accent);
  content: ">";
  font-size: 12px;
  transition: transform 120ms ease;
}

.entitlement-group[open] summary::before {
  transform: rotate(90deg);
}

.entitlement-group .entitlement-grid {
  border-top: 1px solid var(--border);
  padding: 14px;
}

.admin-tabs {
  display: block;
}

.admin-tab-groups {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.admin-tab-groups .tab-strip {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.admin-tab-groups .tab-strip:last-child {
  border-bottom: 0;
}

.admin-tab-group-label {
  color: var(--text-muted);
  flex: 0 0 86px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
}

.admin-tab-groups a.tab-link {
  align-items: center;
  background: #101319;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  padding: 0 12px;
  text-decoration: none;
}

.admin-tab-groups a.tab-link:hover {
  background: #171c23;
  border-color: var(--border-strong);
  color: var(--text);
}

#admin-tab-promotions:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-promotions"],
#admin-tab-settings:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-settings"],
#admin-tab-accounts:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-accounts"],
#admin-tab-instances:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-instances"],
#admin-tab-plugins:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-plugins"],
#admin-tab-maintenance:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-maintenance"],
#admin-tab-purchases:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-purchases"],
#admin-tab-platform:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-platform"],
#admin-tab-docs:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-docs"],
#admin-tab-obfuscation:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-obfuscation"],
#admin-tab-updates:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-updates"],
#admin-tab-reports:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-reports"],
#admin-tab-security:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-security"] {
  background: rgba(104, 199, 215, 0.16);
  border-color: rgba(104, 199, 215, 0.62);
  color: #c8f8ff;
  margin-bottom: 0;
  min-height: 32px;
}

@media (max-width: 640px) {
  table.responsive-table {
    border-spacing: 0;
    min-width: 0;
  }

  table.responsive-table thead {
    display: none;
  }

  table.responsive-table,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td {
    display: block;
    width: 100%;
  }

  table.responsive-table tr {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 8px 0;
  }

  table.responsive-table td {
    border: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
    min-height: 34px;
    padding: 8px 12px;
    text-align: left;
  }

  table.responsive-table td::before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  table.responsive-table td:not([data-label]) {
    display: block;
  }

  table.responsive-table td:not([data-label])::before {
    content: none;
  }

  .admin-tab-groups .tab-strip {
    overflow-x: auto;
  }

  .admin-tab-group-label {
    flex-basis: 100%;
  }
}
