/* Optional light theme. Dark remains the authored default when data-theme is absent or dark. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7fa;
  --surface: #ffffff;
  --surface-2: #f0eff5;
  --line: #dedbe6;
  --text: #25222d;
  --muted: #5d5968;
  --purple: #5d38b5;
  --accent: #5431a8;
  --green: #1d6d4d;
  --reader-bg: #f7f7fa;
  --reader-surface: #ffffff;
  --reader-raised: #fbfbfd;
  --reader-field: #ffffff;
  --reader-rule: #dedbe6;
  --reader-text: #25222d;
  --reader-muted: #5d5968;
  --reader-violet: #5d38b5;
  --reader-accent: #5431a8;
  --reader-accent-hover: #43268f;
}

:root[data-theme="light"],
:root[data-theme="light"] body {
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="light"] * {
  scrollbar-color: #b7b2c1 var(--bg);
}

:root[data-theme="light"] ::selection {
  background: #cfc0f5;
  color: #241b3c;
}

:root[data-theme="light"] :focus-visible {
  outline-color: var(--purple);
}

/* The toggle is styled in both themes so adding it does not alter the dark default. */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #443451;
  border-radius: 8px;
  background: #121016;
  color: #d9cbea;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.theme-toggle:hover {
  border-color: #a78bfa;
  background: #241a30;
  color: #ffffff;
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="light"] .theme-toggle {
  border-color: #cbc6d5;
  background: #ffffff;
  color: #5431a8;
}

:root[data-theme="light"] .theme-toggle:hover {
  border-color: #8064c7;
  background: #f0ecfb;
  color: #43268f;
}

:root[data-theme="light"] .site-header,
:root[data-theme="light"] .reader-header {
  border-color: #dedbe6;
  background: #ffffff;
}

:root[data-theme="light"] .brand small,
:root[data-theme="light"] .reader-brand small,
:root[data-theme="light"] .header-save,
:root[data-theme="light"] .main-nav a,
:root[data-theme="light"] .reader-nav-link,
:root[data-theme="light"] .site-footer,
:root[data-theme="light"] .reader-footer {
  color: #5d5968;
}

:root[data-theme="light"] .main-nav a:hover,
:root[data-theme="light"] .main-nav a.active,
:root[data-theme="light"] .reader-nav-link:hover,
:root[data-theme="light"] .header-save:hover,
:root[data-theme="light"] .site-footer a:hover {
  color: #43268f;
}

:root[data-theme="light"] .header-save b,
:root[data-theme="light"] .brand-dot,
:root[data-theme="light"] .reader-brand-dot,
:root[data-theme="light"] .footer-brand span,
:root[data-theme="light"] .reader-footer-brand span {
  color: #5d38b5;
}

:root[data-theme="light"] .account-trigger,
:root[data-theme="light"] .reader-nav-account {
  border-color: #c7c2d1;
  background: #ffffff;
  color: #413c4d;
}

:root[data-theme="light"] .account-trigger:hover,
:root[data-theme="light"] .reader-nav-account:hover {
  border-color: #8064c7;
  background: #f0ecfb;
  color: #2f2252;
}

:root[data-theme="light"] .account-trigger svg {
  color: #5d38b5;
}

:root[data-theme="light"] .hero h1 span,
:root[data-theme="light"] .page-intro h1 span,
:root[data-theme="light"] .text-link:hover,
:root[data-theme="light"] .timeline-preview .year,
:root[data-theme="light"] .resource-icon,
:root[data-theme="light"] .timeline-entry time,
:root[data-theme="light"] .timeline-entry a,
:root[data-theme="light"] .intro-meta {
  color: #5d38b5;
}

