/* Platform shell: dark header, white sidebar (ShopDesk operations dashboard) */
.platform-app {
  flex-direction: column;
  min-height: 100vh;
  background: #e8ecf2;
}

/* Operations (default): keep all admin-shell text as "shining black".
   Only applies when no data-theme is set on <html>. */
html:not([data-theme]) .platform-app {
  --text: #0b0c10;
  --muted: #0b0c10;
}

html:not([data-theme]) .platform-sidebar .nav-group-title {
  color: #0b0c10;
}

/* Operations (default): make "Currency" label deep blue-black shine */
html:not([data-theme]) .platform-header .currency-switcher label {
  color: #0c3d6b;
  font-weight: 800;
  text-shadow:
    0 0 12px rgba(12, 61, 107, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06);
}
.platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #0a2744 0%, #0c3d6b 100%);
  color: #f0f4f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 300;
  overflow: visible;
}

/* Bell dropdown must stack above scrolling main content (sibling below header). */
.platform-header .notif-center {
  position: relative;
  z-index: 10050;
}
.platform-header .topbar-notif-panel {
  z-index: 10051;
  max-height: min(70vh, 520px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.platform-header .topbar-brand span {
  color: #fff;
}
.platform-header .logo-icon {
  background: #3ecf8e;
}
.platform-header .store-link {
  border-color: rgba(255, 255, 255, 0.25);
  color: #a8d4ff;
}
.platform-header .store-link:hover {
  border-color: #f0c040;
  color: #fff;
}
.platform-header .currency-switcher {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.platform-header .currency-switcher label {
  color: #f0c040;
}
.platform-header .currency-switcher select {
  color: #fff;
}
.platform-header .currency-rate-badge {
  background: rgba(62, 207, 142, 0.15);
  border-color: rgba(62, 207, 142, 0.35);
  color: #9cf0c8;
}
/* Force currency text color in all themes: deep shining blue-black. */
.platform-header .currency-switcher label,
.platform-header .currency-switcher select,
.platform-header .currency-rate-badge {
  color: #031a33 !important;
  text-shadow:
    0 0 10px rgba(12, 61, 107, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.05);
}
.platform-header .admin-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #dbe7f5;
}
.platform-header .logout-btn {
  border-color: rgba(255, 255, 255, 0.3);
  color: #dbe7f5;
}
.platform-header .logout-btn:hover {
  color: #ff9b9b;
  border-color: #ff6b6b;
}
.platform-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.platform-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #d8dee8;
  padding: 1rem 0;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
}
.platform-sidebar .nav-group {
  margin-bottom: 1.25rem;
}
.platform-sidebar .nav-group-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6e7191;
  padding: 0 1rem 0.4rem;
  font-weight: 600;
}
.platform-sidebar button.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: #1a1d27;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.platform-sidebar button.nav-item:hover {
  background: #f4f6fa;
}
.platform-sidebar button.nav-item.active {
  background: #e8f4ff;
  border-left-color: #0c3d6b;
  color: #0c3d6b;
  font-weight: 600;
}
.platform-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
  position: relative;
  z-index: 1;
}

/* Team chat messages: readable on light platform cards (scroll area was too low-contrast). */
.platform-main .team-chat-scroll {
  min-height: 160px;
  background: #f0f4f8;
  border: 1px solid #d8dee8;
  color: #0a2744;
}
.platform-main .team-chat-msg {
  background: #fff;
  border-color: #e2e8f0;
}
.platform-main .team-chat-msg--mine {
  background: #e8f4ff;
  border-color: #b8d4f0;
}
.platform-main .team-chat-msg-meta {
  color: #4a5568;
}
.platform-main .team-chat-msg-body {
  color: #0a2744;
}
.admin-section {
  display: none;
  animation: fadeIn 0.25s ease;
}
.admin-section.active {
  display: block;
}
.section-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a2744;
  margin-bottom: 1rem;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.section-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 52rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
