/* Refractive frames use a separate highlight so artwork and text stay sharp. */
@layer glass {
  body:not(.window-style-classic-v919) {
    --ui: "Segoe UI", "DM Sans", Arial, sans-serif;
    --glass-ink: #f5fcff;
    --glass-muted: #d6edfb;
    --deep: color-mix(in srgb, var(--accent) 26%, #03182e);
    --ocean: color-mix(in srgb, var(--accent) 48%, #123952);
    --rim: var(--line) solid color-mix(in srgb, var(--edge) 68%, #75cbeb);
    --gleam: inset 0 1px 1px #fff9, inset 2px 0 4px #d4ffff48, inset -2px -2px 5px #58d8ff65, 0 3px 10px #00192e65;
    --surface: linear-gradient(148deg, #c4f1ff42 0%, transparent 13%, transparent 74%, #a9eaff26 91%, transparent),
      linear-gradient(163deg, rgb(76 154 192 / .77), transparent 24%), linear-gradient(125deg,
      color-mix(in srgb, var(--ocean) calc(63% + var(--aero-app-alpha,.45)*32%), transparent),
      color-mix(in srgb, var(--deep) calc(69% + var(--aero-app-alpha,.45)*30%), transparent));
    --chrome: linear-gradient(178deg, #ccf3ff50, transparent 30%), linear-gradient(180deg, var(--ocean), var(--deep) 54%, #164b6a 93%, #64c9ea);
    --key: linear-gradient(180deg, #87bcd5 0%, #3c718e 8%, #205470 48%, #113e5b 51%, #236381 100%);
    --active: linear-gradient(177deg, #b4ffff8c, transparent 35%), linear-gradient(180deg, #48b4db, #19779d 43%, #0b527e 51%, #147e9e 90%, #58ddf0);
    --dialog: linear-gradient(137deg, #245778f5, #0b293ff5 45%, #0e3650f7);
    --dialog-field: #0a2a40;
    --lit-copy: 0 1px 2px #001728;
    --landscape-wash: linear-gradient(180deg,#00132705,#00132718);
    --heading-back: #062841aa;
    --soft-text: #173d53;
  }
  [data-scheme=light] body:not(.window-style-classic-v919) {
    --glass-ink: #082c46; --glass-muted: #21465e; --lit-copy: none;
    --surface: linear-gradient(146deg, #fff9, transparent 20%, #fff2 72%, #e5ffff77), linear-gradient(135deg, #d7f4fff2, #a9d9eef0 48%, #a9d4e6df);
    --chrome: linear-gradient(176deg,#fff9,transparent 38%),linear-gradient(#d2f4ff,#b9dff2 48%,#a4cfe4 52%,#d8f8ff);
    --key: linear-gradient(#f1fbff,#cde9f6 47%,#afd6ed 51%,#d7f5fa);
    --dialog: linear-gradient(145deg,#def6fff7,#c1e0effa); --dialog-field: #f4fbff;
    --landscape-wash: linear-gradient(160deg,#9ddaff66,#6db1d52e 63%,transparent);
  }
  body.theme-aero:not(.window-style-classic-v919) .app {
    background: var(--landscape-wash), #082644 url("/assets/aero/baia-noturna.webp") center center / cover no-repeat !important;
  }
  body:is(.theme-custom,.theme-video,.theme-sky,.theme-green):not(.window-style-classic-v919) .app {
    background: var(--landscape-wash) !important;
  }

  body:not(.window-style-classic-v919) {
    & :is(.aero-top,.aero-bottom,.appearance-panel-head,.wink-panel-head,.chat-head) {
      background:var(--chrome)!important; color:var(--glass-ink)!important;
      border-color:var(--edge)!important;box-shadow:inset 0 1px #edffff88,inset 0 -1px 1px #93eaffb0,0 2px 8px #00152966!important;
    }
    & .aero-brand span {color:var(--glass-ink)!important;text-shadow:var(--lit-copy)!important}
    & .aero-brand i {color:color-mix(in srgb,var(--accent) 35%,#9df4ff)!important}
    & :is(.aero-card,.aero-rail,.aero-news,.aero-feed>.aero-empty,.koshi-dash-panel-v91441,.koshi-library-hero-v91640,.koshi-club-side-card-v91620) {
      background:var(--surface)!important;color:var(--glass-ink)!important;border:var(--rim)!important;
      border-radius:var(--radius)!important;box-shadow:var(--gleam)!important;backdrop-filter:blur(6px)!important;
    }
    & .aero-rail {margin:16px 3px 16px 7px!important;padding:20px 13px 15px!important;border-radius:calc(var(--radius)*1.4)!important}
    & .aero-nav-group button {min-height:38px!important;color:var(--glass-ink)!important;font-size:14px!important;font-weight:650!important;text-shadow:var(--lit-copy)!important}
    & .aero-nav-group h2 {color:var(--glass-muted)!important;letter-spacing:.16em!important;font-size:10.5px!important}
    & :is(.aero-nav-group .ki,.aero-card-head h2 .ki,.aero-icon,.aero-social-row>.ki,.aero-search .ki) {color:var(--glass-ink)!important}
    & :is(.aero-nav-group button.is-active,.aero-filter button[aria-pressed=true],.aero-bottom button.is-active .ki) {
      background:var(--active)!important;color:white!important;border:var(--rim)!important;
      box-shadow:inset 0 1px 2px #e3ffffbd,inset 0 -2px 4px #77efff8c,0 0 8px #2bcfff44!important;text-shadow:0 1px 2px #02334f!important;
    }
    & .aero-nav-group button.is-active .ki{color:white!important}
    & :is(.aero-nav-group button:hover:not(.is-active),.aero-social-row:hover,.aero-dropdown button:hover){background:var(--key)!important}
    & :is(.aero-search,.aero-account,.aero-top-actions>.aero-icon,.aero-quick button,.aero-search kbd,.aero-text-button) {
      background:var(--key)!important;color:var(--glass-ink)!important;border:var(--rim)!important;
      box-shadow:var(--gleam)!important;
    }
    & .aero-search {border-radius:14px!important}
    & .aero-search input {color:var(--glass-ink)!important}
    & .aero-search input::placeholder{color:var(--glass-muted)!important;opacity:1}
    & .aero-account {padding:4px 9px 4px 4px!important}
    & :is(.aero-account-copy small,.aero-search kbd){color:var(--glass-muted)!important}
    & .aero-mural{padding:clamp(16px,1.7vw,28px) clamp(12px,2.7vw,45px)!important}
    & .aero-hero {min-height:clamp(165px,13vw,222px)!important;border:var(--rim)!important;border-radius:calc(var(--radius)*1.65)!important;box-shadow:0 4px 17px #001c3899!important}
    & .aero-hero::before {background:linear-gradient(90deg,#053154ee 0%,#045179d9 25%,#02537f8f 44%,transparent 65%)!important}
    & :is(.aero-hero,.aero-shortcut)::after {
      content:""!important;position:absolute!important;inset:0!important;border-radius:inherit!important;pointer-events:none!important;
      background:linear-gradient(157deg, #fff7 0%,#fff0 9%,transparent 84%,#b6f5ff30 94%,transparent)!important;
      box-shadow:inset 0 2px 2px #faffffdf,inset 3px 0 4px #d3ffffb8,inset -2px -3px 4px #85edffad!important;
    }
    & .aero-hero-copy {padding-inline:clamp(25px,4vw,64px)!important}
    & .aero-hero-copy :is(h1,p,time) {color:white!important;text-shadow:0 1px 3px #032a48!important}
    & .aero-hero-copy h1 {font-size:clamp(37px,3.65vw,60px)!important;font-style:italic!important;font-weight:780!important;letter-spacing:-.045em!important}
    & .aero-hero-copy p {font-weight:600!important}
    & .aero-mural-columns {margin-top:20px!important;gap:clamp(14px,1.4vw,25px)!important}
    & .aero-section-title h2 {color:white!important;font-size:clamp(18px,1.45vw,23px)!important;font-weight:650!important;font-style:italic!important;letter-spacing:-.025em!important;text-shadow:0 1px 4px #001628,0 0 9px #01233f!important}
    & .aero-card {padding:13px 16px!important}
    & :is(.aero-card-head h2,.aero-social-row b,.aero-news header b,.aero-news li,.koshi-dash-panel-v91441>header h2,.koshi-library-hero-v91640 h2){color:var(--glass-ink)!important;text-shadow:var(--lit-copy)!important}
    & :is(.aero-card .aero-empty,.aero-social-row small,.aero-news header small,.aero-count,.aero-news li b,.aero-empty>button,.aero-card-head .ki){color:var(--glass-muted)!important}
    & .aero-count {background:var(--dialog-field)!important}
    & .aero-social-row+.aero-social-row{border-top:1px solid #b3e7fe47!important}
    & .aero-shortcuts{gap:clamp(7px,1vw,15px)!important}
    & .aero-shortcut{border:var(--rim)!important;border-radius:var(--radius)!important;box-shadow:var(--gleam)!important}
    & .aero-shortcut img {height:clamp(118px,10vw,176px)!important}
    & .aero-shortcut>span {
      position:relative!important;margin-top:-52px!important;min-height:52px!important;padding:7px 16px!important;
      background:linear-gradient(165deg,#f5ffffec,#c3e8f3e8 46%,#a8d4ecdf)!important;backdrop-filter:blur(5px)!important;
      border-top:1px solid #f8ffff!important;border-radius:10px 10px 0 0!important;
    }
    & .aero-shortcut b{color:#052b46!important;font-size:clamp(14px,1.15vw,19px)!important;text-shadow:none!important}
    & .aero-shortcut small{color:#153c51!important;font-size:12px!important;text-shadow:none!important}
    & .aero-filter {display:inline-flex!important;max-width:100%!important;background:#082d48ea!important;border:1px solid #81c9e5a6!important;border-radius:20px!important;box-shadow:inset 0 1px 2px #d1ffff70!important;gap:0!important}
    & .aero-filter button{color:white!important}
    & .aero-text-button{padding:5px 10px!important;border-radius:18px!important}
    & .aero-feed .mural-ad-v9140 {background:linear-gradient(155deg,#e2f6fff2,#b9dcebe8 58%,#a7cddfe8)!important;border:var(--rim)!important;box-shadow:var(--gleam)!important;backdrop-filter:blur(5px)!important}
    & .aero-feed .mural-ad-v9140 :is(h3,b,p,small,.mural-ad-foot-v9140){color:#10364f!important;text-shadow:none!important}
    & .aero-feed .mural-ad-media-v9140{width:calc(100% - 24px)!important;align-self:center!important;border-radius:calc(var(--radius)*.9)!important;border:1px solid #dfedff!important;background:#0d2b49!important}
    & :is(#appearancePanel,#winkPanel,.privacy-window-v914,.aero-dropdown,#koshiMoreDrawerV91441,.account-security-window,.koshi-global-search-results-v91440) {
      color:var(--glass-ink)!important;background:var(--dialog)!important;border:var(--rim)!important;
      backdrop-filter:blur(16px)!important;box-shadow:var(--gleam),0 8px 30px #00132266!important;
    }
    & :is(.appearance-section,.aero-preferences,.appearance-video-local-v9180){background:var(--dialog-field)!important;color:var(--glass-ink)!important;border:var(--rim)!important}
    & :is(#appearancePanel,#winkPanel,.privacy-window-v914) :is(h2,h3,b,label,output,.appearance-section-title,.appearance-transparency-head,.panel-title-aero){color:var(--glass-ink)!important;text-shadow:none!important}
    & :is(#appearancePanel,#winkPanel,.privacy-window-v914) :is(small,.appearance-window-hint-v919,.appearance-video-status-v9180,.appearance-transparency-scale,.appearance-video-local-head-v9180){color:var(--glass-muted)!important;opacity:1!important;text-shadow:none!important;font-size:12px!important}
    & :is(#appearancePanel,#winkPanel,.privacy-window-v914) :is(button,select,input[type=time]), & .aero-more-explore button {color:var(--glass-ink)!important;background:var(--key)!important;border:var(--rim)!important;text-shadow:none!important}
    & :is(select option,.aero-times input){background:var(--dialog-field)!important;color:var(--glass-ink)!important}
    & :is(.aero-dropdown,.aero-bottom) button{color:var(--glass-ink)!important}
    & :focus-visible{outline:3px solid #ffdc70!important;outline-offset:2px!important}
  }
  [data-scheme=light] .aero-brand i {color:#006c95!important}
  @media(min-width:1101px){:root{--rail:clamp(218px,15.5vw,250px)!important}}
  @media(max-width:760px){
    body:not(.window-style-classic-v919) .aero-mural{padding:12px 9px!important}
    body:not(.window-style-classic-v919) .aero-hero{min-height:152px!important}
    body:not(.window-style-classic-v919) .aero-hero-copy{padding:18px!important;max-width:76%!important}
    body:not(.window-style-classic-v919) .aero-hero-copy h1{font-size:clamp(28px,8vw,42px)!important}
    body:not(.window-style-classic-v919) .aero-shortcut img{height:115px!important}
    body:not(.window-style-classic-v919) .aero-shortcut>span{margin-top:-47px!important;min-height:47px!important;padding:6px 7px!important}
    body:not(.window-style-classic-v919) .aero-shortcut b{font-size:12px!important}
    body:not(.window-style-classic-v919) .aero-shortcut small{font-size:10.5px!important}
    body:not(.window-style-classic-v919) .aero-quick button{min-height:33px!important}
    body:not(.window-style-classic-v919) .aero-account{padding:2px!important;border-radius:50%!important}
  }
}
@layer glass {
  body:not(.window-style-classic-v919) {
    & .aero-hero {
      background-color:#057ba1!important;
      background-image:linear-gradient(90deg,#175b81 0%,#208eb1 30%,transparent 61%),url("/assets/aero/orbita.webp")!important;
      background-size:cover,auto 137%!important;background-position:center,right 48%!important;background-repeat:no-repeat!important;
    }
    & .aero-hero::after{
      background:radial-gradient(ellipse 8% 4px at 13% .8%,#f5ffff 2%,#72dfff9c 40%,transparent 100%),
        radial-gradient(ellipse 9% 4px at 68% 99%,#dcffffd4,transparent),
        linear-gradient(158deg,#fff8 0%,#fff0 10%,transparent 80%,#c2f7ff3d 96%,transparent)!important;
    }
    & .aero-rail{
      background:radial-gradient(ellipse 165% 40% at -65% 60%,transparent 88%,#a0f2ff28 89%,#befbff30 90%,transparent 91%),
        radial-gradient(ellipse 170% 40% at -65% 61%,transparent 87%,#80e6ff1c 90%,transparent 91%),var(--surface)!important;
      box-shadow:var(--gleam),inset 3px 0 9px #91e7ff78,inset 0 -2px 4px #98eaff9e!important;
    }
    & :is(.aero-filter button,.aero-nav-group button) {transition:background-color .12s ease}
    & :is(.aero-feed .mural-ad-head-v9140 small,.aero-feed .mural-ad-foot-v9140) {font-size:12px!important;opacity:1!important}
    & .aero-account-copy small{font-size:11px!important}
    & .aero-social-row small{font-size:12px!important}
    & .aero-search kbd{font-size:11px!important}
    & :is(.chat,.aero-composer,#callOverlay .call-card,#groupOverlay .group-card,.privacy-sound-card-v914,.privacy-busy-card-v915){
      background:var(--dialog)!important;color:var(--glass-ink)!important;border:var(--rim)!important;box-shadow:var(--gleam)!important;
    }
    & :is(#callOverlay:not(.is-minimized) .call-identity,#groupOverlay:not(.is-minimized) .group-head,#groupOverlay:not(.is-minimized) .group-controls,.privacy-window-v914>header) {background:var(--chrome)!important;color:var(--glass-ink)!important}
    & :is(.call-identity,.group-head,.privacy-body-v914) :is(h2,.call-status,.call-timer,.group-status,.group-timer,.privacy-note-v914,.privacy-range-labels-v914){color:var(--glass-ink)!important}
    & :is(.aero-chat-tools,.chat-actions) button,
    & :is(#callOverlay,#groupOverlay) :is(.call-controls,.group-controls,.group-head-actions) button:not(.call-hangup,.call-reject,.call-accept,.is-muted,.is-active),
    & .call-minimize, & #groupOverlay .screen-quality-control-v91450 select{
      color:var(--glass-ink)!important;background:var(--key)!important;border:var(--rim)!important;box-shadow:inset 0 1px #fff7!important;
    }
    & :is(.message .bubble,.aero-write>#text,.aero-contact-search){color:var(--glass-ink)!important;background:var(--dialog-field)!important;border:var(--rim)!important}
    & .message.mine .bubble {background:var(--ocean)!important;color:white!important}
    & :is(.aero-write>#text,.aero-contact-search input)::placeholder{color:var(--glass-muted)!important;opacity:1!important}
  }
  @media(max-width:760px){
    body:not(.window-style-classic-v919) .aero-hero{background-image:url("/assets/aero/orbita-mobile.webp")!important;background-size:cover!important;background-position:65% center!important}
  }
}
/* Legacy dashboard components also read these shared text and surface colors. */
html[data-scheme=dark] {
  --ink:#edf8ff;--muted:#c2daea;--base:#112d40;--strong:color-mix(in srgb,var(--accent) 29%,#dcfaff);
  --tint:color-mix(in srgb,var(--accent) 30%,#153048);
  --sheet:rgb(13 38 56 / calc(.65 + var(--aero-app-alpha,.45)*.35));
}
@layer glass {
  body:not(.window-style-classic-v919) .aero-contact-search input{color:var(--glass-ink)!important;background:var(--dialog-field)!important}
  body:not(.window-style-classic-v919) .koshi-dash-module-v91441 header p{color:var(--glass-muted)!important}
  body:not(.window-style-classic-v919) .chat-head :is(h1,.chat-title-wrap,#chatSubtitle){color:var(--glass-ink)!important}
  body:not(.window-style-classic-v919) .koshi-inline-toolbar-v91630{background:var(--dialog-field)!important}
  [data-scheme=dark] :is(.koshi-dash-list-v91441 button.primary,.koshi-dash-search-form-v91441 button,.koshi-create-club-card-v91441 button,.koshi-club-control-panel-v91620 button.primary,.koshi-library-tabs-v91640 .is-active,.koshi-market-tabs-v91441 .is-active){background:#175573!important;color:white!important}
  @media(max-width:760px){
    body:not(.window-style-classic-v919) .aero-hero-copy p{max-width:26ch!important}
    body:not(.window-style-classic-v919) .aero-hero::before{background:linear-gradient(90deg,#073051f7,#0b486ce6 39%,#07446f4d 65%,transparent 82%)!important}
  }
}

/* Anchor an open conversation to the dashboard's grid cell. Its history and
   the independent list of controls are the only long scrolling surfaces. */
@layer glass {
  #koshiDashClubsV91441.is-active:has(#koshiClubDetailV91620:not([hidden])),
  #koshiDashFriendsV91441.is-active:has(#koshiFriendsInlineV91630:not([hidden])) {
    height:100%!important;min-height:0!important;box-sizing:border-box!important;padding:clamp(6px,1vw,16px)!important;
  }
  #koshiClubDetailV91620:not([hidden]):not(.koshi-club-in-call-v91682) {
    display:grid!important;height:100%!important;min-height:0!important;
    grid-template: "title title" auto "chat tools" minmax(0,1fr) / minmax(0,1fr) clamp(282px,20vw,350px)!important;
    gap:10px!important;overflow:hidden!important;
  }
  .club-chat-toolbar {
    grid-area:title;display:flex;align-items:center;gap:16px;min-width:0;padding:8px 12px;
    border:var(--rule);border-radius:var(--radius);background:var(--chrome,var(--sheet));color:var(--glass-ink,var(--ink));box-shadow:var(--gleam,none);
  }
  .koshi-club-in-call-v91682 .club-chat-toolbar{display:none!important}
  .club-chat-toolbar #koshiClubIdentityV91620{min-width:0;flex:1}
  .club-chat-toolbar .koshi-club-identity-row-v91620{display:flex!important;align-items:center;gap:10px}
  .club-chat-toolbar .koshi-club-identity-row-v91620>div{min-width:0}
  .club-chat-toolbar .koshi-club-identity-row-v91620 :is(img,.koshi-club-identity-avatar-v91620){width:40px!important;height:40px!important;border-radius:12px!important;flex:none}
  .club-chat-toolbar .koshi-club-identity-row-v91620 b{display:block;font:700 19px/1.2 var(--ui)!important;color:var(--glass-ink,var(--ink))!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .club-chat-toolbar .koshi-club-identity-row-v91620 small{color:var(--glass-muted,var(--muted))!important;font:500 14px/1.3 var(--ui)!important}
  #clubDetailsToggle{display:none}
  .club-chat-toolbar #koshiClubDetailBackV91620,.club-chat-toolbar #clubDetailsToggle,.koshi-club-control-panel-v91620 button:not(.danger) {
    background:var(--key,var(--base))!important;color:var(--glass-ink,var(--ink))!important;border:var(--rule)!important;
    border-radius:calc(var(--radius)*.62)!important;font:650 14px/1.3 var(--ui)!important;text-shadow:none!important;min-height:38px;
  }
  .club-chat-toolbar #koshiClubDetailBackV91620,.club-chat-toolbar #clubDetailsToggle{padding:7px 10px;margin:0!important;align-self:center;cursor:pointer}
  .club-chat-toolbar .ki{margin-inline-end:3px}
  #koshiClubDetailV91620:not(.koshi-club-in-call-v91682)>.koshi-club-chat-panel-v91620 {
    grid-area:chat;display:flex!important;padding:0!important;min-width:0!important;min-height:0!important;height:100%!important;overflow:hidden!important;
  }
  #koshiClubChatMountV91620{width:100%!important;box-sizing:border-box!important;height:100%!important;min-height:0!important;flex:1 1 0!important;border:0!important}
  #clubDetailsPanel {
    grid-area:tools;align-self:start;max-height:100%;height:auto!important;box-sizing:border-box;
    min-height:0!important;min-width:0!important;overflow:auto!important;overscroll-behavior:contain;gap:10px!important;padding:0 2px 2px!important;
    background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;
  }
  #clubDetailsPanel:has(#koshiClubLibraryPanelV91645:not([hidden])){height:100%!important;overflow:hidden!important}
  #clubDetailsPanel>.koshi-club-side-card-v91620{flex:none;min-width:0;padding:15px!important;background:var(--dialog,var(--sheet))!important}
  #clubDetailsPanel .koshi-side-title-v91620{align-items:flex-start!important;flex-direction:column;gap:4px}
  #clubDetailsPanel .koshi-side-title-v91620>b{font:700 17px/1.3 var(--ui)!important;color:var(--glass-ink,var(--ink))!important}
  #clubDetailsPanel :is(.koshi-side-title-v91620>span,.koshi-club-call-person-v91620,.koshi-club-music-now-v91620){font:500 14px/1.4 var(--ui)!important;opacity:1!important;color:var(--glass-muted,var(--muted))!important;text-shadow:none!important}
  #clubDetailsPanel .koshi-club-music-now-v91620{background:var(--dialog-field,var(--base))!important}
  #clubDetailsPanel .koshi-club-music-controls-v91620{grid-template-columns:auto auto minmax(30px,1fr) auto!important}
  #clubDetailsPanel .koshi-club-music-controls-v91620 input{min-width:0!important}
  #clubDetailsPanel #koshiClubMusicOpenV91620{grid-column:auto!important}
  #clubDetailsPanel .danger{font:650 14px/1.3 var(--ui)!important;background:#843449!important;color:white!important}
  .koshi-club-in-call-v91682 #clubDetailsPanel{display:none!important}
  #messages{min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:auto}
  #messages .message-row-v81 .meta{gap:8px!important;margin-bottom:4px!important}
  #messages .meta b{color:var(--ink)!important;font:700 14px/1.4 var(--ui)!important}
  #messages .meta span,#messages .image-caption{color:var(--muted)!important;font:500 13px/1.4 var(--ui)!important;opacity:1!important;text-shadow:none!important}
  #messages .message .bubble{font:400 16px/1.5 var(--ui)!important}
  #messages .message.mine .bubble :is(.image-caption,.file-copy-v91480 small,.file-copy-v91480 span){color:inherit!important}
  #messages .file-copy-v91480 :is(b,span,small){color:inherit!important;opacity:1!important}
  #messages .system,#typing{color:var(--muted)!important;text-shadow:none!important;font-size:13px!important}
  #form .aero-chat-tools>button,#form .aero-write>button {font:650 14px/1.3 var(--ui)!important;min-height:35px!important}
  #form .aero-write>#text{font:400 16px/1.4 var(--ui)!important;min-height:44px!important}
  #koshiDashFriendsV91441:has(#koshiFriendsInlineV91630:not([hidden]))>.koshi-dash-two-col-v91441 {
    height:100%!important;grid-template-columns:clamp(235px,22vw,350px) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;gap:10px!important;
  }
  #koshiDashFriendsV91441:has(#koshiFriendsInlineV91630:not([hidden])) .koshi-dash-two-col-v91441>section:first-child{min-height:0!important;overflow:auto!important}
  #koshiFriendsWorkspaceV91630:has(#koshiFriendsInlineV91630:not([hidden])){height:100%!important;min-height:0!important;padding:0!important}
  #koshiFriendsInlineV91630:not([hidden]),#koshiFriendsInlineMountV91630,#koshiFriendsInlineMountV91630>.chat{height:100%!important;min-height:0!important}
  #koshiFriendsInlineMountV91630{flex:1 1 0!important}
  @media(max-width:1000px){
    #koshiClubDetailV91620:not([hidden]):not(.koshi-club-in-call-v91682){grid-template:"title" auto "chat" minmax(0,1fr) / minmax(0,1fr)!important;gap:6px!important}
    #clubDetailsToggle{display:inline-flex;align-items:center;gap:3px}
    #clubDetailsPanel{display:none!important}
    #koshiClubDetailV91620:has(#clubDetailsToggle[aria-expanded=true]):not(.koshi-club-in-call-v91682) #clubDetailsPanel{display:flex!important;grid-area:chat;height:100%!important}
    #koshiClubDetailV91620:has(#clubDetailsToggle[aria-expanded=true]):not(.koshi-club-in-call-v91682)>.koshi-club-chat-panel-v91620{display:none!important}
  }
  @media(max-width:760px){
    .club-chat-toolbar{gap:6px;padding:6px}
    .club-chat-toolbar #koshiClubDetailBackV91620{font-size:0!important;width:40px;height:40px}
    .club-chat-toolbar #koshiClubDetailBackV91620 .ki{font-size:20px;margin:0}
    .club-chat-toolbar .koshi-club-identity-row-v91620{gap:6px}
    .club-chat-toolbar .koshi-club-identity-row-v91620 b{font-size:16px!important}
    .club-chat-toolbar .koshi-club-identity-row-v91620 small{font-size:13px!important}
    #koshiDashFriendsV91441:has(#koshiFriendsInlineV91630:not([hidden]))>.koshi-dash-two-col-v91441{grid-template-columns:minmax(0,1fr)!important}
    #messages .message.message-row-v81{grid-template-columns:34px minmax(0,1fr)!important;width:100%!important;gap:7px!important}
    #messages .chat-avatar-glass-v81{width:34px!important;height:34px!important}
    #form .aero-chat-tools{gap:4px!important}
    #form .aero-chat-tools>button{padding:6px!important}
  }
}
@layer glass {
  #typing:empty{display:none!important}
  #messages .message.message-row-v81.mine{
    grid-template-columns:minmax(0,1fr) 48px!important;margin-inline:auto 0!important;
  }
  #messages .message.mine .chat-avatar-glass-v81{grid-column:2;grid-row:1}
  #messages .message.mine .message-content-v81{grid-column:1;grid-row:1;text-align:right!important}
  #messages .message.mine .meta,#messages .message.mine .wink-message-row{justify-content:flex-end!important}
  #messages .message.mine .bubble{background:#195476!important;border-color:#67afce!important;color:white!important}
  #messages .message.mine .file-copy-v91480 b{color:white!important}
  #messages .image-caption{white-space:normal!important;overflow-wrap:anywhere}
  #koshiClubsLobbyV91620 :is(.koshi-club-calls-head-v91470 h3,.koshi-club-calls-head-v91470 p),
  #koshiClubDetailV91620 .koshi-club-call-people-v91620 .koshi-club-call-person-v91620{color:var(--glass-ink,var(--ink))!important}
  @media(max-width:760px){
    #messages .message.message-row-v81.mine{grid-template-columns:minmax(0,1fr) 34px!important}
  }
}
@layer glass {
  @media(max-width:760px){
    html{--bar:56px!important}
    .club-chat-toolbar .koshi-club-identity-row-v91620 small{white-space:nowrap}
    #form.aero-composer{padding:6px 8px!important;gap:4px!important}
  }
  @media(max-width:360px){
    .club-chat-toolbar .koshi-club-identity-row-v91620 :is(img,.koshi-club-identity-avatar-v91620){width:30px!important;height:30px!important}
  }
}
