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;
}

.site-footer {
  border-top: 1px solid #30343c;
  margin: 32px auto 0;
  max-width: 1180px;
  padding: 18px 28px 24px;
}

.site-footer p {
  color: #8e98a8;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

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;
}

.locale-trigger {
  gap: 6px;
}

.locale-panel {
  min-width: 150px;
}

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;
}

.broadcast-strips {
  display: grid;
  gap: 8px;
}

.broadcast-strip {
  background: rgba(105, 199, 214, 0.1);
  border: 1px solid rgba(105, 199, 214, 0.45);
  border-radius: 6px;
  color: #9be4ef;
  font-weight: 700;
  margin: 0;
  padding: 11px 13px;
}

.secret-field {
  align-items: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 8px;
  padding: 1px 3px;
  text-align: left;
  transform: none;
}

/* The same step the secondary buttons take, so it sits with Link and Assign. */
.secret-field:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

/* A dotted underline, so the dots read as something you can click. */
.secret-field .secret-mask {
  border-bottom: 1px dotted var(--text-soft, #7f8998);
  color: var(--text-muted, #aeb9c7);
  letter-spacing: 2px;
}

/* No colour shift on hover -- the underline going solid is enough of a cue. */
.secret-field:hover .secret-mask {
  border-bottom-style: solid;
}

.secret-field:focus-visible {
  outline: 1px solid var(--border, #2c3544);
  outline-offset: 1px;
}

.secret-value,
.secret-mask {
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}

.save-file-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.config-list {
  display: grid;
  gap: 6px;
}

.config-scope-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.config-scope-head h4 {
  margin: 0;
}

.config-scope-head form {
  margin: 0;
}

.config-document {
  border: 1px solid var(--border, #2c3544);
  border-radius: 6px;
  padding: 8px 10px;
}

.config-document > details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.config-document > details > summary > span:first-of-type {
  flex: 1 1 auto;
}

.panel-section input[type="checkbox"] {
  accent-color: var(--accent, #7aa2f7);
  background: none;
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
  height: 15px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 15px;
}

.config-scope-head label.checkbox-row {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  margin: 0;
}

.panel-bulk label.checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 0;
}

.config-updated {
  color: var(--text-muted, #7f8998);
  font-size: 12px;
}

.config-form {
  margin-top: 10px;
}

.config-tree {
  display: grid;
  gap: 2px;
}

.config-row input[type="text"],
.config-row input[type="number"],
.config-row select {
  padding: 2px 6px;
}

.config-group {
  display: grid;
  gap: 2px;
}

.config-row {
  align-items: center;
  border-radius: 4px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
  padding: 0 6px;
}

.config-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.config-row > details {
  grid-column: 1 / -1;
}

.config-row > details > summary {
  align-items: baseline;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 4px 0;
}

.config-key {
  color: var(--text-muted, #aeb9c7);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.config-count {
  color: var(--text-soft, #7f8998);
  font-size: 11px;
}

.config-row input[type="text"],
.config-row input[type="number"] {
  max-width: 320px;
  width: 100%;
}

.config-row input[type="checkbox"] {
  accent-color: var(--accent, #68c7d7);
  height: 15px;
  justify-self: start;
  margin: 0;
  width: 15px;
}

.config-editor form {
  display: grid;
  gap: 8px;
}

.config-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.form-error {
  color: var(--danger, #e06c75);
  font-size: 12px;
  margin: 0;
}

.form-error:empty {
  display: none;
}

.config-raw {
  font-family: var(--font-mono, monospace);
  width: 100%;
}

.panel {
  display: grid;
  gap: 16px;
}

/* the grid rules below would otherwise beat the hidden attribute */
.panel [hidden] {
  display: none !important;
}

.panel-nav {
  border-bottom: 1px solid var(--border, #2c3544);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.panel-nav > a {
  border-bottom: 2px solid transparent;
  color: var(--text-muted, #aeb9c7);
  font-size: 14px;
  padding: 10px 14px;
  text-decoration: none;
}

.panel-nav > a:hover {
  color: var(--text, #f0f4f8);
}

.panel-nav > a.active {
  border-bottom-color: var(--accent, #68c7d7);
  color: var(--text, #f0f4f8);
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.panel-heading h2 {
  margin: 0 0 4px;
}

.panel-heading p {
  color: var(--text-muted, #aeb9c7);
  font-size: 13px;
  margin: 0;
}

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

.panel-form {
  background: var(--surface-soft, #10141b);
  border: 1px solid var(--border, #2c3544);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

.panel-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.panel-form label {
  display: grid;
  font-size: 13px;
  gap: 4px;
}

/* .panel-form label is a grid, which stacked the box above its text; a tick row stays inline. */
.panel-form label.checkbox-row,
.panel-bulk label.checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.panel-form label.checkbox-row input[type="checkbox"] {
  accent-color: var(--accent, #7aa2f7);
  flex: none;
  height: 15px;
  margin: 0;
  width: 15px;
}

.panel-form button[type="submit"] {
  justify-self: start;
}

.panel-table {
  width: 100%;
}

.panel-table td small {
  color: var(--text-soft, #7f8998);
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.panel-table .mono-cell {
  font-family: var(--font-mono, monospace);
}

.panel-table .nowrap-cell {
  white-space: nowrap;
}

.status-pill {
  border: 1px solid var(--border, #2c3544);
  border-radius: 10px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1px 8px;
  white-space: nowrap;
}

.status-pill.status-active {
  background: rgba(64, 180, 110, 0.16);
  border-color: rgba(64, 180, 110, 0.5);
  color: #4fc47f;
}

.status-pill.status-idle {
  background: rgba(214, 168, 62, 0.16);
  border-color: rgba(214, 168, 62, 0.5);
  color: #d8ac48;
}

.status-pill.status-offline,
.status-pill.status-unknown {
  color: var(--text-soft, #7f8998);
}

.category-filter select {
  min-width: 140px;
}

.panel-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
}

.panel-bulk label {
  align-items: center;
  color: var(--text-muted, #aeb9c7);
  display: flex;
  font-size: 12px;
  gap: 6px;
}

.panel-bulk input[type="number"] {
  max-width: 80px;
}

.panel-table .tick-cell {
  padding-right: 0;
  width: 28px;
}

.panel-table .tick-cell input {
  accent-color: var(--accent, #7aa2f7);
  height: 15px;
  width: 15px;
}

.inline-form {
  align-items: center;
  display: flex;
  gap: 6px;
}

.inline-form input {
  max-width: 200px;
}

.panel-launch h3 {
  margin: 0;
}

/*
 * Kept a table cell rather than a flex container: a flex td stops honouring vertical-align, so
 * its buttons drift to the top of any row made tall by a two-line cell. Inline children plus
 * text-align keep Edit beside Delete and both centred on the row.
 */
.panel-row-actions {
  text-align: right;
  white-space: nowrap;
}

.panel-row-actions > * {
  vertical-align: middle;
}

.panel-row-actions > * + * {
  margin-left: 6px;
}

.panel-row-actions form {
  display: inline-flex;
  margin: 0;
}

.panel-world {
  border: 1px solid var(--border, #2c3544);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
}

.panel-world legend {
  color: var(--text-muted, #aeb9c7);
  font-size: 12px;
  padding: 0 4px;
}

.panel-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 4px 0 8px;
}

.plugin-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  position: relative;
}

.plugin-search {
  min-width: 220px;
}

.plugin-results {
  background: var(--surface-raised, #1b2029);
  border: 1px solid var(--border, #2c3544);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  left: 0;
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  top: 100%;
  width: min(320px, 100%);
  z-index: 5;
}

.plugin-result {
  background: none;
  border: none;
  color: var(--text, #edf1f5);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 10px;
  text-align: left;
}

.plugin-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.plugin-empty {
  color: var(--text-soft, #7f8998);
  font-size: 12px;
  padding: 6px 10px;
}

.plugin-config-label {
  color: var(--text-muted, #aeb9c7);
  font-size: 12px;
}

.plugin-configs {
  max-width: 220px;
}

/* The picker stacks rows rather than sharing the multi-column grid the checkbox list uses. */
.panel-plugins[data-plugin-picker] {
  display: block;
}

.panel-plugins[data-plugin-picker] [data-plugin-add] {
  font-size: 12px;
  padding: 4px 10px;
  width: auto;
}

.plugin-remove {
  font-size: 12px;
  padding: 4px 8px;
}

.panel-plugins {
  border: 1px solid var(--border, #2c3544);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 10px 12px;
}

.panel-plugins legend {
  color: var(--text-muted, #aeb9c7);
  font-size: 12px;
  padding: 0 4px;
}

.panel-plugins .checkbox-row {
  align-items: center;
  display: flex;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.secret-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
}

.secret-item {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  word-break: break-all;
}

.secret-item + .secret-item::before {
  color: var(--text-soft, #7f8998);
  content: ":";
  margin-right: 8px;
}

.config-scope {
  border-top: 1px solid var(--border, #2c3544);
  margin-top: 4px;
  padding-top: 4px;
}

.config-scope h4 {
  color: var(--text-muted, #aeb9c7);
  font-size: 12px;
  margin: 0 0 2px;
}

/* One row per scope: the heading and the buttons share a line rather than stacking. */
.config-scope .config-editor form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.config-scope .config-editor .config-tree,
.config-scope .config-editor .config-raw {
  flex: 1 1 100%;
}

.config-scope .config-editor .config-actions {
  margin-left: auto;
}

.config-actions button {
  font-size: 12px;
  padding: 4px 10px;
}

.panel-form-inline {
  margin-top: 8px;
}

.action-toast {
  border-radius: 6px;
  bottom: 20px;
  font-weight: 700;
  max-width: min(360px, calc(100vw - 40px));
  opacity: 0;
  padding: 11px 13px;
  position: fixed;
  right: 20px;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.action-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.action-toast-error {
  background: #2b1616;
  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;
  /* Without this a button keeps the UA font and renders smaller than a .button-link beside it. */
  font-family: inherit;
  font-size: inherit;
  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,
button.secondary {
  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;
  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;
}

.stack.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;
}

.stack.discount-form {
  max-width: 760px;
}

.form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.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;
}

.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%;
  height: 12px;
  position: absolute;
  width: 12px;
}

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

.client-map span:nth-child(2) {
  background: #69c7d6;
  left: 56%;
  top: 52%;
}

.client-map span:nth-child(3) {
  background: #75d58a;
  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-developer-access {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.dashboard-developer-access p {
  display: block;
}

.dashboard-developer-access .button-link {
  justify-self: end;
  white-space: nowrap;
}

.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(260px, 0.8fr) minmax(420px, 1fr);
}

.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: 8px;
}

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

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

.compact-instance-row {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
}

.instance-plugin-pills,
.instance-plugin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.instance-plugin-list {
  margin-top: 10px;
}

.instance-card-main {
  min-width: 0;
}

.instance-count-pill {
  margin-bottom: 4px;
}

.instance-plugin-pill {
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 6px;
  display: inline-grid;
  gap: 2px;
  padding: 7px 9px;
}

.instance-plugin-pill strong {
  color: #f4f6f8;
  font-size: 13px;
}

.instance-plugin-pill small {
  color: #9ea7b4;
  font-size: 11px;
}

.instance-plugin-row {
  align-items: center;
  background: #181a1f;
  border: 1px solid #30343c;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: min(100%, 260px);
  padding: 7px 9px;
}

.instance-plugin-row strong {
  color: #f4f6f8;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instance-plugin-row small {
  color: #9ea7b4;
  font-size: 11px;
  text-transform: uppercase;
}

.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;
}

.instance-cell-list {
  align-items: start;
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.instance-cell-list div {
  display: block;
  line-height: 1.25;
}

.instance-product-chip {
  background: rgba(104, 199, 215, 0.08);
  border: 1px solid rgba(104, 199, 215, 0.28);
  border-radius: 6px;
  color: #f4f6f8;
  max-width: 180px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instance-type-row {
  color: #9ea7b4;
  font-size: 12px;
}

.muted-list {
  color: #9ea7b4;
}

.instance-row dd a,
.admin-instance-group td a {
  color: #69c7d6;
  font-weight: 700;
  text-decoration: none;
}

.instance-row dd a:hover,
.admin-instance-group td a:hover {
  text-decoration: underline;
}

.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 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 20px 44px rgba(0, 0, 0, 0.28);
}

.marketplace-card-premium:not(.marketplace-card-featured) {
  background:
      linear-gradient(180deg, rgba(255, 207, 92, 0.08), rgba(255, 207, 92, 0.018) 48%),
      var(--surface);
  border-color: rgba(255, 207, 92, 0.34);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.grid article.marketplace-card-premium:not(.marketplace-card-featured):hover {
  background:
      linear-gradient(180deg, rgba(255, 207, 92, 0.12), rgba(255, 207, 92, 0.026) 52%),
      var(--surface-raised);
  border-color: rgba(255, 207, 92, 0.48);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.marketplace-card-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.marketplace-card-avatar-link {
  display: block;
  flex: none;
  line-height: 0;
}

.marketplace-card-avatar-link:hover .marketplace-card-avatar {
  opacity: 0.82;
}

.marketplace-card-avatar {
  border-radius: 8px;
  flex: none;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.marketplace-card-avatar-fallback {
  align-items: center;
  background: var(--surface-hover);
  color: var(--text-muted);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
}

.marketplace-card-titles {
  flex: 1 1 auto;
  min-width: 0;
}

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

.marketplace-card-byline {
  align-items: center;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
  margin-top: 2px;
}

.marketplace-card-byline a {
  color: var(--text-soft);
  text-decoration: none;
}

.marketplace-card-byline a:hover {
  color: var(--accent);
}

.plugin-badge {
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.plugin-badge-featured {
  background: rgba(104, 199, 215, 0.16);
  color: var(--accent);
}

.plugin-badge-beta {
  background: rgba(255, 207, 92, 0.16);
  color: #ffcf5c;
}

.plugin-badge-free {
  background: rgba(126, 210, 150, 0.16);
  color: #8fd9a8;
}

.plugin-badge-premium {
  background: rgba(244, 201, 111, 0.16);
  color: #f4c96f;
}

.marketplace-card-desc-wrap {
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  flex: 0 0 auto;
  height: 84px;
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
  transition: mask-image 0.15s ease, -webkit-mask-image 0.15s ease;
}

.marketplace-card:has(.coming-soon-action) .marketplace-card-desc-wrap {
  height: 124px;
}

.marketplace-card-desc-wrap.at-bottom {
  -webkit-mask-image: none;
  mask-image: none;
}

.marketplace-card-desc-wrap::-webkit-scrollbar {
  width: 5px;
}

.marketplace-card-desc-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.marketplace-card-desc-wrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

.marketplace-card-desc-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--text-soft);
}

.marketplace-card-desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
}

.marketplace-card-desc p,
.marketplace-card-desc ul,
.marketplace-card-desc ol {
  margin: 0 0 4px;
}

.marketplace-card-desc p:last-child,
.marketplace-card-desc ul:last-child,
.marketplace-card-desc ol:last-child {
  margin-bottom: 0;
}

.marketplace-card-desc ul,
.marketplace-card-desc ol {
  display: block;
  gap: 0;
  list-style: disc;
  padding-left: 16px;
}

.marketplace-card-desc ol {
  list-style: decimal;
}

.marketplace-card-desc li {
  background: none;
  border: 0;
  border-radius: 0;
  display: list-item;
  gap: 0;
  margin: 0 0 2px;
  padding: 0;
}

.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 .coming-soon-action {
  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 {
  white-space: normal;
}

.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 .coming-soon-action button {
  min-width: 118px;
  width: auto;
}

.marketplace-card-actions .coming-soon-action .details-link {
  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;
}

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

.marketplace-grid .marketplace-card {
  gap: 8px;
  min-height: 0;
  padding: 14px;
}

.marketplace-card-titles h3,
.marketplace-card-titles h3 a {
  font-size: 15px;
  line-height: 1.2;
}

.marketplace-card-footer {
  align-items: end;
  border-top: 1px solid var(--border);
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 10px;
}

.marketplace-card-footer .marketplace-price {
  gap: 2px;
}

.marketplace-card-footer .price-display {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.marketplace-card-footer .marketplace-price small,
.marketplace-card-footer .price-tiers small {
  font-size: 11px;
  line-height: 1.25;
}

.marketplace-card-actions {
  gap: 6px;
}

.marketplace-card-actions form {
  gap: 6px;
}

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

.marketplace-card-action-row {
  gap: 6px;
}

.marketplace-card-actions .details-link,
.marketplace-card-actions button {
  height: 32px;
  min-height: 32px;
  padding: 6px 9px;
}

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

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

.marketplace-card-actions select {
  min-height: 32px;
}

.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;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
  max-width: 100%;
  padding: 4px 9px;
  text-decoration: none;
  width: fit-content;
  white-space: nowrap;
}

.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-refunded,
.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,
.pill.status-waiting,
.pill.status-confirming,
.pill.status-confirmed,
.pill.status-sending,
.pill.status-partially_paid,
.pill.status-wrong_asset_confirmed,
.pill.status-manually_granted {
  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 {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-top: 14px;
}

.pagination a,
.pagination span {
  align-items: center;
  background: #111820;
  border: 1px solid #303a47;
  border-radius: 6px;
  color: #aeb6c4;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  min-height: 32px;
  min-width: 34px;
  padding: 0 10px;
  text-decoration: none;
}

.pagination a:hover {
  border-color: #51d6e8;
  color: #edfaff;
}

.pagination .pagination-page.active {
  background: #51d6e8;
  border-color: #51d6e8;
  color: #061015;
}

.pagination .disabled {
  background: #0f1217;
  border-color: #20252d;
  color: #596371;
  cursor: default;
}

.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-commit-range {
  background: #111317;
  border: 1px solid #30343c;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.update-commit-range h4 {
  color: #dfe4ea;
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
}

.update-commit-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.update-commit-list li {
  align-items: baseline;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.update-commit-list span {
  color: #cbd1da;
  overflow-wrap: anywhere;
}

.update-commit-list small {
  color: #7d8592;
}

.new-update-marker {
  align-self: start;
  background: rgba(65, 214, 145, 0.16);
  border: 1px solid rgba(65, 214, 145, 0.48);
  border-radius: 6px;
  color: #8cf0bb;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 5px 9px;
}

.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-flag-panel {
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.security-flag-panel .section-heading {
  align-items: start;
  margin: 0;
  padding: 0;
}

.security-flag-panel .section-heading h3,
.security-flag-panel .section-heading p {
  margin: 0;
}

.security-flag-panel .section-heading p {
  margin-top: var(--space-1);
}

.security-flag-form {
  align-items: end;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 2fr) auto;
}

.security-flag-form button {
  white-space: nowrap;
}

.security-flag-table td:first-child small {
  display: block;
  margin-top: 3px;
}

@media (max-width: 760px) {
  .security-flag-form {
    grid-template-columns: 1fr;
  }

  .security-flag-form button {
    justify-self: stretch;
  }
}

.matching-ip-section {
  margin-top: var(--space-4);
}

.matching-ip-content {
  display: grid;
  gap: var(--space-3);
  padding: var(--panel-pad);
}

.matching-ip-content > p {
  margin: 0;
}

.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-header .security-event-badges {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.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;
}

.matching-ip-address-details {
  border-top: 1px solid #262b33;
  padding-top: 10px;
}

.matching-ip-address-details > summary {
  color: #8d96a3;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.matching-ip-address-details table {
  margin-top: 10px;
}

.ban-report-identity {
  background: #111317;
  border: 1px solid #373c45;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 10px;
  max-height: 220px;
  max-width: 360px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.ban-account-plugin-list {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 10px 0 0;
  max-height: 160px;
  overflow: auto;
  padding: 0;
}

.ban-account-plugin-list li {
  align-items: baseline;
  color: #dfe4ea;
  display: flex;
  font-size: 12px;
  gap: 10px;
  justify-content: space-between;
}

.ban-account-plugin-list li span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ban-account-plugin-list li span:last-child {
  color: #8d96a3;
  flex: 0 0 auto;
}

.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;
}

.watermark-class-details {
  border-top: 1px solid #30343c;
  margin-top: 2px;
  padding-top: 10px;
}

.watermark-class-details > summary {
  align-items: center;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  justify-content: flex-start;
  list-style: none;
  min-height: 30px;
  width: fit-content;
}

.watermark-class-details > summary::-webkit-details-marker {
  display: none;
}

.watermark-class-details > summary::before {
  content: "+";
  font-size: 15px;
  line-height: 1;
}

.watermark-class-details[open] > summary::before {
  content: "-";
}

.watermark-class-details > summary strong {
  background: var(--surface-hover);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
  min-width: 24px;
  padding: 3px 7px;
  text-align: center;
}

.watermark-class-list {
  border-top: 1px solid rgba(70, 83, 101, 0.45);
  display: grid;
  margin-top: 8px;
}

.watermark-class-hit {
  display: grid;
  gap: 8px;
  padding: 10px 2px;
}

.watermark-class-hit + .watermark-class-hit {
  border-top: 1px solid rgba(70, 83, 101, 0.35);
}

.watermark-class-hit > code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.watermark-class-hit dl {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
}

.watermark-class-hit dl > div {
  min-width: 0;
}

.watermark-class-hit dt {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.watermark-class-hit dd {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

.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;
}

.discount-user-search {
  margin-top: 6px;
}

.selected-account-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 28px;
}

.selected-account {
  align-items: center;
  background: #1d2832;
  border: 1px solid #385064;
  border-radius: 999px;
  color: #dfe9f2;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  max-width: 100%;
  padding: 4px 5px 4px 9px;
}

.selected-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-account-remove {
  align-items: center;
  background: #263746;
  border: 0;
  border-radius: 999px;
  color: #dfe9f2;
  display: inline-flex;
  font-size: 12px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.selected-account-remove:hover {
  background: #36536a;
}

#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"],
#dashboard-tab-developer-terms:checked ~ label[for="dashboard-tab-developer-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-dashboard:checked ~ label[for="admin-tab-dashboard"],
#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-dashboard:checked ~ .admin-tab-strip label[for="admin-tab-dashboard"],
#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-save-files:checked ~ .tab-panel-save-files,
#dashboard-tab-terms:checked ~ .tab-panel-terms,
#dashboard-tab-developer-terms:checked ~ .tab-panel-developer-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-dashboard:checked ~ .tab-panel-dashboard,
#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-payouts:checked ~ .tab-panel-payouts,
#admin-tab-splits:checked ~ .tab-panel-splits,
#admin-tab-bans:checked ~ .tab-panel-bans,
#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.secondary: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);
  color: var(--text, #edf1f5);
}

.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;
}

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);
}

/* without their own background the popup paints the highlight at text width, not full width */
select option {
  background-color: #0f1217;
  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);
}

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.expired-row {
  color: var(--muted);
  opacity: 0.72;
}

tbody tr.expired-row:hover {
  background: rgba(225, 82, 82, 0.04);
}

tbody tr.reversed-row {
  background: rgba(225, 82, 82, 0.08);
}

tbody tr.reversed-row:hover {
  background: rgba(225, 82, 82, 0.14);
}

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"],
#dashboard-tab-developer-terms:checked ~ label[for="dashboard-tab-developer-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-dashboard:checked ~ .admin-tab-strip label[for="admin-tab-dashboard"],
#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.beta-marker {
  background: rgba(102, 250, 254, 0.14);
  border-color: rgba(102, 250, 254, 0.66);
  color: #98fbff;
}

.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-refunded,
.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,
.pill.status-waiting,
.pill.status-confirming,
.pill.status-confirmed,
.pill.status-sending,
.pill.status-partially_paid,
.pill.status-wrong_asset_confirmed,
.pill.status-manually_granted {
  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;
}

.payment-risk-warning {
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.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);
}

.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;
}

.stat-card strong.text-stat {
  font-size: 18px;
  line-height: 1.2;
}

.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"],
#dashboard-tab-developer-terms:checked ~ a[data-tab-for="dashboard-tab-developer-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-dashboard:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-dashboard"],
#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-payouts:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-payouts"],
#admin-tab-splits:checked ~ .admin-tab-strip a[data-tab-for="admin-tab-splits"],
#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-dashboard:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-dashboard"],
#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-payouts:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-payouts"],
#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;
}

.usage-meter-unlimited progress::-webkit-progress-value {
  background: #8bbf7a;
}

.usage-meter-unlimited progress::-moz-progress-bar {
  background: #8bbf7a;
}

.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-dashboard:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-dashboard"],
#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-payouts:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-payouts"],
#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%;
  }
}

/* Marketplace cards should flow top-to-bottom; the generic grid card rows are too loose here. */
.marketplace-grid > article.marketplace-card {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  grid-template-rows: none !important;
}

.marketplace-grid > article.marketplace-card .marketplace-card-head,
.marketplace-grid > article.marketplace-card > h3,
.marketplace-grid > article.marketplace-card .marketplace-card-footer {
  flex: 0 0 auto;
  margin-bottom: 0;
  margin-top: 0;
}

.marketplace-grid > article.marketplace-card > h3 {
  margin: 0;
}

.marketplace-grid > article.marketplace-card .marketplace-card-footer {
  align-self: stretch;
  margin-top: auto !important;
}

/* Marketplace visual refresh */
:root {
  --bg: #090c10;
  --surface: #151922;
  --surface-raised: #1b202b;
  --surface-soft: #10141b;
  --surface-hover: #222936;
  --border: #2c3544;
  --border-strong: #465365;
  --text: #f0f4f8;
  --text-muted: #aeb9c7;
  --text-soft: #7f8b9a;
  --accent: #66d4e4;
  --accent-hover: #9beaf3;
  --accent-ink: #041114;
  --warning: #f4c96f;
  --success: #83e2a4;
  --danger: #ff98a3;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.2);
}

body {
  background:
      linear-gradient(180deg, rgba(102, 212, 228, 0.055), rgba(244, 201, 111, 0.025) 360px, transparent 720px),
      linear-gradient(90deg, rgba(102, 212, 228, 0.018), rgba(131, 226, 164, 0.012)),
      var(--bg);
}

body > header {
  backdrop-filter: blur(14px);
  background: rgba(13, 17, 23, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 36px rgba(0, 0, 0, 0.24);
}

body > header nav a,
body > header nav button,
.tabs > a.tab-link,
.tab-strip > a.tab-link,
.admin-tab-groups a.tab-link {
  border-radius: 7px;
}

body > header nav a.active,
body > header nav .nav-menu.active > .nav-menu-trigger,
.tabs > a.tab-link.active,
.tab-strip > a.tab-link.active,
#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-dashboard:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-dashboard"],
#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-payouts:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-payouts"],
#admin-tab-security:checked ~ .admin-tab-groups a[data-tab-for="admin-tab-security"] {
  background: rgba(102, 212, 228, 0.14);
  border-color: rgba(102, 212, 228, 0.58);
  color: #d9fbff;
}

main {
  gap: 20px;
  padding-top: 30px;
}

section,
article,
.tab-panel {
  box-shadow: var(--shadow-soft);
}

section,
article,
.tab-panel,
.admin-tab-groups,
.plugin-panel,
.update-plugin-group,
.admin-instance-group,
.entitlement-group {
  border-color: rgba(70, 83, 101, 0.72);
}

.tab-panel {
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 180px),
      var(--surface);
}

.section-heading {
  border-bottom-color: rgba(70, 83, 101, 0.55);
}

.section-heading h2,
.plugin-detail-hero h2,
.landing-hero h1,
.landing-hero h2,
.dashboard-hero h2 {
  letter-spacing: 0;
}

input,
select,
textarea {
  background: #0b0f15;
  border-color: rgba(70, 83, 101, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  background: #0e131a;
}

button,
.button-link {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.secondary-button,
.button-link.secondary,
body > header nav a,
body > header nav button {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

table {
  background: #0f141b;
  box-shadow: var(--shadow-soft);
}

thead {
  background: #1d2530;
}

th {
  color: #d1d9e4;
}

td {
  color: #dbe1e8;
}

.dashboard-stats {
  gap: 14px;
}

.stat-card,
.dashboard-balance,
.payment-summary div,
.plugin-meta-group {
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent),
      var(--surface-soft);
  border-color: rgba(70, 83, 101, 0.72);
}

.stat-card strong,
.dashboard-balance strong {
  letter-spacing: 0;
}

.pill,
.filter-chip,
.promotion-chip {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.marketplace-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.marketplace-grid > article.marketplace-card {
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 170px),
      var(--surface);
  border-color: rgba(70, 83, 101, 0.76);
  box-shadow: var(--shadow-soft);
  gap: 10px;
  padding: 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.marketplace-grid > article.marketplace-card:hover {
  background:
      linear-gradient(180deg, rgba(102, 212, 228, 0.045), transparent 180px),
      var(--surface-raised);
  border-color: rgba(102, 212, 228, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.marketplace-card-titles h3,
.marketplace-card-titles h3 a,
.marketplace-grid > article.marketplace-card > h3 {
  color: #f7fafc;
  font-size: 16px;
  font-weight: 800;
}

.marketplace-card-titles h3 a:hover {
  color: #d9fbff;
}

.marketplace-card-desc {
  color: #b8c3d1;
}

.marketplace-card-footer {
  background: rgba(9, 12, 16, 0.38);
  border: 1px solid rgba(70, 83, 101, 0.58);
  border-radius: var(--radius);
  padding: 10px;
}

.marketplace-card-footer .marketplace-price {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

.marketplace-card-featured {
  border-color: rgba(102, 212, 228, 0.72) !important;
  box-shadow: 0 0 0 1px rgba(102, 212, 228, 0.16), 0 18px 42px rgba(0, 0, 0, 0.32) !important;
}

.marketplace-card-premium:not(.marketplace-card-featured) {
  border-color: rgba(244, 201, 111, 0.46) !important;
  box-shadow: 0 0 0 1px rgba(244, 201, 111, 0.1), 0 16px 34px rgba(0, 0, 0, 0.18) !important;
}

.marketplace-promotion {
  background:
      linear-gradient(135deg, rgba(244, 201, 111, 0.16), rgba(102, 212, 228, 0.07)),
      #10141b;
  border-color: rgba(244, 201, 111, 0.5);
  box-shadow: var(--shadow-soft);
}

.plugin-detail-hero {
  background:
      linear-gradient(135deg, rgba(102, 212, 228, 0.09), rgba(244, 201, 111, 0.045)),
      var(--surface);
  border-color: rgba(102, 212, 228, 0.34);
}

.plugin-detail-hero h2 {
  font-size: 28px;
  line-height: 1.1;
}

.plugin-detail-grid article,
.plugin-detail-grid > article {
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 180px),
      var(--surface);
}

.plugin-description {
  color: #c1cad6;
}

.plugin-description h1,
.plugin-description h2,
.plugin-description h3,
.plugin-description h4 {
  color: #f6f9fc;
}

.plugin-panel,
.update-plugin-group,
.admin-instance-group,
.entitlement-group {
  overflow: hidden;
}

.plugin-panel > summary,
.admin-instance-group > summary,
.update-plugin-group > summary,
.entitlement-group > summary {
  background: rgba(255, 255, 255, 0.018);
}

.plugin-panel[open] > summary,
.admin-instance-group[open] > summary,
.update-plugin-group[open] > summary,
.entitlement-group[open] > summary {
  border-bottom: 1px solid rgba(70, 83, 101, 0.65);
}

.plugin-actions,
.compact-plugin-actions {
  gap: 12px;
}

.action-section {
  box-shadow: none;
}

.empty-state {
  background: rgba(16, 20, 27, 0.78);
}

.landing-hero {
  background:
      linear-gradient(135deg, rgba(102, 212, 228, 0.09), rgba(131, 226, 164, 0.04)),
      var(--surface);
}

.client-preview {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.36);
}

/* Layout consistency pass */
:root {
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --section-pad: 20px;
  --panel-pad: 16px;
}

main {
  gap: var(--space-5);
}

section,
article,
.tab-panel,
.dashboard-hero,
.dashboard-balance,
.marketplace-promotion,
.plugin-detail-hero,
.landing-hero,
.landing-band,
.landing-steps {
  padding: var(--section-pad);
}

.tab-panel {
  gap: var(--space-4);
}

.tab-panel > * + * {
  margin-top: var(--space-4);
}

.panel-section {
  background: rgba(9, 12, 16, 0.2);
  border: 1px solid rgba(70, 83, 101, 0.58);
  border-radius: var(--radius);
  box-sizing: border-box;
  display: grid;
  gap: var(--space-4);
  padding: var(--panel-pad);
  width: 100%;
}

.panel-section-heading {
  align-items: start;
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
}

.panel-section-heading h2,
.panel-section-heading h3,
.panel-section-heading p {
  margin: 0;
}

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

.panel-section > h2,
.panel-section > h3,
.panel-section > p,
.panel-section > form,
.panel-section > table,
.panel-section > .dashboard-stats,
.panel-section > .plugin-list,
.panel-section > .repository-list {
  margin: 0;
}

.tab-panel > h2,
.tab-panel > form,
.tab-panel > p,
.tab-panel > table,
.tab-panel > .dashboard-stats,
.tab-panel > .plugin-list,
.tab-panel > .update-request-list,
.tab-panel > details,
.tab-panel > section {
  margin-top: 0;
  margin-bottom: 0;
}

.tab-panel h2:not(:first-child) {
  margin-top: var(--space-2);
}

.section-heading {
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
}

.section-heading > div {
  min-width: 0;
}

.section-heading h2,
.tab-panel > h2,
.plugin-panel h3,
.action-section h3 {
  margin-bottom: var(--space-1);
}

.section-heading p,
.tab-panel > p,
.form-hint {
  max-width: 760px;
}

.dashboard-stats,
.health-grid,
.health-metrics,
.payment-summary,
.entitlement-grid,
.grid,
.plugin-detail-grid,
.feature-grid {
  gap: var(--space-4);
}

.stat-card,
.dashboard-balance,
.payment-summary div,
.entitlement-card,
.plugin-meta-group {
  padding: var(--space-3);
}

.stack,
.inline-form,
.sort-form,
.stacktrace-filter-form,
.form-row,
.tier-row,
.payment-options,
.payment-choice-row {
  gap: var(--space-3);
}

.stack {
  max-width: 720px;
}

.tab-panel > .stack,
.tab-panel > form.stack,
.action-section.stack,
.plugin-actions .stack {
  width: 100%;
}

.action-section.stack,
.plugin-actions .stack {
  max-width: none;
}

.form-row,
.tier-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sort-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  max-width: 860px;
  min-width: min(100%, 640px);
}

.sort-form label,
.inline-form label,
.stack label {
  gap: var(--space-1);
}

.section-heading .sort-form {
  justify-self: end;
  margin-left: auto;
  width: min(860px, 100%);
}

.section-heading .marketplace-filter-form {
  align-items: end;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(180px, 1fr) auto;
  max-width: 1000px;
  width: min(1000px, 100%);
}

.marketplace-listing-heading {
  grid-template-columns: minmax(190px, 0.28fr) minmax(780px, 1fr);
}

.marketplace-listing-heading > div {
  max-width: 240px;
}

.marketplace-listing-heading p {
  max-width: 24ch;
}

.marketplace-listing-heading .marketplace-filter-form {
  max-width: none;
  width: 100%;
}

.marketplace-filter-form button {
  min-width: 112px;
  white-space: nowrap;
}

.table-search-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: none;
  min-width: 0;
  width: 100%;
}

.table-search-form .table-filter {
  flex: 1 1 320px;
  margin: 0;
  max-width: 480px;
}

.table-search-form button,
.table-search-form .secondary-link {
  flex: 0 0 auto;
}

.table-search-form .secondary-link {
  align-items: center;
  display: inline-flex;
  min-height: 36px;
}

.product-picker {
  background: rgba(16, 20, 27, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
}

.product-picker-toolbar {
  align-items: end;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.product-picker-search {
  display: grid;
  gap: var(--space-1);
  margin: 0;
}

.product-picker-count {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  min-width: 82px;
  padding-bottom: 9px;
  white-space: nowrap;
}

.product-picker-list {
  border-top: 1px solid rgba(70, 83, 101, 0.35);
  display: grid;
  gap: 6px 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-height: 320px;
  overflow: auto;
  padding-top: var(--space-2);
}

.product-picker-list .choice-row {
  background: rgba(34, 38, 45, 0.65);
  border: 1px solid rgba(70, 83, 101, 0.5);
  border-radius: 6px;
  margin: 0;
  min-width: 0;
  padding: 8px;
}

.product-picker-list .choice-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.maintenance-user-picker {
  background: rgba(16, 20, 27, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
}

.maintenance-user-picker > label {
  margin: 0;
}

.account-multi-panel {
  border-top: 1px solid rgba(70, 83, 101, 0.35);
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.account-multi-panel[hidden] {
  display: none;
}

.admin-plugin-filter-form {
  align-items: end;
  background: rgba(16, 20, 27, 0.55);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 10px 12px;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 0.75fr) minmax(170px, 0.85fr) minmax(180px, 0.9fr) auto;
  padding: var(--space-3);
}

.admin-audit-filter-form {
  align-items: end;
  background: rgba(16, 20, 27, 0.55);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 10px 12px;
  grid-template-columns: minmax(200px, 260px) auto;
  padding: var(--space-3);
}

.admin-plugin-filter-field {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
}

.admin-plugin-filter-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-plugin-filter-field > input,
.admin-plugin-filter-field > select {
  box-sizing: border-box;
  height: 38px;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.multi-filter-menu {
  min-width: 0;
  position: relative;
}

.multi-filter-menu > summary {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  height: 38px;
  list-style: none;
  min-height: 38px;
  min-width: 0;
  padding: 8px 10px;
}

.multi-filter-menu > summary::-webkit-details-marker {
  display: none;
}

.multi-filter-menu > summary::after {
  color: var(--text-muted);
  content: "+";
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
  margin-left: 10px;
}

.multi-filter-menu[open] > summary::after {
  content: "-";
}

.multi-filter-menu > summary span {
  font-size: 0.82rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-filter-options {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-1);
  left: 0;
  max-height: 280px;
  min-width: 100%;
  overflow-y: auto;
  padding: var(--space-2);
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.multi-filter-options .checkbox-row {
  margin: 0;
  padding: 6px;
  white-space: nowrap;
}

.admin-plugin-filter-actions {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  min-height: 38px;
}

.admin-plugin-filter-actions button {
  min-width: 86px;
  white-space: nowrap;
}

.admin-plugin-filter-actions .secondary-link {
  white-space: nowrap;
}

.filter-chips,
.plugin-meta-strip,
.actions,
.table-actions,
.inline-actions,
.role-request-actions {
  gap: var(--space-2);
}

.plugin-list,
.repository-list,
.update-request-list,
.admin-instance-groups,
.instance-list {
  gap: var(--space-3);
}

.plugin-panel > summary,
.admin-instance-group > summary,
.update-plugin-group > summary,
.entitlement-group > summary {
  padding: var(--space-3) var(--panel-pad);
}

.plugin-panel-body,
.update-plugin-group .update-request-list,
.changelog-section .update-request-list,
.entitlement-group .entitlement-grid {
  gap: var(--space-4);
  padding: var(--panel-pad);
}

.plugin-meta {
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.plugin-actions,
.compact-plugin-actions {
  gap: var(--space-4);
}

.action-section,
.plugin-actions .stack {
  display: grid;
  gap: var(--space-3);
  padding: var(--panel-pad);
}

.plugin-actions .action-section,
.compact-plugin-actions .action-section {
  background: transparent;
  border-color: rgba(70, 83, 101, 0.5);
  box-shadow: none;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.form-actions button,
.form-actions .button-link {
  flex: 0 0 auto;
}

.plugin-editor-sections {
  border: 1px solid rgba(70, 83, 101, 0.58);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
}

.plugin-editor-section {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(70, 83, 101, 0.58);
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.plugin-editor-section:last-child {
  border-bottom: 0;
}

.plugin-editor-section > summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  justify-content: flex-start;
  letter-spacing: 0.04em;
  list-style: none;
  min-height: 38px;
  padding: 9px 12px;
  text-transform: uppercase;
}

.plugin-editor-section > summary::-webkit-details-marker {
  display: none;
}

.plugin-editor-section > summary::before {
  color: var(--text-muted);
  content: "+";
  font-size: 16px;
  line-height: 1;
}

.plugin-editor-section[open] > summary::before {
  content: "-";
}

.plugin-editor-section-body {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3);
}

.plugin-editor-section-body input,
.plugin-editor-section-body select,
.plugin-editor-section-body textarea,
.plugin-editor-section-body button,
.plugin-editor-section-body .button-link {
  box-sizing: border-box;
  max-width: 100%;
}

.plugin-editor-section .action-section,
.plugin-editor-section .stack {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
  width: 100%;
}

.plugin-editor-section .action-section + .action-section {
  border-top: 1px solid rgba(70, 83, 101, 0.45);
  padding-top: var(--space-3);
}

.plugin-editor-section .action-section h3 {
  color: var(--text);
  margin: 0;
}

.beta-access-form {
  gap: 14px;
}

.beta-access-overview {
  align-items: center;
  background: rgba(102, 212, 228, 0.045);
  border: 1px solid rgba(102, 212, 228, 0.18);
  border-radius: 6px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 14px;
}

.beta-access-overview p {
  color: var(--text-muted);
  margin: 3px 0 0;
}

.beta-access-quota {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  white-space: nowrap;
}

.beta-access-quota strong {
  color: var(--accent);
  font-size: 18px;
}

.beta-access-quota span,
.beta-access-actions span,
.beta-access-duration > span {
  color: var(--text-muted);
  font-size: 11px;
}

.beta-access-rules {
  background: rgba(16, 20, 27, 0.48);
  border: 1px solid rgba(70, 83, 101, 0.42);
  border-radius: 6px;
  display: grid;
  gap: 7px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 10px 12px;
}

.beta-access-rules li {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  padding-left: 13px;
  position: relative;
}

.beta-access-rules li::before {
  color: var(--accent);
  content: "\2022";
  left: 0;
  position: absolute;
}

.beta-access-fields {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(110px, 150px) minmax(110px, 150px);
}

.beta-access-account {
  min-width: 0;
}

.beta-access-form .account-search-results {
  background: #151a21;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 4px;
  margin-top: 5px;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  position: relative;
  z-index: 20;
}

.beta-access-form .account-search-results:empty {
  display: none;
}

.account-search-result {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.account-search-identity {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.account-search-identity strong,
.account-search-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-search-identity span,
.account-search-role {
  color: var(--text-muted);
  font-size: 11px;
}

.account-search-role {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  flex: 0 0 auto;
  padding: 2px 7px;
}

[data-account-search][data-account-selected="true"] {
  border-color: rgba(131, 226, 164, 0.55);
}

.beta-access-duration {
  background: #0b0f15;
  border: 1px solid rgba(70, 83, 101, 0.82);
  border-radius: 6px;
  box-sizing: border-box;
  display: grid;
  gap: 3px;
  min-height: 38px;
  padding: 5px 10px;
}

.beta-access-duration strong {
  font-size: 13px;
}

.beta-access-actions {
  justify-content: space-between;
}

.beta-access-users {
  gap: 10px;
}

.beta-access-users h3,
.beta-access-users p {
  margin: 0;
}

.beta-access-users small {
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.beta-access-users form {
  margin: 0;
}

@media (max-width: 680px) {
  .beta-access-overview {
    align-items: flex-start;
  }

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

  .beta-access-rules {
    grid-template-columns: 1fr;
  }

  .beta-access-account {
    grid-column: 1 / -1;
  }

  .beta-access-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .beta-access-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .beta-access-quota {
    align-items: flex-start;
  }

  .beta-access-fields {
    grid-template-columns: 1fr;
  }

  .beta-access-account {
    grid-column: auto;
  }
}

/* Plugin editor section layout */
.editor-listing-section,
.editor-detail-section,
.editor-purchase-section,
.editor-release-section,
.admin-plugin-middle-column.editor-release-section {
  min-width: 0;
}

.admin-plugin-middle-column.editor-release-section,
.editor-release-group {
  display: grid;
  gap: var(--space-3);
}

.listing-editor-form {
  gap: 12px;
}

.listing-editor-grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.listing-editor-grid > label,
.listing-description-grid > label,
.listing-description-field {
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
}

.listing-editor-grid input,
.listing-editor-grid select,
.listing-description-grid textarea,
.listing-description-field textarea {
  margin: 0;
  width: 100%;
}

.listing-field-wide {
  grid-column: span 2;
}

.listing-editor-options {
  align-items: center;
  border-bottom: 1px solid rgba(70, 83, 101, 0.35);
  border-top: 1px solid rgba(70, 83, 101, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 9px 2px;
}

.listing-editor-options .checkbox-row {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

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

.listing-description-grid textarea,
.listing-description-field textarea {
  min-height: 92px;
}

.listing-editor-actions {
  justify-content: flex-end;
}

.listing-editor-actions button,
.listing-editor-actions .button-link {
  min-width: 160px;
  width: auto;
}

.featured-placement-form {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.featured-placement-form > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.featured-placement-form h3,
.featured-placement-form .checkbox-row {
  margin: 0;
}

.featured-placement-form button {
  flex: 0 0 auto;
  min-width: 170px;
  width: auto;
}

/* Table consistency pass */
table {
  table-layout: auto;
}

th,
td {
  line-height: 1.35;
}

.compact-table {
  min-width: 100%;
  width: max-content;
}

.compact-table th,
.compact-table td {
  padding: 8px 10px;
}

.nowrap-cell {
  white-space: nowrap;
}

.numeric-cell {
  text-align: right;
  white-space: nowrap;
}

tbody td:last-child {
  width: 1%;
}

td .pill,
th .pill {
  vertical-align: middle;
}

td form:not(.stack),
.table-actions {
  min-width: max-content;
}

.table-actions {
  justify-content: flex-end;
}

.table-actions button,
.table-actions .button-link,
td button:not(.secret-field),
td .button-link {
  /* height:auto so a fixed-height override elsewhere cannot leave one control taller than the
     inputs beside it -- .role-request-actions pinned 36px against 32px inputs. */
  height: auto;
  min-height: 32px;
  padding: 6px 10px;
  vertical-align: middle;
}

/* Stacked forms keep full-size controls, to match the 38px inputs beside them. */
td form.stack button,
td form.stack .button-link {
  min-height: 36px;
  padding: 8px 13px;
}

td form:not(.stack) input,
td form:not(.stack) select {
  min-height: 32px;
}

td form:not(.stack) input[type="number"] {
  max-width: 96px;
}

.empty-state {
  align-items: center;
  display: flex;
  min-height: 42px;
}

/* Final mobile consolidation after desktop layout rules. */
@media (max-width: 1100px) {
  .admin-plugin-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-plugin-filter-actions {
    grid-column: 1 / -1;
  }

  .admin-audit-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .listing-description-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .featured-placement-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  :root {
    --section-pad: 14px;
    --panel-pad: 12px;
  }

  .panel-section,
  .tab-panel,
  .plugin-panel-body {
    gap: var(--space-3);
  }

  .table-search-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .table-search-form .table-filter,
  .table-search-form button,
  .table-search-form .secondary-link {
    max-width: none;
    width: 100%;
  }

  .admin-plugin-filter-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-audit-filter-form {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .product-picker-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .product-picker-count {
    padding-bottom: 0;
  }

  .product-picker-toolbar button {
    width: 100%;
  }

  .multi-filter-options {
    position: static;
  }

  .admin-plugin-filter-actions button,
  .admin-plugin-filter-actions .secondary-link {
    flex: 1 1 0;
    text-align: center;
  }

  .listing-editor-grid {
    grid-template-columns: 1fr;
  }

  .listing-field-wide {
    grid-column: auto;
  }

  .listing-editor-options {
    align-items: flex-start;
    display: grid;
    gap: 8px;
  }

  .listing-editor-options .checkbox-row {
    white-space: normal;
  }

  .listing-editor-actions,
  .featured-placement-form {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }

  .listing-editor-actions button,
  .listing-editor-actions .button-link,
  .featured-placement-form button {
    max-width: none;
    text-align: center;
    width: 100%;
  }

  .section-heading .marketplace-filter-form {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
  }

  .marketplace-listing-heading {
    grid-template-columns: 1fr;
  }

  .marketplace-listing-heading > div,
  .marketplace-listing-heading p {
    max-width: 100%;
  }

  .marketplace-filter-form button {
    width: 100%;
  }

  main table:not(.responsive-table),
  .plugin-description table {
    border-radius: var(--radius);
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  td form:not(.stack),
  .table-actions {
    min-width: 0;
  }
}

.purchase-option-list,
.discount-grid,
.status-grid,
.security-event-list {
  gap: var(--space-3);
}

.marketplace-grid > article.marketplace-card {
  gap: var(--space-3);
  padding: var(--panel-pad);
}

.marketplace-card-footer {
  gap: var(--space-3);
}

.marketplace-card-actions,
.marketplace-card-actions form,
.marketplace-card-action-row,
.marketplace-card-actions .coming-soon-action {
  gap: var(--space-2);
}

.plugin-detail-hero {
  gap: var(--space-5);
}

.plugin-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

table th,
table td {
  padding: 11px 12px;
}

.repository-row,
.instance-row,
.update-request,
.security-event {
  padding: var(--panel-pad);
}

.empty-state {
  margin: 0;
}

/* Keep page-level chrome and panels on the same width line. */
main > .dashboard-stats,
main > .tabs,
.tabs > .tab-panel,
.admin-tab-groups {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.tabs > .tab-panel {
  flex: 0 0 100%;
}

.admin-tabs > .tab-panel {
  width: 100%;
}

.dashboard-stats {
  box-sizing: border-box;
}

/* Mobile layout hardening. Keep these overrides scoped to narrow screens so desktop stays unchanged. */
@media (max-width: 760px) {
  body > header {
    gap: 10px;
    min-height: 0;
    padding: 12px 14px;
  }

  body > header h1 {
    line-height: 1;
  }

  .brand-logo {
    height: 34px;
  }

  body > header nav {
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
  }

  body > header nav > a,
  body > header nav .nav-menu-trigger {
    min-height: 34px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }

  main,
  .flash-stack {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  main {
    gap: 14px;
    padding: 18px 14px;
  }

  .site-footer {
    margin-left: 14px;
    margin-right: 14px;
    text-align: center;
  }

  .grid,
  .feature-grid,
  .landing-feature-grid,
  .landing-steps,
  .landing-split,
  .dashboard-hero,
  .dashboard-promotion,
  .dashboard-developer-access,
  .dashboard-stats,
  .plugin-detail-hero,
  .plugin-detail-grid,
  .plugin-actions,
  .compact-plugin-actions,
  .plugin-meta,
  .form-row,
  .table-filter,
  .instance-detail-grid,
  .instance-plugin-row,
  .entitlement-grid,
  .lifecycle-steps,
  .status-grid,
  .health-grid,
  .health-metrics,
  .payment-options,
  .payment-summary,
  .payment-choice-row {
    grid-template-columns: 1fr !important;
  }

  .section-heading,
  .actions,
  .table-actions,
  .inline-actions,
  .role-request-actions,
  .marketplace-card-actions,
  .marketplace-card-action-row,
  .marketplace-card-actions form,
  .marketplace-card-actions .coming-soon-action,
  .promotion-summary,
  .usage-meter-header {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading {
    justify-items: stretch;
  }

  .actions > *,
  .table-actions > *,
  .inline-actions > *,
  .role-request-actions > *,
  .marketplace-card-actions > *,
  .marketplace-card-actions form,
  .marketplace-card-actions .coming-soon-action,
  .marketplace-card-action-row > *,
  .dashboard-developer-access .button-link {
    justify-self: stretch;
    width: 100%;
  }

  .actions button,
  .actions .button-link,
  .table-actions button,
  .table-actions .button-link,
  .inline-actions button,
  .inline-actions .button-link,
  .role-request-actions button,
  .marketplace-card-actions button,
  .marketplace-card-actions .details-link,
  .marketplace-card-actions select,
  .marketplace-card-actions input[type="number"] {
    max-width: none;
    width: 100%;
  }

  .marketplace-card-actions form[data-price-form],
  .local-instance-form .marketplace-card-action-row,
  .update-request-actions,
  .compact-form,
  .search-form {
    grid-template-columns: 1fr !important;
  }

  .tab-strip,
  .admin-tab-groups .tab-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .tab-strip > label,
  .tab-strip > a.tab-link,
  .admin-tab-groups a.tab-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .tabs {
    gap: 6px;
  }

  .tabs > label,
  .tabs > a.tab-link {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
  }

  .admin-tab-groups {
    overflow: hidden;
  }

  .admin-tab-group-label {
    flex: 0 0 auto;
    padding-right: 4px;
  }

  main table:not(.responsive-table),
  .plugin-description table {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
  }

  main table:not(.responsive-table) th,
  main table:not(.responsive-table) td {
    white-space: nowrap;
  }

  .plugin-panel > summary,
  .admin-instance-group > summary,
  .update-plugin-group > summary,
  .entitlement-group > summary {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .plugin-panel > summary > *,
  .admin-instance-group > summary > *,
  .update-plugin-group > summary > *,
  .entitlement-group > summary > * {
    min-width: 0;
  }

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

  .plugin-description,
  .build-output,
  pre,
  code {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

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

  .marketplace-card {
    padding: 12px;
  }
}

@media (max-width: 460px) {
  body > header {
    padding-left: 12px;
    padding-right: 12px;
  }

  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo {
    height: 31px;
  }

  article,
  section,
  .tab-panel,
  .dashboard-hero,
  .dashboard-balance,
  .marketplace-card,
  .plugin-detail-grid article,
  .plugin-detail-grid > article {
    padding: 12px;
  }

  table.responsive-table td {
    grid-template-columns: 1fr;
  }
}

/* Compact plugin editor list rows. */
.plugin-panel > summary {
  gap: 10px 14px;
  grid-template-columns: auto minmax(180px, 1fr) minmax(0, auto) auto;
  min-height: 50px;
  padding: 10px 12px;
}

.plugin-panel > summary .plugin-title {
  grid-column: auto;
  min-width: 0;
}

.plugin-summary-meta,
.plugin-summary-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.plugin-summary-meta {
  gap: 5px 12px;
  justify-content: flex-end;
}

.plugin-summary-badges {
  gap: 6px;
  justify-content: flex-end;
}

.plugin-summary-meta .plugin-price {
  font-size: 12px;
}

.plugin-summary-meta .release-state {
  font-size: 11px;
  gap: 4px 10px;
  justify-content: flex-end;
}

.plugin-summary-badges .pill {
  font-size: 11px;
  padding: 3px 8px;
}

.plugin-editor-meta-strip {
  align-items: stretch;
  background: rgba(16, 20, 27, 0.62);
  border: 1px solid rgba(70, 83, 101, 0.5);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow: hidden;
}

.plugin-editor-meta-strip .plugin-meta-group {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(70, 83, 101, 0.4);
  border-radius: 0;
  flex: 1 1 120px;
  min-width: 110px;
  padding: 7px 10px;
}

.plugin-editor-meta-strip .plugin-meta-group:last-child {
  border-right: 0;
}

.plugin-editor-meta-strip .plugin-meta-group span {
  font-size: 10px;
}

.plugin-editor-meta-strip .plugin-meta-group strong {
  font-size: 12px;
}

@media (max-width: 980px) {
  .plugin-panel > summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .plugin-panel > summary .plugin-title,
  .plugin-summary-meta,
  .plugin-summary-badges {
    grid-column: 2;
    justify-content: flex-start;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .plugin-editor-meta-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plugin-editor-meta-strip .plugin-meta-group {
    border-bottom: 1px solid rgba(70, 83, 101, 0.4);
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .plugin-editor-meta-strip {
    grid-template-columns: 1fr;
  }
}

.price-original[hidden] {
  display: none;
}

.price-original {
  align-items: center;
  display: flex;
  gap: 6px;
  line-height: 1.15;
}

.price-original s {
  color: var(--text-muted, #8b93a7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.discount-badge {
  background: rgba(120, 220, 140, 0.16);
  border-radius: 5px;
  color: #7bdc8c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-action-row {
  display: flex;
  gap: 6px;
}

.credit-statistics-header {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.credit-statistics-header p {
  margin-bottom: 0;
}

.credit-statistics-period-form {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.credit-statistics-period-form label {
  display: grid;
  gap: 6px;
}

.credit-statistics-chart {
  margin-top: 20px;
  width: 100%;
}

.credit-statistics-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.credit-statistics-controls button.active {
  background: #244a55;
  border-color: #69c7d6;
  color: #dffaff;
}

.credit-statistics-canvas {
  height: 430px;
  position: relative;
  width: 100%;
}

.credit-statistics-table {
  margin-top: 18px;
}

.credit-statistics-table summary {
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 700;
}

.credit-sources-section {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 28px;
}

@media (max-width: 700px) {
  .credit-statistics-header,
  .credit-statistics-period-form {
    align-items: stretch;
    flex-direction: column;
  }

  .credit-statistics-canvas {
    height: 340px;
  }
}