#section-overview .dash-overview-api-details {
  margin: 0.15rem 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-overview .dash-overview-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-overview .dash-overview-api-summary::-webkit-details-marker {
  display: none;
}
#section-overview .dash-overview-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-extras-grid .platform-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.dash-extras-grid .platform-card.dash-wide {
  grid-column: 1 / -1;
}
.ov-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  border: 1px solid #d8dee8;
  box-shadow: 0 2px 8px rgba(10, 39, 68, 0.06);
}
.ov-card.blue {
  border-top: 3px solid #0c3d6b;
}
.ov-card.green {
  border-top: 3px solid #3ecf8e;
}
.ov-card.gold {
  border-top: 3px solid #f0c040;
}
.ov-card .ov-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e7191;
}
.ov-card .ov-value {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a2744;
  margin-top: 0.35rem;
}
.platform-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #d8dee8;
  margin-bottom: 1rem;
}
.platform-table-wrap {
  overflow-x: auto;
}
/** Orders / Stock / Financial: long lists stay on-screen; scroll inside the card (font sizes unchanged). */
.admin-table-scroll {
  max-height: min(68vh, 720px);
  overflow: auto;
}
.admin-table-scroll table.platform-table {
  table-layout: auto;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
/* Catalog & payments — payment methods list: slightly shorter than default admin-table-scroll */
#catalogPaymentCard .dash-payment-methods-scroll {
  max-height: min(55vh, 560px);
}
/* Catalog — category overlay table */
#catalogCategoryCard .dash-catalog-overlay-scroll {
  max-height: min(48vh, 420px);
}
/* Audit trail */
#section-audit .dash-audit-entries-scroll {
  max-height: min(55vh, 480px);
}
#section-audit .dash-audit-catalog-scroll {
  max-height: min(40vh, 360px);
}
#section-audit .dash-audit-json-pre {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  overflow: auto;
  max-height: min(40vh, 320px);
  font-size: 0.72rem;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#section-audit .dash-audit-api-details {
  margin: 0.15rem 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-audit .dash-audit-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-audit .dash-audit-api-summary::-webkit-details-marker {
  display: none;
}
#section-audit .dash-audit-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
#section-catalog .dash-catalog-api-details {
  margin: 0.15rem 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-catalog .dash-catalog-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-catalog .dash-catalog-api-summary::-webkit-details-marker {
  display: none;
}
#section-catalog .dash-catalog-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
#section-catalog .dash-catalog-api-body-text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: #1a1d27;
}
#section-catalog .dash-catalog-discovery-card {
  margin-top: 1rem;
}
#section-catalog .dash-catalog-discovery-title {
  margin: 0 0 0.5rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a2744;
}
#section-catalog .dash-catalog-discovery-lead {
  margin: 0 0 0.5rem;
}
#section-catalog .dash-catalog-api-body-text > .dash-catalog-api-block-title:first-child {
  margin-top: 0;
}
#section-catalog .dash-catalog-api-block-title {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2a3444;
}
#section-catalog .dash-catalog-api-list {
  margin: 0 0 0.25rem;
  padding-left: 1.25rem;
}
#section-catalog .dash-catalog-api-list li {
  margin-bottom: 0.45em;
}
#section-catalog .dash-catalog-api-list li:last-child {
  margin-bottom: 0;
}
#section-catalog .dash-catalog-api-ref-line {
  margin: 0.35rem 0 0;
  line-height: 1.65;
}
#section-catalog .dash-catalog-card-title {
  margin: 0 0 0.5rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0a2744;
}
#section-catalog .dash-catalog-card-lead {
  margin: 0 0 0.5rem;
}
#section-catalog .dash-catalog-api-body-text p.dash-catalog-api-detail-p {
  margin: 0 0 0.5rem;
}
#section-catalog .dash-catalog-api-body-text p.dash-catalog-api-detail-p:last-child {
  margin-bottom: 0;
}
#section-catalog .dash-catalog-card-foot-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
}
#section-catalog .dash-catalog-overlay-save-btn,
#section-catalog .dash-catalog-payment-reset-btn {
  margin-bottom: 1rem;
}
#section-catalog .dash-catalog-lead {
  margin: 0 0 0.35rem;
  line-height: 1.55;
}
#section-catalog .dash-catalog-perm {
  margin: 0 0 0.35rem;
  line-height: 1.55;
}
#section-catalog .dash-catalog-public {
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
#section-catalog .dash-catalog-public a {
  font-weight: 500;
}
#section-stock .dash-stock-api-details {
  margin: 0.15rem 0 0;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-stock .dash-stock-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-stock .dash-stock-api-summary::-webkit-details-marker {
  display: none;
}
#section-stock .dash-stock-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
#section-stock .dash-stock-api-p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1a1d27;
}
#section-stock .dash-stock-api-p code {
  font-size: 0.88em;
}
#section-stock .dash-stock-api-p--adjust {
  margin-top: 0.5rem;
}
#section-shop-profile .dash-shop-profile-api-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-shop-profile .dash-shop-profile-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-shop-profile .dash-shop-profile-api-summary::-webkit-details-marker {
  display: none;
}
#section-shop-profile .dash-shop-profile-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.65;
}
#section-vendors .dash-vendor-api-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-vendors .dash-vendor-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-vendors .dash-vendor-api-summary::-webkit-details-marker {
  display: none;
}
#section-vendors .dash-vendor-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
#section-roles .dash-assign-role-api-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-roles .dash-assign-role-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-roles .dash-assign-role-api-summary::-webkit-details-marker {
  display: none;
}
#section-roles .dash-assign-role-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
.dash-assign-role-card .dash-assign-role-lead {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}
#section-roles .dash-assign-role-api-p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1a1d27;
}
#section-roles .dash-assign-role-api-p code {
  font-size: 0.88em;
}

