@font-face {
  font-family: "ds-system";
  src: url("../assets/fonts/nitrods-font.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "ds-clock";
  src: url("../assets/fonts/ds-clock.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #fbfbfb;
  --stripe: #e3e3e3;
  --grid-small: #c3c3c3;
  --grid-large: #aaaaaa;

  --clock-face: #b2b2b2;
  --clock-center: #494949;
  --clock-dot: #797979;

  --cal-header: #696969;
  --cal-sun-head: #d30000;
  --cal-sat-head: #0041c3;
  --cal-sun: #fba2eb;
  --cal-sat: #82aafb;
  --cal-sun-text: #790000;
  --cal-sat-text: #000082;
  --cal-border: #929292;

  --ink: #111111;

  /* favorite color (DS firmware setting); overridden via [data-accent] */
  --accent: #61829a;

  --grid-top:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Crect%20x='15'%20width='1'%20height='16'%20fill='%23c3c3c3'/%3E%3Crect%20y='15'%20width='16'%20height='1'%20fill='%23c3c3c3'/%3E%3C/svg%3E");
  --grid-bottom:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%3E%3Crect%20x='47'%20width='1'%20height='48'%20fill='%23aaaaaa'/%3E%3Crect%20y='47'%20width='48'%20height='1'%20fill='%23aaaaaa'/%3E%3Crect%20x='45'%20y='45'%20width='3'%20height='3'%20fill='%23aaaaaa'/%3E%3C/svg%3E");
  --scanlines: repeating-linear-gradient(0deg, #ffffff 0 1px, var(--stripe) 1px 2px);
}

[data-accent="slate"] { --accent: #61829a; }
[data-accent="maroon"] { --accent: #ba4900; }
[data-accent="red"] { --accent: #fb0018; }
[data-accent="pink"] { --accent: #fb8afb; }
[data-accent="orange"] { --accent: #fb9200; }
[data-accent="yellow"] { --accent: #f3e300; }
[data-accent="neonyellow"] { --accent: #aafb00; }
[data-accent="lime"] { --accent: #00fb00; }
[data-accent="green"] { --accent: #00a238; }
[data-accent="teal"] { --accent: #49db8a; }
[data-accent="turquoise"] { --accent: #30baf3; }
[data-accent="blue"] { --accent: #0059f3; }
[data-accent="navy"] { --accent: #000092; }
[data-accent="darkpurple"] { --accent: #8a00d3; }
[data-accent="magenta"] { --accent: #d300eb; }
[data-accent="fuschia"] { --accent: #fb0092; }

:root {
  --swatch-slate: #61829a;
  --swatch-maroon: #ba4900;
  --swatch-red: #fb0018;
  --swatch-pink: #fb8afb;
  --swatch-orange: #fb9200;
  --swatch-yellow: #f3e300;
  --swatch-neonyellow: #aafb00;
  --swatch-lime: #00fb00;
  --swatch-green: #00a238;
  --swatch-teal: #49db8a;
  --swatch-turquoise: #30baf3;
  --swatch-blue: #0059f3;
  --swatch-navy: #000092;
  --swatch-darkpurple: #8a00d3;
  --swatch-magenta: #d300eb;
  --swatch-fuschia: #fb0092;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #c8ccce;
  color: var(--ink);
  font-family: "ds-system", "system-ui", sans-serif;
  -webkit-font-smoothing: none;
  font-smooth: never;
  letter-spacing: 0.5px;
}

img {
  image-rendering: pixelated;
}

a {
  color: var(--accent);
}

/* ============================= HOME SCREEN ============================= */

.ds-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, #e9ebec 0%, #c2c6c9 70%, #aab0b4 100%);
}

.ds-console {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(#dfe2e4, #c4c9cc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(0, 0, 0, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.35);
  transform: scale(var(--scale, 2));
  transform-origin: center center;
}

/* responsive scaling — console is ~288x440 unscaled; keep it on-screen */
@media (max-height: 940px) {
  .ds-console { --scale: 1.85; }
}

@media (max-height: 880px) {
  .ds-console { --scale: 1.7; }
}

@media (max-height: 820px) {
  .ds-console { --scale: 1.55; }
}

@media (max-width: 640px) {
  .ds-console { --scale: 1.7; }
}

@media (max-width: 560px) {
  .ds-console { --scale: 1.4; }
}

@media (max-width: 460px) {
  .ds-console { --scale: 1.15; }
}

@media (max-width: 380px) {
  .ds-console { --scale: 1; }
}

.ds-screen {
  position: relative;
  width: 256px;
  height: 192px;
  overflow: hidden;
  background-color: var(--bg);
  border: 1px solid #2a2a2a;
  box-shadow: 0 0 0 3px #1b1b1b;
}

.ds-screen--top {
  background-image: var(--grid-top), var(--scanlines);
}

.ds-screen--bottom {
  background-image: var(--grid-bottom), var(--scanlines);
}

/* ---- system bar ---- */

.ds-systembar {
  position: relative;
  display: flex;
  align-items: center;
  height: 16px;
  padding: 0 2px;
  background-color: var(--accent);
  background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.18));
  border-bottom: 1px solid #000;
  color: #fff;
  font-size: 8px;
  line-height: 16px;
}

.ds-systembar__name {
  flex: 1 1 auto;
  padding-left: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-systembar__sep {
  width: 1px;
  height: 15px;
  margin: 0 3px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.25);
}

.ds-systembar__time,
.ds-systembar__date {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ds-systembar__time .colon {
  animation: ds-blink 1s steps(1) infinite;
}

.ds-systembar__icon {
  width: 11px;
  height: 11px;
  margin: 0 1px;
}

@keyframes ds-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---- top screen contents ---- */

.ds-top-widgets {
  position: absolute;
  inset: 16px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

/* analog clock */

.ds-clock {
  position: relative;
  width: 97px;
  height: 97px;
  border: 1px solid #000;
  background: rgba(251, 251, 251, 0.5);
  box-shadow: 0 0 0 1px #d3d3d3, 0 0 0 2px var(--stripe);
}

.ds-clock__hands {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  z-index: 10;
}

.ds-clock__pivot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 5px;
  height: 5px;
  background: var(--clock-center);
}

.ds-clock__hand {
  position: absolute;
  bottom: 1px;
  margin-left: 3px;
  width: 2px;
  transform-origin: bottom center;
  z-index: -1;
}

.ds-clock__hand--hour { height: 24px; background: var(--clock-dot); }
.ds-clock__hand--min { height: 32px; background: var(--clock-dot); }
.ds-clock__hand--sec { height: 36px; background: var(--accent); }

.ds-clock__numbers {
  position: absolute;
  top: 0;
  left: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  font-family: "ds-clock", "system-ui";
  font-size: 20px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--clock-face);
}

.ds-clock__numbers .row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 1px;
}

.ds-clock__top { padding-top: 5px; }
.ds-clock__bottom { padding-bottom: 1px; }

/* calendar */

.ds-cal {
  width: 113px;
}

.ds-cal__header {
  position: relative;
  z-index: 10;
  height: 16px;
  border: 1px solid var(--grid-small);
  background: var(--bg);
  text-align: center;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 2px;
}

.ds-cal__body {
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 0 1px #d3d3d3, 0 0 0 2px var(--stripe);
}

.ds-cal__week,
.ds-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #000;
  border: 1px solid #000;
}

.ds-cal__days {
  border-top: 0;
  background: var(--cal-border);
}

.ds-cal__week span {
  display: grid;
  place-content: center;
  height: 15px;
  background: var(--cal-header);
  color: var(--bg);
  font-size: 7.5px;
}

.ds-cal__week span:first-child { background: var(--cal-sun-head); }
.ds-cal__week span:last-child { background: var(--cal-sat-head); }

.ds-cal__days div {
  position: relative;
  display: grid;
  place-content: center;
  height: 15px;
  background: var(--bg);
  color: #000;
  font-size: 7.5px;
}

.ds-cal__days div.sun { background: var(--cal-sun); color: var(--cal-sun-text); }
.ds-cal__days div.sat { background: var(--cal-sat); color: var(--cal-sat-text); }

.ds-cal__days div.today::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--accent);
  background-blend-mode: luminosity;
  clip-path: polygon(
    0 0, 100% 0, 100% 100%, 0 100%,
    0 2px, calc(100% - 2px) 2px, calc(100% - 2px) calc(100% - 2px),
    2px calc(100% - 2px), 2px 2px, 0 2px
  );
}

.ds-cal__days div span {
  position: relative;
  z-index: 10;
}

/* ---- bottom screen app menu ---- */

.ds-apps {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 6px 2px;
}

.ds-apps__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.ds-apps__row--wide { justify-content: center; }

.ds-apps__row--bottom {
  margin-top: auto;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 6px;
}

.ds-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  border: 0;
  margin: 0;
  padding: 1px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.ds-app img {
  display: block;
  pointer-events: none;
}

.ds-app__label {
  font-size: 7px;
  line-height: 1;
  color: #2a2a2a;
  text-align: center;
}

.ds-app--alarm { cursor: default; }

/* selection bracket */

.ds-select {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  transition: all 0.42s cubic-bezier(0.1, 0.5, 0.05, 1);
  opacity: 0;
}

.ds-select.ready { opacity: 1; }

.ds-select__corner {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--accent);
  clip-path: polygon(1px 0, 100% 0, 100% 5px, 5px 5px, 5px 100%, 0 100%, 0 1px, 1px 1px);
}

.ds-select__corner.tl { top: -1px; left: -1px; transform: rotate(0deg); }
.ds-select__corner.tr { top: -1px; right: -1px; transform: rotate(90deg); }
.ds-select__corner.br { bottom: -1px; right: -1px; transform: rotate(180deg); }
.ds-select__corner.bl { bottom: -1px; left: -1px; transform: rotate(270deg); }

/* launch animation */

.ds-console.launching .ds-screen--bottom .ds-apps,
.ds-console.launching .ds-screen--top .ds-top-widgets {
  animation: ds-floatout 0.5s steps(28) both;
}

.ds-console.launching .ds-select {
  opacity: 0;
}

@keyframes ds-floatout {
  to { transform: translateY(-220px); opacity: 0; }
}

.ds-console.booting .ds-screen {
  animation: ds-boot 0.45s ease-out both;
}

@keyframes ds-boot {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* dark mode (brightness) */

body.dark .ds-stage {
  background: #000;
}

body.dark .ds-console {
  background: linear-gradient(#2a2d2f, #16191b);
}

/* hint line under console */

.ds-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  font-size: 11px;
  color: #4a4f52;
}

body.dark .ds-hint { color: #888; }

.ds-hint a {
  pointer-events: auto !important;
  cursor: pointer;
}

/* ============================= CONTENT PAGES ============================= */

.ds-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

.ds-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  flex-shrink: 0;
  background-color: var(--accent);
  background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2));
  color: #fff;
  border-bottom: 2px solid #000;
}

.ds-bar--bottom {
  margin-top: auto;
  border-bottom: 0;
  border-top: 2px solid #000;
  flex-wrap: wrap;
}

.ds-bar__title {
  flex: 1 1 auto;
  font-size: 16px;
  letter-spacing: 1px;
}

.ds-bar__clock {
  font-size: 14px;
  white-space: nowrap;
}

.ds-bar__clock .colon { animation: ds-blink 1s steps(1) infinite; }

/* system-bar tool icons (brightness / color / currently) */

.ds-bar__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ds-bar__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid #000;
  box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.3), inset 1px 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.ds-bar__tool:hover,
.ds-bar__tool:focus-visible {
  background: rgba(255, 255, 255, 0.42);
  outline: none;
}

.ds-bar__tool img {
  display: block;
  pointer-events: none;
}

.ds-bar__sep {
  width: 2px;
  height: 18px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.25);
}

.ds-navbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: #efefef;
  color: #111;
  border: 2px solid #000;
  box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.25), inset 1px 1px 0 #fff;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.ds-navbtn:hover,
.ds-navbtn:focus-visible {
  background: #fff;
  outline: none;
}

.ds-navbtn[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

.ds-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 16px 28px;
  background-color: var(--bg);
  background-image: var(--grid-top), var(--scanlines);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #d3d6d8;
}

.ds-content::-webkit-scrollbar {
  width: 14px;
}

.ds-content::-webkit-scrollbar-track {
  background: #d3d6d8;
  border-left: 2px solid #000;
}

.ds-content::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border: 2px solid #000;
  background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2));
}

.ds-content::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.12);
}

.ds-window {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.18);
}

.ds-window__title {
  padding: 7px 12px;
  background-color: var(--accent);
  background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2));
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  border-bottom: 3px solid #000;
}

