/* Basisthema en globale layout voor de portal. */
:root {
  --bg: #05070d;
  --panel: rgba(10, 14, 24, 0.62);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #9aa7bd;
  --accent: #ff8a1f;
  --accent2: #54d6ff;
  --clock-hand-accent: #ff3b30;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.portal {
  --portal-rotate-x: 0deg;
  --portal-rotate-y: 0deg;
  --portal-shift-x: 0px;
  --portal-shift-y: 0px;
  --portal-light-x: 50%;
  --portal-light-y: 50%;
  --oled-shift-x: 0px;
  --oled-shift-y: 0px;
  width: min(1400px, 100%);
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 1;
  backdrop-filter: blur(24px) saturate(145%);
  filter: blur(0);
  transform: none;
  transform-style: flat;
  transition:
    opacity 480ms ease,
    transform 160ms ease-out,
    filter 480ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
  will-change: auto;
}

.portal::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(
      circle at var(--portal-light-x) var(--portal-light-y),
      rgba(255, 255, 255, 0.16),
      transparent 34%
    );
  opacity: 0.45;
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

.portal > * {
  transform: none;
}

body:not(.page-ready) .portal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px) scale(0.99);
}

body.page-ready .portal {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

body.tilt-enabled main {
  perspective: 1200px;
  perspective-origin: center;
}

body.tilt-enabled .portal {
  transform:
    translate3d(calc(var(--portal-shift-x) + var(--oled-shift-x, 0px)), calc(var(--portal-shift-y) + var(--oled-shift-y, 0px)), 0)
    rotateX(var(--portal-rotate-x))
    rotateY(var(--portal-rotate-y))
    scale(1);
  transform-style: preserve-3d;
  will-change: transform;
}

body.tilt-enabled .portal > * {
  transform: translateZ(24px);
}

body.menu-idle .portal {
  opacity: 0 !important;
  filter: blur(8px) !important;
  pointer-events: none;
  transform: translateY(18px) scale(0.985) !important;
}

body.menu-idle .portal::after {
  opacity: 0;
}

.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 74px);
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#portal-title {
  cursor: pointer;
  user-select: none;
  transition:
    color 220ms ease,
    text-shadow 220ms ease;
}

#portal-title.tilt-enabled {
  color: var(--text);
  text-shadow:
    -1px -1px 0 rgb(255, 138, 31),
    1px -1px 0 rgb(255, 138, 31),
    -1px 1px 0 rgb(255, 138, 31),
    1px 1px 0 rgb(255, 138, 31),
    0 0 10px rgba(255, 138, 31, 0.80),
    0 0 22px rgba(255, 138, 31, 0.45);
}

.header-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.clock-box {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 190px;
  min-height: 132px;
  padding-bottom: 2px;
  flex-direction: column;
}

.analog-clock {
  width: 132px;
  height: 132px;
  opacity: 1;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent2) 18%, transparent));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.clock-tick {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.clock-tick.major {
  stroke: rgba(255, 255, 255, 0.74);
  stroke-width: 2.6;
}

.clock-hand {
  stroke-linecap: round;
}

.clock-hour {
  stroke: var(--text);
  stroke-width: 3.9;
  opacity: 0.92;
}

.clock-minute {
  stroke: color-mix(in srgb, var(--text) 88%, var(--accent2));
  stroke-width: 2.3;
  opacity: 0.98;
}

.clock-second {
  stroke: var(--clock-hand-accent);
  stroke-width: 1.25;
  opacity: 0.98;
}

.clock-center {
  fill: var(--clock-hand-accent);
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--clock-hand-accent) 78%, transparent));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 14px;
}

.dashboard-blocks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.layout-editing .dashboard-blocks {
  padding-right: 36px;
}

.dashboard-block {
  position: relative;
  display: block;
}

body.layout-editing .dashboard-block {
  cursor: grab;
  touch-action: none;
  user-select: none;
  animation: dashboard-wiggle 180ms ease-in-out infinite alternate;
  transform-origin: center;
}

body.layout-editing .dashboard-block * {
  pointer-events: none;
}

body.layout-editing .dashboard-block .dashboard-block-remove,
body.layout-editing .dashboard-block .dashboard-block-controls,
body.layout-editing .dashboard-block .dashboard-block-move,
body.layout-editing .dashboard-block .service-editor-control,
body.layout-editing .dashboard-block .weather-location-editor,
body.layout-editing .dashboard-block .service-dialog,
body.layout-editing .dashboard-block .service-dialog *,
body.layout-editing .dashboard-block .weather-location-dialog,
body.layout-editing .dashboard-block .weather-location-dialog *,
body.layout-editing .dashboard-block .about-me-dialog,
body.layout-editing .dashboard-block .about-me-dialog * {
  pointer-events: auto;
}

body.layout-editing .dashboard-block:active {
  cursor: grabbing;
}

.dashboard-block-remove {
  position: absolute;
  top: 50%;
  right: -34px;
  z-index: 14;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text);
  font: inherit;
  line-height: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.13), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  transform: translateY(-50%);
}

.dashboard-block-controls {
  position: absolute;
  top: 50%;
  right: -34px;
  z-index: 14;
  display: none;
  flex-direction: column;
  gap: 42px;
  transform: translateY(-50%);
}

.dashboard-block-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text);
  font: inherit;
  line-height: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.13), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.dashboard-action-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.layout-editing .dashboard-block-remove,
body.layout-editing .dashboard-block-controls {
  display: inline-flex;
}

.dashboard-block-remove:hover,
.dashboard-block-remove:focus-visible,
.dashboard-block-move:hover,
.dashboard-block-move:focus-visible {
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.34);
  outline: 0;
}

@keyframes dashboard-wiggle {
  from {
    transform: rotate(-0.22deg) translateY(-0.4px);
  }

  to {
    transform: rotate(0.22deg) translateY(0.4px);
  }
}

.dashboard-block-library {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
}

body.layout-editing .dashboard-block-library {
  display: flex;
}

.dashboard-block-library > span {
  color: var(--text);
  font-weight: 700;
}

.dashboard-block-library-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-block-library-actions button {
  height: 28px;
  padding: 0 11px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.dashboard-block-library-actions button:hover,
.dashboard-block-library-actions button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
  outline: 0;
}

.dashboard-block-library-actions em {
  font-style: normal;
}

.dashboard-block > .grid,
.dashboard-block > .status-footer,
.dashboard-block > .search-section,
.dashboard-block > .weather-panel,
.dashboard-block > .news-wrap,
.dashboard-block > .about-me-panel,
.dashboard-block > .private-note-panel {
  margin-top: 0;
}

.about-me-panel {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.10), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.about-me-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.26), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.about-me-panel:hover,
.about-me-panel:focus-within {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.about-me-panel:hover::before,
.about-me-panel:focus-within::before {
  opacity: 1;
}

.about-me-photo-frame,
.about-me-content {
  position: relative;
  z-index: 1;
}

.about-me-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--accent2) 64%, var(--border));
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--bg) 62%, transparent);
}

.about-me-photo-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent2) 76%, transparent), color-mix(in srgb, var(--accent) 54%, transparent));
  mix-blend-mode: color;
}

.about-me-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: luminosity;
}

.about-me-content h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
}

.about-me-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.about-me-edit-button { display: none; min-height: 34px; padding: 6px 11px; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.07); border: 1px solid var(--border); border-radius: 9px; }
body.layout-editing .about-me-edit-button { display: inline-flex; }

.about-me-content p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-me-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.about-me-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.about-me-links a:hover,
.about-me-links a:focus-visible {
  color: var(--bg);
  border-color: var(--accent2);
  background: var(--accent2);
  transform: translateY(-1px);
}

.about-me-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dashboard-block.is-dragging {
  opacity: 0.48;
}

.dashboard-block.is-drag-over-before,
.dashboard-block.is-drag-over-after {
  position: relative;
}

.dashboard-block.is-drag-over-before::before,
.dashboard-block.is-drag-over-after::after {
  position: absolute;
  right: 10px;
  left: 10px;
  z-index: 20;
  height: 3px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 72%, transparent);
}

.dashboard-block.is-drag-over-before::before {
  top: -10px;
}

.dashboard-block.is-drag-over-after::after {
  bottom: -10px;
}

.card {
  position: relative;
  display: block;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.20), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.26), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.card:hover {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.service-card-shell {
  position: relative;
  display: flex;
  min-width: 0;
}

.service-card-shell > .card {
  width: 100%;
  height: 100%;
}

body.layout-editing [data-dashboard-block="services"] .service-card-shell,
body.layout-editing [data-dashboard-block="services"] .service-card-shell > .card {
  pointer-events: auto;
  touch-action: none;
}

body.layout-editing [data-dashboard-block="services"] .service-card-shell > .card {
  cursor: grab;
}

.service-card-shell.is-service-dragging {
  z-index: 10;
  opacity: 0.46;
  transform: scale(0.985);
}

body.service-is-sorting .dashboard-block {
  animation-play-state: paused;
}

.service-card-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--text);
  line-height: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

body.layout-editing .service-card-remove {
  display: inline-flex;
}

.service-card-remove:hover,
.service-card-remove:focus-visible {
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.22), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.42);
  outline: 0;
}

.service-add-card {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  font: inherit;
  text-align: center;
  cursor: pointer;
  border-style: dashed;
}

body.layout-editing .service-add-card {
  display: flex;
}

.service-add-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
}

.service-add-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body.service-dialog-open .dashboard-block {
  animation-play-state: paused;
}

.service-dialog {
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--text);
  font: inherit;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(22, 28, 42, 0.98), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 28px 80px rgba(0, 0, 0, 0.58);
}

.service-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(5px);
}

.service-dialog-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.layout-password-dialog,
.private-note-pin-dialog {
  width: min(420px, calc(100vw - 32px));
}

.service-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.service-dialog-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.service-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.service-dialog-close:hover,
.service-dialog-close:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.34);
  outline: 0;
}

.service-field {
  display: grid;
  gap: 7px;
}

.service-field > span,
.service-icon-fieldset legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.service-field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  outline: 0;
}

.service-field input:focus {
  border-color: rgba(84, 214, 255, 0.70);
  box-shadow: 0 0 0 3px rgba(84, 214, 255, 0.13);
}

.service-field textarea { width: 100%; min-height: 130px; padding: 10px 12px; resize: vertical; color: var(--text); font: inherit; font-size: 15px; line-height: 1.5; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; outline: 0; }
.service-field textarea:focus { border-color: rgba(84,214,255,.70); box-shadow: 0 0 0 3px rgba(84,214,255,.13); }
.about-me-dialog { width: min(680px, calc(100vw - 32px)); }
.about-me-link-fields { display: grid; gap: 10px; }
.about-me-link-row { display: grid; grid-template-columns: minmax(110px,.45fr) minmax(0,1fr) auto; gap: 8px; align-items: end; }
.about-me-link-row .service-field { min-width: 0; }
.about-me-link-remove { min-width: auto; padding: 0 10px; }

.service-icon-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-bottom: 10px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.service-icon-search:focus-within {
  border-color: rgba(84, 214, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(84, 214, 255, 0.11);
}

.service-icon-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.service-icon-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--text);
  font: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

.service-icon-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-icon-fieldset legend {
  margin-bottom: 9px;
  padding: 0;
}

.service-icon-picker {
  display: grid;
  gap: 14px;
  max-height: 272px;
  padding: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.service-icon-group {
  display: grid;
  gap: 7px;
}

.service-icon-group[hidden] {
  display: none;
}

.service-icon-group-title {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-icon-group-options {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.service-icon-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 9px;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.045);
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.service-icon-choice:hover,
.service-icon-choice:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30);
  outline: 0;
}

.service-icon-choice.is-selected {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.service-icon-choice img,
.service-upload-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-upload-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.service-custom-icon-choice.has-custom-icon .service-upload-icon {
  display: none;
}

.service-custom-icon-choice img[hidden] {
  display: none !important;
}

.service-icon-choice[hidden] {
  display: none !important;
}

.service-custom-icon-input {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.service-form-error {
  min-height: 18px;
  margin: -4px 0 0;
  color: #ffb3b3;
  font-size: 12px;
}

.service-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.service-dialog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  height: 38px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.service-dialog-button.is-primary {
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--accent) 64%, rgba(255, 255, 255, 0.18));
}

.service-dialog-button:hover,
.service-dialog-button:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.34);
  outline: 0;
}

.service-dialog-button:disabled,
.service-dialog-close:disabled {
  cursor: wait;
  opacity: 0.58;
}

.label {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

.url {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: color-mix(in srgb, var(--accent2) 72%, var(--text));
  line-height: 1;
  text-align: center;
  opacity: 0.28;
  pointer-events: none;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.service-icon-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: visible;
  filter: brightness(0) invert(1);
}

.card:hover .icon {
  color: color-mix(in srgb, var(--accent) 72%, var(--text));
  opacity: 0.44;
  transform: translateY(-2px) scale(1.04);
}

body.theme-oled .icon {
  color: rgba(244, 247, 251, 0.88);
  opacity: 0.20;
}

body.theme-oled .card:hover .icon {
  color: #ffffff;
  opacity: 0.36;
}

.status-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.10), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  opacity: 1;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.status-footer::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.22), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.status-footer:hover,
.status-footer:focus-within {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.status-footer:hover::before,
.status-footer:focus-within::before {
  opacity: 1;
}

.status-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.25;
  text-align: center;
}

.status-item b {
  color: var(--text);
  font-weight: 600;
}

.status-item span {
  display: block;
  overflow-wrap: anywhere;
}

.news-wrap {
  display: block;
  margin-top: 18px;
}

.weather-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.10), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.weather-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.22), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.weather-panel:hover,
.weather-panel:focus-within {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.weather-panel:hover::before,
.weather-panel:focus-within::before {
  opacity: 1;
}

.weather-panel > * {
  position: relative;
  z-index: 1;
}

.weather-empty {
  color: var(--muted);
  font-size: 12px;
}

.news-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  margin-top: 0;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.10), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.news-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.26), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.news-panel:hover {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.news-panel:hover::before {
  opacity: 1;
}

.news-panel > * {
  position: relative;
  z-index: 1;
}

.news-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 16px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.news-title-refresh {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.news-title-refresh:hover,
.news-title-refresh:focus-visible {
  color: inherit;
  text-decoration: none;
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.news-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  letter-spacing: 0;
  text-transform: none;
}

.news-filter-button {
  height: 24px;
  padding: 0 9px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.news-filter-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.news-filter-button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}


.news-panel:hover .news-filter-button[data-news-filter="all"].is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.055));
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(255, 255, 255, 0.12));
  box-shadow: none;
}

