/* ==========================================================================
   21st.dev Community Top 12 Themes — Light & Dark Dual-Mode Skin System
   Source: https://21st.dev/community/themes (Top 12 by community likes)
   Loaded AFTER dark-mode.css & vietnam-theme.css on all pages.
   Activated via <html data-theme-preset="<slug>"> + optional data-theme="dark".
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared Preset Application Rules (only when preset != default)
   -------------------------------------------------------------------------- */
html[data-theme-preset]:not([data-theme-preset="default"]) body {
  background-color: var(--color-washi-0) !important;
  color: var(--color-sumi-900) !important;
  background-image: none !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) .pattern-top-bar {
  background: var(--primary) !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) .editorial-main-title .title-bottom {
  color: var(--theme-hero-accent, var(--primary)) !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) .btn-open-itinerary {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  border-color: var(--primary) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .btn-open-itinerary kubai-icon,
html[data-theme-preset]:not([data-theme-preset="default"]) .btn-open-itinerary svg {
  color: var(--primary-foreground) !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) .sticky-nav-bar,
html[data-theme-preset]:not([data-theme-preset="default"]) .sticky-nav-wrapper {
  background: color-mix(in srgb, var(--color-washi-1) 92%, transparent) !important;
  border-color: var(--border) !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) :is(
  .day-card,
  .settlement-card,
  .expense-form-card,
  .expense-history-card,
  .packing-header-card,
  .packing-category-card,
  .modal-card,
  .currency-modal-card,
  .mascot-modal-sheet,
  .theme-picker-sheet
) {
  background: var(--card) !important;
  border-color: var(--border) !important;
  color: var(--card-foreground) !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) :is(
  .day-header-meta h2,
  .editorial-view-title,
  .vn-head-title,
  .hotel-title,
  .alldays-card h3,
  .info-block-header,
  .timeline-section-title,
  .node-name,
  .packing-cat-title
) {
  color: var(--color-sumi-900) !important;
}

/* Active segmented pills & tabs obey preset active contrast (--seg-active-fg) */
html[data-theme-preset]:not([data-theme-preset="default"]) body :is(
  .daily-mode-btn.active,
  #stickyNavBar .nav-tab.active,
  #stickyNavBar .day-pill.active,
  #stickyNavBar .day-pill.selected,
  .tab-btn.active,
  .jp-filter-chip.active,
  .jp-filter-chip.selected,
  .vn-phrase-filter-btn.active,
  .cat-chip-btn.active,
  .cat-chip-btn.selected,
  .expense-day-chip-btn.active,
  .expense-day-chip-btn.selected,
  .expense-all-btn.active,
  .expense-all-btn.selected,
  .member-chip-btn.active,
  .member-chip-btn.selected,
  .settle-mode-btn.active,
  .settle-mode-btn.selected,
  .target-segmented-btn.active,
  .target-segmented-btn.selected,
  .curr-pill-btn.active,
  .curr-pill-btn.selected,
  .vn-form-chip.active,
  .vn-form-chip.selected,
  .payer-chip.active,
  .payer-chip.selected,
  .packing-chip.active,
  .packing-chip.selected,
  .preset-chip.active,
  .preset-chip.selected,
  .subtab-btn.active,
  .trip-dock-btn.active
) {
  background: var(--seg-active-bg) !important;
  border-color: var(--seg-active-bg) !important;
  color: var(--seg-active-fg) !important;
}

html[data-theme-preset]:not([data-theme-preset="default"]) body :is(
  .daily-mode-btn.active *,
  #stickyNavBar .nav-tab.active *,
  #stickyNavBar .day-pill.active *,
  #stickyNavBar .day-pill.selected *,
  .tab-btn.active *,
  .jp-filter-chip.active *,
  .jp-filter-chip.selected *,
  .vn-phrase-filter-btn.active *,
  .cat-chip-btn.active *,
  .cat-chip-btn.selected *,
  .expense-day-chip-btn.active *,
  .expense-day-chip-btn.selected *,
  .expense-all-btn.active *,
  .expense-all-btn.selected *,
  .member-chip-btn.active *,
  .member-chip-btn.selected *,
  .settle-mode-btn.active *,
  .settle-mode-btn.selected *,
  .target-segmented-btn.active *,
  .target-segmented-btn.selected *,
  .curr-pill-btn.active *,
  .curr-pill-btn.selected *,
  .vn-form-chip.active *,
  .vn-form-chip.selected *,
  .payer-chip.active *,
  .payer-chip.selected *,
  .packing-chip.active *,
  .packing-chip.selected *,
  .preset-chip.active *,
  .preset-chip.selected *,
  .subtab-btn.active *,
  .trip-dock-btn.active *
) {
  color: var(--seg-active-fg) !important;
}

/* Vietnam accent, boarding-pass tickets, header & interactive controls under presets */
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView :is(.vn-head-sgn, .vn-head-han, .vn-head-calc, .vn-head-phrase, .vn-theme-sgn, .vn-theme-han) {
  --vn-accent: var(--accent) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-head-code {
  color: var(--vn-accent, var(--accent)) !important;
  border: none !important;
  background: transparent !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView .vn-tab-head {
  background: var(--card) !important;
  border-color: var(--border) !important;
  border-top-color: var(--border) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-ticket {
  background: var(--card) !important;
  border-color: var(--border) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-ticket-stub {
  background: var(--color-washi-2) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-ticket-seam {
  border-top-color: var(--border) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-ticket-seam::before,
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-ticket-seam::after {
  background: var(--color-washi-0) !important;
  border-color: var(--border) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-ticket-path svg {
  background: var(--card) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-layover-pill {
  background: var(--card) !important;
  border-color: var(--border) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-term {
  background: var(--color-washi-2) !important;
  color: var(--color-sumi-700) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-term.is-accent {
  background: var(--color-indigo-soft) !important;
  color: var(--color-indigo) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-phrase-item {
  background: var(--card) !important;
  border-color: var(--border) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView :is(.cat-chip-btn, .member-chip-btn, .target-segmented-btn, .curr-pill-btn).active,
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView .btn-share-editorial[style*="#C14953"],
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView .btn-map[style*="#C14953"],
html[data-theme-preset]:not([data-theme-preset="default"]) .trip-now-btn.primary,
html[data-theme-preset]:not([data-theme-preset="default"]) .trip-more-item.active .trip-more-item-icon {
  background: var(--seg-active-bg) !important;
  border-color: var(--seg-active-bg) !important;
  color: var(--seg-active-fg) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView :is(.cat-chip-btn, .member-chip-btn, .target-segmented-btn, .curr-pill-btn).active *,
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView .btn-share-editorial[style*="#C14953"] *,
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView .btn-map[style*="#C14953"] *,
html[data-theme-preset]:not([data-theme-preset="default"]) .trip-now-btn.primary *,
html[data-theme-preset]:not([data-theme-preset="default"]) .trip-more-item.active .trip-more-item-icon * {
  color: var(--seg-active-fg) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) :is(.back-to-top-btn, .theme-toggle-btn, .mascot-trigger-btn) {
  background: var(--seg-active-bg) !important;
  border-color: var(--border) !important;
  color: var(--seg-active-fg) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) #hanoiView .vn-sec-title {
  color: var(--color-indigo) !important;
}
html.page-vn[data-theme-preset]:not([data-theme-preset="default"]) .vn-jump-copy kubai-icon {
  --ki-c: currentColor;
}

/* Phrase view items in non-default presets */
html[data-theme-preset]:not([data-theme-preset="default"]) #japaneseView .phrase-item:not(.is-essential) {
  background: var(--color-washi-1) !important;
  border-color: var(--border) !important;
}

/* Packing standalone page overrides under non-default presets */
html[data-theme-preset]:not([data-theme-preset="default"]) .packing-item-card {
  background: var(--washi-card) !important;
  border-color: var(--border-color) !important;
  color: var(--sumi-dark) !important;
}

/* Floating FAB & Trip Mode dock under presets */
html[data-theme-preset]:not([data-theme-preset="default"]) #tripBottomDock {
  background: color-mix(in srgb, var(--card) 94%, transparent) !important;
  border-top-color: var(--border) !important;
}

/* --------------------------------------------------------------------------
   2. Top 12 21st.dev Themes — Exact Light & Dark Token Maps
   -------------------------------------------------------------------------- */

/* #1 Vercel (897 likes) */
:root[data-theme-preset="vercel"],
html.page-vn[data-theme-preset="vercel"] {
  --background: #fcfcfc;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --popover: #fcfcfc;
  --popover-foreground: #09090b;
  --primary: #09090b;
  --primary-foreground: #ffffff;
  --secondary: #f1f1f3;
  --secondary-foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #52525b;
  --border: #e4e4e7;
  --input: #ececee;
  --ring: #09090b;
  --destructive: #dc2626;
  --theme-hero-accent: #f4f4f5;

  --color-washi-0: #fcfcfc;
  --color-washi-1: #ffffff;
  --color-washi-2: #f4f4f5;
  --color-washi-3: #e9e9ec;
  --color-washi-4: #d8d8de;
  --color-sumi-900: #09090b;
  --color-sumi-800: #18181b;
  --color-sumi-700: #27272a;
  --color-sumi-600: #52525b;
  --color-sumi-500: #63636e;
  --color-sumi-400: #71717a;
  --color-sumi-200: #d4d4d8;
  --accent: #09090b;
  --accent-hover: #27272a;
  --accent-active: #000000;
  --accent-subtle: #f4f4f5;
  --accent-tint: rgba(9, 9, 11, 0.08);
  --color-indigo: #18181b;
  --color-indigo-hover: #000000;
  --color-indigo-soft: #f1f1f3;
  --color-indigo-tint: rgba(24, 24, 27, 0.07);
  --jp-border-hover: #a1a1aa;
  --seg-track-bg: #f1f1f3;
  --seg-track-border: #d8d8de;
  --seg-fg: #52525b;
  --seg-fg-strong: #09090b;
  --seg-hover-bg: rgba(9, 9, 11, 0.07);
  --seg-active-bg: #09090b;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #18181b;
  --washi-bg: #fcfcfc; --washi-card: #ffffff; --washi-subtle: #f4f4f5;
  --border-color: #e4e4e7; --ai-indigo: #18181b; --shu-red: #09090b; --shu-red-light: #f4f4f5;
  --sumi-dark: #09090b; --sumi-muted: #52525b; --sumi-faint: #71717a;
}
:root[data-theme="dark"][data-theme-preset="vercel"],
html.page-vn[data-theme="dark"][data-theme-preset="vercel"] {
  --background: #000000;
  --foreground: #ffffff;
  --card: #121212;
  --card-foreground: #ffffff;
  --popover: #181818;
  --popover-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #09090b;
  --secondary: #222222;
  --secondary-foreground: #ffffff;
  --muted: #1a1a1a;
  --muted-foreground: #a3a3a3;
  --border: #2c2c2c;
  --input: #2c2c2c;
  --ring: #a3a3a3;
  --destructive: #ef4444;
  --theme-hero-accent: #ffffff;

  --color-washi-0: #000000;
  --color-washi-1: #121212;
  --color-washi-2: #1a1a1a;
  --color-washi-3: #242424;
  --color-washi-4: #303030;
  --color-sumi-900: #ffffff;
  --color-sumi-800: #e5e5e5;
  --color-sumi-700: #d4d4d4;
  --color-sumi-600: #a3a3a3;
  --color-sumi-500: #8f8f8f;
  --color-sumi-400: #7a7a7a;
  --color-sumi-200: #2e2e2e;
  --accent: #f4f4f5;
  --accent-hover: #ffffff;
  --accent-active: #d4d4d8;
  --accent-subtle: #1e1e20;
  --accent-tint: rgba(255, 255, 255, 0.12);
  --color-indigo: #e4e4e7;
  --color-indigo-hover: #ffffff;
  --color-indigo-soft: #242426;
  --color-indigo-tint: rgba(228, 228, 231, 0.12);
  --jp-border-hover: #52525b;
  --seg-track-bg: #111111;
  --seg-track-border: #2e2e2e;
  --seg-fg: #a3a3a3;
  --seg-fg-strong: #ffffff;
  --seg-hover-bg: rgba(255, 255, 255, 0.09);
  --seg-active-bg: #ffffff;
  --seg-active-fg: #09090b;
  --seg-tab-fg: #e5e5e5;
  --washi-bg: #000000; --washi-card: #121212; --washi-subtle: #1a1a1a;
  --border-color: #2e2e2e; --ai-indigo: #e4e4e7; --shu-red: #f87171; --shu-red-light: #261616;
  --sumi-dark: #ffffff; --sumi-muted: #a3a3a3; --sumi-faint: #737373;
}

/* #2 Modern Minimal (835 likes) */
:root[data-theme-preset="modern-minimal"],
html.page-vn[data-theme-preset="modern-minimal"] {
  --background: #ffffff;
  --foreground: #333333;
  --card: #ffffff;
  --card-foreground: #333333;
  --popover: #ffffff;
  --popover-foreground: #333333;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #4b5563;
  --muted: #f9fafb;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #3b82f6;
  --destructive: #dc2626;
  --theme-hero-accent: #60a5fa;

  --color-washi-0: #f8fafc;
  --color-washi-1: #ffffff;
  --color-washi-2: #f3f4f6;
  --color-washi-3: #e5e7eb;
  --color-washi-4: #d1d5db;
  --color-sumi-900: #1f2937;
  --color-sumi-800: #333333;
  --color-sumi-700: #4b5563;
  --color-sumi-600: #5b6472;
  --color-sumi-500: #6b7280;
  --color-sumi-400: #7c8492;
  --color-sumi-200: #d1d5db;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-active: #1e40af;
  --accent-subtle: #eff6ff;
  --accent-tint: rgba(37, 99, 235, 0.09);
  --color-indigo: #1e3a8a;
  --color-indigo-hover: #172554;
  --color-indigo-soft: #e0f2fe;
  --color-indigo-tint: rgba(59, 130, 246, 0.1);
  --jp-border-hover: #93c5fd;
  --seg-track-bg: #f3f4f6;
  --seg-track-border: #e5e7eb;
  --seg-fg: #4b5563;
  --seg-fg-strong: #111827;
  --seg-hover-bg: rgba(59, 130, 246, 0.08);
  --seg-active-bg: #2563eb;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #1f2937;
  --washi-bg: #f8fafc; --washi-card: #ffffff; --washi-subtle: #f3f4f6;
  --border-color: #e5e7eb; --ai-indigo: #1e3a8a; --shu-red: #2563eb; --shu-red-light: #eff6ff;
  --sumi-dark: #1f2937; --sumi-muted: #6b7280; --sumi-faint: #9ca3af;
}
:root[data-theme="dark"][data-theme-preset="modern-minimal"],
html.page-vn[data-theme="dark"][data-theme-preset="modern-minimal"] {
  --background: #171717;
  --foreground: #e5e5e5;
  --card: #262626;
  --card-foreground: #e5e5e5;
  --popover: #262626;
  --popover-foreground: #e5e5e5;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #262626;
  --secondary-foreground: #e5e5e5;
  --muted: #1f1f1f;
  --muted-foreground: #a3a3a3;
  --border: #404040;
  --input: #404040;
  --ring: #3b82f6;
  --destructive: #ef4444;
  --theme-hero-accent: #60a5fa;

  --color-washi-0: #171717;
  --color-washi-1: #212121;
  --color-washi-2: #262626;
  --color-washi-3: #303030;
  --color-washi-4: #404040;
  --color-sumi-900: #f3f4f6;
  --color-sumi-800: #e5e5e5;
  --color-sumi-700: #d4d4d4;
  --color-sumi-600: #a3a3a3;
  --color-sumi-500: #8f8f8f;
  --color-sumi-400: #7d7d7d;
  --color-sumi-200: #3a3a3a;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-active: #3b82f6;
  --accent-subtle: #172554;
  --accent-tint: rgba(59, 130, 246, 0.16);
  --color-indigo: #60a5fa;
  --color-indigo-hover: #93c5fd;
  --color-indigo-soft: #1e3a8a;
  --color-indigo-tint: rgba(96, 165, 250, 0.16);
  --jp-border-hover: #3b82f6;
  --seg-track-bg: #1a1a1a;
  --seg-track-border: #3a3a3a;
  --seg-fg: #a3a3a3;
  --seg-fg-strong: #f3f4f6;
  --seg-hover-bg: rgba(59, 130, 246, 0.14);
  --seg-active-bg: #2563eb;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #e5e5e5;
  --washi-bg: #171717; --washi-card: #262626; --washi-subtle: #1f1f1f;
  --border-color: #404040; --ai-indigo: #60a5fa; --shu-red: #60a5fa; --shu-red-light: #1e3a8a;
  --sumi-dark: #f3f4f6; --sumi-muted: #a3a3a3; --sumi-faint: #737373;
}

/* #3 Zen Linen (646 likes) */
:root[data-theme-preset="zen-linen"],
html.page-vn[data-theme-preset="zen-linen"] {
  --background: #E9E4D8;
  --foreground: #1E1E1E;
  --card: #F4EFE4;
  --card-foreground: #1E1E1E;
  --popover: #F4EFE4;
  --popover-foreground: #1E1E1E;
  --primary: #2E2E2E;
  --primary-foreground: #F4EFE4;
  --secondary: #D8D2C4;
  --secondary-foreground: #2E2E2E;
  --muted: #CFC8B8;
  --muted-foreground: #5E5A52;
  --border: #D2CBBB;
  --input: #D2CBBB;
  --ring: #2E2E2E;
  --destructive: #DC2626;
  --theme-hero-accent: #F26A4B;

  --color-washi-0: #E9E4D8;
  --color-washi-1: #F4EFE4;
  --color-washi-2: #E3DDD0;
  --color-washi-3: #D8D2C4;
  --color-washi-4: #C7BFAE;
  --color-sumi-900: #1E1E1E;
  --color-sumi-800: #2E2E2E;
  --color-sumi-700: #423F39;
  --color-sumi-600: #5E5A52;
  --color-sumi-500: #6B665D;
  --color-sumi-400: #7B756B;
  --color-sumi-200: #C6BEB0;
  --accent: #C74428;
  --accent-hover: #A8371E;
  --accent-active: #8E2C17;
  --accent-subtle: #F7E8E3;
  --accent-tint: rgba(242, 106, 75, 0.14);
  --color-indigo: #2E2E2E;
  --color-indigo-hover: #1E1E1E;
  --color-indigo-soft: #E0DACD;
  --color-indigo-tint: rgba(46, 46, 46, 0.08);
  --jp-border-hover: #A89F8F;
  --seg-track-bg: #DFD9CB;
  --seg-track-border: #C7BFAE;
  --seg-fg: #5E5A52;
  --seg-fg-strong: #1E1E1E;
  --seg-hover-bg: rgba(46, 46, 46, 0.08);
  --seg-active-bg: #2E2E2E;
  --seg-active-fg: #F4EFE4;
  --seg-tab-fg: #2E2E2E;
  --washi-bg: #E9E4D8; --washi-card: #F4EFE4; --washi-subtle: #E3DDD0;
  --border-color: #D2CBBB; --ai-indigo: #2E2E2E; --shu-red: #C74428; --shu-red-light: #F7E8E3;
  --sumi-dark: #1E1E1E; --sumi-muted: #5E5A52; --sumi-faint: #7B756B;
}
:root[data-theme="dark"][data-theme-preset="zen-linen"],
html.page-vn[data-theme="dark"][data-theme-preset="zen-linen"] {
  --background: #141414;
  --foreground: #E8E3DA;
  --card: #1C1C1C;
  --card-foreground: #E8E3DA;
  --popover: #1C1C1C;
  --popover-foreground: #E8E3DA;
  --primary: #D1CFC0;
  --primary-foreground: #1C1C1C;
  --secondary: #222222;
  --secondary-foreground: #E8E3DA;
  --muted: #2A2A2A;
  --muted-foreground: #A6A198;
  --border: #2F2F2F;
  --input: #2F2F2F;
  --ring: #D1CFC0;
  --destructive: #EF4444;
  --theme-hero-accent: #F26A4B;

  --color-washi-0: #141414;
  --color-washi-1: #1C1C1C;
  --color-washi-2: #242424;
  --color-washi-3: #2E2E2E;
  --color-washi-4: #3A3A3A;
  --color-sumi-900: #F0ECE4;
  --color-sumi-800: #E8E3DA;
  --color-sumi-700: #D1CFC0;
  --color-sumi-600: #A8A39A;
  --color-sumi-500: #8E8A83;
  --color-sumi-400: #7B7770;
  --color-sumi-200: #333333;
  --accent: #F26A4B;
  --accent-hover: #F78C72;
  --accent-active: #E25232;
  --accent-subtle: #2D1915;
  --accent-tint: rgba(242, 106, 75, 0.16);
  --color-indigo: #D9CFC2;
  --color-indigo-hover: #ECE5DC;
  --color-indigo-soft: #2A2825;
  --color-indigo-tint: rgba(217, 207, 194, 0.12);
  --jp-border-hover: #5C5A56;
  --seg-track-bg: #171717;
  --seg-track-border: #333333;
  --seg-fg: #A8A39A;
  --seg-fg-strong: #F0ECE4;
  --seg-hover-bg: rgba(232, 227, 218, 0.08);
  --seg-active-bg: #D1CFC0;
  --seg-active-fg: #181818;
  --seg-tab-fg: #E8E3DA;
  --washi-bg: #141414; --washi-card: #1C1C1C; --washi-subtle: #242424;
  --border-color: #3A3A3A; --ai-indigo: #D9CFC2; --shu-red: #F26A4B; --shu-red-light: #2D1915;
  --sumi-dark: #F0ECE4; --sumi-muted: #A8A39A; --sumi-faint: #7B7770;
}

/* #4 Claude Amber (509 likes) */
:root[data-theme-preset="claude-amber"],
html.page-vn[data-theme-preset="claude-amber"] {
  --background: #faf9f5;
  --foreground: #3d3929;
  --card: #f5f4ef;
  --card-foreground: #141413;
  --popover: #ffffff;
  --popover-foreground: #28261b;
  --primary: #b85332;
  --primary-foreground: #ffffff;
  --secondary: #e9e6dc;
  --secondary-foreground: #535146;
  --muted: #ede9de;
  --muted-foreground: #6e6d68;
  --border: #dad9d4;
  --input: #cbc9c0;
  --ring: #c96442;
  --destructive: #b91c1c;
  --theme-hero-accent: #e4835e;

  --color-washi-0: #faf9f5;
  --color-washi-1: #ffffff;
  --color-washi-2: #f5f4ef;
  --color-washi-3: #e9e6dc;
  --color-washi-4: #dad9d4;
  --color-sumi-900: #141413;
  --color-sumi-800: #28261b;
  --color-sumi-700: #3d3929;
  --color-sumi-600: #535146;
  --color-sumi-500: #6e6d68;
  --color-sumi-400: #7f7d76;
  --color-sumi-200: #cbc9c0;
  --accent: #b85332;
  --accent-hover: #9f4426;
  --accent-active: #87371e;
  --accent-subtle: #fcf0eb;
  --accent-tint: rgba(201, 100, 66, 0.12);
  --color-indigo: #3d3929;
  --color-indigo-hover: #28261b;
  --color-indigo-soft: #ede9de;
  --color-indigo-tint: rgba(61, 57, 41, 0.08);
  --jp-border-hover: #b4b2a7;
  --seg-track-bg: #ede9de;
  --seg-track-border: #dad9d4;
  --seg-fg: #535146;
  --seg-fg-strong: #141413;
  --seg-hover-bg: rgba(201, 100, 66, 0.10);
  --seg-active-bg: #b85332;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #28261b;
  --washi-bg: #faf9f5; --washi-card: #ffffff; --washi-subtle: #f5f4ef;
  --border-color: #dad9d4; --ai-indigo: #3d3929; --shu-red: #b85332; --shu-red-light: #fcf0eb;
  --sumi-dark: #141413; --sumi-muted: #535146; --sumi-faint: #7f7d76;
}
:root[data-theme="dark"][data-theme-preset="claude-amber"],
html.page-vn[data-theme="dark"][data-theme-preset="claude-amber"] {
  --background: #262624;
  --foreground: #f1f1ef;
  --card: #2e2e2c;
  --card-foreground: #faf9f5;
  --popover: #333330;
  --popover-foreground: #e5e5e2;
  --primary: #d97757;
  --primary-foreground: #141413;
  --secondary: #383834;
  --secondary-foreground: #f1f1ef;
  --muted: #1e1e1c;
  --muted-foreground: #b7b5a9;
  --border: #44443d;
  --input: #52514a;
  --ring: #d97757;
  --destructive: #ef4444;
  --theme-hero-accent: #e58a6c;

  --color-washi-0: #1f1f1d;
  --color-washi-1: #282826;
  --color-washi-2: #30302d;
  --color-washi-3: #3b3b36;
  --color-washi-4: #474740;
  --color-sumi-900: #faf9f5;
  --color-sumi-800: #f1f1ef;
  --color-sumi-700: #deddd6;
  --color-sumi-600: #b7b5a9;
  --color-sumi-500: #9f9d92;
  --color-sumi-400: #8c8a7f;
  --color-sumi-200: #3e3e38;
  --accent: #e58a6c;
  --accent-hover: #f0a489;
  --accent-active: #d97757;
  --accent-subtle: #36231c;
  --accent-tint: rgba(217, 119, 87, 0.16);
  --color-indigo: #e8b099;
  --color-indigo-hover: #f4cab8;
  --color-indigo-soft: #362620;
  --color-indigo-tint: rgba(232, 176, 153, 0.14);
  --jp-border-hover: #69685e;
  --seg-track-bg: #1c1c1a;
  --seg-track-border: #44443d;
  --seg-fg: #b7b5a9;
  --seg-fg-strong: #faf9f5;
  --seg-hover-bg: rgba(217, 119, 87, 0.14);
  --seg-active-bg: #d97757;
  --seg-active-fg: #141413;
  --seg-tab-fg: #f1f1ef;
  --washi-bg: #1f1f1d; --washi-card: #282826; --washi-subtle: #30302d;
  --border-color: #474740; --ai-indigo: #e8b099; --shu-red: #e58a6c; --shu-red-light: #36231c;
  --sumi-dark: #faf9f5; --sumi-muted: #b7b5a9; --sumi-faint: #8c8a7f;
}

/* #5 Sage Garden (508 likes) */
:root[data-theme-preset="sage-garden"],
html.page-vn[data-theme-preset="sage-garden"] {
  --background: #f8f7f4;
  --foreground: #1a1f2e;
  --card: #ffffff;
  --card-foreground: #1a1f2e;
  --popover: #ffffff;
  --popover-foreground: #1a1f2e;
  --primary: #4f6656;
  --primary-foreground: #ffffff;
  --secondary: #ced4bf;
  --secondary-foreground: #1a1f2e;
  --muted: #ecebe6;
  --muted-foreground: #58606b;
  --border: #dee0d8;
  --input: #dfe3dc;
  --ring: #5a7361;
  --destructive: #c73e3a;
  --theme-hero-accent: #9db7a4;

  --color-washi-0: #f8f7f4;
  --color-washi-1: #ffffff;
  --color-washi-2: #eff1ec;
  --color-washi-3: #e3e7de;
  --color-washi-4: #d4dacd;
  --color-sumi-900: #1a1f2e;
  --color-sumi-800: #28303e;
  --color-sumi-700: #3c4654;
  --color-sumi-600: #555f6b;
  --color-sumi-500: #66707c;
  --color-sumi-400: #78828d;
  --color-sumi-200: #cfd6ca;
  --accent: #4f6656;
  --accent-hover: #3f5245;
  --accent-active: #324237;
  --accent-subtle: #edf3ee;
  --accent-tint: rgba(124, 144, 130, 0.14);
  --color-indigo: #36443a;
  --color-indigo-hover: #253028;
  --color-indigo-soft: #e6ece4;
  --color-indigo-tint: rgba(54, 68, 58, 0.08);
  --jp-border-hover: #7c9082;
  --seg-track-bg: #ebeee7;
  --seg-track-border: #d4dacd;
  --seg-fg: #4b5563;
  --seg-fg-strong: #1a1f2e;
  --seg-hover-bg: rgba(79, 102, 86, 0.09);
  --seg-active-bg: #4f6656;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #1a1f2e;
  --washi-bg: #f8f7f4; --washi-card: #ffffff; --washi-subtle: #eff1ec;
  --border-color: #d4dacd; --ai-indigo: #36443a; --shu-red: #4f6656; --shu-red-light: #edf3ee;
  --sumi-dark: #1a1f2e; --sumi-muted: #555f6b; --sumi-faint: #78828d;
}
:root[data-theme="dark"][data-theme-preset="sage-garden"],
html.page-vn[data-theme="dark"][data-theme-preset="sage-garden"] {
  --background: #0a0a0a;
  --foreground: #f5f5f5;
  --card: #131614;
  --card-foreground: #f5f5f5;
  --popover: #171b18;
  --popover-foreground: #f5f5f5;
  --primary: #7c9082;
  --primary-foreground: #070a08;
  --secondary: #1e2420;
  --secondary-foreground: #f5f5f5;
  --muted: #181c19;
  --muted-foreground: #a5b0a8;
  --border: #2a312c;
  --input: #222824;
  --ring: #7c9082;
  --destructive: #ef4444;
  --theme-hero-accent: #9bb3a2;

  --color-washi-0: #0a0c0b;
  --color-washi-1: #131714;
  --color-washi-2: #1a201c;
  --color-washi-3: #222b25;
  --color-washi-4: #2e3932;
  --color-sumi-900: #f5f7f5;
  --color-sumi-800: #e3e8e4;
  --color-sumi-700: #c8d1cb;
  --color-sumi-600: #a2afa6;
  --color-sumi-500: #8c9990;
  --color-sumi-400: #76847b;
  --color-sumi-200: #2a342e;
  --accent: #9bb3a2;
  --accent-hover: #b4c8ba;
  --accent-active: #7c9082;
  --accent-subtle: #1c2920;
  --accent-tint: rgba(124, 144, 130, 0.16);
  --color-indigo: #a3b9aa;
  --color-indigo-hover: #bed0c3;
  --color-indigo-soft: #1d2b22;
  --color-indigo-tint: rgba(163, 185, 170, 0.14);
  --jp-border-hover: #5a6b5e;
  --seg-track-bg: #101412;
  --seg-track-border: #2e3932;
  --seg-fg: #a2afa6;
  --seg-fg-strong: #f5f7f5;
  --seg-hover-bg: rgba(124, 144, 130, 0.14);
  --seg-active-bg: #7c9082;
  --seg-active-fg: #070a08;
  --seg-tab-fg: #e3e8e4;
  --washi-bg: #0a0c0b; --washi-card: #131714; --washi-subtle: #1a201c;
  --border-color: #2e3932; --ai-indigo: #a3b9aa; --shu-red: #9bb3a2; --shu-red-light: #1c2920;
  --sumi-dark: #f5f7f5; --sumi-muted: #a2afa6; --sumi-faint: #76847b;
}

/* #6 Claude (479 likes) */
:root[data-theme-preset="claude"],
html.page-vn[data-theme-preset="claude"] {
  --background: #faf9f5;
  --foreground: #3d3929;
  --card: #ffffff;
  --card-foreground: #141413;
  --popover: #ffffff;
  --popover-foreground: #28261b;
  --primary: #b85332;
  --primary-foreground: #ffffff;
  --secondary: #e9e6dc;
  --secondary-foreground: #535146;
  --muted: #ede9de;
  --muted-foreground: #68665f;
  --border: #dad9d4;
  --input: #cbc9c0;
  --ring: #c96442;
  --destructive: #b91c1c;
  --theme-hero-accent: #f08a66;

  --color-washi-0: #faf9f5;
  --color-washi-1: #ffffff;
  --color-washi-2: #f4f2eb;
  --color-washi-3: #e9e6dc;
  --color-washi-4: #dad9d4;
  --color-sumi-900: #141413;
  --color-sumi-800: #28261b;
  --color-sumi-700: #3d3929;
  --color-sumi-600: #57554d;
  --color-sumi-500: #6e6c64;
  --color-sumi-400: #83827d;
  --color-sumi-200: #cbc9c0;
  --accent: #b85332;
  --accent-hover: #9f4426;
  --accent-active: #87371e;
  --accent-subtle: #fcf0eb;
  --accent-tint: rgba(201, 100, 66, 0.11);
  --color-indigo: #5e4db2;
  --color-indigo-hover: #483896;
  --color-indigo-soft: #efecfc;
  --color-indigo-tint: rgba(156, 135, 245, 0.14);
  --jp-border-hover: #b4b2a7;
  --seg-track-bg: #ede9de;
  --seg-track-border: #dad9d4;
  --seg-fg: #57554d;
  --seg-fg-strong: #141413;
  --seg-hover-bg: rgba(201, 100, 66, 0.09);
  --seg-active-bg: #b85332;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #28261b;
  --washi-bg: #faf9f5; --washi-card: #ffffff; --washi-subtle: #f4f2eb;
  --border-color: #dad9d4; --ai-indigo: #3d3929; --shu-red: #b85332; --shu-red-light: #fcf0eb;
  --sumi-dark: #141413; --sumi-muted: #57554d; --sumi-faint: #83827d;
}
:root[data-theme="dark"][data-theme-preset="claude"],
html.page-vn[data-theme="dark"][data-theme-preset="claude"] {
  --background: #20201e;
  --foreground: #e8e6de;
  --card: #262624;
  --card-foreground: #faf9f5;
  --popover: #30302e;
  --popover-foreground: #e5e5e2;
  --primary: #d97757;
  --primary-foreground: #141413;
  --secondary: #343430;
  --secondary-foreground: #faf9f5;
  --muted: #1b1b19;
  --muted-foreground: #b7b5a9;
  --border: #3e3e38;
  --input: #52514a;
  --ring: #d97757;
  --destructive: #ef4444;
  --theme-hero-accent: #e58a6c;

  --color-washi-0: #1b1b19;
  --color-washi-1: #262624;
  --color-washi-2: #2e2e2b;
  --color-washi-3: #383834;
  --color-washi-4: #44443d;
  --color-sumi-900: #faf9f5;
  --color-sumi-800: #eae8e0;
  --color-sumi-700: #d5d2c7;
  --color-sumi-600: #b7b5a9;
  --color-sumi-500: #9f9d92;
  --color-sumi-400: #87857c;
  --color-sumi-200: #3e3e38;
  --accent: #e58a6c;
  --accent-hover: #f0a489;
  --accent-active: #d97757;
  --accent-subtle: #36231c;
  --accent-tint: rgba(217, 119, 87, 0.16);
  --color-indigo: #b3a4f7;
  --color-indigo-hover: #ccc2fa;
  --color-indigo-soft: #2b2742;
  --color-indigo-tint: rgba(156, 135, 245, 0.16);
  --jp-border-hover: #626056;
  --seg-track-bg: #181816;
  --seg-track-border: #3e3e38;
  --seg-fg: #b7b5a9;
  --seg-fg-strong: #faf9f5;
  --seg-hover-bg: rgba(217, 119, 87, 0.14);
  --seg-active-bg: #d97757;
  --seg-active-fg: #141413;
  --seg-tab-fg: #eae8e0;
  --washi-bg: #1b1b19; --washi-card: #262624; --washi-subtle: #2e2e2b;
  --border-color: #44443d; --ai-indigo: #b3a4f7; --shu-red: #e58a6c; --shu-red-light: #36231c;
  --sumi-dark: #faf9f5; --sumi-muted: #b7b5a9; --sumi-faint: #87857c;
}

/* #7 Lime Frost (466 likes) */
:root[data-theme-preset="lime-frost"],
html.page-vn[data-theme-preset="lime-frost"] {
  --background: #fbfcf8;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #aff33e;
  --primary-foreground: #0f172a;
  --secondary: #334155;
  --secondary-foreground: #f8fafc;
  --muted: #f1f5f9;
  --muted-foreground: #475569;
  --border: #dce4ee;
  --input: #e2e8f0;
  --ring: #65a30d;
  --destructive: #dc2626;
  --theme-hero-accent: #aff33e;

  --color-washi-0: #f7faef;
  --color-washi-1: #ffffff;
  --color-washi-2: #f1f5ec;
  --color-washi-3: #e3ecd8;
  --color-washi-4: #d4e0c5;
  --color-sumi-900: #0f172a;
  --color-sumi-800: #1e293b;
  --color-sumi-700: #334155;
  --color-sumi-600: #475569;
  --color-sumi-500: #64748b;
  --color-sumi-400: #7c899b;
  --color-sumi-200: #cbd5e1;
  --accent: #3f6212;
  --accent-hover: #365314;
  --accent-active: #1a2e05;
  --accent-subtle: #ecfccb;
  --accent-tint: rgba(132, 204, 22, 0.14);
  --color-indigo: #1e293b;
  --color-indigo-hover: #0f172a;
  --color-indigo-soft: #e2f5c4;
  --color-indigo-tint: rgba(15, 23, 42, 0.08);
  --jp-border-hover: #84cc16;
  --seg-track-bg: #eef4e5;
  --seg-track-border: #d4e0c5;
  --seg-fg: #334155;
  --seg-fg-strong: #0f172a;
  --seg-hover-bg: rgba(175, 243, 62, 0.25);
  --seg-active-bg: #aff33e;
  --seg-active-fg: #0f172a;
  --seg-tab-fg: #0f172a;
  --washi-bg: #f7faef; --washi-card: #ffffff; --washi-subtle: #f1f5ec;
  --border-color: #d4e0c5; --ai-indigo: #1e293b; --shu-red: #3f6212; --shu-red-light: #ecfccb;
  --sumi-dark: #0f172a; --sumi-muted: #475569; --sumi-faint: #7c899b;
}
:root[data-theme="dark"][data-theme-preset="lime-frost"],
html.page-vn[data-theme="dark"][data-theme-preset="lime-frost"] {
  --background: #020617;
  --foreground: #f8fafc;
  --card: #0f172a;
  --card-foreground: #f8fafc;
  --popover: #0f172a;
  --popover-foreground: #f8fafc;
  --primary: #aff33e;
  --primary-foreground: #020617;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #162038;
  --muted-foreground: #94a3b8;
  --border: #1e293b;
  --input: #1e293b;
  --ring: #aff33e;
  --destructive: #ef4444;
  --theme-hero-accent: #aff33e;

  --color-washi-0: #020617;
  --color-washi-1: #0f172a;
  --color-washi-2: #162038;
  --color-washi-3: #1e293b;
  --color-washi-4: #29384e;
  --color-sumi-900: #f8fafc;
  --color-sumi-800: #e2e8f0;
  --color-sumi-700: #cbd5e1;
  --color-sumi-600: #94a3b8;
  --color-sumi-500: #8292a8;
  --color-sumi-400: #6f8096;
  --color-sumi-200: #1e293b;
  --accent: #aff33e;
  --accent-hover: #c5f76a;
  --accent-active: #96dc24;
  --accent-subtle: #142b14;
  --accent-tint: rgba(175, 243, 62, 0.16);
  --color-indigo: #aff33e;
  --color-indigo-hover: #c5f76a;
  --color-indigo-soft: #1a2e16;
  --color-indigo-tint: rgba(175, 243, 62, 0.15);
  --jp-border-hover: #4d7c0f;
  --seg-track-bg: #080d1e;
  --seg-track-border: #253449;
  --seg-fg: #94a3b8;
  --seg-fg-strong: #f8fafc;
  --seg-hover-bg: rgba(175, 243, 62, 0.14);
  --seg-active-bg: #aff33e;
  --seg-active-fg: #020617;
  --seg-tab-fg: #e2e8f0;
  --washi-bg: #020617; --washi-card: #0f172a; --washi-subtle: #162038;
  --border-color: #29384e; --ai-indigo: #aff33e; --shu-red: #aff33e; --shu-red-light: #142b14;
  --sumi-dark: #f8fafc; --sumi-muted: #94a3b8; --sumi-faint: #6f8096;
}

/* #8 Elegant Luxury (443 likes) */
:root[data-theme-preset="elegant-luxury"],
html.page-vn[data-theme-preset="elegant-luxury"] {
  --background: #faf7f5;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --popover: #faf7f5;
  --popover-foreground: #1a1a1a;
  --primary: #9b2c2c;
  --primary-foreground: #ffffff;
  --secondary: #fdf2d6;
  --secondary-foreground: #805500;
  --muted: #f0ebe8;
  --muted-foreground: #57534e;
  --border: #ecdcbf;
  --input: #f0e2c9;
  --ring: #9b2c2c;
  --destructive: #991b1b;
  --theme-hero-accent: #f3c669;

  --color-washi-0: #faf7f5;
  --color-washi-1: #ffffff;
  --color-washi-2: #f5efe9;
  --color-washi-3: #efe3cf;
  --color-washi-4: #e4d1b0;
  --color-sumi-900: #1a1a1a;
  --color-sumi-800: #2e2926;
  --color-sumi-700: #443e3a;
  --color-sumi-600: #57534e;
  --color-sumi-500: #6c6660;
  --color-sumi-400: #7c756d;
  --color-sumi-200: #dfd2be;
  --accent: #9b2c2c;
  --accent-hover: #7f1d1d;
  --accent-active: #681717;
  --accent-subtle: #fef2f2;
  --accent-tint: rgba(155, 44, 44, 0.1);
  --color-indigo: #7f1d1d;
  --color-indigo-hover: #5c1414;
  --color-indigo-soft: #fdf2d6;
  --color-indigo-tint: rgba(127, 29, 29, 0.08);
  --jp-border-hover: #d4b98c;
  --seg-track-bg: #f3ece2;
  --seg-track-border: #e4d1b0;
  --seg-fg: #57534e;
  --seg-fg-strong: #1a1a1a;
  --seg-hover-bg: rgba(155, 44, 44, 0.08);
  --seg-active-bg: #9b2c2c;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #2e2926;
  --washi-bg: #faf7f5; --washi-card: #ffffff; --washi-subtle: #f5efe9;
  --border-color: #e4d1b0; --ai-indigo: #7f1d1d; --shu-red: #9b2c2c; --shu-red-light: #fef2f2;
  --sumi-dark: #1a1a1a; --sumi-muted: #57534e; --sumi-faint: #7c756d;
}
:root[data-theme="dark"][data-theme-preset="elegant-luxury"],
html.page-vn[data-theme="dark"][data-theme-preset="elegant-luxury"] {
  --background: #1c1917;
  --foreground: #f5f5f4;
  --card: #292524;
  --card-foreground: #f5f5f4;
  --popover: #292524;
  --popover-foreground: #f5f5f4;
  --primary: #b91c1c;
  --primary-foreground: #faf7f5;
  --secondary: #3a302b;
  --secondary-foreground: #fef3c7;
  --muted: #1f1c1a;
  --muted-foreground: #d6d3d1;
  --border: #44403c;
  --input: #44403c;
  --ring: #f87171;
  --destructive: #ef4444;
  --theme-hero-accent: #fbbf24;

  --color-washi-0: #171412;
  --color-washi-1: #231f1d;
  --color-washi-2: #2c2725;
  --color-washi-3: #37312e;
  --color-washi-4: #48403c;
  --color-sumi-900: #faf7f5;
  --color-sumi-800: #f5f5f4;
  --color-sumi-700: #e7e5e4;
  --color-sumi-600: #d6d3d1;
  --color-sumi-500: #b3aea9;
  --color-sumi-400: #938e89;
  --color-sumi-200: #3d3835;
  --accent: #f87171;
  --accent-hover: #fca5a5;
  --accent-active: #ef4444;
  --accent-subtle: #381818;
  --accent-tint: rgba(185, 28, 28, 0.22);
  --color-indigo: #fbbf24;
  --color-indigo-hover: #fde68a;
  --color-indigo-soft: #3a2b14;
  --color-indigo-tint: rgba(251, 191, 36, 0.14);
  --jp-border-hover: #78716c;
  --seg-track-bg: #1c1816;
  --seg-track-border: #48403c;
  --seg-fg: #d6d3d1;
  --seg-fg-strong: #faf7f5;
  --seg-hover-bg: rgba(185, 28, 28, 0.18);
  --seg-active-bg: #b91c1c;
  --seg-active-fg: #faf7f5;
  --seg-tab-fg: #f5f5f4;
  --washi-bg: #171412; --washi-card: #231f1d; --washi-subtle: #2c2725;
  --border-color: #48403c; --ai-indigo: #fbbf24; --shu-red: #f87171; --shu-red-light: #381818;
  --sumi-dark: #faf7f5; --sumi-muted: #d6d3d1; --sumi-faint: #938e89;
}

/* #9 Twitter (387 likes) */
:root[data-theme-preset="twitter"],
html.page-vn[data-theme-preset="twitter"] {
  --background: #ffffff;
  --foreground: #0f1419;
  --card: #f7f9f9;
  --card-foreground: #0f1419;
  --popover: #ffffff;
  --popover-foreground: #0f1419;
  --primary: #0f74b8;
  --primary-foreground: #ffffff;
  --secondary: #0f1419;
  --secondary-foreground: #ffffff;
  --muted: #eff3f4;
  --muted-foreground: #536471;
  --border: #e1eaef;
  --input: #f7f9fa;
  --ring: #1da1f2;
  --destructive: #dc2626;
  --theme-hero-accent: #1d9bf0;

  --color-washi-0: #f7f9f9;
  --color-washi-1: #ffffff;
  --color-washi-2: #eff3f4;
  --color-washi-3: #e3ecf6;
  --color-washi-4: #d6e3ec;
  --color-sumi-900: #0f1419;
  --color-sumi-800: #1d262f;
  --color-sumi-700: #33404c;
  --color-sumi-600: #536471;
  --color-sumi-500: #667785;
  --color-sumi-400: #7b8b97;
  --color-sumi-200: #cfd9de;
  --accent: #0f74b8;
  --accent-hover: #0c5e96;
  --accent-active: #094b78;
  --accent-subtle: #e8f5fe;
  --accent-tint: rgba(29, 155, 240, 0.11);
  --color-indigo: #0f1419;
  --color-indigo-hover: #0f74b8;
  --color-indigo-soft: #e3ecf6;
  --color-indigo-tint: rgba(29, 155, 240, 0.09);
  --jp-border-hover: #8ecdf7;
  --seg-track-bg: #eff3f4;
  --seg-track-border: #d6e3ec;
  --seg-fg: #536471;
  --seg-fg-strong: #0f1419;
  --seg-hover-bg: rgba(29, 155, 240, 0.1);
  --seg-active-bg: #0f74b8;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #0f1419;
  --washi-bg: #f7f9f9; --washi-card: #ffffff; --washi-subtle: #eff3f4;
  --border-color: #d6e3ec; --ai-indigo: #0f1419; --shu-red: #0f74b8; --shu-red-light: #e8f5fe;
  --sumi-dark: #0f1419; --sumi-muted: #536471; --sumi-faint: #7b8b97;
}
:root[data-theme="dark"][data-theme-preset="twitter"],
html.page-vn[data-theme="dark"][data-theme-preset="twitter"] {
  --background: #000000;
  --foreground: #e7e9ea;
  --card: #16181c;
  --card-foreground: #e7e9ea;
  --popover: #000000;
  --popover-foreground: #e7e9ea;
  --primary: #0f74b8;
  --primary-foreground: #ffffff;
  --secondary: #202327;
  --secondary-foreground: #e7e9ea;
  --muted: #181a1e;
  --muted-foreground: #8b98a5;
  --border: #2f3336;
  --input: #22303c;
  --ring: #1d9bf0;
  --destructive: #f4212e;
  --theme-hero-accent: #1d9bf0;

  --color-washi-0: #000000;
  --color-washi-1: #16181c;
  --color-washi-2: #1d2025;
  --color-washi-3: #25282e;
  --color-washi-4: #31353a;
  --color-sumi-900: #e7e9ea;
  --color-sumi-800: #d9dadb;
  --color-sumi-700: #bdc1c6;
  --color-sumi-600: #8b98a5;
  --color-sumi-500: #788490;
  --color-sumi-400: #6b7680;
  --color-sumi-200: #2f3336;
  --accent: #38adff;
  --accent-hover: #6bc2ff;
  --accent-active: #1d9bf0;
  --accent-subtle: #061b29;
  --accent-tint: rgba(29, 155, 240, 0.16);
  --color-indigo: #5ec0ff;
  --color-indigo-hover: #90d4ff;
  --color-indigo-soft: #092234;
  --color-indigo-tint: rgba(29, 155, 240, 0.15);
  --jp-border-hover: #1d9bf0;
  --seg-track-bg: #121417;
  --seg-track-border: #2f3336;
  --seg-fg: #8b98a5;
  --seg-fg-strong: #e7e9ea;
  --seg-hover-bg: rgba(29, 155, 240, 0.15);
  --seg-active-bg: #0f74b8;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #e7e9ea;
  --washi-bg: #000000; --washi-card: #16181c; --washi-subtle: #1d2025;
  --border-color: #31353a; --ai-indigo: #5ec0ff; --shu-red: #38adff; --shu-red-light: #061b29;
  --sumi-dark: #e7e9ea; --sumi-muted: #8b98a5; --sumi-faint: #6b7680;
}

/* #10 Supabase (379 likes) */
:root[data-theme-preset="supabase"],
html.page-vn[data-theme-preset="supabase"] {
  --background: #f8f9fa;
  --foreground: #171717;
  --card: #ffffff;
  --card-foreground: #171717;
  --popover: #fcfcfc;
  --popover-foreground: #525252;
  --primary: #72e3ad;
  --primary-foreground: #12261d;
  --secondary: #f3f4f6;
  --secondary-foreground: #171717;
  --muted: #ededed;
  --muted-foreground: #525252;
  --border: #dfdfdf;
  --input: #f2f2f2;
  --ring: #059669;
  --destructive: #ca3214;
  --theme-hero-accent: #72e3ad;

  --color-washi-0: #f8f9fa;
  --color-washi-1: #ffffff;
  --color-washi-2: #f1f3f2;
  --color-washi-3: #e7ebe9;
  --color-washi-4: #d6ddd9;
  --color-sumi-900: #171717;
  --color-sumi-800: #262626;
  --color-sumi-700: #3d3d3d;
  --color-sumi-600: #525252;
  --color-sumi-500: #666666;
  --color-sumi-400: #7a7a7a;
  --color-sumi-200: #d4d4d4;
  --accent: #006239;
  --accent-hover: #004d2c;
  --accent-active: #003a21;
  --accent-subtle: #e7f9f0;
  --accent-tint: rgba(114, 227, 173, 0.22);
  --color-indigo: #006239;
  --color-indigo-hover: #004d2c;
  --color-indigo-soft: #e2f7ed;
  --color-indigo-tint: rgba(0, 98, 57, 0.08);
  --jp-border-hover: #3ecf8e;
  --seg-track-bg: #edf1ef;
  --seg-track-border: #d6ddd9;
  --seg-fg: #404040;
  --seg-fg-strong: #171717;
  --seg-hover-bg: rgba(114, 227, 173, 0.24);
  --seg-active-bg: #72e3ad;
  --seg-active-fg: #12261d;
  --seg-tab-fg: #171717;
  --washi-bg: #f8f9fa; --washi-card: #ffffff; --washi-subtle: #f1f3f2;
  --border-color: #d6ddd9; --ai-indigo: #006239; --shu-red: #006239; --shu-red-light: #e7f9f0;
  --sumi-dark: #171717; --sumi-muted: #525252; --sumi-faint: #7a7a7a;
}
:root[data-theme="dark"][data-theme-preset="supabase"],
html.page-vn[data-theme="dark"][data-theme-preset="supabase"] {
  --background: #121212;
  --foreground: #e2e8f0;
  --card: #171717;
  --card-foreground: #e2e8f0;
  --popover: #242424;
  --popover-foreground: #d4d4d4;
  --primary: #006239;
  --primary-foreground: #ecfdf5;
  --secondary: #242424;
  --secondary-foreground: #fafafa;
  --muted: #1f1f1f;
  --muted-foreground: #a2a2a2;
  --border: #2c2c2c;
  --input: #242424;
  --ring: #4ade80;
  --destructive: #ef4444;
  --theme-hero-accent: #4ade80;

  --color-washi-0: #121212;
  --color-washi-1: #171717;
  --color-washi-2: #1f1f1f;
  --color-washi-3: #282828;
  --color-washi-4: #333333;
  --color-sumi-900: #f1f5f9;
  --color-sumi-800: #e2e8f0;
  --color-sumi-700: #cbd5e1;
  --color-sumi-600: #a2a2a2;
  --color-sumi-500: #8c8c8c;
  --color-sumi-400: #757575;
  --color-sumi-200: #2c2c2c;
  --accent: #4ade80;
  --accent-hover: #86efac;
  --accent-active: #22c55e;
  --accent-subtle: #0f291c;
  --accent-tint: rgba(74, 222, 128, 0.16);
  --color-indigo: #4ade80;
  --color-indigo-hover: #86efac;
  --color-indigo-soft: #102a1d;
  --color-indigo-tint: rgba(74, 222, 128, 0.15);
  --jp-border-hover: #15803d;
  --seg-track-bg: #151515;
  --seg-track-border: #2e2e2e;
  --seg-fg: #a2a2a2;
  --seg-fg-strong: #f1f5f9;
  --seg-hover-bg: rgba(74, 222, 128, 0.13);
  --seg-active-bg: #006239;
  --seg-active-fg: #ecfdf5;
  --seg-tab-fg: #e2e8f0;
  --washi-bg: #121212; --washi-card: #171717; --washi-subtle: #1f1f1f;
  --border-color: #333333; --ai-indigo: #4ade80; --shu-red: #4ade80; --shu-red-light: #0f291c;
  --sumi-dark: #f1f5f9; --sumi-muted: #a2a2a2; --sumi-faint: #757575;
}

/* #11 Vintage Paper (375 likes) */
:root[data-theme-preset="vintage-paper"],
html.page-vn[data-theme-preset="vintage-paper"] {
  --background: #f5f1e6;
  --foreground: #4a3f35;
  --card: #fffcf5;
  --card-foreground: #4a3f35;
  --popover: #fffcf5;
  --popover-foreground: #4a3f35;
  --primary: #86603b;
  --primary-foreground: #ffffff;
  --secondary: #e2d8c3;
  --secondary-foreground: #5c4d3f;
  --muted: #ece5d8;
  --muted-foreground: #6b5b48;
  --border: #dbd0ba;
  --input: #dbd0ba;
  --ring: #a67c52;
  --destructive: #b54a35;
  --theme-hero-accent: #d4aa7d;

  --color-washi-0: #f5f1e6;
  --color-washi-1: #fffcf5;
  --color-washi-2: #ece5d8;
  --color-washi-3: #e2d8c3;
  --color-washi-4: #d4c8aa;
  --color-sumi-900: #3d332a;
  --color-sumi-800: #4a3f35;
  --color-sumi-700: #5c4d3f;
  --color-sumi-600: #6e5d4b;
  --color-sumi-500: #7d6b56;
  --color-sumi-400: #8c7a64;
  --color-sumi-200: #d1c5ad;
  --accent: #86603b;
  --accent-hover: #6f4e2e;
  --accent-active: #5a3e23;
  --accent-subtle: #f4ece0;
  --accent-tint: rgba(166, 124, 82, 0.14);
  --color-indigo: #5c4d3f;
  --color-indigo-hover: #4a3f35;
  --color-indigo-soft: #ece5d8;
  --color-indigo-tint: rgba(92, 77, 63, 0.08);
  --jp-border-hover: #b3906f;
  --seg-track-bg: #ebe3d3;
  --seg-track-border: #d4c8aa;
  --seg-fg: #5c4d3f;
  --seg-fg-strong: #3d332a;
  --seg-hover-bg: rgba(134, 96, 59, 0.1);
  --seg-active-bg: #86603b;
  --seg-active-fg: #ffffff;
  --seg-tab-fg: #4a3f35;
  --washi-bg: #f5f1e6; --washi-card: #fffcf5; --washi-subtle: #ece5d8;
  --border-color: #d4c8aa; --ai-indigo: #5c4d3f; --shu-red: #86603b; --shu-red-light: #f4ece0;
  --sumi-dark: #3d332a; --sumi-muted: #6e5d4b; --sumi-faint: #8c7a64;
}
:root[data-theme="dark"][data-theme-preset="vintage-paper"],
html.page-vn[data-theme="dark"][data-theme-preset="vintage-paper"] {
  --background: #2d2621;
  --foreground: #ece5d8;
  --card: #3a322c;
  --card-foreground: #ece5d8;
  --popover: #3a322c;
  --popover-foreground: #ece5d8;
  --primary: #c0a080;
  --primary-foreground: #251f1b;
  --secondary: #4a4039;
  --secondary-foreground: #ece5d8;
  --muted: #312b26;
  --muted-foreground: #c5bcac;
  --border: #52473f;
  --input: #4a4039;
  --ring: #c0a080;
  --destructive: #d46b57;
  --theme-hero-accent: #d4b595;

  --color-washi-0: #26201c;
  --color-washi-1: #342c27;
  --color-washi-2: #3d342e;
  --color-washi-3: #4a4039;
  --color-washi-4: #594d44;
  --color-sumi-900: #f3ede2;
  --color-sumi-800: #ece5d8;
  --color-sumi-700: #d9cfc0;
  --color-sumi-600: #c5bcac;
  --color-sumi-500: #ad9f8d;
  --color-sumi-400: #938675;
  --color-sumi-200: #4a4039;
  --accent: #d4b28e;
  --accent-hover: #e5caa9;
  --accent-active: #c0a080;
  --accent-subtle: #43372d;
  --accent-tint: rgba(192, 160, 128, 0.16);
  --color-indigo: #e2c5a5;
  --color-indigo-hover: #f0dac0;
  --color-indigo-soft: #43372d;
  --color-indigo-tint: rgba(226, 197, 165, 0.14);
  --jp-border-hover: #8d6e4c;
  --seg-track-bg: #231d19;
  --seg-track-border: #52473f;
  --seg-fg: #c5bcac;
  --seg-fg-strong: #f3ede2;
  --seg-hover-bg: rgba(192, 160, 128, 0.14);
  --seg-active-bg: #c0a080;
  --seg-active-fg: #231d19;
  --seg-tab-fg: #ece5d8;
  --washi-bg: #26201c; --washi-card: #342c27; --washi-subtle: #3d342e;
  --border-color: #594d44; --ai-indigo: #e2c5a5; --shu-red: #d4b28e; --shu-red-light: #43372d;
  --sumi-dark: #f3ede2; --sumi-muted: #c5bcac; --sumi-faint: #938675;
}

/* #12 Graphite Mono (351 likes) */
:root[data-theme-preset="graphite-mono"],
html.page-vn[data-theme-preset="graphite-mono"] {
  --background: #ffffff;
  --foreground: #171717;
  --card: #fcfcfc;
  --card-foreground: #171717;
  --popover: #ffffff;
  --popover-foreground: #171717;
  --primary: #262626;
  --primary-foreground: #fafafa;
  --secondary: #e5e5e5;
  --secondary-foreground: #171717;
  --muted: #f4f4f4;
  --muted-foreground: #666666;
  --border: #e5e5e5;
  --input: #f2f2f2;
  --ring: #737373;
  --destructive: #dc2626;
  --theme-hero-accent: #93c5fd;

  --color-washi-0: #f7f7f7;
  --color-washi-1: #ffffff;
  --color-washi-2: #f2f2f2;
  --color-washi-3: #e5e5e5;
  --color-washi-4: #d4d4d4;
  --color-sumi-900: #171717;
  --color-sumi-800: #262626;
  --color-sumi-700: #404040;
  --color-sumi-600: #595959;
  --color-sumi-500: #6b6b6b;
  --color-sumi-400: #7a7a7a;
  --color-sumi-200: #d4d4d4;
  --accent: #262626;
  --accent-hover: #404040;
  --accent-active: #171717;
  --accent-subtle: #f2f2f2;
  --accent-tint: rgba(38, 38, 38, 0.08);
  --color-indigo: #2563eb;
  --color-indigo-hover: #1d4ed8;
  --color-indigo-soft: #eff6ff;
  --color-indigo-tint: rgba(37, 99, 235, 0.08);
  --jp-border-hover: #a3a3a3;
  --seg-track-bg: #eeeeee;
  --seg-track-border: #d4d4d4;
  --seg-fg: #525252;
  --seg-fg-strong: #171717;
  --seg-hover-bg: rgba(38, 38, 38, 0.07);
  --seg-active-bg: #262626;
  --seg-active-fg: #fafafa;
  --seg-tab-fg: #262626;
  --washi-bg: #f7f7f7; --washi-card: #ffffff; --washi-subtle: #f2f2f2;
  --border-color: #d4d4d4; --ai-indigo: #262626; --shu-red: #262626; --shu-red-light: #f2f2f2;
  --sumi-dark: #171717; --sumi-muted: #595959; --sumi-faint: #7a7a7a;
}
:root[data-theme="dark"][data-theme-preset="graphite-mono"],
html.page-vn[data-theme="dark"][data-theme-preset="graphite-mono"] {
  --background: #171717;
  --foreground: #fafafa;
  --card: #1f1f1f;
  --card-foreground: #fafafa;
  --popover: #1f1f1f;
  --popover-foreground: #fafafa;
  --primary: #e5e5e5;
  --primary-foreground: #171717;
  --secondary: #2c2c2c;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: #333333;
  --input: #2c2c2c;
  --ring: #737373;
  --destructive: #ef4444;
  --theme-hero-accent: #93c5fd;

  --color-washi-0: #171717;
  --color-washi-1: #1f1f1f;
  --color-washi-2: #262626;
  --color-washi-3: #303030;
  --color-washi-4: #3d3d3d;
  --color-sumi-900: #fafafa;
  --color-sumi-800: #e5e5e5;
  --color-sumi-700: #d4d4d4;
  --color-sumi-600: #a3a3a3;
  --color-sumi-500: #8f8f8f;
  --color-sumi-400: #787878;
  --color-sumi-200: #333333;
  --accent: #e5e5e5;
  --accent-hover: #ffffff;
  --accent-active: #d4d4d4;
  --accent-subtle: #2b2b2b;
  --accent-tint: rgba(229, 229, 229, 0.13);
  --color-indigo: #93c5fd;
  --color-indigo-hover: #bfdbfe;
  --color-indigo-soft: #1e293b;
  --color-indigo-tint: rgba(147, 197, 253, 0.14);
  --jp-border-hover: #666666;
  --seg-track-bg: #141414;
  --seg-track-border: #383838;
  --seg-fg: #a3a3a3;
  --seg-fg-strong: #fafafa;
  --seg-hover-bg: rgba(229, 229, 229, 0.09);
  --seg-active-bg: #e5e5e5;
  --seg-active-fg: #171717;
  --seg-tab-fg: #e5e5e5;
  --washi-bg: #171717; --washi-card: #1f1f1f; --washi-subtle: #262626;
  --border-color: #3d3d3d; --ai-indigo: #e5e5e5; --shu-red: #93c5fd; --shu-red-light: #2b2b2b;
  --sumi-dark: #fafafa; --sumi-muted: #a3a3a3; --sumi-faint: #787878;
}

/* --------------------------------------------------------------------------
   3. Theme Picker Modal / Bottom Sheet UI (.theme-picker-overlay)
   -------------------------------------------------------------------------- */
.theme-picker-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(12, 16, 24, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.theme-picker-overlay.show {
  display: flex;
}
@media (min-width: 641px) {
  .theme-picker-overlay { align-items: center; }
}

.theme-picker-sheet {
  width: 100%;
  max-width: 660px;
  max-height: min(86vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--color-washi-1, var(--washi-card, #FFFFFF));
  border: 1px solid var(--color-washi-4, var(--border-color, #E5DEC9));
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  color: var(--color-sumi-900, var(--sumi-dark, #1F2937));
}

.theme-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--color-washi-4, var(--border-color, #E5DEC9));
}
.theme-picker-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.theme-picker-seal {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--accent, var(--shu-red, #BA3C38));
  color: var(--accent, var(--shu-red, #BA3C38));
  background: var(--accent-subtle, var(--shu-red-light, #FBEAE8));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Shippori Mincho", "Noto Serif SC", serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
}
.theme-picker-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-sumi-900, var(--sumi-dark, #1F2937));
  line-height: 1.3;
}
.theme-picker-sub {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: var(--color-sumi-600, var(--sumi-muted, #5A6475));
  line-height: 1.4;
}
.theme-picker-close {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--color-washi-4, var(--border-color, #E5DEC9));
  background: var(--color-washi-2, var(--washi-subtle, #F5F2EC));
  color: var(--color-sumi-700, var(--sumi-dark, #374151));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-picker-close:hover {
  background: var(--color-washi-3, var(--washi-subtle, #EAE4D8));
  color: var(--color-sumi-900, var(--sumi-dark, #1F2937));
}

.theme-picker-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--color-washi-2, var(--washi-subtle, #F5F2EC));
  border-bottom: 1px solid var(--color-washi-4, var(--border-color, #E5DEC9));
}
.theme-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--color-washi-1, var(--washi-card, #FFFFFF));
  border: 1px solid var(--color-washi-4, var(--border-color, #E5DEC9));
  gap: 3px;
}
.theme-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--color-sumi-600, var(--sumi-muted, #5A6475));
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.theme-mode-btn.active {
  background: var(--seg-active-bg, var(--ai-indigo, #162B4D));
  color: var(--seg-active-fg, #FFFFFF);
}
.theme-picker-active-meta {
  font-size: 0.75rem;
  color: var(--color-sumi-600, var(--sumi-muted, #5A6475));
  font-family: "DM Mono", monospace;
}

.theme-picker-grid-scroll {
  overflow-y: auto;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
}
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) {
  .theme-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

.theme-preset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--color-washi-4, var(--border-color, #E5DEC9));
  background: var(--color-washi-0, var(--washi-bg, #FAF7F2));
  color: var(--color-sumi-900, var(--sumi-dark, #1F2937));
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.theme-preset-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent, var(--shu-red, #BA3C38));
}
.theme-preset-card.active {
  border-color: var(--accent, var(--shu-red, #BA3C38));
  box-shadow: 0 0 0 2px var(--accent-tint, rgba(186, 60, 56, 0.14));
  background: var(--color-washi-1, var(--washi-card, #FFFFFF));
}

/* Split Light / Dark Miniature UI Swatch */
.theme-dual-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.22);
  margin-bottom: 8px;
}
.theme-half-swatch {
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--sw-bg) !important;
  color: var(--sw-fg) !important;
}
.theme-half-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.theme-half-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}
.theme-half-dot {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  flex-shrink: 0;
  background: var(--sw-pri) !important;
}
.theme-half-bar {
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(128, 128, 128, 0.16);
  display: flex;
  align-items: center;
  padding: 0 4px;
  background: var(--sw-card) !important;
}
.theme-half-ink {
  width: 65%;
  height: 3px;
  border-radius: 2px;
  opacity: 0.78;
  background: var(--sw-fg) !important;
}

.theme-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.theme-card-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--color-sumi-900, var(--sumi-dark, #1F2937));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-card-check {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: var(--seg-active-bg, var(--ai-indigo, #162B4D));
  color: var(--seg-active-fg, #FFFFFF);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-preset-card.active .theme-card-check {
  display: inline-flex;
}
.theme-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  font-size: 0.71rem;
  color: var(--color-sumi-600, var(--sumi-muted, #5A6475));
}
.theme-card-likes {
  font-family: "DM Mono", monospace;
  font-size: 0.69rem;
  color: var(--color-sumi-500, var(--sumi-faint, #788296));
  flex-shrink: 0;
}

.theme-picker-footer {
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-washi-4, var(--border-color, #E5DEC9));
  background: var(--color-washi-2, var(--washi-subtle, #F5F2EC));
  display: flex;
  justify-content: flex-end;
}
.theme-picker-done-btn {
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--seg-active-bg, var(--ai-indigo, #162B4D));
  border-radius: 10px;
  background: var(--seg-active-bg, var(--ai-indigo, #162B4D));
  color: var(--seg-active-fg, #FFFFFF);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.theme-picker-done-btn:hover { opacity: 0.92; }

html[data-theme-preset]:not([data-theme-preset="default"]) .hero {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  color: var(--color-sumi-900) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .hero h1 {
  color: var(--color-sumi-900) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .hero-sub {
  color: var(--color-sumi-600) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .hero::after {
  color: color-mix(in srgb, var(--color-sumi-900) 4%, transparent) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .hero .hanko-tag:not(.primary) {
  background: var(--color-washi-2) !important;
  border-color: var(--border) !important;
  color: var(--color-sumi-800) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .hero .hanko-tag.primary {
  background: var(--seg-active-bg) !important;
  border-color: var(--seg-active-bg) !important;
  color: var(--seg-active-fg) !important;
}
html[data-theme-preset]:not([data-theme-preset="default"]) .hero :is(.topbar-music-btn, .topbar-install-btn) {
  background: var(--color-washi-2) !important;
  border-color: var(--border) !important;
  color: var(--color-sumi-900) !important;
}

/* Packing page compact header buttons */
.hero-top-row { flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .hero-top-row .hero-badges { flex: 1 1 100%; }
}
.packing-theme-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.topbar-palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 640px) {
  #topHero .topbar-palette-btn .palette-text { display: none; }
}