.ds-window__body {
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.85;
  color: #1b1b1b;
}

.ds-window__body h1 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.1;
}

.ds-window__body h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #000;
  border-bottom: 2px dashed var(--grid-large);
  padding-bottom: 5px;
}

.ds-window__body h3 {
  margin: 16px 0 4px;
  font-size: 15px;
  color: var(--accent);
}

.ds-window__body hr {
  margin: 18px 0;
  border: 0;
  border-top: 2px dashed var(--grid-large);
}

.ds-window__body p { margin: 0 0 12px; }

.ds-window__body a { color: var(--accent); word-break: break-word; }

.ds-window__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border: 2px solid #000;
}

.ds-window__body ul,
.ds-window__body ol {
  margin: 0 0 12px;
  padding-left: 18px;
}

.ds-window__body li { margin: 0 0 6px; }

.ds-footnote {
  margin: 16px 0 0;
  font-size: 10px;
  text-align: left;
  color: rgba(0, 0, 0, 0.35);
}

.ds-window + .ds-window {
  margin-top: 18px;
}

.ds-meta {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 14px;
}

.ds-meta dt { font-weight: bold; color: #000; }
.ds-meta dd { margin: 0; }

.ds-fold {
  margin: 0 0 12px;
  border: 2px solid #000;
}

.ds-fold > summary {
  padding: 7px 12px;
  background-color: var(--accent);
  background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2));
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.ds-fold > summary::-webkit-details-marker { display: none; }