.news-panel:hover .news-filter-button[data-news-filter="nos"].is-active{
  color:#ffb3b3;
  background:rgba(220,53,69,.18);
  border-color:rgba(220,53,69,.42);
  box-shadow: none;
}
.news-panel:hover .news-filter-button[data-news-filter="nu"].is-active{
  color:#b9d8ff;
  background:rgba(59,130,246,.18);
  border-color:rgba(59,130,246,.42);
  box-shadow: none;
}
.news-panel:hover .news-filter-button[data-news-filter="tweakers"].is-active{
  color:#8ff7a8;
  background:rgba(34,197,94,.18);
  border-color:rgba(34,197,94,.42);
  box-shadow: none;
}
.news-panel:hover .news-filter-button[data-news-filter="l1"].is-active{
  color:#dbc3ff;
  background:rgba(139,92,246,.18);
  border-color:rgba(139,92,246,.42);
  box-shadow: none;
}

.news-list {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  margin: 0;
  padding: 8px 0 0;
  overflow: hidden;
  list-style: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.news-list.is-fading-out,
.news-list.is-fading-in {
  opacity: 0;
  transform: translateY(6px);
}

.news-list li {
  display: block;
  margin: 0;
  padding: 0;
}

.news-list a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 25px;
  min-height: 25px;
  padding: 3px 9px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.news-list a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.news-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  margin-right: 10px;
  padding: 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  flex: 0 0 76px;
}


.news-panel:hover .news-source[data-source="nos"]{
 color:#ffb3b3;background:rgba(220,53,69,.18);border-color:rgba(220,53,69,.42);
}
.news-panel:hover .news-source[data-source="nu"]{
 color:#b9d8ff;background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.42);
}
.news-panel:hover .news-source[data-source="tweakers"]{
 color:#8ff7a8;background:rgba(34,197,94,.18);border-color:rgba(34,197,94,.42);
}
.news-panel:hover .news-source[data-source="l1"]{
 color:#dbc3ff;background:rgba(139,92,246,.18);border-color:rgba(139,92,246,.42);
}

.news-time {
  margin-right: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
  flex: 0 0 38px;
}

.news-title {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.news-empty {
  padding: 5px 7px;
  color: var(--muted);
  font-size: 12px;
}

.search-section {
  position: relative;
  z-index: 4;
  margin-top: 18px;
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.search-shell::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.26), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.search-shell:hover,
.search-shell:focus-within {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.search-shell:hover::before,
.search-shell:focus-within::before {
  opacity: 1;
}

.google-search-input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.google-search-input::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.google-search-input::-webkit-search-cancel-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

.google-search-input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 46%),
    linear-gradient(145deg, rgba(34, 38, 46, 0.96), rgba(22, 26, 34, 0.94));
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(145%);
}

.search-suggestions.is-visible {
  display: block;
}

.search-suggestions li {
  margin: 0;
}

.search-suggestion-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.search-suggestion-button::before {
  color: var(--muted);
  content: "⌕";
  opacity: 0.72;
}

.search-suggestion-button:hover,
.search-suggestion-button.is-active {
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main {
    width: 100%;
    max-width: 100vw;
    padding: 14px;
    overflow-x: hidden;
  }

  .portal {
    width: 100%;
    max-width: 100%;
    padding: 18px 14px;
    overflow: hidden;
    border-radius: 22px;
  }

  .portal > * {
    max-width: 100%;
  }

  .header {
    display: block;
  }

  .status-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 12px;
    border-radius: 20px;
  }

  .status-item {
    width: 100%;
  }

  .grid,
  .search-section,
  .weather-panel,
  .news-wrap,
  .news-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .weather-panel {
    padding: 14px 12px;
    border-radius: 20px;
  }

  .news-panel {
    min-height: 0;
    padding: 14px 12px;
    border-radius: 20px;
  }

  .news-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .news-filter {
    justify-content: flex-start;
    width: 100%;
  }

  .news-list {
    width: 100%;
    max-width: 100%;
    gap: 6px;
  }

  .news-list a {
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 34px;
    padding: 5px 7px;
  }

  .news-source {
    max-width: 54px;
    margin-right: 7px;
    padding: 0 5px;
    font-size: 9px;
    flex: 0 0 54px;
  }

  .news-time {
    max-width: 32px;
    margin-right: 7px;
    font-size: 11px;
    flex: 0 0 32px;
  }

  .news-title {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Het Over mij-blok volgt dezelfde afwerking als de overige panelen per thema. */
body.theme-oled .about-me-panel {
  background: #000;
  border-color: #242424;
  box-shadow: none;
}

body.theme-oled .about-me-panel::before {
  opacity: 0.28;
}

body.theme-oled .about-me-links a {
  color: #f4f7fb;
  background: #0a0a0a;
  border-color: #303030;
}

body.theme-lcd .about-me-panel {
  background: rgba(185, 197, 130, 0.62);
  border: 2px solid #50583d;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(224, 229, 174, 0.42), inset -1px -1px 0 rgba(44, 53, 30, 0.25);
}

body.theme-lcd .about-me-panel::before {
  opacity: 0.2;
  mix-blend-mode: multiply;
}

body.theme-lcd .about-me-photo-frame {
  border-color: #50583d;
  border-radius: 3px;
  box-shadow: inset 1px 1px 0 rgba(224, 229, 174, 0.42), inset -1px -1px 0 rgba(44, 53, 30, 0.25);
}

body.theme-lcd .about-me-links a {
  color: var(--text);
  border: 2px solid #50583d;
  border-radius: 3px;
  background: rgba(185, 197, 130, 0.62);
}

body.theme-solarized .about-me-panel,
body.theme-material .about-me-panel,
body.theme-nord .about-me-panel {
  color: var(--text);
  background: var(--panel) !important;
  border-color: var(--border);
  box-shadow: 0 4px 14px var(--shadow);
}

body.theme-solarized .about-me-panel::before,
body.theme-material .about-me-panel::before,
body.theme-nord .about-me-panel::before {
  opacity: 0;
}

body.theme-solarized .about-me-links a,
body.theme-material .about-me-links a,
body.theme-nord .about-me-links a {
  color: var(--text);
  background: var(--control);
  border-color: var(--border);
}

body.theme-solarized .about-me-panel,
body.theme-solarized .about-me-photo-frame,
body.theme-solarized .about-me-links a {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.theme-material .about-me-panel {
  border-radius: 20px;
}

body.theme-material .about-me-links a {
  border-radius: 999px;
}

body.theme-nord .about-me-panel {
  border-radius: 14px;
}

body.theme-nord .about-me-links a {
  border-radius: 8px;
}

/* Retro LCD: een monochroom, traag-ogend display in een vergeelde kunststof behuizing. */
body.theme-lcd {
  --bg: #25271c;
  --panel: #aeb77a;
  --border: #424833;
  --text: #202719;
  --muted: #4e5840;
  --accent: #28351d;
  --accent2: #596b3a;
  --clock-hand-accent: #202719;
  color-scheme: light;
  background:
    radial-gradient(circle at 48% 8%, rgba(205, 199, 145, 0.16), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 4px),
    #25271c;
  font-family: "Courier New", "Lucida Console", Monaco, monospace;
  text-rendering: geometricPrecision;
}

body.theme-lcd::after {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(22, 28, 15, 0.055) 0,
      rgba(22, 28, 15, 0.055) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.48;
  mix-blend-mode: multiply;
}

body.theme-lcd canvas {
  display: none;
}

body.theme-lcd main {
  padding: 28px;
}

body.theme-lcd .portal {
  padding: 38px;
  overflow: hidden;
  background:
    linear-gradient(rgba(194, 203, 139, 0.88), rgba(159, 170, 111, 0.94)),
    #aeb77a;
  border: 8px solid #77765d;
  border-top-color: #aaa58a;
  border-left-color: #97947a;
  border-right-color: #535442;
  border-bottom-color: #454739;
  border-radius: 14px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.58),
    inset 0 0 0 3px #33392a,
    inset 0 0 36px rgba(45, 54, 31, 0.26);
  backdrop-filter: none;
}

body.theme-lcd .portal::after {
  background:
    repeating-linear-gradient(0deg, rgba(30, 38, 20, 0.035) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 45% 30%, rgba(231, 237, 176, 0.22), transparent 48%);
  opacity: 1;
  mix-blend-mode: multiply;
}

body.theme-lcd .portal > * {
  position: relative;
  z-index: 1;
}

body.theme-lcd h1 {
  font-family: "Courier New", "Lucida Console", monospace;
  font-weight: 900;
  letter-spacing: -0.075em;
  text-shadow: 2px 2px 0 rgba(65, 77, 45, 0.20);
}

body.theme-lcd .subtitle,
body.theme-lcd .header-date,
body.theme-lcd .dashboard-version,
body.theme-lcd .service-icon-group-title {
  letter-spacing: 0.12em;
}

body.theme-lcd #portal-title.tilt-enabled {
  color: var(--text);
  text-shadow: 2px 2px 0 rgba(65, 77, 45, 0.22);
}

body.theme-lcd .title-dot {
  color: #202719;
  text-shadow: none;
}

body.theme-lcd .analog-clock {
  filter: drop-shadow(3px 4px 0 rgba(43, 52, 31, 0.20));
}

body.theme-lcd .clock-tick,
body.theme-lcd .clock-tick.major,
body.theme-lcd .clock-hour,
body.theme-lcd .clock-minute,
body.theme-lcd .clock-second {
  stroke: #26301e;
}

body.theme-lcd .clock-center {
  fill: #26301e;
  filter: none;
}

body.theme-lcd .card,
body.theme-lcd .news-panel,
body.theme-lcd .status-footer,
body.theme-lcd .search-shell,
body.theme-lcd .private-note-panel,
body.theme-lcd .weather-panel,
body.theme-lcd .weather-panel-google,
body.theme-lcd .dashboard-block-library {
  color: var(--text);
  background:
    repeating-linear-gradient(0deg, rgba(36, 45, 24, 0.025) 0 1px, transparent 1px 3px),
    rgba(183, 194, 128, 0.62) !important;
  border: 2px solid #515a3b;
  border-radius: 5px;
  box-shadow:
    inset 2px 2px 0 rgba(226, 231, 176, 0.34),
    inset -2px -2px 0 rgba(55, 66, 38, 0.18);
  backdrop-filter: none;
}

body.theme-lcd .card::before,
body.theme-lcd .news-panel::before,
body.theme-lcd .status-footer::before,
body.theme-lcd .search-shell::before,
body.theme-lcd .private-note-panel::before,
body.theme-lcd .weather-panel::before {
  display: none;
}

body.theme-lcd .card:hover,
body.theme-lcd .news-panel:hover,
body.theme-lcd .status-footer:hover,
body.theme-lcd .status-footer:focus-within,
body.theme-lcd .weather-panel:hover,
body.theme-lcd .weather-panel:focus-within,
body.theme-lcd .search-shell:hover,
body.theme-lcd .search-shell:focus-within,
body.theme-lcd .private-note-panel:hover,
body.theme-lcd .private-note-panel:focus-within {
  background: rgba(196, 207, 140, 0.78) !important;
  border-color: #252e1d;
  box-shadow: inset 0 0 0 2px rgba(44, 54, 30, 0.22);
  transform: translateY(-1px);
}

body.theme-lcd .label,
body.theme-lcd .news-title,
body.theme-lcd .status-value,
body.theme-lcd .weather-current-temp,
body.theme-lcd .weather-google-title h2,
body.theme-lcd .weather-google-day strong {
  color: var(--text);
  font-weight: 900;
}

body.theme-lcd .url,
body.theme-lcd .news-meta,
body.theme-lcd .status-label,
body.theme-lcd .weather-current-details,
body.theme-lcd .weather-google-title,
body.theme-lcd .weather-google-day span,
body.theme-lcd .weather-chart-times,
body.theme-lcd .weather-chart-values span {
  color: var(--muted);
}

body.theme-lcd .service-icon-img,
body.theme-lcd .service-icon-choice img {
  filter: brightness(0) saturate(100%);
}

body.theme-lcd .icon {
  color: #27311d;
  opacity: 0.42;
}

body.theme-lcd .news-filter-button,
body.theme-lcd .news-source,
body.theme-lcd .weather-tab,
body.theme-lcd .weather-google-day,
body.theme-lcd .private-note-tab,
body.theme-lcd .private-note-tab-add,
body.theme-lcd .private-note-format-button,
body.theme-lcd .private-note-button,
body.theme-lcd .service-dialog-button,
body.theme-lcd .weather-city-option {
  color: var(--text);
  background: rgba(164, 177, 111, 0.74);
  border-color: #56603f;
  border-radius: 3px;
  box-shadow: none;
}

body.theme-lcd .news-filter-button.is-active,
body.theme-lcd .news-filter-button:hover,
body.theme-lcd .news-source:hover,
body.theme-lcd .weather-google-day.is-active,
body.theme-lcd .private-note-tab.is-active,
body.theme-lcd .private-note-format-button.is-active,
body.theme-lcd .service-dialog-button.is-primary,
body.theme-lcd .weather-city-option.is-selected {
  color: #c7d28b;
  background: #2d3822 !important;
  border-color: #202719;
}

body.theme-lcd .search-input,
body.theme-lcd .private-note-pin,
body.theme-lcd .private-note-text-wrap,
body.theme-lcd .private-note-tab-rename-input,
body.theme-lcd .service-field input,
body.theme-lcd .service-icon-search,
body.theme-lcd .service-icon-choice,
body.theme-lcd .search-suggestions {
  color: var(--text);
  caret-color: #202719;
  background: rgba(199, 210, 143, 0.58);
  border-color: #4e5839;
  border-radius: 3px;
  box-shadow: inset 1px 1px 3px rgba(45, 54, 31, 0.20);
}

body.theme-lcd .search-input::placeholder,
body.theme-lcd .service-field input::placeholder,
body.theme-lcd .private-note-text:empty::before {
  color: #596249;
}

body.theme-lcd .search-suggestion-button,
body.theme-lcd .search-suggestion-button:hover,
body.theme-lcd .search-suggestion-button.is-active {
  color: var(--text);
  background: rgba(183, 195, 128, 0.96);
}

body.theme-lcd .service-dialog,
body.theme-lcd .weather-location-dialog,
body.theme-lcd .help-dialog {
  color: var(--text);
  background: #aeb978;
  border: 5px solid #555744;
  border-radius: 7px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.62), inset 0 0 0 2px #303725;
}

body.theme-lcd .service-dialog::backdrop,
body.theme-lcd .weather-location-dialog::backdrop,
body.theme-lcd .help-dialog::backdrop {
  background: rgba(24, 27, 18, 0.78);
  backdrop-filter: sepia(0.35) blur(2px);
}

body.theme-lcd .service-dialog-close,
body.theme-lcd .service-card-remove,
body.theme-lcd .dashboard-block-remove,
body.theme-lcd .dashboard-block-move,
body.theme-lcd .dashboard-block-library-actions button,
body.theme-lcd .style-press-button {
  color: var(--text);
  background: #9ca76c;
  border: 2px solid #50583d;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 rgba(224, 229, 174, 0.42), inset -1px -1px 0 rgba(44, 53, 30, 0.25);
}

body.theme-lcd .style-press-button:hover,
body.theme-lcd .service-dialog-close:hover,
body.theme-lcd .service-card-remove:hover,
body.theme-lcd .dashboard-block-remove:hover,
body.theme-lcd .dashboard-block-move:hover {
  color: #c7d28b;
  background: #303b24;
  border-color: #202719;
}

