/* B MUSIC typography and palette, shared across B SANTI. */
@font-face { font-family: 'Empire Halo'; src: url('/EmpireHalo-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Empire Halo'; src: url('/EmpireHalo-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Empire Halo'; src: url('/EmpireHalo-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --brand-page: #f4f6f9;
  --brand-white: #fff;
  --brand-ink: #172b43;
  --brand-muted: #465b72;
  --brand-line: #dbe4ee;
  --brand-blue: #135fae;
  --brand-blue-hover: #0c4d92;
  --brand-pale: #e8f1fd;
  --brand-gold: #f0d18a;
  --brand-banner: radial-gradient(ellipse at 83% 22%, #385580 0%, transparent 66%), linear-gradient(142deg, #172b43, #1b3554 65%, #182b46);
  --brand-font: 'Empire Halo', system-ui, sans-serif;
  font-family: var(--brand-font);
  color: var(--brand-ink);
  background: var(--brand-page);
}
#main:focus, #workspace:focus { outline: 0; }
:where(button,a,select,input,textarea,summary,[role=button]):focus-visible {
  outline: 3px solid #2674ca;
  outline-offset: 3px;
}
html:has(.auth-layout) :where(.intro a,.intro button,.intro select):focus-visible {outline-color:var(--brand-gold)}
.auth-layout .intro, .shell .hero, #desk .headwrap { background: var(--brand-banner); color: #fff; }
.auth-layout { gap: clamp(1rem, 4vw, 5rem); max-width: 112rem; margin-inline: auto; }
.auth-layout .intro {
  border-radius: 1.65rem;
  box-shadow: 0 16px 35px #182c4327;
}
.auth-layout .orb i { border-color: #a5bce95e; }
.auth-layout .eyebrow span { background: var(--brand-gold); }
.auth-layout .intro h1 em {color: var(--brand-gold)}
.auth-layout .intro .lead { color: #ecf2fb; }
.auth-layout .emblem img { filter: drop-shadow(0 14px 22px #0b182f78); }
.auth-layout .card {
  width: min(100%, 30rem);
  max-width: none;
  padding: clamp(1.15rem,4vw,3.25rem);
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: 1.55rem;
  box-shadow: 0 12px 35px #2039580d;
}
.auth-layout .key-mark { background:var(--brand-pale); color:var(--brand-blue) }
.auth-layout :is(.hint,.eye,.field label) { color:var(--brand-muted) }
.auth-layout input {border-color:#c7d4e4;color:var(--brand-ink);background:#fafcff}
.auth-layout input:focus {border-color:var(--brand-blue)}
.auth-layout input:read-only {background:#eef3f8;color:var(--brand-muted)}
.auth-layout .switch {color:var(--brand-blue)}
.auth-layout .quiet { border:1px solid #d1e3ff68; color:#f2f6ff; background:#10223440; padding-inline:.7rem; }
.auth-controls { display:flex; gap:.5rem; align-items:center; justify-content:flex-end; flex-wrap:wrap }
.auth-layout .mast {gap:.5rem}
:is(.auth-layout,.shell,#locked,#desk,dialog) .primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 3px 10px #1a52932b;
}
:is(.auth-layout,.shell,#locked,#desk,dialog) .primary:hover {background:var(--brand-blue-hover)}
body:has(.shell), body:has(#desk) {
  --teal:var(--brand-blue);--border:var(--brand-line);--ink:var(--brand-ink);--muted:var(--brand-muted);
  --paper:var(--brand-page);--gold:var(--brand-gold);--mute:var(--brand-muted);--line:var(--brand-line);
  background:var(--brand-page);color:var(--brand-ink)
}
body:has(.shell) #sidebar {
  inset-inline-start:0;inset-inline-end:auto;
  background:#fff;color:var(--brand-ink);border-inline-end:1px solid var(--brand-line);
}
body:has(.shell) .shell {margin-left:0;margin-inline-start:235px}
#sidebar .brand small {color:var(--brand-muted)}
#sidebar .navbtn,#sidebar .profile {color:var(--brand-ink);text-align:start}
#sidebar .profile {border-color:var(--brand-line)}
#sidebar .navbtn[aria-current=page], #mobile button[aria-current=page] {
  background:var(--brand-pale); color:#0a539e; font-weight:700;
}
#sidebar :is(.navbtn,.profile):hover {background:#eef4fa}
.shell > header {background:#fff;box-shadow:0 2px 8px #20395807}
.shell main {max-width:86rem}
.shell .hero { min-height:clamp(9rem,15vw,13.2rem);border-radius:1.35rem;box-shadow:0 10px 25px #112b491c }
.shell .hero::after {opacity:.37;background:repeating-radial-gradient(ellipse at center, transparent 0 21px,#a8bfe6 22px 23px,transparent 24px 39px)}
.shell .hero .meta { color:#edf3fc }
.shell .hero .light {background:var(--brand-gold);color:#20252d}
.shell :is(.stat,.panel) {border-color:var(--brand-line);box-shadow:0 3px 12px #20395807}
.shell :is(.stat,.panel):is(:hover,:focus-within) {border-color:#c4d4e6}
.shell :is(.outline,.iconbtn), dialog :is(.outline,.iconbtn) {border-color:#c4d4e6;color:#234b73}
.shell .textbtn {color:var(--brand-blue)}
.shell :is(.symbol,.avatar),#sidebar .avatar {background:#e5eef9;color:#215d99}
.shell .tools {margin-bottom:1rem}
.shell .tools .outline {background:#fff}
#locked {background:var(--brand-banner)}
#locked .lockbox, #desk :is(.panel,.metric,.content) {border-color:var(--brand-line)}
#desk > header { background:var(--brand-banner); color:white; }
#desk > header :is(.brand,.brand small) {color:#f3f6ff}
#desk [aria-current=page] {background:var(--brand-pale); color:var(--brand-blue-hover)}
[data-language-menu] select {color:var(--brand-ink);border-color:var(--brand-line)}
:root[dir=rtl] :is(input[type=email],input[type=password],input[autocomplete=one-time-code]) {direction:ltr}
:root[dir=rtl] .auth-layout .pass input {padding-inline-end: .8rem;padding-inline-start:3.1rem}
:root[dir=rtl] .auth-layout .eye {right:auto;left:0}
:root[dir=rtl] .admin-language {right:auto;left:.75rem}
.install-help {max-width:min(calc(100vw - 2rem),29rem);background:white;border:1px solid var(--brand-line);border-radius:1.1rem;padding:1.35rem;color:var(--brand-ink)}
.install-help::backdrop {background:#142a47a8}
.install-help h2 {margin:0 0 .7rem;font-size:1.3rem}
.install-help p {margin:.65rem 0;line-height:1.55}
.install-help button {margin-top:.65rem;min-height:44px;padding:.55rem 1rem;border:1px solid var(--brand-line);border-radius:.55rem;color:var(--brand-ink);background:white}
@media(max-width:760px) {
  body:has(.shell) .shell {margin:0}
  .auth-layout .intro {border-radius:1.2rem}
  .auth-layout .card {border-radius:1.15rem;margin-top:.95rem;padding:1.15rem}
  .auth-controls {gap:.35rem}
  .auth-layout .quiet {font-size:.75rem;line-height:1.25;min-height:42px}
  .shell > header { flex-wrap:wrap; justify-content:space-between }
  #switches {flex:1 1 100%}
  #switches select {max-width:calc(50vw - 22px);min-height:38px}
}
@media print {
  body:has(.shell){background:#fff}
  .shell .panel{box-shadow:none}
}

.app-utilities {display:flex;align-items:center;gap:.45rem}
.app-utilities [data-install] {padding-inline:.65rem; line-height:1.15}
@media(max-width:480px) {
 .app-utilities {max-width:67%;gap:.35rem}
 .app-utilities [data-install] {padding-inline:.4rem;font-size:.76rem;overflow-wrap:anywhere}
}
