/* SPDX-License-Identifier: MPL-2.0
 * Copyright (C) 2026 Styves Goupil
 * FRASIL SOURCE (source.frasilsynth.com): the accepted mockups' look (card #239), one screen at a time: CONNECT, then
 * HORIZON or THREADS, a source's page, a setting's page. The phone (under 760 px wide) scrolls, one column. */
/* Barlow as base.css declares it: a latin and a latin-ext face for each weight (one latin-ext face over 400 700 took
 * the family from Chrome: no Barlow at all, the page in its fallback, the canvases' words in a serif) */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-normal-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("../fonts/newsreader-italic-300-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-normal-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-normal-500-latin.woff2") format("woff2"); }

:root {
  /* FRASIL's (website/assets/css/base.css) */
  --night: #0a0d12; --abyss: #06080c; --panel: #0e1319; --water: #0d1822; --steel: #26303c; --rule: #1a212a;
  --slate: #4a5563; --dim: #77818f; --mist: #8b95a4; --text-2: #aeb7c2; --fog: #dce3ea; --white: #f3f6f9;
  --ice: #6ed0ff; --lamp: #f2a65a; --rose: #ff7084; --haze: #33414f; --sea: #3480ec;
  /* this site's: frost on the threads, the aurora; the tracks' colours as FRASIL draws them, FX in the guides' sage */
  --frost: #bfe6ff; --aurora: #7cf0c4;
  --drone: var(--fog); --glint: var(--ice); --bass: var(--lamp); --fx: #a9d2bc;
  --f-ui: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--fog); font: 400 16px/1.45 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
svg, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 1.5px solid var(--ice); outline-offset: 2px; }
[data-sl]:focus-visible { outline: 1.5px solid var(--ice); outline-offset: 9px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the one screen: the window, each view in it */
.screen { position: relative; container: scr / inline-size; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: var(--night); }
.screen > div { position: absolute; inset: 0; }
@media (max-width: 760px) {
  .screen { height: auto; min-height: 100vh; min-height: 100dvh; overflow: visible; }
  .screen > div { position: relative; inset: auto; min-height: 100vh; min-height: 100dvh; }
}

/* ------------------------------------------------------------ shared: the header, the words */
.logo { width: 156px; height: auto; aspect-ratio: 2324 / 472; flex: none; }
.hd { position: relative; z-index: 3; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; flex-direction: column; gap: 7px; color: inherit; text-decoration: none; }
.brand .nm { margin-left: 10.4px; font: 600 11.5px/1 var(--f-ui); letter-spacing: .62em; color: var(--ice); }   /* (under the letters, from the F: 147.3 of 2324) */
/* the tour's ? (card #270): on SOURCE's line, at the logo's end; the head no wider */
.brand-w { position: relative; flex: none; }
.tq { position: absolute; right: 0; bottom: -3px; display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--slate); border-radius: 50%;
  font: 600 10.5px/1 var(--f-ui); color: var(--mist); }
.tq::after { content: ""; position: absolute; inset: -9px; }   /* (a finger's room) */
.tq:hover { border-color: var(--fog); color: var(--fog); }
.hd .sep { align-self: stretch; width: 1.5px; margin: 2px 0; background: var(--steel); }
.where { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.where b { font: 700 22px/1 var(--f-ui); letter-spacing: .22em; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where span { font: 600 11.5px/1 var(--f-ui); letter-spacing: .22em; color: var(--mist); white-space: nowrap; }
.hd .fill { flex: 1; }
/* the head on one row while it holds it all, the city whole (source.js fitHead: REC and SAVE beside the views, the
 * transport and the mode); else tighter (the mode's word alone), else two rows: the views and the transport under */
.hd .br { display: none; }
.hd.tight { gap: 12px; }   /* (card #268: the harmony and the tempo's ‹ › in the transport, 1440's one row kept) */
.hd.tight .trs { padding: 0 4px; }
.hd.tight .trs > button { padding: 0 8px; }
.hd.tight .trs .rule { margin: 0 3px; }
.hd.tight .dev small { display: none; }
.hd.tight .vsw button { padding: 8px 8px; }
.hd.two { flex-wrap: wrap; row-gap: 0; }
.hd.two .br { display: block; flex: 0 0 100%; height: 0; order: 5; }
.hd.two .vsw, .hd.two .trs { order: 6; margin-top: 16px; }
.hd.two .trs { margin-left: auto; }
.trs { display: flex; align-items: center; height: 40px; padding: 0 6px; border-radius: 12px; background: rgba(17, 24, 33, .88); }
.trs button { display: flex; align-items: center; gap: 9px; height: 100%; padding: 0 11px; font: 600 12.5px/1 var(--f-ui); letter-spacing: .2em; color: var(--fog); }
.trs i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent var(--c, var(--fog));
  filter: drop-shadow(0 0 6px var(--c, var(--fog))); }
.trs button[aria-pressed="true"] i { width: 9px; height: 10px; border: 0; border-left: 3px solid var(--c, var(--fog)); border-right: 3px solid var(--c, var(--fog)); }
.trs button[aria-pressed="false"]:not(.all) { color: var(--slate); }
.trs button[aria-pressed="false"]:not(.all) i { filter: none; opacity: .5; }
.trs .all { padding: 0 10px; }
.trs .all i { border-width: 8px 0 8px 13px; }
.trs .all[aria-pressed="true"] i { width: 13px; height: 16px; border-left-width: 4px; border-right-width: 4px; }
.trs .rule { width: 1.5px; height: 20px; margin: 0 4px; background: #2a3440; }
.dev { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1.5px solid var(--fog); border-radius: 10px;
  font: 600 14px/1 var(--f-ui); letter-spacing: .14em; color: var(--fog); white-space: nowrap; }
.dev small { padding-left: 10px; border-left: 1.5px solid var(--steel); font-size: 10.5px; letter-spacing: .2em; color: var(--mist); }
.dev i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.dev.lost i { background: var(--rose); box-shadow: 0 0 8px var(--rose); }
.done { height: 40px; padding: 0 18px; border: 1.5px solid var(--slate); border-radius: 10px; font: 600 13px/1 var(--f-ui); letter-spacing: .2em; color: var(--fog); }
.done:hover { border-color: var(--fog); }
.vsw button { padding: 8px 12px; font-size: 11.5px; }   /* the view: HORIZON or THREADS */
/* REC (card #262): the mix recorded here; while it records its time and its most (a hand on it: STOP), its file then */
.recbox { display: flex; }
.rec { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border: 1.5px solid var(--steel); border-radius: 10px;
  font: 600 13px/1 var(--f-ui); letter-spacing: .2em; color: var(--fog); white-space: nowrap; transition: border-color .2s var(--ease); }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 8px rgba(255, 112, 132, .55); flex: none; }
button.rec:hover { border-color: var(--mist); }
.rec.why { color: var(--rose); }
.rec.on, button.rec.on:hover { gap: 10px; border-color: var(--rose); }
.rec.on i { border-radius: 2px; animation: blink 1.6s ease-in-out infinite; }
.rec.on b { min-width: 3.2ch; font: 600 15px/1 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--white); text-align: right; }
.rec.on small { padding-left: 10px; border-left: 1.5px solid var(--steel); font: 600 11px/1 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--slate); }
.rec.on.late b { color: var(--rose); }
.rec.wait { border-color: var(--steel); }
.rec.wait i { animation: none; opacity: .5; }
.rec.got { gap: 0; padding: 0 4px 0 12px; border-color: var(--fog); }
.rec.got b { margin-right: 4px; font: 600 14px/1 var(--f-ui); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--mist); }
.rec.got button { height: 100%; padding: 0 10px; font: 600 12.5px/1 var(--f-ui); letter-spacing: .2em; color: var(--white); }
.rec.got button:hover { color: var(--ice); }
.rec.got .x { padding: 0 8px; font-size: 17px; letter-spacing: 0; color: var(--slate); }
.rec.got .x:hover { color: var(--fog); }
.rec.got .cred { align-self: flex-end; margin: 0 4px 5px 2px; font-size: 7.5px; letter-spacing: .14em; }
.vsw button:not(.on):hover { color: var(--fog); }

