:root {
  --font-sans: Aptos, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #17222b;
  --ink-strong: #0d1820;
  --muted: #657484;
  --line: #dce4ea;
  --line-strong: #cbd6dd;
  --teal: #0f9f9a;
  --teal-soft: #e4f7f5;
  --blue: #2563eb;
  --blue-soft: #e8efff;
  --green: #16845f;
  --green-soft: #e8f6ef;
  --amber: #b7791f;
  --amber-soft: #fff4d8;
  --red: #b42318;
  --red-soft: #fff1ef;
  --shadow: 0 12px 30px rgba(15, 23, 42, .07);
  --admin-bg: var(--bg);
  --admin-surface: var(--surface);
  --admin-surface-soft: var(--surface-soft);
  --admin-ink: var(--ink);
  --admin-ink-strong: var(--ink-strong);
  --admin-muted: var(--muted);
  --admin-line: var(--line);
  --admin-line-strong: var(--line-strong);
  --admin-accent: var(--blue);
  --admin-accent-soft: var(--blue-soft);
  --admin-shadow: var(--shadow);
  --admin-input-bg: #ffffff;
}

.pricing-control-page {
  --pc-ink: #07313d;
  --pc-blue: #0795c8;
  --pc-soft: #eef6fb;
  display: grid;
  gap: 28px;
  color: var(--pc-ink);
}

.pc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 8px;
}

.pc-header h2,
.pc-card h3,
.pc-section-title {
  margin: 0;
  color: var(--pc-ink);
  letter-spacing: 0;
}

.pc-header h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  line-height: 1.1;
}

.pc-header .muted,
.pc-card .muted {
  max-width: 860px;
}

.pc-restricted,
.pc-pill,
.pc-tags span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0b3a43;
  background: #fff7da;
  border: 1px solid #f2d68b;
  font-size: 0.82rem;
  font-weight: 800;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.pc-actions .btn {
  min-width: 146px;
  justify-content: center;
  border-color: var(--pc-blue);
  color: var(--pc-blue);
  background: #fff;
}

.pc-actions .btn-primary {
  color: #fff;
  background: var(--pc-blue);
}

.pc-actions .pc-outline-warm {
  color: #d46d11;
  border-color: #f28a24;
}

.pc-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pc-tabs a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #60798d;
  font-weight: 800;
}

.pc-tabs a.active {
  color: var(--pc-ink);
  background: #e4f6fc;
  border-color: var(--pc-blue);
}

.pc-metrics,
.pc-settings-grid,
.pc-vertical-grid,
.pc-two,
.pc-side-layout {
  display: grid;
  gap: 24px;
}

.pc-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pc-metric,
.pc-card,
.pc-table-card {
  background: #fff;
  border: 1px solid #cfe1eb;
  border-radius: 16px;
}

.pc-metric {
  min-height: 118px;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.pc-metric strong {
  font-size: 2rem;
  line-height: 1;
  color: var(--pc-blue);
}

.pc-metric span,
.pc-definition-list dt,
.pc-compact-list dt {
  color: #657f91;
  font-weight: 700;
}

.pc-tone-green strong { color: #1f9b63; }
.pc-tone-purple strong { color: #6554d9; }
.pc-tone-amber strong { color: #d98624; }

.pc-two {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr);
}

.pc-settings-grid,
.pc-vertical-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pc-card {
  padding: 22px;
}

.pc-card h3,
.pc-section-title {
  font-size: 1.65rem;
}

.pc-intro {
  min-height: 100px;
  display: grid;
  align-content: center;
}

.pc-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pc-card-label {
  margin: 14px 0 8px;
  color: #657f91;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.pc-tags span,
.pc-pill {
  color: #008dd0;
  background: #e3f6fd;
  border-color: #d9eff7;
  margin-top: 0;
}

.pc-status {
  color: #15955e;
  font-weight: 800;
}

.pc-status.draft {
  color: #ec7b23;
}

.pc-definition-list,
.pc-compact-list {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
}

.pc-definition-list div,
.pc-compact-list div {
  display: grid;
  grid-template-columns: minmax(145px, .7fr) minmax(0, 1fr);
  gap: 18px;
}

.pc-definition-list dt,
.pc-definition-list dd,
.pc-compact-list dt,
.pc-compact-list dd {
  margin: 0;
}

.pc-definition-list dd,
.pc-compact-list dd {
  color: #0b8fd0;
  font-weight: 800;
}

.pc-compact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pc-compact-list div {
  display: block;
}

.pc-table-card {
  overflow-x: auto;
}

.pc-table-card table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pc-table-card th,
.pc-table-card td {
  padding: 16px 14px;
  border-bottom: 1px solid #cfe1eb;
  text-align: left;
  white-space: nowrap;
}

.pc-table-card th {
  background: #e9f4f8;
  color: var(--pc-ink);
  font-weight: 800;
}

.pc-selected-row td {
  background: #f4fbfe;
}

.pc-row-link {
  color: var(--pc-blue);
  font-weight: 900;
}

.pc-table-card tr:last-child td {
  border-bottom: 0;
}

.pc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-weight: 800;
}

.pc-toggle-row i {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #c8d6df;
  position: relative;
  flex: 0 0 auto;
}

.pc-toggle-row i:after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 4px;
  left: 4px;
}

.pc-toggle-row i.on {
  background: var(--pc-blue);
}

.pc-toggle-row i.on:after {
  left: 24px;
}

.pc-side-layout {
  grid-template-columns: minmax(0, 1fr) 236px;
}

.pc-side-layout > div {
  display: grid;
  gap: 24px;
}

.pc-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.pc-flow span {
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  background: #e3f6fd;
  font-weight: 800;
}

.pc-flow span:nth-child(2) {
  background: #fff7da;
}

.pc-flow-six {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
}

.rn-preset-notice {
  flex: 1 1 100%;
  margin: 0;
  font-weight: 750;
}

.pc-summary {
  grid-template-columns: repeat(4, minmax(0, 220px));
  margin-top: 0;
}

@media (max-width: 1180px) {
  .pc-header,
  .pc-side-layout,
  .pc-two {
    grid-template-columns: 1fr;
  }

  .pc-header {
    display: grid;
  }

  .pc-actions {
    justify-content: flex-start;
  }

  .pc-metrics,
  .pc-settings-grid,
  .pc-vertical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-side-layout {
    display: grid;
  }

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

@media (max-width: 720px) {
  .pc-metrics,
  .pc-settings-grid,
  .pc-vertical-grid,
  .pc-summary,
  .pc-flow {
    grid-template-columns: 1fr;
  }

  .pc-actions .btn {
    width: 100%;
  }

  .pc-definition-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.usage-page {
  --usage-blue: #0095c8;
  --usage-deep: #002d3c;
  --usage-gold: #ffc72c;
  --usage-green: #16a34a;
  --usage-orange: #f59e0b;
  --usage-red: #dc2626;
}

.usage-hero .actions {
  align-items: center;
}

.usage-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  border-bottom: 1px solid #e5e7eb;
}

.usage-tabs a {
  color: #64748b;
  font-weight: 800;
  padding: 10px 12px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.usage-tabs a.active {
  color: var(--usage-blue);
  border-color: var(--usage-blue);
}

.usage-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.usage-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.usage-stat-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.45rem;
}

.usage-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--usage-blue);
  background: rgba(0, 149, 200, 0.12);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.usage-summary-head,
.usage-summary-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(110px, 1fr));
  gap: 12px;
  align-items: center;
}

.telnyx-row {
  grid-template-columns: minmax(190px, 1.7fr) repeat(4, minmax(120px, 1fr));
}

.usage-summary-head {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 12px 4px;
}

.usage-summary-row {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.usage-summary-row strong {
  color: #0f172a;
}

.usage-summary-row small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
}

