/* Design tokens for theming */

/* Global tokens (theme-independent) */
:root {
  --font-families-mono: "IBM Plex Mono", "Courier New", Courier, monospace;
  --font-families-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark theme (default) */
:root {
  --border-tertiary: rgba(255, 255, 255, 0.3);
  --border-secondary: #555555;
  --border-primary: #404040;
  --border-active: #666666;
  --text-tertiary: rgba(255, 255, 255, 0.8);
  --text-primary: #e0e0e0;
  --text-faint: rgba(255, 255, 255, 0.4);
  --text-secondary: #b0b0b0;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-subtle: rgba(255, 255, 255, 0.5);
  --background-tertiary: #252525;
  --background-primary: #313131;
  /* The page itself. Cards keep the background variables above. */
  --background-page: #313131;
  /* Secondary buttons get their own fill so they don’t read as cards. */
  --button-secondary: #3b3b3b;
  --button-secondary-hover: #464646;
  --background-secondary: #2a2a2a;
  --background-active: #333333;
  --background-hover: #333333;
  --accent-magenta: #ff00ff;
  --accent-green: #00ff00;
  --accent-blue: #0052cc;
  --accent-lightblue: #00aeef;
  --accent-purple: #662d91;
  --accent-purple-hover: #7f5aa6;
}

/* Light theme */
:root[data-theme="light"] {
  --border-tertiary: rgba(0, 0, 0, 0.2);
  --border-secondary: #cbcbcb;
  --border-primary: #d0d0d0;
  --border-active: #a0a0a0;
  --text-tertiary: rgba(0, 0, 0, 0.85);
  --text-primary: #1a1a1a;
  --text-faint: rgba(0, 0, 0, 0.45);
  --text-secondary: #333333;
  --text-muted: rgba(0, 0, 0, 0.5);
  --text-subtle: rgba(0, 0, 0, 0.5);
  --background-tertiary: #f0f0f0;
  --background-primary: #f2f2f2;
  --background-page: #ffffff;
  --button-secondary: #e9e9e9;
  --button-secondary-hover: #dcdcdc;
  --background-secondary: #f7f7f7;
  --background-active: #d8d8d8;
  --background-hover: #d8d8d8;
  --accent-magenta: #b000b0;
  --accent-green: #009000;
  --accent-blue: #0052cc;
  --accent-lightblue: #00aeef;
  --accent-purple: #662d91;
  --accent-purple-hover: #7f5aa6;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* Account for sticky header (48px) + extra spacing */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

h1 {
  font-family: var(--font-families-sans);
  font-size: 66px;
  line-height: 1;
  font-weight: 400;
  background: linear-gradient(135deg, var(--text-muted) 0%, white 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.2em;
  overflow: visible;
}

/* Dark theme gradient override */
:root[data-theme="light"] h1 {
  background: linear-gradient(135deg, var(--text-muted) 0%, black 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: var(--font-families-sans);
  font-size: 44px;
  line-height: 1.2;
  font-weight: 400;
}

h3 {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 400;
}

a {
  color: var(--accent-lightblue);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

body {
  font-family: var(--font-families-sans);
  font-size: 16px;
  background-color: var(--background-page);
  color: var(--text-primary);
  min-height: 100vh;
  letter-spacing: 0.02em;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Title bar */
.title-bar {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.title-bar-left {
  display: flex;
  align-items: center;
  background-color: #662d91;
  padding: 0 20px;
  padding-right: 60px;
  flex-shrink: 0;
}

.title-bar-logo {
  font-family: var(--font-families-sans);
  font-size: 20px;
  font-weight: 400;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.title-bar-logo-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.title-bar-logo:hover {
  opacity: 0.8;
}

.title-bar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  background-color: #1c75bc;
  flex-grow: 1;
  padding: 0 20px;
  padding-left: 60px;
}

.title-bar-nav a {
  font-size: 15px;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.title-bar-nav a:hover {
  opacity: 0.8;
}

.title-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: #00aeef;
  padding: 0 20px;
  padding-left: 40px;
  flex-shrink: 0;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .title-bar-left {
    padding: 0 16px;
  }

  .title-bar-nav {
    padding: 0 16px;
    gap: 14px;
  }

  .title-bar-right {
    padding: 0 16px;
  }
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-container {
  text-align: center;
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Home page */
.content-container.home-page {
  width: 100%;
  max-width: 960px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding-top: 40px;
}

.content-container.home-page h2 {
  font-size: 37px;
}

/* Hero: a centred text column, the full-width screenshot, then the Beta notes. */
.home-hero {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-hero-content,
.home-hero-notes {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero-content {
  gap: 18px;
}

.home-hero-notes {
  gap: 16px;
}

.home-hero-image {
  min-width: 0;
}

.home-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.content-container .home-hero h1 {
  text-wrap: balance;
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 0;
  padding-bottom: 0.1em;
}

.content-container .home-hero-lead {
  font-size: 17px;
}

.home-hero-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero-actions .cta-button {
  margin-top: 0;
  padding: 14px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-beta {
  font-family: var(--font-families-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.8;
}

.home-beta {
  align-self: stretch;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.home-beta-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 22px;
}

.content-container .home-beta p {
  font-size: 16px;
}

.content-container .home-beta .home-beta-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--text-primary);
}

.home-beta-tag {
  font-family: var(--font-families-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--home-accent-orange);
  border: 1px solid var(--home-accent-orange);
  border-radius: 3px;
  padding: 3px 6px;
}

.content-container .home-beta .home-beta-devices {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.home-beta-devices .material-symbols-outlined {
  font-size: 20px;
  line-height: 1.15;
}

.home-beta-versions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-secondary);
}

.home-beta-version {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 24px 20px;
}

.home-beta-version + .home-beta-version {
  border-left: 1px solid var(--border-secondary);
}

.content-container .home-beta .home-beta-version-label {
  font-family: var(--font-families-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.home-beta-version > a {
  font-size: 16px;
  font-weight: 500;
}

.release-label.home-release-label {
  display: block;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 600px) {
  .home-beta-versions {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-beta-version + .home-beta-version {
    border-left: none;
    border-top: 1px solid var(--border-secondary);
  }
}

.home-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.content-container .home-eyebrow {
  font-family: var(--font-families-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.home-section-head h2 {
  color: var(--text-primary);
  text-wrap: balance;
}

/* A line break that only applies on wide screens. */
@media (max-width: 600px) {
  br.wide-only {
    display: none;
  }
}

/* Feature cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.feature-card {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
}

.feature-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-body h3 {
  text-wrap: balance;
  font-size: 22px;
  color: var(--text-primary);
}

.content-container .feature-label {
  font-family: var(--font-families-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.content-container .feature-label-red {
  color: var(--home-accent-red);
}
.content-container .feature-label-yellow {
  color: var(--home-accent-yellow);
}
.content-container .feature-label-orange {
  color: var(--home-accent-orange);
}
.content-container .feature-label-purple {
  color: var(--home-accent-purple);
}
.content-container .feature-label-green {
  color: var(--home-accent-green);
}
.content-container .feature-label-blue {
  color: var(--home-accent-blue);
}

:root {
  --home-accent-blue: #00aeef;
  --home-accent-red: #ff7a7a;
  --home-accent-yellow: #f2d14b;
  --home-accent-orange: #f7a440;
  --home-accent-purple: #b48cff;
  --home-accent-green: #7fd36b;
}

:root[data-theme="light"] {
  --home-accent-blue: #0077a8;
  --home-accent-red: #c43c3c;
  --home-accent-yellow: #8a6d00;
  --home-accent-orange: #b05e00;
  --home-accent-purple: #6b3fbf;
  --home-accent-green: #2f7d1f;
}

/* Card pictures show the dark editor in both site themes. */
.feature-visual {
  --fv-text: #e0e0e0;
  --fv-text-2: #b0b0b0;
  --fv-text-3: #8a8a8a;
  --fv-line: #5a5a5a;
  --fv-bg-0: #1c1c1c;
  --fv-bg-1: #252525;
  --fv-bg-2: #2a2a2a;
  --fv-bg-3: #313131;
  --fv-bg-4: #3a3a3a;
  --fv-arabic-font: "Amiri", "Geeza Pro", "Segoe UI", serif;
  --fv-deva-font: "Noto Sans Devanagari", "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", sans-serif;
  height: 300px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--fv-bg-1);
  border-bottom: 1px solid var(--border-secondary);
  color: var(--fv-text);
  font-size: 13px;
  letter-spacing: 0;
}

.content-container .feature-visual p {
  margin: 0;
  color: inherit;
  text-align: left;
}

.fv-panel-title {
  font-family: var(--font-families-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.feature-visual .fv-panel-title {
  color: var(--fv-text-2);
}

.feature-visual .fv-small {
  font-size: 10px;
}

.fv-shortcut {
  color: var(--fv-text-3);
}

.fv-shortcut .material-symbols-outlined {
  font-size: 1.2em;
  position: relative;
  top: 2px;
}

.fv-shortcut .material-symbols-outlined + .material-symbols-outlined {
  margin-left: -0.12em;
}

.fv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fv-chip {
  font-family: var(--font-families-mono);
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  border: 1px solid #555555;
  border-radius: 3px;
  color: var(--fv-text);
  white-space: nowrap;
}

.fv-mono {
  font-family: var(--font-families-mono);
}

.fv-arabic {
  font-family: var(--fv-arabic-font);
}

.fv-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #555555;
}

/* Editor picture */
.fv-editor {
  display: flex;
  background: var(--fv-bg-4);
}

.fv-editor-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fv-editor-text {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  line-height: 1.2;
  font-size: 64px;
}

.fv-editor-text .fv-arabic {
  color: #ffffff;
}

.fv-devanagari {
  font-family: var(--fv-deva-font);
  color: var(--fv-text-2);
}

.fv-editor-features {
  flex: 0 0 132px;
  background: var(--fv-bg-3);
  border-left: 1px solid var(--fv-line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fv-editor-features .fv-panel-title {
  margin-bottom: 4px;
}

.fv-feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fv-feature .fv-chip {
  color: var(--fv-text-3);
}

.fv-feature.on .fv-chip {
  color: var(--fv-text);
  border-color: var(--fv-text-2);
}

.fv-feature.on .fv-dot {
  background: #00aeef;
}

/* Assistant picture */
.fv-assistant {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-visual .fv-bubble {
  align-self: flex-end;
  max-width: 82%;
  background: var(--fv-bg-4);
  border-radius: 8px 8px 2px 8px;
  padding: 8px 12px;
  line-height: 1.45;
}

.feature-visual .fv-reply {
  line-height: 1.45;
  color: var(--fv-text-2);
}

.fv-reply .fv-mono {
  color: var(--fv-text);
}

.fv-code {
  margin: 0;
  flex: 1 1 auto;
  background: var(--fv-bg-0);
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-families-mono);
  font-size: 11.5px;
  line-height: 1.5;
  overflow: hidden;
}

.fv-code-line {
  white-space: pre;
}

.fv-code-line.fv-i1 {
  padding-left: 4ch;
}

.fv-code-line.fv-i2 {
  padding-left: 8ch;
}

.fv-code .k {
  color: #c792ea;
}
.fv-code .s {
  color: #c3e88d;
}
.fv-code .c {
  color: var(--fv-text-3);
}
.fv-code .f {
  color: #82aaff;
}

.fv-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.fv-button {
  padding: 6px 12px;
}

.fv-button-primary {
  background: var(--fv-text);
  border-color: var(--fv-text);
  color: var(--fv-bg-0);
}

/* Glyph filter picture */
.fv-filters {
  display: flex;
  flex-direction: column;
}

.fv-filters-top {
  padding: 14px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fv-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fv-bg-3);
  border: 1px solid var(--fv-line);
  border-radius: 6px;
  padding: 8px 10px;
}

.fv-prompt .material-symbols-outlined {
  font-size: 18px;
}

.fv-prompt-icon {
  color: #f2d14b;
}

.fv-prompt-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.fv-prompt-send {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--fv-text);
  color: var(--fv-bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-prompt-send .material-symbols-outlined {
  font-size: 16px;
}

.fv-filters-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  border-top: 1px solid var(--fv-line);
}

.fv-filters-side {
  flex: 0 0 150px;
  background: var(--fv-bg-2);
  border-right: 1px solid var(--fv-line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.feature-visual .fv-gap {
  margin-top: 6px;
}

.fv-filter-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.fv-filter-row.selected {
  margin: 0 -6px;
  padding: 4px 6px;
  background: var(--fv-bg-4);
  border-radius: 4px;
}

.fv-filter-name {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.fv-filter-row .fv-dot {
  background: #f2d14b;
}

.fv-count {
  font-family: var(--font-families-mono);
  color: var(--fv-text-3);
}

.fv-filter-row.selected .fv-count {
  color: var(--fv-text);
}

.fv-glyph-grid {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-content: start;
}

.fv-glyph {
  position: relative;
  height: 64px;
  background: var(--fv-bg-3);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fv-glyph::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #f2d14b;
}

.fv-glyph .fv-arabic {
  font-size: 26px;
  line-height: 1.2;
  color: #ffffff;
}

.fv-name {
  font-family: var(--font-families-mono);
  font-size: 9px;
  color: var(--fv-text-3);
}

/* Skill picture */
.fv-skill {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fv-skill-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fv-skill-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid #f7a440;
  border-radius: 3px;
  background: var(--fv-bg-3);
}

.fv-skill-check {
  color: #f7a440;
}

.fv-skill-pick .fv-count {
  font-family: var(--font-families-mono);
  font-size: 11px;
  color: var(--fv-text-3);
}

.fv-skill-glyphs {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-content: start;
}

.fv-skill-glyph {
  height: 84px;
  padding-bottom: 8px;
  box-sizing: border-box;
  background: var(--fv-bg-3);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

/* Placeholder outlines: the Skill sets the glyph up, the designer draws it. */
.fv-skill-glyph .fv-arabic {
  font-size: 26px;
  line-height: 1.7;
  color: transparent;
  -webkit-text-stroke: 1px #8a8a8a;
}

.fv-skill-glyph .fv-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ccmp picture */
.fv-ccmp {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  --fv-dots: #00aeef;
}

.fv-ccmp-flow {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fv-ccmp-base {
  flex: 0 0 auto;
  width: 84px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--fv-bg-3);
  border: 1px solid var(--fv-dots);
  border-radius: 3px;
  box-sizing: border-box;
}

.fv-ccmp-base .fv-arabic {
  font-size: 40px;
  line-height: 1.2;
  color: #ffffff;
}

.fv-ccmp-arrow path {
  stroke: var(--fv-dots);
}

.fv-ccmp-letters {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fv-ccmp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 30px;
}

/* The dotted letter sits in blue under its dotless base in white, so only the dots show blue. */
.fv-ccmp-letter {
  position: relative;
  width: 40px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--fv-bg-3);
  border-radius: 3px;
  line-height: 1;
}

.fv-ccmp-letter > span {
  grid-area: 1 / 1;
}

.fv-ccmp-dots {
  color: var(--fv-dots);
}

.fv-ccmp-shape {
  color: #ffffff;
}

.content-container .feature-visual .fv-ccmp-note {
  font-family: var(--font-families-mono);
  font-size: 11px;
  color: var(--fv-text-2);
}

.fv-ccmp-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--fv-line);
  border-radius: 3px;
  overflow: hidden;
}

.fv-ccmp-stats > div {
  background: var(--fv-bg-2);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.content-container .feature-visual .fv-ccmp-stat {
  color: var(--fv-text-2);
  font-size: 13px;
}

.fv-ccmp-stat > span {
  font-size: 22px;
  color: #ffffff;
}

.fv-ccmp-stat > .fv-ccmp-to {
  color: var(--fv-dots);
}

@media (max-width: 520px) {
  .fv-skill-glyph:nth-child(n + 5),
  .fv-ccmp-letter:nth-child(n + 5) {
    display: none;
  }

  .fv-ccmp-base {
    width: 72px;
    height: 84px;
  }

  .fv-ccmp-flow {
    gap: 8px;
  }

  .fv-ccmp-row {
    flex-wrap: nowrap;
    font-size: 26px;
  }

  .fv-ccmp-letter {
    width: 36px;
    height: 44px;
  }

  .fv-ccmp-base .fv-name {
    font-size: 8px;
  }

  .content-container .feature-visual .fv-ccmp-stat {
    font-size: 11px;
    white-space: nowrap;
  }

  .fv-ccmp-stat > span {
    font-size: 17px;
  }

  .fv-ccmp-stats > div {
    padding: 10px;
  }
}

/* Collaboration picture */
.fv-collab {
  display: flex;
  flex-direction: column;
  background: var(--fv-bg-4);
  --fv-p1: #b48cff;
  --fv-p2: #f7a440;
  --fv-p3: #7fd36b;
}

.fv-collab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--fv-bg-3);
  border-bottom: 1px solid var(--fv-line);
}

.fv-spacer {
  flex: 1 1 auto;
}

.fv-avatars {
  display: flex;
}

.fv-avatar {
  width: 26px;
  height: 26px;
  border-radius: 13px;
  color: var(--fv-bg-0);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fv-bg-3);
}

.fv-avatar + .fv-avatar {
  margin-left: -6px;
}

.fv-p1 {
  background: var(--fv-p1);
}
.fv-p2 {
  background: var(--fv-p2);
}
.fv-p3 {
  background: var(--fv-p3);
}
.fv-more-people {
  background: #555555;
  color: var(--fv-text);
}

.fv-p1-text {
  color: var(--fv-p1);
}
.fv-p2-text {
  color: var(--fv-p2);
}
.fv-p3-text {
  color: var(--fv-p3);
}

.fv-status {
  font-family: var(--font-families-mono);
  font-size: 11px;
  color: var(--fv-text-2);
}

.fv-collab-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.fv-collab-canvas {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-outline {
  font-size: 170px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff;
}

.fv-cursor {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.fv-cursor path {
  stroke: var(--fv-bg-0);
  stroke-width: 1;
}

.fv-cursor-name {
  margin-top: 12px;
  color: var(--fv-bg-0);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.fv-cursor-a {
  left: 30%;
  top: 26%;
}

.fv-cursor-a path,
.fv-cursor-a .fv-cursor-name {
  fill: var(--fv-p1);
  background: var(--fv-p1);
}

.fv-cursor-b {
  right: 22%;
  bottom: 22%;
}

.fv-cursor-b path,
.fv-cursor-b .fv-cursor-name {
  fill: var(--fv-p2);
  background: var(--fv-p2);
}

.fv-collab-log {
  flex: 0 0 180px;
  background: var(--fv-bg-3);
  border-left: 1px solid var(--fv-line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
}

.feature-visual .fv-muted {
  color: var(--fv-text-2);
}

/* Free and open source picture */
.fv-free {
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
}

.fv-browser {
  flex: 1 1 auto;
  background: var(--fv-bg-3);
  border: 1px solid #555555;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fv-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--fv-bg-0);
}

.fv-lights {
  display: flex;
  gap: 6px;
}

.fv-lights span {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #ff5f57;
}

.fv-lights span:nth-child(2) {
  background: #febc2e;
}

.fv-lights span:nth-child(3) {
  background: #28c840;
}

.fv-url {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--fv-bg-3);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-families-mono);
  font-size: 11px;
  color: var(--fv-text-2);
  white-space: nowrap;
  overflow: hidden;
}

.fv-stats {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--fv-line);
}

.fv-stats > div {
  background: var(--fv-bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px;
}

.fv-stat {
  font-size: 40px;
  line-height: 1;
  color: #ffffff;
}

.fv-stat-label {
  font-family: var(--font-families-mono);
  font-size: 11px;
  color: var(--fv-text-2);
  text-align: center;
}

.fv-devices {
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--fv-bg-2);
  border-top: 1px solid var(--fv-line);
}

.feature-body .feature-cta {
  align-self: flex-start;
  margin-top: 8px;
}

/* Installed app and file formats picture */
.fv-offline {
  padding: 18px 28px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fv-app-window {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
  background: var(--fv-bg-2);
  border: 1px solid #555555;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fv-app-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fv-text);
}

.fv-offline-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-families-mono);
  font-size: 11px;
  color: var(--fv-text-2);
  white-space: nowrap;
}

.fv-offline-pill .material-symbols-outlined {
  font-size: 15px;
}

.fv-formats {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.fv-formats-row {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 40px 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-top: 1px solid var(--fv-line);
  white-space: nowrap;
}

.fv-formats-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fv-formats-head {
  flex: 0 0 auto;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: none;
  font-family: var(--font-families-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fv-text-3);
}

.fv-formats-head > span:nth-child(n + 3),
.fv-formats-row .fv-yes,
.fv-formats-row .fv-no {
  text-align: center;
}

.fv-formats-app {
  color: #ffffff;
  font-weight: 500;
}

.fv-formats-row .fv-mono {
  color: var(--fv-text-2);
}

.fv-yes {
  color: #7fd36b;
  font-weight: 600;
}

.fv-no {
  color: var(--fv-text-3);
}

.fv-export {
  text-align: center;
  font-family: var(--font-families-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: #00aeef;
}

/* Fake macOS dock */
.fv-dock {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  margin-top: -10px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 5px 9px;
  background: rgba(72, 72, 72, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.fv-dock-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  opacity: 0.85;
}

.fv-dock-near {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.fv-dock-a {
  background: linear-gradient(160deg, #6fb6ff, #2f6fd6);
}
.fv-dock-b {
  background: linear-gradient(160deg, #f5f5f5, #b9b9b9);
}
.fv-dock-c {
  background: linear-gradient(160deg, #8ce07a, #2f9e44);
}
.fv-dock-d {
  background: linear-gradient(160deg, #ffd36b, #f08c00);
}
.fv-dock-e {
  background: linear-gradient(160deg, #c3a6ff, #7048e8);
}

.fv-dock-app {
  position: relative;
  display: flex;
}

.fv-dock-app img {
  width: 48px;
  height: 48px;
  display: block;
}

.fv-dock-app::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: #ffffff;
}

@media (max-width: 520px) {
  .feature-visual.fv-offline {
    height: 380px;
    padding: 16px 16px 10px;
  }

  .fv-offline-extra {
    display: none;
  }

  .fv-formats-row {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    column-gap: 8px;
    row-gap: 0;
    padding: 0 12px;
  }

  .fv-formats-row > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .fv-formats-row > :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    font-size: 11px;
  }

  .fv-formats-row > :nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .fv-formats-row > :nth-child(4) {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .fv-formats-head > :nth-child(2) {
    display: none;
  }

  .fv-formats-head > :nth-child(3),
  .fv-formats-head > :nth-child(4) {
    grid-row: 1;
  }
}

/* Education picture */
.fv-edu {
  --fv-p1: #00aeef;
  --fv-p2: #f7a440;
  --fv-p3: #b48cff;
  --fv-p4: #7fd36b;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fv-edu-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.fv-edu-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
}

.fv-edu-tile {
  background: var(--fv-bg-2);
  border: 1px solid var(--fv-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  min-height: 0;
  overflow: hidden;
}

.fv-edu-glyph {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  font-size: 52px;
  line-height: 1;
  color: #ffffff;
}

.fv-edu-glyph.fv-arabic {
  font-size: 60px;
  color: #ffffff;
}

.fv-edu-glyph.fv-devanagari {
  font-size: 46px;
  color: #ffffff;
}

.fv-edu-student {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fv-text-2);
}

.fv-edu-student .fv-avatar {
  width: 20px;
  height: 20px;
  font-size: 9px;
  border-width: 1px;
}

.fv-p4 {
  background: var(--fv-p4);
}

/* Front page: sponsors and patrons */
.content-container .home-patrons .home-section-head {
  margin-bottom: 16px;
}

.home-patrons .patrons-wall-tiers {
  margin: 32px 0;
}

.home-patrons .patrons-wall-tiers[hidden] {
  display: none;
}

.content-container .home-patrons-link {
  font-weight: 500;
}

/* Support section */
.home-support {
  overflow: hidden;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
}

.home-support-stripe {
  height: 6px;
  display: flex;
}

.home-support-stripe span {
  flex: 1 1 0;
  background: #662d91;
}

.home-support-stripe span:nth-child(2) {
  flex-grow: 2;
  background: #1c75bc;
}

.home-support-stripe span:nth-child(3) {
  background: #00aeef;
}

.home-support-inner {
  padding: 48px 40px;
}

.home-support-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.support-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.support-card {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--background-primary);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
}

.support-card-featured {
  padding: 27px;
  border: 2px solid var(--accent-lightblue);
}

.support-card h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-primary);
}

.content-container .support-label-neutral {
  color: var(--text-secondary);
}

.content-container .support-price {
  text-wrap: balance;
  font-size: 26px;
  line-height: 1.2;
  color: var(--text-primary);
}

.content-container .support-price span {
  font-size: 14px;
  color: var(--text-secondary);
}

.content-container .support-price-note {
  margin-top: -8px;
  font-size: 12px;
  color: var(--text-muted);
}

.content-container .support-text {
  flex: 1 1 auto;
  font-size: 14px;
}

.support-card .cta-button {
  align-self: flex-start;
  margin-top: 4px;
}

/* Patrons page */
.content-container.home-page.patrons-page {
  gap: 72px;
}

/* The two text sections sit as a centred column; their text stays left-aligned. */
.page-intro,
.patrons-letter,
.patrons-equality {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  align-self: center;
}

/* About page: a centred reading column, with the feature list at full width. */
.content-container.home-page.about-page {
  gap: 56px;
}

.about-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.content-container.about-page .about-section h2 {
  font-size: 29px;
  color: var(--text-primary);
}

.content-container .about-section p,
.content-container .about-principles li {
  font-size: 16px;
}

.about-section .home-hero-actions {
  margin-top: 4px;
}

.content-container .about-section .about-note {
  font-size: 14px;
  color: var(--text-muted);
}

.about-principles {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-principles strong {
  color: var(--text-primary);
}

.about-quote {
  align-self: center;
  max-width: 760px;
  margin: 72px 0 96px;
  text-align: center;
  font-size: 37px;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--text-primary);
}

.about-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  font-style: normal;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .about-quote {
    margin: 40px 0 64px;
    font-size: 29px;
  }
}

/* Pricing is not a flex column, so its intro centres with margins. */
.pricing-page .page-intro {
  margin: 0 auto 48px;
}

/* Points readers to the other way of supporting Counterpunch. */
.page-crosslink {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
}

.page-crosslink .material-symbols-outlined {
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent-lightblue);
}

.content-container .page-crosslink p {
  margin: 0;
  font-size: 15px;
}

.page-crosslink a {
  font-weight: 500;
  white-space: nowrap;
}

.page-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-container .page-intro h1 {
  text-wrap: balance;
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 0;
  padding-bottom: 0.1em;
}

.content-container .page-lead {
  font-size: 18px;
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.page-facts > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-facts .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-lightblue);
}

.patrons-letter {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 28px;
  border-left: 3px solid var(--home-accent-orange);
}

.content-container .patrons-letter h2 {
  margin-bottom: 4px;
}

.content-container .patrons-letter p {
  font-size: 17px;
  line-height: 1.6;
}

.patrons-equality {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 28px;
  border-left: 3px solid var(--accent-lightblue);
}

.content-container .patrons-equality p:not(.home-eyebrow) {
  font-size: 17px;
  line-height: 1.6;
}

.content-container .patrons-letter .home-eyebrow {
  font-size: 11px;
  line-height: 1.4;
}

.content-container .patrons-letter .patrons-letter-signature {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .patrons-letter {
    padding-left: 16px;
  }

  .content-container .patrons-letter h2 {
    font-size: 29px;
    line-height: 1.15;
  }

  .content-container .patrons-letter p {
    font-size: 16px;
  }
}

.patrons-letter-signature span {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
}

.patrons-wall {
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  padding: 48px 40px;
}

.patrons-wall .home-section-head {
  margin-bottom: 32px;
}

.patrons-wall-tiers {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.patron-wall-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patron-wall-patrons {
  padding-top: 24px;
  border-top: 1px solid var(--border-secondary);
}

.content-container .patron-wall-label {
  font-family: var(--font-families-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.patron-wall-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Every sponsor gets the same tile, whatever the amount. */
.patron-tile {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 220px;
  height: 88px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #3a3a3a;
  color: #e0e0e0;
  text-decoration: none;
  overflow: hidden;
}

:root[data-theme="light"] .patron-tile {
  background: #ffffff;
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

/* Only a dark-background logo: keep its dark tile in the light theme too. */
:root[data-theme="light"] .patron-tile-dark-only {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* Only a light-background logo: keep a light tile in the dark theme too. */
.patron-tile-light-only {
  background: #f0f0f0;
}

.patron-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.patron-logo-light,
.patron-tile-light-only .patron-logo-light {
  display: none;
}

.patron-tile-light-only .patron-logo-light {
  display: block;
}

:root[data-theme="light"] .patron-logo-dark {
  display: none;
}

:root[data-theme="light"] .patron-logo-light,
:root[data-theme="light"] .patron-tile-dark-only .patron-logo-dark {
  display: block;
}

.patron-tile-anonymous {
  color: #b0b0b0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

:root[data-theme="light"] .patron-tile-anonymous {
  color: var(--text-muted);
}

.patron-display-choice {
  border: none;
  margin: 4px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.patron-display-choice legend {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 0;
}

.patron-tile-name {
  font-size: 14px;
  text-align: center;
}

.content-container .patron-wall-pointer,
.patron-wall-pointer:hover,
:root[data-theme="light"] .patron-wall-pointer {
  background: transparent;
  border: 1px dashed var(--border-active);
  color: var(--text-primary);
  font-size: 13px;
}

.patron-wall-pointer .material-symbols-outlined,
.patron-wall-pill .material-symbols-outlined {
  font-size: 17px;
}

.patron-wall-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 16px;
  color: var(--text-primary);
}

.patron-wall-names a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-active);
  text-underline-offset: 3px;
}

.patron-name-separator {
  color: var(--text-muted);
}

.content-container .patron-wall-pill,
.content-container .patron-wall-pill:hover,
.content-container .patron-wall-pointer,
.content-container .patron-wall-pointer:hover {
  text-decoration: none;
}

.content-container .patron-wall-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border-active);
  font-size: 13px;
  color: var(--text-primary);
}

.patrons-levels .home-section-head {
  margin-bottom: 28px;
}

.patron-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.patron-card-row .patron-card {
  flex: 1 1 420px;
  min-width: 0;
  padding: 32px;
}

.patron-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  scroll-margin-top: 120px;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.patron-card h3 {
  font-size: 24px;
  line-height: 1.2;
  color: var(--text-primary);
}

.patrons-page .patron-card.patron-card-highlight {
  border: 2px solid var(--accent-lightblue);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.25);
}

.patron-card-row .patron-card.patron-card-highlight {
  padding: 31px;
}

.content-container .patron-price {
  font-size: 37px;
  line-height: 1;
  color: var(--text-primary);
}

.patron-price-period {
  font-size: 14px;
  color: var(--text-secondary);
}

.patron-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.patron-amount {
  min-width: 64px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border-active);
  background: var(--background-active);
  color: var(--text-primary);
  font-family: var(--font-families-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.patron-amount.selected {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--background-primary);
}

.patron-benefits {
  margin: 6px 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.patron-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.patron-benefits .material-symbols-outlined {
  font-size: 16px;
  line-height: 1.3;
  color: var(--home-accent-green);
}

.patron-benefits .patron-benefit-off .material-symbols-outlined {
  color: var(--text-muted);
}

.patron-card .patron-choose {
  line-height: 1.35;
  align-self: flex-start;
  margin-top: 4px;
}

.patron-card .patron-choose:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.content-container .patrons-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.patrons-questions h2 {
  color: var(--text-primary);
  margin-bottom: 24px;
}

.patrons-question-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 28px 48px;
}

.patrons-question-grid h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Account: patronage */
.patron-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.patron-summary-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.content-container .patron-summary-tier {
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.patron-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--background-active);
  color: var(--text-secondary);
}

.patron-badge-active {
  background: rgba(127, 211, 107, 0.14);
  color: var(--home-accent-green);
}

.patron-badge-warning {
  background: rgba(247, 164, 64, 0.16);
  color: var(--home-accent-orange);
}

.account-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.message.info.patron-pending {
  color: var(--text-primary);
  border-color: var(--accent-lightblue);
  background-color: rgba(0, 174, 239, 0.08);
}

.patron-link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-lightblue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.account-button.patron-danger {
  color: #ff7a7a;
  border-color: #8a3a3a;
}

:root[data-theme="light"] .account-button.patron-danger {
  color: #c43c3c;
  border-color: #e0a0a0;
}

.content-container .patron-small {
  font-size: 12px;
}

.patron-account-heading {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 4px;
  color: var(--text-primary);
}

.patron-listing-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.patron-listing-form .form-group input {
  width: 100%;
}

.patron-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.patron-logo-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.patron-logo-slot {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.patron-logo-preview {
  position: relative;
  height: 140px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 12px;
  box-sizing: border-box;
}

.patron-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.patron-logo-preview-dark {
  background: #252525;
  border: 1px solid #5a5a5a;
}

.patron-logo-preview-light {
  background: #f0f0f0;
  border: 1px solid #c0c0c0;
}

.patron-logo-preview-light .account-muted {
  color: #555555;
}

.patron-logo-preview-label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-family: var(--font-families-mono);
  font-size: 10.0px;
  letter-spacing: 0.06em;
  color: #8a8a8a;
}

.patron-logo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-patron-search {
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 8px 12px;
  margin: 8px 0 12px;
  background-color: var(--background-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
}

.admin-patron-list {
  display: flex;
  flex-direction: column;
}

.admin-patron {
  border-bottom: 1px solid var(--border-primary);
  padding: 10px 0;
}

.admin-patron summary {
  cursor: pointer;
}

.admin-patron-email {
  color: var(--text-primary);
}

.admin-patron .patron-listing-form {
  margin-top: 12px;
}

.patron-invoices {
  display: flex;
  flex-direction: column;
}

.patron-invoice-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-primary);
  font-size: 14px;
}

.patron-invoice-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.patron-invoice-row .material-symbols-outlined {
  font-size: 17px;
}

@media (max-width: 900px) {
  .content-container .page-intro h1 {
    font-size: 40px;
  }

  .patrons-wall {
    padding: 32px 20px;
  }

  .patrons-equality {
    padding-left: 16px;
  }
}

@media (max-width: 900px) {
  .content-container.home-page {
    gap: 72px;
    padding-top: 0;
  }

  .home-support-inner {
    padding: 32px 20px;
  }

  .content-container .home-hero h1 {
    font-size: 37px;
  }
}

.content-container h1 {
  margin-bottom: 40px;
}

.content-container p {
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

/* Base button styles */
.button-base {
  padding: 10px 12px;
  font-family: var(--font-families-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

/* Call-to-action button */
.cta-button {
  padding: 12px 24px;
  margin-top: 15px;
  color: white !important;
  background-color: var(--accent-lightblue);
  border-radius: 8px;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-button:hover {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button-secondary {
  background-color: var(--button-secondary);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-secondary);
}

.cta-button-secondary:hover {
  background-color: var(--button-secondary-hover);
  border-color: var(--border-active);
  text-decoration: none;
}

.cta-group {
  margin-top: 15px;
}

.cta-group + .cta-group {
  margin-top: 0px;
}

.cta-group .cta-button {
  margin-top: 0;
}

.release-label {
  display: block;
  margin-top: 7px;
  margin-left: 7px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
}

.release-label a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.release-label a:hover {
  color: var(--accent-lightblue);
}

/* Footer bar */
.footer-bar {
  height: auto;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.footer-left {
  display: flex;
  align-items: center;
  background-color: #ef4136;
  padding: 20px;
  flex-shrink: 0;
  min-width: 100px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  background-color: #f7941d;
  flex-grow: 1;
  padding: 20px;
  padding-left: 60px;
  padding-bottom: 50px;
  padding-top: 35px;
}

.footer-links a {
  font-family: var(--font-families-sans);
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-right {
  display: flex;
  align-items: center;
  background-color: #fbc540;
  padding: 20px;
  flex-shrink: 0;
  min-width: 100px;
}

/* Loading and error states */
.main-content {
  transition: opacity 0.2s ease;
}

.error-message {
  color: var(--text-primary);
}

.error-message h1 {
  color: var(--accent-magenta);
}

.error-message a {
  color: var(--accent-lightblue);
  text-decoration: none;
}

.error-message a:hover {
  text-decoration: none;
}

/* Legal pages (Privacy, Terms) */
.legal-scope {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.legal-last-updated {
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-content {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 33px;
  margin: 32px 0 16px 0;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 17px;
  margin: 24px 0 12px 0;
  color: var(--text-primary);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 16px;
  margin-left: 24px;
  line-height: 1.8;
}

.legal-content blockquote {
  margin: 2em 0;
  padding: 1em 2em;
  border-left: 4px solid var(--accent-color, #007acc);
  font-style: italic;
  color: var(--text-muted, #666);
}

.legal-back-link {
  text-align: center;
  margin-top: 48px;
}

.legal-notice-box {
  margin: 48px 0;
  padding: 24px;
  background: var(--background-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-primary);
}

.legal-notice-box p {
  margin: 0;
  line-height: 1.8;
  font-size: 15px;
}

/* Authentication UI */
.auth-button {
  color: white;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 7px 10px;
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-button .material-symbols-outlined {
  font-size: 17px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.auth-button:hover {
  background-color: #007ab0;
  transform: translateY(-1px);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-account-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.user-account-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.user-account-link .material-symbols-outlined {
  font-size: 17px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.logout-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.logout-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Login form */
.login-container {
  max-width: 400px;
  width: 100%;
}

.login-container h1 {
  font-size: 29px;
  margin-bottom: 8px;
}

.login-container > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea,
.account-form input[type="email"],
.account-form input[type="text"],
.account-form input[type="url"],
.account-form input[type="number"],
.account-form select,
.account-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background-color: var(--background-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-primary);
  font-family: var(--font-families-sans);
  transition: border-color 0.2s ease;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus,
.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  outline: none;
  border-color: var(--accent-magenta);
}

.form-group input::placeholder,
.account-form input::placeholder,
.account-form textarea::placeholder {
  color: var(--text-muted);
}

.submit-button {
  width: 100%;
  background-color: var(--accent-magenta);
  color: var(--background-primary);
}

.submit-button:hover {
  background-color: var(--accent-purple);
  transform: translateY(-1px);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  background-color: var(--border-secondary);
  cursor: not-allowed;
  transform: none;
}

.login-code-sent {
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

.login-code-sent strong {
  color: var(--text-primary);
  word-break: break-all;
}

.form-group input.login-code-input {
  font-family: var(--font-families-mono, ui-monospace, monospace);
  font-size: 26px;
  letter-spacing: 0.3em;
  text-align: center;
  padding: 12px;
}

.login-link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-magenta);
  cursor: pointer;
  text-decoration: underline;
}

.login-link-button:disabled {
  color: var(--text-muted);
  cursor: default;
  text-decoration: none;
}

.login-resend {
  display: block;
  margin: 16px auto 0;
}

.message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 15px;
  text-align: left;
}

.message.success {
  background-color: rgba(0, 255, 0, 0.1);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.message.error {
  background-color: rgba(255, 0, 0, 0.1);
  color: #ff4444;
  border: 1px solid #ff4444;
}

.message.info {
  background-color: rgba(0, 102, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.message.warning {
  background-color: rgba(255, 170, 0, 0.12);
  color: var(--text-primary);
  border: 1px solid #c4841d;
}

/* Account page layout. The page starts at the top of a fixed-width column
   so a taller or wider tab does not move the tab bar. */
.main-content:has(.account-page) {
  align-items: flex-start;
  justify-content: center;
}

.account-page {
  width: 100%;
  max-width: 920px;
}

.account-page > h1 {
  margin-bottom: 8px;
}

.account-panel {
  padding-top: 32px;
}

.account-panel .account-section:first-of-type {
  padding-top: 0;
}

#paymentInfo,
#purchasesInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#paymentInfo > p,
#purchasesInfo > p,
#paymentInfo > .account-muted,
#purchasesInfo > .account-muted {
  margin: 0;
}

.account-layout {
  max-width: none;
  margin: 0;
}

.account-muted {
  color: var(--text-secondary);
  margin: 0;
}

.account-stack {
  margin-top: 16px;
}

.account-form {
  display: grid;
  gap: 16px;
  max-width: 440px;
}

.account-form .form-group {
  margin: 0;
}

.account-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.account-form textarea {
  min-height: 88px;
  resize: vertical;
}

.account-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--text-primary);
}

.account-check input {
  margin-top: 4px;
}

.account-note {
  margin: 0;
  color: var(--text-secondary);
}

.plugins-payout-editor {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.account-button {
  color: var(--text-primary);
  background: var(--button-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 8px 14px;
  width: fit-content;
}

.account-button[hidden] {
  display: none;
}

.account-button:hover {
  border-color: var(--text-secondary);
  background: var(--button-secondary-hover);
  transform: none;
}

.account-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-button:disabled:hover {
  border-color: var(--border-primary);
  background: var(--button-secondary);
}

.account-kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.account-kv dt {
  margin: 0;
  color: var(--text-secondary);
}

.account-kv dd {
  margin: 0;
}

.account-section.hidden {
  display: none;
}

.account-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-primary);
}

.account-section:last-of-type {
  border-bottom: none;
}

.account-section-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  padding-top: 2px;
}

.account-section-content {
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.account-section-content p {
  font-size: 15px;
  text-align: left;
}

.account-section-content .form-group {
  max-width: 400px;
}

.account-tabs {
  display: flex;
  width: 100%;
  margin-top: 24px;
  border-bottom: 1px solid var(--border-primary);
}

.account-tab {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 8px 8px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.account-tab[aria-selected="true"] {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.plugins-page {
  display: contents;
}

.plugin-card h3,
.plugins-payouts h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.account-section-content .subscription-no-sub {
  text-align: left;
  margin: 0;
  padding: 0;
  max-width: none;
}

.plugins-block p,
.plugin-card p {
  margin: 0 0 12px;
}

.plugin-card-list {
  display: grid;
  gap: 16px;
}

.plugin-accounts {
  display: grid;
  gap: 20px;
  margin-top: 4px;
}

.plugin-account-name {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.plugins-block .plugin-account-name {
  margin: 0 0 6px;
}

.plugin-repo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  overflow: hidden;
}

.plugin-repo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-primary);
}

.plugin-repo-row:last-child {
  border-bottom: none;
}

.plugin-repo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plugin-repo-visibility {
  flex: none;
  color: var(--text-secondary);
  font-size: 12px;
}

.plugin-github-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.plugin-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.plugin-step-done {
  color: var(--text-secondary);
}

.plugin-step-current {
  font-weight: 600;
}

.plugin-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-primary);
}

.plugin-card-meta,
.plugin-version-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.plugin-check-table {
  width: 100%;
  margin: 12px 0 4px;
  border-collapse: collapse;
  font-size: 13px;
}

.plugin-review-description {
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plugin-review-description summary {
  cursor: pointer;
  color: var(--text-primary);
}

.plugin-review-description ul {
  margin: 6px 0;
  padding-left: 1.25rem;
}

.plugin-review-description code {
  font-size: 11px;
  overflow-wrap: anywhere;
}

.plugin-check-table caption {
  padding: 0 0 6px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.plugin-check-table td {
  padding: 7px 12px 7px 0;
  vertical-align: top;
  border-top: 1px solid var(--border-primary);
}

.plugin-check-table td:first-child {
  width: 28px;
  padding-right: 4px;
}

.plugin-check-table td:nth-child(2) {
  width: 9.5rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.plugin-check-table .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.plugin-check-spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

.plugin-check-done {
  color: var(--accent-green);
}

.plugin-check-strong td:nth-child(2) {
  font-weight: 700;
}

.plugin-check-error {
  color: #ff4444;
}

.plugin-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.plugins-terms {
  margin: 8px 0 16px;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .account-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Subscription and Credits UI */
.subscription-plan-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.subscription-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-primary);
}

.subscription-plan-row:last-child {
  border-bottom: none;
}

.subscription-plan-label {
  color: var(--text-secondary);
  font-size: 15px;
}

.subscription-plan-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
}

.subscription-trial-badge {
  display: inline-block;
  background: var(--accent-lightblue);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}

.subscription-no-sub {
  text-align: center;
  padding: 32px 16px;
  max-width: 800px;
  margin: 0 auto;
}

.subscription-no-sub .pricing-grid {
  grid-template-columns: 1fr;
  max-width: 500px;
}

.subscription-no-sub h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.subscription-no-sub p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.subscription-billing-toggle {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
  align-items: center;
}

.subscription-country-selector {
  margin: 16px 0;
}

.subscription-country-selector label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.subscription-country-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-primary);
  background: var(--background-secondary);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.subscription-country-select:hover {
  border-color: var(--border-active);
}

.subscription-country-select:focus {
  outline: none;
  border-color: var(--accent-lightblue);
}

.subscription-billing-option {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--border-primary);
  background: var(--background-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.billing-option-label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.billing-option-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.billing-option-save {
  font-size: 11px;
  color: var(--accent-green);
  margin-top: 4px;
}

.subscription-billing-option.active {
  border-color: var(--accent-lightblue);
  background: var(--background-active);
  color: var(--accent-lightblue);
}

.subscription-start-button {
  background: var(--accent-lightblue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.subscription-start-button:hover {
  opacity: 0.9;
}

.subscription-start-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.subscription-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.subscription-button {
  background: var(--accent-purple);
  color: white;
  white-space: nowrap;
}

.subscription-button:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-1px);
}

.subscription-button:active {
  transform: translateY(0);
}

.subscription-button.danger {
  background: transparent;
  color: #ff4444;
  border: 1.5px solid #ff4444;
}

/* Admin error dashboard */
.admin-errors-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-room-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-room-health-wide {
  min-width: 0;
}

.admin-room-health-date {
  font-size: 15px;
}

.admin-room-health-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.admin-room-health-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-room-health-table th,
.admin-room-health-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-primary);
  text-align: left;
  vertical-align: top;
}

.admin-room-health-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

.admin-room-health-id,
.admin-room-health-empty {
  color: var(--text-muted);
}

.admin-room-health-id {
  font-size: 11px;
  margin-top: 2px;
}

.admin-room-health-action {
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: var(--background-tertiary);
  color: var(--text-primary);
  padding: 6px 8px;
  cursor: pointer;
}

.admin-room-health-action:disabled {
  cursor: default;
  opacity: 0.75;
}

.admin-channel-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  background: var(--background-secondary);
}

.admin-channel-switch-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-channel-button {
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: var(--background-primary);
  color: var(--text-primary);
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
}

.admin-channel-button:hover {
  border-color: var(--border-active);
}

.admin-channel-button.is-active {
  border-color: var(--accent-lightblue);
  color: var(--text-primary);
}

.admin-errors-metric {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--background-secondary);
  padding: 12px;
}

.admin-errors-metric-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-errors-metric-value {
  font-size: 22px;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 600;
}

.admin-errors-chart {
  display: grid;
  grid-template-columns: repeat(60, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
  height: 96px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  background: var(--background-secondary);
}

.admin-errors-bar-wrap {
  height: 100%;
  display: flex;
  align-items: end;
}

.admin-errors-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 2px;
  background: var(--accent-lightblue);
}

.admin-errors-chart-labels {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.admin-errors-issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-errors-issue-card {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--background-secondary);
  padding: 12px;
}

.admin-errors-issue-card:hover {
  border-color: var(--border-active);
}

.admin-errors-issue-card.is-selected {
  border-color: var(--accent-lightblue);
}

.admin-errors-issue-message {
  font-family: var(--font-families-mono);
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.admin-errors-issue-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.admin-errors-issue-users {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-errors-issue-open {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.admin-errors-issue-card.is-muted {
  opacity: 0.85;
}

.admin-errors-issue-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-errors-issue-action {
  font-size: 11px;
}

.admin-errors-mute-button {
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: var(--background-primary);
  color: #1f2937;
  font-size: 11px;
  padding: 6px 10px;
  cursor: pointer;
}

.admin-errors-mute-button:hover {
  border-color: var(--border-active);
}

.admin-errors-mute-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.admin-errors-events-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-errors-events-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.admin-errors-copy-button {
  font-size: 11px;
}

.admin-errors-light-button {
  color: #1f2937;
}

.admin-errors-light-button:hover {
  color: #111827;
}

.admin-errors-hidden-for-focus {
  display: none;
}

.admin-errors-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-errors-muted-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-errors-muted-card {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--background-secondary);
  padding: 12px;
}

.admin-errors-event-card {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--background-secondary);
  padding: 12px;
}

.admin-errors-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.admin-errors-event-field {
  margin-top: 8px;
}

.admin-errors-event-field strong {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.admin-errors-event-field pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-families-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  padding: 8px;
  background: var(--background-primary);
}

.subscription-button.danger:hover {
  background: #ff4444;
  color: white;
}

.credits-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.credits-amount {
  font-size: 29px;
  font-weight: 600;
  color: var(--accent-lightblue);
}

.credits-label {
  color: var(--text-secondary);
  font-size: 15px;
}

.credits-overage-setting {
  margin-top: 20px;
}

.credits-overage-setting label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-primary);
}

.credits-overage-setting input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.credits-overage-help {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding-left: 30px;
}

.price-change-notification {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.price-change-notification-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.price-change-notification-details {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.price-change-notification-dismiss {
  margin-top: 12px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

/* Usage History Section */
.usage-refresh-button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.usage-refresh-button:hover {
  background: var(--background-hover);
  color: var(--text-primary);
}

.usage-refresh-button .material-symbols-outlined {
  font-size: 18px;
}

.usage-refresh-button.refreshing .material-symbols-outlined {
  animation: spin 0.5s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.usage-history-table {
  font-size: 13px;
}

.usage-history-header {
  display: grid;
  grid-template-columns: auto 2fr 1.5fr auto;
  gap: 12px;
  padding: 12px 16px;
  background: var(--background-secondary);
  border-radius: 6px 6px 0 0;
  border: 1px solid var(--border-primary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.usage-history-row {
  display: grid;
  grid-template-columns: auto 2fr 1.5fr auto;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border-primary);
  border-top: none;
  transition: background 0.15s ease;
}

.usage-history-row:last-child {
  border-radius: 0 0 6px 6px;
}

.usage-history-row:hover {
  background: var(--background-secondary);
}

.usage-col-date {
  color: var(--text-secondary);
  font-size: 12px;
}

.usage-col-description {
  color: var(--text-primary);
}

.usage-col-metadata {
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metadata-item {
  display: inline-block;
}

.metadata-item strong {
  color: var(--text-muted);
  font-weight: 500;
}

.metadata-empty {
  color: var(--text-faint);
}

.usage-col-amount {
  text-align: right;
  color: var(--text-primary);
  font-family: var(--font-families-mono);
  font-weight: 500;
}

/* Pricing page */
.pricing-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 20px;
  margin-top: -10px;
}

.pricing-controls {
  box-sizing: border-box;
  width: 1024px;
  max-width: 100%;
  margin: 0 auto 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 16px 20px;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
}

.content-container .pricing-controls-text {
  flex: 1 1 100%;
  margin: 0;
  font-size: 15px;
}

.content-container .pricing-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.country-selector {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  max-width: 100%;
  min-width: 0;
}

.country-selector label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.country-selector select {
  padding: 4px 28px 4px 8px;
  font-family: var(--font-families-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  background-color: var(--background-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: min(200px, 100%);
  max-width: 100%;
  outline: 2px solid var(--accent-lightblue);
  outline-offset: 2px;
}

.country-selector select:hover {
  border-color: var(--border-active);
}

.country-selector select:focus {
  outline: 2px solid var(--accent-lightblue);
  border-color: var(--accent-magenta);
}

.pricing-page {
  max-width: 1640px;
  width: 100%;
  text-align: left;
}

.billing-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
}

.billing-toggle-control {
  display: flex;
  align-items: center;
  gap: 14px;
}

.billing-option {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.billing-option.active {
  color: var(--text-primary);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-tertiary);
  border: 1px solid var(--border-primary);
  transition: 0.3s;
  border-radius: 26px;
  outline: 2px solid var(--accent-lightblue);
  outline-offset: 2px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: var(--background-primary);
}

.billing-save-badge {
  background: var(--accent-green);
  color: var(--background-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.pricing-compare {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--background-secondary);
  box-sizing: border-box;
}

.pricing-table {
  width: 1024px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-weight: 400;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-primary);
  text-align: center;
  vertical-align: middle;
  background: var(--background-secondary);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.pricing-table thead th {
  position: relative;
  z-index: 2;
  width: 136px;
  padding: 32px 4px 14px;
  background: #3a3a3a;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  border-bottom: 1px solid #333;
  overflow: visible;
}

.pricing-table thead th:first-child,
.pricing-table tbody th[scope="row"],
.pricing-table tfoot th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 208px;
  text-align: left;
  padding-left: 12px;
  padding-right: 8px;
  overflow-wrap: break-word;
}

.pricing-table thead th:first-child {
  z-index: 3;
  background: #3a3a3a;
}

.pricing-col-name {
  display: block;
  font-weight: 500;
}

.pricing-col-note {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.pricing-table .pricing-current-plan {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  display: none;
  margin: 0;
  white-space: nowrap;
}

.pricing-table .pricing-card-current .pricing-current-plan {
  display: block;
}

.pricing-table .pricing-card-current {
  box-shadow: inset 0 -3px 0 var(--accent-green);
}

.pricing-table[data-current="free"] tbody td[data-plan="free"],
.pricing-table[data-current="freetrial"] tbody td[data-plan="freetrial"],
.pricing-table[data-current="basic"] tbody td[data-plan="basic"],
.pricing-table[data-current="advanced"] tbody td[data-plan="advanced"],
.pricing-table[data-current="pro"] tbody td[data-plan="pro"],
.pricing-table[data-current="enterprise"] tbody td[data-plan="enterprise"] {
  background: color-mix(in srgb, var(--accent-green) 12%, var(--background-secondary));
}

.pricing-section th {
  padding: 14px 12px 6px;
  background: var(--background-primary);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: none;
}

.pricing-table tbody th[scope="row"] {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.pricing-row-hint {
  display: block;
  max-width: 11rem;
  margin-top: 2px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.pricing-row-price td,
.pricing-row-price th {
  padding-top: 16px;
  padding-bottom: 16px;
}

.pricing-table .pricing-amount {
  font-size: inherit;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.pricing-table .pricing-row-price .pricing-amount {
  font-size: 18px;
  font-weight: 650;
}

.pricing-table .pricing-row-business .pricing-amount {
  font-size: 13px;
  font-weight: 500;
}

.pricing-cell-text {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.pricing-table tr[hidden] {
  display: none;
}

.pricing-mark {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.pricing-mark-yes::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--accent-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-mark-no::before,
.pricing-mark-no::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: var(--text-faint);
}

.pricing-mark-no::before {
  transform: rotate(45deg);
}

.pricing-mark-no::after {
  transform: rotate(-45deg);
}

.pricing-table td[data-quota] {
  font-variant-numeric: tabular-nums;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-primary);
}

.pricing-actions td,
.pricing-actions th {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: none;
}

.pricing-table .pricing-button {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 8px 8px;
  white-space: normal;
}

.pricing-actions .pricing-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pricing-downgrade-alert {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

.pricing-downgrade-alert .is-over {
  color: #ff6b6b;
  font-weight: 600;
}

.pricing-version {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}


.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  max-width: none;
  margin: 14px 0 0;
  padding: 0;
  background: var(--border-primary);
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  overflow: visible;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--background-secondary);
  border: none;
  border-radius: 0;
  padding: 0 10px 16px;
  position: relative;
  min-width: 0;
}

.pricing-card:nth-child(even) {
  background: color-mix(in srgb, var(--background-secondary) 96%, var(--text-primary) 4%);
}

.pricing-current-plan {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0;
  width: fit-content;
  background: var(--accent-green);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.0px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-card-current .pricing-current-plan {
  display: block;
}

.pricing-card-trial {
  border-color: var(--border-secondary);
}

.pricing-card-free:hover,
.pricing-card-trial:hover {
  border-color: var(--border-active);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-lightblue);
  color: var(--background-primary);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card-name {
  margin: 0 -10px 0;
  padding: 12px 12px 11px;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-families-sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}

.pricing-card:first-child .pricing-card-name {
  border-top-left-radius: 9px;
}

.pricing-card:last-child .pricing-card-name {
  border-top-right-radius: 9px;
}

.pricing-card-header {
  text-align: center;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 10px;
}

.pricing-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pricing-price-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pricing-price-line[hidden] {
  display: none !important;
}

.pricing-price-label {
  max-width: 100%;
  margin-bottom: 2px;
  font-size: 10.0px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-secondary);
}

.pricing-price-label[hidden] {
  display: none !important;
}

.pricing-price-line-business .pricing-amount {
  font-size: 18px;
}

.pricing-price-line-business .pricing-period {
  font-size: 10px;
}

.pricing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 3px;
  row-gap: 0;
}

.pricing-amount {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.pricing-currency {
  opacity: 0.55;
  margin-right: 1px;
  font-size: 0.72em;
}

.pricing-period {
  font-size: 10px;
  color: var(--text-secondary);
  margin-left: 0;
}

.pricing-vat-badge {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 10.0px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
}

.pricing-vat-badge[hidden] {
  display: none !important;
}

.pricing-annual {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.pricing-server-cost {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-primary);
  font-size: 10.0px;
  line-height: 1.4;
  text-align: left;
  color: var(--text-secondary);
}

.pricing-server-cost[hidden] {
  display: none !important;
}

.pricing-server-cost strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-primary);
  font-size: 10.0px;
  font-weight: 650;
}

.pricing-server-cost span {
  display: block;
}

.pricing-server-cost .pricing-margin-low {
  color: #c62828;
}

.pricing-cost-table-wrap {
  margin-top: 28px;
}

.pricing-cost-table-wrap[hidden] {
  display: none !important;
}

.pricing-cost-table-wrap > p,
.pricing-cost-table-wrap > h2 {
  margin: 16px 0 8px;
}

.pricing-progression {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 20px;
}

.pricing-progression-chart {
  margin: 0;
  padding: 8px 8px 2px;
  border: 1px solid var(--border-primary);
  background: var(--background-primary);
}

.pricing-progression-chart figcaption {
  font-size: 12px;
  font-weight: 650;
}

.pricing-progression-chart svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: auto;
}

.pricing-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
}

.pricing-chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
}

.pricing-chart-grid {
  stroke: var(--border-primary);
  stroke-width: 1;
}

.pricing-chart-tick,
.pricing-chart-xlabel,
.pricing-chart-value {
  fill: var(--text-secondary, var(--text-primary));
  font-size: 10px;
}

.pricing-chart-tick {
  text-anchor: end;
  dominant-baseline: middle;
}

.pricing-chart-xlabel,
.pricing-chart-value {
  text-anchor: middle;
}

.pricing-chart-value {
  font-size: 10.0px;
}

.pricing-chart-dot {
  cursor: pointer;
}

.pricing-chart-tip {
  opacity: 0;
  pointer-events: none;
}

.pricing-chart-dot:hover .pricing-chart-tip {
  opacity: 1;
}

.pricing-chart-tip rect {
  fill: var(--background-primary);
  stroke: var(--border-primary);
}

.pricing-chart-tip text {
  fill: var(--text-primary);
  font-size: 10px;
  text-anchor: middle;
}

@media (max-width: 1100px) {
  .pricing-progression {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-progression {
    grid-template-columns: 1fr;
  }
}

.pricing-assumption-table {
  border-collapse: collapse;
  font-size: 12px;
  margin: 0 0 20px;
}

.pricing-assumption-table th,
.pricing-assumption-table td {
  border-bottom: 1px solid var(--border-primary);
  padding: 4px 12px;
  text-align: right;
}

.pricing-assumption-table th:first-child,
.pricing-assumption-table td:first-child,
.pricing-assumption-table th[scope="row"] {
  text-align: left;
}

.pricing-cost-scroll {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid var(--border-primary);
}

.pricing-cost-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 10px;
  line-height: 1.3;
}

.pricing-cost-table th,
.pricing-cost-table td {
  border-right: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  padding: 3px 6px;
  white-space: nowrap;
  text-align: right;
  background: var(--background-primary);
}

.pricing-cost-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: center;
  font-weight: 650;
}

.pricing-cost-table thead tr:nth-child(2) th {
  top: 22px;
}

.pricing-cost-table th[scope="row"],
.pricing-cost-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
}

.pricing-cost-table thead th:first-child {
  z-index: 4;
}

.pricing-cost-table td.pricing-margin-green {
  background: #e7f6ea;
  color: #1b7a32;
}

.pricing-cost-table td.pricing-margin-yellow {
  background: #fff4cc;
  color: #7a5b00;
}

.pricing-cost-table td.pricing-margin-red {
  background: #fde8e8;
  color: #b71c1c;
}

.pricing-missing-countries {
  columns: 3;
  font-size: 12px;
  margin: 0 0 24px;
  padding-left: 18px;
}

.pricing-missing-countries span {
  color: var(--text-secondary);
}


.pricing-cloud {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.pricing-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  border: none;
  color: var(--text-muted);
  font-size: 9.0px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.pricing-divider::before,
.pricing-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border-primary);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.pricing-features li span:last-child {
  flex: 1;
  color: var(--text-primary);
  text-align: left;
}

.pricing-check {
  color: var(--accent-green);
  font-size: 14px;
  flex-shrink: 0;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.pricing-x {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 20;
}

.pricing-button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  font-family: var(--font-families-sans);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: none;
  box-sizing: border-box;
}

.pricing-button.hidden {
  display: none;
}

.pricing-button-primary {
  background-color: var(--accent-lightblue);
  color: var(--background-primary);
}

.pricing-button-primary:hover {
  background-color: var(--accent-blue);
}

.pricing-button-secondary {
  background-color: var(--button-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
}

.pricing-button-secondary:hover {
  background-color: var(--button-secondary-hover);
  border-color: var(--border-active);
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 32px;
}

.article-card {
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin-bottom: 48px;
}

.article-card:hover h2 {
  color: var(--accent-lightblue);
}

.article-card h2 {
  font-size: 33px;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.1;
  text-align: left;
}

.article-card .article-summary {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  text-align: left;
}

.article-card .article-date {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: auto;
  text-align: left;
}

/* Article detail */
.article-detail {
  max-width: 800px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: left;
  box-sizing: border-box;
}

/* Article layout with TOC */
.article-layout {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  padding: 24px 24px 48px;
  gap: 48px;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Table of Contents */
.article-toc {
  position: sticky;
  top: 72px;
  width: 240px;
  flex-shrink: 0;
  margin-top: 0;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 8px;
  box-sizing: border-box;
}

.article-toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-families-sans);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.article-toc-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  color: var(--text-secondary);
}

.article-toc-toggle-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.article-toc.is-open .article-toc-toggle-icon {
  transform: rotate(180deg);
}

.article-toc h3 {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc li {
  margin: 0;
  padding: 0;
}

.article-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: 0;
  position: relative;
}

/* Add grayscale indicator line with visibility-based opacity */
.article-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(to bottom, #666, #888, #666);
  opacity: var(--visibility-opacity, 0);
  transition:
    opacity 0.15s ease,
    background 0.2s ease;
  pointer-events: none;
}

.article-toc a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Change the line color on hover to show the accent color */
.article-toc a:hover::before {
  background: var(--accent-lightblue);
  opacity: 1;
}

.article-toc .toc-level-1 a {
  font-weight: 500;
  margin-top: 8px;
}

.article-toc .toc-level-2 a {
  font-weight: 400;
  padding-left: 24px;
  margin-left: 0;
}

.article-toc .toc-level-2 a::before {
  left: 12px;
}

.article-toc a.is-current {
  color: var(--text-primary);
}

.article-toc a.is-current::before {
  opacity: 1;
  background: var(--accent-lightblue);
}

.article-detail img.docs-screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--border-primary);
}

.documentation-pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
}

.documentation-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  max-width: 45%;
}

.documentation-pager-link:hover {
  color: var(--accent-lightblue);
  text-decoration: none;
}

.documentation-pager-next {
  margin-left: auto;
  text-align: right;
}

.documentation-pager-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.documentation-pager-title {
  display: block;
  font-size: 15px;
  color: inherit;
}

/* Article detail */
.article-detail {
  max-width: 800px;
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
}

.article-detail h1 {
  margin-bottom: 24px;
  text-align: left;
  position: relative;
  overflow-wrap: break-word;
}

.article-detail h2 {
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  overflow-wrap: break-word;
}

.article-detail h3 {
  font-size: 18px;
  font-weight: 400;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  overflow-wrap: break-word;
}

.heading-anchor {
  color: var(--text-muted);
  text-decoration: none !important;
  margin-left: 8px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.heading-anchor:hover {
  color: var(--accent-lightblue);
  text-decoration: none !important;
}

.article-detail p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-detail ul,
.article-detail ol {
  margin-left: 24px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.article-detail li {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-detail code {
  font-family: var(--font-families-mono);
  background-color: var(--background-tertiary);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.article-detail :not(pre) > code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-detail pre {
  background-color: var(--background-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.article-detail pre code {
  background: none;
  padding: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.docs-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
}

.article-detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.article-detail th,
.article-detail td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-primary);
  vertical-align: top;
}

.article-detail th {
  background-color: var(--background-secondary);
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.article-detail tbody tr:last-child td {
  border-bottom: none;
}

.article-detail blockquote {
  border-left: 4px solid var(--accent-lightblue);
  padding-left: 16px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-detail a {
  color: var(--accent-lightblue);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-detail a:hover {
  text-decoration: none;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

.article-back-link:hover {
  color: var(--text-primary);
  text-decoration: none !important;
}

.article-back-link .material-symbols-outlined {
  font-size: 17px;
}

@media (max-width: 900px) {
  .article-layout {
    flex-direction: column;
    padding: 8px 0 24px;
    gap: 20px;
  }

  .article-toc {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    order: -1;
    margin-top: 0;
    margin-bottom: 4px;
    padding: 0;
    background-color: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
  }

  .article-toc-toggle {
    display: flex;
  }

  .article-toc-heading {
    display: none;
  }

  .article-toc-body {
    display: none;
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px 16px 14px;
    border-top: 1px solid var(--border-primary);
  }

  .article-toc.is-open .article-toc-body {
    display: block;
  }

  .article-detail {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 24px 16px;
    align-items: flex-start;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-detail h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .article-detail h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .article-detail h3 {
    font-size: 17px;
  }

  .article-detail pre {
    padding: 12px;
    font-size: 12px;
  }

  .article-detail th,
  .article-detail td {
    padding: 8px 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  /* Pricing table mobile column sizing */
  .pricing-table {
    width: 860px;
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody th[scope="row"],
  .pricing-table tfoot th {
    width: 136px;
    padding-left: 10px;
    padding-right: 6px;
    font-size: 12px;
  }

  .pricing-table thead th {
    width: 120px;
  }
}

@media (max-width: 600px) {
  .documentation-pager {
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }

  .documentation-pager-link {
    max-width: 100%;
  }

  .documentation-pager-next {
    margin-left: 0;
    justify-content: flex-end;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .main-content {
    padding: 20px 12px;
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody th[scope="row"],
  .pricing-table tfoot th {
    width: 116px;
  }
}

/* Mobile header layout */
@media (max-width: 768px) {
  .title-bar {
    position: static;
    height: auto;
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .title-bar-left {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }

  .title-bar-nav {
    position: static;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 8px 12px;
  }

  .title-bar-nav a {
    font-size: 14px;
  }

  .title-bar-right {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }

  /* Footer mobile layout */
  .footer-bar {
    height: auto;
    flex-direction: column;
  }

  .footer-left {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    min-width: unset;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .footer-right {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    min-width: unset;
  }

  /* Pricing page mobile layout */
  .pricing-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .country-selector {
    align-items: flex-start;
  }
}

/* Consent banner (webapp/js/consent-banner.js). Only visitors from our ads
   and posts see it. Both answers share one button style on purpose. */
.consent-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  box-sizing: border-box;
  width: 456px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--background-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  font-family: var(--font-families-sans);
}

/* In a short window the banner scrolls; its rows keep their height instead
   of being squeezed (which hid the photo and flattened the links). */
.consent-banner > * {
  flex-shrink: 0;
}

.consent-banner-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.consent-banner-photo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.consent-banner-source {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.consent-banner p,
.consent-banner ul,
.consent-banner h2 {
  margin: 0;
}

.consent-banner-eyebrow {
  font-family: var(--font-families-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-lightblue);
}

.consent-banner-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.consent-banner .consent-banner-heading {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.consent-banner-text,
.consent-banner-list {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.consent-banner-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.consent-banner-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.consent-banner-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.consent-banner-buttons-1 {
  grid-template-columns: minmax(0, 1fr);
}

.consent-banner-buttons-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.consent-banner-button {
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.consent-banner-buttons-3 .consent-banner-button {
  font-size: 14px;
}

.consent-banner-button:hover {
  filter: brightness(1.12);
}

.consent-banner-button:focus-visible,
.consent-banner a:focus-visible {
  outline: 2px solid var(--accent-lightblue);
  outline-offset: 2px;
}

.consent-banner-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.consent-banner-links a {
  padding: 4px 0;
  text-decoration: underline;
}

.consent-banner-choose {
  color: var(--accent-lightblue);
}

.consent-banner-privacy {
  color: var(--text-secondary);
}

.consent-banner-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-primary);
  border-radius: 10px;
}

.consent-banner-row {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 14px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-primary);
}

.consent-banner-row:last-child {
  border-bottom: none;
}

label.consent-banner-row {
  cursor: pointer;
}

.consent-banner-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consent-banner-row-title {
  font-size: 14px;
  font-weight: 600;
}

.consent-banner-row-description {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.consent-banner-always {
  font-family: var(--font-families-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-top: 3px;
  white-space: nowrap;
}

/* The real checkbox stays focusable for keyboards and screen readers. */
.consent-banner-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.consent-banner-switch {
  flex: none;
  box-sizing: border-box;
  width: 40px;
  height: 24px;
  margin-top: 2px;
  border-radius: 12px;
  background: var(--button-secondary);
  border: 1px solid var(--border-active);
  position: relative;
  transition: background 0.15s ease;
}

.consent-banner-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--text-secondary);
  transition: transform 0.15s ease;
}

.consent-banner-switch-input:checked + .consent-banner-switch {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.consent-banner-switch-input:checked + .consent-banner-switch::after {
  transform: translateX(16px);
  background: #ffffff;
}

.consent-banner-switch-input:focus-visible + .consent-banner-switch {
  outline: 2px solid var(--accent-lightblue);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .consent-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: 85vh;
    padding: 20px 16px 24px;
    gap: 12px;
    border-radius: 16px 16px 0 0;
    border-width: 1px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  }

  .consent-banner-photo {
    width: 44px;
    height: 44px;
  }

  .consent-banner-button {
    min-height: 48px;
  }
}

/* Patrons page: the author’s photo beside the letter. */
.patrons-letter-with-photo {
  box-sizing: border-box;
  width: 100%;
  max-width: 1040px;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.patrons-letter-with-photo .patrons-letter {
  max-width: 760px;
}

.patrons-letter-photo {
  position: sticky;
  top: 96px;
  margin: 0;
}

.patrons-letter-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
}

@media (max-width: 900px) {
  .patrons-letter-with-photo {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .patrons-letter-photo {
    position: static;
    width: 160px;
  }
}

/* Admin campaign manager (webapp/js/admin-campaigns.js) */
.content-container.admin-campaigns-page {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 1240px;
  text-align: left;
}

.admin-campaigns-setup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  font-size: 13px;
}

.admin-campaigns-setup li::before {
  font-family: "Material Symbols Outlined";
  margin-right: 6px;
  vertical-align: -3px;
  font-size: 16px;
}

.admin-campaigns-setup .is-ok::before {
  content: "check_circle";
  color: var(--accent-lightblue);
}

.admin-campaigns-setup .is-missing::before {
  content: "error";
  color: var(--home-accent-orange);
}

.admin-campaigns-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-campaigns-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border-primary);
}

.admin-campaigns-section h2 code {
  font-size: 0.6em;
  color: var(--text-muted);
}

.admin-campaigns-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
  align-items: end;
}

.admin-campaigns-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-campaigns-field input,
.admin-campaigns-field select,
.admin-campaigns-field textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-secondary);
  background: var(--background-primary);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
}

.admin-campaigns-field input:disabled {
  opacity: 0.5;
}

.admin-campaigns-field input::placeholder,
.admin-campaigns-field textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

.admin-campaigns-placement-form {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-campaigns-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
}

.admin-campaigns-checks legend {
  padding: 0 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-campaigns-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  cursor: pointer;
}

.admin-campaigns-weeks summary,
.admin-campaigns-explain summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-campaigns-weeks[open] summary {
  margin-bottom: 10px;
}

.admin-campaigns-explain p {
  max-width: 70ch;
  font-size: 13px;
  color: var(--text-secondary);
}

.admin-campaigns-section button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-campaigns-funnel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.admin-campaigns-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-campaigns-creative {
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  background: var(--background-secondary);
}

.admin-campaigns-creative > summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}

.admin-campaigns-creative-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px 16px;
}

.admin-campaigns-creative-body h4,
.admin-campaigns-conversions h4 {
  margin: 8px 0 0;
  font-size: 14px;
}

.admin-campaigns-placements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-campaigns-placement {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: var(--background-primary);
}

.admin-campaigns-placement-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}

.admin-campaigns-placement-head .admin-campaigns-delete {
  margin-left: auto;
}

.admin-campaigns-help {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-campaigns-link {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  font-size: 13px;
}

.admin-campaigns-link-label {
  color: var(--text-secondary);
}

.admin-campaigns-link-value {
  overflow-wrap: anywhere;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--background-tertiary);
  font-family: var(--font-families-mono);
  font-size: 12px;
}

.admin-campaigns-link-hint {
  grid-column: 2 / 4;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-campaigns-copy,
.admin-campaigns-delete {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-secondary);
  background: var(--button-secondary);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.admin-campaigns-copy:hover,
.admin-campaigns-delete:hover {
  background: var(--button-secondary-hover);
}

.admin-campaigns-delete {
  color: var(--home-accent-orange);
}

.admin-campaigns-table-wrap {
  overflow-x: auto;
}

.admin-campaigns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-campaigns-table th,
.admin-campaigns-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-primary);
  text-align: right;
  white-space: nowrap;
}

.admin-campaigns-table th:first-child,
.admin-campaigns-table td:first-child,
.admin-campaigns-funnel th:nth-child(2),
.admin-campaigns-funnel td:nth-child(2) {
  text-align: left;
}

.admin-campaigns-table th {
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-campaigns-table tr.is-total td {
  font-weight: 600;
  border-top: 2px solid var(--border-secondary);
}

.admin-campaigns-table tr.is-unmatched td {
  color: var(--text-muted);
}

.admin-campaigns-stats {
  max-width: 560px;
}

.admin-campaigns-consent {
  margin: 0;
  font-size: 14px;
}

.admin-campaigns-conversions ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

@media (max-width: 700px) {
  .admin-campaigns-link {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-campaigns-link-label,
  .admin-campaigns-link-hint {
    grid-column: 1 / -1;
  }
}

/* “Email me a link for my computer” on phones and tablets
   (webapp/js/desktop-link.js). */
.desktop-link-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  background: var(--background-secondary);
  text-align: left;
}

.desktop-link-box p,
.desktop-link-sheet p,
.desktop-link-sheet h2 {
  margin: 0;
}

.desktop-link-title {
  font-weight: 600;
  font-size: 16px;
}

.desktop-link-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.desktop-link-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.desktop-link-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.desktop-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-link-row input {
  flex: 1 1 200px;
  min-width: 0;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-secondary);
  background: var(--background-primary);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming in */
}

.desktop-link-button {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent-blue);
  background: var(--accent-blue);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.desktop-link-button:disabled {
  opacity: 0.7;
}

.desktop-link-note {
  font-size: 13px;
  color: var(--text-muted);
}

.desktop-link-status {
  font-size: 14px;
  color: var(--home-accent-orange);
}

.desktop-link-done {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-lightblue);
}

.desktop-link-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.desktop-link-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--background-tertiary);
  color: var(--text-primary);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  text-align: left;
  font-family: var(--font-families-sans);
}

.desktop-link-heading {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.desktop-link-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.desktop-link-links a {
  color: var(--accent-lightblue);
  text-decoration: underline;
  padding: 8px 0;
}

.desktop-link-close {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-secondary);
  background: var(--button-secondary);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