:root[data-theme="light"] .hero-description,
:root[data-theme="light"] .hero-caption,
:root[data-theme="light"] .visual-label,
:root[data-theme="light"] .search-hints,
:root[data-theme="light"] .section-head p,
:root[data-theme="light"] .text-link,
:root[data-theme="light"] .stat span,
:root[data-theme="light"] .stat small,
:root[data-theme="light"] .robot-company,
:root[data-theme="light"] .robot-bottom,
:root[data-theme="light"] .media-fallback small,
:root[data-theme="light"] .disclosure,
:root[data-theme="light"] .page-intro p,
:root[data-theme="light"] .page-tools .result-count,
:root[data-theme="light"] .company-card small,
:root[data-theme="light"] .company-card p,
:root[data-theme="light"] .graph-side p,
:root[data-theme="light"] .graph-hint,
:root[data-theme="light"] .timeline-entry p,
:root[data-theme="light"] .methodology span,
:root[data-theme="light"] .resource-row p,
:root[data-theme="light"] .resource-meta,
:root[data-theme="light"] .resource-meta span,
:root[data-theme="light"] .evidence-copy p,
:root[data-theme="light"] .evidence-copy li,
:root[data-theme="light"] .detail-copy>p,
:root[data-theme="light"] .detail-copy dt,
:root[data-theme="light"] .detail-note,
:root[data-theme="light"] .section-head h2 span,
:root[data-theme="light"] .feature-panel-footer,
:root[data-theme="light"] .resource-row small {
  color: #5d5968;
}

:root[data-theme="light"] .robot-title svg {
  color: #625d6d;
}

:root[data-theme="light"] .orbit,
:root[data-theme="light"] .orbit:before,
:root[data-theme="light"] .orbit:after {
  border-color: #d8d3e3;
}

:root[data-theme="light"] .hero-visual:before {
  background: none;
}

:root[data-theme="light"] .visual-label span {
  background: #917bc6;
}

:root[data-theme="light"] .search-form,
:root[data-theme="light"] .company-search input,
:root[data-theme="light"] .network-search,
:root[data-theme="light"] .manual-search-form input {
  border-color: #c9c4d4;
  background: #ffffff;
  color: #25222d;
}

:root[data-theme="light"] .search-form>svg,
:root[data-theme="light"] .network-search>svg {
  color: #625d6d;
}

:root[data-theme="light"] .search-form input,
:root[data-theme="light"] .network-search input,
:root[data-theme="light"] .company-search input,
:root[data-theme="light"] .manual-search-form input {
  color: #25222d;
}

:root[data-theme="light"] .search-form input::placeholder,
:root[data-theme="light"] .network-search input::placeholder,
:root[data-theme="light"] .company-search input::placeholder,
:root[data-theme="light"] .manual-search-form input::placeholder {
  color: #716c7a;
}

:root[data-theme="light"] .search-form:focus-within,
:root[data-theme="light"] .network-search:focus-within {
  border-color: #7051ba;
  box-shadow: 0 0 0 2px #7051ba26;
}

:root[data-theme="light"] .search-form button,
:root[data-theme="light"] .primary,
:root[data-theme="light"] .reader-button-primary {
  background: #5431a8;
  color: #ffffff;
}

:root[data-theme="light"] .search-form button:hover,
:root[data-theme="light"] .primary:hover,
:root[data-theme="light"] .reader-button-primary:hover {
  background: #43268f;
}

:root[data-theme="light"] .secondary,
:root[data-theme="light"] .reader-button-secondary,
:root[data-theme="light"] .reader-icon-button {
  border-color: #c7c2d1;
  background: #ffffff;
  color: #4f495b;
}

:root[data-theme="light"] .secondary:hover,
:root[data-theme="light"] .reader-button-secondary:hover,
:root[data-theme="light"] .reader-icon-button:hover {
  border-color: #8064c7;
  background: #f0ecfb;
  color: #2f2252;
}

:root[data-theme="light"] .skip-link {
  background: #5431a8;
  color: #ffffff;
}

:root[data-theme="light"] .visual-tag {
  border-color: #cbc5d7;
  background: #ffffff;
  color: #423c4e;
}

:root[data-theme="light"] .stats,
:root[data-theme="light"] .feature-panel-footer,
:root[data-theme="light"] .robot-info,
:root[data-theme="light"] .timeline-dot:after,
:root[data-theme="light"] .site-footer,
:root[data-theme="light"] .reader-footer {
  border-color: #dedbe6;
}

:root[data-theme="light"] .chip,
:root[data-theme="light"] .empty-state,
:root[data-theme="light"] .company-card,
:root[data-theme="light"] .feature-panel,
:root[data-theme="light"] .graph-stage,
:root[data-theme="light"] .graph-side,
:root[data-theme="light"] .robot-card {
  border-color: #dedbe6;
}