body.theme-lcd .help-dialog details {
  color: var(--text);
  background: rgba(185, 197, 130, 0.62);
  border-color: #56603f;
  border-radius: 3px;
}

body.theme-lcd .guestbook-panel{color:var(--text);background:repeating-linear-gradient(0deg,rgba(36,45,24,.025) 0 1px,transparent 1px 3px),rgba(183,194,128,.62)!important;border:2px solid #515a3b;border-radius:5px}.dashboard-block>.guestbook-panel{margin-top:0}.guestbook-panel{display:grid;gap:18px;padding:28px;color:var(--text);border:1px solid var(--border);border-radius:22px;background:var(--panel)}.guestbook-panel h2{margin:0}.guestbook-panel>div>p{color:var(--muted)}.guestbook-form,.guestbook-entries{display:grid;gap:12px}.guestbook-form label{display:grid;gap:6px;color:var(--muted);font-size:13px;font-weight:700}.guestbook-form input,.guestbook-form textarea{width:100%;padding:10px 12px;color:var(--text);font:inherit;background:rgba(0,0,0,.18);border:1px solid var(--border);border-radius:10px}.guestbook-honeypot{position:absolute;left:-9999px}.guestbook-actions,.guestbook-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.guestbook-actions button,.guestbook-edit,.guestbook-remove{padding:7px 12px;color:var(--text);font:inherit;font-weight:700;cursor:pointer;background:transparent;border:1px solid var(--border);border-radius:10px}.guestbook-entry{padding:13px 15px;border:1px solid var(--border);border-radius:12px;background:var(--panel-secondary)}.guestbook-entry p{white-space:pre-wrap}.guestbook-entry-controls{display:none;gap:6px}body.layout-editing .guestbook-entry-controls{display:inline-flex}.guestbook-dialog{width:min(560px,calc(100vw - 32px))}.about-me-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.about-me-edit-button{display:none}body.layout-editing .about-me-edit-button{display:inline-flex}.about-me-link-icon{flex:0 0 auto;width:18px;height:18px;fill:currentColor}.about-me-link-icon [fill="none"]{fill:none!important}.about-me-link-icon [stroke]{stroke:currentColor!important}.about-me-icon-dialog{width:min(780px,calc(100vw - 32px))}.about-me-icon-picker{max-height:min(62vh,620px)}

/* De hoverbeweging van Over mij volgt de afgesproken themaregels. */
body.theme-oled .about-me-panel:hover,body.theme-oled .about-me-panel:focus-within{transform:none!important}
body.theme-solarized .about-me-panel:hover,body.theme-solarized .about-me-panel:focus-within,body.theme-material .about-me-panel:hover,body.theme-material .about-me-panel:focus-within,body.theme-nord .about-me-panel:hover,body.theme-nord .about-me-panel:focus-within{transform:translateY(-2px)}
body.theme-nord .about-me-panel:hover,body.theme-nord .about-me-panel:focus-within{border-color:var(--accent)!important}
body.theme-solarized .about-me-panel:hover,body.theme-solarized .about-me-panel:focus-within,body.theme-material .about-me-panel:hover,body.theme-material .about-me-panel:focus-within{border-color:var(--accent)!important}
body.theme-lcd .about-me-panel:hover,body.theme-lcd .about-me-panel:focus-within{background:rgba(196,207,140,.78)!important;border-color:#252e1d!important;box-shadow:inset 0 0 0 2px rgba(44,54,30,.22)!important;transform:translateY(-2px)!important}
body.theme-nord .about-me-links a{color:var(--text);background:var(--control);border-color:var(--border)}body.theme-nord .about-me-links a:hover,body.theme-nord .about-me-links a:focus-visible{color:var(--text);background:var(--control-hover);border-color:var(--accent);box-shadow:none}

/* Behoud lijniconen en maak complexe SVG's leesbaar op compact formaat. */
.about-me-link-icon{width:20px!important;height:20px!important}
.about-me-link-icon[fill="none"]{fill:none!important;stroke:currentColor!important}

body.theme-lcd .weather-panel-google {
  --weather-bg: transparent;
  --weather-item-active: #303b24;
  --weather-line-temperature: #25301c;
  --weather-line-rain: #465731;
  --weather-line-wind: #667544;
  --weather-fill-temperature: rgba(37, 48, 28, 0.16);
  --weather-fill-rain: rgba(70, 87, 49, 0.14);
  --weather-fill-wind: rgba(102, 117, 68, 0.14);
}

body.theme-lcd .weather-current-icon,
body.theme-lcd .weather-google-day-icon {
  color: #28351d;
}

body.theme-lcd .weather-current-icon svg circle,
body.theme-lcd .weather-google-day-icon svg circle {
  fill: rgba(40, 53, 29, 0.14);
  stroke: #28351d;
}

@media (max-width: 720px) {
  body.theme-lcd main {
    padding: 10px;
  }

  body.theme-lcd .portal {
    padding: 19px 14px;
    border-width: 5px;
    border-radius: 9px;
  }
}


.style-press-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  filter: none;
  text-shadow: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.style-press-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  filter: none;
  text-shadow: none;
  transform: translateY(-1px);
}

.style-press-button.is-active {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  filter: none;
  text-shadow: none;
  transform: none;
}

body.theme-oled .style-press-button,
body.theme-oled .style-press-button.is-active {
  color: var(--text);
  background: #000000;
  background-image: none;
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: none;
  filter: none;
  text-shadow: none;
  transform: none;
}

body.theme-oled .style-press-button:hover,
body.theme-oled .style-press-button.is-active:hover {
  color: var(--text);
  background: #000000;
  background-image: none;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  filter: none;
  text-shadow: none;
  transform: translateY(-1px);
}

body.theme-oled {
  --bg: #000000;
  --panel: #000000;
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #9aa7bd;
  --accent: #e8e8e8;
  --accent2: #ffffff;
  background: #000000;
}

body.theme-oled canvas {
  background: #000000;
}

body.theme-oled .portal,
body.theme-oled .card,
body.theme-oled .news-panel,
body.theme-oled .status-footer,
body.theme-oled .about-me-panel,
body.theme-oled .search-shell,
body.theme-oled .news-filter-button,
body.theme-oled .news-list a,
body.theme-oled .news-source,
body.theme-oled .search-suggestions {
  background: #000000;
  backdrop-filter: none;
}

body.theme-oled .portal::after,
body.theme-oled .card::before,
body.theme-oled .news-panel::before,
body.theme-oled .status-footer::before,
body.theme-oled .about-me-panel::before,
body.theme-oled .search-shell::before {
  background: transparent;
  opacity: 0;
}

body.theme-oled .analog-clock {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.16));
}

body.theme-oled .card:hover,
body.theme-oled .news-panel:hover,
body.theme-oled .status-footer:hover,
body.theme-oled .status-footer:focus-within,
body.theme-oled .about-me-panel:hover,
body.theme-oled .about-me-panel:focus-within,
body.theme-oled .search-shell:hover,
body.theme-oled .search-shell:focus-within,
body.theme-oled .news-filter-button:hover,
body.theme-oled .news-panel:hover .news-filter-button.is-active,
body.theme-oled .news-list a:hover,
body.theme-oled .news-panel:hover .news-source[data-source="nos"],
body.theme-oled .news-panel:hover .news-source[data-source="nu"],
body.theme-oled .news-panel:hover .news-source[data-source="tweakers"],
body.theme-oled .news-panel:hover .news-source[data-source="l1"] {
  border-color: rgba(255, 255, 255, 0.72);
}

body.theme-oled .news-filter-button,
body.theme-oled .news-filter-button:hover,
body.theme-oled .news-filter-button.is-active,
body.theme-oled .news-panel:hover .news-filter-button.is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="all"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="nos"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="nu"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="tweakers"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="l1"].is-active {
  color: var(--text);
  background: #000000;
  box-shadow: none;
}

body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="all"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="nos"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="nu"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="tweakers"].is-active,
body.theme-oled .news-panel:hover .news-filter-button[data-news-filter="l1"].is-active {
  box-shadow: none;
}

body.theme-oled .news-source,
body.theme-oled .news-panel:hover .news-source[data-source="nos"],
body.theme-oled .news-panel:hover .news-source[data-source="nu"],
body.theme-oled .news-panel:hover .news-source[data-source="tweakers"],
body.theme-oled .news-panel:hover .news-source[data-source="l1"] {
  color: var(--text);
  background: #000000;
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: none;
}

body.theme-oled .search-suggestion-button:hover,
body.theme-oled .search-suggestion-button.is-active {
  background: #000000;
}


.private-note-text,
.private-note-line-numbers {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  tab-size: 2;
}

.private-note-text {
  font-size: 16px !important;
  min-height: 150px;
  height: auto !important;
  overflow: visible !important;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
}

.private-note-text:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
  pointer-events: none;
  opacity: 0.78;
}

.private-note-line-numbers {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  overflow: hidden;
}

/* Positionering van de themaschakelaar onder de portal. */
.style-switcher{
  position: relative;
  display:flex;
  align-items: center;
  justify-content:flex-start;
  gap:8px;
  margin:24px auto 0;
  width:100%;
}

.dashboard-version {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  opacity: 0.58;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, -50%);
}

#help-button {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

#help-button:hover,
#help-button:focus-visible {
  transform: translateY(calc(-50% - 1px));
}

/* Paarse accentkleur voor klokdetails binnen het OLED-thema. */
body.theme-oled {
  --oled-purple: #a855f7;
  --clock-hand-accent: var(--oled-purple);
}

body.theme-oled .clock-second {
  stroke: var(--clock-hand-accent);
}

body.theme-oled .clock-center {
  fill: var(--clock-hand-accent);
  filter: drop-shadow(0 0 9px rgba(168, 85, 247, 0.65));
}

.title-dot {
  transition: color 180ms ease, text-shadow 180ms ease;
}

body.theme-oled .title-dot {
  color: var(--oled-purple);
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.55);
}

/* Themaschakelaar gebruikt inline SVG iconen. */
.theme-switch-icon {
  width: 21px;
  height: 21px;
  display: block;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-theme {
  fill: none;
  stroke: currentColor;
}

.theme-icon-theme circle {
  fill: currentColor;
  stroke: none;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.help-dialog {
  width: min(700px, calc(100vw - 32px));
}

.help-dialog-content {
  display: grid;
  gap: 9px;
}

.help-dialog details {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.help-dialog summary {
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.help-dialog details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.help-dialog ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 11px 13px 12px 31px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.help-dialog li::marker {
  color: var(--accent);
}

.help-dialog strong {
  color: var(--text);
}

.help-dialog-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.layout-edit-icon {
  width: 21px;
  height: 21px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layout-lock-open {
  display: none;
}

.layout-edit-button.is-active .layout-lock-closed {
  display: none;
}

.layout-edit-button.is-active .layout-lock-open {
  display: block;
}

.layout-password-change-button {
  display: none;
}

body.layout-editing .layout-password-change-button {
  display: inline-flex;
}

.layout-edit-button.is-active {
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.15), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 0 2px rgba(255, 255, 255, 0.08);
}

body.theme-glass .layout-edit-button.is-active .layout-edit-icon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.20));
}

/* Acties in de nieuwskop blijven responsive naast de filterknoppen. */
.news-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .news-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Beveiligd tekstvak met tabbladen, opmaakknoppen en regelnummers. */
.private-note-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 18px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.10), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.private-note-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 138, 31, 0.22), transparent 34%),
    linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.private-note-panel:hover,
.private-note-panel:focus-within {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.private-note-panel:hover::before,
.private-note-panel:focus-within::before {
  opacity: 1;
}

.private-note-panel > * {
  position: relative;
  z-index: 1;
}

.private-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 16px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.private-note-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.private-note-status[data-state="saved"] {
  color: #8ff7a8;
}

.private-note-status[data-state="error"] {
  color: #ffb3b3;
}


.private-note-lock {
  display: flex;
  align-items: center;
  gap: 6px;
}

.private-note-pin,
.private-note-text {
  field-sizing: content;
  overflow-y: hidden;
  width: 100%;
  min-width: 0;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.private-note-pin {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

.private-note-text {
  min-height: 150px;
  padding: 12px 14px;
  resize: none;
  border-radius: 14px;
  line-height: 1.45;
}

.private-note-pin:focus,
.private-note-text:focus {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(84, 214, 255, 0.12);
}

.private-note-pin::placeholder,
.private-note-text::placeholder {
  color: var(--muted);
  opacity: 0.78;
}

.private-note-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto;
}

.private-note-lock[hidden],
.private-note-editor[hidden] {
  display: none !important;
}

.private-note-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.private-note-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.private-note-button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

body.theme-oled .private-note-panel,
body.theme-oled .private-note-pin,
body.theme-oled .private-note-text,
body.theme-oled .private-note-button,
body.theme-oled .private-note-button:hover {
  color: var(--text);
  background: #000000;
  box-shadow: none;
}

body.theme-oled .private-note-panel::before {
  background: transparent;
  opacity: 0;
}

body.theme-oled .private-note-panel,
body.theme-oled .private-note-pin,
body.theme-oled .private-note-text,
body.theme-oled .private-note-button {
  border-color: rgba(255, 255, 255, 0.20);
}


.private-note-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.private-note-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
}

.private-note-tabs::-webkit-scrollbar {
  display: none;
}

.private-note-tabs.is-panning {
  cursor: grabbing;
  user-select: none;
}

.private-note-tab,
.private-note-tab-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.private-note-tab {
  gap: 8px;
  max-width: 190px;
  padding: 0 8px 0 11px;
}

.private-note-tab-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-note-tab-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  flex: 0 0 auto;
}

