/* Reference-inspired foreground chrome. OverLife's wallpaper, artwork,
   animation, personal backgrounds and existing layout remain authoritative. */
:root{
 --ref-ink:#f5f1f6;--ref-muted:#b1afc0;
 --ref-panel:rgb(10 12 21 / .94);--ref-inset:rgb(16 18 29 / .94);
 --ref-control:rgb(22 24 37 / .96);--ref-line:rgb(225 225 244 / .14);
 --ref-field-line:rgb(173 177 197 / .56);
 --ref-accent:#ff9b45;--ref-on-accent:#261609;--ref-danger:#ef6379;
}
body.rgb-theme{
 --readable-ink:var(--ref-ink);--readable-muted:var(--ref-muted);
 --readable-placeholder:#b7b5c7;--readable-panel:var(--ref-panel);
 --readable-field:var(--ref-inset);--readable-button:var(--ref-control);
 --readable-border:var(--ref-field-line);--readable-focus:#ffbd86;
 color:var(--ref-ink);
}
/* Quiet framing around the original wordmark. The home header stays clear. */
body.rgb-theme .main>.topbar{
 background:var(--ref-panel)!important;color:var(--ref-ink)!important;
 border-color:var(--ref-line)!important;box-shadow:none;
}
body.rgb-theme[data-page='home'] .main>.topbar{
 background:transparent!important;border:0!important;box-shadow:none!important;
}
body.rgb-theme .main>.topbar #currentLiveButton{
 background:var(--ref-control)!important;border-color:var(--ref-line)!important;
 color:var(--ref-ink)!important;border-radius:12px;box-shadow:none;
}
body.rgb-theme #appBackButton{color:#ff5964!important;}
/* Existing home actions retain their position, mascot scale and live effect. */
body.rgb-theme[data-page='home'] #home .chill-actions>.chill-action:not([data-live-choice]),
body.rgb-theme[data-page='home'] #home .overlive-download-home #downloadApplication,
body.rgb-theme[data-page='home'] #home .overlive-download-home #showAppQrCode{
 background:var(--ref-control)!important;border:1px solid var(--ref-line)!important;
 border-radius:14px;color:var(--ref-ink)!important;
 box-shadow:inset 0 1px 0 rgb(255 255 255 / .025)!important;text-shadow:none;
}
body.rgb-theme[data-page='home'] #home .chill-actions>.chill-action:not([data-live-choice])>.action-icon{
 background:transparent;color:var(--ref-accent);border-radius:10px;
}
/* The directory keeps full-image snapping and its established fixed rows. */
body.rgb-theme[data-page='discover'] #discover>.page-title{
 color:var(--ref-ink)!important;background:rgb(10 12 21 / .88)!important;
 border:1px solid var(--ref-line)!important;border-radius:16px;
 box-shadow:none;text-shadow:none;
}
body.rgb-theme[data-page='discover'] #discover>.page-title>.eyebrow{
 color:var(--ref-accent)!important;letter-spacing:.12em;font-weight:700;
}
body.rgb-theme[data-page='discover'] #discover>.page-title>h1{
 color:var(--ref-ink)!important;letter-spacing:-.035em;font-weight:750;
}
body.rgb-theme[data-page='discover'] #discover>.page-title>.lead{
 color:var(--ref-muted)!important;
}
body.rgb-theme[data-page='discover'] #discover #publicLiveSearch{
 background:var(--ref-inset)!important;border:1px solid var(--ref-field-line)!important;
 border-radius:12px;color:var(--ref-ink)!important;font-size:16px;text-shadow:none;
 box-shadow:none;
}
body.rgb-theme[data-page='discover'] #discover #publicLiveStatus{
 color:var(--ref-muted)!important;background:rgb(10 12 21 / .88)!important;
 border-radius:8px;text-shadow:none;
}
body.rgb-theme[data-page='discover'] #discover #liveCards>.public-live-card{
 color:var(--ref-ink)!important;background:var(--ref-panel)!important;
 border:1px solid var(--ref-line)!important;border-radius:18px;
 box-shadow:0 8px 24px rgb(0 0 0 / .12);text-align:left;
}
body.rgb-theme[data-page='discover'] #discover #liveCards .public-live-cover{
 border-radius:17px 17px 0 0;
}
body.rgb-theme[data-page='discover'] #discover #liveCards .public-live-card>h3{
 color:var(--ref-ink)!important;letter-spacing:-.02em;
}
body.rgb-theme[data-page='discover'] #discover #liveCards .public-live-card>p{
 color:var(--ref-muted)!important;
}
body.rgb-theme[data-page='discover'] #discover #liveCards .public-live-card>.btn{
 background:var(--ref-accent)!important;color:var(--ref-on-accent)!important;
 border:1px solid var(--ref-accent)!important;border-radius:12px;
 text-shadow:none;box-shadow:none;font-weight:700;
}
body.rgb-theme[data-page='discover'] #discover #liveCards .badge.live{
 background:#5a2033!important;color:#fff1f5!important;border-color:#a54f67!important;
}
body.rgb-theme #overliveBottomNavigation{
 background:var(--ref-panel)!important;border-top-color:var(--ref-line)!important;
}
body.rgb-theme #overliveBottomNavigation>button:nth-child(2)>.ico{
 background:var(--ref-accent)!important;color:var(--ref-on-accent)!important;
}
body.rgb-theme #overliveBottomNavigation>button:is(.active,[aria-current='page']){
 color:var(--ref-accent)!important;
}
/* Generic dialogs are chrome only. Dedicated live/social sheets follow later. */
body.rgb-theme dialog{
 --readable-surface:var(--ref-panel);--readable-control:var(--ref-control);
 background:var(--ref-panel)!important;color:var(--ref-ink)!important;
 border:1px solid var(--ref-line)!important;border-radius:18px;box-shadow:0 18px 48px rgb(0 0 0 / .30);
}
body.rgb-theme dialog :is(.btn,.background-choose,.background-base){
 background:var(--ref-control)!important;color:var(--ref-ink)!important;
 border-color:var(--ref-field-line)!important;border-radius:12px;text-shadow:none;
}
body.rgb-theme dialog :is(input:not([type='range']):not([type='color']):not([type='checkbox']):not([type='radio']):not([type='file']),textarea,select){
 font-size:16px;background:var(--ref-inset)!important;border-color:var(--ref-field-line)!important;
}
body.rgb-theme :is(#appBackButton,#publicLiveSearch,#showAppQrCode,#downloadApplication):focus-visible,
body.rgb-theme #discover #liveCards>.public-live-card:focus-visible{
 outline:2px solid #ffbd86!important;outline-offset:2px;
}
@media(max-height:500px) and (min-width:550px){
 body.rgb-theme[data-page='discover'] #discover #liveCards .public-live-cover{border-radius:17px 0 0 17px;}
}

