/* Hearth & Hue back office - Appearance library (Settings & data). Colour and type packs, backdrops, corner objects, gauges, graphs,
   container and button shapes, selection markers. Everything is switched by attributes on <html> that hud-look.js sets. */
/* ===== THEME STUDIO LAYER: colour packs, font packs, backdrops, ambient motion, and the chosen selection rule ===== */
html[data-pal="cobalt"] { --bg:#0B1119; --surface:#101A26; --surface2:#19232F; --ink:#C9D6E3; --muted:#7D93A8; --faint:#566A7E; --line:#28323F; --brass:#3F79AD; --brass-bright:#5E9BD1; --brass-ink:#0B1119; --h-bg:#0B1119; --h-panel:rgba(16,26,38,.78); --h-line:#35404C; --h-line2:#1D2733; --h-brass:#5E9BD1; --h-brass2:#3F79AD; --h-steel:#D9709F; --h-mint:#5FBFA6; --h-rose:#E0707A; --h-lav:#DF85AD; --h-ok:#5FBFA6; --h-warn:#E0B060; --h-ink:#C9D6E3; --h-mut:#7D93A8; --h-faint:#566A7E; --h-brass-rgb:94,155,209; --h-brass2-rgb:63,121,173; --h-steel-rgb:217,112,159; --h-steel2-rgb:93,55,79; --h-rose-rgb:224,112,122; --h-ok-rgb:95,191,166; --h-warn-rgb:224,176,96; --h-lav-rgb:223,133,173; --h-mint-rgb:95,191,166; --h-on:#0B1119; --h-brass-hi:#7EAFDA; --h-g1:#86B4DC; --h-g2:#5E9BD1; --h-g3:#9EC3E3; --h-g4:#6EA5D6; --h-tint:#B7D2EA; --h-tint2:#DFEBF6; --h-rose-tint:#EEB0B6; --h-ok-tint:#AFDFD2; }
html[data-pal="lagoon"] { --bg:#0A1315; --surface:#0F1C1F; --surface2:#182628; --ink:#C7DCDD; --muted:#7A9799; --faint:#587375; --line:#273538; --brass:#2F8B88; --brass-bright:#4FB3B0; --brass-ink:#0A1315; --h-bg:#0A1315; --h-panel:rgba(15,28,31,.78); --h-line:#344245; --h-line2:#1C292C; --h-brass:#4FB3B0; --h-brass2:#2F8B88; --h-steel:#D4826A; --h-mint:#79C29A; --h-rose:#DB6F72; --h-lav:#DA9580; --h-ok:#79C29A; --h-warn:#E0B060; --h-ink:#C7DCDD; --h-mut:#7A9799; --h-faint:#587375; --h-brass-rgb:79,179,176; --h-brass2-rgb:47,139,136; --h-steel-rgb:212,130,106; --h-steel2-rgb:91,63,55; --h-rose-rgb:219,111,114; --h-ok-rgb:121,194,154; --h-warn-rgb:224,176,96; --h-lav-rgb:218,149,128; --h-mint-rgb:121,194,154; --h-on:#0A1315; --h-brass-hi:#72C2C0; --h-g1:#7BC6C4; --h-g2:#4FB3B0; --h-g3:#95D1D0; --h-g4:#61BBB8; --h-tint:#B0DDDB; --h-tint2:#DCF0EF; --h-rose-tint:#EBB0B1; --h-ok-tint:#BCE0CC; }
html[data-pal="ember"] { --bg:#100D0B; --surface:#1A1512; --surface2:#241F1B; --ink:#E3D8CB; --muted:#9A8B7B; --faint:#6F6459; --line:#342E2A; --brass:#A86F35; --brass-bright:#D08E4E; --brass-ink:#100D0B; --h-bg:#100D0B; --h-panel:rgba(26,21,18,.78); --h-line:#423C37; --h-line2:#28231F; --h-brass:#D08E4E; --h-brass2:#A86F35; --h-steel:#C9655A; --h-mint:#8DB56E; --h-rose:#D9645B; --h-lav:#D17C73; --h-ok:#8DB56E; --h-warn:#E0B060; --h-ink:#E3D8CB; --h-mut:#9A8B7B; --h-faint:#6F6459; --h-brass-rgb:208,142,78; --h-brass2-rgb:168,111,53; --h-steel-rgb:201,101,90; --h-steel2-rgb:90,48,43; --h-rose-rgb:217,100,91; --h-ok-rgb:141,181,110; --h-warn-rgb:224,176,96; --h-lav-rgb:209,124,115; --h-mint-rgb:141,181,110; --h-on:#100D0B; --h-brass-hi:#D9A571; --h-g1:#DCAA7A; --h-g2:#D08E4E; --h-g3:#E3BB95; --h-g4:#D59960; --h-tint:#EACCAF; --h-tint2:#F6E8DC; --h-rose-tint:#EAAAA5; --h-ok-tint:#C6DAB6; }
html[data-pal="graphite"] { --bg:#0D0E10; --surface:#15171A; --surface2:#1F2124; --ink:#D6D8DB; --muted:#868A90; --faint:#62666B; --line:#2E3033; --brass:#7F8792; --brass-bright:#A9B0BA; --brass-ink:#0D0E10; --h-bg:#0D0E10; --h-panel:rgba(21,23,26,.78); --h-line:#3C3E41; --h-line2:#232528; --h-brass:#A9B0BA; --h-brass2:#7F8792; --h-steel:#7E9FC7; --h-mint:#7DB59A; --h-rose:#D9707A; --h-lav:#91ADCF; --h-ok:#7DB59A; --h-warn:#E0B060; --h-ink:#D6D8DB; --h-mut:#868A90; --h-faint:#62666B; --h-brass-rgb:169,176,186; --h-brass2-rgb:127,135,146; --h-steel-rgb:126,159,199; --h-steel2-rgb:58,72,89; --h-rose-rgb:217,112,122; --h-ok-rgb:125,181,154; --h-warn-rgb:224,176,96; --h-lav-rgb:145,173,207; --h-mint-rgb:125,181,154; --h-on:#0D0E10; --h-brass-hi:#BAC0C8; --h-g1:#BEC4CB; --h-g2:#A9B0BA; --h-g3:#CBD0D6; --h-g4:#B2B8C1; --h-tint:#D8DBE0; --h-tint2:#EEEFF1; --h-rose-tint:#EAB0B6; --h-ok-tint:#BEDACC; }
html[data-pal="forest"] { --bg:#0A110E; --surface:#101A15; --surface2:#19241E; --ink:#CBDDD3; --muted:#7F978A; --faint:#5A7065; --line:#28332E; --brass:#3F8262; --brass-bright:#5FA883; --brass-ink:#0A110E; --h-bg:#0A110E; --h-panel:rgba(16,26,21,.78); --h-line:#35413B; --h-line2:#1D2822; --h-brass:#5FA883; --h-brass2:#3F8262; --h-steel:#C99A5B; --h-mint:#7CC4A0; --h-rose:#D96F6F; --h-lav:#D1A974; --h-ok:#7CC4A0; --h-warn:#E0B060; --h-ink:#CBDDD3; --h-mut:#7F978A; --h-faint:#5A7065; --h-brass-rgb:95,168,131; --h-brass2-rgb:63,130,98; --h-steel-rgb:201,154,91; --h-steel2-rgb:86,72,45; --h-rose-rgb:217,111,111; --h-ok-rgb:124,196,160; --h-warn-rgb:224,176,96; --h-lav-rgb:209,169,116; --h-mint-rgb:124,196,160; --h-on:#0A110E; --h-brass-hi:#7FB99C; --h-g1:#87BEA2; --h-g2:#5FA883; --h-g3:#9FCBB5; --h-g4:#6FB18F; --h-tint:#B7D8C7; --h-tint2:#DFEEE6; --h-rose-tint:#EAB0B0; --h-ok-tint:#BEE2D0; }
html[data-pal="nebula"] { --bg:#0E0C16; --surface:#16131F; --surface2:#201C29; --ink:#D5D0E3; --muted:#8B84A0; --faint:#675F7E; --line:#2F2C38; --brass:#6A5FB0; --brass-bright:#8B7FD0; --brass-ink:#0E0C16; --h-bg:#0E0C16; --h-panel:rgba(22,19,31,.78); --h-line:#3C3946; --h-line2:#23202D; --h-brass:#8B7FD0; --h-brass2:#6A5FB0; --h-steel:#5FB8B0; --h-mint:#79C29A; --h-rose:#DB6F82; --h-lav:#77C3BC; --h-ok:#79C29A; --h-warn:#E0B060; --h-ink:#D5D0E3; --h-mut:#8B84A0; --h-faint:#675F7E; --h-brass-rgb:139,127,208; --h-brass2-rgb:106,95,176; --h-steel-rgb:95,184,176; --h-steel2-rgb:46,81,84; --h-rose-rgb:219,111,130; --h-ok-rgb:121,194,154; --h-warn-rgb:224,176,96; --h-lav-rgb:119,195,188; --h-mint-rgb:121,194,154; --h-on:#0E0C16; --h-brass-hi:#A299D9; --h-g1:#A89FDC; --h-g2:#8B7FD0; --h-g3:#B9B2E3; --h-g4:#978CD5; --h-tint:#CBC5EA; --h-tint2:#E8E5F6; --h-rose-tint:#EBB0BA; --h-ok-tint:#BCE0CC; }
html[data-pal="redalert"] { --bg:#100C0D; --surface:#191214; --surface2:#231C1E; --ink:#E0D3D5; --muted:#96828A; --faint:#6E5B62; --line:#332B2D; --brass:#9C3D44; --brass-bright:#C4585F; --brass-ink:#100C0D; --h-bg:#100C0D; --h-panel:rgba(25,18,20,.78); --h-line:#41393B; --h-line2:#272022; --h-brass:#C4585F; --h-brass2:#9C3D44; --h-steel:#D4A05A; --h-mint:#7DB88E; --h-rose:#E8787F; --h-lav:#DAAE73; --h-ok:#7DB88E; --h-warn:#D4A05A; --h-ink:#E0D3D5; --h-mut:#96828A; --h-faint:#6E5B62; --h-brass-rgb:196,88,95; --h-brass2-rgb:156,61,68; --h-steel-rgb:212,160,90; --h-steel2-rgb:94,71,44; --h-rose-rgb:232,120,127; --h-ok-rgb:125,184,142; --h-warn-rgb:212,160,90; --h-lav-rgb:218,174,115; --h-mint-rgb:125,184,142; --h-on:#100C0D; --h-brass-hi:#D0797F; --h-g1:#D38287; --h-g2:#C4585F; --h-g3:#DC9B9F; --h-g4:#CA696F; --h-tint:#E4B4B7; --h-tint2:#F3DEDF; --h-rose-tint:#F2B5B9; --h-ok-tint:#BEDCC6; }
html[data-pal="olive"] { --bg:#0E100B; --surface:#161910; --surface2:#202319; --ink:#D6DAC4; --muted:#8B917A; --faint:#656A55; --line:#2F3227; --brass:#798C3A; --brass-bright:#9DB05A; --brass-ink:#0E100B; --h-bg:#0E100B; --h-panel:rgba(22,25,16,.78); --h-line:#3C4034; --h-line2:#23271D; --h-brass:#9DB05A; --h-brass2:#798C3A; --h-steel:#C97D5B; --h-mint:#8FBF7A; --h-rose:#D96F5F; --h-lav:#D19074; --h-ok:#8FBF7A; --h-warn:#E0B060; --h-ink:#D6DAC4; --h-mut:#8B917A; --h-faint:#656A55; --h-brass-rgb:157,176,90; --h-brass2-rgb:121,140,58; --h-steel-rgb:201,125,91; --h-steel2-rgb:89,60,43; --h-rose-rgb:217,111,95; --h-ok-rgb:143,191,122; --h-warn-rgb:224,176,96; --h-lav-rgb:209,144,116; --h-mint-rgb:143,191,122; --h-on:#0E100B; --h-brass-hi:#B1C07B; --h-g1:#B6C483; --h-g2:#9DB05A; --h-g3:#C4D09C; --h-g4:#A7B86A; --h-tint:#D3DBB5; --h-tint2:#EBEFDE; --h-rose-tint:#EAB0A7; --h-ok-tint:#C7DFBC; }
html[data-pal="blush"] { --bg:#120D11; --surface:#1B1419; --surface2:#251E23; --ink:#E6D5DE; --muted:#9C8794; --faint:#735F6C; --line:#352D33; --brass:#A85D82; --brass-bright:#D07FA5; --brass-ink:#120D11; --h-bg:#120D11; --h-panel:rgba(27,20,25,.78); --h-line:#443B40; --h-line2:#292227; --h-brass:#D07FA5; --h-brass2:#A85D82; --h-steel:#7FB4C9; --h-mint:#79C29A; --h-rose:#DB6F72; --h-lav:#92BFD1; --h-ok:#79C29A; --h-warn:#E0B060; --h-ink:#E6D5DE; --h-mut:#9C8794; --h-faint:#735F6C; --h-brass-rgb:208,127,165; --h-brass2-rgb:168,93,130; --h-steel-rgb:127,180,201; --h-steel2-rgb:62,80,91; --h-rose-rgb:219,111,114; --h-ok-rgb:121,194,154; --h-warn-rgb:224,176,96; --h-lav-rgb:146,191,209; --h-mint-rgb:121,194,154; --h-on:#120D11; --h-brass-hi:#D999B7; --h-g1:#DC9FBC; --h-g2:#D07FA5; --h-g3:#E3B2C9; --h-g4:#D58CAE; --h-tint:#EAC5D6; --h-tint2:#F6E5ED; --h-rose-tint:#EBB0B1; --h-ok-tint:#BCE0CC; }
html[data-pal="indigo"] { --bg:#0A0C1A; --surface:#111428; --surface2:#1A1E32; --ink:#CDD2EA; --muted:#8088AD; --faint:#5C6488; --line:#292D41; --brass:#5265B5; --brass-bright:#7386D6; --brass-ink:#0A0C1A; --h-bg:#0A0C1A; --h-panel:rgba(17,20,40,.78); --h-line:#373A4F; --h-line2:#1E2136; --h-brass:#7386D6; --h-brass2:#5265B5; --h-steel:#E0A15E; --h-mint:#79C29A; --h-rose:#DB6F82; --h-lav:#E5AF76; --h-ok:#79C29A; --h-warn:#E0A15E; --h-ink:#CDD2EA; --h-mut:#8088AD; --h-faint:#5C6488; --h-brass-rgb:115,134,214; --h-brass2-rgb:82,101,181; --h-steel-rgb:224,161,94; --h-steel2-rgb:96,72,53; --h-rose-rgb:219,111,130; --h-ok-rgb:121,194,154; --h-warn-rgb:224,161,94; --h-lav-rgb:229,175,118; --h-mint-rgb:121,194,154; --h-on:#0A0C1A; --h-brass-hi:#8F9EDE; --h-g1:#96A4E0; --h-g2:#7386D6; --h-g3:#ABB6E6; --h-g4:#8192DA; --h-tint:#C0C9ED; --h-tint2:#E3E7F7; --h-rose-tint:#EBB0BA; --h-ok-tint:#BCE0CC; }
html[data-pal="twilight"] { --bg:#0F0C1A; --surface:#161226; --surface2:#1F1B30; --ink:#D0CAE6; --muted:#8B84B0; --faint:#635C88; --line:#2E2A3F; --brass:#6B66B8; --brass-bright:#8F8AD9; --brass-ink:#0F0C1A; --h-bg:#0F0C1A; --h-panel:rgba(22,18,38,.78); --h-line:#3B374C; --h-line2:#231F33; --h-brass:#8F8AD9; --h-brass2:#6B66B8; --h-steel:#E070A8; --h-mint:#79C29A; --h-rose:#DB6F82; --h-lav:#E585B5; --h-ok:#79C29A; --h-warn:#E0B060; --h-ink:#D0CAE6; --h-mut:#8B84B0; --h-faint:#635C88; --h-brass-rgb:143,138,217; --h-brass2-rgb:107,102,184; --h-steel-rgb:224,112,168; --h-steel2-rgb:99,52,83; --h-rose-rgb:219,111,130; --h-ok-rgb:121,194,154; --h-warn-rgb:224,176,96; --h-lav-rgb:229,133,181; --h-mint-rgb:121,194,154; --h-on:#0F0C1A; --h-brass-hi:#A5A1E1; --h-g1:#ABA7E2; --h-g2:#8F8AD9; --h-g3:#BCB9E8; --h-g4:#9A96DD; --h-tint:#CDCAEE; --h-tint2:#E9E8F7; --h-rose-tint:#EBB0BA; --h-ok-tint:#BCE0CC; }

html[data-f="fleet"], html[data-f="fleet"] .hud { --font:"Oxanium",ui-sans-serif,system-ui,sans-serif; --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace; }
html[data-f="bridge"], html[data-f="bridge"] .hud { --font:"Saira",ui-sans-serif,system-ui,sans-serif; --mono:"Roboto Mono",ui-monospace,Menlo,monospace; }
html[data-f="ops"], html[data-f="ops"] .hud { --font:"Chakra Petch",ui-sans-serif,system-ui,sans-serif; --mono:"Source Code Pro",ui-monospace,Menlo,monospace; }
html[data-f="term"], html[data-f="term"] .hud { --font:"Share Tech Mono",ui-sans-serif,system-ui,sans-serif; --mono:"JetBrains Mono",ui-monospace,Menlo,monospace; }
html[data-f="clean"], html[data-f="clean"] .hud { --font:"Space Grotesk",ui-sans-serif,system-ui,sans-serif; --mono:"DM Mono",ui-monospace,Menlo,monospace; }
html[data-f="wide"], html[data-f="wide"] .hud { --font:"Saira Semi Condensed",ui-sans-serif,system-ui,sans-serif; --mono:"Overpass Mono",ui-monospace,Menlo,monospace; }
html[data-f="scifi"], html[data-f="scifi"] .hud { --font:"Exo 2",ui-sans-serif,system-ui,sans-serif; --mono:"Space Mono",ui-monospace,Menlo,monospace; }
html[data-f="legible"], html[data-f="legible"] .hud { --font:"Lexend",ui-sans-serif,system-ui,sans-serif; --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace; }
html[data-f="cockpit"], html[data-f="cockpit"] .hud { --font:"B612",ui-sans-serif,system-ui,sans-serif; --mono:"B612 Mono",ui-monospace,Menlo,monospace; }
html[data-f="vector"], html[data-f="vector"] .hud { --font:"Tomorrow",ui-sans-serif,system-ui,sans-serif; --mono:"Martian Mono",ui-monospace,Menlo,monospace; }
html[data-f="foundry"], html[data-f="foundry"] .hud { --font:"Barlow",ui-sans-serif,system-ui,sans-serif; --mono:"Azeret Mono",ui-monospace,Menlo,monospace; }

/* backdrops (the original grid stays when Original is chosen) */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx::before, .bgfx::after { content: ""; position: absolute; inset: 0; }
html[data-bg="original"] .bgfx { display: none; }
html:not([data-bg="original"]) body::before { display: none; }
html:not([data-bg="original"]) body { background: var(--bg); }
html[data-bg="dots"] .bgfx::before { background: radial-gradient(rgba(var(--h-brass-rgb),.12) 1px, transparent 1.3px) 0 0/14px 14px, radial-gradient(55% 45% at 12% 0%, rgba(var(--h-brass-rgb),.09), transparent 70%); }
html[data-bg="grid"] .bgfx::before { background: linear-gradient(rgba(var(--h-brass-rgb),.07) 1px, transparent 1px) 0 0/48px 48px, linear-gradient(90deg, rgba(var(--h-brass-rgb),.07) 1px, transparent 1px) 0 0/48px 48px, linear-gradient(rgba(var(--h-brass-rgb),.035) 1px, transparent 1px) 0 0/12px 12px, linear-gradient(90deg, rgba(var(--h-brass-rgb),.035) 1px, transparent 1px) 0 0/12px 12px; -webkit-mask: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 100%); mask: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 100%); }
html[data-bg="grid"] .bgfx::after { background: radial-gradient(40% 35% at 100% 100%, rgba(var(--h-steel-rgb),.07), transparent 70%); }
html[data-bg="stars"] .bgfx::before { background: radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent), radial-gradient(1px 1px at 90px 140px, rgba(var(--h-brass-rgb),.6), transparent), radial-gradient(1.5px 1.5px at 160px 60px, rgba(255,255,255,.45), transparent), radial-gradient(1px 1px at 230px 190px, rgba(var(--h-steel-rgb),.5), transparent), radial-gradient(1px 1px at 300px 100px, rgba(255,255,255,.4), transparent); background-size: 340px 240px; animation: tsdrift 160s linear infinite; }
html[data-bg="stars"] .bgfx::after { background: radial-gradient(1px 1px at 60px 90px, rgba(255,255,255,.7), transparent), radial-gradient(1.5px 1.5px at 200px 20px, rgba(var(--h-brass-rgb),.7), transparent), radial-gradient(1px 1px at 120px 200px, rgba(255,255,255,.6), transparent); background-size: 260px 260px; animation: tsdrift 90s linear infinite reverse, tstwinkle 5s ease-in-out infinite; }
@keyframes tsdrift { to { background-position: 340px 240px; } } @keyframes tstwinkle { 50% { opacity: .35; } }
html[data-bg="aurora"] .bgfx::before { inset: -20%; background: radial-gradient(35% 30% at 25% 30%, rgba(var(--h-brass-rgb),.20), transparent 70%), radial-gradient(30% 28% at 75% 25%, rgba(var(--h-mint-rgb),.11), transparent 70%); filter: blur(30px); animation: tsaur 26s ease-in-out infinite alternate; }
html[data-bg="aurora"] .bgfx::after { inset: -20%; background: radial-gradient(32% 30% at 70% 75%, rgba(var(--h-steel-rgb),.12), transparent 70%), radial-gradient(28% 25% at 20% 80%, rgba(var(--h-brass-rgb),.13), transparent 70%); filter: blur(30px); animation: tsaur 34s ease-in-out infinite alternate-reverse; }
@keyframes tsaur { from { transform: translate(-4%, -2%) scale(1); } to { transform: translate(5%, 4%) scale(1.15); } }
html[data-bg="hex"] .bgfx::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zM28 100V66M0 50v34l28 16 28-16V50' fill='none' stroke='%23A0A8B0' stroke-opacity='.12'/%3E%3C/svg%3E") 0 0/56px 100px; -webkit-mask: radial-gradient(90% 85% at 50% 25%, #000 25%, transparent 100%); mask: radial-gradient(90% 85% at 50% 25%, #000 25%, transparent 100%); }
html[data-bg="hex"] .bgfx::after { background: radial-gradient(35% 30% at 90% 100%, rgba(var(--h-steel-rgb),.08), transparent 70%); }
html[data-bg="sonar"] .bgfx::before { inset: -50% -30%; background: repeating-radial-gradient(circle at 20% 20%, transparent 0 78px, rgba(var(--h-brass-rgb),.09) 79px 80px); animation: tssonar 14s linear infinite; }
html[data-bg="sonar"] .bgfx::after { background: conic-gradient(from 0deg at 20% 20%, rgba(var(--h-brass-rgb),0) 0 88%, rgba(var(--h-brass-rgb),.10) 100%); animation: tsspin 16s linear infinite; -webkit-mask: radial-gradient(70% 70% at 20% 20%, #000, transparent); mask: radial-gradient(70% 70% at 20% 20%, #000, transparent); transform-origin: 20% 20%; }
@keyframes tssonar { to { transform: scale(1.12); opacity: .3; } } @keyframes tsspin { to { transform: rotate(360deg); } }
html[data-bg="plain"] .bgfx::before { background: radial-gradient(60% 50% at 50% 0%, rgba(var(--h-brass-rgb),.06), transparent 70%); }

/* ambient motion: a live object in each panel's free corner, and a slow light that circles some panels */
.p .cn { position: absolute; right: 26px; bottom: 8px; width: 14px; height: 14px; pointer-events: none; z-index: 3; }
.cn-radar { border-radius: 50%; border: 1px solid rgba(var(--h-brass-rgb),.55); background: conic-gradient(from 0deg, rgba(var(--h-brass-rgb),0) 0 62%, rgba(var(--h-brass-rgb),.75) 100%); animation: tsspin 3.4s linear infinite; }
.cn-radar::after { content: ""; position: absolute; top: -1px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--h-steel); box-shadow: 0 0 5px var(--h-steel); }
.cn-bars { display: flex; align-items: flex-end; gap: 2px; }
.cn-bars i { flex: 1; height: 100%; background: var(--h-brass); transform-origin: bottom; animation: tsbar 1.3s ease-in-out infinite alternate; }
.cn-bars i:nth-child(2) { animation-delay: -.4s; background: var(--h-steel); } .cn-bars i:nth-child(3) { animation-delay: -.8s; } .cn-bars i:nth-child(4) { animation-delay: -.2s; background: var(--h-brass-hi); }
@keyframes tsbar { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.cn-pips { display: flex; align-items: center; gap: 3px; height: 14px; }
.cn-pips i { width: 3px; height: 3px; background: var(--h-brass); opacity: .25; animation: tspip 1.5s steps(1) infinite; }
.cn-pips i:nth-child(2) { animation-delay: .3s; } .cn-pips i:nth-child(3) { animation-delay: .6s; } .cn-pips i:nth-child(4) { animation-delay: .9s; background: var(--h-steel); }
@keyframes tspip { 0%, 40% { opacity: 1; } 41%, 100% { opacity: .25; } }
.cn-arc { border-radius: 50%; border: 1px dashed rgba(var(--h-brass-rgb),.7); animation: tsspin 9s linear infinite; }
.cn-arc::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--h-steel); opacity: .8; animation: tspulse 1.8s ease-in-out infinite; }
@keyframes tspulse { 50% { transform: scale(.4); opacity: .4; } }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.trav { position: absolute; inset: 0; padding: 1.5px; pointer-events: none; z-index: 2; background: conic-gradient(from var(--ang), transparent 0 80%, rgba(var(--h-brass-rgb),.12) 91%, rgba(var(--h-brass-rgb),.38) 97.5%, rgba(var(--h-steel-rgb),.42) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: tsorbit 150s linear infinite; }
.trav.rev { animation-direction: reverse; animation-duration: 190s; }
@keyframes tsorbit { 0% { --ang: 0deg; opacity: 0; } 1.5% { opacity: .75; } 15% { --ang: 360deg; opacity: .75; } 16.5% { --ang: 360deg; opacity: 0; } 100% { --ang: 360deg; opacity: 0; } }
html:not([data-m="full"]):not([data-m="calm"]) .cn, html:not([data-m="full"]):not([data-m="calm"]) .trav { display: none; }
html[data-m="calm"] .cn, html[data-m="calm"] .cn *, html[data-m="calm"] .bgfx::before, html[data-m="calm"] .bgfx::after { animation-play-state: paused; }
html[data-m="calm"] .trav { animation-duration: 300s; }
html[data-m="off"] .bgfx::before, html[data-m="off"] .bgfx::after { animation: none !important; }

/* SELECTION RULE (chosen): 1px short brackets, no fill, three-blink lock on click, slow scanline while selected */
html:root .chipsrow button.on, html:root .tabs button.on, html:root .shctl button.on, html:root header.top button.on:not(#snd), html:root .seg button.on, html:root .seg a.on, html:root .h-btn.on, html:root nav a.on, html:root .sg.on, html:root .subtabs a.on {
  background: transparent !important; color: var(--h-brass) !important; clip-path: none !important; box-shadow: inset 0 0 0 1px rgba(var(--h-brass-rgb),.28) !important; }
html:root .chipsrow button.on::before, html:root .tabs button.on::before, html:root .shctl button.on::before, html:root header.top button.on::before, html:root .h-btn.on::before { background: var(--h-brass) !important; color: var(--h-brass) !important; }
.sx { position: relative; isolation: isolate; }
.sx > i { position: absolute; width: 8px; height: 8px; border: 1px solid var(--h-brass-hi); opacity: 0; pointer-events: none; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .25s; z-index: 2; clip-path: none; }
.sx > i:nth-of-type(1) { --dx: -1; --dy: -1; top: -3px; left: -3px; border-right: 0; border-bottom: 0; transform: translate(-9px, -9px); }
.sx > i:nth-of-type(2) { --dx: 1; --dy: -1; top: -3px; right: -3px; border-left: 0; border-bottom: 0; transform: translate(9px, -9px); }
.sx > i:nth-of-type(3) { --dx: 1; --dy: 1; bottom: -3px; right: -3px; border-left: 0; border-top: 0; transform: translate(9px, 9px); }
.sx > i:nth-of-type(4) { --dx: -1; --dy: 1; bottom: -3px; left: -3px; border-right: 0; border-top: 0; transform: translate(-9px, 9px); }
.sx.on > i, .sx[aria-current="page"] > i { opacity: 1; transform: none; }
.sx > .sc { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: none; z-index: 0; border-radius: inherit; }
.sx.on > .sc { display: block; }
.sx > .sc::after { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; background: linear-gradient(to bottom, transparent, rgba(var(--h-brass-rgb),.09) 70%, rgba(var(--h-brass-rgb),.55) 96%, var(--h-brass-hi)); animation: tsdrop 6s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--d, 0s); }
@keyframes tsdrop { 0% { top: -18px; opacity: 0; } 8% { opacity: 1; } 62% { top: 100%; opacity: 1; } 70% { top: 100%; opacity: 0; } 100% { top: 100%; opacity: 0; } }
html[data-m="off"] .sx > .sc { display: none !important; }
.sx.blink > i { animation: tsblink .6s linear both; }
@keyframes tsblink { 0%, 24%, 48% { opacity: 0; transform: none; } 12%, 36%, 60% { opacity: 1; transform: none; border-color: var(--h-steel); } 100% { opacity: 1; transform: none; border-color: var(--h-brass-hi); } }
@media (prefers-reduced-motion: reduce) { .sx > .sc::after, .sx.blink > i, .trav, .cn, .cn *, .bgfx::before, .bgfx::after { animation: none !important; } }


/* ===== SETTINGS & DATA: APPEARANCE LIBRARY ===== */
:root { --bs: 8px; --bw: 1px; --gz: 74px; --cz: 14px; }
.sx > i { width: var(--bs); height: var(--bs); border-width: var(--bw); }

/* layout: library docked left, the real dashboard shrinks beside it */
#lib { position: fixed; left: 0; top: var(--lkTop, 56px); bottom: 0; width: 640px; z-index: 55; display: none; background: color-mix(in srgb, var(--bg) 97%, transparent); border-right: 1px solid var(--h-line); font-family: var(--mono); color: var(--h-ink); }
body.lib-open #lib { display: flex; }
body.lib-open #app { zoom: .6; margin-left: calc(645px / .6); width: calc((100vw - 645px) / .6); box-sizing: border-box; }

#lib .rail { width: 132px; flex: none; border-right: 1px solid var(--h-line); padding: 12px 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
#lib .rail button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 14px; font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--h-mut); border-left: 2px solid transparent; display: block; width: 100%; }
#lib .rail button:hover { color: var(--h-ink); }
#lib .rail button.on { color: var(--h-brass); border-left-color: var(--h-brass); background: rgba(var(--h-brass-rgb), .06); }
#lib .rail small { display: block; padding: 14px 14px 4px; font: 9px var(--mono); letter-spacing: .18em; color: var(--h-faint); text-transform: uppercase; }
#lib .main { flex: 1; min-width: 0; overflow: auto; padding: 14px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
#lib h2 { margin: 0; font: 600 12px var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--h-brass); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#lib h2 span { color: var(--h-faint); font-weight: 400; letter-spacing: .1em; font-size: 10px; text-transform: none; }
#lib .sub { font: 10.5px/1.5 var(--mono); color: var(--h-mut); letter-spacing: .02em; margin-top: -8px; }
#lib .grp { display: flex; flex-direction: column; gap: 8px; }
#lib .lbl { font: 10px var(--mono); letter-spacing: .18em; color: var(--h-faint); text-transform: uppercase; display: flex; justify-content: space-between; }
#lib .lbl em { font-style: normal; color: var(--h-mut); letter-spacing: .06em; text-transform: none; }
#lib .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; padding: 4px; }
#lib .tiles.w { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
#lib .tiles.n { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
#lib .op { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 6px 8px; background: rgba(var(--h-brass-rgb), .05); box-shadow: inset 0 0 0 1px var(--h-line); text-align: center; min-width: 0; isolation: isolate; }
#lib .op:hover { background: rgba(var(--h-brass-rgb), .09); }
#lib .op.on { background: transparent; box-shadow: inset 0 0 0 1px rgba(var(--h-brass-rgb), .3); }
#lib .op b { font: 600 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--h-ink); }
#lib .op.on b { color: var(--h-brass); }
#lib .op small { font: 9px/1.3 var(--mono); color: var(--h-faint); letter-spacing: .02em; }
#lib .op .pvw { height: 44px; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
#lib .op .pvw svg { width: 44px; height: 44px; display: block; }
#lib .op .pvw.tall { height: 58px; }
#lib .op::before, #lib .op::after { content: none !important; }
#lib .sws { display: flex; gap: 2px; width: 100%; height: 6px; } #lib .sws span { flex: 1; }
#lib .presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; padding: 4px; }
#lib .presets .op { align-items: flex-start; text-align: left; padding: 9px 10px; gap: 5px; }
#lib .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#lib input[type=text], #lib textarea { background: rgba(0,0,0,.25); border: 1px solid var(--h-line2); color: var(--h-ink); font: 11px var(--mono); padding: 7px 9px; min-width: 0; }
#lib textarea { width: 100%; height: 90px; resize: vertical; }
#lib .btn { all: unset; cursor: pointer; padding: 7px 12px; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--h-brass); box-shadow: inset 0 0 0 1px rgba(var(--h-brass-rgb), .35); }
#lib .btn:hover { background: rgba(var(--h-brass-rgb), .1); }
#lib .saved { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); padding: 5px 8px; box-shadow: inset 0 0 0 1px var(--h-line); }
#lib .saved span { flex: 1; }
#lib .saved i { font-style: normal; color: var(--h-faint); cursor: pointer; padding: 0 4px; } #lib .saved i:hover { color: var(--h-rose); }
#lib .close { all: unset; cursor: pointer; font: 600 10px var(--mono); letter-spacing: .16em; color: var(--h-mut); padding: 4px 8px; box-shadow: inset 0 0 0 1px var(--h-line); }
#lib .hint { font: 10px/1.5 var(--mono); color: var(--h-mut); min-height: 14px; }

/* previews: container shapes and button shapes come from the same tables the live dashboard uses */
.pvc { display: block; width: 78px; height: 34px; position: relative; background: var(--h-panel); border: 1px solid var(--h-line); box-sizing: border-box; }
.pvc::before, .pvc::after { content: ""; position: absolute; width: 9px; height: 9px; border: 2px solid var(--h-brass); pointer-events: none; }
.pvc::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; } .pvc::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.pvc i { position: absolute; left: 8px; top: 8px; width: 24px; height: 3px; background: var(--h-brass); opacity: .8; }
.pvc u { position: absolute; left: 8px; top: 16px; width: 44px; height: 2px; background: var(--h-mut); opacity: .6; }
.pvb { --bc: var(--h-brass-rgb); height: 20px; width: 62px; display: inline-flex; align-items: center; justify-content: center; font: 600 8.5px var(--mono); letter-spacing: .12em; color: var(--h-tint); background: rgba(var(--bc), .12); box-sizing: border-box; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.pvb.sl { clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* ===== backdrops (extra) ===== */
html[data-bg="blueprint"] .bgfx::before { background: linear-gradient(rgba(var(--h-steel-rgb),.16) 1px, transparent 1px) 0 0/96px 96px, linear-gradient(90deg, rgba(var(--h-steel-rgb),.16) 1px, transparent 1px) 0 0/96px 96px, linear-gradient(rgba(var(--h-steel-rgb),.07) 1px, transparent 1px) 0 0/24px 24px, linear-gradient(90deg, rgba(var(--h-steel-rgb),.07) 1px, transparent 1px) 0 0/24px 24px; }
html[data-bg="blueprint"] .bgfx::after { background: radial-gradient(circle at 0 0, rgba(var(--h-steel-rgb),.35) 1.5px, transparent 2px) 0 0/96px 96px; }
html[data-bg="crosses"] .bgfx::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 12v8M12 16h8' stroke='%23A0A8B0' stroke-opacity='.22' stroke-width='1'/%3E%3C/svg%3E") 0 0/32px 32px; -webkit-mask: radial-gradient(95% 90% at 50% 30%, #000 25%, transparent 100%); mask: radial-gradient(95% 90% at 50% 30%, #000 25%, transparent 100%); }
html[data-bg="hatch"] .bgfx::before { background: repeating-linear-gradient(135deg, rgba(var(--h-brass-rgb),.055) 0 1px, transparent 1px 9px); -webkit-mask: radial-gradient(100% 90% at 50% 20%, #000 20%, transparent 100%); mask: radial-gradient(100% 90% at 50% 20%, #000 20%, transparent 100%); }
html[data-bg="crt"] .bgfx::before { background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); }
html[data-bg="crt"] .bgfx::after { background: radial-gradient(90% 80% at 50% 40%, rgba(var(--h-brass-rgb),.06), transparent 70%); }
html[data-bg="grain"] .bgfx::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"); }
html[data-bg="grain"] .bgfx::after { background: radial-gradient(60% 50% at 50% 0%, rgba(var(--h-brass-rgb),.06), transparent 70%); }
html[data-bg="horizon"] .bgfx::before { background: linear-gradient(to top, rgba(var(--h-brass-rgb),.13), transparent 38%), repeating-linear-gradient(to top, rgba(var(--h-brass-rgb),.10) 0 1px, transparent 1px 22px); -webkit-mask: linear-gradient(to top, #000, transparent 55%); mask: linear-gradient(to top, #000, transparent 55%); }
html[data-bg="horizon"] .bgfx::after { background: radial-gradient(55% 22% at 50% 100%, rgba(var(--h-steel-rgb),.16), transparent 70%); }
html[data-bg="topo"] .bgfx::before { background-image: var(--topo); background-size: 900px 700px; opacity: .55; -webkit-mask: radial-gradient(100% 90% at 50% 30%, #000 30%, transparent 100%); mask: radial-gradient(100% 90% at 50% 30%, #000 30%, transparent 100%); animation: tsdrift 240s linear infinite; }
html[data-bg="topo"] .bgfx::after { background: radial-gradient(40% 35% at 100% 100%, rgba(var(--h-steel-rgb),.07), transparent 70%); }

/* backdrop movement layers */
#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; display: none; }
html:not([data-bgm="none"]):not([data-bgm="radar"]):not([data-bgm="scanbar"]):not([data-bgm="rings"]) #fx { display: block; }
.bgm { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; display: none; }
html[data-bgm="radar"] .bgm, html[data-bgm="scanbar"] .bgm, html[data-bgm="rings"] .bgm { display: block; }
html[data-bgm="radar"] .bgm::before { content: ""; position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: conic-gradient(from 0deg, rgba(var(--h-brass-rgb),0) 0 90%, rgba(var(--h-brass-rgb),.07) 99.5%, rgba(var(--h-brass-rgb),.16) 100%); animation: tsspin 26s linear infinite; }
html[data-bgm="scanbar"] .bgm::before { content: ""; position: absolute; left: 0; right: 0; height: 90px; background: linear-gradient(to bottom, transparent, rgba(var(--h-brass-rgb),.07) 80%, rgba(var(--h-brass-rgb),.17)); animation: tsscanbar 14s linear infinite; }
@keyframes tsscanbar { from { top: -120px; } to { top: 100%; } }
html[data-bgm="rings"] .bgm::before, html[data-bgm="rings"] .bgm::after { content: ""; position: absolute; left: 50%; top: 45%; width: 30vmin; height: 30vmin; margin: -15vmin 0 0 -15vmin; border-radius: 50%; border: 1px solid rgba(var(--h-brass-rgb),.22); animation: tsring 12s ease-out infinite; }
html[data-bgm="rings"] .bgm::after { animation-delay: -6s; }
@keyframes tsring { from { transform: scale(.2); opacity: .9; } to { transform: scale(6); opacity: 0; } }
html[data-m="off"] .bgm::before, html[data-m="off"] .bgm::after { animation: none !important; }
html[data-m="calm"] .bgm::before, html[data-m="calm"] .bgm::after { animation-duration: 60s !important; }

/* globe surfaces */
.glb { display: block; pointer-events: none; }
#glbBack { position: fixed; z-index: -1; width: 900px; height: 900px; right: -180px; bottom: -260px; opacity: var(--gk, .55); pointer-events: none; display: none; }
html[data-gl~="back"] #glbBack { display: block; }
html[data-gp="center"] #glbBack { right: 50%; margin-right: -450px; bottom: -400px; }
html[data-gp="left"] #glbBack { right: auto; left: -220px; bottom: -260px; }
html[data-gp="big"] #glbBack { width: 1400px; height: 1400px; right: -400px; bottom: -700px; }
body.lib-open #glbBack { display: none; }
.core-glo { position: absolute; inset: 0; z-index: 0; display: none; align-items: center; justify-content: center; pointer-events: none; }
.core-glo canvas { width: 100%; height: 100%; max-width: 520px; }
.core-glo .gl { position: absolute; text-align: center; font: 600 11px var(--mono); letter-spacing: .2em; color: var(--h-mut); text-transform: uppercase; bottom: 18px; left: 0; right: 0; }
.core-glo .gl b { display: block; font: 300 34px var(--font); letter-spacing: 0; color: var(--h-ink); }
html[data-gl~="behind"] .core-glo { display: flex; opacity: .5; }
html[data-gl~="core"] .core-glo { display: flex; opacity: 1; }
html[data-gl~="core"] .core > svg { display: none; }
html[data-gl~="behind"]:not([data-gl~="core"]) .core > svg { position: relative; z-index: 1; }
.core > .core-corner { z-index: 3; }
#glbHead { display: none; width: 34px; height: 34px; margin: 0 4px; flex: none; order: 2; }
html[data-gl~="head"] #glbHead { display: block; }
.cn-globe canvas { width: 100%; height: 100%; display: block; }

/* ===== corner objects ===== */
.p .cn { width: var(--cz); height: var(--cz); }
.p .cn.q-bl { right: auto; left: 26px; }
.p .cn.q-tl { right: auto; left: 22px; top: 8px; bottom: auto; }
.p .cn.q-tr { top: 8px; bottom: auto; right: 22px; }
.p .cn.ghost { opacity: .3; z-index: 0; }
.p .cn.q-br.ghost { right: 12px; bottom: 8px; } .p .cn.q-bl.ghost { left: 12px; bottom: 8px; }
.cn-pulse { border-radius: 50%; border: 1px solid rgba(var(--h-brass-rgb), .8); animation: tsping 2.6s ease-out infinite; }
.cn-pulse::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--h-steel); }
@keyframes tsping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.cn-wave { display: flex; align-items: center; gap: 1px; }
.cn-wave i { flex: 1; background: var(--h-steel); animation: tswave 1.1s ease-in-out infinite; height: 100%; }
.cn-wave i:nth-child(odd) { background: var(--h-brass); }
.cn-wave i:nth-child(2) { animation-delay: -.15s; } .cn-wave i:nth-child(3) { animation-delay: -.3s; } .cn-wave i:nth-child(4) { animation-delay: -.45s; } .cn-wave i:nth-child(5) { animation-delay: -.6s; } .cn-wave i:nth-child(6) { animation-delay: -.75s; } .cn-wave i:nth-child(7) { animation-delay: -.9s; }
@keyframes tswave { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
.cn-hexspin { animation: tsspin 12s linear infinite; }
.cn-hexspin svg, .cn-orbit svg, .cn-cross svg, .cn-spin svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cn-orbit .o1 { transform-origin: 50% 50%; animation: tsspin 5s linear infinite; } .cn-orbit .o2 { transform-origin: 50% 50%; animation: tsspin 8s linear infinite reverse; }
.cn-cross { animation: tscross 6s ease-in-out infinite; }
@keyframes tscross { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.7); } }
.cn-ticker { overflow: hidden; width: calc(var(--cz) * 2.6) !important; font: 600 calc(var(--cz) * .55) var(--mono); color: var(--h-brass); white-space: nowrap; display: flex; align-items: center; letter-spacing: .1em; }
.cn-ticker span { display: inline-block; padding-left: 100%; animation: tsticker 5s linear infinite; }
@keyframes tsticker { to { transform: translateX(-100%); } }
.cn-dots { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 15%; }
.cn-dots i { background: var(--h-brass); border-radius: 50%; opacity: .2; animation: tstw 2.4s ease-in-out infinite; }
.cn-dots i:nth-child(3n+2) { animation-delay: -.5s; background: var(--h-steel); } .cn-dots i:nth-child(3n) { animation-delay: -1s; } .cn-dots i:nth-child(4n) { animation-delay: -1.6s; }
@keyframes tstw { 50% { opacity: 1; } }
.cn-chev { display: flex; align-items: center; overflow: hidden; }
.cn-chev i { flex: 1; height: 60%; border-right: 2px solid var(--h-brass); border-top: 2px solid var(--h-brass); transform: rotate(45deg) scale(.5); opacity: .2; animation: tschev 1.2s steps(1) infinite; }
.cn-chev i:nth-child(2) { animation-delay: .25s; } .cn-chev i:nth-child(3) { animation-delay: .5s; }
@keyframes tschev { 0% { opacity: 1; } 34% { opacity: .2; } }
.cn-spin svg { animation: tsspin 4s linear infinite; }
.cn-heart svg { width: 100%; height: 100%; }
html[data-m="calm"] .cn-ticker span { animation-duration: 12s; }

/* ===== perimeter light ===== */
.trav { opacity: var(--tva, .8); }
html[data-trv="off"] .trav { display: none; }
html[data-trv="comet"] .trav { background: conic-gradient(from var(--ang), transparent 0 58%, rgba(var(--h-brass-rgb),.06) 72%, rgba(var(--h-brass-rgb),.3) 93%, rgba(var(--h-steel-rgb),.62) 99.4%, transparent 100%); }
html:not([data-trv="dual"]) .trav.b { display: none; }
html[data-trv="march"] .trav { background: repeating-conic-gradient(from var(--ang), rgba(var(--h-brass-rgb),.5) 0 1.6deg, transparent 1.6deg 6deg); animation: tsmarch 90s linear infinite !important; opacity: calc(var(--tva, .8) * .55); }
@keyframes tsmarch { from { --ang: 0deg; } to { --ang: 360deg; } }
html[data-trv="pulse"] .trav { background: rgba(var(--h-brass-rgb),.55); animation: tsbreath 7s ease-in-out infinite !important; opacity: 0; }
@keyframes tsbreath { 0%, 100% { opacity: 0; } 50% { opacity: calc(var(--tva, .8) * .8); } }
html[data-tr="fast"] .trav { --lap: 1; }
/* lap speed x rest: three keyframe sets */
html[data-tl="slow"] .trav:not(.b) { animation-name: tsorbitF; } html[data-tl="fast"] .trav:not(.b) { animation-name: tsorbitS; }
html[data-tl="slow"] .trav.b { animation-name: tsorbitF; } html[data-tl="fast"] .trav.b { animation-name: tsorbitS; }
@keyframes tsorbitS { 0% { --ang: 0deg; opacity: 0; } 2% { opacity: 1; } 8% { --ang: 360deg; opacity: 1; } 9.5% { --ang: 360deg; opacity: 0; } 100% { --ang: 360deg; opacity: 0; } }
@keyframes tsorbitF { 0% { --ang: 0deg; opacity: 0; } 1% { opacity: 1; } 24% { --ang: 360deg; opacity: 1; } 26% { --ang: 360deg; opacity: 0; } 100% { --ang: 360deg; opacity: 0; } }
.trav { animation-duration: var(--tdur, 150s); }
.trav.rev { animation-duration: calc(var(--tdur, 150s) * 1.25); }
.trav.b { animation-direction: reverse; animation-delay: calc(var(--tdur, 150s) / -2) !important; }
html[data-trv="march"] .trav, html[data-trv="pulse"] .trav { animation-duration: 90s; }
html[data-trv="pulse"] .trav { animation-duration: 7s; }

/* ===== gauges ===== */
.ring svg { width: var(--gz); height: var(--gz); }
.ring svg text { fill: var(--h-ink) !important; font-family: var(--font), sans-serif !important; }
.ring.gx svg text { font-weight: 600; }

/* ===== effects ===== */
#fxScan, #fxVig, #fxGrain, #fxEdge { position: fixed; inset: 0; pointer-events: none; z-index: 70; display: none; }
html[data-fx~="scan"] #fxScan { display: block; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
html[data-fx~="vig"] #fxVig { display: block; background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }
html[data-fx~="grain"] #fxGrain { display: block; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
html[data-fx~="edge"] #fxEdge { display: block; box-shadow: inset 0 0 0 1px rgba(var(--h-brass-rgb), .45), inset 0 0 60px rgba(var(--h-brass-rgb), .08); }
html[data-fx~="glow"] .p h3, html[data-fx~="glow"] .big, html[data-fx~="glow"] .mid { text-shadow: 0 0 10px rgba(var(--h-brass-rgb), .55); }
html[data-fx~="flick"] .p h3 { animation: tsflick 9s steps(1) infinite; }
@keyframes tsflick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .55; } 98% { opacity: 1; } 99% { opacity: .7; } }

/* ===== containers: cosmetic layers that are not shapes ===== */
html[data-ch="rule"] .hud .p h3 { border-bottom: 1px solid var(--h-line2); padding-bottom: 6px; }
html[data-ch="plain"] .hud .p h3 { text-transform: none; letter-spacing: .04em; font-size: 12.5px; }
html[data-ch="tick"] .hud .p h3::before { content: ""; width: 6px; height: 6px; background: var(--h-brass); margin-right: 8px; flex: none; }
html[data-ch="tick"] .hud .p h3 { justify-content: flex-start; } html[data-ch="tick"] .hud .p h3 span { margin-left: auto; }
html[data-ch="hide"] .hud .p h3 span { display: none; }
html[data-cd="compact"] .hud .p { padding: 8px 10px 10px; } html[data-cd="compact"] .hud .p h3 { margin-bottom: 6px; }
html[data-cd="roomy"] .hud .p { padding: 18px 20px 20px; } html[data-cd="roomy"] .hud .p h3 { margin-bottom: 14px; }
html[data-cw="thin"] .hud .p { border-color: rgba(var(--h-brass-rgb), .12); }
html[data-cw="bold"] .hud .p { border-width: 2px; }
html[data-cf="dense"] .hud .p { background: color-mix(in srgb, var(--h-bg) 96%, transparent); }
html[data-cf="clear"] .hud .p { background: transparent; }
html[data-cf="glass"] .hud .p { background: rgba(var(--h-brass-rgb), .04); backdrop-filter: blur(14px) saturate(1.2); }

/* ===== selection indicators ===== */
:is(html[data-sel="bar"] .sx:not(.pvx), .pvx[data-selp="bar"]) > i, :is(html[data-sel="underline"] .sx:not(.pvx), .pvx[data-selp="underline"]) > i, :is(html[data-sel="outline"] .sx:not(.pvx), .pvx[data-selp="outline"]) > i, :is(html[data-sel="dot"] .sx:not(.pvx), .pvx[data-selp="dot"]) > i, :is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i, :is(html[data-sel="none"] .sx:not(.pvx), .pvx[data-selp="none"]) > i { transition: opacity .25s; }
:is(html[data-sel="bar"] .sx:not(.pvx), .pvx[data-selp="bar"]) > i:nth-of-type(n+2), :is(html[data-sel="underline"] .sx:not(.pvx), .pvx[data-selp="underline"]) > i:nth-of-type(n+2), :is(html[data-sel="outline"] .sx:not(.pvx), .pvx[data-selp="outline"]) > i:nth-of-type(n+2), :is(html[data-sel="dot"] .sx:not(.pvx), .pvx[data-selp="dot"]) > i:nth-of-type(n+2), :is(html[data-sel="none"] .sx:not(.pvx), .pvx[data-selp="none"]) > i { display: none; }
:is(html[data-sel="bar"] .sx:not(.pvx), .pvx[data-selp="bar"]) > i:nth-of-type(1) { left: -3px; top: 0; bottom: 0; width: calc(var(--bw) * 2 + 1px); height: auto; border: 0; background: var(--h-brass-hi); transform: none; box-shadow: 0 0 8px rgba(var(--h-brass-rgb), .6); }
:is(html[data-sel="underline"] .sx:not(.pvx), .pvx[data-selp="underline"]) > i:nth-of-type(1) { left: 0; right: 0; top: auto; bottom: -3px; width: auto; height: calc(var(--bw) * 2); border: 0; background: var(--h-brass-hi); transform: none; box-shadow: 0 0 8px rgba(var(--h-brass-rgb), .6); }
:is(html[data-sel="outline"] .sx:not(.pvx), .pvx[data-selp="outline"]) > i:nth-of-type(1) { inset: -3px; width: auto; height: auto; border: var(--bw) solid var(--h-brass-hi); transform: none; box-shadow: 0 0 10px rgba(var(--h-brass-rgb), .35); border-radius: inherit; }
:is(html[data-sel="dot"] .sx:not(.pvx), .pvx[data-selp="dot"]) > i:nth-of-type(1) { left: -9px; top: 50%; margin-top: -2px; width: 4px; height: 4px; border: 0; border-radius: 50%; background: var(--h-brass-hi); box-shadow: 0 0 8px var(--h-brass-hi); transform: none; }
:is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i:nth-of-type(1), :is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i:nth-of-type(3) { top: 50%; margin-top: -4px; width: 7px; height: 7px; }
:is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i:nth-of-type(1) { left: -12px; border: 0; border-left: var(--bw) solid var(--h-brass-hi); border-bottom: var(--bw) solid var(--h-brass-hi); transform: rotate(45deg); bottom: auto; }
:is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i:nth-of-type(3) { right: -12px; left: auto; bottom: auto; border: 0; border-right: var(--bw) solid var(--h-brass-hi); border-top: var(--bw) solid var(--h-brass-hi); transform: rotate(45deg); }
:is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i:nth-of-type(2), :is(html[data-sel="chev"] .sx:not(.pvx), .pvx[data-selp="chev"]) > i:nth-of-type(4) { display: none; }
html[data-sel="none"] .sx > .sc { display: none !important; }
html[data-sel="chev"] .sx.on > i:nth-of-type(1), html[data-sel="chev"] .sx.on > i:nth-of-type(3) { transform: rotate(45deg); }
.sx.blink > i { animation-name: tsblink; }
html[data-clk="jitter"] .sx.blink > i { animation: tsjit .7s cubic-bezier(.2,.8,.2,1) both; }
html[data-clk="lock"] .sx.blink > i { animation: tslock .45s cubic-bezier(.2,.9,.3,1) both; }
html[data-clk="pulse"] .sx.blink > i { animation: tspulse2 .7s ease-out both; }
html[data-clk="off"] .sx.blink > i { animation: none; }
@keyframes tsjit { 0% { opacity: 1; transform: translate(calc(var(--dx, 1) * 9px), calc(var(--dy, 1) * 9px)); } 15% { transform: translate(calc(var(--dx, 1) * -4px), calc(var(--dy, 1) * 3px)); } 30% { transform: translate(calc(var(--dx, 1) * 5px), calc(var(--dy, 1) * -3px)); } 45% { transform: translate(calc(var(--dx, 1) * -2px), calc(var(--dy, 1) * 2px)); } 60% { transform: translate(calc(var(--dx, 1) * 2px), 0); } 100% { opacity: 1; transform: none; } }
@keyframes tslock { 0% { opacity: 0; transform: translate(calc(var(--dx, 1) * 14px), calc(var(--dy, 1) * 14px)) scale(1.6); } 70% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes tspulse2 { 0% { opacity: 1; filter: drop-shadow(0 0 0 var(--h-brass-hi)); } 40% { filter: drop-shadow(0 0 7px var(--h-brass-hi)); } 100% { opacity: 1; filter: none; } }
html[data-scn="sweep"] .sx > .sc::after { top: 0; bottom: 0; left: -18px; right: auto; width: 18px; height: auto; background: linear-gradient(to right, transparent, rgba(var(--h-brass-rgb),.09) 70%, rgba(var(--h-brass-rgb),.5) 96%, var(--h-brass-hi)); animation-name: tssweep; }
@keyframes tssweep { 0% { left: -18px; opacity: 0; } 8% { opacity: 1; } 62% { left: 100%; opacity: 1; } 70% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
html[data-scn="breathe"] .sx > .sc::after { inset: 0; top: 0; height: auto; background: rgba(var(--h-brass-rgb), .12); animation-name: tsbr; animation-duration: 4s; }
@keyframes tsbr { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
html[data-scn="off"] .sx > .sc { display: none !important; }
html[data-scv="fast"] .sx > .sc::after { animation-duration: 3s; }
html[data-scv="slower"] .sx > .sc::after { animation-duration: 10s; }

#lib .cn { display: block !important; } #lib .cn-ticker { display: flex !important; } #lib .cn-bars, #lib .cn-pips, #lib .cn-wave, #lib .cn-chev { display: flex !important; } #lib .cn-dots { display: grid !important; }
#lib .pvx { position: relative; }

html:root #lib button.on, html:root #lib .op.on, html:root #lib .rail button.on { background: transparent !important; clip-path: none !important; }
html:root #lib .op.on { box-shadow: inset 0 0 0 1px rgba(var(--h-brass-rgb), .3) !important; }
html:root #lib .rail button.on { background: rgba(var(--h-brass-rgb), .06) !important; color: var(--h-brass) !important; }
html:root #lib button::before, html:root #lib button::after { content: none !important; display: none !important; }
html:root #lib button { clip-path: none !important; border-radius: 0 !important; background-image: none; }
html:root #lib .op { padding: 9px 6px 8px !important; }

/* graphs */
.qsvg .qchart { pointer-events: none; }
html[data-qa="off"] .qsvg text.axis { display: none; }
.qsvg.qs-heat text.axis[text-anchor="end"], .qsvg.qs-radial text.axis, .qsvg.qs-heat line, .qsvg.qs-radial line { display: none; }
.qsvg.qs-heat line:first-of-type, .qsvg.qs-radial line:first-of-type { display: none; }
html[data-qk="sq"] #heat i { clip-path: none; }
html[data-qk="round"] #heat i { clip-path: none; border-radius: 50%; aspect-ratio: 1; margin: 0 auto; width: 84%; }
html[data-qk="diamond"] #heat i { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); aspect-ratio: 1; }
html[data-qk="small"] #heat i { clip-path: none; aspect-ratio: 1; width: 62%; margin: 0 auto; }
html[data-qk="ring"] #heat i { clip-path: none; aspect-ratio: 1; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 42%, #000 45%); mask: radial-gradient(circle, transparent 42%, #000 45%); }
#lib .qkpv { display: grid; grid-template-columns: repeat(4, 12px); gap: 3px; }
#lib .qkpv i { display: block; aspect-ratio: 1.16; background: rgba(var(--h-brass-rgb), .6); } #lib .qkpv i:nth-child(2) { opacity: .45; } #lib .qkpv i:nth-child(3) { opacity: .75; } #lib .qkpv i:nth-child(4) { opacity: .3; }
#lib .qkpv[data-qk="orig"] i { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
#lib .qkpv[data-qk="round"] i { border-radius: 50%; aspect-ratio: 1; } #lib .qkpv[data-qk="diamond"] i { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); aspect-ratio: 1; }
#lib .qkpv[data-qk="small"] i { aspect-ratio: 1; transform: scale(.6); } #lib .qkpv[data-qk="ring"] i { aspect-ratio: 1; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 42%, #000 45%); mask: radial-gradient(circle, transparent 42%, #000 45%); }
#lib .tiles.w .pvw svg[viewBox="0 0 160 50"] { width: 100%; height: 100%; }
#lib .op .pvw svg[viewBox="0 0 160 50"] { width: 100%; }

/* library chrome */
#lib .lkwrap { display: flex; flex: 1; min-width: 0; min-height: 0; }
#lib .lkbar { display: none; }
#lkBack { display: none; }

/* ===== mobile and small screens ===== */
@media (max-width: 860px) {
  body.lib-open #app { display: none; }
  body.lib-open.lib-peek #app { display: block; zoom: 1; margin: 0; width: auto; }
  body.lib-open.lib-peek #lib { display: none; }
  #lib { top: 0; left: 0; right: 0; bottom: 0; width: auto; z-index: 90; border: 0; flex-direction: column; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
  body.lib-open #lib { display: flex; }
  #lib .lkwrap { flex-direction: column; }
  #lib .rail { width: auto; flex: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--h-line); padding: 0; gap: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #lib .rail::-webkit-scrollbar { display: none; }
  #lib .rail small { display: none; }
  #lib .rail button { width: auto; flex: none; white-space: nowrap; padding: 14px 14px; border-left: 0; border-bottom: 2px solid transparent; font-size: 11px; }
  #lib .rail button.on { border-left-color: transparent; border-bottom-color: var(--h-brass); }
  #lib .main { padding: 14px 16px 84px; gap: 18px; }
  #lib .lkhead { position: sticky; top: -14px; background: var(--bg); padding: 4px 0 8px; z-index: 3; }
  #lib .lkhead .close { display: none; }
  #lib .lkbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 4; }
  #lib .lkbar .btn { flex: 1; text-align: center; padding: 12px 8px; font-size: 11px; background: var(--bg); }
  #lib .tiles, #lib .tiles.w { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 3px; }
  #lib .tiles.n { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #lib .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #lib .op { min-height: 46px; padding: 10px 6px 9px; }
  #lib .op b { font-size: 10px; letter-spacing: .08em; overflow-wrap: anywhere; }
  #lib .op small { font-size: 9.5px; overflow-wrap: anywhere; }
  #lib .presets .op small { display: block; }
  #lib .sub, #lib .hint { font-size: 11.5px; }
  #lib .lbl { font-size: 10px; flex-wrap: wrap; gap: 2px 8px; }
  #lib input[type=text] { flex: 1; min-width: 0; font-size: 16px; }
  #lib textarea { font-size: 16px; }
  #lkBack { display: none; }
  body.lib-open.lib-peek #lkBack { display: block; position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 12px 20px; font: 600 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--h-bg); background: var(--h-brass); border: 0; box-shadow: 0 6px 24px rgba(0,0,0,.5); cursor: pointer; }
  body.lib-open.lib-peek #lkBack::before, body.lib-open.lib-peek #lkBack::after { content: none !important; }
  #glbBack { width: 130vw; height: 130vw; right: -35vw; bottom: -40vw; }
  html[data-gp="big"] #glbBack { width: 220vw; height: 220vw; right: -80vw; bottom: -110vw; }
  html[data-gp="center"] #glbBack { right: 50%; margin-right: -65vw; bottom: -55vw; }
  html[data-gp="left"] #glbBack { left: -35vw; right: auto; bottom: -40vw; }
  #glbHead { width: 26px; height: 26px; }
  .p .cn { width: min(var(--cz), 26px); height: min(var(--cz), 26px); }
  .p .cn-ticker { width: auto !important; }
  .core-glo canvas { max-width: 100%; }
}
@media (max-width: 420px) {
  #glbHead { display: none !important; }
  #lib .tiles.n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html[data-cc="hide"] .core-corner.cm-br { display: none; }

/* ===== added for the live back office ===== */
.lkw { position: relative; display: block; }
.lkw > svg.lkov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.lkw.on > svg:not(.lkov) { opacity: 0; }
.ring.lkg > svg:not(.lkgx) { display: none; }
.fun.lkhide { display: none; }
#prov.lkon > .bar { display: none; }
.lkfun, .lkprov { display: block; }
#lib { top: var(--lkTop, 56px); }
body.lib-open #app { min-height: 0; }

/* ===== map options: the South Africa map behind the control room ===== */
html { --mo: .34; --mw: 1px; --mf: .06; --mg: 1; --mn: 1; --mt: 1; --mb: 1; }
html[data-mo="off"] { --mo: 0; } html[data-mo="faint"] { --mo: .16; } html[data-mo="soft"] { --mo: .34; } html[data-mo="norm"] { --mo: .6; } html[data-mo="bold"] { --mo: .85; }
html[data-mw="hair"] { --mw: 1px; } html[data-mw="norm"] { --mw: 1.5px; } html[data-mw="heavy"] { --mw: 2.6px; }
html[data-mf="none"] { --mf: 0; } html[data-mf="norm"] { --mf: .06; } html[data-mf="strong"] { --mf: .14; }
html[data-mg="off"] { --mg: 0; } html[data-mg="faint"] { --mg: .5; } html[data-mg="norm"] { --mg: 1; } html[data-mg="bold"] { --mg: 1.8; }
html[data-mn="off"] { --mn: 0; } html[data-mn="faint"] { --mn: .5; } html[data-mn="norm"] { --mn: 1; }
html[data-mt="off"] { --mt: 0; } html[data-mt="dim"] { --mt: .5; } html[data-mt="norm"] { --mt: 1; }
html[data-mb="norm"] { --mb: 1; } html[data-mb="soft"] { --mb: .7; } html[data-mb="dim"] { --mb: .45; } html[data-mb="ghost"] { --mb: .25; }
.hud:not(.map-front) .h-map-plane { opacity: var(--mb); }
.hud:not(.map-front) .h-map .m-za { stroke: rgba(var(--h-steel-rgb), var(--mo)); stroke-width: var(--mw); fill: rgba(var(--h-steel-rgb), var(--mf)); }
.hud:not(.map-front) .h-map .m-grat line { stroke: rgba(var(--h-steel-rgb), calc(.06 * var(--mg))); }
.hud:not(.map-front) .h-map .m-grat line.maj { stroke: rgba(var(--h-steel-rgb), calc(.15 * var(--mg))); }
.hud:not(.map-front) .h-map .m-grat text { fill: rgba(var(--h-steel-rgb), calc(.4 * var(--mg))); }
.hud:not(.map-front) .h-map .m-ls, .hud:not(.map-front) .h-map .m-sz { stroke: rgba(var(--h-steel-rgb), calc(.35 * var(--mn))); }
.hud:not(.map-front) .h-map .m-nb { stroke: rgba(var(--h-steel-rgb), calc(.18 * var(--mn))); }
.hud:not(.map-front) .h-map .m-names text { fill: rgba(var(--h-steel-rgb), calc(.22 * var(--mn))); }
.hud:not(.map-front) .h-map .mp .dot { fill: rgba(var(--h-steel-rgb), calc(.5 * var(--mt))); }
.hud:not(.map-front) .h-map .mp.hub .dot { fill: rgba(var(--h-steel-rgb), calc(.75 * var(--mt))); }
.hud:not(.map-front) .h-map .mp.hub .lbl { fill: rgba(190, 198, 208, calc(.42 * var(--mt))); }
.hud:not(.map-front) .h-map .mp.on .dot { fill: var(--c, var(--h-steel)); }
.hud:not(.map-front) .h-map .mp.on .lbl { fill: rgba(232, 236, 242, .92); }
@media (min-width: 861px) { body.lib-open .h-map { left: 645px; } }
#lib .main > * { flex-shrink: 0; }

/* ===== top bar tabs (Overview, Orders...): shape pack, chosen in Buttons > Top bar tabs ===== */
html:root[data-ns]:not([data-ns="pill"]) header.top nav a.sx > i, html:root[data-ns]:not([data-ns="pill"]) header.top nav a.sx > .sc { display: none !important; }
html:root[data-ns]:not([data-ns="pill"]) header.top nav a:hover { filter: brightness(1.3); }
#lib .nsp { display: inline-flex; gap: 4px; align-items: center; }
#lib .nsp a { display: inline-block; padding: 3px 9px; font: 500 10px var(--font); color: var(--h-mut); text-decoration: none; pointer-events: none; background: rgba(var(--h-brass-rgb),.06); border-radius: 99px; }
#lib .nsp a.on { color: var(--h-brass); box-shadow: inset 0 0 0 1px rgba(var(--h-brass-rgb),.4); background: transparent; }
html:root[data-ns="slant"] header.top nav a, #lib .nsp[data-nsv="slant"] a { border-radius:0;clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%);background:rgba(var(--h-brass-rgb),.09);margin:0 3px }
html:root[data-ns="slant"] header.top nav a.on, #lib .nsp[data-nsv="slant"] a.on { border-radius:0!important;clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%)!important;background:rgba(var(--h-brass-rgb),.28)!important;box-shadow:none!important; color: var(--h-brass) !important; }
html:root[data-ns="plate"] header.top nav a, #lib .nsp[data-nsv="plate"] a { border-radius:0;background:rgba(var(--h-brass-rgb),.07) }
html:root[data-ns="plate"] header.top nav a.on, #lib .nsp[data-nsv="plate"] a.on { border-radius:0!important;background:rgba(var(--h-brass-rgb),.2)!important;box-shadow:inset 0 -2px 0 var(--h-brass)!important; color: var(--h-brass) !important; }
html:root[data-ns="cut"] header.top nav a, #lib .nsp[data-nsv="cut"] a { border-radius:0;clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);background:rgba(var(--h-brass-rgb),.08) }
html:root[data-ns="cut"] header.top nav a.on, #lib .nsp[data-nsv="cut"] a.on { border-radius:0!important;clip-path:polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px)!important;background:rgba(var(--h-brass-rgb),.26)!important;box-shadow:none!important; color: var(--h-brass) !important; }
html:root[data-ns="soft"] header.top nav a, #lib .nsp[data-nsv="soft"] a { border-radius:6px;background:rgba(var(--h-brass-rgb),.07) }
html:root[data-ns="soft"] header.top nav a.on, #lib .nsp[data-nsv="soft"] a.on { border-radius:6px!important;background:rgba(var(--h-brass-rgb),.2)!important;box-shadow:inset 0 0 0 1px rgba(var(--h-brass-rgb),.45)!important; color: var(--h-brass) !important; }
html:root[data-ns="tab"] header.top nav a, #lib .nsp[data-nsv="tab"] a { border-radius:8px 8px 0 0;background:transparent;box-shadow:inset 0 -2px 0 rgba(var(--h-brass-rgb),.2) }
html:root[data-ns="tab"] header.top nav a.on, #lib .nsp[data-nsv="tab"] a.on { border-radius:8px 8px 0 0!important;background:rgba(var(--h-brass-rgb),.12)!important;box-shadow:inset 0 -2px 0 var(--h-brass)!important; color: var(--h-brass) !important; }
html:root[data-ns="underline"] header.top nav a, #lib .nsp[data-nsv="underline"] a { border-radius:0;background:transparent;box-shadow:inset 0 -1px 0 rgba(var(--h-brass-rgb),.16) }
html:root[data-ns="underline"] header.top nav a.on, #lib .nsp[data-nsv="underline"] a.on { border-radius:0!important;background:transparent!important;box-shadow:inset 0 -2px 0 var(--h-brass)!important; color: var(--h-brass) !important; }
html:root[data-ns="brackets"] header.top nav a, #lib .nsp[data-nsv="brackets"] a { border-radius:0;background:transparent }
html:root[data-ns="brackets"] header.top nav a.on, #lib .nsp[data-nsv="brackets"] a.on { border-radius:0!important;box-shadow:none!important;background:linear-gradient(var(--h-brass),var(--h-brass)) 0 0/8px 1px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 0 0/1px 8px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 100% 0/8px 1px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 100% 0/1px 8px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 0 100%/8px 1px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 0 100%/1px 8px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 100% 100%/8px 1px no-repeat,linear-gradient(var(--h-brass),var(--h-brass)) 100% 100%/1px 8px no-repeat!important; color: var(--h-brass) !important; }
html:root[data-ns="tag"] header.top nav a, #lib .nsp[data-nsv="tag"] a { border-radius:0;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,0 100%);background:rgba(var(--h-brass-rgb),.08);padding-right:20px }
html:root[data-ns="tag"] header.top nav a.on, #lib .nsp[data-nsv="tag"] a.on { border-radius:0!important;clip-path:polygon(0 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,0 100%)!important;background:rgba(var(--h-brass-rgb),.26)!important;box-shadow:none!important; color: var(--h-brass) !important; }
html:root[data-ns="outline"] header.top nav a, #lib .nsp[data-nsv="outline"] a { border-radius:3px;background:transparent;box-shadow:inset 0 0 0 1px rgba(var(--h-brass-rgb),.28) }
html:root[data-ns="outline"] header.top nav a.on, #lib .nsp[data-nsv="outline"] a.on { border-radius:3px!important;background:rgba(var(--h-brass-rgb),.12)!important;box-shadow:inset 0 0 0 1px var(--h-brass)!important; color: var(--h-brass) !important; }
html:root[data-ns="dot"] header.top nav a, #lib .nsp[data-nsv="dot"] a { border-radius:0;background:transparent }
html:root[data-ns="dot"] header.top nav a.on, #lib .nsp[data-nsv="dot"] a.on { border-radius:0!important;background:transparent!important;box-shadow:none!important; color: var(--h-brass) !important; }
html:root[data-ns="text"] header.top nav a, #lib .nsp[data-nsv="text"] a { border-radius:0;background:transparent }
html:root[data-ns="text"] header.top nav a.on, #lib .nsp[data-nsv="text"] a.on { border-radius:0!important;background:transparent!important;box-shadow:none!important;font-weight:700; color: var(--h-brass) !important; }
html:root[data-ns="dot"] header.top nav a.on::before, #lib .nsp[data-nsv="dot"] a.on::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; }
/* phones: the top bar's second row keeps the sound button and View store together */

/* eased hover and selection changes in the library, like the storefront */
#lib :is(.op,.rail button,.btn,.close){transition:background-color .2s var(--hh-ease,ease),color .2s var(--hh-ease,ease),box-shadow .25s var(--hh-ease,ease),border-color .2s var(--hh-ease,ease)}
#lib .op b{transition:color .2s ease}