.private-note-tab:hover,
.private-note-tab-add:hover,
.private-note-tab.is-active {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.private-note-tab.is-active {
  color: var(--text);
  border: 1px solid rgba(255, 138, 31, 0.66);
  border-top-color: rgba(255, 184, 102, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 138, 31, 0.08);
}

.private-note-tab.is-renaming {
  cursor: text;
  transform: none;
}

.private-note-tab-rename-input {
  width: min(150px, 100%);
  min-width: 72px;
  height: 24px;
  padding: 0 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  outline: 0;
}

.private-note-tab-rename-input:focus {
  border-color: rgba(255, 138, 31, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 138, 31, 0.14);
}


.private-note-tab-close:hover,
.private-note-tab-close:focus-visible {
  color: #ffb3b3;
  background: rgba(220, 53, 69, 0.18);
  outline: 0;
}

.private-note-tab-add {
  width: 32px;
  padding: 0;
  flex: 0 0 auto;
}

body.theme-oled .private-note-tab,
body.theme-oled .private-note-tab-add,
body.theme-oled .private-note-tab:hover,
body.theme-oled .private-note-tab-add:hover,
body.theme-oled .private-note-tab.is-active {
  color: var(--text);
  background: #000000;
  box-shadow: none;
}

body.theme-oled .private-note-tab,
body.theme-oled .private-note-tab-add {
  border-color: rgba(255, 255, 255, 0.20);
}

body.theme-oled .private-note-tab:hover,
body.theme-oled .private-note-tab-add:hover,
body.theme-oled .private-note-tab.is-active {
  border-color: rgba(255, 255, 255, 0.72);
}

body.theme-oled .private-note-tab.is-active {
  border-top-color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body.theme-oled .private-note-tab-close {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}


body.theme-oled .private-note-tab-rename-input {
  color: var(--text);
  background: #000000;
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: none;
}

body.theme-oled .private-note-tab-rename-input:focus {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.private-note-formatbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.private-note-format-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.private-note-format-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.private-note-format-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.private-note-format-button:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.private-note-pin-change {
  width: 34px;
  padding: 0;
}

.private-note-format-button[data-format="bold"] {
  font-weight: 900;
}

.private-note-format-button[data-format="italic"] {
  font-style: italic;
}

.private-note-format-button[data-format="underline"] {
  text-decoration: underline;
}

.private-note-format-button[data-format="strike"] {
  text-decoration: line-through;
}

.private-note-character-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.private-note-text-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.private-note-line-numbers {
  min-width: 42px;
  padding: 12px 8px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
  user-select: none;
  white-space: pre;
  background: rgba(0, 0, 0, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.private-note-text-wrap .private-note-text {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.private-note-text-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(84, 214, 255, 0.12);
}

body.theme-oled .private-note-format-button,
body.theme-oled .private-note-format-button:hover,
body.theme-oled .private-note-text-wrap {
  color: var(--text);
  background: #000000;
  box-shadow: none;
}

body.theme-oled .private-note-line-numbers {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.20);
}

body.theme-oled .private-note-format-button,
body.theme-oled .private-note-text-wrap {
  border-color: rgba(255, 255, 255, 0.20);
}

body.theme-oled .private-note-format-button:hover,
body.theme-oled .private-note-text-wrap:focus-within {
  border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 720px) {
  .private-note-formatbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .private-note-format-actions {
    margin-left: 0;
  }

  .private-note-line-numbers {
    min-width: 34px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 12px;
  }
}

body.theme-oled .private-note-panel:hover,
body.theme-oled .private-note-panel:focus-within,
body.theme-oled .private-note-button:hover,
body.theme-oled .private-note-pin:focus,
body.theme-oled .private-note-text:focus {
  border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 720px) {
  .private-note-panel {
    padding: 14px 12px;
    border-radius: 20px;
  }

  .private-note-head,
  .private-note-lock {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .private-note-button {
    width: 100%;
  }
}

/* Subtiel achtergrondaccent dat alleen in het OLED-thema actief wordt. */
:root{
  --purple-accent-opacity:0;
  --purple-accent-x:50%;
  --purple-accent-y:50%;
  --purple-accent-size:42%;
}

body.theme-oled::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(circle at var(--purple-accent-x) var(--purple-accent-y),
      rgba(168,85,247,var(--purple-accent-opacity)) 0%,
      rgba(168,85,247,calc(var(--purple-accent-opacity)*0.45)) 20%,
      transparent var(--purple-accent-size));
  transition:
    opacity 4s ease,
    background 4s ease;
}

/* Minder fel wit voor comfortabeler OLED gebruik in het OLED-thema. */
body.theme-oled {
  --text: #d8d8d8;
  --muted: #b8b8b8;
}

body.theme-oled h1,
body.theme-oled .label,
body.theme-oled .news-title,
body.theme-oled .google-search-input,
body.theme-oled .news-source,
body.theme-oled .news-filter-button,
body.theme-oled .status-item b,
body.theme-oled .clock-hour,
body.theme-oled .clock-minute {
  color: #d8d8d8 !important;
  stroke: #d8d8d8;
}

body.theme-oled .clock-minute {
  stroke: #dddddd !important;
}

body.theme-oled .clock-tick.major {
  stroke: rgba(216, 216, 216, 0.55) !important;
}

body.theme-oled .clock-tick {
  stroke: rgba(216, 216, 216, 0.35) !important;
}

body.theme-oled .card,
body.theme-oled .news-panel,
body.theme-oled .status-footer,
body.theme-oled .search-shell,
body.theme-oled .portal {
  border-color: rgba(216, 216, 216, 0.16) !important;
}

body.theme-oled .portal,
body.theme-oled * {
  text-shadow: none !important;
}

/* Gelijke hoogte en verticale uitlijning voor nieuwslabels en filters. */
.news-filter-button {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:28px !important;
  min-height:28px !important;
  padding:0 11px !important;
  font-size: 14px !important;
  line-height:1 !important;
  vertical-align:middle !important;
}

.news-source {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:22px !important;
  min-height:22px !important;
  padding:0 8px !important;
  font-size:12px !important;
  line-height:1 !important;
  vertical-align:middle !important;
}

.news-time {
  font-size:12px !important;
  line-height:1.3 !important;
}

.news-title {
  font-size: 14px !important;
  line-height: 1.3 !important;
}

.news-list a{
  min-height:29px !important;
  height:29px !important;
  align-items:center !important;
}

/* Tijdstempel blijft rechts uitgelijnd zonder de titelruimte te verstoren. */
.news-list a{
  display:flex !important;
  align-items:center !important;
}

.news-source {
  order:1 !important;
}

.news-title {
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
}

.news-time {
  order:3 !important;
  margin-left:12px !important;
  margin-right:0 !important;
  text-align:right !important;
  flex:0 0 42px !important;
}

/* Extra lucht voor nieuwsitems op smalle schermen. */
@media (max-width: 720px) {
  .news-list {
    gap: 9px !important;
  }

  .news-list a {
    min-height: 44px !important;
    height: auto !important;
    padding: 8px 8px !important;
    align-items: center !important;
  }

  .news-source {
    height: 24px !important;
    min-height: 24px !important;
    margin-top: 0 !important;
  }

  .news-source[data-source="tweakers"] {
    width: 54px !important;
    min-width: 54px !important;
    padding: 0 5px !important;
    font-size: 0 !important;
    flex-basis: 54px !important;
  }

  .news-source[data-source="tweakers"]::after {
    content: "TW";
    font-size: 12px;
    line-height: 1;
  }

  .news-time {
    margin-top: 0 !important;
    line-height: 1.25 !important;
  }

  .news-title {
    font-size: 14px !important;
    line-height: 1.42 !important;
    padding-top: 1px !important;
  }
}

/* Verborgen meetlaag berekent visuele regels zonder de editorinhoud te wijzigen. */
.private-note-text-wrap {
  position: relative;
}

.private-note-line-measure {
  position: absolute;
  top: 0;
  left: -99999px;
  width: 1px;
  height: auto;
  min-height: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  padding: 12px 14px;
  border: 0;
  box-sizing: border-box;
  tab-size: 2;
}

.private-note-line-number-row {
  display: block;
}

/* Woorden blijven intact zolang ze binnen de beschikbare breedte passen. */
.private-note-text,
.private-note-line-measure {
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Duidelijkere bedieningselementen voor de editor zonder layoutwijziging. */
.private-note-tabs-bar {
  padding-bottom: 2px;
}

.private-note-tab,
.private-note-tab-add,
.private-note-format-button {
  min-height: 36px;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.private-note-tab:hover,
.private-note-tab-add:hover,
.private-note-format-button:hover {
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.18), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.28);
}

.private-note-tab.is-active {
  border-color: rgba(255, 138, 31, 0.70);
  border-top-color: rgba(255, 205, 145, 0.95);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.18), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 0 1px rgba(255, 138, 31, 0.10),
    0 10px 26px rgba(0, 0, 0, 0.22);
}

.private-note-format-button {
  min-width: 38px;
  height: 36px;
  border-radius: 12px;
  font-size: 14px;
}

.private-note-text-wrap {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.18);
}

.private-note-text-wrap:focus-within {
  border-color: rgba(255, 138, 31, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 0 0 3px rgba(255, 138, 31, 0.13),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.private-note-line-numbers {
  background: rgba(0, 0, 0, 0.24);
  border-right-color: rgba(255, 255, 255, 0.14);
}

.private-note-tab-rename-input {
  height: 28px;
  background: rgba(0, 0, 0, 0.30);
  border-color: rgba(255, 255, 255, 0.34);
}

body.theme-oled .private-note-tab,
body.theme-oled .private-note-tab-add,
body.theme-oled .private-note-format-button,
body.theme-oled .private-note-text-wrap {
  background: #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  border-color: rgba(216, 216, 216, 0.22);
}

body.theme-oled .private-note-tab:hover,
body.theme-oled .private-note-tab-add:hover,
body.theme-oled .private-note-format-button:hover,
body.theme-oled .private-note-text-wrap:focus-within {
  border-color: rgba(216, 216, 216, 0.72);
}

body.theme-oled .private-note-tab.is-active {
  background: #000000;
  border-color: rgba(216, 216, 216, 0.72);
  border-top-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.theme-oled .private-note-line-numbers {
  background: #000000;
}

/* Centrale randdefinities houden het OLED-thema visueel consistent. */
body.theme-oled {
  --black-outline-width: 1.5px;
  --black-outline-color: rgba(216, 216, 216, 0.32);
  --black-outline-soft: rgba(216, 216, 216, 0.24);
  --black-outline-hover: rgba(216, 216, 216, 0.78);
  --black-outline-active: rgba(255, 255, 255, 0.92);
}

body.theme-oled .portal,
body.theme-oled .card,
body.theme-oled .news-panel,
body.theme-oled .status-footer,
body.theme-oled .weather-panel,
body.theme-oled .search-shell,
body.theme-oled .search-suggestions,
body.theme-oled .news-filter-button,
body.theme-oled .news-list a,
body.theme-oled .news-source,
body.theme-oled #style-press-button,
body.theme-oled .private-note-panel,
body.theme-oled .private-note-pin,
body.theme-oled .private-note-text,
body.theme-oled .private-note-button,
body.theme-oled .private-note-tab,
body.theme-oled .private-note-tab-add,
body.theme-oled .private-note-format-button,
body.theme-oled .private-note-text-wrap,
body.theme-oled .private-note-tab-rename-input {
  border-style: solid !important;
  border-width: var(--black-outline-width) !important;
  border-color: var(--black-outline-color) !important;
}

body.theme-oled .private-note-text-wrap .private-note-text {
  border-width: 0 !important;
  border-color: transparent !important;
}

body.theme-oled .private-note-line-numbers {
  border-right-width: var(--black-outline-width) !important;
  border-right-color: var(--black-outline-soft) !important;
}

body.theme-oled .search-suggestion-button,
body.theme-oled .private-note-tab-close {
  border: var(--black-outline-width) solid transparent !important;
}

body.theme-oled .news-list a,
body.theme-oled .search-suggestion-button:hover,
body.theme-oled .search-suggestion-button.is-active {
  background: #000000 !important;
}

body.theme-oled .card:hover,
body.theme-oled .news-panel:hover,
body.theme-oled .status-footer:hover,
body.theme-oled .status-footer:focus-within,
body.theme-oled .weather-panel:hover,
body.theme-oled .weather-panel:focus-within,
body.theme-oled .search-shell:hover,
body.theme-oled .search-shell:focus-within,
body.theme-oled .search-suggestions:focus-within,
body.theme-oled .news-filter-button:hover,
body.theme-oled .news-filter-button.is-active,
body.theme-oled .news-panel:hover .news-filter-button.is-active,
body.theme-oled .news-list a:hover,
body.theme-oled #style-press-button:hover,
body.theme-oled .private-note-panel:hover,
body.theme-oled .private-note-panel:focus-within,
body.theme-oled .private-note-pin:focus,
body.theme-oled .private-note-text:focus,
body.theme-oled .private-note-button:hover,
body.theme-oled .private-note-tab:hover,
body.theme-oled .private-note-tab-add:hover,
body.theme-oled .private-note-format-button:hover,
body.theme-oled .private-note-text-wrap:focus-within,
body.theme-oled .private-note-tab-rename-input:focus {
  border-color: var(--black-outline-hover) !important;
}

body.theme-oled .card:hover,
body.theme-oled .news-panel:hover,
body.theme-oled .status-footer:hover,
body.theme-oled .status-footer:focus-within,
body.theme-oled .weather-panel:hover,
body.theme-oled .weather-panel:focus-within,
body.theme-oled .search-shell:hover,
body.theme-oled .search-shell:focus-within,
body.theme-oled .private-note-panel:hover,
body.theme-oled .private-note-panel:focus-within {
  box-shadow: inset 0 0 0 1px var(--black-outline-hover) !important;
}

body.theme-oled .private-note-tab.is-active,
body.theme-oled .news-filter-button.is-active,
body.theme-oled .news-panel:hover .news-filter-button.is-active {
  border-color: var(--black-outline-active) !important;
}

body.theme-oled .private-note-tab.is-active {
  border-top-color: var(--black-outline-active) !important;
}

body.theme-oled .search-suggestion-button:hover,
body.theme-oled .search-suggestion-button.is-active,
body.theme-oled .private-note-tab-close:hover,
body.theme-oled .private-note-tab-close:focus-visible {
  border-color: var(--black-outline-soft) !important;
}

/* Nieuwsitems krijgen pas een rand wanneer ze focus of hover hebben. */
body.theme-oled .news-list a {
  border-color: transparent !important;
}

body.theme-oled .news-list a:hover,
body.theme-oled .news-list a:focus-visible {
  border-color: var(--black-outline-hover, rgba(216, 216, 216, 0.78)) !important;
}

/* Actieve knoppen krijgen pas nadruk binnen hun actieve paneelcontext. */
body.theme-oled .private-note-tabs-bar {
  padding-top: 2px !important;
}

body.theme-oled .private-note-tabs {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

body.theme-oled .private-note-tab.is-active,
body.theme-oled .news-filter-button.is-active {
  border-color: var(--black-outline-color, rgba(216, 216, 216, 0.32)) !important;
  background: #000000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

body.theme-oled .private-note-tab.is-active {
  border-top-color: var(--black-outline-color, rgba(216, 216, 216, 0.32)) !important;
  transform: none !important;
}

body.theme-oled .news-filter-button.is-active {
  transform: none !important;
}

body.theme-oled .private-note-panel:hover .private-note-tab.is-active,
body.theme-oled .private-note-panel:focus-within .private-note-tab.is-active {
  border-color: var(--black-outline-active, rgba(255, 255, 255, 0.92)) !important;
  border-top-color: var(--black-outline-active, rgba(255, 255, 255, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  transform: translateY(-1px) !important;
}

body.theme-oled .news-panel:hover .news-filter-button.is-active,
body.theme-oled .news-panel:focus-within .news-filter-button.is-active {
  border-color: var(--black-outline-active, rgba(255, 255, 255, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-1px) !important;
}

body.theme-oled .private-note-tab:hover,
body.theme-oled .private-note-tab-add:hover,
body.theme-oled .news-filter-button:hover {
  border-color: var(--black-outline-hover, rgba(216, 216, 216, 0.78)) !important;
}

/* Tabnamen en actieiconen blijven strak uitgelijnd binnen dezelfde knop. */
.private-note-tabs-bar {
  align-items: center !important;
}

.private-note-tabs {
  align-items: center !important;
}

.private-note-tab,
.private-note-tab-add {
  height: 36px !important;
  min-height: 36px !important;
}

.private-note-tab-add {
  width: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  line-height: 1 !important;
  align-self: center !important;
}

.private-note-tab {
  display: inline-grid !important;
  grid-template-columns: minmax(42px, 1fr) auto;
  align-items: center !important;
  column-gap: 7px !important;
  padding-right: 6px !important;
}

.private-note-tab-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 22px;
  padding: 0 1px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.private-note-tab-close {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  font-size: 15px !important;
}

body.theme-oled .private-note-tab-actions {
  background: #000000;
  box-shadow: none;
}

body.theme-oled .private-note-tab-close {
  border-width: 0 !important;
}

body.theme-oled .private-note-tab-close:hover,
body.theme-oled .private-note-tab-close:focus-visible {
  border-width: 0 !important;
  background: rgba(255, 255, 255, 0.12);
}


.private-note-tabs.is-dragging {
  user-select: none;
  cursor: grabbing;
}

.private-note-tab[draggable="true"] {
  touch-action: pan-x;
}

/* De naam-editor biedt directe, bereikbare pijlen om de tabpositie te wijzigen. */
.private-note-tab-move-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

/* Het naamveld vult alleen de resterende ruimte; de pijlen mogen nooit overlappen. */
.private-note-tab.is-renaming {
  grid-template-columns: minmax(0, 1fr) auto !important;
  column-gap: 4px !important;
}

.private-note-tab.is-renaming .private-note-tab-rename-input {
  width: 100%;
  min-width: 0;
}

/* Omdat de rij horizontaal pannable is, mogen titels en de naam-editor ruimer zijn. */
.private-note-tab {
  flex: 0 0 auto;
  max-width: min(280px, 70vw);
}

.private-note-tab.is-renaming {
  flex: 0 0 min(300px, calc(100vw - 86px));
  width: min(300px, calc(100vw - 86px));
  max-width: none;
}

@media (max-width: 720px) {
  .private-note-tab {
    max-width: min(260px, calc(100vw - 86px));
  }
}

.private-note-tab-move {
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.private-note-tab-move:hover,
.private-note-tab-move:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
  outline: 0;
}

.private-note-tab.is-drag-source {
  opacity: 0.42;
}

.private-note-tab.is-drag-over-before,
.private-note-tab.is-drag-over-after {
  position: relative;
}

.private-note-tab.is-drag-over-before::before,
.private-note-tab.is-drag-over-after::after {
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 3px;
  content: "";
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
}

.private-note-tab.is-drag-over-before::before {
  left: -5px;
}

.private-note-tab.is-drag-over-after::after {
  right: -5px;
}

.private-note-tab.is-pointer-dragging {
  opacity: 0.92;
  pointer-events: none;
  transform: translate3d(var(--private-note-drag-x, 0px), var(--private-note-drag-y, 0px), 0) scale(1.03) !important;
  z-index: 20;
}

body.theme-oled .private-note-tab.is-drag-over-before::before,
body.theme-oled .private-note-tab.is-drag-over-after::after {
  background: var(--black-outline-active, rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px) {
  .private-note-tab {
    max-width: 180px;
  }

  .private-note-tab-add {
    width: 36px !important;
    min-width: 36px !important;
  }
}

/* Het Glas-thema gebruikt dezelfde contextuele actieve staat als het OLED-thema. */
body.theme-glass .private-note-tabs-bar {
  padding-top: 2px !important;
}

body.theme-glass .private-note-tabs {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

body.theme-glass .private-note-tab.is-active {
  color: var(--text) !important;
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.14), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.16) !important;
  transform: none !important;
}

body.theme-glass .news-filter-button.is-active {
  color: var(--muted) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: none !important;
}

body.theme-glass .private-note-panel:hover .private-note-tab.is-active,
body.theme-glass .private-note-panel:focus-within .private-note-tab.is-active {
  color: var(--text) !important;
  border-color: rgba(255, 138, 31, 0.70) !important;
  border-top-color: rgba(255, 205, 145, 0.95) !important;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.18), transparent 46%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 0 0 1px rgba(255, 138, 31, 0.10),
    0 10px 26px rgba(0, 0, 0, 0.22) !important;
  transform: translateY(-1px) !important;
}

body.theme-glass .news-panel:hover .news-filter-button.is-active,
body.theme-glass .news-panel:focus-within .news-filter-button.is-active {
  color: var(--text) !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

body.theme-glass .news-panel:hover .news-filter-button[data-news-filter="all"].is-active,
body.theme-glass .news-panel:focus-within .news-filter-button[data-news-filter="all"].is-active {
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.055)) !important;
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(255, 255, 255, 0.12)) !important;
}

body.theme-glass .news-panel:hover .news-filter-button[data-news-filter="nos"].is-active,
body.theme-glass .news-panel:focus-within .news-filter-button[data-news-filter="nos"].is-active {
  color: #ffb3b3 !important;
  background: rgba(220, 53, 69, 0.18) !important;
  border-color: rgba(220, 53, 69, 0.42) !important;
}

body.theme-glass .news-panel:hover .news-filter-button[data-news-filter="nu"].is-active,
body.theme-glass .news-panel:focus-within .news-filter-button[data-news-filter="nu"].is-active {
  color: #b9d8ff !important;
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.42) !important;
}

body.theme-glass .news-panel:hover .news-filter-button[data-news-filter="tweakers"].is-active,
body.theme-glass .news-panel:focus-within .news-filter-button[data-news-filter="tweakers"].is-active {
  color: #8ff7a8 !important;
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.42) !important;
}

body.theme-glass .news-panel:hover .news-filter-button[data-news-filter="l1"].is-active,
body.theme-glass .news-panel:focus-within .news-filter-button[data-news-filter="l1"].is-active {
  color: #dbc3ff !important;
  background: rgba(139, 92, 246, 0.18) !important;
  border-color: rgba(139, 92, 246, 0.42) !important;
}

/* In het OLED-thema geeft hover nadruk via de rand, zonder beweging. */
body.theme-oled .card:hover,
body.theme-oled .news-panel:hover,
body.theme-oled .status-footer:hover,
body.theme-oled .status-footer:focus-within,
body.theme-oled .weather-panel:hover,
body.theme-oled .weather-panel:focus-within,
body.theme-oled .search-shell:hover,
body.theme-oled .search-shell:focus-within,
body.theme-oled .private-note-panel:hover,
body.theme-oled .private-note-panel:focus-within {
  transform: none !important;
}

/* Op touchscreens blijft hover/focus soms hangen. Grote blokken reageren daar zonder beweging. */
@media (max-width: 720px), (hover: none), (pointer: coarse) {
  .card:hover,
  .news-panel:hover,
  .status-footer:hover,
  .status-footer:focus-within,
  .weather-panel:hover,
  .weather-panel:focus-within,
  .search-shell:hover,
  .search-shell:focus-within,
  .private-note-panel:hover,
  .private-note-panel:focus-within,
  body.theme-oled .card:hover,
  body.theme-oled .news-panel:hover,
  body.theme-oled .status-footer:hover,
  body.theme-oled .status-footer:focus-within,
  body.theme-oled .weather-panel:hover,
  body.theme-oled .weather-panel:focus-within,
  body.theme-oled .search-shell:hover,
  body.theme-oled .search-shell:focus-within,
  body.theme-oled .private-note-panel:hover,
  body.theme-oled .private-note-panel:focus-within {
    transform: none !important;
  }
}

/* Op mobiel blijft de plusknop staan en wordt alleen de tabrij horizontaal gescrold. */
@media (max-width: 720px) {
  .private-note-tabs-bar {
    width: 100%;
  }

  .private-note-tabs {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .private-note-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

body.theme-oled .weather-panel {
  background: #000000 !important;
}

body.theme-oled .weather-panel::before {
  opacity: 0 !important;
}

/* Google-achtige weerkaart. */
.weather-panel-google {
  gap: 12px;
  color: #e8eaed;
  background: #202124 !important;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.weather-panel-google::before {
  display: none;
}

.weather-google-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.weather-current {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.weather-current-icon {
  width: 62px;
  height: 62px;
  margin-top: 2px;
  color: #fbbc04;
  flex: 0 0 auto;
}

.weather-current-icon svg,
.weather-google-day-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-current-icon svg circle,
.weather-google-day-icon svg circle {
  fill: #f9ab00;
  stroke: #f9ab00;
}

.weather-current-temp {
  color: #f1f3f4;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.weather-current-units {
  padding-top: 4px;
  color: #f1f3f4;
  font-size: 16px;
  white-space: nowrap;
}

.weather-current-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  color: #bdc1c6;
  font-size: 12px;
  line-height: 1.25;
}

.weather-google-title {
  min-width: 150px;
  color: #bdc1c6;
  text-align: right;
}

.weather-google-title h2 {
  margin: 0 0 2px;
  color: #f1f3f4;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
}

.weather-google-title span,
.weather-google-title b {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.weather-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  color: #f1f3f4;
  font-size: 14px;
}

.weather-tabs span {
  position: relative;
  padding: 0 12px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.weather-tabs span:first-child {
  padding-left: 0;
  border-left: 0;
}

.weather-tabs span.is-active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: #fdd663;
}

.weather-chart {
  position: relative;
  padding-top: 8px;
}

.weather-chart-svg {
  display: block;
  width: 100%;
  height: 96px;
  overflow: visible;
}

.weather-chart-svg polygon {
  fill: rgba(251, 188, 4, 0.22);
}

.weather-chart-svg polyline {
  fill: none;
  stroke: #fbbc04;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-chart-svg text {
  fill: #bdc1c6;
  font-size: 12px;
  font-weight: 700;
}

.weather-chart-times {
  position: relative;
  display: block;
  height: 18px;
  margin-top: 2px;
  color: #9aa0a6;
  font-size: 12px;
  text-align: center;
}

.weather-google-days {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.weather-google-day {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 7px;
  color: #e8eaed;
  border-radius: 10px;
}

.weather-google-day.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.weather-google-day b {
  font-size: 14px;
  line-height: 1;
}

.weather-google-day-icon {
  width: 40px;
  height: 40px;
  color: #fbbc04;
}

.weather-google-day span {
  color: #bdc1c6;
  font-size: 13px;
  white-space: nowrap;
}

.weather-google-day strong {
  color: #f1f3f4;
}

body.theme-oled .weather-panel-google,
body.theme-oled .weather-panel-google .weather-google-day.is-active {
  background: #000000 !important;
}

body.theme-oled .weather-google-day.is-active {
  box-shadow: inset 0 0 0 1px var(--black-outline-color);
}

@media (max-width: 900px) {
  .weather-google-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .weather-chart-times {
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .weather-google-top {
    flex-direction: column;
  }

  .weather-google-title {
    min-width: 0;
    text-align: left;
  }

  .weather-current {
    flex-wrap: wrap;
  }

  .weather-current-details {
    width: 100%;
    padding-left: 70px;
  }

  .weather-current-temp {
    font-size: 44px;
  }

  .weather-tabs {
    overflow-x: auto;
    white-space: nowrap;
  }

  .weather-chart {
    overflow-x: auto;
  }

  .weather-chart-svg,
  .weather-chart-layer,
  .weather-chart-values,
  .weather-chart-times {
    min-width: 560px;
  }

  .weather-google-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .weather-google-day {
    padding: 9px 5px;
  }
}

/* Thematische kleuren en interactieve grafiek voor de weerkaart. */
.weather-panel-google {
  --weather-bg: transparent;
  --weather-item-active: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, 0.06));
  --weather-line-temperature: var(--accent);
  --weather-line-rain: var(--accent2);
  --weather-line-wind: color-mix(in srgb, var(--accent) 42%, var(--accent2));
  --weather-fill-temperature: color-mix(in srgb, var(--accent) 24%, transparent);
  --weather-fill-rain: color-mix(in srgb, var(--accent2) 22%, transparent);
  --weather-fill-wind: color-mix(in srgb, var(--accent) 16%, var(--accent2) 12%);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84, 214, 255, 0.10), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--weather-bg) !important;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.weather-current-icon,
.weather-google-day-icon {
  color: var(--weather-line-temperature);
}

.weather-current-icon svg circle,
.weather-google-day-icon svg circle {
  fill: color-mix(in srgb, var(--weather-line-temperature) 40%, transparent);
  stroke: var(--weather-line-temperature);
}

.weather-current-temp,
.weather-current-units,
.weather-google-title h2,
.weather-tabs,
.weather-google-day,
.weather-google-day strong {
  color: var(--text);
}

.weather-current-details,
.weather-google-title,
.weather-google-day span,
.weather-chart-svg text,
.weather-chart-times {
  color: var(--muted);
  fill: var(--muted);
}

.weather-tab {
  position: relative;
  appearance: none;
  padding: 0 12px 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
}

.weather-tab:first-child {
  padding-left: 0;
  border-left: 0;
}

.weather-tab::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  content: "";
  background: transparent;
}

.weather-tab:first-child::after {
  left: 0;
}

.weather-tab.is-active::after {
  background: var(--weather-line-temperature);
}

.weather-tab[data-weather-chart="rain"].is-active::after {
  background: var(--weather-line-rain);
}

.weather-tab[data-weather-chart="wind"].is-active::after {
  background: var(--weather-line-wind);
}

.weather-tab:hover {
  color: var(--text);
}

.weather-tabs span,
.weather-tabs span:first-child,
.weather-tabs span.is-active::after {
  border: 0;
  background: transparent;
}

.weather-chart-layer {
  display: none;
  position: relative;
}

.weather-chart-layer.is-active {
  display: block;
}

.weather-chart-values {
  position: absolute;
  inset: 0;
  height: 96px;
  pointer-events: none;
}

.weather-chart-values span {
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.weather-chart-values span:first-child {
  transform: translateX(-50%);
}

.weather-chart-values span:last-child {
  transform: translateX(-50%);
}

.weather-chart-svg.weather-chart-temperature polygon {
  fill: var(--weather-fill-temperature);
}

.weather-chart-svg.weather-chart-temperature polyline {
  stroke: var(--weather-line-temperature);
}

.weather-chart-svg.weather-chart-rain polygon {
  fill: var(--weather-fill-rain);
}

.weather-chart-svg.weather-chart-rain polyline {
  stroke: var(--weather-line-rain);
}

.weather-chart-svg.weather-chart-wind polygon {
  fill: var(--weather-fill-wind);
}

.weather-chart-svg.weather-chart-wind polyline {
  stroke: var(--weather-line-wind);
}

.weather-chart-times {
  padding: 0;
}

.weather-chart-times span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.weather-chart-times span:first-child {
  transform: translateX(0);
}

.weather-chart-times span:last-child {
  transform: translateX(-100%);
}

.weather-google-day {
  background: transparent;
}

.weather-google-day.is-active {
  background: var(--weather-item-active);
}

body.theme-oled .weather-panel-google {
  --weather-bg: #000000;
  --weather-item-active: #000000;
  --weather-line-temperature: rgba(255, 255, 255, 0.92);
  --weather-line-rain: rgba(255, 255, 255, 0.78);
  --weather-line-wind: rgba(216, 216, 216, 0.74);
  --weather-fill-temperature: rgba(255, 255, 255, 0.13);
  --weather-fill-rain: rgba(255, 255, 255, 0.10);
  --weather-fill-wind: rgba(216, 216, 216, 0.11);
  background: #000000 !important;
}

body.theme-oled .weather-tab {
  border-left-color: var(--black-outline-soft);
}

body.theme-oled .weather-tab:first-child {
  border-left: 0;
}

body.theme-oled .layout-edit-button.is-active {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: var(--black-outline-active, rgba(255, 255, 255, 0.92)) !important;
  box-shadow:
    inset 0 0 0 1px var(--black-outline-active, rgba(255, 255, 255, 0.92)),
    0 0 18px rgba(255, 255, 255, 0.22) !important;
}

body.theme-oled .layout-edit-button.is-active .layout-edit-icon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

body.theme-oled .dashboard-block-remove,
body.theme-oled .dashboard-block-move,
body.theme-oled .dashboard-block-library,
body.theme-oled .dashboard-block-library-actions button,
body.theme-oled .service-card-remove,
body.theme-oled .service-dialog,
body.theme-oled .service-dialog-close,
body.theme-oled .service-field input,
body.theme-oled .service-icon-search,
body.theme-oled .service-icon-choice,
body.theme-oled .service-dialog-button {
  background: #000000 !important;
  border-color: var(--black-outline-color, rgba(216, 216, 216, 0.32)) !important;
}

body.theme-oled .help-dialog details {
  background: #000000 !important;
  border-color: var(--black-outline-color, rgba(216, 216, 216, 0.32)) !important;
}

body.theme-oled .dashboard-block-remove:hover,
body.theme-oled .dashboard-block-remove:focus-visible,
body.theme-oled .dashboard-block-move:hover,
body.theme-oled .dashboard-block-move:focus-visible,
body.theme-oled .dashboard-block-library-actions button:hover,
body.theme-oled .dashboard-block-library-actions button:focus-visible,
body.theme-oled .service-card-remove:hover,
body.theme-oled .service-card-remove:focus-visible,
body.theme-oled .service-dialog-close:hover,
body.theme-oled .service-dialog-close:focus-visible,
body.theme-oled .service-icon-choice:hover,
body.theme-oled .service-icon-choice:focus-visible,
body.theme-oled .service-dialog-button:hover,
body.theme-oled .service-dialog-button:focus-visible {
  border-color: var(--black-outline-hover, rgba(216, 216, 216, 0.78)) !important;
}

body.theme-oled .service-icon-choice.is-selected,
body.theme-oled .service-dialog-button.is-primary {
  border-color: var(--black-outline-active, rgba(255, 255, 255, 0.92)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
}

body.theme-oled .dashboard-block.is-drag-over-before::before,
body.theme-oled .dashboard-block.is-drag-over-after::after {
  background: var(--black-outline-active, rgba(255, 255, 255, 0.92));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px), (hover: none), (pointer: coarse) {
  .dashboard-blocks {
    gap: 14px;
    padding-right: 0;
  }

  body.layout-editing .dashboard-blocks {
    padding-right: 30px;
  }

  .dashboard-block-remove {
    right: -30px;
    width: 26px;
    height: 26px;
    font-size: 20px;
  }

  .dashboard-block-controls {
    right: -30px;
    gap: 38px;
    transform: translateY(-50%);
  }

  .dashboard-block-move {
    width: 26px;
    height: 26px;
  }

  .dashboard-action-icon {
    width: 16px;
    height: 16px;
  }

  .service-card-remove {
    top: -6px;
    right: -6px;
  }

  body.layout-editing .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .service-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .service-dialog-form {
    gap: 16px;
    padding: 17px;
  }

  .service-icon-picker {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .service-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-dialog-button {
    width: 100%;
    min-width: 0;
  }
}

body.theme-glass .weather-panel-google {
  --weather-line-temperature: rgba(255, 255, 255, 0.94);
  --weather-line-rain: rgba(255, 255, 255, 0.88);
  --weather-line-wind: rgba(255, 255, 255, 0.82);
  --weather-fill-temperature: rgba(255, 255, 255, 0.16);
  --weather-fill-rain: rgba(255, 255, 255, 0.12);
  --weather-fill-wind: rgba(255, 255, 255, 0.10);
  --weather-item-active: rgba(255, 255, 255, 0.10);
}

body.theme-glass .weather-current-icon,
body.theme-glass .weather-google-day-icon {
  color: rgba(255, 255, 255, 0.94);
}

body.theme-glass .weather-current-icon svg circle,
body.theme-glass .weather-google-day-icon svg circle {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.94);
}

body.theme-glass .weather-google-day.is-active {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 720px) {
  .weather-panel-google {
    gap: 10px;
    padding: 14px 12px;
  }

  .weather-google-top {
    gap: 10px;
  }

  .weather-current {
    display: grid;
    grid-template-columns: 42px auto auto;
    gap: 6px;
    width: 100%;
  }

  .weather-current-icon {
    width: 42px;
    height: 42px;
    margin-top: 1px;
  }

  .weather-current-temp {
    font-size: 40px;
  }

  .weather-current-units {
    padding-top: 3px;
    font-size: 13px;
  }

  .weather-current-details {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 0;
    padding-left: 48px;
    font-size: 11px;
  }

  .weather-google-title h2 {
    font-size: 20px;
  }

  .weather-google-title span,
  .weather-google-title b {
    font-size: 14px;
  }

  .weather-tab {
    padding: 0 10px 8px;
    font-size: 13px;
  }

  .weather-chart {
    padding-top: 4px;
  }

  .weather-chart-svg,
  .weather-chart-layer,
  .weather-chart-values,
  .weather-chart-times {
    min-width: 520px;
  }

  .weather-google-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .weather-google-day {
    gap: 5px;
    padding: 8px 4px;
  }

  .weather-google-day-icon {
    width: 34px;
    height: 34px;
  }

  .weather-google-day span {
    font-size: 12px;
  }
}

/* Locatiekiezer voor het weerblok, alleen zichtbaar tijdens layoutbewerking. */
.weather-location-editor {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

body.layout-editing .weather-location-editor {
  display: inline-flex;
}

body.layout-editing .weather-google-title {
  padding-right: 36px;
}

.weather-location-editor:hover,
.weather-location-editor:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.44);
  outline: 0;
}

.weather-location-dialog {
  width: min(640px, calc(100vw - 32px));
}

.weather-city-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: min(330px, 42dvh);
  padding-right: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.weather-city-option {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.weather-city-option:hover,
.weather-city-option:focus-visible,
.weather-city-option.is-selected {
  background: color-mix(in srgb, var(--accent) 20%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--accent) 64%, rgba(255, 255, 255, 0.18));
  outline: 0;
}

.weather-city-option:disabled {
  cursor: wait;
  opacity: 0.58;
}

body.theme-oled .weather-location-editor {
  color: #f1f3f4;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.26);
}

body.theme-oled .weather-city-option {
  background: #000000;
}

/* Laatste cascadeborging voor componenten die onderaan hun eigen themavariabelen zetten. */
body.theme-lcd .weather-panel-google {
  --weather-bg: transparent;
  --weather-item-active: #303b24;
  --weather-line-temperature: #25301c;
  --weather-line-rain: #465731;
  --weather-line-wind: #667544;
  --weather-fill-temperature: rgba(37, 48, 28, 0.16);
  --weather-fill-rain: rgba(70, 87, 49, 0.14);
  --weather-fill-wind: rgba(102, 117, 68, 0.14);
  color: var(--text);
  background:
    repeating-linear-gradient(0deg, rgba(36, 45, 24, 0.025) 0 1px, transparent 1px 3px),
    rgba(183, 194, 128, 0.62) !important;
}

body.theme-lcd .weather-google-day.is-active {
  color: #202719;
  background: transparent !important;
  border: 1px solid #637048;
  box-shadow: inset 0 0 0 1px rgba(50, 62, 35, 0.10);
}

body.theme-lcd .weather-google-day.is-active strong,
body.theme-lcd .weather-google-day.is-active span {
  color: #202719;
}

body.theme-lcd .weather-current-icon,
body.theme-lcd .weather-google-day-icon {
  color: #26301d;
  filter: none;
}

body.theme-lcd .weather-current-icon svg,
body.theme-lcd .weather-google-day-icon svg {
  color: #26301d;
  fill: none;
  stroke: #26301d;
}

body.theme-lcd .weather-current-icon svg circle,
body.theme-lcd .weather-google-day-icon svg circle {
  fill: rgba(38, 48, 29, 0.12);
  stroke: #26301d;
}

body.theme-lcd .weather-tabs {
  gap: 6px;
}

body.theme-lcd .weather-tab,
body.theme-lcd .weather-tab:first-child {
  min-height: 28px;
  padding: 0 10px;
  color: #202719;
  background: rgba(164, 177, 111, 0.74) !important;
  border: 1px solid #56603f !important;
  border-radius: 3px;
  box-shadow: none;
}

body.theme-lcd .weather-tab::after {
  display: none;
}

body.theme-lcd .weather-tab:hover,
body.theme-lcd .weather-tab:focus-visible,
body.theme-lcd .weather-tab.is-active {
  color: #dce6ae !important;
  background: #2d3822 !important;
  border-color: #202719 !important;
  outline: 0;
}

body.theme-lcd .news-panel:hover .news-source[data-source] {
  color: #202719;
  background: rgba(164, 177, 111, 0.74);
  border-color: #56603f;
  box-shadow: none;
}

body.theme-lcd .news-filter-button:hover,
body.theme-lcd .news-filter-button:focus-visible {
  color: #dce6ae !important;
  background: #2d3822 !important;
  border-color: #202719 !important;
  box-shadow: inset 0 0 0 1px rgba(218, 227, 162, 0.18) !important;
}

body.theme-lcd .news-source:hover,
body.theme-lcd .news-source:focus-visible,
body.theme-lcd .news-list a:hover .news-source {
  color: #dce6ae !important;
  background: #2d3822 !important;
  border-color: #202719 !important;
  box-shadow: inset 0 0 0 1px rgba(218, 227, 162, 0.18) !important;
}

body.theme-lcd .news-filter-button.is-active,
body.theme-lcd .news-filter-button.is-active:hover,
body.theme-lcd .news-filter-button.is-active:focus-visible,
body.theme-lcd .news-panel:hover .news-filter-button.is-active,
body.theme-lcd .news-panel:hover .news-filter-button[data-news-filter].is-active,
body.theme-lcd .news-panel:focus-within .news-filter-button.is-active,
body.theme-lcd .news-panel:focus-within .news-filter-button[data-news-filter].is-active {
  color: #dce6ae !important;
  background: #2d3822 !important;
  border-color: #202719 !important;
  box-shadow: inset 0 0 0 1px rgba(218, 227, 162, 0.18) !important;
}

body.theme-lcd .private-note-status {
  color: #4b5639;
  text-shadow: none;
}

body.theme-lcd .private-note-status[data-state="saved"] {
  color: #304121;
}

body.theme-lcd .private-note-status[data-state="error"],
body.theme-lcd .private-note-pin-dialog .service-form-error {
  color: #60352a;
}

body.theme-lcd .private-note-tabs-bar {
  padding-top: 2px !important;
  border-bottom: 1px solid rgba(66, 78, 47, 0.20);
}

body.theme-lcd .private-note-tabs {
  padding: 2px 0 4px !important;
  scrollbar-color: #596640 transparent;
}

body.theme-lcd .private-note-tab,
body.theme-lcd .private-note-tab-add {
  color: #2c3522 !important;
  background: rgba(160, 174, 105, 0.62) !important;
  border: 1px solid #667149 !important;
  border-radius: 3px !important;
  box-shadow:
    inset 1px 1px 0 rgba(223, 230, 169, 0.28),
    inset -1px -1px 0 rgba(50, 61, 35, 0.12) !important;
  transform: none !important;
}

body.theme-lcd .private-note-tab:hover,
body.theme-lcd .private-note-tab:focus-visible,
body.theme-lcd .private-note-tab-add:hover,
body.theme-lcd .private-note-tab-add:focus-visible {
  color: #202719 !important;
  background: #9eae6c !important;
  border-color: #424e32 !important;
  outline: 0;
}

body.theme-lcd .private-note-tab.is-active,
body.theme-lcd .private-note-panel:hover .private-note-tab.is-active,
body.theme-lcd .private-note-panel:focus-within .private-note-tab.is-active {
  color: #202719 !important;
  background: #aeba76 !important;
  border-color: #3f4b30 !important;
  border-top-color: #303b24 !important;
  box-shadow:
    inset 0 3px 0 #3c482d,
    inset 1px 1px 0 rgba(226, 232, 174, 0.26) !important;
  transform: none !important;
}

body.theme-lcd .private-note-tab-actions {
  background: transparent;
  box-shadow: none;
}

body.theme-lcd .private-note-tab-close {
  color: #4e593b;
  background: transparent;
  border: 0 !important;
  border-radius: 2px;
}

body.theme-lcd .private-note-tab-close:hover,
body.theme-lcd .private-note-tab-close:focus-visible {
  color: #ede9bb;
  background: #60352a;
  outline: 0;
}

body.theme-lcd .private-note-tab-rename-input,
body.theme-lcd .private-note-tab-rename-input:focus {
  color: #202719;
  background: #c0cb86;
  border: 1px solid #465136;
  border-radius: 2px;
  box-shadow: inset 1px 1px 2px rgba(45, 55, 31, 0.18);
  outline: 0;
}

body.theme-lcd .private-note-tab.is-drag-over-before::before,
body.theme-lcd .private-note-tab.is-drag-over-after::after {
  background: #344126;
  border-radius: 0;
  box-shadow: none;
}

/* De themaknop opent een expliciete, toetsenbordbedienbare keuzelijst. */
.theme-picker {
  position: relative;
  display: inline-flex;
}

.theme-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 80;
  display: grid;
  width: 190px;
  gap: 4px;
  padding: 7px;
  color: var(--text);
  background: rgba(16, 21, 33, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px) saturate(130%);
  transform-origin: bottom left;
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu-option {
  display: grid;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
}

.theme-menu-option:hover,
.theme-menu-option:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.theme-menu-option.is-selected {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255, 255, 255, 0.14));
}

.theme-menu-swatch {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
}

.theme-menu-swatch.is-glass {
  background: linear-gradient(135deg, #ff8a1f 0 48%, #54d6ff 52% 100%);
}

.theme-menu-swatch.is-oled {
  background: #050505;
}

.theme-menu-swatch.is-lcd {
  background:
    repeating-linear-gradient(0deg, rgba(35, 43, 25, 0.18) 0 1px, transparent 1px 3px),
    #aeb978;
  border-color: #4c5638;
}

.theme-menu-check {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  opacity: 0;
}

.theme-menu-option.is-selected .theme-menu-check {
  opacity: 1;
}

body.theme-oled .theme-menu {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.78);
  backdrop-filter: none;
}

body.theme-oled .theme-menu-option:hover,
body.theme-oled .theme-menu-option:focus-visible,
body.theme-oled .theme-menu-option.is-selected {
  color: #ffffff;
  background: #000000;
  border-color: rgba(255, 255, 255, 0.76);
}

body.theme-lcd .theme-menu {
  color: #202719;
  background:
    repeating-linear-gradient(0deg, rgba(36, 45, 24, 0.035) 0 1px, transparent 1px 3px),
    #acb875;
  border: 3px solid #515642;
  border-radius: 5px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.50), inset 0 0 0 1px #303725;
  backdrop-filter: none;
}

body.theme-lcd .theme-menu-option {
  color: #465137;
  border-radius: 2px;
}

body.theme-lcd .theme-menu-option:hover,
body.theme-lcd .theme-menu-option:focus-visible,
body.theme-lcd .theme-menu-option.is-selected {
  color: #202719;
  background: #96a565;
  border-color: #465136;
}

body.theme-lcd .theme-menu-check {
  color: #28351d;
}

@media (max-width: 480px) {
  .theme-menu {
    width: min(190px, calc(100vw - 24px));
  }
}

body.theme-lcd .weather-location-editor,
body.theme-lcd .weather-city-option {
  color: var(--text);
  background: #9ca76c;
  border-color: #50583d;
  border-radius: 3px;
}

body.theme-lcd .weather-city-option:hover,
body.theme-lcd .weather-city-option:focus-visible,
body.theme-lcd .weather-city-option.is-selected {
  color: #c7d28b;
  background: #303b24;
  border-color: #202719;
}

/*
 * Uitbreidbare paletthema's. Alle dashboardonderdelen lezen hieronder dezelfde
 * semantische variabelen uit, zodat contrast en interactieve statussen per
 * thema consequent blijven zonder de bestaande Glas-, OLED- of LCD-regels te wijzigen.
 */
body.theme-solarized,
body.theme-material,
body.theme-nord {
  --panel-secondary: var(--panel);
  --control: var(--panel-secondary);
  --control-hover: color-mix(in srgb, var(--accent) 14%, var(--panel-secondary));
  --control-active: color-mix(in srgb, var(--accent) 22%, var(--panel-secondary));
  --on-accent: #ffffff;
  --shadow: rgba(0, 0, 0, 0.24);
  --success: #2e7d32;
  --warning: #ed9c00;
  --error: #b3261e;
  --focus-ring: color-mix(in srgb, var(--accent) 72%, transparent);
  --weather-bg: var(--panel-secondary);
  --weather-item-active: var(--control-active);
  --weather-line-temperature: var(--accent);
  --weather-line-rain: var(--accent2);
  --weather-line-wind: color-mix(in srgb, var(--accent) 48%, var(--accent2));
  --weather-fill-temperature: color-mix(in srgb, var(--accent) 20%, transparent);
  --weather-fill-rain: color-mix(in srgb, var(--accent2) 18%, transparent);
  --weather-fill-wind: color-mix(in srgb, var(--accent) 14%, var(--accent2) 10%);
  color-scheme: dark;
  background: var(--bg);
}

/* Elk nieuw thema heeft een eigen ritme: type, hoekafronding en rustige elevatie. */
body.theme-solarized {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body.theme-material {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body.theme-nord {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Solarized Dark: rustige, technische tonen zonder zwart of neon. */
body.theme-solarized {
  --bg: #002b36;
  --panel: #073642;
  --panel-secondary: #073642;
  --border: #35616a;
  --text: #eee8d5;
  --muted: #93a1a1;
  --accent: #268bd2;
  --accent2: #2aa198;
  --clock-hand-accent: #cb4b16;
  --success: #859900;
  --warning: #b58900;
  --error: #dc322f;
  --shadow: rgba(0, 31, 39, 0.28);
}

/* Material 3: lichte vlakken, paarse hiërarchie en subtiele elevatie. */
body.theme-material {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-secondary: #f0f1f5;
  --border: #cac4d0;
  --text: #1d1b20;
  --muted: #49454f;
  --accent: #6750a4;
  --accent2: #6750a4;
  --clock-hand-accent: #6750a4;
  --on-accent: #ffffff;
  --success: #2e7d32;
  --warning: #ed9c00;
  --error: #b3261e;
  --shadow: rgba(29, 27, 32, 0.15);
  color-scheme: light;
}

/* Nord: blauwgrijze systeemuitstraling met gedempte accentkleuren. */
body.theme-nord {
  --bg: #2e3440;
  --panel: #434c5e;
  --panel-secondary: #3b4252;
  --border: #4c566a;
  --text: #eceff4;
  --muted: #aeb8c5;
  --accent: #88c0d0;
  --accent2: #81a1c1;
  --clock-hand-accent: #88c0d0;
  --success: #a3be8c;
  --warning: #ebcb8b;
  --error: #bf616a;
  --shadow: rgba(20, 25, 34, 0.28);
}

body.theme-solarized canvas,
body.theme-material canvas,
body.theme-nord canvas {
  display: none;
}

body.theme-solarized .portal,
body.theme-material .portal,
body.theme-nord .portal {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: 0 12px 30px var(--shadow);
  backdrop-filter: none;
}

body.theme-solarized .portal::after,
body.theme-material .portal::after,
body.theme-nord .portal::after {
  opacity: 0;
}

/* Verwijder ook de bestaande glanslaag boven kaarten in de matte paletthema's. */
body.theme-solarized :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel)::before,
body.theme-material :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel)::before,
body.theme-nord :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel)::before {
  opacity: 0 !important;
}

body.theme-solarized .card,
body.theme-solarized .news-panel,
body.theme-solarized .status-footer,
body.theme-solarized .search-shell,
body.theme-solarized .private-note-panel,
body.theme-solarized .weather-panel,
body.theme-solarized .weather-panel-google,
body.theme-solarized .dashboard-block-library,
body.theme-material .card,
body.theme-material .news-panel,
body.theme-material .status-footer,
body.theme-material .search-shell,
body.theme-material .private-note-panel,
body.theme-material .weather-panel,
body.theme-material .weather-panel-google,
body.theme-material .dashboard-block-library,
body.theme-nord .card,
body.theme-nord .news-panel,
body.theme-nord .status-footer,
body.theme-nord .search-shell,
body.theme-nord .private-note-panel,
body.theme-nord .weather-panel,
body.theme-nord .weather-panel-google,
body.theme-nord .dashboard-block-library {
  color: var(--text);
  background: var(--panel) !important;
  border-color: var(--border);
  box-shadow: 0 4px 14px var(--shadow);
}

body.theme-solarized :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel):hover,
body.theme-solarized :is(.status-footer, .search-shell, .private-note-panel, .weather-panel):focus-within,
body.theme-material :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel):hover,
body.theme-material :is(.status-footer, .search-shell, .private-note-panel, .weather-panel):focus-within,
body.theme-nord :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel):hover,
body.theme-nord :is(.status-footer, .search-shell, .private-note-panel, .weather-panel):focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--shadow);
}