.n { font: 600 10.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); white-space: nowrap; }
.v { font: 600 17px/1 var(--f-ui); letter-spacing: .02em; color: var(--fog); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v small { margin-left: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--mist); }
.v .tr { margin-left: 4px; font-size: 12px; color: var(--mist); }
.grp { font: 600 10px/1 var(--f-ui); letter-spacing: .3em; color: var(--slate); }
/* a target: its name in its track's colour, the weight a bar from the middle (left: inverted); several: the first, +n */
.tg { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--f-ui); letter-spacing: .14em; color: var(--c); white-space: nowrap; }
button.tg:hover { text-shadow: 0 0 10px var(--c); }
.tg .d { position: relative; flex: none; width: 16px; height: 2px; border-radius: 1px; background: var(--steel); }
.tg .d::before { content: ""; position: absolute; left: 50%; top: -2px; width: 1px; height: 6px; background: var(--slate); }
.tg .d::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--d) * 50%); background: var(--c); }
.tg .d.neg::after { left: auto; right: 50%; }
.tg em { font-style: normal; font-size: 9.5px; color: var(--mist); letter-spacing: .1em; }
.tg.none { color: var(--slate); }
.bd { display: inline-grid; place-items: center; flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--ice); color: var(--night);
  font: 700 .72em/1 var(--f-ui); letter-spacing: 0; font-style: normal; }
.sp { width: 100%; height: 24px; --c: var(--fog); overflow: visible; }
.tag { display: inline-block; padding: 4px 7px 3px; border: 1px solid var(--steel); border-radius: 5px; font: 600 10px/1 var(--f-ui); letter-spacing: .2em; color: var(--mist); white-space: nowrap; text-decoration: none; }
.cred { font: 600 9px/1 var(--f-ui); letter-spacing: .22em; color: var(--slate); text-decoration: none; white-space: nowrap; }
a.cred:hover { color: var(--mist); }

/* a world event, landing: its words fade in, stay, fade out */
.moment { position: absolute; z-index: 4; left: 50%; top: 23%; transform: translateX(-50%); text-align: center; white-space: nowrap; pointer-events: none;
  opacity: 0; animation: mo 16s var(--ease) 1 forwards; }
.moment::before { content: ""; position: absolute; inset: -40px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(6, 8, 12, .55), rgba(6, 8, 12, 0)); }
.moment p { display: flex; align-items: baseline; justify-content: center; gap: 18px; font: italic 300 42px/1.1 var(--f-text); color: var(--white);
  text-shadow: 0 0 34px rgba(124, 240, 196, .35); }
.moment .to { display: inline-flex; align-items: center; gap: 12px; font: 600 16px/1 var(--f-ui); font-style: normal; letter-spacing: .34em; color: var(--c, var(--fx)); text-shadow: 0 0 18px rgba(169, 210, 188, .6); }
.moment .to::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.moment small { display: block; margin-top: 14px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--mist); }
@keyframes mo { 0% { opacity: 0; filter: blur(8px); } 12%, 70% { opacity: 1; filter: blur(0); } 90%, 100% { opacity: 0; filter: blur(6px); } }

