/* ==========================================================================
   MacroDaddy Progress — OuiDaddy family look (shared with RAWDaddy, StripDaddy)

   Built the way raw.ouidaddy.app is: a quiet graphite ground, surfaces with
   1px lines, 10–20px corners, Archivo set tight, one accent, and the family
   wordmark ("Macro" in ink, "Daddy" on a tag tipped up 2.5°).

   What makes it MacroDaddy rather than RAWDaddy: the accent and the tag are
   MacroDaddy's teal (the colour of its app icon), not RAWDaddy's chartreuse,
   and the icon is the MacroDaddy lifters.
   ========================================================================== */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/archivo.woff2") format("woff2-variations"), url("./fonts/archivo.woff2") format("woff2");
}
/* Bricolage Grotesque 800, cut to the letters of the family wordmarks (Macro, RAW, Strip, Oui + Daddy).
   Only for the wordmark; any other letter falls back. */
@font-face {
  font-family: "MD Brand";
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("./fonts/brand.woff2") format("woff2");
}

:root {
  /* light */
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #efeeea;
  --well: #f7f6f3;
  --line: #e1dfd9;
  --line-strong: #c8c5bd;
  --text: #151719;
  --text-2: #4c5054;
  --text-3: #63676c;

  --accent: #007d86;        /* MacroDaddy teal — white on it is 4.96:1 */
  --accent-hover: #006c74;
  --accent-ink: #ffffff;
  --accent-tint: #dff1f2;
  --link: #00656d;          /* the icon's teal, as text */
  --danger: #c0301a;

  --ring: 0 0 0 3px rgba(0, 125, 134, 0.28);
  --shadow-md: 0 6px 20px -8px rgba(21, 23, 25, 0.16);
  --shadow-lg: 0 24px 60px -24px rgba(21, 23, 25, 0.35);

  --logo-bg: #00656d;
  --logo-ink: #f2fbfb;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Archivo Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* dark: the default MacroDaddy users see (and Remi's preference) */
:root:not([data-theme="light"]) {
  --bg: #151719;
  --surface: #1c1e21;
  --surface-2: #232629;
  --well: #18191c;
  --line: #2d3034;
  --line-strong: #42464b;
  --text: #f2f0e9;
  --text-2: #aeb1b5;
  --text-3: #92969a;
  --accent: #17d0d8;        /* the teal, lit for a dark ground */
  --accent-hover: #45dde3;
  --accent-ink: #0d1416;
  --accent-tint: #10282a;
  --link: #17d0d8;
  --danger: #f07052;
  --ring: 0 0 0 3px rgba(23, 208, 216, 0.28);
  --shadow-md: 0 4px 16px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 44px -22px rgba(0, 0, 0, 0.8);
  --logo-bg: #17d0d8;
  --logo-ink: #0d1416;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f3f2ee; --surface: #ffffff; --surface-2: #efeeea; --well: #f7f6f3;
    --line: #e1dfd9; --line-strong: #c8c5bd;
    --text: #151719; --text-2: #4c5054; --text-3: #63676c;
    --accent: #007d86; --accent-hover: #006c74; --accent-ink: #ffffff; --accent-tint: #dff1f2;
    --link: #00656d; --danger: #c0301a;
    --ring: 0 0 0 3px rgba(0, 125, 134, 0.28);
    --shadow-md: 0 6px 20px -8px rgba(21, 23, 25, 0.16);
    --shadow-lg: 0 24px 60px -24px rgba(21, 23, 25, 0.35);
    --logo-bg: #00656d; --logo-ink: #f2fbfb;
    color-scheme: light;
  }
}

