:root{
  --bg:#0f1012;--panel:#17181c;--panel2:#202126;--text:#f5f6f7;--muted:#9da1aa;
  --line:#2b2d33;--accent:#8fd4ff;--accent2:#c8ff9f;--white:#fff;--black:#0d0e10;
  --shadow:0 18px 60px rgba(0,0,0,.24);--r:18px;--rs:12px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
.public{background:#f4f1ea;color:#17181a;min-height:100vh}.public .topbar{position:sticky;top:0;z-index:20;background:rgba(244,241,234,.92);backdrop-filter:blur(14px);border-bottom:1px solid #dedbd3}
.topbar-inner{max-width:1240px;margin:auto;height:76px;display:flex;align-items:center;gap:28px;padding:0 24px}.brand{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:.03em}.brand-logo{display:block;width:44px;height:44px;object-fit:cover;border-radius:7px;flex:0 0 auto}.brand-mark{display:inline-flex;gap:3px;align-items:flex-end;height:22px}.brand-mark span{display:block;width:5px;border-radius:4px;background:currentColor}.brand-mark span:nth-child(1){height:11px}.brand-mark span:nth-child(2){height:22px}.brand-mark span:nth-child(3){height:16px}
.topnav{margin-left:auto;display:flex;gap:24px;align-items:center}.linkbtn{border:0;background:transparent;padding:10px 0;color:inherit}.pill{border:0;border-radius:999px;padding:12px 18px;background:#17181a;color:white;font-weight:700}.pill.secondary{background:transparent;color:inherit;border:1px solid currentColor}.hero{max-width:1240px;margin:auto;padding:88px 24px 64px;display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:#5f646a}.hero h1{font-size:clamp(48px,7vw,88px);line-height:.94;margin:12px 0 24px;letter-spacing:-.055em}.hero p{font-size:21px;line-height:1.5;color:#555a60;max-width:640px}.hero-actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.art-stack{position:relative;height:470px}.cover{aspect-ratio:1;border-radius:16px;box-shadow:var(--shadow);display:flex;align-items:flex-end;padding:18px;color:#fff;font-weight:800;background:linear-gradient(145deg,#4554d8,#e27c8a)}.art-stack .cover{position:absolute;width:62%}.art-stack .cover:nth-child(1){left:0;top:55px;transform:rotate(-6deg);background:linear-gradient(145deg,#243447,#5ca4a9)}.art-stack .cover:nth-child(2){right:2%;top:0;transform:rotate(6deg);background:linear-gradient(145deg,#702963,#f2a65a)}.art-stack .cover:nth-child(3){left:24%;bottom:0;transform:rotate(1deg);background:linear-gradient(145deg,#304c89,#7cc6fe)}
.section{max-width:1240px;margin:auto;padding:76px 24px}.section h2{font-size:42px;letter-spacing:-.035em;margin:0 0 12px}.section-lede{color:#686d72;max-width:720px;font-size:18px;margin-bottom:32px}.album-row{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.album-row .cover{width:100%;box-shadow:none}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature{background:#fff;border-radius:18px;padding:28px;min-height:170px}.feature strong{display:block;font-size:21px;margin:12px 0 8px}.feature p{color:#656a70;line-height:1.5}.num{font-weight:900;font-size:13px;border:1px solid #bbb;border-radius:50%;width:30px;height:30px;display:grid;place-items:center}
.dark-cta{background:#16171a;color:white;border-radius:28px;padding:46px;display:grid;grid-template-columns:1fr .8fr;gap:32px;align-items:center}.tempo-preview{background:#24262b;border-radius:18px;padding:24px}.tempo-value{font-size:48px;font-weight:800;letter-spacing:-.04em}.fake-slider{height:5px;background:#494c53;border-radius:5px;position:relative;margin:24px 0}.fake-slider:after{content:"";position:absolute;left:58%;top:50%;width:18px;height:18px;border-radius:50%;background:white;transform:translate(-50%,-50%)}
.footer{border-top:1px solid #d8d4cb;padding:30px 24px;max-width:1240px;margin:auto;color:#70747a}
.app-shell{min-height:100vh;background:var(--bg);display:grid;grid-template-columns:230px 1fr;padding-bottom:92px}.sidebar{border-right:1px solid var(--line);padding:24px 18px;position:fixed;inset:0 auto 0 0;width:230px;background:#111216;z-index:15}.sidebar .brand{padding:4px 8px 30px}.side-nav{display:grid;gap:5px}.navbtn{border:0;background:transparent;color:#aeb2ba;text-align:left;padding:12px 14px;border-radius:10px;font-weight:650}.navbtn:hover,.navbtn.active{background:#202126;color:#fff}.content{grid-column:2;min-width:0;padding:28px 36px 40px;max-width:1440px;width:100%;margin:0 auto;align-self:start}.app-header{display:flex;align-items:center;gap:16px;margin-bottom:34px}.app-header h1{margin:0;font-size:34px;letter-spacing:-.03em}.search{margin-left:auto;background:#202126;border:1px solid var(--line);color:white;border-radius:999px;padding:11px 16px;width:min(320px,42vw)}.kicker{color:var(--muted);font-size:13px;text-transform:uppercase;letter-spacing:.11em;font-weight:800}.row-title{display:flex;align-items:end;justify-content:space-between;margin:32px 0 14px}.row-title h2{font-size:20px;margin:0}.row-title button{border:0;background:none;color:var(--accent);font-weight:700}
.hero-card{border-radius:22px;background:linear-gradient(120deg,#283044,#1a5d6b);padding:28px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.hero-card h2{font-size:30px;margin:7px 0 8px}.hero-card p{color:#c7d7dd;margin:0}.play-round{width:58px;height:58px;border:0;border-radius:50%;background:#fff;color:#111;font-size:22px;font-weight:900}
.card-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.music-card{min-width:0}.music-card .cover{width:100%;box-shadow:none;border-radius:12px}.music-card h3{font-size:15px;margin:10px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.music-card p{font-size:13px;color:var(--muted);margin:0}
.dance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.dance-card{border:1px solid var(--line);background:#17181c;border-radius:16px;padding:22px;min-height:145px;display:flex;flex-direction:column;color:white}.dance-card:hover{border-color:#60656e}.dance-card h3{font-size:21px;margin:0 0 7px}.dance-card p{color:var(--muted);margin:0}.dance-card .arrow{margin-top:auto;color:var(--accent);font-weight:800}
.filterbar{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px}.chip{border:1px solid var(--line);background:#18191d;color:#c8cbd1;padding:9px 13px;border-radius:999px}.chip.active{background:#fff;color:#111;border-color:#fff}.track-list{border-top:1px solid var(--line)}.track{display:grid;grid-template-columns:46px 1fr auto auto auto;gap:14px;align-items:center;padding:12px 8px;border-bottom:1px solid var(--line)}.track:hover{background:#16171a}.thumb{width:46px;height:46px;border-radius:7px;background:linear-gradient(135deg,#4958a8,#d97575)}.track-title{font-weight:700}.track-meta{font-size:13px;color:var(--muted);margin-top:3px}.ghostbtn{border:0;background:transparent;color:#c6c9cf;padding:8px}.track .play-sm{width:34px;height:34px;border-radius:50%;border:0;background:#fff;color:#111}
.mini-player{position:fixed;left:230px;right:0;bottom:0;height:78px;background:rgba(28,29,33,.96);backdrop-filter:blur(16px);border-top:1px solid #373940;display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(170px,1fr);align-items:center;padding:10px 24px;z-index:20}.mini-track{display:flex;gap:11px;align-items:center;min-width:0}.mini-track .thumb{width:50px;height:50px}.mini-controls{display:flex;align-items:center;gap:15px}.mini-controls button{border:0;background:transparent;color:white;font-size:18px}.mini-controls .mainplay{background:white;color:#111;width:40px;height:40px;border-radius:50%}.mini-tempo{justify-self:end;display:flex;align-items:center;gap:10px}.bpm-pill{background:#292b31;padding:9px 12px;border-radius:999px;font-weight:800}.mobile-nav{display:none}
.player-wrap{max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:24px;padding:8px 0 24px}.player-art{width:min(100%,430px);aspect-ratio:1;margin:0 auto;border-radius:18px;box-shadow:var(--shadow);font-size:22px;padding:24px}.player-info{width:100%}.player-info h1{font-size:30px;line-height:1.08;margin:6px 0}.player-info .sub{color:var(--muted);margin-bottom:20px}.scrub{width:100%;accent-color:white}.time-row{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.big-controls{display:flex;align-items:center;justify-content:center;gap:30px;margin:16px 0}.big-controls button{border:0;background:transparent;color:white;font-size:24px}.big-controls .bigplay{width:62px;height:62px;border-radius:50%;background:white;color:#111}.utility-row{display:flex;gap:10px;justify-content:center;margin-bottom:18px}.utility-row button{border:1px solid var(--line);background:#191a1e;color:#d7d9de;border-radius:999px;padding:9px 13px}.utility-row button.active{border-color:var(--accent);color:var(--accent);background:#17232a}.tempo-box{background:#17181c;border:1px solid var(--line);border-radius:18px;padding:22px;margin-top:16px}.tempo-head{display:flex;align-items:center;justify-content:space-between}.tempo-main{display:flex;align-items:center;justify-content:center;gap:22px;margin:14px 0}.tempo-main button{width:38px;height:38px;border-radius:50%;border:1px solid #454850;background:transparent;color:white;font-size:22px}.tempo-number{font-size:42px;font-weight:850;letter-spacing:-.04em}.tempo-box input{width:100%;accent-color:var(--accent)}.tempo-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.reset{border:0;background:none;color:var(--accent);font-weight:700}
.pricing{background:#f4f1ea;color:#17181a;min-height:100vh;padding-bottom:80px}.pricing-main{max-width:1100px;margin:auto;padding:76px 24px}.pricing-main h1{text-align:center;font-size:52px;letter-spacing:-.04em}.plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:36px 0}.plan{background:white;border:2px solid transparent;border-radius:18px;padding:26px;min-height:250px}.plan.selected{border-color:#17181a}.plan h3{font-size:22px}.price{font-size:40px;font-weight:850;margin:18px 0}.plan button{width:100%}.signup-form{max-width:640px;margin:34px auto;background:white;border-radius:18px;padding:30px}.field{display:grid;gap:7px;margin:14px 0}.field input{border:1px solid #c9c7c1;border-radius:10px;padding:13px}.demo-banner{background:#1d2025;border:1px solid #34373e;border-radius:18px;padding:18px 22px;margin-bottom:24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.demo-banner p{margin:4px 0 0;color:var(--muted)}
.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.playlist-card{background:#17181c;border:1px solid var(--line);border-radius:16px;padding:18px}.playlist-card h3{margin:12px 0 4px}.playlist-card p{color:var(--muted);font-size:13px}.collage{height:150px;border-radius:12px;background:linear-gradient(135deg,#324a6d,#7f406a 55%,#d39c63);position:relative}.pluscard{display:grid;place-items:center;border-style:dashed;min-height:230px}.pluscard button{width:58px;height:58px;border-radius:50%;border:1px solid #5a5d65;background:#23242a;color:white;font-size:28px}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.62);z-index:100;display:grid;place-items:center;padding:20px}.modal{background:#202126;border:1px solid #3a3d44;border-radius:18px;width:min(560px,100%);max-height:80vh;overflow:auto;padding:22px}.modal h2{margin-top:0}.modal-row{display:flex;gap:10px}.modal input{flex:1;background:#141519;border:1px solid #41444c;color:white;border-radius:10px;padding:11px}.modal-list{margin-top:16px}.modal-item{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
@media(max-width:980px){.album-row{grid-template-columns:repeat(3,1fr)}.card-row{grid-template-columns:repeat(3,1fr)}.dance-grid{grid-template-columns:repeat(2,1fr)}.player-wrap{grid-template-columns:1fr;max-width:560px;gap:26px}.player-art{max-width:440px;margin:auto}.art-stack{height:400px}}
@media(max-width:760px){.topbar-inner{height:64px;padding:0 16px}.topnav .linkbtn:nth-child(1),.topnav .linkbtn:nth-child(2){display:none}.hero{grid-template-columns:1fr;padding:58px 18px 44px;gap:30px}.hero h1{font-size:54px}.hero p{font-size:18px}.art-stack{height:330px}.section{padding:52px 18px}.section h2{font-size:34px}.album-row{grid-template-columns:repeat(2,1fr)}.feature-grid{grid-template-columns:1fr}.dark-cta{grid-template-columns:1fr;padding:28px}.app-shell{display:block;padding-bottom:150px}.sidebar{display:none}.content{padding:20px 16px 30px}.app-header{margin-bottom:24px}.app-header h1{font-size:28px}.search{width:46%;padding:10px 12px}.card-row{grid-template-columns:repeat(2,1fr)}.dance-grid{grid-template-columns:1fr}.track{grid-template-columns:42px 1fr auto}.track .meta-extra,.track .ghostbtn{display:none}.mini-player{left:0;bottom:60px;height:70px;padding:8px 14px;grid-template-columns:1fr auto}.mini-controls{gap:8px}.mini-controls button:first-child,.mini-controls button:last-child,.mini-tempo{display:none}.mobile-nav{display:grid;position:fixed;left:0;right:0;bottom:0;height:61px;background:#111216;border-top:1px solid var(--line);z-index:21;grid-template-columns:repeat(4,1fr)}.mobile-nav button{border:0;background:transparent;color:#8f939b;font-size:11px;padding:7px 2px}.mobile-nav button.active{color:white}.mobile-nav span{display:block;font-size:17px;margin-bottom:2px}.player-wrap{padding-top:0}.player-info h1{font-size:27px}.utility-row{flex-wrap:wrap}.plan-grid{grid-template-columns:1fr}.pricing-main h1{font-size:40px}.library-grid{grid-template-columns:1fr}.demo-banner{align-items:flex-start;flex-direction:column}.hero-card{grid-template-columns:1fr auto}}


/* Highland theme pass — restrained dark Scottish palette */
:root{
  --bg:#0b0f10;
  --panel:#121819;
  --panel2:#182021;
  --text:#eee9df;
  --muted:#9da59f;
  --line:#2b3534;
  --accent:#c1a05d;
  --accent2:#6f8875;
  --white:#f4efe5;
  --black:#090c0d;
  --shadow:0 20px 64px rgba(0,0,0,.38)
}
body{background:var(--bg);color:var(--text)}
.public,.pricing{background:#0b0f10;color:#eee9df}
.public .topbar,.pricing .topbar{
  background:rgba(11,15,16,.93);
  border-bottom:1px solid #2a3433;
  color:#eee9df
}
.public .topbar{backdrop-filter:blur(16px)}
.public .brand,.pricing .brand{color:#f1ece2}
.public .brand-mark,.pricing .brand-mark,.sidebar .brand-mark{color:#c1a05d}
.public .linkbtn,.pricing .linkbtn{color:#d2cec5}
.public .linkbtn:hover,.pricing .linkbtn:hover{color:#fff}
.pill{
  background:#c1a05d;
  color:#111513;
  border:1px solid #c1a05d;
  border-radius:9px;
  font-weight:750
}
.pill:hover{background:#cfb274;border-color:#cfb274}
.pill.secondary{
  background:transparent;
  color:#e8e2d7;
  border-color:#69736f
}
.pill.secondary:hover{border-color:#c1a05d;color:#f5efe5}
.public .hero{padding-top:96px;padding-bottom:84px}
.public .hero h1,
.public .section h2,
.pricing-main h1,
.dark-cta h2{
  font-family:Georgia,Cambria,"Times New Roman",serif;
  font-weight:600;
  color:#f3eee5;
  letter-spacing:-.035em
}
.public .hero h1{font-size:clamp(48px,6.8vw,84px);line-height:.98}
.public .hero p{color:#b8beb9;max-width:670px}
.eyebrow,.kicker{color:#c1a05d;letter-spacing:.13em}
.public .section{
  border-top:1px solid #202827;
  padding-top:72px;
  padding-bottom:72px
}
.public .section-lede{color:#aab1ac}
.public .feature{
  background:#121819;
  border:1px solid #293331;
  border-radius:12px
}
.public .feature strong{color:#f0ebe2}
.public .feature p{color:#a9b0aa}
.public .num{
  border-color:#7d725b;
  color:#c1a05d;
  border-radius:4px
}
.dark-cta{
  background:linear-gradient(135deg,#111717,#121c19);
  border:1px solid #33413b;
  border-radius:14px
}
.dark-cta p{color:#aeb6b0!important;line-height:1.65}
.tempo-preview{
  background:#0b1010;
  border:1px solid #313b38;
  border-radius:10px
}
.fake-slider{background:#35403d}
.fake-slider:after{background:#c1a05d}
.tempo-scale{
  display:flex;
  justify-content:space-between;
  color:#939c96;
  font-size:13px
}
.footer{
  border-top:1px solid #252d2c;
  color:#818a84
}

/* Album art: muted tartan-like linework rather than bright gradients */
.cover{
  border-radius:10px;
  border:1px solid rgba(236,228,214,.13);
  color:#f2ede4;
  text-shadow:0 1px 8px rgba(0,0,0,.55);
  font-family:Georgia,Cambria,"Times New Roman",serif;
  letter-spacing:.01em
}
.cover.a1{
  background-color:#173128;
  background-image:
    repeating-linear-gradient(0deg,transparent 0 36px,rgba(191,159,91,.24) 36px 39px,transparent 39px 52px,rgba(92,111,96,.22) 52px 55px),
    repeating-linear-gradient(90deg,transparent 0 48px,rgba(225,220,207,.11) 48px 50px,transparent 50px 68px,rgba(122,46,48,.22) 68px 72px)
}
.cover.a2{
  background-color:#18283a;
  background-image:
    repeating-linear-gradient(0deg,transparent 0 34px,rgba(193,160,93,.22) 34px 37px,transparent 37px 56px,rgba(51,78,67,.26) 56px 60px),
    repeating-linear-gradient(90deg,transparent 0 44px,rgba(238,232,219,.10) 44px 46px,transparent 46px 64px,rgba(102,32,40,.27) 64px 68px)
}
.cover.a3{
  background-color:#4a2428;
  background-image:
    repeating-linear-gradient(0deg,transparent 0 38px,rgba(194,161,94,.20) 38px 41px,transparent 41px 58px,rgba(20,42,37,.36) 58px 62px),
    repeating-linear-gradient(90deg,transparent 0 46px,rgba(232,226,214,.10) 46px 48px,transparent 48px 70px,rgba(21,38,58,.32) 70px 74px)
}
.cover.a4{
  background-color:#24342b;
  background-image:
    repeating-linear-gradient(0deg,transparent 0 42px,rgba(175,143,82,.18) 42px 45px,transparent 45px 61px,rgba(64,42,49,.26) 61px 65px),
    repeating-linear-gradient(90deg,transparent 0 50px,rgba(230,223,208,.09) 50px 52px,transparent 52px 74px,rgba(31,55,79,.25) 74px 78px)
}
.cover.a5{
  background-color:#2a2f3c;
  background-image:
    repeating-linear-gradient(0deg,transparent 0 35px,rgba(193,160,93,.20) 35px 38px,transparent 38px 57px,rgba(69,91,75,.24) 57px 61px),
    repeating-linear-gradient(90deg,transparent 0 47px,rgba(234,228,216,.10) 47px 49px,transparent 49px 66px,rgba(121,48,46,.23) 66px 70px)
}
.cover.a6{
  background-color:#3a3024;
  background-image:
    repeating-linear-gradient(0deg,transparent 0 40px,rgba(193,160,93,.22) 40px 43px,transparent 43px 60px,rgba(48,72,62,.26) 60px 64px),
    repeating-linear-gradient(90deg,transparent 0 52px,rgba(232,226,214,.09) 52px 54px,transparent 54px 74px,rgba(83,39,43,.26) 74px 78px)
}
.art-stack .cover:nth-child(1),
.art-stack .cover:nth-child(2),
.art-stack .cover:nth-child(3){background-image:inherit}
.art-stack .cover.a1{background-color:#173128}
.art-stack .cover.a2{background-color:#18283a}
.art-stack .cover.a3{background-color:#4a2428}

/* App shell */
.sidebar{background:#0c1111;border-right-color:#27302f}
.navbtn:hover,.navbtn.active{background:#18201f;color:#f4efe6}
.hero-card{
  background:linear-gradient(125deg,#182d27,#172433);
  border:1px solid #31403b
}
.hero-card p{color:#b3bdb7}
.dance-card,.playlist-card,.tempo-box{
  background:#111716;
  border-color:#2a3431
}
.dance-card:hover{border-color:#756b54}
.chip.active,.play-round,.track .play-sm,.mini-controls .mainplay,.big-controls .bigplay{
  background:#c1a05d;
  color:#111513;
  border-color:#c1a05d
}
.row-title button,.reset,.dance-card .arrow{color:#c1a05d}
.search{background:#131a19;border-color:#2c3633;color:#f0ece3}
.search::placeholder{color:#7e8781}
.track:hover{background:#101514}
.thumb{background:linear-gradient(135deg,#274a3c,#6d3337)}
.player-art{background:linear-gradient(145deg,#213a31,#202d43)}
.mini-player{background:rgba(13,18,18,.97);border-top-color:#2a3331}
.bpm-pill{background:#1c2522;color:#e6ddca}
.utility-row button{background:#101615;border-color:#303a37}
.utility-row button.active{border-color:#c1a05d;color:#c1a05d;background:#1b1b16}
.tempo-box input,.scrub{accent-color:#c1a05d}
.demo-banner{background:#111817;border-color:#2e3935}
.collage{background:linear-gradient(135deg,#233b32,#233147 54%,#593439)}
.mobile-nav{background:#0c1111;border-top-color:#27302f}

/* Subscription page */
.pricing-main h1{margin-bottom:10px}
.plan,.signup-form{
  background:#121819;
  color:#eee9df;
  border-color:#27312f;
  border-radius:12px
}
.plan.selected{border-color:#c1a05d}
.plan p,.signup-form p{color:#aab1ac!important}
.field input{
  background:#0c1111;
  color:#eee9df;
  border-color:#35403c;
  border-radius:7px
}
.field input::placeholder{color:#717a74}

@media(max-width:760px){
  .public .hero{padding-top:58px}
  .public .hero h1{font-size:50px}
}

/* Highland dancer brand mark */
.dancer-mark{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  color:#c1a05d;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.28));
}
.dancer-mark svg{
  display:block;
  width:30px;
  height:30px;
  overflow:visible;
}


/* Control polish — compact, Apple Music-inspired */
button{
  -webkit-tap-highlight-color:transparent;
}
.icon-btn,
.play-sm,
.play-round,
.mini-controls .mainplay,
.big-controls .bigplay,
.tempo-main button{
  display:inline-grid;
  place-items:center;
  border:0;
  line-height:1;
  padding:0;
  transition:background .15s ease,color .15s ease,transform .08s ease,box-shadow .15s ease;
}
.icon-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  background:transparent;
  color:#c8cfca;
  font-size:18px;
}
.icon-btn:hover{
  background:rgba(255,255,255,.07);
  color:#fff;
}
.icon-btn:active,
.play-sm:active,
.play-round:active,
.mini-controls .mainplay:active,
.big-controls .bigplay:active,
.tempo-main button:active{
  transform:scale(.94);
}
button:focus-visible{
  outline:2px solid rgba(193,160,93,.9);
  outline-offset:3px;
}

.backbtn{
  width:42px;
  height:42px;
  margin-left:-8px;
  font-size:32px;
  font-weight:300;
  color:#e5e8e5;
}
.backbtn:hover{background:rgba(255,255,255,.06)}

.transport{
  width:44px;
  height:44px;
  font-size:20px;
  color:#e0e4e1;
}
.big-controls{
  gap:20px;
  margin:18px 0 14px;
}
.big-controls .bigplay{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#f3efe7;
  color:#111513;
  font-size:24px;
  box-shadow:0 4px 18px rgba(0,0,0,.24);
}
.mini-controls{
  gap:8px;
}
.mini-controls .transport{
  width:36px;
  height:36px;
  font-size:16px;
}
.mini-controls .mainplay{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#f3efe7;
  color:#111513;
  font-size:15px;
}
.play-round{
  width:56px;
  height:56px;
  border-radius:50%;
  background:#f3efe7;
  color:#111513;
  font-size:20px;
  box-shadow:0 4px 16px rgba(0,0,0,.22);
}
.play-sm{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#f3efe7;
  color:#111513;
  font-size:13px;
  padding-left:2px;
  box-shadow:none;
}
.play-sm:hover,
.play-round:hover,
.mini-controls .mainplay:hover,
.big-controls .bigplay:hover{
  background:#fff;
}

.favbtn{
  width:36px;
  height:36px;
  font-size:20px;
  color:#aeb6b1;
}
.favbtn.active{
  color:#c1a05d;
  background:rgba(193,160,93,.09);
}

.utility-row{
  gap:10px;
  margin:10px 0 18px;
}
.utility-row .utility{
  width:42px;
  height:42px;
  padding:0;
  border-radius:50%;
  border:1px solid transparent;
  background:rgba(255,255,255,.045);
  color:#cbd1cd;
  font-size:19px;
}
.utility-row .utility:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}
.utility-row .utility.active{
  border-color:rgba(193,160,93,.24);
  background:rgba(193,160,93,.10);
  color:#c1a05d;
}

.tempo-main{
  gap:18px;
}
.tempo-main button{
  width:38px;
  height:38px;
  border-radius:50%;
  border:0;
  background:rgba(255,255,255,.055);
  color:#e4e7e4;
  font-size:22px;
}
.tempo-main button:hover{
  background:rgba(255,255,255,.10);
}
.reset{
  padding:6px 8px;
  border-radius:7px;
}
.reset:hover{
  background:rgba(193,160,93,.08);
}
input[type="range"]{
  cursor:pointer;
}

@media(max-width:760px){
  .backbtn{margin-left:-6px}
  .big-controls .bigplay{width:60px;height:60px}
  .utility-row{gap:12px}
}


/* Auth screen */
.auth-page{min-height:100vh}
.auth-main{
  min-height:calc(100vh - 76px);
  display:grid;
  place-items:center;
  padding:54px 20px 72px;
}
.auth-card{
  width:min(440px,100%);
  background:#121819;
  border:1px solid #2b3532;
  border-radius:18px;
  padding:38px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
}
.auth-logo{
  margin-bottom:20px;
}
.auth-logo .brand-logo{
  width:58px;
  height:58px;
  border-radius:10px;
}
.auth-card h1{
  margin:8px 0 8px;
  font-family:Georgia,Cambria,"Times New Roman",serif;
  font-size:38px;
  font-weight:600;
  color:#f3eee5;
  letter-spacing:-.035em;
}
.auth-lede{
  margin:0 0 28px;
  color:#aab1ac;
}
.auth-card .field{
  margin:18px 0;
}
.auth-card .field label{
  color:#dcd8cf;
  font-size:14px;
  font-weight:650;
}
.auth-card .field input{
  width:100%;
  background:#0b1010;
  border:1px solid #35403c;
  color:#f1ede5;
  border-radius:10px;
  padding:13px 14px;
  outline:none;
}
.auth-card .field input:focus{
  border-color:#8f7950;
  box-shadow:0 0 0 3px rgba(193,160,93,.10);
}
.field-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.text-action{
  border:0;
  background:transparent;
  color:#c1a05d;
  padding:0;
  font-size:14px;
}
.text-action:hover{color:#d5b977}
.auth-submit{
  width:100%;
  margin-top:8px;
  min-height:46px;
}
.auth-divider{
  display:flex;
  align-items:center;
  gap:14px;
  margin:26px 0 18px;
  color:#6f7872;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.auth-divider:before,.auth-divider:after{
  content:"";
  height:1px;
  background:#29312f;
  flex:1;
}
.auth-footer{
  margin:0;
  text-align:center;
  color:#aab1ac;
  font-size:14px;
}
.prototype-note{
  margin:24px 0 0;
  color:#6f7872;
  text-align:center;
  font-size:12px;
}

/* Precise play/pause glyphs */
.play-icon{
  display:block;
  width:0;
  height:0;
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:11px solid currentColor;
  transform:translateX(1.5px);
}
.pause-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:16px;
  height:16px;
}
.pause-icon i{
  display:block;
  width:4px;
  height:16px;
  border-radius:1px;
  background:currentColor;
}
.play-sm .play-icon{
  border-top-width:5px;
  border-bottom-width:5px;
  border-left-width:8px;
  transform:translateX(1px);
}
.mini-controls .mainplay .play-icon{
  border-top-width:6px;
  border-bottom-width:6px;
  border-left-width:9px;
  transform:translateX(1.25px);
}
.mini-controls .mainplay .pause-icon{
  gap:3px;
  width:14px;
  height:14px;
}
.mini-controls .mainplay .pause-icon i{
  width:3px;
  height:14px;
}
.big-controls .bigplay .play-icon,
.play-round .play-icon{
  border-top-width:8px;
  border-bottom-width:8px;
  border-left-width:13px;
  transform:translateX(2px);
}
.big-controls .bigplay .pause-icon{
  gap:5px;
  width:20px;
  height:20px;
}
.big-controls .bigplay .pause-icon i{
  width:5px;
  height:20px;
  border-radius:1.5px;
}

@media(max-width:760px){
  .auth-main{min-height:calc(100vh - 64px);padding:32px 16px 48px}
  .auth-card{padding:28px 22px}
}

/* Audit: quiet Scottish character, clear navigation and practice controls. */
body{font-size:16px;line-height:1.5}
button,input{min-height:44px}
input:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.public .hero{padding-top:64px;padding-bottom:56px;gap:40px}
.public .hero h1{font-size:clamp(44px,5.7vw,72px);line-height:1.06;max-width:630px}
.public .hero p{font-size:19px;line-height:1.65;max-width:570px}
.public .section{padding-top:48px;padding-bottom:48px}
.section h2{font-size:clamp(28px,3.5vw,40px)}
.art-stack{height:380px}
.art-stack .cover.a1{background-color:#173128;background-image:repeating-linear-gradient(0deg,transparent 0 36px,#bfa05d33 36px 39px,transparent 39px 52px,#5c6f6033 52px 55px),repeating-linear-gradient(90deg,transparent 0 48px,#e1dccf1c 48px 50px,transparent 50px 68px,#7a2e3033 68px 72px)}
.art-stack .cover.a2{background-color:#18283a;background-image:repeating-linear-gradient(0deg,transparent 0 34px,#c1a05d33 34px 37px,transparent 37px 56px,#334e6744 56px 60px),repeating-linear-gradient(90deg,transparent 0 44px,#eee8db1a 44px 46px,transparent 46px 64px,#66202844 64px 68px)}
.art-stack .cover.a3{background-color:#4a2428;background-image:repeating-linear-gradient(0deg,transparent 0 38px,#c2a15e33 38px 41px,transparent 41px 58px,#142a2555 58px 62px),repeating-linear-gradient(90deg,transparent 0 46px,#e8e2d61a 46px 48px,transparent 48px 70px,#15263a55 70px 74px)}
.music-card{text-align:left;color:var(--text);padding:0}
.music-card h3{font-size:16px;white-space:normal;line-height:1.4}
.music-card p,.track-meta,.filter-hint,.player-note,.repeat-status{font-size:14px}
.music-card:hover .cover{border-color:var(--accent)}
.dance-card{text-align:left;min-height:150px}
.dance-card p{font-size:14px}
.dance-card .arrow{font-size:14px;margin-top:20px}
.demo-banner{padding:16px 20px;border-radius:12px}
.demo-banner p{font-size:14px;max-width:620px;line-height:1.5}
.demo-banner .pill{flex-shrink:0}
.demo-context{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:20px;color:var(--muted);font-size:14px}.demo-context>span{color:var(--accent);font-size:18px;font-weight:750;letter-spacing:.01em}
.empty-state{padding:32px 20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
.filter-hint,.player-note{color:var(--muted);line-height:1.6}
.track{grid-template-columns:46px minmax(0,1fr) auto auto auto}
.track-title{line-height:1.4}
.track .play-sm,.favbtn{width:44px;height:44px}
.player-wrap{max-width:880px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}
.player-art{margin:0;max-width:390px;border-radius:12px}
.player-info h1{font-size:28px;line-height:1.2}
.player-info .sub{font-size:14px;margin-bottom:16px}
.player-info .tempo-box{margin-top:16px;padding:18px}
.utility-row{align-items:center;flex-wrap:wrap;justify-content:center;margin-bottom:12px}
.repeat-status{color:var(--muted)}
.tempo-main button,.utility-row .utility{width:44px;height:44px}
.tempo-foot,.time-row{font-size:13px}
.scrub,#tempo-range{min-height:24px}
.queue-panel{max-width:880px;margin:24px auto 0;border-top:1px solid var(--line)}
.queue-item{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;text-align:left;padding:12px 14px;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--text)}
.queue-item span:last-child{color:var(--muted);font-size:14px}
.queue-item.current{background:#1b2722;border-left:3px solid var(--accent)}
.selected-album .cover{outline:2px solid var(--accent);outline-offset:4px}
.plan{text-align:left;min-height:280px}
.plan .price{font-size:clamp(24px,2.5vw,34px);line-height:1.25}
.plan.selected{box-shadow:0 0 0 1px var(--accent)}
.signup-form{border:1px solid var(--line)}
.signup-form .prototype-note{margin-top:0;text-align:left;font-size:14px}
.payment-placeholder{font-size:14px;color:var(--muted);padding:16px;border:1px dashed var(--line);border-radius:8px;margin:22px 0}
.prototype-note{color:#a3ada5;font-size:14px}
.playlist-track{text-align:left;font-size:16px}
.modal-row input{min-width:0}
.modal-actions{flex-wrap:wrap}
.playlist-card p{font-size:14px}
.mobile-nav button{font-size:12px}
.library-grid,#favourites{scroll-margin-top:24px}
@media(max-width:1050px){.topbar-inner{gap:16px}.topnav{gap:16px}.brand{letter-spacing:0}.content{padding:24px}.player-wrap{gap:24px}.player-info h1{font-size:24px}}
@media(max-width:760px){
  .topbar-inner{height:auto;min-height:72px;padding:12px 16px;flex-wrap:wrap;gap:8px}
  .topbar-inner>.brand{width:100%;font-size:16px;padding:0}
  .brand-logo{width:36px;height:36px}
  .topnav{width:100%;margin:0;justify-content:space-between;gap:10px;font-size:14px}
  .topnav .linkbtn:nth-child(1),.topnav .linkbtn:nth-child(2){display:block}
  .topnav .pill{padding:9px 12px}
  .public .hero{padding:36px 18px;gap:24px}
  .public .hero h1{font-size:clamp(40px,10vw,54px)}
  .public .hero p{font-size:17px}
  .art-stack{height:300px;max-width:450px;width:100%;margin:auto}
  .public .section{padding:36px 18px}
  .hero-actions{margin-top:20px}
  .content{padding:20px 16px 32px}
  .app-header{flex-wrap:wrap;gap:12px;align-items:flex-start;margin-bottom:22px}
  .app-header .search{width:100%;margin:0}
  .demo-context{font-size:13px}
  .demo-banner{gap:12px}
  .demo-banner .pill{align-self:flex-start}
  .track{grid-template-columns:38px minmax(0,1fr) 44px 44px;gap:8px;padding:12px 0}
  .track .thumb{width:38px;height:38px}
  .track .meta-extra{display:none}
  .track-meta{line-height:1.45}
  .player-wrap{display:flex;max-width:460px;gap:20px}
  .player-art{width:min(64vw,250px);margin:0 auto;font-size:18px;padding:18px}
  .player-info h1{font-size:26px}
  .player-info .sub{margin-bottom:12px}
  .big-controls{margin:12px 0}
  .queue-panel{margin-top:20px}
  .queue-item{padding:12px 8px;gap:12px}
  .queue-item span:last-child{font-size:13px;white-space:nowrap}
  .mini-player{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .mobile-nav{height:calc(61px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
  .mini-player{bottom:calc(60px + env(safe-area-inset-bottom))}
  .pricing-main{padding-top:36px}
  .pricing-main h1{font-size:36px;line-height:1.2}
  .plan{min-height:220px;padding:22px}
  .signup-form{padding:22px}
  .modal-item{grid-template-columns:minmax(0,1fr) auto}
  .modal{padding:20px 16px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Consistent navigation icons and separate signup flow. */
.nav-icon{display:block;width:21px;height:21px;flex:0 0 21px}
.navbtn{display:flex;align-items:center;gap:13px}
.navbtn.active{color:var(--accent);background:#1a2420}
.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
.mobile-nav button>span{display:block;margin:0;font-size:12px}
.mobile-nav .nav-icon{width:22px;height:22px;flex:0 0 22px}
.mobile-nav button.active{color:var(--accent)}
.pricing-intro{text-align:center;color:var(--muted);max-width:600px;margin:16px auto}
.plan{display:flex;flex-direction:column;align-items:flex-start}
.plan>.pill{margin-top:auto;width:100%}
.plan>p{margin-bottom:26px}
.signup-main{max-width:620px;margin:auto;padding:42px 24px 70px}
.signup-main .signup-form{max-width:none;margin:22px 0 0}
.signup-main h1{font-family:Georgia,Cambria,serif;font-size:36px;line-height:1.2;margin:12px 0}
.signup-lede{color:var(--muted)}
.signup-main .prototype-note{margin-top:20px}
.signup-main .auth-footer{margin-top:20px}
@media(max-width:760px){.signup-main{padding:28px 18px 48px}.signup-main h1{font-size:30px}}

/* Playlist actions: restrained line icons, consistent touch targets. */
.playlist-row-actions{display:flex;align-items:center;gap:4px}
.playlist-control{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:44px;padding:0;border:0;border-radius:8px;background:transparent;color:#aeb8b1}
.playlist-control svg{display:block;width:19px;height:19px}
.playlist-control:hover{background:rgba(255,255,255,.07);color:#f4efe5}
.playlist-control.remove-control{margin-left:4px;color:#969e98}
.playlist-control.remove-control:hover{background:rgba(194,114,108,.12);color:#dfa29b}
.modal-item>div:first-child{min-width:0}
@media(max-width:420px){.playlist-row-actions{gap:0}.playlist-control{width:34px;min-width:34px}.playlist-control.remove-control{margin-left:0}}

.piper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.piper-card{display:flex;align-items:flex-start;flex-direction:column;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px;color:var(--text);text-align:left}
.piper-card .nav-icon{width:28px;height:28px;color:var(--accent)}
.piper-card strong{font-size:17px}
.piper-card>span{font-size:14px;color:var(--muted)}
.piper-card:hover,.piper-card.selected{border-color:var(--accent)}
@media(max-width:760px){.piper-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.piper-card{padding:18px}}
@media(max-width:420px){.piper-grid{grid-template-columns:1fr}}

/* Add to playlist directly from every recording row. */
.track{grid-template-columns:46px minmax(0,1fr) auto 44px 44px 44px}
.row-add-playlist{width:44px;height:44px;color:#aeb8b1}
.row-add-playlist svg{display:block;width:20px;height:20px}
@media(max-width:760px){.track{grid-template-columns:38px minmax(0,1fr) 44px 44px 44px;gap:4px}}
@media(max-width:420px){.track{grid-template-columns:minmax(0,1fr) 40px 40px 40px}.track>.thumb{display:none}.track .favbtn,.track .row-add-playlist,.track .play-sm{width:40px}}

/* Prevent transport buttons and glyphs from compressing. */
.mini-controls,.big-controls{flex-shrink:0}
.mini-controls>button,.big-controls>button,.play-round,.play-sm{flex-shrink:0;aspect-ratio:1;padding:0;display:inline-flex;align-items:center;justify-content:center}
.playback-icon,.skip-icon{display:block;flex-shrink:0;width:24px;height:24px}
.bigplay .playback-icon,.play-round .playback-icon{width:30px;height:30px}
.mainplay .playback-icon{width:22px;height:22px}
.play-sm .playback-icon{width:20px;height:20px}
.mini-controls .transport .skip-icon{width:21px;height:21px}
.big-controls .transport .skip-icon{width:27px;height:27px}
.mini-player{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}
.mini-track{overflow:hidden}
.mini-tempo{min-width:0;white-space:nowrap}
@media(max-width:760px){.mini-player{grid-template-columns:minmax(0,1fr) auto;gap:12px}.mini-controls button:first-child,.mini-controls button:last-child{display:inline-flex}.mini-controls{gap:2px}.mini-controls .transport{width:32px;min-width:32px}.mini-controls .mainplay{width:40px;min-width:40px}}

/* Player: artwork above controls, playlist alongside. */
.player-layout{display:grid;grid-template-columns:minmax(300px,440px) minmax(0,1fr);align-items:start;gap:80px;max-width:1200px;margin:0 auto}
.player-layout .player-wrap{display:flex;flex-direction:column;width:100%;max-width:none;margin:0;gap:22px;padding:0}
.player-layout .player-art{width:100%;max-width:none;margin:0 auto}
.player-layout .player-info{width:100%}
.player-layout .queue-panel{width:100%;max-width:none;margin:0;border-top:0}
.player-layout .queue-panel .row-title{margin:0 0 16px;align-items:center}
.player-layout .queue-item{padding:15px 14px}
@media(max-width:1050px){.player-layout{gap:40px;grid-template-columns:minmax(280px,380px) minmax(0,1fr)}}
@media(max-width:900px){.player-layout{grid-template-columns:minmax(0,1fr);max-width:460px;gap:28px}.player-layout .queue-panel{border-top:1px solid var(--line);padding-top:22px}}
@media(max-width:760px){.player-layout .player-art{width:100%}}

/* Dark navy background with coordinated surfaces. */
:root{--bg:#101b2d;--panel:#17243a;--panel2:#20304a;--line:#30415a;--muted:#a5afbd;--black:#0c1626}
.public,.pricing{background:var(--bg)}
.public .topbar,.pricing .topbar{background:rgba(16,27,45,.94);border-bottom-color:var(--line)}
.sidebar,.mobile-nav{background:#0d1728;border-color:var(--line)}
.mini-player{background:rgba(13,23,40,.97);border-top-color:var(--line)}
.feature,.dance-card,.playlist-card,.plan,.signup-form,.tempo-box,.demo-banner{background:var(--panel);border-color:var(--line)}
.search,.utility-row button,.chip,.modal input{background:#142137;border-color:var(--line)}
.modal{background:var(--panel2);border-color:var(--line)}
.navbtn:hover,.navbtn.active,.track:hover,.queue-item.current,.bpm-pill{background:#20314a}
.dark-cta{background:linear-gradient(135deg,#142239,#1b2e48)}
.tempo-preview{background:#101c30}
.public .section,.footer{border-color:var(--line)}

.volume-box{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:18px 22px;margin-top:16px}
.volume-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.volume-head output{font-size:14px;font-weight:700;color:var(--text)}
.volume-box input{display:block;width:100%;accent-color:var(--accent);margin:0;min-height:28px;cursor:pointer}

/* Match remaining interface panels to the navy surface palette. */
.hero-card,.public .feature,.auth-card,.dark-cta,.tempo-preview{background:var(--panel);border-color:var(--line)}
.hero-card p,.auth-lede,.public .feature p,.tempo-scale{color:var(--muted)}
.field input,.auth-card .field input,.modal input{background:var(--panel2);border-color:var(--line)}
.utility-row button.active,.chip.active{background:var(--panel2);border-color:var(--accent);color:var(--accent)}
.pluscard button{background:var(--panel2);border-color:var(--line)}
.fake-slider{background:var(--line)}
.search::placeholder,.field input::placeholder{color:var(--muted)}

.demo-context .trial-cta{flex-shrink:0;padding:11px 18px;min-height:44px}
.auth-footer .trial-cta{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;min-height:44px}
@media(max-width:420px){.demo-context{align-items:flex-start;flex-wrap:wrap;gap:12px}}

.auth-logo{display:flex;justify-content:center;margin-bottom:16px}
.auth-logo .brand-logo{width:116px;height:116px;object-fit:contain;border-radius:0}
.auth-brand-name{text-align:center;color:var(--accent);font-size:17px;font-weight:750;letter-spacing:0;margin-bottom:24px}
.auth-card h1,.auth-lede{text-align:center}
@media(max-width:420px){.auth-brand-name{font-size:15px}.auth-logo .brand-logo{width:100px;height:100px}}

/* Roomier bottom transport with fixed square icons and targets. */
.mini-controls{gap:16px;min-width:176px;justify-content:center}
.mini-controls .transport,.mini-controls .mainplay{width:48px;min-width:48px;max-width:48px;height:48px;min-height:48px;flex:0 0 48px}
.mini-controls .transport .skip-icon,.mini-controls .mainplay .playback-icon{width:26px;min-width:26px;height:26px;min-height:26px;aspect-ratio:1;overflow:visible}
@media(max-width:760px){.mini-controls{gap:8px;min-width:136px}.mini-controls .transport,.mini-controls .mainplay{width:40px;min-width:40px;max-width:40px;height:40px;min-height:40px;flex-basis:40px}.mini-controls .transport .skip-icon,.mini-controls .mainplay .playback-icon{width:24px;min-width:24px;height:24px;min-height:24px}.mini-player{gap:10px}}


/* Temporary client theme picker */
:root{
  --theme-bg:#0b0f10;
  --theme-panel:#121819;
  --theme-panel2:#182021;
  --theme-text:#eee9df;
  --theme-muted:#9da59f;
  --theme-line:#2b3534;
  --theme-accent:#c1a05d;
  --theme-accent-hover:#cfb274;
  --theme-accent2:#6f8875;
  --theme-sidebar:#111615;
  --theme-deep:#090d0d;
  --theme-hero1:#1a2321;
  --theme-hero2:#24352e;
  --theme-public:#0b0f10;
  --theme-public-panel:#121819;
  --theme-public-text:#eee9df;
  --theme-public-muted:#aab1ac;
}
:root[data-theme="midnight"]{
  --theme-bg:#07111f;--theme-panel:#0d1a2a;--theme-panel2:#14243a;--theme-text:#edf5ff;--theme-muted:#9baec2;--theme-line:#233852;--theme-accent:#67aefc;--theme-accent-hover:#84bfff;--theme-accent2:#75c6dd;--theme-sidebar:#091524;--theme-deep:#050c16;--theme-hero1:#10243a;--theme-hero2:#183552;--theme-public:#07111f;--theme-public-panel:#0d1a2a;--theme-public-text:#edf5ff;--theme-public-muted:#9fb2c7;
}
:root[data-theme="royal"]{
  --theme-bg:#0d1020;--theme-panel:#161a31;--theme-panel2:#202646;--theme-text:#f1f2ff;--theme-muted:#a7abc3;--theme-line:#30385f;--theme-accent:#8795ff;--theme-accent-hover:#a0abff;--theme-accent2:#c39bff;--theme-sidebar:#11152a;--theme-deep:#090c19;--theme-hero1:#1a2140;--theme-hero2:#29356d;--theme-public:#0d1020;--theme-public-panel:#161a31;--theme-public-text:#f1f2ff;--theme-public-muted:#adb1c8;
}
:root[data-theme="emerald"]{
  --theme-bg:#07120f;--theme-panel:#0e1d18;--theme-panel2:#152a22;--theme-text:#ecf7f2;--theme-muted:#9fb5ab;--theme-line:#284538;--theme-accent:#55d6a0;--theme-accent-hover:#72e2b3;--theme-accent2:#9cd47a;--theme-sidebar:#091712;--theme-deep:#050c09;--theme-hero1:#123326;--theme-hero2:#1b4b38;--theme-public:#07120f;--theme-public-panel:#0e1d18;--theme-public-text:#ecf7f2;--theme-public-muted:#a6b9b0;
}
:root[data-theme="heather"]{
  --theme-bg:#130f18;--theme-panel:#1f1728;--theme-panel2:#2b2037;--theme-text:#f4eef8;--theme-muted:#b0a3b8;--theme-line:#41324e;--theme-accent:#c09cdb;--theme-accent-hover:#d0b2e5;--theme-accent2:#d18fae;--theme-sidebar:#18111f;--theme-deep:#0e0a12;--theme-hero1:#2a1d35;--theme-hero2:#47305a;--theme-public:#130f18;--theme-public-panel:#1f1728;--theme-public-text:#f4eef8;--theme-public-muted:#b5a8bc;
}
:root[data-theme="burgundy"]{
  --theme-bg:#160b0e;--theme-panel:#241217;--theme-panel2:#331920;--theme-text:#f8eef0;--theme-muted:#b7a0a5;--theme-line:#4c2d34;--theme-accent:#d88392;--theme-accent-hover:#e39aa7;--theme-accent2:#c5a36b;--theme-sidebar:#1b0d11;--theme-deep:#100709;--theme-hero1:#351821;--theme-hero2:#552530;--theme-public:#160b0e;--theme-public-panel:#241217;--theme-public-text:#f8eef0;--theme-public-muted:#bca7ab;
}
:root[data-theme="ocean"]{
  --theme-bg:#061216;--theme-panel:#0d2025;--theme-panel2:#143039;--theme-text:#ecf8fa;--theme-muted:#9db8bd;--theme-line:#27454c;--theme-accent:#59cbd8;--theme-accent-hover:#78d9e3;--theme-accent2:#7fd6b2;--theme-sidebar:#08191d;--theme-deep:#040d10;--theme-hero1:#12323a;--theme-hero2:#174c58;--theme-public:#061216;--theme-public-panel:#0d2025;--theme-public-text:#ecf8fa;--theme-public-muted:#a5bcc1;
}
:root[data-theme="forest"]{
  --theme-bg:#0b100a;--theme-panel:#151c12;--theme-panel2:#20291b;--theme-text:#f0f4e9;--theme-muted:#a6af9b;--theme-line:#35432c;--theme-accent:#a4ba72;--theme-accent-hover:#b8ca8b;--theme-accent2:#d0a46f;--theme-sidebar:#10150d;--theme-deep:#070a06;--theme-hero1:#24311d;--theme-hero2:#3d4f2d;--theme-public:#0b100a;--theme-public-panel:#151c12;--theme-public-text:#f0f4e9;--theme-public-muted:#acb5a2;
}
:root[data-theme="copper"]{
  --theme-bg:#15100d;--theme-panel:#211713;--theme-panel2:#2f211a;--theme-text:#f7f0e9;--theme-muted:#b4a59b;--theme-line:#49362b;--theme-accent:#d69262;--theme-accent-hover:#e3a878;--theme-accent2:#c7b36c;--theme-sidebar:#1a120f;--theme-deep:#0e0a08;--theme-hero1:#332118;--theme-hero2:#503121;--theme-public:#15100d;--theme-public-panel:#211713;--theme-public-text:#f7f0e9;--theme-public-muted:#b8aaa0;
}
:root[data-theme="slate"]{
  --theme-bg:#0d1115;--theme-panel:#171d23;--theme-panel2:#212a33;--theme-text:#eef2f5;--theme-muted:#a1adb6;--theme-line:#34404a;--theme-accent:#9db1c3;--theme-accent-hover:#b2c3d1;--theme-accent2:#7ca7a0;--theme-sidebar:#11171c;--theme-deep:#090c0f;--theme-hero1:#202a34;--theme-hero2:#334353;--theme-public:#0d1115;--theme-public-panel:#171d23;--theme-public-text:#eef2f5;--theme-public-muted:#a8b2bb;
}
:root[data-theme="ice"]{
  --theme-bg:#090d10;--theme-panel:#11181d;--theme-panel2:#19242b;--theme-text:#f2fbff;--theme-muted:#9eafb7;--theme-line:#2b3c45;--theme-accent:#a9e8ff;--theme-accent-hover:#c0efff;--theme-accent2:#8ebed1;--theme-sidebar:#0d1317;--theme-deep:#06090b;--theme-hero1:#182a33;--theme-hero2:#264450;--theme-public:#090d10;--theme-public-panel:#11181d;--theme-public-text:#f2fbff;--theme-public-muted:#a7b5bc;
}
:root[data-theme="ivory"]{
  --theme-bg:#0b1520;--theme-panel:#132130;--theme-panel2:#1d3043;--theme-text:#f3ead8;--theme-muted:#b1aa9d;--theme-line:#34485a;--theme-accent:#e1c89a;--theme-accent-hover:#ecd8b2;--theme-accent2:#91a9c3;--theme-sidebar:#0e1a27;--theme-deep:#07101a;--theme-hero1:#1d3046;--theme-hero2:#314b67;--theme-public:#0b1520;--theme-public-panel:#132130;--theme-public-text:#f3ead8;--theme-public-muted:#b8b0a3;
}

:root[data-theme]{
  --bg:var(--theme-bg);
  --panel:var(--theme-panel);
  --panel2:var(--theme-panel2);
  --text:var(--theme-text);
  --muted:var(--theme-muted);
  --line:var(--theme-line);
  --accent:var(--theme-accent);
  --accent2:var(--theme-accent2);
  --white:var(--theme-text);
  --black:var(--theme-deep);
}
.theme-picker{
  position:fixed;
  top:9px;
  right:9px;
  z-index:1000;
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 7px 6px 10px;
  border:1px solid color-mix(in srgb,var(--theme-line) 80%,white 20%);
  border-radius:10px;
  background:color-mix(in srgb,var(--theme-deep) 90%,transparent);
  box-shadow:0 6px 22px rgba(0,0,0,.24);
  backdrop-filter:blur(14px);
  color:var(--theme-text);
  font-size:12px;
}
.theme-picker label{
  color:var(--theme-muted);
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.theme-picker select{
  max-width:148px;
  border:1px solid var(--theme-line);
  border-radius:7px;
  background:var(--theme-panel2);
  color:var(--theme-text);
  padding:6px 26px 6px 8px;
  outline:none;
}
.theme-picker select:focus{border-color:var(--theme-accent)}

body,.app-shell{background:var(--theme-bg);color:var(--theme-text)}
.sidebar{background:var(--theme-sidebar);border-color:var(--theme-line)}
.navbtn{color:var(--theme-muted)}
.navbtn:hover,.navbtn.active{background:var(--theme-panel2);color:var(--theme-text)}
.content{color:var(--theme-text)}
.search{background:var(--theme-panel2);border-color:var(--theme-line);color:var(--theme-text)}
.dance-card,.playlist-card,.tempo-box,.volume-box,.queue-panel,.demo-banner{background:var(--theme-panel);border-color:var(--theme-line);color:var(--theme-text)}
.dance-card:hover{border-color:color-mix(in srgb,var(--theme-accent) 65%,var(--theme-line))}
.track:hover{background:var(--theme-panel)}
.chip{background:var(--theme-panel);border-color:var(--theme-line);color:var(--theme-text)}
.chip.active{background:var(--theme-text);border-color:var(--theme-text);color:var(--theme-deep)}
.hero-card{background:linear-gradient(120deg,var(--theme-hero1),var(--theme-hero2))}
.hero-card p{color:color-mix(in srgb,var(--theme-text) 76%,var(--theme-muted))}
.mini-player{background:color-mix(in srgb,var(--theme-panel2) 94%,transparent);border-color:var(--theme-line)}
.bpm-pill{background:var(--theme-panel2)}
.utility-row .utility,.tempo-main button{background:color-mix(in srgb,var(--theme-panel2) 88%,transparent);color:var(--theme-text);border-color:var(--theme-line)}
.utility-row .utility.active{background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-panel));border-color:color-mix(in srgb,var(--theme-accent) 32%,var(--theme-line));color:var(--theme-accent)}
.modal{background:var(--theme-panel2);border-color:var(--theme-line);color:var(--theme-text)}
.modal input{background:var(--theme-deep);border-color:var(--theme-line);color:var(--theme-text)}
.playlist-control,.row-add-playlist{color:var(--theme-muted)}
.playlist-control:hover,.row-add-playlist:hover{color:var(--theme-text)}
.play-sm,.play-round,.mini-controls .mainplay,.big-controls .bigplay{background:var(--theme-text)!important;color:var(--theme-deep)!important}

.public,.pricing{background:var(--theme-public);color:var(--theme-public-text)}
.public .topbar,.pricing .topbar{background:color-mix(in srgb,var(--theme-public) 93%,transparent);border-color:var(--theme-line);color:var(--theme-public-text)}
.public .brand,.pricing .brand,.public .hero h1,.public .section h2,.pricing-main h1,.dark-cta h2{color:var(--theme-public-text)}
.public .linkbtn,.pricing .linkbtn{color:color-mix(in srgb,var(--theme-public-text) 82%,var(--theme-muted))}
.public .linkbtn:hover,.pricing .linkbtn:hover{color:var(--theme-public-text)}
.public .hero p,.public .section-lede,.public .feature p,.pricing-intro,.signup-lede,.auth-lede,.auth-footer{color:var(--theme-public-muted)}
.public .section{border-color:color-mix(in srgb,var(--theme-line) 72%,transparent)}
.public .feature,.plan,.signup-form,.auth-card{background:var(--theme-public-panel);border-color:var(--theme-line);color:var(--theme-public-text)}
.public .feature strong{color:var(--theme-public-text)}
.dark-cta{background:linear-gradient(135deg,var(--theme-hero1),var(--theme-hero2));border-color:var(--theme-line)}
.tempo-preview,.payment-placeholder{background:var(--theme-deep);border-color:var(--theme-line)}
.footer{border-color:var(--theme-line);color:var(--theme-muted)}
.eyebrow,.kicker,.text-action,.reset,.row-title button,.dance-card .arrow,.demo-context>span{color:var(--theme-accent)!important}
.pill{background:var(--theme-accent);border-color:var(--theme-accent);color:var(--theme-deep)}
.pill:hover{background:var(--theme-accent-hover);border-color:var(--theme-accent-hover)}
.pill.secondary{background:transparent;color:var(--theme-public-text);border-color:color-mix(in srgb,var(--theme-public-text) 42%,transparent)}
.pill.secondary:hover{border-color:var(--theme-accent);color:var(--theme-public-text)}
input[type="range"]{accent-color:var(--theme-accent)}
.auth-card .field input,.signup-form .field input{background:var(--theme-deep);border-color:var(--theme-line);color:var(--theme-public-text)}
.auth-card .field input:focus,.signup-form .field input:focus{border-color:var(--theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 13%,transparent)}

@media(max-width:760px){
  .theme-picker{top:7px;right:7px;gap:5px;padding:5px 6px}
  .theme-picker label{display:none}
  .theme-picker select{max-width:128px;padding:5px 23px 5px 7px;font-size:11px}
}

/* Keep the temporary theme control clear of page controls */
.topbar-inner{padding-right:220px}
.app-shell .content{padding-top:72px}
.favbtn.active{color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 10%,transparent)}
.demo-context{border-color:var(--theme-line)}
@media(max-width:760px){
  .topbar-inner{padding-right:146px}
  .app-shell .content{padding-top:58px}
}


/* Expanded theme range: dark -> mid -> light */
:root[data-theme="royal"]{
  --theme-bg:#20284a;--theme-panel:#2c3763;--theme-panel2:#394675;--theme-text:#f7f8ff;--theme-muted:#c3c9de;--theme-line:#53608b;--theme-accent:#a9b7ff;--theme-accent-hover:#bfcaFF;--theme-accent2:#d8b5ff;--theme-sidebar:#19213f;--theme-deep:#11182f;--theme-hero1:#34477b;--theme-hero2:#5367a3;--theme-public:#252e53;--theme-public-panel:#313c68;--theme-public-text:#f8f9ff;--theme-public-muted:#c8cee2;
}
:root[data-theme="slate"]{
  --theme-bg:#36414c;--theme-panel:#44515d;--theme-panel2:#52606d;--theme-text:#f7f9fb;--theme-muted:#d0d6dc;--theme-line:#687682;--theme-accent:#c4d4e2;--theme-accent-hover:#d7e2eb;--theme-accent2:#9fc6bd;--theme-sidebar:#2f3943;--theme-deep:#202830;--theme-hero1:#4d5d6c;--theme-hero2:#657989;--theme-public:#3b4651;--theme-public-panel:#4a5662;--theme-public-text:#f7f9fb;--theme-public-muted:#d4d9df;
}
:root[data-theme="copper"]{
  --theme-bg:#5a4032;--theme-panel:#6a4d3e;--theme-panel2:#7a5b4a;--theme-text:#fff8f2;--theme-muted:#e1cec2;--theme-line:#92705d;--theme-accent:#f1b37e;--theme-accent-hover:#f6c292;--theme-accent2:#e4cf91;--theme-sidebar:#4b3429;--theme-deep:#2c1e18;--theme-hero1:#805844;--theme-hero2:#9b6c51;--theme-public:#624737;--theme-public-panel:#725444;--theme-public-text:#fff8f2;--theme-public-muted:#e6d4c8;
}
:root[data-theme="denim"]{
  --theme-bg:#43566d;--theme-panel:#52667f;--theme-panel2:#61758f;--theme-text:#fbfdff;--theme-muted:#d3dce5;--theme-line:#7a8da2;--theme-accent:#d2e6ff;--theme-accent-hover:#e2eeff;--theme-accent2:#a8cfcb;--theme-sidebar:#37485d;--theme-deep:#233142;--theme-hero1:#617b9b;--theme-hero2:#7790ae;--theme-public:#4a5f78;--theme-public-panel:#59708a;--theme-public-text:#fbfdff;--theme-public-muted:#d8e0e8;
}
:root[data-theme="sage"]{
  --theme-bg:#58675b;--theme-panel:#68786b;--theme-panel2:#78887a;--theme-text:#fbfcf7;--theme-muted:#d9dfd3;--theme-line:#8e9b8c;--theme-accent:#d7e9bb;--theme-accent-hover:#e4f0cd;--theme-accent2:#e1c8a5;--theme-sidebar:#4b584e;--theme-deep:#303a32;--theme-hero1:#71856f;--theme-hero2:#899b82;--theme-public:#607060;--theme-public-panel:#70816f;--theme-public-text:#fbfcf7;--theme-public-muted:#dce2d7;
}
:root[data-theme="rose"]{
  --theme-bg:#70585f;--theme-panel:#80666e;--theme-panel2:#91757d;--theme-text:#fff9fb;--theme-muted:#ead9dd;--theme-line:#a88b93;--theme-accent:#ffd0dc;--theme-accent-hover:#ffdfE6;--theme-accent2:#e6cfad;--theme-sidebar:#604a51;--theme-deep:#412f35;--theme-hero1:#926f7a;--theme-hero2:#aa8590;--theme-public:#786067;--theme-public-panel:#896e76;--theme-public-text:#fff9fb;--theme-public-muted:#eedde1;
}
:root[data-theme="aubergine"]{
  --theme-bg:#58485f;--theme-panel:#695773;--theme-panel2:#796684;--theme-text:#fcf8ff;--theme-muted:#dfd4e3;--theme-line:#917d99;--theme-accent:#e7c2f0;--theme-accent-hover:#efd5f5;--theme-accent2:#d9b5c5;--theme-sidebar:#4a3b51;--theme-deep:#302536;--theme-hero1:#765d82;--theme-hero2:#8d73a0;--theme-public:#604f68;--theme-public-panel:#705e79;--theme-public-text:#fcf8ff;--theme-public-muted:#e3d8e7;
}
:root[data-theme="taupe"]{
  --theme-bg:#746b62;--theme-panel:#857a70;--theme-panel2:#968b80;--theme-text:#fffdf9;--theme-muted:#e6dfd7;--theme-line:#aaa096;--theme-accent:#f0d7ad;--theme-accent-hover:#f6e1bf;--theme-accent2:#c8d2b3;--theme-sidebar:#655c54;--theme-deep:#443d37;--theme-hero1:#8e8174;--theme-hero2:#a29689;--theme-public:#7b7168;--theme-public-panel:#8c8177;--theme-public-text:#fffdf9;--theme-public-muted:#e9e2db;
}
:root[data-theme="ivory"]{
  --theme-bg:#f1ebdf;--theme-panel:#fbf7ef;--theme-panel2:#e7dfd2;--theme-text:#25303c;--theme-muted:#6f756f;--theme-line:#d3c8b8;--theme-accent:#9a713e;--theme-accent-hover:#855f32;--theme-accent2:#758aa0;--theme-sidebar:#e8dfd0;--theme-deep:#1d2732;--theme-hero1:#ded1bd;--theme-hero2:#c5b08e;--theme-public:#f5efe4;--theme-public-panel:#fffaf2;--theme-public-text:#25303c;--theme-public-muted:#6c716c;
}
:root[data-theme="cream"]{
  --theme-bg:#f5f0e5;--theme-panel:#fffaf0;--theme-panel2:#ece4d5;--theme-text:#2d332f;--theme-muted:#73786f;--theme-line:#d9cfbd;--theme-accent:#8d743e;--theme-accent-hover:#765f30;--theme-accent2:#6f8c78;--theme-sidebar:#ebe4d7;--theme-deep:#202720;--theme-hero1:#e3d7c1;--theme-hero2:#cab996;--theme-public:#f7f2e8;--theme-public-panel:#fffaf1;--theme-public-text:#2d332f;--theme-public-muted:#72776f;
}
:root[data-theme="mist"]{
  --theme-bg:#eaf1f6;--theme-panel:#f6fafc;--theme-panel2:#dce7ef;--theme-text:#253644;--theme-muted:#697985;--theme-line:#c8d5df;--theme-accent:#517d9e;--theme-accent-hover:#416d8c;--theme-accent2:#6b9e9a;--theme-sidebar:#dfe9f0;--theme-deep:#1d2c38;--theme-hero1:#d0e0eb;--theme-hero2:#b7cfdf;--theme-public:#eef4f8;--theme-public-panel:#f9fcfd;--theme-public-text:#253644;--theme-public-muted:#6d7b86;
}
:root[data-theme="linen"]{
  --theme-bg:#edf0e7;--theme-panel:#f8faf3;--theme-panel2:#dde4d5;--theme-text:#2f3a31;--theme-muted:#707b70;--theme-line:#cbd5c4;--theme-accent:#617b58;--theme-accent-hover:#52694b;--theme-accent2:#9b805c;--theme-sidebar:#e2e8dc;--theme-deep:#263029;--theme-hero1:#d2dcc9;--theme-hero2:#bac9af;--theme-public:#f0f3ea;--theme-public-panel:#fafbf6;--theme-public-text:#2f3a31;--theme-public-muted:#727d72;
}
:root[data-theme="heathermist"]{
  --theme-bg:#f0ebf2;--theme-panel:#faf7fb;--theme-panel2:#e5dce9;--theme-text:#3b3140;--theme-muted:#7a6f7e;--theme-line:#d2c5d7;--theme-accent:#8b668f;--theme-accent-hover:#76547a;--theme-accent2:#a97b8e;--theme-sidebar:#e6dfe9;--theme-deep:#302635;--theme-hero1:#d9cedd;--theme-hero2:#c2b0c8;--theme-public:#f3eef4;--theme-public-panel:#fcf9fc;--theme-public-text:#3b3140;--theme-public-muted:#7c727f;
}
:root[data-theme="quartz"]{
  --theme-bg:#f4ebed;--theme-panel:#fff8f9;--theme-panel2:#eadbdd;--theme-text:#49373d;--theme-muted:#816f74;--theme-line:#d8c5c9;--theme-accent:#a45f71;--theme-accent-hover:#8e4f60;--theme-accent2:#9a8061;--theme-sidebar:#eadfe1;--theme-deep:#382a2f;--theme-hero1:#dfcdd1;--theme-hero2:#caaeb5;--theme-public:#f7eff1;--theme-public-panel:#fffafb;--theme-public-text:#49373d;--theme-public-muted:#837277;
}
:root[data-theme="sandstone"]{
  --theme-bg:#f0e6d8;--theme-panel:#fbf4ea;--theme-panel2:#e4d5c1;--theme-text:#46392f;--theme-muted:#7d7065;--theme-line:#d2c0aa;--theme-accent:#9d6944;--theme-accent-hover:#865837;--theme-accent2:#8b8360;--theme-sidebar:#e5d9ca;--theme-deep:#352b24;--theme-hero1:#d9c7b1;--theme-hero2:#c3a887;--theme-public:#f3eade;--theme-public-panel:#fff8ef;--theme-public-text:#46392f;--theme-public-muted:#7f7267;
}
:root[data-theme="white"]{
  --theme-bg:#f5f7f9;--theme-panel:#ffffff;--theme-panel2:#e9edf1;--theme-text:#20262d;--theme-muted:#68717b;--theme-line:#d4dbe1;--theme-accent:#315f85;--theme-accent-hover:#264d6d;--theme-accent2:#5f7e6e;--theme-sidebar:#edf1f4;--theme-deep:#172029;--theme-hero1:#dbe5ec;--theme-hero2:#c1d1dc;--theme-public:#f7f9fa;--theme-public-panel:#ffffff;--theme-public-text:#20262d;--theme-public-muted:#68717b;
}

/* Light-theme compatibility and consistent variable-driven controls */
.theme-picker{
  background:color-mix(in srgb,var(--theme-panel) 94%,transparent);
  border-color:var(--theme-line);
  color:var(--theme-text);
}
.theme-picker select{background:var(--theme-panel2);color:var(--theme-text);border-color:var(--theme-line)}
.auth-card .field input,.signup-form .field input,.modal input{
  background:var(--theme-panel2);
  color:var(--theme-text);
}
.tempo-preview,.payment-placeholder{background:var(--theme-panel2)}
.icon-btn,.transport,.big-controls button,.mini-controls button,.backbtn,.volume-head output,.track-title{
  color:var(--theme-text);
}
.track,.track-list,.mini-player{border-color:var(--theme-line)}
.repeat-status,.track-meta,.filter-hint,.player-note{color:var(--theme-muted)}
.pluscard button{background:var(--theme-panel2);border-color:var(--theme-line);color:var(--theme-text)}
.fake-slider{background:var(--theme-line)}
.search::placeholder,.field input::placeholder{color:var(--theme-muted)}

/* Theme palette audit pass — coherent 24-theme dark-to-light set */
:root[data-theme="highland"]{--theme-bg:#0b0f10;--theme-panel:#121819;--theme-panel2:#1a2322;--theme-text:#f2eee5;--theme-muted:#b5bdb7;--theme-line:#34413e;--theme-accent:#d2b06b;--theme-accent-hover:#dfbf82;--theme-accent2:#82988a;--theme-sidebar:#0e1413;--theme-deep:#111513;--theme-hero1:#1b2723;--theme-hero2:#31463b;--theme-public:#0b0f10;--theme-public-panel:#121819;--theme-public-text:#f2eee5;--theme-public-muted:#b7beb9;--theme-on-accent:#111513;--theme-logo-filter:none}
:root[data-theme="midnight"]{--theme-bg:#07111f;--theme-panel:#0d1a2a;--theme-panel2:#14263b;--theme-text:#f0f6ff;--theme-muted:#afbfce;--theme-line:#29415c;--theme-accent:#7ebdff;--theme-accent-hover:#97caff;--theme-accent2:#78c7d7;--theme-sidebar:#091524;--theme-deep:#07101a;--theme-hero1:#102844;--theme-hero2:#1c4668;--theme-public:#07111f;--theme-public-panel:#0d1a2a;--theme-public-text:#f0f6ff;--theme-public-muted:#afbfce;--theme-on-accent:#08131f;--theme-logo-filter:none}
:root[data-theme="emerald"]{--theme-bg:#07120f;--theme-panel:#0e1d18;--theme-panel2:#162a22;--theme-text:#eef9f4;--theme-muted:#afc4b9;--theme-line:#2d4a3d;--theme-accent:#77dfb4;--theme-accent-hover:#91e7c3;--theme-accent2:#a7d783;--theme-sidebar:#091712;--theme-deep:#07110d;--theme-hero1:#143528;--theme-hero2:#20513d;--theme-public:#07120f;--theme-public-panel:#0e1d18;--theme-public-text:#eef9f4;--theme-public-muted:#afc4b9;--theme-on-accent:#07140f;--theme-logo-filter:none}
:root[data-theme="burgundy"]{--theme-bg:#160b0e;--theme-panel:#241217;--theme-panel2:#331b22;--theme-text:#fbf1f3;--theme-muted:#c8b0b5;--theme-line:#513039;--theme-accent:#e79aa7;--theme-accent-hover:#efaeba;--theme-accent2:#d0ad74;--theme-sidebar:#1b0d11;--theme-deep:#12090b;--theme-hero1:#391a23;--theme-hero2:#5a2937;--theme-public:#160b0e;--theme-public-panel:#241217;--theme-public-text:#fbf1f3;--theme-public-muted:#c8b0b5;--theme-on-accent:#241015;--theme-logo-filter:none}
:root[data-theme="heather"]{--theme-bg:#130f18;--theme-panel:#1f1728;--theme-panel2:#2d2239;--theme-text:#f7f0fa;--theme-muted:#c2b4ca;--theme-line:#463653;--theme-accent:#cfaae6;--theme-accent-hover:#ddbcED;--theme-accent2:#dc98b8;--theme-sidebar:#18111f;--theme-deep:#100c14;--theme-hero1:#2d203a;--theme-hero2:#4a3360;--theme-public:#130f18;--theme-public-panel:#1f1728;--theme-public-text:#f7f0fa;--theme-public-muted:#c2b4ca;--theme-on-accent:#201526;--theme-logo-filter:none}
:root[data-theme="ocean"]{--theme-bg:#061216;--theme-panel:#0d2025;--theme-panel2:#163038;--theme-text:#eefbfd;--theme-muted:#aec5c9;--theme-line:#2d4b52;--theme-accent:#74d5df;--theme-accent-hover:#8ee0e8;--theme-accent2:#84d5b5;--theme-sidebar:#08191d;--theme-deep:#061014;--theme-hero1:#143740;--theme-hero2:#1c5460;--theme-public:#061216;--theme-public-panel:#0d2025;--theme-public-text:#eefbfd;--theme-public-muted:#aec5c9;--theme-on-accent:#071519;--theme-logo-filter:none}
:root[data-theme="forest"]{--theme-bg:#0b100a;--theme-panel:#151c12;--theme-panel2:#222c1c;--theme-text:#f3f7ed;--theme-muted:#b7c1ad;--theme-line:#3a482f;--theme-accent:#b7ca82;--theme-accent-hover:#c8d99a;--theme-accent2:#dda975;--theme-sidebar:#10150d;--theme-deep:#0a0e08;--theme-hero1:#28361f;--theme-hero2:#405331;--theme-public:#0b100a;--theme-public-panel:#151c12;--theme-public-text:#f3f7ed;--theme-public-muted:#b7c1ad;--theme-on-accent:#15190e;--theme-logo-filter:none}
:root[data-theme="ice"]{--theme-bg:#090d10;--theme-panel:#11181d;--theme-panel2:#1a252c;--theme-text:#f5fcff;--theme-muted:#b2c2ca;--theme-line:#30424b;--theme-accent:#b7edff;--theme-accent-hover:#cbf3ff;--theme-accent2:#92bfd2;--theme-sidebar:#0d1317;--theme-deep:#070b0e;--theme-hero1:#1a2e38;--theme-hero2:#294b59;--theme-public:#090d10;--theme-public-panel:#11181d;--theme-public-text:#f5fcff;--theme-public-muted:#b2c2ca;--theme-on-accent:#0b151a;--theme-logo-filter:none}
:root[data-theme="royal"]{--theme-bg:#20284a;--theme-panel:#2c3763;--theme-panel2:#394675;--theme-text:#f8f9ff;--theme-muted:#d4d9e9;--theme-line:#596691;--theme-accent:#d0d7ff;--theme-accent-hover:#e0e4ff;--theme-accent2:#dfc4f5;--theme-sidebar:#19213f;--theme-deep:#12182d;--theme-hero1:#34477b;--theme-hero2:#5367a3;--theme-public:#252e53;--theme-public-panel:#313c68;--theme-public-text:#f8f9ff;--theme-public-muted:#d4d9e9;--theme-on-accent:#1b2340;--theme-logo-filter:none}
:root[data-theme="slate"]{--theme-bg:#36414c;--theme-panel:#44515d;--theme-panel2:#52606d;--theme-text:#fafbfc;--theme-muted:#e1e6ea;--theme-line:#72808c;--theme-accent:#d8e5ef;--theme-accent-hover:#e7eef4;--theme-accent2:#b8d8d0;--theme-sidebar:#2f3943;--theme-deep:#202830;--theme-hero1:#4d5d6c;--theme-hero2:#657989;--theme-public:#3b4651;--theme-public-panel:#4a5662;--theme-public-text:#fafbfc;--theme-public-muted:#e1e6ea;--theme-on-accent:#26313a;--theme-logo-filter:none}
:root[data-theme="copper"]{--theme-bg:#5a4032;--theme-panel:#6a4d3e;--theme-panel2:#7a5b4a;--theme-text:#fffaf5;--theme-muted:#eeded3;--theme-line:#9a7865;--theme-accent:#ffd3ad;--theme-accent-hover:#ffe0c3;--theme-accent2:#ead79a;--theme-sidebar:#4b3429;--theme-deep:#2c1e18;--theme-hero1:#805844;--theme-hero2:#9b6c51;--theme-public:#624737;--theme-public-panel:#725444;--theme-public-text:#fffaf5;--theme-public-muted:#eeded3;--theme-on-accent:#3b281f;--theme-logo-filter:none}
:root[data-theme="denim"]{--theme-bg:#43566d;--theme-panel:#52667f;--theme-panel2:#61758f;--theme-text:#fcfdff;--theme-muted:#e4eaf0;--theme-line:#8496aa;--theme-accent:#e1efff;--theme-accent-hover:#eef6ff;--theme-accent2:#b8dbd5;--theme-sidebar:#37485d;--theme-deep:#233142;--theme-hero1:#617b9b;--theme-hero2:#7790ae;--theme-public:#4a5f78;--theme-public-panel:#59708a;--theme-public-text:#fcfdff;--theme-public-muted:#e4eaf0;--theme-on-accent:#2c3c4d;--theme-logo-filter:none}
:root[data-theme="sage"]{--theme-bg:#536057;--theme-panel:#5f6d61;--theme-panel2:#6e7d70;--theme-text:#fbfcf7;--theme-muted:#e7ece3;--theme-line:#849184;--theme-accent:#e6f2cf;--theme-accent-hover:#f0f8df;--theme-accent2:#ead6b2;--theme-sidebar:#48534a;--theme-deep:#303a32;--theme-hero1:#70836f;--theme-hero2:#879a81;--theme-public:#5b695e;--theme-public-panel:#68786b;--theme-public-text:#fbfcf7;--theme-public-muted:#e7ece3;--theme-on-accent:#394331;--theme-logo-filter:none}
:root[data-theme="rose"]{--theme-bg:#655057;--theme-panel:#745d64;--theme-panel2:#846c73;--theme-text:#fffafb;--theme-muted:#f1e5e8;--theme-line:#9a7f87;--theme-accent:#ffe1e8;--theme-accent-hover:#ffedf1;--theme-accent2:#ead4b5;--theme-sidebar:#57434a;--theme-deep:#382a2f;--theme-hero1:#8a6a74;--theme-hero2:#a3808a;--theme-public:#6d575e;--theme-public-panel:#7b646b;--theme-public-text:#fffafb;--theme-public-muted:#f1e5e8;--theme-on-accent:#463238;--theme-logo-filter:none}
:root[data-theme="aubergine"]{--theme-bg:#58485f;--theme-panel:#695773;--theme-panel2:#796684;--theme-text:#fefbff;--theme-muted:#e8dfea;--theme-line:#95819d;--theme-accent:#f0d6f6;--theme-accent-hover:#f7e6fb;--theme-accent2:#dec1cf;--theme-sidebar:#4a3b51;--theme-deep:#302536;--theme-hero1:#765d82;--theme-hero2:#8d73a0;--theme-public:#604f68;--theme-public-panel:#705e79;--theme-public-text:#fefbff;--theme-public-muted:#e8dfea;--theme-on-accent:#3b2c42;--theme-logo-filter:none}
:root[data-theme="taupe"]{--theme-bg:#675e56;--theme-panel:#74695f;--theme-panel2:#83786e;--theme-text:#fffdfa;--theme-muted:#f5eee6;--theme-line:#988c81;--theme-accent:#ffedcf;--theme-accent-hover:#fff4df;--theme-accent2:#dbe0c1;--theme-sidebar:#595149;--theme-deep:#3d3731;--theme-hero1:#877a6d;--theme-hero2:#9b8f82;--theme-public:#6e655c;--theme-public-panel:#7c7167;--theme-public-text:#fffdfa;--theme-public-muted:#f5eee6;--theme-on-accent:#443b31;--theme-logo-filter:none}
:root[data-theme="ivory"]{--theme-bg:#f1ebdf;--theme-panel:#fbf7ef;--theme-panel2:#e7dfd2;--theme-text:#25303c;--theme-muted:#5e665f;--theme-line:#cec2b1;--theme-accent:#765126;--theme-accent-hover:#603f1b;--theme-accent2:#71859a;--theme-sidebar:#e8dfd0;--theme-deep:#1d2732;--theme-hero1:#ded1bd;--theme-hero2:#c5b08e;--theme-public:#f5efe4;--theme-public-panel:#fffaf2;--theme-public-text:#25303c;--theme-public-muted:#5e665f;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="cream"]{--theme-bg:#f5f0e5;--theme-panel:#fffaf0;--theme-panel2:#ece4d5;--theme-text:#2d332f;--theme-muted:#61675f;--theme-line:#d5c9b7;--theme-accent:#6d5627;--theme-accent-hover:#57431e;--theme-accent2:#637e6d;--theme-sidebar:#ebe4d7;--theme-deep:#202720;--theme-hero1:#e3d7c1;--theme-hero2:#cab996;--theme-public:#f7f2e8;--theme-public-panel:#fffaf1;--theme-public-text:#2d332f;--theme-public-muted:#61675f;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="mist"]{--theme-bg:#eaf1f6;--theme-panel:#f6fafc;--theme-panel2:#dce7ef;--theme-text:#253644;--theme-muted:#596875;--theme-line:#c3d1dc;--theme-accent:#355f7f;--theme-accent-hover:#294d68;--theme-accent2:#5e918d;--theme-sidebar:#dfe9f0;--theme-deep:#1d2c38;--theme-hero1:#d0e0eb;--theme-hero2:#b7cfdf;--theme-public:#eef4f8;--theme-public-panel:#f9fcfd;--theme-public-text:#253644;--theme-public-muted:#596875;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="linen"]{--theme-bg:#edf0e7;--theme-panel:#f8faf3;--theme-panel2:#dde4d5;--theme-text:#2f3a31;--theme-muted:#5e685e;--theme-line:#c6d0be;--theme-accent:#496541;--theme-accent-hover:#3a5334;--theme-accent2:#8b7656;--theme-sidebar:#e2e8dc;--theme-deep:#263029;--theme-hero1:#d2dcc9;--theme-hero2:#bac9af;--theme-public:#f0f3ea;--theme-public-panel:#fafbf6;--theme-public-text:#2f3a31;--theme-public-muted:#5e685e;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="heathermist"]{--theme-bg:#f0ebf2;--theme-panel:#faf7fb;--theme-panel2:#e5dce9;--theme-text:#3b3140;--theme-muted:#695f6d;--theme-line:#cec1d3;--theme-accent:#704b75;--theme-accent-hover:#5d3b62;--theme-accent2:#9a6e82;--theme-sidebar:#e6dfe9;--theme-deep:#302635;--theme-hero1:#d9cedd;--theme-hero2:#c2b0c8;--theme-public:#f3eef4;--theme-public-panel:#fcf9fc;--theme-public-text:#3b3140;--theme-public-muted:#695f6d;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="quartz"]{--theme-bg:#f4ebed;--theme-panel:#fff8f9;--theme-panel2:#eadbdd;--theme-text:#49373d;--theme-muted:#706065;--theme-line:#d4c1c5;--theme-accent:#87465a;--theme-accent-hover:#713747;--theme-accent2:#8f7659;--theme-sidebar:#eadfe1;--theme-deep:#382a2f;--theme-hero1:#dfcdd1;--theme-hero2:#caaeb5;--theme-public:#f7eff1;--theme-public-panel:#fffafb;--theme-public-text:#49373d;--theme-public-muted:#706065;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="sandstone"]{--theme-bg:#f0e6d8;--theme-panel:#fbf4ea;--theme-panel2:#e4d5c1;--theme-text:#46392f;--theme-muted:#6c6056;--theme-line:#cebba4;--theme-accent:#7c4f31;--theme-accent-hover:#663e25;--theme-accent2:#7a7451;--theme-sidebar:#e5d9ca;--theme-deep:#352b24;--theme-hero1:#d9c7b1;--theme-hero2:#c3a887;--theme-public:#f3eade;--theme-public-panel:#fff8ef;--theme-public-text:#46392f;--theme-public-muted:#6c6056;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="white"]{--theme-bg:#f5f7f9;--theme-panel:#ffffff;--theme-panel2:#e9edf1;--theme-text:#20262d;--theme-muted:#56616c;--theme-line:#cfd7de;--theme-accent:#244f73;--theme-accent-hover:#193d5c;--theme-accent2:#537663;--theme-sidebar:#edf1f4;--theme-deep:#172029;--theme-hero1:#dbe5ec;--theme-hero2:#c1d1dc;--theme-public:#f7f9fa;--theme-public-panel:#ffffff;--theme-public-text:#20262d;--theme-public-muted:#56616c;--theme-on-accent:#ffffff;--theme-logo-filter:none}
:root[data-theme="ivory"]{}
:root[data-theme="ivory"],:root[data-theme="cream"],:root[data-theme="mist"],:root[data-theme="linen"],:root[data-theme="heathermist"],:root[data-theme="quartz"],:root[data-theme="sandstone"],:root[data-theme="white"]{--theme-logo-filter:invert(1)}
.brand-logo{filter:var(--theme-logo-filter);transition:filter .16s ease}
.pill,.play-sm,.play-round,.mini-controls .mainplay,.big-controls .bigplay{background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;border-color:var(--theme-accent)!important}
.pill:hover,.play-sm:hover,.play-round:hover,.mini-controls .mainplay:hover,.big-controls .bigplay:hover{background:var(--theme-accent-hover)!important;border-color:var(--theme-accent-hover)!important}
.pill.secondary{background:transparent!important;color:var(--theme-public-text)!important;border-color:color-mix(in srgb,var(--theme-public-text) 42%,transparent)!important}
.pill.secondary:hover{background:color-mix(in srgb,var(--theme-accent) 10%,transparent)!important;color:var(--theme-public-text)!important;border-color:var(--theme-accent)!important}
.sidebar .brand,.sidebar .brand span,.app-shell,.content,.app-header h1,.dance-card h3,.playlist-card h3,.player-info h1,.queue-item,.volume-head output{color:var(--theme-text)}
.sidebar,.mobile-nav{background:var(--theme-sidebar)!important;border-color:var(--theme-line)!important}
.navbtn,.mobile-nav button{color:var(--theme-muted)!important}
.navbtn:hover,.navbtn.active,.mobile-nav button.active{background:var(--theme-panel2)!important;color:var(--theme-text)!important}
.track,.track-list,.queue-item,.demo-context{border-color:var(--theme-line)!important}
.track:hover,.queue-item:hover,.queue-item.current{background:var(--theme-panel)!important}
.search,.field input,.auth-card .field input,.signup-form .field input,.modal input{background:var(--theme-panel2)!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}
.search::placeholder,.field input::placeholder{color:var(--theme-muted)!important}
.theme-picker{background:color-mix(in srgb,var(--theme-panel) 96%,transparent)!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}
.theme-picker label{color:var(--theme-muted)!important}.theme-picker select{background:var(--theme-panel2)!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}
.modal,.tempo-box,.volume-box,.queue-panel,.demo-banner,.dance-card,.playlist-card{background:var(--theme-panel)!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}
.chip,.utility-row .utility,.tempo-main button,.pluscard button{background:var(--theme-panel2)!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}
.chip.active,.utility-row .utility.active{border-color:var(--theme-accent)!important;color:var(--theme-accent)!important;background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-panel))!important}
.track-meta,.filter-hint,.player-note,.repeat-status,.dance-card p,.playlist-card p,.player-info .sub,.time-row,.tempo-foot{color:var(--theme-muted)!important}
.hero-card{background:linear-gradient(120deg,var(--theme-hero1),var(--theme-hero2))!important;color:var(--theme-text)!important}.hero-card p{color:var(--theme-muted)!important}
.public,.pricing{background:var(--theme-public)!important;color:var(--theme-public-text)!important}
.public .topbar,.pricing .topbar{background:color-mix(in srgb,var(--theme-public) 94%,transparent)!important;border-color:var(--theme-line)!important;color:var(--theme-public-text)!important}
.public .feature,.plan,.signup-form,.auth-card{background:var(--theme-public-panel)!important;border-color:var(--theme-line)!important;color:var(--theme-public-text)!important}
.public .feature strong,.public .hero h1,.public .section h2,.pricing-main h1,.auth-card h1,.signup-form h1{color:var(--theme-public-text)!important}
.public .hero p,.public .section-lede,.public .feature p,.pricing-intro,.signup-lede,.auth-lede,.auth-footer,.prototype-note{color:var(--theme-public-muted)!important}
.dark-cta{background:linear-gradient(135deg,var(--theme-hero1),var(--theme-hero2))!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}.dark-cta p{color:var(--theme-muted)!important}
.tempo-preview,.payment-placeholder{background:var(--theme-panel2)!important;border-color:var(--theme-line)!important}
.eyebrow,.kicker,.text-action,.reset,.row-title button,.dance-card .arrow,.demo-context>span{color:var(--theme-accent)!important}
input[type="range"]{accent-color:var(--theme-accent)!important}

/* Light-forward client palette pass */
:root[data-theme="heather"]{--theme-bg:#b9a8c2;--theme-panel:#c9bad1;--theme-panel2:#d8cbe0;--theme-text:#2f2633;--theme-muted:#514653;--theme-line:#a390ad;--theme-accent:#52365d;--theme-accent-hover:#42294c;--theme-accent2:#916b7d;--theme-sidebar:#aa98b4;--theme-deep:#302635;--theme-hero1:#c7b5d1;--theme-hero2:#ad96bb;--theme-public:#c2b2ca;--theme-public-panel:#d1c3d8;--theme-public-text:#2f2633;--theme-public-muted:#514653;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="pearl"]{--theme-bg:#fbfaf7;--theme-panel:#ffffff;--theme-panel2:#f2efe9;--theme-text:#26313a;--theme-muted:#626a70;--theme-line:#ddd8cf;--theme-accent:#6e5a37;--theme-accent-hover:#584725;--theme-accent2:#728396;--theme-sidebar:#f4f1eb;--theme-deep:#242d34;--theme-hero1:#eee8df;--theme-hero2:#ded4c5;--theme-public:#fcfbf8;--theme-public-panel:#ffffff;--theme-public-text:#26313a;--theme-public-muted:#626a70;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="cloud"]{--theme-bg:#f9fbfc;--theme-panel:#ffffff;--theme-panel2:#edf2f5;--theme-text:#22313c;--theme-muted:#5d6b74;--theme-line:#d6e0e6;--theme-accent:#426f8b;--theme-accent-hover:#315d78;--theme-accent2:#6e918c;--theme-sidebar:#eef3f6;--theme-deep:#1d2a33;--theme-hero1:#e6eff4;--theme-hero2:#d3e2ea;--theme-public:#fbfcfd;--theme-public-panel:#ffffff;--theme-public-text:#22313c;--theme-public-muted:#5d6b74;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="palesage"]{--theme-bg:#f7faf5;--theme-panel:#ffffff;--theme-panel2:#eaf1e6;--theme-text:#2d3b30;--theme-muted:#617064;--theme-line:#d3dfcf;--theme-accent:#52704b;--theme-accent-hover:#405e3a;--theme-accent2:#8a7657;--theme-sidebar:#eef4eb;--theme-deep:#263229;--theme-hero1:#e0ebdc;--theme-hero2:#cadbc5;--theme-public:#f9fbf7;--theme-public-panel:#ffffff;--theme-public-text:#2d3b30;--theme-public-muted:#617064;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="paleblue"]{--theme-bg:#f6faff;--theme-panel:#ffffff;--theme-panel2:#e8f1f8;--theme-text:#24384a;--theme-muted:#5c7080;--theme-line:#cedde8;--theme-accent:#3d6f98;--theme-accent-hover:#2c5b80;--theme-accent2:#5f8d88;--theme-sidebar:#edf5fb;--theme-deep:#1e2e3b;--theme-hero1:#dcebf5;--theme-hero2:#c3dbe9;--theme-public:#f9fcff;--theme-public-panel:#ffffff;--theme-public-text:#24384a;--theme-public-muted:#5c7080;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="blush"]{--theme-bg:#fff8f8;--theme-panel:#ffffff;--theme-panel2:#f7e9eb;--theme-text:#48383c;--theme-muted:#746166;--theme-line:#ead3d7;--theme-accent:#92586a;--theme-accent-hover:#794557;--theme-accent2:#8d765d;--theme-sidebar:#f9eeee;--theme-deep:#392c30;--theme-hero1:#f1dfe2;--theme-hero2:#dfc6cb;--theme-public:#fffafa;--theme-public-panel:#ffffff;--theme-public-text:#48383c;--theme-public-muted:#746166;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="lavender"]{--theme-bg:#faf8ff;--theme-panel:#ffffff;--theme-panel2:#eee9f7;--theme-text:#393348;--theme-muted:#6b6477;--theme-line:#ddd5ea;--theme-accent:#735d91;--theme-accent-hover:#5d497a;--theme-accent2:#987188;--theme-sidebar:#f3eff9;--theme-deep:#302a3b;--theme-hero1:#e6def1;--theme-hero2:#d2c4e3;--theme-public:#fcfaff;--theme-public-panel:#ffffff;--theme-public-text:#393348;--theme-public-muted:#6b6477;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="white"]{--theme-bg:#ffffff;--theme-panel:#ffffff;--theme-panel2:#f1f4f7;--theme-text:#202a33;--theme-muted:#59636d;--theme-line:#d9e0e5;--theme-accent:#294f73;--theme-accent-hover:#1d3f5f;--theme-accent2:#5f7c6d;--theme-sidebar:#f4f6f8;--theme-deep:#172029;--theme-hero1:#e5edf3;--theme-hero2:#cfdae3;--theme-public:#ffffff;--theme-public-panel:#ffffff;--theme-public-text:#202a33;--theme-public-muted:#59636d;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="whiteteal"]{--theme-bg:#ffffff;--theme-panel:#ffffff;--theme-panel2:#eff6f5;--theme-text:#213431;--theme-muted:#596b67;--theme-line:#d5e2df;--theme-accent:#2f6f68;--theme-accent-hover:#235b55;--theme-accent2:#8a7658;--theme-sidebar:#f2f7f6;--theme-deep:#172824;--theme-hero1:#e1efec;--theme-hero2:#c9dfda;--theme-public:#ffffff;--theme-public-panel:#ffffff;--theme-public-text:#213431;--theme-public-muted:#596b67;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="whitegold"]{--theme-bg:#ffffff;--theme-panel:#ffffff;--theme-panel2:#f7f3ea;--theme-text:#332d24;--theme-muted:#6d655a;--theme-line:#e2dacb;--theme-accent:#7a5b22;--theme-accent-hover:#624817;--theme-accent2:#6f7d6c;--theme-sidebar:#f8f5ef;--theme-deep:#29231b;--theme-hero1:#eee5d6;--theme-hero2:#dccbab;--theme-public:#ffffff;--theme-public-panel:#ffffff;--theme-public-text:#332d24;--theme-public-muted:#6d655a;--theme-on-accent:#ffffff;--theme-logo-filter:invert(1)}
:root[data-theme="ivory"],:root[data-theme="cream"],:root[data-theme="mist"],:root[data-theme="linen"],:root[data-theme="heathermist"],:root[data-theme="quartz"],:root[data-theme="sandstone"],:root[data-theme="pearl"],:root[data-theme="cloud"],:root[data-theme="palesage"],:root[data-theme="paleblue"],:root[data-theme="blush"],:root[data-theme="lavender"],:root[data-theme="white"],:root[data-theme="whiteteal"],:root[data-theme="whitegold"]{--theme-logo-filter:invert(1)}
:root[data-theme="denim"],:root[data-theme="sage"],:root[data-theme="rose"],:root[data-theme="taupe"]{--theme-logo-filter:none}
:root[data-theme="heather"]{--theme-logo-filter:invert(1)}

/* Clickable-surface hierarchy: each palette's secondary tone distinguishes interaction from page background */
:root[data-theme]{
  --theme-click:var(--theme-panel2);
  --theme-click-hover:color-mix(in srgb,var(--theme-panel2) 82%,var(--theme-accent) 18%);
  --theme-click-active:color-mix(in srgb,var(--theme-panel2) 70%,var(--theme-accent) 30%);
  --theme-click-border:color-mix(in srgb,var(--theme-line) 72%,var(--theme-accent) 28%);
}

/* Large clickable cards */
.dance-card,
.playlist-card,
.piper-card,
button.music-card{
  background:var(--theme-click)!important;
  border:1px solid var(--theme-line)!important;
  color:var(--theme-text)!important;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
button.music-card{
  border-radius:14px;
  padding:10px;
}
.dance-card:hover,
.playlist-card:hover,
.piper-card:hover,
button.music-card:hover{
  background:var(--theme-click-hover)!important;
  border-color:var(--theme-click-border)!important;
}
.dance-card:active,
.playlist-card:active,
.piper-card:active,
button.music-card:active{
  background:var(--theme-click-active)!important;
}

/* Navigation, filters and utility controls */
.navbtn,
.chip,
.utility-row .utility,
.tempo-main button,
.pluscard button,
.playlist-control,
.row-add-playlist,
.backbtn{
  background:var(--theme-click)!important;
  border-color:var(--theme-line)!important;
}
.navbtn:hover,
.chip:hover,
.utility-row .utility:hover,
.tempo-main button:hover,
.pluscard button:hover,
.playlist-control:hover,
.row-add-playlist:hover,
.backbtn:hover{
  background:var(--theme-click-hover)!important;
  border-color:var(--theme-click-border)!important;
  color:var(--theme-text)!important;
}
.navbtn.active,
.chip.active,
.utility-row .utility.active,
.piper-card.selected,
.selected-album{
  background:var(--theme-click-active)!important;
  border-color:var(--theme-accent)!important;
  color:var(--theme-text)!important;
}

/* Clickable rows should read as controls, not disappear into the page */
.queue-item{
  background:var(--theme-click)!important;
  border-bottom:1px solid var(--theme-line)!important;
}
.queue-item:hover{
  background:var(--theme-click-hover)!important;
}
.queue-item.current{
  background:var(--theme-click-active)!important;
  border-left:3px solid var(--theme-accent)!important;
}

/* Keep non-clickable containers one step quieter than controls */
.tempo-box,
.volume-box,
.queue-panel,
.demo-banner,
.modal{
  background:var(--theme-panel)!important;
}
.search,
.theme-picker select{
  background:var(--theme-click)!important;
  border-color:var(--theme-line)!important;
}

/* Slight elevation further separates controls on white/very-light themes */
:root[data-theme="ivory"] .dance-card,
:root[data-theme="cream"] .dance-card,
:root[data-theme="mist"] .dance-card,
:root[data-theme="linen"] .dance-card,
:root[data-theme="heathermist"] .dance-card,
:root[data-theme="quartz"] .dance-card,
:root[data-theme="sandstone"] .dance-card,
:root[data-theme="pearl"] .dance-card,
:root[data-theme="cloud"] .dance-card,
:root[data-theme="palesage"] .dance-card,
:root[data-theme="paleblue"] .dance-card,
:root[data-theme="blush"] .dance-card,
:root[data-theme="lavender"] .dance-card,
:root[data-theme="white"] .dance-card,
:root[data-theme="whiteteal"] .dance-card,
:root[data-theme="whitegold"] .dance-card,
:root[data-theme="ivory"] .playlist-card,
:root[data-theme="cream"] .playlist-card,
:root[data-theme="mist"] .playlist-card,
:root[data-theme="linen"] .playlist-card,
:root[data-theme="heathermist"] .playlist-card,
:root[data-theme="quartz"] .playlist-card,
:root[data-theme="sandstone"] .playlist-card,
:root[data-theme="pearl"] .playlist-card,
:root[data-theme="cloud"] .playlist-card,
:root[data-theme="palesage"] .playlist-card,
:root[data-theme="paleblue"] .playlist-card,
:root[data-theme="blush"] .playlist-card,
:root[data-theme="lavender"] .playlist-card,
:root[data-theme="white"] .playlist-card,
:root[data-theme="whiteteal"] .playlist-card,
:root[data-theme="whitegold"] .playlist-card{
  box-shadow:0 1px 3px rgba(24,32,40,.08);
}

/* Audited per-theme interactive secondary surfaces */
:root[data-theme="highland"]{--theme-click:#1a2322;--theme-click-hover:#192220;--theme-click-active:#18201f;}
:root[data-theme="midnight"]{--theme-click:#14263b;--theme-click-hover:#132438;--theme-click-active:#122235;}
:root[data-theme="emerald"]{--theme-click:#162a22;--theme-click-hover:#142820;--theme-click-active:#13261e;}
:root[data-theme="denim"]{--theme-click:#61758f;--theme-click-hover:#5b6e87;--theme-click-active:#566981;}
:root[data-theme="sage"]{--theme-click:#677569;--theme-click-hover:#626f64;--theme-click-active:#5d6a5f;}
:root[data-theme="rose"]{--theme-click:#846c73;--theme-click-hover:#7c656c;--theme-click-active:#766067;}
:root[data-theme="taupe"]{--theme-click:#7b7167;--theme-click-hover:#756b62;--theme-click-active:#70675d;}
:root[data-theme="heather"]{--theme-click:#d8cbe0;--theme-click-hover:#cdbfd6;--theme-click-active:#c5b6ce;}
:root[data-theme="ivory"]{--theme-click:#e4dbcd;--theme-click-hover:#dbd0c0;--theme-click-active:#d5c8b6;}
:root[data-theme="cream"]{--theme-click:#e8e0d0;--theme-click-hover:#ded5c2;--theme-click-active:#d7cdb8;}
:root[data-theme="mist"]{--theme-click:#d5e2eb;--theme-click-hover:#c8d8e2;--theme-click-active:#bfd0dc;}
:root[data-theme="linen"]{--theme-click:#dae1d2;--theme-click-hover:#ced7c6;--theme-click-active:#c6d0be;}
:root[data-theme="heathermist"]{--theme-click:#e3d9e7;--theme-click-hover:#dacede;--theme-click-active:#d3c5d7;}
:root[data-theme="quartz"]{--theme-click:#e9dadc;--theme-click-hover:#e1ced2;--theme-click-active:#dbc5ca;}
:root[data-theme="sandstone"]{--theme-click:#e4d5c1;--theme-click-hover:#dccab5;--theme-click-active:#d5c2ad;}
:root[data-theme="pearl"]{--theme-click:#ede9e2;--theme-click-hover:#e3ded4;--theme-click-active:#dbd5ca;}
:root[data-theme="cloud"]{--theme-click:#e4ebf0;--theme-click-hover:#d7e1e8;--theme-click-active:#cddae2;}
:root[data-theme="palesage"]{--theme-click:#e2ebde;--theme-click-hover:#d6e1d2;--theme-click-active:#cedac9;}
:root[data-theme="paleblue"]{--theme-click:#dfeaf3;--theme-click-hover:#d2e0ec;--theme-click-active:#c8d9e6;}
:root[data-theme="blush"]{--theme-click:#f5e6e8;--theme-click-hover:#eddbde;--theme-click-active:#e7d2d6;}
:root[data-theme="lavender"]{--theme-click:#ece6f5;--theme-click-hover:#e2dbed;--theme-click-active:#dbd3e7;}
:root[data-theme="white"]{--theme-click:#ebeff3;--theme-click-hover:#dbe2e9;--theme-click-active:#d0d9e1;}
:root[data-theme="whiteteal"]{--theme-click:#e7f1ef;--theme-click-hover:#d8e7e4;--theme-click-active:#cddfdc;}
:root[data-theme="whitegold"]{--theme-click:#f3eee4;--theme-click-hover:#e9e2d4;--theme-click-active:#e2d9c9;}

/* Interactive-surface audit: cover every non-text-link clickable control */
.favbtn,
.transport,
.modal-item.linkbtn,
.mobile-nav button{
  background:var(--theme-click)!important;
  border:1px solid var(--theme-line)!important;
  color:var(--theme-text)!important;
}
.favbtn:hover,
.transport:hover,
.modal-item.linkbtn:hover,
.mobile-nav button:hover{
  background:var(--theme-click-hover)!important;
  border-color:var(--theme-click-border)!important;
}
.favbtn:active,
.transport:active,
.modal-item.linkbtn:active,
.mobile-nav button:active,
.mobile-nav button.active{
  background:var(--theme-click-active)!important;
  border-color:var(--theme-accent)!important;
}
.favbtn.active{
  background:var(--theme-click-active)!important;
  border-color:var(--theme-accent)!important;
  color:var(--theme-accent)!important;
}
.modal-item.linkbtn{
  border-radius:9px;
  padding:11px 12px!important;
  color:var(--theme-text)!important;
}
.mobile-nav{
  background:var(--theme-panel)!important;
  gap:1px;
}
.mobile-nav button{
  border-radius:8px 8px 0 0;
  margin:5px 3px 4px;
  padding:5px 2px!important;
}
.mini-player{
  background:color-mix(in srgb,var(--theme-click) 94%,transparent)!important;
  border-color:var(--theme-line)!important;
}
.mini-player:hover{
  background:color-mix(in srgb,var(--theme-click-hover) 96%,transparent)!important;
}

/* Form controls are interactive surfaces too. Every text field and menu uses these, including the pop-up, account and
   admin fields (Ken, 2026-11-11: the Redeem a code box had the darker page colour). */
.field input,
.field select,
.search,
.theme-picker select,
.account-theme select,
.modal input,
.admin-search input{
  background:var(--theme-click)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-text)!important;
}
.field input:hover,
.field select:hover,
.search:hover,
.theme-picker select:hover,
.account-theme select:hover,
.modal input:hover,
.admin-search input:hover{
  background:var(--theme-click-hover)!important;
  border-color:var(--theme-click-border)!important;
}
.field input:focus,
.field select:focus,
.search:focus,
.theme-picker select:focus,
.account-theme select:focus,
.modal input:focus,
.admin-search input:focus{
  background:var(--theme-click)!important;
  border-color:var(--theme-accent)!important;
}

/* These are intentionally text-link interactions rather than filled controls;
   give hover feedback without turning them into cards. */
.topnav .linkbtn:not(.brand),
.row-title button,
.text-action,
.reset,
.playlist-track{
  border-radius:7px;
}
.topnav .linkbtn:not(.brand):hover,
.row-title button:hover,
.text-action:hover,
.reset:hover,
.playlist-track:hover{
  background:color-mix(in srgb,var(--theme-click) 72%,transparent)!important;
}

/* Primary actions remain accent-filled rather than using the secondary surface. */
.pill,
.play-sm,
.play-round,
.mainplay,
.bigplay{
  background:var(--theme-accent)!important;
  color:var(--theme-on-accent)!important;
  border-color:var(--theme-accent)!important;
}

/* Final interaction affordance cleanup */
.mini-player{cursor:pointer}
.theme-picker select,.search,.field input{cursor:text}
.theme-picker select{cursor:pointer}
.dance-card,.playlist-card,.piper-card,button.music-card,.queue-item,.navbtn,.mobile-nav button,.chip,.utility-row .utility,.tempo-main button,.favbtn,.transport,.playlist-control,.row-add-playlist,.backbtn,.modal-item.linkbtn,.pluscard button{cursor:pointer}

/* Audited boxed-surface colors: canvas -> box -> interactive */
:root[data-theme="highland"]{--theme-box:#131919;}
:root[data-theme="midnight"]{--theme-box:#0e1c2e;}
:root[data-theme="emerald"]{--theme-box:#0f1e19;}
:root[data-theme="denim"]{--theme-box:#53667f;}
:root[data-theme="sage"]{--theme-box:#5d6b60;}
:root[data-theme="rose"]{--theme-box:#755f66;}
:root[data-theme="taupe"]{--theme-box:#71685f;}
:root[data-theme="heather"]{--theme-box:#c9bad2;}
:root[data-theme="ivory"]{--theme-box:#eae3d6;}
:root[data-theme="cream"]{--theme-box:#eee8da;}
:root[data-theme="mist"]{--theme-box:#dfe9f0;}
:root[data-theme="linen"]{--theme-box:#e3e8dc;}
:root[data-theme="heathermist"]{--theme-box:#e9e2ec;}
:root[data-theme="quartz"]{--theme-box:#eee2e4;}
:root[data-theme="sandstone"]{--theme-box:#eaddcc;}
:root[data-theme="pearl"]{--theme-box:#f4f1ec;}
:root[data-theme="cloud"]{--theme-box:#eef3f6;}
:root[data-theme="palesage"]{--theme-box:#ecf2e9;}
:root[data-theme="paleblue"]{--theme-box:#eaf2f9;}
:root[data-theme="blush"]{--theme-box:#faeff0;}
:root[data-theme="lavender"]{--theme-box:#f3effa;}
:root[data-theme="white"]{--theme-box:#f5f7f9;}
:root[data-theme="whiteteal"]{--theme-box:#f3f8f7;}
:root[data-theme="whitegold"]{--theme-box:#f9f6f1;}

/* Boxed-surface audit: any drawn/rounded region must separate from its surrounding canvas */
.public .feature,
.plan,
.signup-form,
.auth-card,
.tempo-box,
.volume-box,
.queue-panel,
.demo-banner,
.modal,
.tempo-preview,
.payment-placeholder,
.empty-state,
.theme-picker{
  background:var(--theme-box)!important;
  border-color:var(--theme-line)!important;
}

/* Boxed callouts keep a distinct themed treatment rather than falling back to the page canvas. */
.hero-card{
  background:linear-gradient(120deg,var(--theme-box),var(--theme-click))!important;
  border:1px solid var(--theme-line)!important;
}
.dark-cta{
  background:linear-gradient(135deg,var(--theme-box),var(--theme-click))!important;
  border-color:var(--theme-line)!important;
}

/* Outlined secondary buttons are filled with the interactive secondary surface. */
.pill.secondary{
  background:var(--theme-click)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
.pill.secondary:hover{
  background:var(--theme-click-hover)!important;
  border-color:var(--theme-click-border)!important;
  color:var(--theme-text)!important;
}

/* Smaller rounded readouts also need to stand off from their parent surface. */
.bpm-pill{
  background:var(--theme-box)!important;
  border:1px solid var(--theme-line)!important;
  color:var(--theme-text)!important;
}
.num{
  background:var(--theme-box)!important;
  border-color:var(--theme-line)!important;
  color:var(--theme-accent)!important;
}

/* Preserve the three-level hierarchy inside boxed regions. */
.tempo-box .tempo-main button,
.volume-box input,
.modal input,
.signup-form input,
.auth-card input,
.theme-picker select,
.payment-placeholder + .pill{
  position:relative;
}

/* Public-page boxed surfaces */
:root[data-theme="highland"]{--theme-public-box:#131a1a;}
:root[data-theme="midnight"]{--theme-public-box:#0e1d2e;}
:root[data-theme="emerald"]{--theme-public-box:#0f1f19;}
:root[data-theme="denim"]{--theme-public-box:#576b85;}
:root[data-theme="sage"]{--theme-public-box:#627064;}
:root[data-theme="rose"]{--theme-public-box:#7a636a;}
:root[data-theme="taupe"]{--theme-public-box:#756c62;}
:root[data-theme="heather"]{--theme-public-box:#cec0d6;}
:root[data-theme="ivory"]{--theme-public-box:#ece4d7;}
:root[data-theme="cream"]{--theme-public-box:#efe8db;}
:root[data-theme="mist"]{--theme-public-box:#e0eaf1;}
:root[data-theme="linen"]{--theme-public-box:#e4e9dd;}
:root[data-theme="heathermist"]{--theme-public-box:#eae2ed;}
:root[data-theme="quartz"]{--theme-public-box:#efe3e5;}
:root[data-theme="sandstone"]{--theme-public-box:#ebdece;}
:root[data-theme="pearl"]{--theme-public-box:#f4f1ec;}
:root[data-theme="cloud"]{--theme-public-box:#eef3f6;}
:root[data-theme="palesage"]{--theme-public-box:#ecf2e9;}
:root[data-theme="paleblue"]{--theme-public-box:#ebf2f8;}
:root[data-theme="blush"]{--theme-public-box:#faeff0;}
:root[data-theme="lavender"]{--theme-public-box:#f3effa;}
:root[data-theme="white"]{--theme-public-box:#f4f6f8;}
:root[data-theme="whiteteal"]{--theme-public-box:#f2f7f6;}
:root[data-theme="whitegold"]{--theme-public-box:#f8f6f0;}

/* Public/login/pricing boxed regions use their own surface against the public canvas. */
.public .feature,
.pricing .plan,
.pricing .signup-form,
.auth-page .auth-card{
  background:var(--theme-public-box)!important;
}

/* The floating theme control is a boxed region regardless of the current page. */
.theme-picker{
  background:var(--theme-box)!important;
}

/* Explicitly keep nested interactive controls one level stronger than their containing boxes. */
.public .feature button,
.plan button,
.signup-form button,
.auth-card button:not(.text-action),
.tempo-box button,
.volume-box button,
.queue-panel button,
.modal button:not(.text-action){
  background-color:var(--theme-click);
}

/* Contrast-safe text tokens, audited across each theme surface */
:root[data-theme="highland"]{--theme-muted-safe:#b5bdb7;--theme-accent-text:#d2b06b;--theme-public-muted-safe:#b7beb9;}
:root[data-theme="midnight"]{--theme-muted-safe:#afbfce;--theme-accent-text:#7ebdff;--theme-public-muted-safe:#afbfce;}
:root[data-theme="emerald"]{--theme-muted-safe:#afc4b9;--theme-accent-text:#77dfb4;--theme-public-muted-safe:#afc4b9;}
:root[data-theme="denim"]{--theme-muted-safe:#fbfcff;--theme-accent-text:#fbfcff;--theme-public-muted-safe:#e7edf2;}
:root[data-theme="sage"]{--theme-muted-safe:#f8faf4;--theme-accent-text:#f8faf1;--theme-public-muted-safe:#eef2ea;}
:root[data-theme="rose"]{--theme-muted-safe:#fef9fa;--theme-accent-text:#fff9fa;--theme-public-muted-safe:#f3e9eb;}
:root[data-theme="taupe"]{--theme-muted-safe:#fdfbf7;--theme-accent-text:#fffbf4;--theme-public-muted-safe:#f7f2eb;}
:root[data-theme="heather"]{--theme-muted-safe:#483d4a;--theme-accent-text:#52365d;--theme-public-muted-safe:#4f4451;}
:root[data-theme="ivory"]{--theme-muted-safe:#4d5654;--theme-accent-text:#6d4d28;--theme-public-muted-safe:#5e665f;}
:root[data-theme="cream"]{--theme-muted-safe:#525852;--theme-accent-text:#685328;--theme-public-muted-safe:#61675f;}
:root[data-theme="mist"]{--theme-muted-safe:#495866;--theme-accent-text:#335a79;--theme-public-muted-safe:#596875;}
:root[data-theme="linen"]{--theme-muted-safe:#4e584f;--theme-accent-text:#445c3e;--theme-public-muted-safe:#5e685e;}
:root[data-theme="heathermist"]{--theme-muted-safe:#5a505f;--theme-accent-text:#69486e;--theme-public-muted-safe:#695f6d;}
:root[data-theme="quartz"]{--theme-muted-safe:#615056;--theme-accent-text:#7c4355;--theme-public-muted-safe:#706065;}
:root[data-theme="sandstone"]{--theme-muted-safe:#5b4e44;--theme-accent-text:#6c4930;--theme-public-muted-safe:#6c6056;}
:root[data-theme="pearl"]{--theme-muted-safe:#545c63;--theme-accent-text:#6c5937;--theme-public-muted-safe:#626a70;}
:root[data-theme="cloud"]{--theme-muted-safe:#515f69;--theme-accent-text:#3b617a;--theme-public-muted-safe:#5d6b74;}
:root[data-theme="palesage"]{--theme-muted-safe:#516054;--theme-accent-text:#486244;--theme-public-muted-safe:#606f63;}
:root[data-theme="paleblue"]{--theme-muted-safe:#4a5e6f;--theme-accent-text:#366082;--theme-public-muted-safe:#5b6f7f;}
:root[data-theme="blush"]{--theme-muted-safe:#6a585d;--theme-accent-text:#7e4f5e;--theme-public-muted-safe:#746166;}
:root[data-theme="lavender"]{--theme-muted-safe:#60596d;--theme-accent-text:#665380;--theme-public-muted-safe:#6b6477;}
:root[data-theme="white"]{--theme-muted-safe:#545e68;--theme-accent-text:#294f73;--theme-public-muted-safe:#59636d;}
:root[data-theme="whiteteal"]{--theme-muted-safe:#51635f;--theme-accent-text:#2d6861;--theme-public-muted-safe:#596b67;}
:root[data-theme="whitegold"]{--theme-muted-safe:#655d52;--theme-accent-text:#775922;--theme-public-muted-safe:#6d655a;}

/* Album browser: artwork stands on its own, without a surrounding card box. */
.album-row button.music-card{
  background:transparent!important;
  border:0!important;
  border-radius:0;
  padding:6px!important;
  box-shadow:none!important;
}
.album-row button.music-card:hover,
.album-row button.music-card:active{
  background:transparent!important;
  border:0!important;
}
.album-row button.music-card .cover{
  box-shadow:0 18px 42px rgba(0,0,0,.24),0 3px 10px rgba(0,0,0,.14)!important;
  border-color:rgba(255,255,255,.16);
  transition:transform .16s ease,box-shadow .16s ease,outline-color .16s ease;
}
.album-row button.music-card:hover .cover{
  transform:translateY(-2px);
  box-shadow:0 22px 48px rgba(0,0,0,.28),0 5px 14px rgba(0,0,0,.16)!important;
}
.album-row button.music-card.selected-album .cover{
  outline:3px solid var(--theme-accent-text)!important;
  outline-offset:4px;
}

/* Album-art labels stay readable over every tartan texture. */
.cover{
  position:relative;
  overflow:hidden;
}
.cover:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:42%;
  background:linear-gradient(to top,rgba(0,0,0,.62),rgba(0,0,0,0));
  pointer-events:none;
}
.cover>span{
  position:relative;
  z-index:1;
  color:#fff;
  text-shadow:0 1px 6px rgba(0,0,0,.9);
}

/* Perfect circular back control with a geometrically centered SVG chevron. */
.backbtn{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:0!important;
  flex:0 0 44px!important;
  overflow:hidden;
}
.backbtn .back-icon{
  display:block;
  width:22px;
  height:22px;
  flex:0 0 22px;
  transform:translateX(-1px);
}

/* Contrast-safe text assignments for all themed surfaces. */
.track-meta,
.filter-hint,
.player-note,
.repeat-status,
.dance-card p,
.playlist-card p,
.music-card p,
.piper-card>span,
.player-info .sub,
.time-row,
.tempo-foot,
.demo-banner p,
.hero-card p,
.volume-head label{
  color:var(--theme-muted-safe)!important;
}
.public .hero p,
.public .section-lede,
.public .feature p,
.pricing-intro,
.signup-lede,
.auth-lede,
.auth-footer,
.prototype-note,
.plan p,
.signup-form p{
  color:var(--theme-public-muted-safe)!important;
}
.eyebrow,
.kicker,
.text-action,
.reset,
.row-title button,
.dance-card .arrow,
.demo-context>span,
.favbtn.active{
  color:var(--theme-accent-text)!important;
}
body,
.app-shell,
.content,
.app-header h1,
.track-title,
.dance-card h3,
.playlist-card h3,
.piper-card strong,
.player-info h1,
.queue-item,
.volume-head output,
.theme-picker,
.theme-picker select,
.search,
.field input{
  color:var(--theme-text)!important;
}
.public,
.pricing,
.public .brand,
.pricing .brand,
.public .hero h1,
.public .section h2,
.pricing-main h1,
.auth-card h1,
.signup-form h1{
  color:var(--theme-public-text)!important;
}

/* Public-surface accent text, independently contrast-audited */
:root[data-theme="highland"]{--theme-public-accent-text:#d2b06b;}
:root[data-theme="midnight"]{--theme-public-accent-text:#7ebdff;}
:root[data-theme="emerald"]{--theme-public-accent-text:#77dfb4;}
:root[data-theme="denim"]{--theme-public-accent-text:#fbfcff;}
:root[data-theme="sage"]{--theme-public-accent-text:#f8faf1;}
:root[data-theme="rose"]{--theme-public-accent-text:#fff9fa;}
:root[data-theme="taupe"]{--theme-public-accent-text:#fffbf4;}
:root[data-theme="heather"]{--theme-public-accent-text:#52365d;}
:root[data-theme="ivory"]{--theme-public-accent-text:#765126;}
:root[data-theme="cream"]{--theme-public-accent-text:#6d5627;}
:root[data-theme="mist"]{--theme-public-accent-text:#355f7f;}
:root[data-theme="linen"]{--theme-public-accent-text:#496541;}
:root[data-theme="heathermist"]{--theme-public-accent-text:#704b75;}
:root[data-theme="quartz"]{--theme-public-accent-text:#87465a;}
:root[data-theme="sandstone"]{--theme-public-accent-text:#7c4f31;}
:root[data-theme="pearl"]{--theme-public-accent-text:#6e5a37;}
:root[data-theme="cloud"]{--theme-public-accent-text:#416d89;}
:root[data-theme="palesage"]{--theme-public-accent-text:#516f4a;}
:root[data-theme="paleblue"]{--theme-public-accent-text:#3b6b93;}
:root[data-theme="blush"]{--theme-public-accent-text:#915769;}
:root[data-theme="lavender"]{--theme-public-accent-text:#735d91;}
:root[data-theme="white"]{--theme-public-accent-text:#294f73;}
:root[data-theme="whiteteal"]{--theme-public-accent-text:#2f6f68;}
:root[data-theme="whitegold"]{--theme-public-accent-text:#7a5b22;}

/* Final text-contrast cleanup for secondary labels and public accents. */
.navbtn,
.mobile-nav button,
.theme-picker label,
.search::placeholder,
.field input::placeholder,
.footer,
.tempo-scale,
.payment-placeholder,
.empty-state,
.dark-cta p{
  color:var(--theme-muted-safe)!important;
}
.footer{
  color:var(--theme-public-muted-safe)!important;
}
.public .eyebrow,
.public .kicker,
.pricing .eyebrow,
.pricing .kicker,
.auth-page .eyebrow,
.auth-page .kicker,
.auth-brand-name,
.public .num{
  color:var(--theme-public-accent-text)!important;
}

/* Mobile player: keep album art subordinate to the playback controls. */
@media(max-width:760px){
  .player-layout .player-art{
    width:min(52vw,220px)!important;
    max-width:220px!important;
    margin:0 auto!important;
    padding:16px;
    font-size:17px;
  }
  .player-layout .player-wrap{gap:16px}
}
@media(max-width:420px){
  .player-layout .player-art{
    width:min(50vw,190px)!important;
    max-width:190px!important;
    padding:14px;
    font-size:16px;
  }
}

/* Mobile app home affordance: restore brand/home link when desktop sidebar is hidden. */
.mobile-app-brand{
  display:none;
}
@media(max-width:760px){
  .mobile-app-brand{
    display:inline-flex;
    position:fixed;
    top:8px;
    left:10px;
    z-index:1001;
    align-items:center;
    gap:8px;
    padding:4px 8px 4px 4px;
    min-height:40px;
    border-radius:10px;
    background:color-mix(in srgb,var(--theme-box) 94%,transparent);
    border:1px solid var(--theme-line);
    color:var(--theme-text)!important;
    font-weight:800;
    letter-spacing:.03em;
    box-shadow:0 5px 18px rgba(0,0,0,.12);
    backdrop-filter:blur(12px);
  }
  .mobile-app-brand:hover{
    background:var(--theme-click-hover)!important;
    border-color:var(--theme-click-border)!important;
  }
  .mobile-app-brand .brand-logo{
    width:32px;
    height:32px;
    flex:0 0 32px;
    border-radius:5px;
  }
  .app-shell>.content{
    padding-top:68px!important;
  }
}

/* Mobile public header: keep all four navigation actions on one line. */
@media(max-width:760px){
  .public .topbar-inner,
  .pricing .topbar-inner{
    padding:10px 14px 10px 14px;
    gap:8px;
  }
  .public .topbar-inner>.brand,
  .pricing .topbar-inner>.brand{
    width:auto;
    max-width:220px;
    min-width:0;
    padding:0;
    font-size:13px;
    line-height:1;
    white-space:nowrap;
    overflow:hidden;
  }
  .public .topbar-inner>.brand .brand-logo,
  .pricing .topbar-inner>.brand .brand-logo{
    width:32px;
    height:32px;
    flex:0 0 32px;
  }
  .public .topnav,
  .pricing .topnav{
    width:100%;
    display:grid;
    grid-template-columns:max-content max-content max-content 1fr;
    align-items:center;
    justify-content:stretch;
    gap:6px;
    margin:0;
    font-size:12px;
  }
  .public .topnav .linkbtn,
  .pricing .topnav .linkbtn,
  .public .topnav .pill,
  .pricing .topnav .pill{
    min-width:0;
    white-space:nowrap;
    line-height:1.15;
  }
  .public .topnav .linkbtn,
  .pricing .topnav .linkbtn{
    padding:9px 4px;
  }
  .public .topnav .pill,
  .pricing .topnav .pill{
    justify-self:end;
    padding:10px 12px;
    font-size:12px;
  }
}
@media(max-width:390px){
  .public .topbar-inner>.brand,
  .pricing .topbar-inner>.brand{
    max-width:205px;
    font-size:12px;
  }
  .public .topnav,
  .pricing .topnav{
    gap:4px;
    font-size:11.5px;
  }
  .public .topnav .pill,
  .pricing .topnav .pill{
    padding:9px 10px;
    font-size:11.5px;
  }
}

/* Mobile home brand should match desktop branding: no surrounding button box. */
@media(max-width:760px){
  .mobile-app-brand{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    border-radius:0!important;
    padding:2px 0!important;
    min-height:36px;
  }
  .mobile-app-brand:hover,
  .mobile-app-brand:active{
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
  }
  .mobile-app-brand .brand-logo{
    border-radius:0!important;
  }
}

/* Mobile home brand: contained so it stays legible over page content. */
@media(max-width:760px){
  .mobile-app-brand{
    background:color-mix(in srgb,var(--theme-box) 96%,transparent)!important;
    border:1px solid var(--theme-line)!important;
    box-shadow:0 5px 18px rgba(0,0,0,.10)!important;
    backdrop-filter:blur(12px)!important;
    border-radius:12px!important;
    padding:5px 10px 5px 6px!important;
    min-height:42px;
  }
  .mobile-app-brand:hover{
    background:var(--theme-click-hover)!important;
    border-color:var(--theme-click-border)!important;
  }
  .mobile-app-brand:active{
    background:var(--theme-click-active)!important;
  }
}

/* Mobile mini-player: add breathing room around the track title and metadata. */
@media(max-width:760px){
  .mini-player{
    height:84px!important;
    padding:10px 14px!important;
    align-items:center;
  }
  .mini-track{
    align-items:center;
  }
  .mini-track .track-title{
    line-height:1.25!important;
  }
  .mini-track .track-meta{
    margin-top:4px;
    line-height:1.3!important;
    font-size:13px;
  }
}

/* Mobile collection selection: leave the first recording visible below fixed top controls. */
@media(max-width:760px){
  .track-list{
    scroll-margin-top:76px;
  }
}

.track-info{cursor:pointer}
.track-info:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px;border-radius:6px}

/* Song-list action buttons: force true circles at every viewport. */
.track .favbtn,
.track .row-add-playlist,
.track .play-sm{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  aspect-ratio:1/1!important;
  flex:0 0 44px!important;
  padding:0!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
.track .favbtn,
.track .row-add-playlist{
  border:1px solid var(--theme-line)!important;
}
@media(max-width:420px){
  .track .favbtn,
  .track .row-add-playlist,
  .track .play-sm{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    flex-basis:40px!important;
  }
}

/* Mini-player artwork must never compress when the song title is long. */
.mini-track .thumb{
  width:50px!important;
  min-width:50px!important;
  max-width:50px!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  flex:0 0 50px!important;
  aspect-ratio:1/1!important;
}
/* Real album artwork (from the media host) inside cover and thumbnail tiles */
.cover.has-image,.thumb.has-image{position:relative;overflow:hidden}
.cover.has-image img,.thumb.has-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.cover.has-image span,.cover.has-image:after{display:none}
.art-stack .cover.has-image{position:absolute}
/* Two-part tunes: per-section tempo under the main BPM */
.tempo-sections{text-align:center;font-size:13px;font-weight:700;color:var(--theme-muted,var(--muted));margin:-4px 0 12px}
.player-note.audio-error{color:#e0796f}

/* Offline downloads */
.offline-banner{background:var(--accent);color:#111;font-weight:800;font-size:14px;padding:10px 14px;border-radius:12px;margin:0 0 18px}
.dl-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px}
.dl-pct{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.dl-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.dl-btn.full{opacity:.45}
.dl-count{color:var(--theme-text,inherit)}
/* Horizontal drags on sliders go straight to the slider instead of waiting to see if the page scrolls */
input[type="range"]{touch-action:pan-y}

/* ---- Compact player (Oct 20): small art with titles beside it; tempo visible without scrolling ---- */
.player-layout .player-wrap{gap:14px}
.player-layout .player-head{display:flex;align-items:center;gap:16px;width:100%}
.player-layout .player-head .player-art{flex:0 0 96px;width:96px;min-width:96px;max-width:96px;height:96px;margin:0;padding:0;border-radius:10px;font-size:11px;box-shadow:none}
.player-layout .player-titles{min-width:0;flex:1}
.player-layout .player-titles .kicker{font-size:11px;line-height:1.3}
.player-layout .player-titles h1{font-size:22px;line-height:1.15;margin:4px 0 3px;overflow-wrap:anywhere}
.player-layout .player-titles .sub{font-size:13px;line-height:1.35;color:var(--theme-muted,var(--muted));margin:0}
.player-layout .big-controls{margin:4px 0 10px}
.player-layout .utility-row{margin:0}
.player-layout .player-info .tempo-box{margin-top:12px;padding:12px 16px}
.player-layout .tempo-main{margin:2px 0 4px;gap:18px}
.player-layout .tempo-number{font-size:32px;line-height:1.1}
.player-layout .tempo-main button{width:40px;height:40px}
.player-layout .tempo-sections{margin:0 0 6px}
.player-layout .tempo-foot{font-size:12px}
/* Volume (where supported) sits above tempo as one compact row: label, slider, value */
.player-layout .player-info .volume-box{margin-top:12px;padding:10px 16px;display:flex;align-items:center;gap:14px}
.player-layout .volume-box .volume-head{display:contents}
.player-layout .volume-box .volume-head label{order:0;margin:0}
.player-layout .volume-box input{order:1;flex:1;min-width:0;margin:0}
.player-layout .volume-box .volume-head output{order:2;min-width:3.2em;text-align:right}
@media(min-width:901px){
  .player-layout .player-head .player-art{flex-basis:140px;width:140px;min-width:140px;max-width:140px;height:140px}
  .player-layout .player-titles h1{font-size:28px}
}
/* Pricing and sign-up (Ken, 2026-11-17): two plans, the founding-member offer, and the trial summary before Stripe. */
.plan-grid.plan-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:860px;margin-left:auto;margin-right:auto}
@media(max-width:760px){.plan-grid.plan-grid-2{grid-template-columns:1fr}}
.founder-note{max-width:640px;margin:4px auto 0;padding:12px 16px;border:1px solid var(--theme-accent,#c1a05d);border-radius:12px;text-align:center;line-height:1.5;color:var(--theme-public-text,#f3efe6)}
.founder-note strong,.plan-save{color:var(--theme-accent,#c1a05d)}
.plan-badge{display:inline-block;margin-bottom:12px;padding:4px 10px;border-radius:999px;background:var(--theme-accent,#c1a05d);color:#14110a;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.plan.plan-founder{border-color:var(--theme-accent,#c1a05d)!important;box-shadow:0 0 0 1px var(--theme-accent,#c1a05d)}
.price-was{font-size:.6em;font-weight:400;margin-left:8px;color:var(--theme-public-muted,#a3ada5)}
.plan>p.plan-tight{margin-bottom:10px}
.plan>p.plan-fine{font-size:13px}
.checkout-summary{margin:18px 0;border:1px solid var(--theme-line,#333);border-radius:12px}
.checkout-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 16px;border-top:1px solid var(--theme-line,#333)}
.checkout-row:first-child{border-top:0}
.checkout-row span:last-child{font-weight:700;text-align:right}
.checkout-row small{display:block;font-weight:400;font-size:12px;color:var(--theme-public-muted,#a3ada5)}
/* Contact (Ken, 2026-11-17): the support address in every page's footer, and a short Contact page. */
.site-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px;font-size:14px;line-height:1.5}
.site-footer a,.app-footer a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.site-footer .linkbtn,.app-footer .linkbtn{color:inherit;text-decoration:underline;text-underline-offset:2px;font:inherit;padding:0;background:none;border:0;cursor:pointer}
@media(max-width:760px){.site-footer{flex-direction:column;align-items:flex-start;gap:6px}}
.footer-reach{white-space:nowrap}
.site-footer .linkbtn,.app-footer .linkbtn{display:inline;line-height:inherit;vertical-align:baseline;min-height:0}
@media(max-width:480px){.footer-q{display:none}}
.app-footer{margin:44px 0 8px;font-size:13px;line-height:1.5;text-align:center;color:var(--theme-muted,var(--muted))}
.contact-main .contact-card{max-width:640px;margin:30px auto 0}
.contact-main .contact-card h2{font-size:18px;margin:0 0 10px}
.contact-cta{text-align:center;margin:22px 0 0}
.contact-main .pricing-intro{text-wrap:balance}
.contact-list li{text-wrap:pretty}
.contact-email{display:inline-flex;margin:0;max-width:100%;white-space:nowrap;text-decoration:none;font-size:clamp(13px,3.9vw,16px)!important;padding-left:18px!important;padding-right:18px!important}
.contact-list{margin:0;padding-left:20px;line-height:1.6;color:var(--theme-public-muted,#a3ada5)}
/* Policy pages and their links (Ken, 2026-11-17): laid out like Contact, with a wider card for reading. */
.policy-main .policy-card{max-width:760px}
.policy-main .policy-card h2{margin:28px 0 8px}
.policy-main .policy-card h2:first-child{margin-top:0}
.policy-main .policy-card p{margin:0 0 8px;line-height:1.6}
.policy-main .contact-list li{margin:0 0 6px}
.policy-main .contact-list a,.policy-main .policy-card p a,.policy-main .prototype-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.policy-date{text-align:center;font-size:14px;margin:-6px 0 0;color:var(--theme-public-muted,#a3ada5)}
.policy-main .linkbtn,.policy-agree .linkbtn{display:inline;color:inherit;text-decoration:underline;text-underline-offset:2px;font:inherit;padding:0;min-height:0;background:none;border:0;cursor:pointer;line-height:inherit;vertical-align:baseline}
.footer-links{display:block}
.site-footer{align-items:flex-start}
/* Analytics consent banner (Ken, 2026-11-17; analytics.js): looks like the site's pop-ups, floats above the player and
   tabs until answered. Both buttons the same size, so saying no is as easy as saying yes. */
.consent-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:1000;width:min(560px,calc(100% - 24px));box-sizing:border-box;padding:18px 20px;border-radius:18px;border:1px solid var(--theme-line,#3a3d44);background:var(--theme-panel2,#202126);color:var(--theme-text,#eee9df);box-shadow:0 12px 40px rgba(0,0,0,.45);font-size:15px;line-height:1.5}
.consent-banner p{margin:0 0 14px}
.consent-banner .linkbtn{display:inline;color:inherit;text-decoration:underline;text-underline-offset:2px;font:inherit;padding:0;min-height:0;background:none;border:0;cursor:pointer}
.consent-actions{display:flex;gap:10px;justify-content:flex-end}
.consent-actions .pill{border-radius:999px!important;min-width:120px;justify-content:center}
.consent-actions .consent-no{background:transparent!important;color:var(--theme-text,#eee9df)!important;border:1px solid var(--theme-line,#3a3d44)!important}
@media(max-width:480px){.consent-actions .pill{flex:1;min-width:0}}
.app-footer .footer-links{margin-top:2px}
/* Demo (Ken, 2026-11-17): the whole library is listed; locked recordings are dimmed with a lock, the free six are tagged. */
.track-list+.kicker{margin-top:26px}
.track.locked .thumb,.track.locked .track-info,.track.locked .meta-extra{opacity:.5}
.track.locked .favbtn,.track.locked .row-add-playlist{opacity:.45}
.track-title .lock-icon{display:inline-block;vertical-align:-2px;margin-right:6px;flex:none}
.free-tag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:var(--theme-accent,var(--accent,#c1a05d));color:#14110a;font-size:11px;font-weight:700;letter-spacing:.03em;vertical-align:1px;text-transform:uppercase}
/* Demo banner: one compact row on phones */
@media(max-width:760px){
  .demo-context{flex-wrap:nowrap;align-items:center;gap:10px;padding:0 0 8px;margin-bottom:12px}
  .demo-context>span{font-size:14px}
  .demo-context .trial-cta{padding:7px 14px;min-height:36px;font-size:13px}
}
/* Phones: the player's back button takes the brand chip's fixed spot; tighter spacing so tempo fits */
@media(max-width:760px){
  .route-player .mobile-app-brand{display:none}
  .route-player .app-header{position:fixed;top:8px;left:10px;z-index:1001;margin:0;padding:0;width:auto}
  .route-player .app-header .track-meta{display:none}
  .route-player .app-header .backbtn{width:44px;height:44px}
  .player-layout .player-wrap{gap:10px}
  .player-layout .player-head{gap:14px}
  .player-layout .player-head .player-art{flex-basis:80px;width:80px;min-width:80px;max-width:80px;height:80px}
  .player-layout .player-titles h1{font-size:20px}
  .player-layout .player-titles .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .player-layout .big-controls{margin:0 0 10px}
  .player-layout .big-controls .bigplay{width:56px;height:56px}
  .player-layout .utility-row .utility{width:40px;height:40px}
  .player-layout .player-info .tempo-box{margin-top:8px;padding:10px 14px}
  .player-layout .tempo-head .reset{font-size:13px;padding:4px 8px;min-height:0}
  .player-layout .tempo-main{margin:0 0 2px}
}
/* Phones: smaller track-list text so each recording takes fewer lines */
@media(max-width:760px){
  .track{padding:8px 4px;gap:10px}
  .track .track-title{font-size:14px;line-height:1.25}
  .track .track-meta{font-size:12px;line-height:1.3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .track .track-info{min-width:0}
}
/* No double-tap zoom on taps (rapid tempo -/+ etc.); pinch-zoom stays available */
html{touch-action:manipulation}
/* iOS zooms into any text field or menu under 16px when tapped; keep them at 16px on phones */
@media(max-width:760px){
  input:not([type="range"]),select,textarea{font-size:16px}
}
/* Playlist artwork uses the tartan patterns instead of a gradient */
.playlist-card .collage.cover{aspect-ratio:auto;height:150px;padding:0;box-shadow:none;width:100%}
.playlist-card .collage.cover:after{display:none}
/* Mini player close (x): small badge on the top-left corner, outside the grid so the title keeps its room */
.mini-player .mini-close{position:absolute;top:5px;left:5px;z-index:3;width:22px;height:22px;min-width:22px;min-height:22px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:color-mix(in srgb,var(--theme-panel2,#1b1f1f) 88%,transparent);border:1px solid var(--theme-line,#333);color:var(--theme-text,#fff);box-shadow:0 2px 6px rgba(0,0,0,.35)}
.mini-player .mini-close svg{width:12px;height:12px}
.mini-player .mini-close::after{content:"";position:absolute;inset:-9px}
@media(max-width:760px){.mini-player .mini-tempo{display:none}}
.mini-player .track-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Woven tartans (Oct 20): generated 2/2-twill tiles, one image pixel per thread, scaled up crisply.
   Source setts and generator: tools/tartan-generator.py */
.cover.a1,.thumb.a1,.art-stack .cover.a1{background:#121417 url(assets/tartan-1.png?v=1) repeat;background-size:220px 220px;image-rendering:pixelated}
.cover.a2,.thumb.a2,.art-stack .cover.a2{background:#121417 url(assets/tartan-2.png?v=1) repeat;background-size:180px 180px;image-rendering:pixelated}
.cover.a3,.thumb.a3,.art-stack .cover.a3{background:#121417 url(assets/tartan-3.png?v=1) repeat;background-size:136px 136px;image-rendering:pixelated}
.cover.a4,.thumb.a4,.art-stack .cover.a4{background:#121417 url(assets/tartan-4.png?v=1) repeat;background-size:172px 172px;image-rendering:pixelated}
.cover.a5,.thumb.a5,.art-stack .cover.a5{background:#121417 url(assets/tartan-5.png?v=1) repeat;background-size:160px 160px;image-rendering:pixelated}
.cover.a6,.thumb.a6,.art-stack .cover.a6{background:#121417 url(assets/tartan-6.png?v=1) repeat;background-size:124px 124px;image-rendering:pixelated}

/* Album covers inside tartan placeholders: the tiles use image-rendering:pixelated, which the <img>
   inherits, so downscaled covers looked blocky on desktop. Smooth scaling for real artwork. */
.cover img,.thumb img{image-rendering:auto}
/* Once a cover's picture is in the tile, plain dark goes behind it instead of the tartan (Ken, 2026-11-15): the tartan
   showed through the tile's thin see-through outline and rounded corners as a speckled fringe. While a cover loads (no
   <img> yet) the tartan still shows. */
.cover.has-image:has(> img),.thumb.has-image:has(> img),.art-stack .cover.has-image:has(> img){background:#121417}

/* Compact player: the round utility and tempo -/+ buttons are 40 px, but the global
   button{min-height:44px} stretched them to 40x44 ovals. Keep them true circles. */
.player-layout .utility-row .utility,.player-layout .tempo-main button{
  min-height:0;min-width:0;aspect-ratio:1/1;flex:0 0 auto;padding:0;
}
.player-layout .tempo-main button{width:40px;height:40px;max-width:40px;max-height:40px}

/* Track rows (Ken, 2026-10-23): no per-row play button; tapping the row plays it. The recording in the
   mini player is highlighted. Hover tint only where a real pointer can hover: on touch screens iOS kept
   :hover on whatever row a scroll started on, so rows looked selected without playing. */
.track{grid-template-columns:46px minmax(0,1fr) auto 44px 44px;cursor:pointer;-webkit-tap-highlight-color:transparent}
@media(max-width:760px){.track{grid-template-columns:38px minmax(0,1fr) 44px 44px}}
@media(max-width:420px){.track{grid-template-columns:minmax(0,1fr) 40px 40px}}
@media(hover:none){.track:hover:not(.current){background:none!important}}
.track.current{background:var(--theme-panel)!important}
.track.current .track-title{color:var(--theme-accent)!important}
.track .now-playing{width:13px;height:13px;margin-right:6px;vertical-align:-1px;color:var(--theme-accent)}

/* "Now playing" bars bounce while music plays (Ken, 2026-10-23); still when paused or for reduced motion. */
.track .now-playing rect{transform-box:fill-box;transform-origin:50% 100%}
.is-playing .track .now-playing rect{animation:np-bounce .45s ease-in-out infinite alternate}
.is-playing .track .now-playing rect:nth-child(2){animation-duration:.35s;animation-delay:-.15s}
.is-playing .track .now-playing rect:nth-child(3){animation-duration:.55s;animation-delay:-.3s}
@keyframes np-bounce{0%{transform:scaleY(.35)}100%{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.is-playing .track .now-playing rect{animation:none}}

/* Tempo card (Ken, 2026-10-23): more room between "Restore original" and the + button, and −/+ as
   centred icons (the text glyphs sat off-centre with Windows fonts). */
.tempo-main button{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:0}
.tempo-main button .tempo-icon{width:18px;height:18px;display:block}
.tempo-box .tempo-head{margin-bottom:10px}

/* Two-part tunes (Ken, 2026-10-25): a row and slider per part, compact enough that both stay visible on a
   phone without scrolling. */
.tempo-box.two-part .tempo-part+.tempo-part{margin-top:6px;padding-top:6px;border-top:1px solid var(--theme-line)}
.tempo-box.two-part .tempo-part-row{justify-content:flex-start;gap:10px;margin:0 0 2px}
.tempo-box.two-part .tempo-part-name{flex:1;min-width:0;font-weight:700;font-size:14px;color:var(--theme-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tempo-box.two-part .tempo-number{font-size:24px;min-width:84px;text-align:center;letter-spacing:-.02em}
.tempo-box.two-part .tempo-number span{font-size:12px!important}
.tempo-box.two-part .tempo-main button{width:34px;height:34px;max-width:34px;max-height:34px}
.tempo-box.two-part .tempo-part-name small{display:block;font-weight:500;font-size:11px;color:var(--theme-muted,#9aa0a6)}
.tempo-box.two-part .tempo-head{margin-bottom:6px}
.tempo-box.two-part .tempo-range{margin:2px 0 0}

/* Trial 2026-10-27: part-change mark on the scrubber (two-part tunes). --f = fraction of the real length.
   The native thumb's centre runs from half a thumb in from each end, so the mark uses the same inset. */
.scrub-wrap{position:relative;--thumb:var(--slider-thumb,16px)}   /* width of the browser's slider dot; app.js sets --slider-thumb */
.scrub-wrap .scrub{width:100%;display:block;margin:0}   /* no UA margin, so the track spans the wrapper exactly */
.part-mark{position:absolute;top:50%;left:calc(var(--thumb) / 2 + var(--f) * (100% - var(--thumb)));width:2px;height:26px;
  transform:translate(-1px,-50%);background:repeating-linear-gradient(to bottom,var(--theme-text,#f0ece3) 0 4px,transparent 4px 7px);opacity:.8;pointer-events:none}
/* The time the second part starts, under the mark (Ken, 2026-11-15); same place along the bar as .part-mark. app.js hides it
   (visibility) where it would touch the clock or the length. */
.time-row{position:relative}
.part-time{position:absolute;top:0;left:calc(var(--slider-thumb,16px) / 2 + var(--f) * (100% - var(--slider-thumb,16px)));
  transform:translateX(-50%);white-space:nowrap;pointer-events:none}
/* Search fields are type="search": keep the site's look, not the browser's. */
.search{-webkit-appearance:none;appearance:none}
.search::-webkit-search-decoration{-webkit-appearance:none}
.search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;width:18px;height:18px;margin-left:8px;cursor:pointer;opacity:.7;
  background:var(--theme-muted,#9aa0a6);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4l10 10M14 4L4 14' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4l10 10M14 4L4 14' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}

/* Add-to-playlist (2026-11-01): a playlist that already has the recording shows a trash can. */
.add-row-icon{display:inline-flex;align-items:center;justify-content:center;min-width:24px}
.add-row-icon svg{display:block;width:19px;height:19px}
.add-row.in-playlist .add-row-icon{color:var(--theme-muted,#969e98)}
.add-row.in-playlist:hover .add-row-icon{color:#dfa29b}
/* Player: which playlist the tempo is saved for. */
.tempo-head .tempo-context{flex:1;min-width:0;margin:0 10px;font-size:12px;font-weight:600;color:var(--theme-muted,#9aa0a6);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-item.add-row{text-align:left}
.modal-item.add-row>span:first-child{flex:1;min-width:0}

/* Piper headshots (2026-11-04) */
/* Rounded squares with the same 12 px corners as the card around them, not circles, and bigger: 80 px, was 56
   (Ken, 2026-11-11). The small copies are made at 192 px, so they stay sharp on high-resolution screens. */
.piper-card .piper-photo{width:80px;height:80px;border-radius:12px;object-fit:cover;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--theme-panel2,#182021);border:1px solid var(--theme-line,#2b3534)}
.piper-card .piper-photo.placeholder .nav-icon{width:28px;height:28px}
/* A selected piper is shown by the card's gold border only, not the photo's (Ken, 2026-11-11). */
/* Playlist editor: name with Rename / Delete (2026-11-04) */
.playlist-head{display:flex;align-items:center;justify-content:space-between;gap:10px 12px;flex-wrap:wrap;margin-bottom:12px}
.playlist-head h2{margin:0;min-width:0;overflow-wrap:anywhere}
.playlist-head-actions{display:flex;gap:8px}
.playlist-head-actions .chip{min-height:36px;padding:6px 14px}
.chip.danger,.pill.danger{color:#e2a49d}
.pill.danger{background:#7a2e2a!important;color:#fff!important;border-color:#7a2e2a!important}
.chip.danger:hover{border-color:#c2726c}
/* Piper cards: name and count on the left, headshot on the right (Ken, 2026-11-04) */
.piper-card{flex-direction:row!important;align-items:center!important;justify-content:space-between;gap:14px}
.piper-card .piper-text{display:flex;flex-direction:column;gap:6px;min-width:0;color:inherit!important;font-size:inherit!important}
.piper-card .piper-text strong{overflow-wrap:anywhere}
.piper-card .piper-count{font-size:14px;color:var(--theme-muted,#9da59f)}
/* Accounts, Stage 1: account page (the sign-in page has its own sign-in.css) */
.side-account{color:inherit;font-size:12px;padding:0;text-decoration:underline}
.account-box{padding:18px;margin-bottom:8px;border:1px solid var(--theme-line,#333);border-radius:14px;background:var(--theme-panel,transparent)}
.account-email{margin:6px 0;font-size:18px;font-weight:700;overflow-wrap:anywhere}
.account-box .filter-hint{margin:0}
.account-devices{display:flex;flex-direction:column;gap:8px}
.account-device{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--theme-line,#333);border-radius:12px}
.account-device-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.account-device-text strong{overflow-wrap:anywhere}
.account-device .chip{flex:none;min-height:40px}
.account-all{margin-top:14px;min-height:44px}
.account-access{margin:6px 0 0!important;font-weight:650}
.account-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.account-buttons .chip{min-height:40px}
/* Admin page (Stage 4) */
.admin-search{display:flex;gap:8px;margin-bottom:12px}
.admin-search input{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--theme-line,#333);border-radius:10px;background:var(--theme-panel2,#182021);color:var(--theme-text,#fff);font:inherit}
.admin-page #admin-status:empty{display:none}
.admin-page #admin-status{color:var(--theme-accent,#c1a05d);font-weight:650}
.admin-row{width:100%;text-align:left;background:none;cursor:pointer}
.admin-more{margin-top:10px;min-height:40px}
.admin-row.is-selected{border-color:var(--theme-accent,#c1a05d)}
/* "Or choose an account" drop-down under the account search (Ken, 2026-11-13, in place of Show all). */
.admin-pick{margin:0 0 14px}
.admin-pick select{width:100%;max-width:420px;min-height:44px;padding:8px 12px;border:1px solid var(--theme-line,#333);border-radius:10px;background:var(--theme-panel2,#182021);color:var(--theme-text,#fff);font:inherit}
.admin-pick select:focus{border-color:var(--theme-accent)}
/* Admin accounts in red (Ken, 2026-11-13). A drop-down can't colour one word, so the whole line is red; phones' own pickers
   (iPhone, most Android) ignore it and show plain text. */
.admin-pick option{color:var(--theme-text,#fff)}
.admin-pick option.is-admin{color:#ff6b61}
.admin-search .chip{flex:none;min-height:44px}
.admin-detail{margin-top:14px}
.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.admin-actions .chip{min-height:40px}
.admin-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em;overflow-wrap:anywhere}
.admin-form{margin-bottom:12px}
.admin-report .field{margin-bottom:12px}
.admin-report .field label{display:block;margin-bottom:6px;font-size:14px}
.admin-report .field input{width:100%;max-width:320px;min-height:44px;padding:8px 12px;border:1px solid var(--theme-line,#333);border-radius:10px;background:var(--theme-panel2,#182021);color:var(--theme-text,#fff);font:inherit;color-scheme:dark}
.admin-money{margin-top:12px;border-top:1px solid var(--theme-line,#333)}
.admin-money-row{display:grid;grid-template-columns:minmax(0,1fr) auto 96px;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--theme-line,#333)}
.admin-money-row>span:last-child{text-align:right;font-variant-numeric:tabular-nums}
.admin-money-row.strong{font-weight:700}
.admin-money-row.small{font-size:13px;color:var(--theme-muted,#9da59f);padding:4px 0;border-bottom:0}
.admin-piper summary{cursor:pointer;list-style:none}
.admin-piper summary::-webkit-details-marker{display:none}
.admin-piper summary .admin-money-row>span:first-child{padding-left:20px}
.admin-piper .admin-money-row.small>span:first-child{padding-left:36px}
.admin-piper-note{padding:4px 0 4px 36px}
.admin-report-note{margin:12px 0 0}
.admin-period{display:flex;flex-wrap:wrap;gap:0 12px}
.admin-period .field{flex:1 1 150px;min-width:0}
.admin-report .field select{width:100%;max-width:320px;min-height:44px;padding:8px 12px;border:1px solid var(--theme-line,#333);border-radius:10px;background:var(--theme-panel2,#182021);color:var(--theme-text,#fff);font:inherit}
.admin-tracks{margin-top:12px}
.admin-tracks-title{cursor:pointer;font-weight:700;padding:6px 0}
.admin-tracks .admin-money-row.small{border-bottom:1px solid var(--theme-line,#333);padding:6px 0}
.admin-kinds{display:flex;gap:18px;margin-bottom:12px}
.admin-kinds label{display:flex;align-items:center;gap:8px;cursor:pointer}
.admin-form .field{margin-bottom:12px}
.admin-form .field label{display:block;margin-bottom:6px;font-size:14px}
.admin-form .field input{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--theme-line,#333);border-radius:10px;background:var(--theme-panel2,#182021);color:var(--theme-text,#fff);font:inherit}
#redeem-status:empty{display:none}
/* Account and admin fields use the theme's panel colour like the search box and pop-up fields; they had the darker
   page colour (Ken, 2026-11-11). */
.admin-search input::placeholder,.admin-report .field input::placeholder,.admin-form .field input::placeholder{color:var(--theme-muted)}
.admin-search input:focus,.admin-report .field input:focus,.admin-report .field select:focus,.admin-form .field input:focus{border-color:var(--theme-accent)}
/* The logo is a wide wordmark that spells HDM itself, so its height sets its size */
.brand-logo{width:auto!important;height:32px!important;max-width:none;flex:0 0 auto!important;object-fit:contain!important;border-radius:0!important;aspect-ratio:auto!important}
.sidebar .brand .brand-logo{height:40px!important}
/* Account button: top right of every app screen; the theme picker moves over beside it */
/* Both scroll away with the page (Ken, 2026-11-05) rather than floating over it */
.mobile-app-brand{position:absolute!important}
.account-circle{position:absolute;top:9px;right:9px;z-index:60;box-sizing:border-box;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;max-width:38px!important;max-height:38px!important;flex:none;padding:0!important;display:flex;align-items:center;justify-content:center;border:1px solid var(--theme-accent,#c1a05d);border-radius:50%!important;background:var(--theme-accent,#c1a05d);color:var(--theme-deep,#0b0f10);font:inherit;font-size:16px;font-weight:800;line-height:1;cursor:pointer}
.account-circle:hover{background:var(--theme-accent-hover,#cfb274)}
.account-circle.active{outline:2px solid var(--theme-text,#fff);outline-offset:2px}
@media (max-width:760px){.account-circle{top:7px;right:7px}}
.account-theme select{width:100%;max-width:320px;min-height:44px;padding:8px 12px;border:1px solid var(--theme-line,#333);border-radius:10px;background:var(--theme-panel2,#222);color:var(--theme-text,#fff);font:inherit}
/* Followed playlists and share codes (Stage 6) */
.share-code{margin:12px 0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:26px;font-weight:800;letter-spacing:.06em;text-align:center;overflow-wrap:anywhere;user-select:all;-webkit-user-select:all}
/* Follow a playlist (Ken, 2026-11-11): the code field full width, typed in the same capitals as the owner's share code,
   one thin border that turns gold when selected; Cancel and Follow together, the same size. */
.modal input.code-input{display:block;width:100%;margin:16px 0 0;padding:12px 14px;border:1px solid var(--theme-line)!important;border-radius:12px;outline:none;box-shadow:none;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:22px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-align:center}
.modal input.code-input:focus,.modal input.code-input:focus-visible{border-color:var(--theme-accent)!important;outline:none;box-shadow:none}
.modal input.code-input::placeholder{font-family:inherit;font-size:16px;font-weight:400;letter-spacing:normal;text-transform:none;color:var(--theme-muted)}
.follow-status:empty{display:none}
.follow-status{margin:8px 0 0}
.follow-actions .chip,.follow-actions .pill{min-height:44px;min-width:96px;padding:10px 20px;border-radius:999px;font-weight:700;justify-content:center}
/* "Playlists" and its link on one line, centred on each other */
.library-section-title{align-items:center!important}
.library-section-title h2,.library-section-title button{margin:0!important;line-height:1.3}
.library-section-title button{padding:0!important}
/* "Follow playlist with a share code" looks like a button: a bordered pill like Rename/Delete (Ken, 2026-11-11). */
.library-section-title{flex-wrap:wrap;gap:10px 12px}   /* on narrow screens the button drops under the heading */
.library-section-title .follow-btn{white-space:nowrap;padding:6px 14px!important;min-height:36px;border:1px solid var(--theme-line,#3a4240)!important;border-radius:999px;
  background:var(--theme-panel2,#182021)!important;cursor:pointer}
.library-section-title .follow-btn:hover{border-color:var(--theme-accent,#c1a05d)!important}
/* New playlist tile, laid out like the playlist cards beside it */
.playlist-card{min-height:0!important;padding:14px!important}
.pluscard{display:block!important;border-style:dashed}
.plus-inner{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:14px;align-items:center;text-align:left;height:100%}
.pluscard .plus-add{justify-self:center}
/* Drawn plus and heart icons (plusIcon/heartIcon in app.js), centred in their round buttons (Ken, 2026-11-11). */
.ico{display:block;flex:none}
.favbtn,.plus-add,.utility[data-action="addPlaylist"],.utility[data-fav],.utility[data-action="repeat"]{display:inline-flex;align-items:center;justify-content:center}
.utility[data-action="repeat"] .ico-repeat{width:22px;height:22px}
.favbtn .ico-heart{width:20px;height:20px}
.utility[data-fav] .ico-heart{width:22px;height:22px}
.utility[data-action="addPlaylist"] .ico-plus{width:22px;height:22px}
.plus-add .ico-plus{width:30px;height:30px}
.plus-text h3{margin:0}
.plus-text p{margin:4px 0 0}
/* Playlist images (Stage 5) */
/* Playlist cards (Ken, 2026-11-05): square picture on one side, name and track count on the other */
.playlist-card[data-playlist]{display:grid!important;grid-template-columns:96px minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;column-gap:14px;align-items:center;text-align:left;width:100%}
.playlist-card[data-playlist] .collage.cover{grid-column:1;grid-row:1/5;width:96px;height:96px;aspect-ratio:1/1;margin:0;border-radius:10px}
.playlist-card[data-playlist] h3{grid-column:2;grid-row:2;margin:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.playlist-card[data-playlist] p{grid-column:2;grid-row:3;margin:4px 0 0}
.collage.has-image{overflow:hidden}
.collage.has-image img{width:100%;height:100%;object-fit:cover;display:block;image-rendering:auto}
.playlist-head-actions{flex-wrap:wrap}
.playlist-image-status:empty{display:none}
.crop-view{position:relative;width:100%;max-width:320px;aspect-ratio:1/1;margin:12px auto;overflow:hidden;border-radius:12px;background:#000;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.crop-view:active{cursor:grabbing}
.crop-view img{position:absolute;left:0;top:0;max-width:none;width:auto;height:auto;transform-origin:0 0;pointer-events:none;image-rendering:auto;-webkit-user-drag:none}
.crop-zoom-row{display:flex;align-items:center;gap:12px;max-width:320px;margin:0 auto 12px}
.crop-zoom-row input{flex:1;min-width:0}

/* The wide HDM logo left too little room for the site's name on phones, which cut off its ".com" (the nav wraps to its own line there). */
@media(max-width:760px){
  .public .topbar-inner>.brand,
  .pricing .topbar-inner>.brand{max-width:100%;overflow:visible}
}

/* The floating theme picker this space was kept for only exists without accounts; it was crushing the nav on tablets and small windows. */
@media(min-width:761px){
  .public .topbar-inner,
  .pricing .topbar-inner{padding-right:24px}
  .public .topnav button,
  .pricing .topnav button{white-space:nowrap}
}

/* Buttons (Ken, 2026-11-13): rounded rectangles on the public pages (front page, pricing, sign-up); pills everywhere once
   you're in the site (every app screen, Account, Admin and pop-ups), so a rectangle never sits next to a pill. Icon
   buttons are circles. Cards and the navigation tabs aren't buttons and keep their corners. */
.app-shell .pill,#modal-root .pill,
.app-shell .reset,
.app-shell .text-action,#modal-root .text-action:not(.playlist-track),
.app-shell .row-title button{border-radius:999px!important}
.app-shell .playlist-control,#modal-root .playlist-control{border-radius:50%!important;aspect-ratio:1/1;height:auto;min-height:0}

/* Admin: an account's minutes listened, and the listening log's dates (Ken, 2026-11-13). The four figures drop to fewer
   columns when a label would wrap (fitGrids in app.js). */
.admin-listening-title{margin:14px 0 8px}
.admin-listening{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}
.admin-listening>div{background:var(--theme-click,#1d2526);border:1px solid var(--theme-line,#333);border-radius:12px;padding:10px 12px}
.admin-listening strong{display:block;font-size:18px;white-space:nowrap}
.admin-listening small{display:block;color:var(--theme-muted,#aab1ac);font-size:13px}
.admin-log-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 14px}
.admin-log-dates .field{margin:0}

/* Admin sections fold away (Ken, 2026-11-13); the event log and recent listening rows. */
.admin-section{border-top:1px solid var(--theme-line,#333)}
.admin-section:last-of-type{border-bottom:1px solid var(--theme-line,#333)}
.admin-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 4px;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.admin-section>summary::-webkit-details-marker{display:none}
.admin-section>summary h2{margin:0;font-size:20px}
.admin-chevron{width:22px;height:22px;flex:none;color:var(--theme-muted,#aab1ac);transition:transform .15s}
.admin-section[open]>summary .admin-chevron{transform:rotate(180deg)}
.admin-section-body{padding:0 0 18px}
.admin-events{display:flex;flex-direction:column}
/* Long result lists scroll inside a box of their own (Ken, 2026-11-13): the logs, shared playlists, account search results
   and an account's activity and shared playlists. Short lists don't reach the height and look the same, just boxed. */
.admin-events,.admin-scroll{max-height:min(520px,62vh);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--theme-line,#333);border-radius:12px;padding:0 12px}
.account-devices.admin-scroll{padding:8px;gap:8px}
.admin-event{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-bottom:1px solid var(--theme-line,#333)}
.admin-event:last-child{border-bottom:0}
.admin-event-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.admin-event-main .track-meta{overflow-wrap:anywhere}
.admin-event-side{text-align:right;white-space:nowrap}
.admin-count{color:var(--theme-accent,#c1a05d);font-weight:700}
.admin-ev-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
.admin-ev-filters .field{margin:0}
.admin-ev-filters select,.admin-ev-filters input{width:100%}
.admin-activity{margin:6px 0 14px}
.admin-activity>summary{cursor:pointer;margin:8px 0}
.delete-confirm-label{display:block;margin:14px 0 6px;font-weight:700}
/* Admin: email suggestions under a log filter's email box (Ken, 2026-11-13). */
.admin-suggest-wrap{position:relative}
.admin-suggest{position:absolute;left:0;right:0;top:100%;z-index:30;margin-top:4px;padding:4px;max-height:300px;overflow:auto;background:var(--theme-panel,#1d2526);border:1px solid var(--theme-line,#333);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.35)}
.admin-suggest-item{display:block;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--theme-text,#eee);font:inherit;cursor:pointer;overflow-wrap:anywhere}
.admin-suggest-item:hover,.admin-suggest-item.active{background:var(--theme-click,#263031)}
.admin-active-codes{margin-top:4px}
.account-device-text .track-meta+.track-meta{display:block}
/* Shared playlists (Ken, 2026-11-13): each one opens to list its recordings and tempos. */
.admin-share{border-bottom:1px solid var(--theme-line,#333)}
.admin-share:last-child{border-bottom:0}
.admin-share>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 22px;gap:12px;align-items:start;padding:10px 0;cursor:pointer;list-style:none}
.admin-share>summary::-webkit-details-marker{display:none}
.admin-share>summary .admin-chevron{width:20px;height:20px;margin-top:2px}
.admin-share[open]>summary .admin-chevron{transform:rotate(180deg)}
.admin-share-tracks{margin:0 0 12px;padding:4px 12px;border-radius:12px;background:var(--theme-click,#1d2526)}
.admin-share-track{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--theme-line,#333)}
.admin-share-track:last-child{border-bottom:0}
.admin-share-num{color:var(--theme-muted,#aab1ac);font-size:13px}
.admin-share-title{display:flex;flex-direction:column;min-width:0}
.admin-share-bpm{text-align:right;white-space:nowrap}
/* Active / Deleted mark and the "Include deleted shared playlists" box (Ken, 2026-11-13). */
.admin-share-status{display:inline-block;margin-bottom:3px;padding:1px 9px;border:1px solid currentColor;border-radius:999px;font-size:12px;font-weight:700;line-height:1.5}
.admin-share-status.is-active{color:var(--theme-accent,#c1a05d)}
.admin-share-status.is-deleted{color:var(--theme-muted,#aab1ac)}
.admin-share-status.is-stopped{color:#d9a46a}
.admin-check{display:inline-flex;align-items:center;gap:8px;margin:2px 0 12px;cursor:pointer}
.admin-check input{width:18px;height:18px;margin:0;accent-color:var(--theme-accent,#c1a05d)}
@media(max-width:520px){
  .admin-share>summary{grid-template-columns:minmax(0,1fr) 22px}
  .admin-share>summary .admin-event-side{grid-column:1;text-align:left}
  .admin-share>summary .admin-chevron{grid-column:2;grid-row:1}
  .admin-share-track{grid-template-columns:20px minmax(0,1fr)}
  .admin-share-bpm{grid-column:2;text-align:left;white-space:normal}
}
/* Income and shares on phones (Ken, 2026-11-13): each contributor's name keeps its own line, with its share of minutes in
   small grey text underneath and the amount on the right; Period and Month stack (Month ran past the card's edge). */
@media(max-width:520px){
  .admin-period{flex-wrap:wrap}
  .admin-period>.field{flex:1 1 100%;min-width:0}
  .admin-piper .admin-money-row{grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
  .admin-piper .admin-money-row>span:nth-child(1){grid-column:1;grid-row:1}
  .admin-piper .admin-money-row>span:nth-child(2){grid-column:1;grid-row:2;padding-left:20px;color:var(--theme-muted,#aab1ac);font-size:13px;text-align:left}
  .admin-piper .admin-money-row>span:nth-child(3){grid-column:2;grid-row:1 / span 2;align-self:center;text-align:right}
}
@media(max-width:520px){.admin-ev-filters{grid-template-columns:1fr}.admin-event{grid-template-columns:1fr}.admin-event-side{text-align:left}}
/* Account menu (Ken, 2026-11-17): the letter circle opens a small menu (email, Account, Admin page, Sign out). In the app the
   circle sits top right as before; on the public pages it follows "Open library" in the header. */
.account-wrap{position:absolute;top:9px;right:9px;z-index:60}
.account-wrap .account-circle{position:static}
@media (max-width:760px){.account-wrap-app{top:7px;right:7px}}
.account-wrap-public{position:relative;top:auto;right:auto;z-index:30;flex:none}
.account-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:210px;max-width:min(300px,calc(100vw - 24px));padding:6px;border:1px solid var(--theme-line,#333);border-radius:14px;background:var(--theme-panel2,#1b2122);color:var(--theme-text,#fff);box-shadow:0 14px 34px rgba(0,0,0,.32);text-align:left}
.account-menu[hidden]{display:none}
.account-menu-email{padding:8px 12px 10px;margin-bottom:4px;border-bottom:1px solid var(--theme-line,#333);color:var(--theme-muted,#aab1ac);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu .account-menu-item{display:block;width:100%;min-height:40px;padding:9px 12px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:inherit!important;font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer}
.account-menu .account-menu-item:hover,.account-menu .account-menu-item:focus-visible{background:color-mix(in srgb,var(--theme-accent,#c1a05d) 16%,transparent)!important;outline:none}
.public .account-menu,.pricing .account-menu{border-color:var(--theme-line,#ddd);background:var(--theme-public-panel,#fff);color:var(--theme-public-text,#17181a)}
.public .account-menu-email,.pricing .account-menu-email{border-color:var(--theme-line,#ddd);color:var(--theme-public-muted-safe,var(--theme-public-muted,#666))}
@media(max-width:760px){
  .public .topnav:has(.account-wrap),.pricing .topnav:has(.account-wrap){grid-template-columns:max-content max-content 1fr max-content}
  .account-wrap-public .account-circle{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;max-height:34px!important;font-size:15px}
}