/* ------------------------------------------------------------ CONNECT */
.C { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 48px 70px; }
.C > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.C .veil { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(10, 13, 18, .7), rgba(10, 13, 18, .25)); }
.c-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1280px; }
.c-top { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.c-top .logo { width: 330px; }
.c-word { padding-left: .8em; font: 600 22px/1 var(--f-ui); letter-spacing: .8em; color: var(--ice); }
.c-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 46px; }
.c-p { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 22px 22px; border: 1.5px solid var(--steel); border-radius: 14px; background: rgba(10, 13, 18, .74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.c-p h3 { display: flex; align-items: center; gap: 12px; font: 700 14px/1 var(--f-ui); letter-spacing: .26em; color: var(--white); }
.c-p h3 .bd { font-size: 17px; }
.opt { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1.5px solid var(--steel); border-radius: 11px; }
.opt.on { border-color: rgba(110, 208, 255, .55); box-shadow: 0 0 26px -6px rgba(110, 208, 255, .35); }
.opt.later { border-style: dashed; opacity: .55; }
.c-draw { width: 100%; height: auto; }
.c-draw .ln { fill: none; stroke: var(--mist); stroke-width: 1.6; stroke-linejoin: round; }
.c-draw .dim { fill: none; stroke: var(--slate); stroke-width: 1.4; }
.c-draw .scr { fill: #05070a; stroke: var(--slate); stroke-width: 1.4; }
.c-draw .cable { fill: none; stroke: var(--ice); stroke-width: 1.8; stroke-dasharray: 1.5 6; stroke-linecap: round; animation: flow 1.8s linear infinite; }
.c-draw .web { display: none; }
.c-draw.is-web .dev-only { display: none; }
.c-draw.is-web .web { display: inline; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1.5px solid var(--steel); border-radius: 8px; font: 600 12.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); }
.chip:hover { color: var(--fog); }
.chip.on { border-color: var(--fog); color: var(--white); }
.chip:disabled { opacity: .4; cursor: default; }
.chip.on i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.code { display: flex; gap: 6px; }
.code i { flex: 1; height: 34px; border-bottom: 1.5px solid var(--slate); }
.opt-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opt-f b { font: 600 12.5px/1 var(--f-ui); letter-spacing: .18em; color: var(--fog); }
.dimw { font: 600 11px/1 var(--f-ui); letter-spacing: .18em; color: var(--dim); }
.city { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0 10px; border-bottom: 1.5px solid var(--mist); }
.city input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; outline: none; font: 700 30px/1 var(--f-ui); letter-spacing: .14em; color: var(--white); text-transform: uppercase; caret-color: var(--ice); }
.city input::placeholder { color: var(--slate); }
.city > span { flex: none; font: 600 11px/1 var(--f-ui); letter-spacing: .22em; color: var(--mist); text-transform: uppercase; }
.sugg { position: absolute; z-index: 6; left: -8px; right: -8px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border: 1.5px solid var(--steel); border-radius: 10px; background: #0b1017; box-shadow: 0 30px 60px -30px #000; }
.sugg[hidden] { display: none; }
.sugg button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 7px; text-align: left; font: 600 14px/1 var(--f-ui); letter-spacing: .12em; color: var(--fog); }
.sugg button span { font-size: 10.5px; letter-spacing: .2em; color: var(--mist); }
.sugg li[aria-selected="true"] button, .sugg button:hover { background: #131b25; color: var(--white); }
.where-art { display: flex; align-items: center; gap: 18px; }
.globe { width: 104px; height: 104px; flex: none; }
.globe .g { fill: none; stroke: var(--steel); stroke-width: 1; }
.globe .rim { fill: #0b1119; stroke: var(--slate); stroke-width: 1.2; }
.globe .lat { fill: none; stroke: rgba(110, 208, 255, .45); stroke-width: 1; stroke-dasharray: 2 3; }
.globe .pt { fill: var(--ice); }
.globe .ring { fill: none; stroke: var(--ice); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 3.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.coords { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.coords span { font: 500 13px/1 var(--f-mono); color: var(--text-2); }
.coords button { margin-top: 6px; }
.tog { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tog:last-of-type { border-bottom: 0; }
.tog .tn { font: 600 13px/1 var(--f-ui); letter-spacing: .2em; color: var(--fog); }
.tog .seg { grid-row: span 2; }
.seg { display: flex; padding: 4px; border-radius: 10px; background: #111821; }
.seg button { padding: 8px 13px; border-radius: 7px; font: 600 12px/1 var(--f-ui); letter-spacing: .16em; color: var(--slate); }
.seg button.on { background: var(--steel); color: var(--fog); }
.meter { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.meter i { width: 3px; height: 100%; background: var(--fog); opacity: .7; transform-origin: bottom; transform: scaleY(.08); transition: transform .1s linear; }
.c-p .foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.c-p .foot .fill { flex: 1; }
/* LAYER (card #263): OFF, YOUR FILE or a live stream by place, under the synth; its LEVEL and TONE; its credit */
.ly-list { display: flex; flex-direction: column; gap: 1px; margin: -2px -8px 0; }
.ly-o { display: grid; grid-template-columns: 10px auto minmax(0, 1fr); align-items: center; gap: 11px; padding: 8px; border-radius: 8px; text-align: left; }
.ly-o i { width: 8px; height: 8px; border: 1.5px solid var(--slate); border-radius: 50%; }
.ly-o b { font: 600 12.5px/1 var(--f-ui); letter-spacing: .18em; color: var(--mist); white-space: nowrap; }
.ly-o span { font: 600 9.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.ly-o:hover b { color: var(--fog); }
.ly-o.on { background: #111821; }
.ly-o.on i { border-color: var(--ice); background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.ly-o.on b { color: var(--white); }
.ly-o.on span { color: var(--mist); }
.ly-file.ask b { color: var(--lamp); }
.ly-ks { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ly-k { display: grid; grid-template-columns: 50px minmax(0, 1fr) 24px; align-items: center; gap: 10px; }
.ly-k span { font: 600 11px/1 var(--f-ui); letter-spacing: .2em; color: var(--mist); }
.ly-k em { font: 600 12px/1 var(--f-ui); font-style: normal; font-variant-numeric: tabular-nums; color: var(--fog); text-align: right; }
.ly-k input { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: none; cursor: pointer; }
.ly-k input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--fog) var(--v, 50%), var(--steel) var(--v, 50%)); }
.ly-k input::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--fog) var(--v, 50%), var(--steel) var(--v, 50%)); }
.ly-k input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 0 10px rgba(220, 227, 234, .35); }
.ly-k input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--white); }
.ly-k input:disabled { opacity: .3; cursor: default; }
.ly-k input[data-layer-k="tone"] { --v: 50%; }
.ly-k input[data-layer-k="tone"]::-webkit-slider-runnable-track { background: var(--steel); }
.ly-k input[data-layer-k="tone"]::-moz-range-track { background: var(--steel); }
.ly .foot .cred + .cred { margin-left: 2px; }
.ly-live i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--rose); vertical-align: 1px; animation: blink 2.4s ease-in-out infinite; }
.ly-why { border-color: var(--lamp); color: var(--lamp); }
.rec .nl { font: 600 10px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); text-decoration: line-through; text-decoration-color: var(--rose); }
/* the session's LAYER (card #266): in STRIPS' LAYER group, beside its sources, as they are drawn; what plays, its
 * state and credit, its LEVEL; its name tapped, the choices under it */