.ds-fold > summary::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 8px;
  font-size: 10px;
  transition: transform 0.18s;
}

.ds-fold[open] > summary::before { transform: rotate(90deg); }

.ds-fold__inner {
  padding: 14px 16px;
  background: #fff;
}

/* theme picker dialog */

.ds-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
}

.ds-dialog.open { display: flex; }

.ds-dialog__box {
  width: min(360px, 100%);
  background: #fff;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.ds-dialog__title {
  padding: 8px 12px;
  background-color: var(--accent);
  background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2));
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  border-bottom: 3px solid #000;
}

.ds-dialog__body {
  padding: 14px;
}

.ds-dialog__body p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
}

.ds-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.ds-swatch {
  aspect-ratio: 1;
  border: 2px solid #000;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.ds-swatch.active {
  outline: 3px solid #000;
  outline-offset: 1px;
}

.ds-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* currently / status widget */

.ds-status__mood {
  margin: 0 0 12px;
  padding: 7px 10px;
  background: var(--accent);
  background-image: linear-gradient(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2));
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.5px;
  border: 2px solid #000;
}

.ds-status__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.ds-status__list dt {
  margin: 0;
  color: var(--accent);
  font-weight: bold;
  white-space: nowrap;
}

.ds-status__list dd {
  margin: 0;
  color: #1b1b1b;
}