/* Tax settings — API reference + compact toggles */
#section-tax-settings .dash-tax-api-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
#section-tax-settings .dash-tax-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
#section-tax-settings .dash-tax-api-summary::-webkit-details-marker {
  display: none;
}
#section-tax-settings .dash-tax-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
#section-tax-settings .dash-tax-api-dl {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) 1fr;
  gap: 0.45rem 1rem;
  align-items: start;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #1a1d27;
}
#section-tax-settings .dash-tax-api-dl dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #647094;
  padding-top: 0.15rem;
}
#section-tax-settings .dash-tax-api-dl dd {
  margin: 0;
  min-width: 0;
}
#section-tax-settings .dash-tax-api-dl code {
  font-size: 0.8em;
}
#section-tax-settings .dash-tax-api-meta {
  display: inline;
  font-size: 0.8rem;
  color: #5a6578;
  line-height: 1.5;
}
#section-tax-settings .dash-tax-api-meta code {
  font-size: 0.92em;
}
#section-tax-settings .dash-tax-category-hint {
  margin-top: 0.75rem;
  max-width: 42rem;
}
@media (max-width: 520px) {
  #section-tax-settings .dash-tax-api-dl {
    grid-template-columns: 1fr;
  }
  #section-tax-settings .dash-tax-api-dl dt {
    padding-top: 0.35rem;
  }
  #section-tax-settings .dash-tax-api-dl dt:first-of-type {
    padding-top: 0;
  }
}

