/* ========== Theme: NeoBrutalism ========== */
html[data-theme="neobrutalism"] {
  --bg: #fff8e8;
  --ink: #111111;
  --muted: #444444;
  --line: #111111;
  --line-strong: #111111;
  --card: #ffffff;
  --surface: #ffe566;
  --panel-bg: #ffffff;
  --panel-pad: 1rem;
  --panel-border: 3px solid #111;
  --panel-shadow: 4px 4px 0 #111;
  --braun: #111111;
  --accent: #ff8fab;
  --primary-btn-bg: #111111;
  --primary-btn-fg: #ffffff;
  --danger: #111111;
  --danger-bg: #ff8fab;
  --warning: #111111;
  --warning-bg: #ffb347;
  --success: #111111;
  --success-bg: #b8f2c9;
  --home-bg: #b8f2c9;
  --leave-bg: #ff8fab;
  --who-bg: #ffe566;
  --note-bg: #9ad7ff;
  --row-alt: #fffdf5;
  --row-alt-who: #fff8e0;
  --row-hover: #fff1c2;
  --row-hover-who: #ffe99a;
  --radius: 14px;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --font-weight-brand: 700;
  --letter-brand: -0.04em;
  --text-transform-brand: none;
}

html[data-theme="neobrutalism"] .top {
  border-bottom: none;
  background: #ffe566;
  border: 3px solid #111;
  box-shadow: 4px 4px 0 #111;
  padding: 1rem;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  align-items: flex-start;
}

html[data-theme="neobrutalism"] .drops {
  gap: 0.85rem;
  background: transparent;
  border: none;
}

html[data-theme="neobrutalism"] .drop {
  border: 3px solid #111;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #111;
}

