/* Catppuccin palette: https://github.com/catppuccin/palette (MIT). */
html[data-site-font="segoe"] { --site-font-family: "Segoe UI", Arial, sans-serif; }
html[data-site-font="verdana"] { --site-font-family: Verdana, Geneva, sans-serif; }
html[data-site-font="tahoma"] { --site-font-family: Tahoma, Verdana, sans-serif; }
html[data-site-font="trebuchet"] { --site-font-family: "Trebuchet MS", Arial, sans-serif; }
html[data-site-font="calibri"] { --site-font-family: Calibri, "Segoe UI", sans-serif; }
html[data-site-font="georgia"] { --site-font-family: Georgia, "Times New Roman", serif; }
html[data-site-font="times"] { --site-font-family: "Times New Roman", Times, serif; }
html[data-site-font="garamond"] { --site-font-family: Garamond, Georgia, serif; }
html[data-site-font="courier"] { --site-font-family: "Courier New", Courier, monospace; }
html[data-site-font="consolas"] { --site-font-family: Consolas, "Courier New", monospace; }

:root, html[data-theme="latte"] {
  color-scheme: light;
  --theme-menu-accent: #4566a4;
  --ctp-base: #ffffff;
  --ctp-mantle: #eff1f5;
  --ctp-crust: #e6e9ef;
  --ctp-surface0: #e6e9ef;
  --ctp-surface1: #ccd0da;
  --ctp-text: #303446;
  --ctp-subtext1: #414559;
  --ctp-subtext0: #51576d;
  --ctp-mauve: #3e526a;
  --ctp-red: #b51a43;
  --ctp-green: #347016;
  --ctp-yellow: #805300;
  --ctp-pink: #576c83;
}
:root,
html[data-theme]:not([data-theme="latte"]) :where(body:not(.maintenance-screen), .header, .site-footer, .home-intro) {
  --ink: var(--ctp-text); --teal: var(--ctp-mauve); --muted: var(--ctp-subtext0);
  --line: var(--ctp-surface1); --paper: var(--ctp-base); --background: var(--ctp-mantle);
  --navigation-text: var(--ctp-subtext1);
  --theme-selection: color-mix(in srgb, var(--teal) 15%, var(--paper));
  --theme-success: color-mix(in srgb, var(--ctp-green) 12%, var(--paper));
  --theme-error: color-mix(in srgb, var(--ctp-red) 12%, var(--paper));
  --theme-warning: color-mix(in srgb, var(--ctp-yellow) 12%, var(--paper));
  --theme-menu-hover: color-mix(in srgb, var(--site-theme-color, var(--theme-menu-accent)) 16%, var(--paper));
  --theme-menu-border: color-mix(in srgb, var(--site-theme-color, var(--theme-menu-accent)) 70%, var(--paper));
}
@media (max-width:1024px) { .header-inner > .mobile-menu-toggle { grid-column:2; grid-row:1; } }
html[data-theme]:not([data-theme="latte"]),
html[data-theme]:not([data-theme="latte"]) :is(body:not(.maintenance-screen) > .header, .site-footer, .home-intro) {
  color-scheme: dark;
  --ctp-base: var(--site-theme-color, #000);
  --ctp-mantle: var(--site-theme-color, #000);
  --ctp-crust: var(--site-theme-color, #000);
  --ctp-surface0: #141414;
  --ctp-surface1: #383838;
  --ctp-text: #fff;
  --ctp-subtext1: #fff;
  --ctp-subtext0: #fff;
  --ctp-mauve: #fff;
  --ctp-red: #fff;
  --ctp-green: #fff;
  --ctp-yellow: #fff;
  --ctp-pink: #fff;
}
html[data-theme="blue"] { --site-theme-color: #123C70; }
html[data-theme="green"] { --site-theme-color: #16502A; }
html[data-theme="burgundy"] { --site-theme-color: #7D1D4D; }
html[data-theme="sunset"] {
  --site-theme-color: #2B2248;
  --theme-header-menu-hover: #573461;
}
html[data-theme="monochrome"] { --theme-menu-accent: #242424; }
html[data-theme]:not([data-theme="latte"]) .header {
  --theme-menu-hover: var(--theme-header-menu-hover, color-mix(in srgb, var(--paper) 78%, #fff));
}
html[data-theme]:not([data-theme="latte"]) .site-footer .footer-bottom { border-top-color: #fff; }
html[data-theme]:not([data-theme="latte"]):not([data-theme="monochrome"]) .home-intro {
  --ctp-surface0: color-mix(in srgb, var(--site-theme-color) 75%, #000);
}
html[data-theme]:not([data-theme="latte"]) body:not(.maintenance-screen) {
  color-scheme: light;
  --ctp-base: #f5f5f5;
  --ctp-mantle: #f5f5f5;
  --ctp-crust: #eee;
  --ctp-surface0: #e8e8e8;
  --ctp-surface1: #d7d7d7;
  --ctp-text: #111;
  --ctp-subtext1: #262626;
  --ctp-subtext0: #414141;
  --ctp-mauve: #242424;
  --ctp-red: #911f34;
  --ctp-green: #236137;
  --ctp-yellow: #694b0c;
  --ctp-pink: #424242;
}
html[data-theme]:not([data-theme="latte"]) :is(.header, .site-footer) { color: var(--ink); }
html[data-theme]:is([data-theme="monochrome"], [data-theme="blue"], [data-theme="green"], [data-theme="burgundy"], [data-theme="sunset"]) .member-badge-verified {
  color: #54575d;
}
html[data-theme]:not([data-theme="latte"]) :is(.forum-rich-body a, .quiet-link) { text-decoration: underline; }
html[data-theme]:not([data-theme="latte"]) :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width:380px) { .header-inner { column-gap:8px; } .header-inner > .brand { font-size:calc(24px * var(--site-font-scale,1)); } .mobile-menu-toggle:not([hidden]) { padding:8px; gap:5px; } }
html[data-theme] body { color: var(--ink); background: var(--background); }
html[data-theme] .site-menu>nav .nav-dropdown-items a { color: var(--navigation-text); }
html[data-theme] .site-menu>nav .nav-dropdown-items a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--theme-menu-hover);
  color: var(--ink);
}
html[data-theme] .account-dropdown > summary:focus-visible,
html[data-theme] .admin-dropdown > summary:is(:hover, :focus-visible),
html[data-theme] :is(.account-dropdown-items, .admin-dropdown-items) :is(a, button):is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--theme-menu-hover);
  color: var(--ink);
}
html[data-theme] .account-dropdown-items {
  --account-logout-color: #ffc1c8;
}
html[data-theme="latte"] .account-dropdown-items {
  --account-logout-color: #b51e35;
}
html[data-theme] .header-actions .account-dropdown-items > form {
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--theme-menu-border) 55%, var(--paper));
}
html[data-theme] .header-actions .account-dropdown-items > form > .text-button {
  color: var(--account-logout-color);
  font-weight: 700;
}
html[data-theme] .header-actions .account-dropdown-items > form > .text-button:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--account-logout-color) 8%, var(--paper));
}
html[data-theme] :is(.header, .panel, .search-bar, .nav-dropdown-items, .account-dropdown-items, .admin-dropdown-items, .forum-editor, .forum-smiley-dropdown, .admin-stats a) {
  background: var(--paper); border-color: var(--line); box-shadow: 0 2px 6px #0003;
}
html[data-theme] :is(.site-menu, .admin-tabs) :is(.nav-dropdown-items, .account-dropdown-items, .admin-dropdown-items) {
  border: 1px solid var(--theme-menu-border);
  box-shadow: none;
}
html[data-theme="latte"] .header { --theme-menu-border: #5273b2; }
html[data-theme="monochrome"] .header { --theme-menu-border: #fff; }
html[data-theme="blue"] .header { --theme-menu-border: #79baff; }
html[data-theme="green"] .header { --theme-menu-border: #80d69a; }
html[data-theme="burgundy"] .header { --theme-menu-border: #ff94c4; }
html[data-theme="sunset"] .header { --theme-menu-border: #f5a5c6; }
html[data-theme] :is(.brand, nav a.active, .nav-dropdown.is-active > summary, .posting-as strong, .auth-switch a, .admin-stats strong, .audit-entry summary strong) { color: var(--teal); }
html[data-theme] :is(.brand-mark i) { background: var(--teal); }
html[data-theme] .profile-shortcut { color: var(--teal); }
html[data-theme] .public-member-identity .profile-online-status { color: var(--ctp-green); }
html[data-theme] :is(.extra-artists,.extra-genre-picker) { border-color: var(--line); }
html[data-theme] :is(.extra-artists > summary,.extra-genre-picker > summary) { color: var(--teal); }
html[data-theme] .extra-artist-remove { color: var(--ctp-red); }

html[data-theme] :is(a:hover, .member-name-link, .all-genres-link, .content-icon-link, .forum-rich-body a, .avatar-source-import summary) { color: var(--teal); }
html[data-theme] :is(.intro p, .eyebrow, .muted, .body-text, .forum-rich-body, .comment p, .bottom-note, .bottom-note strong, .detail-meta, .detail-kicker, .event-title, .auth-story p, .auth-switch, .login-gate p, .posting-as, .form-hint, .optional, .entry-form label, .forum-editor-field > label, .account-details dt, .admin-stats span, .admin-stats small, .admin-item p, .admin-item-id, .admin-member p, .role-form label, .audit-entry summary, .audit-entry time, .avatar-gallery-filters label, .avatar-gallery-source, .forum-section-description) { color: var(--ctp-subtext1); }
html[data-theme] :is(nav a, .account-link, .text-button, .quiet-link, .section-meta, .live-label, .count, .disc, .at, .pagination, .topic-row small, .topic-row time, .comment time, .back-link, .list-header, .set-uploader, .uploader-label, .demo-notice, .search-icon, .topic-closed-icon, .forum-editor-footer, .forum-smiley-empty) { color: var(--ctp-subtext0); }
html[data-theme] :is(.entry-form input, .entry-form select, .entry-form textarea, .admin-search input, .role-form input, .role-form select, .avatar-gallery-filters input, .avatar-gallery-filters select, .admin-search select) {
  color: var(--ink); background: var(--ctp-mantle); border-color: var(--line);
}
html[data-theme] .search-bar input { color: var(--ink); }
html[data-theme] ::placeholder { color: var(--ctp-subtext0); opacity: 1; }
html[data-theme] .forum-editor-content:empty::before { color: var(--ctp-subtext0); }
html[data-theme] :is(.genre-tags, .topic-row, .large-rows .set-row, .comment, .list-header, .auth-switch, .account-details, .account-details > div, .admin-tabs, .admin-item, .admin-member, .member-tools, .audit-entry, .avatar-gallery-credit) { border-color: var(--line); }
html[data-theme] .section-heading { border-color: var(--line); }
html[data-theme] footer { background: var(--ctp-crust); border-color: var(--line); }
html[data-theme] .footer-inner { color: var(--ctp-subtext0); }
html[data-theme] :is(.audio-placeholder, .login-gate, .topic-icon, .avatar, .member-avatar, .public-member-card, .entry-form .genre-choice-grid label, .forum-quote, .forum-rich-body blockquote, .audit-diff pre, .forum-editor-toolbar, .forum-editor-footer, .forum-editor-link, .admin-content-preview, .avatar-gallery-card, .avatar-source-import, .member-filters a) {
  background: var(--ctp-surface0); color: var(--ink); border-color: var(--line);
}
html[data-theme] :is(.audio-placeholder p, .record-icon, .forum-editor-toolbar button, .password-toggle) { color: var(--ctp-subtext1); }
html[data-theme] :is(.set-row:hover, .forum-editor-toolbar button:hover, .password-toggle:hover) { background: var(--ctp-surface1); color: var(--ink); }
html[data-theme] :is(.button, .page-button, .admin-tabs a.selected, .member-filters .selected) { background: var(--teal); color: var(--ctp-base); border-color: var(--teal); }
html[data-theme] :is(.button:hover, .page-button:hover) { background: var(--ctp-mauve); color: var(--ctp-base); }
html[data-theme] :is(.button-outline, .mobile-menu-toggle, .forum-editor-link button) { background: var(--paper); color: var(--teal); border-color: var(--line); }
html[data-theme] :is(.button-outline:hover, .mobile-menu-toggle:hover, .forum-editor-link button:hover) { background: var(--ctp-surface1); }
@media (max-width:1024px) {
  html[data-theme] .header {
    --line: color-mix(in srgb, var(--theme-menu-border) 55%, var(--paper));
    --theme-selection: var(--theme-menu-hover);
  }
  html[data-theme] .header .mobile-menu-toggle {
    background: var(--theme-menu-hover);
  }
  html[data-theme] .header .mobile-menu-toggle:is(:hover, :focus-visible, [aria-expanded="true"]) {
    background: color-mix(in srgb, var(--theme-menu-border) 30%, var(--paper));
  }
  html[data-theme] .header .site-menu :is(.nav-dropdown-items, .account-dropdown-items) {
    border-width: 1px 0 0;
    border-color: var(--line);
    box-shadow: none;
  }
}
html[data-theme] :is(.genre-choice-grid label:has(input:checked), .avatar-gallery-card:has(input:checked), .forum-editor-toolbar button[aria-pressed="true"], .topic-status) { background: var(--theme-selection); color: var(--teal); border-color: var(--teal); }
html[data-theme] :is(.success) { background: var(--theme-success); color: var(--ctp-green); border-color: var(--ctp-green); }
html[data-theme] :is(.error, .member-banned) { background: var(--theme-error); color: var(--ctp-red); border-color: var(--ctp-red); }
html[data-theme] :is(.text-danger, .content-icon-danger, .forum-editor-error, .forum-editor-footer .is-over-limit) { color: var(--ctp-red); }
.field-error {
  display: block;
  color: var(--ctp-red);
  font-size: calc(13px * var(--site-font-scale, 1));
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
:is(.entry-form, form) [aria-invalid="true"]:is(input, select, textarea) { outline: 2px solid var(--ctp-red); outline-offset: 1px; }
.message-bar-form > .field-error { grid-column: 1 / -1; }
html[data-theme] .button-danger { background: var(--ctp-red); border-color: var(--ctp-red); }
html[data-theme] .button-danger:hover { background: var(--ctp-red); }
html[data-theme] :is(.genre-star-button.is-favorite, .genre-star-button:hover) { color: var(--ctp-yellow); background: var(--theme-warning); border-color: var(--ctp-yellow); }
html[data-theme] .role-badge:not(.role-admin, .role-administrator, .role-moderator, .role-set_editor, .member-banned) { background: var(--ctp-surface0); color: var(--ctp-subtext1); border-color: var(--line); }
html[data-theme] :is(.avatar-gallery-card img, .forum-avatar-image, .member-avatar:has(.profile-avatar-image)) { background: var(--ctp-surface0); }
html[data-theme] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--teal); }

/* Native badge menus use the same readable foreground and background as role menus. */
html[data-theme] .badge-select-label>select,
html[data-theme] .member-card select option{color:var(--ink);background:var(--ctp-mantle);border-color:var(--line)}
html[data-theme] .member-card select option:disabled{color:var(--ctp-subtext0)}
html[data-theme="latte"] :is(.header, .panel, .search-bar, .nav-dropdown-items, .account-dropdown-items, .admin-dropdown-items, .forum-editor, .forum-smiley-dropdown, .admin-stats a) {
  box-shadow: 0 2px 6px #30344612;
}

html[data-theme] .badge {
  height: 15px;
  font-size: calc(8px * var(--site-font-scale,1));
  text-shadow: none;
}

html[data-theme]:not([data-theme="latte"]) .staff-icon {
  background: #394454;
  background: color-mix(in srgb, var(--badge, #576c83) 35%, var(--ctp-crust));
  color: #fff;
  box-shadow: inset 0 0 0 1px #737f90;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge, #576c83) 48%, #b8bfcc);
}

html[data-theme="latte"] :is(.badge, .staff-icon),
html[data-theme]:not([data-theme="latte"]) .badge {
  background: #dce3ed;
  background: color-mix(in srgb, var(--badge, #576c83) 28%, white);
  color: #202638;
  box-shadow: inset 0 0 0 1px #6b7789;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge, #576c83) 48%, #202638);
}

html[data-theme]:not([data-theme="latte"]) .badge { color: #000; }

html[data-theme] .staff-icon:is(.staff-icon-admin,.staff-icon-administrator,.staff-icon-moderator,.staff-icon-set_editor) {
  background: transparent;
  color: var(--staff-role-color);
  box-shadow: none;
}
:is(.staff-icon-admin,.role-admin) { --staff-role-color: #d31335; }
:is(.staff-icon-administrator,.role-administrator) { --staff-role-color: #d45100; }
:is(.staff-icon-moderator,.role-moderator) { --staff-role-color: #087e39; }
:is(.staff-icon-set_editor,.role-set_editor) { --staff-role-color: #1663c7; }
html[data-theme] .role-badge:is(.role-admin,.role-administrator,.role-moderator,.role-set_editor) {
  color: color-mix(in srgb, var(--staff-role-color) 72%, var(--ink));
  background: color-mix(in srgb, var(--staff-role-color) 14%, var(--paper));
  border-color: color-mix(in srgb, var(--staff-role-color) 45%, var(--paper));
}
.staff-icon > svg { display: block; width: 100%; height: 100%; flex-shrink: 0; }
.staff-icon > svg { stroke-width: 2.3; }

html[data-theme] .badge-tooltip { color: #000; }

@media (max-width:1024px) {
  .header-inner:has(.mobile-header-shortcuts) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .header-inner > .header-utilities { grid-column: 3; grid-row: 1; }
}


select:focus { outline: none; }
select:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }

html[data-theme]:not([data-theme="latte"]) :is(.button, .page-button, .admin-tabs a.selected, .member-filters .selected) {
  background: var(--ctp-surface0);
  color: var(--ink);
  border-color: var(--ink);
}
html[data-theme]:not([data-theme="latte"]) :is(.button, .page-button):hover {
  background: var(--ctp-surface1);
}

html[data-theme="monochrome"] body:not(.maintenance-screen) {
  --ctp-base: #fff;
}

html[data-theme="monochrome"] .section-heading h2 { font-weight: 700; }

html[data-theme="monochrome"] body:not(.maintenance-screen) :is(.panel, .search-bar, .admin-stats a) {
  border-color: #d7d7d7;
  box-shadow: 0 2px 6px #0000000d;
}

html[data-theme="monochrome"] :is(main, .cookie-notice) :is(.button:not(.button-outline, .button-danger), .page-button, .admin-tabs a.selected, .member-filters .selected) {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

html[data-theme="monochrome"] :is(main, .cookie-notice) :is(.button:not(.button-outline, .button-danger), .page-button):hover {
  background: #343434;
}

html[data-theme="monochrome"] :is(main, .cookie-notice) :is(.button:not(.button-outline, .button-danger), .page-button, .admin-tabs a.selected, .member-filters .selected):focus-visible {
  outline-color: #171717;
}

@media (forced-colors: none) {
  html[data-theme] select:not([multiple]):not([size]) {
    appearance: none;
    padding-inline-end: 36px;
    background-image: url("select-chevron.svg");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
  }
}


@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-mark i {
    animation: brand-equalizer 720ms ease-in-out infinite alternate;
  }
  .brand:hover .brand-mark i:nth-child(2) { animation-delay: -280ms; }
  .brand:hover .brand-mark i:nth-child(3) { animation-delay: -510ms; }
  .brand:hover .brand-mark i:nth-child(4) { animation-delay: -140ms; }
  .brand:hover .brand-mark i:nth-child(5) { animation-delay: -390ms; }
}

@keyframes brand-equalizer {
  0%, 100% { transform: scaleY(1); }
  30% { transform: scaleY(.5); }
  65% { transform: scaleY(.82); }
}

body:has(.theme-picker-panel) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
body:has(.theme-picker-panel) > :is(main, .header + .container) { width: 100%; }
body:has(.theme-picker-panel) > main {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-block: 0;
    padding-block-start: clamp(12px, 3vw, 24px);
}
html[data-theme="sunset"] body:not(.maintenance-screen) {
    --ctp-base: #fffafd;
    --ctp-mantle: #faf3f8;
    --ctp-surface0: #f1e4ef;
    --ctp-surface1: #e4d1e4;
    --ctp-mauve: #733258;
}
html[data-theme="sunset"] :is(.header, .site-footer) {
    background-color: var(--site-theme-color);
    background-repeat: no-repeat;
    background-size: cover;
}
html[data-theme="sunset"] .header {
    background-image: linear-gradient(110deg, #57447248, #8b518338), url("sunset-palms.webp");
    background-position: center 13%;
}
html[data-theme="sunset"] .site-footer {
    background-image: linear-gradient(110deg, #2e20459e, #432040a6), url("sunset-palms.webp");
    background-position: center bottom;
}
html[data-theme="sunset"] .home-intro {
    background: linear-gradient(115deg, #302445, #694574 65%, #ad4d61);
    border-bottom-color: #e98a78;
    --ctp-pink: #ffd1c4;
    --ctp-mauve: #ffe7ef;
}
.theme-picker-panel {
    padding: clamp(16px, 4vw, 32px);
}
.theme-picker-heading h1 { margin: 0; }
.theme-picker-heading p { margin: 6px 0 0; }
.theme-picker-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}
@media (max-width: 680px) {
    .theme-picker-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.theme-choice {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    text-align: start;
    overflow-wrap: anywhere;
}
.theme-choice:hover { background: var(--theme-selection); }
.theme-choice:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.theme-choice[aria-pressed="true"] {
    border-color: var(--teal);
    box-shadow: inset 0 0 0 1px var(--teal);
    background: var(--theme-selection);
}
.theme-choice-preview {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 72px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--theme-preview-body);
}
.theme-choice-preview::before {
    content: "";
    height: 22px;
    margin-bottom: 5px;
    background: var(--theme-preview-header);
    border-bottom: 1px solid color-mix(in srgb, var(--theme-preview-bar) 32%, transparent);
}
.theme-choice-preview i {
    width: 64%;
    height: 3px;
    margin-inline: 9px;
    border-radius: 2px;
    background: var(--theme-preview-bar);
}
.theme-choice-preview i:last-child { width: 44%; }
.theme-choice-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 4px;
}
.theme-choice-label > span:first-child { min-width: 0; }
.theme-choice-check {
    display: grid;
    flex: 0 0 18px;
    place-items: center;
    height: 18px;
    visibility: hidden;
    border-radius: 50%;
    background: var(--teal);
    color: var(--paper);
    font-size: calc(12px * var(--site-font-scale, 1));
    line-height: 1;
}
.theme-choice[aria-pressed="true"] .theme-choice-check { visibility: visible; }
.theme-choice[data-theme-choice="latte"] { --theme-preview-header: #fff; --theme-preview-body: #eff1f5; --theme-preview-bar: #676b80; }
.theme-choice[data-theme-choice="monochrome"] { --theme-preview-header: #000; --theme-preview-body: #f5f5f5; --theme-preview-bar: #414141; }
.theme-choice[data-theme-choice="blue"] { --theme-preview-header: #123c70; --theme-preview-body: #f5f5f5; --theme-preview-bar: #123c70; }
.theme-choice[data-theme-choice="green"] { --theme-preview-header: #16502a; --theme-preview-body: #f5f5f5; --theme-preview-bar: #16502a; }
.theme-choice[data-theme-choice="burgundy"] { --theme-preview-header: #7d1d4d; --theme-preview-body: #f5f5f5; --theme-preview-bar: #7d1d4d; }
.theme-choice[data-theme-choice="sunset"] {
    --theme-preview-header: linear-gradient(100deg, #302445, #694574, #e98a78);
    --theme-preview-body: #faf3f8;
    --theme-preview-bar: #733258;
}
@media (max-width: 700px) {
    .theme-choice { border-radius: 8px; }
    .theme-choice-preview { border-radius: 4px; }
}

html[data-theme] header.header { border-bottom-color: transparent; }
html[data-theme] .header .header-actions > .account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: calc(15px * var(--site-font-scale, 1));
  font-weight: 700;
}
html[data-theme] .header .header-actions > .account-link:hover { background: var(--theme-selection); }
html[data-theme] .header .header-actions > .account-register { background: var(--teal); color: var(--paper); }
html[data-theme] .header .header-actions > .account-register:hover { box-shadow: inset 0 0 0 2px var(--paper); }
html[data-theme] .header .header-actions > .account-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
html[data-theme] .header .site-menu :is(.nav-dropdown-items, .account-dropdown-items) { border-color: transparent; }
@media (max-width:1024px) {
  html[data-theme] .header :is(.mobile-menu-toggle, .site-menu, .site-menu > nav, .account-menu) { border-color: transparent; }
}