:root[data-theme="light"] .chip {
  color: #514b5c;
}

:root[data-theme="light"] .chip:hover {
  border-color: #8064c7;
  color: #2f2252;
}

:root[data-theme="light"] .chip.active {
  border-color: #8064c7;
  background: #eee9fb;
  color: #43268f;
}

:root[data-theme="light"] .chip .count {
  color: #625d6d;
}

:root[data-theme="light"] .robot-card,
:root[data-theme="light"] .company-card,
:root[data-theme="light"] .feature-panel,
:root[data-theme="light"] .graph-side {
  background: #ffffff;
}

:root[data-theme="light"] .build-section {
  border-color: #d3cedd;
  background: #ffffff;
}

:root[data-theme="light"] .build-section p,
:root[data-theme="light"] .build-section small {
  color: #5d5968;
}

:root[data-theme="light"] .robot-card:hover {
  border-color: #8064c7;
}

:root[data-theme="light"] .robot-media,
:root[data-theme="light"] .detail-image,
:root[data-theme="light"] .dossier-photo,
:root[data-theme="light"] .dossier-product>div {
  background: #f0eff5;
}

:root[data-theme="light"] .robot-media .category-badge,
:root[data-theme="light"] .robot-tags span,
:root[data-theme="light"] .company-logo {
  border-color: #d5cce8;
  background: #eee9fb;
  color: #4a2d82;
}

:root[data-theme="light"] .robot-tags span {
  color: #514266;
}

:root[data-theme="light"] .save-button {
  color: #625d6d;
}

:root[data-theme="light"] .save-button:hover {
  background: #eee9fb;
  color: #5d38b5;
}

:root[data-theme="light"] .save-button.saved {
  color: #5d38b5;
}

:root[data-theme="light"] .media-fallback {
  color: #625d6d;
}

:root[data-theme="light"] .feature-panel,
:root[data-theme="light"] .graph-stage {
  background: #ffffff;
}

:root[data-theme="light"] .mini-graph,
:root[data-theme="light"] .graph-stage>svg {
  background: #ffffff;
}

:root[data-theme="light"] .timeline-dot {
  border-color: #8064c7;
}

:root[data-theme="light"] .sort-select,
:root[data-theme="light"] .atlas-filters select,
:root[data-theme="light"] .catalog-filters select {
  color: #4f495b;
  background: #ffffff;
  border-color: #c9c4d4;
}

:root[data-theme="light"] .sort-select option {
  background: #ffffff;
  color: #25222d;
}

:root[data-theme="light"] .company-results,
:root[data-theme="light"] .company-counts {
  color: #5d5968;
}

:root[data-theme="light"] .empty-state {
  background: #fbfbfd;
}

:root[data-theme="light"] .graph-actions,
:root[data-theme="light"] .network-zoom {
  border-color: #c7c2d1;
  background: #ffffff;
}

:root[data-theme="light"] .graph-actions button,
:root[data-theme="light"] .network-zoom button {
  color: #4f495b;
}

:root[data-theme="light"] .graph-actions button:hover,
:root[data-theme="light"] .network-zoom button:hover {
  background: #f0ecfb;
  color: #2f2252;
}

:root[data-theme="light"] .network-stage,
:root[data-theme="light"] .network-expanded {
  background: #f3f2f7;
}

:root[data-theme="light"] .network-workspace {
  border-color: #d3cedd;
  background: #ffffff;
}

:root[data-theme="light"] .network-host {
  color: #292532;
}

:root[data-theme="light"] .network-tabs,
:root[data-theme="light"] .network-results,
:root[data-theme="light"] .network-tooltip {
  border-color: #c7c2d1;
  background: #ffffff;
  color: #292532;
  box-shadow: 0 10px 24px #2e25401f;
}

:root[data-theme="light"] .network-tabs button,
:root[data-theme="light"] .network-options label,
:root[data-theme="light"] .network-canvas-bottom p,
:root[data-theme="light"] .network-zoom output,
:root[data-theme="light"] .network-results small,
:root[data-theme="light"] .network-results button,
:root[data-theme="light"] .network-legend button,
:root[data-theme="light"] .network-footnote,
:root[data-theme="light"] .network-footnote button {
  color: #514b5c;
}