#catalogCategoryCard .cat-overlay-form-grid textarea {
  font-family: inherit;
  line-height: 1.45;
}
table.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.platform-table th,
table.platform-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid #e8ecf2;
  vertical-align: top;
}
table.platform-table th {
  background: #f4f6fa;
  color: #0a2744;
  font-weight: 600;
}
.pf-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pf-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.pf-form-grid input,
.pf-form-grid select,
.pf-form-grid textarea {
  padding: 0.5rem 0.65rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font: inherit;
  line-height: 1.45;
  width: 100%;
  box-sizing: border-box;
  min-height: 2.5rem;
  vertical-align: middle;
}
.pf-form-grid textarea {
  min-height: 5rem;
  resize: vertical;
  display: block;
}
.pf-form-grid select {
  cursor: pointer;
  background-color: #fff;
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 6.5rem);
  align-self: start;
}
/* Long option lists (e.g. category): add class on <select> or parent label */
.pf-form-grid select.pf-select-full,
.pf-form-grid label.pf-select-full > select {
  width: 100%;
  max-width: 100%;
}
.pf-form-grid label.pf-check,
.pf-form-grid label:has(> input[type="checkbox"]),
.pf-form-grid label:has(> input[type="radio"]) {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.35rem;
  cursor: pointer;
  line-height: 1.45;
}
.pf-form-grid label.pf-check input[type="checkbox"],
.pf-form-grid label.pf-check input[type="radio"],
.pf-form-grid label:has(> input[type="checkbox"]) > input,
.pf-form-grid label:has(> input[type="radio"]) > input {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Standalone checkbox rows (e.g. commission card) */
label.pf-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #1a1d27;
  line-height: 1.45;
  max-width: 42rem;
  hyphens: auto;
}
label.pf-check input[type="checkbox"],
label.pf-check input[type="radio"] {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.btn-pf {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: #0c3d6b;
  color: #fff;
}
.btn-pf.secondary {
  background: #e8ecf2;
  color: #0a2744;
}
.btn-pf.danger {
  background: #ff6b6b;
  color: #fff;
}
.btn-pf:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pf-modal[aria-hidden="true"] {
  display: none;
}
.pf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 39, 68, 0.55);
}
.pf-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid #d8dee8;
}
.pf-modal-panel textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.pf-modal-panel .pf-form-grid input {
  width: 100%;
}
.pf-modal-panel .pf-form-grid select {
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 6.5rem);
  align-self: start;
}
#section-products .stats-bar {
  margin-bottom: 0;
}
#section-products .dash-body {
  max-height: none;
}
@media (max-width: 900px) {
  .platform-body {
    flex-direction: column;
  }
  .platform-sidebar {
    width: 100%;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    border-right: none;
    border-bottom: 1px solid #d8dee8;
  }
  .platform-sidebar .nav-group {
    margin: 0;
    flex: 1 1 auto;
    min-width: 140px;
  }
  .platform-sidebar button.nav-item {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }
  .platform-main {
    max-height: none;
    display: flex;
    flex-direction: column;
  }
}

/* Stock management: keep adjust controls aligned and readable */
.stock-adjust-cell {
  min-width: 220px;
  max-width: 36rem;
  vertical-align: top;
}
.stock-adjust-tools {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.stock-adjust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.stock-adjust-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  width: 100%;
  margin: 0;
}
.stock-adjust-row input[type="number"] {
  width: 4rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.78rem;
}
.stock-low-preview-table {
  margin-top: 0.35rem;
  max-height: min(48vh, 420px);
  overflow: auto;
}
.stock-mgmt-intro code {
  font-size: 0.82em;
}

.dash-wallet-ledger-card .dash-wallet-activity-api-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.dash-wallet-ledger-card .dash-wallet-activity-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
.dash-wallet-ledger-card .dash-wallet-activity-api-summary::-webkit-details-marker {
  display: none;
}
.dash-wallet-ledger-card .dash-wallet-activity-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
.dash-wallet-ledger-card .dash-wallet-activity-api-p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #1a1d27;
}
.dash-wallet-ledger-card .dash-wallet-activity-api-p code {
  font-size: 0.88em;
}