html[data-theme="neobrutalism"] .drop-home { background: #b8f2c9; }
html[data-theme="neobrutalism"] .drop-leave { background: #9ad7ff; }

html[data-theme="neobrutalism"] .btn {
  border: 3px solid #111;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #111;
  font-weight: 700;
}

html[data-theme="neobrutalism"] .stats {
  gap: 0.7rem;
  background: transparent;
  border: none;
}

html[data-theme="neobrutalism"] .stat {
  border: 3px solid #111;
  border-radius: 12px;
  box-shadow: 3px 3px 0 #111;
}

html[data-theme="neobrutalism"] .stat:nth-child(3n+1) { background: #ffe566; }
html[data-theme="neobrutalism"] .stat:nth-child(3n+2) { background: #9ad7ff; }
html[data-theme="neobrutalism"] .stat:nth-child(3n) { background: #b8f2c9; }
html[data-theme="neobrutalism"] .stat.warn { background: #ff8fab; }

html[data-theme="neobrutalism"] .table-wrap,
html[data-theme="neobrutalism"] .search input,
html[data-theme="neobrutalism"] .tag,
html[data-theme="neobrutalism"] .day-chip,
html[data-theme="neobrutalism"] .icon-btn,
html[data-theme="neobrutalism"] .month-block {
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  border-radius: 12px;
}

html[data-theme="neobrutalism"] .search input {
  padding: 0.5rem 0.7rem;
  background: #fff;
}

html[data-theme="neobrutalism"] .tag.conflict,
html[data-theme="neobrutalism"] .day-chip.conflict { background: #ff8fab; color: #111; }
html[data-theme="neobrutalism"] .tag.partial,
html[data-theme="neobrutalism"] .day-chip.partial { background: #ffb347; color: #111; }

/* ========== Theme: Maximalism ========== */
html[data-theme="maximalism"] {
  --bg: #2b0a3d;
  --ink: #fff7ad;
  --muted: #f9a8d4;
  --line: #f472b6;
  --line-strong: #fbbf24;
  --card: #4c1d95;
  --surface: #5b21b6;
  --panel-bg: #3b0764;
  --panel-pad: 1.1rem;
  --panel-border: 4px double #fbbf24;
  --panel-shadow: 0 0 0 4px #db2777, 8px 8px 0 #06b6d4;
  --braun: #fbbf24;
  --accent: #22d3ee;
  --primary-btn-bg: #fbbf24;
  --primary-btn-fg: #3b0764;
  --danger: #fff7ad;
  --danger-bg: #be123c;
  --warning: #3b0764;
  --warning-bg: #fbbf24;
  --success: #ecfdf5;
  --success-bg: #059669;
  --home-bg: #0e7490;
  --leave-bg: #be123c;
  --who-bg: #7c3aed;
  --note-bg: #db2777;
  --row-alt: #5b21b6;
  --row-alt-who: #6d28d9;
  --row-hover: #7c3aed;
  --row-hover-who: #8b5cf6;
  --radius: 20px;
  --font: "Comic Sans MS", "Chalkboard SE", "Segoe Print", cursive;
  --mono: "Comic Sans MS", cursive;
  --font-weight-brand: 700;
  --letter-brand: 0.02em;
  --text-transform-brand: uppercase;
}

html[data-theme="maximalism"] body {
  background-image:
    radial-gradient(circle at 10% 20%, #f472b655 0, transparent 28%),
    radial-gradient(circle at 90% 10%, #22d3ee55 0, transparent 24%),
    radial-gradient(circle at 70% 80%, #fbbf2455 0, transparent 30%),
    repeating-linear-gradient(45deg, #2b0a3d 0 12px, #3b0764 12px 24px);
}

html[data-theme="maximalism"] .top {
  border: 4px dashed #fbbf24;
  background: linear-gradient(120deg, #7c3aed, #db2777 50%, #06b6d4);
  box-shadow: 10px 10px 0 #fbbf24, -6px -6px 0 #22d3ee;
  padding: 1.2rem;
  border-radius: 24px;
  margin-bottom: 1.4rem;
}

html[data-theme="maximalism"] .brand {
  text-shadow: 3px 3px 0 #db2777, -2px -2px 0 #22d3ee;
}

html[data-theme="maximalism"] .drops {
  gap: 1rem;
  background: transparent;
  border: none;
}

html[data-theme="maximalism"] .drop {
  border: 4px solid #fbbf24;
  border-radius: 24px;
  box-shadow: 6px 6px 0 #22d3ee, -4px -4px 0 #db2777;
  min-height: 120px;
}

html[data-theme="maximalism"] .drop-home { background: #059669; color: #ecfdf5; }
html[data-theme="maximalism"] .drop-leave { background: #db2777; color: #fff7ad; }
html[data-theme="maximalism"] .drop-hint { color: inherit; opacity: 0.85; }

html[data-theme="maximalism"] .btn {
  border: 3px solid #fff7ad;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #22d3ee;
  font-weight: 700;
  text-transform: uppercase;
}

html[data-theme="maximalism"] .stats {
  gap: 0.8rem;
  background: transparent;
  border: none;
}

html[data-theme="maximalism"] .stat {
  border: 3px solid #fbbf24;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #db2777;
}

html[data-theme="maximalism"] .table-wrap {
  border: 4px solid #fbbf24;
  border-radius: 18px;
  box-shadow: 8px 8px 0 #22d3ee;
}

/* ========== Theme: Dieter Rams (explicit) ========== */
/* covered by :root / data-theme=rams */

/* ========== Theme: Windows 95 ========== */
html[data-theme="w95"] {
  --bg: #008080;
  --ink: #000000;
  --muted: #000000;
  --line: #000000;
  --line-strong: #000000;
  --card: #c0c0c0;
  --surface: #c0c0c0;
  --panel-bg: #c0c0c0;
  --panel-pad: 0.75rem;
  --panel-border: 2px solid;
  --panel-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  --braun: #000080;
  --accent: #000080;
  --primary-btn-bg: #c0c0c0;
  --primary-btn-fg: #000000;
  --danger: #ffffff;
  --danger-bg: #800000;
  --warning: #000000;
  --warning-bg: #ffff00;
  --success: #ffffff;
  --success-bg: #008000;
  --home-bg: #c0c0c0;
  --leave-bg: #c0c0c0;
  --who-bg: #000080;
  --note-bg: #c0c0c0;
  --row-alt: #dfdfdf;
  --row-alt-who: #d4d4d4;
  --row-hover: #ffffcc;
  --row-hover-who: #ffffaa;
  --radius: 0;
  --font: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, sans-serif;
  --mono: "Fixedsys", "Consolas", monospace;
  --font-weight-brand: 700;
  --letter-brand: 0;
  --text-transform-brand: none;
}

html[data-theme="w95"] .top {
  border: none;
  background: #000080;
  color: #fff;
  padding: 0.35rem 0.5rem 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
  align-items: center;
}

html[data-theme="w95"] .brand,
html[data-theme="w95"] .sub {
  color: #fff;
}

html[data-theme="w95"] .shell {
  padding: 1rem;
}

html[data-theme="w95"] .panel,
html[data-theme="w95"] .upload-panel {
  border-color: #fff #0a0a0a #0a0a0a #fff;
  border-style: solid;
  border-width: 2px;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
}

html[data-theme="w95"] .drops {
  gap: 0.5rem;
  background: transparent;
  border: none;
}

html[data-theme="w95"] .drop {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf;
}

html[data-theme="w95"] .btn {
  border: 2px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
  border-radius: 0;
  box-shadow: none;
  background: #c0c0c0;
  font-weight: 400;
  padding: 0.25rem 0.75rem;
}

html[data-theme="w95"] .btn.primary {
  background: #c0c0c0;
  color: #000;
  font-weight: 700;
}

html[data-theme="w95"] .btn:active:not(:disabled) {
  border-color: #0a0a0a #fff #fff #0a0a0a;
}

html[data-theme="w95"] .stats {
  gap: 0.5rem;
  background: transparent;
  border: none;
}

html[data-theme="w95"] .stat {
  background: #c0c0c0;
  border: 2px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
}

html[data-theme="w95"] .stat.warn {
  background: #000080;
  color: #fff;
}

html[data-theme="w95"] .stat.warn .value,
html[data-theme="w95"] .stat.warn .label {
  color: #fff;
}

html[data-theme="w95"] .conflicts-table .group-row .col-who,
html[data-theme="w95"] .conflicts-table .sub-row .col-who {
  background: #000080;
  color: #fff;
}

html[data-theme="w95"] .table-wrap {
  border: 2px solid;
  border-color: #0a0a0a #fff #fff #0a0a0a;
  background: #fff;
}

html[data-theme="w95"] .search input {
  background: #fff;
  border: 2px solid;
  border-color: #0a0a0a #fff #fff #0a0a0a;
  padding: 0.25rem 0.4rem;
}

html[data-theme="w95"] .tag.conflict { background: #800000; color: #fff; border-color: #000; }
html[data-theme="w95"] .tag.partial { background: #ffff00; color: #000; border-color: #000; }

/* ========== Theme: Terminal Vaporwave ========== */
html[data-theme="terminal-vaporwave"] {
  --bg: #12001f;
  --ink: #67e8f9;
  --muted: #e879f9;
  --line: #c026d3;
  --line-strong: #22d3ee;
  --card: #1a0033;
  --surface: #240046;
  --panel-bg: #1a0033;
  --panel-pad: 1rem;
  --panel-border: 1px solid #67e8f9;
  --panel-shadow: 0 0 12px #c026d388, inset 0 0 20px #12001f;
  --braun: #f0abfc;
  --accent: #f0abfc;
  --primary-btn-bg: #67e8f9;
  --primary-btn-fg: #12001f;
  --danger: #fda4af;
  --danger-bg: #4c0519;
  --warning: #fde68a;
  --warning-bg: #422006;
  --success: #86efac;
  --success-bg: #052e16;
  --home-bg: #083344;
  --leave-bg: #4a044e;
  --who-bg: #2e1065;
  --note-bg: #1e1b4b;
  --row-alt: #1e003d;
  --row-alt-who: #2a0052;
  --row-hover: #3b0764;
  --row-hover-who: #4c1d95;
  --radius: 0;
  --font: "IBM Plex Mono", "Consolas", monospace;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --font-weight-brand: 700;
  --letter-brand: 0.08em;
  --text-transform-brand: uppercase;
}

html[data-theme="terminal-vaporwave"] body {
  background-image:
    linear-gradient(180deg, transparent 50%, #c026d311 50%),
    linear-gradient(90deg, #67e8f908 1px, transparent 1px),
    linear-gradient(#e879f908 1px, transparent 1px);
  background-size: 100% 4px, 24px 24px, 24px 24px;
}

html[data-theme="terminal-vaporwave"] .top {
  border: 1px solid #67e8f9;
  box-shadow: 0 0 16px #c026d366;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #1a0033;
}

html[data-theme="terminal-vaporwave"] .brand {
  text-shadow: 0 0 8px #67e8f9, 0 0 18px #e879f9;
}

html[data-theme="terminal-vaporwave"] .drops {
  gap: 0.75rem;
  background: transparent;
  border: none;
}

html[data-theme="terminal-vaporwave"] .drop {
  border: 1px solid #67e8f9;
  box-shadow: 0 0 10px #67e8f933;
  background: #1a0033;
}

html[data-theme="terminal-vaporwave"] .btn {
  border: 1px solid #67e8f9;
  border-radius: 0;
  box-shadow: 0 0 8px #67e8f944;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

html[data-theme="terminal-vaporwave"] .stats {
  gap: 0.65rem;
  background: transparent;
  border: none;
}

html[data-theme="terminal-vaporwave"] .stat {
  border: 1px solid #c026d3;
  box-shadow: 0 0 10px #c026d344;
  background: #1a0033;
}

html[data-theme="terminal-vaporwave"] .table-wrap {
  border: 1px solid #67e8f9;
  box-shadow: 0 0 16px #c026d344;
  background: #12001f;
}

html[data-theme="terminal-vaporwave"] .search input {
  border: 1px solid #67e8f9;
  padding: 0.45rem 0.55rem;
  background: #12001f;
  color: #67e8f9;
  box-shadow: 0 0 8px #67e8f933;
}

html[data-theme="terminal-vaporwave"] .tag.conflict,
html[data-theme="terminal-vaporwave"] .day-chip.conflict {
  background: #4c0519;
  color: #fda4af;
  border-color: #fda4af;
  box-shadow: 0 0 6px #fda4af55;
}

html[data-theme="terminal-vaporwave"] .tag.partial,
html[data-theme="terminal-vaporwave"] .day-chip.partial {
  background: #422006;
  color: #fde68a;
  border-color: #fde68a;
}

/* ========== Theme: Office 365 ========== */
html[data-theme="office365"] {
  --bg: #faf9f8;
  --ink: #242424;
  --muted: #616161;
  --line: #e1dfdd;
  --line-strong: #c8c6c4;
  --card: #ffffff;
  --surface: #f3f2f1;
  --panel-bg: #ffffff;
  --panel-pad: 1rem 1.1rem;
  --panel-border: 1px solid #e1dfdd;
  --panel-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.08), 0 0.3px 0.9px rgba(0, 0, 0, 0.06);
  --braun: #0078d4;
  --accent: #0078d4;
  --primary-btn-bg: #0078d4;
  --primary-btn-fg: #ffffff;
  --danger: #a4262c;
  --danger-bg: #fde7e9;
  --warning: #8a6116;
  --warning-bg: #fff4ce;
  --success: #0b6a0b;
  --success-bg: #dff6dd;
  --home-bg: #eff6fc;
  --leave-bg: #fde7e9;
  --who-bg: #f3f2f1;
  --note-bg: #faf9f8;
  --row-alt: #faf9f8;
  --row-alt-who: #f3f2f1;
  --row-hover: #eff6fc;
  --row-hover-who: #deecf9;
  --radius: 4px;
  --font: "Segoe UI", "Segoe UI Web (West European)", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", monospace;
  --font-weight-brand: 600;
  --letter-brand: -0.01em;
  --text-transform-brand: none;
}

html[data-theme="office365"] .top {
  border-bottom: 1px solid #e1dfdd;
  background: #fff;
  margin: -2.5rem -1.5rem 1.5rem;
  padding: 0.85rem 1.5rem;
  align-items: center;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.06);
}

html[data-theme="office365"] .shell {
  max-width: 1200px;
}

html[data-theme="office365"] .drops {
  gap: 0.75rem;
  background: transparent;
  border: none;
}

html[data-theme="office365"] .drop {
  border: 1px dashed #c8c6c4;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="office365"] .drop:hover,
html[data-theme="office365"] .drop.dragover {
  border-color: #0078d4;
  background: #eff6fc;
}

html[data-theme="office365"] .drop.has-file {
  border-style: solid;
  border-color: #0078d4;
  box-shadow: none;
}

html[data-theme="office365"] .btn {
  border-radius: 4px;
  border: 1px solid #8a8886;
  font-weight: 600;
  box-shadow: none;
}

html[data-theme="office365"] .btn.primary {
  border-color: #0078d4;
}

html[data-theme="office365"] .btn.primary:hover:not(:disabled) {
  background: #106ebe;
  filter: none;
}

html[data-theme="office365"] .btn.secondary:hover:not(:disabled) {
  background: #f3f2f1;
  border-color: #0078d4;
  color: #0078d4;
}

html[data-theme="office365"] .stats {
  gap: 0.75rem;
  background: transparent;
  border: none;
}

html[data-theme="office365"] .stat {
  border: 1px solid #e1dfdd;
  border-radius: 4px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.06);
}

html[data-theme="office365"] .table-wrap {
  border-radius: 4px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.06);
}

html[data-theme="office365"] .search input {
  border: 1px solid #8a8886;
  border-radius: 4px;
  padding: 0.45rem 0.65rem;
  background: #fff;
}

html[data-theme="office365"] .search input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 1px #0078d4;
}

html[data-theme="office365"] .tag {
  border-radius: 2px;
}

html[data-theme="office365"] .tag.conflict {
  background: #fde7e9;
  color: #a4262c;
  border-color: #f1aeb5;
}

html[data-theme="office365"] .tag.partial {
  background: #fff4ce;
  color: #8a6116;
  border-color: #efd59e;
}

/* ========== Style switcher UI ========== */
.style-switcher {
  position: relative;
  flex: none;
}

.style-switcher summary {
  list-style: none;
  cursor: pointer;
}

.style-switcher summary::-webkit-details-marker {
  display: none;
}

.style-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 50;
  min-width: 12.5rem;
  padding: 0.35rem;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.style-option {
  appearance: none;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
}

.style-option:hover {
  background: var(--surface);
}

.style-option.is-active {
  font-weight: 700;
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
}

html[data-theme="neobrutalism"] .style-menu {
  border: 3px solid #111;
  box-shadow: 4px 4px 0 #111;
  border-radius: 12px;
}

html[data-theme="w95"] .style-menu {
  border: 2px solid;
  border-color: #fff #0a0a0a #0a0a0a #fff;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: none;
}

html[data-theme="terminal-vaporwave"] .style-menu {
  border: 1px solid #67e8f9;
  box-shadow: 0 0 16px #c026d366;
  background: #1a0033;
}

html[data-theme="maximalism"] .style-menu {
  border: 3px solid #fbbf24;
  box-shadow: 6px 6px 0 #22d3ee;
  background: #4c1d95;
  border-radius: 16px;
}

html[data-theme="office365"] .style-menu {
  border-radius: 4px;
  box-shadow: 0 6.4px 14.4px rgba(0, 0, 0, 0.13);
}

/* ========== Theme: Windows XP ========== */
html[data-theme="windows-xp"] {
  --bg: #3a6ea5;
  --ink: #000000;
  --muted: #003399;
  --line: #003c74;
  --line-strong: #0054e3;
  --card: #ece9d8;
  --surface: #d4d0c8;
  --panel-bg: #ece9d8;
  --panel-pad: 0.75rem;
  --panel-border: 1px solid #003c74;
  --panel-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  --braun: #245edb;
  --accent: #245edb;
  --primary-btn-bg: #245edb;
  --primary-btn-fg: #ffffff;
  --danger: #ffffff;
  --danger-bg: #c75050;
  --warning: #000000;
  --warning-bg: #ffcc66;
  --success: #ffffff;
  --success-bg: #3c8a3c;
  --home-bg: #c2d5f2;
  --leave-bg: #f2c2c2;
  --who-bg: #0a246a;
  --note-bg: #ece9d8;
  --row-alt: #f5f4ea;
  --row-alt-who: #e8e6d5;
  --row-hover: #316ac5;
  --row-hover-who: #245edb;
  --radius: 8px;
  --font: Tahoma, "Segoe UI", sans-serif;
  --mono: "Lucida Console", "Consolas", monospace;
  --font-weight-brand: 700;
  --letter-brand: 0;
  --text-transform-brand: none;
}

html[data-theme="windows-xp"] body {
  background:
    radial-gradient(ellipse at 50% 115%, #7ec8e3 0%, transparent 55%),
    linear-gradient(180deg, #5b9bd5 0%, #3a6ea5 45%, #2f5f8f 100%);
  background-attachment: fixed;
}

html[data-theme="windows-xp"] .shell {
  padding-top: 1rem;
}

html[data-theme="windows-xp"] .top {
  border: none;
  margin-bottom: 0.85rem;
  padding: 0;
  background: linear-gradient(180deg, #0a246a 0%, #245edb 8%, #3a7cf0 50%, #245edb 92%, #1a4eb8 100%);
  color: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 1px #003c74, 3px 3px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  align-items: stretch;
  flex-wrap: wrap;
}

html[data-theme="windows-xp"] .top-text {
  padding: 0.45rem 0.75rem 0.55rem;
  flex: 1;
}

html[data-theme="windows-xp"] .brand,
html[data-theme="windows-xp"] .sub {
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}

html[data-theme="windows-xp"] .sub {
  opacity: 0.9;
}

html[data-theme="windows-xp"] .actions {
  padding: 0.4rem 0.5rem;
  align-items: center;
  background: linear-gradient(180deg, #3a7cf0, #245edb);
}

html[data-theme="windows-xp"] .panel,
html[data-theme="windows-xp"] .upload-panel {
  background: #ece9d8;
  border: 1px solid #003c74;
  border-radius: 0 0 8px 8px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="windows-xp"] .drops {
  gap: 0.65rem;
  background: transparent;
  border: none;
}

html[data-theme="windows-xp"] .drop {
  background: #fff;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  box-shadow: inset 1px 1px 0 #fff;
}

html[data-theme="windows-xp"] .drop:hover,
html[data-theme="windows-xp"] .drop.dragover {
  outline: 1px dotted #245edb;
  outline-offset: -3px;
}

html[data-theme="windows-xp"] .btn {
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff 0%, #ece9d8 45%, #d4d0c8 100%);
  color: #000;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #fff;
}

html[data-theme="windows-xp"] .btn.primary {
  background: linear-gradient(180deg, #5b91e6 0%, #245edb 45%, #1a4eb8 100%);
  border-color: #003c74;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

html[data-theme="windows-xp"] .btn.primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

html[data-theme="windows-xp"] .stats {
  gap: 0.55rem;
  background: transparent;
  border: none;
}

html[data-theme="windows-xp"] .stat {
  background: #fff;
  border: 1px solid #7f9db9;
  border-radius: 3px;
}

html[data-theme="windows-xp"] .stat.warn {
  background: #245edb;
  color: #fff;
}

html[data-theme="windows-xp"] .stat.warn .label,
html[data-theme="windows-xp"] .stat.warn .value {
  color: #fff;
}

html[data-theme="windows-xp"] .conflicts-table .group-row .col-who,
html[data-theme="windows-xp"] .conflicts-table .sub-row .col-who {
  background: #0a246a;
  color: #fff;
}

html[data-theme="windows-xp"] .conflicts-table tbody tr:hover td {
  background: #316ac5;
  color: #fff;
}

html[data-theme="windows-xp"] .conflicts-table tbody tr:hover td.col-who {
  background: #245edb;
  color: #fff;
}

html[data-theme="windows-xp"] .table-wrap {
  border: 1px solid #7f9db9;
  background: #fff;
  border-radius: 0;
}

html[data-theme="windows-xp"] .search input {
  border: 1px solid #7f9db9;
  border-radius: 0;
  padding: 0.35rem 0.45rem;
  background: #fff;
}

html[data-theme="windows-xp"] .tag.conflict {
  background: #c75050;
  color: #fff;
  border-color: #003c74;
}

html[data-theme="windows-xp"] .tag.partial {
  background: #ffcc66;
  color: #000;
  border-color: #003c74;
}

html[data-theme="windows-xp"] .style-menu {
  background: #ece9d8;
  border: 1px solid #003c74;
  border-radius: 0;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

/* ========== Theme: Notepad ========== */
html[data-theme="notepad"] {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #000000;
  --line: #000000;
  --line-strong: #000000;
  --card: #ffffff;
  --surface: #ffffff;
  --panel-bg: #ffffff;
  --panel-pad: 0;
  --panel-border: none;
  --panel-shadow: none;
  --braun: #000000;
  --accent: #000000;
  --primary-btn-bg: #ffffff;
  --primary-btn-fg: #000000;
  --danger: #000000;
  --danger-bg: #ffffff;
  --warning: #000000;
  --warning-bg: #ffffff;
  --success: #000000;
  --success-bg: #ffffff;
  --home-bg: #ffffff;
  --leave-bg: #ffffff;
  --who-bg: #ffffff;
  --note-bg: #ffffff;
  --row-alt: #ffffff;
  --row-alt-who: #ffffff;
  --row-hover: #ffffff;
  --row-hover-who: #ffffff;
  --radius: 0;
  --font: "Consolas", "Lucida Console", "Courier New", monospace;
  --mono: "Consolas", "Lucida Console", "Courier New", monospace;
  --font-weight-brand: 400;
  --letter-brand: 0;
  --text-transform-brand: none;
}

html[data-theme="notepad"] body {
  background: #fff;
}

html[data-theme="notepad"] .shell {
  max-width: 900px;
  padding: 0.75rem 1rem 2rem;
}

html[data-theme="notepad"] .top {
  border: none;
  border-bottom: 1px solid #000;
  margin-bottom: 0.75rem;
  padding: 0 0 0.5rem;
  align-items: flex-start;
  background: #fff;
}

html[data-theme="notepad"] .brand {
  font-size: 1rem;
  font-weight: 400;
}

html[data-theme="notepad"] .brand::before {
  content: "Untitled - Notepad\A\A";
  white-space: pre;
  display: block;
  font-size: 0.85rem;
}

html[data-theme="notepad"] .sub::before {
  content: "File  Edit  Format  View  Help\A----------------------------------------\A";
  white-space: pre;
  display: block;
  margin-bottom: 0.35rem;
}

html[data-theme="notepad"] .actions {
  gap: 0.35rem;
}

html[data-theme="notepad"] .btn {
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-weight: 400;
  font-size: 0.78rem;
  padding: 0.15rem 0.4rem;
  text-transform: none;
  box-shadow: none;
}

html[data-theme="notepad"] .btn.primary {
  background: #fff;
  color: #000;
  text-decoration: underline;
}

html[data-theme="notepad"] .btn.primary:hover:not(:disabled),
html[data-theme="notepad"] .btn.secondary:hover:not(:disabled) {
  background: #000;
  color: #fff;
  filter: none;
}

html[data-theme="notepad"] .drops {
  gap: 0;
  background: transparent;
  border: none;
  display: block;
}

html[data-theme="notepad"] .drop {
  display: block;
  min-height: 0;
  padding: 0.15rem 0;
  border: none;
  background: transparent;
}

html[data-theme="notepad"] .drop-home,
html[data-theme="notepad"] .drop-leave {
  background: transparent;
}

html[data-theme="notepad"] .drop-kicker {
  display: inline;
  color: #000;
}

html[data-theme="notepad"] .drop-kicker::after {
  content: " ";
}

html[data-theme="notepad"] .drop-label,
html[data-theme="notepad"] .drop-hint {
  display: inline;
  font-size: 0.9rem;
  font-weight: 400;
  color: #000;
}

html[data-theme="notepad"] .drop-label::after {
  content: " = ";
}

html[data-theme="notepad"] .drop:hover,
html[data-theme="notepad"] .drop.dragover,
html[data-theme="notepad"] .drop.has-file {
  background: transparent;
  outline: none;
  box-shadow: none;
}

html[data-theme="notepad"] .drop.has-file .drop-hint {
  text-decoration: underline;
}

html[data-theme="notepad"] .stats {
  display: block;
  background: transparent;
  border: none;
  font-family: var(--mono);
}

html[data-theme="notepad"] .stat {
  display: block;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme="notepad"] .stat .label {
  display: inline;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: #000;
}

html[data-theme="notepad"] .stat .label::after {
  content: ": ";
}

html[data-theme="notepad"] .stat .value {
  display: inline;
  font-size: 0.9rem;
  font-weight: 400;
}

html[data-theme="notepad"] .stat.warn .value {
  color: #000;
  font-weight: 700;
}

html[data-theme="notepad"] .panel-head h2,
html[data-theme="notepad"] .explain,
html[data-theme="notepad"] .count,
html[data-theme="notepad"] .legend {
  color: #000;
  font-weight: 400;
}

html[data-theme="notepad"] .panel-head h2 {
  text-transform: uppercase;
  font-size: 0.9rem;
}

html[data-theme="notepad"] .panel-head h2::before {
  content: "== ";
}

html[data-theme="notepad"] .panel-head h2::after {
  content: " ==";
}

html[data-theme="notepad"] .dot {
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
}

html[data-theme="notepad"] .table-wrap {
  border: 1px solid #000;
  background: #fff;
  max-height: min(70vh, 640px);
}

html[data-theme="notepad"] table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
}

html[data-theme="notepad"] th,
html[data-theme="notepad"] td {
  border: 1px solid #000;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  padding: 0.35rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 400;
  vertical-align: top;
}

html[data-theme="notepad"] .conflicts-table thead {
  display: table-header-group;
}

html[data-theme="notepad"] .conflicts-table thead th {
  position: sticky;
  background: #fff !important;
  color: #000 !important;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}

html[data-theme="notepad"] .conflicts-table .group-row th {
  border-bottom: none;
}

html[data-theme="notepad"] .conflicts-table tbody tr:nth-child(even) td {
  background: #fff !important;
}

html[data-theme="notepad"] .conflicts-table tbody tr:hover td,
html[data-theme="notepad"] .conflicts-table tbody tr:hover td.col-who {
  background: #fff !important;
  text-decoration: underline;
}

html[data-theme="notepad"] .conflicts-table td.col-who {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff !important;
  border-right: 1px solid #000;
}

html[data-theme="notepad"] .conflicts-table tr.full td.col-who::before {
  content: "[!] ";
}

html[data-theme="notepad"] .conflicts-table tr.partial td.col-who::before {
  content: "[~] ";
}

html[data-theme="notepad"] .tag,
html[data-theme="notepad"] .day-chip {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  padding: 0 0.25rem;
  font-size: inherit;
  font-family: inherit;
  box-shadow: none;
  border-radius: 0;
}

html[data-theme="notepad"] .search input {
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  padding: 0.15rem 0;
  background: transparent;
  font-family: inherit;
}

html[data-theme="notepad"] .icon-btn {
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  box-shadow: none;
}

html[data-theme="notepad"] .accordion > summary,
html[data-theme="notepad"] .month-block,
html[data-theme="notepad"] .month-block summary,
html[data-theme="notepad"] .emp h3,
html[data-theme="notepad"] .empty,
html[data-theme="notepad"] .error {
  color: #000;
  background: transparent;
  border-color: #000;
  box-shadow: none;
  font-weight: 400;
  text-transform: none;
}

html[data-theme="notepad"] .month-block {
  border: none;
  border-top: 1px dashed #000;
  padding-left: 0;
}

html[data-theme="notepad"] .month-list {
  border: none;
}

html[data-theme="notepad"] .month-item {
  border-color: #000;
  box-shadow: none !important;
  padding-left: 0;
}

html[data-theme="notepad"] .style-menu {
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-family: var(--mono);
}

html[data-theme="notepad"] .error {
  border: none;
  border-left: none;
  padding: 0.25rem 0;
}

html[data-theme="notepad"] .error::before {
  content: "ERROR: ";
}