:root[data-theme="light"] .network-tabs button[aria-pressed="true"],
:root[data-theme="light"] .network-legend button[aria-pressed="true"] {
  border-color: #8064c7;
  background: #eee9fb;
  color: #43268f;
  box-shadow: inset 0 0 0 1px #b4a1e4;
}

:root[data-theme="light"] .network-tabs button:hover,
:root[data-theme="light"] .network-results button:hover,
:root[data-theme="light"] .network-legend button:hover {
  background: #f0ecfb;
}

:root[data-theme="light"] .network-search input {
  color: #292532;
}

:root[data-theme="light"] .network-canvas-caption span,
:root[data-theme="light"] .network-heading-stats span,
:root[data-theme="light"] .network-disclosure,
:root[data-theme="light"] .network-heading p,
:root[data-theme="light"] .network-status {
  color: #5d5968;
}

:root[data-theme="light"] .network-eyebrow,
:root[data-theme="light"] .network-disclosure a,
:root[data-theme="light"] .network-heading h1 span,
:root[data-theme="light"] .network-detail-note a,
:root[data-theme="light"] .network-guide li>b,
:root[data-theme="light"] .network-detail-section h3>span,
:root[data-theme="light"] .network-legend button span,
:root[data-theme="light"] .network-footnote .network-status,
:root[data-theme="light"] .atlas-clusters text {
  color: #5f3b9f;
}

:root[data-theme="light"] .network-canvas-caption b,
:root[data-theme="light"] .network-sample,
:root[data-theme="light"] .network-heading h1,
:root[data-theme="light"] .network-detail h2 {
  color: #292532;
}

:root[data-theme="light"] .network-sample,
:root[data-theme="light"] .network-canvas-bottom .network-zoom,
:root[data-theme="light"] .network-detail {
  border-color: #d3cedd;
}

:root[data-theme="light"] .network-detail {
  background: #ffffff;
  color: #292532;
}

:root[data-theme="light"] .network-detail-description,
:root[data-theme="light"] .network-detail-note p,
:root[data-theme="light"] .network-source-note,
:root[data-theme="light"] .network-no-edges,
:root[data-theme="light"] .network-guide small,
:root[data-theme="light"] .network-detail-brand>span:not(.brand-logo),
:root[data-theme="light"] .network-detail-brand small,
:root[data-theme="light"] .network-detail-kicker>span {
  color: #5d5968;
}

:root[data-theme="light"] .network-detail-kicker,
:root[data-theme="light"] .network-detail-note,
:root[data-theme="light"] .network-source-note,
:root[data-theme="light"] .network-connection-list button,
:root[data-theme="light"] .network-robot-links button,
:root[data-theme="light"] .network-browse,
:root[data-theme="light"] .network-official,
:root[data-theme="light"] .network-guide li>span {
  color: #4f495b;
}

:root[data-theme="light"] .network-detail-section,
:root[data-theme="light"] .network-connection-list button,
:root[data-theme="light"] .network-detail-note,
:root[data-theme="light"] .network-source-note,
:root[data-theme="light"] .network-legend {
  border-color: #dedbe6;
}

:root[data-theme="light"] .network-official,
:root[data-theme="light"] .network-robot-links button {
  border-color: #c7c2d1;
  background: #f8f7fb;
}

:root[data-theme="light"] .network-official:hover,
:root[data-theme="light"] .network-robot-links button:hover {
  border-color: #8064c7;
  background: #eee9fb;
}

:root[data-theme="light"] .network-node-label rect {
  fill: #ffffff;
  stroke: #bdb6cb;
}

:root[data-theme="light"] .network-node-label text {
  fill: #312b3b;
}

:root[data-theme="light"] .network-company:hover .network-node-label text,
:root[data-theme="light"] .network-company.is-selected .network-node-label text {
  fill: #2f2252;
}

:root[data-theme="light"] .network-edge-labels {
  fill: #4f495b;
  stroke: #ffffff;
}

:root[data-theme="light"] .atlas-edge-hit:focus-visible {
  stroke: #5d38b5;
}

