@font-face{font-family:"Inter";font-weight:400;font-style:normal;font-display:block;src:url(fonts/inter-latin-400.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:"Inter";font-weight:400;font-style:normal;font-display:block;src:url(fonts/inter-greek-400.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter";font-weight:600;font-style:normal;font-display:block;src:url(fonts/inter-latin-600.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:"Inter";font-weight:600;font-style:normal;font-display:block;src:url(fonts/inter-greek-600.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter";font-weight:700;font-style:normal;font-display:block;src:url(fonts/inter-latin-700.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:"Inter";font-weight:700;font-style:normal;font-display:block;src:url(fonts/inter-greek-700.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter";font-weight:800;font-style:normal;font-display:block;src:url(fonts/inter-latin-800.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:"Inter";font-weight:800;font-style:normal;font-display:block;src:url(fonts/inter-greek-800.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Anton";font-weight:400;font-style:normal;font-display:block;src:url(fonts/anton-latin-400.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:"Share Tech Mono";font-weight:400;font-style:normal;font-display:block;src:url(fonts/share-tech-mono-latin-400.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:"Archivo Black";font-weight:400;font-style:normal;font-display:block;src:url(fonts/archivo-black-latin-400.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:"Manrope";font-weight:600;font-style:normal;font-display:block;src:url(fonts/manrope-latin-600.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:"Manrope";font-weight:600;font-style:normal;font-display:block;src:url(fonts/manrope-greek-600.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Manrope";font-weight:800;font-style:normal;font-display:block;src:url(fonts/manrope-latin-800.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:"Manrope";font-weight:800;font-style:normal;font-display:block;src:url(fonts/manrope-greek-800.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"JetBrains Mono";font-weight:400;font-style:normal;font-display:block;src:url(fonts/jetbrains-mono-latin-400.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:"JetBrains Mono";font-weight:400;font-style:normal;font-display:block;src:url(fonts/jetbrains-mono-greek-400.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"JetBrains Mono";font-weight:700;font-style:normal;font-display:block;src:url(fonts/jetbrains-mono-latin-700.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:"JetBrains Mono";font-weight:700;font-style:normal;font-display:block;src:url(fonts/jetbrains-mono-greek-700.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"JetBrains Mono";font-weight:800;font-style:normal;font-display:block;src:url(fonts/jetbrains-mono-latin-800.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:"JetBrains Mono";font-weight:800;font-style:normal;font-display:block;src:url(fonts/jetbrains-mono-greek-800.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Atkinson Hyperlegible";font-weight:400;font-style:normal;font-display:block;src:url(fonts/atkinson-hyperlegible-latin-400.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:"Atkinson Hyperlegible";font-weight:700;font-style:normal;font-display:block;src:url(fonts/atkinson-hyperlegible-latin-700.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:"Sora";font-weight:600;font-style:normal;font-display:block;src:url(fonts/sora-latin-600.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:"Sora";font-weight:700;font-style:normal;font-display:block;src:url(fonts/sora-latin-700.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:"Sora";font-weight:800;font-style:normal;font-display:block;src:url(fonts/sora-latin-800.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:"Inter Tight";font-weight:500;font-style:normal;font-display:block;src:url(fonts/inter-tight-latin-500.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:"Inter Tight";font-weight:500;font-style:normal;font-display:block;src:url(fonts/inter-tight-greek-500.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter Tight";font-weight:700;font-style:normal;font-display:block;src:url(fonts/inter-tight-latin-700.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:"Inter Tight";font-weight:700;font-style:normal;font-display:block;src:url(fonts/inter-tight-greek-700.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter Tight";font-weight:800;font-style:normal;font-display:block;src:url(fonts/inter-tight-latin-800.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:"Inter Tight";font-weight:800;font-style:normal;font-display:block;src:url(fonts/inter-tight-greek-800.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Roboto";font-weight:500;font-style:normal;font-display:block;src:url(fonts/roboto-latin-500.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:"Roboto";font-weight:500;font-style:normal;font-display:block;src:url(fonts/roboto-greek-500.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Roboto";font-weight:700;font-style:normal;font-display:block;src:url(fonts/roboto-latin-700.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:"Roboto";font-weight:700;font-style:normal;font-display:block;src:url(fonts/roboto-greek-700.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Nunito";font-weight:700;font-style:normal;font-display:block;src:url(fonts/nunito-latin-700.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:"Nunito";font-weight:800;font-style:normal;font-display:block;src:url(fonts/nunito-latin-800.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:"Nunito";font-weight:900;font-style:normal;font-display:block;src:url(fonts/nunito-latin-900.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:"Fira Sans Condensed";font-weight:500;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-latin-500.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:"Fira Sans Condensed";font-weight:500;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-greek-500.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Fira Sans Condensed";font-weight:600;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-latin-600.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:"Fira Sans Condensed";font-weight:600;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-greek-600.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Fira Sans Condensed";font-weight:700;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-latin-700.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:"Fira Sans Condensed";font-weight:700;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-greek-700.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Fira Sans Condensed";font-weight:800;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-latin-800.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:"Fira Sans Condensed";font-weight:800;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-greek-800.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Fira Sans Condensed";font-weight:900;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-latin-900.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:"Fira Sans Condensed";font-weight:900;font-style:normal;font-display:block;src:url(fonts/fira-sans-condensed-greek-900.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}


:root{
  --mm:3.7795px;
  --bg:#ECEBE7; --panel:#FFFFFF; --ink:#1E1C1A; --muted:#5E5A54; --line:#D6D2CA; --accent:#E2611E;
  --wood:#D9C29A; --grain:rgba(120,90,50,.16); --face:#E9E7E2; --face-ink:#4A4640;
  --knob-v:#CFCCC6; --mark-v:#1E1C1A; --knob-s:#E2611E; --mark-s:#FFF4EC;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ --bg:#16181A; --panel:#202326; --ink:#ECEBE7; --muted:#A8A49C; --line:#34383C; }
}
:root[data-theme="dark"]{ --bg:#16181A; --panel:#202326; --ink:#ECEBE7; --muted:#A8A49C; --line:#34383C; }
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.wrap{max-width:1220px;margin:0 auto;padding:28px 20px 48px}
header{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 6px}
h1{margin:0;font-size:38px;line-height:1;font-weight:700;letter-spacing:-.02em}
.lede{margin:0;max-width:540px;color:var(--muted);font-size:15px;line-height:1.45}
.grid{display:flex;gap:28px;align-items:flex-start;flex-wrap:wrap}
.main{flex:1 1 560px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:14px}
.side{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:16px}
.noselect,.device,.knob,.turn,.cube3dwrap{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}

/* device */
.device{width:100%;max-width:580px;padding:4.5%;border-radius:18px;background-color:var(--wood);
  background-image:repeating-linear-gradient(92deg,var(--grain) 0 2px,transparent 2px 9px),repeating-linear-gradient(88deg,transparent 0 23px,var(--grain) 23px 24px);
  box-shadow:0 20px 44px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.12)}
.faceplate{position:relative;border-radius:8px;background:var(--face);padding:7% 7% 5%;display:flex;flex-direction:column;align-items:center;gap:5%;box-shadow:inset 0 1px 3px rgba(0,0,0,.18)}
.glass{width:100%;padding:3.5%;border-radius:8px;background:#0B0C0D;box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 2px 6px rgba(0,0,0,.35)}
#big,#big2{display:block;width:100%;aspect-ratio:1/1;border-radius:3px;background:#030404}
.screens{width:100%;display:flex;gap:6%}
.screens .glass{flex:1 1 0;min-width:0}
.g2,#mini2{display:none}
.device.dual .g2{display:block}
.knobs{width:100%;display:flex;justify-content:space-around;align-items:flex-start;padding-top:2%}
.knobcol{display:flex;flex-direction:column;align-items:center;gap:8px}
.knobrow{display:flex;align-items:center;gap:12px}
.knob{position:relative;width:calc(var(--kmm,15)*5.87px);height:calc(var(--kmm,15)*5.87px);border-radius:50%;cursor:grab;touch-action:none;outline:none;
  box-shadow:0 6px 14px rgba(0,0,0,.3), inset 0 -5px 9px rgba(0,0,0,.2), inset 0 3px 5px rgba(255,255,255,.25)}
.knob.v{background:var(--knob-v)} .knob.s{background:var(--knob-s)}
.knob:focus-visible{box-shadow:0 0 0 3px var(--face),0 0 0 6px var(--accent)}
.knob .ring{position:absolute;inset:-9%;border-radius:50%;background:conic-gradient(var(--face-ink) calc(var(--p,0)*1turn), transparent 0);
  -webkit-mask:radial-gradient(closest-side, transparent 90%, #000 92%);mask:radial-gradient(closest-side, transparent 90%, #000 92%);pointer-events:none}
.knob .rot{position:absolute;inset:0;border-radius:50%;transition:transform .09s linear;
}
.knob .mark{position:absolute;left:50%;top:9px;width:6px;height:18px;margin-left:-3px;border-radius:3px}
.device.kbig .knobrow{display:grid;grid-template-columns:auto auto;justify-items:center;gap:10px 16px}
.device.kbig .knob{grid-column:1 / 3;order:-1}
.knob.v .mark{background:var(--mark-v)} .knob.s .mark{background:var(--mark-s)}
.turn{width:40px;height:40px;border-radius:50%;border:1px solid rgba(0,0,0,.18);background:rgba(255,255,255,.55);color:#1E1C1A;font-size:18px;cursor:pointer}
.turn:hover{background:#fff}
.klabel{font-size:11px;letter-spacing:.14em;font-weight:700;color:var(--face-ink)}
.keyline{font-size:12px;color:var(--muted);text-align:center;line-height:1.6;max-width:560px}
kbd{display:inline-block;min-width:20px;padding:0 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;background:var(--panel);font:600 12px/18px "Inter",system-ui,sans-serif;text-align:center;color:var(--ink)}

/* cards */
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.card h2{margin:0 0 12px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:8px}
.now{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.now b{font-size:22px;letter-spacing:-.01em}
.now span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.small{font-size:12px;color:var(--muted);line-height:1.45;margin:8px 0 0}
.seg{display:flex;flex-wrap:wrap;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:3px;gap:3px}
.seg button{flex:1 1 auto;border:0;border-radius:7px;background:transparent;color:var(--ink);font:600 13px/1 "Inter",system-ui,sans-serif;padding:10px 8px;cursor:pointer;min-height:40px}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink,#fff);box-shadow:0 1px 3px rgba(0,0,0,.18)}
.blurb{font-size:13px;color:var(--muted);margin:10px 0 0;line-height:1.45;min-height:19px}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.row select{max-width:60%;min-width:0;text-overflow:ellipsis}
.row:first-of-type{border-top:0}
.row label{cursor:pointer}
.row .lines{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px}.row .lines .tl{display:inline-flex;align-items:center;gap:5px}.row .lines i{width:10px;height:10px;border-radius:3px;display:inline-block}
.switch{position:relative;width:46px;height:28px;flex:none}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer;z-index:1}
.switch span{position:absolute;inset:0;border-radius:14px;background:var(--line);transition:background .15s}
.switch span::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.switch input:checked + span{background:var(--accent)}
.switch input:checked + span::after{transform:translateX(18px)}
.switch input:focus-visible + span{outline:2px solid var(--accent);outline-offset:2px}
select,input[type=url]{font:500 14px "Inter",system-ui,sans-serif;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--ink);min-height:36px}
.btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.btn{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:10px 14px;font:600 13px "Inter",system-ui,sans-serif;cursor:pointer;min-height:44px}
.btn.dark{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.swrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.swrow:first-of-type{border-top:0}
.swrow span{font-size:14px}
.sw{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.sw button{width:30px;height:30px;border-radius:50%;border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18);cursor:pointer;padding:0}
.sw button[aria-pressed="true"]{border-color:var(--ink)}
.swname{font-size:12px;color:var(--muted);margin-left:6px}

/* stations */
.st{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:9px 0;border-top:1px solid var(--line);align-items:center}
.st:first-child{border-top:0}
.st b{font-size:14px;font-weight:600;cursor:pointer}
.st .stat{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.st .stat.ok{color:#2E7D4F} .st .stat.bad{color:#B3261E}
.st input{grid-column:1 / -1;width:100%;font-size:12px;min-height:32px;display:none}
#stList.edit .st input{display:block}
/* on a phone at actual size, upright: the cube slides up under the status bar and the panel fills the space below */
body.phone.truesz .device.true{transition:top .4s ease, transform .4s ease}
#stList .st input[type=color]{display:block;grid-column:auto;width:26px;min-height:0;height:26px;padding:0;border:1px solid var(--line);border-radius:7px;background:none;cursor:pointer}
#stList .st input[type=color]::-webkit-color-swatch-wrapper{padding:2px}#stList .st input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
.stcols{grid-column:1 / -1;display:flex;gap:5px;align-items:center}.stcols .btn{min-height:26px;padding:2px 9px;font-size:11px}
/* settings pages: a tab bar (bottom on the settings page, at the top of the side column in the simulator) */
.stabs{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:4px;position:sticky;top:8px;z-index:5;margin-bottom:4px}
.stabs button{font:inherit;font-size:11px;font-weight:600;border:0;background:none;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;padding:5px 0;border-radius:10px;min-height:44px}
.stabs button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stabs button[aria-pressed="true"]{color:var(--accent);background:var(--bg)}
.spage{display:none;flex-direction:column;gap:16px}.spage.on{display:flex}
.setgrid .spage.on{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;align-items:start;grid-column:1/-1}
details.testing summary{cursor:pointer;font-weight:600;list-style:none}details.testing summary::after{content:" ›";color:var(--muted)}details.testing[open] summary{margin-bottom:8px}
input[type=time]{font:inherit;padding:6px 8px;border-radius:9px;border:1px solid var(--line);background:var(--bg);color:var(--ink)}
#setFrame{position:fixed;inset:0;width:100%;height:100%;border:0;z-index:60;background:var(--bg);transform:translateY(102%);transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s linear .28s;visibility:hidden}
#setFrame.open{transform:none;visibility:visible;transition-delay:0s}
.logcard{grid-column:1/-1}
.histcard{grid-column:1/-1}
.histlist{max-height:380px;overflow:auto;border:1px solid var(--line);border-radius:10px;overscroll-behavior:contain}
.histlist table{width:100%;border-collapse:collapse;font-size:13px}
.histlist th{position:sticky;top:0;background:var(--panel);text-align:left;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:7px 10px;border-bottom:1px solid var(--line)}
.histlist td{padding:6px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.histlist td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.histlist td.tm{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.histlist .hempty{padding:14px;color:var(--muted)}
#histRange[hidden],#btnHistMore[hidden]{display:none}
.histlist td.hx{width:58px;padding:2px 4px;text-align:right;white-space:nowrap}
.gtag{display:inline-block;margin-left:6px;padding:0 6px;border-radius:8px;font-size:11px;line-height:17px;color:var(--muted);border:1px solid var(--line, rgba(127,127,127,.35));vertical-align:1px}
.hdel{border:0;background:none;color:var(--muted);font-size:17px;line-height:1;width:26px;height:26px;border-radius:13px;cursor:pointer}
.hdel:hover{background:var(--line);color:#D33}
.hmv{border:0;background:none;color:var(--muted);font-size:14px;line-height:1;width:26px;height:26px;border-radius:13px;cursor:pointer}.hmv:hover{background:var(--line);color:var(--ink)}
.hmove{position:fixed;z-index:60;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.22);padding:8px;min-width:190px}
.hmove b{display:block;font-size:12px;color:var(--muted);padding:2px 6px 6px;font-weight:600}.hmove button{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;color:var(--ink);font:600 14px/1.2 Inter,system-ui,sans-serif;min-height:38px;padding:6px 8px;border-radius:8px;cursor:pointer;text-align:left}
.hmove button:hover{background:var(--bg)}.hmove i{width:10px;height:10px;border-radius:50%;flex:none}
.histtools{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
.histtools input[type=search]{font:inherit;font-size:14px;padding:9px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);width:100%}
#histStyle button .sdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
#histStyle button .sn{color:var(--muted);font-weight:500;margin-left:5px}
.diagcard{grid-column:1/-1}
.shufviews{display:flex;flex-wrap:wrap;gap:6px}
.shufviews button{font:inherit;font-size:13px;font-weight:600;padding:6px 11px;border-radius:16px;border:1px solid var(--line);background:var(--bg);color:var(--muted);cursor:pointer;text-decoration:line-through}
.shufviews button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff);text-decoration:none}
.stpill{display:inline-block;margin-left:8px;font-size:10px;font-weight:800;letter-spacing:.03em;padding:2px 7px;border-radius:9px;color:#0B0B0D;vertical-align:1px}
.diag{display:grid;grid-template-columns:14px minmax(0,1fr) minmax(0,1.4fr);gap:4px 10px;align-items:baseline;font-size:13px;margin:4px 0 0}
.diag .dot{width:9px;height:9px;border-radius:50%;background:var(--line);align-self:center}
.diag .dot.ok{background:#2E9E5B}.diag .dot.warn{background:#D9A100}.diag .dot.bad{background:#D23B2F}.diag .dot.run{background:var(--accent);animation:dpulse 1s infinite}
@keyframes dpulse{50%{opacity:.3}}.diag .dd{color:var(--muted);font-size:12px;text-align:right}
.logseg{flex-wrap:wrap;margin:0 0 10px}
#log{height:340px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:8px 10px;font:12px/1.45 ui-monospace,"SF Mono",Menlo,Consolas,monospace;background:var(--bg);overscroll-behavior:contain}
#log .lg{display:grid;grid-template-columns:62px 52px 1fr;gap:8px;padding:1px 0;border-bottom:1px dashed transparent}
#log .lt{color:var(--muted)} #log .lk{color:var(--muted);text-transform:uppercase;font-size:10px;letter-spacing:.04em;padding-top:1px}
#log .lm{color:var(--ink);word-break:break-word}
#log .k-cover .lk{color:#2E8BFF} #log .k-title .lk{color:#1E9E6A} #log .k-stream .lk{color:#E2611E} #log .k-talk .lk{color:#B3307A} #log .k-panda .lk{color:#8A6D3B} #log .k-system .lk{color:#6B7078}
#log .lempty{display:block;color:var(--muted)}
@media (max-width:640px){ #log{height:300px;font-size:11px} #log .lg{grid-template-columns:52px 1fr} #log .lk{display:none} }

/* 3d cube */
/* touch screens: a strip under each knob; swipe left or right along it to turn the knob */
.swipe{display:none;position:relative;width:132px;height:34px;border-radius:17px;background:rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.1);align-items:center;justify-content:center;touch-action:none;overflow:hidden;cursor:ew-resize}
body.phone .screens .glass{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:ns-resize}
.swipe span{font-size:11px;color:var(--muted);letter-spacing:.04em;pointer-events:none}
.swipe i{position:absolute;top:6px;bottom:6px;width:3px;left:50%;margin-left:-1.5px;border-radius:2px;background:var(--accent);opacity:0;transition:transform .25s,opacity .25s;pointer-events:none}
.swipe.on i{transition:none;opacity:1}
.swipe.on span{opacity:.35}
@media (pointer:coarse){ .swipe{display:flex} }
body.phonevol .swipe[data-knob="vol"]{display:none}
.device.true .swipe,.appmode .swipe{display:none !important}
.volnote{display:none;position:relative;height:34px;padding:0 14px;border-radius:17px;background:rgba(0,0,0,.06);border:1px solid rgba(0,0,0,.1);align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:600;color:var(--muted,#8A8F96);white-space:nowrap}
.volnote svg{width:16px;height:16px;flex:none}
.volnote.muted{color:#fff;background:#D9483B;border-color:#D9483B}
body.phonevol .volnote,body.phone .volnote{display:flex}
body.phone .swipe[data-knob="vol"]{display:none !important}
body.phonevol .turn[data-knob="vol"]{visibility:hidden}
.cube3dwrap{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.cube3dwrap .cubetext{flex:1 1 180px}
button,.knob,.turn,a{-webkit-tap-highlight-color:transparent}
.turn,.btn,.seg button{touch-action:manipulation}
.scene{width:190px;height:190px;perspective:700px;flex:none;cursor:grab;touch-action:none}
.cube3d{position:relative;width:130px;height:130px;margin:30px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(-32deg)}
.cf{position:absolute;inset:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;background-color:var(--wood);
  background-image:repeating-linear-gradient(92deg,var(--grain) 0 1px,transparent 1px 6px)}
.cf.front{transform:translateZ(65px);-webkit-transform-style:preserve-3d;transform-style:preserve-3d}
.cf.front .fp{transform:translateZ(.2px)} .cf.front canvas{transform:translateZ(.4px)} .cf .mk{transform:translateZ(.6px)}
.cf.top{transform:rotateX(90deg) translateZ(65px);-webkit-transform-style:preserve-3d;transform-style:preserve-3d;box-shadow:inset 0 0 0 999px rgba(255,255,255,.06)}
.cf.right{transform:rotateY(90deg) translateZ(65px);filter:brightness(.82)}
.cf.left{transform:rotateY(-90deg) translateZ(65px);filter:brightness(.82)}
.cf.back{transform:rotateY(180deg) translateZ(65px);filter:brightness(.9)}
.cf.bottom{transform:rotateX(-90deg) translateZ(65px);filter:brightness(.6)}
.cf.front .fp{position:absolute;inset:6%;background:var(--face);border-radius:2px}
.cf.front canvas{position:absolute;left:34.1%;top:31.8%;width:31.8%;height:31.8%;background:#000}
.cube3d.dual #mini{left:11.8%} .cube3d.dual #mini2{display:block;left:56.5%}
/* knobs on the top face, 15 mm from the front edge, one above each screen */
.cf .mk{position:absolute;width:calc(var(--kmm,15)*1.176%);height:calc(var(--kmm,15)*1.176%);top:calc((74 - var(--kmm,15) * .588)*1%);transform-style:preserve-3d}
/* speakers: a round grille on each side */
.cf .grille{position:absolute;left:24%;top:24%;width:52%;height:52%;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);
  background:radial-gradient(circle,rgba(30,25,20,.85) 0 30%,transparent 34%) 0 0/4.2px 4.2px}
.cf.right .grille{left:33%} .cf.left .grille{left:15%}   /* centred on each speaker chamber, behind the front zone */
.cf .mk .kr{position:absolute;inset:0;transform-style:preserve-3d}
.cf .mk .sh{position:absolute;inset:-6%;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.32) 45%,transparent 72%)}
.cf .mk .ly{position:absolute;inset:0;border-radius:50%;background:linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.34)),var(--kc);
  background-image:linear-gradient(rgba(0,0,0,.34),rgba(0,0,0,.34))}
.cf .mk .ly.edge{background-image:linear-gradient(rgba(0,0,0,.18),rgba(0,0,0,.18))}
.cf .mk .cap{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 38% 32%,rgba(255,255,255,.28),transparent 60%),var(--kc);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.cf .mk .cap i{position:absolute;left:50%;top:9%;width:12%;height:34%;margin-left:-6%;border-radius:1px;background:var(--km)}
/* plain knobs: no position markers, on the device and on the 3D cube */
.knob .mark,.cf .mk .cap i{display:none !important}
.cube3d:not(.dual) .mk.v{left:calc((29.4 - var(--kmm,15) * .588)*1%)} .cube3d:not(.dual) .mk.s{left:calc((70.6 - var(--kmm,15) * .588)*1%)}
.cf .mk.v{left:calc((27.6 - var(--kmm,15) * .588)*1%);--kc:var(--knob-v);--km:var(--mark-v)} .cf .mk .ly{background-color:var(--kc)}
.cf .mk.s{left:calc((72.4 - var(--kmm,15) * .588)*1%);--kc:var(--knob-s);--km:var(--mark-s)}
.cf.back{background:#D9C29A;padding:0}
.cf.back svg{position:absolute;inset:0;width:100%;height:100%;display:block}

.cubetext{font-size:13px;color:var(--muted);line-height:1.45;margin:0}
.cubetext b{color:var(--ink)}
/* true size: every dimension in millimetres, taken from the Cube C1 drawings */
.device.true{width:calc(100*var(--mm));height:calc(100*var(--mm));max-width:none;padding:0;position:relative;border-radius:calc(1.5*var(--mm))}
.device.true .faceplate{position:absolute;left:calc(6*var(--mm));top:calc(6*var(--mm));width:calc(88*var(--mm));height:calc(88*var(--mm));padding:0;display:block;border-radius:calc(1*var(--mm))}
.device.true .glass{position:absolute;left:calc(30.5*var(--mm));top:calc(12*var(--mm));width:calc(27*var(--mm));padding:0;border-radius:0;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.device.true #big,.device.true #big2{border-radius:0}
.device.true .screens{display:contents}
.device.true.dual .glass{left:calc(10.5*var(--mm))}
.device.true.dual .glass.g2{left:calc(50.5*var(--mm))}
.device.true .knobs,.device.true .knobcol,.device.true .knobrow{display:contents}
.device.true .turn{display:none}
.device.true .knob{position:absolute;width:calc(var(--kmm,15)*var(--mm));height:calc(var(--kmm,15)*var(--mm));top:calc((66 - var(--kmm,15) / 2)*var(--mm));box-shadow:0 calc(.6*var(--mm)) calc(1.4*var(--mm)) rgba(0,0,0,.35), inset 0 -1px 2px rgba(0,0,0,.2)}
.device.true .knob.v{left:calc((24 - var(--kmm,15) / 2)*var(--mm))} .device.true .knob.s{left:calc((64 - var(--kmm,15) / 2)*var(--mm))}
.device.true .knob .mark{top:calc(1.2*var(--mm));width:calc(1.2*var(--mm));height:calc(4*var(--mm));margin-left:calc(-.6*var(--mm));border-radius:calc(.6*var(--mm))}
.device.true .klabel{position:absolute;top:calc(76*var(--mm));width:calc(30*var(--mm));text-align:center;font-size:calc(2.4*var(--mm));letter-spacing:.1em}
.device.true .knobcol:first-child .klabel{left:calc(9*var(--mm))} .device.true .knobcol:last-child .klabel{left:calc(49*var(--mm))}
.cardref{width:calc(85.6*var(--mm));height:calc(53.98*var(--mm));max-width:100%;border:2px dashed var(--muted);border-radius:calc(3.2*var(--mm));display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);margin:10px 0}
#calib[hidden]{display:none}
.rangerow{display:flex;align-items:center;gap:10px;font-size:13px}
.rangerow input{flex:1}
/* standalone app window: only the Cube */
body.appmode{overflow:hidden}
.appmode .wrap{max-width:none;padding:0;margin:0}
.appmode header,.appmode .side,.appmode .keyline,.appmode .turn{display:none !important}
.appmode .grid{display:block}
.appmode .main{min-height:100vh;justify-content:center;align-items:center;padding:16px;box-sizing:border-box}
.appmode .device.kbig .knobrow{display:flex}
@media (max-width:640px){
  .keyline{display:none}
  .device{padding:4%;border-radius:14px}
  .faceplate{padding:6% 6% 5%}
  .knobrow{gap:8px}
  .swrow{flex-wrap:wrap}
  .sw{justify-content:flex-start}
  .row{flex-wrap:wrap}
  .row select{max-width:100%}
  .card{padding:14px}
}
@media (max-width:380px){ .turn{width:32px;height:32px;font-size:15px} .knobrow{gap:6px} }
@media (max-width:640px){h1{font-size:30px}.knob{width:calc(var(--kmm,15)*4.8px);height:calc(var(--kmm,15)*4.8px)}.turn{width:36px;height:36px}}

/* ===== Cube v2 look: an 85 mm cube; the two screens on the face, the knobs on top, a speaker behind a grille on
   each side. The phone layout (web app) keeps its knobs under the thumbs. ===== */
body:not(.phone) .device{position:relative;aspect-ratio:1/1;margin-top:calc(var(--kmm,15)*4.6px + 6px);display:flex}
body:not(.phone) .device:not(.true) .faceplate{flex:1;justify-content:center;padding:6%;position:static}   /* static: the knobs sit on the cube's top edge, not inside the wood */
body:not(.phone) .screens{justify-content:center}
body:not(.phone) .screens .glass{flex:0 0 42%}
body:not(.phone) .knobs{position:absolute;left:0;right:0;bottom:100%;padding:0;display:flex;justify-content:space-around;align-items:flex-end;pointer-events:none}
body:not(.phone) .knobcol{pointer-events:auto;width:46%;align-items:center}
body:not(.phone) .device:not(.dual) .knobs{justify-content:center;gap:16%}
body:not(.phone) .device:not(.dual) .knobcol{width:auto}
body:not(.phone) .knobrow,body:not(.phone) .device.kbig .knobrow{display:flex;align-items:flex-end;gap:10px}
body:not(.phone) .device.kbig .knob{order:0}
body:not(.phone) .turn{margin-bottom:4px}
/* a knob seen from the front: a knurled cylinder standing 12 mm proud of the top */
body.phone .device.true .knob, body:not(.phone) .knob{width:calc(var(--kmm,15)*5.2px);height:calc(var(--kmm,15)*4.6px);border-radius:7px 7px 2px 2px;
  box-shadow:inset 0 3px 0 rgba(255,255,255,.22), 0 2px 0 rgba(0,0,0,.25)}
body.phone .device.true .knob .rot, body:not(.phone) .knob .rot{border-radius:inherit;transform:none !important;
  background:repeating-linear-gradient(90deg,rgba(0,0,0,.20) 0 2px,transparent 2px 6px);background-position-x:calc(var(--rot,0) * .12px);
  -webkit-mask:linear-gradient(transparent 0 16%,#000 16%);mask:linear-gradient(transparent 0 16%,#000 16%)}
body.phone .device.true .knob::after, body:not(.phone) .knob::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.30),rgba(255,255,255,.18) 35%,rgba(255,255,255,.05) 55%,rgba(0,0,0,.35))}
body.phone .device.true .knob .ring, body:not(.phone) .knob .ring{inset:auto 0 -7px 0;height:3px;border-radius:2px;-webkit-mask:none;mask:none;
  background:linear-gradient(90deg,var(--accent) calc(var(--p,0)*100%),transparent 0)}
body:not(.phone) .knob:focus-visible{box-shadow:0 0 0 3px var(--accent)}
/* actual size: 85 mm, screens 27 mm, knobs 15 mm across and 12 mm tall on top */
.device.true{width:calc(85*var(--mm));height:calc(85*var(--mm));aspect-ratio:auto;margin-top:calc(14*var(--mm));border-radius:calc(1.5*var(--mm))}
.device.true .faceplate{left:calc(5*var(--mm));top:calc(5*var(--mm));width:calc(75*var(--mm));height:calc(75*var(--mm));padding:0}
.device.true .glass{left:calc(24*var(--mm));top:calc(24*var(--mm));flex:none}   /* from the faceplate (5 mm in): screens centred on the face, 29 mm from each edge */
.device.true.dual .glass{left:calc(5*var(--mm))}
.device.true.dual .glass.g2{left:calc(43*var(--mm))}
/* the colour IPS screens (Waveshare 1.54" LCD module: a 27.72 mm picture in a thin black frame, on a 35 x 50 mm board
   turned upright): two boards side by side behind the face, centred under the knobs (18.5 and 56.5 mm across) */
.device.true.lcd .glass{width:calc(27.72*var(--mm));left:calc(23.64*var(--mm));top:calc(23.64*var(--mm));box-shadow:0 0 0 calc(1.4*var(--mm)) #050506}
.device.true.lcd.dual .glass{left:calc(4.64*var(--mm))}
.device.true.lcd.dual .glass.g2{left:calc(42.64*var(--mm))}
body:not(.phone) .device.true .knobs{display:block;position:absolute;inset:0;pointer-events:none}
.device.true .knobcol,.device.true .knobrow{display:contents}
.device.true .knob{position:absolute;pointer-events:auto;width:calc(var(--kmm,15)*var(--mm));height:calc(12*var(--mm));top:calc(-17*var(--mm));border-radius:calc(1*var(--mm)) calc(1*var(--mm)) 0 0}
/* (measured from the faceplate, which starts 5 mm in from the cube's edges) */
.device.true .knob.v{left:calc((18.5 - var(--kmm,15) / 2)*var(--mm))} .device.true .knob.s{left:calc((56.5 - var(--kmm,15) / 2)*var(--mm))}
.device.true:not(.dual) .knob.v{left:calc((20 - var(--kmm,15) / 2)*var(--mm))} .device.true:not(.dual) .knob.s{left:calc((55 - var(--kmm,15) / 2)*var(--mm))}
/* on a computer (not a phone): the knobs half as tall (6 mm instead of 12), still standing on the cube's top */
body:not(.phone) .device.true .knob{height:calc(6*var(--mm));top:calc(-11*var(--mm))}
body:not(.phone) .device.true{margin-top:calc(8*var(--mm))}
body:not(.phone) .device:not(.true) .knob{height:calc(var(--kmm,15)*2.3px)}

/* real size on a phone held upright: the whole 85 mm cube, knobs on top; it is wider than the phone, so its sides
   run off the edges (both knobs and both screens stay in view) */
body.phone.truesz .device.true{position:fixed;inset:auto;left:50%;top:calc(50% + 6 * var(--mm));transform:translate(-50%,-50%);
  width:calc(85*var(--mm));height:calc(85*var(--mm));max-width:none;max-height:none;padding:0;margin:0;border-radius:calc(1.5*var(--mm));display:block}
body.phone.truesz .device.true .faceplate{position:absolute;left:calc(5*var(--mm));top:calc(5*var(--mm));width:calc(75*var(--mm));height:calc(75*var(--mm));padding:0;display:block;border-radius:calc(1*var(--mm))}
body.phone.truesz .device.true .screens{display:contents}
body.phone.truesz .device.true .screens::after{display:none}
body.phone.truesz .device.true .screens .glass{position:absolute;width:calc(27*var(--mm));height:calc(27*var(--mm));top:calc(24*var(--mm));left:calc(24*var(--mm));padding:0;border-radius:0}
body.phone.truesz .device.true.dual .screens .glass{left:calc(5*var(--mm))}
body.phone.truesz .device.true.dual .screens .glass.g2{left:calc(43*var(--mm))}
body.phone.truesz .device.true.lcd .screens .glass{width:calc(27.72*var(--mm));height:calc(27.72*var(--mm));top:calc(23.64*var(--mm));left:calc(23.64*var(--mm));box-shadow:0 0 0 calc(1.4*var(--mm)) #050506}
body.phone.truesz .device.true.lcd.dual .screens .glass{left:calc(4.64*var(--mm))}
body.phone.truesz .device.true.lcd.dual .screens .glass.g2{left:calc(42.64*var(--mm))}
body.phone.truesz .device.true .knobs{display:block;position:absolute;inset:0;padding:0;pointer-events:none}
body.phone.truesz .device.true .knobcol,body.phone.truesz .device.true .knobrow{display:contents}
body.phone.truesz .device.true .knobcol::before,body.phone.truesz .device.true .turn,body.phone.truesz .device.true .swipe,body.phone.truesz .device.true .volnote{display:none !important}
body.phone.truesz .device.true .knob{position:absolute;pointer-events:auto;width:calc(var(--kmm,15)*var(--mm));height:calc(12*var(--mm));top:calc(-17*var(--mm));border-radius:calc(1*var(--mm)) calc(1*var(--mm)) 0 0}
body.phone.truesz .device.true .knob.v{left:calc((18.5 - var(--kmm,15) / 2)*var(--mm))} body.phone.truesz .device.true .knob.s{left:calc((56.5 - var(--kmm,15) / 2)*var(--mm))}
body.phone.truesz .device.true:not(.dual) .knob.v{left:calc((20 - var(--kmm,15) / 2)*var(--mm))} body.phone.truesz .device.true:not(.dual) .knob.s{left:calc((55 - var(--kmm,15) / 2)*var(--mm))}
/* too narrow for the screens side by side: the face fills the phone's width and the screens stack, still 27 mm each */
body.phone.truesz .device.true.dual.stack{width:calc(100vw - 12px)}
body.phone.truesz .device.true.dual.stack .faceplate{width:calc(100% - 10*var(--mm))}
body.phone.truesz .device.true.dual.stack .screens .glass{left:calc(50% - 13.5*var(--mm));top:calc(6.5*var(--mm))}
body.phone.truesz .device.true.dual.stack .screens .glass.g2{left:calc(50% - 13.5*var(--mm));top:calc(41.5*var(--mm))}
body.phone.truesz .device.true.lcd.dual.stack .screens .glass{left:calc(50% - 13.86*var(--mm));top:calc(6.2*var(--mm))}
body.phone.truesz .device.true.lcd.dual.stack .screens .glass.g2{left:calc(50% - 13.86*var(--mm));top:calc(41.1*var(--mm))}
body.phone.truesz .device.true.dual.stack .knob.v{left:calc(25% - var(--kmm,15) / 2 * var(--mm))}
body.phone.truesz .device.true.dual.stack .knob.s{left:calc(75% - var(--kmm,15) / 2 * var(--mm))}
/* the knobs are small at real size: the whole column above each knob, up to the top of the phone, turns it too */
body.phone.truesz .device.true .knob::before{content:"";position:absolute;left:-45%;right:-45%;top:-100vh;bottom:0}
body.phone.truesz .device.true::after{content:"Actual size · drag a knob to turn it, tap to press, hold to go back";position:absolute;top:calc(100% + 14px);left:0;right:0;text-align:center;font-size:11px;color:#9A9FA6}

/* settings: search, page headings while searching, status chips, alarm days, toast */
.ssearch{position:relative;margin:0 0 10px}.ssearch input{width:100%;font:inherit;font-size:14px;padding:10px 12px 10px 36px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--ink);min-height:44px}
.ssearch svg{position:absolute;left:11px;top:13px;width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2}
.sphead{display:none;font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:10px 2px -6px}
body.setsearching .spage{display:flex}body.setsearching .spage .card.miss{display:none}body.setsearching .sphead:not([hidden]){display:block}
body.setsearching .setgrid .spage.on,body.setsearching .setgrid .spage{display:grid}
.setgrid .sphead{grid-column:1/-1;margin:6px 2px -4px}
.simhead{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:14px 2px -4px;grid-column:1/-1;display:flex;align-items:center;gap:8px}
.simhead::after{content:"";flex:1;height:1px;background:var(--line)}
.stabs button{position:relative}.stabs .tdot{position:absolute;top:5px;right:calc(50% - 16px);width:8px;height:8px;border-radius:50%;background:#D23B2F;box-shadow:0 0 0 2px var(--panel)}
.health{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--bg);border:1px solid var(--line);color:var(--ink)}
.chip.good{background:rgba(46,158,91,.14);border-color:transparent;color:#1E8E4E}.chip.warn{background:rgba(217,161,0,.16);border-color:transparent;color:#A86F00}.chip.bad{background:rgba(210,59,47,.14);border-color:transparent;color:#C8352A}
.days{display:flex;gap:5px}.days button{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:700 12px "Inter",system-ui,sans-serif;cursor:pointer;padding:0}
.days button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.row small{display:block;color:var(--muted);font-size:12px;font-weight:400}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(24px + env(safe-area-inset-bottom));background:#1C1B19;color:#fff;border-radius:12px;padding:10px 12px 10px 16px;display:flex;gap:14px;align-items:center;font:14px "Inter",system-ui,sans-serif;z-index:50;box-shadow:0 8px 24px rgba(0,0,0,.25);max-width:calc(100vw - 32px)}
.toast[hidden]{display:none}.toast button{background:none;border:0;color:#FFB27A;font:700 14px "Inter",system-ui,sans-serif;cursor:pointer;padding:4px 6px}
#setView .toast{bottom:calc(96px + env(safe-area-inset-bottom))}

/* ---------------- web app pages ---------------- */
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-decoration:none;font:600 14px/1 Inter,system-ui,sans-serif}
.iconbtn:hover{border-color:var(--muted)}
.iconbtn svg{width:20px;height:20px}
body[data-page="app"]{overflow-x:hidden}
body[data-page="app"] .wrap{max-width:none;padding:0}
.stage{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:64px 16px 28px}
.stage .device{width:min(580px,100%)}
.stage .device.true{width:calc(85*var(--mm))}
.appbar{position:fixed;top:14px;right:16px;z-index:5;display:flex;gap:8px}
.appbar [hidden]{display:none}
button.iconbtn{cursor:pointer}
.statusline{width:min(580px,100%);text-align:center}
.statusline .card{background:transparent;border:0;padding:0}
.statusline .now{justify-content:center;gap:10px}
.statusline .now span{display:none}
.statusline .small{margin:4px 0 0}
body[data-page="app"] .keyline{opacity:.85}
@media (display-mode: standalone){ .stage{padding-top:56px} }
/* ---- phone layout: thin wooden frame, screens as large as they fit, knobs under the thumbs ---- */
body.phone{overflow:hidden;height:100vh;height:100dvh;overscroll-behavior:none}
body.phone .stage{padding:0;min-height:0;height:100vh;height:100dvh;display:block}
body.phone .statusline,body.phone .keyline,body.phone .turn,body.phone .klabel{display:none !important}
html:has(body.phone),body.phone{background:var(--face)}
body.phone .device{position:fixed;inset:0;width:auto;max-width:none;padding:7px;border-radius:0;box-shadow:none}
body.phone .faceplate{height:100%;border-radius:30px;gap:0;justify-content:space-between}
/* portrait: the radio is "cut" straight across, just below the status bar and just below the knobs: a band of
   faceplate in a thin wooden frame, on black above and below */
html:has(body.phone.port),body.phone.port{background:#000}
body.phone.port .device{top:max(10px, env(safe-area-inset-top));bottom:max(14px, calc(env(safe-area-inset-bottom) + 8px));padding:7px;background-position:center;box-shadow:none}
body.phone.port .faceplate{border-radius:0;box-shadow:none}
body.phone .screens{width:auto;display:flex;align-items:center;justify-content:center}
body.phone .screens .glass{flex:none;width:var(--ps);height:var(--ps);padding:5px;border-radius:12px}
body.phone #big,body.phone #big2{width:100%;height:100%;border-radius:7px}
body.phone .knob{width:var(--kd);height:var(--kd)}
body.phone .swipe{width:var(--sw)}
body.phone .knobrow,body.phone .device.kbig .knobrow{display:flex;gap:0}
body.phone .volnote{min-width:var(--sw);box-sizing:border-box}
body.phone .appbar{z-index:6}
body.phone.port .faceplate{padding:58px 22px 20px}
body.phone.port .appbar{top:calc(max(10px, env(safe-area-inset-top)) + 12px);right:24px}
body.phone.port .screens{flex-direction:column;gap:10px;flex:1;justify-content:flex-start}
body.phone.port .knobs{justify-content:space-around;align-items:flex-end;padding-top:12px}
/* what each knob does, above it */
body.phone .knobcol::before{font-size:10px;line-height:1.35;color:var(--muted);text-align:center;white-space:pre-line;max-width:160px}
body.phone .knobcol:first-child::before{content:"Press to mute\AHold to switch on or off"}
body.phone .knobcol:last-child::before{content:"Swipe to scroll\APress to select · hold to go back"}
body.phone.land .faceplate{flex-direction:row;align-items:center;padding:22px calc(env(safe-area-inset-right) + 44px) 22px calc(env(safe-area-inset-left) + 56px)}
body.phone.land .knobs{display:contents}
body.phone.land .knobcol:first-child{order:0}
body.phone.land .knobcol::before{max-width:112px}
body.phone.land .screens{order:1;flex-direction:row;gap:8px;flex:1}
body.phone.land .knobcol:last-child{order:2}
/* real size on a phone: screens and knobs at their real size (no bezel padding), centred, with a note under the screens */
body.phone.truesz .screens .glass{padding:0;border-radius:2px}
body.phone.truesz #big,body.phone.truesz #big2{border-radius:0}
body.phone.truesz.port .screens{justify-content:center}
body.phone.truesz.port .screens::after{content:"Screens at actual size";font-size:10px;color:var(--muted);margin-top:6px}
/* two screens at actual size, portrait: side by side (stacked only when enlarged) */
body.phone.truesz.port .screens{flex-direction:row;flex-wrap:wrap;align-content:center;justify-content:center;gap:10px;width:100%;align-self:stretch}
body.phone.truesz.port .screens::after{flex-basis:100%;text-align:center;margin-top:0}
body.phone.truesz.port .faceplate{padding-left:8px;padding-right:8px}
body.phone.truesz.port .screens{gap:8px}
/* actual size: the radio shrinks round its screens and knobs (a compact box in the middle), instead of filling the
   phone; enlarged, it fills the phone as before */
html:has(body.phone.truesz),body.phone.truesz{background:#111113}
body.phone.truesz .device{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.55)}
body.phone.truesz .faceplate{height:auto;border-radius:10px;justify-content:flex-start}
body.phone.truesz.port .faceplate{padding:54px 14px 18px}
body.phone.truesz.port .screens{flex:none;margin-bottom:22px}
body.phone.truesz.port .knobs{gap:26px;justify-content:center}
body.phone.truesz.land .faceplate{padding:20px 22px;gap:22px}
body.phone.truesz.land .screens{flex:none}
body.phone.truesz .appbar{position:absolute;top:12px;right:12px}
body.phone.land .appbar{top:max(10px, env(safe-area-inset-top));right:calc(env(safe-area-inset-right) + 18px)}
#setView .wrap{max-width:1180px}
.sethead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.sethead h1{margin:0}
.cubestate{margin:8px 0 0;font-size:13px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px 12px;display:flex;align-items:center;gap:8px}
.cubestate::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none}
/* settings page: the tab bar sits at the bottom, under the thumb */
#setView .stabs{position:fixed;left:0;right:0;bottom:0;top:auto;border-radius:0;border-width:1px 0 0;margin:0;padding:6px max(6px, env(safe-area-inset-left)) calc(env(safe-area-inset-bottom) + 6px);box-shadow:0 -6px 18px rgba(0,0,0,.08)}
#setView .wrap{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
@media (min-width:900px){ #setView .stabs{left:50%;right:auto;transform:translateX(-50%);width:560px;bottom:14px;border-radius:16px;border-width:1px} }
.setgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;align-items:start}
.setgrid .card{min-width:0}
.note{font-size:12px;color:var(--muted);line-height:1.45;margin:10px 0 0}
.appbar{top:max(14px, env(safe-area-inset-top));right:max(16px, env(safe-area-inset-right))}
@media (max-width:640px){
  .stage{justify-content:flex-start;padding:max(64px, calc(env(safe-area-inset-top) + 56px)) 12px max(20px, env(safe-area-inset-bottom))}
  #setView .wrap{padding:18px 12px calc(120px + env(safe-area-inset-bottom))}
  .sethead{align-items:flex-start}
  .sethead h1{font-size:30px}
  .sethead .iconbtn{width:100%;justify-content:center}
  .setgrid{gap:12px}
}

/* ================= Player 2: an iPhone-style Now Playing screen, with Cube's screens as the art ================= */
html:has(body.p2),body.p2,body.p2 *{touch-action:manipulation}   /* no double-tap zoom on iPhones */
body.p2 #p2art,body.p2 #p2art *{touch-action:none}
body.p2{background:#111;color:#fff;overflow:hidden;height:100vh;height:100dvh;overscroll-behavior:none}
html:has(body.p2){background:#111}
body.p2 > .wrap{display:none}
body:not(.p2) #p2,body:not(.p2) #p2bg{display:none}
#p2bg{position:fixed;inset:0;z-index:0;transition:background .8s ease}
#p2bg:after{content:"";position:absolute;inset:0;background:radial-gradient(120% 70% at 20% 0%,rgba(255,255,255,.16),transparent 60%),radial-gradient(90% 60% at 100% 100%,rgba(0,0,0,.45),transparent 70%)}
#p2{position:fixed;inset:0;z-index:1;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;align-items:center;padding:max(10px,env(safe-area-inset-top)) max(0px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left));user-select:none;-webkit-user-select:none}
#p2 button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.p2head{position:relative;width:min(600px,100%);display:flex;align-items:center;justify-content:space-between;padding:6px 20px 0;flex:none}
.p2title{text-align:center;font-size:13px;line-height:1.25;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}
.p2hr{min-width:32px;height:32px;display:flex;align-items:center;justify-content:flex-end}
.p2sleep{height:32px;width:32px;padding:0;justify-content:center;border-radius:16px;background:rgba(255,255,255,.16);color:#fff;border:0;display:flex;align-items:center;gap:5px;font:600 13px/1 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-variant-numeric:tabular-nums;cursor:pointer}
.p2sleep.set{height:28px;width:auto;padding:0 10px 0 8px;border-radius:14px}
.p2sleep:not(.set) span{display:none}
.p2sleep:not(.set) svg{width:17px;height:17px}
.p2tg{display:none !important;opacity:.55}
body.p2pq .p2tg{display:grid !important}
.p2tg.on{opacity:1;background:rgba(255,255,255,.2) !important;border-radius:10px !important}
.p2tg svg{width:22px;height:22px}
.p2tg .r1{display:none}.p2tg.one .r1{display:block}
body.p2pq .p2ctl{gap:22px}
body.p2.p2night .p2tg{color:var(--night)}
body.p2.p2night .p2tg.on{background:transparent !important;box-shadow:inset 0 0 0 1.5px var(--night)}
.p2sleep:active{background:rgba(255,255,255,.3)}
.p2sleep svg{width:13px;height:13px;flex:none}
.p2title b{display:block;font-size:15px;font-weight:600}
.p2title span{opacity:.6}
.p2round{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;place-items:center;cursor:pointer;border:0;color:#fff;padding:0;text-decoration:none;flex:none}
.p2round:active{background:rgba(255,255,255,.3)}
.p2round svg{width:17px;height:17px}
.p2art{display:flex;gap:12px;align-items:center;justify-content:center;flex:1;min-height:0;transition:transform .35s cubic-bezier(.3,1.4,.5,1);touch-action:none;cursor:grab}
.p2art.paused{transform:scale(.88)}
.p2lcd{width:var(--side);height:var(--side);background:#000;border-radius:14px;overflow:hidden;box-shadow:0 18px 44px rgba(0,0,0,.5),0 0 0 .5px rgba(255,255,255,.12);flex:none;position:relative}
#p2.dual .p2lcd{border-radius:10px}
.p2lcd canvas{width:100%!important;height:100%!important;border-radius:0!important;display:block}
.p2lcd[hidden]{display:none}
.p2panel{width:min(600px,100%);padding:0 24px;flex:none;display:flex;flex-direction:column;gap:18px}
.p2meta{display:flex;align-items:center;gap:12px}
.p2meta .t{flex:1;min-width:0}
#p2stn{font-size:21px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p2song{font-size:19px;opacity:.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.p2track{height:7px;border-radius:4px;background:rgba(255,255,255,.22);overflow:hidden}
.p2track i{display:block;height:100%;width:100%;background:rgba(255,255,255,.75)}
.p2times{display:flex;justify-content:space-between;font-size:12px;font-weight:500;margin-top:7px;font-variant-numeric:tabular-nums}
#p2state{opacity:.6}
.p2pill{display:inline-flex;align-items:center;gap:5px;opacity:.85}
.p2pill:before{content:"";width:6px;height:6px;border-radius:50%;background:#FF453A}
.p2pill.off:before{background:rgba(255,255,255,.4)}
.p2ctl{display:flex;justify-content:center;align-items:center;gap:56px}
.p2taphint{display:none;text-align:center;font-weight:700;font-size:14px;margin:0 0 -4px;letter-spacing:.1px}
body.p2tap .p2taphint{display:block}
body.p2tap #p2play{width:76px;height:76px;background:#fff;color:var(--stc,#b0182e);border-radius:50%;animation:p2pulse 1.8s ease-out infinite}
body.p2tap #p2play svg{transform:translateX(3px) scale(.82)}
@keyframes p2pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.55)}100%{box-shadow:0 0 0 22px rgba(255,255,255,0)}}
body.p2.p2night.p2tap #p2play{background:transparent;color:var(--night);animation:p2pulsen 1.8s ease-out infinite}
@keyframes p2pulsen{0%{box-shadow:inset 0 0 0 2px var(--night),0 0 0 0 color-mix(in srgb,var(--night) 50%,transparent)}100%{box-shadow:inset 0 0 0 2px var(--night),0 0 0 22px transparent}}
@media (prefers-reduced-motion:reduce){body.p2tap #p2play{animation:none}}
.p2ctl button{background:none;border:0;padding:8px;cursor:pointer;border-radius:50%;transition:transform .12s,background .12s;display:grid;place-items:center}
.p2ctl button:active{transform:scale(.86);background:rgba(255,255,255,.12)}
.p2vol{display:flex;align-items:center;gap:12px}
.p2vol svg{flex:none;opacity:.6}
#p2vol{-webkit-appearance:none;appearance:none;flex:1;height:7px;border-radius:4px;background:linear-gradient(90deg,#fff 0 var(--v,50%),rgba(255,255,255,.22) var(--v,50%));outline:none;margin:0;cursor:pointer}
#p2vol::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.3);opacity:0}
#p2vol:active::-webkit-slider-thumb{opacity:1}
#p2vol::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#fff;border:0;opacity:0}
.p2bottom{display:flex;justify-content:space-around;align-items:flex-start}
.p2bottom button{background:none;border:0;opacity:.62;cursor:pointer;padding:4px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px!important;font-weight:500}
.p2bottom button[hidden]{display:none}
.p2bottom svg{width:24px;height:24px}
/* portrait: a column, the art growing into the space */
#p2.port .p2art{padding:18px 0 22px}
/* landscape (a phone on its side): two screens stretch across with a bar of controls under them; one screen sits left */
#p2.land{padding-top:max(8px,env(safe-area-inset-top))}
#p2.land .p2head{position:absolute;top:max(8px,env(safe-area-inset-top));left:0;right:0;width:auto;padding:0 max(16px,env(safe-area-inset-left)) 0 max(16px,env(safe-area-inset-right));pointer-events:none}
#p2.land .p2head > *{pointer-events:auto}
#p2.land .p2title{display:none}
#p2.land.dual .p2art{flex:none;padding:6px 0 10px;gap:16px}
#p2.land.dual .p2panel{width:min(1100px,100%);flex-direction:row;align-items:center;gap:22px;padding:0 max(52px,env(safe-area-inset-left))}
#p2.land.dual .p2meta{flex:1 1 200px;min-width:150px}
#p2.land.dual .p2meta .p2round{display:none}
#p2.land.dual #p2stn,#p2.land.dual #p2song{font-size:15px}
#p2.land.dual .p2live{display:none}
#p2.land.dual .p2ctl{gap:30px}
#p2.land.dual .p2ctl svg{transform:scale(.8)}
#p2.land.dual .p2vol{width:170px;flex:none}
#p2.land.dual .p2bottom button span{display:none}
#p2.land:not(.dual){flex-direction:row;justify-content:center;gap:40px;padding-left:max(40px,env(safe-area-inset-left))}
#p2.land:not(.dual) .p2art{flex:none}
#p2.land:not(.dual) .p2panel{width:min(400px,46vw);gap:14px}
/* sheets */
#p2shade{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:7;opacity:0;pointer-events:none;transition:opacity .3s}
#p2shade.open{opacity:1;pointer-events:auto}
.p2sheet{position:fixed;left:0;right:0;bottom:0;top:max(48px,calc(env(safe-area-inset-top) + 38px));margin:0 auto;max-width:600px;background:#1C1C1E;border-radius:13px 13px 0 0;z-index:8;transform:translateY(105%);transition:transform .38s cubic-bezier(.2,.9,.25,1);display:flex;flex-direction:column;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,Arial,sans-serif}
.p2sheet.open{transform:none}
#p2.land ~ .p2sheet,body.p2 .p2sheet.side{top:12px;bottom:12px;left:auto;right:max(12px,env(safe-area-inset-right));width:min(420px,92vw);border-radius:14px;transform:translateX(110%)}
#p2.land ~ .p2sheet.open{transform:none}
.p2sh{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 6px}
.p2sh b{font-size:17px;font-weight:600}
.p2sh button{background:none;border:0;color:#0A84FF;font:600 17px -apple-system,BlinkMacSystemFont,Inter,sans-serif;cursor:pointer;padding:0;min-width:44px;text-align:right}
.p2sb{overflow:auto;padding:4px 16px calc(30px + env(safe-area-inset-bottom));flex:1;-webkit-overflow-scrolling:touch}
.p2gl{font-size:13px;color:#8D8D93;text-transform:uppercase;margin:18px 16px 6px}
.p2gf{font-size:13px;color:#8D8D93;margin:6px 16px 0;line-height:1.35}
.p2group{background:#2C2C2E;border-radius:10px;overflow:hidden}
.p2row{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 16px;position:relative;font-size:17px;width:100%;background:none;border:0;color:#fff;text-align:left;cursor:pointer;text-decoration:none;font-family:inherit}
.p2row+.p2row:before{content:"";position:absolute;top:0;left:16px;right:0;height:.5px;background:#48484A}
.p2row.ic+.p2row.ic:before{left:62px}
.p2row .grow{flex:1;min-width:0;padding:7px 0;line-height:1.25}
.p2row small{display:block;color:#8D8D93;font-size:13px}
.p2row .val{color:#8D8D93}
.p2row .chev{color:#5A5A5E;font-size:20px}
.p2check{color:#0A84FF;font-weight:600}
.p2ico{width:30px;display:grid;place-items:center;flex:none;color:#0A84FF}
body.p2.p2night .p2ico{color:var(--night)}
body.p2.p2night .p2sleep{background:transparent;color:var(--night);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--night) 45%,transparent)}
.p2sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.p2vg{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;padding:4px 2px}
.p2vg button{background:none;border:0;color:inherit;padding:0;cursor:pointer;font:500 12px -apple-system,BlinkMacSystemFont,Inter,sans-serif;text-align:center}
.p2vg canvas,.p2vg .ph{width:100%;aspect-ratio:1;border-radius:10px;display:block;background:#000;box-shadow:0 0 0 .5px rgba(255,255,255,.15)}
.p2vg .on canvas,.p2vg .on .ph{box-shadow:0 0 0 2.5px #0A84FF}
.p2vg span{display:block;margin-top:5px;opacity:.85}
body.p2.p2night .p2vg .on canvas{box-shadow:0 0 0 2.5px var(--night)}
body.p2.p2night .p2vg canvas{filter:grayscale(1) brightness(1.9)}
#p2moon.on svg{fill:currentColor}
.p2bottom button{padding:4px 4px}
.p2nav{display:none;position:fixed;left:0;right:0;bottom:0;z-index:70;justify-content:space-around;padding:6px max(4px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));background:rgba(18,18,20,.94);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-top:.5px solid rgba(255,255,255,.12);font-family:-apple-system,BlinkMacSystemFont,Inter,sans-serif}
body.p2.p2full .p2nav{display:flex;transform:translateZ(0)}
body.p2.p2full-log .p2nav [data-p2c="log"],body.p2.p2full-hist .p2nav [data-p2c="history"],body.p2.p2full-set .p2nav [data-p2c="settings"],body.p2.p2full-cfg .p2nav [data-p2c="cube"]{opacity:1;color:var(--p2acc,#fff)}
.p2nav button{background:none;border:0;color:#fff;opacity:.62;display:flex;flex-direction:column;align-items:center;gap:3px;font:500 10px -apple-system,BlinkMacSystemFont,Inter,sans-serif;cursor:pointer;padding:2px 2px;min-width:44px}

.p2nav svg{width:22px;height:22px}
body.p2.p2night .p2nav{background:#000;border-color:color-mix(in srgb,var(--night) 30%,transparent)}
body.p2.p2night .p2nav button{color:var(--night)}
body.p2 #setFrame.solo{bottom:auto;height:calc(100% - 62px - env(safe-area-inset-bottom))}
body.p2 .p2log{padding-bottom:calc(66px + env(safe-area-inset-bottom))}
.p2logbody .l.latest{font-size:14px;line-height:1.45;margin-top:4px;padding:6px 8px;border-radius:6px;background:color-mix(in srgb,var(--acc) 18%,transparent);box-shadow:inset 3px 0 0 var(--acc);color:var(--ink);font-weight:600}
.p2log{position:fixed;inset:0;z-index:9;background:#000;display:none;flex-direction:column;--ink:#E8E8E8;--acc:#E2611E;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}
.p2log.open{display:flex}
.p2logbar{display:flex;justify-content:space-between;align-items:center;padding:8px 6px 10px;border-bottom:1px solid color-mix(in srgb,var(--acc) 50%,transparent);color:var(--acc);font:700 14px "JetBrains Mono",ui-monospace,Menlo,monospace}
.p2logbar button{background:none;border:1px solid var(--acc);color:var(--acc);border-radius:8px;padding:5px 12px;font:600 14px "JetBrains Mono",ui-monospace,Menlo,monospace;cursor:pointer}
.p2logbody{flex:1;overflow:auto;padding:8px 6px;font:400 12px/1.5 "JetBrains Mono",ui-monospace,Menlo,monospace;color:var(--ink);-webkit-overflow-scrolling:touch;user-select:text;-webkit-user-select:text}
.p2logbody .t{color:color-mix(in srgb,var(--ink) 55%,transparent)}
.p2logbody .k{color:var(--acc)}
.p2logbody .k-stream{color:#4FA3FF}.p2logbody .k-cover{color:#C792EA}.p2logbody .k-tube{color:#F5C518}.p2logbody .k-system{color:#9AA3AE}.p2logbody .k-other{color:#9AA3AE}.p2logbody .k-plex{color:#E5A00D}.p2logbody .k-song{color:#FF6FA8}.p2logbody .k-weather{color:#7FD1FF}
.p2logbody .lk-bad{color:#FF8A80}.p2logbody .lk-good{color:#B9F6CA}.p2logbody .lk-warn{color:#FFE082}
.p2logbody .lg-song{color:#FF6FA8;font-weight:600}.p2logbody .lg-codec{color:#64FFDA}.p2logbody .lg-rate{color:#80D8FF}.p2logbody .lg-num{color:#FFD180}
.p2logbody .lg-url{color:#90A4AE;text-decoration:underline;text-decoration-color:rgba(144,164,174,.35)}.p2logbody .lg-bad{color:#FF5252;font-weight:700}.p2logbody .lg-good{color:#69F0AE;font-weight:700}.p2logbody .lg-stn{font-weight:700}
.p2logbody .l.latest.lk-bad{background:rgba(255,82,82,.16);box-shadow:inset 3px 0 0 #FF5252}.p2logbody .l.latest.lk-good{background:rgba(105,240,174,.14);box-shadow:inset 3px 0 0 #69F0AE}
.p2logbody .cur{color:var(--acc);animation:p2blink 1s steps(1) infinite}
@keyframes p2blink{50%{opacity:0}}
body.p2 #setFrame.solo{max-width:none;top:0;height:100%;border-radius:0}
#setView.solo .stabs,#setView.solo .ssearch,#setView.solo #setQ,#setView.solo .cubestate,#setView.solo .eyebrow{display:none!important}
#setView.solo .sethead h1{font-size:0}
#setView.solo .sethead h1:after{content:"History";font-size:34px}
#setView:not(.solo) .stabs button[data-sp="history"]{display:none}
#setView #btnBack{display:none}
#setView .stabs .cubetab{color:var(--ios-blue)}
#setView .stabs .cubetab svg{fill:none}
#setView.solo{padding-bottom:20px}
body.p2night #setView{--ios-bg:#000;--ios-cell:#000;--ios-sep:color-mix(in srgb,var(--night) 28%,transparent);--ios-muted:color-mix(in srgb,var(--night) 65%,transparent);--ios-fill:color-mix(in srgb,var(--night) 16%,transparent);--ios-blue:var(--night);color:var(--night)}
html:has(body.p2night #setView){background:#000}
body.p2night #setView .card{box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--night) 30%,transparent)}
body.p2night #setView .stabs{background:#000!important}
body.p2night #setView .stabs button,body.p2night #setView .stabs button[aria-pressed="true"]{color:var(--night)}
body.p2night #setView .switch input:checked + span{background:var(--night)}
body.p2night #setView input,body.p2night #setView select,body.p2night #setView .btn{color:var(--night)}
body.p2night #setView img{filter:grayscale(1) brightness(.7)}
body.p2night #setView .ssearch,body.p2night #setView .ssearch input{background:#000!important;color:var(--night);border-color:color-mix(in srgb,var(--night) 35%,transparent)!important}
body.p2night #setView .ssearch svg{stroke:var(--night)}
body.p2night #setView input,body.p2night #setView textarea,body.p2night #setView table,body.p2night #setView th,body.p2night #setView td,body.p2night #setView thead,body.p2night #setView tr{background:#000!important;color:var(--night)!important}
body.p2night #setView input::placeholder{color:color-mix(in srgb,var(--night) 55%,transparent)}
body.p2night #setView *{border-color:color-mix(in srgb,var(--night) 30%,transparent)!important}
body.p2night #setView .histcard *,body.p2night #setView .lscard *{box-shadow:none}
/* night mode */
body.p2.p2night #p2bg{background:#000!important;transition:none}
body.p2.p2night #p2bg:after{display:none}
body.p2.p2night #p2{color:var(--night)}
body.p2.p2night .p2round{background:transparent;color:var(--night);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--night) 45%,transparent)}
body.p2.p2night .p2track,body.p2.p2night #p2vol{background:color-mix(in srgb,var(--night) 25%,transparent)}
body.p2.p2night .p2track i{background:var(--night)}
body.p2.p2night #p2vol{background:linear-gradient(90deg,var(--night) 0 var(--v,50%),color-mix(in srgb,var(--night) 22%,transparent) var(--v,50%))}
body.p2.p2night #p2vol::-webkit-slider-thumb{background:var(--night)}
body.p2.p2night .p2pill:before{background:var(--night)}
body.p2.p2night .p2lcd{box-shadow:0 0 0 .5px color-mix(in srgb,var(--night) 30%,transparent)}
body.p2.p2night .p2lcd canvas{filter:grayscale(1) brightness(1.9) contrast(1.1)}
body.p2.p2night #p2.nightlight .p2lcd canvas{filter:invert(1) grayscale(1) brightness(1.6) contrast(1.1)}
body.p2.p2night .p2lcd:after{content:"";position:absolute;inset:0;background:var(--night);mix-blend-mode:multiply;pointer-events:none}
body.p2.p2night .p2sheet{color:var(--night);background:#000;box-shadow:0 0 0 .5px color-mix(in srgb,var(--night) 35%,transparent)}
body.p2.p2night .p2group{background:#000;box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--night) 30%,transparent)}
body.p2.p2night .p2row{color:var(--night)}
body.p2.p2night .p2row small,body.p2.p2night .p2gl,body.p2.p2night .p2gf{color:color-mix(in srgb,var(--night) 65%,transparent)}
body.p2.p2night .p2row+.p2row:before{background:color-mix(in srgb,var(--night) 25%,transparent)}
body.p2.p2night .p2check,body.p2.p2night .p2sh button{color:var(--night)}

#cfgFrame{position:fixed;left:0;right:0;top:0;width:100%;height:calc(100% - 62px - env(safe-area-inset-bottom));border:0;z-index:65;background:#F2F2F7}
.p2seg{display:flex;background:#3A3A3C;border-radius:9px;padding:2px;width:100%;margin:8px 0}
.p2seg button{flex:1;border:0;background:none;color:#fff;font:500 13px -apple-system,BlinkMacSystemFont,Inter,sans-serif!important;padding:7px 4px;border-radius:7px;cursor:pointer}
.p2seg button.on{background:#636366;box-shadow:0 3px 8px rgba(0,0,0,.25);font-weight:600!important}
.p2knobs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.p2knob{background:#2C2C2E;border-radius:14px;padding:14px 10px 12px;text-align:center}
.p2knob h4{margin:0 0 10px;font-size:15px;font-weight:600}
.p2knob .r{display:flex;align-items:center;justify-content:center;gap:10px}
.p2knob .turnb{width:40px;height:40px;border-radius:50%;border:0;background:#3A3A3C;color:#fff;font-size:20px;cursor:pointer}
.p2press{width:76px;height:76px;border-radius:50%;border:0;cursor:pointer;background:radial-gradient(circle at 40% 35%,#d9dce0,#8b8f95 70%);box-shadow:0 6px 16px rgba(0,0,0,.45),inset 0 0 0 4px rgba(255,255,255,.18);position:relative;touch-action:none}
.p2press:after{content:"";position:absolute;left:50%;top:9px;width:3px;height:16px;margin-left:-1.5px;border-radius:2px;background:#2a2a2a}
.p2press:active{transform:scale(.95)}
.p2knob p{margin:10px 0 0;font-size:12px;color:#8D8D93;line-height:1.35}
.p2knobov{display:none;position:fixed;left:50%;transform:translateX(-50%);bottom:max(10px,env(safe-area-inset-bottom));z-index:6;width:min(560px,calc(100% - 20px));background:rgba(28,28,30,.9);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:18px;padding:8px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
body.p2.p2knobs .p2knobov{display:block}
.p2knobov .p2knob{padding:8px 6px}
.p2knobov .p2knob p{display:none}
.p2knobov .p2press{width:58px;height:58px}
.p2row .tog{width:51px;height:31px;border-radius:16px;background:#39393D;position:relative;flex:none;border:0;cursor:pointer;padding:0;transition:background .2s}
.p2row .tog:after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.15);transition:transform .2s}
.p2row .tog.on{background:#30D158}
.p2row .tog.on:after{transform:translateX(20px)}
/* settings: an iOS sheet over the player */
#setView .abtxt{font-size:15px;line-height:1.45;margin:6px 0 18px}
#setView .abbuild{display:flex;align-items:center;gap:12px;margin:0 -16px 8px;padding:12px 16px;border-top:.5px solid var(--ios-sep);border-bottom:.5px solid var(--ios-sep);color:inherit;text-decoration:none}
#setView .abbuild:hover{background:rgba(255,255,255,.04)}
#setView .abic{width:34px;height:34px;border-radius:9px;flex:none;display:grid;place-items:center;background:linear-gradient(135deg,#E4C79A,#B98A52)}
#setView .abic svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round}
#setView .abt{flex:1;min-width:0}#setView .abt b{display:block;font-size:16px;font-weight:600}
#setView .abt small{display:block;color:var(--ios-muted);font-size:13px}
#setView .abch{color:var(--ios-muted);font-size:22px}
.chgh{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.chgh b{font-size:15px}
.chgh span{font-size:12px;color:#8D8D93;font-variant-numeric:tabular-nums}
.chg p{margin:4px 0 0;font-size:13px;line-height:1.4;color:#C7C7CC}
#setView .chg{border-top:.5px solid var(--ios-sep);padding:10px 0}
#setView .chgall{display:block;width:100%;margin:6px 0 4px;min-height:40px}
#setView .chg p{color:var(--ios-muted)}
body.p2 #setFrame{top:max(10px,env(safe-area-inset-top));left:0;right:0;margin:0 auto;width:100%;max-width:640px;height:calc(100% - max(10px,env(safe-area-inset-top)));bottom:auto;border-radius:13px 13px 0 0;box-shadow:0 -10px 40px rgba(0,0,0,.45)}
/* ================= v2 settings: iOS grouped lists ================= */
#setView{--ios-bg:#F2F2F7;--ios-cell:#FFFFFF;--ios-sep:#C6C6C8;--ios-muted:#8A8A8E;--ios-fill:#E3E3E8;--ios-blue:#007AFF;background:var(--ios-bg);color:#000;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}
@media (prefers-color-scheme:dark){#setView{--ios-bg:#000;--ios-cell:#1C1C1E;--ios-sep:#38383A;--ios-muted:#8D8D93;--ios-fill:#2C2C2E;--ios-blue:#0A84FF;color:#fff}}
html:has(#setView.never){background:var(--ios-bg,#F2F2F7)}
#setView .wrap{max-width:680px}
#setView .eyebrow{color:var(--ios-muted);text-transform:none;letter-spacing:0;font-size:13px}
#setView .sethead h1{font-size:34px;font-weight:700;letter-spacing:-.02em}
#setView .sethead .iconbtn{border:0;background:none;color:var(--ios-blue);font:400 17px -apple-system,BlinkMacSystemFont,Inter,sans-serif;padding:0;min-height:44px}
#setView .cubestate{background:var(--ios-cell);border:0;border-radius:10px;color:inherit}
#setView .setgrid{display:block}
#setView .sphead{font-size:22px;font-weight:700;margin:6px 4px 4px}
#setView .card{background:var(--ios-cell);border:0;border-radius:10px;padding:2px 16px 12px;margin:42px 0 0;box-shadow:none;color:inherit}
#setView .card h2{font:400 13px -apple-system,BlinkMacSystemFont,Inter,sans-serif;text-transform:uppercase;letter-spacing:0;color:var(--ios-muted);margin:-38px -16px 12px;padding:0 4px 0 16px;display:flex;justify-content:space-between;align-items:center;min-height:30px}
#setView .card h2 .btn,#setView .card h2 button{min-height:28px!important;padding:4px 10px!important;font-size:13px!important}
/* the playing station's colour (the night colour at night) for pills, selections and charts */
#setView.sloading .setgrid{visibility:hidden}
.sload{display:none}
#setView.sloading .sload{display:flex;position:fixed;inset:0;align-items:center;justify-content:center;gap:10px;font:600 15px -apple-system,system-ui,sans-serif;color:#8e8e93;z-index:5;pointer-events:none}
.sspin{width:18px;height:18px;border-radius:50%;border:2.5px solid currentColor;border-right-color:transparent;animation:sspin .8s linear infinite}
@keyframes sspin{to{transform:rotate(360deg)}}
#setView .stpill,#setView .gtag{background:var(--stc)!important;color:var(--stci)!important}
#setView .switch input:checked + span{background:var(--stc)!important}
#setView .seg button[aria-pressed="true"]{color:var(--stc)!important}
#setView .hstyle.on,#setView [aria-pressed="true"].chip{color:var(--stc)!important}
#setView .row{min-height:44px;border-top:.5px solid var(--ios-sep);padding:8px 0;font-size:17px;gap:12px}
#setView .card h2 + .row,#setView .card .row:first-of-type{border-top:0}
#setView .row small,#setView .small,#setView .note{color:var(--ios-muted)}
#setView .switch input:checked + span{background:#34C759}
#setView select,#setView input[type=time],#setView input[type=number]{background:transparent;border:0;color:var(--ios-muted);font:400 17px -apple-system,BlinkMacSystemFont,Inter,sans-serif;text-align:right}
#setView .seg{background:var(--ios-fill);border:0;border-radius:9px;padding:2px}
#setView .seg button{border:0;border-radius:7px;background:none;color:inherit;font:500 13px -apple-system,BlinkMacSystemFont,Inter,sans-serif}
#setView .seg button[aria-pressed="true"]{background:var(--ios-cell);box-shadow:0 3px 8px rgba(0,0,0,.12);color:inherit;font-weight:600}
#setView .btn{border:0;background:var(--ios-fill);color:var(--ios-blue);border-radius:10px;font:600 15px -apple-system,BlinkMacSystemFont,Inter,sans-serif}
#setView .btn.dark{background:var(--ios-blue);color:#fff}
#setView .stabs{background:rgba(249,249,249,.94);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-color:var(--ios-sep)}
@media (prefers-color-scheme:dark){#setView .stabs{background:rgba(22,22,24,.94)}}
#setView .stabs button{color:var(--ios-muted);font:500 10px -apple-system,BlinkMacSystemFont,Inter,sans-serif}
#setView .stabs button[aria-pressed="true"]{color:var(--ios-blue);background:none}


/* ============ Your radio: drawn above its screens ============ */
.p2radio{display:none;width:min(600px,100%);height:var(--r3h,0px);flex:none;place-items:center;perspective:900px;position:relative;cursor:grab;touch-action:none}
#p2.r3on .p2radio{display:grid}
#p2.land.r3on .p2radio{display:grid;width:var(--r3w);height:var(--r3hl,200px);flex:none;perspective:1100px}
#p2.land.dual.r3on .p2radio{position:absolute;z-index:2}
#p2.land.r3on .r3spin{right:auto;left:50%;transform:translateX(-50%);bottom:2px;height:26px;font-size:11px}
#radioCfg a.btn{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--ink)}#radioCfg a.btn:after{content:"↗";opacity:.55;font-weight:500}
.r3stage.small .r3spin{background:var(--bg,#f2f1ee);color:var(--ink,#1c1b19);border:1px solid var(--line,#e3e0da)}
.r3stage.small{height:178px;display:grid;place-items:center;perspective:900px;position:relative;cursor:grab;touch-action:none;margin:6px 0 2px}
.r3wrap{position:relative;transform-style:preserve-3d}
.r3cube{--s:1px;position:relative;transform-style:preserve-3d}
.r3f{position:absolute;left:50%;top:50%;backface-visibility:hidden}
.r3birch{background:linear-gradient(90deg,rgba(150,105,55,.10),rgba(255,255,255,.05) 30%,rgba(150,105,55,.08) 60%,rgba(255,255,255,.06)),repeating-linear-gradient(0deg,#e2c38f 0 3px,#dcbb85 3px 5px,#e6c897 5px 9px)}
.r3ply{position:absolute;background:repeating-linear-gradient(90deg,#f2dfba 0 1.2px,#c49a5e 1.2px 1.8px)}
.r3plyh{position:absolute;background:repeating-linear-gradient(0deg,#f2dfba 0 1.2px,#c49a5e 1.2px 1.8px)}
.r3face{position:absolute}
.r3shade{position:absolute;inset:0;pointer-events:none}
.r3kl{position:absolute;border-radius:50%;transform-style:preserve-3d}
.r3ks{position:absolute;backface-visibility:visible}
.r3kg{position:absolute;transform-style:preserve-3d;transition:transform .12s}
.r3shadow{position:absolute;width:130%;height:40%;left:-15%;bottom:-26%;background:radial-gradient(closest-side,rgba(0,0,0,.35),rgba(0,0,0,0));filter:blur(2px);pointer-events:none}
.r3spin{position:absolute;right:16px;bottom:6px;height:30px;padding:0 12px;border-radius:15px;border:0;background:rgba(255,255,255,.16);color:#fff;font:600 12px -apple-system,BlinkMacSystemFont,Inter,sans-serif;cursor:pointer;z-index:5}
.r3ring{position:absolute;border-radius:50%;border:2px solid rgba(255,255,255,.9);pointer-events:none;z-index:9;animation:r3ring .7s ease-out forwards}
@keyframes r3ring{0%{opacity:.95;transform:scale(1)}100%{opacity:0;transform:scale(2.2)}}
.r3models{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:6px}
.r3mo{border-radius:14px;background:rgba(255,255,255,.07);padding:10px 4px 8px;text-align:center;border:2px solid transparent;cursor:pointer;color:inherit;font:inherit}
.r3lock .r3mo{cursor:default}.r3lock .r3mo:not(.on){opacity:.4}.r3hw{margin:4px 2px 8px}
.r3mo.on{border-color:var(--stc,#E2611E);background:rgba(255,255,255,.1)}.r3mo svg{height:40px;display:block;margin:0 auto}
.r3mo b{display:block;font-size:12.5px;margin-top:5px;line-height:1.2}.r3mo span{display:block;font-size:10px;opacity:.6}
.r3row{display:flex;align-items:center;justify-content:space-between;margin:10px 2px 0;font-size:14px}.r3row span{font-size:12px;opacity:.6}
.r3sw{display:flex;gap:9px;flex-wrap:wrap;margin:8px 2px 2px}
.r3sw i{width:32px;height:32px;border-radius:50%;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);position:relative}
.r3sw i.on:after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid #fff}
.r3sw i.cl{background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.07) 0 2px,transparent 2px 4px)}
.r3sw i.tr{background-image:linear-gradient(135deg,rgba(255,255,255,.35),rgba(255,255,255,0) 60%)}
.r3tog{width:44px;height:26px;border-radius:13px;background:#555;position:relative;cursor:pointer;border:0;flex:none}.r3tog:after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}
.r3tog.on{background:var(--stc,#E2611E)}.r3tog.on:after{left:21px}
.p2nav [data-p2c="cube"] svg,.p2bottom [data-p2="cube"] svg{fill:none}
.p2bottom [data-p2="cube"] span{white-space:nowrap}
/* ============ Settings and History: views of the player, dark, tinted with the station's colour ============ */
#setView{--ios-bg:transparent;--ios-cell:rgba(255,255,255,.075);--ios-sep:rgba(255,255,255,.1);--ios-muted:rgba(235,235,245,.58);--ios-fill:rgba(255,255,255,.12);--ios-blue:var(--stc,#E2611E);
  --ink:#fff;--muted:rgba(235,235,245,.6);--panel:rgba(255,255,255,.075);--line:rgba(255,255,255,.12);--bg:rgba(255,255,255,.06);--accent:var(--stc,#E2611E);
  position:fixed;left:0;right:0;top:0;bottom:calc(58px + env(safe-area-inset-bottom));z-index:60;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  color:#fff;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Helvetica Neue",Arial,sans-serif;
  background:linear-gradient(180deg,color-mix(in srgb,var(--stc,#7a1020) 42%,#0b0b0d) 0,#0e0e10 260px,#0b0b0d 100%) fixed;opacity:0;transform:translateY(12px);transition:opacity .18s,transform .18s}
#setView[hidden]{display:block!important;visibility:hidden;pointer-events:none}
#setView.open{opacity:1;transform:none;visibility:visible}
#setView .setwrap{max-width:680px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 18px) 16px 40px}
#setView .sethead{display:block;margin:0 0 8px}
#setView .sethead h1{font-size:34px;font-weight:800;letter-spacing:-.02em;margin:0}
#setView .setgrid{display:block}
/* section bar: five equal segments, icon over label, pinned at the top (never scrolls sideways); a sidebar from 900 px */
#setView .stabs{position:sticky!important;top:0;left:auto;right:auto;bottom:auto;transform:none!important;width:auto!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible;
  margin:0 -16px 6px!important;padding:8px max(10px,env(safe-area-inset-left)) 8px!important;border:0!important;border-radius:0!important;box-shadow:none!important;z-index:6;
  background:rgba(14,14,16,.88)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.07)!important}
#setView .stabs::-webkit-scrollbar{display:none}
#setView .stabs button{position:relative;min-width:0;min-height:0!important;padding:6px 0 5px!important;border-radius:11px!important;background:rgba(255,255,255,.07)!important;color:rgba(255,255,255,.75)!important;
  font:600 11px -apple-system,BlinkMacSystemFont,Inter,sans-serif!important;display:flex!important;flex-direction:column!important;align-items:center;justify-content:center;gap:2px!important;white-space:nowrap;letter-spacing:0}
#setView .stabs button svg{display:block!important;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#setView .stabs .tdot{top:4px;right:calc(50% - 17px)}
#setView .stabs button[aria-pressed="true"]{background:var(--stc,#E2611E)!important;color:var(--stci,#fff)!important}
@media (max-width:350px){ #setView .stabs button{font-size:10px!important} }
@media (min-width:600px) and (max-width:899px){
  #setView .stabs{padding-left:calc(50% - 320px)!important;padding-right:calc(50% - 320px)!important}
  #setView .stabs button{flex-direction:row!important;gap:7px!important;font-size:13.5px!important;padding:9px 0!important}
  #setView .stabs .tdot{top:6px;right:8px}
}
@media (min-width:900px){
  #setView:not(.solo) .setwrap{max-width:980px;padding-left:24px;padding-right:24px}
  #setView:not(.solo) .setgrid{display:grid!important;grid-template-columns:220px minmax(0,1fr);column-gap:36px;align-items:start}
  #setView:not(.solo) .stabs{grid-column:1;grid-row:1/span 40;display:flex!important;flex-direction:column;gap:2px;margin:0!important;padding:4px 0!important;background:none!important;border:0!important;-webkit-backdrop-filter:none;backdrop-filter:none;top:18px}
  #setView:not(.solo) .stabs button{flex-direction:row!important;justify-content:flex-start;gap:12px!important;padding:10px 12px!important;font-size:15px!important;background:none!important;color:rgba(255,255,255,.78)!important;border-radius:12px!important}
  #setView:not(.solo) .stabs button:hover{background:rgba(255,255,255,.06)!important}
  #setView:not(.solo) .stabs button[aria-pressed="true"]{background:var(--stc,#E2611E)!important;color:var(--stci,#fff)!important}
  #setView:not(.solo) .stabs .tdot{position:static;margin-left:auto;box-shadow:none}
  #setView:not(.solo) .setgrid>.spage{grid-column:2}
}
#setView .sphead{display:none}
#setView .card{background:var(--ios-cell)!important;color:#fff}
#setView .card h2{color:var(--ios-muted)!important}
#setView input,#setView select,#setView textarea{background:rgba(255,255,255,.08)!important;color:#fff!important;border-color:rgba(255,255,255,.14)!important;color-scheme:dark}
#setView input[type=range]{background:transparent!important}
#setView .seg{background:rgba(255,255,255,.1)!important}
#setView .seg button{color:#fff!important}
#setView .seg button[aria-pressed="true"]{background:rgba(255,255,255,.22)!important;color:#fff!important}
#setView .btn,#setView button.btn{background:rgba(255,255,255,.1)!important;color:var(--stc,#fff)!important;border:0!important}
#setView .note,#setView small{color:var(--ios-muted)!important}
#setView .row{border-color:var(--ios-sep)!important;color:#fff}
#setView a{color:var(--stc,#fff)}
#setView table,#setView th,#setView td{color:#fff;border-color:var(--ios-sep)!important;background:transparent!important}
/* Rewind (the History page): an infographic, the station's colour as the accent */
#setView #rewind{margin:4px 0 0}
#setView .rweyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--stc);margin:-4px 2px 10px}
#setView .rwtile{background:var(--ios-cell);border-radius:18px;padding:14px 15px;margin:0 0 10px}
#setView .rwlbl{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ios-muted)}
#setView .rwhuge{font-size:96px;font-weight:900;letter-spacing:-.05em;line-height:.92;color:var(--stc);margin:4px 0 2px}
#setView .rwbig{font-size:26px;font-weight:900;letter-spacing:-.03em;line-height:1.05;color:var(--stc);margin:6px 0 2px;overflow:hidden;text-overflow:ellipsis}
#setView .rwsub{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--ios-muted)}
#setView .rwsmall{font-size:12px;color:var(--ios-muted)}
#setView .rwspark{display:flex;align-items:flex-end;gap:3px;height:56px;margin-top:10px}
#setView .rwspark i{flex:1;background:var(--stc);opacity:.35;border-radius:3px 3px 0 0;display:block;min-height:0}
#setView .rwspark i.now{opacity:1}
#setView .rwstrip{display:flex;height:16px;border-radius:8px;overflow:hidden;margin:10px 0 8px}
#setView .rwstrip i{display:block;height:100%}
#setView .rwleg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12px;opacity:.9}
#setView .rwleg span{display:flex;align-items:center;gap:5px}
#setView .rwleg b{width:8px;height:8px;border-radius:50%;display:block}
#setView .rwgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#setView .rwfeat{display:flex;gap:10px;align-items:center;margin-top:8px;min-width:0}
#setView .rwfeat b{display:block;font-size:15px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#setView .rwfeat span{font-size:12px;color:var(--ios-muted)}
#setView .rwcov{width:44px;height:44px;border-radius:10px;flex:none}
#setView .rwtl{position:relative;padding-left:20px;margin-top:6px}
#setView .rwtl:before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--ios-sep)}
#setView .rwe{position:relative;padding:6px 0}
#setView .rwe i{position:absolute;left:-19px;top:11px;width:10px;height:10px;border-radius:50%;display:block}
#setView .rwe b{display:block;font-size:15px;font-weight:700}
#setView .rwe span{display:block;font-size:12px;color:var(--ios-muted)}
#setView .rwhr{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--ios-muted);margin:10px 0 2px}
#setView .rwhr:first-child{margin-top:0}
#setView .rwmore,#setView .rwfoldb{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;color:#fff;font:600 15px -apple-system,BlinkMacSystemFont,Inter,sans-serif;padding:12px 0 2px;cursor:pointer}
#setView .rwmore:after,#setView .rwfoldb:after{content:"›";font-size:22px;opacity:.5;transition:transform .2s}
#setView .rwfoldb{background:var(--ios-cell);border-radius:18px;padding:14px 15px;margin:0 0 10px}
#setView .rwfoldb.open:after{transform:rotate(90deg)}
#setView .histcard.rwfolded{display:none}
#setView:not(.solo) #rewind,#setView:not(.solo) .rwfoldb{display:none}
body.p2night #setView .rwmore,body.p2night #setView .rwfoldb,body.p2night #setView .rwe b,body.p2night #setView .rwleg{color:var(--night)!important}
body.p2night #setView .rwtile,body.p2night #setView .rwfoldb{background:#000;box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--night) 35%,transparent)}
body.p2night #setView .rwcov{background:color-mix(in srgb,var(--night) 50%,#000)!important}
#setView.solo .sethead h1{font-size:34px!important}
#setView.solo .sethead h1:after{content:none!important}
/* History, full screen: its own title, no tabs */
#setView.solo .stabs{display:none!important}
/* System: the long Checks list folds into a summary you open */
#setView .chkfold{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;background:none;border:0;color:#fff;font:500 15px -apple-system,BlinkMacSystemFont,Inter,sans-serif;padding:12px 0;cursor:pointer;text-align:left}
#setView .chkfold:after{content:"›";font-size:22px;opacity:.5;transition:transform .2s}
#setView .chkopen .chkfold:after{transform:rotate(90deg)}
#setView .chkbody{display:none}
#setView .chkopen .chkbody{display:block}
/* night: black, everything in the night colour */
body.p2night #setView{background:#000!important;color:var(--night)!important;--stc:var(--night);--stci:#000}
body.p2night #setView .card,body.p2night #setView .row,body.p2night #setView .chkfold,body.p2night #setView .sethead h1{color:var(--night)!important}
body.p2night #setView .card{background:#000!important;box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--night) 30%,transparent)}
body.p2night #setView .stabs{background:#000!important}
body.p2night #setView .stabs button{background:transparent!important;color:var(--night)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--night) 40%,transparent)}
body.p2night #setView .stabs button[aria-pressed="true"]{background:var(--night)!important;color:#000!important}
/* the player hidden behind a full-screen page (so it doesn't scroll or catch taps) */
body.p2.p2full #p2 .p2bottom{visibility:hidden}
/* the star beside the song: outlined; filled amber once starred */
.p2meta{display:flex;align-items:center;gap:10px}.p2meta .t{flex:1;min-width:0}
.p2star{flex:none;width:40px;height:40px;border:0;background:none;color:inherit;display:grid;place-items:center;cursor:pointer;border-radius:12px;padding:0}
.p2star svg{width:26px;height:26px;fill:none;stroke:currentColor;opacity:.85}
.p2star[aria-pressed="true"] svg{fill:#FFC93C;stroke:#FFC93C;opacity:1}
.p2star:disabled{opacity:.3;cursor:default}
body.p2.p2night .p2star[aria-pressed="true"] svg{fill:var(--night);stroke:var(--night)}
.rwe,#setView .rwe{position:relative;padding-right:66px}.rwstar{position:absolute;right:0;top:50%;transform:translateY(-50%);background:none;border:0;color:inherit;font-size:19px;line-height:1;width:32px;height:32px;cursor:pointer;opacity:.6}
.rwstar.on{color:#FFC93C;opacity:1}
.rwym,#setView .rwym,#setView .rwe a.rwym{position:absolute;right:33px;top:50%;transform:translateY(-50%);width:32px;height:32px;display:grid;place-items:center;color:inherit;opacity:.6}
.rwym svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6}.rwym svg path{fill:currentColor;stroke:none}
.rwym:hover,.rwym:focus-visible{opacity:1}
/* the web app has no volume slider (the phone's buttons do that): a Mute button on the left, Output on the right */
.p2vol #p2vol{display:none}
.p2volgap{flex:1}
.p2mute{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:0;color:inherit;border-radius:17px;height:34px;padding:0 14px 0 11px;cursor:pointer;font:600 13px -apple-system,BlinkMacSystemFont,Inter,sans-serif}
.p2mute span{display:grid;place-items:center}.p2mute .off1{display:none}
.p2mute[aria-pressed="true"]{background:#fff;color:#111}.p2mute[aria-pressed="true"] .on1{display:none}.p2mute[aria-pressed="true"] .off1{display:grid}
body.p2.p2night .p2mute{background:transparent;color:var(--night);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--night) 45%,transparent)}
body.p2.p2night .p2mute[aria-pressed="true"]{background:var(--night);color:#000}
.p2mute[aria-pressed="true"] *{color:#111!important}
body.p2.p2night .p2mute[aria-pressed="true"] *{color:#000!important}
#setView .lscard{display:none}
#setView .card h2 .btn,#setView .card h2 button{color:#fff!important;background:rgba(255,255,255,.14)!important}
body.p2night #setView .card h2 .btn,body.p2night #setView .card h2 button{color:var(--night)!important;background:transparent!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--night) 40%,transparent)}
/* Output: at the end of the volume slider */
.p2outb{background:none;border:0;color:inherit;width:34px;height:34px;margin-left:4px;padding:6px;border-radius:9px;cursor:pointer;display:grid;place-items:center;flex:none}
.p2outb svg{width:22px;height:22px}
.p2outb:active{background:rgba(255,255,255,.14)}
body.p2.p2night .p2outb{color:var(--night)}
/* one bottom bar: the player's and the full-screen pages' look the same; the page you're on is lit */
.p2bottom button.on{opacity:1;color:var(--p2acc,#fff)}
.p2bottom svg{width:22px!important;height:22px!important}
.p2bottom button{font-size:10px!important}
.p2nav button{opacity:.62}
/* the radio: no progress bar (it's live); Plex: the bar */
body.p2:not(.p2pq) .p2track{visibility:hidden;height:0;margin:0}