.ly-bar { position: relative; flex: 0 0 340px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: end; gap: 7px 14px;
  padding: 10px 12px 9px; border: 1.5px solid var(--steel); border-radius: 11px; background: rgba(10, 13, 18, .74); }
.ly-st { display: flex; align-items: baseline; gap: 10px; min-width: 0; font: 600 10.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); white-space: nowrap; }
.ly-sw { display: flex; gap: 8px; min-width: 0; overflow: hidden; }
.ly-st em { font-style: normal; }
.ly-st .ly-live i { margin-right: 5px; }
.ly-st .ly-no { color: var(--slate); }
.ly-st .ly-why { color: var(--lamp); }
.ly-st .cred { margin-left: auto; flex: none; font-size: 9.5px; letter-spacing: .1em; }
.ly-now { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.ly-now b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 600 16px/1 var(--f-ui); letter-spacing: .12em; color: var(--white); white-space: nowrap; }
.ly-now.ask b { color: var(--lamp); }
.ly-now i { flex: none; width: 6px; height: 6px; margin-top: -3px; border: solid var(--mist); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
.ly-now:hover b { color: var(--ice); }
.ly-bar.open .ly-now i { margin-top: 3px; transform: rotate(-135deg); }
.ly-lv { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 4px; align-self: stretch; justify-content: space-between; }
.ly-lv > span { display: flex; justify-content: space-between; font: 600 10.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); }
.ly-lv em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--fog); letter-spacing: .04em; }
.ly-lv input { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: none; cursor: pointer; }
.ly-lv input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--fog) var(--v, 50%), var(--steel) var(--v, 50%)); }
.ly-lv input::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--fog) var(--v, 50%), var(--steel) var(--v, 50%)); }
.ly-lv input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border: 0; border-radius: 50%; background: var(--white); }
.ly-lv input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--white); }
.ly-pop { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; width: max(100%, 320px); display: none; flex-direction: column; gap: 1px; padding: 6px;
  border: 1.5px solid var(--slate); border-radius: 11px; background: rgba(9, 12, 17, .97); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  max-height: min(420px, 62vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--steel) transparent; }
