.sidebar-label{font-size:.69rem;letter-spacing:.12em;font-weight:800;color:#8999a2;margin:.2rem .7rem .4rem}.conversation-list{display:flex;flex-direction:column;gap:.25rem;max-height:42vh;overflow:auto}.conversation-item{display:flex;flex-direction:column;align-items:flex-start;gap:.18rem;width:100%;padding:.75rem;border:0;border-radius:.75rem;background:transparent;color:#314654;text-align:left}.conversation-item:hover{background:#e9eff1}.conversation-item.active{background:#e2ebee}.conversation-item strong{font-size:.9rem}.conversation-item small{color:#80909a;font-size:.73rem}.new-conversation{color:#9c6331}.audit-card{margin-top:1.5rem}.audit-row{border-top:1px solid #edf1f2;padding:.8rem 0;font-size:.84rem}.audit-row summary{cursor:pointer;font-weight:700}.audit-row pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7f8;border-radius:.6rem;padding:.8rem;max-height:300px;overflow:auto}.mobile-menu #mobile-conversation-list{display:flex;flex-direction:column;border-bottom:1px solid #e7ecee;padding-bottom:.35rem;margin-bottom:.35rem}.mobile-menu .conversation-item{width:100%}

/* HUGWORD — orbital interface */
:root{color-scheme:dark;color:#e7eefb;background:#03060e;--line:#a2c6ff22;--muted:#93a5c0;--cyan:#65e6ff;--orange:#ffaf75}
body{background:radial-gradient(ellipse at 15% 10%,#12274c55,transparent 48%),radial-gradient(ellipse at 90% 70%,#25124344,transparent 50%),#03060e}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(1px 1px at 19% 25%,#ffffff99 50%,transparent),radial-gradient(1px 1px at 73% 53%,#a5dfff88 50%,transparent),radial-gradient(1px 1px at 48% 82%,#fff6 50%,transparent);background-size:237px 229px,317px 331px,157px 199px;opacity:.45;z-index:0}.app-shell{position:relative;z-index:1}.brand{color:#f5f8ff;letter-spacing:-.055em}.brand-mark{border:1px solid #87caff44;background:linear-gradient(145deg,#123954,#0b1123);color:var(--cyan);box-shadow:0 0 28px #40ceff18}.brand-dot{color:var(--cyan)}.eyebrow{color:var(--cyan);font-size:.68rem;letter-spacing:.2em}.auth-panel{max-width:1600px;margin:auto;grid-template-columns:minmax(0,1.55fr) minmax(320px,.8fr);grid-template-rows:70px 1fr;gap:1rem 7%;padding:1rem 5% 2rem;background:none;overflow:hidden}.auth-panel>.brand{align-self:center}.auth-panel>.brand:after{content:"A LITTLE CLOSER, ANYWHERE";margin-left:auto;font:10px ui-monospace,monospace;letter-spacing:.18em;color:#8296b1}.auth-copy{max-width:none;align-self:center;padding-top:1rem}.mission-label{font:10px ui-monospace,monospace;letter-spacing:.17em;color:#98a9bf;display:flex;align-items:center;gap:.7rem}.signal-dot{width:6px;height:6px;border-radius:50%;background:#72f1ce;box-shadow:0 0 13px #72f1ce}.auth-copy h1{font-size:clamp(2.9rem,4.7vw,5rem);font-weight:650;letter-spacing:-.06em;line-height:1.07;margin:1.5rem 0 1rem}.auth-copy h1 span{color:#80d9fa}.auth-copy p{font-size:.95rem;color:#91a4c0;line-height:1.7;margin:0}.earth-scene{position:relative;margin:1.2rem -1rem 0;min-height:280px}.earth-scene canvas{display:block;width:100%;height:clamp(380px,46vw,620px)}.orbit-caption{display:flex;justify-content:space-between;position:absolute;top:10px;left:1rem;right:1rem;font:9px ui-monospace,monospace;letter-spacing:.15em;color:#647c9b;pointer-events:none}.earth-caption{display:flex;align-items:center;justify-content:space-between;margin:0 1rem;font-size:.78rem;color:#a3b8d1}.earth-caption small{display:block;font-size:.65rem;color:#637b99;margin-top:.35rem}.earth-caption button{background:#0b1425;border:1px solid var(--line);border-radius:20px;padding:.5rem .8rem;font-size:.7rem;color:#a6bdd5}.card{background:linear-gradient(140deg,#111c2ae8,#090f1cef);border:1px solid var(--line);border-radius:1.3rem;box-shadow:0 20px 70px #0004,inset 0 1px #e0f6ff09}.auth-panel .card{position:relative;padding:2.4rem;gap:1.1rem;box-shadow:0 30px 100px #0008,0 0 70px #369fff09}.auth-panel .card:before{content:"";position:absolute;left:30px;right:30px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,#65e6ff88,transparent)}.auth-panel .card h2{font-size:2.05rem;line-height:1.15;letter-spacing:-.045em;font-weight:600;margin:.5rem 0 0}.login-intro{font-size:.86rem;line-height:1.6;color:var(--muted);margin:0 0 .8rem}.form-stack label,.inline-form label{font-size:.8rem;font-weight:500;color:#b4c5dd}.form-stack input:not([type=radio]):not([type=checkbox]),.form-stack select,.inline-form input{color:#ecf4ff;background:#040a15bb;border:1px solid #97bbed26;border-radius:.65rem;padding:.92rem 1rem;transition:border-color .2s,box-shadow .2s}.form-stack input:focus,.form-stack select:focus,.inline-form input:focus{border-color:#65e6ff99;box-shadow:0 0 0 3px #65e6ff12}input::placeholder,textarea::placeholder{color:#6c809c}button{transition:background .2s,box-shadow .2s,transform .2s}button:focus-visible,a:focus-visible,.choice:has(input:focus-visible){outline:2px solid var(--cyan);outline-offset:4px}.primary-button{background:linear-gradient(110deg,#9beaff,#64c8f4);color:#051423;border:1px solid #b8f3ff80;border-radius:.65rem;box-shadow:0 5px 24px #57beff14;font-size:.85rem;min-height:3.2rem}.primary-button:hover{background:#b1f0ff;box-shadow:0 7px 32px #57beff33;transform:translateY(-1px)}.primary-button span{font-size:1.35rem}.hint{color:#7b91ad;font-size:.76rem}.login-features{display:flex;flex-wrap:wrap;gap:.7rem;padding-top:1.3rem;margin-top:.4rem;border-top:1px solid var(--line);font-size:.67rem;color:#91abc7}.login-features span:first-child{color:#a1d5ed}.topbar{background:#070d18cc;border-color:var(--line);backdrop-filter:blur(16px)}.text-button,.nav-button{color:#9fb2ce}.text-button:hover,.nav-button:hover{color:var(--cyan)}.section-heading p{color:var(--muted)}.section-heading h1{font-weight:600}.admin-content,.profile-content{max-width:1060px}.user-row,.audit-row{border-color:var(--line)}.user-row small,.conversation-item small{color:#839ab8}.secondary-button{background:#122239;border-color:#98caff2e;color:#b9dfff}.secondary-button:hover{background:#1b3552}.credentials{background:#122b2c;border-color:#7de5c64a;color:#b2eedc}.choice{background:#080f1d;border-color:var(--line)}.choice:has(input:checked){background:#123040;border-color:#69d5ff88}.choice-art{background:#172538;color:#b7d9f4}.choice:has(input:checked) .choice-art{background:#1c5162;color:#9af0ff}.form-divider{background:var(--line)}.check-row input{accent-color:#6bd9ff}.chat-layout{background:transparent}.sidebar{background:#060c17ed;border-color:var(--line)}.sidebar-label{color:#6884a6}.nav-button:hover,.conversation-item:hover{background:#142238}.conversation-item{color:#b6c8e2}.conversation-item.active{background:linear-gradient(100deg,#163449,#101c2c);box-shadow:inset 2px 0 var(--cyan)}.new-conversation{color:var(--cyan)}.danger-button{color:#e6a1af}.chat-header{background:#08101cd9;border-color:var(--line)}.avatar{color:#b2efff;background:radial-gradient(circle at 30% 20%,#377e98,#142745 70%);border:1px solid #8ae5ff50;box-shadow:0 0 25px #65e6ff14}.companion-heading span{color:#8da4c1}.chat-main{background:radial-gradient(ellipse at 75% 20%,#1c31582e,transparent 60%)}.empty-symbol{background:linear-gradient(140deg,#183c56,#132039);color:var(--cyan);border:1px solid var(--line);box-shadow:0 0 50px #65e6ff18}.empty-chat p{color:#8aa3c2}.message.assistant{background:#111e30;border:1px solid #83a9dc1c}.message.user{background:linear-gradient(130deg,#173d55,#193151);border:1px solid #84daff25}.message .russian{color:#99afca;border-color:#a2c6ff22}.message.user .russian{color:#b0c7df}.message .proactive-label{color:#7de5c6}.composer-wrap{background:#070e1beb;border-color:var(--line)}.composer{background:#0d1829;border-color:#8ebafa33;box-shadow:0 6px 30px #0003}.composer textarea{color:#e9f3ff}.composer button{background:#86ddfa;color:#061222}.composer-hint,.typing{color:#8096b5}.icon-button{color:#aadaf0}.mobile-menu{background:#0c1728;border-color:var(--line);box-shadow:0 20px 60px #0009}.mobile-menu button{color:#b8cce6}.mobile-menu button:hover{background:#1a2e47}.mobile-menu #mobile-conversation-list{border-color:var(--line)}.audit-row pre{background:#050c17;color:#a7c6e6}.toast{background:#153149;border:1px solid #83dcff55;box-shadow:0 14px 40px #0008}.chat-layout .brand{font-size:1.4rem}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#38506b;border-radius:8px}
@media(min-width:1400px){.auth-panel{column-gap:9%}.auth-panel .card{max-width:460px;width:100%;justify-self:end}}
@media(max-width:800px){.auth-panel{grid-template-columns:1fr;grid-template-rows:auto;gap:1.5rem;padding:1rem 6% 3rem}.auth-panel>.brand:after{font-size:8px;letter-spacing:.08em}.auth-copy{padding-top:1rem}.auth-copy h1{font-size:clamp(2.65rem,8vw,4rem)}.auth-copy p{font-size:.9rem}.auth-panel .card{max-width:520px;width:100%;justify-self:center;padding:1.7rem}.earth-scene canvas{height:390px}.earth-scene{margin-top:.5rem}.mission-label{font-size:8px}.auth-panel .card h2{font-size:1.85rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Large globe gets its own full-width stage. */
.auth-panel>.earth-scene{grid-column:1/-1;width:100%;margin:0;min-width:0}
.auth-panel>.earth-scene canvas{height:clamp(760px,80vw,1150px)}
.auth-panel .auth-copy{align-self:center}
.auth-panel .card{align-self:center}
@media(max-width:800px){.auth-panel>.earth-scene{grid-row:3}.auth-panel>.earth-scene canvas{height:500px}.auth-panel #login-form{grid-row:4}}

/* Orbital identity */
.brand{gap:.8rem;font-weight:650;letter-spacing:.055em;font-size:1.35rem;text-transform:uppercase}
.brand .brand-mark{width:3.2rem;height:3.2rem;display:block;flex-shrink:0;border:0;border-radius:0;background:none;box-shadow:none;filter:drop-shadow(0 0 12px #5eceff22)}
.brand-dot{display:inline-block;margin-left:.07em;color:#80eaff;text-shadow:0 0 14px #69dfff99}
.chat-layout .brand{font-size:1.08rem;gap:.55rem}.sidebar .brand-mark{width:2.65rem;height:2.65rem}
@media(max-width:580px){.brand{font-size:1.05rem;gap:.55rem}.brand .brand-mark{width:2.7rem;height:2.7rem}.auth-panel>.brand:after{max-width:100px;text-align:right;line-height:1.6}}

/* Earth is the cinematic backdrop of the entry screen. */
.auth-panel{position:relative;isolation:isolate;max-width:none;min-height:100svh;grid-template-rows:76px 1fr;column-gap:8%;padding:1.2rem 6% 5rem;overflow:hidden;background:#03060e}
.auth-panel>.earth-scene{position:absolute;inset:0;z-index:-2;width:100%;height:100%;margin:0;pointer-events:none;opacity:.82}
.auth-panel>.earth-scene canvas{width:100%;height:100%;min-height:0}
.auth-panel:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#030710a6 0%,#03071035 48%,#03071080 100%),linear-gradient(0deg,#03060ef5 0%,transparent 24%,transparent 76%,#03060eaa 100%)}
.auth-panel>.brand{position:relative;z-index:2}.auth-panel .auth-copy{position:relative;z-index:1;align-self:center;text-shadow:0 3px 35px #000,0 2px 9px #0009;padding:2rem 0}.auth-panel .auth-copy p{color:#b0c5df;max-width:510px}.auth-panel .auth-copy h1{font-size:clamp(3.1rem,5.1vw,5.6rem)}
.auth-panel .card{position:relative;z-index:2;align-self:center;justify-self:end;width:100%;max-width:440px;background:linear-gradient(145deg,#111e30db,#080e1bdc);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 30px 100px #0008,inset 0 1px #a8eaff0d}
.auth-panel .orbit-caption{top:auto;bottom:5.2rem;left:6%;right:6%;margin:0;color:#7299b5}.auth-panel .earth-caption{position:absolute;bottom:1.7rem;left:6%;right:6%;margin:0;color:#9ec3db}.auth-panel .earth-caption button{pointer-events:auto;background:#0c172ccc;border-color:#8bdfff40}.auth-panel .earth-caption small{color:#7b9bb4}
@media(max-width:800px){.auth-panel{grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:1.7rem;padding:1rem 6% 7rem;min-height:100svh}.auth-panel .auth-copy{padding:1.8rem 0 0}.auth-panel .auth-copy h1{font-size:clamp(2.7rem,8vw,4rem)}.auth-panel #login-form{grid-row:3;justify-self:center}.auth-panel>.earth-scene{position:absolute;grid-row:auto;height:100%;opacity:.65}.auth-panel>.earth-scene canvas{height:100%}.auth-panel:before{background:linear-gradient(0deg,#03060ee8,transparent 60%,#03060e60)}.auth-panel .card{background:#0b1425d9}.auth-panel .orbit-caption{bottom:5.4rem}.auth-panel .earth-caption{bottom:1.6rem}}

.welcome-greeting{color:#9beaff!important;font-size:1rem!important;line-height:1.5!important;letter-spacing:.01em;margin:0 0 1.1rem!important;font-weight:500;text-shadow:0 0 20px #63d9ff20;overflow-wrap:anywhere}
.companion-heading .welcome-greeting{font-size:.74rem!important;margin:0 0 .2rem!important;color:#a3dbed!important}.chat-header{height:auto;min-height:5.4rem;padding-top:.7rem;padding-bottom:.7rem}.companion-heading{min-width:0}

.form-stack textarea{width:100%;resize:vertical;min-height:110px;border:1px solid #97bbed26;background:#040a15bb;border-radius:.65rem;padding:.9rem 1rem;color:#ecf4ff;font:inherit;line-height:1.6}.form-stack textarea:focus{outline:2px solid #65e6ff80;outline-offset:2px}.typing{display:flex;align-items:center;gap:.5rem}.typing:before{content:"";width:6px;height:6px;border-radius:50%;background:#65e6ff;box-shadow:10px 0 #65e6ff60,20px 0 #65e6ff30;margin-right:22px;animation:typing-pulse 1s ease-in-out infinite alternate}@keyframes typing-pulse{to{opacity:.35}}@media(prefers-reduced-motion:reduce){.typing:before{animation:none}}

.composer-wrap{position:relative}.emoji-picker{position:absolute;bottom:calc(100% - .5rem);right:1rem;z-index:10;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;width:min(360px,calc(100% - 2rem));padding:12px;background:#101b2e;border:1px solid #65dfff55;border-radius:16px;box-shadow:0 12px 40px #0008}.emoji-picker button{background:transparent;border:0;border-radius:8px;min-height:38px;padding:4px;font-size:24px}.emoji-picker button:hover,.emoji-picker button:focus-visible{background:#264460}.composer textarea{min-width:0}.composer #emoji-toggle{background:transparent;font-size:1.4rem}