:root[data-theme="light"] .network-memberships line {
  stroke: #a48dbd;
}

:root[data-theme="light"] .network-product:hover>circle:last-child,
:root[data-theme="light"] .network-product:focus-visible>circle:last-child,
:root[data-theme="light"] .network-product.is-selected>circle:last-child {
  stroke: #4d327d;
  fill: #b69be8;
}

:root[data-theme="light"] .network-tooltip small,
:root[data-theme="light"] .network-results b,
:root[data-theme="light"] .network-connection-list b {
  color: #5f3b9f;
}

:root[data-theme="light"] .network-zoom button[data-action="fit"] {
  border-left-color: #dedbe6;
}

:root[data-theme="light"] .dossier-breadcrumb,
:root[data-theme="light"] .dossier-section-heading p,
:root[data-theme="light"] .dossier-empty,
:root[data-theme="light"] .dossier-status,
:root[data-theme="light"] .dossier-maker small,
:root[data-theme="light"] .dossier-meta dt,
:root[data-theme="light"] .dossier-sources span,
:root[data-theme="light"] .dossier-product small,
:root[data-theme="light"] .dossier-english,
:root[data-theme="light"] .company-dossier-summary,
:root[data-theme="light"] .dossier-relations summary small,
:root[data-theme="light"] .dossier-relations summary>span {
  color: #5d5968;
}

:root[data-theme="light"] .company-dossier-summary strong {
  color: #342d41;
}

:root[data-theme="light"] .dossier-breadcrumb a,
:root[data-theme="light"] .dossier-photo a,
:root[data-theme="light"] .dossier a,
:root[data-theme="light"] .dossier-source-note,
:root[data-theme="light"] .company-title-link:hover {
  color: #5f3b9f;
}

:root[data-theme="light"] .dossier-lead,
:root[data-theme="light"] .dossier-prose,
:root[data-theme="light"] .dossier-section>p,
:root[data-theme="light"] .dossier-facts,
:root[data-theme="light"] .dossier-relations p,
:root[data-theme="light"] .dossier-meta dd {
  color: #413c4c;
}

:root[data-theme="light"] .dossier-tags>span {
  border-color: #c9c1d5;
  color: #514266;
}

:root[data-theme="light"] .dossier-photo figcaption {
  background: #f0eff5;
  color: #514b5c;
}

:root[data-theme="light"] .dossier-nav,
:root[data-theme="light"] .dossier-specs th,
:root[data-theme="light"] .dossier-specs td,
:root[data-theme="light"] .dossier-sources li,
:root[data-theme="light"] .dossier-product,
:root[data-theme="light"] .dossier-relations details,
:root[data-theme="light"] .dossier-source-note {
  border-color: #dedbe6;
}

:root[data-theme="light"] .dossier-nav button {
  color: #514b5c;
}

:root[data-theme="light"] .dossier-nav button:hover {
  color: #5f3b9f;
}

:root[data-theme="light"] .dossier-specs thead {
  background: #f0eff5;
  color: #5d5968;
}

:root[data-theme="light"] .dossier-specs td,
:root[data-theme="light"] .dossier-product strong {
  color: #37323f;
}

:root[data-theme="light"] .dossier-specs small,
:root[data-theme="light"] .dossier-no-image,
:root[data-theme="light"] .atlas-no-photo {
  color: #625d6d;
}

:root[data-theme="light"] .dossier-no-image,
:root[data-theme="light"] .atlas-no-photo {
  background: #f0eff5;
}

:root[data-theme="light"] .atlas-filters,
:root[data-theme="light"] .catalog-filters,
:root[data-theme="light"] .atlas-filters>span,
:root[data-theme="light"] .catalog-filters .filter-note,
:root[data-theme="light"] .catalog-coverage,
:root[data-theme="light"] .company-results,
:root[data-theme="light"] .atlas-evidence-meta dt,
:root[data-theme="light"] .atlas-source small,
:root[data-theme="light"] .atlas-source p,
:root[data-theme="light"] .evidence-stats span,
:root[data-theme="light"] .evidence-table th {
  color: #5d5968;
}

:root[data-theme="light"] .catalog-coverage strong,
:root[data-theme="light"] .evidence-stats strong {
  color: #342d41;
}

