/* Public product demo; intentionally independent of legacy dashboard overrides. */
.preview-page [hidden] {
  display: none !important;
}
.preview-page {
  color: #f2f5fa;
  background: #080b10;
}
.preview-wrap {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}
.preview-wrap section {
  padding: 0;
  scroll-margin-top: 24px;
}
.preview-hero {
  max-width: 860px;
  margin: 20px 0 36px;
}
.preview-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.12;
  margin: 14px 0 20px;
}
.preview-hero > p {
  color: #c0cbd9;
  line-height: 1.7;
}
.preview-page .eyebrow {
  color: #6edcff;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}
.preview-role-switch,
.preview-actions,
.preview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.preview-role-switch {
  margin: 24px 0 16px;
}
.preview-page button,
.preview-page .preview-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #425572;
  border-radius: 8px;
  background: #222d3e;
  color: #f4f7fb;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}
.preview-page button:hover,
.preview-page .preview-primary:hover {
  border-color: #82dfff;
  background: #294465;
}
.preview-page button[aria-pressed="true"],
.preview-page .preview-primary {
  background: linear-gradient(115deg, #47327d, #135583);
  border-color: #6694ce;
}
.preview-page button:disabled {
  opacity: 0.65;
  cursor: default;
}
.preview-page :focus-visible {
  outline: 2px solid #77e6ff;
  outline-offset: 4px;
}
.preview-page .preview-note {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #abbace;
  margin: 14px 0;
}
.preview-page .preview-panel {
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(130deg, #191f2a, #111720);
  border: 1px solid #35465e;
  border-radius: 16px;
  min-width: 0;
  margin-bottom: 24px;
}
.preview-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 0 0 16px;
  line-height: 1.35;
}
.preview-panel p {
  line-height: 1.65;
  color: #becadd;
}
.preview-picker,
.preview-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.preview-picker button {
  margin-top: 24px;
}
.preview-pill {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #4a6380;
  border-radius: 30px;
  color: #97e6ff;
  background: #14263b;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.preview-toolbar,
.preview-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.preview-toolbar h2 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}
.preview-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #141c27;
  border: 1px solid #35465e;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 24px;
}
.preview-section-nav a {
  padding: 10px 14px;
  color: #d8e7fa;
  border-radius: 7px;
  font-size: 0.9rem;
  text-decoration: none;
}
.preview-section-nav a:hover {
  background: #273952;
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.preview-metric {
  padding: 24px 20px;
  border: 1px solid #3b506e;
  background: #1c2635;
  border-radius: 12px;
  min-width: 0;
}
.preview-metric h3 {
  font-size: 0.85rem;
  color: #bdcce1;
  font-weight: 500;
  margin: 0 0 12px;
}
.preview-metric p {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.preview-filters {
  padding-bottom: 20px;
  border-bottom: 1px solid #35465e;
  margin-bottom: 20px;
}
.preview-filters button {
  font-size: 0.8rem;
  min-height: 40px;
}
.preview-offer {
  padding: 24px;
  border: 1px solid #3e506a;
  border-radius: 12px;
  background: #111a27;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.preview-offer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.preview-offer h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0 0 14px;
}
.preview-partner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.preview-partner img {
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}
.preview-partner span {
  display: block;
  font-size: 0.8rem;
  color: #a8bbd4;
  margin-top: 4px;
}
.preview-page progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 7px;
  border: none;
  border-radius: 6px;
  background: #34435a;
  margin: 16px 0 24px;
  overflow: hidden;
}
.preview-page progress::-webkit-progress-bar {
  background: #34435a;
}
.preview-page progress::-webkit-progress-value {
  background: linear-gradient(90deg, #6961dd, #4dd6ed);
}
.preview-page progress::-moz-progress-bar {
  background: #4dd6ed;
}
.preview-page dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.preview-page dt {
  color: #a9bdd8;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.preview-page dd {
  margin: 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.preview-page label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #c9d7e9;
}
.preview-page input,
.preview-page textarea,
.preview-page select {
  width: 100%;
  min-width: 0;
  border: 1px solid #506481;
  background: #0c1320;
  color: white;
  padding: 12px;
  border-radius: 7px;
  font: inherit;
  box-sizing: border-box;
}
.preview-page textarea {
  resize: vertical;
}
#preview-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: #0e1520;
  border: 1px solid #405470;
  border-radius: 12px;
  margin-bottom: 24px;
}
.preview-wide {
  grid-column: 1 / -1;
}
.preview-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}
.preview-activity li {
  padding: 14px 0;
  border-bottom: 1px solid #35465e;
  color: #c8d5e7;
  font-size: 0.9rem;
  line-height: 1.6;
}
.preview-rating {
  color: #ffd45d;
}
.preview-two-column dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.preview-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  font-size: 0.85rem;
  color: #c5d5ea;
  margin: 24px 0;
}
.preview-table-scroll {
  overflow: auto;
  border: 1px solid #3b506e;
  border-radius: 9px;
  margin: 20px 0;
}
.preview-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}
.preview-page th,
.preview-page td {
  padding: 14px;
  border-bottom: 1px solid #35465e;
}
.preview-page th {
  color: #a9dfff;
  background: #17253a;
}
.preview-empty {
  padding: 24px 0;
}
.preview-page #preview-status {
  color: #a8e4ff;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 20px 0;
}
.preview-page .preview-cta {
  text-align: center;
  padding: 36px;
}
.preview-cta a {
  display: inline-block;
  margin: 16px 8px 0;
}
.preview-page dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 24px;
  border: 1px solid #5d7799;
  border-radius: 14px;
  background: #151e2c;
  color: #edf5ff;
  box-sizing: border-box;
  overflow: auto;
}
.preview-page dialog::backdrop {
  background: #030711cc;
  backdrop-filter: blur(5px);
}
.preview-dialog-heading {
  display: flex;
  align-items: start;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.preview-dialog-heading h2 {
  font-size: 1.25rem;
  line-height: 1.4;
}
.preview-dialog-heading button {
  flex-shrink: 0;
  font-size: 1.25rem;
}
#preview-dialog-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #c4d3e8;
}
#preview-dialog-content form {
  display: grid;
  gap: 16px;
}
#preview-dialog-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
#preview-dialog-content li {
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.preview-attachment {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #0b111c;
  padding: 12px;
  border: 1px solid #425572;
  border-radius: 12px;
  margin: 5px;
}
@media (max-width: 900px) {
  .preview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-page dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-two-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
@media (max-width: 600px) {
  .preview-wrap {
    width: calc(100% - 24px);
    padding-top: 24px;
  }
  .preview-picker,
  .preview-insights {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .preview-role-switch button {
    flex: 1 1 130px;
  }
  .preview-toolbar .preview-actions {
    width: 100%;
  }
  .preview-section-nav a {
    flex: 1 1 110px;
    text-align: center;
    padding: 8px;
  }
  .preview-metrics {
    gap: 10px;
  }
  .preview-metric {
    padding: 18px 14px;
  }
  .preview-page .preview-panel {
    padding: 18px;
  }
  .preview-offer {
    padding: 18px;
  }
  .preview-offer .preview-actions button {
    flex: 1 1 120px;
  }
  .preview-filters button {
    flex: 1 1 80px;
  }
  #preview-create-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview-page {
    scroll-behavior: auto;
  }
}