.dash-wallet-adjust-card .dash-wallet-adjust-api-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.dash-wallet-adjust-card .dash-wallet-adjust-api-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
.dash-wallet-adjust-card .dash-wallet-adjust-api-summary::-webkit-details-marker {
  display: none;
}
.dash-wallet-adjust-card .dash-wallet-adjust-api-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
.dash-wallet-adjust-card .dash-wallet-label-line {
  display: block;
  font-weight: 600;
  color: #1a1d27;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
}
.dash-wallet-adjust-card .dash-wallet-adjust-grid {
  max-width: 36rem;
  margin-bottom: 0;
}
.dash-wallet-adjust-card .dash-wallet-adjust-grid input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dash-wallet-adjust-card .dash-wallet-field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #5a6578;
  font-weight: 400;
}
.dash-wallet-adjust-card .dash-wallet-note-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  color: #6b7280;
}
.dash-wallet-adjust-card .dash-wallet-note-meta--warn {
  color: #b45309;
}
.dash-wallet-adjust-card .dash-wallet-note-meta--ok {
  color: #15803d;
}
.dash-wallet-adjust-card .dash-wallet-adjust-apply {
  grid-column: 1 / -1;
  justify-self: start;
}
.dash-wallet-adjust-card .dash-wallet-safety-policy {
  padding: 0.45rem 0.6rem;
  border: 1px solid #f3d19a;
  background: #fff7eb;
  border-radius: 8px;
  color: #5a3a00;
}
.dash-wallet-adjust-card .dash-wallet-safety-policy strong {
  color: #8a4b00;
}
.dash-store-geo-card .dash-store-geo-label-line {
  display: block;
  font-weight: 600;
  color: #1a1d27;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
}
.dash-store-geo-card .dash-store-geo-grid {
  max-width: 36rem;
  margin-bottom: 0;
}
.dash-store-geo-card .dash-store-geo-grid input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dash-store-geo-card .dash-store-geo-field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #5a6578;
  font-weight: 400;
}
.dash-store-geo-card .dash-store-geo-save {
  grid-column: 1 / -1;
  justify-self: start;
}
.dash-shop-profile-card .dash-shop-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
  max-width: 52rem;
}
.dash-shop-profile-card .dash-shop-profile-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.dash-shop-profile-card .dash-shop-profile-grid input,
.dash-shop-profile-card .dash-shop-profile-grid textarea {
  width: 100%;
  box-sizing: border-box;
}
.dash-shop-prof-label {
  display: block;
  font-weight: 600;
  color: #647094;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-assign-role-card .dash-assign-role-label-line {
  display: block;
  font-weight: 600;
  color: #1a1d27;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
}
.dash-assign-role-card .dash-assign-role-grid {
  max-width: 36rem;
  margin-bottom: 0;
}
.dash-assign-role-card .dash-assign-role-grid input,
.dash-assign-role-card .dash-assign-role-grid select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dash-assign-role-card .dash-assign-role-field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #5a6578;
  font-weight: 400;
}
.dash-assign-role-card .dash-assign-role-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