:root[data-theme="light"] .catalog-coverage,
:root[data-theme="light"] .atlas-source,
:root[data-theme="light"] .evidence-relations details,
:root[data-theme="light"] .evidence-table th,
:root[data-theme="light"] .evidence-table td {
  border-color: #dedbe6;
}

:root[data-theme="light"] .catalog-coverage a,
:root[data-theme="light"] .atlas-source a,
:root[data-theme="light"] .detail-provenance a,
:root[data-theme="light"] .evidence-copy a {
  color: #5f3b9f;
}

:root[data-theme="light"] .atlas-parties button,
:root[data-theme="light"] .atlas-evidence-meta dd,
:root[data-theme="light"] .atlas-product-list button,
:root[data-theme="light"] .evidence-table td,
:root[data-theme="light"] .evidence-relations summary {
  color: #413c4c;
}

:root[data-theme="light"] .atlas-product-list button {
  border-color: #d5cedf;
  background: #fbfbfd;
}

:root[data-theme="light"] .atlas-product-list button:hover {
  border-color: #8064c7;
  background: #f0ecfb;
}

:root[data-theme="light"] .atlas-product-list small,
:root[data-theme="light"] .robot-bottom>span {
  color: #625d6d;
}

:root[data-theme="light"] .atlas-empty {
  border-color: #b39acb;
  color: #55347e;
  background: #fbf9ff;
}

:root[data-theme="light"] .evidence-stats {
  border-color: #dedbe6;
  background: #dedbe6;
}

:root[data-theme="light"] .evidence-stats>div {
  background: #ffffff;
}

:root[data-theme="light"] .toast {
  border-color: #7055a4;
  background: #39265f;
  color: #ffffff;
}

:root[data-theme="light"] .manual-search-form label,
:root[data-theme="light"] .manual-meta,
:root[data-theme="light"] .manual-price span,
:root[data-theme="light"] .manual-results-heading span,
:root[data-theme="light"] .manual-stats dt,
:root[data-theme="light"] .manual-empty-state p,
:root[data-theme="light"] .manual-subscription-note,
:root[data-theme="light"] .manual-subscription-action span,
:root[data-theme="light"] .manual-match-note {
  color: #5d5968;
}

:root[data-theme="light"] .manual-row-heading h3,
:root[data-theme="light"] .manual-price strong,
:root[data-theme="light"] .manual-stats dd {
  color: #302b38;
}

:root[data-theme="light"] .manual-stats {
  background: var(--line);
}

:root[data-theme="light"] .manual-stats>div {
  background: var(--surface);
}

:root[data-theme="light"] .manual-filter,
:root[data-theme="light"] .manual-buy {
  border-color: #c9c4d4;
  background: #ffffff;
  color: #514b5c;
}

:root[data-theme="light"] .manual-filter:hover {
  border-color: #8064c7;
  color: #43268f;
}

:root[data-theme="light"] .manual-filter.active {
  border-color: #8064c7;
  background: #eee9fb;
  color: #43268f;
}

:root[data-theme="light"] .manual-filter span,
:root[data-theme="light"] .manual-dossier-link,
:root[data-theme="light"] .manual-evidence,
:root[data-theme="light"] .manual-review-note,
:root[data-theme="light"] .manual-subscription-benefit,
:root[data-theme="light"] .manual-subscription-action strong,
:root[data-theme="light"] .manual-filter.active span,
:root[data-theme="light"] .manual-dossier-link:hover {
  color: #5f3b9f;
}

:root[data-theme="light"] .manual-badge,
:root[data-theme="light"] .manual-match-line,
:root[data-theme="light"] .manual-manufacturer {
  color: #514b5c;
}

:root[data-theme="light"] .manual-badge,
:root[data-theme="light"] .manual-filter-row,
:root[data-theme="light"] .manual-results-heading,
:root[data-theme="light"] .manual-row,
:root[data-theme="light"] .manual-stats,
:root[data-theme="light"] .manual-empty-state,
:root[data-theme="light"] .manual-subscription,
:root[data-theme="light"] .manual-dossier-section .manual-empty {
  border-color: #dedbe6;
}