.ly-bar.open { border-color: var(--slate); }
.ly-bar.open .ly-pop { display: flex; }
.c-btns { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.c-btns button { display: inline-flex; align-items: center; padding: 15px 34px; border: 2px solid var(--fog); border-radius: 14px; font: 600 17px/1 var(--f-ui); letter-spacing: .24em; color: var(--white);
  box-shadow: 0 0 40px rgba(220, 227, 234, .12); }
.c-btns button:hover { box-shadow: 0 0 40px rgba(220, 227, 234, .25); }
.c-btns button:disabled { border-color: var(--slate); color: var(--mist); box-shadow: none; cursor: default; }
.c-btns .why { min-height: 12px; font: 600 11.5px/1 var(--f-ui); letter-spacing: .22em; color: var(--rose); }
.c-foot { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font: 600 11.5px/1 var(--f-ui); letter-spacing: .24em; color: var(--slate); }
.c-foot > :last-child { justify-self: end; }
.c-foot kbd { margin-right: 9px; padding: 2px 7px; border: 1.5px solid var(--slate); border-radius: 5px; font: inherit; color: var(--mist); }

@container scr (max-width: 760px) {
  .C { padding: 34px 16px 30px; justify-content: flex-start; }
  .c-top .logo { width: 220px; }
  .c-word { font-size: 15px; }
  .c-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 30px; }
  .c-p { padding: 18px 16px; }
  .city input { font-size: 24px; }
  .c-btns { margin-top: 24px; gap: 12px; }
  .c-btns button { padding: 14px 26px; font-size: 15px; }
  .c-foot { position: relative; left: auto; right: auto; bottom: auto; margin-top: 30px; grid-template-columns: 1fr 1fr; row-gap: 14px; font-size: 10px; }
  .c-foot > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@container scr (min-width: 761px) and (max-width: 1100px) {   /* (four panels since LAYER, card #263: two by two there,
                                                               * CONNECT scrolled where the screen is short) */
  .C { justify-content: flex-start; overflow-y: auto; padding-bottom: 30px; }
  .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-foot { position: relative; left: auto; right: auto; bottom: auto; width: 100%; margin-top: 34px; }
}

/* ------------------------------------------------------------ HORIZON: the world above the waterline, the sound below, the sources in a dock */
.A { display: grid; grid-template-rows: auto 1fr auto; }
.A > canvas, .B > canvas, .R > canvas, .T > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.A > .hd { padding: 26px 36px 0; }
.dock { position: relative; z-index: 3; grid-row: 3; display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr 1.22fr; gap: 12px; padding: 0 32px 28px; }
.box { position: relative; min-width: 0; padding: 12px 14px 12px; border: 1.5px solid var(--steel); border-radius: 14px; background: rgba(10, 13, 18, .8);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.box > header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; white-space: nowrap; }
.box > header b { font: 700 13px/1 var(--f-ui); letter-spacing: .24em; color: var(--fog); }
.box > header span { font: 600 10.5px/1 var(--f-ui); letter-spacing: .2em; color: var(--mist); }
.box > footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); animation: blink 2.4s ease-in-out infinite; }
.live.off i { background: var(--slate); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.row-b { cursor: pointer; }
.wrow { display: grid; grid-template-columns: 68px 74px minmax(0, 1fr) 82px; align-items: center; column-gap: 10px; height: 25px; }
.wrow .tg { justify-self: start; }
.wrow.ax { height: 14px; cursor: default; }
.axis { display: flex; justify-content: space-between; font: 600 9px/1 var(--f-ui); letter-spacing: .2em; color: var(--slate); }
.axis em { font-style: normal; white-space: nowrap; }
.axis .now { color: var(--ice); }
.srow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 8px; height: 27px; }
.srow .v { font-size: 15px; }
.art { width: 100%; height: 58px; margin: 0 0 6px; overflow: visible; }
.lvl { width: 100%; height: 58px; margin: 0 0 6px; }
.swatch { position: relative; height: 58px; margin: 0 0 6px; }
.swatch .col { position: absolute; left: 0; right: 0; top: 4px; height: 16px; border-radius: 3px; background: linear-gradient(90deg, #5d7186, #6f7a87 34%, #9a8467 62%, #d39a5e 84%, #e0a464); }
.swatch .col i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 6px var(--white); }
.swatch .sp { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; }
/* the camera as LIGHT reads it (card #242): its cells (room.js: a cell more each side, cut off here) drawn pixelated,
   then blurred; as a mirror */
.pv { position: relative; height: 76px; margin: 0 0 8px; overflow: hidden; border-radius: 8px; background: var(--abyss); isolation: isolate; }
.pv canvas { position: absolute; left: -12.5%; top: -16.667%; width: 125%; height: 133.333%; image-rendering: pixelated; filter: blur(7px); transform: scaleX(-1); }
.pv::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(243, 246, 249, .07); }
.r-vis { flex: 1; min-height: 200px; display: flex; gap: 22px; }
.r-vis .r-chart { min-width: 0; }
.pv.big { flex: none; align-self: flex-start; width: 264px; height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: 12px; }
.pv.big canvas { filter: blur(17px); }
.wl { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; height: 24.5px; }
.wl .v { font-size: 13.5px; color: var(--text-2); }
.wl .tg { opacity: .6; }
.wl.on { margin: 0 -14px; padding: 0 14px; background: linear-gradient(90deg, rgba(169, 210, 188, .14), rgba(169, 210, 188, 0)); box-shadow: inset 2px 0 var(--fx); }
.wl.on .v { color: var(--white); }
.wl.on .tg { opacity: 1; text-shadow: 0 0 12px rgba(169, 210, 188, .8); }
.A.ev .world { border-color: rgba(169, 210, 188, .5); box-shadow: 0 0 34px -8px rgba(169, 210, 188, .35); }
/* the fifth box (card #261): the sky's others, the water's, the ground's, space's, life's, a tab each */
.wtabs { display: flex; gap: 1px; min-width: 0; margin: -4px 0 0 -7px; overflow-x: auto; scrollbar-width: none; }
.wtabs::-webkit-scrollbar { display: none; }
.wtabs button { padding: 4px 6px; border-radius: 5px; font: 700 10px/1 var(--f-ui); letter-spacing: .14em; color: var(--slate); }
.wtabs button:hover { color: var(--mist); }
.wtabs button.on { background: #131b25; color: var(--fog); }
.wbox .wl { height: 21px; }
.wbox > footer { flex-wrap: wrap; justify-content: flex-start; gap: 5px 10px; }
.wbox > footer .cred { white-space: normal; line-height: 1.3; }
.off-src .v, .off-src .n { color: var(--slate); }

@container scr (max-width: 760px) {
  .A { display: block; padding-bottom: 22px; }
  .A > .hd { padding: 18px 16px 0; }
  .hd { flex-wrap: wrap; gap: 12px 14px; }
  .hd .logo { width: 96px; }
  .brand { gap: 5px; }
  .brand .nm { margin-left: 6.4px; font-size: 9px; letter-spacing: .5em; }
  .tq { bottom: -3px; width: 15px; height: 15px; font-size: 9.5px; }
  .where { gap: 5px; }
  .where b { font-size: 15px; letter-spacing: .18em; }
  .where span { font-size: 9.5px; }
  .hd .fill { flex: 1; }
  .trs { order: 9; width: 100%; height: 34px; justify-content: space-between; padding: 0 4px; }
  .vsw { order: 8; width: 100%; }
  .vsw button { flex: 1; }
  .trs button { font-size: 11px; padding: 0 8px; }
  .dev { height: 32px; padding: 0 10px; font-size: 12px; gap: 8px; }
  .dev small { display: none; }
  .vsw:has(~ .recbox) { flex: 1 1 50%; width: auto; }   /* (REC at the end of the views' row: the first row the city's) */
  .vsw:has(~ .recbox) button { padding: 8px 6px; }
  .vsw ~ .recbox { order: 8; }
  .recbox:has(+ .done) { order: 8; margin-left: auto; }   /* (a page's head, DONE's: REC under it once it records) */
  .recbox:has(+ .done):not(:has(.on, .got)) { display: none; }
  .vsw ~ .recbox .rec { height: 100%; min-height: 34px; }
  .rec { height: 32px; padding: 0 10px; font-size: 11.5px; gap: 7px; }
  .rec.on { gap: 8px; }
  .rec.on b { font-size: 13px; }
  .rec.on small { display: none; }
  .rec.got { padding: 0 2px 0 4px; }
  .rec.got b { display: none; }
  .rec.got button { padding: 0 6px; font-size: 11px; }
  .rec.got .cred { display: none; }
  .done { height: 32px; padding: 0 12px; font-size: 11px; }
  .dock { display: flex; flex-direction: column; gap: 10px; margin-top: 340px; padding: 0 12px; }
  .pv { height: 132px; }
  .pv canvas { filter: blur(11px); }
  .wrow { grid-template-columns: 62px 66px minmax(0, 1fr) 76px; column-gap: 8px; }
  .moment { top: 150px; white-space: normal; width: calc(100% - 32px); }
  .moment p { flex-direction: column; align-items: center; gap: 10px; font-size: 26px; }
  .moment .to { font-size: 12px; }
  .moment small { margin-top: 10px; font-size: 10.5px; }
}

/* ------------------------------------------------------------ THREADS: the sound as light, each source a thread to what it moves */
.B { display: grid; grid-template-columns: 286px minmax(0, 1fr) 206px; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0 36px 24px; }
.B > .hd { grid-column: 1 / -1; padding-top: 26px; }
.srcs, .trks, .world-b { position: relative; z-index: 2; }
.srcs { grid-column: 1; grid-row: 2; align-self: center; display: flex; flex-direction: column; }
.srcs .grp { margin: 14px 0 5px; }
.srcs .grp:first-child { margin-top: 0; }
.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; column-gap: 12px; height: 37px; text-align: left; }
.row .nv { display: flex; flex-direction: column; gap: 5px; }
.row .v { font-size: 17px; }
.row .sp, .row .mini { width: 88px; height: 20px; }
.anc { position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--c, var(--mist)); box-shadow: 0 0 7px var(--c, var(--mist)); }
.row .anc { right: -16px; }
.trks { grid-column: 3; grid-row: 2; align-self: center; display: flex; flex-direction: column; gap: 14px; }
.trk { --c: var(--fog); }
.trk > b { display: block; margin: 0 0 6px 16px; font: 700 15px/1 var(--f-ui); letter-spacing: .3em; color: var(--c); text-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }
.p { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 23px; padding-left: 16px; text-align: left; }
.p span { font: 600 11px/1 var(--f-ui); letter-spacing: .16em; color: var(--text-2); white-space: nowrap; }
.p span small { margin-left: 6px; font-size: 9px; color: var(--slate); letter-spacing: .1em; }
.p .anc { left: 0; }
.p .g { position: relative; width: 58px; height: 2px; background: var(--steel); }
.p .g i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--x, .5) * 100%); background: var(--c); transition: width .5s linear; }
.p:hover span, .p.hit span, .p.turned span { color: var(--white); text-shadow: 0 0 10px var(--c); }
.p.na span { color: var(--slate); text-decoration: line-through; text-decoration-color: var(--steel); }
.trk .more { margin: 2px 0 0 16px; padding: 3px 8px; border: 1px dashed var(--steel); border-radius: 6px; font: 600 10px/1 var(--f-ui); letter-spacing: .14em; color: var(--mist); }
.trk .more:hover { border-color: var(--fog); color: var(--white); }
.world-b { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; justify-content: center; gap: 30px; padding-top: 8px; }
.world-b .grp { margin-right: 6px; }
.world-b .wi + .grp { margin-left: 34px; }   /* (LAYER's, then WORLD's) */
.wi { position: relative; display: flex; align-items: baseline; gap: 8px; }
.wi .anc { top: -9px; left: 50%; margin-left: -2.5px; opacity: .55; }
.wi .v { font-size: 13px; color: var(--text-2); }
.wi.on .n { color: var(--fx); }
.wi.on .v { color: var(--white); }
.wi.on .anc { opacity: 1; width: 7px; height: 7px; margin-left: -3.5px; }
.B .moment { top: 112px; }