/* Roles — permission glossary & admin API reference cards */
.dash-perm-glossary-lead {
  margin: 0 0 0.35rem;
  line-height: 1.55;
}
.dash-perm-glossary-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.dash-admin-api-matrix-lead {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.dash-admin-api-static-mirror {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.dash-admin-api-ref-body-text {
  font-size: 0.84rem;
  line-height: 1.65;
}
.dash-admin-api-ref-body-lead {
  margin: 0 0 0.5rem;
}
.dash-admin-api-ref-body-fallback {
  margin: 0 0 0.5rem;
}
.dash-admin-api-regenerate-lead {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.dash-admin-api-regenerate-note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #5a6578;
}

.dash-admin-api-ref-card .dash-admin-api-ref-details {
  margin: 0 0 0.85rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.dash-admin-api-ref-card .dash-admin-api-ref-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
.dash-admin-api-ref-card .dash-admin-api-ref-summary::-webkit-details-marker {
  display: none;
}
.dash-admin-api-ref-card .dash-admin-api-ref-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
.dash-admin-api-ref-card .dash-admin-api-ref-body .dash-rbac-legend-list {
  margin-top: 0;
  margin-bottom: 0.65rem;
}
.dash-admin-api-ref-card .dash-admin-api-regenerate-cmd {
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.55rem;
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  color: #1a1d27;
}
.dash-admin-api-ref-card .dash-rbac-legend-list {
  margin: 0 0 0.75rem 1.15rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #3d4a5c;
}
.dash-admin-api-ref-card .dash-rbac-legend-list li {
  margin-bottom: 0.2rem;
}
/* Admin API matrix — RBAC: slug + label on one line (same data as GET /api/catalog adminApiEndpoints) */
.admin-api-matrix-table .admin-api-matrix-rbac {
  white-space: normal;
  word-break: break-word;
}
.admin-api-matrix-table .admin-api-matrix-rbac-code {
  font-size: 0.68rem;
}
.admin-api-matrix-table .admin-api-matrix-rbac-sep {
  color: #8a93a3;
  font-weight: 400;
  padding: 0 0.1rem;
}
.admin-api-matrix-table .admin-api-matrix-rbac-desc {
  color: #5a6578;
  font-size: 0.65rem;
}
.dash-geo-card .dash-geo-help-details {
  margin: 0 0 0.65rem;
  max-width: 52rem;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.dash-geo-card .dash-geo-help-summary {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0a2744;
  list-style: none;
}
.dash-geo-card .dash-geo-help-summary::-webkit-details-marker {
  display: none;
}
.dash-geo-card .dash-geo-help-body {
  padding: 0 0.8rem 0.75rem;
  border-top: 1px solid #e8ecf0;
  margin-bottom: 0;
}
.dash-geo-card .dash-geo-form {
  max-width: 38rem;
}
.dash-geo-card .dash-geo-json {
  font-family: ui-monospace, "Cascadia Code", monospace;
}
.dash-geo-summary strong {
  font-weight: 700;
  color: #0c3d6b;
}
.dash-geo-details-sum {
  cursor: pointer;
  font-size: 0.78rem;
  color: #3d4a5c;
  user-select: none;
  list-style-position: outside;
}
.dash-geo-details[open] .dash-geo-details-sum {
  margin-bottom: 0.15rem;
}

/* Audit trail — entries table: one line per logical field (no forced line breaks in Actor/Entity) */
#auditTableWrap table.audit-entries-table {
  table-layout: fixed;
}
#auditTableWrap table.audit-entries-table thead th:nth-child(1) {
  width: 9.5rem;
}
#auditTableWrap table.audit-entries-table thead th:nth-child(2) {
  width: 11rem;
}
#auditTableWrap table.audit-entries-table thead th:nth-child(3) {
  width: 14rem;
}
#auditTableWrap table.audit-entries-table thead th:nth-child(4) {
  width: 10rem;
}
#auditTableWrap table.audit-entries-table thead th:nth-child(6) {
  width: 5.5rem;
}
#auditTableWrap table.audit-entries-table .audit-entries-time {
  white-space: nowrap;
  font-size: 0.68rem;
}
#auditTableWrap table.audit-entries-table .audit-entries-action {
  font-size: 0.68rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#auditTableWrap table.audit-entries-table .audit-entries-actor {
  font-size: 0.72rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#auditTableWrap table.audit-entries-table .audit-entries-actor-id {
  font-size: 0.65rem;
  color: var(--muted);
}
#auditTableWrap table.audit-entries-table .audit-entries-entity-cell {
  font-size: 0.7rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#auditTableWrap table.audit-entries-table .audit-entries-entity-sep {
  color: var(--muted);
}
#auditTableWrap table.audit-entries-table .audit-entries-details {
  font-size: 0.65rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#auditTableWrap table.audit-entries-table .audit-entries-ip {
  font-size: 0.65rem;
  white-space: nowrap;
}