body.theme-solarized :is(.news-filter-button, .news-source, .weather-tab, .weather-google-day, .private-note-tab, .private-note-tab-add, .private-note-format-button, .private-note-button, .service-dialog-button, .weather-city-option, .style-press-button, .dashboard-block-remove, .dashboard-block-move, .service-card-remove, .service-dialog-close),
body.theme-material :is(.news-filter-button, .news-source, .weather-tab, .weather-google-day, .private-note-tab, .private-note-tab-add, .private-note-format-button, .private-note-button, .service-dialog-button, .weather-city-option, .style-press-button, .dashboard-block-remove, .dashboard-block-move, .service-card-remove, .service-dialog-close),
body.theme-nord :is(.news-filter-button, .news-source, .weather-tab, .weather-google-day, .private-note-tab, .private-note-tab-add, .private-note-format-button, .private-note-button, .service-dialog-button, .weather-city-option, .style-press-button, .dashboard-block-remove, .dashboard-block-move, .service-card-remove, .service-dialog-close) {
  color: var(--text);
  background: var(--control);
  border-color: var(--border);
}

body.theme-solarized :is(button, .news-list a, .search-suggestion-button, .service-icon-choice, .weather-city-option):hover,
body.theme-material :is(button, .news-list a, .search-suggestion-button, .service-icon-choice, .weather-city-option):hover,
body.theme-nord :is(button, .news-list a, .search-suggestion-button, .service-icon-choice, .weather-city-option):hover {
  color: var(--text);
  background-color: var(--control-hover);
  border-color: var(--accent);
  box-shadow: none !important;
}

