.crm-preview {
  --crm-bg: #0a0b0a;
  --crm-surface: #131513;
  --crm-text: #e8efe8;
  --crm-muted: #a5aea5;
  --crm-line: #2b302b;
  --crm-raised: #202420;
  --crm-action-hover: #fff;
  --crm-accent: var(--accent, #c98a5b);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 16px clamp(12px, 4%, 20px) 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--crm-bg);
  color: var(--crm-text);
  color-scheme: dark;
  font: 500 14px/1.45 var(--body, Inter, system-ui, sans-serif);
}
.crm-preview .crm-simulation { margin: 0 0 12px; color: var(--crm-muted); font-size: 12px; }
.crm-preview .crm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--crm-line); border-radius: 12px; background: var(--crm-surface); }
.crm-preview .crm-tab, .crm-preview .crm-action { min-height: 44px; border: 1px solid transparent; border-radius: 9px; font: 650 13px/1.3 var(--body, Inter, system-ui, sans-serif); cursor: pointer; }
.crm-preview .crm-tab { padding: 6px 3px; color: var(--crm-muted); background: transparent; }
.crm-preview .crm-tab[aria-selected="true"], .crm-preview .crm-action { color: var(--crm-bg); background: var(--crm-text); }
.crm-preview .crm-action { width: 100%; padding: 9px 12px; }
.crm-preview .crm-tab[aria-selected="false"]:hover { color: var(--crm-text); background: var(--crm-raised); }
.crm-preview .crm-action:hover { background: var(--crm-action-hover); }
.crm-preview :focus-visible { outline: 2px solid var(--crm-text); outline-offset: 2px; }
.crm-preview .crm-content { min-width: 0; padding: 18px 0 0; }
.crm-preview .crm-title { margin: 0 0 12px; color: var(--crm-text); font: 400 19px/1.3 var(--head, "Dela Gothic One", Arial Black, sans-serif); }
.crm-preview .crm-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.crm-preview .crm-metric, .crm-preview .crm-section, .crm-preview .crm-notice, .crm-preview .crm-item {
  min-width: 0;
  border: 1px solid var(--crm-line);
  border-radius: 12px;
  background: var(--crm-surface);
}
.crm-preview .crm-metric { display: flex; min-height: 83px; flex-direction: column; justify-content: space-between; gap: 4px; padding: 10px; }
.crm-preview .crm-metric dt, .crm-preview .crm-meta { color: var(--crm-muted); font-size: 12px; }
.crm-preview .crm-metric dd { margin: 0; font: 400 24px/1.15 var(--head, "Dela Gothic One", Arial Black, sans-serif); font-variant-numeric: tabular-nums; }
.crm-preview .crm-flash { animation: crm-confirm 500ms ease-out; }
@keyframes crm-confirm { from { border-color: var(--crm-accent); background: color-mix(in srgb, var(--crm-accent) 13%, var(--crm-surface)); } }
.crm-preview .crm-section, .crm-preview .crm-notice { display: grid; gap: 8px; margin: 10px 0 0; padding: 12px; }
.crm-preview .crm-notice { border-inline-start: 2px solid var(--crm-accent); }
.crm-preview .crm-section-title { margin: 0; font: 700 14px/1.3 var(--body, Inter, system-ui, sans-serif); color: var(--crm-text); }
.crm-preview .crm-meta { margin: 2px 0 0; }
.crm-preview .crm-request { display: grid; gap: 8px; padding: 8px 0 0; border-top: 1px solid var(--crm-line); }
.crm-preview .crm-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.crm-preview .crm-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 8px; min-height: 64px; padding: 8px 10px; }
.crm-preview .crm-item .crm-pill { grid-column: 2; justify-self: start; }
.crm-preview .crm-booking { grid-template-columns: minmax(0, 1fr) auto; }
.crm-preview .crm-booking .crm-pill { grid-column: auto; text-align: center; }
.crm-preview .crm-row-text { min-width: 0; overflow-wrap: anywhere; }
.crm-preview .crm-row-text strong { font-size: 13px; font-weight: 700; }
.crm-preview .crm-avatar { display: grid; grid-row: span 2; align-self: start; width: 32px; height: 32px; place-items: center; border: 1px solid var(--crm-line); border-radius: 50%; background: var(--crm-raised); font-size: 11px; font-weight: 700; }
.crm-preview .crm-pill { display: inline-block; width: fit-content; max-width: 100%; padding: 3px 7px; border: 1px solid var(--crm-line); border-radius: 999px; color: var(--crm-muted); font-size: 11px; line-height: 1.25; }
.crm-preview .crm-pill-active { color: var(--crm-text); background: var(--crm-raised); }
.crm-preview .crm-pill-fresh { color: var(--crm-text); border-color: var(--crm-accent); background: color-mix(in srgb, var(--crm-accent) 13%, var(--crm-surface)); }
.crm-preview .crm-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .crm-preview .crm-flash { animation: none; } }
