/* CRYOTALE V3.1.2: calm deep-sea mobile shell + creator default wallpaper editor.
   No payment, model, message or private prompt styles are modified here. */
.cryo-v312-creator-bg{margin:20px 0 24px;padding:16px;border:1px solid rgba(118,200,221,.26);border-radius:16px;background:linear-gradient(160deg,rgba(12,51,77,.55),rgba(7,26,45,.6));}
.cryo-v312-bg-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#d4f5fc;font-size:14px}
.cryo-v312-bg-head span{font-size:11px;color:#a4c6d6}
.cryo-v312-bg-preview{height:145px;margin:13px 0 12px;border-radius:13px;border:1px solid rgba(117,201,234,.26);background:radial-gradient(circle at 55% 22%,rgba(56,157,187,.33),transparent 55%),linear-gradient(#123550,#07192d);background-position:center;background-size:cover;overflow:hidden}
.cryo-v312-bg-preview:not(.has-image)::before{content:'✧';display:grid;place-items:center;height:100%;font-size:25px;color:#7ed7eb80}
.cryo-v312-bg-actions{display:flex;gap:8px;flex-wrap:wrap}
.cryo-v312-creator-bg small{display:block;margin-top:9px;color:#8fb8cd;font-size:11px}
@media(max-width:770px){
 /* Recently active roles must be the first thing a returning player sees. */
 body:has(#chatPage.mobile-list:not([hidden])) .topbar{display:none!important}
 html.cryo-ui-v31 #chatPage.mobile-list{min-height:0!important;padding:0!important;border:0!important;position:relative}
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar{
   padding:6px 9px 10px!important;border:0!important;border-radius:0!important;
   background:radial-gradient(ellipse at 50% -15%,rgba(39,133,173,.15),transparent 60%),
              linear-gradient(180deg,#091e35,#061c32 58%,#061a2e)!important;
   position:relative!important;isolation:isolate;overflow-y:auto!important;
 }
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar::before{
   content:'';position:absolute;z-index:-1;inset:auto 0 0;min-height:43%;pointer-events:none;
   background:url('/static/cryo_ui_v312/seafloor.svg') left bottom/100% auto no-repeat;opacity:.85;
 }
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar::after{
   content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
   background:
    radial-gradient(circle 10px at 13% 77%,transparent 75%,rgba(139,230,248,.14) 84%,transparent 94%),
    radial-gradient(circle 6px at 87% 48%,transparent 75%,rgba(141,226,241,.11) 84%,transparent 94%),
    radial-gradient(circle 13px at 69% 86%,transparent 76%,rgba(130,204,234,.1) 86%,transparent 95%),
    radial-gradient(circle 5px at 33% 34%,transparent 75%,rgba(111,196,224,.11) 84%,transparent 95%),
    radial-gradient(ellipse at 16% 70%,rgba(44,131,163,.08),transparent 30%);
   animation:cryo-v312-float 21s ease-in-out infinite alternate;
 }
 @keyframes cryo-v312-float{from{transform:translateY(10px)}to{transform:translateY(-12px)}}
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidehead,
 html.cryo-ui-v31 #chatPage.mobile-list #chatSideTitle,
 html.cryo-ui-v31 #chatPage.mobile-list #chatSideNote,
 html.cryo-ui-v31 #chatPage.mobile-list #chatNew{display:none!important}
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sessionlist{padding:0 6px 8px!important;gap:3px!important;max-height:none!important}
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v23-role-pick{
  display:flex!important;align-items:center!important;gap:13px!important;min-height:79px!important;
  padding:11px 8px!important;border:0!important;border-bottom:1px solid rgba(126,191,222,.14)!important;
  background:transparent!important;border-radius:0!important;text-align:left;
 }
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v23-role-avatar{
  width:55px!important;height:55px!important;flex:0 0 55px!important;border-radius:50%!important;
  overflow:hidden;box-shadow:0 0 0 2px rgba(87,175,205,.16),0 2px 18px rgba(26,116,155,.17);
 }
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v23-role-avatar img{width:100%;height:100%;object-fit:cover}
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v23-role-labels{min-width:0!important;flex:1}
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v23-role-labels strong{
  display:block;width:max-content;max-width:100%;border-radius:999px;padding:5px 12px;
  font-size:14px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:linear-gradient(105deg,rgba(61,153,182,.19),rgba(28,98,133,.10));
  box-shadow:inset 0 0 0 1px rgba(125,226,239,.11);color:#e6faff;
 }
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v23-role-labels small{font-size:10px!important;color:#8aaec4!important;margin:5px 0 3px!important}
 html.cryo-ui-v31 #chatPage.mobile-list .cryo-v31-last-line{font-size:12px!important;opacity:.89;line-height:1.4}
 /* Newer mobile browsers: reserve ONLY OS safe inset; old bottom navigation is hidden in conversation. */
 html.cryo-ui-v31 #chatPage.cryo-immersive-active{height:100dvh!important;min-height:0!important}
 html.cryo-ui-v31 #chatPage.cryo-immersive-active .chat-main{height:100%!important;min-height:0!important}
 html.cryo-ui-v31 #chatPage.cryo-immersive-active .chat-messages{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important}
 html.cryo-ui-v31 #chatPage.cryo-immersive-active .chat-composer{
  position:relative!important;bottom:auto!important;flex:0 0 auto!important;margin-top:0!important;
  padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px))!important;
  background:linear-gradient(180deg,rgba(5,24,41,.66),rgba(5,20,37,.94))!important;
 }
 /* Official AI chat: the old 74px dock spacer was still present while dock was hidden. */
 html.cryo-ui-v31 #chat-view:not(.hidden):has(#conversation-scene:not(.hidden)) .composer-wrap{
  margin-top:auto!important;padding:5px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;
 }
 html.cryo-ui-v31 #chat-view:not(.hidden):has(#conversation-scene:not(.hidden)) .chat-scroll{
  min-height:0!important;flex:1 1 0!important;overflow:auto!important;
 }
 html.cryo-ui-v31 #chat-view:not(.hidden):has(#conversation-scene:not(.hidden)) .composer-footer{display:none!important}
 html.cryo-ui-v31 #chat-view:not(.hidden):has(#conversation-scene:not(.hidden)) .conversation-feed{min-height:0!important}
 html.cryo-ui-v31 #chat-view:not(.hidden):has(#conversation-scene:not(.hidden)) .conversation-scene{min-height:0!important;padding-bottom:0!important}
 html.cryo-ui-v31 #chat-view #message-input::placeholder{color:#83aabb!important}
 .cryo-v312-creator-bg{padding:12px}
}
@media(prefers-reduced-motion:reduce){html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar::after{animation:none!important}}
@media(max-width:770px){
 html.cryo-ui-v31 #chatPage.mobile-list{height:calc(100dvh - 91px - env(safe-area-inset-bottom,0px))!important}
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar::before,
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar::after{z-index:0!important}
 html.cryo-ui-v31 #chatPage.mobile-list .chat-sidebar > *{position:relative;z-index:1}
}
@media(max-width:770px){
 body:has(#chatPage.mobile-list:not([hidden])) .workspace{padding:0 5px 12px!important}
 body:has(#chatPage.mobile-list:not([hidden])) .app{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
}