@media (max-height: 900px) and (min-width: 761px) {   /* (a laptop's screen: the sources closer, all of them in sight) */
  .row { height: 34px; }
  .row .nv { gap: 4px; }
  .row .v { font-size: 15px; }
  .srcs .grp { margin: 9px 0 2px; }
  .trks { gap: 8px; }
  .p { height: 20px; }
}
@container scr (max-width: 760px) {
  .B { position: relative; grid-template-columns: 138px minmax(0, 1fr) 106px; grid-template-rows: auto auto auto auto; padding: 0 14px 24px; min-height: 100%; }
  .B > .hd { padding-top: 18px; }
  .B .moment { position: relative; grid-row: 2; grid-column: 1 / -1; left: auto; top: auto; transform: none; width: auto; margin: 26px 0 0; }
  .srcs { grid-row: 3; align-self: start; margin-top: 26px; }
  .trks { grid-row: 3; align-self: start; margin-top: 26px; gap: 10px; }
  .srcs .grp { margin: 10px 0 2px; font-size: 9px; }
  .row { grid-template-columns: minmax(0, 1fr); height: 33px; }
  .row .nv { gap: 3px; }
  .row .n { font-size: 9.5px; }
  .row .v { font-size: 15px; }
  .row .sp, .row .mini { display: none; }
  .row .anc { right: -8px; }
  .trk > b { margin: 0 0 3px 12px; font-size: 12px; }
  .p { height: 21px; padding-left: 12px; }
  .p span { font-size: 9.5px; }
  .p .g { display: none; }
  .world-b { grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; padding-top: 30px; }
  .world-b .grp, .world-b .wi + .grp { grid-column: 1 / -1; margin: 0; }
  .wi { flex-direction: column; gap: 5px; align-items: flex-start; }
  .wi .anc { left: 0; margin-left: 0; }
}