body.theme-solarized :is(.news-filter-button.is-active, .private-note-tab.is-active, .private-note-format-button.is-active, .weather-google-day.is-active, .weather-city-option.is-selected, .service-icon-choice.is-selected, .service-dialog-button.is-primary),
body.theme-material :is(.news-filter-button.is-active, .private-note-tab.is-active, .private-note-format-button.is-active, .weather-google-day.is-active, .weather-city-option.is-selected, .service-icon-choice.is-selected, .service-dialog-button.is-primary),
body.theme-nord :is(.news-filter-button.is-active, .private-note-tab.is-active, .private-note-format-button.is-active, .weather-google-day.is-active, .weather-city-option.is-selected, .service-icon-choice.is-selected, .service-dialog-button.is-primary) {
  color: var(--text);
  background: var(--control-active);
  border-color: var(--accent);
}

body.theme-material :is(.service-dialog-button.is-primary, .private-note-button) {
  color: var(--on-accent);
  background: var(--accent);
}

body.theme-material :is(button, .news-list a, .search-suggestion-button):active {
  transform: translateY(1px);
}

/* Hover laat alleen kleur en rand veranderen; geen kleurige of uitzettende gloed. */
body.theme-solarized :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library):hover,
body.theme-material :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library):hover,
body.theme-nord :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library):hover {
  box-shadow: none !important;
}