/* Smaller home artwork, with warm translucent dialogue. Scale the actual
   layout dimensions instead of transforming the text or clipping the ears. */
body[data-page='home'] #home.chill-home{
 --home-mascot-size:clamp(89.6px,calc((100dvh - 360px) * .536),208px);
}
body[data-page='home'] #home .home-logo-thought{
 top:-72px;width:min(127.5px,calc((100vw - 24px) * .425));
 min-height:65px;padding:10px 17px;
}
body[data-page='home'] #home .home-logo-speech{
 width:min(136px,calc((100vw - 24px) * .425));min-height:65px;padding:10px 16px;
}
body[data-page='home'] #home .home-logo-dialogue{
 font-size:10.5px;line-height:1.35;
}
body[data-page='home'] #home .home-logo-dialogue-text{
 min-height:4.05em;color:#261b1c;text-shadow:0 1px 0 rgb(255 255 255 / .18);
}
body[data-page='home'] #home .home-logo-bubble-art{
 filter:drop-shadow(-2px 1px 3px rgb(239 65 49 / .45))
        drop-shadow(2px -1px 4px rgb(255 137 44 / .40))
        drop-shadow(3px 2px 5px rgb(255 209 82 / .28));
}
body[data-page='home'] #home .home-logo-bubble-art path:nth-of-type(2),
body[data-page='home'] #home .home-logo-bubble-art circle:nth-of-type(even){
 fill:#fff6e9;fill-opacity:.80;stroke:#ffc173;stroke-opacity:.75;stroke-width:1.1;
}
@media(max-height:500px) and (min-width:550px){
 body[data-page='home'] #home.chill-home{--home-mascot-size:clamp(89.6px,28dvh,118.4px);}
 body[data-page='home'] #home .home-logo-thought{top:-68px;width:120.7px;min-height:62px;}
 body[data-page='home'] #home .home-logo-speech{width:122.4px;min-height:62px;}
}
