/* Companion Studio — Grand Header v1
 * Visual-only authenticated header refinement. Static gradients, no timers or network requests.
 * Preserve all existing member controls and page navigation.
 */
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header{
  position:relative;isolation:isolate;overflow:hidden;
  display:grid!important;grid-template-columns:minmax(0,1fr);align-items:stretch;
  gap:12px!important;min-height:0;margin:0 0 18px!important;
  padding:19px 23px 17px!important;
  border:1px solid rgba(193,141,244,.42)!important;border-radius:23px!important;
  background:
    radial-gradient(ellipse 40% 150% at 98% -34%,rgba(186,106,231,.23),transparent 77%),
    radial-gradient(ellipse 34% 95% at -10% 115%,rgba(104,72,193,.19),transparent 76%),
    linear-gradient(125deg,#28172f 0%,#1b1228 52%,#140f20 100%)!important;
  box-shadow:inset 0 1px rgba(255,229,255,.19),0 17px 50px rgba(3,0,13,.27)!important;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header::before{
  content:"";position:absolute;width:380px;height:380px;right:-155px;top:-256px;
  border-radius:50%;pointer-events:none;z-index:0;opacity:.52;
  background:repeating-radial-gradient(circle,transparent 0 29px,rgba(229,193,255,.17) 30px 31px,transparent 32px 57px);
}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header::after{
  content:"";position:absolute;bottom:0;left:23px;width:min(53%,520px);height:1px;
  pointer-events:none;z-index:1;background:linear-gradient(90deg,#e5b4ffbb,#8f5dd449,transparent);
}
.cs-grand-header .cs-header-headline,.cs-grand-header .header-actions{position:relative;z-index:1;min-width:0;}
.cs-grand-header .cs-header-headline{
  display:flex;align-items:center;gap:15px;
  border-bottom:1px solid rgba(209,174,250,.17);padding:0 0 14px;min-height:62px;
}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand{
  display:flex;align-items:center;gap:13px;flex:1 1 auto;min-width:0;
  font-size:clamp(23px,2.4vw,32px)!important;line-height:1.06;
  letter-spacing:-.045em;color:#fff4ff;
}
.cs-grand-header .cs-brand-emblem{
  display:grid;place-items:center;flex:0 0 49px;width:49px;height:49px;
  border-radius:16px;color:#f9e8ff;font:normal 30px/1 Georgia,serif;
  background:radial-gradient(circle at 28% 18%,#f1c2ff80,transparent 53%),linear-gradient(137deg,#9461c8,#4b2868 74%);
  border:1px solid #eac2ff8c;
  box-shadow:0 0 27px #b35ff048,inset 0 1px #ffe1ff88,0 8px 17px #0003;
  text-shadow:0 0 12px #fff6;
}
.cs-grand-header .cs-brand-wordmark{display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:6px 12px;}
.cs-grand-header .cs-brand-wordmark .brand-name{
  display:inline-block;font:normal 1em/1.06 Georgia,"Times New Roman",serif;
  white-space:normal;text-wrap:balance;letter-spacing:-.05em;
}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand .beta{
  display:inline-flex!important;border:1px solid #d3a4ff6b;
  color:#f0d3ff;background:#a566d72d;border-radius:999px;
  font:750 9px/1.1 ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.18em;padding:6px 10px;margin:0;
}
.cs-grand-header .cs-header-subline{
  display:block;flex-basis:100%;font:650 10px/1.3 ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.115em;color:#c8b2d7;text-transform:uppercase;
}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .header-actions{
  width:100%;display:flex!important;justify-content:space-between!important;
  align-items:center!important;gap:10px 18px!important;flex-wrap:wrap!important;
  margin:0!important;padding:0!important;
}
.cs-grand-header .cs-header-metrics,.cs-grand-header .cs-header-tools{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;
}
.cs-grand-header .cs-header-tools{justify-content:flex-end;margin-left:auto;}
.cs-grand-header .cs-header-metrics .cs-member-wallet,
.cs-grand-header .cs-header-metrics .cs-streak-badge{
  display:inline-flex;min-height:37px;align-items:center;justify-content:center;
  border-radius:12px;padding:8px 12px;
  background:linear-gradient(130deg,rgba(101,60,133,.34),rgba(35,22,55,.26));
  border:1px solid rgba(198,151,242,.32);
  box-shadow:inset 0 1px rgba(255,255,255,.09);
  white-space:nowrap;
}
.cs-grand-header .cs-header-metrics .cs-member-wallet{color:#ffe2ad;font-size:13px;}
.cs-grand-header .cs-header-metrics .cs-streak-badge{font-size:12px;}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .quiet,
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .ambience-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:36px;padding:8px 11px;
  color:#e8d9f6;border:1px solid #d3a7f42b;border-radius:11px;
  background:rgba(255,255,255,.045);font-size:12px;line-height:1.2;white-space:nowrap;
}
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .quiet:hover,
.shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .ambience-toggle:hover{
  color:#fff8ff;background:rgba(174,103,231,.17);border-color:#d2a2f687;
}
.cs-grand-header .cs-header-tools #my-account{background:#a063cd24;border-color:#a875d362;color:#f4ddff;}
.cs-grand-header .cs-header-tools #signout{color:#beaecf;background:transparent;border-color:transparent;}
.cs-grand-header .cs-header-tools #signout:hover{color:#f7ddf7;border-color:#d3a7f42b;}
.cs-grand-header .cs-header-tools #help-report{width:36px;padding-inline:0;}
.cs-grand-header .cs-cin-menu-toggle{border-radius:12px;border:1px solid #c7a3eb62;background:#a374d925;color:#f4e6ff;min-height:41px;align-items:center;gap:9px;}
.cs-grand-header .cs-cin-menu-toggle:hover{background:#9e64c84a;}
body[data-ambience="light-glass"] .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header{
  color:#332246;border-color:#9471c466!important;
  background:radial-gradient(ellipse 42% 170% at 98% -45%,#b59ad450,transparent 70%),linear-gradient(120deg,#fcf9ff,#ede4f7 100%)!important;
  box-shadow:inset 0 1px #fff,0 14px 40px #47315918!important;
}
body[data-ambience="light-glass"] .cs-grand-header .cs-header-headline{border-color:#946bbc35;}
body[data-ambience="light-glass"] .cs-grand-header .cs-header-subline{color:#675477;}
body[data-ambience="light-glass"] .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand{color:#342343;}
body[data-ambience="light-glass"] .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand .beta{color:#6e428c;background:#bc94d42b;border-color:#b189cc74;}
body[data-ambience="light-glass"] .cs-grand-header .cs-header-metrics .cs-member-wallet,
body[data-ambience="light-glass"] .cs-grand-header .cs-header-metrics .cs-streak-badge{background:#f3eafb;border-color:#d6bae6;color:#65416f;}
body[data-ambience="light-glass"] .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .quiet,
body[data-ambience="light-glass"] .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .ambience-toggle{background:#ffffff93;color:#594269;border-color:#b99bd35c;}
body[data-ambience="light-glass"] .cs-grand-header .cs-header-tools #my-account{background:#e9d9f6;border-color:#bd9bd8;color:#4c236e;}
body[data-ambience="light-glass"] .cs-grand-header .cs-header-tools #signout{background:transparent;border-color:transparent;color:#71627c;}
@media(max-width:1250px){
  .cs-grand-header .cs-header-tools{margin-left:0;}
}
@media(max-width:1100px){
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header{padding:16px 18px!important;}
  .cs-grand-header .cs-header-headline{gap:12px;}
  .cs-grand-header .cs-cin-menu-toggle{display:inline-flex;}
}
@media(max-width:650px){
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header{padding:14px 14px 13px!important;gap:11px!important;margin-bottom:14px!important;border-radius:19px!important;}
  .cs-grand-header .cs-header-headline{padding-bottom:12px;min-height:0;}
  .cs-grand-header .cs-brand-emblem{flex-basis:39px;width:39px;height:39px;border-radius:12px;font-size:25px;}
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand{font-size:clamp(20px,5.1vw,26px)!important;gap:10px;}
  .cs-grand-header .cs-brand-wordmark{gap:5px 8px;}
  .cs-grand-header .cs-header-subline{font-size:9px;letter-spacing:.06em;}
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .header-actions{display:flex!important;align-items:flex-start!important;gap:9px!important;}
  .cs-grand-header .cs-header-metrics,.cs-grand-header .cs-header-tools{width:100%;justify-content:flex-start;gap:7px;margin-left:0;}
  .cs-grand-header .cs-header-metrics .cs-member-wallet,.cs-grand-header .cs-header-metrics .cs-streak-badge{width:auto;min-height:34px;padding:7px 9px;font-size:11px;}
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .quiet,
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .cs-header-tools .ambience-toggle{width:auto;min-height:33px;padding:7px 9px;font-size:11px;}
  .cs-grand-header .cs-header-tools #help-report{display:inline-flex!important;width:32px;}
}
@media(max-width:440px){
  .cs-grand-header .cs-header-headline{flex-wrap:wrap;}
  .cs-grand-header .cs-header-subline{display:none;}
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand{font-size:20px!important;}
  .shell.cs-cinematic-shell .cs-cinematic-main > .top.cs-grand-header .brand .beta{font-size:8px;padding:5px 8px;}
  .cs-grand-header .cs-header-tools .ambience-name{display:none;}
}
@media(prefers-reduced-motion:reduce){
  .cs-grand-header *{transition-duration:.01ms!important;}
}