:root[data-theme="light"] .manual-badge-exact,
:root[data-theme="light"] .manual-badge-series {
  border-color: #9a7bd0;
  color: #5f3b9f;
}

:root[data-theme="light"] .manual-badge-company {
  border-color: #9da9bc;
  color: #4c596b;
}

:root[data-theme="light"] .manual-badge-pending {
  border-color: #bf9958;
  background: #fff8e9;
  color: #744f1d;
}

:root[data-theme="light"] .manual-buy:disabled {
  border-color: #d4cfda;
  background: #f0eff5;
  color: #777280;
}

:root[data-theme="light"] .membership-dialog,
:root[data-theme="light"] dialog {
  border-color: #c9c4d4;
  background: #ffffff;
  color: #25222d;
}

:root[data-theme="light"] dialog::backdrop,
:root[data-theme="light"] .membership-dialog::backdrop {
  background: #21183273;
}

:root[data-theme="light"] .icon-button,
:root[data-theme="light"] .membership-dialog .membership-close {
  background: #f0eff5;
  color: #514b5c;
}

:root[data-theme="light"] .icon-button:hover,
:root[data-theme="light"] .membership-dialog .membership-close:hover {
  background: #eee9fb;
  color: #43268f;
}

:root[data-theme="light"] .membership-lead,
:root[data-theme="light"] .membership-account>p,
:root[data-theme="light"] .membership-view-heading p,
:root[data-theme="light"] .membership-order-heading p,
:root[data-theme="light"] .membership-empty p,
:root[data-theme="light"] .membership-loading-inline,
:root[data-theme="light"] .membership-loading,
:root[data-theme="light"] .membership-payment-copy p,
:root[data-theme="light"] .membership-recovery p {
  color: #5d5968;
}

:root[data-theme="light"] .membership-muted,
:root[data-theme="light"] .membership-payment-note {
  color: #5d5968 !important;
}

:root[data-theme="light"] .membership-form label,
:root[data-theme="light"] .membership-support-form label {
  color: #413c4c;
}

:root[data-theme="light"] .membership-checkbox {
  color: #413c4c !important;
}

:root[data-theme="light"] .membership-state,
:root[data-theme="light"] .membership-tab,
:root[data-theme="light"] .membership-text-button,
:root[data-theme="light"] .membership-icon-text {
  color: #5f3b9f;
}

:root[data-theme="light"] .membership-state,
:root[data-theme="light"] .membership-tabs,
:root[data-theme="light"] .membership-support-form,
:root[data-theme="light"] .membership-summary,
:root[data-theme="light"] .membership-order-meta,
:root[data-theme="light"] .membership-order-card,
:root[data-theme="light"] .membership-payment-note,
:root[data-theme="light"] .membership-price-line,
:root[data-theme="light"] .membership-notice,
:root[data-theme="light"] .membership-inline-problem,
:root[data-theme="light"] .membership-form-message,
:root[data-theme="light"] .membership-recovery-code {
  border-color: #d7d1df;
}

:root[data-theme="light"] .membership-state.is-active,
:root[data-theme="light"] .membership-form-message.is-success,
:root[data-theme="light"] .membership-payment-note.is-ready,
:root[data-theme="light"] .membership-success-state {
  border-color: #79a88e;
  background: #edf8f1;
  color: #1d6d4d;
}

:root[data-theme="light"] .membership-state.is-alert,
:root[data-theme="light"] .membership-payment-note.is-pending,
:root[data-theme="light"] .membership-inline-problem {
  border-color: #c59d60;
  background: #fff8e9;
  color: #744f1d;
}

:root[data-theme="light"] .membership-payment-note.is-ready {
  color: #1d6d4d !important;
}

:root[data-theme="light"] .membership-payment-note.is-pending {
  color: #744f1d !important;
}

:root[data-theme="light"] .membership-notice {
  background: #f7f3ff;
  color: #4f347c !important;
}

:root[data-theme="light"] .membership-form input,
:root[data-theme="light"] .membership-support-form textarea,
:root[data-theme="light"] .reader-page-input-wrap input {
  border-color: #c9c4d4;
  background: #ffffff;
  color: #25222d;
}