.usage-progress {
  height: 7px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.usage-progress span {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.usage-fill-ok,
.usage-fill-notice {
  background: var(--usage-blue);
}

.usage-fill-warning,
.usage-fill-overage {
  background: var(--usage-orange);
}

.usage-fill-danger {
  background: var(--usage-red);
}

.usage-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  font-style: normal;
  border: 1px solid transparent;
}

.usage-badge-ok {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.usage-badge-notice {
  color: #075985;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.usage-badge-warning,
.usage-badge-overage {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.usage-badge-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.usage-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.usage-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.usage-detail-list,
.usage-mini-list {
  display: grid;
  gap: 10px;
}

.usage-detail-list div,
.usage-mini-list div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.usage-detail-list dt,
.usage-mini-list span,
.usage-mini-list small {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.usage-detail-list dd,
.usage-mini-list strong {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.usage-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.api-management-page {
  --api-deep: #002d3c;
  --api-blue: #0095c8;
  --api-gold: #ffc72c;
}

.api-management-hero {
  border-left: 4px solid var(--api-blue);
}

.api-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.api-card-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.api-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.api-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.api-chart-card:last-child {
  grid-column: span 2;
}

.api-bars {
  display: grid;
  gap: 10px;
}

.api-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1.5fr) 70px;
  gap: 10px;
  align-items: center;
}

.api-bar-row span,
.api-bar-row strong {
  color: #0f172a;
  font-size: 0.84rem;
}

.api-bar-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.api-bar-track i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--api-blue), var(--api-gold));
}

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

.api-status-card {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.api-status-card small {
  grid-column: 2;
  color: #64748b;
}

.api-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.status-healthy {
  background: #16a34a;
}

.status-warning {
  background: #f59e0b;
}

.status-error {
  background: #dc2626;
}

.api-three-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.api-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.api-action-list {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.api-log-filter {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

@media (max-width: 980px) {
  .usage-card-grid,
  .usage-card-grid-4,
  .api-card-grid-4,
  .api-card-grid-5,
  .api-card-grid-3,
  .api-chart-grid,
  .api-three-panels,
  .api-two-column,
  .usage-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-chart-card:last-child {
    grid-column: auto;
  }

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

  .usage-summary-head {
    display: none;
  }

  .usage-summary-row,
  .telnyx-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .usage-summary-row > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .usage-summary-row > span::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }

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

@media (max-width: 720px) {
  .usage-card-grid,
  .usage-card-grid-4,
  .api-card-grid-4,
  .api-card-grid-5,
  .api-card-grid-3,
  .api-chart-grid,
  .api-three-panels,
  .api-two-column,
  .api-status-grid,
  .usage-two-column,
  .usage-filter-bar {
    grid-template-columns: 1fr;
  }

  .api-bar-row {
    grid-template-columns: 1fr;
  }

  .usage-responsive-table,
  .usage-responsive-table thead,
  .usage-responsive-table tbody,
  .usage-responsive-table tr,
  .usage-responsive-table td {
    display: block;
  }

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

  .usage-responsive-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
  }

  .usage-responsive-table td {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }

  .usage-responsive-table td:last-child {
    border-bottom: 0;
  }

  .usage-responsive-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
}

/* Option Groups workspace */
.rn-option-groups-page { background: #eef3f8; color: #102038; }
.rn-option-groups-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.rn-option-title-lockup { display: flex; align-items: center; gap: 14px; }
.rn-option-page-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0b63e5);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}
.rn-option-title-lockup h1 {
  margin: 0;
  color: #0b1b3a;
  font-size: 28px;
  font-weight: 760;
  letter-spacing: 0;
}
.rn-option-title-lockup p {
  margin: 4px 0 0;
  color: #52657a;
  font-size: 14px;
  font-weight: 500;
}
.rn-option-header-actions { display: flex; align-items: center; gap: 10px; }
.rn-option-header-search,
.rn-option-sidebar-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 280px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d4deea;
  border-radius: 8px;
  background: #fff;
}
.rn-option-header-search input,
.rn-option-sidebar-search input {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.rn-option-more-button { width: 44px; min-width: 44px; padding-left: 0; padding-right: 0; }
.rn-option-workspace-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px;
  align-items: start;
}
.rn-option-left-rail,
.rn-option-right-rail { position: sticky; top: 12px; }
.rn-option-workspace-card {
  padding: 16px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}
.rn-option-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rn-option-card-title h2,
.rn-option-workspace-card h2,
.rn-option-editor-section h3 {
  margin: 0;
  color: #102038;
  font-size: 16px;
  font-weight: 720;
}
.rn-option-card-title small { color: #61738a; font-size: 12px; font-weight: 650; }
.rn-option-sidebar-search { min-width: 0; width: 100%; margin-bottom: 10px; }
.rn-option-sidebar-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.rn-option-new-group-button {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
  border-color: #93b4ff;
  color: #2563eb;
}
.rn-option-group-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 310px);
  min-height: 300px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.rn-option-group-nav {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid #dbe5ef;
  border-radius: 9px;
  background: #fff;
  color: #102038;
  text-align: left;
  cursor: pointer;
}
.rn-option-group-nav:hover { border-color: #a8c2ff; background: #f8fbff; }
.rn-option-group-nav.active {
  border-color: #2563eb;
  background: #f3f7ff;
  box-shadow: inset 3px 0 0 #2563eb;
}
.rn-option-group-nav-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.rn-option-group-nav-top strong { color: #102038; font-size: 14px; font-weight: 720; }
.rn-option-group-badges,
.rn-option-editor-meta,
.rn-option-selection-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.rn-option-group-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.rn-option-linked-content-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rn-option-linked-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 24px;
  border: 1px dashed #cbd8e6;
  border-radius: 9px;
  background: #fbfdff;
  text-align: center;
}
.rn-option-linked-empty strong {
  color: #102038;
  font-size: 14px;
  font-weight: 740;
}
.rn-option-linked-empty small {
  max-width: 460px;
  color: #61738a;
  font-size: 13px;
  font-weight: 500;
}
.rn-group-assignment-form {
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1fr) minmax(220px, 1fr);
}
.rn-option-group-badges small,
.rn-option-editor-meta span:not(.badge) {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rn-option-center { display: grid; gap: 16px; min-width: 0; }
.rn-option-editor-panel[hidden],
.rn-option-right-stack[hidden],
.rn-option-editor-new[hidden] { display: none; }
.rn-option-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ebf4;
}
.rn-option-editor-head h2 { margin: 0 0 8px; color: #102038; font-size: 18px; font-weight: 740; }
.rn-option-editor-head p { margin: 4px 0 0; color: #61738a; }
.rn-option-id-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #61738a;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.rn-option-editor-tabs {
  display: flex;
  gap: 22px;
  margin: 0 -16px;
  padding: 0 16px;
  border-bottom: 1px solid #e4ebf4;
}
.rn-option-editor-tabs a {
  padding: 14px 0 12px;
  border-bottom: 3px solid transparent;
  color: #52657a;
  font-size: 13px;
  font-weight: 720;
}
.rn-option-editor-tabs a:hover,
.rn-option-editor-tabs a:first-child { border-color: #2563eb; color: #2563eb; }
.rn-option-editor-section { display: grid; gap: 12px; padding: 16px 0 0; }
.rn-option-section-head { display: flex; justify-content: space-between; gap: 14px; }
.rn-option-section-head p { margin: 4px 0 0; color: #61738a; font-size: 13px; }
.rn-option-readonly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rn-option-readonly-grid span {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-option-readonly-grid small {
  color: #61738a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.rn-option-readonly-grid strong { color: #102038; font-size: 13px; font-weight: 720; }
.rn-option-description {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #52657a;
}
.rn-option-choice-table {
  display: grid;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
}
.rn-option-choice-row {
  display: grid;
  grid-template-columns: 58px minmax(250px, 1.35fr) 92px 82px minmax(130px, .75fr) minmax(380px, 1.65fr) 108px 142px;
  gap: 10px;
  align-items: center;
  min-width: 1240px;
  min-height: 52px;
  padding: 9px 10px;
  border-top: 1px solid #e4ebf4;
  font-size: 13px;
}
form.rn-option-choice-row {
  margin: 0;
}
.rn-option-choice-row.head {
  min-height: 38px;
  border-top: 0;
  background: #f8fbff;
  color: #61738a;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.rn-option-choice-row strong,
.rn-option-choice-row small { display: block; }
.rn-option-choice-row strong { color: #102038; font-weight: 720; }
.rn-option-choice-row small { margin-top: 2px; color: #61738a; font-size: 12px; }
.rn-option-choice-row img { width: 42px; height: 34px; object-fit: cover; border-radius: 6px; }
.rn-option-choice-row input,
.rn-option-choice-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}
.rn-option-choice-row span {
  min-width: 0;
}
.rn-option-choice-row span > input + input,
.rn-option-choice-row span > select + select {
  margin-top: 5px;
}
.rn-option-choice-add-row {
  background: #fbfdff;
}
.rn-option-system-choice-row {
  background: #f8fafc;
}
.rn-drag-handle {
  color: #8a9aad;
  font-weight: 800;
}
.rn-choice-placeholder {
  display: inline-grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.rn-option-choice-actions,
.rn-option-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rn-option-row-actions {
  justify-content: flex-end;
}
.btn.danger {
  border-color: #fecaca;
  color: #b42318;
}
.rn-option-choice-empty { padding: 16px; color: #61738a; }
.rn-option-inline-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-option-inline-builder label { min-width: 0; flex: initial; }
.rn-option-inline-builder button { align-self: end; }
.rn-option-setup-form { display: grid; gap: 14px; }
.rn-option-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rn-option-form-actions { display: flex; justify-content: flex-end; }
.rn-toggle-row { display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; }
.rn-option-right-stack { display: grid; gap: 16px; }
.rn-option-right-rail .rn-option-workspace-card { display: grid; gap: 12px; }
.rn-option-preview-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 7px;
  background: #edf2f7;
  color: #52657a;
  font-size: 12px;
  font-weight: 720;
  text-align: center;
}
.rn-option-preview-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52657a;
  font: inherit;
  cursor: pointer;
}
.rn-option-preview-toggle button.active {
  border-radius: 6px;
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.rn-option-live-preview {
  display: grid;
  gap: 10px;
}
.rn-option-live-preview > strong,
.rn-option-preview-field legend,
.rn-option-preview-field {
  color: #102038;
  font-size: 13px;
  font-weight: 720;
}
.rn-option-preview-field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.rn-option-preview-list { display: grid; gap: 7px; }
.rn-option-preview-list span,
.rn-option-preview-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  color: #102038;
  font-weight: 650;
}
.rn-option-preview-list input[type="checkbox"],
.rn-option-preview-list input[type="radio"] {
  width: auto;
}
.rn-option-preview-list input[type="number"] {
  width: 64px;
  min-height: 30px;
}
.rn-option-preview-admin {
  display: grid;
  gap: 9px;
}
.rn-option-preview-admin > small,
.rn-option-preview-note {
  color: #61738a;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.rn-option-preview-admin > div {
  display: grid;
  gap: 7px;
}
.rn-option-preview-admin span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fbff;
  color: #102038;
  font-weight: 650;
}
.rn-option-progress-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #dbe5ef; }
.rn-option-progress-bar span { display: block; height: 100%; border-radius: inherit; background: #2563eb; }
.rn-option-progress-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rn-option-progress-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #61738a;
  font-size: 13px;
}
.rn-option-progress-list span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #cbd8e6;
  border-radius: 50%;
  color: #61738a;
  font-size: 11px;
  font-weight: 800;
}
.rn-option-progress-list li.complete span,
.rn-option-progress-list li.active span { border-color: #2563eb; background: #2563eb; color: #fff; }
.rn-option-progress-list li.complete em { color: #16a34a; }
.rn-option-progress-list strong { color: #102038; }
.rn-option-progress-list em { color: #61738a; font-size: 12px; font-style: normal; font-weight: 700; }
.rn-option-admin-notice {
  display: grid;
  gap: 8px;
  margin: -6px 0 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #17345f;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.rn-option-admin-notice[hidden] { display: none; }
.rn-option-admin-notice strong { font-size: 14px; font-weight: 700; }
.rn-option-admin-notice span { color: #52657a; font-size: 13px; }
.rn-option-admin-notice ul { margin: 0; padding-left: 18px; color: #52657a; font-size: 13px; line-height: 1.45; }
.rn-option-admin-notice.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}
.rn-option-progress-list li.complete span {
  position: relative;
  border-color: #16a34a;
  background: #16a34a;
  color: transparent;
}
.rn-option-progress-list li.complete span::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.rn-option-progress-list li.active span {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.rn-option-progress-list li.pending span {
  border-color: #cbd8e6;
  background: #fff;
  color: #61738a;
}
.rn-option-progress-list li.active em { color: #2563eb; }
.rn-option-progress-list li.pending em { color: #8a9aad; }
.rn-option-tips { display: grid; gap: 10px; margin: 0; padding-left: 18px; color: #52657a; font-size: 13px; line-height: 1.55; }
@media (max-width: 1180px) {
  .rn-option-workspace-shell { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); }
  .rn-option-right-rail { grid-column: 1 / -1; position: static; }
  .rn-option-right-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rn-option-groups-header,
  .rn-option-workspace-shell,
  .rn-option-right-stack,
  .rn-option-readonly-grid,
  .rn-option-form-grid,
  .rn-option-inline-builder { grid-template-columns: 1fr; }
  .rn-option-header-actions { flex-wrap: wrap; }
  .rn-option-header-search { width: 100%; min-width: 0; }
  .rn-option-left-rail { position: static; }
  .rn-option-group-list { max-height: none; min-height: auto; }
  .rn-option-choice-table { overflow-x: auto; }
  .rn-option-choice-row { min-width: 1080px; }
}

.rn-admin-theme {
  font-family: var(--font-sans);
  --bg: var(--admin-bg);
  --surface: var(--admin-surface);
  --surface-soft: var(--admin-surface-soft);
  --ink: var(--admin-ink);
  --ink-strong: var(--admin-ink-strong);
  --muted: var(--admin-muted);
  --line: var(--admin-line);
  --line-strong: var(--admin-line-strong);
  --blue: var(--admin-accent);
  --blue-soft: var(--admin-accent-soft);
  --shadow: var(--admin-shadow);
}
.rn-admin-theme-light,
.rn-admin-theme-system {
  --admin-bg: #eef3f8;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f7faff;
  --admin-ink: #172334;
  --admin-ink-strong: #0b1628;
  --admin-muted: #5c6d82;
  --admin-line: #dbe5ef;
  --admin-line-strong: #c9d6e4;
  --admin-shadow: 0 14px 32px rgba(15, 23, 42, .07);
  --admin-input-bg: #ffffff;
}
.rn-admin-theme-dark {
  --admin-bg: #08111f;
  --admin-surface: #111c2d;
  --admin-surface-soft: #172337;
  --admin-ink: #dbe7f5;
  --admin-ink-strong: #f5f8fc;
  --admin-muted: #9eafc3;
  --admin-line: #25344a;
  --admin-line-strong: #344761;
  --admin-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  --admin-input-bg: #0d1828;
}
.rn-admin-accent-blue { --admin-accent: #2563eb; --admin-accent-soft: #e8efff; }
.rn-admin-accent-navy { --admin-accent: #1d4ed8; --admin-accent-soft: #e7eefb; }
.rn-admin-accent-teal { --admin-accent: #0f766e; --admin-accent-soft: #e2f7f4; }
.rn-admin-accent-green { --admin-accent: #15803d; --admin-accent-soft: #e8f6ef; }
@media (prefers-color-scheme: dark) {
  .rn-admin-theme-system {
    --admin-bg: #08111f;
    --admin-surface: #111c2d;
    --admin-surface-soft: #172337;
    --admin-ink: #dbe7f5;
    --admin-ink-strong: #f5f8fc;
    --admin-muted: #9eafc3;
    --admin-line: #25344a;
    --admin-line-strong: #344761;
    --admin-shadow: 0 16px 38px rgba(0, 0, 0, .28);
    --admin-input-bg: #0d1828;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.rn-admin-theme input,
.rn-admin-theme select,
.rn-admin-theme textarea {
  background: var(--admin-input-bg);
  color: var(--admin-ink);
  border-color: var(--admin-line-strong);
}
.rn-admin-theme input::placeholder,
.rn-admin-theme textarea::placeholder {
  color: color-mix(in srgb, var(--admin-muted) 78%, transparent);
}
.rn-admin-theme input:disabled,
.rn-admin-theme select:disabled,
.rn-admin-theme textarea:disabled {
  opacity: .68;
  background: var(--admin-surface-soft);
}
label { display: block; font-weight: 650; color: var(--ink-strong); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-strong); letter-spacing: 0; }
h1 { font-size: 26px; margin-bottom: 0; }
h2 { font-size: 18px; margin-bottom: 8px; }
h3 { font-size: 15px; margin-bottom: 8px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-word; }

.auth-body { background: linear-gradient(180deg, #eef5f7 0%, #f8fafc 100%); }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  background: #101922;
  color: #eef6f8;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 6px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-lockup small, .user-chip small { display: block; color: #98a8b5; font-size: 12px; margin-top: 2px; }
.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}
.brand-logo {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.brand-logo img {
  width: 132px;
  max-width: none;
  height: auto;
}
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #c9d5dd;
  font-weight: 650;
}
.sidebar-nav a span {
  display: inline-flex;
  width: 26px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  color: #9bd8d5;
  font-size: 10px;
  letter-spacing: 0;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}
.avatar {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #203241;
  color: #fff;
  font-weight: 800;
}
.footer-links { display: flex; justify-content: space-between; padding: 0 10px; }
.footer-links a { color: #aab8c3; font-size: 13px; }

.workspace { min-width: 0; }
.workspace-topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.rn-admin-theme .workspace-topbar {
  background: color-mix(in srgb, var(--admin-surface) 90%, transparent);
  border-color: var(--admin-line);
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.page { max-width: none; margin: 0; padding: 20px 22px 28px; }
.page-narrow { max-width: 520px; margin: 0 auto; padding-top: 8vh; }
.eyebrow {
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.stack > * + * { margin-top: 14px; }
.between, .toolbar, .panel-header, .command-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rn-theme-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.rn-theme-settings-form label {
  color: var(--admin-ink-strong);
  font-size: 12px;
  font-weight: 800;
}
.rn-theme-settings-form select {
  margin-top: 6px;
}

.card, .panel, .stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.card { padding: 22px; }
.card-subtle { margin-top: 16px; background: var(--surface-soft); }
.auth-card { margin-top: 8vh; }
.panel { padding: 18px; min-width: 0; }
.command-hero {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rn-admin-theme .command-hero,
.rn-admin-theme .card,
.rn-admin-theme .panel,
.rn-admin-theme .stat-card,
.rn-admin-theme .command-card {
  background: var(--admin-surface);
  border-color: var(--admin-line);
  box-shadow: var(--admin-shadow);
}
.rn-admin-theme .command-card {
  border-left-color: var(--admin-accent);
}
.rn-admin-theme .sidebar {
  background: #0b1728;
}
.rn-admin-theme-dark .sidebar,
.rn-admin-theme-system .sidebar {
  background: #07101d;
}
.rn-admin-theme .sidebar-nav a.active,
.rn-admin-theme .sidebar-nav a:hover {
  background: color-mix(in srgb, var(--admin-accent) 22%, transparent);
}
.rn-admin-theme .sidebar-nav a span {
  color: color-mix(in srgb, var(--admin-accent) 52%, #ffffff);
}
.command-hero h2 { font-size: 24px; margin-bottom: 6px; }
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.command-card {
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.card-kicker { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-weight: 750; font-size: 13px; }
.command-card strong { display: block; margin: 12px 0 6px; font-size: 30px; color: var(--ink-strong); }
.command-card small { color: var(--muted); }
.tone-green { border-left-color: var(--green); }
.tone-amber { border-left-color: var(--amber); }
.tone-blue { border-left-color: var(--blue); }
.tone-red { border-left-color: var(--red); }

.rn-editor-shell {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 130px);
}
.rn-editor-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.rn-editor-title-input {
  width: min(460px, 100%);
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-strong);
  font-size: 24px;
  font-weight: 800;
}
.rn-editor-actions,
.segmented,
.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.segmented,
.tabs {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.segmented button,
.tabs button {
  width: auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}
.segmented button.active,
.tabs button.active {
  background: #fff;
  color: var(--ink-strong);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.rn-unsaved-indicator {
  display: inline-flex;
  margin-left: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.rn-unsaved-indicator.dirty { color: var(--amber); }
.rn-editor-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 310px;
  gap: 14px;
  align-items: start;
}
.rn-editor-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rn-editor-sidebar h2 { margin-bottom: 12px; }
.rn-editor-sidebar h3 {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.rn-block-library-group {
  display: grid;
  gap: 8px;
}
.rn-block-library-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-strong);
  text-align: left;
}
.rn-block-library-button span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 11px;
  overflow: hidden;
}
.rn-editor-stage {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.rn-editor-canvas {
  width: 100%;
  min-height: 620px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f6;
}
.rn-editor-canvas.rn-device-tablet { max-width: 760px; }
.rn-editor-canvas.rn-device-mobile { max-width: 390px; }
.rn-editor-canvas-block {
  position: relative;
  margin-bottom: 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.rn-editor-canvas-block.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft), 0 10px 24px rgba(15,23,42,.08);
}
.rn-editor-block-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.rn-editor-block-toolbar span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.rn-editor-block-toolbar button {
  width: auto;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}
.rn-editor-block-body {
  padding: 18px;
}
.rn-editor-block-body img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}
.rn-editor-block-hero {
  padding: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-soft), #fff);
}
.rn-editor-block-hero h1 { margin-bottom: 8px; font-size: 32px; }
.rn-editor-block-hero a,
.rn-editor-block-body .btn {
  display: inline-flex;
  width: auto;
  margin-top: 12px;
}
.rn-editor-empty,
.rn-editor-empty-page,
.rn-editor-form-preview {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 750;
}
.rn-editor-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rn-editor-mini-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-add-between {
  width: auto;
  margin: 0 auto 12px;
}
.rn-editor-settings .tabs { margin-bottom: 14px; }
.rn-editor-settings label + label,
.rn-faq-editor-row + .rn-faq-editor-row {
  margin-top: 10px;
}
.rn-faq-editor-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rn-public-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 1180px) {
  .rn-editor-workspace { grid-template-columns: 220px minmax(0, 1fr); }
  .rn-editor-settings { grid-column: 1 / -1; position: static; max-height: none; }
}

@media (max-width: 840px) {
  .rn-editor-topbar { position: static; align-items: stretch; flex-direction: column; }
  .rn-editor-workspace { grid-template-columns: 1fr; }
  .rn-editor-sidebar { position: static; max-height: none; }
}
.tone-neutral { border-left-color: #8795a1; }
.tone-teal { border-left-color: var(--teal); }

.rn-option-choice-list {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-option-choice-list .checkline,
.rn-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.rn-option-choice-list input[type="checkbox"],
.rn-inline-actions input[type="checkbox"],
.checkline input[type="checkbox"] {
  width: auto;
}
.rn-portal-product-options,
.rn-option-admin-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  width: 100%;
}
.rn-portal-option-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.rn-portal-option-group legend {
  padding: 0 6px;
  font-weight: 850;
  color: var(--ink-strong);
}
.rn-required,
.rn-money-alert {
  color: var(--red);
}
.rn-option-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.rn-option-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 116px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.rn-option-card img,
.rn-no-selection-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-soft);
}
.rn-no-selection-image {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}
.rn-option-card input[type="checkbox"],
.rn-option-card input[type="radio"] {
  width: auto;
}
.rn-option-card input[type="number"] {
  min-height: 34px;
}
.rn-option-admin-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.rn-panel-head.compact {
  margin-bottom: 0;
}
.rn-panel-head.compact h3 {
  margin: 0;
  font-size: 16px;
}
.rn-option-selection-strip,
.rn-option-choice-preview,
.rn-option-admin-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rn-option-pill,
.rn-option-mini {
  display: inline-grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-option-pill small,
.rn-option-mini small {
  color: var(--muted);
}
.rn-option-mini img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.rn-option-admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-option-admin-form label {
  min-width: 150px;
  flex: 1 1 150px;
}
.rn-option-admin-form .checkline {
  flex: 0 0 auto;
}
.rn-option-builder-details {
  display: grid;
  gap: 10px;
}
.rn-sidewall-settings {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-change-request-row {
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rn-inline-actions {
  margin: 8px 0 12px;
}
.btn.small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #14324f;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.btn:hover { border-color: #aab8c3; background: #f8fafc; }
.btn-primary {
  border-color: #075eef;
  background: linear-gradient(180deg, #0b6fff 0%, #0757db 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(7, 94, 239, .18);
}
.btn-primary:hover { background: #0757db; color: #fff; }
.btn-danger { border-color: #fecaca; background: #fff1ef; color: var(--red); }
.rn-admin-theme .btn {
  border-color: var(--admin-line-strong);
  background: var(--admin-surface);
  color: var(--admin-ink-strong);
}
.rn-admin-theme .btn:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 42%, var(--admin-line-strong));
  background: var(--admin-surface-soft);
}
.rn-admin-theme .btn-primary {
  border-color: var(--admin-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--admin-accent) 92%, #ffffff) 0%, var(--admin-accent) 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px color-mix(in srgb, var(--admin-accent) 20%, transparent);
}
.rn-admin-theme .btn-primary:hover {
  background: var(--admin-accent);
  color: #ffffff;
}
.icon-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #203241;
  font-weight: 800;
}
.small-icon { width: 32px; height: 32px; font-size: 13px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar .brand { color: var(--ink-strong); font-size: 22px; font-weight: 850; }
.topbar nav { display: flex; gap: 18px; font-weight: 750; }
.hero-card {
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(3, 31, 63, .92), rgba(2, 116, 144, .82)),
    url('/static/rentnimbly-logo.png') right 8% center / 340px auto no-repeat;
}
.hero-card h1 { max-width: 720px; color: #fff; font-size: 48px; line-height: 1; }
.hero-card p { max-width: 620px; color: rgba(255,255,255,.84); font-size: 18px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.alert {
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 750;
}

.table,
.rn-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th,
.table td,
.rn-data-table th,
.rn-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table th,
.rn-data-table th {
  color: #536477;
  font-size: 12px;
  font-weight: 850;
  text-transform: none;
  background: #fbfcfe;
}
.compact-table th,
.compact-table td { padding: 9px 8px; font-size: 13px; }
.rn-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.rn-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 13px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.badge-active,
.badge-available,
.badge-confirmed,
.badge-paid,
.badge-success,
.badge-enabled,
.badge-booked,
.badge-completed { background: var(--green-soft); color: #087443; }
.badge-pending,
.badge-sent,
.badge-partially_paid,
.badge-awaiting_deposit,
.badge-deposit_due,
.badge-deposit_received { background: #fff7ed; color: #c2410c; }
.badge-draft,
.badge-tentative { background: #eef2ff; color: #2556d8; }
.badge-cancelled,
.badge-past_due,
.badge-overdue,
.badge-disabled,
.badge-expired { background: var(--red-soft); color: var(--red); }
.badge-vip,
.badge-wedding,
.badge-corporate,
.badge-lead,
.badge-private,
.badge-reserved { background: #f3e8ff; color: #6d28d9; }

.rn-command-page,
.rn-crm-page,
.rn-catalog-page,
.rn-catalog-detail-page,
.rn-customer-detail-page,
.rn-customer-form-page,
.rn-orders-page,
.rn-order-detail-page,
.rn-order-portal,
.rn-tenant-pricing-page,
.rn-communications-page {
  display: grid;
  gap: 16px;
}
.rn-command-head,
.rn-page-bar,
.rn-detail-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.rn-command-head h2,
.rn-page-bar h2,
.rn-detail-toolbar h2 {
  margin-bottom: 4px;
  font-size: 28px;
  letter-spacing: 0;
}
.rn-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.rn-global-search,
.rn-search,
.rn-module-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
  max-width: 520px;
  flex: 1 1 360px;
  padding: 0;
  color: var(--muted);
  font-weight: 650;
}
.rn-global-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.rn-global-search input,
.rn-search input,
.rn-module-search input {
  height: 42px;
  border-color: #ccd8e3;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}

.rn-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rn-platform-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rn-metric-card {
  position: relative;
  min-height: 126px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: start;
  gap: 6px 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rn-metric-card:after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 74px;
  height: 28px;
  border-radius: 50%;
  opacity: .72;
  background:
    radial-gradient(circle at 12% 70%, currentColor 1px, transparent 2px),
    radial-gradient(circle at 30% 52%, currentColor 1px, transparent 2px),
    radial-gradient(circle at 48% 63%, currentColor 1px, transparent 2px),
    radial-gradient(circle at 66% 34%, currentColor 1px, transparent 2px),
    radial-gradient(circle at 86% 48%, currentColor 1px, transparent 2px);
}
.rn-metric-card p { margin: 0; color: #536477; font-weight: 750; }
.rn-metric-card strong { display: block; color: #071226; font-size: 28px; line-height: 1.05; }
.rn-metric-card small,
.rn-metric-card em,
.rn-metric-foot { color: var(--muted); font-size: 12px; font-style: normal; }
.rn-metric-card > *:not(.rn-metric-icon) { grid-column: 2; }
.rn-metric-icon {
  grid-row: 1 / span 3;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.tone-blue { color: #0b6fff; }
.tone-purple { color: #7c3aed; }
.tone-green { color: #16a34a; }
.tone-amber { color: #f59e0b; }
.tone-red { color: #ef4444; }
.tone-blue .rn-metric-icon { background: #e8f0ff; color: #0b6fff; }
.tone-purple .rn-metric-icon { background: #f1e9ff; color: #7c3aed; }
.tone-green .rn-metric-icon { background: #e9f8ef; color: #16a34a; }
.tone-amber .rn-metric-icon { background: #fff4dc; color: #d97706; }
.tone-red .rn-metric-icon { background: #fff1ef; color: #dc2626; }

.rn-dashboard-grid,
.rn-card-grid,
.rn-detail-layout,
.rn-detail-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.rn-panel,
.rn-subpanel,
.rn-note-card,
.rn-payment-card,
.rn-contact-card,
.rn-integration-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rn-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rn-panel-head h2,
.rn-panel-head h3 { margin-bottom: 0; font-size: 16px; }
.rn-panel-head a { font-size: 13px; font-weight: 800; }
.rn-span-1 { grid-column: span 1; }
.rn-span-2 { grid-column: span 2; }
.rn-span-3 { grid-column: span 3; }
.rn-span-4 { grid-column: span 4; }
.rn-span-5 { grid-column: span 5; }
.rn-span-6 { grid-column: span 6; }
.rn-span-7 { grid-column: span 7; }
.rn-span-8 { grid-column: span 8; }
.rn-span-9 { grid-column: span 9; }
.rn-span-10 { grid-column: span 10; }
.rn-span-11 { grid-column: span 11; }
.rn-span-12 { grid-column: 1 / -1; }

.rn-summary-list,
.rn-field-list,
.rn-segment-list,
.rn-control-list,
.rn-feature-list,
.rn-toggle-list,
.rn-event-list,
.rn-contact-list {
  display: grid;
  gap: 10px;
}
.rn-summary-list span,
.rn-field-list span,
.rn-control-list span,
.rn-feature-list li,
.rn-toggle-list li,
.rn-segment-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.rn-summary-list small,
.rn-field-list small { color: var(--muted); }
.rn-big-value { display: block; margin: 6px 0 12px; font-size: 30px; color: var(--ink-strong); }
.rn-chart-line {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}
.rn-chart-line i {
  flex: 1;
  min-width: 8px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #0b6fff, #8db8ff);
}
.rn-chart-blue i { background: linear-gradient(180deg, #2563eb, #93c5fd); }
.rn-funnel { display: grid; justify-items: center; gap: 5px; }
.rn-funnel span {
  display: block;
  padding: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, #0b6fff, #7c3aed);
  color: #fff;
  text-align: center;
  font-weight: 850;
}
.rn-schedule-list,
.rn-inventory-list,
.activity-list,
.rn-communication-feed,
.rn-comm-timeline,
.rn-timeline {
  display: grid;
  gap: 10px;
}
.rn-schedule-list > div,
.rn-inventory-list > div,
.activity-row,
.rn-document-row,
.rn-task-row,
.rn-ledger-row,
.rn-ranked-row,
.rn-route-list > div,
.rn-portal-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row small,
.rn-schedule-list small,
.rn-inventory-list small { display: block; color: var(--muted); }
.activity-icon,
.rn-thumb,
.rn-avatar-dot,
.rn-empty-thumb {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
}
.rn-thumb img,
.rn-item-thumb img,
.rn-catalog-image img,
.rn-customer-photo img { width: 100%; height: 100%; object-fit: cover; }
.rn-alert-panel,
.rn-alert-panel.rn-panel {
  border-color: #fed7aa;
  background: #fffaf0;
}
.rn-alert-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(251, 146, 60, .22);
}
.rn-progress-row {
  display: grid;
  grid-template-columns: 110px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}
.rn-progress-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf0;
}
.rn-progress-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0b6fff, #24b4c7); }
.rn-check-grid,
.rn-compatible-grid,
.rn-linked-cards,
.rn-integration-strip,
.rn-communication-strip,
.rn-crm-toolbar,
.rn-customer-profile-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rn-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22543d;
  font-weight: 700;
}
.rn-check:before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: inset 0 0 0 4px #e9f8ef;
}
.rn-choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}
.rn-choice-card input {
  inline-size: 20px;
  block-size: 20px;
  accent-color: var(--primary);
}
.rn-choice-card strong,
.rn-choice-card small {
  display: block;
}
.rn-choice-card small {
  color: var(--muted);
  margin-top: 3px;
}
.rn-crm-kanban {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  overflow-x: auto;
}
.rn-crm-stage-column {
  background: #eaf3f8;
  border: 1px solid #cfe0ec;
  border-radius: 12px;
  min-height: 520px;
  padding: 14px;
}
.rn-crm-stage-column header,
.rn-opportunity-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.rn-crm-stage-column header span,
.rn-opportunity-meta span {
  background: #dff3f9;
  border-radius: 999px;
  color: #083744;
  font-size: 12px;
  padding: 4px 10px;
}
.rn-crm-stage-dropzone {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.rn-crm-stage-column.is-drag-over {
  border-color: #0098c7;
  box-shadow: inset 0 0 0 2px rgba(0,152,199,.25);
}
.rn-opportunity-card {
  background: #fff;
  border: 1px solid #cfdde8;
  border-radius: 10px;
  color: inherit;
  display: grid;
  gap: 7px;
  padding: 14px;
  text-decoration: none;
}
.rn-opportunity-card strong,
.rn-opportunity-card small,
.rn-opportunity-card em,
.rn-opportunity-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rn-opportunity-card em {
  color: #5c7189;
  font-style: normal;
}
.rn-crm-create-form {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
}
.rn-filter-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
}
.rn-filter-grid label,
.rn-crm-create-form label,
.rn-form-stack label {
  color: #5c7189;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.rn-filter-grid input,
.rn-filter-grid select,
.rn-crm-create-form input,
.rn-crm-create-form select,
.rn-form-stack input,
.rn-form-stack select,
.rn-form-stack textarea {
  background: #f8fbfd;
  border: 1px solid #cfdde8;
  border-radius: 9px;
  color: #0d2f3b;
  padding: 10px 12px;
}
.rn-form-stack {
  display: grid;
  gap: 12px;
}
.rn-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.rn-mini-list span {
  background: #f5f8fb;
  border: 1px solid #d8e4ed;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}
.rn-mini-list small {
  color: #5c7189;
}
@media (max-width: 1180px) {
  .rn-crm-kanban {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
  .rn-crm-create-form,
  .rn-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}
.rn-side-rail,
.rn-detail-rail {
  display: grid;
  gap: 14px;
}
.rn-detail-rail { position: sticky; top: 100px; }

.rn-item-cell,
.rn-customer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.rn-item-thumb,
.rn-catalog-image {
  width: 48px;
  height: 42px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.rn-breadcrumb,
.rn-badge-row,
.rn-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rn-breadcrumb { color: var(--muted); font-size: 13px; font-weight: 750; }
.rn-media-card,
.rn-media-panel,
.rn-profile-snapshot {
  display: grid;
  gap: 10px;
}
.rn-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.rn-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.rn-asset-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.rn-asset-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  text-decoration: none;
}
.rn-asset-preview img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: cover;
}
.rn-asset-picker-placeholder {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-photo-frame {
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e9eef5;
}
.rn-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.rn-thumb-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rn-thumb-strip span {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #dbe7f1;
}
.rn-profile-card,
.rn-compatible-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.rn-profile-address {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rn-customer-photo {
  width: 142px;
  height: 142px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
}
.rn-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.rn-profile-facts span { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.rn-money-ok { color: #059669; font-weight: 850; }
.rn-money-alert { color: #ea580c; font-weight: 850; }
.rn-card-total { margin-left: auto; color: var(--blue); font-size: 20px; font-weight: 900; }
.rn-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.rn-pagination a,
.rn-pagination span {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 750;
}
.rn-pagination .active { background: var(--blue); color: #fff; border-color: var(--blue); }
.rn-tabs,
.rn-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.rn-tabs a,
.rn-status-tabs a,
.rn-status-tabs button {
  padding: 0 0 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #304255;
  font-weight: 800;
}
.rn-tabs a.active,
.rn-status-tabs a.active,
.rn-status-tabs button.active {
  border-color: var(--blue);
  color: var(--blue);
}
.rn-pricing-tabs {
  padding: 4px 0 0;
}
.rn-pricing-setting-grid,
.rn-pricing-location-list,
.rn-pricing-field-list,
.rn-pricing-guardrails {
  display: grid;
  gap: 10px;
}
.rn-pricing-setting-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}
.rn-pricing-setting-grid div,
.rn-pricing-location-list div,
.rn-pricing-field-list div,
.rn-pricing-guardrails div,
.rn-callout {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.rn-pricing-setting-grid small,
.rn-pricing-location-list span,
.rn-pricing-field-list span,
.rn-callout span {
  display: block;
  color: var(--muted);
}
.rn-pricing-setting-grid strong,
.rn-pricing-location-list strong,
.rn-pricing-field-list strong,
.rn-callout strong {
  display: block;
  color: var(--ink-strong);
}
.rn-pricing-field-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rn-pricing-field-list strong {
  text-align: right;
}
.rn-callout {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  background: #fff7df;
}
.rn-inline-form,
.rn-financial-rules-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.rn-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.rn-control-switches { display: grid; gap: 8px; }
.rn-control-switches span,
.rn-checkbox-button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rn-donut-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.rn-donut {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: conic-gradient(#0b6fff 0 52%, #16a34a 52% 71%, #7c3aed 71% 86%, #f59e0b 86% 95%, #cbd5e1 95% 100%);
  box-shadow: inset 0 0 0 42px #fff;
}
.rn-donut-legend { display: grid; gap: 8px; }
.rn-route-map {
  min-height: 160px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37,99,235,.16) 1px, transparent 1px),
    linear-gradient(rgba(37,99,235,.16) 1px, transparent 1px),
    #eef6ff;
  background-size: 28px 28px;
}
.rn-order-snapshot,
.rn-generated-link {
  display: grid;
  gap: 10px;
}

/* Orders operating workspace. The same card contract powers list and detail layout editing. */
.rn-order-workspace {
  gap: 14px;
}
.rn-order-toolbar,
.rn-order-detail-toolbar {
  align-items: center;
  padding-bottom: 2px;
}
.rn-order-toolbar h2,
.rn-order-detail-toolbar h2 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.rn-info-dot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8e6;
  border-radius: 50%;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.rn-top-tabs {
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.rn-top-tabs a,
.rn-top-tabs span {
  padding: 12px 10px 14px;
  color: var(--muted);
  font-weight: 800;
}
.rn-top-tabs .active {
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
}
.rn-order-metrics,
.rn-order-detail-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.rn-orders-table-card {
  padding: 0;
  overflow: hidden;
}
.rn-orders-table-card .rn-panel-head {
  padding: 16px 18px 10px;
  margin: 0;
}
.rn-order-table-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rn-order-table td,
.rn-order-line-table td {
  vertical-align: middle;
}
.rn-order-table td small,
.rn-order-line-table td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}
.rn-customer-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.rn-initial-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f0ff;
  color: #0b6fff;
  font-size: 13px;
  font-weight: 900;
}
.rn-initial-avatar.xl {
  width: 70px;
  height: 70px;
  font-size: 18px;
}
.rn-avatar-stack,
.rn-row-actions,
.rn-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rn-avatar-stack span,
.rn-avatar-stack em {
  width: 28px;
  height: 28px;
  margin-left: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.rn-avatar-stack span:first-child { margin-left: 0; }
.rn-avatar-stack em { background: #eef2f7; color: #64748b; }
.rn-pagination {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.rn-compact-list a,
.rn-document-list a,
.rn-payment-plan span {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.rn-compact-list a {
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
}
.rn-compact-list em,
.rn-document-list small,
.rn-payment-plan small {
  color: var(--muted);
  font-style: normal;
}
.rn-order-donut-card {
  grid-template-columns: 150px minmax(0, 1fr);
}
.rn-order-donut {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}
.rn-order-donut strong,
.rn-order-donut span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--ink-strong);
}
.rn-order-donut span {
  margin-top: -48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.rn-donut-legend span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.rn-task-list {
  display: grid;
  gap: 10px;
}
.rn-task-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rn-task-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.rn-profile-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.rn-tight-fields span {
  align-items: flex-start;
}
.btn-full {
  width: 100%;
  justify-content: center;
}
.rn-address-stack,
.rn-status-timeline,
.rn-timeline-mini {
  display: grid;
  gap: 10px;
}
.rn-address-stack > div,
.rn-note-box,
.rn-alert-callout {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.rn-alert-callout {
  margin-top: 10px;
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}
.rn-order-logistics-warnings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.rn-order-logistics-warnings span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, #f59e0b 28%, var(--line, #dbe5ef));
  border-radius: 999px;
  background: color-mix(in srgb, #f59e0b 10%, #fff);
  color: #8a4b0f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.rn-inline-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.rn-timeline-mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}
.rn-timeline-mini span,
.rn-status-timeline span {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.rn-timeline-mini span.done,
.rn-status-timeline span.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}
.rn-status-timeline span strong,
.rn-status-timeline span small {
  display: block;
}
.rn-payment-plan {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.rn-order-items-card {
  overflow: hidden;
}
.rn-add-line-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.rn-compact-form {
  margin-top: 12px;
}
.rn-wide-activity-list .activity-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.rn-order-screen {
  --order-card-gap: 14px;
}
.rn-page-tabs {
  margin-top: 2px;
}
.rn-order-overview-grid {
  gap: var(--order-card-gap);
}
.rn-order-tab-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--order-card-gap);
  align-items: start;
}
.rn-items-tab-grid,
.rn-payments-tab-grid,
.rn-documents-tab-grid {
  grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr);
}
.rn-items-tab-grid > .rn-span-8,
.rn-payments-tab-grid > .rn-span-8,
.rn-documents-tab-grid > .rn-span-8 {
  grid-column: auto;
}
.rn-tab-rail {
  display: grid;
  gap: var(--order-card-gap);
  min-width: 0;
}
.rn-order-detail-page .rn-panel {
  border-color: #dfe7f1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}
.rn-order-detail-page .rn-panel-head h2 {
  color: var(--ink-strong);
  font-size: 15px;
  letter-spacing: 0;
}
.rn-order-detail-page .rn-data-table th {
  font-size: 11px;
  color: #34425a;
  background: #fbfdff;
}
.rn-order-detail-page .rn-data-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.rn-order-totals,
.rn-payment-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rn-order-totals span,
.rn-order-totals strong,
.rn-payment-summary-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.rn-payment-summary-strip small,
.rn-order-totals span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.rn-payment-summary-strip strong,
.rn-order-totals strong {
  color: var(--ink-strong);
  font-size: 17px;
}
.rn-payment-method-list {
  display: grid;
  gap: 10px;
}
.rn-payment-method-card {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.rn-payment-method-card small {
  color: var(--muted);
}
.rn-document-visibility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rn-document-visibility label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}
.rn-document-visibility.vertical {
  display: grid;
}
.rn-document-visibility.vertical label {
  justify-content: flex-start;
}
.rn-document-source-row {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rn-document-source-row > div:first-of-type {
  display: grid;
  gap: 2px;
}
.rn-document-source-row small {
  color: var(--muted);
}
.rn-tab-rail .rn-panel {
  padding: 14px;
}
.rn-order-total-card .rn-payment-plan {
  margin-bottom: 0;
}
.rn-order-total-card .rn-payment-plan span:last-child strong {
  color: var(--blue);
}

@media (max-width: 1280px) {
  .rn-order-metrics,
  .rn-order-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rn-items-tab-grid,
  .rn-payments-tab-grid,
  .rn-documents-tab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .rn-layout-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .rn-layout-inspector { grid-column: 1 / -1; }
  .widget-grid, .command-layout, .component-detail-grid, .rn-customer-profile-band, .rn-crm-toolbar, .rn-integration-strip { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .rn-metric-grid, .rn-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-dashboard-grid, .rn-detail-layout, .rn-detail-hero, .rn-card-grid, .rn-order-tab-grid { grid-template-columns: 1fr 1fr; }
  .rn-span-1, .rn-span-2, .rn-span-3, .rn-span-4, .rn-span-5, .rn-span-6, .rn-span-7, .rn-span-8, .rn-span-9, .rn-span-10, .rn-span-11, .rn-span-12 { grid-column: span 2; }
  .rn-detail-rail { position: static; }
  .rn-workspace-topbar { grid-template-columns: auto 1fr; }
  .rn-global-search { grid-column: 1 / -1; order: 3; width: 100%; }
  .topbar-actions { justify-self: end; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-topbar, .command-hero, .toolbar, .between, .panel-header { align-items: flex-start; flex-direction: column; }
  .widget-grid, .command-layout, .component-detail-grid, .type-grid, .stats-grid, .grid.two, .grid.three, .grid.four, .split.two-thirds, .three-col, .totals-box, .payment-option-grid, .feature-check-grid, .forecast-strip, .availability-box, .detail-metrics, .compat-grid { grid-template-columns: 1fr; }
  .rn-page-bar, .rn-panel-head { align-items: flex-start; flex-direction: column; }
  .rn-search { width: 100%; }
  .rn-page-actions { width: 100%; }
  .rn-page-actions .btn, .rn-page-actions .rn-search { flex: 1 1 100%; }
  .rn-metric-grid, .rn-dashboard-grid, .rn-detail-layout, .rn-detail-hero, .rn-card-grid, .rn-check-grid, .rn-compatible-grid, .rn-linked-cards, .rn-detail-metrics, .rn-order-tab-grid, .rn-order-totals, .rn-payment-summary-strip { grid-template-columns: 1fr; }
  .rn-customer-profile-band, .rn-communication-strip, .rn-crm-toolbar, .rn-donut-card, .rn-integration-strip { grid-template-columns: 1fr; }
  .rn-layout-shell, .rn-filter-bar { grid-template-columns: 1fr; }
  .rn-layout-library, .rn-layout-inspector { max-height: none; }
  .rn-layout-canvas-wrap { min-height: 520px; }
  .rn-span-1, .rn-span-2, .rn-span-3, .rn-span-4, .rn-span-5, .rn-span-6, .rn-span-7, .rn-span-8, .rn-span-9, .rn-span-10, .rn-span-11, .rn-span-12 { grid-column: auto; }
  .span-2, .span-3 { grid-column: auto; }
  .page { padding: 18px; }
  .portal-actions { flex-direction: column; align-items: stretch; }
  .rn-action-grid { grid-template-columns: 1fr; }
  .rn-action-grid a:last-child { grid-column: auto; }
}

/* Shared operating detail layout used by Components, Orders, Customers, and catalog records. */
.rn-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(292px, 360px);
}
.rn-main-column {
  min-width: 0;
  display: grid;
  grid-column: 1;
  gap: 14px;
}
.rn-detail-rail {
  grid-column: 2;
  min-width: 0;
}
.rn-detail-hero {
  grid-template-columns: minmax(280px, 4fr) minmax(220px, 3fr) minmax(320px, 5fr);
}
.rn-detail-hero > *,
.rn-card-grid > *,
.rn-main-column > * {
  min-width: 0;
}
.rn-detail-hero .rn-media-panel,
.rn-detail-hero .rn-profile-card,
.rn-detail-hero .rn-compatible-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.rn-detail-hero .rn-profile-card {
  display: block;
}
.rn-detail-hero .rn-compatible-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.rn-card-grid > .rn-panel {
  grid-column: span 6;
}
.rn-card-grid > .rn-panel:nth-child(3),
.rn-card-grid > .rn-panel:nth-child(4),
.rn-card-grid > .rn-panel:nth-child(8) {
  grid-column: 1 / -1;
}
.rn-detail-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.rn-compatible-grid > a,
.rn-linked-cards > a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.rn-linked-cards > a {
  grid-template-columns: 1fr;
}
.rn-compatible-grid > a span {
  width: 52px;
  height: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rn-compatible-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inline-form,
.rn-inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.inline-form .btn,
.rn-inline-form .btn {
  align-self: end;
}
.detail-metrics,
.availability-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.availability-box {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
.detail-metrics > div,
.availability-box > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.detail-metrics span,
.availability-box span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.detail-metrics strong,
.availability-box strong {
  color: var(--ink-strong);
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rn-platform-workspace {
  gap: 18px;
  color: #071226;
}
.rn-platform-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 2px;
}
.rn-platform-head h2 {
  margin: 0;
  color: #071226;
  font-size: 30px;
  line-height: 1.05;
}
.rn-platform-head .muted { margin-top: 8px; }
.rn-local-search {
  position: relative;
  display: flex;
  min-width: 360px;
}
.rn-local-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rn-local-search input,
.rn-search-small input,
.rn-platform-create-form input,
.rn-platform-create-form select,
.rn-platform-create-form textarea,
.rn-reply-box textarea,
.rn-reply-box select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfdae8;
  border-radius: 8px;
  background: #fff;
  color: #0b172a;
}
.rn-local-search input {
  min-width: 360px;
  padding-left: 38px;
}
.rn-local-search:before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid #66758a;
  border-radius: 50%;
  transform: translateY(-55%);
}
.rn-local-search:after {
  content: "";
  position: absolute;
  left: 26px;
  top: 27px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #66758a;
  transform: rotate(45deg);
}
.rn-top-tabs.rn-platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.rn-top-tabs.rn-platform-tabs a {
  position: relative;
  padding: 13px 22px 14px 0;
  border: 0;
  background: transparent;
  color: #1d2c43;
  font-size: 14px;
  font-weight: 850;
}
.rn-top-tabs.rn-platform-tabs a.active {
  color: #005cff;
}
.rn-top-tabs.rn-platform-tabs a.active:after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #0068ff;
}
.rn-platform-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.rn-platform-table-card {
  padding: 0;
  overflow: hidden;
}
.rn-platform-table-card > h2,
.rn-platform-table-card > .rn-panel-head {
  padding: 16px 18px 0;
}
.rn-platform-table-card .rn-table-wrap {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}
.rn-platform-table-card .rn-data-table th,
.rn-platform-table-card .rn-data-table td {
  padding: 13px 16px;
}
.rn-data-table td small,
.rn-platform-table-card td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.rn-status-card {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #d7efdf;
  border-radius: 8px;
  background: #f4fbf6;
  color: #087443;
}
.rn-status-card small { color: #5f7a69; }
.rn-line-chart {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 190px;
  padding: 18px 20px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, #fff 0 38px, #edf2f8 39px),
    linear-gradient(180deg, #fbfdff, #f4f8ff);
}
.rn-line-chart span {
  flex: 1;
  min-width: 18px;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #0068ff, #b8d7ff);
}
.rn-card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 850;
}
.rn-dot {
  display: inline-flex;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: #64748b;
}
.rn-dot.green { background: #16a34a; }
.rn-dot.amber { background: #f59e0b; }
.rn-dot.red { background: #ef4444; }
.rn-money-ok { color: #0f9f5d; font-weight: 850; }
.rn-money-alert { color: #ef1f36; font-weight: 850; }
.rn-alert-callout {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #be123c;
}
.rn-order-donut,
.rn-score-ring {
  width: 150px;
  height: 150px;
  display: grid;
  place-content: center;
  margin: 10px auto;
  border-radius: 50%;
  background: conic-gradient(#0b6fff 0 36%, #35bd72 36% 68%, #f59e0b 68% 82%, #e5eaf0 82% 100%);
  color: #071226;
  text-align: center;
}
.rn-order-donut:before,
.rn-score-ring:before {
  content: "";
  position: absolute;
}
.rn-order-donut strong,
.rn-score-ring strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}
.rn-order-donut span,
.rn-score-ring span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.rn-platform-create-form {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.rn-platform-create-form textarea {
  min-height: 78px;
  grid-column: span 2;
}
.badge-critical,
.badge-high,
.badge-failed,
.badge-escalated { background: #fff1ef; color: #dc2626; }
.badge-medium,
.badge-in-progress,
.badge-waiting,
.badge-open,
.badge-in_progress,
.badge-in-progress,
.badge-in-progress { background: #fff7ed; color: #c2410c; }
.badge-low,
.badge-processed,
.badge-resolved,
.badge-closed { background: #ecfdf3; color: #087443; }
.badge-new,
.badge-neutral,
.badge-trialing,
.badge-in_progress { background: #eef4ff; color: #0b63e5; }
.badge-suspended,
.badge-past-due,
.badge-past_due { background: #fff1ef; color: #dc2626; }

.access-restricted-page {
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.access-restricted-card {
  width: min(620px, 100%);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 32px;
}
.access-restricted-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
}
.access-restricted-card p {
  color: #64748b;
}
.access-restricted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.rn-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.rn-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.rn-ticket-thread {
  display: grid;
  gap: 16px;
}
.rn-ticket-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rn-ticket-message.internal {
  margin-left: 16px;
  padding: 14px;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.rn-ticket-message p { margin: 8px 0 0; color: #24344d; line-height: 1.5; }
.rn-reply-box {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.rn-reply-box textarea {
  min-height: 52px;
}
.rn-linked-record {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #dbe7ff;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-note-warm {
  border-color: #fed7aa;
  background: #fffaf0;
}

.rn-public-body {
  margin: 0;
  min-height: 100vh;
  background: #f6f8fb;
  color: #0f1b2d;
}
.rn-storefront-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dbe3ef;
  backdrop-filter: blur(14px);
}
.rn-storefront-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f1b2d;
  text-decoration: none;
}
.rn-storefront-brand span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #0b5cff;
  color: #fff;
  font-weight: 900;
}
.rn-storefront-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rn-storefront-nav nav a {
  color: #40506a;
  font-weight: 800;
  text-decoration: none;
}
.rn-storefront-shell,
.rn-public-shell {
  width: min(1420px, calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 44px;
}
.rn-storefront-hero,
.rn-public-page-head,
.rn-invoice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 27, 45, 0.06);
}
.rn-public-page-head > :only-child {
  grid-column: 1 / -1;
}
.rn-storefront-hero h1,
.rn-public-page-head h1,
.rn-invoice-hero h1 {
  margin: 6px 0 10px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}
.rn-storefront-hero p,
.rn-public-page-head p,
.rn-invoice-hero p {
  max-width: 760px;
  color: #50617c;
  line-height: 1.55;
}
.rn-storefront-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.rn-public-inline-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.rn-public-card {
  padding: 20px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 27, 45, 0.05);
}
.rn-public-grid,
.rn-public-cart-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.rn-span-4 { grid-column: span 4; }
.rn-span-6 { grid-column: span 6; }
.rn-span-8 { grid-column: span 8; }
.rn-public-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rn-public-product-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.rn-public-product-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #fff;
}
.rn-public-product-card a {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.rn-public-product-card img,
.rn-public-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: #eef3fb;
}
.rn-public-product-card strong {
  font-size: 15px;
}
.rn-public-product-card span,
.rn-public-product-card small {
  color: #50617c;
  font-weight: 800;
}
.rn-public-product-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #eaf2ff;
  color: #0b5cff;
  font-weight: 900;
  font-size: 24px;
}
.rn-public-product-placeholder.large {
  min-height: 430px;
  font-size: 56px;
}
.rn-public-product-placeholder.tiny {
  width: 58px;
  height: 46px;
  aspect-ratio: auto;
  font-size: 14px;
}
.rn-public-total-card {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-public-total-card span,
.rn-public-total-card small {
  color: #50617c;
  font-weight: 800;
}
.rn-public-total-card strong {
  font-size: 34px;
}
.rn-public-intake-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.65fr);
  gap: 28px;
  margin-top: 18px;
}
.rn-public-detail-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1fr);
  gap: 18px;
}
.rn-public-media-card {
  padding: 12px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #fff;
}
.rn-public-detail-card {
  display: grid;
  align-content: start;
  gap: 14px;
}
.rn-public-price {
  font-size: 34px;
  font-weight: 900;
  color: #0b5cff;
}
.rn-public-option-list,
.rn-public-cart-list {
  display: grid;
  gap: 10px;
}
.rn-public-option-list span,
.rn-public-cart-row {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: #fbfdff;
}
.rn-public-option-list span {
  grid-template-columns: minmax(0, 1fr);
}
.rn-public-cart-row input[type="number"] {
  width: 90px;
}
.rn-public-cart-item {
  display: grid;
  gap: 10px;
}
.rn-public-price-note {
  margin: -3px 0 0 70px;
  color: #52657a;
  font-size: 13px;
  font-weight: 600;
}
.rn-public-setup-option {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 70px;
  color: #102038;
  font-size: 13px;
  font-weight: 650;
}
.rn-public-setup-option input {
  width: auto;
  min-height: auto;
}
.rn-public-cart-total {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-public-cart-total span {
  color: #52657a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.rn-public-cart-total strong {
  color: #102038;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.15;
}
.rn-public-cart-total small {
  color: #52657a;
  font-weight: 600;
}
.rn-public-product-options {
  display: grid;
  gap: 10px;
  margin-left: 70px;
  padding: 12px;
  border: 1px solid #e1e9f5;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.rn-public-option-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.rn-public-option-group legend {
  color: #102038;
  font-size: 13px;
  font-weight: 900;
}
.rn-public-option-group p,
.rn-public-option-group small {
  margin: 0;
  color: #61738a;
  font-size: 12px;
  font-weight: 700;
}
.rn-public-option-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 90px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: #30445d;
  font-size: 13px;
  font-weight: 750;
}
.rn-public-option-choice input[type="checkbox"] {
  width: auto;
}
.rn-public-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.rn-public-topbar div {
  display: grid;
  gap: 3px;
}
.rn-public-alert {
  margin-bottom: 16px;
}
.rn-invoice-shell {
  max-width: 1280px;
}
.rn-reconfirmation-card {
  border-color: #fed7aa;
  background: #fffaf0;
}
.rn-intake-summary {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  background: #f8fbff;
}

@media (max-width: 1280px) {
  .rn-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rn-main-column,
  .rn-detail-rail {
    grid-column: auto;
  }
  .rn-detail-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Rental product edit workspace */
.rn-product-edit-page {
  --product-gap: 14px;
  padding: 20px 22px 24px;
  color: var(--admin-ink, #071226);
  font-size: 14px;
  line-height: 1.5;
}
.rn-product-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}
.rn-product-toolbar h1 { margin: 4px 0 6px; font-size: 22px; line-height: 1.1; }
.rn-product-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rn-product-title-row h2 { margin: 0; font-size: 18px; }
.rn-product-title-row span,
.rn-breadcrumb { margin: 0; color: #52657a; font-size: 13px; font-weight: 700; }
.rn-product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.rn-product-tabs {
  display: flex;
  gap: 30px;
  align-items: center;
  min-height: 44px;
  margin-bottom: 14px;
  border-bottom: 1px solid #d8e2ec;
}
.rn-product-tabs a {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #1b2b45;
  font-size: 14px;
  font-weight: 800;
}
.rn-product-tabs a.active { color: #0b6fff; border-bottom-color: #0b6fff; }
.rn-product-edit-grid {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 385px;
  gap: var(--product-gap);
  align-items: start;
}
.rn-product-main,
.rn-product-rail,
.rn-product-tab-grid { min-width: 0; }
.rn-product-main,
.rn-product-form,
.rn-product-rail { display: grid; gap: var(--product-gap); }
.rn-product-tab-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--product-gap);
  align-items: start;
}
.rn-product-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface, #fff);
  box-shadow: var(--admin-shadow, 0 12px 26px rgba(15, 23, 42, .055));
}
.rn-product-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  align-items: end;
  padding: 16px 18px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: color-mix(in srgb, var(--admin-surface, #fff) 94%, transparent);
  box-shadow: var(--admin-shadow, 0 12px 26px rgba(15, 23, 42, .055));
  backdrop-filter: blur(12px);
}
.rn-product-summary-header {
  align-items: center;
}
.rn-product-summary-lockup {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
}
.rn-product-summary-thumb {
  display: grid;
  width: 74px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #eef4fb);
  color: var(--admin-primary, #2563eb);
  font-weight: 800;
}
.rn-product-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rn-product-summary-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 5px;
}
.rn-product-summary-title h1 {
  margin: 0;
}
.rn-product-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.rn-product-summary-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--admin-surface-soft, #eef4fb);
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 700;
}
.rn-status-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2556d8;
  font-size: 12px;
  font-weight: 750;
}
.rn-status-pill.active {
  background: #dcfce7;
  color: #087443;
}
.rn-status-pill.inactive,
.rn-status-pill.archived,
.rn-status-pill.draft {
  background: #eef2f7;
  color: #52657a;
}
.rn-status-pill.scheduled {
  background: #fff7ed;
  color: #c2410c;
}
.rn-product-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 7px;
}
.rn-product-title-row h2 { margin: 0; font-size: 19px; }
.rn-product-title-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--admin-surface-soft, #eef4fb);
  color: var(--admin-muted, #30445d);
  font-size: 12px;
  font-weight: 850;
}
.rn-product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rn-product-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-card, #fff);
  color: var(--admin-text, #102033);
  font-size: 13px;
  font-weight: 600;
}
.rn-product-notice.success {
  border-color: color-mix(in srgb, var(--admin-success, #16a34a) 35%, var(--admin-line, #dbe5ef));
  background: color-mix(in srgb, var(--admin-success, #16a34a) 8%, var(--admin-card, #fff));
}
.rn-product-notice.error {
  border-color: color-mix(in srgb, var(--admin-danger, #dc2626) 35%, var(--admin-line, #dbe5ef));
  background: color-mix(in srgb, var(--admin-danger, #dc2626) 7%, var(--admin-card, #fff));
}
.rn-pricing-workbench .btn,
.rn-tier-edit-page .btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 750;
}
.rn-product-actions .btn[disabled] {
  cursor: not-allowed;
  opacity: .6;
}
.rn-product-card h3 { margin-bottom: 12px; color: var(--admin-ink-strong, #102038); font-size: 14px; letter-spacing: 0; }
.rn-product-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.rn-product-card-head h3 { margin: 0; }
.rn-product-card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rn-product-card-head span,
.rn-product-card small { color: var(--admin-muted, #61738a); font-size: 12px; font-weight: 650; }
.rn-product-logistics-shell,
.rn-product-seo-shell {
  max-width: 1160px;
}
.rn-logistics-intro-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-color: color-mix(in srgb, var(--admin-primary, #2563eb) 24%, var(--admin-line, #dbe5ef));
}
.rn-logistics-intro-card h3 {
  margin: 0 0 2px;
}
.rn-logistics-intro-card p {
  margin: 0;
  color: var(--admin-muted, #61738a);
  font-size: 13px;
  font-weight: 600;
}
.rn-logistics-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.rn-logistics-card-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.rn-logistics-card-title h3 {
  margin: 0;
}
.rn-logistics-card-title > span {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 999px;
  color: var(--admin-muted, #61738a);
  font-size: 11px;
  font-weight: 750;
}
.rn-logistics-helper {
  margin: -4px 0 0;
  color: var(--admin-muted, #61738a);
  font-size: 12px;
  font-weight: 600;
}
.rn-logistics-placeholder-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--admin-primary, #2563eb);
  font-size: 12px;
  font-weight: 850;
}
.rn-logistics-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.rn-logistics-toggle-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.rn-logistics-toggle-grid .rn-setting-toggle {
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #f6f9fc);
  transition: border-color .15s ease, background-color .15s ease, opacity .15s ease;
}
.rn-logistics-toggle-grid .rn-setting-toggle.is-on {
  border-color: color-mix(in srgb, var(--admin-primary, #2563eb) 35%, var(--admin-line, #dbe5ef));
  background: color-mix(in srgb, var(--admin-primary, #2563eb) 7%, var(--admin-card, #fff));
}
.rn-logistics-toggle-grid .rn-setting-toggle span strong {
  font-size: 12px;
  line-height: 1.25;
}
.rn-logistics-card .is-muted {
  opacity: .48;
}
.rn-logistics-card label.is-muted,
.rn-logistics-card .rn-setting-toggle.is-muted {
  filter: grayscale(.15);
}
.rn-logistics-dynamic-helper {
  margin: -2px 0 10px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--admin-primary, #2563eb) 18%, var(--admin-line, #dbe5ef));
  border-radius: 8px;
  background: color-mix(in srgb, var(--admin-primary, #2563eb) 6%, var(--admin-card, #fff));
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.rn-logistics-dynamic-helper[hidden] {
  display: none;
}
.rn-logistics-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.rn-logistics-fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rn-logistics-fields.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rn-logistics-fields label,
.rn-logistics-alert-role,
.rn-logistics-notes-field {
  display: grid;
  gap: 6px;
  color: var(--admin-ink-strong, #1c2f49);
  font-size: 12px;
  font-weight: 700;
}
.rn-logistics-fields input,
.rn-logistics-fields select,
.rn-logistics-fields textarea,
.rn-logistics-alert-role select,
.rn-logistics-notes-field textarea {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid var(--admin-line-strong, #cfdae7);
  border-radius: 8px;
  background: var(--admin-surface, #fff);
  color: var(--admin-ink, #102038);
  font-size: 13px;
  font-weight: 500;
}
.rn-logistics-fields textarea,
.rn-logistics-notes-field textarea {
  min-height: 80px;
  resize: vertical;
}
.rn-unit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--admin-line-strong, #cfdae7);
  border-radius: 8px;
  overflow: hidden;
  background: var(--admin-surface, #fff);
}
.rn-unit-input input,
.rn-unit-input select {
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.rn-unit-input span,
.rn-unit-input select {
  min-width: 78px;
  padding: 9px 10px;
  border-left: 1px solid var(--admin-line, #dbe5ef);
  color: var(--admin-muted, #61738a);
  font-size: 12px;
  font-weight: 650;
}
.rn-logistics-summary-list {
  display: grid;
  gap: 10px;
}
.rn-logistics-summary-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--admin-line, #dbe5ef);
  color: var(--admin-ink, #102038);
  font-size: 13px;
  font-weight: 650;
}
.rn-logistics-summary-list span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.rn-logistics-attachment-drop {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 150px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--admin-primary, #2563eb) 35%, var(--admin-line, #dbe5ef));
  border-radius: 8px;
  background: var(--admin-surface-soft, #f6f9fc);
  text-align: center;
}
.rn-logistics-attachment-drop span {
  color: var(--admin-muted, #61738a);
  font-size: 12px;
  font-weight: 600;
}
.rn-logistics-attachment-drop input,
.rn-logistics-attachment-drop textarea {
  width: min(100%, 420px);
  border: 1px solid var(--admin-line, #cfdae8);
  border-radius: 8px;
  background: var(--admin-card, #fff);
  color: var(--admin-text, #102033);
  font: inherit;
  font-size: 13px;
  padding: 9px 10px;
}
.rn-logistics-attachment-drop input[type="file"] {
  background: transparent;
  border-style: dashed;
}
.rn-logistics-attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.rn-logistics-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rn-logistics-attachment-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--admin-surface-soft, #eef4fb);
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 650;
}
.rn-logistics-packing-layout {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(520px, 1.2fr);
  gap: 16px;
  align-items: start;
}
.rn-logistics-packing-left,
.rn-logistics-components-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.rn-logistics-table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.rn-logistics-table-head h4 {
  margin: 0 0 2px;
  color: var(--admin-ink-strong, #102038);
  font-size: 13px;
}
.rn-logistics-table-head small {
  color: var(--admin-muted, #61738a);
  font-size: 12px;
  font-weight: 600;
}
.rn-logistics-component-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 90px minmax(130px, auto) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #f6f9fc);
}
.rn-logistics-component-add-row label {
  display: grid;
  gap: 5px;
  color: var(--admin-ink-strong, #1c2f49);
  font-size: 12px;
  font-weight: 700;
}
.rn-logistics-component-add-row input,
.rn-logistics-component-add-row select {
  min-height: 36px;
  margin: 0;
  border-radius: 8px;
  font-size: 13px;
}
.rn-logistics-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
}
.rn-logistics-components-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--admin-surface, #fff);
}
.rn-logistics-components-table th,
.rn-logistics-components-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--admin-line, #dbe5ef);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}
.rn-logistics-components-table th {
  background: var(--admin-surface-soft, #f6f9fc);
  color: var(--admin-muted, #61738a);
  font-weight: 750;
  text-transform: uppercase;
}
.rn-logistics-components-table tr:last-child td {
  border-bottom: 0;
}
.rn-logistics-components-table input,
.rn-logistics-components-table select {
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.rn-logistics-components-table td:nth-child(2) {
  width: 92px;
}
.rn-logistics-components-table td:nth-child(3) {
  width: 112px;
}
.rn-logistics-components-table td:nth-child(4) {
  width: 150px;
}
.rn-compact-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
}
.rn-logistics-row-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.rn-logistics-row-actions .danger {
  color: var(--red, #dc2626);
}
.rn-logistics-empty {
  padding: 18px !important;
  color: var(--admin-muted, #61738a);
  text-align: center !important;
  font-weight: 650;
}
.rn-product-logistics-page {
  --logistics-card-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--admin-bg, #eef4f8) 92%, #fff), var(--admin-bg, #eef4f8));
}
.rn-product-logistics-page .rn-product-header,
.rn-product-logistics-page .rn-product-tabs,
.rn-product-logistics-page .rn-product-card {
  border-color: color-mix(in srgb, var(--admin-line, #dbe5ef) 86%, #fff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}
.rn-product-logistics-page .rn-product-header,
.rn-product-logistics-page .rn-product-card {
  border-radius: var(--logistics-card-radius);
}
.rn-product-logistics-page .rn-product-tabs {
  position: relative;
  z-index: 1;
  padding-inline: 2px;
}
.rn-product-logistics-page .rn-product-tabs a {
  min-height: 42px;
  outline: none;
}
.rn-product-logistics-page .rn-product-tabs a:hover {
  color: var(--admin-primary, #2563eb);
}
.rn-product-logistics-page .rn-product-tabs a:focus-visible,
.rn-product-logistics-page .btn:focus-visible,
.rn-product-logistics-page .btn-link:focus-visible,
.rn-product-logistics-page input:focus-visible,
.rn-product-logistics-page select:focus-visible,
.rn-product-logistics-page textarea:focus-visible,
.rn-product-logistics-page .rn-setting-toggle:focus-within {
  outline: 3px solid color-mix(in srgb, var(--admin-primary, #2563eb) 24%, transparent);
  outline-offset: 2px;
}
.rn-product-logistics-page .btn {
  border-color: color-mix(in srgb, var(--admin-primary, #2563eb) 20%, var(--admin-line, #dbe5ef));
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}
.rn-product-logistics-page .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--admin-primary, #2563eb) 45%, var(--admin-line, #dbe5ef));
  box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
}
.rn-product-logistics-page .btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--admin-primary, #2563eb) 88%, #0b1b3a);
}
.rn-product-logistics-page .rn-logistics-grid {
  width: min(100%, 1320px);
  max-width: none;
}
.rn-product-logistics-page .rn-logistics-card {
  padding: 17px;
  background: var(--admin-card, #fff);
}
.rn-product-logistics-page .rn-logistics-card-header {
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--admin-line, #dbe5ef) 72%, transparent);
}
.rn-product-logistics-page .rn-logistics-card-header h3 {
  color: var(--admin-ink-strong, #102038);
  font-size: 14px;
  font-weight: 700;
}
.rn-product-logistics-page .rn-logistics-placeholder-icon {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--admin-primary, #2563eb) 16%, transparent);
}
.rn-product-logistics-page .rn-logistics-field-row label,
.rn-product-logistics-page .rn-logistics-alert-role,
.rn-product-logistics-page .rn-logistics-notes-field {
  font-size: 12px;
  font-weight: 650;
}
.rn-product-logistics-page .rn-logistics-fields input,
.rn-product-logistics-page .rn-logistics-fields select,
.rn-product-logistics-page .rn-logistics-fields textarea,
.rn-product-logistics-page .rn-logistics-alert-role select,
.rn-product-logistics-page .rn-logistics-notes-field textarea,
.rn-product-logistics-page .rn-logistics-attachment-drop input,
.rn-product-logistics-page .rn-logistics-attachment-drop textarea,
.rn-product-logistics-page .rn-logistics-components-table input,
.rn-product-logistics-page .rn-logistics-components-table select {
  border-color: color-mix(in srgb, var(--admin-line-strong, #cfdae7) 88%, #fff);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .025);
}
.rn-product-logistics-page .rn-logistics-fields input:hover,
.rn-product-logistics-page .rn-logistics-fields select:hover,
.rn-product-logistics-page .rn-logistics-fields textarea:hover,
.rn-product-logistics-page .rn-logistics-alert-role select:hover,
.rn-product-logistics-page .rn-logistics-notes-field textarea:hover {
  border-color: color-mix(in srgb, var(--admin-primary, #2563eb) 28%, var(--admin-line-strong, #cfdae7));
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle,
.rn-product-logistics-page .rn-logistics-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  cursor: pointer;
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle input[type="checkbox"],
.rn-product-logistics-page .rn-logistics-toggle input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 36px;
  height: 20px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #b8c5d4;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle input[type="checkbox"]::before,
.rn-product-logistics-page .rn-logistics-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
  transition: transform .15s ease;
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle input[type="checkbox"]:checked,
.rn-product-logistics-page .rn-logistics-toggle input[type="checkbox"]:checked {
  background: var(--admin-success, #16a34a);
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle input[type="checkbox"]:checked::before,
.rn-product-logistics-page .rn-logistics-toggle input[type="checkbox"]:checked::before {
  transform: translateX(16px);
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle input[type="checkbox"]:focus-visible,
.rn-product-logistics-page .rn-logistics-toggle input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--admin-primary, #2563eb) 24%, transparent);
  outline-offset: 2px;
}
.rn-product-logistics-page .rn-logistics-toggle-grid .rn-setting-toggle span strong,
.rn-product-logistics-page .rn-logistics-toggle span strong {
  font-weight: 650;
}
.rn-product-logistics-page .rn-logistics-table-wrap {
  border-radius: var(--logistics-card-radius);
}
.rn-product-logistics-page .rn-logistics-table th {
  letter-spacing: .02em;
}
.rn-product-logistics-page .rn-logistics-table tbody tr {
  transition: background-color .12s ease;
}
.rn-product-logistics-page .rn-logistics-table tbody tr:hover {
  background: color-mix(in srgb, var(--admin-primary, #2563eb) 4%, var(--admin-card, #fff));
}
.rn-product-logistics-page .rn-logistics-notice {
  width: min(100%, 1320px);
}
.rn-product-logistics-page .rn-logistics-actions .btn {
  min-height: 36px;
}
.rn-edit-form-grid { display: grid; gap: 13px 16px; }
.rn-edit-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rn-edit-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rn-edit-form-grid label,
.rn-product-form label { color: var(--admin-ink-strong, #1c2f49); font-size: 12px; font-weight: 800; }
.rn-edit-form-grid input,
.rn-edit-form-grid select,
.rn-product-form input,
.rn-product-form select,
.rn-product-form textarea {
  margin-top: 6px;
  min-height: 38px;
  padding: 9px 11px;
  border-color: var(--admin-line-strong, #cfdae7);
  color: var(--admin-ink, #102038);
  font-size: 13px;
  font-weight: 650;
}
.rn-product-form textarea { min-height: 88px; line-height: 1.45; }
.rn-split-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rn-product-conditional { display: none; }
.rn-product-edit-page[data-product-type="tent"] .rn-for-tent,
.rn-product-edit-page[data-product-type="inflatable"] .rn-for-inflatable,
.rn-product-edit-page[data-product-type="standard_item"] .rn-for-standard { display: grid; }
.rn-product-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .9fr);
  gap: var(--product-gap);
}
.rn-product-description-card,
.rn-product-price-card { min-height: 330px; }
.rn-hidden-label,
.rn-hidden-form { display: none; }
.rn-product-media-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.rn-product-media-strip img,
.rn-product-image-empty,
.rn-product-media-large img,
.rn-product-media-large div {
  width: 100%;
  min-height: 135px;
  border-radius: 8px;
  border: 1px solid #d8e2ec;
  object-fit: cover;
  background: linear-gradient(135deg, #e8f0ff, #f8fbff);
}
.rn-product-image-empty,
.rn-product-media-large div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b6fff;
  font-size: 30px;
  font-weight: 900;
}
.rn-product-upload-ghost {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 135px;
  padding: 14px;
  border: 1px dashed #abc0d9;
  border-radius: 8px;
  color: #52657a;
  text-align: center;
}
.rn-product-upload-ghost strong { color: #0b6fff; font-size: 13px; }
.rn-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 6px;
  border: 1px solid var(--admin-line-strong, #cfdae7);
  border-radius: 8px;
  overflow: hidden;
  background: var(--admin-input-bg, #fff);
}
.rn-money-input input {
  margin: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
}
.rn-money-input span,
.rn-money-input em {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--admin-muted, #52657a);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.rn-money-input span {
  padding-left: 11px;
  padding-right: 4px;
}
.rn-money-input em {
  padding-left: 4px;
  padding-right: 11px;
}
.rn-product-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: #1c2f49;
  font-size: 13px;
  font-weight: 800;
}
.toggle { position: relative; display: inline-flex; width: 38px; height: 22px; flex: 0 0 auto; }
.toggle input { position: absolute; opacity: 0; inset: 0; }
.toggle span { width: 100%; height: 100%; border-radius: 999px; background: #cfd8e3; box-shadow: inset 0 0 0 1px rgba(2, 6, 23, .08); }
.toggle span:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
  transition: transform .16s ease;
}
.toggle input:checked + span { background: #16a34a; }
.toggle input:checked + span:before { transform: translateX(16px); }
.rn-product-rail { grid-template-columns: 1fr; }
.rn-product-status-card,
.rn-product-mini-card { min-height: 118px; }
.rn-product-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.rn-product-status-card h3 { grid-column: 1 / -1; margin-bottom: 0; }
.rn-product-status-line { display: flex; gap: 13px; align-items: center; }
.rn-product-status-line strong,
.rn-product-stat-line strong { display: block; color: #16a34a; font-size: 18px; line-height: 1.1; }
.rn-product-status-line small { display: block; margin-top: 3px; }
.rn-status-check {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8f6ef;
  color: #16a34a;
  font-weight: 900;
}
.rn-product-stat-line { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.rn-product-stat-line span { color: #52657a; font-size: 13px; font-weight: 800; }
.rn-product-mini-card .btn,
.rn-product-publish-card .btn { margin-top: 12px; }
.rn-product-component-list { display: grid; gap: 10px; }
.rn-product-component-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5edf5;
}
.rn-product-component-list p { margin: 0; }
.rn-product-component-list strong { display: block; color: #102038; font-size: 13px; }
.rn-product-component-list b { min-width: 28px; padding: 5px 8px; border-radius: 7px; background: #eef2f7; text-align: center; font-size: 12px; }
.rn-doc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.rn-doc-actions form { margin: 0; }
.btn-link {
  border: 0;
  background: transparent;
  color: #1f4fbf;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.rn-product-thumb {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2ec;
  border-radius: 7px;
  background: #f4f7fb;
  color: #0b6fff;
  font-weight: 900;
}
.rn-product-publish-card { min-height: 178px; }
.rn-checkline { display: flex !important; gap: 8px; align-items: center; }
.rn-checkline input { width: auto; min-height: auto; margin: 0; }
.rn-product-edit-page .rn-checkline input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 23px;
  min-height: 23px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}
.rn-product-edit-page .rn-checkline input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
  transition: transform .16s ease;
}
.rn-product-edit-page .rn-checkline input[type="checkbox"]:checked {
  background: #16a34a;
}
.rn-product-edit-page .rn-checkline input[type="checkbox"]:checked::before {
  transform: translateX(17px);
}
.rn-product-edit-page .rn-checkline input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--admin-accent, #2563eb);
  outline-offset: 2px;
}
.rn-pricing-workbench {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}
.rn-tier-price-preview {
  align-self: start;
}
.rn-tier-price-preview .rn-product-card-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
}
.rn-tier-price-preview .rn-product-card-head h3 {
  margin-bottom: 3px;
}
.rn-tier-price-preview .rn-product-card-head > strong {
  display: block;
  color: #102038;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
}
.rn-tier-preview-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.rn-tier-preview-controls label {
  display: grid;
  gap: 5px;
  color: #102038;
  font-size: 12px;
  font-weight: 900;
}
.rn-tier-preview-result {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}
.rn-tier-preview-result > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border: 1px solid #e6edf5;
  border-width: 0 0 1px;
  border-radius: 8px;
  background: transparent;
}
.rn-tier-preview-result span {
  display: block;
  color: #61738a;
  font-size: 11px;
  font-weight: 900;
}
.rn-tier-preview-result strong {
  display: block;
  margin-top: 0;
  overflow: hidden;
  color: #102038;
  font-size: 13px;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rn-readonly-field {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fbff;
  color: #102038;
  font-weight: 900;
}
.rn-tier-metric-icon,
.rn-tier-type-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}
.rn-tier-metric-icon { grid-row: 1 / span 3; }
.rn-tier-metric-icon.green { background: #16a34a; }
.rn-tier-metric-icon.blue { background: #2563eb; }
.rn-tier-metric-icon.violet { background: #7c3aed; }
.rn-tier-metric-icon.orange { background: #f97316; }
.rn-pricing-tier-area,
.rn-pricing-sidebar,
.rn-tier-edit-sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}
.rn-tier-edit-page .rn-product-toolbar h1 {
  font-size: 21px;
}
.rn-tier-edit-page .rn-product-title-row h2 {
  font-size: 18px;
}
.rn-tier-edit-page .rn-product-title-row span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 750;
}
.rn-tier-edit-page .rn-product-tabs a {
  font-size: 13px;
}
.rn-tier-edit-page .rn-product-card {
  padding: 14px 16px;
}
.rn-tier-edit-page .rn-product-card h3 {
  font-size: 15px;
}
.rn-tier-edit-page .rn-product-form label,
.rn-tier-edit-page .rn-edit-form-grid label {
  font-size: 13px;
  line-height: 1.45;
}
.rn-tier-edit-page input,
.rn-tier-edit-page select,
.rn-tier-edit-page textarea,
.rn-tier-edit-page .rn-readonly-field {
  font-size: 14px;
  line-height: 1.4;
}
.rn-tier-disable-card {
  border-color: #dbe5ef;
  background: #fbfdff;
}
.rn-tier-disable-card p {
  margin: 0 0 12px;
  color: #52657a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.rn-admin-theme .rn-product-tabs {
  border-color: var(--admin-line);
}
.rn-admin-theme .rn-product-tabs a {
  color: var(--admin-ink);
}
.rn-admin-theme .rn-product-tabs a.active {
  color: var(--admin-accent);
  border-bottom-color: var(--admin-accent);
}
.rn-admin-theme .rn-breadcrumb,
.rn-admin-theme .rn-product-title-row span,
.rn-admin-theme .rn-pricing-action-row > span,
.rn-admin-theme .rn-tier-helper,
.rn-admin-theme .rn-tier-preview-controls label,
.rn-admin-theme .rn-tier-preview-result span,
.rn-admin-theme .rn-tier-card dt,
.rn-admin-theme .rn-tier-disable-card p,
.rn-admin-theme .rn-money-inline > span,
.rn-admin-theme .rn-base-rate-row div span,
.rn-admin-theme .rn-duration-additional-day div span,
.rn-admin-theme .rn-adjustment-rule-head,
.rn-admin-theme .rn-adjustment-rule-row label > span:first-child {
  color: var(--admin-muted);
}
.rn-admin-theme .rn-tier-price-preview .rn-product-card-head > strong,
.rn-admin-theme .rn-tier-preview-result strong,
.rn-admin-theme .rn-readonly-field,
.rn-admin-theme .rn-tier-card header strong,
.rn-admin-theme .rn-tier-card dd,
.rn-admin-theme .rn-base-rate-row strong,
.rn-admin-theme .rn-duration-additional-day strong,
.rn-admin-theme .rn-pricing-preview-lines span,
.rn-admin-theme .rn-pricing-preview-lines strong {
  color: var(--admin-ink-strong);
}
.rn-admin-theme .rn-readonly-field,
.rn-admin-theme .rn-tier-card,
.rn-admin-theme .rn-base-rate-row,
.rn-admin-theme .rn-duration-additional-day,
.rn-admin-theme .rn-adjustment-rule-row,
.rn-admin-theme .rn-tier-preview-result > div {
  border-color: var(--admin-line);
  background: var(--admin-surface-soft);
}
.rn-admin-theme .rn-base-rate-row-active,
.rn-admin-theme .rn-tier-card-default {
  border-color: color-mix(in srgb, var(--admin-accent) 45%, var(--admin-line));
  background: color-mix(in srgb, var(--admin-accent-soft) 68%, var(--admin-surface));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--admin-accent) 12%, transparent);
}
.rn-admin-theme .rn-tier-metric-icon,
.rn-admin-theme .rn-tier-type-icon {
  background: var(--admin-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--admin-accent) 25%, transparent);
}
.rn-admin-theme .rn-tier-card footer {
  border-color: var(--admin-line);
}
.rn-admin-theme .rn-tier-card footer a,
.rn-admin-theme .rn-tier-card footer .btn-link,
.rn-admin-theme .btn-link {
  color: var(--admin-accent);
}
.rn-admin-theme .rn-tier-card footer .danger,
.rn-admin-theme .btn-link.danger {
  color: var(--red);
}
.rn-admin-theme .rn-pricing-action-row select {
  border-color: var(--admin-line);
  background: var(--admin-input-bg);
  color: var(--admin-ink);
}
.rn-admin-theme .rn-info-note {
  border-color: var(--admin-line);
  background: var(--admin-surface-soft);
  color: var(--admin-muted);
}
.rn-pricing-action-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.rn-pricing-action-row > span {
  color: #52657a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.rn-pricing-action-row select {
  min-height: 40px;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #fff;
  color: #102038;
  font-weight: 850;
}
.rn-upgrade-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}
.rn-upgrade-callout strong { color: #9a3412; }
.rn-upgrade-callout span { color: #7c2d12; font-weight: 750; }
.rn-upgrade-callout .btn { grid-row: 1 / span 2; grid-column: 2; }
.rn-tier-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rn-tier-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 27, 58, 0.05);
}
.rn-tier-card header {
  display: grid;
  grid-template-columns: 14px 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.rn-tier-card header strong { color: #102038; font-size: 15px; line-height: 1.3; }
.rn-tier-card header span { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rn-drag-handle { color: #8aa0b8; font-weight: 950; letter-spacing: -2px; cursor: grab; }
.rn-tier-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.rn-tier-card dt { color: #52657a; font-weight: 750; }
.rn-tier-card dd { margin: 0; color: #102038; font-weight: 750; text-align: right; }
.rn-tier-card footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}
.rn-tier-card footer form { margin: 0; }
.rn-tier-card footer a,
.rn-tier-card footer .btn-link {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}
.rn-tier-card footer .danger { color: #dc2626; }
.rn-tier-helper {
  margin: 0;
  color: #52657a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.rn-pricing-side-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: #52657a;
  font-size: 13px;
  font-weight: 800;
}
.rn-pricing-side-row strong { color: #102038; text-align: right; }
.rn-overview-default-price-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
}
.rn-overview-default-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .8fr);
  gap: 10px;
  align-items: center;
}

/* Rental item overview production layout */
.rn-product-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.rn-overview-top-grid,
.rn-overview-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  gap: 14px;
}
.rn-overview-card {
  border-color: var(--admin-line, #dbe5ef);
  background: var(--admin-surface, #fff);
  box-shadow: 0 12px 28px rgba(11, 27, 58, .045);
}
.rn-overview-card h3,
.rn-overview-rail h3 {
  color: var(--admin-ink-strong, #102038);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}
.rn-product-overview-grid .rn-product-main,
.rn-product-overview-grid .rn-product-form,
.rn-overview-rail {
  display: grid;
  gap: 14px;
}
.rn-edit-form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rn-span-all { grid-column: 1 / -1; }
.rn-span-two { grid-column: span 2; }
.rn-basic-info-grid {
  align-items: start;
}
.rn-basic-info-grid > label,
.rn-basic-info-grid > .rn-category-field {
  min-width: 0;
}
.rn-overview-basic textarea {
  min-height: 70px;
}
.rn-sku-input.rn-sku-autogenerated {
  color: var(--admin-muted, #7b8da3);
}
.rn-sku-input.rn-sku-custom {
  color: var(--admin-ink-strong, #102038);
}
.rn-field-status {
  display: block;
  margin-top: 5px;
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.rn-field-status.ok {
  color: var(--green, #16a34a);
}
.rn-field-status.warn {
  color: var(--red, #dc2626);
}
.rn-category-field {
  position: relative;
}
.rn-category-field > label {
  margin: 0;
}
.rn-category-menu {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface, #fff);
  box-shadow: none;
}
.rn-category-search {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--admin-line-strong, #cbd8e6);
  border-radius: 0;
  background: var(--admin-input-bg, #fff);
  color: var(--admin-muted, #52657a);
  font-weight: 500;
}
.rn-category-search-icon {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.rn-category-search-icon::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--admin-ink, #24364f);
  border-radius: 999px;
  left: 0;
  top: 0;
}
.rn-category-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--admin-ink, #24364f);
  left: 9px;
  top: 10px;
  transform: rotate(45deg);
  transform-origin: left center;
}
.rn-category-search input[type="search"] {
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.rn-category-add {
  justify-self: start;
  padding: 0;
  border-radius: 0;
  color: var(--admin-primary, #2563eb);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}
.rn-category-add:hover {
  background: transparent;
  color: var(--admin-primary-strong, #1d4ed8);
}
.rn-category-options {
  display: grid;
  max-height: 190px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.rn-category-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 2px 2px;
  border-radius: 5px;
  color: var(--admin-ink, #24364f);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.rn-category-options label:hover {
  background: var(--admin-soft, #f4f7fb);
}
.rn-category-options label.is-child {
  padding-left: 18px;
}
.rn-category-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--admin-primary, #2563eb);
}
.rn-category-options span {
  min-width: 0;
}
.rn-category-selected {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.rn-category-selected[hidden] {
  display: none;
}
.rn-category-selected > strong {
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 650;
}
.rn-category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  margin-top: 7px;
}
.rn-category-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--admin-soft, #eef4ff);
  color: var(--admin-ink, #24364f);
  font-size: 12px;
  font-weight: 650;
}
.rn-category-chip-list .muted {
  background: #eef2f7;
  color: var(--admin-muted, #52657a);
}
.rn-category-helper {
  max-width: 520px;
}
.rn-component-picker {
  display: grid;
  gap: 6px;
}
.rn-component-picker > label {
  margin: 0;
}
.rn-component-search-box {
  position: relative;
}
.rn-component-results {
  position: absolute;
  z-index: 20;
  display: grid;
  width: 100%;
  max-height: 260px;
  margin-top: 6px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface, #fff);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  scrollbar-width: thin;
}
.rn-component-results[hidden] {
  display: none;
}
.rn-component-results button {
  display: grid;
  grid-template-columns: minmax(74px, .35fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--admin-ink, #24364f);
  text-align: left;
  cursor: pointer;
}
.rn-component-results button:hover,
.rn-component-results button.is-active {
  background: var(--admin-soft, #eef4ff);
}
.rn-component-results strong {
  color: var(--admin-ink-strong, #102038);
  font-size: 12px;
  font-weight: 700;
}
.rn-component-results span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.rn-character-count {
  display: block;
  margin-top: 6px;
  text-align: right;
}
.rn-rich-editor-textarea {
  min-height: 240px;
  resize: vertical;
}
.rn-website-description-block .tox.tox-tinymce,
.rn-rich-editor-field .tox.tox-tinymce {
  border-color: var(--admin-line-strong, #cfdae7);
  border-radius: 8px;
  box-shadow: none;
}
.rn-website-description-block .tox .tox-toolbar__primary,
.rn-rich-editor-field .tox .tox-toolbar__primary {
  background: var(--admin-surface-soft, #f8fafc);
}
.rn-overview-media .rn-product-card-head {
  margin-bottom: 12px;
}
.rn-overview-media-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, .95fr)) minmax(150px, 1fr);
  gap: 10px;
  align-items: stretch;
}
.rn-overview-media-main,
.rn-overview-media-thumb,
.rn-overview-summary-top > img,
.rn-overview-summary-top > div:first-child {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--admin-line, #dbe5ef);
  background: var(--admin-surface-soft, #f4f7fb);
}
.rn-overview-media-main { min-height: 156px; }
.rn-overview-media-thumb { min-height: 118px; }
.rn-overview-media-main img,
.rn-overview-media-thumb img,
.rn-overview-summary-top img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.rn-overview-media-main > div,
.rn-overview-media-thumb > div,
.rn-overview-summary-top > div:first-child {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  color: var(--admin-accent, #2563eb);
  font-size: 24px;
  font-weight: 760;
}
.rn-overview-media-main > span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--admin-accent, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}
.rn-overview-media .rn-product-upload-ghost {
  min-height: 118px;
  margin: 0;
}
.rn-overview-summary-card,
.rn-overview-stats-card,
.rn-overview-components-card {
  padding: 16px;
}
.rn-overview-component-list {
  display: grid;
  gap: 8px;
}
.rn-overview-component-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--admin-line, #e2e8f0);
}
.rn-overview-component-list > div:last-child {
  border-bottom: 0;
}
.rn-overview-component-list span,
.rn-overview-component-list strong {
  color: var(--admin-ink-strong, #102038);
  font-size: 13px;
  font-weight: 700;
}
.rn-overview-component-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rn-overview-component-list strong {
  text-align: right;
  white-space: nowrap;
}
.rn-overview-component-list small {
  grid-column: 1 / -1;
  color: var(--admin-muted, #61738a);
  font-size: 12px;
  font-weight: 600;
}
.rn-overview-component-list .muted {
  margin: 0;
  color: var(--admin-muted, #61738a);
  font-size: 13px;
  font-weight: 600;
}
.rn-website-settings-list {
  display: grid;
  gap: 12px;
}
.rn-website-description-block {
  display: grid;
  gap: 7px;
}
.rn-website-description-block > strong {
  color: var(--admin-ink-strong, #102038);
  font-size: 13px;
  font-weight: 700;
}
.rn-website-description-block .rn-character-count {
  margin-top: 0;
}
.rn-website-settings-inline {
  margin-top: 12px;
}
.rn-setting-toggle {
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #f8fafc);
}
.rn-setting-toggle.rn-checkline,
.rn-setting-toggle .rn-checkline {
  gap: 12px;
}
.rn-setting-toggle.rn-checkline > input[type="checkbox"],
.rn-setting-toggle .rn-checkline > input[type="checkbox"] {
  margin-top: 2px;
}
.rn-setting-toggle strong {
  display: block;
  color: var(--admin-ink-strong, #102038);
  font-size: 13px;
  font-weight: 700;
}
.rn-setting-toggle small {
  display: block;
  margin-top: 3px;
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.rn-inline-help,
.rn-tooltip {
  position: relative;
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: #eaf1fb;
  color: var(--admin-muted, #52657a);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}
.rn-tooltip:before,
.rn-tooltip:after {
  position: absolute;
  left: 50%;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .14s ease, transform .14s ease;
}
.rn-tooltip:before {
  content: attr(data-tooltip);
  bottom: calc(100% + 9px);
  width: min(280px, 72vw);
  padding: 9px 10px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-ink-strong, #102038);
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 32, 56, .18);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  text-align: left;
}
.rn-tooltip:after {
  content: "";
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  background: var(--admin-ink-strong, #102038);
  transform: translate(-50%, 6px) rotate(45deg);
}
.rn-tooltip:hover:before,
.rn-tooltip:hover:after,
.rn-tooltip:focus:before,
.rn-tooltip:focus:after,
.rn-tooltip:focus-visible:before,
.rn-tooltip:focus-visible:after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.rn-tooltip:hover:after,
.rn-tooltip:focus:after,
.rn-tooltip:focus-visible:after {
  transform: translate(-50%, 0) rotate(45deg);
}
.rn-tooltip:focus-visible {
  outline: 2px solid var(--admin-accent, #2563eb);
  outline-offset: 2px;
}
.rn-quantity-limit-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}
.rn-quantity-limit-toggle .rn-checkline {
  padding: 0;
  border: 0;
  background: transparent;
}
.rn-website-quantity-limit {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 650;
}
.rn-website-quantity-limit.is-disabled {
  opacity: .58;
}
.rn-pricing-jump-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #f8fafc);
}
.rn-pricing-jump-box span,
.rn-pricing-jump-box small {
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 600;
}
.rn-pricing-jump-box strong {
  color: var(--admin-ink-strong, #102038);
  font-size: 18px;
  font-weight: 740;
}
.rn-pricing-jump-box .btn {
  justify-self: start;
  margin-top: 3px;
}
.rn-override-field {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, .85fr);
  grid-column: span 2;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #f8fafc);
}
.rn-override-field .rn-checkline {
  gap: 10px;
  color: var(--admin-ink-strong, #102038);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.rn-override-field input[type="number"] {
  width: 100%;
  margin-top: 0;
  background: var(--admin-input-bg, #fff);
}
.rn-override-field input[type="number"]:disabled {
  background: color-mix(in srgb, var(--admin-input-bg, #fff) 72%, var(--admin-surface-soft, #f8fafc));
  color: var(--admin-muted, #8a9aad);
  opacity: 1;
}
.rn-setup-requirement-field {
  min-width: 0;
  grid-column: span 2;
}
.rn-setup-requirement-field select,
select[data-rn-setup-requirement] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-right: 34px;
  white-space: normal;
  text-overflow: ellipsis;
}
.rn-optional-setup-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--admin-line, #dbe5ef);
  border-radius: 8px;
  background: var(--admin-surface-soft, #f8fafc);
}
.rn-optional-setup-panel[hidden] {
  display: none !important;
}
.rn-optional-setup-panel .rn-checkline {
  align-items: flex-start;
}
.rn-optional-setup-panel .rn-checkline small {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  background: #eaf1fb;
  color: #52657a;
  font-size: 11px;
  font-weight: 800;
  cursor: help;
}
.rn-overview-summary-top {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.rn-overview-summary-top > img,
.rn-overview-summary-top > div:first-child {
  height: 112px;
}
.rn-overview-summary-top small,
.rn-overview-summary-top span {
  display: block;
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 620;
}
.rn-overview-summary-top small { margin: 8px 0 12px; }
.rn-overview-summary-top strong {
  display: block;
  margin-top: 3px;
  color: var(--admin-ink-strong, #102038);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.05;
}
.rn-overview-summary-top strong em {
  font-size: 14px;
  font-style: normal;
  font-weight: 620;
}
.rn-overview-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}
.rn-overview-summary-stats > div + div {
  border-left: 1px solid var(--admin-line, #e2e8f0);
  padding-left: 12px;
}
.rn-overview-summary-stats span,
.rn-overview-stat-grid span {
  display: block;
  color: var(--admin-muted, #52657a);
  font-size: 12px;
  font-weight: 620;
}
.rn-overview-summary-stats strong,
.rn-overview-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--admin-ink-strong, #102038);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.1;
}
.rn-overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.rn-overview-stat-grid > div {
  min-height: 92px;
  padding: 12px;
  border-top: 1px solid var(--admin-line, #e2e8f0);
}
.rn-overview-stat-grid > div:nth-child(odd) {
  border-right: 1px solid var(--admin-line, #e2e8f0);
}
.rn-overview-stat-grid small {
  display: block;
  margin-top: 5px;
}
.rn-tier-card-default {
  border-color: rgba(37, 99, 235, .38);
  background: #f8fbff;
}
.rn-tier-card-default .rn-drag-handle {
  cursor: default;
  opacity: .45;
}
.rn-pricing-preview-lines {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.rn-pricing-preview-lines > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}
.rn-pricing-preview-lines span { color: #102038; font-weight: 900; }
.rn-pricing-preview-lines strong { color: #102038; font-weight: 950; }
.rn-pricing-preview-lines small { grid-column: 1 / -1; color: #16a34a; font-weight: 800; }
.rn-tier-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.rn-tier-edit-form {
  display: grid;
  gap: 16px;
}
.rn-base-rate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rn-base-rate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fbfdff;
}
.rn-base-rate-row-active {
  border-color: rgba(37, 99, 235, .38);
  background: #f4f8ff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .08);
}
.rn-base-rate-row strong {
  display: block;
  color: #102038;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}
.rn-base-rate-row div span {
  display: block;
  margin-top: 3px;
  color: #61738a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.rn-base-rate-row > label:not(.toggle) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #52657a;
  font-size: 14px;
  font-weight: 800;
}
.rn-base-rate-row input[type="number"] {
  margin: 0;
  min-height: 40px;
}
.rn-base-rate-row input[type="number"]:disabled {
  opacity: .55;
  background: #eef3f8;
}
.rn-duration-rate-panel {
  display: grid;
  gap: 12px;
}
.rn-duration-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.rn-duration-rate-grid label {
  min-width: 0;
}
.rn-money-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.rn-money-inline > span {
  color: #52657a;
  font-size: 13px;
  font-weight: 900;
}
.rn-duration-additional-day {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fbfdff;
}
.rn-duration-additional-day strong {
  display: block;
  color: #102038;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}
.rn-duration-additional-day div span {
  display: block;
  margin-top: 3px;
  color: #61738a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.rn-adjustment-rule-editor {
  display: grid;
  gap: 12px;
}
.rn-adjustment-rule-head,
.rn-adjustment-rule-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(170px, 1fr) minmax(130px, .7fr) minmax(90px, .5fr) minmax(90px, .5fr) auto;
  gap: 10px;
  align-items: end;
}
.rn-adjustment-rule-head-day,
.rn-adjustment-rule-row-day {
  grid-template-columns: minmax(140px, 1fr) minmax(170px, 1fr) minmax(130px, .7fr) auto;
}
.rn-adjustment-rule-head {
  padding: 0 10px;
  color: #61738a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.rn-adjustment-rule-list {
  display: grid;
  gap: 10px;
}
.rn-adjustment-rule-row {
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fbfdff;
}
.rn-adjustment-rule-row label {
  display: grid;
  gap: 5px;
  margin: 0;
}
.rn-adjustment-rule-row label > span:first-child {
  color: #61738a;
  font-size: 12px;
  font-weight: 800;
}
.rn-tier-edit-page [hidden] {
  display: none !important;
}
.rn-tier-edit-page .rn-product-tabs {
  margin-bottom: 18px;
}
.rn-info-note {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fbff;
  color: #52657a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.rn-currency-input {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  margin-top: 6px;
  border: 1px solid #cfdae7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.rn-currency-input span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e3ebf3;
  color: #52657a;
  font-weight: 900;
}
.rn-currency-input input {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.rn-currency-input input[readonly] {
  color: #7a8797;
  background: #f6f8fb;
}
.rn-daily-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.rn-daily-toggle-row {
  min-height: 40px;
  padding: 0;
}
.rn-pricing-calculator {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6edf5;
}
.rn-pricing-calculator label {
  display: grid;
  gap: 6px;
  color: #53657a;
  font-size: 12px;
  font-weight: 900;
}
.rn-pricing-calculator label span {
  display: grid;
  grid-template-columns: 86px auto;
  align-items: center;
  gap: 8px;
}
.rn-pricing-calculator input {
  width: 86px;
  min-height: 40px;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  padding: 8px 10px;
}
.rn-pricing-calculator em {
  color: #64748b;
  font-style: normal;
  font-weight: 900;
}
.rn-pricing-method-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}
.rn-pricing-method-strip button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #30445d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.rn-pricing-method-strip button:hover {
  border-color: #b7c8da;
  background: #fff;
}
.rn-pricing-method-strip button.active {
  border-color: #9bc7ff;
  background: #eef6ff;
  color: #0b6fff;
}
[data-rn-pricing-panel][hidden] { display: none !important; }
.rn-product-media-large { display: grid; margin-bottom: 14px; }
.rn-product-media-large img,
.rn-product-media-large div { aspect-ratio: 16 / 8.25; min-height: 260px; }
.rn-options-workbench { align-items: stretch; }
.rn-option-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rn-option-summary-grid span {
  display: grid;
  gap: 3px;
  min-height: 70px;
  padding: 13px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-option-summary-grid strong { color: #102038; font-size: 24px; line-height: 1; }
.rn-option-summary-grid small { color: #61738a; font-weight: 800; }
.rn-option-workbench-list {
  display: grid;
  gap: 14px;
}
.rn-option-workbench-card {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e5edf5;
}
.rn-option-workbench-card:first-child { padding-top: 0; border-top: 0; }
.rn-option-workbench-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.rn-option-workbench-card h4 { margin: 0 0 4px; color: #102038; font-size: 15px; }
.rn-option-workbench-card p { margin: 0; color: #61738a; font-size: 13px; }
.rn-option-meta-row,
.rn-option-link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rn-option-meta-row span,
.rn-option-link-chips em {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eef4fb;
  color: #30445d;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.rn-option-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rn-option-choice-card {
  display: grid;
  gap: 6px;
  min-height: 142px;
  padding: 10px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}
.rn-option-choice-card img,
.rn-option-choice-card > span {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 62px;
  border-radius: 7px;
  border: 1px solid #d8e2ec;
  object-fit: cover;
  background: #f4f7fb;
}
.rn-option-choice-card > span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b6fff;
  font-weight: 900;
}
.rn-option-choice-card strong { color: #102038; font-size: 13px; }
.rn-option-choice-card small { display: block; line-height: 1.35; }
.rn-option-choice-card.muted-choice { border-style: dashed; background: #f8fafc; }
.rn-option-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rn-option-impact-grid > div {
  display: grid;
  gap: 6px;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fbff;
}
.rn-option-impact-grid strong { color: #102038; font-size: 13px; }
.rn-option-impact-grid small { color: #61738a; font-weight: 800; }
.rn-option-impact-grid span {
  display: block;
  padding-top: 6px;
  border-top: 1px solid #e5edf5;
  color: #30445d;
  font-size: 12px;
  font-weight: 750;
}

/* System typography pass: Aptos reads lighter than Inter, so keep UI weights restrained and consistent. */
.with-shell h1,
.with-shell h2,
.with-shell h3 {
  font-weight: 650;
}
.with-shell label,
.with-shell .btn,
.with-shell .btn-link,
.with-shell .sidebar-nav a,
.with-shell .rn-product-tabs a,
.with-shell .rn-product-card small,
.with-shell .rn-product-card-head span,
.with-shell .rn-pricing-action-row > span,
.with-shell .rn-tier-helper,
.with-shell .rn-info-note,
.with-shell .rn-tier-disable-card p {
  font-weight: 550;
}
.with-shell input,
.with-shell select,
.with-shell textarea,
.with-shell .rn-readonly-field {
  font-weight: 500;
}
.with-shell strong,
.with-shell b,
.with-shell .rn-tier-card header strong,
.with-shell .rn-tier-card dd,
.with-shell .rn-tier-preview-result strong,
.with-shell .rn-base-rate-row strong,
.with-shell .rn-duration-additional-day strong,
.with-shell .rn-pricing-preview-lines strong,
.with-shell .rn-product-stat-line strong {
  font-weight: 650;
}
.with-shell .rn-tier-card dt,
.with-shell .rn-base-rate-row div span,
.with-shell .rn-duration-additional-day div span,
.with-shell .rn-adjustment-rule-head,
.with-shell .rn-adjustment-rule-row label > span:first-child,
.with-shell .rn-money-inline > span {
  font-weight: 550;
}
.with-shell .rn-tier-type-icon,
.with-shell .rn-tier-metric-icon,
.with-shell .rn-drag-handle {
  font-weight: 650;
}

@media (max-width: 1420px) {
  .rn-product-edit-grid { grid-template-columns: minmax(680px, 1fr) 340px; }
  .rn-product-overview-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .rn-overview-media-grid { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(120px, 1fr)); }
  .rn-product-media-strip { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .rn-product-edit-grid,
  .rn-product-overview-grid,
  .rn-product-lower-grid { grid-template-columns: 1fr; }
  .rn-product-rail,
  .rn-overview-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rn-overview-top-grid,
  .rn-overview-settings-grid { grid-template-columns: 1fr; }
  .rn-logistics-toggle-grid.five,
  .rn-logistics-fields.three,
  .rn-logistics-packing-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rn-product-toolbar { display: grid; }
  .rn-product-summary-lockup {
    align-items: flex-start;
  }
  .rn-product-actions { justify-content: flex-start; }
  .rn-product-tabs { gap: 18px; overflow-x: auto; }
  .rn-edit-form-grid.two,
  .rn-edit-form-grid.three,
  .rn-edit-form-grid.four,
  .rn-product-rail,
  .rn-overview-rail,
  .rn-overview-media-grid,
  .rn-option-summary-grid,
  .rn-option-choice-grid,
  .rn-pricing-method-strip,
  .rn-tier-preview-controls,
  .rn-tier-preview-result,
  .rn-base-rate-list,
  .rn-duration-rate-grid,
  .rn-duration-additional-day,
  .rn-adjustment-rule-head,
  .rn-adjustment-rule-row,
  .rn-tier-card-grid,
  .rn-pricing-action-row,
  .rn-tier-edit-grid,
  .rn-option-impact-grid { grid-template-columns: 1fr; }
  .rn-logistics-intro-card,
  .rn-logistics-toggle-grid,
  .rn-logistics-toggle-grid.five,
  .rn-logistics-fields.two,
  .rn-logistics-fields.three,
  .rn-logistics-component-add-row { grid-template-columns: 1fr; }
  .rn-logistics-intro-card {
    display: grid;
  }
  .rn-product-tab-grid { grid-template-columns: 1fr; }
  .rn-product-tab-grid > * { grid-column: 1 / -1 !important; }
  .rn-override-field {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .rn-span-two { grid-column: auto; }
}

@media (max-width: 640px) {
  .rn-product-edit-page {
    padding: 12px;
  }
  .rn-product-toolbar {
    position: static;
    padding: 13px;
  }
  .rn-product-toolbar h1,
  .rn-tier-edit-page .rn-product-toolbar h1 {
    font-size: 19px;
  }
  .rn-product-summary-lockup {
    display: grid;
  }
  .rn-product-summary-thumb {
    width: 100%;
    height: 150px;
  }
  .rn-product-summary-meta {
    display: grid;
  }
  .rn-product-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .rn-product-title-row h2,
  .rn-tier-edit-page .rn-product-title-row h2 {
    font-size: 16px;
  }
  .rn-product-title-row span {
    width: 100%;
    min-height: auto;
    line-height: 1.35;
  }
  .rn-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .rn-product-actions .btn,
  .rn-product-actions button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .rn-product-actions .btn-primary {
    grid-column: 1 / -1;
  }
  .rn-product-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 12px;
    gap: 20px;
    scrollbar-width: thin;
  }
  .rn-product-card,
  .rn-tier-edit-page .rn-product-card {
    padding: 13px;
  }
  .rn-overview-summary-top,
  .rn-overview-summary-stats,
  .rn-overview-stat-grid {
    grid-template-columns: 1fr;
  }
  .rn-quantity-limit-toggle {
    grid-template-columns: 1fr;
  }
  .rn-optional-setup-panel {
    grid-template-columns: 1fr;
  }
  .rn-overview-summary-top > img,
  .rn-overview-summary-top > div:first-child {
    height: 160px;
  }
  .rn-overview-summary-stats > div + div,
  .rn-overview-stat-grid > div:nth-child(odd) {
    border-left: 0;
    border-right: 0;
    padding-left: 0;
  }
  .rn-overview-stat-grid > div {
    padding-left: 0;
    padding-right: 0;
  }
  .rn-pricing-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .rn-pricing-action-row .btn,
  .rn-pricing-action-row form,
  .rn-pricing-action-row .rn-inline-form {
    width: 100%;
  }
  .rn-tier-card {
    padding: 12px;
  }
  .rn-tier-card header {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }
  .rn-tier-card header .rn-drag-handle {
    display: none;
  }
  .rn-tier-type-icon {
    width: 32px;
    height: 32px;
  }
  .rn-tier-card dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .rn-tier-card dd {
    text-align: left;
  }
  .rn-tier-card footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .rn-tier-card footer a,
  .rn-tier-card footer .btn-link {
    justify-content: center;
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--admin-line, #dbe5ef);
    border-radius: 8px;
    text-decoration: none;
  }
  .rn-tier-preview-controls {
    grid-template-columns: 1fr 1fr;
  }
  .rn-tier-preview-result > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .rn-tier-preview-result strong {
    text-align: left;
  }
  .rn-base-rate-row,
  .rn-duration-additional-day {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .rn-base-rate-row > label:not(.toggle),
  .rn-duration-additional-day .rn-money-inline {
    grid-column: 1 / -1;
  }
  .rn-adjustment-rule-row,
  .rn-adjustment-rule-row-day {
    grid-template-columns: 1fr;
  }
  .rn-adjustment-rule-head,
  .rn-adjustment-rule-head-day {
    display: none;
  }
  .rn-theme-settings-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .rn-detail-hero {
    grid-template-columns: 1fr 1fr;
  }
  .rn-detail-hero .rn-compatible-card {
    grid-column: 1 / -1;
  }
  .rn-card-grid > .rn-panel {
    grid-column: span 2;
  }
  .rn-card-grid > .rn-panel:nth-child(3),
  .rn-card-grid > .rn-panel:nth-child(4),
  .rn-card-grid > .rn-panel:nth-child(8) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .rn-storefront-nav {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }
  .rn-storefront-shell,
  .rn-public-shell {
    width: min(100% - 24px, 720px);
  }
  .rn-storefront-hero,
  .rn-public-page-head,
  .rn-invoice-hero,
  .rn-public-intake-band,
  .rn-public-detail-layout,
  .rn-public-grid,
  .rn-public-cart-layout {
    grid-template-columns: 1fr;
  }
  .rn-public-product-grid,
  .rn-public-product-grid-wide {
    grid-template-columns: 1fr;
  }
  .rn-span-4,
  .rn-span-6,
  .rn-span-8 {
    grid-column: auto;
  }
  .rn-public-cart-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rn-public-cart-row input[type="number"],
  .rn-public-cart-row img,
  .rn-public-cart-row .rn-public-product-placeholder {
    grid-column: 2;
  }
  .rn-public-price-note,
  .rn-public-setup-option,
  .rn-public-product-options {
    margin-left: 0;
  }
  .rn-detail-rail,
  .rn-detail-hero,
  .rn-detail-metrics,
  .rn-card-grid,
  .detail-metrics,
  .availability-box {
    grid-template-columns: 1fr;
  }
  .rn-card-grid > .rn-panel,
  .rn-detail-hero .rn-compatible-card {
    grid-column: auto;
  }
}

/* Final option workspace overrides, kept late so legacy option form styles do not win. */
.rn-option-groups-page .rn-option-inline-builder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.rn-option-groups-page .rn-option-inline-builder label {
  min-width: 0;
  flex: initial;
}
.rn-option-groups-page .rn-option-inline-builder .rn-toggle-row {
  flex: initial;
}
.rn-option-groups-page .rn-option-setup-form {
  display: grid;
}
.rn-option-groups-page .rn-option-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rn-option-group-setup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.rn-option-setup-column {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfdff;
}
.rn-option-setup-column h4,
.rn-option-internal-settings h4 {
  margin: 0;
  color: #102038;
  font-size: 14px;
  font-weight: 740;
}
.rn-option-setup-column label {
  margin: 0;
}
.rn-option-setup-column label > small {
  display: block;
  margin-top: 5px;
  color: #61738a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.rn-option-internal-settings {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.rn-switch-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.rn-switch-row input[type="checkbox"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.rn-switch-row > span {
  position: relative;
  grid-row: 1 / span 2;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd8e6;
  transition: background .16s ease;
}
.rn-switch-row > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
  transition: transform .16s ease;
}
.rn-switch-row input[type="checkbox"]:checked + span {
  background: #2563eb;
}
.rn-switch-row input[type="checkbox"]:checked + span::after {
  transform: translateX(16px);
}
.rn-switch-row strong {
  color: #102038;
  font-size: 13px;
  font-weight: 730;
}
.rn-switch-row small {
  color: #61738a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}
.rn-option-setup-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 900px) {
  .rn-option-groups-page .rn-option-inline-builder,
  .rn-option-groups-page .rn-option-form-grid,
  .rn-option-group-setup-form {
    grid-template-columns: 1fr;
  }
}

/* Scoped Option Groups polish layer. */
.rn-options-page {
  --rn-options-bg: #edf3f8;
  --rn-options-card: #ffffff;
  --rn-options-card-soft: #f8fbff;
  --rn-options-border: #d8e3ee;
  --rn-options-border-strong: #c7d5e4;
  --rn-options-ink: #102038;
  --rn-options-muted: #5d7086;
  --rn-options-blue: #2563eb;
  --rn-options-blue-soft: #eaf1ff;
  --rn-options-green: #15803d;
  --rn-options-green-soft: #dcfce7;
  --rn-options-gray-soft: #eef2f6;
  --rn-options-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .06), transparent 360px),
    var(--rn-options-bg);
  color: var(--rn-options-ink);
}
.rn-options-page .rn-options-header {
  align-items: center;
  padding: 4px 0 2px;
}
.rn-options-page .rn-option-page-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #0b63e5 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .2);
}
.rn-options-page .rn-option-title-lockup h1 {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 720;
}
.rn-options-page .rn-option-title-lockup p {
  color: var(--rn-options-muted);
  font-size: 13px;
  line-height: 1.4;
}
.rn-options-page .btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #b8ccf8;
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 680;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.rn-options-page .btn:hover {
  border-color: #8fb0ff;
  background: #f7faff;
}
.rn-options-page .btn.btn-primary {
  border-color: var(--rn-options-blue);
  background: var(--rn-options-blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}
.rn-options-page .btn.btn-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}
.rn-options-page .btn.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.rn-options-page .rn-option-header-search,
.rn-options-page .rn-option-sidebar-search {
  min-height: 40px;
  border-color: var(--rn-options-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}
.rn-options-page .rn-option-header-search:focus-within,
.rn-options-page .rn-option-sidebar-search:focus-within {
  border-color: #94b7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}
.rn-options-page .rn-option-header-search input,
.rn-options-page .rn-option-sidebar-search input,
.rn-options-page .rn-option-setup-column input,
.rn-options-page .rn-option-setup-column select,
.rn-options-page .rn-option-setup-column textarea,
.rn-options-page .rn-option-choice-row input,
.rn-options-page .rn-option-choice-row select,
.rn-options-page .rn-group-assignment-form input,
.rn-options-page .rn-group-assignment-form select {
  border-color: var(--rn-options-border);
  border-radius: 8px;
  background: #fff;
  color: var(--rn-options-ink);
  font-size: 13px;
  box-shadow: none;
}
.rn-options-page .rn-option-setup-column input:focus,
.rn-options-page .rn-option-setup-column select:focus,
.rn-options-page .rn-option-setup-column textarea:focus,
.rn-options-page .rn-option-choice-row input:focus,
.rn-options-page .rn-option-choice-row select:focus,
.rn-options-page .rn-group-assignment-form input:focus,
.rn-options-page .rn-group-assignment-form select:focus {
  border-color: #94b7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  outline: 0;
}
.rn-options-page .rn-option-workspace-shell {
  grid-template-columns: minmax(260px, 318px) minmax(640px, 1fr) minmax(270px, 330px);
  gap: 18px;
}
.rn-options-page .rn-option-workspace-card {
  border-color: var(--rn-options-border);
  border-radius: 12px;
  background: var(--rn-options-card);
  box-shadow: var(--rn-options-shadow);
}
.rn-options-page .rn-options-sidebar .rn-option-workspace-card,
.rn-options-page .rn-options-rightbar .rn-option-workspace-card {
  padding: 15px;
}
.rn-options-page .rn-option-card-title h2,
.rn-options-page .rn-option-workspace-card h2,
.rn-options-page .rn-option-editor-section h3 {
  color: var(--rn-options-ink);
  font-size: 15px;
  font-weight: 720;
}
.rn-options-page .rn-option-card-title small,
.rn-options-page .rn-option-section-head p,
.rn-options-page .rn-option-editor-head p {
  color: var(--rn-options-muted);
}
.rn-options-page .rn-options-group-card {
  padding: 12px;
  border-color: var(--rn-options-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease, transform .16s ease;
}
.rn-options-page .rn-options-group-card:hover {
  border-color: #a9c2ff;
  background: #fbfdff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}
.rn-options-page .rn-options-group-card.active {
  border-color: var(--rn-options-blue);
  background: #f5f8ff;
  box-shadow: inset 3px 0 0 var(--rn-options-blue), 0 10px 22px rgba(37, 99, 235, .09);
}
.rn-options-page .rn-option-group-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.rn-options-page .rn-option-group-nav-top strong {
  font-size: 13px;
  font-weight: 720;
}
.rn-options-page .badge {
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}
.rn-options-page .badge-active {
  background: var(--rn-options-green-soft);
  color: var(--rn-options-green);
}
.rn-options-page .badge-draft,
.rn-options-page .badge-inactive {
  background: var(--rn-options-gray-soft);
  color: #61738a;
}
.rn-options-page .rn-option-group-badges small,
.rn-options-page .rn-option-editor-meta span:not(.badge) {
  min-height: 21px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rn-options-blue-soft);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}
.rn-options-page .rn-option-group-badges small {
  width: 100%;
  min-height: 26px;
  border-radius: 8px;
}
.rn-options-page .rn-options-editor-card {
  padding: 0;
  overflow: hidden;
}
.rn-options-page .rn-options-editor-card > .rn-option-editor-head {
  padding: 16px 18px 14px;
}
.rn-options-page .rn-options-tabs {
  margin: 0;
  padding: 0 18px;
  gap: 24px;
}
.rn-options-page .rn-options-tabs a {
  padding: 13px 0 11px;
  font-size: 13px;
}
.rn-options-page .rn-options-section {
  padding: 18px;
}
.rn-options-page .rn-options-section + .rn-options-section {
  border-top: 1px solid #e8eef5;
}
.rn-options-page .rn-option-section-head {
  align-items: center;
  margin-bottom: 2px;
}
.rn-options-page .rn-option-group-setup-form {
  gap: 16px;
}
.rn-options-page .rn-option-setup-column {
  padding: 14px;
  border-color: #e2eaf3;
  border-radius: 11px;
  background: var(--rn-options-card-soft);
}
.rn-options-page .rn-option-setup-column h4,
.rn-options-page .rn-option-internal-settings h4 {
  font-size: 13px;
  font-weight: 720;
}
.rn-options-page .rn-switch-row {
  border-color: #e2eaf3;
  border-radius: 10px;
  background: #fff;
}
.rn-options-page .rn-switch-row:hover {
  border-color: #c7d8ff;
}
.rn-options-page .rn-switch-row input[type="checkbox"]:checked + span {
  background: var(--rn-options-blue);
}
.rn-options-page .rn-options-table {
  overflow-x: auto;
  overflow-y: hidden;
  border-color: var(--rn-options-border);
  border-radius: 10px;
  background: #fff;
}
.rn-options-page .rn-option-choice-row {
  grid-template-columns: 58px minmax(250px, 1.35fr) 92px 82px minmax(130px, .75fr) minmax(380px, 1.65fr) 108px 142px;
  min-width: 1240px;
  min-height: 54px;
  border-top-color: #e8eef5;
  transition: background .14s ease;
}
.rn-options-page .rn-option-choice-row:not(.head):hover {
  background: #f8fbff;
}
.rn-options-page .rn-option-choice-row.head {
  min-height: 40px;
  background: #f6f9fc;
  color: #61738a;
}
.rn-options-page .rn-option-choice-add-row {
  background: #fbfdff;
}
.rn-options-page .rn-option-choice-add-row.is-choice-row-active {
  background: #eef5ff;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .45), 0 10px 22px rgba(37, 99, 235, .12);
}
.rn-options-page .rn-option-choice-add-row.is-choice-row-active input[name="name"] {
  border-color: var(--rn-options-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.rn-options-page .rn-option-system-choice-row {
  background: #f7f9fc;
}
.rn-options-page .rn-choice-placeholder {
  border-color: #d9e4ef;
  border-radius: 8px;
  background: #eef4ff;
}
.rn-options-page .rn-option-linked-empty {
  padding: 22px;
  border-color: #cbd8e6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
}
.rn-options-page .rn-preview-card,
.rn-options-page .rn-progress-card {
  gap: 13px;
}
.rn-options-page .rn-option-preview-toggle {
  border-radius: 9px;
  background: #edf2f7;
}
.rn-options-page .rn-option-preview-toggle button {
  border-radius: 7px;
}
.rn-options-page .rn-option-preview-toggle button.active {
  color: var(--rn-options-blue);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.rn-options-page .rn-option-preview-list span,
.rn-options-page .rn-option-preview-list label,
.rn-options-page .rn-option-preview-admin span {
  border-color: var(--rn-options-border);
  border-radius: 9px;
  background: #fff;
}
.rn-options-page .rn-option-progress-bar {
  height: 7px;
  background: #dde7f1;
}
.rn-options-page .rn-option-admin-notice {
  border-radius: 11px;
}
.rn-product-options-page {
  margin-top: 0;
  padding: 0;
  background: transparent;
}
.rn-product-options-page .rn-options-header {
  margin-bottom: 16px;
}
.rn-product-options-page .rn-option-workspace-shell {
  align-items: start;
}
.rn-product-options-page .rn-option-readonly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rn-product-options-page .rn-option-readonly-grid span {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--rn-options-border);
  border-radius: 10px;
  background: var(--rn-options-card-soft);
}
.rn-product-options-page .rn-option-readonly-grid strong {
  color: var(--rn-options-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.rn-product-options-page .rn-option-readonly-grid em {
  color: var(--rn-options-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
}
.rn-product-options-page .rn-option-description-note {
  margin: 12px 0 0;
  color: var(--rn-options-muted);
}
.rn-product-options-page .rn-choice-link-inline {
  display: grid;
  grid-template-columns: minmax(94px, .65fr) minmax(150px, 1fr) 58px auto;
  gap: 6px;
  align-items: center;
}
.rn-product-options-page .rn-choice-link-inline input {
  min-width: 0;
}
.rn-product-options-page .rn-option-choice-row > span:nth-child(6) {
  min-width: 250px;
}
.rn-product-options-page .rn-option-choice-row > span:last-child .btn[disabled] {
  opacity: .56;
}
@media (max-width: 1240px) {
  .rn-options-page .rn-option-workspace-shell {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }
  .rn-options-page .rn-options-rightbar {
    grid-column: 1 / -1;
    position: static;
  }
  .rn-options-page .rn-option-right-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .rn-options-page .rn-options-header,
  .rn-options-page .rn-option-workspace-shell,
  .rn-options-page .rn-option-right-stack,
  .rn-options-page .rn-option-group-setup-form {
    grid-template-columns: 1fr;
  }
  .rn-options-page .rn-option-header-actions {
    width: 100%;
    justify-content: stretch;
  }
  .rn-options-page .rn-option-header-actions .btn {
    flex: 1 1 auto;
  }
  .rn-options-page .rn-option-header-search {
    flex-basis: 100%;
  }
  .rn-options-page .rn-options-sidebar,
  .rn-options-page .rn-options-rightbar {
    position: static;
  }
  .rn-options-page .rn-option-group-list {
    max-height: none;
    min-height: auto;
  }
  .rn-options-page .rn-options-section {
    padding: 14px;
  }
}
@media (max-width: 700px) {
  .rn-options-page .rn-option-title-lockup {
    align-items: flex-start;
  }
  .rn-options-page .rn-option-page-icon {
    width: 42px;
    height: 42px;
  }
  .rn-options-page .rn-option-title-lockup h1 {
    font-size: 22px;
  }
  .rn-options-page .rn-option-editor-head,
  .rn-options-page .rn-option-section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .rn-options-page .rn-options-tabs {
    gap: 16px;
    overflow-x: auto;
  }
  .rn-options-page .rn-option-id-chip {
    white-space: normal;
  }
  .rn-product-options-page .rn-option-readonly-grid,
  .rn-product-options-page .rn-choice-link-inline {
    grid-template-columns: 1fr;
  }
}

.subscription-management-page {
  display: grid;
  gap: 16px;
  color: #10233f;
}

.platform-member-page {
  display: grid;
  gap: 16px;
  color: #0f172a;
}

.platform-member-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-help-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(0, 149, 200, .22);
  border-radius: 8px;
  background: #e8f7fc;
  color: #0f172a;
}

.pm-help-banner span {
  color: #536477;
}

.pm-panel {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.pm-member-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pm-member-cell > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 149, 200, .12);
  color: #0095c8;
  font-weight: 800;
}

.pm-member-cell small,
.pm-role-card small {
  display: block;
  color: #64748b;
}

.pm-two-column {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.6fr);
  gap: 16px;
}

.pm-support-layout {
  display: grid;
  grid-template-columns: minmax(320px, .7fr) minmax(0, 1.4fr);
  gap: 16px;
}

.pm-support-layout > .pm-panel:last-child {
  grid-column: 1 / -1;
}

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

.pm-support-form label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.pm-support-form input,
.pm-support-form select,
.pm-support-form textarea {
  min-height: 42px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.pm-support-form textarea {
  resize: vertical;
}

.pm-support-form .full {
  grid-column: 1 / -1;
}

.pm-inline-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px !important;
}

.pm-inline-check input {
  min-height: auto;
}

.pm-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pm-row-actions form {
  margin: 0;
}

.support-mode-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 14px 22px 0;
  padding: 12px 16px;
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 8px;
  background: #fffbeb;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.support-mode-banner div {
  display: grid;
  gap: 2px;
}

.support-mode-banner span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.badge-requested { background: #fff7ed; color: #c2410c; }
.badge-revoked { background: #eef2f7; color: #475569; }

.platform-help-page {
  display: grid;
  gap: 16px;
}

.platform-help-permission {
  display: grid;
  gap: 3px;
  min-width: 230px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 149, 200, .24);
  border-radius: 8px;
  background: #e8f7fc;
}

.platform-help-permission span,
.platform-help-permission small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.platform-help-permission strong {
  color: #002d3c;
  font-size: 18px;
}

.platform-help-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.platform-help-search label {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.platform-help-search input,
.platform-help-search select {
  min-height: 42px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.platform-help-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.platform-help-sidebar {
  display: grid;
  gap: 8px;
  padding: 18px;
  position: sticky;
  top: 16px;
}

.platform-help-sidebar a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

.platform-help-sidebar a.active {
  border-color: rgba(0, 149, 200, .35);
  background: #e8f7fc;
  color: #007da8;
}

.platform-help-sidebar span {
  color: #64748b;
}

.platform-help-results {
  display: grid;
  gap: 16px;
}

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

.platform-help-role-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.platform-help-role-grid p,
.platform-help-safeguards li,
.platform-help-article p,
.platform-help-body {
  color: #64748b;
  line-height: 1.5;
}

.platform-help-safeguards {
  padding: 18px;
}

.platform-help-safeguards ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.platform-help-articles {
  display: grid;
  gap: 12px;
}

.platform-help-section-title,
.platform-help-article-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.platform-help-article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.platform-help-article h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.platform-help-body {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
}

.platform-help-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-help-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.platform-help-empty {
  padding: 22px;
}

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

.pm-role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pm-role-card.selected {
  border-color: rgba(0, 149, 200, .38);
  background: #eefaff;
  box-shadow: inset 4px 0 0 #0095c8;
}

.pm-role-card:hover {
  border-color: rgba(0, 149, 200, .28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.pm-check,
.pm-empty {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.pm-check {
  background: #0095c8;
  color: #fff;
  font-weight: 900;
}

.pm-check-input {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.pm-check-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pm-check-input input:disabled + span {
  cursor: not-allowed;
  opacity: .76;
}

.pm-empty {
  border: 1px solid #cbd5e1;
  background: #fff;
}

.pm-info-box {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0, 149, 200, .24);
  border-radius: 8px;
  background: #e8f7fc;
}

.pm-safeguards {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(220, 38, 38, .22);
  border-radius: 8px;
  background: #fff7f7;
}

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

.pm-security-grid article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.pm-security-grid p {
  margin: 0;
  color: #64748b;
}

.tenant-staff-page {
  display: grid;
  gap: 16px;
  color: #0f172a;
}

.tenant-staff-tabs {
  overflow-x: auto;
  white-space: nowrap;
}

.tenant-staff-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tenant-staff-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(0, 149, 200, .24);
  border-radius: 8px;
  background: #e8f7fc;
  color: #0f172a;
}

.tenant-staff-note strong {
  font-size: 16px;
}

.tenant-staff-note span {
  color: #536477;
}

.tsm-note {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 149, 200, .24);
  border-radius: 8px;
  background: #e8f7fc;
}

.tsm-note span {
  color: #64748b;
}

.tenant-staff-panel {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.tenant-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tenant-staff-group-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
}

.tenant-staff-group-card > strong {
  font-size: 20px;
}

.tenant-staff-group-card p {
  min-height: 38px;
  margin: 0;
  color: #64748b;
}

.tenant-staff-group-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.tenant-staff-group-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.tenant-staff-group-card dt {
  color: #64748b;
  font-weight: 700;
}

.tenant-staff-group-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 750;
  text-align: right;
}

.tenant-staff-group-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0095c8;
  box-shadow: 0 0 0 6px rgba(0, 149, 200, .12);
}

.tenant-staff-page .table th,
.tenant-staff-page .table td {
  vertical-align: middle;
}

.tenant-staff-page .badge-suspended,
.tenant-staff-page .badge-archived,
.tenant-staff-page .badge-expired,
.tenant-staff-page .badge-revoked {
  background: #fee2e2;
  color: #b91c1c;
}

.tenant-staff-page .badge-invited,
.tenant-staff-page .badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.tenant-staff-matrix-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tenant-staff-matrix-actions form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tenant-staff-matrix-actions input,
.tenant-group-defaults select,
.tenant-permission-matrix select {
  min-height: 36px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}

.tenant-staff-matrix-actions input {
  width: 180px;
  padding: 8px 10px;
}

.tenant-ai-note {
  margin: 0 0 12px;
}

.tenant-staff-guardrail {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  background: #fff7df;
  color: #7c4a03;
  font-weight: 700;
}

.tenant-group-defaults {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tenant-group-defaults label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tenant-group-defaults select,
.tenant-permission-matrix select {
  width: 100%;
  padding: 7px 8px;
  font-size: 13px;
}

.tenant-owner-override {
  align-self: end;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a !important;
}

.tenant-matrix-wrap {
  max-height: 68vh;
}

.tenant-permission-matrix {
  min-width: 1380px;
}

.tenant-permission-matrix th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.tenant-permission-matrix td:first-child,
.tenant-permission-matrix th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: inherit;
}

.tenant-permission-matrix .pm-na {
  color: #94a3b8;
}

.tenant-invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
  align-items: start;
}

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

.tenant-invite-form label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tenant-invite-form input,
.tenant-invite-form select,
.tenant-invite-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.tenant-invite-form select[multiple] {
  min-height: 78px;
}

.tenant-invite-message,
.tenant-invite-form .btn {
  grid-column: 1 / -1;
}

.tenant-invite-preview {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tenant-invite-preview div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.tenant-invite-preview dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tenant-invite-preview dd {
  margin: 0;
  color: #0f172a;
  font-weight: 750;
}

.um-state-card,
.um-empty-state {
  display: grid;
  gap: 6px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbe6ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
}

.um-state-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.um-state-card p,
.um-empty-state span {
  margin: 0;
  color: #64748b;
}

.um-error-state {
  border-color: rgba(220, 38, 38, .24);
  background: #fff7f7;
}

.um-loading-state {
  border-color: rgba(0, 149, 200, .24);
  background: #e8f7fc;
}

.um-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 149, 200, .22);
  border-top-color: #0095c8;
  border-radius: 50%;
  animation: um-spin .8s linear infinite;
}

@keyframes um-spin {
  to { transform: rotate(360deg); }
}

.um-action-menu {
  position: relative;
  display: inline-block;
}

.um-action-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #006b92;
  font-weight: 850;
}

.um-action-menu summary::-webkit-details-marker {
  display: none;
}

.um-action-menu[open] summary {
  border-color: rgba(0, 149, 200, .38);
  box-shadow: 0 0 0 3px rgba(0, 149, 200, .1);
}

.um-action-menu div {
  position: absolute;
  right: 0;
  z-index: 30;
  min-width: 180px;
  margin-top: 6px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.um-action-menu button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-weight: 750;
  text-align: left;
  padding: 9px 10px;
}

.um-action-menu button:hover {
  background: #e8f7fc;
  color: #007da8;
}

.tenant-staff-page .badge-accounting,
.tenant-staff-page .badge-full-financials,
.tenant-staff-page .badge-full {
  background: #dcfce7;
  color: #166534;
}

.tenant-staff-page .badge-execute-directly,
.tenant-staff-page .badge-execute {
  background: #f3e8ff;
  color: #6d28d9;
}

.tenant-staff-page .badge-customer-pricing-only,
.tenant-staff-page .badge-review {
  background: #e8f7fc;
  color: #007da8;
}

.tenant-invite-accept {
  max-width: 720px;
}

/* EmpraNim platform shell */
.shell-platform {
  --ep-deep-blue: #002d3c;
  --ep-bright-blue: #0095c8;
  --ep-gold: #ffc72c;
  --ep-bg: #f7fafc;
  --ep-card: #ffffff;
  --ep-border: #e5e7eb;
  --ep-text: #0f172a;
  --ep-muted: #64748b;
  --ep-success: #16a34a;
  --ep-warning: #f59e0b;
  --ep-error: #dc2626;
  --ep-shadow: 0 14px 32px rgba(15, 23, 42, .07);
  background: var(--ep-bg);
  color: var(--ep-text);
}
.shell-platform .app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  background: var(--ep-bg);
}
.shell-platform .sidebar {
  z-index: 40;
  gap: 16px;
  padding: 18px 12px;
  background: var(--ep-deep-blue);
  color: #f8fbff;
  box-shadow: 18px 0 34px rgba(0, 45, 60, .14);
}
.shell-platform .brand-lockup {
  min-height: 72px;
  padding: 4px 8px 16px;
  border-bottom-color: rgba(255, 255, 255, .12);
  text-decoration: none;
}
.shell-platform .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.shell-platform .brand-logo img {
  width: 148px;
}
.shell-platform .brand-lockup strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}
.shell-platform .brand-lockup small {
  color: #bfd2db;
  font-size: 12px;
  font-weight: 650;
}
.shell-platform .sidebar-nav {
  gap: 5px;
}
.shell-platform .sidebar-nav a {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #d8e6ed;
  font-weight: 700;
  text-decoration: none;
}
.shell-platform .sidebar-nav a span {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #b9d5df;
}
.shell-platform .sidebar-nav a:hover {
  background: rgba(0, 149, 200, .16);
  color: #fff;
}
.shell-platform .sidebar-nav a.active {
  background: var(--ep-bright-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 149, 200, .28);
}
.shell-platform .sidebar-nav a.active span {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.shell-platform .plan-chip {
  border: 1px solid rgba(255, 199, 44, .32);
  border-radius: 8px;
  background: rgba(255, 199, 44, .11);
}
.shell-platform .plan-chip strong {
  color: var(--ep-gold);
}
.shell-platform .plan-chip small {
  color: #d5e3ea;
}
.shell-platform .user-chip {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
}
.shell-platform .user-chip strong {
  color: #fff;
}
.shell-platform .user-chip small {
  color: var(--ep-gold);
}
.shell-platform .avatar {
  border-radius: 50%;
  background: var(--ep-bright-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 200, .18);
}
.shell-platform .footer-links a {
  color: #c5d8e0;
}
.shell-platform .workspace {
  background: var(--ep-bg);
}
.shell-platform .workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  min-height: 74px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--ep-border);
  background: rgba(247, 250, 252, .92);
  backdrop-filter: blur(16px);
}
.shell-platform .workspace-topbar h1,
.shell-platform h1,
.shell-platform h2,
.shell-platform h3 {
  color: var(--ep-text);
}
.shell-platform .rn-global-search {
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ep-muted);
}
.shell-platform .rn-global-search input {
  color: var(--ep-text);
}
.shell-platform .status-dot {
  background: var(--ep-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
}
.shell-platform .page {
  padding: 24px 28px 34px;
}
.shell-platform .rn-command-page,
.shell-platform .rn-platform-workspace,
.shell-platform .subscription-management-page {
  max-width: 1480px;
  margin: 0 auto;
}
.shell-platform .rn-panel,
.shell-platform .rn-metric-card,
.shell-platform .sm-kpi-card,
.shell-platform .sm-panel,
.shell-platform .sm-alert-card {
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  background: var(--ep-card);
  box-shadow: var(--ep-shadow);
}
.shell-platform .rn-panel-head,
.shell-platform .sm-page-header {
  gap: 16px;
}
.shell-platform .rn-panel-head h2,
.shell-platform .sm-panel h2 {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 800;
}
.shell-platform .rn-panel-head .eyebrow,
.shell-platform .eyebrow {
  color: var(--ep-bright-blue);
}
.shell-platform .muted,
.shell-platform .sm-page-header p,
.shell-platform .sm-kpi-card small,
.shell-platform .sm-summary-grid dt {
  color: var(--ep-muted);
}
.shell-platform .btn {
  border-color: #cbd5e1;
  border-radius: 8px;
  color: #075b80;
  box-shadow: none;
}
.shell-platform .btn-primary {
  border-color: var(--ep-bright-blue);
  background: var(--ep-bright-blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 149, 200, .22);
}
.shell-platform .sm-kpi-icon,
.shell-platform .rn-metric-icon,
.shell-platform .sm-addon-grid span,
.shell-platform .sm-action-list span {
  background: rgba(0, 149, 200, .12);
  color: var(--ep-bright-blue);
}
.shell-platform .sm-kpi-card.success .sm-kpi-icon,
.shell-platform .badge-paid,
.shell-platform .badge-active {
  background: rgba(22, 163, 74, .13);
  color: var(--ep-success);
}
.shell-platform .badge-failed,
.shell-platform .badge-payment-failed,
.shell-platform .badge-suspended {
  background: rgba(220, 38, 38, .12);
  color: var(--ep-error);
}
.shell-platform .badge-past-due,
.shell-platform .badge-trialing {
  background: rgba(245, 158, 11, .14);
  color: var(--ep-warning);
}
.shell-platform .sm-alert-card.danger {
  border-color: rgba(220, 38, 38, .28);
  background: #fff7f7;
  color: var(--ep-error);
}
.shell-platform .sm-alert-card.warning {
  border-color: rgba(245, 158, 11, .32);
  background: #fffbeb;
  color: var(--ep-warning);
}
.shell-platform .sm-tabs,
.shell-platform .rn-top-tabs.rn-platform-tabs {
  border-bottom-color: var(--ep-border);
}
.shell-platform .sm-tabs a.active,
.shell-platform .rn-top-tabs.rn-platform-tabs a.active,
.shell-platform #sm-tab-overview:checked ~ .sm-tabs label[for="sm-tab-overview"],
.shell-platform #sm-tab-billing:checked ~ .sm-tabs label[for="sm-tab-billing"],
.shell-platform #sm-tab-usage:checked ~ .sm-tabs label[for="sm-tab-usage"],
.shell-platform #sm-tab-invoices:checked ~ .sm-tabs label[for="sm-tab-invoices"],
.shell-platform #sm-tab-addons:checked ~ .sm-tabs label[for="sm-tab-addons"],
.shell-platform #sm-tab-entitlements:checked ~ .sm-tabs label[for="sm-tab-entitlements"],
.shell-platform #sm-tab-settings:checked ~ .sm-tabs label[for="sm-tab-settings"],
.shell-platform #sm-tab-activity:checked ~ .sm-tabs label[for="sm-tab-activity"] {
  color: var(--ep-bright-blue);
  box-shadow: inset 0 -3px 0 var(--ep-bright-blue);
}
.shell-platform .sm-usage-row i {
  background: var(--ep-bright-blue);
}
.shell-platform .rn-data-table th {
  background: #f8fafc;
  color: var(--ep-muted);
}
.shell-platform .rn-data-table td,
.shell-platform .rn-data-table th {
  border-color: var(--ep-border);
}
@media (max-width: 1180px) {
  .shell-platform .app-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .shell-platform .brand-lockup {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  .shell-platform .brand-lockup span:last-child,
  .shell-platform .sidebar-nav a:not(.active) {
    overflow: hidden;
  }
  .shell-platform .sidebar-nav a {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 0;
  }
  .shell-platform .sidebar-nav a span {
    margin: 0;
    font-size: 10px;
  }
  .shell-platform .plan-chip,
  .shell-platform .user-chip span:last-child,
  .shell-platform .footer-links {
    display: none;
  }
  .shell-platform .rn-platform-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .shell-platform .app-shell {
    grid-template-columns: 1fr;
  }
  .shell-platform .sidebar {
    position: static;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .shell-platform .brand-lockup {
    justify-content: flex-start;
  }
  .shell-platform .brand-lockup span:last-child,
  .shell-platform .user-chip span:last-child,
  .shell-platform .footer-links {
    display: block;
  }
  .shell-platform .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .shell-platform .sidebar-nav a {
    flex: 0 0 auto;
    justify-content: flex-start;
    min-width: 128px;
    font-size: 13px;
  }
  .shell-platform .workspace-topbar {
    position: static;
    display: grid;
    align-items: stretch;
  }
  .shell-platform .page {
    padding: 18px 14px 26px;
  }
  .shell-platform .rn-platform-grid,
  .shell-platform .rn-platform-metrics {
    grid-template-columns: 1fr;
  }
  .platform-member-metrics,
  .tenant-staff-metrics,
  .tenant-staff-grid,
  .tenant-invite-layout,
  .tenant-invite-form,
  .tenant-group-defaults,
  .pm-two-column,
  .pm-support-layout,
  .pm-security-grid {
    grid-template-columns: 1fr;
  }
  .pm-support-layout > .pm-panel:last-child {
    grid-column: auto;
  }
  .pm-support-form {
    grid-template-columns: 1fr;
  }
  .support-mode-banner {
    display: grid;
    margin: 12px 14px 0;
  }
  .platform-help-search,
  .platform-help-layout,
  .platform-help-role-grid {
    grid-template-columns: 1fr;
  }
  .platform-help-sidebar {
    position: static;
  }
  .um-state-card {
    grid-template-columns: 1fr;
  }
  .um-action-menu {
    width: 100%;
  }
  .um-action-menu summary {
    width: 100%;
    text-align: center;
  }
  .um-action-menu div {
    position: static;
    width: 100%;
  }
  .shell-platform .rn-top-tabs.rn-platform-tabs,
  .shell-platform .sm-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
}
.sm-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.sm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #66758c;
  font-size: 13px;
}
.sm-breadcrumb a,
.sm-card-link {
  color: #075fc4;
  font-weight: 700;
  text-decoration: none;
}
.sm-page-header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}
.sm-page-header p {
  margin: 6px 0 0;
  color: #53647a;
}
.sm-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.sm-menu {
  position: relative;
}
.sm-menu summary {
  list-style: none;
  cursor: pointer;
}
.sm-menu summary::-webkit-details-marker {
  display: none;
}
.sm-menu-panel {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
}
.sm-menu-panel button,
.sm-action-list button {
  border: 0;
  background: transparent;
  color: #12223b;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sm-menu-panel button {
  padding: 10px;
  border-radius: 6px;
}
.sm-menu-panel button:hover,
.sm-action-list button:hover {
  background: #f2f7ff;
}
.sm-tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  border-bottom: 1px solid #dbe4ef;
}
.sm-tab-shell {
  display: grid;
  gap: 16px;
}
.sm-tabs a,
.sm-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  color: #4e6076;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.sm-tab-label span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #eef6ff;
  color: #0870df;
  font-size: 9px;
  font-weight: 800;
}
.sm-tabs a.active,
#sm-tab-overview:checked ~ .sm-tabs label[for="sm-tab-overview"],
#sm-tab-billing:checked ~ .sm-tabs label[for="sm-tab-billing"],
#sm-tab-usage:checked ~ .sm-tabs label[for="sm-tab-usage"],
#sm-tab-invoices:checked ~ .sm-tabs label[for="sm-tab-invoices"],
#sm-tab-addons:checked ~ .sm-tabs label[for="sm-tab-addons"],
#sm-tab-entitlements:checked ~ .sm-tabs label[for="sm-tab-entitlements"],
#sm-tab-settings:checked ~ .sm-tabs label[for="sm-tab-settings"],
#sm-tab-activity:checked ~ .sm-tabs label[for="sm-tab-activity"] {
  color: #0870df;
  box-shadow: inset 0 -3px 0 #0870df;
}
.sm-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sm-tab-panel {
  display: none;
}
#sm-tab-overview:checked ~ .sm-tab-panel-overview,
#sm-tab-billing:checked ~ .sm-tab-panel-billing,
#sm-tab-usage:checked ~ .sm-tab-panel-usage,
#sm-tab-invoices:checked ~ .sm-tab-panel-invoices,
#sm-tab-addons:checked ~ .sm-tab-panel-addons,
#sm-tab-entitlements:checked ~ .sm-tab-panel-entitlements,
#sm-tab-settings:checked ~ .sm-tab-panel-settings,
#sm-tab-activity:checked ~ .sm-tab-panel-activity {
  display: grid;
  gap: 16px;
}
.sm-empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}
.sm-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 13px;
  font-weight: 800;
}
.sm-empty-state h2,
.sm-empty-state p {
  margin: 0;
}
.sm-empty-state p {
  color: #64748b;
}
.sm-state {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
}
.subscription-summary-cards > .sm-state,
.add-ons-preview-grid > .sm-state,
.available-add-ons-grid > .sm-state {
  grid-column: 1 / -1;
}
.sm-state-error {
  border-color: #fecaca;
  background: #fef2f2;
}
.sm-state-permission-denied {
  border-color: #fde68a;
  background: #fffbeb;
}
.sm-state-empty {
  border-style: dashed;
}
.sm-state-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: .75rem;
  font-weight: 900;
}
.sm-state-error .sm-state-icon {
  background: #fee2e2;
  color: #dc2626;
}
.sm-state-permission-denied .sm-state-icon {
  background: #fef3c7;
  color: #92400e;
}
.sm-state strong {
  display: block;
  margin: 0 0 4px;
  font-size: .95rem;
}
.sm-state p {
  margin: 0 0 12px;
  color: #64748b;
}
.sm-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.sm-skeleton-card,
.sm-skeleton-rows div {
  overflow: hidden;
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.sm-skeleton-card {
  min-height: 104px;
  padding: 16px;
}
.sm-skeleton-card span,
.sm-skeleton-card i,
.sm-skeleton-card b,
.sm-skeleton-rows span,
.sm-skeleton-rows i,
.sm-skeleton-rows b {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 48%, #eef2f7 100%);
  background-size: 220% 100%;
  animation: sm-skeleton-shimmer 1.35s ease-in-out infinite;
}
.sm-skeleton-card span {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
}
.sm-skeleton-card i {
  width: 58%;
  height: 12px;
  margin-bottom: 10px;
}
.sm-skeleton-card b {
  width: 82%;
  height: 18px;
}
.sm-skeleton-rows {
  display: grid;
  gap: 10px;
  width: 100%;
}
.sm-skeleton-rows div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
}
.sm-skeleton-rows span {
  width: 28px;
  height: 28px;
}
.sm-skeleton-rows i {
  width: 100%;
  height: 12px;
}
.sm-skeleton-rows b {
  width: 78px;
  height: 12px;
}
@keyframes sm-skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.sm-kpi-grid,
.subscription-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sm-kpi-card,
.subscription-summary-card,
.sm-panel,
.sm-alert-card {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.sm-kpi-card,
.subscription-summary-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 15px;
}
.sm-kpi-icon,
.subscription-summary-icon {
  display: grid;
  grid-row: span 3;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 12px;
  font-weight: 800;
}
.subscription-summary-card.status-active .subscription-summary-icon {
  background: #dcf7e6;
  color: #16a34a;
}
.subscription-summary-card.status-trial .subscription-summary-icon {
  background: #e5f1ff;
  color: #0095c8;
}
.subscription-summary-card.status-past-due .subscription-summary-icon {
  background: #fff3df;
  color: #f59e0b;
}
.subscription-summary-card.status-suspended .subscription-summary-icon {
  background: #fee2e2;
  color: #dc2626;
}
.subscription-summary-card.status-canceled .subscription-summary-icon {
  background: #f1f5f9;
  color: #64748b;
}
.sm-kpi-card.success .sm-kpi-icon {
  background: #dcf7e6;
  color: #16823b;
}
.sm-kpi-card small,
.sm-kpi-card em,
.subscription-summary-card small,
.subscription-summary-card em,
.sm-summary-grid dt,
.sm-usage-row em,
.sm-activity-list small {
  color: #5b6c82;
}
.sm-kpi-card strong,
.subscription-summary-card strong {
  font-size: 18px;
}
.sm-kpi-card em,
.subscription-summary-card em,
.sm-alert-card button {
  font-style: normal;
  font-weight: 700;
}
.subscription-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.subscription-summary-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.subscription-summary-badge.cycle,
.subscription-summary-badge.status-trial {
  background: #e5f1ff;
  color: #0870df;
}
.subscription-summary-badge.status-active {
  background: #dcf7e6;
  color: #16a34a;
}
.subscription-summary-badge.status-past-due {
  background: #fff3df;
  color: #f59e0b;
}
.subscription-summary-badge.status-suspended {
  background: #fee2e2;
  color: #dc2626;
}
.subscription-summary-badge.status-canceled {
  background: #f1f5f9;
  color: #64748b;
}
.subscription-summary-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}
.subscription-summary-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.subscription-summary-panel-head h2,
.subscription-summary-panel-head p {
  margin: 0;
}
.subscription-summary-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
}
.subscription-summary-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.subscription-summary-field dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.subscription-summary-field dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.subscription-summary-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.subscription-summary-pill.cycle {
  background: #e5f1ff;
  color: #0870df;
}
.subscription-summary-pill.status-active {
  background: #dcf7e6;
  color: #16a34a;
}
.subscription-summary-action {
  justify-self: end;
}
.usage-limits-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.usage-limits-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.usage-limits-head h2,
.usage-limits-head p {
  margin: 0;
}
.usage-limits-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}
.usage-limits-list {
  display: grid;
  gap: 10px;
}
.usage-limit-row {
  display: grid;
  grid-template-columns: 30px minmax(98px, .75fr) minmax(140px, 1.35fr) minmax(112px, .65fr) 48px;
  gap: 10px;
  align-items: center;
  color: #0f172a;
  font-size: 13px;
}
.usage-limit-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 10px;
  font-weight: 900;
}
.usage-limit-row.warning .usage-limit-icon {
  background: #fff3df;
  color: #f59e0b;
}
.usage-limit-row.danger .usage-limit-icon,
.usage-limit-row.over-limit .usage-limit-icon {
  background: #fee2e2;
  color: #dc2626;
}
.usage-limit-row strong {
  min-width: 0;
}
.usage-limit-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}
.usage-limit-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0095c8;
}
.usage-limit-row.warning .usage-limit-track i {
  background: #f59e0b;
}
.usage-limit-row.danger .usage-limit-track i,
.usage-limit-row.over-limit .usage-limit-track i {
  background: #dc2626;
}
.usage-limit-row em,
.usage-limit-row b {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}
.usage-limit-row b {
  text-align: right;
}
.usage-limit-row.over-limit b {
  color: #dc2626;
}
.usage-limits-action {
  justify-self: end;
}
.feature-entitlements-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.feature-entitlements-head h2,
.feature-entitlements-head p {
  margin: 0;
}
.feature-entitlements-list {
  display: grid;
  gap: 9px;
}
.feature-entitlement-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
}
.feature-entitlement-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.feature-entitlement-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #dcf7e6;
  color: #16a34a;
  font-size: 10px;
  font-weight: 900;
}
.feature-entitlement-row.not-included .feature-entitlement-icon {
  background: #f1f5f9;
  color: #64748b;
}
.feature-entitlement-row.add-on .feature-entitlement-icon {
  background: #fff3df;
  color: #f59e0b;
}
.feature-entitlement-row.trial .feature-entitlement-icon {
  background: #e5f1ff;
  color: #0095c8;
}
.feature-entitlement-row.manual-override .feature-entitlement-icon {
  background: #f3e8ff;
  color: #7e22ce;
}
.feature-entitlement-row em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}
.feature-entitlement-row b {
  grid-column: 2 / -1;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
}
.feature-entitlement-row.add-on b {
  background: #fff3df;
  color: #b86800;
}
.feature-entitlement-row.trial b {
  background: #e5f1ff;
  color: #0870df;
}
.feature-entitlement-row.manual-override b {
  background: #f3e8ff;
  color: #7e22ce;
}
.feature-entitlements-drawer {
  justify-self: stretch;
}
.feature-entitlements-drawer summary {
  cursor: pointer;
  list-style: none;
}
.feature-entitlements-drawer summary::-webkit-details-marker {
  display: none;
}
.feature-entitlements-action {
  justify-content: flex-end;
}
.feature-entitlements-drawer-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #f7fafc;
  box-shadow: inset 4px 0 0 #0095c8;
}
.feature-entitlements-drawer-panel h3,
.feature-entitlements-drawer-panel p {
  margin: 0;
}
.feature-entitlements-drawer-panel p:not(.eyebrow) {
  color: #64748b;
  font-size: 13px;
}
.side-card-head h2,
.side-card-head p {
  margin: 0;
}
.quick-actions-card,
.recent-activity-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.quick-actions-list {
  display: grid;
  gap: 9px;
}
.quick-action-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}
.quick-action-row:hover {
  border-color: #0095c8;
  background: #f3fbff;
}
.quick-action-row span,
.recent-activity-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 10px;
  font-weight: 900;
}
.quick-action-row strong {
  font-size: 13px;
}
.quick-action-row i {
  color: #64748b;
  font-style: normal;
  font-weight: 900;
}
.billing-alerts-card {
  display: grid;
  gap: 10px;
}
.billing-alert {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.billing-alert-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.billing-alert-error {
  border-color: #fecaca;
  background: #fff7f7;
}
.billing-alert-error .billing-alert-icon {
  background: #fee2e2;
  color: #dc2626;
}
.billing-alert-warning {
  border-color: #f8dda9;
  background: #fffaf0;
}
.billing-alert-warning .billing-alert-icon {
  background: #fff3df;
  color: #f59e0b;
}
.billing-alert strong {
  display: block;
  margin-bottom: 6px;
}
.billing-alert p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}
.billing-alert button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0870df;
  cursor: pointer;
  font-weight: 900;
}
.recent-activity-list {
  display: grid;
  gap: 12px;
}
.recent-activity-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}
.recent-activity-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.recent-activity-row strong {
  font-size: 13px;
  line-height: 1.3;
}
.recent-activity-row small,
.recent-activity-row em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}
.recent-activity-action {
  justify-self: end;
}
.add-ons-preview-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}
.add-ons-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.add-ons-preview-head h2,
.add-ons-preview-head p {
  margin: 0;
}
.add-ons-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.add-on-preview-item {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 8px;
  min-height: 190px;
  padding: 13px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fbfdff;
}
.add-on-preview-item span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 10px;
  font-weight: 900;
}
.add-on-preview-item strong {
  color: #0f172a;
  font-size: 13px;
}
.add-on-preview-item small {
  color: #0870df;
  font-weight: 900;
}
.add-on-preview-item p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.add-on-preview-item button {
  width: 100%;
  justify-content: center;
}
.recent-invoices-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.recent-invoices-head h2,
.recent-invoices-head p {
  margin: 0;
}
.recent-invoices-table-wrap {
  overflow-x: auto;
}
.recent-invoices-table {
  width: 100%;
  border-collapse: collapse;
}
.recent-invoices-table th,
.recent-invoices-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}
.recent-invoices-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.invoice-status-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}
.invoice-status-badge.status-paid {
  background: #dcf7e6;
  color: #16a34a;
}
.invoice-status-badge.status-open {
  background: #e5f1ff;
  color: #0870df;
}
.invoice-status-badge.status-failed {
  background: #fee2e2;
  color: #dc2626;
}
.invoice-status-badge.status-past-due {
  background: #fff3df;
  color: #f59e0b;
}
.invoice-status-badge.status-void {
  background: #f1f5f9;
  color: #64748b;
}
.invoice-status-badge.status-refunded {
  background: #f3e8ff;
  color: #7e22ce;
}
.recent-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recent-invoices-action {
  justify-self: end;
}
.subscription-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.subscription-modal::backdrop {
  background: rgba(15, 23, 42, .52);
}
.subscription-modal-form {
  display: grid;
  max-height: inherit;
  overflow: hidden;
}
.subscription-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.subscription-modal-head h2 {
  margin: 0;
}
.subscription-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe5f1;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.subscription-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px;
  overflow-y: auto;
}
.subscription-modal-field {
  display: grid;
  gap: 6px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}
.subscription-modal-field textarea {
  min-height: 88px;
}
.subscription-modal-field:has(textarea),
.subscription-modal-field:has(.subscription-modal-check) {
  grid-column: 1 / -1;
}
.subscription-modal-check {
  display: flex;
  align-items: center;
  gap: 9px;
}
.subscription-modal-check input {
  width: auto;
}
.subscription-modal-confirm {
  display: grid;
  gap: 7px;
  margin: 0 20px 18px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #991b1b;
  font-size: 13px;
  font-weight: 900;
}
.subscription-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f7fafc;
}
.subscription-modal .btn.danger {
  border-color: #dc2626;
  background: #dc2626;
}
.billing-tab-panel {
  display: grid;
  gap: 16px;
}
.billing-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.billing-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.billing-tab-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.billing-tab-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.billing-tab-card-head span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 11px;
  font-weight: 900;
}
.billing-tab-card-head h2 {
  margin: 0;
}
.billing-tab-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}
.billing-tab-fields div {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f6;
}
.billing-tab-fields div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.billing-tab-fields dt,
.billing-tab-fields dd {
  margin: 0;
  font-size: 13px;
}
.billing-tab-fields dt {
  color: #64748b;
  font-weight: 900;
}
.billing-tab-fields dd {
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.usage-tab-panel {
  display: grid;
  gap: 16px;
}
.usage-tab-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.usage-tab-toolbar label {
  display: grid;
  gap: 6px;
  max-width: 280px;
}
.usage-tab-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.usage-tab-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.usage-tab-card-head h2,
.usage-tab-card-head p {
  margin: 0;
}
.usage-tab-card-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.usage-summary-table-wrap {
  overflow-x: auto;
}
.usage-summary-table {
  width: 100%;
  border-collapse: collapse;
}
.usage-summary-table th,
.usage-summary-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}
.usage-summary-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.usage-tab-progress {
  display: inline-grid;
  width: min(110px, 100%);
  height: 7px;
  margin-right: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  vertical-align: middle;
}
.usage-tab-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.usage-tab-progress i.normal,
.usage-status-pill.normal {
  background: #e5f1ff;
  color: #0870df;
}
.usage-tab-progress i.normal {
  background: #0095c8;
}
.usage-tab-progress i.near-limit,
.usage-status-pill.near-limit {
  background: #fff3df;
  color: #b86800;
}
.usage-tab-progress i.near-limit {
  background: #f59e0b;
}
.usage-tab-progress i.over-limit,
.usage-status-pill.over-limit {
  background: #fee2e2;
  color: #dc2626;
}
.usage-tab-progress i.over-limit {
  background: #dc2626;
}
.usage-tab-progress i.unlimited,
.usage-status-pill.unlimited {
  background: #dcf7e6;
  color: #16a34a;
}
.usage-tab-progress i.unlimited {
  background: #16a34a;
}
.usage-status-pill {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}
.usage-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.usage-module-list,
.usage-history-list,
.usage-risk-list {
  display: grid;
  gap: 10px;
}
.usage-module-list div,
.usage-history-list div,
.usage-risk-list div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fbfdff;
}
.usage-module-list span,
.usage-history-list span,
.usage-risk-list span,
.usage-module-list em,
.usage-history-list em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}
.usage-risk-list .warning {
  border-color: #f8dda9;
  background: #fffaf0;
}
.usage-export-copy {
  margin: 0;
  color: #64748b;
}
.invoices-tab-panel {
  display: grid;
  gap: 16px;
}
.invoices-tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.invoices-tab-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invoices-tab-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.invoices-tab-head h2,
.invoices-tab-head p {
  margin: 0;
}
.invoices-tab-table-wrap {
  overflow-x: auto;
}
.invoices-tab-table {
  width: 100%;
  border-collapse: collapse;
}
.invoices-tab-table th,
.invoices-tab-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.invoices-tab-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.invoices-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}
.add-ons-tab-panel {
  display: grid;
  gap: 16px;
}
.add-ons-tab-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.add-ons-tab-head h2,
.add-ons-tab-head p {
  margin: 0;
}
.add-ons-tab-table-wrap {
  overflow-x: auto;
}
.add-ons-tab-table,
.add-ons-history-table {
  width: 100%;
  border-collapse: collapse;
}
.add-ons-tab-table th,
.add-ons-tab-table td,
.add-ons-history-table th,
.add-ons-history-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.add-ons-tab-table th,
.add-ons-history-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.addon-status-pill {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}
.addon-status-pill.active {
  background: #dcf7e6;
  color: #16a34a;
}
.addon-status-pill.paused {
  background: #fff3df;
  color: #b86800;
}
.add-ons-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}
.available-add-ons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.available-add-ons-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  gap: 8px;
  min-height: 210px;
  padding: 13px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fbfdff;
}
.available-add-ons-grid span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 10px;
  font-weight: 900;
}
.available-add-ons-grid p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}
.available-add-ons-grid small {
  color: #0870df;
  font-weight: 900;
}
.available-add-ons-grid em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}
.entitlements-tab-panel {
  display: grid;
  gap: 16px;
}
.entitlements-tab-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.entitlements-tab-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.entitlements-tab-head h2,
.entitlements-tab-head p {
  margin: 0;
}
.entitlements-tab-head > span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff3df;
  color: #b86800;
  font-size: 12px;
  font-weight: 900;
}
.entitlements-tab-table-wrap {
  overflow-x: auto;
}
.entitlements-tab-table {
  width: 100%;
  border-collapse: collapse;
}
.entitlements-tab-table th,
.entitlements-tab-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.entitlements-tab-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.entitlements-tab-table tr.has-override {
  background: #fffaf0;
}
.entitlement-access-pill,
.entitlement-override-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}
.entitlement-access-pill.included {
  background: #dcf7e6;
  color: #16a34a;
}
.entitlement-access-pill.disabled,
.entitlement-access-pill.not-included {
  background: #f1f5f9;
  color: #64748b;
}
.entitlement-access-pill.trial {
  background: #e5f1ff;
  color: #0870df;
}
.entitlement-access-pill.add-on {
  background: #fff3df;
  color: #b86800;
}
.entitlement-access-pill.manual-override,
.entitlement-override-badge {
  background: #f3e8ff;
  color: #7e22ce;
}
.entitlement-muted {
  color: #64748b;
}
.entitlements-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}
.settings-tab-panel {
  display: grid;
  gap: 16px;
}
.settings-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-tab-card,
.settings-notes-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.settings-tab-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-tab-head span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 11px;
  font-weight: 900;
}
.settings-tab-head h2 {
  margin: 0;
}
.settings-tab-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}
.settings-tab-fields div {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f6;
}
.settings-tab-fields div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.settings-tab-fields dt,
.settings-tab-fields dd {
  margin: 0;
  font-size: 13px;
}
.settings-tab-fields dt {
  color: #64748b;
  font-weight: 900;
}
.settings-tab-fields dd {
  color: #0f172a;
  font-weight: 800;
}
.settings-tab-fields .toggle-value {
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e5f1ff;
  color: #0870df;
  font-size: 12px;
}
.settings-note-editor {
  display: grid;
  gap: 7px;
}
.settings-notes-history {
  display: grid;
  gap: 10px;
}
.settings-notes-history h3 {
  margin: 0;
}
.settings-notes-history div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  background: #fbfdff;
}
.settings-notes-history span,
.settings-notes-history p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.activity-log-tab-panel {
  display: grid;
  gap: 16px;
}
.activity-log-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.activity-log-search {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
}
.activity-log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.activity-log-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.activity-log-head h2,
.activity-log-head p {
  margin: 0;
}
.activity-log-table-wrap {
  overflow-x: auto;
}
.activity-log-table {
  width: 100%;
  border-collapse: collapse;
}
.activity-log-table th,
.activity-log-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.activity-log-table th {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.activity-category-pill {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e5f1ff;
  color: #0870df;
  font-size: 12px;
  font-weight: 900;
}
.sm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.sm-main-stack,
.sm-side-stack {
  display: grid;
  gap: 14px;
}
.sm-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
}
.sm-summary-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.sm-summary-grid dt,
.sm-summary-grid dd {
  margin: 0;
  font-size: 13px;
}
.sm-summary-grid dd {
  color: #0f213a;
  font-weight: 700;
  text-align: right;
}
.sm-card-link {
  display: inline-flex;
  margin-top: 14px;
  font-size: 13px;
}
.sm-usage-list,
.sm-entitlement-list,
.sm-action-list,
.sm-activity-list {
  display: grid;
  gap: 10px;
}
.sm-usage-row {
  display: grid;
  grid-template-columns: 120px minmax(120px, 1fr) 120px 48px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.sm-usage-row div {
  height: 7px;
  border-radius: 999px;
  background: #e1e7ef;
  overflow: hidden;
}
.sm-usage-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0870df;
}
.sm-addon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sm-addon-grid article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fbfdff;
}
.sm-addon-grid span,
.sm-action-list span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5f1ff;
  color: #0870df;
  font-size: 10px;
  font-weight: 800;
}
.sm-action-list button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 7px;
}
.sm-action-list i {
  color: #66809b;
  font-style: normal;
}
.sm-entitlement-list div {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
}
.sm-entitlement-list span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ddf6e3;
  color: #16823b;
  font-size: 11px;
}
.sm-entitlement-list em {
  color: #52647a;
  font-style: normal;
}
.sm-alert-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.sm-alert-card p {
  margin: 0;
  color: #4e6076;
  font-size: 13px;
}
.sm-alert-card button {
  justify-self: start;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sm-alert-card.danger {
  border-color: #ffc7c7;
  background: #fff7f7;
  color: #c81e1e;
}
.sm-alert-card.warning {
  border-color: #f3d08b;
  background: #fffaf0;
  color: #b86800;
}
.sm-activity-list div {
  position: relative;
  display: grid;
  gap: 3px;
  padding-left: 22px;
}
.sm-activity-list span {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2fb86a;
}
@media (max-width: 1180px) {
  .sm-kpi-grid,
  .subscription-summary-cards,
  .sm-addon-grid,
  .add-ons-preview-grid,
  .available-add-ons-grid,
  .sm-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .sm-page-header,
  .sm-header-actions {
    display: grid;
    justify-content: stretch;
  }
  .sm-kpi-grid,
  .subscription-summary-cards,
  .sm-summary-grid,
  .subscription-summary-fields,
  .sm-addon-grid,
  .add-ons-preview-grid,
  .available-add-ons-grid,
  .sm-skeleton-grid,
  .sm-usage-row,
  .usage-limit-row {
    grid-template-columns: 1fr;
  }
  .add-ons-preview-head {
    display: grid;
  }
  .recent-invoices-table-wrap {
    overflow: visible;
  }
  .recent-invoices-table,
  .recent-invoices-table thead,
  .recent-invoices-table tbody,
  .recent-invoices-table tr,
  .recent-invoices-table td {
    display: block;
  }
  .recent-invoices-table thead {
    display: none;
  }
  .recent-invoices-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .recent-invoices-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }
  .recent-invoices-table td:last-child {
    border-bottom: 0;
  }
  .recent-invoices-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
  .subscription-modal-body {
    grid-template-columns: 1fr;
  }
  .subscription-modal-actions {
    display: grid;
  }
  .billing-tab-actions,
  .billing-tab-grid {
    display: grid;
  }
  .billing-tab-grid,
  .billing-tab-fields div {
    grid-template-columns: 1fr;
  }
  .usage-tab-toolbar,
  .usage-tab-card-head {
    display: grid;
  }
  .usage-tab-toolbar label,
  .usage-tab-grid {
    max-width: none;
    grid-template-columns: 1fr;
  }
  .usage-summary-table-wrap {
    overflow: visible;
  }
  .usage-summary-table,
  .usage-summary-table thead,
  .usage-summary-table tbody,
  .usage-summary-table tr,
  .usage-summary-table td {
    display: block;
  }
  .usage-summary-table thead {
    display: none;
  }
  .usage-summary-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .usage-summary-table td {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }
  .usage-summary-table td:last-child {
    border-bottom: 0;
  }
  .usage-summary-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
  .invoices-tab-toolbar {
    display: grid;
  }
  .invoices-tab-table-wrap {
    overflow: visible;
  }
  .invoices-tab-table,
  .invoices-tab-table thead,
  .invoices-tab-table tbody,
  .invoices-tab-table tr,
  .invoices-tab-table td {
    display: block;
  }
  .invoices-tab-table thead {
    display: none;
  }
  .invoices-tab-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .invoices-tab-table td {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }
  .invoices-tab-table td:last-child {
    border-bottom: 0;
  }
  .invoices-tab-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
  .invoices-tab-actions {
    min-width: 0;
  }
  .add-ons-tab-table-wrap {
    overflow: visible;
  }
  .add-ons-tab-table,
  .add-ons-tab-table thead,
  .add-ons-tab-table tbody,
  .add-ons-tab-table tr,
  .add-ons-tab-table td,
  .add-ons-history-table,
  .add-ons-history-table thead,
  .add-ons-history-table tbody,
  .add-ons-history-table tr,
  .add-ons-history-table td {
    display: block;
  }
  .add-ons-tab-table thead,
  .add-ons-history-table thead {
    display: none;
  }
  .add-ons-tab-table tr,
  .add-ons-history-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .add-ons-tab-table td,
  .add-ons-history-table td {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }
  .add-ons-tab-table td:last-child,
  .add-ons-history-table td:last-child {
    border-bottom: 0;
  }
  .add-ons-tab-table td::before,
  .add-ons-history-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
  .add-ons-tab-actions {
    min-width: 0;
  }
  .entitlements-tab-head {
    display: grid;
  }
  .entitlements-tab-table-wrap {
    overflow: visible;
  }
  .entitlements-tab-table,
  .entitlements-tab-table thead,
  .entitlements-tab-table tbody,
  .entitlements-tab-table tr,
  .entitlements-tab-table td {
    display: block;
  }
  .entitlements-tab-table thead {
    display: none;
  }
  .entitlements-tab-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .entitlements-tab-table tr.has-override {
    background: #fffaf0;
  }
  .entitlements-tab-table td {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }
  .entitlements-tab-table td:last-child {
    border-bottom: 0;
  }
  .entitlements-tab-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
  .entitlements-tab-actions {
    min-width: 0;
  }
  .settings-tab-grid,
  .settings-tab-fields div {
    grid-template-columns: 1fr;
  }
  .activity-log-toolbar {
    display: grid;
  }
  .activity-log-table-wrap {
    overflow: visible;
  }
  .activity-log-table,
  .activity-log-table thead,
  .activity-log-table tbody,
  .activity-log-table tr,
  .activity-log-table td {
    display: block;
  }
  .activity-log-table thead {
    display: none;
  }
  .activity-log-table tr {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
  }
  .activity-log-table td {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eef2f6;
  }
  .activity-log-table td:last-child {
    border-bottom: 0;
  }
  .activity-log-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-weight: 900;
  }
  .usage-limits-head {
    display: grid;
  }
  .usage-limits-head span {
    text-align: left;
  }
  .usage-limit-row b {
    text-align: left;
  }
  .feature-entitlement-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .feature-entitlement-row em,
  .feature-entitlement-row b {
    grid-column: 2;
  }
  .sm-summary-grid div {
    display: grid;
  }
  .sm-summary-grid dd {
    text-align: left;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shell-nimblybooks {
  --nb-navy: #061f45;
  --nb-blue: #1264e8;
  --nb-line: #dbe5f1;
}
.shell-nimblybooks .sidebar,
.shell-nimblybooks .workspace-topbar {
  background: linear-gradient(180deg, #082854 0%, #05204a 100%);
}
.shell-nimblybooks .brand-lockup {
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.rn-period-selector {
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
}
.rn-period-selector span {
  font-size: 13px;
  font-weight: 800;
}
.rn-period-selector strong {
  font-size: 12px;
  font-weight: 650;
  color: rgba(255,255,255,.76);
}
.nb-page {
  display: grid;
  gap: 18px;
  color: #0b1736;
}
.nb-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #71819a;
  font-size: 13px;
  font-weight: 800;
}
.nb-breadcrumbs a {
  color: #1264e8;
}
.nb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.nb-header h1 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: 0;
}
.nb-header p {
  margin: 0;
  color: #5f6f8a;
}
.nb-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.nb-license-chip,
.nb-tax-chip,
.nb-embedded {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #bcd4fb;
  border-radius: 7px;
  background: #edf5ff;
  color: #075bcb;
  font-size: 13px;
  font-weight: 850;
}
.nb-tax-chip {
  border-color: #bdebd3;
  background: #ebfff3;
  color: #087446;
}
.nb-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.nb-metrics.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nb-metrics article,
.nb-card {
  border: 1px solid var(--nb-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 35, 72, .06);
}
.nb-metrics article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-areas: "icon small" "icon strong" "icon em";
  gap: 3px 12px;
  min-height: 112px;
  padding: 16px;
  align-items: center;
}
.nb-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.nb-icon.green { background: #21a96e; }
.nb-icon.blue { background: #1264e8; }
.nb-icon.orange { background: #f97316; }
.nb-icon.violet { background: #8b5cf6; }
.nb-icon.gold { background: #c88a07; }
.nb-icon.cyan { background: #0891b2; }
.nb-metrics small {
  grid-area: small;
  color: #172044;
  font-weight: 850;
}
.nb-metrics strong {
  grid-area: strong;
  font-size: 21px;
}
.nb-metrics em {
  grid-area: em;
  color: #11895a;
  font-style: normal;
  font-size: 12px;
}
.nb-metrics em.down {
  color: #dc2626;
}
.nb-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.nb-dashboard-grid,
.nb-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}
.nb-workspace-wide {
  grid-template-columns: minmax(0, 1fr);
}
.nb-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nb-card {
  padding: 18px;
}
.nb-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
}
.nb-card p {
  color: #5f6f8a;
}
.nb-wide {
  grid-column: span 2;
}
.nb-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.nb-card-head h2 {
  margin: 0;
}
.nb-review-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.nb-review-grid span,
.nb-review-grid a {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 86px;
  padding: 13px 8px;
  border: 1px solid #e2e9f3;
  border-radius: 7px;
  text-align: center;
  color: inherit;
}
.nb-review-grid strong {
  color: #1264e8;
  font-size: 25px;
}
.nb-review-grid small {
  color: #172044;
  font-weight: 800;
}
.nb-action-list,
.nb-checklist,
.nb-main-stack,
.nb-side-stack {
  display: grid;
  gap: 10px;
}
.nb-action-list a,
.nb-checklist span,
.nb-checklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #e2e9f3;
  border-radius: 7px;
  color: #172044;
  font-weight: 800;
}
.nb-action-list a::after {
  content: ">";
  color: #7d8ca5;
}
.nb-checklist span::before,
.nb-checklist a::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #c9d5e6;
  border-radius: 50%;
}
.nb-checklist span,
.nb-checklist a {
  justify-content: flex-start;
}
.nb-checklist span.done::before,
.nb-checklist a.done::before {
  border-color: #24aa6a;
  background: #24aa6a;
}
.nb-warning-strip,
.nb-alert-card {
  border-color: #fed7aa;
  background: #fff7ed;
}
.nb-warning-strip {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  color: #9a3412;
  font-weight: 850;
}
.nb-issue-list {
  display: grid;
  gap: 10px;
}
.nb-issue-list span {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background: #fff;
}
.nb-issue-list small {
  color: #6b7280;
}
.nb-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 420px;
}
.nb-inline-form select {
  flex: 1;
  min-width: 180px;
}
.nb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #172044;
  font-weight: 800;
}
.nb-row-warning {
  background: #fff7ed;
}
.nb-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #b9d6ff;
  border-radius: 8px;
  background: #eef6ff;
  color: #0b5ed7;
  font-weight: 850;
}
.nb-info-strip span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #24aa6a;
}
.nb-review-tabs,
.nb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.nb-review-tabs a,
.nb-tabs a {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: #fff;
  color: #172044;
  font-weight: 850;
}
.nb-review-tabs a.active,
.nb-tabs a.active {
  border-color: #1264e8;
  background: #1264e8;
  color: #fff;
}
.nb-review-workspace {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.nb-expense-workspace {
  grid-template-columns: minmax(0, 1fr) 330px;
}
.nb-compact-form {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #f8fbff;
}
.nb-compact-form .btn {
  align-self: end;
}
.nb-inline-form input,
.nb-inline-form select {
  max-width: 150px;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid #cfdae7;
  border-radius: 6px;
  font-size: 12px;
}
.nb-review-kpis {
  margin-bottom: 16px;
}
.nb-review-table th:last-child,
.nb-review-table td:last-child {
  min-width: 260px;
}
.nb-row-actions,
.nb-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nb-row-actions form,
.nb-mini-actions {
  margin: 0;
}
.nb-row-actions button,
.nb-mini-actions button,
.nb-rule-list button {
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #cbd7e8;
  border-radius: 6px;
  background: #fff;
  color: #0b5ed7;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}
.nb-review-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nb-review-mini-grid p {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f8;
}
.nb-rule-list {
  display: grid;
  gap: 10px;
}
.nb-rule-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e9f3;
  border-radius: 7px;
}
.nb-rule-list small {
  color: #61708a;
}
.nb-bank-account-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.nb-bank-account-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.nb-bank-account-card div {
  display: grid;
  gap: 4px;
}
.nb-bank-account-card small,
.nb-muted {
  color: #61708a;
}
.nb-icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: #fff;
  color: #172044;
  font-weight: 900;
}
.nb-empty-state {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed #cbd7e8;
  border-radius: 8px;
  color: #61708a;
}
.nb-bank-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nb-bank-tabs span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(18, 100, 232, .1);
  color: #1264e8;
  text-align: center;
}
.nb-bank-tabs a.active span {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.nb-bank-table th:last-child,
.nb-bank-table td:last-child {
  min-width: 360px;
}
.nb-bank-actions {
  align-items: flex-start;
}
.nb-bank-actions a {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #cbd7e8;
  border-radius: 6px;
  background: #fff;
  color: #0b5ed7;
  font-size: 12px;
  font-weight: 850;
}
.nb-action-form {
  display: inline-flex;
  gap: 6px;
}
.nb-action-form select,
.nb-action-form input {
  max-width: 170px;
  min-height: 28px;
  padding: 3px 8px;
  font-size: 12px;
}
.nb-split-details {
  position: relative;
}
.nb-split-details summary {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #cbd7e8;
  border-radius: 6px;
  background: #fff;
  color: #0b5ed7;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
}
.nb-split-details form {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 34px;
  display: grid;
  gap: 7px;
  width: 260px;
  padding: 10px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 35, 72, .16);
}
.nb-split-details select,
.nb-split-details input {
  min-height: 32px;
  font-size: 12px;
}
.nb-summary-list {
  display: grid;
  gap: 0;
  margin: 10px 0 14px;
}
.nb-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}
.nb-summary-list dt {
  color: #44546f;
}
.nb-summary-list dd {
  margin: 0;
  font-weight: 850;
}
.nb-positive {
  color: #138a4d;
}
.nb-toggle-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf2f8;
  color: #61708a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.nb-toggle-pill.on {
  background: #dcfce7;
  color: #087446;
}
.nb-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nb-connection-grid a {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  color: #172044;
  font-weight: 850;
}
.nb-connection-grid small {
  color: #61708a;
  font-weight: 600;
}
.nb-customer-filterbar {
  grid-template-columns: minmax(260px, 1fr) minmax(160px, .4fr) auto;
}
.nb-customer-table th:first-child,
.nb-customer-table td:first-child {
  min-width: 260px;
}
.nb-customer-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.nb-customer-ledger-grid section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #fbfdff;
}
.nb-customer-ledger-grid h3 {
  margin: 0 0 4px;
  font-size: 13px;
}
.nb-customer-ledger-grid p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2f8;
}
.nb-customer-ledger-grid p:last-child {
  border-bottom: 0;
}
.nb-customer-ledger-grid small {
  grid-column: 1 / -1;
  color: #61708a;
}
.nb-ledger-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.nb-ledger-timeline span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  background: #fff;
}
.nb-ledger-timeline small {
  color: #61708a;
}
.nb-mapping-table td:nth-child(2) {
  max-width: 360px;
}
.nb-chart-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.nb-template-source {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nb-template-source div {
  display: grid;
  gap: 3px;
}
.nb-template-source small,
.nb-template-source em {
  color: #61708a;
  font-style: normal;
}
.nb-template-source strong {
  color: #0b1736;
  font-size: 18px;
}
.nb-chart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 35, 72, .06);
}
.nb-mini-chart {
  min-height: 180px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.nb-mini-chart span {
  flex: 1;
  min-width: 16px;
  border-radius: 6px 6px 0 0;
  background: #2563eb;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .16);
}
.nb-mini-chart p {
  margin: auto;
  color: #61708a;
  font-weight: 800;
}
.nb-tax-source-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.nb-tax-source-map span {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
}
.nb-tax-source-map strong,
.nb-tax-source-map small {
  display: block;
}
.nb-tax-source-map small {
  color: #61708a;
}
.nb-tax-source-map .nb-tax-engine-node {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.nb-chart-workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
}
.nb-chart-filterbar {
  grid-template-columns: minmax(150px, .8fr) minmax(130px, .7fr) auto minmax(240px, 1.2fr) auto;
}
.nb-chart-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #172044;
  font-weight: 850;
}
.nb-chart-table .nb-chart-group-row td {
  background: #f2f6fb;
  color: #172044;
  font-weight: 900;
}
.nb-chart-table .nb-selected-row td {
  background: #eef5ff;
}
.nb-account-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0b5ed7;
  font-weight: 850;
}
.nb-account-link.depth-1 { padding-left: 18px; }
.nb-account-link.depth-2 { padding-left: 36px; }
.nb-account-link.depth-3 { padding-left: 54px; }
.nb-negative {
  color: #9f1239;
  font-weight: 850;
}
.nb-account-drawer {
  position: sticky;
  top: 14px;
}
.nb-account-hero {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6edf6;
}
.nb-account-hero strong,
.nb-account-hero small {
  display: block;
}
.nb-account-hero small {
  color: #61708a;
}
.nb-detail-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
}
.nb-detail-list div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}
.nb-detail-list dt,
.nb-detail-list dd {
  margin: 0;
}
.nb-detail-list dt {
  color: #61708a;
}
.nb-detail-list dd {
  color: #0b1736;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.nb-drawer-form {
  grid-template-columns: 1fr;
}
.nb-drawer-form .nb-span-2 {
  grid-column: auto;
}
.nb-activity-list {
  display: grid;
  gap: 8px;
}
.nb-activity-list span {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}
.nb-activity-list span:last-child {
  border-bottom: 0;
}
.nb-activity-list strong {
  color: #0b1736;
}
.nb-activity-list small {
  color: #5f6f8a;
}
.nb-setup-page {
  gap: 20px;
}
.nb-setup-progress-card {
  display: grid;
  gap: 3px;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 35, 72, .06);
}
.nb-setup-progress-card span {
  color: #5f6f8a;
  font-size: 13px;
  font-weight: 800;
}
.nb-setup-progress-card strong {
  color: #1264e8;
}
.nb-setup-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nb-setup-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #4f5f78;
  text-align: center;
}
.nb-setup-steps li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dbe5f1;
  z-index: 0;
}
.nb-setup-steps li:first-child::before {
  left: 50%;
}
.nb-setup-steps li:last-child::before {
  right: 50%;
}
.nb-setup-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd7e8;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}
.nb-setup-steps .active span {
  border-color: #1264e8;
  background: #1264e8;
  color: #fff;
}
.nb-setup-steps .done span {
  border-color: #24aa6a;
  background: #e8fff2;
  color: #148456;
}
.nb-setup-steps small {
  font-weight: 800;
}
.nb-setup-panel {
  display: grid;
  gap: 18px;
}
.nb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.nb-form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nb-span-2 {
  grid-column: span 2;
}
.nb-form-grid label,
.nb-mobile-options label {
  display: grid;
  gap: 7px;
  color: #172044;
  font-weight: 850;
}
.nb-form-grid input,
.nb-form-grid select,
.nb-form-grid textarea,
.nb-inline-form select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #dbe5f1;
  border-radius: 7px;
  background: #fff;
  color: #172044;
}
.nb-form-grid textarea {
  min-height: 82px;
  resize: vertical;
  font: inherit;
}
.nb-toggle-field {
  align-self: end;
  min-height: 40px;
}
.nb-template-grid,
.nb-chart-preview-grid,
.nb-choice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.nb-template-card,
.nb-choice-button,
.nb-mini-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
}
.nb-template-card.selected {
  border-color: #1264e8;
  box-shadow: 0 0 0 2px rgba(18,100,232,.12);
}
.nb-template-card input {
  justify-self: end;
}
.nb-template-card p,
.nb-choice-button span {
  margin: 0;
  color: #5f6f8a;
}
.nb-template-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #24304f;
}
.nb-chart-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nb-chart-group {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
}
.nb-chart-group h3 {
  margin: 0 0 4px;
}
.nb-chart-group span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f8;
}
.nb-chart-group span:last-child {
  border-bottom: 0;
}
.nb-setup-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}
.nb-choice-button {
  cursor: pointer;
  text-align: left;
}
.nb-choice-button:hover {
  border-color: #1264e8;
}
.nb-mobile-options {
  display: grid;
  gap: 12px;
}
.nb-mobile-options label {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e9f3;
  border-radius: 7px;
}
.nb-setup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.nb-completion-panel {
  justify-items: center;
  text-align: center;
}
.nb-complete-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e8fff2;
  color: #148456;
  font-weight: 950;
}
.nb-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 180px;
  padding: 20px 8px 0;
  border-bottom: 1px solid #dbe5f1;
}
.nb-bars span {
  display: grid;
  grid-template-columns: 12px 12px;
  gap: 4px;
  align-items: end;
}
.nb-bars i,
.nb-bars b {
  display: block;
  width: 12px;
}
.nb-bars i {
  background: #28a76c;
}
.nb-bars b {
  background: #ef4444;
}
.nb-bars small {
  grid-column: span 2;
  color: #61708a;
  font-size: 11px;
}
.nb-card-total {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 0;
}
.nb-donut {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 12px auto;
  border-radius: 50%;
  background: conic-gradient(#1264e8 0 64%, #ef4444 64% 100%);
  position: relative;
}
.nb-donut::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: #fff;
}
.nb-donut span {
  z-index: 1;
  font-weight: 900;
}
.nb-facts div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f7;
}
.nb-facts dt,
.nb-facts dd {
  margin: 0;
}
.nb-facts dt {
  color: #61708a;
}
.nb-facts dd {
  color: #0b1736;
  font-weight: 900;
}
.nb-filterbar {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(190px, .8fr) minmax(220px, 1.2fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}
.nb-filterbar input,
.nb-filterbar select {
  min-height: 40px;
  border: 1px solid #d2deed;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
}
.nb-table-wrap {
  overflow-x: auto;
}
.nb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.nb-table th,
.nb-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #e6edf6;
  text-align: left;
  vertical-align: middle;
}
.nb-table th {
  color: #52647a;
  font-size: 12px;
  font-weight: 900;
  background: #f8fbff;
}
.nb-table small {
  display: block;
  color: #61708a;
}
.nb-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e4f7ed;
  color: #087446;
  font-weight: 900;
}
.nb-status.warning {
  background: #fff4db;
  color: #b45309;
}
.nb-status.muted {
  background: #eef4fb;
  color: #52647d;
}
@media (max-width: 1280px) {
  .nb-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nb-chart-toolbar,
  .nb-dashboard-grid,
  .nb-workspace,
  .nb-chart-workspace,
  .nb-review-workspace,
  .nb-review-mini-grid,
  .nb-bank-account-strip,
  .nb-customer-ledger-grid,
  .nb-ledger-timeline {
    grid-template-columns: 1fr;
  }
  .nb-chart-actions {
    flex-wrap: wrap;
  }
  .nb-wide {
    grid-column: auto;
  }
}
@media (max-width: 860px) {
  .nb-header,
  .nb-header-actions,
  .nb-filterbar,
  .nb-chart-filterbar,
  .nb-form-grid-three {
    display: grid;
    justify-content: stretch;
  }
  .nb-form-grid,
  .nb-form-grid-three {
    grid-template-columns: 1fr;
  }
  .nb-span-2 {
    grid-column: auto;
  }
  .nb-metrics,
  .nb-metrics.compact,
  .nb-review-grid {
    grid-template-columns: 1fr;
  }
}
.ca-page {
  --ca-navy: #071f43;
  --ca-blue: #1264e8;
  --ca-border: #dbe3ef;
  --ca-muted: #61708a;
  --ca-bg: #f5f8fc;
  display: grid;
  gap: 20px;
  color: #0b1736;
}
.rn-shell-subnav {
  display: grid;
  gap: 2px;
  margin: -4px 0 8px 18px;
  padding: 8px 0 8px 12px;
  border-left: 1px solid rgba(255,255,255,.16);
}
.rn-shell-subnav a {
  padding: 6px 10px !important;
  min-height: 0 !important;
  border-radius: 7px !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.rn-shell-subnav a::before {
  content: "•";
  margin-right: 8px;
}
.rn-shell-subnav a.active {
  background: rgba(37,99,235,.95) !important;
  color: #fff !important;
}
.ca-header,
.ca-card {
  background: #fff;
  border: 1px solid var(--ca-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 35, 72, .06);
}
.ca-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
}
.ca-header h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}
.ca-header p,
.ca-card p {
  color: var(--ca-muted);
}
.ca-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ca-local-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ca-border);
  border-radius: 10px;
}
.ca-local-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #2f3d57;
  font-weight: 700;
  text-decoration: none;
}
.ca-local-nav a.active {
  background: #1264e8;
  color: #fff;
}
.ca-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ca-metrics article {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-areas: "icon small" "icon strong" "icon em";
  gap: 2px 16px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ca-border);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 35, 72, .05);
}
.ca-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}
.ca-icon.blue { background: linear-gradient(135deg, #0c6bea, #0649bf); }
.ca-icon.gold { background: linear-gradient(135deg, #f7b51b, #d99000); }
.ca-icon.green { background: linear-gradient(135deg, #1eb78a, #0a8c6d); }
.ca-icon.orange { background: linear-gradient(135deg, #f97316, #dc2626); }
.ca-icon.red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.ca-icon.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.ca-icon.teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.ca-icon.rust { background: linear-gradient(135deg, #f97316, #c2410c); }
.ca-metrics small { grid-area: small; color: #1d2b48; font-weight: 800; }
.ca-metrics strong { grid-area: strong; font-size: 25px; }
.ca-metrics em { grid-area: em; color: #0f9f6e; font-style: normal; font-size: 12px; }
.ca-overview {
  display: grid;
  gap: 18px;
}
.ca-overview-kpis {
  margin-bottom: 0;
}
.ca-grid {
  display: grid;
  gap: 18px;
}
.ca-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ca-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ca-card {
  padding: 18px;
}
.ca-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.ca-donut {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 14px auto;
  border-radius: 50%;
  background: conic-gradient(#1264e8 0 32%, #f4b21b 32% 56%, #18a999 56% 72%, #8b5dbf 72% 84%, #ec5b1b 84% 93%, #53657d 93% 100%);
  color: #0b1736;
  position: relative;
}
.ca-donut::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  background: #fff;
}
.ca-donut span,
.ca-donut small {
  z-index: 1;
}
.ca-donut span {
  font-size: 26px;
  font-weight: 800;
}
.ca-donut small {
  margin-top: 34px;
  color: var(--ca-muted);
}
.ca-legend {
  display: grid;
  gap: 8px;
}
.ca-legend span,
.ca-list-row,
.ca-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f7;
}
.ca-legend span {
  display: grid;
  grid-template-columns: 10px 1fr auto;
}
.ca-legend b {
  font-weight: 700;
}
.ca-legend strong,
.ca-alert-row span {
  font-weight: 800;
  color: #0b1736;
}
.ca-list-row {
  display: grid;
  grid-template-columns: 10px 1fr;
  justify-content: stretch;
}
.ca-list-row small {
  grid-column: 2;
  color: var(--ca-muted);
}
.ca-empty-state {
  padding: 18px;
  border: 1px dashed #ccd7e7;
  border-radius: 10px;
  background: #f8fbff;
}
.ca-placeholder-page {
  display: grid;
  gap: 14px;
}
.ca-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ca-muted);
  font-weight: 700;
}
.ca-breadcrumb a {
  color: var(--ca-blue);
  text-decoration: none;
}
.ca-placeholder-card {
  max-width: 760px;
  padding: 32px;
}
.ca-placeholder-card .ca-empty-icon {
  margin-bottom: 12px;
}
.ca-placeholder-subtitle {
  max-width: 620px;
  color: #334155;
  font-size: 17px;
  font-weight: 800;
}
.ca-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ca-legend i,
.ca-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ca-blue);
}
.ca-dot.green { background: #13a66b; }
.ca-filterbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, .7fr)) auto;
  gap: 12px;
  margin-bottom: 14px;
}
.ca-asset-filters {
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(145px, 1fr));
  align-items: end;
}
.ca-asset-filters label {
  margin: 0;
}
.ca-asset-filters .ca-search-field {
  grid-column: span 2;
}
.ca-loading {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}
.ca-table-wrap {
  overflow-x: auto;
}
.ca-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ca-table th,
.ca-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e8edf5;
  text-align: left;
  vertical-align: middle;
}
.ca-table th {
  color: #40516f;
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
}
.ca-table small {
  display: block;
  color: var(--ca-muted);
}
.ca-assets-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ca-assets-table td small {
  margin-top: 3px;
}
.ca-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ca-row-actions a,
.ca-row-actions button {
  border: 0;
  background: transparent;
  color: var(--ca-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.ca-pill,
.ca-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}
.ca-pill.blue { background: #e9f1ff; color: #0b5ed7; }
.ca-status.in-use,
.ca-status.available,
.ca-status.assigned {
  background: #dcfce7;
  color: #047857;
}
.ca-status.in-maintenance,
.ca-status.needs-inspection {
  background: #ffedd5;
  color: #c2410c;
}
.ca-status.out-of-service,
.ca-status.lost---missing,
.ca-status.retired,
.ca-status.disposed {
  background: #fee2e2;
  color: #b91c1c;
}
.ca-status.inactive {
  background: #f1f5f9;
  color: #64748b;
}
.ca-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 14px;
  color: var(--ca-muted);
}
.ca-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ca-pagination-actions span {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd7e8;
  border-radius: 8px;
  color: var(--ca-navy);
  font-weight: 800;
}
.ca-asset-detail {
  display: grid;
  gap: 16px;
}
.ca-detail-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--ca-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 35, 72, .05);
}
.ca-detail-titlebar h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.ca-detail-titlebar p {
  margin: 0;
  color: var(--ca-muted);
}
.ca-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--ca-border);
}
.ca-detail-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 14px;
  background: transparent;
  color: #344461;
  font-weight: 800;
  cursor: pointer;
}
.ca-detail-tabs button.active {
  color: var(--ca-blue);
  border-bottom-color: var(--ca-blue);
}
.ca-tab-panel {
  display: none;
}
.ca-tab-panel.active {
  display: block;
}
.ca-asset-summary-card {
  display: grid;
  gap: 14px;
}
.ca-detail-photo {
  display: grid;
  place-items: center;
  min-height: 170px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef5ff, #dbeafe);
  overflow: hidden;
}
.ca-detail-photo img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
}
.ca-detail-photo span {
  color: var(--ca-blue);
  font-size: 42px;
  font-weight: 900;
}
.ca-detail-list {
  display: grid;
  gap: 9px;
}
.ca-detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f7;
}
.ca-detail-list span {
  color: var(--ca-muted);
}
.ca-detail-list strong {
  text-align: right;
  color: var(--ca-navy);
}
.ca-status { background: #e6f8ee; color: #0a8a52; }
.ca-status.maintenance,
.ca-status.damaged { background: #fff1e7; color: #d94d00; }
.ca-status.lost,
.ca-status.retired { background: #fee2e2; color: #b91c1c; }
.ca-status.assigned,
.ca-status.in_use { background: #e7f0ff; color: #155fca; }
.ca-add-layout,
.ca-settings-layout,
.ca-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}
.ca-form-main {
  display: grid;
  gap: 16px;
}
.ca-form-grid {
  display: grid;
  gap: 14px;
}
.ca-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ca-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ca-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.ca-management-page .between {
  margin-bottom: 14px;
}
.ca-manager-table td:last-child {
  min-width: 150px;
}
.ca-page label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}
.ca-page input,
.ca-page select,
.ca-page textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  padding: 9px 11px;
  font: inherit;
  background: #fff;
}
.ca-page textarea {
  min-height: 78px;
}
.ca-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px;
}
.ca-toggle input {
  position: absolute;
  opacity: 0;
}
.ca-toggle span {
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: #c9d4e4;
  position: relative;
}
.ca-toggle span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  transition: .18s ease;
}
.ca-toggle input:checked + span {
  background: #1264e8;
}
.ca-toggle input:checked + span::after {
  transform: translateX(18px);
}
.ca-upload,
.ca-empty {
  display: grid;
  place-items: center;
  min-height: 90px;
  border: 1px dashed #b6c6da;
  border-radius: 8px;
  color: var(--ca-muted);
  background: #f8fbff;
}
.ca-summary-card {
  text-align: center;
}
.ca-empty-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 8px auto 16px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--ca-blue);
  font-size: 34px;
}
.ca-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e8f3;
}
.ca-progress span {
  display: block;
  height: 100%;
  background: var(--ca-blue);
}
.ca-detail-hero {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 18px;
}
.ca-asset-photo {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eaf2ff, #d9e8ff);
  color: var(--ca-blue);
  font-size: 60px;
  font-weight: 900;
}
.ca-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e6ecf5;
}
.ca-detail-facts span {
  color: var(--ca-muted);
}
.ca-detail-facts strong {
  display: block;
  color: #0b1736;
  margin-top: 4px;
}
.ca-drawer {
  position: sticky;
  top: 16px;
  align-self: start;
}
@media (max-width: 1180px) {
  .ca-metrics,
  .ca-grid.three,
  .ca-grid.four,
  .ca-asset-filters,
  .ca-detail-facts,
  .ca-form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ca-add-layout,
  .ca-settings-layout,
  .ca-split,
  .ca-detail-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .ca-header,
  .ca-actions,
  .ca-filterbar,
  .ca-asset-filters,
  .ca-detail-titlebar,
  .ca-pagination {
    display: grid;
  }
  .ca-asset-filters .ca-search-field {
    grid-column: auto;
  }
  .ca-metrics,
  .ca-grid.three,
  .ca-grid.four,
  .ca-form-grid.two,
  .ca-form-grid.three,
  .ca-detail-facts {
    grid-template-columns: 1fr;
  }
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.metric span,
.metric small {
  display: block;
  color: #63708a;
  font-size: 13px;
  font-weight: 700;
}
.metric strong {
  display: block;
  margin: 6px 0;
  color: #082f3d;
  font-size: 32px;
  line-height: 1;
}
.rn-logistics-map {
  position: relative;
  min-height: 280px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #d2e0ec;
  border-radius: 8px;
  background:
    linear-gradient(#d9e8ef 1px, transparent 1px),
    linear-gradient(90deg, #d9e8ef 1px, transparent 1px),
    #eef7fa;
  background-size: 78px 70px;
}
.rn-logistics-map::before,
.rn-logistics-map::after {
  content: "";
  position: absolute;
  height: 6px;
  border-radius: 99px;
  transform-origin: left center;
}
.rn-logistics-map::before {
  left: 18%;
  top: 28%;
  width: 48%;
  background: #0b95bf;
  transform: rotate(32deg);
}
.rn-logistics-map::after {
  left: 42%;
  top: 54%;
  width: 42%;
  background: #ffc42b;
  transform: rotate(-18deg);
}
.map-node {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}
.map-node.n1 { left: 16%; top: 24%; background: #0b95bf; }
.map-node.n2 { left: 40%; top: 50%; background: #ffc42b; }
.map-node.n3 { left: 57%; top: 37%; background: #16a34a; }
.map-node.n4 { left: 73%; top: 63%; background: #dc2626; }
.map-node.n5 { left: 76%; top: 42%; background: #7c3aed; }

.logistics-page {
  display: grid;
  gap: 18px;
}
.logistics-header,
.logistics-filterbar,
.logistics-card-head,
.logistics-row,
.logistics-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logistics-header h2 {
  margin: 0;
  color: #062f3b;
  font-size: clamp(32px, 4vw, 52px);
  line-height: .95;
}
.logistics-badges,
.logistics-tabs,
.logistics-mini-tabs,
.logistics-warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.logistics-source,
.logistics-status,
.logistics-priority,
.logistics-warning-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.logistics-source {
  color: #0b3440;
  background: #edf4f8;
  border: 1px solid #d5e3ec;
}
.source-rentnimbly { background: #e5f7ff; color: #00779b; }
.source-service,
.source-servicenimbly { background: #e8f8ee; color: #087a39; }
.source-crm { background: #f0eafe; color: #6035c9; }
.source-manual { background: #fff5dc; color: #9a5b00; }
.source-internal { background: #eef2f7; color: #45546a; }
.source-fleet { background: #e0f2fe; color: #075985; }
.source-staff { background: #ede9fe; color: #5b21b6; }
.source-api,
.source-logistics { background: #f1f5f9; color: #334155; }
.logistics-tabs {
  padding: 6px;
  border: 1px solid #d7e3ee;
  border-radius: 8px;
  background: #fff;
}
.logistics-tabs a,
.logistics-side-tabs a {
  color: #5c6e89;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.logistics-tabs a {
  padding: 9px 14px;
  border-radius: 7px;
}
.logistics-tabs a.active,
.logistics-side-tabs a.active {
  color: #062f3b;
  background: #e7f3f8;
}
.logistics-filterbar {
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.logistics-filterbar label,
.logistics-date {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.logistics-filterbar select,
.logistics-filterbar input,
.logistics-date input,
.logistics-card select {
  min-height: 40px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.logistics-metrics,
.logistics-grid {
  display: grid;
  gap: 18px;
}
.logistics-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.logistics-metrics article,
.logistics-card {
  min-width: 0;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.logistics-metrics article {
  padding: 20px;
}
.logistics-metrics span,
.logistics-metrics small {
  display: block;
  color: #60718b;
  font-size: 13px;
  font-weight: 800;
}
.logistics-metrics strong {
  display: block;
  margin: 10px 0 12px;
  color: #062f3b;
  font-size: 42px;
  line-height: 1;
}
.logistics-metrics .tone-green { border-color: #bee7cf; }
.logistics-metrics .tone-blue { border-color: #bfe2f0; }
.logistics-metrics .tone-purple { border-color: #d8ccfb; }
.logistics-metrics .tone-amber { border-color: #f4dda3; }
.logistics-metrics .tone-red { border-color: #fecdd3; }
.logistics-metrics .tone-slate { border-color: #cbd5e1; }
.logistics-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.logistics-grid.three { grid-template-columns: 1fr 1.35fr .9fr; }
.logistics-grid.map-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.logistics-grid.settings-layout { grid-template-columns: 260px minmax(0, 1fr); }
.logistics-card {
  padding: 24px;
}
.logistics-card h3 {
  margin: 0 0 6px;
  color: #062f3b;
  font-size: 30px;
  line-height: 1.05;
}
.logistics-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.logistics-route-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.logistics-route-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(320px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.logistics-route-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logistics-route-title > div {
  min-width: 0;
}
.logistics-route-title strong {
  display: block;
  color: #062f3b;
  font-size: 18px;
  font-weight: 900;
}
.logistics-route-title small {
  display: block;
  margin-top: 4px;
  color: #60718b;
  font-weight: 800;
}
.logistics-route-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 8px;
}
.logistics-route-stats span {
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f9fc;
}
.logistics-route-stats b,
.logistics-route-stats small {
  display: block;
}
.logistics-route-stats b {
  color: #062f3b;
  font-size: 15px;
}
.logistics-route-stats small {
  margin-top: 2px;
  color: #60718b;
  font-size: 11px;
  font-weight: 900;
}
.dispatch-board-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}
.dispatch-panel {
  min-height: 620px;
}
.dispatch-controls,
.dispatch-stop-list,
.dispatch-route-columns,
.dispatch-assignment-form,
.dispatch-action-stack {
  display: grid;
  gap: 12px;
}
.dispatch-controls {
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}
.dispatch-controls label,
.dispatch-assignment-form label {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.dispatch-controls input,
.dispatch-controls select,
.dispatch-assignment-form select {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.dispatch-assignment-form select[multiple] {
  min-height: 92px;
}
.dispatch-stop-card,
.dispatch-route-card,
.dispatch-route-stop {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.dispatch-stop-card {
  padding: 14px;
  cursor: grab;
}
.dispatch-stop-card:active,
.dispatch-route-stop:active {
  cursor: grabbing;
}
.dispatch-stop-top,
.dispatch-stop-footer,
.dispatch-route-card header,
.dispatch-route-meta,
.dispatch-route-stop,
.dispatch-stop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dispatch-stop-top,
.dispatch-stop-footer,
.dispatch-route-card header,
.dispatch-route-meta {
  justify-content: space-between;
}
.dispatch-stop-card h4 {
  margin: 12px 0 6px;
  color: #062f3b;
  font-size: 18px;
}
.dispatch-stop-card p {
  margin: 0 0 12px;
  color: #60718b;
  font-weight: 700;
}
.dispatch-stop-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 13px;
}
.dispatch-stop-card dt {
  color: #60718b;
  font-weight: 900;
}
.dispatch-stop-card dd {
  margin: 0;
  color: #172033;
  font-weight: 800;
}
.dispatch-warning-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #9a3a00;
  background: #fff1c8;
  font-weight: 900;
}
.dispatch-route-builder {
  display: grid;
  gap: 16px;
}
.dispatch-route-columns {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  align-items: start;
}
.dispatch-route-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 16px;
}
.dispatch-route-card header strong {
  display: block;
  color: #062f3b;
  font-size: 18px;
  font-weight: 900;
}
.dispatch-route-card header small,
.dispatch-route-card header em {
  display: block;
  margin-top: 3px;
  color: #60718b;
  font-style: normal;
  font-weight: 800;
}
.dispatch-route-meta {
  justify-content: start;
  flex-wrap: wrap;
}
.dispatch-route-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #45546a;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 900;
}
.dispatch-dropzone {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 10px;
  border: 1px dashed #b8cada;
  border-radius: 8px;
  background: #f8fbfd;
}
.dispatch-route-stop {
  min-width: 0;
  padding: 12px;
  cursor: grab;
}
.dispatch-route-stop > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.dispatch-route-stop strong,
.dispatch-route-stop small {
  display: block;
}
.dispatch-route-stop strong {
  color: #062f3b;
  font-weight: 900;
}
.dispatch-route-stop small {
  margin-top: 3px;
  color: #60718b;
  font-weight: 800;
}
.dispatch-stop-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dispatch-stop-actions .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}
.dispatch-stop-actions span {
  color: #075985;
  font-size: 12px;
  font-weight: 900;
}
.dispatch-assignment-panel .logistics-map-mini {
  margin: 14px 0;
}
.dispatch-action-stack {
  margin-top: 16px;
}
.logistics-map-view,
.logistics-map-shell {
  display: grid;
  gap: 18px;
}
.map-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) auto repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
.map-toolbar label {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.map-toolbar input,
.map-toolbar select {
  min-height: 40px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.logistics-map-shell {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}
.logistics-map-card {
  overflow: visible;
}
.logistics-map-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.logistics-map-summary span {
  min-height: 58px;
  padding: 10px;
  border-radius: 8px;
  background: #f6f9fc;
}
.logistics-map-summary b,
.logistics-map-summary small {
  display: block;
}
.logistics-map-summary b {
  color: #062f3b;
  font-size: 20px;
}
.logistics-map-summary small {
  color: #60718b;
  font-size: 11px;
  font-weight: 900;
}
.logistics-map-canvas {
  position: relative;
  min-height: 620px;
  overflow: visible;
  border: 1px solid #d2e0ec;
  border-radius: 8px;
  background:
    linear-gradient(#d9e8ef 1px, transparent 1px),
    linear-gradient(90deg, #d9e8ef 1px, transparent 1px),
    #eef7fa;
  background-size: 80px 70px;
}
.logistics-map-line {
  position: absolute;
  left: var(--line-left);
  top: var(--line-top);
  width: var(--line-width);
  height: 6px;
  border-radius: 999px;
  transform: rotate(var(--line-rotation));
  transform-origin: left center;
  opacity: .86;
}
.logistics-map-line.published {
  background: #0b95bf;
}
.logistics-map-line.draft {
  background: repeating-linear-gradient(90deg, #f5c12e, #f5c12e 12px, transparent 12px, transparent 18px);
}
.logistics-map-marker {
  position: absolute;
  z-index: 3;
}
.logistics-map-marker summary {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(6, 47, 59, .18);
}
.logistics-map-marker summary::-webkit-details-marker {
  display: none;
}
.marker-rental-delivery summary,
.map-legend .marker-rental-delivery { background: #0b95bf; }
.marker-rental-pickup summary,
.map-legend .marker-rental-pickup { background: #f5c12e; color: #062f3b; }
.marker-service summary,
.map-legend .marker-service { background: #16a34a; }
.marker-appointment summary,
.map-legend .marker-appointment { background: #7c3aed; }
.marker-manual summary,
.map-legend .marker-manual { background: #f59e0b; }
.marker-internal summary,
.map-legend .marker-internal { background: #475569; }
.marker-warning summary,
.map-legend .marker-warning { background: #dc2626; }
.marker-warehouse summary,
.map-legend .marker-warehouse { background: #062f3b; }
.map-stop-preview {
  position: absolute;
  left: 42px;
  top: -8px;
  width: 260px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.map-stop-preview strong,
.map-stop-preview small {
  display: block;
}
.map-stop-preview strong {
  color: #062f3b;
  font-size: 16px;
}
.map-stop-preview small,
.map-stop-preview p {
  color: #60718b;
  font-weight: 800;
}
.map-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.map-preview-actions .btn {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}
.map-side-panel {
  position: sticky;
  top: 16px;
}
.map-legend {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #172033;
  font-weight: 900;
}
.map-legend i {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.logistics-row {
  min-height: 64px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.logistics-row > div {
  min-width: 0;
  flex: 1;
}
.logistics-row strong,
.logistics-facts dd {
  color: #062f3b;
  font-size: 17px;
  font-weight: 900;
}
.logistics-row small {
  display: block;
  margin-top: 4px;
  color: #60718b;
  font-weight: 700;
}
.logistics-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #06313e;
  background: #e8f3f8;
  font-weight: 900;
  flex: 0 0 auto;
}
.status-draft,
.status-unscheduled { color: #5f6f84; background: #eef2f7; }
.status-needs-review,
.status-failed { color: #9b3d00; background: #fff4df; }
.status-scheduled,
.status-assigned,
.status-routed { color: #075985; background: #e5f5ff; }
.status-published,
.status-completed,
.status-optimized { color: #079347; background: #e6f8ef; }
.status-in-progress,
.status-en-route,
.status-arrived { color: #8a5600; background: #fff5d8; }
.status-cancelled,
.status-rescheduled { color: #9f1239; background: #ffe4e6; }
.priority-normal { color: #075985; background: #e5f5ff; }
.priority-low { color: #4b6478; background: #eef2f7; }
.priority-high { color: #9a5b00; background: #fff1c8; }
.priority-urgent { color: #b91c1c; background: #fee2e2; }
.logistics-warning,
.logistics-error {
  color: #9a3a00;
  background: #fff5e9;
}
.logistics-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}
.logistics-warning span {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 900;
}
.logistics-warning strong,
.logistics-warning small {
  display: block;
}
.logistics-warning strong {
  color: #7c2d12;
}
.logistics-warning small {
  margin-top: 3px;
  color: #9a4d16;
}
.logistics-warning-badge {
  margin-top: 14px;
  color: #9a3a00;
  background: #fff5e9;
}
.logistics-empty,
.logistics-loading {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed #bfd0e1;
  border-radius: 8px;
  color: #60718b;
  background: #f8fbfd;
  font-weight: 800;
}
.logistics-loading {
  background: repeating-linear-gradient(90deg, #f8fbfd, #f8fbfd 18px, #edf4f8 18px, #edf4f8 36px);
}
.logistics-map-mini {
  min-height: 230px;
  border: 1px solid #d3e1ed;
  border-radius: 8px;
  background:
    linear-gradient(#d8e7ef 1px, transparent 1px),
    linear-gradient(90deg, #d8e7ef 1px, transparent 1px),
    #eef7fa;
  background-size: 80px 70px;
}
.logistics-facts {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.logistics-facts dt {
  color: #60718b;
  font-weight: 900;
}
.logistics-facts dd {
  margin: 0;
}
.logistics-check,
.logistics-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  font-weight: 900;
}
.logistics-calendar-page,
.calendar-layout,
.calendar-main,
.calendar-view-panel,
.calendar-list {
  display: grid;
  gap: 18px;
}
.calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
.calendar-toolbar label {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.calendar-toolbar select {
  min-height: 40px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.calendar-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calendar-view-tabs a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #5c6e89;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.calendar-view-tabs a.active {
  color: #062f3b;
  background: #e7f3f8;
}
.calendar-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}
.calendar-unscheduled {
  position: sticky;
  top: 16px;
}
.calendar-unscheduled-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
  cursor: grab;
}
.calendar-unscheduled-card strong,
.calendar-unscheduled-card small {
  display: block;
}
.calendar-unscheduled-card strong {
  color: #062f3b;
}
.calendar-unscheduled-card small {
  color: #60718b;
  font-weight: 800;
}
.calendar-day-grid {
  display: grid;
  gap: 10px;
}
.calendar-item {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.calendar-item summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}
.calendar-item summary strong,
.calendar-item summary b {
  color: #062f3b;
}
.calendar-item-body {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
  color: #60718b;
  font-weight: 800;
}
.calendar-item-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calendar-item-actions .btn {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}
.logistics-calendar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.logistics-calendar > div {
  min-height: 260px;
  padding: 12px;
  border-left: 1px solid #d8e3ef;
}
.calendar-event {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  background: #0b95bf;
}
.calendar-event summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
}
.calendar-event small {
  display: block;
}
.calendar-event em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  opacity: .85;
}
.calendar-event i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #9a3a00;
  background: #fff1c8;
  font-style: normal;
  font-weight: 900;
}
.calendar-event.tone-green { background: #16a34a; }
.calendar-event.tone-purple { background: #7c3aed; }
.calendar-event.tone-amber { background: #f59e0b; }
.calendar-event.tone-draft,
.calendar-item.tone-draft,
.calendar-month-pill.tone-draft { background: #fff5d8; color: #8a5600; }
.calendar-event.tone-published,
.calendar-item.tone-published,
.calendar-month-pill.tone-published { background: #e6f8ef; color: #079347; }
.calendar-event.tone-rental-delivery,
.calendar-item.tone-rental-delivery,
.calendar-month-pill.tone-rental-delivery { background: #e5f7ff; color: #00779b; }
.calendar-event.tone-rental-pickup,
.calendar-item.tone-rental-pickup,
.calendar-month-pill.tone-rental-pickup { background: #fff5dc; color: #9a5b00; }
.calendar-event.tone-service,
.calendar-item.tone-service,
.calendar-month-pill.tone-service { background: #e8f8ee; color: #087a39; }
.calendar-event.tone-appointment,
.calendar-item.tone-appointment,
.calendar-month-pill.tone-appointment { background: #f0eafe; color: #6035c9; }
.calendar-event.tone-manual,
.calendar-item.tone-manual,
.calendar-month-pill.tone-manual { background: #fff5dc; color: #9a5b00; }
.calendar-event.tone-internal,
.calendar-item.tone-internal,
.calendar-month-pill.tone-internal { background: #eef2f7; color: #45546a; }
.calendar-event.tone-warning,
.calendar-item.tone-warning,
.calendar-month-pill.tone-warning { background: #fee2e2; color: #b91c1c; }
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.calendar-month-grid > div {
  min-height: 150px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.calendar-month-grid strong,
.calendar-month-grid small,
.calendar-month-pill {
  display: block;
}
.calendar-month-grid small {
  margin: 4px 0 10px;
  color: #60718b;
  font-weight: 800;
}
.calendar-month-pill {
  overflow: hidden;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-list-row {
  display: grid;
  grid-template-columns: 92px minmax(160px, 1fr) 100px 150px 110px 120px minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.calendar-list-row span,
.calendar-list-row strong {
  min-width: 0;
}
.routes-list-page,
.route-detail-page,
.route-detail-main,
.route-detail-side,
.route-stop-list {
  display: grid;
  gap: 18px;
}
.routes-filterbar {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(150px, 1fr));
  gap: 12px;
}
.routes-filterbar label,
.route-custom-name {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.routes-filterbar input,
.routes-filterbar select,
.route-custom-name input {
  min-height: 40px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.route-table-wrap {
  overflow-x: auto;
}
.route-table {
  min-width: 1180px;
}
.route-table .btn {
  min-height: 30px;
  margin: 2px;
  padding: 6px 9px;
  font-size: 12px;
}
.route-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.route-detail-hero h3 {
  font-size: 34px;
}
.route-detail-actions,
.route-stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.route-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.route-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.route-fact-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f8fbfd;
}
.route-fact-grid span,
.route-fact-grid strong {
  display: block;
}
.route-fact-grid span {
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.route-fact-grid strong {
  margin-top: 6px;
  color: #062f3b;
  font-size: 16px;
}
.route-detail-map {
  min-height: 240px;
}
.route-stop-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.route-stop-row > div:nth-child(2) {
  min-width: 0;
}
.route-stop-row strong,
.route-stop-row small {
  display: block;
}
.route-stop-row strong {
  color: #062f3b;
  font-size: 17px;
}
.route-stop-row small {
  margin-top: 4px;
  color: #60718b;
  font-weight: 800;
}
.route-stop-actions {
  grid-column: 1 / -1;
}
.route-stop-actions .btn {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}
.route-detail-side {
  position: sticky;
  top: 16px;
}
.history-row {
  padding: 10px 0;
  border-bottom: 1px solid #e4edf5;
}
.history-row strong,
.history-row small {
  display: block;
}
.history-row small {
  color: #60718b;
  font-weight: 800;
}
.logistics-side-tabs {
  display: grid;
  gap: 10px;
}
.logistics-side-tabs a {
  display: block;
  padding: 12px 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
}
.logistics-toggle input[type="checkbox"] {
  width: 46px;
  height: 24px;
  accent-color: #0694bd;
}
.logistics-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.logistics-pie {
  width: 220px;
  aspect-ratio: 1;
  margin: 24px auto;
  border-radius: 50%;
  background: conic-gradient(#0b95bf 0 78%, #f5c12e 78% 90%, #dc2626 90% 94%, #16a34a 94% 100%);
}
.logistics-bars {
  display: flex;
  align-items: end;
  gap: 24px;
  min-height: 260px;
  padding: 28px;
}
.logistics-bars span {
  width: 42px;
  border-radius: 8px 8px 0 0;
  background: #0b95bf;
}
.stops-list-page,
.stop-detail-page,
.stop-detail-main,
.stop-detail-side,
.stop-detail-main > section,
.notes-grid {
  display: grid;
  gap: 18px;
}
.stops-filterbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}
.stops-filterbar label {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.stops-filterbar input,
.stops-filterbar select {
  min-height: 40px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.stop-table-wrap {
  overflow-x: auto;
}
.stop-table {
  min-width: 1280px;
}
.stop-table td strong,
.stop-table td small {
  display: block;
}
.stop-table td small {
  margin-top: 3px;
  color: #60718b;
  font-weight: 800;
}
.stop-table .btn {
  min-height: 30px;
  margin: 2px;
  padding: 6px 9px;
  font-size: 12px;
}
.stop-detail-page {
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
}
.stop-detail-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.stop-detail-hero h2 {
  margin: 4px 0;
  color: #062f3b;
  font-size: 32px;
}
.stop-fact-grid,
.stop-detail-grid,
.readiness-grid,
.notes-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stop-fact-grid,
.stop-detail-grid,
.readiness-grid,
.notes-grid {
  display: grid;
  gap: 12px;
}
.stop-fact-grid article,
.readiness-check,
.source-record-card,
.checklist-row {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f8fbfd;
}
.stop-fact-grid article {
  min-height: 76px;
  padding: 12px;
}
.stop-fact-grid span,
.stop-fact-grid strong,
.stop-fact-grid small,
.readiness-check strong,
.readiness-check span,
.readiness-check small,
.source-record-card strong,
.source-record-card small {
  display: block;
}
.stop-fact-grid span {
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.stop-fact-grid strong {
  margin-top: 6px;
  color: #062f3b;
  font-size: 16px;
}
.stop-fact-grid small,
.readiness-check small,
.source-record-card small {
  margin-top: 5px;
  color: #60718b;
  font-weight: 800;
}
.embedded-card {
  padding: 16px;
  box-shadow: none;
}
.stop-map-preview {
  position: relative;
  min-height: 170px;
}
.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0b95bf;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(6, 47, 59, .18);
}
.readiness-check {
  padding: 12px;
}
.readiness-ready {
  border-color: #bfead3;
  background: #e9fbf1;
}
.readiness-review {
  border-color: #ffe6ae;
  background: #fff8e8;
}
.readiness-check span {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #60718b;
  background: #eef3f8;
  font-size: 12px;
  font-weight: 900;
}
.readiness-ready span {
  color: #079347;
  background: #ddf8eb;
}
.readiness-review span {
  color: #c67900;
  background: #fff0c7;
}
.checklist-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  font-weight: 900;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
}
.proof-grid span {
  color: #60718b;
  font-weight: 900;
}
.source-record-card {
  margin-bottom: 10px;
  padding: 12px;
}
.audit-row {
  padding: 10px 0;
  border-bottom: 1px solid #e4edf5;
}
.audit-row strong,
.audit-row small {
  display: block;
}
.audit-row small {
  color: #60718b;
  font-weight: 800;
}
.stop-detail-side {
  position: sticky;
  top: 16px;
}
.stop-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shipping-page,
.shipping-section {
  display: grid;
  gap: 18px;
}
.shipping-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.shipping-tabs {
  overflow-x: auto;
}
.shipping-warning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shipping-overview .logistics-card {
  min-height: 150px;
}
.shipping-hook-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shipping-hook-list span {
  padding: 7px 10px;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  color: #062f3b;
  background: #f8fbfd;
  font-size: 12px;
  font-weight: 900;
}
.shipping-table-wrap {
  overflow-x: auto;
}
.shipping-table {
  min-width: 1180px;
}
.shipping-table .btn {
  min-height: 30px;
  margin: 2px;
  padding: 6px 9px;
  font-size: 12px;
}
.rate-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rate-rule-grid article {
  min-height: 110px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f8fbfd;
}
.rate-rule-grid strong,
.rate-rule-grid span,
.rate-rule-grid small {
  display: block;
}
.rate-rule-grid span {
  width: fit-content;
  margin: 8px 0;
  padding: 4px 9px;
  border-radius: 999px;
  color: #60718b;
  background: #eef3f8;
  font-size: 12px;
  font-weight: 900;
}
.rate-rule-grid small {
  color: #60718b;
  font-weight: 800;
}
.logistics-settings-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.settings-rail {
  position: sticky;
  top: 16px;
}
.settings-external-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.settings-external-links a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #062f3b;
  background: #f8fbfd;
  font-weight: 900;
  text-decoration: none;
}
.settings-external-links small {
  color: #60718b;
  font-weight: 800;
}
.settings-main,
.settings-form {
  display: grid;
  gap: 18px;
}
.settings-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
}
.settings-control-grid,
.settings-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.settings-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  color: #1c2635;
  background: #f8fbfd;
  font-weight: 900;
}
.settings-control input,
.settings-control select {
  max-width: 160px;
  min-height: 34px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 6px 8px;
  font: inherit;
  background: #fff;
}
.settings-table-wrap {
  overflow-x: auto;
}
.settings-table {
  min-width: 960px;
}
.compact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}
.platform-logistics-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.platform-logistics-page .pc-table-card {
  overflow-x: auto;
}
.platform-logistics-page .pc-table-card table {
  min-width: 980px;
}
.logistics-field-page {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.field-hero,
.field-user-strip,
.field-route-card,
.field-current-route,
.field-stop-card,
.field-privacy-card {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 47, 59, .05);
}
.field-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}
.field-hero h2 {
  margin: 4px 0;
  color: #062f3b;
  font-size: 32px;
}
.field-source-note {
  margin: 10px 0 0;
  color: #8a5600;
  font-weight: 900;
}
.field-user-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.field-user-strip span,
.field-user-strip strong,
.field-proof-list span,
.field-privacy-card span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f6fb;
  color: #062f3b;
  font-size: 12px;
  font-weight: 900;
}
.field-route-list,
.field-stop-detail {
  display: grid;
  gap: 12px;
}
.field-route-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.field-route-card.active {
  border-color: #0b95bf;
  background: #f1fbff;
}
.field-route-card strong,
.field-route-card small {
  display: block;
}
.field-route-card small,
.field-detail-list dt,
.field-detail-list dd {
  color: #60718b;
  font-weight: 800;
}
.field-current-route {
  padding: 14px;
}
.field-section-title,
.field-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}
.field-stop-order {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 12px;
}
.field-stop-order a {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 10px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f8fbfd;
  color: #062f3b;
  text-decoration: none;
}
.field-stop-order a.active {
  border-color: #0b95bf;
  background: #e8f8ff;
}
.field-stop-order b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b95bf;
  color: #fff;
}
.field-stop-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.field-card-head h2 {
  margin: 6px 0 0;
  color: #062f3b;
  font-size: 26px;
}
.field-detail-list {
  display: grid;
  gap: 10px;
}
.field-detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5edf5;
}
.field-detail-list dt {
  font-size: 12px;
  text-transform: uppercase;
}
.field-detail-list dd {
  margin: 0;
  color: #1c2635;
}
.field-primary-actions,
.field-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.field-action-grid .btn,
.field-primary-actions .btn {
  width: 100%;
  justify-content: center;
}
.field-checklist,
.field-proof-list,
.field-capture-form {
  display: grid;
  gap: 10px;
}
.field-checklist label,
.field-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f8fbfd;
  font-weight: 900;
}
.field-proof-list,
.field-privacy-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.field-capture-form label {
  display: grid;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}
.field-capture-form input,
.field-capture-form select,
.field-capture-form textarea {
  min-height: 42px;
  border: 1px solid #cfdae8;
  border-radius: 7px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}
.field-capture-form textarea {
  min-height: 90px;
}
.field-privacy-card {
  padding: 12px;
}
.logistics-customer-page {
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.customer-logistics-hero,
.customer-logistics-summary article,
.customer-logistics-card,
.customer-logistics-privacy {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 47, 59, .05);
}
.customer-logistics-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}
.customer-logistics-hero h1 {
  margin: 4px 0;
  color: #062f3b;
  font-size: 36px;
}
.customer-logistics-summary,
.customer-logistics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.customer-logistics-summary article,
.customer-logistics-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.customer-logistics-summary span,
.customer-logistics-card dt {
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.customer-logistics-summary strong,
.customer-logistics-card h2 {
  color: #062f3b;
}
.customer-logistics-tracker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.customer-logistics-tracker span,
.customer-logistics-hooks span,
.customer-logistics-privacy span {
  padding: 9px 10px;
  border-radius: 999px;
  background: #eef4f8;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.customer-logistics-tracker span.active {
  background: #e6f8ef;
  color: #079a4a;
}
.customer-logistics-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.customer-logistics-card dd {
  margin: 3px 0 0;
  color: #1c2635;
  font-weight: 800;
}
.customer-logistics-actions,
.customer-logistics-hooks,
.customer-logistics-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.customer-logistics-actions .btn {
  justify-content: center;
}
.customer-logistics-privacy {
  padding: 12px;
}
@media (max-width: 1180px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logistics-metrics,
  .logistics-grid.two,
  .logistics-grid.three,
  .logistics-grid.map-layout,
  .logistics-grid.settings-layout,
  .logistics-settings-page,
  .settings-control-grid,
  .settings-chip-grid,
  .platform-logistics-metrics,
  .shipping-warning-grid,
  .rate-rule-grid,
  .logistics-state-grid {
    grid-template-columns: 1fr;
  }
  .customer-logistics-summary,
  .customer-logistics-grid {
    grid-template-columns: 1fr;
  }
  .logistics-calendar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .calendar-toolbar,
  .calendar-layout,
  .calendar-month-grid,
  .routes-filterbar,
  .stops-filterbar,
  .stop-detail-page,
  .stop-fact-grid,
  .stop-detail-grid,
  .readiness-grid,
  .notes-grid,
  .route-detail-grid {
    grid-template-columns: 1fr;
  }
  .route-detail-hero {
    display: grid;
  }
  .route-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-list-row {
    grid-template-columns: 1fr 1fr;
  }
  .logistics-route-row {
    grid-template-columns: 1fr;
  }
  .dispatch-board-layout,
  .dispatch-route-columns,
  .logistics-map-shell {
    grid-template-columns: 1fr;
  }
  .map-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logistics-map-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .grid.four {
    grid-template-columns: 1fr;
  }
  .metric strong {
    font-size: 26px;
  }
  .logistics-header,
  .logistics-filterbar,
  .logistics-row,
  .logistics-actions {
    display: grid;
    justify-content: stretch;
  }
  .logistics-metrics {
    grid-template-columns: 1fr;
  }
  .logistics-calendar {
    grid-template-columns: 1fr;
  }
  .calendar-item summary,
  .calendar-item-body,
  .calendar-list-row,
  .route-stop-row,
  .route-fact-grid {
    grid-template-columns: 1fr;
  }
  .logistics-tabs a {
    flex: 1 1 130px;
    text-align: center;
  }
  .dispatch-controls {
    grid-template-columns: 1fr;
  }
  .map-toolbar,
  .logistics-map-summary {
    grid-template-columns: 1fr;
  }
  .logistics-map-canvas {
    min-height: 520px;
  }
  .map-stop-preview {
    width: 220px;
  }
  .dispatch-route-stop,
  .dispatch-stop-top,
  .dispatch-stop-footer,
  .dispatch-route-card header,
  .field-hero,
  .field-route-card,
  .field-section-title,
  .field-card-head,
  .field-primary-actions,
  .field-action-grid {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }
  .customer-logistics-hero,
  .customer-logistics-tracker {
    display: grid;
    grid-template-columns: 1fr;
  }
}