/* —— Business subscription & commission (localStorage) —— */
.login-mode-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border, #2a3441);
}
.login-tab {
  flex: 1;
  padding: 0.55rem 0.65rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, #8a94a3);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.login-tab:hover {
  color: var(--accent, #f0c040);
}
.login-tab.active {
  background: rgba(240, 192, 64, 0.15);
  color: var(--accent, #f0c040);
}
#regErr.show {
  display: block !important;
}

.bc-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.bc-welcome-modal[aria-hidden="false"] {
  display: flex;
}
.bc-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(6px);
}
.bc-welcome-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: linear-gradient(165deg, #1a2230 0%, #121820 100%);
  border: 1px solid rgba(240, 192, 64, 0.35);
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #e8ecf2;
}
.bc-welcome-title {
  margin: 0 0 0.5rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.35rem;
  color: #f0c040;
}
.bc-welcome-lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #c5cdd8;
}
.bc-terms-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}
.bc-terms-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0c040;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bc-terms-list {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d0d6e0;
}
.bc-terms-notice {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #ffb4a8;
}
.bc-checkbox-row {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  font-size: 0.8rem;
  line-height: 1.45;
  cursor: pointer;
  color: #e0e6ef;
}
.bc-checkbox-row input {
  margin-top: 0;
  flex-shrink: 0;
}

.bc-tier-blocker {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(8px);
}
.bc-tier-blocker[aria-hidden="false"] {
  display: flex;
}
.bc-tier-blocker-inner {
  width: 100%;
  max-width: 540px;
  max-height: min(92vh, 800px);
  overflow-y: auto;
  background: linear-gradient(160deg, #1e2635 0%, #0f141c 100%);
  border: 2px solid rgba(240, 192, 64, 0.45);
  border-radius: 18px;
  padding: 1.75rem 1.85rem;
  color: #e8ecf2;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}
.bc-tier-blocker-title {
  margin: 0 0 0.75rem;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.4rem;
  color: #f0c040;
}
.bc-tier-blocker-dates,
.bc-tier-blocker-rates {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c5cdd8;
}
.bc-tier-money {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d0d6e0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bc-tier-91-extra {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #ff9a8c;
  font-weight: 700;
}
.bc-tier-ack-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.bc-tier-banner {
  flex-shrink: 0;
  width: 100%;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.25), rgba(249, 115, 22, 0.2));
  border-bottom: 1px solid rgba(240, 192, 64, 0.35);
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
}

.bc-tier-topbar-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
  border: 1px solid rgba(240, 192, 64, 0.4);
  background: rgba(20, 28, 40, 0.9);
  color: #f0c040;
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-tier-topbar-badge.bc-tier-free {
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}
.bc-tier-topbar-badge.bc-tier-2 {
  border-color: rgba(234, 179, 8, 0.55);
  color: #fde047;
}
.bc-tier-topbar-badge.bc-tier-3 {
  border-color: rgba(249, 115, 22, 0.55);
  color: #fdba74;
}
.bc-tier-topbar-badge.bc-tier-5 {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fca5a5;
}

.bc-billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.bc-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5a6578;
  margin-bottom: 0.25rem;
}
.bc-stat-value {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a2744;
}
.bc-stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}
.bc-stat-warn {
  color: #c2410c;
}
.bc-stat-ok {
  color: #15803d;
}
.bc-progress-wrap {
  margin-top: 0.25rem;
}
.bc-progress-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.bc-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e8ecf2;
  overflow: hidden;
  border: 1px solid #d8dee8;
}
.bc-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition:
    width 0.35s ease,
    background 0.35s ease;
  background: #22c55e;
}

@media (max-width: 640px) {
  .bc-tier-topbar-badge {
    max-width: 9rem;
    font-size: 0.62rem;
  }
}