/* ------------------------------------------------------------ a source's page (as an LFO's), a setting's page */
.R, .T { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.R .veil, .T .veil { position: absolute; inset: 0; background: rgba(7, 9, 13, .8); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.R > .hd, .T > .hd { padding: 26px 36px 0; }
.r-body { position: relative; z-index: 2; display: grid; grid-template-columns: 196px minmax(0, 1fr) 300px; gap: 30px; padding: 28px 36px 30px; min-height: 0; }
.r-rail { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; scrollbar-width: none; }
.r-rail::-webkit-scrollbar { display: none; }
.r-rail .grp { margin: 12px 0 6px; }
.r-rail .grp:first-child { margin-top: 2px; }
.ri { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; height: 24px; padding: 0 10px 0 12px; border-radius: 6px;
  font: 600 11.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); white-space: nowrap; text-align: left; }
.ri:hover { color: var(--white); }
.ri.off { color: var(--slate); }
.ri i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.ri.on { background: #131b25; color: var(--white); }
.ri.on::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; border-radius: 1px; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.ri.na span { color: var(--slate); }
.ri.turned { color: var(--white); box-shadow: inset 0 0 0 1px var(--c); }   /* (turned on the device a moment ago: card #280) */
/* a setting's page: the rail a track at a time, by part (card #256) */
.r-tabs { display: flex; gap: 2px; margin: 0 0 4px; padding: 3px; border-radius: 9px; background: #111821; }
.r-tabs button { flex: 1; padding: 7px 0; border-radius: 6px; font: 600 9.5px/1 var(--f-ui); letter-spacing: .14em; color: var(--slate); }
.r-tabs button:hover { color: var(--fog); }
.r-tabs button.on { background: var(--steel); color: var(--c); }
.r-list { display: flex; flex-direction: column; gap: 1px; }
.r-list .grp { margin: 12px 0 5px 12px; font-size: 9px; }
.r-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.r-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.r-head h2 { font: 700 40px/1 var(--f-ui); letter-spacing: .2em; color: var(--white); }
.r-head .v { font-size: 30px; }
.r-head .v small { font-size: 14px; }
.r-head .tag { align-self: center; }
.r-chart { flex: 1; min-height: 200px; }
.r-chart svg { width: 100%; height: 100%; overflow: visible; }
.r-chart text { font-family: var(--f-ui); font-weight: 600; letter-spacing: .16em; }
.r-page { display: flex; flex-direction: column; gap: 12px; }
.r-pt { display: flex; align-items: center; gap: 12px; font: 700 12.5px/1 var(--f-ui); letter-spacing: .26em; color: var(--mist); }
.r-pt .ln { flex: 1; height: 1px; background: var(--rule); }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cell { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 14px 13px; border: 1.5px solid var(--steel); border-radius: 12px; background: rgba(10, 13, 18, .6); text-align: left; }
button.cell:hover { border-color: var(--slate); }
.cell > span { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-ui); letter-spacing: .16em; color: var(--mist); white-space: nowrap; }
.cell > span .bd { font-size: 14px; }
.cell > b { font: 600 24px/1 var(--f-ui); letter-spacing: .08em; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.sel { border-color: var(--fog); box-shadow: 0 0 30px -10px rgba(220, 227, 234, .4); }
.cell.off > b { color: var(--slate); }
.opts { display: flex; gap: 4px; flex-wrap: wrap; }
.opts button, .opts [role=button] { padding: 4px 6px; border-radius: 5px; font: 600 9.5px/1 var(--f-ui); letter-spacing: .14em; color: var(--slate); white-space: nowrap; }
.opts button:hover:not(:disabled), .opts [role=button]:hover { color: var(--fog); }
.opts button.on { background: var(--steel); color: var(--fog); }
.opts button:disabled { opacity: .4; cursor: default; }
.gauge { position: relative; height: 3px; margin: 7px 0 4px; background: repeating-linear-gradient(90deg, var(--steel) 0 3px, transparent 3px 7px); cursor: ew-resize; touch-action: pan-y; }
.gauge::after { content: ""; position: absolute; inset: -10px 0; }
.gauge i { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--d) * 50%); background: var(--fog); }
.gauge.neg i { left: auto; right: 50%; width: calc(var(--d) * -50%); }
.gauge::before { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 11px; background: var(--mist); }
.gauge b { position: absolute; top: -7px; left: calc(50% + var(--d) * 50%); width: 3px; height: 17px; margin-left: -1.5px; background: var(--lamp); }
.r-pick { align-self: start; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 18px 20px; border: 1.5px solid var(--steel); border-radius: 14px; background: rgba(10, 13, 18, .72); }
.tabs { display: flex; padding: 4px; border-radius: 10px; background: #111821; }
.tabs button { flex: 1; padding: 9px 0; border-radius: 7px; font: 600 11.5px/1 var(--f-ui); letter-spacing: .16em; color: var(--slate); }
.tabs button.on { background: var(--steel); color: var(--c); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.pg-pt { grid-column: 1 / -1; margin: 8px 0 1px 2px; font: 600 9px/1 var(--f-ui); letter-spacing: .28em; color: var(--slate); }
.pg-pt:first-child { margin-top: 0; }
.r-pick:has(.pgrid) { max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--steel) transparent; }
.pk { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; min-width: 0; min-height: 30px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 7px;
  font: 600 9.5px/1 var(--f-ui); letter-spacing: .1em; color: var(--text-2); white-space: nowrap; text-align: left; }
.pk > span { overflow: hidden; text-overflow: ellipsis; }
.pk:hover { border-color: var(--steel); color: var(--white); }
.pk > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pk em { font-style: normal; font-size: 9px; letter-spacing: .1em; color: var(--slate); white-space: normal; line-height: 1.25; }
.pk .bd { font-size: 9px; }
.pk.sel { border-color: var(--fog); background: #18212c; color: var(--white); box-shadow: 0 0 22px -8px rgba(220, 227, 234, .5); }
.pk.mine { border-color: var(--steel); color: var(--fog); }
.pk.turned { border-color: var(--c); color: var(--white); box-shadow: 0 0 22px -8px var(--c); }   /* (card #280) */
.pk.full { opacity: .45; }
.pk.na { border-style: dashed; color: var(--slate); }
.pk.na em { color: var(--lamp); letter-spacing: .18em; }
.pk:disabled { cursor: default; }
.r-off { align-self: flex-start; }

/* a setting's page: every source that moves it, each its weight */
.t-feed { display: flex; flex-direction: column; gap: 8px; }
.fd { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px 92px 64px 28px; align-items: center; column-gap: 16px; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--steel); border-radius: 12px; background: rgba(10, 13, 18, .6); }
.fd .nm { display: flex; flex-direction: column; gap: 6px; }
.fd .nm b { font: 700 15px/1 var(--f-ui); letter-spacing: .2em; color: var(--white); }
.fd .w { font: 600 20px/1 var(--f-ui); color: var(--white); font-variant-numeric: tabular-nums; text-align: right; }
/* a source's weight on a setting (card #243): a slider, -100 .. +100, 0 marked; under it, what it pushes now */
.fd .sig { position: relative; height: 4px; border-radius: 2px; background: var(--rule); cursor: ew-resize; touch-action: pan-y; }
.fd .sig::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 14px; margin-left: -.5px; background: var(--mist); }
.fd .sig::after { content: ""; position: absolute; inset: -14px 0; }
.fd .sig i { position: absolute; top: 0; bottom: 0; left: 50%; border-radius: 2px; background: var(--c, var(--fog)); }
.fd .sig b { position: absolute; top: -7px; left: calc(50% + var(--w, 0) * 50%); width: 3px; height: 18px; margin-left: -1.5px; border-radius: 1px; background: var(--lamp); }
.fd .x { width: 28px; height: 28px; border-radius: 7px; color: var(--mist); font: 600 16px/1 var(--f-ui); }
.fd .zm { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 0; border: 1px solid var(--steel); border-radius: 7px; }   /* (ZOOM: card #271) */
.fd .zm span { font: 600 8px/1 var(--f-ui); letter-spacing: .16em; color: var(--slate); }
.fd .zm b { font: 600 10.5px/1 var(--f-ui); letter-spacing: .12em; color: var(--mist); white-space: nowrap; }
.fd .zm.on { border-color: var(--lamp); }
.fd .zm.on b { color: var(--lamp); }
.fd .zm:hover:not(:disabled) { border-color: var(--fog); }
.fd .zm:disabled { opacity: .35; cursor: default; }
.fd .x:hover { background: #18212c; color: var(--rose); }
.fd .pm { display: flex; gap: 4px; }
.fd .pm button { width: 28px; height: 28px; border: 1px solid var(--steel); border-radius: 7px; font: 600 14px/1 var(--f-ui); color: var(--fog); }
.t-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t-empty { padding: 18px 0; font: 600 12px/1 var(--f-ui); letter-spacing: .22em; color: var(--slate); }
.t-bar { position: relative; height: 26px; margin-top: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 8px); }
/* a setting's BASE (card #243): its slider's handle, its number under it; NOW (.n) and the sources' push (.o) on the
   same scale */
.t-base { display: flex; align-items: flex-start; gap: 18px; padding: 8px 0 22px; }
.t-base .t-bar { flex: 1; margin-top: 0; cursor: ew-resize; touch-action: pan-y; }
.t-bar .b { position: absolute; z-index: 1; top: -8px; bottom: -8px; width: 14px; margin-left: -7px; border: 2px solid var(--fog); border-radius: 5px; background: var(--night); }
.t-bar .b em { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); font: 600 13px/1 var(--f-ui); font-style: normal; letter-spacing: .06em; color: var(--fog); font-variant-numeric: tabular-nums; }
.reset { flex: none; height: 30px; padding: 0 12px; border: 1.5px solid var(--steel); border-radius: 8px; font: 600 11px/1 var(--f-ui); letter-spacing: .2em; color: var(--fog); }
.reset:hover:not(:disabled) { border-color: var(--fog); }
.reset:disabled { color: var(--slate); cursor: default; }
/* WEB's harmony (card #243), on the NOTES' pages: each a step down, a step up */
.t-harm .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { display: flex; gap: 6px; }
.step button { width: 34px; height: 28px; border: 1px solid var(--steel); border-radius: 7px; font: 600 17px/1 var(--f-ui); color: var(--fog); }
.step button:hover { border-color: var(--fog); }
.t-bar .o { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; background: color-mix(in srgb, var(--c) 45%, transparent); }
.t-bar .n { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--c); box-shadow: 0 0 10px var(--c); }