.ds-status__foot {
  align-items: center;
  justify-content: space-between;
}

.ds-status__updated {
  font-size: 11px;
  color: #6a6f73;
  letter-spacing: 0.5px;
}

body.dark .ds-status__list dd { color: #d5d9dd; }
body.dark .ds-status__updated { color: #8a9096; }

@media (max-width: 520px) {
  .ds-window__body { font-size: 14px; }
  .ds-meta { grid-template-columns: 1fr; }
  .ds-meta dt { margin-top: 6px; }
}

/* ===== dark mode for content pages ===== */

body.dark .ds-content {
  background-color: #14171a;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Crect%20x='15'%20width='1'%20height='16'%20fill='%23272c30'/%3E%3Crect%20y='15'%20width='16'%20height='1'%20fill='%23272c30'/%3E%3C/svg%3E"),
    repeating-linear-gradient(0deg, #1a1e22 0 1px, #16191d 1px 2px);
  scrollbar-color: var(--accent) #202428;
}

body.dark .ds-content::-webkit-scrollbar-track {
  background: #202428;
}

body.dark .ds-window {
  background: #1d2125;
  border-color: #000;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

body.dark .ds-window__body {
  color: #d5d9dd;
}

body.dark .ds-window__body h1,
body.dark .ds-window__body h2 {
  color: #f0f2f4;
}

body.dark .ds-window__body h2 {
  border-bottom-color: #3a4046;
}

body.dark .ds-window__body hr {
  border-top-color: #3a4046;
}

body.dark .ds-footnote {
  color: rgba(255, 255, 255, 0.35);
}

body.dark .ds-fold {
  border-color: #000;
}

body.dark .ds-fold__inner {
  background: #1d2125;
}

body.dark .ds-navbtn {
  background: #2a2f34;
  color: #e6e9ec;
  border-color: #000;
  box-shadow: inset -1px -1px 0 rgba(0, 0, 0, 0.5), inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark .ds-navbtn:hover,
body.dark .ds-navbtn:focus-visible {
  background: #353b41;
}

body.dark .ds-navbtn[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

body.dark .ds-meta dt { color: #f0f2f4; }

body.dark .ds-dialog__box {
  background: #1d2125;
  border-color: #000;
}

body.dark .ds-dialog__body { color: #d5d9dd; }
body.dark .ds-dialog__body p { color: #aeb4ba; }
