/* Panora Life — Mono, the black, grey and white theme (Craig, 2026-10-19: "a black/gray/
 * white theme"). The fifth family beside Grove, Sunrise, Glacier and Ember (js/sky.js),
 * built like Ember, and like Ember it follows light and dark:
 *
 *   light  Home on a white page, near-black type, white cards, a black button;
 *   dark   a near-black sky with white type, and a light grey button with black type.
 *
 * Generated from css/ember.css with its colours swapped for greys (decision 0027); the
 * light rules hang off html.mono-light, which js/sky.js keeps true only for Mono in light.
 */

/* ---------- dark: an near-black sky ---------- */
html[data-sky='mono'] #wins-home.sky {
  --sky-ink: #f2f2f2;
}
html[data-sky='mono'] #wins-home.sky-morning {
  --sky-bg:
    radial-gradient(90% 45% at 78% -6%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #4a4a4c 0%, #303032 34%, #1b1b1c 68%, #0b0b0b 100%);
}
html[data-sky='mono'] #wins-home.sky-afternoon {
  --sky-bg:
    radial-gradient(90% 45% at 78% -6%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #4d4d4f 0%, #323234 34%, #1c1c1d 68%, #0c0c0c 100%);
}
html[data-sky='mono'] #wins-home.sky-evening {
  --sky-bg:
    radial-gradient(90% 45% at 78% -6%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #3e3e40 0%, #28282a 34%, #161617 68%, #080808 100%);
}
html[data-sky='mono'] #wins-home.sky-night {
  --sky-bg:
    radial-gradient(80% 40% at 78% -6%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #2c2c2e 0%, #1a1a1b 45%, #070707 100%);
}
html[data-sky='mono'].on-home:has(#wins-home.sky) body {
  background-color: #0b0b0b;
}
html[data-sky='mono'] #wins-home.sky .welcome-card {
  --sky-deep: #262626;
}
html[data-sky='mono'] .appbar {
  background: linear-gradient(100deg, #262626 0%, #333333 50%, #404040 100%) !important;
}
html[data-sky='mono'] .appbar .homebtn,
html[data-sky='mono'] .appbar .homebtn span {
  color: #ffffff !important;
}
/* The opening screen in Mono: near-black with a faint white glow, white type. */
html[data-sky='mono'] #splash {
  color: #f2f2f2;
  background:
    radial-gradient(70% 45% at 50% 44%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #2e2e2e, #232323 35%, #191919 70%, #0f0f0f);
}
html[data-sky='mono'] #splash .sp-tag {
  color: #f2f2f2;
}
.sky-pick .sw-mono {
  /* Both halves as gradients, silver and charcoal, like the theme's two skies. */
  background: linear-gradient(135deg, #f7f7f8 0%, #d6d7da 50%, #4a4a4c 50%, #0b0b0b 100%);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.12);
}

/* ---------- light: the white page ---------- */
html.mono-light #wins-home.sky {
  --sky-ink: #111111;
  --sky-bg:
    radial-gradient(90% 45% at 78% -6%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f7f7f8 0%, #e9e9eb 40%, #d6d7da 75%, #c6c7cb 100%);
  color: #111111;
}
html.mono-light #wins-home.sky::before,
html.mono-light #wins-home.sky-morning::before,
html.mono-light #wins-home.sky-afternoon::before,
html.mono-light #wins-home.sky-evening::before,
html.mono-light #wins-home.sky-night::before {
  background:
    radial-gradient(90% 45% at 78% -6%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #f7f7f8 0%, #e9e9eb 40%, #d6d7da 75%, #c6c7cb 100%);
}
html.mono-light #wins-home.sky::after {
  background: none;
}
html.mono-light.on-home body,
html.mono-light.on-home:has(#wins-home.sky) body {
  background-color: #c6c7cb;
  background-image: none;
}
html.mono-light #wins-home.sky .sky-line {
  text-shadow: none;
}
/* Cards: solid white instead of frosted glass */
html.mono-light #wins-home.sky .sky-glass,
html.mono-light #wins-home.sky .rv-open,
html.mono-light #wins-home.sky .wins-recent,
html.mono-light #wins-home.sky .welcome-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #111111;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
/* The one next step: the black button */
html.mono-light #wins-home.sky .today-next,
html.mono-light #wins-home.sky .sky-go {
  background: #111111;
  border-color: #111111;
  color: #fff;
}
html.mono-light #wins-home.sky .today-next span {
  color: #fff;
}
html.mono-light #wins-home.sky p.today-next.done {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #111111;
}
html.mono-light #wins-home.sky .wins-total .num,
html.mono-light #wins-home.sky .mw-n,
html.mono-light #wins-home.sky .statrow .num,
html.mono-light #wins-home.sky .rv-open-c,
html.mono-light #wins-home.sky .wins-rules,
html.mono-light #wins-home.sky .wins-rules summary,
html.mono-light #wins-home.sky .topbar h1,
html.mono-light #wins-home.sky .iconbtn {
  color: #111111;
}
html.mono-light #wins-home.sky .rv-open-s,
html.mono-light #wins-home.sky .sectionlbl,
html.mono-light #wins-home.sky .wins-rules .muted,
html.mono-light #wins-home.sky .muted {
  color: rgba(17, 17, 17, 0.72);
}
html.mono-light #wins-home.sky .sky-row {
  border-bottom-color: rgba(17, 17, 17, 0.12);
}
html.mono-light #wins-home.sky .statrow {
  border-top-color: rgba(17, 17, 17, 0.14);
}
html.mono-light #wins-home.sky .mw-track {
  fill: rgba(17, 17, 17, 0.1);
}
html.mono-light #wins-home.sky .wins-day.today .dot.mw {
  box-shadow:
    0 0 0 2px rgba(17, 17, 17, 0),
    0 0 0 3px #111111;
}
html.mono-light #wins-home.sky .mw-frost {
  background: rgba(255, 255, 255, 0.9);
}
html.mono-light #wins-home.sky .score-how {
  text-decoration-color: rgba(17, 17, 17, 0.4);
}
html.mono-light #wins-home.sky .sky-card:focus-visible,
html.mono-light #wins-home.sky .sky-go:focus-visible {
  outline-color: #111111;
}
html.mono-light .appbar {
  box-shadow: none;
}
/* The score's bars, in grey on white */
html.mono-light #wins-home.sky .score-board {
  color: #111111;
}
html.mono-light #wins-home.sky .score-row {
  background: #ffffff;
  border-color: #e0e0e0;
}
html.mono-light #wins-home.sky .sr-bar {
  background: rgba(17, 17, 17, 0.08);
}

