@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.guest-privacy-notice {
  position: fixed;
  z-index: 9999;
  right: 12px;
  bottom: 8px;
  margin: 0;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(24, 28, 36, .92);
  color: #fff;
  font: 11px/1.4 Inter, sans-serif;
}
.guest-privacy-notice a,
.guest-privacy-notice button {
  color: #fff;
  text-decoration: underline;
}
.guest-privacy-notice button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* The native editor remains authoritative. This file only defines preview boundaries. */
.prototype-notice {
  position: fixed;
  z-index: 100000;
  bottom: 10px;
  left: 50%;
  max-width: 90vw;
  padding: 8px 16px;
  transform: translateX(-50%);
  border: 1px solid #424b59;
  border-radius: 8px;
  background: #202630;
  color: #f2f2f2;
  font: 14px Inter, sans-serif;
  text-align: center;
}

body.prototype-demo {
  background: #000;
}

body.prototype-demo .app-header,
body.prototype-demo #chart-maker-app,
body.prototype-demo #controls,
body.prototype-demo .timeline-controls,
body.prototype-demo .playback-controls,
body.prototype-demo .editor-loading-overlay,
body.prototype-demo #mobile-editor-actions {
  display: none !important;
}

.prototype-preview [hidden],
.prototype-preview #export-modal,
.prototype-preview .chart-maker-shell__document-meta,
.prototype-preview .chart-maker-shell__document-actions,
.prototype-preview .chart-maker-shell__header-zone--centre,
.prototype-preview .chart-maker-shell__theme-group,
.prototype-preview .chart-maker-shell__tool[aria-label='Add image'],
.prototype-preview .chart-maker-shell__tool[aria-label='Background image'],
.prototype-preview #data-editor-open-digitiser,
.prototype-preview #data-editor-export,
.prototype-preview #data-editor-save-project,
.prototype-preview #data-editor-import-panel,
.prototype-preview #toolbar-add-image,
.prototype-preview #toolbar-add-background-image,
.prototype-preview .chart-maker-shell__hbtn--preview,
.prototype-preview .chart-maker-shell__header--compact .chart-maker-shell__project-name--compact,
.prototype-preview .chart-maker-shell__header--compact .chart-maker-shell__status-dot--saved,
.prototype-preview .chart-maker-shell__header--compact [data-chart-maker-action='save'] {
  display: none !important;
}

/* A quiet, native status treatment: intentionally not a badge or pill. */
.prototype-preview-badge {
  display: flex;
  min-width: max-content;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-family: Inter, sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.prototype-preview-badge strong {
  color: #f4f7fa;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.prototype-upgrade-link,
.prototype-compact-upgrade {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: linear-gradient(120deg, #45dce8 0%, #25b8ff 100%);
  color: #04222e !important;
  font-family: Inter, sans-serif;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.12s ease;
}

.prototype-upgrade-link {
  min-height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
}

.prototype-upgrade-link:hover,
.prototype-upgrade-link:focus-visible,
.prototype-compact-upgrade:hover,
.prototype-compact-upgrade:focus-visible {
  background: linear-gradient(120deg, #6ee6ef 0%, #4cc7ff 100%);
  color: #04222e !important;
}

.prototype-upgrade-link:focus-visible,
.prototype-compact-upgrade:focus-visible {
  outline: 2px solid rgba(69, 220, 232, 0.85);
  outline-offset: 3px;
}

.prototype-upgrade-link:active,
.prototype-compact-upgrade:active {
  transform: translateY(1px);
}

.prototype-compact-preview {
  margin-left: auto;
  color: #aab4be;
  font: 600 11px/1 Inter, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.prototype-compact-upgrade {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

#guest-upgrade,
#guest-paste-error {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid #424b59;
  border-radius: 16px;
  background: #171c24;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  font: 16px/1.6 Inter, sans-serif;
}

#guest-upgrade::backdrop,
#guest-paste-error::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

#guest-upgrade h2,
#guest-paste-error h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
}

.guest-kicker {
  margin: 0 0 8px;
  color: #35cdd9;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.guest-body {
  margin: 0;
  color: #c5ced6;
}

.guest-upgrade-cta,
#guest-upgrade button,
#guest-paste-error button {
  display: block;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  font: 600 15px/1 Inter, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.guest-upgrade-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  background: linear-gradient(120deg, #45dce8 0%, #25b8ff 100%);
  color: #04222e !important;
}

.guest-upgrade-cta:hover,
.guest-upgrade-cta:focus-visible {
  background: linear-gradient(120deg, #6ee6ef 0%, #4cc7ff 100%);
}

.guest-secondary,
#guest-paste-error button {
  background: #2e3541;
  color: #fff;
}

.guest-close {
  position: absolute !important;
  top: 0;
  right: 12px;
  width: 44px !important;
  padding: 0 !important;
  background: none !important;
  color: #fff !important;
  font-size: 26px !important;
}

.guest-small {
  margin: 16px 0 0;
  color: #99a6b2;
  font-size: 13px;
}

@media (min-width: 701px) {
  .prototype-preview .chart-maker-shell__header:not(.chart-maker-shell__header--compact) {
    grid-template-columns: auto minmax(24px, 1fr) auto !important;
    column-gap: 20px;
    padding: 0 24px;
  }

  .prototype-preview .chart-maker-shell__header-zone--left {
    width: auto !important;
  }

  .prototype-preview .chart-maker-shell__header-zone--right {
    grid-column: 3;
    width: auto !important;
    justify-self: end;
    gap: 16px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .prototype-upgrade-link {
    padding: 0 13px;
  }
}

@media (max-width: 700px) {
  .prototype-preview .chart-maker-shell__header-zone--right {
    gap: 6px;
  }

  #guest-upgrade,
  #guest-paste-error {
    padding: 26px;
  }
}

/* First-visit tips (guest-tips.js). */
.guest-tip {
  position: fixed;
  z-index: 100001;
  width: min(280px, calc(100vw - 16px));
  padding: 14px 16px 16px;
  border: 1px solid #35cdd9;
  border-radius: 12px;
  background: #10151e;
  color: #f2f5f8;
  font: 15px/1.5 Inter, sans-serif;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.guest-tip p { margin: 6px 0 12px; }
.guest-tip__count { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #66daed; }
.guest-tip__close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: #b7c3ce; font-size: 22px; line-height: 1; cursor: pointer; }
.guest-tip__next { min-height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: linear-gradient(90deg, #6fdcec, #4aa8f5); color: #06121c; font: 700 14px Inter, sans-serif; cursor: pointer; }
.guest-tip-target { outline: 2px solid #35cdd9 !important; outline-offset: 3px; border-radius: 8px; }