body.theme-solarized :is(.google-search-input, .search-input, .private-note-pin, .private-note-text-wrap, .private-note-tab-rename-input, .service-field input, .service-icon-search, .search-suggestions, .weather-location-dialog, .service-dialog, .help-dialog),
body.theme-material :is(.google-search-input, .search-input, .private-note-pin, .private-note-text-wrap, .private-note-tab-rename-input, .service-field input, .service-icon-search, .search-suggestions, .weather-location-dialog, .service-dialog, .help-dialog),
body.theme-nord :is(.google-search-input, .search-input, .private-note-pin, .private-note-text-wrap, .private-note-tab-rename-input, .service-field input, .service-icon-search, .search-suggestions, .weather-location-dialog, .service-dialog, .help-dialog) {
  color: var(--text);
  background: var(--panel-secondary);
  border-color: var(--border);
}

body.theme-solarized :is(input, textarea, button, [tabindex]):focus-visible,
body.theme-material :is(input, textarea, button, [tabindex]):focus-visible,
body.theme-nord :is(input, textarea, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

body.theme-solarized :is(.service-form-error, .private-note-status[data-state="error"]),
body.theme-material :is(.service-form-error, .private-note-status[data-state="error"]),
body.theme-nord :is(.service-form-error, .private-note-status[data-state="error"]) {
  color: var(--error);
}

body.theme-solarized .private-note-status[data-state="saved"],
body.theme-material .private-note-status[data-state="saved"],
body.theme-nord .private-note-status[data-state="saved"] {
  color: var(--success);
}

body.theme-solarized :is(.icon, .dashboard-action-icon, .layout-edit-icon),
body.theme-material :is(.icon, .dashboard-action-icon, .layout-edit-icon),
body.theme-nord :is(.icon, .dashboard-action-icon, .layout-edit-icon) {
  color: var(--accent2);
  stroke: currentColor;
}

body.theme-solarized ::-webkit-scrollbar-thumb,
body.theme-material ::-webkit-scrollbar-thumb,
body.theme-nord ::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--panel-secondary);
  border-radius: 999px;
}

body.theme-solarized *,
body.theme-material *,
body.theme-nord * {
  scrollbar-color: var(--accent) var(--panel-secondary);
}

body.theme-material :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library, .service-dialog, .help-dialog) {
  border-radius: 20px;
}

body.theme-material :is(.news-filter-button, .news-source, .weather-tab, .weather-google-day, .private-note-tab, .private-note-tab-add, .private-note-format-button, .private-note-button, .service-dialog-button, .weather-city-option, .style-press-button) {
  border-radius: 999px;
}

body.theme-material :is(.google-search-input, .search-input, .private-note-pin, .private-note-text-wrap, .private-note-tab-rename-input, .service-field input, .service-icon-search) {
  border-radius: 12px;
}

body.theme-solarized :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library, .service-dialog, .help-dialog) {
  border-radius: 12px;
}

body.theme-solarized :is(.news-filter-button, .news-source, .weather-tab, .weather-google-day, .private-note-tab, .private-note-tab-add, .private-note-format-button, .private-note-button, .service-dialog-button, .weather-city-option, .style-press-button, .google-search-input, .search-input, .private-note-pin, .private-note-text-wrap, .private-note-tab-rename-input, .service-field input, .service-icon-search) {
  border-radius: 6px;
}

body.theme-nord :is(.card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library, .service-dialog, .help-dialog) {
  border-radius: 14px;
}

body.theme-nord :is(.news-filter-button, .news-source, .weather-tab, .weather-google-day, .private-note-tab, .private-note-tab-add, .private-note-format-button, .private-note-button, .service-dialog-button, .weather-city-option, .style-press-button, .google-search-input, .search-input, .private-note-pin, .private-note-text-wrap, .private-note-tab-rename-input, .service-field input, .service-icon-search) {
  border-radius: 8px;
}

/* Material-verfijningen: een vaste paarse tegel maakt elk bron-SVG zichtbaar. */
body.theme-material .service-icon-choice img {
  filter: brightness(0) invert(1) !important;
}

body.theme-material .service-icon-choice {
  color: #ffffff;
  background: var(--accent) !important;
  border-color: var(--accent);
  box-shadow: none;
}

body.theme-material .service-icon-choice:hover,
body.theme-material .service-icon-choice:focus-visible,
body.theme-material .service-icon-choice.is-selected {
  background: #4f378b !important;
  border-color: #1d1b20;
}

/* Material gebruikt overal hetzelfde primaire paars als visueel accent. */
body.theme-material .service-icon-img {
  filter: brightness(0) saturate(100%) invert(35%) sepia(16%) saturate(3440%) hue-rotate(230deg) brightness(90%) contrast(88%) !important;
}

body.theme-material .card .icon {
  color: var(--accent);
  opacity: 0.82;
}

body.theme-material .card:hover .icon {
  color: var(--accent);
  opacity: 1;
  transform: none;
}

body.theme-material .clock-center {
  filter: none;
}

body.theme-material .title-dot {
  color: var(--accent);
  text-shadow: none;
}

/* Nieuws gebruikt één Material-kleurtaal in plaats van de oude bronkleuren. */
body.theme-material .news-filter-button {
  color: var(--muted);
  background: var(--panel-secondary);
  border-color: var(--border);
}

body.theme-material .news-filter-button:hover,
body.theme-material .news-filter-button.is-active,
body.theme-material .news-panel:hover .news-filter-button[data-news-filter].is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