/* ---------- inside the parts ---------- */
/* Light: the parts sit on the same white and greys. */
html.mono-light {
  --canvas: #f4f4f4;
  --surface: #ffffff;
  --surface-quiet: #f0f0f0;
  --edge-strong: #d6d6d6;
}
/* Dark: near-black surfaces, and a light grey button with black type. */
html[data-sky='mono']:not(.mono-light) {
  --canvas: #0e0e0e;
  --surface: #191919;
  --surface-quiet: #222222;
  --edge-strong: #3a3a3a;
}
/* The grey only while it is Mono's own accent (no other accent set). */
html[data-sky='mono']:not(.mono-light):not([data-accent]) {
  --accent: #e6e6e6;
  --accent-hi: #ffffff;
  --accent-lo: #cccccc;
  --accent-ink: #111111;
  --accent-text: #e6e6e6;
  --accent-wash: rgba(255, 255, 255, 0.12);
}

/* Light: black is the accent (buttons, links, the selected tab). */
html.mono-light:not([data-accent]) {
  --accent: #111111;
  --accent-hi: #000000;
  --accent-lo: #333333;
  --accent-ink: #ffffff;
  --accent-text: #111111;
  --accent-wash: rgba(0, 0, 0, 0.07);
}

/* The wheel's ink, and dark mode deepened with plain black rather than the night blue the
   other families use (css/sky.css), so nothing in Mono has a hue. */
html[data-sky='mono'] {
  --wheel-ink: #111111;
}
:root[data-theme='dark'][data-sky='mono'].on-home body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}
:root[data-theme='dark'][data-sky='mono'] #wins-home.sky::before {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--sky-bg, none);
}
:root[data-theme='dark'][data-sky='mono'] .appbar {
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.42);
}
@media (prefers-color-scheme: dark) {
  :root[data-sky='mono']:not([data-theme='light']).on-home body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  }
  :root[data-sky='mono']:not([data-theme='light']) #wins-home.sky::before {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--sky-bg, none);
  }
  :root[data-sky='mono']:not([data-theme='light']) .appbar {
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.42);
  }
}

/* Each part's data colour (standard.css T2), in greys a shade apart like the wheel. */
html[data-sky='mono'] {
  --pc-food: #a3a3a3;
  --pc-exercise: #c7c7c7;
  --pc-unplug: #b5b5b5;
  --pc-sleep: #7d7d7d;
  --pc-still: #8f8f8f;
  --pc-focus: #9b9b9b;
  --pc-know: #d2d2d2;
  --pc-money: #bdbdbd;
}