/* --- base ----------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body { margin: 0; min-height: 100dvh; font-size: 15px; line-height: 1.5; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; }

/* --- wordmark ------------------------------------------------------------- */
.logo-mark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font: 800 1.375rem/1 "MD Brand", "Archivo Variable", ui-sans-serif, sans-serif;
  letter-spacing: -0.05em;
  color: var(--text);
}
.logo-tag {
  display: inline-block;
  margin-left: 0.12em;
  padding: 0.06em 0.16em 0.1em;
  border-radius: 0.14em;
  background: var(--logo-bg);
  color: var(--logo-ink);
  rotate: -2.5deg;
  transform-origin: 0 100%;
  transition: rotate 0.2s var(--ease);
}
.logo-mark.small { font-size: 1.05rem; }
.logo-mark.raw .logo-tag { --logo-bg: #d9f044; --logo-ink: #151719; box-shadow: inset 0 0 0 1px #a9c11c; }
.logo-mark.oui .logo-tag { --logo-bg: #c8371f; --logo-ink: #fff6ea; }
a:hover .logo-tag, .logo-link:hover .logo-tag { rotate: -5deg; }
.app-sub { font-size: 0.93rem; font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; }

/* --- top bar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .topbar { background: var(--bg); } }
.topbar-inner { max-width: 1200px; margin: auto; display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.logo-link { display: inline-flex; align-items: baseline; gap: 10px; color: inherit; text-decoration: none; border-radius: 10px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid transparent; background: none;
  font-size: 0.93rem; font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.topnav-link:hover { background: var(--surface); border-color: var(--line); }
.privacy {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line); background: var(--surface);
  padding: 6px 11px; border-radius: 999px;
}
.privacy::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- page ------------------------------------------------------------------ */
main { max-width: 1200px; margin: auto; padding: 28px 24px calc(40px + env(safe-area-inset-bottom)); }
.hero { margin-bottom: 22px; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--link); margin-bottom: 6px; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; margin: 0 0 10px; text-wrap: balance; }
.lead { color: var(--text-2); margin: 0; font-size: 1.02rem; max-width: 46ch; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.card, .preview-card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.preview-card { position: sticky; top: calc(70px + env(safe-area-inset-top)); padding: 14px; }
.panel { padding: 16px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
.size-chip { font-size: 0.78rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.stage-wrap { display: flex; justify-content: center; padding: 14px; border-radius: 14px; background: color-mix(in oklab, var(--text) 6%, var(--bg)); }

/* --- the canvas (classes the script relies on: keep) ----------------------- */
.preview { position: relative; width: min(100%, 390px); aspect-ratio: 9/16; overflow: hidden; background: #171717; display: grid; gap: 0; touch-action: pan-y; isolation: isolate; box-shadow: var(--shadow-lg); }
.preview.layout-equal { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr; }
.preview.layout-wide { grid-template-columns: 40fr 30fr 30fr; grid-template-rows: 1fr; }
.preview.layout-compare { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.preview.layout-compare .tile[data-tile="1"] { display: none; }
.preview.layout-hero { grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; }
.preview.layout-hero .tile[data-tile="0"] { grid-column: 1/3; }
.preview.layout-stacked { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); }
.preview.layout-hero-left { grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; }
.preview.layout-hero-left .tile[data-tile="0"] { grid-row: 1/3; }
.tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #26282b; touch-action: none; user-select: none; -webkit-user-select: none; transition: outline-color 0.15s ease; }
.tile + .tile { box-shadow: inset 1px 0 0 #ffffff14; }
.tile.selected { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; transform-origin: center center; will-change: transform; }
.empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; color: #9a9ea3; font-size: 11px; font-weight: 600; padding: 4px; pointer-events: none; }
.empty b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; border: 1.5px dashed #5b5f64; font-size: 16px; font-weight: 500; color: #c9ccd0; }
.tile-label { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; text-align: center; padding: 26px 3px 10px; color: #fff; font-size: clamp(10px, 2.7vw, 14px); font-weight: 800; letter-spacing: .06em; background: linear-gradient(transparent, #000b); pointer-events: none; overflow-wrap: anywhere; }
.overlay { position: absolute; z-index: 4; top: 0; left: 0; right: 0; text-align: center; padding: 14px 7px 30px; color: #fff; font-weight: 800; letter-spacing: .1em; text-shadow: 0 1px 8px #0008; background: linear-gradient(#0009, transparent); pointer-events: none; }
.overlay .sub { display: block; font-weight: 500; letter-spacing: .02em; margin-top: 5px; }
.brand-marks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.brand-mark { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 40%; filter: drop-shadow(0 1px 5px #0008); }
.brand-mark img { display: block; width: 100%; height: auto; max-height: 100px; object-fit: contain; }
.brand-mark.light img { filter: brightness(0) invert(1); }
.brand-mark.dark img { filter: none; }
.preview-hint { text-align: center; color: var(--text-3); font-size: 0.8rem; margin: 12px 0; }

/* --- buttons ---------------------------------------------------------------- */
button, .btn, select { min-height: 44px; touch-action: manipulation; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.toolbar button, .btn, .swatches button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.88rem; font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.toolbar button:hover, .btn:hover, .swatches button:hover { background: var(--surface-2); }
.toolbar button:active, .btn:active, .swatches button:active, .primary:active:not(:disabled), .template-card:active { transform: translateY(1px); }
.toolbar button.active, .swatches button.active { border-color: var(--accent); color: var(--link); background: var(--accent-tint); }
.primary {
  width: 100%; min-height: 50px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 1rem; font-weight: 700;
  margin-top: 12px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary:disabled { opacity: .4; cursor: not-allowed; }
.danger { color: var(--danger) !important; }
.btn.danger:hover { border-color: var(--danger); }

/* --- panels & fields -------------------------------------------------------- */
.side { display: grid; gap: 12px; }
.section-kicker { font-size: 0.75rem; color: var(--link); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.panel h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
.note, .status { font-size: 0.8rem; color: var(--text-3); line-height: 1.5; }
.status { margin-top: 5px; min-height: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-item { min-width: 0; }
.photo-item strong { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.photo-item input[type=file] {
  width: 100%; min-height: 44px; font-size: 0.75rem; color: var(--text-3);
  padding: 8px 6px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--well);
}
.photo-item input[type=file]::file-selector-button {
  border: 0; border-radius: 8px; padding: 5px 9px; margin-right: 6px;
  background: var(--accent-tint); color: var(--link); font: inherit; font-weight: 700; cursor: pointer;
}
label { display: block; color: var(--text-2); font-size: 0.82rem; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=number], select {
  width: 100%; min-width: 0; min-height: 44px;
  background: var(--well); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 11px; color: var(--text); font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type=text]:focus, select:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
input[type=color] { width: 100%; height: 44px; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.checkline { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.85rem; font-weight: 600; margin: 10px 0 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions > * { flex: 1 1 auto; white-space: nowrap; }
.swatches { display: flex; gap: 6px; }
.swatches button { flex: 1; padding: 0 4px; }
.swatches button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px #8885; flex: none; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* RAWDaddy's slider: thin track, ring thumb */
input[type=range] { appearance: none; -webkit-appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; touch-action: pan-x; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--line-strong); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--line-strong); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .12s var(--ease); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--text); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }

/* --- template picker ------------------------------------------------------- */
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 12px; }
.template-card {
  min-width: 0; min-height: 96px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center;
  border: 1px solid var(--line); border-radius: 14px; background: var(--well); color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .15s var(--ease), box-shadow .15s ease;
}
.template-card:hover { border-color: var(--line-strong); }
.template-card.active { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.template-card strong { font-size: 0.8rem; line-height: 1.2; font-weight: 700; }
.template-card small { font-size: 0.7rem; color: var(--text-3); line-height: 1.2; }
.template-art { height: 35px; width: 64px; display: flex; gap: 2px; overflow: hidden; border-radius: 5px; background: var(--line); padding: 2px; }
.template-art i { display: block; flex: 1; background: var(--text-3); border-radius: 2px; min-width: 0; opacity: .55; transition: background .15s ease, opacity .15s ease; }
.template-card.active .template-art i { background: var(--accent); opacity: 1; }
.template-card[data-template="40-30-30"] .template-art i:nth-child(1), .template-card[data-template="40-40-20"] .template-art i:nth-child(1) { flex: 4; }
.template-card[data-template="40-30-30"] .template-art i:nth-child(2), .template-card[data-template="40-40-20"] .template-art i:nth-child(2) { flex: 3; }
.template-card[data-template="40-30-30"] .template-art i:nth-child(3) { flex: 3; }
.template-card[data-template="30-40-30"] .template-art i:nth-child(1), .template-card[data-template="30-40-30"] .template-art i:nth-child(3) { flex: 3; }
.template-card[data-template="30-40-30"] .template-art i:nth-child(2) { flex: 4; }
.template-card[data-template="30-30-40"] .template-art i { flex: 3; }
.template-card[data-template="30-30-40"] .template-art i:nth-child(3) { flex: 4; }
.template-card[data-template="20-40-40"] .template-art i:nth-child(1), .template-card[data-template="20-20-60"] .template-art i:nth-child(1) { flex: 2; }
.template-card[data-template="20-40-40"] .template-art i:nth-child(2), .template-card[data-template="20-40-40"] .template-art i:nth-child(3) { flex: 4; }
.template-card[data-template="50-25-25"] .template-art i:nth-child(1) { flex: 2; }
.template-card[data-template="50-25-25"] .template-art i:nth-child(2), .template-card[data-template="50-25-25"] .template-art i:nth-child(3) { flex: 1; }
.template-card[data-template="25-50-25"] .template-art i:nth-child(2) { flex: 2; }
.template-card[data-template="25-25-50"] .template-art i:nth-child(3) { flex: 2; }
.template-card[data-template="60-20-20"] .template-art i:nth-child(1) { flex: 3; }
.template-card[data-template="60-20-20"] .template-art i:nth-child(2), .template-card[data-template="60-20-20"] .template-art i:nth-child(3) { flex: 1; }
.template-card[data-template="20-20-60"] .template-art i:nth-child(2) { flex: 1; }
.template-card[data-template="20-20-60"] .template-art i:nth-child(3) { flex: 3; }
.template-art.stacked, .template-art.two, .template-art.hero, .template-art.hero-left { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.template-art.stacked { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
.template-art.stacked i { width: 100%; }
.template-art.two i { grid-row: 1/3; }
.template-art.hero i:first-child { grid-column: 1/3; }
.template-art.hero-left i:first-child { grid-row: 1/3; }

/* --- brand mark panel ------------------------------------------------------ */
.brand-controls { display: grid; gap: 10px; }
.brand-option { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--well); }
.brand-option-head { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; }
.brand-preview { height: 38px; max-width: 120px; object-fit: contain; padding: 3px 6px; border-radius: 8px; background: #fff; }

/* --- message & footer ------------------------------------------------------ */
#message { text-align: center; color: var(--text-3); font-size: 0.85rem; min-height: 18px; margin: 4px 0; }
#message:not(:empty) { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 28px; }
.foot-inner { max-width: 1200px; margin: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-2); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-left: auto; }
.foot-links a { display: inline-flex; align-items: baseline; gap: .4em; color: var(--text-2); font-size: 0.93rem; font-weight: 500; text-decoration: none; }
.foot-links a:hover { color: var(--link); }
.foot-note { width: 100%; margin: 0; font-size: 0.82rem; color: var(--text-3); }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 860px) {
  main { padding: 18px 14px calc(28px + env(safe-area-inset-bottom)); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .preview-card { position: static; padding: 10px; }
  .stage-wrap { padding: 10px; }
  .preview { width: min(100%, 430px); }
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 14px; }
  .topbar-inner { padding: 8px 12px; }
  .privacy { display: none; }
  .foot-links { margin-left: 0; }
  .foot-inner { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) { .app-sub { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* theme button: offer the other theme */
#themeToggle { padding: 0 10px; }
#themeToggle .t-sun, #themeToggle .t-moon { display: inline-flex; }
#themeToggle[data-mode="dark"] .t-moon, #themeToggle[data-mode="light"] .t-sun { display: none; }
