:root { color-scheme:dark; font: 15px/1.5 system-ui,sans-serif; background:#111015; color:#f5f0f5; --panel:#201b24; --edge:#413648; --muted:#b9acbd; --accent:#edc3e2; }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
.top { display:flex; justify-content:space-between; align-items:center; padding:14px clamp(16px,4vw,50px); background:#19151e; border-bottom:1px solid var(--edge); }
.brand-row,.brand { display:flex; align-items:center; gap:8px; }
.brand { font-weight:800; letter-spacing:.14em; text-decoration:none; color:#edc3e2; }
.brand img { object-fit:contain; }
body:is([data-artist="prnce"],[data-artist="da-ni"]) {
  background:#101013;
  --panel:#1e1f23;
  --edge:#414249;
  --muted:#c5c6cc;
  --accent:#efca83;
  --gold-frame:#ae8b4d;
  --gold-control:#897045;
}
body:is([data-artist="prnce"],[data-artist="da-ni"]) :is(.top,.voice-feedback) { background:#16171b; }
body:is([data-artist="prnce"],[data-artist="da-ni"]) :is(.artist-brand,.panel) {
  border-color:var(--gold-frame);
  box-shadow:inset 0 1px 0 rgb(239 202 131 / 10%);
}
body:is([data-artist="prnce"],[data-artist="da-ni"]) :is(.quiet,.voice-feedback) { border-color:var(--gold-control); }
body:is([data-artist="prnce"],[data-artist="da-ni"]) .quiet { background:#292a30; color:#f7e6c5; }
body:is([data-artist="prnce"],[data-artist="da-ni"]) button:not(.quiet,.tree-button) { border-color:var(--gold-frame); }
body:is([data-artist="prnce"],[data-artist="da-ni"]) .tree-button[aria-current] { background:#25262b; border-color:var(--gold-frame); color:var(--accent); }
body:is([data-artist="prnce"],[data-artist="da-ni"]) :is(input,textarea,select) { background:#151619; }
body:is([data-artist="prnce"],[data-artist="da-ni"]) #song-picker button[aria-pressed="true"] { color:#17181c; }
.artist-brand { position:relative; overflow:hidden; margin:8px 0 18px; border:1px solid var(--edge); border-radius:14px; background:#050403; }
.artist-brand[data-brand="prnce"] {
  aspect-ratio:4.5;
  max-height:190px;
  isolation:isolate;
  background:
    radial-gradient(ellipse at 50% 100%, #5c3616 0%, transparent 58%),
    radial-gradient(ellipse at 0% 0%, #58331d 0%, transparent 44%),
    radial-gradient(ellipse at 100% 0%, #493018 0%, transparent 44%),
    linear-gradient(135deg, #171012, #080609 50%, #1c1210);
}
.artist-brand[data-brand="prnce"] img {
  position:absolute;
  width:min(152%, 1040px);
  height:auto;
  max-width:none;
  left:50%;
  top:50%;
  /* Frame the gold-on-black wordmark from the upper-right of the supplied logo sheet. */
  clip-path:inset(0 0 51% 51%);
  mix-blend-mode:screen;
  transform:translate(-75%, -23%);
}
.artist-brand[data-brand="da-ni"] {
  aspect-ratio:4.5;
  max-height:190px;
  isolation:isolate;
  background:radial-gradient(ellipse at 50% 90%, #332411 0%, #100e10 55%, #080809 100%);
}
.artist-brand[data-brand="da-ni"] img {
  position:absolute;
  width:min(140%, 870px);
  height:auto;
  max-width:none;
  left:50%;
  top:50%;
  /* Frame the Da-Ni script separately from the original banner lockup. */
  clip-path:inset(26% 37% 40% 26.5%);
  mix-blend-mode:screen;
  transform:translate(-45%, -43.7%);
}
.song-section { border-top:1px solid var(--edge); padding:10px 0; }
.song-section > summary, .lyrics > summary { cursor:pointer; font-weight:680; color:var(--accent); }
.song-section > summary { padding:6px 0; }
.song-lyrics { white-space:pre-wrap; overflow-wrap:anywhere; min-height:40px; }
#song-count { margin-left:4px; }
#song-picker {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));
  gap:6px;
  max-height:200px;
  overflow:auto;
  margin-top:12px;
}
#song-picker button { width:100%; text-align:left; overflow-wrap:anywhere; }
#song-picker p { margin:0; }
#song-picker button[aria-pressed="true"] { background:var(--accent); color:#281b10; }
#song-work { margin-top:16px; padding-top:12px; border-top:1px solid var(--edge); }
#current-song { margin:0; overflow-wrap:anywhere; scroll-margin-top:68px; }
#record-parts { margin-top:8px; gap:6px; }
.breadcrumb,p,small,time { color:var(--muted); }
main { margin:auto; padding:0 clamp(14px,4vw,50px) 36px; max-width:1480px; }
#status { margin:14px 0; }
#status:empty { display:none; }
.workspace { display:grid; grid-template-columns:minmax(220px,290px) minmax(0,1fr); gap:28px; margin-top:26px; }
aside { border-right:1px solid var(--edge); padding-right:20px; }
h1 { margin:0; line-height:1.15; font-size:clamp(26px,4vw,39px); letter-spacing:-.045em; }
h2 { margin:0; font-size:17px; }
nav { margin:20px 0; }
nav h2 { margin:14px 0 4px; }
.category { margin:8px 0 12px; padding-left:8px; }
.category strong { font-size:13px; color:var(--muted); }
.tree-button { display:block; width:100%; text-align:left; background:transparent; border-color:transparent; color:inherit; font-weight:500; }
.tree-button[aria-current] { background:#392940; border-color:#684d72; }
.room-title,.section-title,.controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.section-title { justify-content:space-between; }
.room-title { margin-bottom:15px; }
.state { color:var(--accent); text-transform:capitalize; }
.panel,.login { margin:17px 0; border:1px solid var(--edge); background:var(--panel); padding:clamp(13px,2vw,22px); border-radius:14px; }
.login { max-width:480px; margin:35px auto; }
form { display:grid; gap:10px; margin-top:12px; }
label { display:grid; gap:4px; color:var(--muted); font-size:13px; min-width:0; }
input,textarea,select,button { font:inherit; border-radius:8px; border:1px solid var(--edge); min-height:40px; padding:6px 10px; }
input,textarea,select { width:100%; color:inherit; background:#151119; }
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
button { cursor:pointer; color:#2a162a; font-weight:680; background:var(--accent); justify-self:start; }
button:hover { filter:brightness(1.12); }
button.quiet,a.quiet { color:#ebdce9; background:#302637; }
a.quiet { padding:6px 10px; border-radius:8px; }
.entry,.asset,.grant { margin:8px 0; padding:9px 0; border-bottom:1px solid var(--edge); overflow-wrap:anywhere; }
.voice-feedback { margin:14px 0; padding:12px; background:#19151e; border:1px solid var(--edge); border-radius:10px; }
.voice-feedback p:empty { display:none; }
.entry p { color:#f5f0f5; margin:3px 0; white-space:pre-wrap; }
.entry small { margin-left:8px; }
.asset,.grant { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
audio,video { display:block; width:100%; max-height:500px; margin-top:12px; }
#invite-result { margin-top:12px; }
#room-menu { display:none; }
.phone-preview { width:min(100%,390px); min-height:100dvh; margin-inline:auto; }
.phone-preview main { padding-inline:max(14px, 4%); }
.compact .top { position:sticky; top:0; z-index:2; padding:8px 14px; gap:8px; }
.compact .top .controls { flex-wrap:nowrap; gap:6px; }
.compact .top .breadcrumb { display:none; }
.compact #room-menu { display:inline-flex; align-items:center; gap:5px; }
.compact #room-menu,.compact #logout,.compact #notifications { min-height:44px; }
.compact .workspace { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:10px; }
.compact #room-navigation { display:none; border:1px solid var(--edge); background:var(--panel); border-radius:12px; padding:12px; }
.compact #room-navigation.menu-open {
  display:block;
  position:fixed;
  z-index:3;
  inset:64px 14px auto;
  max-height:calc(100dvh - 80px);
  overflow:auto;
  box-shadow:0 12px 32px #0008;
}
.phone-preview #room-navigation.menu-open { max-width:362px; margin-inline:auto; }
.compact #room-navigation nav { margin:8px 0; }
.compact #workspace-title { font-size:18px; }
.compact #room-name { font-size:26px; }
.compact #room-path { margin:4px 0 8px; font-size:13px; }
.compact #room-name,.compact #studio-heading { scroll-margin-top:68px; }
.compact .panel .controls { align-items:flex-end; }
.compact .panel { padding:13px; }
.compact #song-picker { grid-template-columns:1fr; }
.compact :is(#song-picker,#record-parts) button,.compact #studio-record,.compact #ask-rose { min-height:44px; }
#studio-status:empty,#rose-studio-reply:empty { display:none; }
.studio-video { padding:10px 0; border-top:1px solid var(--edge); }
.studio-video summary { cursor:pointer; overflow-wrap:anywhere; font-weight:680; }
.studio-video video { max-height:min(360px,56vh); background:#080809; }
.studio-video a { display:inline-block; margin-top:10px; }
#studio-videos-heading { scroll-margin-top:68px; }
#song-videos { margin-top:9px; }
.studio-audio { border-top:1px solid var(--edge); padding:10px 0; scroll-margin-top:68px; }
.studio-audio summary { cursor:pointer; overflow-wrap:anywhere; font-weight:680; }
#studio-audio-files { scroll-margin-top:68px; }
#audio-upload-status:empty { display:none; }
.compact #attach-audio { min-height:44px; }
.compact #whatsapp-toggle { min-height:44px; }
#whatsapp-chat { display:inline-block; border:1px solid var(--edge); text-decoration:none; }
#whatsapp-status:empty { display:none; }
#schedule-heading { scroll-margin-top:calc(var(--top-height,69px) + 12px); }
.schedule-times { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:10px; }
.schedule-event a { text-decoration:none; border:1px solid var(--edge); }
.schedule-event .controls { margin-top:8px; }
#schedule-status:empty { display:none; }
.compact #schedule-toggle { min-height:44px; }
#owner-google-schedule { margin-top:14px; padding-top:12px; border-top:1px solid var(--edge); }
#owner-google-schedule summary { cursor:pointer; color:var(--accent); }
#owner-google-status:empty { display:none; }
.top { position:sticky; top:0; z-index:5; }
#nova-call { position:sticky; top:var(--top-height,69px); z-index:4; background:var(--panel); border-bottom:1px solid var(--accent); }
.compact #room-navigation.menu-open { top:calc(var(--top-height,61px) + 3px); z-index:6; }
:is(#call-entry,#whatsapp-call-entry) {
  position:fixed; inset:auto 0 0; z-index:4;
  border-top:1px solid var(--accent); background:var(--panel);
  padding:9px 14px max(9px, env(safe-area-inset-bottom));
}
.phone-preview :is(#call-entry,#whatsapp-call-entry) { inset-inline:max(0px,calc((100% - 390px) / 2)); }
.call-entry-inner { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-width:460px; margin:auto; }
.call-entry-inner button { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:46px; }
.call-entry-inner svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
body:has(:is(#call-entry,#whatsapp-call-entry):not([hidden])) main { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
.call-inner { max-width:1480px; margin:auto; padding:10px clamp(12px,3vw,32px); }
.call-line { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
#call-status,#call-error { margin:1px 0; font-size:13px; }
#call-error:empty,#call-remote-audio { display:none; }
#call-videos { display:flex; gap:8px; overflow:auto; }
#call-videos figure { flex:0 0 auto; margin:8px 0 0; }
#call-videos video { width:min(180px,34vw); height:min(110px,23vw); margin:0; object-fit:contain; background:#09090b; border-radius:8px; }
#call-videos figcaption { max-width:min(180px,34vw); color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.compact .call-line button { min-height:44px; padding-inline:7px; }
.compact #studio-note :is(input,textarea) { font-size:16px; }

body[data-phone-owner] { background:#171019; }
body[data-phone-owner] .top { background:#171019; }
#creator-studio-switch {
  gap:.55rem;
  margin:.85rem 0;
  flex-wrap:wrap;
}
#creator-studio-switch button[aria-current="page"] {
  border-color:var(--accent);
  color:var(--accent);
}

#whatsapp-call-entry { text-align:center; }
#whatsapp-call-entry :is(button,a):not([hidden]) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  width:min(100%, 460px);
  border:1px solid var(--gold-frame,var(--edge));
  text-decoration:none;
}
#studio-whatsapp { scroll-margin-top:calc(var(--top-height,69px) + 10px); }
