:root {
  --white:#ffffff;
  --paper:#fbfaf7;
  --gold:#d4ac5f;
  --gold-deep:#8b6228;
  --gold-soft:#f5ead1;
  --blue:#393a86;
  --blue-deep:#27285f;
  --blue-soft:#ececf7;
  --ink:#24211f;
  --muted:#716c67;
  --line:#e7e2d9;
  --line-blue:rgba(57,58,134,.16);
  --panel:#ffffff;
  --danger:#a64f45;
  --radius:24px;
  --shadow:0 18px 55px rgba(73,58,35,.09);
  --shadow-soft:0 8px 28px rgba(73,58,35,.07);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--white);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow-x:hidden;background:linear-gradient(180deg,#fff 0%,#fff 72%,#fbfaf7 100%)}
button,input{font:inherit}button{cursor:pointer}
img{max-width:100%;display:block}
.screen{position:fixed;inset:0;display:none;z-index:50}.screen.active{display:grid}

/* START */
.start-screen{place-items:center;padding:24px;background:
  radial-gradient(circle at 18% 10%,rgba(212,172,95,.12),transparent 28%),
  radial-gradient(circle at 82% 92%,rgba(57,58,134,.09),transparent 30%),
  #fff;overflow:hidden}
.start-screen:before,.start-screen:after{content:"";position:absolute;left:-12vw;width:124vw;height:1px;background:var(--blue);opacity:.24;transform:rotate(-3deg)}
.start-screen:before{bottom:20%;box-shadow:0 16px 0 rgba(57,58,134,.32),0 32px 0 rgba(57,58,134,.22)}
.start-screen:after{bottom:15%;box-shadow:0 14px 0 rgba(57,58,134,.22);opacity:.12}
.start-card{position:relative;z-index:2;width:min(620px,100%);text-align:center;padding:40px 34px 34px;border:1px solid var(--line);border-radius:34px;background:rgba(255,255,255,.94);box-shadow:0 28px 85px rgba(91,69,39,.12)}
.start-logo{width:min(330px,78vw);margin:0 auto 8px;filter:drop-shadow(0 18px 28px rgba(0,0,0,.08))}
.start-copy{margin-top:-8px}.start-card h1{margin:7px 0 3px;font-size:clamp(2rem,6.2vw,4.4rem);line-height:.94;letter-spacing:-.045em}.start-card p{color:var(--blue);font-weight:700;margin:9px 0 27px}.eyebrow{display:inline-block;color:var(--gold-deep);font-size:.7rem;letter-spacing:.16em;font-weight:900}
.primary-btn,.install-btn{border:0;background:var(--blue);color:#fff;font-weight:900;letter-spacing:.08em;border-radius:999px;padding:15px 28px;box-shadow:0 10px 25px rgba(57,58,134,.18);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.primary-btn{min-width:190px;border:2px solid rgba(212,172,95,.75)}.primary-btn:hover,.install-btn:hover{transform:translateY(-2px);background:var(--blue-deep);box-shadow:0 14px 32px rgba(57,58,134,.23)}

/* INTRO */
.intro-screen{place-items:center;background:#fff;overflow:hidden}.intro-screen video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;background:#fff;opacity:0;transition:opacity .2s ease}.intro-screen video.is-ready{opacity:1}.skip-intro{position:absolute;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:4;color:var(--blue);background:rgba(255,255,255,.9);border:1px solid var(--line-blue);padding:9px 14px;border-radius:999px;font-size:.72rem;font-weight:900;letter-spacing:.09em;box-shadow:var(--shadow-soft)}
.intro-fallback{position:absolute;inset:0;display:grid;place-items:center;z-index:1;background:#fff;overflow:hidden}.intro-logo{width:min(440px,74vw);animation:introLogo 2s ease both}.intro-wave{position:absolute;width:140vw;height:2px;left:-20vw;background:var(--blue);border-radius:50%;opacity:.25;animation:waveDrift 2s ease-in-out infinite alternate}.wave-one{bottom:28%;box-shadow:0 18px 0 rgba(57,58,134,.55),0 36px 0 rgba(57,58,134,.35);transform:rotate(-3deg)}.wave-two{bottom:20%;opacity:.12;box-shadow:0 14px 0 var(--blue);transform:rotate(2deg)}
@keyframes introLogo{0%{opacity:0;transform:scale(.95)}45%{opacity:1;transform:scale(1)}100%{opacity:1;transform:scale(1.015)}}@keyframes waveDrift{to{transform:translateX(4vw) rotate(-1deg)}}

/* SHELL */
.app-shell{min-height:100svh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;padding:22px 18px;border-right:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(18px);display:flex;flex-direction:column;z-index:20}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 6px 20px;border-bottom:1px solid var(--line)}.sidebar-logo{width:72px;height:72px;object-fit:contain;border-radius:16px}.sidebar-brand strong{display:block;font-size:.95rem;line-height:1.08;letter-spacing:-.015em}.sidebar-brand small{display:block;margin-top:5px;color:var(--blue);font-weight:700;font-size:.72rem}
.desktop-nav{display:grid;gap:8px;margin-top:22px}.nav-btn{appearance:none;width:100%;display:flex;align-items:center;gap:12px;border:1px solid transparent;color:var(--muted);background:transparent;text-align:left;padding:12px 13px;border-radius:16px;font-weight:850;transition:.18s ease}.nav-btn:hover{background:var(--paper);color:var(--ink);border-color:var(--line)}.nav-btn.active{color:var(--blue-deep);background:linear-gradient(90deg,var(--gold-soft),rgba(236,236,247,.62));border-color:rgba(212,172,95,.34)}.nav-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px}.pwa-status{margin-top:auto;font-size:.7rem;color:var(--muted);border-top:1px solid var(--line);padding:16px 6px 0}
.main-content{margin-left:270px;min-height:100svh;padding:0 34px 58px}.topbar{position:sticky;top:0;z-index:15;min-height:98px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -8px 22px;padding:14px 8px;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(231,226,217,.82)}.section-heading{display:flex;align-items:center;gap:14px;min-width:0}.section-title-copy{min-width:0}.topbar h2{margin:1px 0 0;font-size:clamp(1.8rem,3.7vw,3rem);line-height:.98;letter-spacing:-.04em}.section-title-icon{width:50px;height:50px;display:grid;place-items:center;flex:0 0 50px}.back-btn{width:52px;height:52px;border:1px solid rgba(57,58,134,.22);background:#fff;color:var(--blue);border-radius:16px;display:grid;place-items:center;box-shadow:var(--shadow-soft);transition:.18s ease;flex:0 0 52px}.back-btn>span:first-child{font-size:1.5rem;line-height:1;transform:translateX(-1px)}.back-btn:hover{transform:translateX(-2px);background:var(--blue-soft)}.back-btn.is-hidden{visibility:hidden;pointer-events:none}
.view{display:none;animation:fade .22s ease}.view.active{display:block}@keyframes fade{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}

/* HERO */
.hero-panel{min-height:300px;padding:clamp(28px,4vw,54px);border:1px solid var(--line);border-radius:32px;background:linear-gradient(125deg,#fff 0%,#fffaf0 50%,#f5f5fb 100%);box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,330px);align-items:center;gap:30px;overflow:hidden;position:relative}.hero-copy{position:relative;z-index:2}.hero-panel h3{font-size:clamp(2.35rem,6vw,5.5rem);line-height:.9;margin:8px 0 13px;letter-spacing:-.055em;max-width:780px}.hero-panel p{max-width:630px;color:var(--muted);font-size:clamp(1rem,1.7vw,1.18rem);margin:0}.hero-logo{position:relative;z-index:2;width:min(330px,100%);justify-self:end;mix-blend-mode:multiply}.hero-note{position:absolute;right:18px;top:18px;width:58px;aspect-ratio:1;display:grid;place-items:center;border:1px solid rgba(57,58,134,.14);border-radius:50%;color:var(--blue);background:rgba(255,255,255,.75);font-size:.72rem;font-weight:900}.hero-wave{position:absolute;width:78%;height:2px;left:-5%;background:var(--blue);border-radius:50%;opacity:.14}.hero-wave-a{bottom:52px;transform:rotate(2deg);box-shadow:0 15px 0 rgba(57,58,134,.55),0 30px 0 rgba(57,58,134,.32)}.hero-wave-b{bottom:25px;left:18%;opacity:.08;transform:rotate(-3deg);box-shadow:0 13px 0 var(--blue)}

/* HOME CARDS */
.home-grid{margin-top:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.home-card{min-height:218px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:22px;text-align:left;color:var(--ink);display:flex;flex-direction:column;justify-content:space-between;transition:.18s ease;box-shadow:var(--shadow-soft)}.home-card:hover{transform:translateY(-4px);border-color:rgba(212,172,95,.55);box-shadow:0 18px 42px rgba(73,58,35,.12)}.home-card .big-icon{width:54px;height:54px;display:grid;place-items:center}.home-card h4{margin:22px 0 5px;font-size:1.25rem;letter-spacing:-.02em}.home-card p{margin:0;color:var(--muted);font-size:.88rem;line-height:1.45}.home-card.disabled{background:linear-gradient(145deg,#fff,#fcfbf8)}.status-pill{width:max-content;font-size:.63rem;padding:6px 9px;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-weight:900;letter-spacing:.05em}.home-card.disabled .status-pill{background:var(--gold-soft);color:var(--gold-deep)}

/* PANELS */
.section-grid{display:grid;gap:18px}.calendar-layout,.playlist-layout{grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr)}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-soft);padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.panel-head h3{margin:3px 0 0;font-size:1.5rem;letter-spacing:-.025em}.month-controls{display:flex;align-items:center;gap:8px}.icon-btn,.mini-btn{border:1px solid var(--line);color:var(--blue);background:#fff;border-radius:12px;min-width:42px;height:42px;padding:0 12px;font-weight:900}.icon-btn:hover,.mini-btn:hover{background:var(--blue-soft);border-color:rgba(57,58,134,.22)}.icon-btn{font-size:1.25rem}.mini-btn{font-size:.69rem;letter-spacing:.08em}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.calendar-weekdays{color:var(--muted);font-size:.73rem;font-weight:800;text-align:center;margin-bottom:8px}.calendar-day{min-height:88px;border:1px solid var(--line);background:#fff;border-radius:14px;color:var(--ink);padding:10px;position:relative;text-align:left;transition:.15s ease}.calendar-day:hover{background:var(--paper);border-color:rgba(212,172,95,.45)}.calendar-day.outside{opacity:.28}.calendar-day.today{border:2px solid rgba(212,172,95,.78)}.calendar-day.has-event:after{content:"";position:absolute;left:10px;bottom:9px;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:12px 0 0 var(--blue)}.calendar-day.selected{background:linear-gradient(145deg,var(--gold-soft),#fff);border-color:rgba(212,172,95,.6)}.day-number{font-weight:850}.event-list{display:grid;gap:10px}.event-card{border:1px solid var(--line);border-radius:16px;padding:14px;background:linear-gradient(145deg,#fff,#fdfbf6)}.event-card .event-type{color:var(--blue);font-size:.66rem;font-weight:950;letter-spacing:.1em}.event-card h4{margin:5px 0 7px}.event-card p{margin:3px 0;color:var(--muted);font-size:.88rem}.empty-copy{color:var(--muted)}
.centered-panel{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 28px;background:linear-gradient(145deg,#fff,#fdfbf6)}.future-icon{width:94px;height:94px;display:grid;place-items:center;margin-bottom:15px}.centered-panel h3{margin:8px 0;font-size:2rem;letter-spacing:-.03em}.centered-panel p{max-width:560px;color:var(--muted);line-height:1.55}.coming-badge{margin-top:16px;border:1px solid rgba(212,172,95,.45);border-radius:999px;padding:8px 12px;color:var(--gold-deep);background:var(--gold-soft);font-size:.68rem;letter-spacing:.12em;font-weight:900}

/* PLAYER */
.track-list{display:grid;gap:10px}.track-row{width:100%;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:16px;padding:12px;background:#fff;color:var(--ink);text-align:left;transition:.15s ease}.track-row:hover{background:var(--paper)}.track-row.active{border-color:rgba(57,58,134,.32);background:linear-gradient(90deg,var(--blue-soft),#fff)}.track-index{width:34px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--gold-soft);color:var(--gold-deep);font-size:.76rem;font-weight:950}.track-main strong{display:block}.track-main small{display:block;color:var(--muted);margin-top:3px}.track-length,.count-badge{color:var(--muted);font-size:.78rem}.player-card{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:430px;position:sticky;top:120px}.record-art{width:min(220px,70%);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin-bottom:24px;background:repeating-radial-gradient(circle at center,#343469 0 5px,#27285f 6px 11px);border:7px solid #fff;box-shadow:0 0 0 1px rgba(57,58,134,.14),0 24px 55px rgba(57,58,134,.18);animation:recordFloat 3.6s ease-in-out infinite}.record-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:var(--gold);box-shadow:0 0 0 10px rgba(255,255,255,.08)}@keyframes recordFloat{50%{transform:translateY(-4px)}}.player-card h3{margin:7px 0 4px}.player-card p{color:var(--muted);margin:0 0 18px}.player-controls{display:flex;align-items:center;gap:12px;margin:10px 0 18px}.play-btn{width:62px;aspect-ratio:1;border-radius:50%;border:0;background:var(--gold);color:var(--blue-deep);font-size:1.3rem;font-weight:950;box-shadow:0 10px 24px rgba(212,172,95,.28)}.progress-row{width:100%;display:grid;grid-template-columns:40px 1fr 40px;gap:10px;align-items:center;color:var(--muted);font-size:.74rem}input[type=range]{width:100%;accent-color:var(--blue)}
.mobile-nav,.mini-player{display:none}

/* ANIMATED ICON SYSTEM */
.menu-icon{width:100%;height:100%;display:block;overflow:visible}.menu-icon *{vector-effect:non-scaling-stroke}.menu-icon .gold{stroke:var(--gold-deep);fill:none}.menu-icon .blue{stroke:var(--blue);fill:none}.menu-icon .gold-fill{fill:var(--gold)}.menu-icon .blue-fill{fill:var(--blue)}
.icon-home .wave-a{animation:iconWaveA 1.8s ease-in-out infinite}.icon-home .wave-b{animation:iconWaveB 1.8s ease-in-out infinite}.icon-home .boat{transform-origin:50% 55%;animation:boatBob 1.8s ease-in-out infinite}@keyframes boatBob{50%{transform:translateY(-1.8px) rotate(-1deg)}}@keyframes iconWaveA{50%{transform:translateX(2px)}}@keyframes iconWaveB{50%{transform:translateX(-2px)}}
.icon-calendar .cal-dot{animation:calPulse 1.5s ease-in-out infinite}.icon-calendar .cal-dot.d2{animation-delay:.22s}.icon-calendar .cal-dot.d3{animation-delay:.44s}.icon-calendar .cal-ring{transform-origin:50% 50%;animation:calTilt 2.4s ease-in-out infinite}@keyframes calPulse{0%,100%{opacity:.35;transform:scale(.76)}50%{opacity:1;transform:scale(1.12)}}@keyframes calTilt{50%{transform:translateY(-1px)}}
.icon-history .clock-hand{transform-origin:16px 16px;animation:clockTurn 4s linear infinite}.icon-history .clock-dot{animation:clockPulse 1.2s ease-in-out infinite}@keyframes clockTurn{to{transform:rotate(360deg)}}@keyframes clockPulse{50%{opacity:.35}}
.icon-playlist .bar{transform-origin:center bottom;animation:barBounce .95s ease-in-out infinite}.icon-playlist .b2{animation-delay:.12s}.icon-playlist .b3{animation-delay:.24s}.icon-playlist .b4{animation-delay:.36s}.icon-playlist .b5{animation-delay:.48s}@keyframes barBounce{0%,100%{transform:scaleY(.48)}50%{transform:scaleY(1)}}
.icon-games .game-body{animation:gameFloat 2.4s ease-in-out infinite}.icon-games .dpad{animation:dpadPulse 1.4s ease-in-out infinite}.icon-games .game-btn{animation:buttonBlink 1.4s ease-in-out infinite}.icon-games .gb2{animation-delay:.22s}.icon-games .cable{animation:cableSway 2.4s ease-in-out infinite}@keyframes gameFloat{50%{transform:translateY(-1.6px)}}@keyframes dpadPulse{50%{opacity:.55}}@keyframes buttonBlink{0%,100%{transform:scale(.9);opacity:.7}50%{transform:scale(1.12);opacity:1}}@keyframes cableSway{50%{transform:translateY(-1px)}}

@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

@media(max-width:1120px){.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-layout,.playlist-layout{grid-template-columns:1fr}.player-card{position:relative;top:auto}.hero-panel{grid-template-columns:minmax(0,1fr) minmax(180px,270px)}}

@media(max-width:780px){body{background:#fff}.sidebar{display:none}.main-content{margin-left:0;padding:0 14px calc(126px + env(safe-area-inset-bottom))}.topbar{min-height:86px;margin:0 -14px 14px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px}.section-heading{gap:9px}.section-title-icon{width:42px;height:42px;flex-basis:42px}.back-btn{width:52px;height:48px;border-radius:14px;padding:0}.back-label{display:none}.topbar h2{font-size:1.65rem}.section-title-copy .eyebrow{font-size:.58rem}.install-btn{padding:10px 12px;font-size:.62rem}.hero-panel{min-height:330px;grid-template-columns:1fr;padding:28px 20px 24px;border-radius:24px;gap:8px}.hero-logo{position:absolute;right:-24px;bottom:-42px;width:230px;opacity:.22}.hero-panel h3{font-size:clamp(2.55rem,13vw,4rem);max-width:88%}.hero-panel p{max-width:78%;font-size:.94rem}.hero-note{width:48px;right:12px;top:12px}.home-grid{grid-template-columns:1fr 1fr;gap:10px}.home-card{min-height:172px;padding:17px;border-radius:19px}.home-card .big-icon{width:46px;height:46px}.home-card h4{margin-top:15px;font-size:1rem}.home-card p{font-size:.76rem}.panel{padding:15px;border-radius:19px}.calendar-day{min-height:52px;border-radius:10px;padding:7px;font-size:.84rem}.calendar-day.has-event:after{left:7px;bottom:6px;width:5px;height:5px;box-shadow:9px 0 0 var(--blue)}.calendar-weekdays,.calendar-grid{gap:5px}.events-panel{min-height:220px}.mobile-nav{position:fixed;left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));height:72px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);display:grid;grid-template-columns:repeat(5,1fr);z-index:20;padding:6px;box-shadow:0 12px 40px rgba(73,58,35,.15)}.mobile-nav .nav-btn{flex-direction:column;justify-content:center;gap:2px;padding:3px;text-align:center;font-size:.55rem;border-radius:13px;min-width:0}.mobile-nav .nav-icon{width:27px;height:27px;flex-basis:27px}.mobile-nav .nav-btn.active{background:linear-gradient(180deg,var(--gold-soft),#fff)}.mini-player{position:fixed;left:14px;right:14px;bottom:89px;min-height:58px;border:1px solid var(--line);background:rgba(255,255,255,.98);backdrop-filter:blur(18px);border-radius:17px;z-index:19;align-items:center;grid-template-columns:42px 1fr;gap:10px;padding:8px 11px;box-shadow:0 12px 34px rgba(73,58,35,.16);overflow:hidden}.mini-player.visible{display:grid}.mini-play{width:38px;aspect-ratio:1;border-radius:50%;border:0;background:var(--gold);color:var(--blue-deep);font-weight:900}.mini-info strong,.mini-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-info strong{font-size:.8rem}.mini-info small{font-size:.66rem;color:var(--muted);margin-top:2px}.mini-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--line)}.mini-progress span{display:block;height:100%;width:0%;background:var(--blue)}.record-art{width:180px}.start-card{padding:28px 20px 26px}.start-logo{width:min(290px,80vw)}}

@media(max-width:440px){.home-grid{grid-template-columns:1fr}.home-card{min-height:132px;display:grid;grid-template-columns:52px 1fr;align-items:center;gap:12px}.home-card>div{min-width:0}.home-card h4{margin:4px 0}.calendar-day{min-height:47px}.month-controls{gap:4px}.icon-btn,.mini-btn{min-width:38px;height:38px;padding:0 9px}.topbar .install-btn{display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;padding:8px 9px;font-size:.54rem;line-height:1.05}}

/* v0.5 */
.intro-screen{cursor:pointer}
.record-icon{background:#fff!important;box-shadow:0 0 0 10px rgba(255,255,255,.12),0 3px 18px rgba(0,0,0,.16)!important}
.hero-panel{isolation:isolate;background:#fff!important}
.hero-background{position:absolute;z-index:0;inset:-5%;width:110%;height:110%;object-fit:cover;object-position:center;opacity:.42;animation:heroImageDrift 16s ease-in-out infinite alternate;pointer-events:none}
.hero-overlay{position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.90) 42%,rgba(255,255,255,.56) 72%,rgba(255,255,255,.28) 100%);pointer-events:none}
.hero-copy,.hero-note,.hero-wave{z-index:2}.hero-note{z-index:3}
@keyframes heroImageDrift{0%{transform:scale(1.02) translate3d(-1.2%,0,0)}50%{transform:scale(1.07) translate3d(1.2%,-1%,0)}100%{transform:scale(1.04) translate3d(0,1.2%,0)}}
.dresscode-btn{margin-top:12px;border:1px solid rgba(212,172,95,.55);background:var(--gold-soft);color:var(--gold-deep);border-radius:999px;padding:9px 12px;font-size:.7rem;font-weight:950;letter-spacing:.06em}.dresscode-btn:hover{background:#eedbb3}
.dresscode-modal[hidden]{display:none}.dresscode-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px}.dresscode-backdrop{position:absolute;inset:0;background:rgba(24,22,20,.58);backdrop-filter:blur(7px)}.dresscode-sheet{position:relative;z-index:1;width:min(760px,100%);max-height:min(82vh,760px);overflow:auto;background:#fff;border:1px solid rgba(212,172,95,.45);border-radius:26px;padding:clamp(22px,4vw,38px);box-shadow:0 28px 90px rgba(0,0,0,.26)}.dresscode-sheet h2{font-size:clamp(2rem,5vw,3.5rem);letter-spacing:-.045em;line-height:.95;margin:5px 0 8px}.dresscode-subtitle{margin:0 0 22px;color:var(--gold-deep);font-weight:900}.dresscode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dresscode-grid>div{border:1px solid var(--line);border-radius:18px;padding:18px;background:linear-gradient(145deg,#fff,#fdfaf4)}.dresscode-grid h3{margin:0 0 12px}.dresscode-text{white-space:pre-line;color:var(--ink);line-height:1.75}.dresscode-close{position:absolute;right:16px;top:16px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:1.5rem;line-height:1}.modal-open{overflow:hidden}
@media(max-width:780px){.hero-background{opacity:.34}.hero-overlay{background:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.72))}.dresscode-grid{grid-template-columns:1fr}.dresscode-sheet{border-radius:22px;max-height:88vh}}

/* v0.6 · Intro 1:1 centrada + modes de reproducció */
.intro-screen{place-items:center;background:#fff;overflow:hidden;cursor:pointer}
.intro-screen video{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;max-width:90vw!important;max-height:90vh!important;aspect-ratio:auto;object-fit:contain!important;z-index:2;background:#fff;opacity:0;transition:opacity .2s ease;box-shadow:none!important}
.intro-screen video.is-ready{opacity:1}
.intro-fallback{z-index:1}
.playback-modes{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.mode-btn{min-height:36px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);padding:7px 11px;font-size:.72rem;font-weight:900;letter-spacing:.03em;transition:.16s ease}
.mode-btn span{font-size:.58rem;letter-spacing:.07em;margin-left:3px}
.mode-btn:hover{border-color:rgba(57,58,134,.28);background:var(--blue-soft);color:var(--blue)}
.mode-btn.active{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 6px 18px rgba(57,58,134,.18)}
@media(max-width:520px){.mode-btn span{display:none}.mode-btn{min-width:48px;font-size:.78rem}}


/* v0.7 · START simplificat, xarxes socials, HERO panoràmica i versió al lateral */
.start-screen{background:#fff!important;overflow:hidden}
.start-screen:before,.start-screen:after{display:none!important}
.start-card{width:min(520px,92vw);padding:24px 20px 30px;border:0;background:transparent;box-shadow:none;border-radius:0;display:flex;flex-direction:column;align-items:center;gap:24px}
.start-copy{display:none!important}
.start-icon-btn{appearance:none;border:0;background:transparent;padding:0;border-radius:28px;display:block;transition:transform .18s ease,filter .18s ease}
.start-icon-btn:hover{transform:scale(1.025);filter:drop-shadow(0 14px 24px rgba(0,0,0,.09))}
.start-icon-btn:focus-visible{outline:3px solid rgba(57,58,134,.28);outline-offset:7px}
.start-logo{width:min(340px,72vw);margin:0;filter:none}
.start-card .primary-btn{min-width:210px;margin:0}

.sidebar-bottom{margin-top:auto;display:grid;gap:12px;padding:0 6px}
.sidebar-version{justify-self:start;display:grid;place-items:center;min-width:58px;height:34px;padding:0 12px;border-radius:999px;border:1px solid rgba(57,58,134,.18);background:#fff;color:var(--blue);font-size:.72rem;font-weight:950;box-shadow:var(--shadow-soft)}
.social-links{display:flex;align-items:center;gap:8px}
.social-link{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--blue);transition:.16s ease}
.social-link:hover{transform:translateY(-2px);border-color:rgba(212,172,95,.58);background:var(--gold-soft);color:var(--gold-deep)}
.social-link svg{width:18px;height:18px;overflow:visible;fill:currentColor;stroke:currentColor;stroke-width:1.8}
.social-link:nth-child(2) svg{fill:none}.social-link:nth-child(2) .fill-dot{fill:currentColor;stroke:none}
.social-link:nth-child(3) svg{stroke:none}.social-link:nth-child(3) .play-triangle{fill:#fff}
.sidebar-bottom .pwa-status{margin-top:0;padding:15px 0 0;border-top:1px solid var(--line)}
.home-social-links{display:none}

.hero-panel{min-height:300px;grid-template-columns:1fr!important;background:#fff!important}
.hero-media{position:absolute;z-index:0;right:0;top:0;bottom:0;width:55%;overflow:hidden;background-color:#fff;background-position:center;background-size:cover;background-repeat:no-repeat}
.hero-media:after{content:"";position:absolute;inset:-5%;background:inherit;background-position:center;background-size:cover;filter:blur(14px);transform:scale(1.08);opacity:.22;z-index:0}
.hero-background{position:absolute!important;z-index:1!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;opacity:1!important;pointer-events:none;animation:heroImageDriftV07 18s ease-in-out infinite alternate!important;transform-origin:center center}
.hero-overlay{z-index:1!important;background:linear-gradient(90deg,#fff 0%,#fff 46%,rgba(255,255,255,.96) 51%,rgba(255,255,255,.76) 57%,rgba(255,255,255,.28) 64%,rgba(255,255,255,0) 72%)!important}
.hero-copy,.hero-wave{z-index:2}.hero-note{display:none!important}
@keyframes heroImageDriftV07{0%{transform:scale(.965) translate3d(-1%,.3%,0)}48%{transform:scale(1) translate3d(0,0,0)}100%{transform:scale(.972) translate3d(1%,-.4%,0)}}

.coming-only{margin:0;font-size:clamp(.82rem,1.4vw,1rem);padding:12px 18px}

@media(max-width:780px){
  .hero-media{inset:0;width:100%;height:100%}
  .hero-media:after{opacity:.18}
  .hero-background{object-fit:contain!important}
  .hero-overlay{background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.9) 35%,rgba(255,255,255,.62) 60%,rgba(255,255,255,.18) 100%)!important}
  .home-social-links{display:flex;justify-content:center;gap:10px;margin:18px 0 4px}
  .home-social-links a{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--blue);font-weight:950;text-decoration:none;box-shadow:var(--shadow-soft)}
  .start-logo{width:min(300px,72vw)}
}

/* v0.8 · INTRO neta + HERO d'una sola imatge */
/* En prémer ENTRAR no queda cap rastre visual d'START: només blanc + vídeo. */
.intro-screen{
  place-items:center!important;
  background:#fff!important;
  overflow:hidden!important;
  cursor:pointer;
}
.intro-screen:before,.intro-screen:after{display:none!important;content:none!important}
.intro-screen video{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(90vw,820px)!important;
  max-height:90vh!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:auto!important;
  z-index:2!important;
  background:#fff!important;
  box-shadow:none!important;
  opacity:0;
  transition:opacity .12s ease!important;
}
.intro-screen video.is-ready{opacity:1!important}
.intro-fallback,.intro-wave,.intro-logo{display:none!important}

/* HERO: una única fotografia, confinada a la zona dreta. */
.hero-panel{
  isolation:isolate;
  background:#fff!important;
}
.hero-media{
  position:absolute!important;
  z-index:0!important;
  left:48%!important;
  right:0!important;
  top:0!important;
  bottom:0!important;
  width:auto!important;
  overflow:hidden!important;
  background:none!important;
}
.hero-media:before,.hero-media:after{
  display:none!important;
  content:none!important;
  background:none!important;
}
.hero-background{
  position:absolute!important;
  z-index:0!important;
  left:-7%!important;
  top:-9%!important;
  width:114%!important;
  height:118%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  transform-origin:center center!important;
  pointer-events:none!important;
  animation:heroImageDriftV08 18s ease-in-out infinite alternate!important;
}

.hero-background-layer{opacity:0!important;transition:opacity 1s ease!important;will-change:opacity}
.hero-background-layer.is-active{opacity:1!important}

/* El degradat tapa totalment l'inici real de la fotografia perquè mai se'n vegi el tall esquerre. */
.hero-overlay{
  position:absolute!important;
  z-index:1!important;
  inset:0!important;
  pointer-events:none!important;
  background:linear-gradient(90deg,
    #fff 0%,
    #fff 43%,
    rgba(255,255,255,1) 48%,
    rgba(255,255,255,.97) 51%,
    rgba(255,255,255,.78) 55%,
    rgba(255,255,255,.40) 60%,
    rgba(255,255,255,.12) 65%,
    rgba(255,255,255,0) 70%
  )!important;
}
.hero-copy,.hero-wave{position:relative;z-index:2!important}
@keyframes heroImageDriftV08{
  0%{transform:scale(1.08) translate3d(-1.4%,.5%,0)}
  50%{transform:scale(1.12) translate3d(.8%,-.6%,0)}
  100%{transform:scale(1.09) translate3d(1.4%,.4%,0)}
}

@media(max-width:780px){
  .hero-media{
    left:34%!important;
    right:0!important;
    top:0!important;
    bottom:0!important;
    width:auto!important;
  }
  .hero-background{
    left:-10%!important;
    top:-8%!important;
    width:120%!important;
    height:116%!important;
    object-fit:cover!important;
  }
  .hero-overlay{
    background:linear-gradient(90deg,
      #fff 0%,
      rgba(255,255,255,.98) 30%,
      rgba(255,255,255,.93) 38%,
      rgba(255,255,255,.70) 48%,
      rgba(255,255,255,.30) 61%,
      rgba(255,255,255,0) 74%
    )!important;
  }
}

/* v0.9 · DEMO READY / GitHub Pages */
.home-social-links a svg{width:19px;height:19px;overflow:visible;fill:currentColor;stroke:currentColor;stroke-width:1.8}
.home-social-links a:nth-child(2) svg{fill:none}.home-social-links a:nth-child(2) .fill-dot{fill:currentColor;stroke:none}
.home-social-links a:nth-child(3) svg{stroke:none}.home-social-links a:nth-child(3) .play-triangle{fill:#fff}
/* Evita gestos accidentals del navegador sobre controls de la demo mòbil. */
button,a,input{touch-action:manipulation}

/* v0.11 · HISTÒRIC / timeline */
.history-intro{margin-bottom:18px;padding:clamp(22px,4vw,34px)}
.history-intro h3{margin:4px 0 8px;font-size:clamp(2rem,4.5vw,3.4rem);letter-spacing:-.045em;line-height:.95}
.history-intro p{margin:0;max-width:760px;color:var(--muted);line-height:1.6}
.history-timeline{position:relative;padding:8px 0 42px}
.history-timeline:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;transform:translateX(-50%);background:linear-gradient(180deg,rgba(212,172,95,.22),var(--gold),rgba(57,58,134,.34));border-radius:999px}
.history-period{position:relative;padding:8px 0 30px}
.history-period-head{position:relative;z-index:2;width:max-content;max-width:min(92%,520px);margin:0 auto 22px;display:flex;align-items:center;gap:11px;padding:10px 16px 10px 11px;border:1px solid rgba(212,172,95,.38);border-radius:999px;background:#fff;box-shadow:var(--shadow-soft)}
.history-period-dot{width:18px;height:18px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px var(--gold-soft);flex:0 0 18px}
.history-period-head strong,.history-period-head span{display:block}
.history-period-head strong{font-size:.72rem;color:var(--gold-deep);letter-spacing:.08em}
.history-period-head span{margin-top:2px;font-size:.94rem;font-weight:900;color:var(--ink)}
.history-period-items{display:grid;gap:18px}
.history-item{position:relative;width:50%;padding:0 34px}
.history-item.left{justify-self:start;text-align:right}
.history-item.right{justify-self:end;text-align:left}
.history-node{position:absolute;top:34px;width:13px;height:13px;border-radius:50%;background:var(--blue);border:3px solid #fff;box-shadow:0 0 0 2px rgba(57,58,134,.18)}
.history-item.left .history-node{right:-6.5px}
.history-item.right .history-node{left:-6.5px}
.history-card{display:inline-block;width:min(100%,470px);overflow:hidden;border:1px solid var(--line);border-radius:21px;background:#fff;box-shadow:var(--shadow-soft);text-align:left}
.history-card img{display:block;width:100%;max-height:430px;object-fit:cover;background:var(--paper)}
.history-card-copy{padding:16px 17px 18px}
.history-year{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:var(--gold-soft);color:var(--gold-deep);font-size:.72rem;font-weight:950;letter-spacing:.08em}
.history-card h4{margin:10px 0 5px;font-size:1.15rem;line-height:1.2}
.history-card p{margin:6px 0 0;color:var(--muted);line-height:1.55;font-size:.9rem}
.history-period-empty{position:relative;z-index:1;width:max-content;max-width:85%;margin:0 auto;padding:8px 13px;border-radius:999px;background:#fff;color:var(--muted);font-size:.72rem;border:1px dashed rgba(113,108,103,.22)}
.history-empty{text-align:center;color:var(--muted)}

@media(max-width:780px){
  .history-intro{padding:20px 17px}
  .history-timeline{padding-left:3px}
  .history-timeline:before{left:16px;transform:none}
  .history-period{padding-left:0}
  .history-period-head{margin:0 0 18px 0;max-width:calc(100% - 4px);border-radius:17px;padding:10px 13px 10px 7px}
  .history-period-dot{margin-left:0;width:18px;height:18px;flex-basis:18px}
  .history-period-items{gap:14px}
  .history-item,.history-item.left,.history-item.right{width:100%;padding:0 0 0 40px;justify-self:stretch;text-align:left}
  .history-item.left .history-node,.history-item.right .history-node{left:10px;right:auto;top:28px}
  .history-card{display:block;width:100%;border-radius:18px}
  .history-card img{max-height:none;aspect-ratio:auto;object-fit:contain;background:#fff}
  .history-card-copy{padding:14px 15px 16px}
  .history-period-empty{margin-left:40px;max-width:calc(100% - 40px)}
}


/* v0.12 · Header audio global, calendari cromàtic i períodes HISTÒRIC full-bleed */
.header-leading-slot{position:relative;width:52px;height:52px;flex:0 0 52px}
.header-leading-slot .back-btn,.home-header-icon{position:absolute;inset:0}
.home-header-icon{display:grid;place-items:center;border-radius:16px;overflow:hidden;background:#fff;box-shadow:var(--shadow-soft);border:1px solid rgba(57,58,134,.14)}
.home-header-icon img{width:100%;height:100%;object-fit:contain}
.home-header-icon.is-hidden{visibility:hidden;pointer-events:none}
.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto}
.mute-btn{height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(57,58,134,.18);border-radius:999px;padding:0 13px;background:#fff;color:var(--blue);box-shadow:var(--shadow-soft);font-size:.68rem;font-weight:950;letter-spacing:.06em;transition:.16s ease}
.mute-btn:hover{background:var(--blue-soft);border-color:rgba(57,58,134,.3)}
.mute-btn.is-muted{background:var(--ink);border-color:var(--ink);color:#fff}
.mute-icon{font-size:.9rem;line-height:1}.mute-label{white-space:nowrap}

.calendar-day.has-event:after{display:none!important}
.calendar-day.event-normal{background:var(--blue)!important;border-color:var(--blue)!important;color:#fff}
.calendar-day.event-featured{background:var(--gold)!important;border-color:var(--gold-deep)!important;color:var(--ink)}
.calendar-day.event-other{background:#4f9b62!important;border-color:#377847!important;color:#fff!important}
.calendar-day.event-normal:hover{background:var(--blue-deep)!important}
.calendar-day.event-other:hover{background:#3f8250!important}
.calendar-day.event-featured:hover{background:#c99b48!important}
.calendar-day.event-normal .day-number{color:#fff}
.calendar-day.event-featured .day-number{color:var(--ink)}
.calendar-day.event-normal.outside,.calendar-day.event-featured.outside{opacity:.42}
.calendar-day.event-normal.today,.calendar-day.event-featured.today{box-shadow:inset 0 0 0 3px #fff,0 0 0 2px rgba(36,33,31,.2)}
.calendar-day.event-normal.selected,.calendar-day.event-featured.selected{box-shadow:inset 0 0 0 3px #fff,0 0 0 3px rgba(36,33,31,.28)}

.history-period{--period-color:var(--blue);--period-text:#fff}
.history-period-head{width:calc(100% + 68px);max-width:none;margin:0 -34px 24px;padding:13px 34px;border-radius:0;border-left:0;border-right:0;border-color:rgba(0,0,0,.08);background:var(--period-color);color:var(--period-text);box-shadow:none}
.history-period-head strong{color:var(--period-text);opacity:.86}
.history-period-head span{color:var(--period-text)}
.history-period-dot{background:var(--period-text);box-shadow:0 0 0 4px rgba(255,255,255,.18)}
.history-period .history-node{background:var(--period-color);box-shadow:0 0 0 2px rgba(57,58,134,.16)}

@media(max-width:780px){
  .header-leading-slot{width:52px;height:48px;flex-basis:52px}
  .home-header-icon{border-radius:14px}
  .topbar-actions{gap:6px}
  .mute-btn{width:44px;height:40px;padding:0;border-radius:13px}
  .mute-label{display:none}
  .history-period-head{width:calc(100% + 28px);max-width:none;margin:0 -14px 18px;padding:12px 14px;border-radius:0}
  .history-period-dot{margin-left:0}
}
@media(max-width:440px){
  .topbar{gap:8px}
  .section-heading{min-width:0;flex:1}
  .topbar-actions{flex:0 0 auto}
  .mute-btn{width:42px;height:38px}
}


/* v0.14 · MUTE, HISTÒRIC i PLAYER */
.mute-btn{position:relative;width:46px;height:42px;padding:0;border-radius:13px;display:grid;place-items:center;overflow:hidden}
.mute-music-icon{width:27px;height:27px;display:block;overflow:visible}
.mute-music-icon .note-blue{fill:none;stroke:var(--blue);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.mute-music-icon .note-gold{fill:var(--gold)}
.mute-music-icon .note-blue-fill{fill:var(--blue)}
.mute-btn.is-muted{background:#fff;border-color:rgba(57,58,134,.22);color:var(--blue)}
.mute-btn.is-muted .mute-music-icon{opacity:.48}
.mute-btn.is-muted:after{content:"";position:absolute;width:31px;height:2px;background:var(--ink);border-radius:999px;transform:rotate(-42deg)}

.history-period.period-tone-1{--period-color:#5b4a73!important;--period-text:#fff!important}
.history-period.period-tone-2{--period-color:#2f6f78!important;--period-text:#fff!important}
.history-period.period-tone-3{--period-color:#8a5c36!important;--period-text:#fff!important}
.history-period.period-tone-4{--period-color:#393a86!important;--period-text:#fff!important}
.history-period.period-tone-5{--period-color:#d4ac5f!important;--period-text:#24211f!important}
.history-period.period-tone-6{--period-color:#9b4f62!important;--period-text:#fff!important}
.history-period.period-tone-7{--period-color:#55734f!important;--period-text:#fff!important}
.history-period.period-tone-8{--period-color:#2e5f9a!important;--period-text:#fff!important}
.history-period-head{background:var(--period-color)!important;color:var(--period-text)!important}
.history-period .history-node{background:var(--period-color)!important}

.playlist-layout{align-items:start}
.playlist-layout>.panel:first-child{padding:16px 18px}
.playlist-layout>.panel:first-child .panel-head{margin-bottom:10px}
.track-list{gap:6px}
.track-row{grid-template-columns:34px 1fr auto;gap:9px;border-radius:12px;padding:8px 10px}
.track-index{width:28px;font-size:.68rem}
.track-main strong{font-size:.88rem}
.track-main small{font-size:.72rem;margin-top:1px}
.player-card{min-height:0!important;padding:16px 18px!important;justify-content:flex-start!important}
.record-art{width:138px!important;margin-bottom:10px!important;border-width:5px!important;animation:none!important}
.record-icon{width:54px!important;height:54px!important}
.record-icon .bar{animation:none!important;transform:scaleY(1)!important}
.record-icon .wave-line{animation:none!important}
.player-card.is-playing .record-icon .bar{animation:barBounce .95s ease-in-out infinite!important}
.player-card.is-playing .record-icon .b2{animation-delay:.14s!important}
.player-card.is-playing .record-icon .b3{animation-delay:.28s!important}
.player-card.is-playing .record-icon .b4{animation-delay:.42s!important}
.player-card h3{margin:4px 0 2px;font-size:1.08rem}
.player-card p{margin:0 0 8px;font-size:.78rem}
.player-controls{gap:9px;margin:5px 0 10px}
.player-controls .icon-btn{min-width:38px;height:38px;padding:0 8px}
.play-btn{width:50px!important;font-size:1.08rem!important}
.playback-modes{gap:5px;margin:0 0 10px}
.mode-btn{min-height:30px;padding:5px 8px;font-size:.66rem}
.mode-btn span{font-size:.52rem}
.progress-row{grid-template-columns:34px 1fr 34px;gap:7px;font-size:.68rem}
@media(max-width:780px){
  .mute-btn{width:42px;height:40px}
  .playlist-layout>.panel:first-child,.player-card{padding:14px!important}
  .record-art{width:128px!important}
}

/* v0.15 · barra inferior MOBILE fins al límit físic de la pantalla */
@media(max-width:780px){
  .main-content{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
  .mobile-nav{left:0!important;right:0!important;bottom:0!important;height:calc(72px + env(safe-area-inset-bottom))!important;border-radius:20px 20px 0 0!important;padding:6px 10px calc(6px + env(safe-area-inset-bottom))!important;border-left:0!important;border-right:0!important;border-bottom:0!important}
  .mini-player{bottom:calc(80px + env(safe-area-inset-bottom))!important}
}

/* v0.19 · USER / accessos */
.user-view-wrap{max-width:780px;margin:0 auto;display:grid;gap:18px}
.user-auth-card,.user-profile-card{padding:28px}
.user-auth-card>p{color:var(--muted);line-height:1.5;max-width:560px}
.user-login-form,.change-password-form{display:grid;gap:12px;margin-top:18px}
.user-login-form label,.change-password-form label{display:grid;gap:6px;font-size:.78rem;font-weight:850;letter-spacing:.03em;color:var(--ink)}
.user-login-form input,.change-password-form input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:13px;padding:0 13px;background:#fff;color:var(--ink);font:inherit;outline:none}
.user-login-form input:focus,.change-password-form input:focus{border-color:rgba(57,58,134,.46);box-shadow:0 0 0 3px rgba(57,58,134,.08)}
.user-auth-status{min-height:18px;color:var(--muted);font-size:.76rem;line-height:1.4}
.user-profile-head{display:flex;align-items:center;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.user-profile-head h3{margin:2px 0 3px;font-size:1.55rem}.user-profile-head p{margin:0;color:var(--muted)}
.user-avatar-mark{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--gold-soft);color:var(--gold-deep);font-size:1.8rem;box-shadow:inset 0 0 0 1px rgba(212,172,95,.28)}
.password-setup-notice{margin:16px 0 0;padding:12px 14px;border-radius:13px;background:linear-gradient(135deg,var(--gold-soft),#fff);border:1px solid rgba(212,172,95,.55);color:var(--ink);display:grid;gap:4px}
.change-password-form{margin-top:20px;padding-top:2px}.change-password-form h4{margin:2px 0 4px;font-size:1.08rem}
.user-logout-btn{margin-top:20px;width:100%;min-height:44px;border:1px solid rgba(160,42,42,.25);border-radius:13px;background:#fff;color:#a02a2a;font-weight:900;letter-spacing:.04em}
.icon-user{animation:userIconFloat 2.4s ease-in-out infinite}@keyframes userIconFloat{50%{transform:translateY(-1.4px)}}
@media(max-width:780px){.user-auth-card,.user-profile-card{padding:20px}.user-view-wrap{max-width:none}.user-profile-head{align-items:flex-start}.user-avatar-mark{width:50px;height:50px}}
.user-password-btn{min-height:44px;border:1px solid rgba(57,58,134,.24);border-radius:999px;background:#fff;color:var(--blue);font-weight:900;letter-spacing:.04em;padding:10px 18px}.user-password-btn:hover{background:var(--blue-soft)}

/* v0.20 · PWA independent, HOME mobile, HISTÒRIC viewer */
.app-install-card{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:14px;margin:16px 0 18px;padding:14px 16px;border:1px solid rgba(57,58,134,.14);border-radius:20px;background:linear-gradient(135deg,#fff,var(--blue-soft));box-shadow:var(--shadow-soft)}
.app-install-card[hidden]{display:none!important}.app-install-card>img{width:58px;height:58px;border-radius:15px;object-fit:cover;box-shadow:0 8px 20px rgba(57,58,134,.13)}.app-install-copy{display:grid;gap:3px;min-width:0}.app-install-copy strong{font-size:.98rem;letter-spacing:.01em}.app-install-copy small{color:var(--muted);font-size:.76rem;line-height:1.35}.app-install-action{min-width:160px;padding:12px 18px}.app-install-action:disabled{opacity:.55;cursor:default;transform:none!important}
.home-credits{text-align:center;color:var(--muted);font-size:.72rem;line-height:1.55;margin:12px 0 4px}.home-credits>div:last-child{font-size:.68rem;color:#8c8781}

/* HISTÒRIC: franges col·lapsables, thumbnails compactes i ordre recent -> antic */
.history-period-head{cursor:pointer;text-align:left;font:inherit;display:flex!important;align-items:center!important;gap:11px!important}
.history-period-head>div{flex:1;min-width:0}.history-period-chevron{margin-left:auto;font-size:1.2rem;font-weight:900;transition:transform .2s ease;line-height:1;color:var(--period-text)!important}.history-period.is-collapsed .history-period-chevron{transform:rotate(-90deg)}
.history-period.is-collapsed .history-period-items{display:none}.history-period.is-collapsed{padding-bottom:10px}
.history-card{width:min(100%,360px)!important;border-radius:17px!important}.history-card-copy{padding:12px 13px 14px!important}.history-card h4{font-size:1rem!important;margin:8px 0 4px!important}.history-card p{font-size:.82rem!important;line-height:1.45!important}.history-year{min-height:24px!important;padding:0 8px!important;font-size:.66rem!important}
.history-image-button{display:block;width:100%;padding:0;border:0;background:#fff;cursor:zoom-in;overflow:hidden}.history-image-button img{display:block;width:100%;height:240px!important;max-height:240px!important;object-fit:cover!important;background:var(--paper);transition:transform .22s ease}.history-image-button:hover img{transform:scale(1.025)}

.history-image-modal[hidden]{display:none!important}.history-image-modal{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:20px}.history-image-backdrop{position:absolute;inset:0;background:rgba(12,12,16,.82);backdrop-filter:blur(8px)}.history-image-dialog{position:relative;z-index:1;width:min(94vw,1180px);height:min(90vh,880px);display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:10px;padding:14px;border-radius:22px;background:#101014;box-shadow:0 30px 100px rgba(0,0,0,.5);overflow:hidden}.history-image-close{position:absolute;z-index:5;right:12px;top:12px;width:44px;height:44px;aspect-ratio:1;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(16,16,20,.82);color:#fff;font-size:1.65rem;display:grid;place-items:center;line-height:1;padding:0}.history-image-viewport{min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#08080a;overscroll-behavior:contain}.history-image-viewport img{display:block;flex:0 0 auto;height:auto;object-fit:contain}.history-image-toolbar{display:flex;align-items:center;justify-content:center;gap:7px}.history-image-toolbar button{min-width:40px;height:36px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:#202027;color:#fff;font-weight:900}.history-image-toolbar button:disabled{opacity:.35}.history-image-toolbar button:last-child{padding:0 13px}.history-image-toolbar span{min-width:54px;text-align:center;color:#fff;font-size:.76rem;font-weight:900}.history-image-caption{text-align:center;color:#fff;display:grid;gap:3px;min-height:20px}.history-image-caption strong{font-size:.9rem}.history-image-caption span{font-size:.75rem;color:rgba(255,255,255,.68)}

/* La X del DRESSCODE és sempre un cercle real, també a mobile. */
.dresscode-close{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important;line-height:1!important;box-sizing:border-box!important}

@media(max-width:780px){
  /* HOME: imatge a la meitat superior, text a la meitat inferior sobre blanc. */
  .hero-panel{min-height:470px!important;display:flex!important;align-items:flex-end!important;grid-template-columns:none!important;padding:0 20px 24px!important;border-radius:24px!important;background:#fff!important;overflow:hidden!important}
  .hero-media{position:absolute!important;left:0!important;right:0!important;top:0!important;bottom:auto!important;width:100%!important;height:58%!important;overflow:hidden!important;background:#fff!important}
  .hero-media:after{display:none!important}
  .hero-background{position:absolute!important;inset:-9%!important;width:118%!important;height:118%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;animation:heroMobileDriftV020 18s ease-in-out infinite alternate!important;transform-origin:center center!important}
  .hero-overlay{position:absolute!important;z-index:1!important;inset:0!important;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 48%,rgba(255,255,255,.34) 66%,rgba(255,255,255,.88) 84%,#fff 100%)!important;pointer-events:none!important}
  .hero-copy{position:relative!important;z-index:2!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important}
  .hero-panel h3{font-size:clamp(2.15rem,11vw,3.45rem)!important;max-width:100%!important;margin:7px 0 10px!important}
  .hero-panel p{max-width:100%!important;font-size:.92rem!important;line-height:1.45!important}
  .hero-wave{display:none!important}
  @keyframes heroMobileDriftV020{0%{transform:scale(1.02) translate3d(-2.5%,1%,0)}50%{transform:scale(1.08) translate3d(1%,-1%,0)}100%{transform:scale(1.04) translate3d(2.5%,.5%,0)}}

  .app-install-card{grid-template-columns:48px 1fr;margin:12px 0 14px;padding:12px;border-radius:17px;gap:10px}.app-install-card>img{width:48px;height:48px;border-radius:12px}.app-install-action{grid-column:1/-1;width:100%;min-width:0;padding:11px 14px}.app-install-copy strong{font-size:.88rem}.app-install-copy small{font-size:.7rem}
  .home-credits{margin:10px 0 2px;font-size:.68rem}.home-credits>div:last-child{font-size:.64rem}

  .history-card{width:min(100%,310px)!important;margin:0!important}.history-image-button img{height:190px!important;max-height:190px!important}.history-card-copy{padding:10px 11px 12px!important}.history-card h4{font-size:.95rem!important}.history-card p{font-size:.78rem!important}.history-item,.history-item.left,.history-item.right{padding-left:38px!important}.history-period-head{padding-right:12px!important}.history-period-chevron{font-size:1.05rem}
  .history-image-modal{padding:8px}.history-image-dialog{width:100%;height:calc(100dvh - 16px);border-radius:16px;padding:9px;grid-template-rows:minmax(0,1fr) auto auto}.history-image-close{right:10px;top:10px;width:42px;height:42px}.history-image-toolbar{gap:5px}.history-image-toolbar button{height:34px}.history-image-caption{padding:0 7px 4px}

  .dresscode-close{right:12px!important;top:12px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
}
.home-social-links{display:flex!important;justify-content:center;gap:10px;margin:18px 0 4px}.home-social-links a{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--blue);font-weight:950;text-decoration:none;box-shadow:var(--shadow-soft)}


/* v0.21 · cinc caixes desktop, PLAYER reactiu i miniplayer sense solapaments */
@media(min-width:1121px){
  .home-grid.five-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
  .home-grid.five-cards .home-card{padding:18px;min-height:205px}
  .home-grid.five-cards .home-card .big-icon{width:54px;height:54px}
  .home-grid.five-cards .home-card h4{font-size:1.08rem;margin-top:18px}
  .home-grid.five-cards .home-card p{font-size:.8rem;line-height:1.38}
}
.record-icon .bar{animation:none!important;transform:scaleY(1)!important;transform-origin:center bottom!important}
.record-icon.is-playing .bar{animation:barBounceV021 .82s ease-in-out infinite!important}
.record-icon.is-playing .b2{animation-delay:.11s!important}.record-icon.is-playing .b3{animation-delay:.22s!important}.record-icon.is-playing .b4{animation-delay:.33s!important}.record-icon.is-playing .b5{animation-delay:.44s!important}
@keyframes barBounceV021{0%,100%{transform:scaleY(.44)}50%{transform:scaleY(1)}}
@media(max-width:780px){
  .main-content{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;transition:padding-bottom .2s ease}
  .app-shell.has-mini-player .main-content{padding-bottom:calc(154px + env(safe-area-inset-bottom))!important}
  .mobile-nav{left:0!important;right:0!important;bottom:0!important;height:calc(72px + env(safe-area-inset-bottom))!important;border-radius:18px 18px 0 0!important;padding:6px 10px calc(6px + env(safe-area-inset-bottom))!important}
  .mini-player{left:0!important;right:0!important;bottom:calc(72px + env(safe-area-inset-bottom))!important;min-height:58px!important;border-radius:16px 16px 0 0!important;border-left:0!important;border-right:0!important;display:none;grid-template-columns:40px minmax(0,1fr) 62px!important;gap:8px!important;padding:7px 11px 8px!important;box-shadow:0 -6px 24px rgba(73,58,35,.12)!important}
  .mini-player.visible{display:grid!important}
  .mini-player:after{content:'PLAYER';font-size:.57rem;font-weight:950;letter-spacing:.08em;color:var(--blue);text-align:right;padding-right:2px}
  .mini-play{width:36px!important;height:36px!important}.mini-info strong{font-size:.77rem!important}.mini-info small{font-size:.62rem!important}
  .playlist-layout{gap:10px!important}
  .playlist-layout>.panel:first-child,.player-card{padding:12px!important}
  .playlist-layout>.panel:first-child .panel-head{margin-bottom:8px!important}
  .track-list{gap:7px!important}.track-row{grid-template-columns:34px 1fr 22px!important;gap:8px!important;padding:8px 9px!important;border-radius:12px!important}.track-index{width:30px!important}.track-main strong{font-size:.86rem}.track-main small{font-size:.68rem!important}
  .player-card{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;grid-template-areas:'art eyebrow' 'art title' 'art meta' 'art controls' 'modes modes' 'progress progress'!important;align-items:center!important;column-gap:12px!important;row-gap:4px!important;text-align:left!important}
  .player-card .record-art{grid-area:art;width:82px!important;margin:0!important;align-self:center!important}.player-card>.eyebrow{grid-area:eyebrow;align-self:end}.player-card>h3{grid-area:title;margin:0!important;font-size:1rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-card>p{grid-area:meta;margin:0!important;font-size:.7rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-card>.player-controls{grid-area:controls;justify-content:flex-start!important;margin:2px 0 0!important;gap:7px!important}.player-card>.playback-modes{grid-area:modes;margin:5px 0 2px!important;justify-content:center!important}.player-card>.progress-row{grid-area:progress;margin:0!important}.player-card .play-btn{width:44px!important;font-size:1rem!important}.player-card .icon-btn{min-width:36px!important;width:36px!important;height:36px!important;padding:0!important}.record-icon{width:44px!important;height:44px!important}
}
@media(max-width:440px){
  .player-card{grid-template-columns:72px minmax(0,1fr)!important;column-gap:9px!important}.player-card .record-art{width:72px!important}.record-icon{width:40px!important;height:40px!important}.playback-modes .mode-btn span{display:none}.playback-modes .mode-btn{min-width:42px!important;padding:7px 9px!important}
}

/* v0.24 · HOME centrada, PLAYER reactiu, galeries HISTÒRIC i perfil USER */
.home-card{text-align:center!important;align-items:center!important}
.home-card>div{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}
.home-card .status-pill{margin-inline:auto}
.home-card .big-icon{margin-inline:auto}
.nav-btn>span:last-child{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Les barres del reproductor només es mouen quan l'àudio de la playlist està realment reproduint-se. */
.record-icon .bar{animation:none!important;transform:scaleY(1)!important;transform-box:fill-box!important;transform-origin:50% 100%!important;will-change:transform}
.record-icon.is-playing .bar,.record-art.is-playing .record-icon .bar,.player-card.is-playing .record-icon .bar{animation:playerBarV024 .72s ease-in-out infinite alternate!important}
.record-icon.is-playing .b1,.record-art.is-playing .b1,.player-card.is-playing .b1{animation-duration:.54s!important;animation-delay:-.12s!important}
.record-icon.is-playing .b2,.record-art.is-playing .b2,.player-card.is-playing .b2{animation-duration:.78s!important;animation-delay:-.31s!important}
.record-icon.is-playing .b3,.record-art.is-playing .b3,.player-card.is-playing .b3{animation-duration:.61s!important;animation-delay:-.22s!important}
.record-icon.is-playing .b4,.record-art.is-playing .b4,.player-card.is-playing .b4{animation-duration:.88s!important;animation-delay:-.37s!important}
.record-icon.is-playing .b5,.record-art.is-playing .b5,.player-card.is-playing .b5{animation-duration:.67s!important;animation-delay:-.18s!important}
@keyframes playerBarV024{0%{transform:scaleY(.34)}45%{transform:scaleY(.72)}100%{transform:scaleY(1)}}

/* Diverses fotos d'un mateix punt de l'HISTÒRIC ocupen el mateix espai que abans ocupava una foto. */
.history-media-grid{width:100%;height:240px;display:grid;grid-template-columns:repeat(var(--history-cols,1),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:3px;overflow:hidden;background:var(--paper)}
.history-media-grid.single{grid-template-columns:1fr}
.history-media-grid .history-image-button{width:100%;height:100%;min-width:0;min-height:0;border-radius:0}
.history-media-grid .history-image-button img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important}
.history-media-grid .history-image-button:hover img{transform:scale(1.04)}

.user-avatar-mark{overflow:hidden;position:relative;flex:0 0 auto}
.user-avatar-mark img{width:100%;height:100%;object-fit:cover;display:block}
.user-avatar-mark img[hidden],.user-avatar-mark span[hidden]{display:none!important}
.user-settings-box{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:17px;background:linear-gradient(145deg,#fff,#fcfbf8)}
.user-settings-title{margin-bottom:12px}.user-settings-title h4{margin:2px 0 0;font-size:1.08rem}
.user-name-form{display:grid;gap:11px}.user-name-form label{display:grid;gap:6px;font-size:.78rem;font-weight:850}.user-name-form input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:13px;padding:0 13px;background:#fff;color:var(--ink);font:inherit;outline:none}
.user-name-form input:focus{border-color:rgba(57,58,134,.46);box-shadow:0 0 0 3px rgba(57,58,134,.08)}
.avatar-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin-bottom:12px}
.avatar-choice{cursor:pointer}.avatar-choice>input{position:absolute;opacity:0;pointer-events:none}.avatar-choice-frame{display:grid;gap:7px;justify-items:center;padding:9px;border:2px solid transparent;border-radius:15px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);transition:.16s ease}.avatar-choice img{width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--gold-soft)}.avatar-choice img.avatar-missing{opacity:.18}.avatar-choice-frame>span{font-size:.66rem;font-weight:950;color:var(--blue);letter-spacing:.05em}.avatar-choice>input:checked+.avatar-choice-frame{border-color:var(--gold);background:var(--gold-soft);box-shadow:none}
.user-password-details{padding:0;overflow:hidden}.user-password-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.user-password-details>summary::-webkit-details-marker{display:none}.user-password-details>summary>span:first-child{display:grid;gap:3px}.user-password-details>summary strong{font-size:1.02rem}.details-chevron{font-size:1.15rem;font-weight:950;color:var(--blue);transition:transform .18s ease}.user-password-details[open] .details-chevron{transform:rotate(180deg)}.user-password-details .change-password-form{margin:0;padding:0 16px 16px;border-top:1px solid var(--line);padding-top:14px}

@media(max-width:780px){
  .history-media-grid{height:190px}
  .user-settings-box{padding:14px}
}
@media(max-width:440px){
  .home-card>div{text-align:center!important;align-items:center!important}
}

/* v0.26 · entrada dinàmica de les peces de cada secció */
@keyframes bandaPieceEnter{
  0%{opacity:0;transform:translate3d(0,18px,0) scale(.985);filter:blur(3px)}
  62%{opacity:1;transform:translate3d(0,-2px,0) scale(1.002);filter:blur(0)}
  100%{opacity:1;transform:none;filter:none}
}
.piece-entering{animation:bandaPieceEnter .52s cubic-bezier(.2,.78,.24,1) var(--piece-enter-delay,0ms) both;will-change:transform,opacity,filter}
@media(max-width:780px){.piece-entering{animation-duration:.46s}}
@media(prefers-reduced-motion:reduce){.piece-entering{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}}


/* v0.28 · HISTÒRIC: períodes col·lapsats més alts i completament apilats */
.history-period.is-collapsed{padding-top:0!important;padding-bottom:0!important;margin:0!important}
.history-period.is-collapsed .history-period-head{margin-top:0!important;margin-bottom:0!important;min-height:66px;padding-top:16px!important;padding-bottom:16px!important}
.history-period.is-collapsed + .history-period.is-collapsed{margin-top:0!important}
@media(max-width:780px){
  .history-period.is-collapsed .history-period-head{min-height:62px;padding-top:15px!important;padding-bottom:15px!important}
}


/* v0.29 · alta per invitació: l'usuari defineix la seva pròpia contrasenya */
.password-setup-notice strong{font-size:.68rem;letter-spacing:.10em;color:var(--gold-deep)}
.password-setup-notice span{font-size:.82rem;line-height:1.45;font-weight:780}


/* ============================================================
   v0.33 · TYPO / UI LAB aplicado desde JSON adjunto
   Desktop base + mobile <= 780px
   ============================================================ */
/* bodyText */
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:16px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* startTitle */
.start-copy h1,.start-copy h2{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:70px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* startSubtitle */
.start-copy p,.start-copy small{font-family:Arial,sans-serif!important;font-size:20px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* eyebrow */
.eyebrow{font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* primaryButton */
.primary-btn{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:16px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* brandTitle */
.sidebar-brand strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* brandSubtitle */
.sidebar-brand small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
/* navLabel */
.desktop-nav .nav-btn>span:last-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* sidebarVersion */
.sidebar-version{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* sectionEyebrow */
#sectionEyebrow{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* sectionTitle */
#sectionTitle{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:44px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* mobileNavLabel */
.mobile-nav .nav-btn>span:last-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* heroTitle */
.hero-copy h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:72px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* heroText */
.hero-copy p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:18px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* homeCardTitle */
.home-card h4{font-family:Arial,sans-serif!important;font-size:20px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* homeCardText */
.home-card p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* statusPill */
.status-pill{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* installTitle */
.app-install-copy strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:16px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* installDetail */
.app-install-copy small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* creditsMain */
.home-credits>div:first-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* creditsSub */
.home-credits>div:last-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* panelTitle */
.panel-head h3{font-family:Arial,sans-serif!important;font-size:24px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* calendarWeekday */
.calendar-weekdays span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* calendarDay */
.calendar-day .day-number{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:40px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* miniButton */
.mini-btn{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* eventType */
.event-type{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* eventTitle */
.event-card h4{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:20px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* eventDetail */
.event-card p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:21px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* dresscodeButton */
.dresscode-btn{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* historyIntroTitle */
.history-intro h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:46px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* historyIntroText */
.history-intro p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:16px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* periodRange */
.history-period-head>div>strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* periodDirector */
.history-period-head>div>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:700!important;font-style:italic!important;text-decoration:none!important;}
/* historyYear */
.history-year{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* historyEventTitle */
.history-card h4{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:16px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* historyEventText */
.history-card p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
/* historyEmpty */
.history-period-empty,.history-empty{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
/* trackIndex */
.track-index{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* trackTitle */
.track-main strong{font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* trackMeta */
.track-main small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
/* trackDuration */
.track-length{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* nowPlayingTitle */
#nowPlayingTitle{font-family:Arial,sans-serif!important;font-size:28px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* nowPlayingMeta */
#nowPlayingMeta{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:17px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
/* modeMain */
.mode-btn{font-family:Arial,sans-serif!important;font-size:18px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* modeSub */
.mode-btn span{font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* progressTime */
.progress-row>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:17px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* miniPlayerTitle */
.mini-info strong{font-family:Arial,sans-serif!important;font-size:13px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* miniPlayerMeta */
.mini-info small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* miniPlayerTag */
.mini-player:after{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:9px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* comingBadge */
.coming-badge{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:24px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* userLoginTitle */
.user-auth-card>h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:24px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* userIntroText */
.user-auth-card>p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* formLabel */
.user-login-form label,.change-password-form label,.user-name-form label{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* authStatus */
.user-auth-status{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
/* profileRole */
#userProfileRole{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* profileName */
#userProfileName{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:25px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* profileEmail */
#userProfileEmail{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* accountNoticeTitle */
.password-setup-notice strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* accountNoticeText */
.password-setup-notice span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* settingsEyebrow */
.user-settings-title .eyebrow,.user-password-details>summary .eyebrow{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* settingsTitle */
.user-settings-title h4{font-family:Arial,sans-serif!important;font-size:17px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* passwordSummary */
.user-password-details>summary strong{font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* actionButton */
.user-password-btn,.user-logout-btn{font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* modalTitle */
.dresscode-sheet>h2{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:42px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* modalSubtitle */
.dresscode-subtitle{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:22px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* dressHeading */
.dresscode-grid h3{font-family:Arial,sans-serif!important;font-size:30px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
/* dressBody */
.dresscode-text{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:18px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* viewerCaptionTitle */
.history-image-caption strong{font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* viewerCaptionText */
.history-image-caption span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
/* viewerToolbar */
.history-image-toolbar button,.history-image-toolbar>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
@media(max-width:780px){
  /* bodyText */
  body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* startTitle */
  .start-copy h1,.start-copy h2{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:42px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* startSubtitle */
  .start-copy p,.start-copy small{font-family:Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* eyebrow */
  .eyebrow{font-family:Arial,sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* primaryButton */
  .primary-btn{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* brandTitle */
  .sidebar-brand strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* brandSubtitle */
  .sidebar-brand small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
  /* navLabel */
  .desktop-nav .nav-btn>span:last-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* sidebarVersion */
  .sidebar-version{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* sectionEyebrow */
  #sectionEyebrow{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:9px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* sectionTitle */
  #sectionTitle{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:26px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* mobileNavLabel */
  .mobile-nav .nav-btn>span:last-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:9px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* heroTitle */
  .hero-copy h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:42px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* heroText */
  .hero-copy p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* homeCardTitle */
  .home-card h4{font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* homeCardText */
  .home-card p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* statusPill */
  .status-pill{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* installTitle */
  .app-install-copy strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* installDetail */
  .app-install-copy small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* creditsMain */
  .home-credits>div:first-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* creditsSub */
  .home-credits>div:last-child{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* panelTitle */
  .panel-head h3{font-family:Arial,sans-serif!important;font-size:21px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* calendarWeekday */
  .calendar-weekdays span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* calendarDay */
  .calendar-day .day-number{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:28px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* miniButton */
  .mini-btn{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* eventType */
  .event-type{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* eventTitle */
  .event-card h4{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:17px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* eventDetail */
  .event-card p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:19px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* dresscodeButton */
  .dresscode-btn{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* historyIntroTitle */
  .history-intro h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:32px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* historyIntroText */
  .history-intro p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* periodRange */
  .history-period-head>div>strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* periodDirector */
  .history-period-head>div>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:700!important;font-style:italic!important;text-decoration:none!important;}
  /* historyYear */
  .history-year{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* historyEventTitle */
  .history-card h4{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:15px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* historyEventText */
  .history-card p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
  /* historyEmpty */
  .history-period-empty,.history-empty{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
  /* trackIndex */
  .track-index{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* trackTitle */
  .track-main strong{font-family:Arial,sans-serif!important;font-size:14px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* trackMeta */
  .track-main small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
  /* trackDuration */
  .track-length{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* nowPlayingTitle */
  #nowPlayingTitle{font-family:Arial,sans-serif!important;font-size:19px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* nowPlayingMeta */
  #nowPlayingMeta{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
  /* modeMain */
  .mode-btn{font-family:Arial,sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* modeSub */
  .mode-btn span{font-family:Arial,sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* progressTime */
  .progress-row>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:16px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* miniPlayerTitle */
  .mini-info strong{font-family:Arial,sans-serif!important;font-size:17px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* miniPlayerMeta */
  .mini-info small{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* miniPlayerTag */
  .mini-player:after{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:9px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* comingBadge */
  .coming-badge{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:19px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* userLoginTitle */
  .user-auth-card>h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:21px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* userIntroText */
  .user-auth-card>p{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:14px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* formLabel */
  .user-login-form label,.change-password-form label,.user-name-form label{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* authStatus */
  .user-auth-status{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:italic!important;text-decoration:none!important;}
  /* profileRole */
  #userProfileRole{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* profileName */
  #userProfileName{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:22px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* profileEmail */
  #userProfileEmail{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* accountNoticeTitle */
  .password-setup-notice strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:10px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* accountNoticeText */
  .password-setup-notice span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* settingsEyebrow */
  .user-settings-title .eyebrow,.user-password-details>summary .eyebrow{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:12px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* settingsTitle */
  .user-settings-title h4{font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* passwordSummary */
  .user-password-details>summary strong{font-family:Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* actionButton */
  .user-password-btn,.user-logout-btn{font-family:Arial,sans-serif!important;font-size:13px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* modalTitle */
  .dresscode-sheet>h2{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:22px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* modalSubtitle */
  .dresscode-subtitle{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:19px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* dressHeading */
  .dresscode-grid h3{font-family:Arial,sans-serif!important;font-size:24px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
  /* dressBody */
  .dresscode-text{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:17px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* viewerCaptionTitle */
  .history-image-caption strong{font-family:Arial,sans-serif!important;font-size:13px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* viewerCaptionText */
  .history-image-caption span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:400!important;font-style:normal!important;text-decoration:none!important;}
  /* viewerToolbar */
  .history-image-toolbar button,.history-image-toolbar>span{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;font-size:11px!important;font-weight:700!important;font-style:normal!important;text-decoration:none!important;}
}

/* v0.31 · HISTÒRIC incremental, AVUI, PLAYER centrat i HEMEROTECA */
.calendar-day.today,
.calendar-day.today.event-normal,
.calendar-day.today.event-featured,
.calendar-day.today.selected{
  background:#c72f34!important;
  border-color:#9f2026!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.22),0 0 0 2px rgba(159,32,38,.12)!important;
}
.calendar-day.today:hover,.calendar-day.today.event-normal:hover,.calendar-day.today.event-featured:hover{background:#b6252b!important}
.calendar-day.today .day-number,.calendar-day.today.event-featured .day-number,.calendar-day.today.event-normal .day-number{color:#fff!important}
.calendar-day.today.has-event:after{display:block!important;content:"";position:absolute;left:auto!important;right:9px;top:9px;bottom:auto!important;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px rgba(255,255,255,.92)!important;background:var(--blue)!important}
.calendar-day.today.event-featured:after{background:var(--gold)!important}
.calendar-day.today.event-other:after{background:#4f9b62!important}
.play-btn,.mini-play{display:grid!important;place-items:center!important;padding:0!important;line-height:1!important}
.pause-glyph{width:17px;height:19px;display:flex;align-items:stretch;justify-content:center;gap:4px;margin:0;padding:0;transform:none}
.pause-glyph i{display:block;width:5px;height:100%;border-radius:1.5px;background:currentColor}
.play-glyph{display:block;width:0;height:0;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:14px solid currentColor;margin-left:3px}
.mini-play .pause-glyph{width:13px;height:15px;gap:3px}.mini-play .pause-glyph i{width:4px}.mini-play .play-glyph{border-top-width:7px;border-bottom-width:7px;border-left-width:11px;margin-left:2px}
.hemeroteca-launch-wrap{position:relative;z-index:2;display:flex;justify-content:center;padding:8px 0 28px}
.hemeroteca-launch{width:min(100%,560px);border:1px solid rgba(57,58,134,.16);border-radius:22px;padding:18px 24px;background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff;box-shadow:0 16px 38px rgba(57,58,134,.18);display:grid;gap:3px;text-align:center;transition:.18s ease}
.hemeroteca-launch:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(57,58,134,.24)}.hemeroteca-launch span{font-size:.64rem;letter-spacing:.14em;opacity:.72}.hemeroteca-launch strong{font-size:1.4rem;letter-spacing:.08em}.hemeroteca-launch small{font-size:.74rem;opacity:.82}
.hemeroteca-panel[hidden],#historyMainContent[hidden]{display:none!important}.hemeroteca-panel{display:grid;gap:16px}.hemeroteca-head{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start}.hemeroteca-head h3{margin:4px 0 7px;font-size:2.4rem;letter-spacing:-.04em}.hemeroteca-head p{margin:0;color:var(--muted);line-height:1.55}.hemeroteca-back{min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--blue);font-weight:900;padding:0 13px}.hemeroteca-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hemeroteca-tab{min-height:48px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--blue);font-size:.78rem;font-weight:900;letter-spacing:.06em}.hemeroteca-tab.active{background:var(--blue);border-color:var(--blue);color:#fff}.hemeroteca-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hemeroteca-card{min-width:0;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow-soft);overflow:hidden}.hemeroteca-media{height:260px;display:grid;grid-template-columns:repeat(var(--hemero-cols,1),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:3px;background:var(--paper);overflow:hidden}.hemeroteca-image-button{border:0;padding:0;min-width:0;min-height:0;background:var(--paper);cursor:zoom-in;overflow:hidden}.hemeroteca-image-button img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}.hemeroteca-image-button:hover img{transform:scale(1.025)}.hemeroteca-card-copy{padding:15px 16px 17px}.hemeroteca-card-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:.64rem;letter-spacing:.08em;color:var(--muted);font-weight:800}.hemeroteca-card-meta strong{color:var(--gold-deep)}.hemeroteca-card h4{margin:9px 0 6px;font-size:1.05rem}.hemeroteca-card p{margin:0 0 12px;color:var(--muted);font-size:.84rem;line-height:1.5}.hemeroteca-link{display:inline-flex;align-items:center;min-height:34px;padding:0 11px;border-radius:10px;background:var(--gold-soft);color:var(--gold-deep);font-size:.68rem;font-weight:900;letter-spacing:.05em;text-decoration:none}.hemeroteca-empty{grid-column:1/-1;text-align:center;color:var(--muted)}
@media(max-width:900px){.hemeroteca-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.calendar-day.today.has-event:after{right:6px;top:6px;width:7px;height:7px;box-shadow:0 0 0 1.5px rgba(255,255,255,.94)!important}.hemeroteca-launch{border-radius:18px;padding:16px}.hemeroteca-head{grid-template-columns:1fr;gap:12px}.hemeroteca-head h3{font-size:2rem}.hemeroteca-back{justify-self:start}.hemeroteca-tabs{gap:5px}.hemeroteca-tab{min-height:44px;font-size:.66rem;padding:0 5px}.hemeroteca-grid{grid-template-columns:1fr;gap:12px}.hemeroteca-media{height:230px}}
.calendar-day.today.outside{opacity:1}

/* v0.32 · HOME USER, CALENDARI, HEMEROTECA, visor i ajustos HISTÒRIC */
.calendar-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:.68rem;font-weight:850;letter-spacing:.04em;color:var(--muted)}
.calendar-legend span{display:inline-flex;align-items:center;gap:6px}
.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.legend-dot.today-dot{background:#c72f34}.legend-dot.rehearsal-dot{background:var(--blue)}.legend-dot.event-dot{background:var(--gold)}.legend-dot.other-dot{background:#4f9b62}

.user-drive-box{display:grid;gap:12px}
.drive-scores-btn{min-height:66px;border:1px solid rgba(57,58,134,.18);border-radius:16px;background:linear-gradient(135deg,var(--blue),var(--blue-deep));color:#fff;display:flex;align-items:center;justify-content:center;gap:13px;padding:12px 18px;font-weight:900;letter-spacing:.06em;text-decoration:none;box-shadow:0 10px 24px rgba(57,58,134,.14);transition:.18s ease}
.drive-scores-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(57,58,134,.2)}
.drive-scores-icon{width:38px;height:32px;display:grid;place-items:center;flex:0 0 auto}.drive-scores-icon svg{width:38px;height:32px;display:block}

.history-period{padding-top:0!important}
.history-period-head{margin-top:0!important}
.history-period + .history-period{margin-top:0!important}
.history-period.is-collapsed + .history-period:not(.is-collapsed),
.history-period:not(.is-collapsed) + .history-period{padding-top:0!important}

.hemeroteca-panel{gap:12px}
.hemeroteca-back-row{display:block;width:100%}
.hemeroteca-back{width:100%;min-height:46px;text-align:left;padding:0 16px;border-radius:14px;background:#fff}
.hemeroteca-head{display:block!important;grid-template-columns:none!important}
.hemeroteca-tabs{gap:8px}
.hemeroteca-tab[data-hemeroteca-type="cartells"]{--hemero-color:#d4ac5f;--hemero-text:#24211f;background:#fffaf0;border-color:rgba(212,172,95,.5);color:#8d681f}
.hemeroteca-tab[data-hemeroteca-type="noticies"]{--hemero-color:#393a86;--hemero-text:#fff;background:#f4f4fb;border-color:rgba(57,58,134,.28);color:var(--blue)}
.hemeroteca-tab[data-hemeroteca-type="entrevistes"]{--hemero-color:#777b82;--hemero-text:#fff;background:#f4f5f6;border-color:#d6d8db;color:#5c6066}
.hemeroteca-tab.active{background:var(--hemero-color)!important;border-color:var(--hemero-color)!important;color:var(--hemero-text)!important;box-shadow:0 8px 18px rgba(36,33,31,.08)}

.hemeroteca-grid{display:block!important;columns:3 290px;column-gap:16px}
.hemeroteca-card{display:inline-block;width:100%;margin:0 0 16px;break-inside:avoid;page-break-inside:avoid;vertical-align:top;border-top:5px solid var(--hemero-accent,var(--blue))}
.hemeroteca-card.type-cartells{--hemero-accent:#d4ac5f}.hemeroteca-card.type-noticies{--hemero-accent:#393a86}.hemeroteca-card.type-entrevistes{--hemero-accent:#777b82}
.hemeroteca-media{height:auto!important;display:block!important;background:#fff;overflow:hidden}
.hemeroteca-image-button{display:block;width:100%;height:auto;min-height:0;border-bottom:3px solid #fff}
.hemeroteca-image-button:last-child{border-bottom:0}
.hemeroteca-image-button img{display:block;width:100%;height:auto!important;max-height:none!important;object-fit:contain!important;background:#fff}
.hemeroteca-link-thumb{min-height:180px;padding:24px;display:flex;align-items:center;justify-content:center;gap:16px;background:linear-gradient(145deg,#f8f8f8,#fff);border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);text-align:left}
.hemeroteca-link-thumb-icon{width:72px;height:72px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-soft);display:grid;place-items:center;flex:0 0 72px;font-size:2rem;color:var(--blue)}
.hemeroteca-link-thumb-icon img{width:44px;height:44px;object-fit:contain}
.hemeroteca-link-thumb strong,.hemeroteca-link-thumb small{display:block}.hemeroteca-link-thumb strong{font-size:1rem;line-height:1.25}.hemeroteca-link-thumb small{margin-top:6px;color:var(--muted);font-size:.7rem;word-break:break-word}
.hemeroteca-card-meta{align-items:flex-start}.hemeroteca-card-meta strong{text-align:right;line-height:1.25}
.hemeroteca-card.type-cartells .hemeroteca-card-meta span{color:#9a701f}.hemeroteca-card.type-noticies .hemeroteca-card-meta span{color:var(--blue)}.hemeroteca-card.type-entrevistes .hemeroteca-card-meta span{color:#676b71}

.history-image-viewport{position:relative}
.history-image-nav{position:sticky;top:50%;z-index:4;width:48px;height:64px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(20,20,20,.64);backdrop-filter:blur(8px);color:#fff;font-size:2.2rem;line-height:1;display:grid;place-items:center;transform:translateY(-50%);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.history-image-nav[hidden]{display:none!important}
.history-image-nav-prev{float:left;left:10px;margin-right:-48px}.history-image-nav-next{float:right;right:10px;margin-left:-48px}
.history-image-nav:hover{background:rgba(20,20,20,.82)}

@media(max-width:900px){.hemeroteca-grid{columns:2 240px}}
@media(max-width:780px){
  .calendar-legend{font-size:.62rem;gap:10px;margin-top:10px;padding-top:10px}
  .legend-dot{width:9px;height:9px}
  .drive-scores-btn{min-height:60px;border-radius:14px;padding:10px 14px}
  .hemeroteca-grid{columns:1}
  .hemeroteca-card{margin-bottom:12px}
  .hemeroteca-back{min-height:44px}
  .hemeroteca-link-thumb{min-height:145px;padding:18px}
  .hemeroteca-link-thumb-icon{width:58px;height:58px;flex-basis:58px;border-radius:16px}.hemeroteca-link-thumb-icon img{width:36px;height:36px}
  .history-image-nav{width:42px;height:56px;border-radius:14px;font-size:1.9rem}
  .history-image-nav-prev{left:6px;margin-right:-42px}.history-image-nav-next{right:6px;margin-left:-42px}
}
/* v0.32 · empty state dins masonry */
.hemeroteca-grid .hemeroteca-empty{column-span:all;width:100%;display:block}


/* ============================================================
   v0.33 · HEMEROTECA 8/4 + PLAYER PREV/NEXT centrat
   ============================================================ */
/* HEMEROTECA: graella fixa de 8 elements per fila en desktop. */
.hemeroteca-grid{
  display:grid!important;
  columns:auto!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:start!important;
}
.hemeroteca-grid .hemeroteca-card{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
  border-radius:12px!important;
}
.hemeroteca-grid .hemeroteca-card-copy{padding:9px 8px 10px!important}
.hemeroteca-grid .hemeroteca-card-meta{display:block!important;font-size:.52rem!important;line-height:1.25!important}
.hemeroteca-grid .hemeroteca-card-meta strong{display:block!important;margin-top:3px;text-align:left!important;font-size:.54rem!important}
.hemeroteca-grid .hemeroteca-card h4{margin:6px 0 4px!important;font-size:.76rem!important;line-height:1.15!important;overflow-wrap:anywhere}
.hemeroteca-grid .hemeroteca-card p{margin:0 0 7px!important;font-size:.64rem!important;line-height:1.3!important;overflow-wrap:anywhere}
.hemeroteca-grid .hemeroteca-link{min-height:27px!important;padding:0 7px!important;border-radius:7px!important;font-size:.54rem!important}
.hemeroteca-grid .hemeroteca-link-thumb{min-height:108px!important;padding:10px!important;gap:8px!important;flex-direction:column!important;text-align:center!important}
.hemeroteca-grid .hemeroteca-link-thumb-icon{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:12px!important;font-size:1.25rem!important}
.hemeroteca-grid .hemeroteca-link-thumb-icon img{width:27px!important;height:27px!important}
.hemeroteca-grid .hemeroteca-link-thumb strong{font-size:.7rem!important;line-height:1.15!important;overflow-wrap:anywhere}
.hemeroteca-grid .hemeroteca-link-thumb small{font-size:.52rem!important;line-height:1.2!important;overflow-wrap:anywhere}
.hemeroteca-grid .hemeroteca-empty{grid-column:1/-1!important;column-span:none!important}

/* PLAYER: glifs geomètrics amb centrament independent de la tipografia del sistema. */
#prevTrack,#nextTrack{
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  line-height:1!important;
}
.skip-glyph{display:flex;align-items:center;justify-content:center;gap:2px;width:18px;height:16px;margin:0 auto;line-height:1}
.skip-glyph i{display:block;flex:0 0 auto}
.skip-bar{width:3px;height:14px;border-radius:1px;background:currentColor}
.skip-triangle{width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent}
.skip-glyph-prev .skip-triangle{border-right:11px solid currentColor}
.skip-glyph-next .skip-triangle{border-left:11px solid currentColor}

@media(max-width:780px){
  /* HEMEROTECA: 4 elements per fila en mobile. */
  .hemeroteca-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  .hemeroteca-grid .hemeroteca-card{border-radius:9px!important;border-top-width:3px!important}
  .hemeroteca-grid .hemeroteca-card-copy{padding:6px 5px 7px!important}
  .hemeroteca-grid .hemeroteca-card-meta{font-size:.44rem!important}
  .hemeroteca-grid .hemeroteca-card-meta strong{font-size:.46rem!important;margin-top:2px}
  .hemeroteca-grid .hemeroteca-card h4{margin:4px 0 3px!important;font-size:.61rem!important;line-height:1.1!important}
  .hemeroteca-grid .hemeroteca-card p{margin-bottom:5px!important;font-size:.52rem!important;line-height:1.22!important}
  .hemeroteca-grid .hemeroteca-link{min-height:23px!important;padding:0 5px!important;font-size:.45rem!important}
  .hemeroteca-grid .hemeroteca-link-thumb{min-height:78px!important;padding:7px 4px!important;gap:5px!important}
  .hemeroteca-grid .hemeroteca-link-thumb-icon{width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important}
  .hemeroteca-grid .hemeroteca-link-thumb-icon img{width:21px!important;height:21px!important}
  .hemeroteca-grid .hemeroteca-link-thumb strong{font-size:.56rem!important}
  .hemeroteca-grid .hemeroteca-link-thumb small{font-size:.43rem!important}
  .skip-glyph{width:17px;height:15px;gap:2px}
  .skip-bar{width:3px;height:13px}
  .skip-triangle{border-top-width:6.5px;border-bottom-width:6.5px}
  .skip-glyph-prev .skip-triangle{border-right-width:10px}
  .skip-glyph-next .skip-triangle{border-left-width:10px}
}


/* ============================================================
   v0.34 · USER avatar global + equalitzador reactiu + PLAYER mobile
   ============================================================ */
/* USER: quan hi ha sessió, qualsevol iconografia genèrica USER passa a mostrar l'avatar actiu. */
.user-avatar-menu-icon{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--gold-soft);box-shadow:inset 0 0 0 1px rgba(212,172,95,.34)}
.user-avatar-menu-icon>img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.user-avatar-menu-icon>.user-avatar-menu-fallback{width:100%;height:100%;display:grid;place-items:center}
.user-avatar-menu-icon>.user-avatar-menu-fallback[hidden]{display:none!important}
.user-avatar-menu-icon .menu-icon{width:82%;height:82%}

/* USER: text alineat al centre en PARTITURES, AVATAR, NOM i CONTRASENYA. */
.user-drive-box,.user-avatar-form,.user-name-form,.user-password-details{text-align:center}
.user-settings-title{text-align:center}
.user-settings-title .eyebrow,.user-settings-title h4{display:block;text-align:center}
.user-name-form label,.user-password-details .change-password-form label{text-align:center}
.user-settings-box .user-auth-status{display:block;text-align:center;width:100%}
.user-settings-box .user-password-btn{justify-self:center;margin-inline:auto}
.user-password-details>summary{position:relative;justify-content:center!important;text-align:center}
.user-password-details>summary>span:first-child{width:100%;justify-items:center;padding-inline:32px}
.user-password-details>summary .details-chevron{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.user-password-details[open]>summary .details-chevron{transform:translateY(-50%) rotate(180deg)}

/* PLAYER: TOTES les barres del mateix icono estan quietes per defecte. */
.icon-playlist .bar{animation:none!important;transform:scaleY(1)!important;transform-box:fill-box!important;transform-origin:50% 100%!important;will-change:transform}
.icon-playlist.is-playing .bar{animation:playerBarsV034 .72s ease-in-out infinite alternate!important}
.icon-playlist.is-playing .b1{animation-duration:.54s!important;animation-delay:-.12s!important}
.icon-playlist.is-playing .b2{animation-duration:.78s!important;animation-delay:-.31s!important}
.icon-playlist.is-playing .b3{animation-duration:.61s!important;animation-delay:-.22s!important}
.icon-playlist.is-playing .b4{animation-duration:.88s!important;animation-delay:-.37s!important}
.icon-playlist.is-playing .b5{animation-duration:.67s!important;animation-delay:-.18s!important}
@keyframes playerBarsV034{0%{transform:scaleY(.34)}45%{transform:scaleY(.72)}100%{transform:scaleY(1)}}

/* PLAYER MOBILE: composició vertical neta i ordenada. */
@media(max-width:780px){
  .player-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:center!important;
    gap:0!important;
    padding:16px 14px!important;
  }
  .player-card .record-art{order:1;width:92px!important;margin:0 0 10px!important;align-self:center!important}
  .player-card>.eyebrow{order:2;align-self:center!important;margin:0 0 4px!important}
  .player-card>h3{order:3;width:100%;margin:0 0 3px!important;font-size:1.05rem!important;line-height:1.16!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;text-align:center!important}
  .player-card>p{order:4;width:100%;margin:0 0 10px!important;font-size:.72rem!important;line-height:1.3!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;text-align:center!important}
  .player-card>.player-controls{order:5;width:100%;display:flex!important;justify-content:center!important;align-items:center!important;gap:12px!important;margin:0 0 12px!important}
  .player-card .icon-btn{min-width:40px!important;width:40px!important;height:40px!important;padding:0!important}
  .player-card .play-btn{width:50px!important;height:50px!important;font-size:1rem!important}
  .player-card>.progress-row{order:6;width:100%;grid-template-columns:42px minmax(0,1fr) 42px!important;gap:8px!important;margin:0 0 12px!important;align-items:center!important;text-align:center!important}
  .player-card>.playback-modes{order:7;width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0!important}
  .player-card>.playback-modes .mode-btn{min-width:0!important;width:100%!important;min-height:42px!important;padding:6px 4px!important;display:grid!important;place-items:center!important;gap:1px!important;line-height:1!important}
  .player-card>.playback-modes .mode-btn span{display:block!important;margin:2px 0 0!important;font-size:.46rem!important;line-height:1.05!important}
  .player-card .record-icon{width:46px!important;height:46px!important}
}
@media(max-width:440px){
  .player-card .record-art{width:82px!important}
  .player-card .record-icon{width:42px!important;height:42px!important}
  .player-card>.player-controls{gap:10px!important}
  .player-card>.progress-row{grid-template-columns:38px minmax(0,1fr) 38px!important;gap:6px!important}
  .player-card>.playback-modes .mode-btn{min-height:40px!important;padding:5px 3px!important}
}


/* ============================================================
   v0.35 · PLAYER reactiu real + CALENDARI mobile + logos + avatar
   ============================================================ */
/* PLAYER: totes les barres queden quietes fora de reproducció.
   La classe is-playing s'aplica directament a CADA SVG .icon-playlist
   segons l'estat real de l'<audio> de playlist. */
.icon-playlist .bar{animation:none!important;transform:scaleY(1)!important;transform-box:fill-box!important;transform-origin:50% 100%!important}
.icon-playlist.is-playing .bar{animation:playerBarsV035 .68s ease-in-out infinite alternate!important}
.icon-playlist.is-playing .b1{animation-duration:.50s!important;animation-delay:-.08s!important}
.icon-playlist.is-playing .b2{animation-duration:.73s!important;animation-delay:-.27s!important}
.icon-playlist.is-playing .b3{animation-duration:.58s!important;animation-delay:-.17s!important}
.icon-playlist.is-playing .b4{animation-duration:.84s!important;animation-delay:-.34s!important}
.icon-playlist.is-playing .b5{animation-duration:.64s!important;animation-delay:-.14s!important}
@keyframes playerBarsV035{0%{transform:scaleY(.28)}42%{transform:scaleY(.68)}100%{transform:scaleY(1)}}

/* USER: traç blau marí corporatiu a tots els avatars circulars actius. */
.user-avatar-menu-icon,.user-avatar-mark{box-shadow:inset 0 0 0 2px var(--blue)!important}
.user-avatar-menu-icon>img,.user-avatar-mark>img{border:2px solid var(--blue);box-sizing:border-box}

/* Logo de banda a HOME i USER. */
.band-logo-block{display:flex;justify-content:center;align-items:center;width:100%}
.band-logo-block img{display:block;width:auto;height:auto;max-width:min(320px,48vw);max-height:92px;object-fit:contain}
.home-band-logo{margin:14px 0 4px}
.user-band-logo{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.user-band-logo img{max-width:min(280px,60vw);max-height:86px}

@media(max-width:780px){
  /* CALENDARI: compactació perquè el mes i l'inici del detall càpiguen en pantalla amb molt menys scroll. */
  #view-calendar .calendar-layout{gap:8px!important}
  #view-calendar .panel{padding:12px!important;border-radius:18px!important}
  #view-calendar .panel-head{margin-bottom:8px!important;gap:8px!important}
  #view-calendar .panel-head h3{margin-top:1px!important;font-size:1.05rem!important;line-height:1.1!important}
  #view-calendar .month-controls{gap:5px!important}
  #view-calendar .month-controls .icon-btn{min-width:32px!important;width:32px!important;height:32px!important;padding:0!important;border-radius:9px!important;font-size:1rem!important}
  #view-calendar .month-controls .mini-btn{height:32px!important;min-width:46px!important;padding:0 8px!important;border-radius:9px!important;font-size:.58rem!important}
  #view-calendar .calendar-weekdays,#view-calendar .calendar-grid{gap:3px!important}
  #view-calendar .calendar-weekdays{margin-bottom:4px!important;font-size:.58rem!important}
  #view-calendar .calendar-weekdays span{font-size:9px!important}
  #view-calendar .calendar-day{min-height:39px!important;height:39px!important;padding:4px!important;border-radius:8px!important}
  #view-calendar .calendar-day .day-number{font-size:17px!important;line-height:1!important}
  #view-calendar .calendar-day.has-event:after{left:5px!important;bottom:4px!important;width:5px!important;height:5px!important;box-shadow:8px 0 0 var(--blue)!important}
  #view-calendar .calendar-day.today.has-event:after{left:auto!important;right:4px!important;top:4px!important;bottom:auto!important;width:6px!important;height:6px!important;box-shadow:0 0 0 1px rgba(255,255,255,.94)!important}
  #view-calendar .calendar-legend{font-size:.52rem!important;gap:8px!important;margin-top:6px!important;padding-top:6px!important}
  #view-calendar .calendar-legend span{gap:4px!important}
  #view-calendar .legend-dot{width:7px!important;height:7px!important}
  #view-calendar .events-panel .panel-head{margin-bottom:5px!important}
  #view-calendar .events-panel .panel-head h3{font-size:.95rem!important}
  #view-calendar .event-list{gap:6px!important}
  #view-calendar .event-card{padding:9px 10px!important;border-radius:12px!important}
  #view-calendar .event-card h4{margin:3px 0 4px!important;font-size:.92rem!important}
  #view-calendar .event-card p{margin:2px 0!important;font-size:.72rem!important;line-height:1.25!important}
  #view-calendar .event-card .event-type{font-size:.55rem!important}

  /* Logos compactes en mobile per evitar scroll innecessari. */
  .band-logo-block img{max-width:54vw;max-height:62px}
  .home-band-logo{margin:9px 0 0}
  .home-social-links{margin-top:9px!important}
  .user-band-logo{margin-top:12px;padding-top:10px}
  .user-band-logo img{max-width:52vw;max-height:60px}
  .user-logout-btn{margin-top:12px!important}
}


/* ============================================================
   v0.36 · PLAYER bars fix definitiu + logo banda escala 75
   ============================================================ */
/*
 * IMPORTANT: la geometria de les barres PLAYER s'anima des d'app.js
 * modificant directament y/height. Això evita el bloqueig que produïa
 * transform:scaleY(1)!important sobre els keyframes de v0.34/v0.35.
 */
.icon-playlist .bar,
.icon-playlist.is-playing .bar,
.record-icon .bar,
.record-icon.is-playing .bar,
.record-art.is-playing .record-icon .bar,
.player-card.is-playing .record-icon .bar{
  animation:none!important;
  transform:none!important;
  transform-origin:50% 100%!important;
}

/* bandalogo.jpg: escala visual solicitada 20 -> 75. */
.band-logo-block img{
  width:75%!important;
  max-width:900px!important;
  max-height:none!important;
  height:auto!important;
}
.user-band-logo img{
  width:75%!important;
  max-width:720px!important;
  max-height:none!important;
}
@media(max-width:780px){
  .band-logo-block img,
  .user-band-logo img{
    width:75%!important;
    max-width:75vw!important;
    max-height:none!important;
    height:auto!important;
  }
}


/* ============================================================
   v0.37 · HOME / USER / DRESSCODE refinements
   ============================================================ */
/* Logo: desktop més contingut; mobile conserva la presència gran de v0.36. */
@media(min-width:781px){
  .band-logo-block img,
  .user-band-logo img{
    width:35%!important;
    max-width:520px!important;
    max-height:none!important;
    height:auto!important;
  }
}

/* Avatar: mateix cercle blau marí real a tots els punts de la UI. */
.user-avatar-menu-icon,
.user-avatar-mark{
  border:2px solid var(--blue)!important;
  border-radius:50%!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.user-avatar-menu-icon>img,
.user-avatar-mark>img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border:0!important;
  border-radius:50%!important;
  box-sizing:border-box!important;
}

/* Tancar sessió: acció destructiva inequívoca. */
.user-logout-btn{
  background:#a02a2a!important;
  border-color:#a02a2a!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(160,42,42,.18)!important;
}
.user-logout-btn:hover{background:#812020!important;border-color:#812020!important;color:#fff!important}

/* DRESSCODE: icona de roba animada, blau + daurat com la resta de seccions. */
.dresscode-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.dresscode-clothes-icon{width:30px;height:30px;display:inline-grid;place-items:center;flex:0 0 30px}
.dresscode-clothes-icon svg{width:100%;height:100%;display:block;overflow:visible}
.dresscode-clothes-icon .dress-blue{fill:var(--blue-soft);stroke:var(--blue);stroke-width:1.65;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.dresscode-clothes-icon .dress-gold{fill:none;stroke:var(--gold-deep);stroke-width:1.65;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dresscode-clothes-icon .dress-hanger{fill:none;stroke:var(--gold);stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;transform-origin:16px 6px;animation:dressHangerSwing 1.8s ease-in-out infinite}
.dresscode-clothes-icon .dress-shirt{transform-origin:16px 16px;animation:dressShirtFloat 1.8s ease-in-out infinite}
@keyframes dressShirtFloat{0%,100%{transform:translateY(1px) rotate(-1deg)}50%{transform:translateY(-1.4px) rotate(1.2deg)}}
@keyframes dressHangerSwing{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.dresscode-clothes-icon .dress-shirt,.dresscode-clothes-icon .dress-hanger{animation:none!important}}


/* ============================================================
   v0.38 · LOGO bandera suau
   ============================================================ */
.band-logo-block{
  perspective:900px;
}
.band-logo-block img{
  transform-origin:12% 50%;
  backface-visibility:hidden;
  will-change:transform;
  animation:bandLogoFlagWave 4.8s ease-in-out infinite;
}
@keyframes bandLogoFlagWave{
  0%,100%{transform:perspective(900px) rotateY(-1.8deg) skewY(-.25deg) translateY(0) scaleX(.997)}
  25%{transform:perspective(900px) rotateY(1.5deg) skewY(.18deg) translateY(-.8px) scaleX(1.002)}
  50%{transform:perspective(900px) rotateY(2.4deg) skewY(.32deg) translateY(0) scaleX(.998)}
  75%{transform:perspective(900px) rotateY(-.9deg) skewY(-.14deg) translateY(.7px) scaleX(1.001)}
}
@media(prefers-reduced-motion:reduce){
  .band-logo-block img{animation:none!important;transform:none!important}
}


/* ============================================================
   v0.39 · FLAG intensa + HOME compacta + crèdits sidebar + DRESSCODE
   ============================================================ */
/* FLAG: ondulació més visible i freqüent. */
.band-logo-block{perspective:720px;overflow:visible}
.band-logo-block img{
  transform-origin:8% 50%!important;
  animation:bandLogoFlagWaveV039 1.55s cubic-bezier(.45,.05,.55,.95) infinite!important;
}
@keyframes bandLogoFlagWaveV039{
  0%,100%{transform:perspective(720px) rotateY(-7deg) skewY(-1.3deg) rotateZ(-.35deg) translate3d(0,0,0) scaleX(.986)}
  12.5%{transform:perspective(720px) rotateY(3deg) skewY(.9deg) rotateZ(.22deg) translate3d(1.2px,-1.4px,0) scaleX(1.008)}
  25%{transform:perspective(720px) rotateY(8deg) skewY(1.7deg) rotateZ(.48deg) translate3d(2px,-.4px,0) scaleX(.982)}
  37.5%{transform:perspective(720px) rotateY(1deg) skewY(.2deg) rotateZ(.05deg) translate3d(.8px,1.3px,0) scaleX(1.012)}
  50%{transform:perspective(720px) rotateY(-8.5deg) skewY(-1.8deg) rotateZ(-.5deg) translate3d(-1.6px,.3px,0) scaleX(.981)}
  62.5%{transform:perspective(720px) rotateY(-2deg) skewY(-.35deg) rotateZ(-.08deg) translate3d(-.6px,-1.2px,0) scaleX(1.01)}
  75%{transform:perspective(720px) rotateY(7deg) skewY(1.45deg) rotateZ(.38deg) translate3d(1.7px,.2px,0) scaleX(.984)}
  87.5%{transform:perspective(720px) rotateY(2deg) skewY(.35deg) rotateZ(.08deg) translate3d(.5px,1px,0) scaleX(1.007)}
}
@media(prefers-reduced-motion:reduce){.band-logo-block img{animation:none!important;transform:none!important}}

/* Crèdits també a la columna esquerra DESKTOP. */
.sidebar-credits{color:var(--muted);font-size:.68rem;line-height:1.5;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.sidebar-credits>div:last-child{font-size:.64rem;color:#8c8781}

/* HOME: icona i títol formen un únic bloc visual, sense buit excessiu. */
.home-card{justify-content:flex-start!important;gap:9px!important}
.home-card>div{margin-top:0!important}
.home-card h4{margin:5px 0 5px!important}
.home-card .status-pill+h4{margin-top:7px!important}
@media(min-width:781px){.home-grid.five-cards .home-card h4{margin-top:5px!important}}
@media(max-width:780px) and (min-width:441px){.home-card h4{margin-top:4px!important}}

/* Dresscode APP: nota ALTRES comuna. */
.dresscode-other-view{margin-top:14px;border:1px solid var(--line);border-radius:18px;padding:18px;background:linear-gradient(145deg,#fff,#fdfaf4)}
.dresscode-other-view h3{margin:0 0 8px;font-family:Arial,sans-serif}


/* ============================================================
   v0.40 · BANDALOGO FLAG de tela (SVG turbulence/displacement)
   ============================================================ */
/*
 * Inspirado en el comportamiento FLAG del mockup de referencia:
 * la imagen ya no se deforma como una placa rígida mediante rotateY/skew.
 * El filtro SVG #bandFlagWaveV040 desplaza internamente los píxeles,
 * simulando una bandera de tela. El transform solo aporta un sway mínimo.
 */
.band-logo-block{
  perspective:none!important;
  overflow:visible!important;
}
.band-logo-block img{
  transform-origin:center!important;
  backface-visibility:visible!important;
  will-change:transform,filter!important;
  -webkit-filter:url(#bandFlagWaveV040)!important;
  filter:url(#bandFlagWaveV040)!important;
  animation:bandLogoClothSwayV040 3.8s ease-in-out infinite!important;
}
@keyframes bandLogoClothSwayV040{
  0%{transform:rotateZ(-.8deg) translateY(0)}
  50%{transform:rotateZ(.8deg) translateY(2px)}
  100%{transform:rotateZ(-.8deg) translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .band-logo-block img{
    animation:none!important;
    transform:none!important;
    -webkit-filter:none!important;
    filter:none!important;
  }
}


/* ============================================================
   v0.42 · DRESSCODE estructurat + gènere USER + durades PLAYER
   ============================================================ */
.sidebar-version{display:none!important}
.playlist-panel-head{align-items:flex-end}
.playlist-summary{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
.playlist-summary>strong{color:var(--blue);font-size:.82rem;font-weight:950;letter-spacing:.035em}
.track-length{min-width:48px;text-align:right;font-variant-numeric:tabular-nums;font-weight:850;color:var(--blue)!important}
.dresscode-text{white-space:normal!important}
.dresscode-param-row{display:grid;grid-template-columns:minmax(105px,.72fr) minmax(0,1.6fr);gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid var(--line);text-align:left}
.dresscode-param-row:last-child{border-bottom:0}
.dresscode-param-row>span{font-size:.68rem;font-weight:950;letter-spacing:.06em;color:var(--gold-deep)}
.dresscode-param-row>strong{font-size:.88rem;line-height:1.4;color:var(--ink)}
.dresscode-param-row.legacy{grid-template-columns:1fr}
.user-gender-box{text-align:center}
.gender-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:480px;margin:0 auto}
.gender-choice-btn{min-height:58px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--blue);display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 14px;transition:.15s ease}
.gender-choice-btn>span{font-size:1.55rem;line-height:1}.gender-choice-btn>strong{font-size:.76rem;letter-spacing:.06em}
.gender-choice-btn:hover{background:var(--blue-soft);border-color:rgba(57,58,134,.32)}
.gender-choice-btn.selected{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(57,58,134,.17)}
@media(max-width:780px){
  .playlist-panel-head{align-items:flex-end!important}.playlist-summary{gap:3px}.playlist-summary>strong{font-size:.7rem}.track-length{min-width:43px!important;font-size:.72rem!important}
  .dresscode-param-row{grid-template-columns:1fr;gap:4px;padding:9px 0}.dresscode-param-row>strong{font-size:.84rem}.gender-choice-row{gap:8px}.gender-choice-btn{min-height:52px;padding:8px 10px}
}


/* ============================================================
   v0.42 · HOME / CALENDARI / DRESSCODE / USUARI
   ============================================================ */

/* HOME · el bloc de cada card queda realment centrat als dos eixos. */
.home-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:8px!important;
}
.home-card>div{width:100%;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.home-card .big-icon{margin:0 auto!important;flex:0 0 auto}
.home-card h4{margin:4px 0!important}
.home-card p{margin:0 auto!important}
#homeWelcomeEyebrow{font-size:28px!important;line-height:1.05!important;letter-spacing:.07em!important}
.vianda-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.vianda-link:hover{color:var(--blue-deep)}

/* CALENDARI · icones de meta consistents (rellotge + chincheta). */
.event-meta-line{display:flex!important;align-items:center!important;gap:7px!important}
.event-meta-icon{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:var(--blue);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* VEURE DRESSCODE · només icona de prenda + TEXT FINAL. */
.dresscode-param-row{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:10px 0!important;
  text-align:left!important;
}
.dresscode-param-row>span{font-size:inherit!important;letter-spacing:0!important;color:inherit!important}
.dresscode-param-row>strong{font-size:.92rem!important;line-height:1.4!important}
.dresscode-garment-icon{
  width:44px;height:44px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--blue-soft),var(--gold-soft));
  color:var(--blue);border:1px solid rgba(57,58,134,.1);
}
.dresscode-garment-icon .garment-icon-svg{width:32px;height:32px;display:block}
.dresscode-garment-icon .garment-gold{stroke:var(--gold-deep)}

/* USUARI · bloc de perfil superior amb molta més presència. */
.user-view-wrap{max-width:900px}
.user-profile-head{
  gap:24px!important;
  padding:24px 22px 28px!important;
  margin:-4px -4px 4px!important;
  border:1px solid var(--line)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#fff 0%,#fffaf0 55%,#f4f4fb 100%)!important;
  box-shadow:var(--shadow-soft);
}
.user-avatar-mark{width:108px!important;height:108px!important;flex:0 0 108px!important;border-width:3px!important}
.user-profile-head .eyebrow{font-size:.86rem!important}
.user-profile-head h3{font-size:2.35rem!important;line-height:1!important;margin:6px 0 8px!important}
.user-profile-head p{font-size:1rem!important;line-height:1.3!important}
.user-profile-notifications-launcher{
  margin-left:auto!important;
  width:164px;
  min-width:164px;
  min-height:118px;
  align-self:stretch;
  background:linear-gradient(145deg,#eaf5ff,#dbeeff)!important;
  border-color:rgba(63,121,187,.26)!important;
  color:#215a96!important;
  box-shadow:0 8px 22px rgba(33,90,150,.10)!important;
}
.user-profile-notifications-launcher .user-tool-icon{
  width:50px;height:50px;min-width:50px;min-height:50px;
  background:#c9f3ff;
  color:#215a96;
  box-shadow:inset 0 0 0 1px rgba(63,121,187,.16);
}
.user-profile-notifications-launcher .user-tool-title{
  color:#215a96!important;
}
.user-tool-title-one-line{
  white-space:nowrap;
  overflow-wrap:normal!important;
  font-size:.72rem!important;
  letter-spacing:.015em!important;
}

/* AVATAR · caixa col·lapsada per defecte. */
.user-avatar-form{padding:0!important;overflow:hidden;background:#fff!important}
.avatar-profile-details{width:100%}
.avatar-profile-details>summary{
  list-style:none;min-height:58px;padding:0 18px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  color:var(--blue-deep);cursor:pointer;user-select:none;
}
.avatar-profile-details>summary::-webkit-details-marker{display:none}
.avatar-profile-details>summary strong{font-size:.82rem;letter-spacing:.1em}
.avatar-profile-details .details-chevron{transition:transform .18s ease;color:var(--gold-deep);font-size:1.15rem}
.avatar-profile-details[open] .details-chevron{transform:rotate(180deg)}
.avatar-profile-body{border-top:1px solid var(--line);padding:16px;display:grid;gap:14px}

/* PARTITURES · caixa daurada prioritària amb barrido lluminós. */
.user-drive-box{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(168,118,20,.38)!important;
  background:linear-gradient(135deg,#fff8dc 0%,#efd08b 46%,#fff6d5 100%)!important;
  box-shadow:0 13px 30px rgba(168,118,20,.18)!important;
}
.user-drive-box::after{
  content:"";position:absolute;inset:-35% auto -35% -45%;
  width:26%;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),rgba(255,255,255,.9),rgba(255,255,255,.15),transparent);
  transform:skewX(-18deg);
  animation:driveScoresShineV042 2.8s ease-in-out infinite;
}
@keyframes driveScoresShineV042{
  0%,18%{left:-45%;opacity:0}
  28%{opacity:1}
  68%{left:120%;opacity:1}
  78%,100%{left:120%;opacity:0}
}
.user-drive-box .user-settings-title .eyebrow{color:#8d681f!important}
.user-drive-box .user-settings-title h4{color:#4e3b16!important}
.drive-scores-btn{
  position:relative;z-index:1;
  border-color:rgba(112,75,9,.28)!important;
  background:linear-gradient(135deg,#c79331,#e2bb65)!important;
  color:#2f260f!important;
  box-shadow:0 9px 22px rgba(119,77,10,.2)!important;
}
.drive-scores-btn:hover{filter:brightness(1.04)}

/* El contingut real ha de quedar per damunt del shine. */
.user-drive-box>*{position:relative;z-index:1}

@media(max-width:780px){
  #homeWelcomeEyebrow{font-size:26px!important}
  .event-meta-icon{width:16px;height:16px;flex-basis:16px}
  .dresscode-param-row{grid-template-columns:42px minmax(0,1fr)!important;gap:9px!important}
  .dresscode-garment-icon{width:38px;height:38px;border-radius:11px}
  .dresscode-garment-icon .garment-icon-svg{width:28px;height:28px}
  .user-profile-head{gap:16px!important;padding:18px!important;align-items:center!important;flex-wrap:wrap!important}
  .user-avatar-mark{width:82px!important;height:82px!important;flex-basis:82px!important}
  .user-profile-head h3{font-size:1.72rem!important}
  .user-profile-head p{font-size:.84rem!important}
  .user-profile-copy{flex:1 1 calc(100% - 98px)!important;min-width:0}
  .user-profile-notifications-launcher{margin-left:auto!important;width:120px;min-width:120px;min-height:88px;flex:0 0 120px}
}
@media(max-width:440px){
  .home-card{min-height:140px!important}
}
@media(prefers-reduced-motion:reduce){
  .user-drive-box::after{animation:none!important;display:none!important}
}


/* ============================================================
   v0.43 · USUARI / DRESSCODE refinaments
   ============================================================ */
/* Selector d'avatar: text centrat amb el chevron independent a la dreta. */
.avatar-profile-details>summary{position:relative!important;justify-content:center!important;text-align:center!important}
.avatar-profile-details>summary strong{display:block!important;width:100%!important;text-align:center!important}
.avatar-profile-details>summary .details-chevron{position:absolute!important;right:18px!important;top:50%!important;transform:translateY(-50%)!important}
.avatar-profile-details[open]>summary .details-chevron{transform:translateY(-50%) rotate(180deg)!important}
/* NOM: el valor escrit pel USER queda visualment centrat. */
.user-name-form input{text-align:center!important}

/* ============================================================
   v0.44 · USUARI NOM + HISTÒRIC dinàmic
   ============================================================ */

/* USUARI · NOM simplificat i valor principal x3. */
.user-name-form{gap:14px!important;text-align:center!important}
.user-name-form>.user-settings-title{display:grid!important;gap:5px!important;text-align:center!important}
.user-name-form>#profileDisplayName{
  width:100%!important;
  min-height:82px!important;
  padding:8px 14px!important;
  text-align:center!important;
  font-size:3rem!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  color:var(--blue-deep)!important;
  border-radius:17px!important;
}

/* HISTÒRIC · capçaleres lineals: cercle + inici + final + director + fletxa. */
.history-period-head{
  min-height:66px!important;
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  cursor:pointer!important;
}
.history-period-inline{
  min-width:0!important;
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
.history-period-head .history-period-inline>span,
.history-period-head .history-period-inline>strong{margin:0!important;display:inline-flex!important;align-items:center!important;line-height:1!important}
.history-period-head .history-period-year{
  flex:0 0 auto!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-size:.82rem!important;
  font-weight:850!important;
  font-style:normal!important;
  letter-spacing:.06em!important;
  color:var(--period-text)!important;
  opacity:.9!important;
}
.history-period-head .history-period-separator{
  flex:0 0 auto!important;
  font-size:.95rem!important;
  font-style:normal!important;
  color:var(--period-text)!important;
  opacity:.64!important;
}
.history-period-head .history-period-director{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-size:1rem!important;
  font-weight:900!important;
  font-style:normal!important;
  letter-spacing:0!important;
  color:var(--period-text)!important;
}
.history-period-head .history-current-badge{
  flex:0 0 auto!important;
  min-height:23px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.32)!important;
  background:rgba(255,255,255,.16)!important;
  color:var(--period-text)!important;
  font-size:.56rem!important;
  font-weight:950!important;
  font-style:normal!important;
  letter-spacing:.09em!important;
}
.history-period-chevron{flex:0 0 auto!important;margin-left:auto!important}

/* Període obert: el node respira i la línia del tram “neix” des de la capçalera. */
.history-period-items{position:relative!important;isolation:isolate}
.history-period:not(.is-collapsed) .history-period-dot{animation:historyPeriodDotV044 1.8s ease-in-out infinite}
.history-period:not(.is-collapsed) .history-period-items::before{
  content:"";
  position:absolute;
  z-index:0;
  left:50%;
  top:-24px;
  bottom:18px;
  width:4px;
  transform:translateX(-50%);
  transform-origin:top;
  border-radius:999px;
  background:linear-gradient(180deg,var(--period-color),color-mix(in srgb,var(--period-color) 34%, transparent));
  opacity:.55;
  animation:historyLineGrowV044 .44s cubic-bezier(.22,.8,.28,1) both;
}
.history-period-items>.history-item,.history-period-items>.history-period-empty,.history-period-items>.history-next-period{position:relative;z-index:1}
@keyframes historyPeriodDotV044{0%,100%{box-shadow:0 0 0 4px rgba(255,255,255,.16)}50%{box-shadow:0 0 0 9px rgba(255,255,255,.08)}}
@keyframes historyLineGrowV044{from{transform:translateX(-50%) scaleY(0);opacity:0}to{transform:translateX(-50%) scaleY(1);opacity:.55}}

/* Entrades com a “moments”: fotografia principal + tira navegable. */
.history-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.history-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(57,58,134,.13);border-color:rgba(57,58,134,.18)}
.history-media-showcase{width:100%;background:#fff;overflow:hidden}
.history-image-button{appearance:none;border:0;padding:0;background:#fff;cursor:zoom-in;overflow:hidden}
.history-image-hero{position:relative;display:block;width:100%;height:300px}
.history-image-hero img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;transition:transform .28s ease}
.history-image-hero:hover img{transform:scale(1.025)}
.history-photo-count{
  position:absolute;right:12px;bottom:12px;
  min-height:28px;padding:0 10px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(20,20,24,.74);backdrop-filter:blur(7px);
  color:#fff;font-size:.64rem;font-weight:950;letter-spacing:.08em;
  box-shadow:0 5px 16px rgba(0,0,0,.18)
}
.history-media-strip{
  display:flex;gap:5px;overflow-x:auto;overscroll-behavior-inline:contain;
  padding:5px;background:#f6f4ef;scrollbar-width:thin;scroll-snap-type:x proximity
}
.history-image-thumb{flex:0 0 92px;height:70px;border-radius:9px;scroll-snap-align:start}
.history-image-thumb img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;transition:transform .2s ease}
.history-image-thumb:hover img{transform:scale(1.05)}
.history-moment-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
.history-entry-photo-count{font-size:.61rem;font-weight:900;letter-spacing:.07em;color:var(--muted);white-space:nowrap}

/* Navegació guiada cap al següent període. */
.history-next-period{
  justify-self:center;
  min-height:42px;
  margin:1px auto 4px;
  padding:0 15px;
  border:1px solid color-mix(in srgb,var(--period-color) 32%, #ddd);
  border-radius:999px;
  background:#fff;
  color:var(--period-color);
  display:inline-flex;align-items:center;gap:9px;
  font-size:.62rem;font-weight:950;letter-spacing:.08em;
  box-shadow:var(--shadow-soft);
  transition:transform .18s ease,background .18s ease
}
.history-next-period strong{font-size:1rem;line-height:1}
.history-next-period:hover{transform:translateY(2px);background:#fafafa}

/* Visor · contador explícit i swipe horitzontal quan la imatge no està ampliada. */
.history-image-counter{
  min-width:62px!important;
  padding:0 8px!important;
  height:30px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#292930!important;
  color:#fff!important;
  font-variant-numeric:tabular-nums!important;
  letter-spacing:.04em!important;
}
.history-image-viewport{touch-action:pan-y pinch-zoom}

@media(max-width:780px){
  .user-name-form>#profileDisplayName{font-size:3rem!important;min-height:78px!important}
  .history-period-head{min-height:62px!important;gap:9px!important;padding-left:14px!important;padding-right:14px!important}
  .history-period-inline{gap:7px!important}
  .history-period-head .history-period-year{font-size:.7rem!important;letter-spacing:.035em!important}
  .history-period-head .history-period-director{font-size:.86rem!important}
  .history-period-head .history-current-badge{font-size:.5rem!important;padding:0 6px!important;min-height:21px!important}
  .history-period:not(.is-collapsed) .history-period-items::before{left:16px;transform:none;width:3px}
  @keyframes historyLineGrowV044{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:.55}}
  .history-image-hero{height:auto;aspect-ratio:4/3}
  .history-image-hero img{object-fit:contain!important;background:#fff}
  .history-image-thumb{flex-basis:78px;height:60px}
  .history-card:hover{transform:none}
  .history-next-period{margin-left:40px}
}
@media(max-width:440px){
  .history-period-inline{gap:5px!important}
  .history-period-head .history-period-year{font-size:.62rem!important}
  .history-period-head .history-period-director{font-size:.78rem!important}
  .history-current-badge{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  .history-period:not(.is-collapsed) .history-period-dot,
  .history-period:not(.is-collapsed) .history-period-items::before{animation:none!important}
  .history-card,.history-image-hero img{transition:none!important}
}

/* ============================================================
   v0.45 · HISTÒRIC més compacte + petits ajustos APP
   ============================================================ */
/* Els noms dels directors deixen d'anar en negreta. */
.history-period-head .history-period-director{font-weight:500!important}

/* En desktop aprofitem l'espai buit entre carrils alterns del timeline. */
@media(min-width:781px){
  .history-period-items{gap:0!important}
  .history-item{transition:margin-top .18s ease}
  .history-next-period{margin-top:18px!important}
}


/* ============================================================
   v0.46 · HISTÒRIC proporcions reals + anys x2
   ============================================================ */
/* Els nodes de període són sempre blancs, també sobre el període daurat de Pere Bono. */
.history-period-dot{background:#fff!important}

/* Anys de les capçaleres de període al doble de l'escala v0.45. */
.history-period-head .history-period-year{
  font-size:1.64rem!important;
  line-height:.92!important;
  letter-spacing:.035em!important;
}
/* També destaquem al doble l'any de cada moment de la cronologia. */
.history-year{
  min-height:42px!important;
  padding:0 13px!important;
  font-size:1.44rem!important;
  line-height:1!important;
}

/* Les fotografies de HISTÒRIC respecten la proporció real de cada fitxer, sense crop. */
.history-image-hero{
  height:auto!important;
  aspect-ratio:auto!important;
  line-height:0!important;
}
.history-image-hero img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  background:#fff!important;
}
.history-media-strip{
  align-items:flex-start!important;
}
.history-image-thumb{
  flex:0 0 auto!important;
  width:auto!important;
  height:auto!important;
  max-width:180px!important;
  border-radius:9px!important;
  line-height:0!important;
}
.history-image-thumb img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:180px!important;
  max-height:120px!important;
  object-fit:contain!important;
  background:#fff!important;
}

@media(max-width:780px){
  .history-period-head .history-period-year{font-size:1.4rem!important;letter-spacing:.02em!important}
  .history-year{font-size:1.44rem!important}
  .history-image-thumb{max-width:138px!important}
  .history-image-thumb img{max-width:138px!important;max-height:96px!important}
}
@media(max-width:440px){
  .history-period-head .history-period-year{font-size:1.24rem!important}
}

/* ======================================================================
   v0.47 · USUARI 2x2 + HISTÒRIC Pere Bono
   ====================================================================== */
.user-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
  align-items:start;
}
.user-settings-grid .user-settings-box{
  margin-top:0!important;
  min-width:0;
}
.user-profile-tile{
  overflow:hidden;
  padding:0!important;
  background:linear-gradient(145deg,#fff,#fcfbf8);
}
.user-profile-tile>summary{
  min-height:92px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  cursor:pointer;
  list-style:none;
  text-align:center;
  position:relative;
}
.user-profile-tile>summary::-webkit-details-marker{display:none}
.user-profile-tile>summary strong{
  font-size:1.08rem;
  letter-spacing:.08em;
  color:var(--blue-deep);
}
.user-profile-tile>summary .details-chevron{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  transition:transform .2s ease;
}
.user-profile-tile[open]>summary .details-chevron{transform:translateY(-50%) rotate(180deg)}
.user-profile-tile[open]>summary{border-bottom:1px solid var(--line);background:linear-gradient(145deg,var(--blue-soft),#fff)}
.user-profile-tile-body,.user-profile-tile .avatar-profile-body{
  padding:18px;
  display:grid;
  gap:14px;
  text-align:center;
}
.user-profile-tile-body h4{margin:0;text-align:center}
.user-profile-tile.user-name-form input#profileDisplayName{font-size:3em!important;text-align:center!important;line-height:1.05!important;min-width:0;width:100%}
.user-profile-tile .gender-choice-row{margin-top:0}
.user-profile-tile .change-password-form{padding:18px}

/* Pere Bono: to daurat més profund per permetre text i node blancs com la resta. */
.history-period.period-tone-5{--period-color:#8f6a24!important;--period-text:#fff!important}
.history-period.period-tone-5 .history-period-dot,
.history-period.period-tone-5 .history-period-dot::after{background:#fff!important;border-color:#fff!important}

@media (max-width:520px){
  .user-settings-grid{gap:10px}
  .user-profile-tile>summary{min-height:78px;padding:14px 11px}
  .user-profile-tile>summary strong{font-size:.88rem;letter-spacing:.045em}
  .user-profile-tile>summary .details-chevron{right:10px}
  .user-profile-tile-body,.user-profile-tile .avatar-profile-body{padding:13px;gap:11px}
}
/* Uniformitat estricta de les quatre capçaleres del perfil. */
.user-settings-grid .user-profile-tile>summary strong{font-size:1.08rem!important;font-weight:800!important;font-style:normal!important}
@media (max-width:520px){.user-settings-grid .user-profile-tile>summary strong{font-size:.88rem!important}}

/* ======================================================================
   v0.48 · USUARI: quatre caixes 2x2 estrictament iguals
   ====================================================================== */
.user-settings-grid .user-profile-tile.user-name-form{
  display:block!important;
  gap:0!important;
}
.user-settings-grid .user-profile-tile>summary{
  box-sizing:border-box!important;
  height:92px!important;
  min-height:92px!important;
}
@media (max-width:520px){
  .user-settings-grid .user-profile-tile>summary{
    height:78px!important;
    min-height:78px!important;
  }
}

/* ============================================================
   v0.52 · MINIJOCS · PARRILLA 2×2 + MARCADOR PER JOC
   ============================================================ */
.games-menu-wrap{display:grid;gap:16px}.games-intro{padding:24px}.games-intro h3{margin:5px 0 7px;font-family:Arial,sans-serif;font-size:1.55rem}.games-intro p{margin:0;color:var(--muted);line-height:1.5}.games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.game-launch-card{border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,#fff,#fdfbf6);box-shadow:var(--shadow-soft);padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;text-align:center;color:var(--ink);cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;min-height:260px}.game-launch-card:hover{transform:translateY(-3px);border-color:rgba(212,172,95,.58);box-shadow:0 14px 34px rgba(73,58,35,.11)}.game-launch-icon{width:112px;height:112px;border-radius:26px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;box-shadow:var(--shadow-soft);overflow:hidden;flex:0 0 auto}.game-launch-icon svg{width:58px;height:58px}.game-launch-icon.game-launch-image{padding:0}.game-launch-icon img{width:100%;height:100%;display:block;object-fit:cover}.game-launch-copy{min-width:0;display:grid;gap:7px;justify-items:center}.game-launch-copy strong{font-family:Arial,sans-serif;font-size:1.2rem;color:var(--blue-deep)}.game-launch-copy small{font-size:.82rem;line-height:1.4;color:var(--muted);max-width:34ch}.game-points-bubble{display:inline-flex;align-items:center;justify-content:center;margin-top:3px;padding:7px 11px;border-radius:999px;background:var(--gold-soft);border:1px solid rgba(212,172,95,.38);color:var(--gold-deep);font-size:.68rem;font-weight:900;letter-spacing:.05em}.game-points-bubble.guest{background:var(--blue-soft);border-color:rgba(57,58,134,.14);color:var(--blue-deep)}.games-empty{grid-column:1/-1;text-align:center;color:var(--muted)}.game-player-panel{padding:0;margin:0;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:var(--shadow-soft)}.game-player-frame{display:block;width:100%;height:min(820px,calc(100vh - 145px));min-height:640px;border:0;background:#fff}.game-player-panel[hidden]{display:none!important}
@media(max-width:780px){.games-intro{padding:18px}.games-intro h3{font-size:1.25rem}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.game-launch-card{border-radius:19px;padding:11px 8px;gap:8px;min-height:205px}.game-launch-icon{width:78px;height:78px;border-radius:20px}.game-launch-icon svg{width:42px;height:42px}.game-launch-copy{gap:5px}.game-launch-copy strong{font-size:.9rem;line-height:1.08}.game-launch-copy small{font-size:.64rem;line-height:1.3}.game-points-bubble{font-size:.55rem;padding:5px 7px}.game-player-panel{margin:0 -14px;border-left:0;border-right:0;border-radius:0}.game-player-frame{height:calc(100svh - 150px - env(safe-area-inset-bottom));min-height:520px}}
@media(max-width:390px){.games-grid{gap:7px}.game-launch-card{padding:9px 6px;min-height:190px}.game-launch-icon{width:68px;height:68px;border-radius:17px}.game-launch-copy strong{font-size:.82rem}.game-launch-copy small{font-size:.59rem}.game-points-bubble{font-size:.5rem}.game-player-frame{height:calc(100svh - 142px - env(safe-area-inset-bottom));min-height:500px}}


/* ============================================================
   v0.53 · refinaments APP
   ============================================================ */
/* HOME: MINIJOCS sense bubble JUGAR; xarxes socials x2 i separades del peu. */
.home-social-links{gap:16px!important;margin:24px 0 20px!important}
.home-social-links a{width:84px!important;height:84px!important}
.home-social-links a svg{width:38px!important;height:38px!important}

/* CALENDARI: controls de mes més grans. */
#view-calendar .month-controls{gap:10px!important}
#view-calendar .month-controls .icon-btn,#view-calendar .month-controls .mini-btn{min-width:54px!important;height:54px!important;border-radius:15px!important;font-size:1.35rem!important}
#view-calendar .month-controls .mini-btn{padding:0 18px!important;font-size:.82rem!important}

/* HISTÒRIC: rang d'anys en un únic text 1986-1990. */
.history-period-head .history-period-years{letter-spacing:.045em!important}

/* HISTÒRIC: visor coherent amb la identitat clara de l'APP; navegació fora de la foto. */
.history-image-backdrop{background:rgba(39,40,95,.28)!important;backdrop-filter:blur(14px)!important}
.history-image-dialog{width:min(96vw,1220px)!important;height:min(92vh,900px)!important;grid-template-rows:minmax(0,1fr) auto auto!important;gap:12px!important;padding:16px!important;border:1px solid var(--line)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 28px 90px rgba(39,40,95,.24)!important}
.history-image-stage{min-height:0;display:grid;grid-template-columns:54px minmax(0,1fr) 54px;gap:10px;align-items:stretch}.history-image-stage.single-image{grid-template-columns:0 minmax(0,1fr) 0;gap:0}.history-image-nav-prev{grid-column:1}.history-image-viewport{grid-column:2}.history-image-nav-next{grid-column:3}
.history-image-viewport{min-width:0;min-height:0;background:linear-gradient(145deg,#fff,#fbfaf7)!important;border:1px solid var(--line);border-radius:17px!important}
.history-image-close{right:14px!important;top:14px!important;background:var(--danger)!important;border:0!important;color:#fff!important;box-shadow:0 8px 20px rgba(166,79,69,.22)!important}
.history-image-nav{position:static!important;float:none!important;left:auto!important;right:auto!important;top:auto!important;margin:0!important;transform:none!important;width:54px!important;height:100%!important;min-height:72px!important;border:1px solid var(--line)!important;border-radius:16px!important;background:var(--blue-soft)!important;color:var(--blue-deep)!important;box-shadow:none!important;align-self:stretch!important}
.history-image-nav:hover{background:var(--blue)!important;color:#fff!important}
.history-image-toolbar button{border:1px solid var(--line)!important;background:#fff!important;color:var(--blue-deep)!important}
.history-image-toolbar button:hover{background:var(--blue-soft)!important}
.history-image-toolbar span,.history-image-counter{color:var(--blue-deep)!important;background:var(--gold-soft)!important;border:1px solid rgba(212,172,95,.35)!important}
.history-image-caption{color:var(--ink)!important}.history-image-caption span{color:var(--muted)!important}

/* HEMEROTECA / CARTELLS: grups anuals col·lapsats. */
.hemeroteca-year-group{grid-column:1/-1;width:100%;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-soft);overflow:hidden}
.hemeroteca-year-toggle{width:100%;border:0;list-style:none;min-height:62px;padding:0 18px;display:flex;align-items:center;gap:12px;cursor:pointer;background:linear-gradient(145deg,#fff,#fffaf0);color:var(--blue-deep);text-align:left;touch-action:manipulation}
.hemeroteca-year-toggle strong{font-size:1.12rem}.hemeroteca-year-toggle span{margin-left:auto;color:var(--muted);font-size:.65rem;font-weight:900;letter-spacing:.08em}.hemeroteca-year-toggle i{font-style:normal;font-size:1.2rem;transition:transform .18s ease}.hemeroteca-year-group.is-open>.hemeroteca-year-toggle i{transform:rotate(180deg)}
.hemeroteca-year-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:10px;border-top:1px solid var(--line)}
.hemeroteca-year-grid .hemeroteca-card{width:100%!important;margin:0!important;display:block!important}

/* PLAYER: reproductor primer, playlist després. */
.playlist-layout{grid-template-columns:1fr!important}
.player-card{position:relative!important;top:auto!important;order:1}.playlist-list-panel{order:2}

/* MINIJOCS: només cards, icono carregat sense marc i joc real fullscreen. */
.games-menu-wrap{display:block!important}.games-grid{margin-top:0!important}
.game-launch-icon.game-launch-image{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
.game-launch-icon.game-launch-image img{object-fit:contain!important}
.game-points-bubble{white-space:nowrap}
.game-player-panel{position:fixed!important;inset:0!important;z-index:1000!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
.game-player-frame{width:100%!important;height:100%!important;min-height:0!important;border:0!important}
body.minigame-fullscreen-open{overflow:hidden!important}
body.minigame-fullscreen-open .mini-player,body.minigame-fullscreen-open .mobile-nav{visibility:hidden!important;pointer-events:none!important}

/* USER: NOM a la meitat de l'escala anterior; GÈNERE vertical. */
.user-name-form>#profileDisplayName,.user-profile-tile.user-name-form input#profileDisplayName{font-size:1.5rem!important;min-height:56px!important;letter-spacing:-.015em!important}
.gender-choice-row,.user-profile-tile .gender-choice-row{grid-template-columns:1fr!important;max-width:360px!important;width:100%!important}

@media(max-width:780px){
  .home-social-links{gap:13px!important;margin:22px 0 20px!important}.home-social-links a{width:72px!important;height:72px!important}.home-social-links a svg{width:34px!important;height:34px!important}
  #view-calendar .month-controls .icon-btn,#view-calendar .month-controls .mini-btn{min-width:48px!important;height:48px!important;border-radius:13px!important}.month-controls .mini-btn{padding:0 14px!important}
  .history-image-dialog{height:calc(100dvh - 16px)!important;padding:9px!important;border-radius:18px!important}.history-image-stage{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px}.history-image-nav{width:40px!important;border-radius:12px!important;font-size:1.85rem!important}.history-image-close{width:40px!important;height:40px!important}
  .hemeroteca-year-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:7px}.hemeroteca-year-toggle{min-height:54px;padding:0 13px;border-radius:0}
  .playback-modes .mode-btn{min-height:58px!important;padding:8px 6px!important;font-size:1.45rem!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;line-height:1!important}
  .playback-modes .mode-btn span{display:block!important;margin:5px 0 0!important;font-size:.78rem!important;letter-spacing:.045em!important}
  .user-name-form>#profileDisplayName,.user-profile-tile.user-name-form input#profileDisplayName{font-size:1.5rem!important;min-height:54px!important}
}
@media(max-width:440px){
  .home-social-links a{width:68px!important;height:68px!important}.home-social-links a svg{width:32px!important;height:32px!important}
  #view-calendar .month-controls{gap:5px!important}#view-calendar .month-controls .icon-btn,#view-calendar .month-controls .mini-btn{min-width:44px!important;height:44px!important}.month-controls .mini-btn{padding:0 10px!important;font-size:.72rem!important}
  .history-image-stage{grid-template-columns:36px minmax(0,1fr) 36px}.history-image-nav{width:36px!important;font-size:1.6rem!important}
  .playback-modes .mode-btn{min-height:55px!important;font-size:1.32rem!important}.playback-modes .mode-btn span{font-size:.68rem!important}
}


/* ============================================================
   v0.55 · TEXT MULTILÍNIA + MINIJOC PNG/TÍTOL
   ============================================================ */
.preserve-lines,
#dresscodeOtherView,
.history-image-caption span{
  white-space:pre-line!important;
  overflow-wrap:anywhere;
}
.game-launch-icon.game-launch-image,
.game-launch-icon.game-launch-image img{
  background:transparent!important;
}
.game-launch-icon.game-launch-image img{
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
.game-launch-title-image{
  display:block;
  width:auto;
  max-width:min(100%,240px);
  max-height:74px;
  object-fit:contain;
  object-position:center;
  background:transparent;
}
@media(max-width:780px){
  .game-launch-title-image{max-width:min(100%,150px);max-height:48px}
}


/* ============================================================
   v0.56 · CALENDARI / COL·LAPSABLES / HISTÒRIC / MINIJOCS
   ============================================================ */
.history-period-head{touch-action:manipulation;position:relative;z-index:5}
.history-period-photo-total{flex:0 0 auto;min-width:34px;height:28px;padding:0 8px;border-radius:999px;display:inline-flex!important;align-items:center!important;justify-content:center;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);color:var(--period-text)!important;font-size:.72rem!important;font-weight:950!important;line-height:1!important;margin:0 2px 0 auto!important}
.history-period-chevron{margin-left:0!important}
.hemeroteca-year-grid[hidden]{display:none!important}
.hemeroteca-year-toggle{font:inherit;position:relative;z-index:3}
.game-logo-icon img[hidden],.game-logo-fallback[hidden]{display:none!important}
@media(max-width:780px){.history-period-photo-total{min-width:30px;height:25px;font-size:.62rem!important;padding:0 7px}.hemeroteca-year-toggle{min-height:54px;padding:0 13px}}


/* ============================================================
   v0.57 · PLAYER VISUAL / HISTÒRIC + PANTALLA COMPLETA
   ============================================================ */
.player-card{
  overflow:hidden!important;
  isolation:isolate;
  background:#fff!important;
}
.player-visual-bg{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  overflow:hidden!important;
  border-radius:inherit!important;
  pointer-events:none!important;
  background:#fff;
}
.player-visual-layer{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 2.2s ease;
  will-change:opacity;
}
.player-visual-layer.is-active{opacity:.50}
.player-visual-photo{
  position:absolute;
  inset:-12%;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  transform:scale(1);
  will-change:transform;
}
.player-visual-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.72) 52%,rgba(255,255,255,.88));
}
.player-card>*:not(.player-visual-bg){position:relative;z-index:2}
.player-card .record-art{background-color:rgba(255,255,255,.80)}
.player-card .mode-btn,.player-card .icon-btn{backdrop-filter:blur(7px)}
.player-card>.player-fullscreen-btn{order:8}
.player-fullscreen-btn{
  width:min(100%,360px);
  min-height:44px;
  margin:4px auto 0;
  padding:10px 16px;
  border:1px solid rgba(57,58,134,.18);
  border-radius:14px;
  background:rgba(255,255,255,.76);
  color:var(--blue-deep);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.055em;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(57,58,134,.08);
  backdrop-filter:blur(10px);
}
.player-fullscreen-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.player-fullscreen-close{
  display:none;
  position:absolute!important;
  top:max(18px,env(safe-area-inset-top))!important;
  right:max(18px,env(safe-area-inset-right))!important;
  z-index:6!important;
  width:52px;
  height:52px;
  border:1px solid rgba(57,58,134,.18);
  border-radius:50%;
  background:rgba(255,255,255,.88);
  color:var(--blue-deep);
  font-size:2rem;
  line-height:1;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(36,33,31,.14);
  backdrop-filter:blur(12px);
}
.player-card.is-player-fullscreen .player-fullscreen-close{display:flex!important}
.player-card.is-player-fullscreen .player-fullscreen-btn{display:none!important}
#playerCard::backdrop{background:#fbfaf7}
.player-card:fullscreen,
.player-card.player-fallback-fullscreen{
  position:fixed!important;
  inset:0!important;
  top:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:max(72px,calc(46px + env(safe-area-inset-top))) clamp(24px,6vw,90px) max(36px,calc(24px + env(safe-area-inset-bottom)))!important;
  border:0!important;
  border-radius:0!important;
  z-index:3000!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:0!important;
  background:#fbfaf7!important;
  overflow:hidden!important;
}
.player-card.player-fallback-fullscreen{box-shadow:none!important}
body.player-fullscreen-open{overflow:hidden!important}
body.player-fullscreen-open .mobile-nav,
body.player-fullscreen-open .mini-player{visibility:hidden!important;pointer-events:none!important}
.player-card.is-player-fullscreen .player-visual-shade{
  background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.58) 56%,rgba(255,255,255,.76));
}
.player-card.is-player-fullscreen .record-art{
  order:1!important;
  width:clamp(130px,20vmin,230px)!important;
  margin:0 0 24px!important;
  align-self:center!important;
}
.player-card.is-player-fullscreen .record-icon{width:clamp(66px,9vmin,104px)!important;height:clamp(66px,9vmin,104px)!important}
.player-card.is-player-fullscreen>.eyebrow{order:2!important;align-self:center!important;margin:0 0 8px!important}
.player-card.is-player-fullscreen>h3{order:3!important;width:min(920px,92vw)!important;margin:0 0 6px!important;font-size:clamp(1.8rem,4vw,3.4rem)!important;line-height:1.02!important;text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:var(--blue-deep)!important}
.player-card.is-player-fullscreen>p{order:4!important;width:min(760px,88vw)!important;margin:0 0 24px!important;font-size:clamp(.8rem,1.5vw,1.05rem)!important;line-height:1.35!important;text-align:center!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:var(--muted)!important}
.player-card.is-player-fullscreen>.player-controls{order:5!important;width:100%!important;justify-content:center!important;margin:0 0 24px!important;gap:18px!important}
.player-card.is-player-fullscreen .play-btn{width:clamp(68px,9vmin,86px)!important;height:clamp(68px,9vmin,86px)!important;font-size:1.4rem!important}
.player-card.is-player-fullscreen .icon-btn{min-width:56px!important;width:56px!important;height:56px!important}
.player-card.is-player-fullscreen>.progress-row{order:6!important;width:min(820px,88vw)!important;grid-template-columns:48px minmax(0,1fr) 48px!important;gap:12px!important;margin:0 0 22px!important;align-items:center!important;text-align:center!important}
.player-card.is-player-fullscreen>.playback-modes{order:7!important;width:min(620px,86vw)!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
.player-card.is-player-fullscreen>.playback-modes .mode-btn{min-height:54px!important;width:100%!important;padding:8px 10px!important}
.player-card.is-player-fullscreen>.playback-modes .mode-btn span{display:block!important}
.player-card.is-player-fullscreen>.player-fullscreen-btn{order:8!important}
@media(max-width:780px){
  .player-fullscreen-btn{width:100%;min-height:42px;margin-top:10px;font-size:.62rem}
  .player-card.is-player-fullscreen{padding:max(68px,calc(48px + env(safe-area-inset-top))) 20px max(28px,calc(18px + env(safe-area-inset-bottom)))!important}
  .player-card.is-player-fullscreen .record-art{width:clamp(100px,24vw,150px)!important;margin-bottom:16px!important}
  .player-card.is-player-fullscreen .record-icon{width:58px!important;height:58px!important}
  .player-card.is-player-fullscreen>h3{font-size:clamp(1.55rem,7vw,2.3rem)!important}
  .player-card.is-player-fullscreen>p{margin-bottom:18px!important;font-size:.78rem!important}
  .player-card.is-player-fullscreen>.player-controls{margin-bottom:18px!important;gap:14px!important}
  .player-card.is-player-fullscreen .play-btn{width:66px!important;height:66px!important}
  .player-card.is-player-fullscreen .icon-btn{min-width:48px!important;width:48px!important;height:48px!important}
  .player-card.is-player-fullscreen>.progress-row{width:92vw!important;margin-bottom:17px!important;grid-template-columns:42px minmax(0,1fr) 42px!important;gap:8px!important}
  .player-card.is-player-fullscreen>.playback-modes{width:92vw!important;gap:7px!important}
  .player-card.is-player-fullscreen>.playback-modes .mode-btn{min-height:48px!important;font-size:1.05rem!important}
  .player-card.is-player-fullscreen>.playback-modes .mode-btn span{font-size:.55rem!important}
  .player-fullscreen-close{width:46px;height:46px;font-size:1.7rem}
}
@media(max-height:640px) and (orientation:landscape){
  .player-card.is-player-fullscreen{padding:24px 70px!important}
  .player-card.is-player-fullscreen .record-art{width:88px!important;margin-bottom:8px!important}
  .player-card.is-player-fullscreen .record-icon{width:44px!important;height:44px!important}
  .player-card.is-player-fullscreen>h3{font-size:1.6rem!important}
  .player-card.is-player-fullscreen>p{margin-bottom:10px!important}
  .player-card.is-player-fullscreen>.player-controls{margin-bottom:10px!important}
  .player-card.is-player-fullscreen>.progress-row{margin-bottom:10px!important}
  .player-card.is-player-fullscreen>.playback-modes .mode-btn{min-height:40px!important}
}
@media(prefers-reduced-motion:reduce){
  .player-visual-layer{transition-duration:.01ms!important}
}


/* ============================================================
   v0.58 · PLAYER MOBILE / duracions dins de cada pista
   ============================================================ */
@media(max-width:780px){
  .track-row{
    grid-template-columns:34px minmax(0,1fr) 42px!important;
  }
  .track-main{
    min-width:0!important;
    overflow:hidden;
  }
  .track-main strong,
  .track-main small{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .track-length{
    min-width:38px;
    width:38px;
    justify-self:end;
    text-align:right;
    white-space:nowrap;
  }
}

/* ============================================================
   v0.59 · MOBILE HISTÒRIC / HOME FIT / feedback tàctil global APP
   ============================================================ */
.history-period-years-mobile{display:none!important}

/* Feedback clar per a qualsevol control accionable de l'APP.
   :active només dura mentre el dit/ratolí manté la pressió. */
button:not(:disabled),
[role="button"],
a.primary-btn,
a.drive-scores-btn,
a.hemeroteca-link,
a.hemeroteca-link-thumb,
a.social-link,
.home-social-links a{
  -webkit-tap-highlight-color:rgba(57,58,134,.12);
  touch-action:manipulation;
}
button:not(:disabled):active,
[role="button"]:active,
a.primary-btn:active,
a.drive-scores-btn:active,
a.hemeroteca-link:active,
a.hemeroteca-link-thumb:active,
a.social-link:active,
.home-social-links a:active{
  transform:translateY(2px) scale(.965)!important;
  filter:brightness(.93) saturate(.98)!important;
  box-shadow:inset 0 3px 10px rgba(36,33,31,.16)!important;
  transition-duration:.045s!important;
}

@media(max-width:780px){
  .history-period-years-desktop{display:none!important}
  .history-period-years-mobile{display:inline!important}

  /* En MOBILE les fotos d'HISTÒRIC no obren visor: el USER pot fer pinch a la pàgina. */
  .history-image-static-mobile{
    cursor:default!important;
    touch-action:pan-x pan-y pinch-zoom!important;
    -webkit-user-select:none;
    user-select:none;
  }
  .history-image-static-mobile img{pointer-events:none}
  .history-image-static-mobile:hover img{transform:none!important}

  /* El nom principal ha de cabre SEMPRE en una sola línia. */
  .hero-copy h3[data-app-name]{
    width:100%!important;
    max-width:100%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    font-size:clamp(24px,8.7vw,42px)!important;
    letter-spacing:-.065em!important;
    text-overflow:clip!important;
  }
}


/* ============================================================
   v0.60 · HISTÒRIC MOBILE + CALENDARI esdeveniments passats
   ============================================================ */
/*
 * v0.59 va introduir dues etiquetes responsives per als anys. Una regla
 * antiga més específica forçava display:inline-flex a totes dues. Aquestes
 * regles tenen la mateixa especificitat estructural i deixen visible només
 * l'etiqueta correcta a cada mida.
 */
.history-period-head .history-period-inline>.history-period-years-mobile{display:none!important}
.history-period-head .history-period-inline>.history-period-years-desktop{display:inline-flex!important}

/* Un esdeveniment que ja ha acabat continua marcat al calendari, però en gris. */
.calendar-day.event-past{
  background:#e7e8eb!important;
  border-color:#cfd2d6!important;
  color:#686d73!important;
}
.calendar-day.event-past .day-number{color:#686d73!important}
.calendar-day.event-past:hover{background:#dde0e3!important;border-color:#c3c7cc!important}
.calendar-day.event-past.outside{opacity:.46}
.calendar-day.event-past.selected{box-shadow:inset 0 0 0 3px #fff,0 0 0 3px rgba(104,109,115,.24)!important}
.calendar-day.event-past:after{display:block!important;content:"";position:absolute;left:auto!important;right:9px;bottom:9px!important;top:auto!important;width:7px;height:7px;border-radius:50%;background:#9da2a8!important;box-shadow:none!important}

@media(max-width:780px){
  .history-period-head .history-period-inline>.history-period-years-desktop{display:none!important}
  .history-period-head .history-period-inline>.history-period-years-mobile{display:inline-flex!important}
  .calendar-day.event-past:after{right:5px!important;bottom:4px!important;width:5px;height:5px}
}
/* AVUI + event passat: el marcador també queda gris. */
.calendar-day.today.event-past:after{
  background:#9da2a8!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.92)!important;
}

/* v0.63 · Recuperació de contrasenya */
.user-recovery-link{justify-self:center;border:0;background:transparent;color:var(--blue);font:inherit;font-size:.78rem;font-weight:850;letter-spacing:.035em;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:4px 8px;margin-top:-2px}
.user-recovery-link:hover{color:var(--blue-deep)}
.password-recovery-box{margin-top:20px;padding:18px;border:1px solid rgba(57,58,134,.18);border-radius:16px;background:var(--blue-soft);text-align:center}
.password-recovery-head{display:flex;align-items:center;justify-content:center;position:relative;min-height:30px}.password-recovery-head strong{font-size:.82rem;letter-spacing:.07em;color:var(--blue)}
.password-recovery-close{position:absolute;right:0;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:50%;background:#fff;color:var(--blue);font-size:20px;line-height:1;cursor:pointer}
.password-recovery-box>p{max-width:520px;margin:10px auto 0;color:var(--muted);font-size:.84rem;line-height:1.5}
.password-recovery-form{display:grid;gap:12px;margin-top:16px}.password-recovery-form label{display:grid;gap:6px;font-size:.78rem;font-weight:850;letter-spacing:.03em;color:var(--ink);text-align:left}.password-recovery-form input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:13px;padding:0 13px;background:#fff;color:var(--ink);font:inherit;outline:none}.password-recovery-form input:focus{border-color:rgba(57,58,134,.46);box-shadow:0 0 0 3px rgba(57,58,134,.08)}
.password-recovery-form .user-password-btn{justify-self:center}.password-recovery-form .user-auth-status{display:block;text-align:center;width:100%}
@media(max-width:780px){.password-recovery-box{padding:16px}.user-recovery-link{font-size:.74rem}}

/* v0.64 · Aportacions multimèdia de USERS */
.archive-upload-launcher{width:100%;margin:18px 0 0;border:0;border-radius:16px;background:#393A86;color:#fff;font:800 13px/1.2 inherit;letter-spacing:.04em;padding:16px 18px;cursor:pointer;box-shadow:0 8px 20px rgba(57,58,134,.18)}
.archive-upload-launcher:active{transform:scale(.985)}
.archive-upload-box{margin-top:16px;border:1px solid #e7e2d9;border-radius:18px;background:#fbfaf7;padding:18px;scroll-margin-top:116px}
.archive-upload-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.archive-upload-head h3{margin:2px 0 0;color:#27285f;font-size:22px}.archive-upload-close{border:0;background:#ececf7;color:#393a86;width:36px;height:36px;border-radius:50%;font-size:24px;cursor:pointer}
.archive-upload-intro{margin:10px 0 18px;color:#716c67;line-height:1.5}.archive-upload-form{display:grid;gap:13px}.archive-upload-form label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#393a86}.archive-upload-form input,.archive-upload-form select,.archive-upload-form textarea{width:100%;box-sizing:border-box;border:1px solid #dcd7cf;border-radius:12px;background:#fff;padding:12px 13px;font:600 14px/1.35 inherit;color:#24211f}.archive-upload-date-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.archive-upload-preview{border-radius:14px;overflow:hidden;background:#ececf7;text-align:center}.archive-upload-preview img{display:block;width:100%;max-height:340px;object-fit:contain;background:#fff}.archive-upload-preview small{display:block;padding:8px 10px;color:#716c67}.history-image-button,.hemeroteca-image-button{position:relative}.history-submitter,.hemeroteca-submitter{position:absolute;left:8px;bottom:8px;z-index:3;max-width:calc(100% - 16px);background:rgba(0,0,0,.58);color:#fff;border-radius:7px;padding:4px 7px;font-size:9px;line-height:1.15;font-weight:800;letter-spacing:.04em;text-align:left;pointer-events:none}
@media(max-width:620px){.archive-upload-date-row{grid-template-columns:1fr}.archive-upload-box{padding:15px}.archive-upload-head h3{font-size:20px}}

/* v0.66 · autoria HISTÒRIC */
.history-author{position:absolute;right:10px;bottom:10px;z-index:3;max-width:calc(100% - 20px);padding:6px 8px;border-radius:8px;background:rgba(0,0,0,.62);color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;line-height:1.2}
.history-submitter+.history-author{bottom:38px}


/* v0.68 · USER uppercase + ARXIU upload visual/mobile */
#profileDisplayName{text-transform:uppercase}
.archive-upload-close{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;aspect-ratio:1/1!important;padding:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;line-height:1!important;box-sizing:border-box!important}
.archive-upload-box{background:#393A86!important;border-color:#393A86!important;color:#fff!important;box-shadow:0 12px 28px rgba(57,58,134,.18)}
.archive-upload-box .eyebrow,.archive-upload-box .archive-upload-head h3,.archive-upload-box .archive-upload-intro,.archive-upload-box .archive-upload-form label{color:#fff!important}
.archive-upload-box .archive-upload-close{background:#fff!important;color:#393A86!important}
.archive-upload-box .archive-upload-preview small{background:#fff;color:#716c67}
.archive-upload-box .user-auth-status{color:#fff!important}
@media(max-width:780px){.archive-upload-box{scroll-margin-top:116px!important}}


/* v0.73 · instal·lació PWA + botons de tancament circulars */
.install-btn[hidden],#homeInstallBtn[hidden],#appInstallCard[hidden]{display:none!important}
html.app-is-installed #installBtn,html.app-is-installed #homeInstallBtn,html.app-is-installed #appInstallCard{display:none!important}
:is(.dresscode-close,.history-image-close,.player-fullscreen-close,.password-recovery-close,.archive-upload-close){aspect-ratio:1/1!important;border-radius:999px!important;padding:0!important;box-sizing:border-box!important;flex-shrink:0!important;line-height:1!important}
.dresscode-close{min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important}
.history-image-close{min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important}
.password-recovery-close{min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important}
.archive-upload-close{min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important}
@media(max-width:780px){.history-image-close{min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important}.player-fullscreen-close{min-width:46px!important;max-width:46px!important;min-height:46px!important;max-height:46px!important}}


/* v0.74 · CALENDARI multi-activitat: el color representa cada activitat, no el dia complet. */
.calendar-day.has-event{
  background:#fff!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
  overflow:hidden;
}
.calendar-day.has-event:hover{background:var(--paper)!important;border-color:rgba(212,172,95,.45)!important}
.calendar-day.has-event .day-number{position:relative;z-index:2;color:var(--ink)!important}
.calendar-day.has-event:after{display:none!important}
.calendar-activity-stack{
  position:absolute;left:8px;right:8px;bottom:7px;z-index:2;
  display:grid;gap:3px;pointer-events:none;
}
.calendar-activity-bar{display:block;width:100%;height:5px;border-radius:999px;background:var(--blue)}
.calendar-activity-bar.activity-rehearsal{background:var(--blue)}
.calendar-activity-bar.activity-featured{background:var(--gold)}
.calendar-activity-bar.activity-other{background:#4f9b62}
.calendar-activity-bar.activity-past{background:#9da2a8}
.calendar-activity-more{
  position:absolute;right:7px;bottom:2px;z-index:3;padding:1px 3px;border-radius:5px;
  background:rgba(255,255,255,.92);color:#686d73;font-size:.5rem;font-weight:950;line-height:1;
}
/* AVUI sense activitats conserva la casella roja completa. */
.calendar-day.today:not(.has-event){
  background:#c72f34!important;border-color:#9f2026!important;color:#fff!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.22),0 0 0 2px rgba(159,32,38,.12)!important;
}
.calendar-day.today:not(.has-event):hover{background:#b6252b!important}
.calendar-day.today:not(.has-event) .day-number{color:#fff!important}
/* AVUI amb activitats: només la zona superior és roja; la zona inferior queda neutra per llegir les barres. */
.calendar-day.today.has-event{
  background:linear-gradient(to bottom,#c72f34 0%,#c72f34 56%,#fff 56%,#fff 100%)!important;
  border-color:#9f2026!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.16),0 0 0 2px rgba(159,32,38,.12)!important;
}
.calendar-day.today.has-event:hover{
  background:linear-gradient(to bottom,#b6252b 0%,#b6252b 56%,#fbfaf7 56%,#fbfaf7 100%)!important;
}
.calendar-day.today.has-event .day-number{color:#fff!important}
.calendar-day.selected{box-shadow:inset 0 0 0 2px rgba(212,172,95,.85),0 0 0 2px rgba(212,172,95,.16)!important}
.calendar-day.today.selected{box-shadow:inset 0 0 0 2px rgba(255,255,255,.38),0 0 0 3px rgba(199,47,52,.2)!important}
@media(max-width:780px){
  #view-calendar .calendar-activity-stack{left:4px;right:4px;bottom:3px;gap:1.5px}
  #view-calendar .calendar-activity-bar{height:3px}
  #view-calendar .calendar-activity-more{right:3px;bottom:1px;font-size:.42rem;padding:0 2px}
  #view-calendar .calendar-day.today.has-event{background:linear-gradient(to bottom,#c72f34 0%,#c72f34 55%,#fff 55%,#fff 100%)!important}
  #view-calendar .calendar-day.today.has-event:hover{background:linear-gradient(to bottom,#b6252b 0%,#b6252b 55%,#fbfaf7 55%,#fbfaf7 100%)!important}
}

/* v0.76 · la procedència USER només es mostra al peu del visor ampliat */
.history-submitter,.hemeroteca-submitter{display:none!important}


/* v0.77 · el tancament del visor no tapa la navegació dreta */
.history-image-nav-next{
  align-self:end!important;
  height:calc(100% - 58px)!important;
  min-height:72px!important;
}
@media(max-width:780px){
  .history-image-nav-next{
    height:calc(100% - 50px)!important;
    min-height:64px!important;
  }
}

/* v0.78 · detall CALENDARI: traç lateral amb el color del tipus d'activitat. */
.event-card{border-left-width:5px!important}
.event-card.event-kind-rehearsal{border-left-color:var(--blue)!important}
.event-card.event-kind-featured{border-left-color:var(--gold)!important}
.event-card.event-kind-other{border-left-color:#4f9b62!important}


/* v0.79 · detall CALENDARI: tinció lateral dreta amb el color del tipus d'activitat. */
.event-card{position:relative!important;overflow:hidden!important;isolation:isolate}
.event-card::after{
  content:"";
  position:absolute;
  top:0;right:0;bottom:0;
  width:50%;
  pointer-events:none;
  z-index:0;
}
.event-card>*{position:relative;z-index:1}
.event-card.event-kind-rehearsal::after{
  background:linear-gradient(to right,rgba(57,58,134,0) 0%,rgba(57,58,134,.14) 30%,rgba(57,58,134,.52) 68%,rgba(57,58,134,.94) 100%);
}
.event-card.event-kind-featured::after{
  background:linear-gradient(to right,rgba(212,172,95,0) 0%,rgba(212,172,95,.14) 30%,rgba(212,172,95,.52) 68%,rgba(212,172,95,.94) 100%);
}
.event-card.event-kind-other::after{
  background:linear-gradient(to right,rgba(79,155,98,0) 0%,rgba(79,155,98,.14) 30%,rgba(79,155,98,.52) 68%,rgba(79,155,98,.94) 100%);
}


/* v0.80 · INSTAL·LAR APP visible i prioritari a HOME mobile */
.app-install-card-mobile{display:none}
@media(max-width:780px){
  #mobileAppInstallCard.app-install-card{display:grid;margin:0 0 12px!important;border:1px solid rgba(57,58,134,.20);background:linear-gradient(135deg,#fff 0%,#ECECF7 100%);box-shadow:0 10px 28px rgba(57,58,134,.12)}
  #appInstallCard{display:none!important}
  #mobileAppInstallCard[hidden]{display:none!important}
  #mobileAppInstallCard .app-install-action{grid-column:1/-1;width:100%}
}
html.app-is-installed #mobileAppInstallCard,html.app-is-installed #mobileHomeInstallBtn,#mobileHomeInstallBtn[hidden],#mobileAppInstallCard[hidden]{display:none!important}

@media(max-width:780px){.topbar #installBtn{display:none!important}}


/* v0.82 · CALENDARI: AVUI més llegible, selecció neutra i repeticions del mateix tipus en una sola fila. */
/* Cada tipus/color ocupa una fila. Diverses activitats del mateix tipus comparteixen la fila en segments iguals. */
.calendar-activity-stack{
  display:grid!important;
  gap:3px!important;
}
.calendar-activity-row{
  display:flex;
  align-items:center;
  gap:3px;
  width:100%;
  height:5px;
  pointer-events:none;
}
.calendar-activity-segment{
  display:block;
  flex:1 1 0;
  min-width:0;
  height:100%;
  border-radius:999px;
  background:currentColor;
}
.calendar-activity-row.activity-rehearsal{color:var(--blue)}
.calendar-activity-row.activity-featured{color:var(--gold)}
.calendar-activity-row.activity-other{color:#4f9b62}
.calendar-activity-row.activity-past{color:#9da2a8}
/* Les antigues barres individuals no intervenen en el nou layout. */
.calendar-activity-bar{display:none!important}
.calendar-activity-more{display:none!important}

/* Seleccionar un dia no té significat d'event: el destacat és gris, mai daurat. */
.calendar-day.selected:not(.today){
  background:#f0f1f2!important;
  border-color:#9da2a8!important;
  box-shadow:inset 0 0 0 2px rgba(104,109,115,.62),0 0 0 2px rgba(104,109,115,.12)!important;
}
.calendar-day.selected:not(.today):hover{background:#e7e9eb!important;border-color:#858b91!important}
.calendar-day.selected.has-event:not(.today){background:#f7f7f7!important}

/* AVUI amb activitats: la franja roja baixa clarament per sota de tot el número. */
.calendar-day.today.has-event{
  background:#fff!important;
  position:relative;
}
.calendar-day.today.has-event::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:66%;
  z-index:0;
  background:#c72f34;
  pointer-events:none;
}
.calendar-day.today.has-event:hover{background:#fbfaf7!important}
.calendar-day.today.has-event:hover::before{background:#b6252b}
.calendar-day.today.has-event .day-number{position:relative;z-index:2;color:#fff!important}

@media(max-width:780px){
  #view-calendar .calendar-activity-stack{gap:1.5px!important}
  #view-calendar .calendar-activity-row{height:3px;gap:2px}
  #view-calendar .calendar-day.today.has-event{background:#fff!important}
  #view-calendar .calendar-day.today.has-event::before{height:64%}
  #view-calendar .calendar-day.today.has-event:hover{background:#fbfaf7!important}
}


/* v0.84 · CALENDARI: eliminat definitivament l'antic indicador circular de les caselles. */
#view-calendar .calendar-day::after{display:none!important;content:none!important;box-shadow:none!important}


/* ============================================================
   v0.84 · CALENDARI segments caducats + eines USER en una fila
   ============================================================ */
/* Una activitat caducada manté la seva posició dins de la fila del seu tipus,
   però el seu segment passa a gris. */
.calendar-activity-segment.is-past{background:#9da2a8!important}

/* AFINADOR + METRÒNOM comparteixen fila dins de USER. */
.user-music-tools-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  margin-top:16px;
}
.user-music-tools-row .tuner-launcher,
.user-music-tools-row .metronome-launcher{
  width:100%;
  min-width:0;
  margin:0!important;
}
@media(max-width:420px){
  .user-music-tools-row{gap:8px}
  .user-music-tools-row .tuner-launcher,
  .user-music-tools-row .metronome-launcher{padding-left:10px;padding-right:10px;font-size:11px}
  .user-music-tools-row .tuner-launcher-icon,
  .user-music-tools-row .metronome-launcher-icon{width:30px;height:30px;min-width:30px}
}


/* ============================================================
   v0.85 · HOME random HISTÒRIC + detall CALENDARI caducat
   ============================================================ */
.hero-background{transition:opacity .5s ease!important}
.hero-background.is-fading{opacity:0!important}
/* v0.115: les activitats caducades conserven el color original a la barra esquerra. */
.event-card.is-past.event-kind-rehearsal{border-left-color:var(--blue)!important}
.event-card.is-past.event-kind-featured{border-left-color:var(--gold)!important}
.event-card.is-past.event-kind-other{border-left-color:#4f9b62!important}
.event-card.is-past::after{background:linear-gradient(to right,rgba(157,162,168,0) 0%,rgba(157,162,168,.14) 30%,rgba(157,162,168,.48) 68%,rgba(157,162,168,.88) 100%)!important}
.event-card.is-past .event-type{color:#737980!important}


/* ============================================================
   v0.88 · USER · Bústia de suggeriments
   ============================================================ */
.suggestion-launcher{width:100%;margin:18px 0 0;border:1px solid rgba(63,121,187,.26);border-radius:16px;background:linear-gradient(145deg,#eaf5ff,#dbeeff);color:#215a96;font:900 13px/1.2 inherit;letter-spacing:.055em;padding:15px 18px;cursor:pointer;box-shadow:0 7px 18px rgba(63,121,187,.12);transition:.18s ease;display:flex;align-items:center;justify-content:center;gap:10px}
.suggestion-launcher::before{content:"✉";font-size:15px;line-height:1;display:inline-grid;place-items:center;color:currentColor}
.suggestion-launcher:hover{background:linear-gradient(145deg,#e0f0ff,#cfe7ff);border-color:rgba(63,121,187,.42)}
.suggestion-launcher[aria-expanded="true"]{background:linear-gradient(145deg,#cfe6ff,#bddbff);color:#154678;border-color:#6a9dd2}
.suggestion-box{margin-top:12px;border:1px solid #c9dff3;border-radius:18px;background:linear-gradient(180deg,#f5faff 0%,#ebf4ff 100%);padding:18px;scroll-margin-top:116px}
.suggestion-box-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.suggestion-box-head h3{margin:2px 0 0;color:#215a96;font-size:21px}.suggestion-box-close{width:36px;height:36px;min-width:36px;aspect-ratio:1/1;padding:0;border:0;border-radius:999px;background:#d8ebff;color:#215a96;font-size:24px;display:grid;place-items:center;line-height:1;cursor:pointer}.suggestion-box .eyebrow{color:#2d6faa}
.suggestion-box-intro{margin:10px 0 16px;color:#5d7284;line-height:1.5}.suggestion-form{display:grid;gap:13px}.suggestion-form label{display:grid;gap:7px;color:#215a96;font-size:12px;font-weight:850}.suggestion-form input,.suggestion-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbdcf0;border-radius:12px;background:#fff;padding:12px 13px;color:#24211f;font:600 14px/1.4 inherit}.suggestion-form input[readonly]{background:#edf5ff;color:#5d7284}.suggestion-form textarea{resize:vertical;min-height:120px}.suggestion-form .user-password-btn{justify-self:start}
@media(max-width:620px){.suggestion-box{padding:15px}.suggestion-box-head h3{font-size:19px}.suggestion-form .user-password-btn{width:100%}}

/* ======================================================================
   v0.90 · HISTÒRIC DESKTOP · eix central blindat
   ----------------------------------------------------------------------
   Fix exclusiu per desktop. Cada entrada ocupa tota l'amplada estructural
   del timeline i la targeta es col·loca dins d'una de les dues meitats.
   D'aquesta manera el contingut intern (incloses galeries grans) no pot
   eixamplar el grid ni desplaçar l'eix o els nodes.
   MOBILE (<=780px) queda sense canvis.
   ====================================================================== */
@media(min-width:781px){
  .history-period-items{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  .history-period-items>.history-item{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:0!important;
    justify-self:stretch!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    box-sizing:border-box!important;
  }
  .history-period-items>.history-item .history-node{
    left:calc(50% - 6.5px)!important;
    right:auto!important;
  }
  .history-period-items>.history-item.left .history-card{
    grid-column:1!important;
    justify-self:end!important;
    width:min(calc(100% - 34px),470px)!important;
    max-width:470px!important;
    margin:0 34px 0 0!important;
  }
  .history-period-items>.history-item.right .history-card{
    grid-column:2!important;
    justify-self:start!important;
    width:min(calc(100% - 34px),470px)!important;
    max-width:470px!important;
    margin:0 0 0 34px!important;
  }
  .history-card,
  .history-media-showcase,
  .history-media-strip{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
}

/* v0.91 · NOTÍCIES multipàgina en slider + PDF */
.hemeroteca-slider{position:relative;width:100%;overflow:hidden;background:#fff;border-bottom:1px solid var(--line)}
.hemeroteca-slider-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.hemeroteca-slider-track::-webkit-scrollbar{display:none}
.hemeroteca-slider .hemeroteca-slide{width:100%;scroll-snap-align:start;scroll-snap-stop:always;border:0!important}
.hemeroteca-slider .hemeroteca-slide img{display:block;width:100%;height:auto!important;max-height:520px;object-fit:contain!important;background:#fff}
.hemeroteca-slider-nav{position:absolute;top:50%;z-index:3;width:40px;height:56px;transform:translateY(-50%);border:1px solid rgba(255,255,255,.62);border-radius:12px;background:rgba(25,25,25,.62);color:#fff;font-size:2rem;line-height:1;display:grid;place-items:center;backdrop-filter:blur(6px);box-shadow:0 5px 16px rgba(0,0,0,.16)}
.hemeroteca-slider-nav.prev{left:8px}.hemeroteca-slider-nav.next{right:8px}.hemeroteca-slider-nav:hover{background:rgba(25,25,25,.82)}
.hemeroteca-slider-count{position:absolute;right:10px;bottom:9px;z-index:3;padding:5px 8px;border-radius:999px;background:rgba(25,25,25,.72);color:#fff;font-size:.62rem;font-weight:900;letter-spacing:.04em}
.hemeroteca-pdf-link{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#f4f4fb;border-bottom:1px solid rgba(57,58,134,.16);color:var(--ink);text-decoration:none}
.hemeroteca-pdf-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 48px;border-radius:12px;background:var(--blue);color:#fff;font-size:.7rem;font-weight:950;letter-spacing:.05em}
.hemeroteca-pdf-link strong,.hemeroteca-pdf-link small{display:block}.hemeroteca-pdf-link strong{font-size:.82rem;line-height:1.25;word-break:break-word}.hemeroteca-pdf-link small{margin-top:4px;color:var(--blue);font-size:.62rem;font-weight:900;letter-spacing:.04em}
@media(max-width:780px){.hemeroteca-slider .hemeroteca-slide img{max-height:430px}.hemeroteca-slider-nav{width:36px;height:50px}.hemeroteca-slider-nav.prev{left:6px}.hemeroteca-slider-nav.next{right:6px}}

/* v0.92 · Comptadors de l'arxiu dins les capçaleres HISTÒRIC / HEMEROTECA */
.archive-title-row{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%}
.archive-title-row>div:first-child{min-width:0}
.archive-total-badge{flex:0 0 auto;min-width:116px;min-height:54px;padding:0 18px;border:1px solid rgba(212,172,95,.45);border-radius:16px;background:linear-gradient(145deg,#fffaf0,#f5ead2);color:var(--gold-deep);display:grid;place-items:center;font-size:.82rem;font-weight:950;letter-spacing:.045em;white-space:nowrap;box-shadow:0 7px 18px rgba(139,98,40,.08)}
@media(max-width:780px){.archive-title-row{gap:12px;align-items:flex-start}.archive-total-badge{min-width:94px;min-height:46px;padding:0 12px;border-radius:13px;font-size:.7rem}}
@media(max-width:480px){.archive-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto}.archive-total-badge{min-width:82px;padding:0 9px;font-size:.64rem}}


/* v0.93 · Instal·lació fixa a HOME i proper concert públic */
.home-install-credit-stack{width:max-content;max-width:100%;margin:0 auto;text-align:center}
.home-footer-install-btn{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;margin:0 auto 11px;min-height:42px;padding:10px 14px;white-space:nowrap}
.home-footer-install-btn[hidden]{display:flex!important}
.home-concert-card{cursor:default}
.home-concert-card:hover{transform:none;border-color:var(--line);box-shadow:var(--shadow-soft)}
.home-concert-card h4{line-height:1.25}
@media(max-width:780px){.home-install-credit-stack{max-width:calc(100vw - 28px)}.home-footer-install-btn{min-height:44px}}

/* v0.94 · HOME pública + instal·lació sempre visible */
.home-footer-install-btn{display:flex!important}
.home-concert-card{background:var(--gold)!important;border-color:var(--gold-deep)!important;color:var(--blue-deep)!important}
.home-concert-card:hover{background:var(--gold)!important;border-color:var(--gold-deep)!important;box-shadow:var(--shadow-soft)!important}
.home-concert-card .big-icon{color:var(--blue-deep)!important}
.home-concert-card h4,.home-concert-card p{color:var(--blue-deep)!important}
.home-concert-card .home-concert-heading{margin:4px 0 7px!important;font-weight:900!important;letter-spacing:.04em}
.home-concert-card .home-concert-title{font-weight:900!important;font-size:.96rem!important;line-height:1.3!important;margin:0 0 7px!important}
.home-concert-card .home-concert-datetime,.home-concert-card .home-concert-place{font-weight:750!important;line-height:1.35!important;margin:2px 0!important}


/* v0.95 · HOME pública · jerarquia visual PROPER CONCERT */
.home-concert-card .big-icon{color:#fff!important}
.home-concert-card .big-icon .blue,.home-concert-card .big-icon .gold{stroke:#fff!important}
.home-concert-card .big-icon .blue-fill,.home-concert-card .big-icon .gold-fill{fill:#fff!important}
.home-concert-card .home-concert-heading{font-size:.68em!important;line-height:1.2!important;margin:4px 0 8px!important}
.home-concert-card .home-concert-title{font-size:1.48rem!important;line-height:1.16!important;color:#fff!important;margin:0 0 9px!important}


/* ============================================================
   v0.97 · capçalera HISTÒRIC: desplegar/col·lapsar tot
   ============================================================ */
.archive-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:0 0 auto}
.history-toggle-all{
  min-height:42px;padding:0 13px;border:1px solid rgba(57,58,134,.2);border-radius:13px;background:#f3f3f8;
  color:var(--blue-deep);font-size:.68rem;font-weight:950;letter-spacing:.045em;white-space:nowrap;cursor:pointer;
}
.history-toggle-all:hover{background:#e9e9f4}
.archive-total-badge{font-size:.95rem!important}
@media(max-width:780px){
  .archive-title-actions{gap:6px}
  .history-toggle-all{min-height:38px;padding:0 9px;border-radius:11px;font-size:.58rem}
  .archive-total-badge{font-size:.78rem!important}
}
@media(max-width:480px){
  .archive-title-actions{grid-column:2;display:grid;grid-template-columns:1fr;gap:5px;justify-items:stretch}
  .history-toggle-all{min-height:32px;padding:0 7px;font-size:.52rem}
  .archive-total-badge{font-size:.72rem!important;min-height:38px!important}
}


/* ============================================================
   v0.99 · USER · DEMOS PROPER CONCERT
   ============================================================ */
.user-demos-box{padding:0!important;overflow:hidden;background:linear-gradient(145deg,#fff,#f7f4ec)!important}
.user-demos-box>summary{list-style:none;position:relative;display:grid;place-items:center;min-height:58px;padding:12px 52px;cursor:pointer;user-select:none;text-align:center}
.user-demos-box>summary::-webkit-details-marker{display:none}
.user-demos-summary-copy{display:flex;align-items:center;justify-content:center;text-align:center}
.user-demos-summary-copy strong{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--blue-deep);font-size:.92rem;letter-spacing:.035em;line-height:1.15}.user-demos-summary-copy #userDemosHeading{display:inline-flex;align-items:center;justify-content:center;gap:.28em}
.user-demos-headphones{font-size:1.15rem;line-height:1}
.user-demos-box>summary .details-chevron{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.user-demos-box[open]>summary .details-chevron{transform:translateY(-50%) rotate(180deg)}
.user-demos-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:0 16px 16px}
.user-demo-item{display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:10px;color:var(--ink);box-shadow:0 5px 14px rgba(36,33,31,.05);text-align:left;font:inherit;cursor:pointer;appearance:none;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.user-demo-item:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(36,33,31,.10);border-color:rgba(57,58,134,.24)}
.user-demo-item:active{transform:scale(.985)}
.user-demo-title{font-size:.86rem;line-height:1.3;color:var(--blue-deep);padding:1px 2px}
.user-demo-thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#111}
.user-demo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.user-demo-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;display:grid;place-items:center;padding-left:3px;background:rgba(39,40,95,.88);color:#fff;font-size:1.12rem;box-shadow:0 5px 16px rgba(0,0,0,.25),0 0 0 4px rgba(255,255,255,.72)}
.user-demos-empty{margin:0;border:1px dashed var(--line);border-radius:13px;padding:17px;text-align:center;color:var(--muted);font-size:.78rem}
@media(max-width:860px){.user-demos-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.user-demos-box>summary{min-height:68px;padding:10px 44px 10px 12px}.user-demos-summary-copy strong{font-size:.82rem}.user-demos-summary-copy #userDemosHeading{display:flex;flex-direction:column;gap:3px;line-height:1.15}.user-demos-heading-label,.user-demos-heading-concert{display:block}.user-demos-heading-concert{font-size:.9em;letter-spacing:.045em}.user-demos-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-inline:10px}.user-demo-item{padding:7px;gap:6px;border-radius:12px}.user-demo-title{font-size:.7rem;line-height:1.2}.user-demo-thumb{border-radius:8px}}


/* ============================================================
   v0.102 · USER reorganitzat en files 3 + 1 + 3
   ============================================================ */
.user-tools-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  width:100%;
  margin-top:16px;
}
.user-tool-tile{
  min-width:0;
  min-height:92px;
  margin:0!important;
  padding:14px 10px!important;
  border:1px solid rgba(57,58,134,.16)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#fff,#faf9f5)!important;
  color:var(--blue-deep)!important;
  box-shadow:0 7px 18px rgba(36,33,31,.06)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:center!important;
  text-decoration:none!important;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease!important;
  box-sizing:border-box;
}
.user-tool-tile:hover{transform:translateY(-2px);border-color:rgba(57,58,134,.32)!important;box-shadow:0 10px 24px rgba(36,33,31,.09)!important}
.user-tool-tile:active{transform:scale(.985)}
.user-tool-icon{
  width:38px;height:38px;min-width:38px;min-height:38px;
  display:grid;place-items:center;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:20px;line-height:1;
  box-shadow:inset 0 0 0 1px rgba(57,58,134,.08);
}
.user-tool-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.user-tool-icon svg path:nth-child(2):not(:only-child){fill:none}
.user-tool-title{
  display:block;
  width:100%;
  font:850 .78rem/1.18 Arial,sans-serif!important;
  letter-spacing:.045em!important;
  color:var(--blue-deep)!important;
  text-align:center;
  overflow-wrap:anywhere;
}
.user-tool-partitures{border-color:rgba(212,172,95,.48)!important;background:linear-gradient(145deg,#fffaf0,#f7ead0)!important}
.user-tool-partitures .user-tool-icon{background:var(--gold);color:var(--blue-deep);box-shadow:inset 0 0 0 1px rgba(139,98,40,.14)}
.user-tools-grid .tuner-launcher,.user-tools-grid .metronome-launcher{width:100%!important}
.user-tools-grid .tuner-launcher .tuner-launcher-icon,.user-tools-grid .metronome-launcher .metronome-launcher-icon{display:none!important}
.user-tools-grid .archive-upload-launcher{background:linear-gradient(145deg,#f7f6ff,#ececf8)!important;border-color:rgba(57,58,134,.24)!important}
.user-tools-grid .archive-upload-launcher .user-tool-icon{background:var(--blue);color:#fff}
.user-tools-grid .suggestion-launcher{background:linear-gradient(145deg,#eaf5ff,#dbeeff)!important;border-color:rgba(63,121,187,.26)!important;color:#215a96!important}
.user-tools-grid .suggestion-launcher::before{display:none!important;content:none!important}
.user-tools-grid .suggestion-launcher .user-tool-icon{background:#c9e4ff;color:#215a96;box-shadow:inset 0 0 0 1px rgba(63,121,187,.16)}
.user-tools-grid .suggestion-launcher .user-tool-title{color:#215a96!important}
.user-options-launcher .user-tool-icon{background:#ececf7;color:var(--blue-deep)}

/* DEMOS ocupa sempre una fila completa entre els dos blocs de tres. */
.user-demos-box{margin-top:16px!important}

/* Les caixes desplegades apareixen sota la fila 3, sense deformar els botons. */
.user-expansion-box{margin-top:12px!important}
.user-options-box{border:1px solid var(--line);border-radius:18px;background:#fbfaf7;padding:18px;scroll-margin-top:116px;box-shadow:var(--shadow-soft)}
.user-options-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.user-options-head h3{margin:2px 0 0;color:var(--blue-deep);font-size:21px}
.user-options-close{width:36px;height:36px;min-width:36px;aspect-ratio:1/1;padding:0;border:0;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:24px;display:grid;place-items:center;line-height:1;cursor:pointer}
.user-options-box .user-settings-grid{margin-top:0}

@media(max-width:620px){
  .user-tools-grid{gap:8px;margin-top:12px}
  .user-tool-tile{min-height:84px;padding:10px 6px!important;border-radius:15px!important;gap:7px!important}
  .user-tool-icon{width:32px;height:32px;min-width:32px;min-height:32px;font-size:17px}
  .user-tool-icon svg{width:18px;height:18px}
  .user-tool-title{font-size:.64rem!important;letter-spacing:.025em!important}
  .user-tool-title-one-line{font-size:.6rem!important;letter-spacing:.005em!important}
  .user-demos-box{margin-top:12px!important}
  .user-options-box{padding:14px}
  .user-options-head h3{font-size:19px}
}
@media(max-width:390px){
  .user-tools-grid{gap:6px}
  .user-tool-tile{min-height:80px;padding:9px 4px!important}
  .user-tool-title{font-size:.58rem!important}
  .user-tool-title-one-line{font-size:.56rem!important;letter-spacing:0!important}
}


/* ============================================================
   v0.104 · DEMOS · miniatures netes + reproductor intern
   ============================================================ */
.demo-player-modal[hidden]{display:none!important}
.demo-player-modal{position:fixed;inset:0;z-index:6500;display:grid;place-items:center;padding:20px}
.demo-player-backdrop{position:absolute;inset:0;background:rgba(20,20,28,.78);backdrop-filter:blur(6px)}
.demo-player-dialog{position:relative;z-index:1;width:min(920px,100%);border-radius:24px;background:#fbfaf7;border:1px solid rgba(212,172,95,.38);box-shadow:0 30px 90px rgba(0,0,0,.4);padding:18px}
.demo-player-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.demo-player-head h2{margin:0;color:var(--blue-deep);font-size:1.15rem;line-height:1.2}
.demo-player-close{width:42px;height:42px;min-width:42px;max-width:42px;min-height:42px;max-height:42px;aspect-ratio:1/1;border:0;border-radius:999px;background:var(--blue-soft);color:var(--blue);font-size:28px;line-height:1;display:grid;place-items:center;padding:0;cursor:pointer}
.demo-player-host{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0d0d0f}
.demo-player-host iframe,.demo-player-host>div[id="demoYoutubePlayer"]{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
.demo-player-loading,.demo-player-error{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;color:#fff;font-size:.76rem;font-weight:900;letter-spacing:.06em}
.demo-player-note{margin:12px 4px 0;text-align:center;color:var(--muted);font-size:.68rem;line-height:1.4}
body.demo-video-open{overflow:hidden}
@media(max-width:780px){
  .demo-player-modal{padding:0;place-items:stretch}
  .demo-player-dialog{width:100%;min-height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:center}
  .demo-player-head{margin-bottom:12px}
  .demo-player-host{border-radius:12px}
  .demo-player-note{font-size:.62rem}
}

/* v0.105 · PLAYER · modes només amb text */
.player-card .playback-modes .mode-btn{
  font-weight:900!important;
  letter-spacing:.055em!important;
  line-height:1.1!important;
}

/* v0.106 · PLAYER · textos de modes al 50% aproximat */
.player-card .playback-modes .mode-btn{
  font-size:.55rem!important;
}
.player-card.is-player-fullscreen>.playback-modes .mode-btn{
  font-size:.55rem!important;
}
@media(max-width:780px){
  .player-card .playback-modes .mode-btn,
  .player-card.is-player-fullscreen>.playback-modes .mode-btn{
    font-size:.42rem!important;
  }
}


/* v0.107 · USER · icones x2 + fila 3 estable */
.user-tool-icon{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;font-size:40px!important}
.user-tool-icon svg{width:44px!important;height:44px!important}
.user-demos-headphones{font-size:2.3rem!important}
@media(max-width:620px){.user-tool-icon{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;font-size:34px!important}.user-tool-icon svg{width:36px!important;height:36px!important}.user-demos-headphones{font-size:2.3rem!important}}


/* v0.108 · USER · icones personalitzats */
.user-tool-icon.user-tool-icon-image{
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  color:inherit!important;
}
.user-tool-icon.user-tool-icon-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.user-tool-partitures .user-tool-icon.user-tool-icon-image,
.user-tools-grid .archive-upload-launcher .user-tool-icon.user-tool-icon-image,
.user-tools-grid .suggestion-launcher .user-tool-icon.user-tool-icon-image,
.user-profile-notifications-launcher .user-tool-icon.user-tool-icon-image,
.user-options-launcher .user-tool-icon.user-tool-icon-image{
  background:transparent!important;
  box-shadow:none!important;
}
.user-demos-headphones-image{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  line-height:1;
}
.user-demos-headphones-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(max-width:620px){
  .user-demos-headphones-image{
    width:46px;
    height:46px;
  }
}


/* v0.109 · ajuda d'instal·lació contextual */
.app-install-help[hidden]{display:none!important}
.app-install-help{position:fixed;inset:0;z-index:7000;display:grid;place-items:center;padding:18px}
.app-install-help-backdrop{position:absolute;inset:0;background:rgba(25,24,35,.72);backdrop-filter:blur(6px)}
.app-install-help-card{position:relative;z-index:1;width:min(560px,100%);max-height:min(88dvh,760px);overflow:auto;background:#fbfaf7;border:1px solid rgba(212,172,95,.38);border-radius:24px;padding:26px 24px 24px;box-shadow:0 30px 90px rgba(0,0,0,.32);text-align:center}
.app-install-help-card>img{width:88px;height:88px;object-fit:contain;border-radius:20px;margin-bottom:8px}
.app-install-help-card h2{margin:7px 0 8px;color:var(--blue-deep);font-size:1.45rem}
.app-install-help-device{display:inline-block;margin:0 0 16px;padding:7px 10px;border-radius:999px;background:var(--blue-soft);color:var(--blue-deep);font-size:.68rem;font-weight:800;line-height:1.3}
.app-install-help-text{text-align:left;color:var(--ink);font-size:.88rem;line-height:1.55}
.app-install-help-text p{margin:0 0 10px}.app-install-help-text ol{margin:8px 0 0;padding-left:22px}.app-install-help-text li+li{margin-top:7px}
.app-install-help-close{position:absolute;right:12px;top:12px;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--blue-deep);font-size:1.5rem;display:grid;place-items:center;line-height:1;cursor:pointer}
@media(max-width:620px){.app-install-help{padding:10px}.app-install-help-card{padding:22px 16px 18px;border-radius:20px}.app-install-help-card>img{width:72px;height:72px}.app-install-help-card h2{font-size:1.18rem}.app-install-help-text{font-size:.8rem}.app-install-help-device{font-size:.61rem}}


/* v0.110 · assistent d'instal·lació APP */
.install-assistant-actions{margin-top:16px;display:flex;justify-content:center}
.install-assistant-primary{width:100%;min-height:48px}
.install-assistant-tech{margin-top:16px;border-top:1px solid var(--line);padding-top:12px;text-align:left}
.install-assistant-tech summary{cursor:pointer;text-align:center;color:var(--muted);font-size:.66rem;font-weight:900;letter-spacing:.08em}
.install-assistant-tech-body{margin-top:10px;font-size:.68rem;color:var(--muted)}
.install-assistant-tech-body dl{margin:0;display:grid;gap:6px}.install-assistant-tech-body dl>div{display:flex;justify-content:space-between;gap:12px;padding:6px 8px;border-radius:9px;background:rgba(57,58,134,.05)}
.install-assistant-tech-body dt{font-weight:800}.install-assistant-tech-body dd{margin:0;text-align:right;font-weight:800;color:var(--blue-deep)}


/* ============================================================
   v0.111 · DRESSCODE unificat i inclusiu
   ============================================================ */
.dresscode-grid-unified{grid-template-columns:1fr!important;max-width:720px;margin-inline:auto}
.dresscode-grid-unified>div{width:100%}
.dresscode-param-row{grid-template-columns:56px minmax(0,1fr)!important;align-items:center!important}
.dresscode-garment-icon{position:relative;overflow:hidden}
.garment-crossfade{position:relative;display:block;width:32px;height:32px}
.garment-crossfade>span{position:absolute;inset:0;display:grid;place-items:center;animation:garmentCrossfadeA 4s linear infinite}
.garment-crossfade>span+span{animation-name:garmentCrossfadeB}
.garment-crossfade .garment-icon-svg{width:32px!important;height:32px!important}
@keyframes garmentCrossfadeA{0%,25%{opacity:1}50%,75%{opacity:0}100%{opacity:1}}
@keyframes garmentCrossfadeB{0%,25%{opacity:0}50%,75%{opacity:1}100%{opacity:0}}
@media(max-width:620px){
  .dresscode-grid-unified{display:block!important}
  .dresscode-param-row{grid-template-columns:48px minmax(0,1fr)!important}
  .garment-crossfade{width:28px;height:28px}.garment-crossfade .garment-icon-svg{width:28px!important;height:28px!important}
}
@media(prefers-reduced-motion:reduce){.garment-crossfade>span{animation:none!important}.garment-crossfade>span+span{display:none!important}}

/* v0.116: GÈNERE sense pictogrames; DEMOS per damunt de les eines musicals. */
.gender-choice-btn>strong{font-size:.76rem}
.user-profile-card .user-demos-box{margin-top:0!important;margin-bottom:16px!important}
@media(max-width:780px){.user-profile-card .user-demos-box{margin-bottom:12px!important}}


/* v0.118 · USER · caixa ENVIA EL TEU MATERIAL redissenyada */
.archive-upload-box{
  background:#393A86!important;
  border-color:#393A86!important;
  color:#fff!important;
  box-shadow:0 18px 34px rgba(34,35,86,.18)!important;
}
.archive-upload-box .archive-upload-head{margin-bottom:10px}
.archive-upload-box .archive-upload-head h3{font-size:2rem!important;line-height:1.05!important}
.archive-upload-intro{font-size:1rem!important;line-height:1.55!important;max-width:760px}
.archive-upload-year-note{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:10px 14px;margin:0 0 16px;
  border-radius:999px;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);color:#fff;
  font:900 .76rem/1.25 Arial,sans-serif;letter-spacing:.045em;text-transform:uppercase;
}
.archive-upload-form{gap:16px!important}
.archive-upload-block{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:16px;
}
.archive-upload-block-head{display:grid;gap:6px;margin-bottom:12px}
.archive-upload-block-head h4{
  margin:0;color:#fff;font:900 1.1rem/1.1 Arial,sans-serif;letter-spacing:.035em;
}
.archive-upload-block-head p{margin:0;color:rgba(255,255,255,.86);font-size:.92rem;line-height:1.45}
.archive-upload-type-pills{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.archive-upload-type-btn{
  border:1px solid rgba(255,255,255,.26);border-radius:14px;background:rgba(255,255,255,.1);
  color:#fff;min-height:56px;padding:12px 14px;cursor:pointer;
  font:900 .92rem/1.15 Arial,sans-serif;letter-spacing:.045em;text-align:center;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.archive-upload-type-btn:hover{transform:translateY(-1px)}
.archive-upload-type-btn.is-active{
  background:#fff;color:#393A86;border-color:#fff;box-shadow:0 10px 22px rgba(0,0,0,.15);
}
.archive-upload-file-card{
  position:relative;display:grid!important;gap:10px;padding:16px;border-radius:16px;
  background:#fff;border:1px dashed rgba(57,58,134,.28);cursor:pointer;
}
.archive-upload-file-card input[type="file"]{
  position:absolute;inset:0;opacity:0;cursor:pointer;
}
.archive-upload-file-cta{
  display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;
  min-height:42px;padding:10px 16px;border-radius:999px;background:#393A86;color:#fff;
  font:900 .78rem/1 Arial,sans-serif;letter-spacing:.05em;text-transform:uppercase;
}
.archive-upload-file-name{color:#393A86;font-size:.92rem;line-height:1.4;font-weight:700}
.archive-upload-box .archive-upload-form label{font-size:.82rem!important;letter-spacing:.025em}
.archive-upload-box .archive-upload-form input,
.archive-upload-box .archive-upload-form select,
.archive-upload-box .archive-upload-form textarea{
  border-radius:14px!important;border-color:#d9d7e8!important;
  font-size:.96rem!important;font-weight:700!important;color:#24211f!important;
}
.archive-upload-date-row,.archive-upload-meta-grid{display:grid;gap:12px}
.archive-upload-date-row{grid-template-columns:1.1fr 1fr .9fr}
.archive-upload-meta-grid{grid-template-columns:1fr 1fr}
.archive-upload-meta-full{grid-column:1 / -1}
.archive-upload-label-strong{position:relative}
.archive-required-chip{
  display:inline-flex;align-items:center;justify-content:center;margin-left:8px;vertical-align:middle;
  min-height:22px;padding:2px 8px;border-radius:999px;background:#D4AC5F;color:#27285f;
  font:900 .62rem/1 Arial,sans-serif;letter-spacing:.05em;
}
.archive-upload-preview{margin-top:2px;background:#ececf7!important;border-radius:16px!important}
.archive-upload-preview img{background:#fff!important}
.archive-upload-submit{
  min-height:54px;border-radius:999px!important;background:#fff!important;color:#393A86!important;
  font:900 1rem/1 Arial,sans-serif!important;letter-spacing:.045em!important;
}
.archive-upload-submit:hover{filter:brightness(.98)}
.archive-upload-box .user-auth-status{display:block;min-height:18px;font-size:.82rem;line-height:1.45}
@media(max-width:780px){
  .archive-upload-box .archive-upload-head h3{font-size:1.7rem!important}
  .archive-upload-year-note{display:flex;border-radius:16px;font-size:.72rem;line-height:1.35}
  .archive-upload-type-pills,.archive-upload-meta-grid,.archive-upload-date-row{grid-template-columns:1fr}
}
@media(max-width:520px){
  .archive-upload-box{padding:14px!important}
  .archive-upload-block{padding:14px}
  .archive-upload-intro{font-size:.95rem!important}
  .archive-upload-box .archive-upload-head h3{font-size:1.5rem!important}
  .archive-upload-file-cta{width:100%}
}

/* v0.119 · ENVIA EL TEU MATERIAL · simplificació visual */
.archive-upload-box{padding:22px!important}
.archive-upload-box .archive-upload-head{margin-bottom:4px!important}
.archive-upload-box .archive-upload-head h3{font-size:1.6rem!important}
.archive-upload-box .archive-upload-intro{margin:4px 0 10px!important;font-size:.9rem!important}
.archive-upload-box .archive-upload-year-note{display:block!important;margin:0 0 18px!important;padding:0!important;min-height:0!important;background:transparent!important;border:0!important;border-radius:0!important;color:#eeeaff!important;font:700 .81rem/1.4 Arial,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
.archive-upload-form{gap:0!important}
.archive-upload-block{background:transparent!important;border:0!important;border-radius:0!important;padding:0 0 16px!important;margin:0 0 16px!important;border-bottom:1px solid rgba(255,255,255,.24)!important}
.archive-upload-block-head{margin-bottom:9px!important}
.archive-upload-block-head h4{font-size:1rem!important;letter-spacing:.025em!important}
.archive-upload-type-btn{min-height:46px!important;border-radius:12px!important;font-size:.82rem!important}
.archive-upload-file-card{padding:12px!important;border-radius:12px!important;display:flex!important;align-items:center;flex-wrap:wrap;gap:10px!important}
.archive-upload-file-cta{min-height:38px!important;padding:9px 14px!important;font-size:.72rem!important}
.archive-upload-file-name{font-size:.78rem!important;font-weight:600!important}
.archive-upload-date-row{grid-template-columns:1.1fr 1fr .9fr!important;gap:10px!important}
.archive-upload-meta-grid{gap:10px!important}
.archive-upload-box .archive-upload-form label{font-size:.8rem!important}
.archive-upload-box .archive-upload-form input:not([type=file]),.archive-upload-box .archive-upload-form select,.archive-upload-box .archive-upload-form textarea{padding:10px 12px!important;font-size:.88rem!important;border-radius:10px!important}
.archive-required-chip{background:transparent!important;color:#ffda80!important;padding:0!important;margin-left:4px!important;font-size:.62rem!important}
.archive-upload-video-note{margin:0 0 16px!important;color:#f1e8cc!important;font-size:.82rem!important;line-height:1.5!important}
.archive-upload-submit{min-height:46px!important;font-size:.86rem!important}
@media(max-width:620px){
  .archive-upload-box{padding:16px!important}
  .archive-upload-date-row{grid-template-columns:1.1fr 1fr .9fr!important;gap:7px!important}
  .archive-upload-date-row label{min-width:0;font-size:.72rem!important}
  .archive-upload-date-row input,.archive-upload-date-row select{min-width:0;padding:9px 6px!important;font-size:.8rem!important}
  .archive-upload-meta-grid{grid-template-columns:1fr!important}
  .archive-upload-file-card{display:grid!important}
  .archive-upload-file-cta{width:100%!important}
}


/* v0.120 · USER · afinat final caixa ENVIA EL TEU MATERIAL */
.archive-upload-box .archive-upload-intro-note{
  margin:6px 0 16px!important;
  color:#f2f0ff!important;
  font:700 .95rem/1.58 Arial,sans-serif!important;
  max-width:760px;
}
.archive-upload-box .archive-upload-year-note,
.archive-upload-box .archive-upload-video-note{display:none!important}
.archive-upload-box .archive-upload-head h3{font-size:1.72rem!important}
.archive-upload-block-head h4{
  font-size:1.26rem!important;
  letter-spacing:.03em!important;
  line-height:1.1!important;
}
.archive-upload-box .archive-upload-form label{
  font-size:.96rem!important;
  font-weight:900!important;
  letter-spacing:.015em!important;
}
.archive-upload-box .archive-upload-form input:not([type=file]),
.archive-upload-box .archive-upload-form select,
.archive-upload-box .archive-upload-form textarea{
  margin-top:6px;
}
.archive-upload-file-name{
  font-size:.9rem!important;
  font-weight:700!important;
}
.archive-upload-submit{
  position:relative;
  overflow:hidden;
  min-height:50px!important;
  border-radius:999px!important;
  border:0!important;
  background:linear-gradient(135deg,#d4ac5f 0%, #e6c779 50%, #c89c3c 100%)!important;
  color:#27285f!important;
  font:900 .94rem/1 Arial,sans-serif!important;
  letter-spacing:.05em!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35)!important;
}
.archive-upload-submit::before{
  content:"";
  position:absolute;
  top:-10%; bottom:-10%; left:-35%;
  width:22%;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 30%, rgba(255,255,255,.72) 50%, rgba(255,255,255,.18) 70%, rgba(255,255,255,0) 100%);
  transform:skewX(-22deg);
  animation:archiveSubmitSweep 2.8s linear infinite;
  pointer-events:none;
}
.archive-upload-submit:hover{filter:brightness(1.03)!important;transform:translateY(-1px)}
.archive-upload-submit:active{transform:translateY(0) scale(.99)}
@keyframes archiveSubmitSweep{
  0%{left:-35%}
  100%{left:115%}
}
@media(max-width:620px){
  .archive-upload-box .archive-upload-intro-note{font-size:.88rem!important;line-height:1.55!important}
  .archive-upload-block-head h4{font-size:1.12rem!important}
  .archive-upload-box .archive-upload-form label{font-size:.9rem!important}
}


/* v0.121 · INSTALL assistant · contingut centrat */
.app-install-help-card{display:flex;flex-direction:column;align-items:center;text-align:center!important}
.app-install-help-card>img{display:block;margin:0 auto 8px!important}
.app-install-help-text{width:100%;text-align:center!important;margin:0 auto}
.app-install-help-text p{max-width:420px;margin:0 auto 10px!important}
.app-install-help-device:empty{display:none!important}

/* v0.124 · INSTALL · sortida clara quan el navegador no ofereix instal·lació */
.install-assistant-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:420px;margin:14px auto 0}
.install-assistant-copy{background:transparent;border:1px solid rgba(57,58,134,.32);border-radius:999px;padding:12px 16px;color:var(--blue-deep);font:800 .78rem/1.2 Arial,sans-serif;cursor:pointer}
.install-assistant-copy:hover{background:var(--blue-soft)}
.install-assistant-copy[hidden]{display:none!important}
/* v0.128 · alternativa Android visible, però voluntària */
.install-assistant-apk{display:block;background:#f1eefb;border:1px solid #484394;border-radius:999px;padding:13px 14px;color:#24266f;font:800 .76rem/1.3 Arial,sans-serif;text-align:center;text-decoration:none}
.install-assistant-apk:hover{background:#e7e2f7}.install-assistant-apk[hidden]{display:none!important}
.install-browser-tip{font-size:.78rem;color:var(--muted)}


/* v0.125 · confirmació real d'instal·lació PWA */
.app-install-success[hidden]{display:none!important}
.app-install-success{position:fixed;z-index:7500;left:50%;top:max(20px,env(safe-area-inset-top));transform:translateX(-50%);width:min(460px,calc(100vw - 32px));display:flex;align-items:center;gap:14px;padding:18px 20px;border-radius:18px;border:1px solid rgba(212,172,95,.55);background:#fbfaf7;color:#29295e;box-shadow:0 14px 45px rgba(0,0,0,.28);text-align:left;box-sizing:border-box}
.app-install-success-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#e7f4eb;color:#207849;font:900 25px/1 Arial,sans-serif}
.app-install-success strong{display:block;font:900 .92rem/1.25 Arial,sans-serif}
.app-install-success p{margin:5px 0 0;font:.82rem/1.4 Arial,sans-serif}

/* v0.142 · Bústia privada de notificacions al dispositiu */
.user-profile-notifications-launcher{width:131px!important;min-width:131px!important;min-height:94px!important;padding:9px 5px!important;gap:6px!important}
.user-profile-notifications-launcher .user-tool-icon{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
.user-profile-notifications-launcher .user-tool-title-one-line{font-size:.54rem!important;letter-spacing:0!important;white-space:nowrap!important;overflow-wrap:normal!important}
.user-notifications-panel{margin-top:14px;padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-soft)}
.user-notifications-panel[hidden]{display:none!important}
.user-notifications-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.user-notifications-head h3{margin:4px 0;color:var(--blue-deep);font-size:1.23rem}
.user-notifications-hint{font-size:.8rem;color:var(--muted);line-height:1.45;margin:10px 0 16px}
.user-notifications-list{display:grid;gap:10px}
.user-notification-item{border:1px solid rgba(57,58,134,.17);border-radius:15px;background:linear-gradient(135deg,#fff,#f3f6ff);padding:13px 14px;position:relative;touch-action:pan-y;transition:transform .15s ease,opacity .15s ease;cursor:pointer;display:grid;gap:5px}
.user-notification-item strong{color:var(--blue-deep);font-size:.9rem}
.user-notification-item span{color:var(--muted);font-size:.81rem;line-height:1.35}
.user-notification-item time{color:#665e58;font-size:.7rem}
.user-notifications-empty{padding:18px 8px;text-align:center;color:var(--muted);font-size:.86rem}
@media(max-width:780px){.user-profile-notifications-launcher{width:96px!important;min-width:96px!important;flex:0 0 96px!important;min-height:70px!important}.user-profile-notifications-launcher .user-tool-icon{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}.user-profile-notifications-launcher .user-tool-title-one-line{font-size:.45rem!important}}

/* v0.143 · NOTIFICACIONS com a targeta pròpia, abans de DEMOS. */
.user-notifications-launch-row{display:flex;justify-content:flex-start;margin-top:14px}
.user-notifications-launch-row .user-profile-notifications-launcher{margin:0!important;align-self:auto!important;width:105px!important;min-width:105px!important;min-height:75px!important;padding:8px 5px!important;gap:5px!important}
.user-notifications-launch-row .user-profile-notifications-launcher .user-tool-icon{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
.user-notifications-launch-row .user-profile-notifications-launcher .user-tool-title-one-line{font-size:.405rem!important;letter-spacing:0!important;white-space:nowrap!important;overflow-wrap:normal!important}
@media(max-width:780px){.user-notifications-launch-row .user-profile-notifications-launcher{width:84px!important;min-width:84px!important;min-height:62px!important}.user-notifications-launch-row .user-profile-notifications-launcher .user-tool-icon{width:27px!important;height:27px!important;min-width:27px!important;min-height:27px!important}.user-notifications-launch-row .user-profile-notifications-launcher .user-tool-title-one-line{font-size:.36rem!important}}

.event-card.notification-destination{outline:3px solid #d8aa47;outline-offset:3px;scroll-margin-top:125px}


/* v0.144 · NOTIFICACIONS com a caixa desplegable ampla damunt de DEMOS. */
.user-notifications-box{padding:0!important;overflow:hidden;background:linear-gradient(145deg,#fff,#f7f4ec)!important;margin-top:14px!important;margin-bottom:16px!important}
.user-notifications-box>summary{list-style:none;position:relative;display:grid;align-items:center;min-height:72px;padding:12px 52px 12px 16px;cursor:pointer;user-select:none;text-align:left}
.user-notifications-box>summary::-webkit-details-marker{display:none}
.user-notifications-summary-copy{display:flex;align-items:center;justify-content:flex-start;text-align:left}
.user-notifications-summary-copy strong{display:flex;align-items:center;gap:10px;color:var(--blue-deep);font-size:.76rem;letter-spacing:.03em;line-height:1.12}
.user-notifications-summary-copy #userNotificationsHeading{display:inline-flex;align-items:center;justify-content:flex-start;white-space:nowrap}
.user-notifications-box>summary .details-chevron{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.user-notifications-box[open]>summary .details-chevron{transform:translateY(-50%) rotate(180deg)}
.user-notifications-panel-inline{padding:0 16px 16px;border-top:1px solid var(--line)}
.user-notifications-panel-inline[hidden]{display:none!important}
.user-notifications-hint{font-size:.8rem;color:var(--muted);line-height:1.45;margin:12px 0 14px}
.user-notifications-list{display:grid;gap:10px}
.user-notification-item{border:1px solid rgba(57,58,134,.17);border-radius:15px;background:linear-gradient(135deg,#fff,#f3f6ff);padding:13px 14px;position:relative;touch-action:pan-y;transition:transform .15s ease,opacity .15s ease;cursor:pointer;display:grid;gap:5px}
.user-notification-item strong{color:var(--blue-deep);font-size:.9rem}
.user-notification-item span{color:var(--muted);font-size:.81rem;line-height:1.35}
.user-notification-item time{color:#665e58;font-size:.7rem}
.user-notifications-empty{padding:18px 8px;text-align:center;color:var(--muted);font-size:.86rem}
@media(max-width:780px){
  .user-notifications-box{margin-top:12px!important;margin-bottom:12px!important}
  .user-notifications-box>summary{min-height:66px;padding:10px 44px 10px 12px}
  .user-notifications-summary-copy strong{font-size:.68rem;gap:8px}
  .user-notifications-summary-copy .user-demos-headphones-image{width:42px;height:42px}
  .user-notifications-panel-inline{padding:0 12px 12px}
}


/* ============================================================
   v0.150 · MINIJOCS · centrado final + icona QNE sense fons blanc
   ============================================================ */
.game-launch-card--bg{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  border-color:rgba(159,173,217,.34)!important;
  background:linear-gradient(145deg,#eaf0ff,#f5f7ff)!important;
  justify-content:center!important;
  align-items:center!important;
  gap:14px;
  padding:18px;
}
.game-launch-card--bg::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:var(--game-card-bg);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  z-index:0;
}
.game-launch-card--bg::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(12,17,38,.14));
  z-index:0;
}
.game-launch-card--bg > *{position:relative;z-index:1}
.game-launch-card--bg .game-launch-icon{
  width:135px!important;
  height:135px!important;
  max-width:135px;
  max-height:135px;
}
.game-launch-card--bg .game-launch-icon.game-launch-image,
.game-launch-card--bg .game-launch-icon.game-launch-image img{
  background:transparent!important;
}
.game-launch-card--bg .game-launch-icon.game-launch-image img{
  object-fit:contain!important;
  object-position:center!important;
}
.game-launch-card--bg .game-launch-copy{
  width:100%;
  gap:10px;
  justify-items:center;
  align-content:center;
  text-align:center;
}
.game-launch-card--bg .game-launch-title-image{
  display:block;
  max-height:88px;
  margin-inline:auto;
}
.game-launch-card--bg .game-launch-textbox{
  display:grid;
  gap:7px;
  width:fit-content;
  max-width:min(100%, 360px);
  margin-inline:auto;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.82);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.game-launch-card--bg .game-launch-eyebrow{
  display:block;
  font-size:.8rem;
  line-height:1.1;
  letter-spacing:.05em;
  font-weight:900;
  color:#fff;
}
.game-launch-card--bg .game-launch-copy strong,
.game-launch-card--bg .game-launch-copy small{
  color:#fff;
}
.game-launch-card--bg .game-launch-copy small{
  max-width:26ch;
}
.game-launch-card--bg .game-points-bubble{
  margin-top:2px;
  align-self:center;
}
@media(max-width:780px){
  .game-launch-card--bg .game-launch-icon{width:104px!important;height:104px!important;max-width:104px;max-height:104px}
  .game-launch-card--bg .game-launch-title-image{max-height:66px}
  .game-launch-card--bg .game-launch-textbox{padding:8px 10px;gap:5px;max-width:92%}
  .game-launch-card--bg .game-launch-eyebrow{font-size:.68rem}
}
@media(max-width:390px){
  .game-launch-card--bg .game-launch-icon{width:96px!important;height:96px!important;max-width:96px;max-height:96px}
  .game-launch-card--bg .game-launch-title-image{max-height:58px}
}


/* v0.152 · Retrats dels directors a les capçaleres d'HISTÒRIC. */
.history-period-head .history-period-portrait{
  display:block!important;
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:2px solid rgba(255,255,255,.5)!important;
  border-radius:3px!important;
  box-shadow:0 1px 3px rgba(0,0,0,.20)!important;
  background:rgba(255,255,255,.16)!important;
}
.history-period-head .history-period-portrait img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
}
.history-period-head:has(.history-period-portrait){padding-top:4px!important;padding-bottom:4px!important;min-height:74px!important;}
.history-period.is-collapsed .history-period-head:has(.history-period-portrait){padding-top:4px!important;padding-bottom:4px!important;min-height:74px!important;}
@media(max-width:780px){
 .history-period-head .history-period-portrait{flex-basis:48px!important;width:48px!important;height:48px!important;min-width:48px!important;}
 .history-period-head:has(.history-period-portrait),
 .history-period.is-collapsed .history-period-head:has(.history-period-portrait){min-height:60px!important;padding-top:5px!important;padding-bottom:5px!important;}
}
@media(max-width:440px){
 .history-period-head .history-period-portrait{flex-basis:43px!important;width:43px!important;height:43px!important;min-width:43px!important;}
}

/* ===========================================================
   BANDA DE LA CALA v0.153 · menus homogenis + zoom mobile
   =========================================================== */
html,body{max-width:100%;overflow-x:clip}
@supports not (overflow:clip){html,body{overflow-x:hidden}}
.app-shell,.app-main,.view,.user-view-wrap,.user-profile-card,.user-expansion-box{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:780px){
  html,body{width:100%;max-width:100vw;overscroll-behavior-x:none}
  .app-shell,.app-main,.view{max-width:100vw}
  img,video,canvas{max-width:100%}
}
/* Same font size and left alignment for both section launchers. */
.user-profile-card .user-notifications-box,
.user-profile-card .user-demos-box{max-width:100%;box-sizing:border-box}
.user-profile-card .user-notifications-box>summary,
.user-profile-card .user-demos-box>summary{
  display:flex!important;justify-content:flex-start!important;align-items:center!important;
  text-align:left!important;padding-left:24px!important;padding-right:50px!important;min-height:72px!important
}
.user-profile-card .user-notifications-summary-copy,
.user-profile-card .user-demos-summary-copy{justify-content:flex-start!important;text-align:left!important;min-width:0}
.user-profile-card .user-notifications-summary-copy strong,
.user-profile-card .user-demos-summary-copy strong{
  font-size:.88rem!important;line-height:1.15!important;letter-spacing:.018em!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;
  color:var(--blue-deep)!important;text-align:left!important
}
.user-profile-card #userNotificationsHeading,
.user-profile-card #userDemosHeading{justify-content:flex-start!important;text-align:left!important}
@media(max-width:620px){
  .user-profile-card .user-notifications-box>summary,.user-profile-card .user-demos-box>summary{
    min-height:68px!important;padding-left:14px!important;padding-right:43px!important
  }
  .user-profile-card .user-notifications-summary-copy strong,
  .user-profile-card .user-demos-summary-copy strong{font-size:.78rem!important;gap:8px!important}
}
/* Descartar amb X, only on desktop; touch swipe remains unchanged. */
.user-notification-item{min-width:0;box-sizing:border-box}
.user-notification-dismiss{display:none!important}
@media(min-width:781px){
  .user-notification-item{padding-right:52px!important}
  .user-notification-dismiss{display:grid!important;position:absolute;right:10px;top:10px;
    width:30px;height:30px;place-items:center;border-radius:50%;cursor:pointer;
    background:#eef0fb;color:#393a86;border:1px solid #d1d7ef;
    font:700 22px/1 Arial,sans-serif;transition:background .15s,transform .15s}
  .user-notification-dismiss:hover{background:#fbe9e6;color:#b84444;transform:scale(1.06)}
}

/* Homogeneous dark-navy modal surfaces: upload, profile and suggestions. */
.user-profile-card .archive-upload-box,
.user-profile-card .user-options-box,
.user-profile-card .suggestion-box{
  margin-top:16px!important;padding:26px!important;max-width:100%;
  background:linear-gradient(145deg,#263b7a 0%,#1a285e 52%,#192252 100%)!important;
  color:#fff!important;border:1px solid rgba(156,172,245,.3)!important;
  border-radius:25px!important;box-shadow:0 18px 38px rgba(22,29,69,.22)!important;
  overflow:hidden;scroll-margin-top:110px
}
.user-profile-card .archive-upload-head,
.user-profile-card .user-options-head,
.user-profile-card .suggestion-box-head{
  align-items:flex-start!important;justify-content:center!important;position:relative;
  gap:8px!important;margin-bottom:10px!important;padding-right:38px;
  min-height:58px;text-align:center
}
.user-profile-card .user-mini-heading{margin-inline:auto;text-align:center}
.user-profile-card .user-mini-heading .eyebrow{
  display:block!important;color:#f4cb61!important;letter-spacing:.10em!important;
  font:800 .79rem/1.2 Arial,sans-serif!important
}
.user-profile-card .user-mini-heading h3{
  margin:7px 0 0!important;color:#fff!important;
  font:700 clamp(1.7rem,3.3vw,2.6rem)/1.12 Georgia,serif!important;
  letter-spacing:0!important;text-transform:none!important
}
.user-profile-card .archive-upload-close,
.user-profile-card .user-options-close,
.user-profile-card .suggestion-box-close{
  position:absolute!important;top:-8px!important;right:-8px!important;display:grid!important;
  width:39px!important;height:39px!important;min-width:39px!important;place-items:center!important;
  border-radius:50%!important;color:#18275c!important;background:#fff!important;
  font:600 26px/1 Arial,sans-serif!important;box-shadow:0 3px 12px rgba(0,0,0,.14)!important
}
.user-profile-card .archive-upload-intro-note,
.user-profile-card .suggestion-box-intro{
  margin:4px auto 20px!important;text-align:center!important;max-width:780px;
  font:400 .94rem/1.5 Arial,sans-serif!important;color:#f1f4ff!important
}
.user-profile-card .archive-upload-form{gap:15px!important;display:grid}
.user-profile-card .archive-upload-block{
  display:block!important;background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(206,218,255,.22)!important;border-radius:20px!important;
  padding:16px!important;margin:0!important;min-width:0
}
.user-profile-card .archive-upload-block-head{margin:0 0 13px!important}
.user-profile-card .archive-upload-block-head h4{
  font:700 clamp(1.25rem,2.3vw,1.75rem)/1.2 Georgia,serif!important;
  color:#fff!important;letter-spacing:0!important;text-transform:none!important
}
.user-profile-card .archive-upload-block-head h4::before{
  content:'—';display:inline-block;margin-right:12px;color:#f2cf76;font:700 1.25rem Arial,sans-serif
}
.user-profile-card .archive-upload-block-head h4 .archive-year-head-note{
  display:inline-flex;vertical-align:middle;align-items:center;
  margin-left:10px;padding:7px 12px;border:1px solid rgba(255,255,255,.2);
  border-radius:999px;background:rgba(255,255,255,.12);
  font:700 .74rem/1.2 Arial,sans-serif!important;color:#f5f5ff
}
.user-profile-card .archive-upload-block-head h4 .archive-optional-head{
  font:500 .8rem Arial,sans-serif;color:#edf0ff
}
.user-profile-card .archive-upload-type-pills{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}
.user-profile-card .archive-upload-type-btn{
  min-height:70px!important;border-radius:17px!important;background:rgba(255,255,255,.055)!important;
  border:2px solid #aebde9!important;color:#fff!important;
  font:700 1.15rem/1.3 Georgia,serif!important;text-align:left!important;
  padding:12px 22px!important;letter-spacing:0!important;text-transform:none!important
}
.user-profile-card .archive-upload-type-btn.is-active{
  background:linear-gradient(130deg,#fff7e7,#f2dfbd)!important;
  border-color:#ffcb55!important;color:#1e326b!important;
  box-shadow:inset 0 0 0 1px #f3be42,0 4px 12px rgba(0,0,0,.17)!important
}
.user-profile-card .archive-upload-file-card{
  background:linear-gradient(145deg,#f4f5ff,#ffffff)!important;
  border:2px dashed #9daee5!important;border-radius:15px!important;
  padding:12px!important;display:flex!important;align-items:center;justify-content:center;
  gap:16px!important;min-height:72px;min-width:0
}
.user-profile-card .archive-upload-file-cta{
  min-height:43px!important;padding:10px 20px!important;
  border-radius:999px!important;background:#2e427f!important;color:#fff!important;
  font:700 .87rem/1.2 Arial,sans-serif!important;
  text-transform:none!important;letter-spacing:0!important;width:auto!important;flex:0 0 auto
}
.user-profile-card .archive-upload-file-name{font-size:.85rem!important;font-weight:500!important;color:#283966!important;overflow-wrap:anywhere;min-width:0}
.user-profile-card .archive-upload-form label{
  color:#fff!important;font-size:.9rem!important;font-weight:700!important;letter-spacing:0!important;
  min-width:0;line-height:1.35!important
}
.user-profile-card .archive-upload-date-row{grid-template-columns:1.12fr 1fr .9fr!important;gap:14px!important}
.user-profile-card .archive-upload-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}
.user-profile-card .archive-upload-form input:not([type=file]),
.user-profile-card .archive-upload-form select,
.user-profile-card .archive-upload-form textarea{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  margin-top:5px!important;padding:12px 13px!important;border:1px solid #b6c5eb!important;
  border-radius:12px!important;background:#f8f9ff!important;color:#233468!important;
  font:500 1rem/1.3 Arial,sans-serif!important
}
.user-profile-card .archive-upload-form input:focus-visible,
.user-profile-card .archive-upload-form select:focus-visible,
.user-profile-card .archive-upload-form textarea:focus-visible{
  outline:2px solid #e9b947!important;outline-offset:1px
}
.user-profile-card .archive-required-chip{
  display:inline-flex!important;min-height:26px!important;margin-left:8px!important;
  padding:5px 9px!important;background:linear-gradient(145deg,#ffe9b5,#edb947)!important;
  color:#1c2a5a!important;border-radius:999px!important;font:900 .64rem Arial,sans-serif!important
}
.user-profile-card .archive-required-star{font-weight:900;color:#ff6158;font-size:1.25rem}
.user-profile-card .archive-required-desc{display:block;color:#ffd268;font:700 .74rem/1.3 Arial,sans-serif}
.user-profile-card .archive-upload-submit{
  justify-self:stretch;width:100%!important;min-height:64px!important;
  margin-top:6px!important;border-radius:999px!important;
  background:linear-gradient(155deg,#ffe6a1,#e5b842)!important;
  color:#1c2a5a!important;font:800 1.25rem/1.2 Arial,sans-serif!important;
  text-transform:none!important;letter-spacing:0!important
}
.user-profile-card .archive-upload-submit::before{display:none!important}
/* Same framing for both shorter miniscreens. */
.user-profile-card .user-options-box .user-settings-grid{
  gap:13px!important;padding:16px!important;
  background:rgba(255,255,255,.075)!important;border:1px solid rgba(206,218,255,.22)!important;
  border-radius:19px!important;min-width:0
}
.user-profile-card .suggestion-form{
  padding:18px!important;background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(206,218,255,.22)!important;border-radius:19px!important;gap:14px!important
}
.user-profile-card .suggestion-form label{color:#fff!important;font-size:.95rem!important}
.user-profile-card .suggestion-form input,
.user-profile-card .suggestion-form textarea{
  background:#f8f9ff!important;color:#283966!important;border:1px solid #b6c5eb!important;
  border-radius:12px!important;min-width:0!important;box-sizing:border-box!important
}
.user-profile-card .suggestion-form .user-password-btn{
  width:100%!important;min-height:55px!important;
  background:linear-gradient(155deg,#ffe6a1,#e5b842)!important;
  color:#1c2a5a!important;font-weight:800!important;border-radius:999px!important;
  justify-self:stretch!important
}
@media(max-width:620px){
  .user-profile-card .archive-upload-box,.user-profile-card .user-options-box,.user-profile-card .suggestion-box{padding:15px!important;border-radius:19px!important}
  .user-profile-card .archive-upload-head,.user-profile-card .user-options-head,.user-profile-card .suggestion-box-head{padding:0 35px 0 16px!important}
  .user-profile-card .user-mini-heading h3{font-size:1.85rem!important}
  .user-profile-card .archive-upload-block{padding:13px!important}
  .user-profile-card .archive-upload-type-pills{gap:9px!important}
  .user-profile-card .archive-upload-type-btn{font-size:.95rem!important;min-height:62px!important;padding:9px!important}
  .user-profile-card .archive-upload-file-card{display:grid!important;justify-items:center!important;text-align:center!important}
  .user-profile-card .archive-upload-file-cta{width:min(100%,240px)!important}
  .user-profile-card .archive-upload-date-row{grid-template-columns:1fr!important;gap:11px!important}
  .user-profile-card .archive-upload-meta-grid{grid-template-columns:1fr!important}
  .user-profile-card .archive-upload-block-head h4 .archive-year-head-note{margin:9px 0 0;display:flex;max-width:max-content}
  .user-profile-card .archive-upload-submit{font-size:1.04rem!important}
  .user-profile-card .user-options-box .user-settings-grid,.user-profile-card .suggestion-form{padding:12px!important}
}

/* v0.154 · Opcions d'usuari: llista vertical en mòbil i tres línies fixes d'introducció. */
.user-profile-card .archive-upload-intro-note span{display:block}
@media(max-width:780px){
  .user-profile-card #userOptionsBox .user-settings-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    align-items:stretch!important;
  }
  .user-profile-card #userOptionsBox .user-settings-grid > .user-profile-tile{
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  .user-profile-card #nameProfileDetails{order:1!important}
  .user-profile-card #passwordDetails{order:2!important}
  .user-profile-card #genderProfileDetails{order:3!important}
  .user-profile-card #avatarProfileDetails{order:4!important}
  .user-profile-card .archive-upload-intro-note span{margin-bottom:3px}
}

/* v1.159 · PASSACARRERS i selector d'idioma */
.home-language-selector{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 auto 14px;width:100%;}
.home-language-title{font-size:11px;font-weight:850;letter-spacing:.12em;color:var(--blue-deep,#10386f);}
.home-language-options{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;}
.home-language-button{border:1px solid #b2c3da;border-radius:8px;padding:8px 12px;background:#fff;color:#184477;font-size:11px;font-weight:850;letter-spacing:.025em;cursor:pointer;min-height:38px;}
.home-language-button.is-active{background:#173f80;border-color:#173f80;color:#fff;box-shadow:0 2px 5px rgba(8,40,85,.18)}
.home-language-button:focus-visible{outline:3px solid #e6bd4e;outline-offset:2px}
.user-passacarrers-box .user-passacarrers-list{padding:4px 20px 20px;display:flex;flex-direction:column;align-items:center;gap:0;text-align:center}
.user-passacarrers-list>div{width:100%;padding:11px 8px;border-bottom:1px solid rgba(20,51,95,.12);font-size:.91rem;color:var(--blue-deep,#173e71);font-weight:750;line-height:1.35}
.user-passacarrers-list>div:last-child{border-bottom:0}
.user-passacarrers-box .user-demos-headphones{color:#1a427e;min-width:34px;display:inline-flex;align-items:center;justify-content:center}
.user-profile-card .user-passacarrers-box{margin:0 0 16px!important;max-width:100%;}
@media(max-width:780px){.user-profile-card .user-passacarrers-box{margin-bottom:12px!important}.home-language-button{padding:8px 10px}}