:root[data-theme="light"] .membership-form input:focus,
:root[data-theme="light"] .membership-support-form textarea:focus,
:root[data-theme="light"] .reader-page-input-wrap input:focus {
  border-color: #7051ba;
  outline-color: #7051ba;
}

:root[data-theme="light"] .membership-form-message {
  background: #fff3f5;
  color: #963e4c !important;
}

:root[data-theme="light"] .membership-form-message.is-success {
  color: #1d6d4d !important;
}

:root[data-theme="light"] .membership-loader {
  border-color: #d4cfdd;
  border-top-color: #5d38b5;
}

:root[data-theme="light"] .membership-summary,
:root[data-theme="light"] .membership-order-meta {
  background: #dedbe6;
}

:root[data-theme="light"] .membership-summary>div,
:root[data-theme="light"] .membership-order-meta>div,
:root[data-theme="light"] .membership-order-card {
  background: #fbfbfd;
}

:root[data-theme="light"] .membership-summary dt,
:root[data-theme="light"] .membership-order-meta dt {
  color: #5d5968;
}

:root[data-theme="light"] .membership-summary dd,
:root[data-theme="light"] .membership-order-meta dd,
:root[data-theme="light"] .membership-payment-copy strong,
:root[data-theme="light"] .membership-order-card code,
:root[data-theme="light"] .membership-payment-view code {
  color: #302b38;
}

:root[data-theme="light"] .membership-price-line strong {
  color: #5d38b5;
}

:root[data-theme="light"] .membership-price-line span {
  color: #5d5968;
}

:root[data-theme="light"] .membership-success-state h3,
:root[data-theme="light"] .membership-success-state p {
  color: #1d6d4d;
}

:root[data-theme="light"] .membership-qr-error {
  color: #963e4c;
}

:root[data-theme="light"] .membership-qr-empty {
  border-color: #c9c4d4;
  background: #f0eff5;
  color: #514b5c;
}

:root[data-theme="light"] .membership-recovery-code {
  background: #f7f3ff;
}

:root[data-theme="light"] .membership-recovery-code code {
  color: #4f347c;
}

:root[data-theme="light"] .reader-heading p,
:root[data-theme="light"] .reader-status-copy p,
:root[data-theme="light"] .reader-page-input-wrap,
:root[data-theme="light"] .reader-page-total,
:root[data-theme="light"] .reader-zoom-label,
:root[data-theme="light"] .reader-notes,
:root[data-theme="light"] .reader-footer-brand {
  color: #5d5968;
}

:root[data-theme="light"] .reader-footer-brand {
  color: #302b38;
}

:root[data-theme="light"] .reader-header,
:root[data-theme="light"] .reader-heading,
:root[data-theme="light"] .reader-toolbar,
:root[data-theme="light"] .reader-footer {
  border-color: #dedbe6;
}

:root[data-theme="light"] .reader-access-state {
  border-color: #c7bdd8;
  color: #5f3b9f;
}

:root[data-theme="light"] .reader-access-state.is-ready {
  border-color: #79a88e;
  color: #1d6d4d;
}

:root[data-theme="light"] .reader-access-state.is-error,
:root[data-theme="light"] .reader-access-state.is-locked {
  border-color: #c59d60;
  color: #744f1d;
}

:root[data-theme="light"] .reader-status-indicator {
  border-color: #8064c7;
  background: #eee9fb;
}

:root[data-theme="light"] .reader-status-error .reader-status-indicator,
:root[data-theme="light"] .reader-status-locked .reader-status-indicator {
  border-color: #b17a32;
  background: #fff0d1;
}

:root[data-theme="light"] .reader-status[role="alert"] .reader-status-copy h2 {
  color: #744f1d;
}

:root[data-theme="light"] .reader-viewport {
  border-color: #d3cedd;
  background: #f0eff5;
}

:root[data-theme="light"] .reader-page-shell {
  border-color: #c8c2d0;
}

:root[data-theme="light"] .reader-watermark {
  border-color: #8c8294;
  background: #ffffffe8;
  color: #473c4d;
}

:root[data-theme="light"] button:disabled,
:root[data-theme="light"] input:disabled,
:root[data-theme="light"] textarea:disabled,
:root[data-theme="light"] select:disabled {
  opacity: .58;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}
