
/* OBSIDIAN GLASS themes for signed-in screens ONLY.
   The public login, signup, recovery, and consent pages remain unchanged. */
body[data-ambience="dark-glass"] .shell{
  color-scheme:dark;
  --bg:#0b0e15;--surface:#131c29;--raised:#1c2938;
  --line:rgba(199,218,240,.20);--line2:rgba(215,232,251,.44);
  --txt:#f4f0eb;--muted:#bac5d1;--gold:#d7b99a;--goldlight:#efdac0;
  --rose:#899db5;--blue:#a7baca;
  --og-glass:linear-gradient(145deg,rgba(158,185,216,.20),rgba(24,32,47,.65) 70%,rgba(11,16,26,.90));
  --og-soft:rgba(144,166,192,.10);--og-input:#0d1623da;--og-hl:rgba(255,255,255,.21);
  --og-border:rgba(220,235,255,.36);--og-shadow:rgba(0,0,0,.31);
  --og-primary:linear-gradient(115deg,#f3e7d8,#d6bba0);--og-primary-ink:#19202c;
  --og-chat:linear-gradient(150deg,#111c2b,#0b111c);
  --og-user:linear-gradient(125deg,#526781,#394e69);
  --og-ai:linear-gradient(125deg,#273649,#182538);
}
body[data-ambience="light-glass"] .shell{
  color-scheme:light;
  --bg:#e9eef3;--surface:#f4f7fbd9;--raised:#e5ebf2;
  --line:rgba(70,94,120,.25);--line2:rgba(68,95,123,.47);
  --txt:#1f2d3e;--muted:#4c5d70;--gold:#786047;--goldlight:#72573b;
  --rose:#8195a9;--blue:#748ca4;
  --og-glass:linear-gradient(145deg,rgba(255,255,255,.91),rgba(221,233,244,.79) 65%,rgba(203,217,233,.80));
  --og-soft:rgba(255,255,255,.54);--og-input:#fbfdfff0;--og-hl:rgba(255,255,255,.92);
  --og-border:rgba(88,115,145,.39);--og-shadow:rgba(49,74,100,.15);
  --og-primary:linear-gradient(120deg,#30445c,#1e3044);--og-primary-ink:#fffaf2;
  --og-chat:linear-gradient(150deg,#f5f8fc,#e8eef6);
  --og-user:linear-gradient(125deg,#344b65,#4e6680);
  --og-ai:linear-gradient(130deg,#ffffff,#dce7f2);
}
body[data-ambience="dark-glass"]:has(.shell){
  background:radial-gradient(ellipse 55% 54% at 7% 9%,#40587555,transparent 74%),radial-gradient(ellipse 50% 50% at 96% 80%,#775a6640,transparent 76%),#090d14;
  color:#f4f0eb;
}
body[data-ambience="light-glass"]:has(.shell){
  background:radial-gradient(ellipse 62% 60% at 6% 6%,#b0c2d6ab,transparent 70%),radial-gradient(ellipse 45% 65% at 93% 85%,#dbcabfac,transparent 78%),#e9eef3;
  color:#1f2d3e;
}
body[data-ambience="light-glass"]:has(.shell):before{opacity:.04;background:repeating-linear-gradient(0deg,transparent 0 7px,#445c70 7px 8px)}
body[data-ambience="dark-glass"]:has(.shell):before{opacity:.11}
body[data-ambience="dark-glass"] .shell,
body[data-ambience="light-glass"] .shell{color:var(--txt)}
body[data-ambience="dark-glass"] .shell :is(.muted,.hint,.minor),
body[data-ambience="light-glass"] .shell :is(.muted,.hint,.minor){color:var(--muted)}
body[data-ambience="dark-glass"] .shell :is(.card,.panel,.empty,.preview,.info-value,.lower,.cs-workspace),
body[data-ambience="light-glass"] .shell :is(.card,.panel,.empty,.preview,.info-value,.lower,.cs-workspace){
  background:var(--og-glass);
  border:1px solid var(--og-border);
  color:var(--txt);
  box-shadow:inset 0 1px 0 var(--og-hl),0 17px 50px var(--og-shadow);
  -webkit-backdrop-filter:blur(15px) saturate(120%);
  backdrop-filter:blur(15px) saturate(120%);
}
body[data-ambience="dark-glass"] .shell .hero{
  background:radial-gradient(ellipse at 87% 28%,#b9d0e12b,transparent 55%),linear-gradient(125deg,#263446,#141d2b 56%,#0f1520);
  border-color:var(--og-border);box-shadow:inset 0 1px #ffffff20,0 25px 62px #0006;
}
body[data-ambience="light-glass"] .shell .hero{
  background:radial-gradient(ellipse at 85% 28%,#fffaf5db,transparent 59%),linear-gradient(120deg,#d2dfeb,#ecf1f7 64%,#d8e3ed);
  border:1px solid var(--og-border);
  box-shadow:inset 0 1px #ffffffc9,0 23px 55px #415a7430;
}
body[data-ambience="dark-glass"] .shell .hero p{color:#d1dbe5}
body[data-ambience="light-glass"] .shell .hero p{color:#47596d}
body[data-ambience="dark-glass"] .shell .hero:before{border-color:#f0f5ff1c}
body[data-ambience="light-glass"] .shell .hero:before{border-color:#ffffffbd}
body[data-ambience="light-glass"] .shell .hero:after{color:#647f9822}
body[data-ambience="dark-glass"] .shell .card:before{border-color:#e9f5ff25}
body[data-ambience="light-glass"] .shell .card:before{border-color:#ffffffa1}
body[data-ambience="dark-glass"] .shell .card:hover,
body[data-ambience="light-glass"] .shell .card:hover{border-color:var(--line2);box-shadow:inset 0 1px var(--og-hl),0 22px 60px var(--og-shadow)}
body[data-ambience="dark-glass"] .shell :is(.card p,.lower p,.preview p),
body[data-ambience="light-glass"] .shell :is(.card p,.lower p,.preview p){color:var(--muted)}
body[data-ambience="dark-glass"] .shell :is(.top,.footer,.card .actions,.editor-bottom),
body[data-ambience="light-glass"] .shell :is(.top,.footer,.card .actions,.editor-bottom){border-color:var(--line)}
body[data-ambience="dark-glass"] .shell :is(.quiet,.small,.tab,.seg button,.cs-thread-tool,.cs-mini-action,.cs-story-recap-btn),
body[data-ambience="light-glass"] .shell :is(.quiet,.small,.tab,.seg button,.cs-thread-tool,.cs-mini-action,.cs-story-recap-btn){
  background:var(--og-soft);border:1px solid var(--line);color:var(--txt)
}
body[data-ambience="dark-glass"] .shell :is(.quiet,.small,.tab,.cs-thread-tool,.cs-mini-action,.cs-story-recap-btn):hover,
body[data-ambience="light-glass"] .shell :is(.quiet,.small,.tab,.cs-thread-tool,.cs-mini-action,.cs-story-recap-btn):hover{border-color:var(--line2);background:var(--raised)}
body[data-ambience="dark-glass"] .shell :is(.btn,.tab.active,.seg button.selected),
body[data-ambience="light-glass"] .shell :is(.btn,.tab.active,.seg button.selected){
  background:var(--og-primary);color:var(--og-primary-ink);border:1px solid var(--line2);box-shadow:inset 0 1px #ffffff42,0 8px 24px var(--og-shadow)
}
body[data-ambience="dark-glass"] .shell .btn.secondary,
body[data-ambience="light-glass"] .shell .btn.secondary{
 background:var(--og-soft);color:var(--txt);border:1px solid var(--line2);box-shadow:none
}
body[data-ambience="dark-glass"] .shell .seg,
body[data-ambience="light-glass"] .shell .seg{background:var(--og-soft);border-color:var(--line)}
body[data-ambience="dark-glass"] .shell :is(input,textarea,select),
body[data-ambience="light-glass"] .shell :is(input,textarea,select){
 background:var(--og-input);color:var(--txt);border:1px solid var(--line2);box-shadow:inset 0 1px var(--og-hl)
}
body[data-ambience="light-glass"] .shell :is(input,textarea,select)::placeholder{color:#657489}
body[data-ambience="dark-glass"] .shell :is(input,textarea,select)::placeholder{color:#aebbd0}
body[data-ambience="dark-glass"] .shell :is(.checkgrid .check,.slider-field,.cs-thread,.cs-note),
body[data-ambience="light-glass"] .shell :is(.checkgrid .check,.slider-field,.cs-thread,.cs-note){
 background:var(--og-soft);color:var(--txt);border-color:var(--line)
}
body[data-ambience="dark-glass"] .shell .checkgrid .check:has(input:checked),
body[data-ambience="light-glass"] .shell .checkgrid .check:has(input:checked){background:var(--raised);border-color:var(--line2)}
body[data-ambience="dark-glass"] .shell .avatar:not(:has(img)),
body[data-ambience="light-glass"] .shell .avatar:not(:has(img)){background:radial-gradient(circle at 24% 18%,#e8f0f8,#8b9eaf 50%,#36485d);color:#152133}
body[data-ambience="light-glass"] .shell .avatar:not(:has(img)){background:radial-gradient(circle at 25% 17%,#fff,#bccddb 52%,#829ab0)}
body[data-ambience="dark-glass"] .shell .cs-workspace,
body[data-ambience="light-glass"] .shell .cs-workspace{overflow:hidden}
body[data-ambience="dark-glass"] .shell .cs-side,
body[data-ambience="light-glass"] .shell .cs-side{
 background:linear-gradient(145deg,var(--og-soft),var(--surface));border-color:var(--line)
}
body[data-ambience="dark-glass"] .shell :is(.cs-chat,.cs-messages),
body[data-ambience="light-glass"] .shell :is(.cs-chat,.cs-messages){background:var(--og-chat)}
body[data-ambience="dark-glass"] .shell :is(.cs-header,.cs-composer,.cs-story-recap),
body[data-ambience="light-glass"] .shell :is(.cs-header,.cs-composer,.cs-story-recap){
 background:var(--og-glass);border-color:var(--line)
}
body[data-ambience="dark-glass"] .shell .cs-bubble.from-user,
body[data-ambience="light-glass"] .shell .cs-bubble.from-user{background:var(--og-user);border-color:#bed2e75e;color:#fff}
body[data-ambience="dark-glass"] .shell .cs-bubble.from-ai{background:var(--og-ai);border-color:var(--line2);color:#f1f4fa}
body[data-ambience="light-glass"] .shell .cs-bubble.from-ai{background:var(--og-ai);border-color:var(--line2);color:#233247}
body[data-ambience="dark-glass"] .shell .cs-bubble.from-user small,
body[data-ambience="light-glass"] .shell .cs-bubble.from-user small{color:#f4dfc2}
body[data-ambience="light-glass"] .shell .cs-bubble.from-ai small{color:#65503e}
body[data-ambience="light-glass"] .shell .cs-thread.active{background:rgba(112,143,172,.19);border-color:var(--line2)}
body[data-ambience="light-glass"] .shell .cs-note strong{color:#665039}
body[data-ambience="light-glass"] .shell .cs-badge{background:#ffffffb8;color:#4f5e6f}
body[data-ambience="light-glass"] .shell .cs-bubble.from-user .cs-mini-action{color:#fff;border-color:#f0f5ff6a}
body[data-ambience="dark-glass"] .shell .ambience-toggle,
body[data-ambience="light-glass"] .shell .ambience-toggle{min-height:40px;display:inline-flex;gap:9px;align-items:center}
body[data-ambience="dark-glass"] .shell .ambience-toggle .mood-icon,
body[data-ambience="light-glass"] .shell .ambience-toggle .mood-icon{font-size:17px}
body[data-ambience="light-glass"] .shell :is(.privacy-warning,.footer,.account-card){color:var(--muted)}
body[data-ambience="light-glass"] .shell .privacy-actions .danger-action{background:#fff1f1;color:#873d49;border-color:#a95b64}
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
 body[data-ambience="dark-glass"] .shell :is(.card,.panel,.empty,.preview,.info-value,.lower,.cs-workspace){background:#1b2737}
 body[data-ambience="light-glass"] .shell :is(.card,.panel,.empty,.preview,.info-value,.lower,.cs-workspace){background:#edf3f8}
}
@media(max-width:720px){
 body[data-ambience="dark-glass"] .shell :is(.card,.panel,.cs-workspace),
 body[data-ambience="light-glass"] .shell :is(.card,.panel,.cs-workspace){
  -webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)
 }
 body[data-ambience="dark-glass"] .shell .editor-bottom,
 body[data-ambience="light-glass"] .shell .editor-bottom{background:var(--surface)}
}
@media(prefers-reduced-motion:reduce){
 body[data-ambience="dark-glass"] .shell *,body[data-ambience="light-glass"] .shell *{transition:none!important}
}
