/* La composición del dashboard sigue la propuesta pastel aprobada. */
body.private #main:has(.kp-dashboard){max-width:none;width:100%;padding:22px clamp(22px,3vw,52px) 56px;margin:0;background:radial-gradient(circle at 64% 0,#fff6ea,#fffaf2 60%)}
.kp-dashboard{width:100%;max-width:1500px;margin:auto;color:#513d33}
.kp-dash-top{display:flex;align-items:center;min-height:45px;margin-bottom:12px}
.kp-dash-preview{display:inline-block;padding:8px 14px;background:#fff1df;border:1px solid #eed6bb;border-radius:99px;color:#986b55;font-size:10px}
.kp-dash-welcome{min-height:335px;position:relative;overflow:hidden;padding:33px 42px 45px;border-radius:27px;border:2px solid #fff9;background:radial-gradient(circle at 70% 45%,#ffdebf,#ffd0b8 48%,#f6b9aa);box-shadow:0 8px 0 #dcbfae,0 16px 24px #81664a20}
.kp-dash-welcome:before{content:'';position:absolute;right:8%;top:-120px;width:360px;height:360px;border:1px solid #fff8;border-radius:50%}
.kp-dash-welcome:after{content:'';position:absolute;right:-34px;bottom:-58px;width:140px;height:140px;border-radius:50%;background:#fff3dd7a}
.kp-dash-welcome-copy{position:relative;z-index:2;max-width:56%}
.kp-dash-welcome .eyebrow{font-size:10px;color:#a75e4b;letter-spacing:.15em}
.kp-dash-welcome h1{font:600 clamp(36px,3.2vw,53px)/1.02 KindomyFredoka,Poppins,sans-serif;color:#65463c;letter-spacing:-.035em;margin:14px 0 10px}
.kp-dash-welcome h1 em{font-style:normal;color:#ad655b}
.kp-dash-welcome-copy>p:last-of-type{color:#76584f;font-size:13px;line-height:1.55;max-width:375px}
.kp-dash-welcome .kp-dash-playall{position:relative;z-index:3;display:inline-flex;align-items:center;gap:10px;margin-top:18px;padding:11px 17px;min-height:46px;background:#f18f76;color:white;font-size:12px}
.kp-dash-playall .icon{width:16px;height:16px}
.kp-dash-tomi{position:absolute;right:8%;bottom:-145px;height:420px;width:auto;z-index:1;filter:drop-shadow(0 10px 10px #a4706850)}
.kp-dash-note{position:absolute;right:20px;top:17px;z-index:3;background:#fff6e9;border:1px dashed #d9aa92;padding:8px 12px;border-radius:13px;color:#9b705e;font:600 16px KindomyFredoka,Poppins,sans-serif;transform:rotate(5deg);box-shadow:0 5px 7px #9d665b30}
.kp-dash-spark{position:absolute;right:39%;top:31px;color:#e98a6d;font-size:31px;transform:rotate(-18deg)}
.kp-dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:25px 0 22px}
.kp-dash-metric{position:relative;overflow:hidden;display:block;min-width:0;min-height:148px;padding:17px;border-radius:22px;border:2px solid #fff9;box-shadow:0 6px 0 #dccdbf,0 12px 17px #745d4d17;color:#473d35}
.kp-dash-metric:after{content:'';position:absolute;width:110px;height:110px;border-radius:50%;right:-38px;top:-45px;background:#fff5}
.kp-dash-metric.mint{background:#dcebe2}.kp-dash-metric.peach{background:#fbd8ca}.kp-dash-metric.butter{background:#fce8bc}.kp-dash-metric.lavender{background:#e8dff0}
.kp-dash-metric-icon{display:grid;place-items:center;width:42px;height:42px;background:#fffaf2;border-radius:13px;box-shadow:0 4px 0 #ac99817a;position:relative;z-index:1;color:#60a99b}
.kp-dash-metric.peach .kp-dash-metric-icon{color:#e58c70}.kp-dash-metric.butter .kp-dash-metric-icon{color:#d9a44b}.kp-dash-metric.lavender .kp-dash-metric-icon{color:#a387bf}
.kp-dash-metric .icon{width:22px;height:22px}.kp-dash-metric small{display:block;margin-top:10px;font-size:11px;font-weight:600}.kp-dash-metric strong{display:block;margin-top:2px;font:600 30px/1.1 KindomyFredoka,Poppins,sans-serif;color:#493b34}.kp-dash-metric strong em{font:600 11px Poppins,sans-serif;margin-left:5px;font-style:normal;vertical-align:middle}.kp-dash-metric p{color:#826e61;font-size:10px;margin:5px 0 0}
.kp-dash-lower{display:grid;grid-template-columns:1.04fr .96fr;gap:18px}
.kp-dash-panel{min-width:0;min-height:304px;padding:20px 22px;border-radius:24px;border:1px solid #eddbc6;background:#fff7ea;box-shadow:0 7px 0 #e7d8c7,0 12px 21px #79634f19}
.kp-dash-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:13px}
.kp-dash-panel-head .eyebrow{font-size:9px;color:#a17b64}.kp-dash-panel-head h2{font:600 24px KindomyFredoka,Poppins,sans-serif;color:#493b34;margin:5px 0 0}
.kp-dash-demo-chip{background:#fbe4be;border-radius:99px;padding:7px 10px;font-size:9px;color:#b08052;white-space:nowrap}
.kp-dash-tracks{display:grid;gap:7px}
.kp-dash-track{width:100%;display:flex;align-items:center;gap:10px;min-height:47px;border:0;border-bottom:1px solid #eddccc;background:transparent;text-align:left;padding:6px 4px;color:#513f36;cursor:pointer}
.kp-dash-track.featured{min-height:68px;padding:9px 11px;border:1px solid #edcbb8;border-radius:15px;background:#ffecdc}
.kp-dash-track:hover{background:#ffefe2;border-radius:12px}
.kp-dash-track-icon{flex:none;display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#e0ebe1;color:#61a79c}.kp-dash-track:nth-child(2) .kp-dash-track-icon{background:#e8ddf0;color:#a388b8}.kp-dash-track:nth-child(3) .kp-dash-track-icon{background:#fbe7b8;color:#d4a44a}.kp-dash-track-icon .icon{width:19px;height:19px}
.kp-dash-track-copy{flex:1;min-width:0}.kp-dash-track-copy strong,.kp-dash-track-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kp-dash-track-copy strong{font:600 13px KindomyFredoka,Poppins,sans-serif}.kp-dash-track-copy small{font-size:9px;color:#927d6c}
.kp-dash-track-time{font-size:9px;color:#a48c79}.kp-dash-track-play{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;border:1px solid #e4cbbb;background:#fff8ec;color:#6ab2a8;box-shadow:0 2px 0 #d9c7b5}.kp-dash-track-play .icon{width:15px;height:15px}
.kp-dash-track.featured .kp-dash-track-play{width:37px;height:37px;background:#ee8d77;color:#fff;border:2px solid #fff;outline:1px dashed #fff8;outline-offset:-5px;box-shadow:0 3px 0 #bd7662}
.kp-dash-wave{display:flex;align-items:center;gap:2px;height:22px;margin-top:3px}.kp-dash-wave i{width:2px;height:var(--h);border-radius:3px;background:#ed8e7c}.kp-dash-wave i:nth-child(3n){background:#65bbb1}
.kp-dash-more{display:inline-flex;gap:6px;align-items:center;margin-top:10px;color:#34867d;font-size:10px;font-weight:600}.kp-dash-more .icon{width:15px;height:15px}
.kp-dash-deco{font-size:27px;color:#e0ab5a}.kp-dash-cover{position:relative;display:block;overflow:hidden;height:205px;border-radius:18px;background:#c6d9c1}.kp-dash-cover img{width:100%;height:100%;object-fit:cover;object-position:center 45%}.kp-dash-cover>span{position:absolute;inset:auto 0 0;padding:35px 15px 12px;color:#fff;background:linear-gradient(transparent,#283a38c7)}.kp-dash-cover strong{display:block;font:600 20px KindomyFredoka,Poppins,sans-serif}.kp-dash-cover small{font-size:10px}.kp-dash-story-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;color:#967e6b;font-size:10px}.kp-dash-story-bottom .btn{padding:8px 13px;font-size:10px;min-height:37px}.kp-dash-story-bottom .icon{width:14px;height:14px}
.kp-dash-calendar{margin-top:31px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 26px;border-radius:22px;background:#deebe3;box-shadow:0 5px 0 #c4d7c9}.kp-dash-calendar h2{font:600 25px KindomyFredoka,Poppins,sans-serif;margin:6px 0}.kp-dash-calendar p:last-child{font-size:11px}.kp-dash-fine{margin-top:25px;font-size:10px}
body.private #main:has(.kp-dashboard) .music-view-switch{margin:0 0 12px auto}
body.private #sidebar:has(.kp-sidebar-logo){padding-top:15px}.kp-sidebar-logo{display:block;height:83px;padding:6px 13px 0}.kp-sidebar-logo img{width:157px;height:auto}
body.private #sidebar:has(.kp-sidebar-logo) .sidebar-profile{margin-top:0}
.kp-mobile-logo{display:none}.kp-home-header-title{min-width:0;width:200px}.kp-home-header-title span{display:block;color:#a77865;font-size:10px;font-weight:600;letter-spacing:.14em}.kp-home-header-title strong{display:block;color:#5b4137;font:600 19px KindomyFredoka,Poppins,sans-serif;line-height:1.1;margin-top:5px}
@media(max-width:1100px){.kp-dash-tomi{right:0}.kp-dash-welcome-copy{max-width:63%}.kp-dash-metrics{gap:10px}.kp-dash-metric{padding:13px}.kp-dash-metric strong{font-size:25px}}
@media(max-width:1200px){.kp-home-header-title{display:none}.kp-mobile-logo{display:block}.kp-mobile-logo img{display:block;width:125px;height:auto}}
@media(max-width:850px){.kp-dash-lower{grid-template-columns:1fr}.kp-dash-welcome{min-height:335px}.kp-dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){body.private #main:has(.kp-dashboard){padding:14px 14px 34px}.kp-sidebar-logo{display:none}.kp-dash-top{min-height:32px}.kp-dash-welcome{min-height:340px;padding:26px 20px 37px}.kp-dash-welcome-copy{max-width:100%}.kp-dash-welcome h1{font-size:35px;max-width:270px}.kp-dash-welcome-copy>p:last-of-type{max-width:255px;font-size:11px}.kp-dash-tomi{height:265px;right:-25px;bottom:-93px}.kp-dash-note{right:7px;top:10px;font-size:11px}.kp-dash-playall{font-size:10px!important}.kp-dash-metrics{margin:18px 0;gap:10px}.kp-dash-metric{min-height:141px;padding:12px}.kp-dash-metric strong{font-size:25px}.kp-dash-metric strong em{font-size:9px}.kp-dash-panel{padding:18px}.kp-dash-panel-head h2{font-size:21px}.kp-dash-cover{height:175px}.kp-dash-calendar{display:block}.kp-dash-calendar .btn{margin-top:12px}}
.kp-dash-calendar-section{margin-top:30px}.kp-calendar-intro{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 18px}.kp-calendar-intro .eyebrow,.kp-calendar-panel .eyebrow{font-size:10px;letter-spacing:.14em;color:#a87865;margin:0 0 6px}.kp-calendar-intro h2{font:600 28px KindomyFredoka,Poppins,sans-serif;color:#593d39;margin:0 0 4px}.kp-calendar-intro p:last-child{font-size:13px}.kp-calendar-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}.kp-calendar-panel{min-height:360px;padding:23px;border:2px solid #fff;border-radius:23px;background:#fff8ed;box-shadow:0 6px 0 #e8d8c7,0 12px 20px #74625220}.kp-calendar-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.kp-calendar-top h3,.kp-plan-panel h3{font:600 21px KindomyFredoka,Poppins,sans-serif;color:#523b40;margin:0}.kp-calendar-controls{display:flex;gap:6px}.kp-calendar-controls button{width:37px;height:37px;border:1px solid #e1d0bd;border-radius:11px;background:#fffdf9;font-size:24px;line-height:1}.kp-calendar-weekdays,.kp-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.kp-calendar-weekdays{margin:20px 0 5px;color:#a48675;font-size:11px;font-weight:700}.kp-calendar-days button{height:38px;border-radius:10px;font-size:13px;position:relative}.kp-calendar-days button:hover{background:#fff0df}.kp-calendar-days button.selected{background:#70b7b0;color:#fff;font-weight:700;box-shadow:0 3px 0 #4b8e88}.kp-calendar-days button.today:not(.selected){border:1px solid #dc9884}.kp-calendar-days button.has-event:after{content:'';position:absolute;bottom:4px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#f18d7c}.kp-calendar-hint,.kp-plan-note{font-size:11px;margin-top:13px}.kp-plan-panel{background:#fff2ed}.kp-plan-panel h3{margin-bottom:17px}.kp-plan-item{display:flex;align-items:center;gap:12px;background:#fffaf4;border:1px solid #f0d9c8;border-radius:14px;margin-bottom:9px;padding:10px}.kp-plan-item>span{width:37px;height:37px;border-radius:11px;background:#e1eee5;color:#4f9c9b;display:grid;place-items:center;font-size:20px}.kp-plan-item strong,.kp-plan-item small{display:block}.kp-plan-item strong{font-size:13px;color:#503c40}.kp-plan-item small{font-size:11px;color:#8b736d}.kp-plan-panel .btn{margin-top:13px}.kp-dash-track[data-playing=true] .kp-dash-wave i{animation:kp-wave .8s ease-in-out infinite alternate;animation-delay:calc(var(--h) * -15ms)}@keyframes kp-wave{to{transform:scaleY(.48)}}@media(max-width:800px){.kp-calendar-grid{grid-template-columns:1fr}.kp-calendar-panel{min-height:0}}@media(max-width:650px){.kp-calendar-intro{align-items:start;flex-direction:column}.kp-calendar-panel{padding:17px}.kp-calendar-days button{height:36px}}@media(prefers-reduced-motion:reduce){.kp-dash-track[data-playing=true] .kp-dash-wave i{animation:none}}

/* Calendar legibility and the colorful activity badges from the approved mockup. */
.kp-calendar-weekdays{font-size:13px;gap:7px}
.kp-calendar-weekdays span{display:grid;place-items:center;min-height:27px}
.kp-calendar-days{gap:7px}
.kp-calendar-days button{display:grid;place-items:center;min-width:0;height:45px;padding:0;border:0;font:600 17px/1 KindomyFredoka,Poppins,sans-serif;color:#62483f;text-align:center}
.kp-calendar-days button.selected{color:#fff}
.kp-calendar-days button:focus-visible{outline:3px solid #755ec6;outline-offset:2px}
.kp-plan-panel{position:relative;background:#fff1eb}
.kp-plan-heading-icon{position:absolute;right:20px;top:20px;display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#f9d6cd;box-shadow:0 3px 0 #e9aa9e;font-size:23px}
.kp-plan-item{min-height:61px;background:#fff9f1}
.kp-plan-item>span{flex:none;width:42px;height:42px;border-radius:12px;background:#e4f1e8;box-shadow:0 3px 0 #bbd8c7;font-size:23px;line-height:1}
.kp-plan-item:nth-child(4n + 1)>span{background:#fce0d2;box-shadow:0 3px 0 #e9baa8}
.kp-plan-item:nth-child(4n + 2)>span{background:#ece2f6;box-shadow:0 3px 0 #cdbbe3}
.kp-plan-item:nth-child(4n + 3)>span{background:#fcebbd;box-shadow:0 3px 0 #e8d49a}
.kp-plan-item:nth-child(4n + 4)>span{background:#ddf0e6;box-shadow:0 3px 0 #b8d8c6}
@media(max-width:650px){.kp-calendar-weekdays,.kp-calendar-days{gap:3px}.kp-calendar-days button{height:40px;font-size:16px}.kp-plan-heading-icon{right:15px;top:15px}}

/* The highlighted home track follows the actual player, including paused progress. */
.kp-dash-track:not(.featured) .kp-dash-wave{display:none}
.kp-dash-wave{position:relative;display:block;width:max-content;max-width:100%;height:22px;margin-top:4px;overflow:hidden}
.kp-dash-wave-base,.kp-dash-wave-fill{display:flex;align-items:center;gap:2px;height:22px}
.kp-dash-wave-base i{background:#d9d5d0!important}
.kp-dash-wave-fill{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--played,0%)) 0 0)}
.kp-dash-track.is-selected{border-color:#75bdb5;box-shadow:0 4px 0 #b9d8d0}
.kp-dash-track:focus-visible{outline:3px solid #755ec6;outline-offset:3px}