@container scr (max-width: 760px) {
  .R, .T { display: block; }
  .R > .hd, .T > .hd { padding: 18px 16px 0; }
  .r-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 16px 26px; }
  .r-rail { flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .r-rail .grp { display: none; }
  .ri { height: 30px; border: 1px solid var(--rule); }
  .ri i { margin-left: 8px; }
  .r-rail[data-trails] { flex-direction: column; overflow: visible; }
  .r-list { flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .r-list .grp { display: none; }
  .r-pick:has(.pgrid) { max-height: none; }
  .r-head { gap: 14px; }
  .r-head h2 { font-size: 28px; }
  .r-head .v { font-size: 22px; }
  .r-chart { flex: none; height: 210px; }
  .r-vis { flex: none; flex-direction: column; gap: 16px; }
  .pv.big { width: 100%; }
  .pv.big canvas { filter: blur(22px); }
  .cells { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cell > b { font-size: 19px; }
  .fd { grid-template-columns: minmax(0, 1fr) 54px 92px 28px; column-gap: 10px; }
  .fd .sig { grid-column: 1 / -3; grid-row: 2; margin: 14px 0 8px; }
  .fd .zm { grid-column: -3 / -1; grid-row: 2; flex-direction: row; justify-content: center; min-height: 28px; margin-top: 6px; }   /* (under ±, ×) */
  .t-harm .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .t-harm .cell { padding: 10px 10px 11px; }
  .t-harm .cell > b { font-size: 16px; }
  .t-base { gap: 12px; }
  .t-sum { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .moment { opacity: 1; filter: none; }
}
