:root {
  --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);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  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; }
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);
}
.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; }

.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);
}
.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); }
.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-weight: 800;
  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-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-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-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-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-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; }
.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-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: #071226;
}
.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: 26px; line-height: 1.05; }
.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 #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-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 #dbe5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .055);
  backdrop-filter: blur(12px);
}
.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: 24px; }
.rn-product-title-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eef4fb;
  color: #30445d;
  font-size: 12px;
  font-weight: 850;
}
.rn-product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rn-product-card h3 { margin-bottom: 12px; font-size: 15px; 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: #61738a; font-size: 12px; font-weight: 650; }
.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: #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: #cfdae7;
  color: #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: minmax(0, 1fr) 72px;
  align-items: center;
  margin-top: 6px;
  border: 1px solid #cfdae7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.rn-money-input input { margin: 0; border: 0; border-radius: 0; }
.rn-money-input span { padding-right: 11px; color: #52657a; text-align: right; font-size: 13px; font-weight: 800; }
.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-price-preview {
  display: grid;
  place-items: center;
  min-height: 132px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}
.rn-price-preview strong { color: #0b6fff; font-size: 38px; line-height: 1; }
.rn-price-preview span { color: #52657a; font-size: 13px; font-weight: 800; }
.rn-compact-preview-controls { grid-template-columns: 1fr auto auto; align-items: end; }
.rn-preview-premiums { margin: 10px 0 12px; }
.rn-pricing-method-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.rn-pricing-method-strip span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #30445d;
  font-size: 12px;
  font-weight: 900;
}
.rn-pricing-method-strip span.active {
  border-color: #9bc7ff;
  background: #eef6ff;
  color: #0b6fff;
}
.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;
}

@media (max-width: 1420px) {
  .rn-product-edit-grid { grid-template-columns: minmax(680px, 1fr) 340px; }
  .rn-product-media-strip { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .rn-product-edit-grid,
  .rn-product-lower-grid { grid-template-columns: 1fr; }
  .rn-product-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rn-product-toolbar { display: grid; }
  .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-product-rail,
  .rn-compact-preview-controls,
  .rn-option-summary-grid,
  .rn-option-choice-grid,
  .rn-pricing-method-strip,
  .rn-option-impact-grid { grid-template-columns: 1fr; }
  .rn-product-tab-grid { grid-template-columns: 1fr; }
  .rn-product-tab-grid > * { grid-column: 1 / -1 !important; }
}

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