.visitor-page {
  --ink: #202124;
  --muted: #505963;
  --green: #1558ac;
  --line: #dce2ea;
  background: #f5f8fc;
  min-height: 100dvh;
}
.visitor-page .shell { max-width: 1040px; }
.visitor-page .topbar {
  height: auto;
  min-height: 64px;
  padding-block: 8px;
  gap: 10px;
}
.visitor-page .brand { min-width: 0; gap: 8px; }
.visitor-page .brandmark {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: #e1edff;
  color: var(--green);
  font-size: 20px;
}
.visitor-page .brand strong { font-size: 15px; letter-spacing: 0; }
.visitor-page .brand small {
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.3;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.visitor-page .language { flex-shrink: 0; gap: 2px; }
.visitor-page .language button { padding-inline: 9px; }
.visitor-page #draft-title { font-family: inherit; font-weight: 650; }
.visitor-page .section-head > div { min-width: 0; }
.visitor-page .refresh { color: var(--green); flex-shrink: 0; }
.visitor-page .review-card { border-radius: 12px; }
.visitor-page .review-card:focus-within { border-color: #7da9e3; }
.visitor-page .primary:hover { background: #104684; }
.visitor-page .quote-mark, .visitor-page .card-label, .visitor-page .own-review { color: var(--green); }
.visitor-page .card-meta { color: var(--muted); }
.visitor-page .review-text:focus { outline-color: #7da9e3; }

@media (max-width: 650px) {
  .visitor-page .topbar { min-height: 56px; }
  .visitor-page .review-text {
    height: auto;
    min-height: 64px;
    max-height: 95px;
    field-sizing: content;
    padding: 6px 10px;
  }
  .visitor-page .card-action { padding: 2px 8px 6px; }
  .visitor-page .card-action .primary { font-size: 13px; }
}

.visitor-page {
  --green: #185abc;
  --line: #dce5f2;
  background: linear-gradient(155deg, #f6faff 0%, #f9fbff 53%, #f7f9fe 100%);
  position: relative;
  isolation: isolate;
}
.visitor-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 6%, #cce3ff 0%, transparent 33%),
    radial-gradient(ellipse at 83% 8%, #dfd7ff 0%, transparent 29%),
    radial-gradient(ellipse at 97% 36%, #d4f1e7 0%, transparent 24%);
  opacity: .55;
  animation: review-light 12s ease-in-out infinite alternate;
}
@keyframes review-light {
  from { opacity: .42; }
  to { opacity: .72; }
}
.visitor-page .topbar { border-bottom-color: #ccd9eb; }
.visitor-page .brandmark {
  background: linear-gradient(145deg, #dbeaff, #f3eaff);
  border: 1px solid #d4e1f8;
}
.visitor-page .language { background: #ffffffc9; }
.visitor-page .language button[aria-pressed=true] {
  background: #dceaff;
  color: #174790;
  font-weight: 650;
}
.visitor-page .refresh {
  border-color: #c7d8f0;
  background: #f7faff;
  border-radius: 24px;
}
.visitor-page .refresh:hover { background: #e9f2ff; }
.visitor-page .review-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 8px #294e8610;
}
.visitor-page .card-action .primary {
  background: linear-gradient(110deg, #185abc, #235dc7 65%, #395fc3);
  border-radius: 10px;
}
.visitor-page .card-action .primary:hover { background: #174da0; }
.visitor-page :focus-visible { outline-color: #185abc; }

@media (prefers-reduced-motion: reduce) {
  .visitor-page::before { animation: none; }
}

.visitor-page .topbar { border-bottom-color: #dbe5f4; }
.visitor-page .brandmark {
  background: #e8efff;
  color: #3953a2;
  font: 700 31px/1 Georgia, serif;
  padding-top: 5px;
}
.visitor-page #draft-title {
  color: #152448;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.visitor-page .review-card {
  --card-accent: #6e98f3;
  border: 1px solid #dbe5f4;
  border-inline-start: 3px solid var(--card-accent);
  box-shadow: 0 3px 12px #21366a0b;
}
.visitor-page .review-card:nth-child(2) { --card-accent: #9a87dd; }
.visitor-page .review-card:nth-child(3) { --card-accent: #62a797; }
.visitor-page .card-action .primary {
  background: #edf3ff;
  color: #174791;
  font-weight: 650;
}
.visitor-page .card-action .primary:hover { background: #dce9ff; }
.visitor-page .status-line { color: #435575; }

@media (min-width: 651px) {
  .visitor-page .draft-section { padding-top: 36px; }
  .visitor-page .reviews { gap: 16px; }
}
@media (max-width: 650px) {
  .visitor-page #draft-title { font-size: 1.15rem; }
  .visitor-page .review-text { max-height: 88px; }
  .visitor-page .refresh { padding-inline: 9px; }
}

.visitor-page[data-theme="mint"] { background:#f2fbf7; --green:#136653; }
.visitor-page[data-theme="violet"] { background:#f8f4ff; --green:#6346a0; }
.visitor-page[data-theme="mint"]::before { background:radial-gradient(ellipse at top,#bdebdc,transparent 58%); }
.visitor-page[data-theme="violet"]::before { background:radial-gradient(ellipse at top,#e6d7ff,transparent 58%); }
.visitor-page[data-theme="mint"] .primary { background:#e0f5ec; color:#145544; }
.visitor-page[data-theme="violet"] .primary { background:#eee6ff; color:#56358e; }
