/* GPT娘 - Iceblue Companion UI V2
 * Cosmetic front-end only. The AstrBot API / auth contract is unchanged.
 */
:root{
  color-scheme:dark;
  --bg:#060d19;--panel:#0c182a;--panel-2:#13243a;--panel-3:#1b324a;
  --line:rgba(143,204,237,.14);--line-strong:rgba(125,208,250,.36);
  --text:#edf8ff;--muted:#9aafc8;--quiet:#65829f;
  --ice:#8beaff;--ice-2:#b5f6ff;--blue:#8fbaff;
  --glow:0 0 40px rgba(84,188,241,.12);
}
*,*::before,*::after{box-sizing:border-box}
html,body{min-height:100%;margin:0}
html{font-family:'Inter','Microsoft YaHei','PingFang SC','Segoe UI',system-ui,sans-serif;background:var(--bg)}
body{color:var(--text);overflow-x:hidden;background:radial-gradient(circle at 65% 0,rgba(47,109,165,.11),transparent 42%),var(--bg)}
button,input,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--ice);outline-offset:3px}
.hidden{display:none!important}
.ambient,.gridlines{position:fixed;inset:0;pointer-events:none;z-index:0}
.gridlines{background-image:linear-gradient(rgba(130,206,250,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(130,206,250,.025) 1px,transparent 1px);background-size:66px 66px;mask-image:linear-gradient(100deg,transparent,#000 25%,#000 80%,transparent)}
.ambient{width:55vw;height:55vw;inset:auto;border-radius:50%;filter:blur(100px);opacity:.23}
.ambient-a{background:#1067a3;left:-28vw;top:-30vw}
.ambient-b{background:#23447c;right:-28vw;bottom:-35vw}
.toast{position:fixed;left:50%;bottom:28px;z-index:50;max-width:min(88vw,530px);padding:13px 19px;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:opacity .22s,transform .22s;border:1px solid var(--line-strong);border-radius:13px;color:#f1fbff;background:rgba(22,44,65,.98);box-shadow:0 15px 50px #0007}
.toast.show{opacity:1;transform:translate(-50%,0)}
.pin{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:100%;vertical-align:middle;background:#59f5c6;box-shadow:0 0 0 4px rgba(78,244,194,.07),0 0 13px #33d8aa}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:21px;letter-spacing:.3px;line-height:1.05}
.brand-symbol{display:block;width:48px;height:48px;border-radius:15px;border:1px solid rgba(169,230,255,.5);flex:none;box-shadow:0 7px 25px #0006,0 0 24px rgba(76,192,235,.1)}
.brand-symbol-image,.avatar-image{background-image:url('/static/assets/gpt-avatar.png?v=cryo-original-20261029-02');background-size:cover;background-position:center;background-repeat:no-repeat}
.brand small{display:block;margin-top:6px;font-size:9px;font-weight:800;color:#8eb7d6;letter-spacing:2.8px}
.eyebrow,.tiny-label{letter-spacing:2.3px;font-size:10px;color:var(--muted);font-weight:800}
.eyebrow.cyan,.tiny-label{color:var(--ice)}
/* Authentication */
.auth-layout{min-height:100dvh;position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(430px,.9fr)}
.intro-panel{position:relative;isolation:isolate;overflow:hidden;padding:39px clamp(30px,4.6vw,84px);display:flex;flex-direction:column;min-height:700px;border-right:1px solid var(--line);background:#111e32}
.intro-panel::before{content:'';position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(4,13,27,.96) 0%,rgba(8,19,36,.78) 40%,rgba(7,20,37,.32) 100%),linear-gradient(0deg,rgba(3,13,29,.6),transparent 50%),url('/static/assets/gpt-full.png?v=cryo-original-20261029-02') 66% center/cover no-repeat}
.intro-panel::after{content:'';position:absolute;z-index:-1;left:-24%;top:25%;width:89%;aspect-ratio:1;border:1px solid rgba(134,218,246,.1);border-radius:50%;box-shadow:0 0 0 55px rgba(120,206,249,.026),0 0 0 110px rgba(120,206,249,.018)}
.intro-content{margin:auto 0;position:relative;max-width:620px;padding-bottom:75px;text-shadow:0 3px 15px #05101a88}
.intro-content .eyebrow{display:flex;align-items:center;gap:8px;font-size:10px}
.intro-content h1{font-size:clamp(43px,4.1vw,72px);line-height:1.14;letter-spacing:-2.2px;margin:30px 0 24px}
.intro-content h1 span{color:var(--ice-2);text-shadow:0 0 35px rgba(101,210,254,.19)}
.intro-content p{line-height:2.1;color:#bfd0e1;font-size:15px}
.feature-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.feature-tags span{padding:9px 14px;border:1px solid rgba(148,208,234,.24);border-radius:999px;background:rgba(17,36,57,.63);color:#d2eafb;font-size:11px;backdrop-filter:blur(6px)}
.floating-card{position:absolute;z-index:2;right:7%;bottom:10%;min-width:300px;max-width:60%;padding:15px 18px;display:flex;align-items:center;gap:13px;border:1px solid rgba(142,220,247,.27);border-radius:20px;background:rgba(11,30,51,.82);backdrop-filter:blur(16px);box-shadow:0 20px 50px #0006;transform:rotate(-3deg)}
.avatar{flex:none;background-color:#173550;border:1px solid rgba(146,218,255,.42)}
.avatar-large{height:59px;width:59px;border-radius:18px}
.float-info{display:flex;flex-direction:column;gap:5px}
.float-info strong{font-size:16px}
.float-info small{font-size:11px;color:#9cbed7}
.bubble-deco{margin-left:auto;color:var(--ice);font-size:11px;white-space:nowrap}
.intro-character{display:none}
.intro-footer{position:absolute;bottom:24px;left:clamp(30px,4.6vw,84px);color:#7896ac;font-size:11px}
.auth-panel{position:relative;padding:55px clamp(30px,5vw,95px);display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(6,13,26,.85),rgba(10,23,43,.78));}
.auth-panel::before{content:'';position:absolute;width:390px;height:390px;right:-220px;bottom:-200px;background:#235b8f;filter:blur(120px);opacity:.16;pointer-events:none}
.auth-box{width:min(100%,425px);position:relative}
.auth-box h2{font-size:36px;letter-spacing:-1.5px;margin:16px 0 8px}
.wave{color:var(--ice)}
.subtitle{margin:0 0 36px;color:var(--muted);font-size:14px}
.tabs{display:grid;grid-template-columns:1fr 1fr;padding:5px;gap:5px;margin-bottom:32px;border-radius:15px;background:rgba(24,45,65,.77);border:1px solid var(--line)}
.tab{border:0;border-radius:11px;background:none;color:#849cb6;padding:13px}
.tab.active{background:linear-gradient(135deg,#25455c,#1c3b55);color:#f4fdff;box-shadow:0 4px 15px #0004}
.auth-form{display:flex;flex-direction:column;gap:10px}
.auth-form label{font-size:12px;font-weight:750;color:#cbdde9;margin-top:5px}
.auth-form input{width:100%;background:rgba(21,39,59,.85);border:1px solid rgba(127,183,224,.23);border-radius:13px;padding:15px 16px;color:#f4faff;outline:none;transition:.2s}
.auth-form input::placeholder{color:#6c87a4}
.auth-form input:focus{border-color:#83daec;box-shadow:0 0 0 3px #7de5f21b}
#invite-row{display:flex;flex-direction:column;gap:10px}
.primary-btn{margin-top:20px;padding:15px;border:0;border-radius:13px;display:flex;justify-content:center;align-items:center;gap:15px;font-weight:800;background:linear-gradient(105deg,#8ce9ef,#89b7ff);color:#102b3f;box-shadow:0 8px 30px rgba(104,205,247,.2);transition:filter .2s,transform .2s}
.primary-btn:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}
.error-text{font-size:12px;color:#ffa0b1;min-height:20px}
.bottom-note{color:#8296b0;font-size:12px;line-height:1.9;text-align:center;margin:35px 0 0}
/* Application shell */
.app-layout{position:relative;z-index:1;display:grid;grid-template-columns:294px minmax(0,1fr);height:100dvh;min-height:535px}
.sidebar{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:26px 17px 16px;border-right:1px solid rgba(139,190,219,.15);background:linear-gradient(170deg,rgba(10,23,41,.98),rgba(9,19,33,.98))}
.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:0 8px 28px}
.sidebar .brand{font-size:20px}
.sidebar-section-mark{display:flex;align-items:center;gap:8px;margin:1px 9px 10px;font-size:9px;letter-spacing:1.25px;font-weight:800;color:#5e8baa}
.sidebar-section-mark::first-letter{color:var(--ice)}
.new-chat{width:calc(100% - 8px);margin:0 4px 29px;padding:14px 15px;border-radius:14px;border:1px solid rgba(106,198,240,.43);background:linear-gradient(135deg,#1a526b,#19405d);color:#e0faff;text-align:left;font-weight:750;display:flex;align-items:center;gap:12px;box-shadow:inset 0 1px 0 #ffffff18,0 8px 22px #0003;transition:.2s}
.new-chat:hover{border-color:#9be7ff;background:#245775;transform:translateY(-1px)}
.new-chat>span:first-child{font-size:24px;line-height:0.85;font-weight:400}
.trailing{margin-left:auto;opacity:.7;font-weight:400}
.sidebar-label{display:flex;justify-content:space-between;padding:0 12px 13px;font-size:11px;color:#88a9c4;letter-spacing:1.1px}
.sidebar-label span{letter-spacing:0;color:#6b91af}
.chat-list{overflow:auto;min-height:20px;flex:1;padding:0 4px}
.chat-list::-webkit-scrollbar,.chat-scroll::-webkit-scrollbar{width:7px}
.chat-list::-webkit-scrollbar-thumb,.chat-scroll::-webkit-scrollbar-thumb{background:#34536b;border-radius:10px}
.chat-item{display:flex;align-items:center;gap:5px;width:100%;border:1px solid transparent;border-radius:13px;padding:4px;margin:0 0 6px;background:transparent;color:#abc3d7}
.chat-item.active{border-color:rgba(120,196,226,.23);background:linear-gradient(100deg,#1c3650,#182a43);color:#f2faff;box-shadow:inset 3px 0 0 #6be0f2}
.chat-select{min-width:0;display:flex;align-items:center;gap:9px;flex:1;background:none;border:0;color:inherit;text-align:left;padding:10px 5px}
.chat-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
.chat-icon{color:#85b7d1;font-size:15px}
.chat-delete,.icon-btn{border:0;border-radius:10px;background:none;color:#88a7bf}
.chat-delete{padding:7px;font-size:13px}
.chat-delete:hover,.icon-btn:hover{background:#203b55;color:#d6f7ff}
.icon-btn{padding:9px}
.mobile-close,.menu-toggle{display:none}
.sidebar-bottom{margin-top:auto}
.usage{padding:16px 14px;margin:10px 4px 16px;border:1px solid rgba(128,181,218,.2);border-radius:15px;background:linear-gradient(135deg,#132941,#112238)}
.usage-title{display:flex;justify-content:space-between;gap:6px;color:#a2bcd3;font-size:11px}
.usage-title strong{color:#c7f3ff;font-size:12px}
.usage-track{height:5px;margin:14px 0 10px;border-radius:9px;background:#29415a;overflow:hidden}
.usage-fill{height:100%;width:0;background:linear-gradient(90deg,#56a3eb,#79f1f7);border-radius:9px;transition:width .25s}
.usage small{font-size:10px;color:#799db7}
.usage-note-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:8px 10px;border:1px solid rgba(128,181,218,.2);border-radius:11px;background:rgba(15,38,60,.55);color:#a5d8ed;font-size:11px;line-height:1.35;cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}
.usage-note-toggle:hover{background:rgba(21,48,74,.72);border-color:rgba(134,199,235,.28)}
.usage-note-toggle:focus-visible{outline:2px solid rgba(140,223,255,.55);outline-offset:2px}
.usage-note-chevron{font-size:12px;line-height:1;opacity:.86;transition:transform .2s ease}
.usage-note-toggle[aria-expanded="true"] .usage-note-chevron{transform:rotate(180deg)}
.usage-note-panel{margin-top:8px;padding:9px 10px;border-radius:11px;border:1px solid rgba(116,175,212,.16);background:rgba(9,25,40,.42)}
.usage-note-panel small{display:block;line-height:1.65;color:#a5d8ed}
.usage-note-panel small+small{margin-top:4px;color:#88a8c1}

.account{display:flex;align-items:center;gap:11px;padding:14px 7px 1px;border-top:1px solid rgba(133,186,220,.14)}
.account-icon{flex:none;width:41px;height:41px;display:grid;place-items:center;border-radius:13px;border:1px solid #73bad34a;background:linear-gradient(145deg,#234a69,#1c324f);color:#a1eaff;font-size:17px;font-weight:800}
.account-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.account-copy strong{font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.account-copy small{font-size:10px;color:#89a8c0}
.chat-main{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;isolation:isolate;background:radial-gradient(ellipse 60% 65% at 76% 45%,rgba(40,98,147,.09),transparent),linear-gradient(135deg,#081426,#091121 54%,#0c1930)}
.chat-main::before{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;background-image:linear-gradient(rgba(129,196,240,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(129,196,240,.02) 1px,transparent 1px);background-size:58px 58px;mask-image:linear-gradient(to bottom,transparent 0%,#000 38%,transparent 100%)}
.topbar{height:83px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 34px;border-bottom:1px solid var(--line);background:rgba(8,19,34,.77);backdrop-filter:blur(18px);z-index:2}
.topbar-bot{display:flex;align-items:center;gap:12px}
.avatar-small{width:52px;height:52px;border-radius:15px;box-shadow:0 8px 24px #0006}
.topbar-identity strong{font-size:14px;color:#f4faff}
.topbar-sparkle{color:#8ce6ec;font-size:10px;margin-left:2px}
.online-line{margin-top:5px;font-size:11px;color:#93b1c8}
.online-line .pin{width:6px;height:6px}
.model-pill{max-width:32vw;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-radius:30px;padding:10px 17px;color:#afeafb;border:1px solid rgba(118,193,235,.32);background:rgba(22,48,72,.78);letter-spacing:1px;font-size:10px;font-weight:800;transition:.2s}
.model-pill:hover{color:#eefeff;border-color:#78dcf7;background:#1e4b65}
.chat-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth}
/* Empty chat landing */
.empty-chat{width:min(1120px,100%);min-height:100%;margin:0 auto;padding:29px clamp(26px,4.4vw,72px) 32px;display:flex;flex-direction:column;justify-content:center}
.welcome-kicker{font-size:10px;font-weight:750;letter-spacing:2px;color:#88b6d2;display:flex;align-items:center;gap:12px;margin:0 0 24px}
.welcome-kicker-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--ice);box-shadow:0 0 16px var(--ice)}
.kicker-split{color:#3e6885}
.welcome-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);gap:clamp(25px,4vw,62px);align-items:center}
.welcome-copy{min-width:0;padding:15px 0}
.tiny-label{font-size:10px}
.welcome-copy h2{font-size:clamp(39px,4.3vw,70px);line-height:1.24;letter-spacing:-2.3px;margin:20px 0 17px;font-weight:900;color:#f3fbff}
.welcome-copy h2 em{font-style:normal;color:#abf1ff;text-shadow:0 0 45px #4fb4e147}
.welcome-copy p{margin:0;color:#a0bad3;font-size:14px;line-height:2.05}
.welcome-quote{width:fit-content;margin:25px 0 28px;border-left:2px solid #6ae7fa;padding:9px 0 9px 16px;color:#b9d8e9;font-size:12px;background:linear-gradient(90deg,rgba(63,170,211,.08),transparent)}
.suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,620px)}
.suggestions button{min-width:0;min-height:103px;padding:14px 12px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;color:#d5ebfa;border:1px solid rgba(118,183,217,.24);border-radius:14px;background:linear-gradient(145deg,rgba(24,48,72,.65),rgba(12,31,49,.62));transition:.2s;position:relative;box-shadow:inset 0 1px 0 #ffffff0a}
.suggestions button:hover{transform:translateY(-3px);border-color:#7de0f2;background:linear-gradient(145deg,rgba(33,70,93,.88),rgba(17,41,60,.84));box-shadow:0 10px 23px #0003}
.suggestion-symbol{font-size:17px;color:#8ce2f5}
.suggestion-text{display:flex;flex-direction:column;gap:5px}
.suggestion-text strong{font-size:12px;font-weight:800}
.suggestion-text small{color:#779db8;font-size:10px;white-space:nowrap}
.suggestion-arrow{position:absolute;right:13px;top:16px;color:#6d9fbb;font-size:13px}
.welcome-art{position:relative;isolation:isolate;align-self:stretch;min-height:390px;max-height:550px;aspect-ratio:4/5.3;border:1px solid rgba(152,217,255,.3);border-radius:24px;overflow:hidden;background:linear-gradient(150deg,#182e4c,#13223b 46%,#0e1c30);box-shadow:0 24px 80px #0006,0 0 0 7px rgba(92,171,233,.035),0 0 65px rgba(92,166,212,.1)}
.welcome-art::before{content:'';position:absolute;z-index:1;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(6,18,34,.98) 0%,rgba(11,24,41,.25) 32%,rgba(9,24,44,.03) 75%,rgba(12,30,51,.42) 100%)}
.welcome-art-image{position:absolute;inset:0;background:url('/static/assets/gpt-avatar.png?v=cryo-original-20261029-02') 52% 30%/cover no-repeat;filter:saturate(.88) contrast(1.02);transform:scale(1.04);transition:transform .6s}
.welcome-art:hover .welcome-art-image{transform:scale(1.09)}
.welcome-art-grid{position:absolute;inset:0;z-index:1;opacity:.25;pointer-events:none;background:repeating-linear-gradient(0deg,transparent,transparent 60px,#d1f8ff22 61px);mask-image:linear-gradient(to bottom,#000,transparent 55%)}
.art-top,.art-bottom{position:absolute;z-index:2;left:23px;right:23px}
.art-top{top:19px;display:flex;align-items:center;gap:8px;letter-spacing:1.7px;font-size:9px;font-weight:800;color:#e1f7ff;text-shadow:0 1px 5px #071523}
.art-top span:last-child{margin-left:auto;color:#a9d9f4}
.art-top-dot{height:6px;width:6px;border-radius:50%;background:#8df6ed;box-shadow:0 0 10px #88f8ec}
.art-bottom{bottom:24px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
.art-line-small{font-size:10px;color:#9fd0e9;font-weight:800;letter-spacing:2px}
.art-bottom strong{font-size:32px;letter-spacing:1px;line-height:1.1}
.art-bottom strong span{color:#78e6f9}
.art-bottom-status{border:1px solid rgba(141,229,248,.17);background:rgba(19,44,61,.6);color:#80dfbc;border-radius:100px;font-size:10px;padding:7px 12px}
.art-bottom-status span{color:#d2ebf8;margin-left:5px}
.art-corner{position:absolute;z-index:3;width:28px;height:28px;pointer-events:none}
.art-corner-tl{top:12px;left:12px;border-top:1px solid #a1eefa;border-left:1px solid #a1eefa;border-top-left-radius:8px}
.art-corner-br{right:12px;bottom:12px;border-right:1px solid #a1eefa;border-bottom:1px solid #a1eefa;border-bottom-right-radius:8px}
.welcome-footnote{display:flex;align-items:center;gap:10px;margin-top:24px;font-size:9px;letter-spacing:1.6px;color:#5f87a5;font-weight:700}
.welcome-footnote>span:first-child{color:#92e7f3}
.welcome-footnote-rule{height:1px;flex:1;background:linear-gradient(90deg,rgba(130,198,239,.22),transparent)}
/* Conversation bubbles */
.messages{width:min(950px,100%);margin:auto;padding:40px clamp(22px,3vw,48px) 64px;display:flex;flex-direction:column;gap:24px}
.message{display:flex;align-items:flex-start;gap:14px;max-width:100%;animation:message-in .22s ease-out}
@keyframes message-in{from{opacity:.4;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.message.user{justify-content:flex-end}
.message.user .message-content{max-width:min(80%,685px);padding:14px 20px;border-radius:20px 20px 7px 20px;border:1px solid rgba(129,202,243,.32);background:linear-gradient(135deg,#1d4565,#1b3655);box-shadow:0 6px 25px #0002}
.message-avatar{width:43px;height:43px;border-radius:14px;box-shadow:0 6px 22px #0005}
.message.bot .message-content{flex:1;max-width:calc(100% - 57px);padding:4px 0 0}
.message-head{font-size:13px;font-weight:800;letter-spacing:.4px;color:#99f0fa;margin-bottom:9px}
.message-text{font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#e7f3ff}
.message.bot .message-text{color:#d7e8f5}
.message-tools{display:flex;justify-content:flex-start;margin-top:11px}
.message-copy{border:1px solid rgba(134,201,240,.12);background:rgba(24,48,68,.5);color:#89afc7;font-size:10px;padding:5px 10px;border-radius:8px}
.message-copy:hover{border-color:#86e8fa;color:#d7f7ff}
.message.pending .message-text:after{content:'▋';color:var(--ice);animation:blink .8s step-end infinite}
@keyframes blink{50%{opacity:0}}
/* Composer */
.composer-wrap{padding:10px max(27px,calc((100% - 940px)/2)) 21px;background:linear-gradient(transparent,rgba(6,14,26,.89) 22%,rgba(6,14,26,.98));flex:none;position:relative;z-index:1}
.composer{display:flex;align-items:flex-end;gap:8px;padding:10px 10px 10px 21px;background:linear-gradient(130deg,rgba(24,47,67,.96),rgba(20,38,58,.96));border:1px solid rgba(128,201,239,.37);border-radius:17px;box-shadow:0 12px 36px #0004,inset 0 1px #ffffff08;transition:.2s}
.composer:focus-within{border-color:#8bddeb;box-shadow:0 0 0 3px #75d8ef12,0 12px 36px #0004}
.composer textarea{flex:1;border:0;outline:0;resize:none;background:transparent;color:#effaff;padding:8px 0;line-height:1.7;min-height:31px;max-height:150px;overflow-y:auto;font-size:14px}
.composer textarea::placeholder{color:#7e9fb8}
.send-btn{width:46px;height:46px;flex:none;border:0;border-radius:13px;background:linear-gradient(125deg,#91ebf4,#82bcff);color:#0d283d;font-size:20px;box-shadow:0 5px 15px #2e91cc28;transition:.2s}
.send-btn:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.1)}
.composer-footer{margin:11px 0 0;color:#718da8;font-size:10px;line-height:1.6;text-align:center}
.composer-keyhint{color:#a7bfce}
.overlay{position:fixed;inset:0;z-index:10;background:#020910bd;backdrop-filter:blur(4px)}
/* Responsive */
@media(max-width:1160px){
  .app-layout{grid-template-columns:263px minmax(0,1fr)}
  .welcome-stage{grid-template-columns:minmax(0,1fr) minmax(210px,.74fr);gap:24px}
  .empty-chat{padding-inline:30px}
  .welcome-art{min-height:340px}
  .welcome-copy h2{font-size:clamp(39px,4.5vw,60px)}
  .suggestions{grid-template-columns:1fr 1fr}
  .suggestions button{min-height:87px}
}
@media(max-width:930px){
  .auth-layout{grid-template-columns:minmax(0,1fr) minmax(390px,1fr)}
  .intro-panel{padding:32px}
  .intro-footer{left:32px}
  .floating-card{display:none}
  .auth-panel{padding:40px 27px}
  .welcome-stage{grid-template-columns:1fr}
  .welcome-art{display:none}
  .empty-chat{width:min(710px,100%)}
  .suggestions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .welcome-copy{padding:8px 0}
}
@media(max-width:700px){
  .auth-layout{display:block}
  .intro-panel{min-height:215px;padding:22px 22px 28px;border-right:0;border-bottom:1px solid var(--line)}
  .intro-panel::before{background:linear-gradient(90deg,rgba(4,13,27,.95),rgba(5,17,31,.62)),url('/static/assets/gpt-full.png?v=cryo-original-20261029-02') 85% 27%/cover no-repeat}
  .intro-content{padding:0;margin:24px 0 0}
  .intro-content .eyebrow,.intro-content p,.feature-tags,.intro-footer{display:none}
  .intro-content h1{font-size:32px;margin:0}
  .auth-panel{padding:38px 23px 50px;min-height:calc(100dvh - 215px)}
  .auth-box h2{font-size:29px}
  .app-layout{display:block;height:100dvh}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:min(300px,84vw);z-index:20;transform:translateX(-104%);transition:transform .24s;box-shadow:15px 0 40px #0003}
  .sidebar.open{transform:translateX(0)}
  .mobile-close,.menu-toggle{display:block}
  .chat-main{height:100dvh}
  .topbar{height:72px;padding:0 15px;gap:8px}
  .topbar-bot{margin-right:auto;gap:9px}
  .avatar-small{width:44px;height:44px;border-radius:13px}
  .topbar-identity strong{font-size:13px}
  .online-line{font-size:10px}
  .model-pill{font-size:9px;max-width:30vw;padding:8px 9px}
  .empty-chat{padding:24px 19px 16px;justify-content:center}
  .welcome-kicker{font-size:9px;margin-bottom:12px}
  .welcome-copy h2{font-size:clamp(35px,8vw,50px);margin:15px 0}
  .welcome-copy p{font-size:12px;line-height:1.9}
  .welcome-quote{font-size:11px;margin:18px 0 21px}
  .suggestions{grid-template-columns:1fr;gap:9px}
  .suggestions button{min-height:58px;flex-direction:row;align-items:center;gap:10px;padding:10px 14px}
  .suggestion-symbol{min-width:22px}
  .suggestion-text small{display:none}
  .suggestion-arrow{position:static;margin-left:auto}
  .welcome-footnote{font-size:8px}
  .messages{padding:22px 14px 38px;gap:22px}
  .message-avatar{width:36px;height:36px;border-radius:11px}
  .message.bot .message-content{max-width:calc(100% - 50px)}
  .message.user .message-content{max-width:89%;padding:11px 14px}
  .message-text{font-size:13px}
  .composer-wrap{padding:6px 12px max(12px,env(safe-area-inset-bottom))}
  .composer{padding:7px 8px 7px 15px}
  .send-btn{width:40px;height:40px}
  .composer-footer{font-size:9px;margin:7px 0 0}
  .composer-keyhint,.composer-footer-sep{display:none}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* =====================================================
 * V3 | ICE BLUE ANIME TERMINAL: central character + two control columns
 * Real structural redesign, not just enlarged avatar.
 * ===================================================== */

.app-layout{grid-template-columns:258px minmax(0,1fr)}
.sidebar{background:linear-gradient(155deg,#0d2342 0%,#07172b 70%,#061326 100%);border-right:1px solid rgba(124,201,254,.22)}
.sidebar-header{padding-bottom:26px}
.sidebar-section-mark{color:#9bbfdc}
.new-chat{background:linear-gradient(120deg,#246688,#194369);border-color:rgba(127,220,250,.52)}
.sidebar-label{color:#add1e8}
.topbar{height:72px;padding:0 28px;background:linear-gradient(95deg,rgba(11,33,56,.95),rgba(8,23,42,.95));border-bottom-color:rgba(136,216,251,.19)}
.chat-main{background:linear-gradient(130deg,#0e2746 0%,#0b1f3b 42%,#07162b 100%)}
.chat-main::before{z-index:0;background:radial-gradient(ellipse at 52% 45%,rgba(74,184,232,.12),transparent 50%),linear-gradient(rgba(145,215,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(145,215,255,.035) 1px,transparent 1px);background-size:auto,48px 48px,48px 48px;mask-image:none}
.chat-scroll{z-index:1}
/* full height living dashboard */
.terminal-home{max-width:none;width:100%;min-height:100%;padding:14px clamp(16px,2vw,34px) 12px;display:flex;flex-direction:column;justify-content:stretch;gap:12px;background:radial-gradient(ellipse 44% 75% at 51% 52%,rgba(58,149,217,.16),transparent 82%)}
.terminal-ribbon,.terminal-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;color:#91bcd8;font-size:10px;letter-spacing:1.9px;font-weight:800;min-height:22px}
.terminal-ribbon b{color:#80def4;font-size:15px;margin:0 7px}
.live-light{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64eed3;box-shadow:0 0 10px rgba(87,245,200,.8);vertical-align:middle}
.terminal-ribbon .live-light{margin-right:8px}
.terminal-bottom{color:#5486a9;letter-spacing:1.7px;font-size:9px}
.terminal-dashboard{flex:1;display:grid;grid-template-columns:minmax(190px,.86fr) minmax(310px,1.47fr) minmax(204px,.86fr);gap:14px;min-height:560px;width:100%;max-width:1510px;margin:0 auto}
.terminal-left,.terminal-right{min-width:0;display:flex;flex-direction:column;gap:13px}
.terminal-panel{position:relative;min-width:0;background:linear-gradient(145deg,rgba(28,73,111,.64),rgba(13,37,66,.8));border:1px solid rgba(143,218,252,.24);border-radius:15px;box-shadow:inset 0 1px 0 rgba(226,250,255,.05),0 13px 25px #0002;overflow:hidden;padding:19px}
.terminal-panel::before{content:'';position:absolute;top:0;left:0;width:58px;height:2px;background:linear-gradient(90deg,#86eafd,transparent)}
.panel-eyebrow{color:#7dcce9;letter-spacing:1.65px;font-size:10px;font-weight:850}
.eyebrow-line{display:inline-block;width:14px;height:1px;margin-right:8px;background:#80e9f4;vertical-align:middle}
.greeting-panel{flex:0 0 auto;min-height:240px;padding:24px 19px 18px;background:linear-gradient(144deg,#173f68,#0d294a 76%)}
.greeting-panel h2{margin:24px 0 13px;font-size:clamp(22px,2.3vw,35px);line-height:1.35;letter-spacing:-.8px;color:#f7fcff}
.greeting-panel h2 span{color:#93edff}
.greeting-panel p{margin:0;color:#b3d0e5;font-size:12px;line-height:1.85}
.greeting-decoration{display:flex;gap:18px;justify-content:flex-end;margin-top:12px;color:#3f9ecb;font-size:17px}
.quicktalk-panel{flex:1;min-height:235px}
.panel-title{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:#d9f5ff;line-height:1.35;margin-bottom:17px}
.panel-title>span{font-size:9px;border:1px solid rgba(136,234,252,.45);color:#83e2f6;border-radius:7px;padding:3px 6px}
.panel-title small{margin-left:auto;color:#6595b7;font-size:9px;letter-spacing:1px;font-weight:800}
.terminal-quick-list{display:grid;gap:9px}
.terminal-quick-list button{width:100%;display:flex;align-items:center;gap:11px;min-height:65px;text-align:left;padding:11px;border-radius:11px;border:1px solid rgba(129,202,243,.2);color:#e7f7ff;background:linear-gradient(95deg,rgba(12,34,59,.82),rgba(21,55,83,.56));transition:.18s}
.terminal-quick-list button:hover{transform:translateX(3px);border-color:#75e1fa;background:#1e5376}
.shortcut-icon{display:grid;place-items:center;border-radius:10px;width:30px;height:34px;flex:none;background:rgba(87,165,218,.2);color:#a2eeff;font-size:18px}
.terminal-quick-list button>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:5px}
.terminal-quick-list strong{font-size:12px}
.terminal-quick-list small{font-size:10px;color:#83a8c3}
.shortcut-arrow{margin-left:auto;color:#7cd3ef;font-size:13px}
.micro-panel{flex:0 0 auto;padding:14px 16px}
.micro-panel p{font-size:11px;line-height:1.7;color:#a4c0d2;margin:8px 0 0}
/* The center character dominates the overall composition. */
.terminal-center{position:relative;isolation:isolate;min-width:0;overflow:hidden;min-height:560px;border:1px solid rgba(159,232,255,.35);border-radius:19px;background:radial-gradient(circle at 50% 46%,rgba(82,182,228,.34),transparent 55%),linear-gradient(135deg,#20517b,#0b2445 75%);box-shadow:0 20px 60px #0005,inset 0 0 80px #2d96df16}
.terminal-center::before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(0deg,#06182f 0%,rgba(7,23,45,.78) 15%,transparent 45%),linear-gradient(90deg,rgba(13,36,66,.27),transparent 15%,transparent 85%,rgba(13,36,66,.28))}
.terminal-center::after{content:'';position:absolute;z-index:0;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 59px,rgba(138,213,255,.045) 60px),repeating-linear-gradient(90deg,transparent 0 59px,rgba(138,213,255,.045) 60px)}
.terminal-ring{position:absolute;z-index:0;top:12%;left:50%;width:510px;height:510px;max-width:130%;transform:translateX(-50%);border-radius:50%;border:2px solid rgba(128,215,253,.21);box-shadow:0 0 0 40px rgba(124,204,248,.025),0 0 0 84px rgba(124,204,248,.024),inset 0 0 80px #60b5ed29;pointer-events:none}
.terminal-ring.ring-two{width:360px;height:360px;top:20%;border:1px dashed rgba(165,230,255,.28);box-shadow:none}
.character-image{position:absolute;z-index:1;inset:4% 3% -2%;background:url('/static/assets/gpt-avatar.png?v=cryo-original-20261029-02') 51% 35% / cover no-repeat;filter:contrast(1.04) saturate(.9);transform:scale(1.015);transition:transform .5s;mask-image:linear-gradient(to bottom,transparent 0%,black 10%,black 81%,transparent 99%)}
.terminal-center:hover .character-image{transform:scale(1.045)}
.float-bubble{position:absolute;z-index:4;color:#edffff;background:rgba(15,51,78,.82);border:1px solid rgba(155,232,255,.4);border-radius:12px;padding:9px 13px;font-size:11px;box-shadow:0 12px 28px #0004;backdrop-filter:blur(8px);white-space:nowrap}
.bubble-top{top:15%;left:5%}
.bubble-side{top:40%;right:3%;font-size:10px}
.character-cross{position:absolute;z-index:3;color:#a0eaff;text-shadow:0 0 12px #6dd8fc;pointer-events:none;font-size:25px}
.cross-a{top:34%;left:6%}.cross-b{top:21%;right:10%;font-size:17px}
.character-identity{position:absolute;z-index:4;bottom:0;left:0;right:0;padding:34px 24px 22px;text-align:center}
.identity-label{letter-spacing:2px;font-size:9px;color:#9acee7;font-weight:800}
.character-identity h2{margin:7px 0 6px;color:#f6fcff;line-height:1;font-size:clamp(36px,4.2vw,59px);letter-spacing:1px;text-shadow:0 5px 20px #001126}
.character-identity h2 span{color:#98eeff;font-size:.7em}
.character-identity p{font-size:12px;letter-spacing:1px;margin:0;color:#c4e1f0}
.identity-status{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;margin-top:13px;border:1px solid rgba(143,225,255,.25);background:rgba(17,55,76,.62);border-radius:999px;color:#d2f9ff;font-size:10px}
.stage-coordinate{position:absolute;z-index:4;color:#e3fbff;font-weight:800;font-size:9px;letter-spacing:2px;top:17px;text-shadow:0 1px 8px #102d50}
.coordinate-tl{left:19px}.coordinate-tr{right:19px}
.stage-corner{position:absolute;width:25px;height:25px;z-index:5;pointer-events:none}
.stage-corner-tl{left:10px;top:10px;border-top:1px solid #a5effb;border-left:1px solid #a5effb}
.stage-corner-br{right:10px;bottom:10px;border-bottom:1px solid #a5effb;border-right:1px solid #a5effb}
.terminal-right .terminal-panel{padding:18px 15px}
.companion-card{flex:0 0 auto}
.companion-profile{display:flex;align-items:center;gap:11px;border-radius:12px;background:rgba(60,139,180,.15);padding:10px;border:1px solid rgba(132,204,242,.2)}
.companion-head{width:54px;height:54px;flex:none;border-radius:13px;border:1px solid rgba(145,225,255,.31)}
.companion-profile>div:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}
.companion-profile strong{font-size:16px}
.companion-profile small{font-size:9px;letter-spacing:1.1px;color:#9bcde8}
.profile-light{width:7px;height:7px;border-radius:50%;background:#65edcb;margin-left:auto;box-shadow:0 0 11px #4bf0c7}
.companion-card>p{color:#aec9d9;font-size:11px;line-height:1.8;margin:13px 0}
.tag-line{display:flex;gap:6px;flex-wrap:wrap}
.tag-line span{padding:5px 8px;border-radius:6px;color:#c4edff;font-size:10px;background:#244e7180;border:1px solid #75bfe02f}
.access-card{flex:1;min-height:210px}
.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.control-grid button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:7px;min-height:67px;padding:10px 3px;background:linear-gradient(140deg,#2d6790a3,#173f67a6);border:1px solid rgba(141,209,242,.21);border-radius:10px;color:#c8eeff;font-size:11px;transition:.2s}
.control-grid button:hover{border-color:#91edff;transform:translateY(-2px);background:#2b6893}
.control-grid button span{font-size:21px;color:#a2f4ff}
.link-card{flex:0 0 auto}
.link-data{display:flex;justify-content:space-between;gap:5px;padding:8px 0;border-bottom:1px solid #81cbe820;color:#9bc2da;font-size:10px}
.link-data strong{color:#c5f3ff;font-size:11px;letter-spacing:.3px}
.signal-stripes{display:flex;gap:4px;margin-top:15px;height:18px;align-items:flex-end}
.signal-stripes i{flex:1;height:40%;border-radius:3px 3px 0 0;background:linear-gradient(#74e4fc,#357cae);opacity:.72}
.signal-stripes i:nth-child(3n){height:95%}.signal-stripes i:nth-child(2n){height:65%}.signal-stripes i:nth-child(5n){height:33%}
/* Chat sessions maintain a visible character portrait instead of reverting to plain chatbot. */
.conversation-scene{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:19px;align-items:start;padding:24px max(20px,2.6vw) 35px;max-width:1470px;min-height:100%;margin:auto}
.conversation-feed{background:rgba(9,28,52,.44);border:1px solid rgba(132,215,249,.16);min-height:450px;border-radius:17px;overflow:hidden}
.conversation-title{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(15,43,70,.96);border-bottom:1px solid rgba(132,215,249,.15);padding:16px 24px;color:#d1ebfa;font-size:11px}
.conversation-feed .messages{padding:26px 20px 50px;width:100%;margin:0;gap:23px}
.conversation-feed .message.bot .message-content{background:rgba(32,68,96,.42);border:1px solid rgba(132,215,249,.12);border-radius:0 15px 15px 15px;padding:14px}
.conversation-companion{position:sticky;top:24px;display:flex;flex-direction:column;gap:12px}
.conversation-portrait{position:relative;height:340px;overflow:hidden;border:1px solid rgba(156,225,248,.36);border-radius:17px;background:#153f66;box-shadow:0 14px 34px #0003}
.conversation-portrait-image{position:absolute;inset:0;background:url('/static/assets/gpt-avatar.png?v=cryo-original-20261029-02') center 30%/cover no-repeat}
.conversation-portrait::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#081e38 0%,transparent 65%);pointer-events:none}
.portrait-caption{position:absolute;z-index:1;bottom:17px;left:15px;right:15px;display:flex;flex-direction:column;gap:7px;color:#fff}
.portrait-caption>span{font-size:9px;letter-spacing:1.6px;color:#addef2}
.portrait-caption strong{font-size:29px}
.portrait-caption small{color:#c7e6f2;font-size:10px}
.portrait-caption .live-light{width:5px;height:5px;margin-right:5px}
.conversation-info p{line-height:1.8;color:#b2ccdc;font-size:11px}
.conversation-info button{width:100%;border:1px solid #80d6f18c;border-radius:9px;background:#21557a;color:#e3f7ff;font-size:11px;padding:10px}
.conversation-info button:hover{background:#2f7298}
.composer-wrap{background:linear-gradient(transparent,rgba(7,19,38,.93) 35%,#071426);padding:6px max(25px,calc((100% - 1050px)/2)) 15px}
.composer{background:linear-gradient(125deg,#1d4767,#173953);border-color:#8dddf069}
/* Small laptops: panels stay, with tighter density. */
@media(max-width:1360px){
 .app-layout{grid-template-columns:230px minmax(0,1fr)}
 .terminal-home{padding:12px 13px 9px}
 .terminal-dashboard{grid-template-columns:minmax(172px,.85fr) minmax(285px,1.48fr) minmax(185px,.84fr);gap:10px;min-height:535px}
 .terminal-panel{padding:14px}
 .terminal-right .terminal-panel{padding:13px}
 .greeting-panel{min-height:215px}
 .greeting-panel h2{margin:14px 0 10px}
 .float-bubble{font-size:10px}
 .quicktalk-panel{min-height:212px}
 .terminal-quick-list button{min-height:54px;padding:8px}
 .control-grid button{min-height:60px}
 .character-identity{padding-bottom:17px}
}
@media(max-width:1090px){
 .terminal-dashboard{grid-template-columns:minmax(175px,.8fr) minmax(270px,1.3fr);}
 .terminal-right{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .terminal-right .terminal-panel{min-height:auto}
 .terminal-center{grid-column:2;grid-row:1}
 .terminal-left{grid-column:1;grid-row:1}
 .terminal-dashboard{min-height:0}
 .terminal-center{min-height:530px}
 .access-card{min-height:170px}
 .conversation-scene{grid-template-columns:minmax(0,1fr) 210px}
}
@media(max-width:830px){
 .terminal-dashboard{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
 .terminal-right{grid-template-columns:1fr 1fr}
 .link-card{display:none}
 .terminal-center{min-height:520px}
 .float-bubble.bubble-side{display:none}
 .conversation-scene{grid-template-columns:minmax(0,1fr)}
 .conversation-companion{position:static;flex-direction:row}
 .conversation-portrait{height:195px;width:40%;flex:none}
 .conversation-info{flex:1}
}
@media(max-width:700px){
 .app-layout{display:block}
 .topbar{height:72px}
 .terminal-home{padding:13px 13px 20px;display:block}
 .terminal-ribbon{font-size:8px;letter-spacing:1.1px;margin:0 0 10px}
 .terminal-ribbon span:nth-child(2){display:none}
 .terminal-dashboard{display:flex;flex-direction:column;gap:10px}
 .terminal-center{order:0;min-height:410px;width:100%;flex:none}
 .character-image{background-position:center 32%}
 .bubble-top{top:14%;left:4%}
 .character-identity h2{font-size:37px}
 .terminal-left{order:1;display:block}
 .terminal-right{order:2;display:grid;grid-template-columns:1fr 1fr}
 .greeting-panel,.micro-panel{display:none}
 .quicktalk-panel{min-height:0}
 .terminal-quick-list{grid-template-columns:1fr;gap:7px}
 .terminal-quick-list button{min-height:48px}
 .companion-card{display:none}
 .access-card,.link-card{display:block;min-height:0}
 .terminal-bottom{margin-top:12px;font-size:8px}
 .terminal-bottom span:last-child{display:none}
 .conversation-scene{padding:10px 12px;display:block}
 .conversation-companion{display:none}
 .conversation-feed{min-height:300px}
 .conversation-title{padding:12px 14px}
 .conversation-feed .messages{padding:15px 10px 30px}
}
@media(max-width:440px){
 .terminal-center{min-height:340px}
 .character-identity{padding:15px 8px 12px}
 .character-identity h2{font-size:30px}
 .character-identity p{font-size:10px}
 .terminal-ribbon{font-size:7px}
 .float-bubble{padding:7px 10px;font-size:9px}
}
@media(prefers-reduced-motion:reduce){.terminal-center:hover .character-image{transform:none}}

/* V3.1 dynamic character / model selector */
.character-picker-wrap{position:relative;margin-left:auto;flex:none}
.character-toggle{display:flex;align-items:center;gap:10px;background:#153651;color:#e3faff;border:1px solid #77d8fc57;border-radius:12px;padding:5px 12px 5px 6px;min-height:46px;box-shadow:0 8px 25px #0002;font-size:12px;font-weight:750}
.character-toggle:hover,.character-toggle:focus-visible{border-color:#9decff;background:#1a4a6a}
.picker-avatar{width:33px;height:33px;display:block;flex:none;background-size:cover;background-position:center;border-radius:9px}
.character-menu{position:absolute;z-index:120;right:0;top:calc(100% + 10px);width:min(310px,calc(100vw - 28px));border-radius:16px;border:1px solid #86e9fb66;background:#0c233c;box-shadow:0 18px 50px #000a;padding:13px}
.character-menu-heading{font-size:11px;color:#a2e2f8;letter-spacing:1.4px;font-weight:800;padding:3px 5px 10px}
.character-menu-items{display:grid;gap:8px}
.role-option{position:relative;display:flex;align-items:center;text-align:left;gap:12px;width:100%;background:linear-gradient(135deg,#133451,#11283f);border:1px solid #7de9ff33;border-radius:12px;padding:11px;color:#e5f8ff;min-height:65px}
.role-option:hover{border-color:#8aeaff;transform:translateY(-1px)}
.role-option.active{background:linear-gradient(135deg,#1b5876,#12405d);border-color:#7ce6ff}
.role-option .role-icon{width:43px;height:43px;flex:none;border-radius:11px;border:1px solid #91e2ff55;background-position:center;background-size:cover}
.role-option .role-caption{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.role-option .role-caption strong{font-size:13px}
.role-option .role-caption small{font-size:10px;color:#9ec9dc}
.role-option .role-status{font-size:9px;border-radius:999px;padding:4px 7px;background:#1c6083;color:#9cf3ff;white-space:nowrap}
.role-option.unconfigured .role-status{background:#5b4c35;color:#ffe7b1}
.role-card-list{display:grid;gap:10px}
.role-panel-hint{font-size:10px;color:#a4c5dd;line-height:1.7;margin:13px 0 0}
.menu-help{padding:10px 6px 2px;color:#93b8d2;font-size:10px}
.topbar .model-pill{flex:none;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Character skins use images kept in static/assets, not hardcoded JS URLs. */
body[data-character="deepseek"] .avatar-image,
body[data-character="deepseek"] .brand-symbol-image,
body[data-character="deepseek"] .character-image,
body[data-character="deepseek"] .conversation-portrait-image{background-image:url('/static/assets/deepseek-whale-character.webp?v=cryo-original-20261029-02');background-size:cover;background-position:center}
body[data-character="deepseek"] .avatar-image,
body[data-character="deepseek"] .brand-symbol-image{background-image:url('/static/assets/deepseek-whale-character.webp?v=cryo-original-20261029-02')}
body[data-character="deepseek"] .terminal-center{background:radial-gradient(circle at 50% 46%,#227a9b6b,transparent 60%),linear-gradient(135deg,#0b536d,#082742 75%)}
body[data-character="deepseek"] .character-image{filter:none;opacity:.99}
body[data-character="deepseek"] .conversation-portrait{background:#083e59}
body[data-character="deepseek"] .topbar .topbar-sparkle{color:#72efff}
@media(max-width:850px){.topbar{gap:10px}.character-toggle{font-size:11px;padding-right:9px}.character-toggle .picker-avatar{width:28px;height:28px}.topbar .model-pill{display:none}}
@media(max-width:430px){.character-toggle{gap:6px;min-height:40px}.character-toggle .picker-avatar{width:25px;height:25px}.topbar{padding:0 12px}.character-toggle-label{max-width:90px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}}

.role-icon-gpt{background-image:url('/static/assets/gpt-avatar.png?v=cryo-original-20261029-02')}
.role-icon-deepseek{background-image:url('/static/assets/deepseek-whale-character.webp?v=cryo-original-20261029-02')}


/* CRYOTALE V3.3 — a site identity independent of the selected AI character. */
.site-mark{display:grid;place-items:center;isolation:isolate;flex:none;width:48px;height:48px;border-radius:15px;
  background:radial-gradient(circle at 24% 22%,rgba(195,249,255,.45),transparent 45%),
             linear-gradient(145deg,#225f85 0%,#10314f 48%,#0a1d36 100%);
  box-shadow:inset 0 0 0 1px rgba(156,232,255,.45),0 8px 24px rgba(0,0,0,.25),0 0 20px rgba(85,218,247,.18);
  color:#b5f5ff;font-size:29px;text-shadow:0 0 16px #86efffa8}
.site-mark::before{content:'❄';line-height:1}
@media (max-width:650px){.site-mark{width:43px;height:43px;font-size:26px}}

/* CRYOTALE Grok娘 — scoped theme; GPT娘, global site identity and mobile drawer unchanged. */
.role-icon-grok{background-image:url('/static/assets/grok-character.webp?v=cryo-original-20261029-02');background-position:center 29%}
body[data-character="grok"] .avatar-image,
body[data-character="grok"] .character-image,
body[data-character="grok"] .conversation-portrait-image{background-image:url('/static/assets/grok-character.webp?v=cryo-original-20261029-02')}
body[data-character="grok"] .avatar-image{background-position:center 28%}
body[data-character="grok"] .character-image{background-position:center 36%;filter:contrast(1.03) saturate(1.04)}
body[data-character="grok"] .conversation-portrait-image{background-position:center 31%}
body[data-character="grok"] .terminal-center{background:radial-gradient(circle at 52% 43%,rgba(199,46,79,.30),transparent 64%),linear-gradient(135deg,#370e22,#121529 78%)}
body[data-character="grok"] .conversation-portrait{background:#2c101f}
body[data-character="grok"] .topbar .topbar-sparkle{color:#ff7a9d}
body[data-character="grok"] .role-option.active{border-color:#ee638c;background:linear-gradient(135deg,#55203b,#302139)}
body[data-character="grok"] .identity-label,
body[data-character="grok"] .stage-coordinate{color:#ffc0d0}


/* Claude大小姐 — isolated amber/gold character skin; other site colors remain intact. */
.role-icon-claude{background-image:url('/static/assets/claude-character.webp?v=cryo-original-20261029-02');background-position:center 24%}
body[data-character="claude"] .avatar-image,
body[data-character="claude"] .character-image,
body[data-character="claude"] .conversation-portrait-image{background-image:url('/static/assets/claude-character.webp?v=cryo-original-20261029-02')}
body[data-character="claude"] .avatar-image{background-position:center 24%}
body[data-character="claude"] .character-image{background-position:center 31%;filter:contrast(1.02) saturate(1.02)}
body[data-character="claude"] .conversation-portrait-image{background-position:center 29%}
body[data-character="claude"] .terminal-center{background:radial-gradient(circle at 50% 40%,rgba(222,149,82,.22),transparent 63%),linear-gradient(135deg,#302219,#13243c 80%)}
body[data-character="claude"] .conversation-portrait{background:#2f211b}
body[data-character="claude"] .topbar .topbar-sparkle{color:#ffca86}
body[data-character="claude"] .role-option.active{border-color:#e7b478;background:linear-gradient(135deg,#49352b,#26344a)}
body[data-character="claude"] .identity-label,
body[data-character="claude"] .stage-coordinate{color:#ffdcac}

/* Gemini娘 — star-blue / soft-gold character-only skin. Other roles remain untouched. */
.role-icon-gemini{background-image:url('/static/assets/gemini-character.webp?v=cryo-original-20261029-02');background-position:center 26%}
body[data-character="gemini"] .avatar-image,
body[data-character="gemini"] .character-image,
body[data-character="gemini"] .conversation-portrait-image{background-image:url('/static/assets/gemini-character.webp?v=cryo-original-20261029-02')}
body[data-character="gemini"] .avatar-image{background-position:center 25%}
body[data-character="gemini"] .character-image{background-position:center 35%;filter:contrast(1.01) saturate(1.02)}
body[data-character="gemini"] .conversation-portrait-image{background-position:center 30%}
body[data-character="gemini"] .terminal-center{background:radial-gradient(circle at 50% 44%,rgba(117,149,229,.30),transparent 65%),linear-gradient(135deg,#17233f,#14263c 79%)}
body[data-character="gemini"] .conversation-portrait{background:#233352}
body[data-character="gemini"] .topbar .topbar-sparkle{color:#ecdca9}
body[data-character="gemini"] .role-option.active{border-color:#c6b4f6;background:linear-gradient(135deg,#2e3c65,#343047)}
body[data-character="gemini"] .identity-label,
body[data-character="gemini"] .stage-coordinate{color:#e9d9ff}

/* CRYOTALE ROLE-LIST SCROLL V2 BEGIN */
/* Only the right-hand character selector scrolls. Top-right menu is untouched. */
#character-panel-options.role-card-list {
  --cryotale-role-height: 76px;
  --cryotale-role-gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: var(--cryotale-role-height);
  gap: var(--cryotale-role-gap);
  max-height: 334px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(144, 213, 243, .65) transparent;
  padding-right: 4px;
}
#character-panel-options .role-option {
  min-height: 0;
  height: var(--cryotale-role-height);
}
#character-panel-options::-webkit-scrollbar { width: 6px; }
#character-panel-options::-webkit-scrollbar-track { background: transparent; }
#character-panel-options::-webkit-scrollbar-thumb {
  background: rgba(144, 213, 243, .55);
  border-radius: 10px;
}
#character-panel-options::-webkit-scrollbar-thumb:hover { background: #90d5f3; }
/* CRYOTALE ROLE-LIST SCROLL V2 END */

/* CRYOTALE WHALE-SKIN V1 BEGIN */
/* Only DeepSeek's second-slot portraits/selection use the approved whale-girl art. */
.role-icon-deepseek { background-image: url('/static/assets/deepseek-whale-character.webp?v=cryo-original-20261029-02'); background-position: center 30%; }
body[data-character="deepseek"] .avatar-image,
body[data-character="deepseek"] .brand-symbol-image,
body[data-character="deepseek"] .character-image,
body[data-character="deepseek"] .conversation-portrait-image {
  background-image: url('/static/assets/deepseek-whale-character.webp?v=cryo-original-20261029-02');
  background-size: cover;
}
body[data-character="deepseek"] .avatar-image,
body[data-character="deepseek"] .brand-symbol-image { background-position: center 30%; }
body[data-character="deepseek"] .character-image { background-position: center 34%; filter: contrast(1.015) saturate(1.025); opacity: 1; }
body[data-character="deepseek"] .conversation-portrait-image { background-position: center 30%; }
body[data-character="deepseek"] .role-option.active { background: linear-gradient(135deg,#144a72,#102b50); border-color: #65c9f3; }
body[data-character="deepseek"] .topbar .topbar-sparkle,
body[data-character="deepseek"] .stage-coordinate { color: #8ae8ff; }
/* CRYOTALE WHALE-SKIN V1 END */

/* CRYOTALE QWEN-006 V1 BEGIN */
/* Qwen娘 only. Existing themes and independent four-card scrolling are untouched. */
.role-icon-qwen{background-image:url('/static/assets/qwen-character.webp?v=cryo-original-20261029-02');background-position:center 28%}
body[data-character="qwen"] .avatar-image,
body[data-character="qwen"] .brand-symbol-image,
body[data-character="qwen"] .character-image,
body[data-character="qwen"] .conversation-portrait-image{background-image:url('/static/assets/qwen-character.webp?v=cryo-original-20261029-02');background-size:cover}
body[data-character="qwen"] .avatar-image,
body[data-character="qwen"] .brand-symbol-image{background-position:center 27%}
body[data-character="qwen"] .character-image{background-position:center 37%;filter:contrast(1.015) saturate(1.025);opacity:1}
body[data-character="qwen"] .conversation-portrait-image{background-position:center 31%}
body[data-character="qwen"] .terminal-center{background:radial-gradient(circle at 51% 42%,rgba(165,94,223,.29),transparent 64%),linear-gradient(135deg,#30204d,#14213c 80%)}
body[data-character="qwen"] .conversation-portrait{background:#36284e}
body[data-character="qwen"] .topbar .topbar-sparkle{color:#dbb0ff}
body[data-character="qwen"] .role-option.active{border-color:#c899fa;background:linear-gradient(135deg,#493265,#292b4f)}
body[data-character="qwen"] .identity-label,
body[data-character="qwen"] .stage-coordinate{color:#e9cdff}
/* CRYOTALE QWEN-006 V1 END */

/* CRYOTALE GLM-007 V1 BEGIN */
/* GLM娘 ONLY — no global styles, preserving the existing role-card scrolling. */
.role-icon-glm{background-image:url('/static/assets/glm-character.webp?v=cryo-original-20261029-02');background-position:center 29%}
body[data-character="glm"] .avatar-image,
body[data-character="glm"] .brand-symbol-image,
body[data-character="glm"] .character-image,
body[data-character="glm"] .conversation-portrait-image{background-image:url('/static/assets/glm-character.webp?v=cryo-original-20261029-02');background-size:cover}
body[data-character="glm"] .avatar-image,
body[data-character="glm"] .brand-symbol-image{background-position:center 27%}
body[data-character="glm"] .character-image{background-position:center 37%;filter:contrast(1.02) saturate(1.03);opacity:1}
body[data-character="glm"] .conversation-portrait-image{background-position:center 30%}
body[data-character="glm"] .terminal-center{background:radial-gradient(circle at 50% 43%,rgba(56,228,211,.23),transparent 65%),linear-gradient(135deg,#16353c,#121c35 82%)}
body[data-character="glm"] .conversation-portrait{background:#163b43}
body[data-character="glm"] .topbar .topbar-sparkle{color:#8af7ee}
body[data-character="glm"] .role-option.active{border-color:#7eecdf;background:linear-gradient(135deg,#15505c,#233b50)}
body[data-character="glm"] .identity-label,
body[data-character="glm"] .stage-coordinate{color:#a7fff5}
/* CRYOTALE GLM-007 V1 END */

/* CRYOTALE CHARACTER PICKER 5-ROW SCROLL V1 BEGIN */
/* Top-right dropdown ONLY. Never change the right-side character cards. */
#character-menu #character-menu-items.character-menu-items {
  max-height: min(372px, calc(100dvh - 160px));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #78bfd8 #102d47;
  align-content: start;
  padding-right: 4px;
}
#character-menu #character-menu-items.character-menu-items::-webkit-scrollbar { width: 6px; }
#character-menu #character-menu-items.character-menu-items::-webkit-scrollbar-track { background: #102d47; border-radius: 999px; }
#character-menu #character-menu-items.character-menu-items::-webkit-scrollbar-thumb { background: #78bfd8; border-radius: 999px; }
@media (max-width: 850px) {
  #character-menu #character-menu-items.character-menu-items {
    max-height: min(372px, calc(70dvh - 88px));
  }
}
/* CRYOTALE CHARACTER PICKER 5-ROW SCROLL V1 END */

/* CRYOTALE MILUO 009 — independently branded static illustration; existing MP4s unchanged. */
.role-icon-mimo{background-image:url('/static/assets/miluo-character.png');background-position:30% 27%}
body[data-character="mimo"] .brand-symbol-image,
body[data-character="mimo"] .avatar-image,
body[data-character="mimo"] .character-image,
body[data-character="mimo"] .conversation-portrait-image{background-image:url('/static/assets/miluo-character.png');background-size:cover}
body[data-character="mimo"] .character-image{background-position:37% 40%;filter:contrast(1.03) saturate(1.03);opacity:1}
body[data-character="mimo"] .conversation-portrait-image{background-position:37% 42%}
body[data-character="mimo"] .terminal-center{background:radial-gradient(circle at 52% 40%,rgba(248,158,66,.24),transparent 64%),linear-gradient(135deg,#2d253c,#132b46 82%)}
body[data-character="mimo"] .conversation-portrait{background:#31253d}
body[data-character="mimo"] .topbar .topbar-sparkle{color:#ffc385}
body[data-character="mimo"] .role-option.active{border-color:#ffb66d;background:linear-gradient(135deg,#65402f,#26364b)}
body[data-character="mimo"] .identity-label,body[data-character="mimo"] .stage-coordinate{color:#ffdbb2}

/* CRYOTALE KIMI / YUEQI V21: dedicated official portrait, no global layout changes. */
.role-icon-yueqi{background-image:url('/static/assets/yueqi-moon-v21.webp?v=20261107-01');background-position:31% 29%;background-size:cover}
body[data-character="yueqi"] .brand-symbol-image,
body[data-character="yueqi"] .avatar-image,
body[data-character="yueqi"] .character-image,
body[data-character="yueqi"] .conversation-portrait-image{background-image:url('/static/assets/yueqi-moon-v21.webp?v=20261107-01');background-size:cover}
body[data-character="yueqi"] .character-image{background-position:38% 42%;filter:contrast(1.03) saturate(1.03);opacity:1}
body[data-character="yueqi"] .conversation-portrait-image{background-position:30% 37%}
body[data-character="yueqi"] .terminal-center{background:radial-gradient(circle at 43% 25%,rgba(176,138,236,.20),transparent 65%),linear-gradient(135deg,#251936,#132b46 85%)}
body[data-character="yueqi"] .topbar .topbar-sparkle{color:#ddc4fc}
body[data-character="yueqi"] .role-option.active{border-color:#c7b1f7;background:linear-gradient(135deg,#3d3157,#1c3450)}

/* CRYOTALE_R6_YUEQI_PORTRAIT_LOCKED_38 */

@media (max-width: 768px){
  .usage-note-toggle{padding:8px 9px;font-size:10px;border-radius:10px}
  .usage-note-panel{padding:8px 9px;border-radius:10px}
}