body.theme-material .news-source,
body.theme-material .news-panel:hover .news-source[data-source] {
  color: #6750a4;
  background: #eaddff;
  border-color: #d0bcff;
  box-shadow: none;
}

/* Het zoekveld krijgt binnenruimte als zelfstandig, licht Material-invoerveld. */
body.theme-material .search-shell {
  padding: 8px 12px;
}

body.theme-material .google-search-input {
  min-height: 44px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

body.theme-material .google-search-input:focus {
  border-color: var(--accent);
}

/* Losse, gecentreerde weerknoppen voorkomen dat labels tegen elkaar of bovenaan staan. */
body.theme-material .weather-tabs {
  align-items: stretch;
  gap: 8px;
}

body.theme-material .weather-tab,
body.theme-material .weather-tab:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  line-height: 1;
  color: var(--muted);
  background: var(--panel-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
}

body.theme-material .weather-tab::after {
  display: none;
}

body.theme-material .weather-tab:hover {
  color: var(--text);
  background: #eaddff;
  border-color: var(--accent);
}

body.theme-material .weather-tab.is-active,
body.theme-material .weather-tab.is-active:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

/* Nord gebruikt één gedempt lichtblauw accent voor service-, titel- en klokdetails. */
body.theme-nord .service-icon-choice img {
  filter: brightness(0) invert(1) !important;
}

body.theme-nord .service-icon-choice {
  color: #eceff4;
  background: #5e81ac !important;
  border-color: #5e81ac;
  box-shadow: none;
}

body.theme-nord .service-icon-choice:hover,
body.theme-nord .service-icon-choice:focus-visible,
body.theme-nord .service-icon-choice.is-selected {
  background: #4c566a !important;
  border-color: #88c0d0;
}

body.theme-nord .service-icon-img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(24%) saturate(663%) hue-rotate(143deg) brightness(87%) contrast(87%) !important;
}

body.theme-nord .card .icon {
  color: var(--accent);
  opacity: 0.82;
}

body.theme-nord .card:hover .icon {
  color: var(--accent);
  opacity: 1;
  transform: none;
}

body.theme-nord .clock-center {
  filter: none;
}

body.theme-nord .title-dot {
  color: var(--accent);
  text-shadow: none;
}

/* Nieuws behoudt de bronlabels, maar niet de botsende oude bronkleuren. */
body.theme-nord .news-filter-button {
  color: var(--muted);
  background: var(--panel-secondary);
  border-color: var(--border);
}

body.theme-nord .news-filter-button:hover,
body.theme-nord .news-filter-button.is-active,
body.theme-nord .news-panel:hover .news-filter-button[data-news-filter].is-active {
  color: #eceff4;
  background: #5e81ac;
  border-color: #88c0d0;
}

body.theme-nord .news-source,
body.theme-nord .news-panel:hover .news-source[data-source] {
  color: #88c0d0;
  background: #3b4252;
  border-color: #4c566a;
  box-shadow: none;
}

/* Een afzonderlijk zoekvlak geeft de tekst dezelfde comfortabele binnenruimte als Material. */
body.theme-nord .search-shell {
  padding: 8px 12px;
}

body.theme-nord .google-search-input {
  min-height: 44px;
  padding: 0 14px;
  background: var(--panel-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
}

body.theme-nord .google-search-input:focus {
  border-color: var(--accent);
}

/* Gescheiden, gecentreerde Nord-knoppen voor de drie weerweergaven. */
body.theme-nord .weather-tabs {
  align-items: stretch;
  gap: 8px;
}

body.theme-nord .weather-tab,
body.theme-nord .weather-tab:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  line-height: 1;
  color: var(--muted);
  background: var(--panel-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
}

body.theme-nord .weather-tab::after {
  display: none;
}

body.theme-nord .weather-tab:hover {
  color: var(--text);
  background: #4c566a;
  border-color: var(--accent);
}

body.theme-nord .weather-tab.is-active,
body.theme-nord .weather-tab.is-active:hover {
  color: #eceff4;
  background: #5e81ac;
  border-color: #88c0d0;
}

/* Solarized Dark is bewust hoekig en technisch: geen afgeronde vormen of glans. */
body.theme-solarized *,
body.theme-solarized *::before,
body.theme-solarized *::after {
  border-radius: 0 !important;
}

body.theme-solarized :is(.portal, .card, .news-panel, .status-footer, .search-shell, .private-note-panel, .weather-panel, .weather-panel-google, .dashboard-block-library, .service-dialog, .help-dialog, .theme-menu) {
  box-shadow: none !important;
}

/* Service-iconen combineren Solarized-blauw en -cyaan op donkere, rustige vlakken. */
body.theme-solarized .service-icon-choice img {
  filter: brightness(0) invert(1) !important;
}

body.theme-solarized .service-icon-choice {
  color: #eee8d5;
  background: #268bd2 !important;
  border-color: #268bd2;
  box-shadow: none;
}

body.theme-solarized .service-icon-choice:hover,
body.theme-solarized .service-icon-choice:focus-visible,
body.theme-solarized .service-icon-choice.is-selected {
  background: #2aa198 !important;
  border-color: #eee8d5;
}

body.theme-solarized .service-icon-img {
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(510%) hue-rotate(121deg) brightness(89%) contrast(88%) !important;
}

body.theme-solarized .card .icon {
  color: var(--accent2);
  opacity: 0.84;
}

body.theme-solarized .card:hover .icon {
  color: var(--accent2);
  opacity: 1;
  transform: none;
}

body.theme-solarized .clock-center {
  filter: none;
}

body.theme-solarized .title-dot {
  color: var(--accent2);
  text-shadow: none;
}

/* Nieuwsbronnen krijgen hun eigen gedempte Solarized-signaalkleur. */
body.theme-solarized .news-filter-button {
  color: var(--muted);
  background: #073642;
  border-color: #35616a;
}

body.theme-solarized .news-filter-button:hover,
body.theme-solarized .news-filter-button.is-active,
body.theme-solarized .news-panel:hover .news-filter-button[data-news-filter].is-active {
  color: #eee8d5;
  background: #268bd2;
  border-color: #268bd2;
}

body.theme-solarized .news-panel:hover .news-filter-button[data-news-filter="nos"].is-active {
  background: #dc322f;
  border-color: #dc322f;
}

body.theme-solarized .news-panel:hover .news-filter-button[data-news-filter="nu"].is-active {
  background: #268bd2;
  border-color: #268bd2;
}

body.theme-solarized .news-panel:hover .news-filter-button[data-news-filter="tweakers"].is-active {
  background: #859900;
  border-color: #859900;
}

body.theme-solarized .news-panel:hover .news-filter-button[data-news-filter="l1"].is-active {
  background: #6c71c4;
  border-color: #6c71c4;
}

body.theme-solarized .news-source {
  color: #93a1a1;
  background: #002b36;
  border-color: #35616a;
  box-shadow: none;
}

/* Brontags blijven bij paneelhover bewust rustig en goed leesbaar. */
body.theme-solarized .news-panel:hover .news-source[data-source] {
  color: #93a1a1;
  background: #002b36;
  border-color: #35616a;
}

/* Alleen het aangewezen nieuwsitem toont de herkenbare Solarized-bronkleur. */
body.theme-solarized .news-list a:hover .news-source[data-source="nos"],
body.theme-solarized .news-list a:focus-visible .news-source[data-source="nos"] {
  color: #eee8d5;
  background: #dc322f;
  border-color: #dc322f;
}

body.theme-solarized .news-list a:hover .news-source[data-source="nu"],
body.theme-solarized .news-list a:focus-visible .news-source[data-source="nu"] {
  color: #eee8d5;
  background: #268bd2;
  border-color: #268bd2;
}

body.theme-solarized .news-list a:hover .news-source[data-source="tweakers"],
body.theme-solarized .news-list a:focus-visible .news-source[data-source="tweakers"] {
  color: #eee8d5;
  background: #859900;
  border-color: #859900;
}

body.theme-solarized .news-list a:hover .news-source[data-source="l1"],
body.theme-solarized .news-list a:focus-visible .news-source[data-source="l1"] {
  color: #eee8d5;
  background: #6c71c4;
  border-color: #6c71c4;
}

/* Een compact, afgebakend zoekveld met de rustige Solarized-achtergrond. */
body.theme-solarized .search-shell {
  padding: 8px 12px;
}

body.theme-solarized .google-search-input {
  min-height: 44px;
  padding: 0 14px;
  background: #002b36;
  border: 1px solid #35616a;
}

body.theme-solarized .google-search-input:focus {
  border-color: #268bd2;
}

/* Vierkante, gecentreerde tabknoppen gebruiken blauw, cyaan en paars per weergave. */
body.theme-solarized .weather-tabs {
  align-items: stretch;
  gap: 8px;
}

body.theme-solarized .weather-tab,
body.theme-solarized .weather-tab:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  line-height: 1;
  color: var(--muted);
  background: #073642;
  border: 1px solid #35616a;
}

body.theme-solarized .weather-tab::after {
  display: none;
}

body.theme-solarized .weather-tab:hover {
  color: #eee8d5;
  background: #073642;
  border-color: #268bd2;
}

body.theme-solarized .weather-tab.is-active,
body.theme-solarized .weather-tab.is-active:hover {
  color: #eee8d5;
  background: #268bd2;
  border-color: #268bd2;
}

body.theme-solarized .weather-tab[data-weather-chart="rain"].is-active,
body.theme-solarized .weather-tab[data-weather-chart="rain"].is-active:hover {
  background: #2aa198;
  border-color: #2aa198;
}

body.theme-solarized .weather-tab[data-weather-chart="wind"].is-active,
body.theme-solarized .weather-tab[data-weather-chart="wind"].is-active:hover {
  background: #6c71c4;
  border-color: #6c71c4;
}

/* OLED-statusinformatie blijft scherp: grijs-antialiasing zonder 3D-kleurfringing. */
body.theme-oled .status-footer,
body.theme-oled .status-item,
body.theme-oled .status-item b,
body.theme-oled .status-item span {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.theme-oled .status-footer {
  isolation: isolate;
}

body.theme-oled.tilt-enabled .status-footer {
  transform: none;
}

/* Nord-letterzee: lage contrasten houden de typografie decoratief en rustig. */
.nord-letter-sea {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}

body.theme-nord .nord-letter-sea {
  display: block;
}

/* Material Beziers: fijne paarse lijnen achter het randloze portaal. */
.material-bezier-sea {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
}

body.theme-material .material-bezier-sea {
  display: block;
}

/* Solarized Matrix: technische tekenregen met beheerst blauw en cyaan. */
.solarized-matrix-sea {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.76;
}

body.theme-solarized .solarized-matrix-sea {
  display: block;
}

/* LCD-kristalvelden: trage, hoekige polarisatievormen achter de behuizing. */
.lcd-crystal-sea {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.86;
}

body.theme-lcd canvas.lcd-crystal-sea {
  display: block !important;
}

body.background-effects-disabled canvas {
  display: none !important;
}

/* LCD heeft ook CSS-scanlines; die horen bij dezelfde effectschakelaar. */
body.theme-lcd.background-effects-disabled::after {
  display: none;
}

body.theme-lcd.background-effects-disabled .portal::after {
  opacity: 0;
}

/* Deze specifieke canvasregels winnen van de individuele themaweergaveregels. */
body.background-effects-disabled canvas.nord-letter-sea,
body.background-effects-disabled canvas.material-bezier-sea,
body.background-effects-disabled canvas.solarized-matrix-sea,
body.background-effects-disabled canvas.lcd-crystal-sea {
  display: none !important;
}

/* Nord houdt alle onderknoppen visueel gelijk, inclusief thema- en helpbediening. */
body.theme-nord :is(#style-press-button, #help-button, #background-effects-button) {
  color: var(--accent);
  background: var(--control);
  border-color: var(--border);
  box-shadow: none;
}

body.theme-nord :is(#style-press-button, #help-button, #background-effects-button):hover,
body.theme-nord :is(#style-press-button, #help-button, #background-effects-button):focus-visible {
  color: var(--accent);
  background: var(--control-hover);
  border-color: var(--accent);
  box-shadow: none;
}

/* Solarized en Material gebruiken dezelfde consistente onderknop-hiërarchie. */
body.theme-solarized :is(#style-press-button, #help-button, #background-effects-button) {
  color: var(--accent2);
  background: var(--control);
  border-color: var(--border);
  box-shadow: none;
}

body.theme-solarized :is(#style-press-button, #help-button, #background-effects-button):hover,
body.theme-solarized :is(#style-press-button, #help-button, #background-effects-button):focus-visible {
  color: var(--accent2);
  background: var(--control-hover);
  border-color: var(--accent2);
  box-shadow: none;
}

body.theme-material :is(#style-press-button, #help-button, #background-effects-button) {
  color: var(--accent);
  background: var(--control);
  border-color: var(--border);
  box-shadow: none;
}

body.theme-material :is(#style-press-button, #help-button, #background-effects-button):hover,
body.theme-material :is(#style-press-button, #help-button, #background-effects-button):focus-visible {
  color: var(--accent);
  background: var(--control-hover);
  border-color: var(--accent);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .nord-letter-sea {
    display: none !important;
  }

  .material-bezier-sea {
    display: none !important;
  }

  .solarized-matrix-sea {
    display: none !important;
  }

  .lcd-crystal-sea {
    display: none !important;
  }
}

.theme-menu-swatch.is-solarized {
  background: linear-gradient(135deg, #002b36 0 50%, #268bd2 50% 72%, #2aa198 72% 100%);
  border-color: #35616a;
}

.theme-menu-swatch.is-material {
  background: linear-gradient(135deg, #ffffff 0 52%, #6750a4 52% 100%);
  border-color: #cac4d0;
}

.theme-menu-swatch.is-nord {
  background: linear-gradient(135deg, #2e3440 0 52%, #88c0d0 52% 100%);
  border-color: #4c566a;
}

body.theme-solarized .theme-menu,
body.theme-material .theme-menu,
body.theme-nord .theme-menu {
  color: var(--text);
  background: var(--panel-secondary);
  border-color: var(--border);
  box-shadow: 0 12px 30px var(--shadow);
  backdrop-filter: none;
}

body.theme-solarized .theme-menu-option:hover,
body.theme-solarized .theme-menu-option:focus-visible,
body.theme-solarized .theme-menu-option.is-selected,
body.theme-material .theme-menu-option:hover,
body.theme-material .theme-menu-option:focus-visible,
body.theme-material .theme-menu-option.is-selected,
body.theme-nord .theme-menu-option:hover,
body.theme-nord .theme-menu-option:focus-visible,
body.theme-nord .theme-menu-option.is-selected {
  color: var(--text);
  background: var(--control-active);
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .about-me-panel {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .about-me-content h2 {
    font-size: 24px;
  }

  .about-me-content p {
    font-size: 14px;
  }

  .weather-location-editor {
    top: 10px;
    right: 10px;
  }

  .weather-city-options {
    grid-template-columns: 1fr;
    max-height: min(300px, 38dvh);
  }
}