/* —— Product measurements accordion (admin) —— */
.meas-accordion {
  margin: 0.85rem 0 1rem;
  border: 1px solid var(--border, #2a3441);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.meas-accordion--modal {
  margin: 1rem 0;
}
.meas-accordion-sum {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 700;
  font-size: 0.82rem;
  /* Deep blue-black shine for 📏 measurements section text */
  color: #0c3d6b;
  text-shadow:
    0 0 10px rgba(12, 61, 107, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.05);
  list-style: none;
}
.meas-accordion-sum::-webkit-details-marker {
  display: none;
}
.meas-accordion-ico {
  font-size: 1.1rem;
  line-height: 1;
}
.meas-accordion-hint {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.68rem;
  color: #0c3d6b;
  text-shadow: 0 0 10px rgba(12, 61, 107, 0.18);
  max-width: 48%;
  text-align: right;
  line-height: 1.3;
}
.meas-accordion-body {
  padding: 0.75rem 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.meas-section-tag {
  margin: 0.65rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0c3d6b;
  text-shadow: 0 0 9px rgba(12, 61, 107, 0.16);
}
.meas-section-tag:first-child {
  margin-top: 0;
}
.meas-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
}
.meas-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem 0.5rem;
}
.meas-span-2 {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .meas-grid-3 {
    grid-template-columns: 1fr;
  }
  .meas-span-2 {
    grid-column: span 1;
  }
}
.meas-accordion-body label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #0c3d6b;
  text-shadow: 0 0 8px rgba(12, 61, 107, 0.14);
}
.meas-accordion-body input {
  width: 100%;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #e8ecf2;
  font-size: 0.8rem;
}
.meas-accordion-body select {
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 5.5rem);
  align-self: start;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: #e8ecf2;
  font-size: 0.8rem;
}

/* Ensure unit dropdowns keep the same shining deep blue-black text */
.meas-accordion-body select option {
  color: #0c3d6b !important;
  text-shadow:
    0 0 12px rgba(12, 61, 107, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.06);
}
.meas-live-out {
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.55rem;
  background: rgba(12, 61, 107, 0.25);
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #0c3d6b;
  text-shadow: 0 0 10px rgba(12, 61, 107, 0.22);
  border: 1px solid rgba(240, 192, 64, 0.15);
}
.pf-modal-panel .meas-accordion {
  background: #f4f6f9;
  border-color: #d8dee8;
}
.pf-modal-panel .meas-accordion-body {
  border-top-color: #d8dee8;
}
.pf-modal-panel .meas-accordion-body label {
  color: #0c3d6b;
  text-shadow: 0 0 8px rgba(12, 61, 107, 0.14);
}
.pf-modal-panel .meas-accordion-body input,
.pf-modal-panel .meas-accordion-body select {
  background: #fff;
  border-color: #d8dee8;
  color: #1a1d27;
}

.pf-modal-panel .meas-accordion-body select option {
  color: #0b0c10 !important;
}
.pf-modal-panel .meas-live-out {
  background: #e8ecf2;
  border-color: #d0d8e4;
  color: #0c3d6b;
  text-shadow: 0 0 10px rgba(12, 61, 107, 0.22);
}
.pf-modal-panel .meas-section-tag {
  color: #0c3d6b;
  text-shadow: 0 0 9px rgba(12, 61, 107, 0.16);
}

/* Catalog — live line from GET /api/health (storage, countries, payment methods, meta) */
.dash-catalog-discovery-live {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.25em;
}

/* Security center — file-backed mode notice (no PostgreSQL session table) */
.dash-sessions-file-backed {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(12, 61, 107, 0.15);
  background: rgba(12, 61, 107, 0.06);
}
.dash-sessions-file-backed p {
  margin: 0;
}
.dash-sessions-file-backed-lead {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #2a3444;
}
.dash-sessions-file-backed-hint {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
