:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f0f2fb;background:#090c17;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh}.rail{width:334px;flex:none;background:#0e1220;border-right:1px solid #21283b;padding:30px 23px 20px;display:flex;flex-direction:column;gap:22px}.logo{display:flex;align-items:center;gap:11px;font-size:24px;font-weight:900;letter-spacing:-1.5px}.logo-mark{display:grid;place-items:center;width:36px;height:36px;background:#8b6cff;border-radius:12px;color:white;font-size:25px;box-shadow:0 8px 28px #8566ff50}.dot,.accent{color:#987aff}.rail-tag,.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#928aaf}.rail-tag{padding-left:3px;margin-top:-14px;color:#6e718a}.panel{background:#121728;border:1px solid #232943;border-radius:20px}.form-panel{padding:24px 19px;display:flex;flex-direction:column;gap:11px}.form-panel h2{font-size:22px;letter-spacing:-.7px;margin:0}.form-panel p{color:#8790a8;font-size:12px;line-height:1.5;margin:0 0 7px}.control-label{color:#b2bad0;font-size:12px;font-weight:700;margin-top:7px}.form-panel select,.translate-tools select,.modal select,.modal textarea{width:100%;border:1px solid #2b3450;background:#191f34;border-radius:10px;padding:11px 12px;color:#f1f3fa;outline:none;min-width:0}.form-panel select:focus,.compose-box:focus-within,.modal textarea:focus{border-color:#9a80ff}.segmented{display:flex;padding:4px;border-radius:11px;background:#1a2033;gap:4px}.segmented button{flex:1;border:0;background:transparent;color:#9da4bd;padding:11px 5px;border-radius:8px;font-size:12px;font-weight:750}.segmented button.active{background:#7560dc;color:white;box-shadow:0 5px 18px #5d49cb33}.checkline{display:flex;align-items:flex-start;gap:9px;color:#9ca5b8;font-size:11px;line-height:1.5;margin:11px 0 3px}.checkline input{accent-color:#9176ff;margin-top:2px}.checkline a{color:#ab94ff;text-decoration:underline}.primary{border:0;border-radius:11px;background:linear-gradient(110deg,#9a72ff,#6d60f5);color:white;font-weight:800;padding:14px 17px;box-shadow:0 8px 25px #6854e233;display:flex;align-items:center;justify-content:space-between;gap:15px}.primary:not(:disabled):hover{filter:brightness(1.12)}.quiet{color:#828ba5;text-align:center;font-size:10px;margin-top:2px}.safe-pulse,.online-dot,.stage-pulse,.quality-dot{display:inline-block;width:7px;height:7px;background:#5ee3b2;border-radius:50%;margin-right:5px;box-shadow:0 0 13px #46c79b55}.rail-bottom{margin-top:auto;color:#8791ac;font-size:11px;line-height:2}.rail-bottom b{color:#f0f1fc}.rail-bottom a{color:#9da9c9}.bullet{padding:0 5px}.workspace{flex:1;display:flex;flex-direction:column;min-width:0;min-height:100vh}.topbar{height:79px;border-bottom:1px solid #1c2236;padding:0 30px;display:flex;justify-content:space-between;align-items:center}.topbar-title{color:#d2d5e6;font-size:14px;font-weight:670}.topbar-title span{color:#8d74ff}.topbar-actions{display:flex;align-items:center;gap:15px}.connection,.chat-status{font-size:11px;color:#9da9bf}.connection i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64deaf;margin-right:5px}.topbar select{background:#161a29;color:#e5e7f7;border:1px solid #28304a;border-radius:9px;padding:9px;font-size:11px}.workspace-body{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,.85fr);gap:17px;flex:1;min-height:0;padding:19px 22px}.video-stage{position:relative;background:radial-gradient(circle at 44% 43%,#22244d 0%,#12152a 42%,#0f1523 85%);border:1px solid #2a2d4d;border-radius:19px;overflow:hidden;min-height:510px;display:flex;flex-direction:column}.stage-head,.stage-bottom{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:18px 20px}.stage-head>span:first-child{font-size:10px;font-weight:850;letter-spacing:1.7px;color:#bec3dd}.badge{border:1px solid #3f4268;background:#222440;color:#d4d0ff;padding:7px 11px;border-radius:30px;font-size:10px;font-weight:700}.remote-wrap{flex:1;position:absolute;inset:0;display:grid;place-items:center}.remote-wrap>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#0d1020}.empty-video{position:relative;z-index:1;text-align:center;padding:30px}.orbit{height:140px;position:relative;display:grid;place-items:center}.planet{display:grid;place-items:center;width:88px;height:88px;border-radius:28px;background:linear-gradient(145deg,#9a78ff,#5f55e7);font-size:53px;box-shadow:0 15px 65px #8560f366;transform:rotate(-13deg)}.orbit-ring{position:absolute;border:1px solid #515184;border-radius:50%;width:180px;height:120px;transform:rotate(-27deg);pointer-events:none}.empty-video h1{font-size:clamp(29px,3vw,46px);line-height:1.12;letter-spacing:-2px;margin:7px 0 12px}.empty-video h1 em{color:#ad97ff;font-style:normal}.empty-video p,.text-mode-placeholder p{font-size:12px;color:#a2aac4}.hero-chips{display:flex;justify-content:center;gap:7px;margin-top:24px;flex-wrap:wrap}.hero-chips span{font-size:10px;color:#b3b6d0;background:#27294499;border:1px solid #3a3d63;border-radius:30px;padding:9px 11px}.remote-wrap video:not([srcObject]){background:transparent}.local-video{position:absolute;width:162px;height:120px;bottom:72px;right:18px;border-radius:13px;overflow:hidden;border:2px solid #5c5886;z-index:5;background:#1c2238;box-shadow:0 8px 28px #0007}.local-video video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}#localHint{position:absolute;inset:0;display:grid;place-items:center;color:#a6a9c3;font-size:11px;pointer-events:none}.local-tag{position:absolute;left:8px;bottom:8px;background:#141827bd;font-size:9px;padding:5px 7px;border-radius:5px}.partner-info{position:absolute;left:20px;bottom:83px;color:white;font-size:12px;background:#131629a8;border:1px solid #575978;padding:10px;border-radius:10px}.stage-bottom{margin-top:auto;padding:15px 20px;background:linear-gradient(transparent,#0d0e1aa6)}.quality{font-size:11px;color:#c0c5dc}.quality-dot{background:#848a9e;box-shadow:none}.video-controls{display:flex;gap:7px}.round{display:grid;place-items:center;background:#252840bd;color:white;border:1px solid #4e5371;width:39px;height:39px;border-radius:10px;font-size:17px}.round.off{background:#6a394b}.round.warn{color:#ffc6cb}.chat-panel{border-radius:19px;border:1px solid #282e43;background:#121625;display:flex;flex-direction:column;min-width:0;min-height:510px;overflow:hidden}.chat-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #252c42}.chat-head h2{font-size:18px;letter-spacing:-.5px;margin:7px 0 0}.subtitle{font-size:11px;color:#8993b0;font-weight:500}.chat-status{color:#a7a8ca}.translate-tools{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #252c42}.toggle{display:flex;align-items:center;gap:7px;color:#b8bad1;font-size:11px;white-space:nowrap}.toggle input{accent-color:#8d6cff}.toggle span{font-size:17px;color:#9d83fa}.translate-tools select{max-width:135px;padding:8px;font-size:11px}.message-list{flex:1;min-height:200px;max-height:calc(100vh - 325px);overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:11px}.intro-chat{margin:auto;text-align:center;max-width:260px}.intro-icon{margin:0 auto 15px;display:grid;place-items:center;width:57px;height:57px;border-radius:17px;background:#24263f;color:#a991ff;font-size:23px}.intro-chat h3{font-size:13px;color:#d8d7eb}.intro-chat p{font-size:11px;color:#8490aa;line-height:1.7}.bubble{padding:10px 13px;max-width:89%;border-radius:13px;background:#252b40;align-self:flex-start;color:#e4e8f9;font-size:12px;overflow-wrap:anywhere;line-height:1.5}.bubble.mine{background:#6558bc;align-self:flex-end}.bubble small{display:block;opacity:.7;font-size:10px;margin-top:5px}.system-msg{align-self:center;text-align:center;background:#24263e;color:#a4b0d4;border-radius:20px;padding:7px 10px;font-size:10px}.chat-compose{padding:14px 16px}.compose-box{display:flex;border:1px solid #313951;background:#1b2135;border-radius:11px;overflow:hidden}.compose-box input{border:0;outline:0;background:transparent;color:#f1f0fa;padding:13px;min-width:0;flex:1;font-size:12px}.compose-box button{background:#8064f2;color:white;border:0;width:38px;margin:5px;border-radius:8px}.composer-tip{color:#717e9d;font-size:10px;margin-top:9px}.action-bar{border-top:1px solid #23283b;min-height:90px;padding:17px 23px;display:flex;justify-content:space-between;gap:15px;align-items:center}.state-line{display:flex;align-items:center;gap:11px}.state-icon{width:40px;height:40px;background:#211f42;border:1px solid #45416d;border-radius:13px;color:#a58df8;display:grid;place-items:center}.state-line div{display:flex;flex-direction:column;gap:5px}.state-line b{font-size:12px}.state-line span:last-child{font-size:11px;color:#8792ab}.action-buttons{display:flex;gap:10px}.secondary{border:1px solid #363b55;background:#1d2234;color:#d5d8ec;padding:12px 14px;border-radius:10px;font-weight:700;font-size:12px}.action-buttons .primary{min-width:160px}.text-mode-placeholder{position:relative;z-index:1;text-align:center}.text-mode-placeholder>span{font-size:67px;color:#ac91ff}.text-mode-placeholder h2{font-size:25px}.modal{position:fixed;inset:0;background:#03040ccc;display:grid;place-items:center;z-index:20;padding:20px}.modal-card{position:relative;width:min(100%,470px);background:#171d2f;border:1px solid #393d59;border-radius:20px;padding:27px}.modal-card h2{font-size:23px}.modal-card p{font-size:12px;line-height:1.6;color:#aab1c8}.modal-card textarea{min-height:110px;resize:vertical;margin-top:12px}.modal-actions{display:flex;justify-content:end;gap:10px;margin-top:16px}.modal-close{position:absolute;right:18px;top:14px;border:0;background:transparent;color:white;font-size:25px}#toast{position:fixed;z-index:30;bottom:20px;left:50%;transform:translateX(-50%);background:#302b50;border:1px solid #67618d;border-radius:12px;padding:12px 20px;color:white;font-size:12px;display:none;max-width:85vw}.mobile-brand{display:none}@media(max-width:1150px){.rail{width:300px}.workspace-body{grid-template-columns:minmax(0,1fr)}.video-stage{min-height:490px}.chat-panel{min-height:300px}.message-list{max-height:340px}}@media(max-width:740px){.app-shell{display:block}.rail{width:100%;padding:18px;gap:13px;border-right:0;border-bottom:1px solid #242841}.rail-tag{display:none}.form-panel{padding:17px}.form-panel h2{font-size:19px}.rail-bottom{font-size:10px}.workspace{min-height:0}.topbar{height:58px;padding:0 16px}.desktop-title{display:none}.mobile-brand{display:inline;color:#eee!important}.workspace-body{padding:11px;gap:10px}.video-stage{min-height:440px}.chat-panel{min-height:330px}.local-video{width:112px;height:100px}.action-bar{flex-direction:column;align-items:stretch;padding:12px}.action-buttons{justify-content:space-between}.action-buttons button{flex:1;padding:12px 8px}.action-buttons .primary{min-width:0}.state-line span:last-child{font-size:10px}.empty-video h1{font-size:30px}.orbit{height:110px}.orbit-ring{width:150px;height:100px}.planet{width:65px;height:65px;font-size:39px}.hero-chips span{font-size:9px}}


/* Flick.Chat 3 — quiet, app-like visual system */
:root{--fc-bg:#f6f7fb;--fc-text:#1a2640;--fc-purple:#6261df;--fc-line:#e6eaf3}
body{background:#f6f7fb!important;color:#1a2640!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.app-shell{background:#f6f7fb!important}
.rail{background:#fff!important;border-right:1px solid #e9ecf4!important}
.logo,.logo span,.form-panel h2,.chat-head h2,.topbar,.state-line b{color:#202a43!important}
.logo-mark{background:#6261df!important;color:#fff!important;border-radius:14px!important}
.rail-tag,.eyebrow{color:#818ba0!important;letter-spacing:.12em!important}
.panel.form-panel{background:#fff!important;border:0!important;box-shadow:none!important}
.form-panel p,.control-label,.quiet,.rail-bottom,.subtitle,.composer-tip{color:#8792a6!important}
select,.form-panel select{background:#f7f8fc!important;color:#24314c!important;border:1px solid #e6eaf2!important;border-radius:12px!important}
.primary{background:#6261df!important;border-color:#6261df!important;color:white!important;box-shadow:0 8px 20px #6261df26!important}
.primary:hover{background:#504fc9!important}
.secondary,.mode,.round{background:#fff!important;border:1px solid #e4e8f1!important;color:#34415c!important}
.mode.active{background:#eeeefe!important;color:#5551d2!important;border-color:#aaa8ff!important}
.workspace{background:#f7f8fc!important}
.topbar{background:#fff!important;border-bottom:1px solid #e9ecf3!important}
.video-stage{background:#141b30!important;border:1px solid #2b3348!important;border-radius:20px!important;overflow:hidden}
.remote-wrap{background:radial-gradient(ellipse at 50% 30%,#2e3858,#13192b 72%)!important}
.empty-video h1{color:#fff!important;font-size:clamp(30px,3vw,51px)!important;letter-spacing:-.045em!important}
.empty-video p,.hero-chips{color:#b9c0d4!important}
.orbit .planet{background:#6462e6!important;color:#fff!important}
.chat-panel{background:#fff!important;border:1px solid #e9ecf4!important;border-radius:20px!important}
.chat-head{border-bottom:1px solid #edf0f6!important}
.translate-tools{background:#f8f9fd!important;border-bottom:1px solid #edf0f6!important;color:#526079!important}
.message-list{background:#fff!important}
.intro-chat,.intro-chat h3{color:#8792a6!important}
.bubble{background:#f0f2f8!important;color:#26334e!important}
.bubble.mine{background:#eeedff!important;color:#4243a8!important}
.chat-compose{background:#fff!important;border-top:1px solid #edf0f6!important}
.compose-box{background:#f7f8fc!important;border:1px solid #e6eaf2!important}
.compose-box input{color:#24314c!important}
.action-bar{background:#fff!important;border-top:1px solid #e9ecf4!important}
.state-line span{color:#8190a5!important}
.rail-bottom a{color:#6670c8!important}
.badge{background:#ffffff18!important;color:#fff!important}
.stage-head{background:#101727bb!important;color:#dae1ef!important}
.quality{color:#c7d0e2!important}
.local-video{border:2px solid #fff!important;box-shadow:0 5px 25px #0004!important}
@media(max-width:900px){.rail{border-right:0!important;border-bottom:1px solid #e9ecf4!important}.workspace-body{gap:12px!important}.chat-panel{min-height:350px!important}.video-stage{min-height:390px!important}}

/* First-visit welcome screen: original Flick.Chat layout */
.welcome{position:fixed;inset:0;z-index:100;overflow-y:auto;background:radial-gradient(ellipse at 50% 45%,#eef0ff 0%,#f8f9fd 56%,#fff 100%);color:#1d2842;display:flex;flex-direction:column;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.welcome[hidden]{display:none!important}.welcome-nav{display:flex;justify-content:space-between;align-items:center;padding:27px clamp(22px,5vw,86px)}.welcome-brand{font-size:25px;font-weight:850;letter-spacing:-1.2px}.brand-glyph{display:inline-grid;place-items:center;width:38px;height:38px;background:#605fe0;border-radius:12px;color:#fff;margin-right:7px;font-size:21px}.purple,.welcome-content h1 span{color:#6261dc}.welcome-note{font-size:13px;color:#929bb0}.welcome-content{width:min(100% - 36px,690px);margin:auto;text-align:center;padding:35px 0 50px}.welcome-kicker{font-size:11px;letter-spacing:2.2px;color:#7773cf;font-weight:800;margin-bottom:18px}.welcome-content h1{font-size:clamp(34px,5vw,55px);font-weight:810;letter-spacing:-2.7px;line-height:1.15;margin:0}.welcome-sub{color:#9099ac;font-size:15px;margin:16px 0 40px}.gender-cards{display:flex;justify-content:center;gap:19px}.gender-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:190px;padding:22px 24px 24px;background:#fff;border:2px solid #e9eaf3;border-radius:24px;cursor:pointer;box-shadow:0 10px 32px #2630680b;transition:border .15s,transform .15s,box-shadow .15s;color:#27344c}.gender-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px #5555ad1b}.gender-card.selected{border-color:#6966e8;box-shadow:0 12px 36px #6b66df23}.avatar{width:112px;height:112px;border-radius:50%;display:grid;place-items:center}.male-avatar{color:#5666d9;background:#eef1ff}.female-avatar{color:#ed659f;background:#fff0f6}.gender-card strong{font-size:16px;font-weight:750}.gender-card small{font-size:12px;color:#9da4b6}.selection-mark{position:absolute;right:13px;top:12px;border-radius:50%;background:#6462db;color:#fff;width:23px;height:23px;font-size:14px;display:none;place-items:center}.gender-card.selected .selection-mark{display:grid}.welcome-consent{display:flex;max-width:430px;margin:28px auto 17px;align-items:start;gap:10px;text-align:left;font-size:12px;line-height:1.65;color:#65718a}.welcome-consent input{margin-top:3px;accent-color:#6862e4;flex-shrink:0}.welcome-consent a,.welcome-bottom a{color:#5959c6;text-decoration:none}.welcome-continue{display:flex;justify-content:space-between;align-items:center;width:min(100%,340px);padding:16px 20px;margin:0 auto;border:0;border-radius:14px;background:#6261df;color:white;font-size:15px;font-weight:750;cursor:pointer;box-shadow:0 9px 20px #6261df3b}.welcome-continue:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.welcome-continue span{font-size:23px}.welcome-footer{font-size:11px;color:#909bb0;margin:23px 0 0}.welcome-footer>span:first-child{color:#6966e8}.welcome-divider{padding:0 9px}.welcome-bottom{display:flex;justify-content:space-between;padding:24px clamp(22px,5vw,86px);color:#b1b8c8;font-size:11px}.welcome-bottom a{color:#8994ab}@media(max-width:600px){.welcome-nav{padding:20px}.welcome-note{display:none}.welcome-content{padding:10px 0 35px}.welcome-content h1{letter-spacing:-1.7px}.welcome-sub{margin-bottom:25px}.gender-cards{gap:10px}.gender-card{min-width:0;width:50%;padding:17px 9px}.avatar{width:88px;height:88px}.avatar svg{width:60px;height:60px}.welcome-bottom{padding:16px 20px}.welcome-footer{line-height:1.7}}

/* v3.2 — video-first mobile workspace; desktop remains unchanged */
.mobile-settings-btn,.mobile-close-settings,.mobile-drawer-scrim{display:none}
@media (max-width:740px){
  html,body{width:100%;overflow-x:hidden}
  .app-shell{display:block;min-height:100dvh}
  .workspace{min-height:100dvh;display:flex;flex-direction:column}
  .workspace-body{display:contents}
  .topbar{order:0;flex:none;height:58px;position:relative;z-index:2}
  .video-stage{order:1;flex:none;margin:10px 10px 0;min-height:0!important;height:clamp(310px,54dvh,620px);border-radius:18px!important;overflow:hidden}
  .remote-wrap{min-height:0!important;flex:1}
  .local-video{width:108px!important;height:138px!important;max-width:32%;right:12px!important;top:58px!important;border-radius:14px!important}
  .stage-bottom{padding:9px 12px!important;gap:6px}
  .video-controls{gap:5px!important}
  .video-controls .round{width:38px;height:38px}
  .action-bar{order:2;flex:none;margin:0;padding:10px 12px 12px!important;gap:8px!important;background:#fff!important;border-bottom:1px solid #e9ecf4}
  .state-line{min-height:30px}
  .action-buttons{gap:8px!important}
  .action-buttons button{min-height:45px}
  .chat-panel{order:3;flex:1;margin:0 10px 14px;min-height:300px!important;height:350px;max-height:480px;overflow:hidden}
  .message-list{min-height:100px!important;max-height:none!important;overflow-y:auto}
  .chat-head{padding:13px 15px!important}
  .translate-tools{padding:9px 12px!important}
  .chat-compose{padding:10px!important}
  .composer-tip{font-size:9px}
  .mobile-settings-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #dddff0;background:#f1f0ff;color:#4e4cc6;border-radius:10px;padding:9px 11px;font-weight:750;font-size:12px}
  .mobile-close-settings{display:flex;gap:9px;align-items:center;justify-content:flex-end;color:#445176;background:transparent;border:0;padding:10px 4px;align-self:flex-end}
  .rail{position:fixed!important;inset:0 auto 0 0;width:min(88vw,360px)!important;height:100dvh;overflow-y:auto;overscroll-behavior:contain;z-index:82;background:#fff!important;padding:16px 19px!important;border:0!important;box-shadow:12px 0 45px #202b4b35;transform:translateX(-110%);transition:transform .23s ease;display:flex!important;gap:12px!important}
  .rail.mobile-open{transform:translateX(0)}
  .mobile-drawer-scrim:not([hidden]){display:block;position:fixed;inset:0;background:#0a102c91;z-index:81}
  body.filters-open{overflow:hidden}
  .rail-bottom{padding:12px 0 18px}
  .empty-video h1{font-size:clamp(24px,7vw,34px)!important}
  .hero-chips{flex-wrap:wrap;justify-content:center}
}
@media(max-width:380px){
  .connection{display:none!important}
  .topbar-actions{gap:7px!important}
  .video-stage{height:clamp(280px,49dvh,460px)}
  .chat-head .subtitle{display:none}
  .action-buttons button{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.rail{transition:none!important}}

.member-auth{max-width:370px;margin:18px auto 14px;display:grid;gap:9px}.member-auth input,.member-auth button{padding:12px;border-radius:12px;border:1px solid #d6daf1;font:inherit;min-width:0}.member-auth input{background:#fff;color:#253056}.member-auth #authSubmit{background:#373264;color:#fff;cursor:pointer}.member-auth #authFeedback{font-size:12px;margin:0;min-height:14px;color:#544abd}.auth-tabs{display:flex;gap:7px}.auth-tabs button{flex:1;background:#f0effa;cursor:pointer;color:#4a426b}.auth-tabs button.chosen{background:#ded9ff;font-weight:700}.member-auth.authenticated .auth-tabs,.member-auth.authenticated input,.member-auth.authenticated #authSubmit{display:none!important}.member-auth #signedIn{font-weight:650;color:#3d3665}.member-auth #authLogout{padding:7px;background:#faf7ff;color:#6357ab;cursor:pointer}

/* v5 optional accounts: keep the first screen simple */
.optional-account-label{font-size:13px;color:#6e778e;margin:15px 0 10px}
.optional-account{width:min(100%,390px);margin:0 auto 20px;text-align:left;border:1px solid #e5e6f5;border-radius:14px;background:#fff;overflow:hidden}
.optional-account summary{cursor:pointer;padding:13px 17px;font-size:13px;color:#615cbb;font-weight:700;list-style-position:inside}
.optional-account .member-auth{margin:0 auto;padding:0 16px 16px}
.optional-account[open] summary{border-bottom:1px solid #eeeeF6}


/* Flick.Chat v5.1: immersive, video-first phone layout.
   Scoped to phone widths only; desktop grid remains unchanged. */
.mobile-chat-toggle,.mobile-chat-close,.mobile-chat-scrim{display:none}
@media (max-width:740px){
  html{height:100%;overscroll-behavior:none}
  html,body{width:100%;height:100%;margin:0;overflow:hidden!important}
  body{overscroll-behavior:none}
  body.mobile-chat-open{overflow:hidden!important}
  .app-shell{position:fixed!important;inset:0;display:block!important;width:100%;height:var(--flick-viewport-height,100dvh)!important;min-height:0!important;overflow:hidden!important;background:#0d1323!important}
  .workspace{position:relative!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;background:#11172b!important}
  .workspace-body{display:contents!important}
  .topbar{position:absolute!important;inset:0 0 auto!important;height:calc(56px + env(safe-area-inset-top,0px))!important;padding:env(safe-area-inset-top,0px) 13px 0!important;z-index:13!important;border:0!important;background:linear-gradient(180deg,rgba(8,14,27,.86),rgba(8,14,27,.25))!important;backdrop-filter:blur(7px)}
  .mobile-brand,.topbar-title,.topbar-title span{color:#fff!important}
  .topbar-actions{gap:7px!important}
  .topbar select{background:#232a44!important;color:#fff!important;border:1px solid #505776!important}
  .topbar .connection{display:none!important}
  .mobile-settings-btn{background:#222944d9!important;border-color:#535779!important;color:#fff!important}
  .video-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;max-height:none!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#10172b!important}
  .remote-wrap{inset:0!important;min-height:0!important}
  #remoteVideo{width:100%!important;height:100%!important;object-fit:cover!important}
  .stage-head{position:absolute!important;z-index:5!important;top:calc(66px + env(safe-area-inset-top,0px));left:12px;right:12px;padding:0!important;pointer-events:none}
  .stage-head>span:first-child{font-size:10px!important;color:#fff!important;text-shadow:0 1px 8px #000}
  .stage-head .badge{color:#fff!important;background:#242c43bb!important;border-color:#606786!important;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .empty-video{padding:20px 28px 80px!important;max-width:100%!important}
  .empty-video h1{font-size:clamp(28px,8vw,41px)!important;line-height:1.11!important;letter-spacing:-1.6px!important}
  .empty-video p{font-size:12px!important}
  .hero-chips{display:none!important}
  .local-video{position:absolute!important;z-index:9!important;top:calc(106px + env(safe-area-inset-top,0px))!important;right:12px!important;bottom:auto!important;width:clamp(86px,25vw,130px)!important;height:clamp(115px,34vw,178px)!important;max-width:30%!important;border:2px solid #f1f2ff!important;border-radius:17px!important;box-shadow:0 12px 35px #0009!important}
  .stage-bottom{position:absolute!important;z-index:9!important;bottom:calc(85px + env(safe-area-inset-bottom,0px))!important;left:0;right:0;margin:0!important;padding:10px 13px!important;background:none!important;justify-content:flex-end!important;pointer-events:none}
  .stage-bottom .quality{display:none!important}
  .stage-bottom .video-controls{pointer-events:auto;display:flex;gap:7px!important}
  .video-controls .round{background:#fffef5ed!important;color:#24304e!important;width:41px!important;height:41px!important;border:1px solid #f3f4ff!important;border-radius:13px!important;box-shadow:0 5px 20px #0004!important}
  .partner-info{left:12px!important;bottom:calc(206px + env(safe-area-inset-bottom,0px))!important;font-size:11px!important;z-index:6!important}
  .mobile-chat-toggle{display:flex!important;align-items:center;gap:9px;position:absolute!important;z-index:15!important;left:14px;bottom:calc(97px + env(safe-area-inset-bottom,0px))!important;border:1px solid #8182e3!important;border-radius:15px;background:#605de0!important;color:#fff!important;font-weight:800;font-size:13px;padding:11px 15px!important;box-shadow:0 8px 27px #0006!important}
  .chat-toggle-icon{font-size:18px;line-height:1}
  .mobile-chat-unread:not([hidden]){display:grid;place-items:center;border-radius:99px;background:#ff567f;color:#fff;font-size:10px;min-width:19px;height:19px;padding:0 4px}
  .action-bar{position:absolute!important;z-index:10!important;bottom:0!important;left:0;right:0;min-height:0!important;height:calc(79px + env(safe-area-inset-bottom,0px))!important;padding:10px 13px calc(12px + env(safe-area-inset-bottom,0px))!important;border:0!important;background:linear-gradient(0deg,#0a1022 38%,#0a1022d4)!important;margin:0!important;display:flex!important;justify-content:center!important;align-items:center!important}
  .action-bar .state-line{display:none!important}
  .action-bar .action-buttons{width:100%;justify-content:space-between!important;gap:9px!important}
  .action-bar .action-buttons button{min-height:46px!important;flex:1!important;border-radius:13px!important;font-size:13px!important}
  .action-buttons .secondary{background:#e9eaf5!important;color:#253252!important}
  .action-buttons .primary{background:#6261df!important;color:#fff!important}
  .mobile-chat-scrim:not([hidden]){display:block!important;position:absolute;z-index:17;inset:0;background:rgba(6,9,19,.32)}
  .chat-panel{position:absolute!important;z-index:19!important;left:8px!important;right:8px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;top:auto!important;margin:0!important;width:auto!important;height:min(68%,610px)!important;min-height:0!important;max-height:calc(100% - 72px - env(safe-area-inset-top,0px))!important;border:1px solid #e1e5f2!important;border-radius:22px!important;box-shadow:0 18px 65px #0009!important;background:#fff!important;display:flex!important;flex-direction:column!important;transform:translateY(calc(110% + 70px));visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility .2s}
  .chat-panel.mobile-chat-open{transform:translateY(0);visibility:visible;pointer-events:auto}
  .chat-head{padding:14px 16px 12px!important;flex:none!important}
  .chat-head h2{font-size:18px!important;margin-top:2px!important;color:#242c47!important}
  .chat-head-actions{display:flex;gap:9px;align-items:center}
  .chat-status{font-size:10px!important}
  .mobile-chat-close{display:grid!important;place-items:center;width:35px;height:35px;flex:none;border-radius:11px;border:1px solid #e4e6f0;background:#f5f5fa;color:#25304d;font-size:16px}
  .translate-tools{padding:8px 13px!important;flex:none!important;background:#f7f8fc!important}
  .translate-tools select{max-width:125px!important}
  .message-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;background:#fff!important;padding:12px 15px!important;-webkit-overflow-scrolling:touch}
  .chat-compose{flex:none!important;background:#fff!important;padding:9px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #e6e9f2!important}
  .chat-compose .compose-box{background:#f5f7fc!important;border:1px solid #e3e7f1!important}
  .chat-compose input{font-size:16px!important;color:#23304b!important;min-height:43px}
  .chat-compose button{min-width:40px;min-height:36px}
  .composer-tip{display:none!important}
  .rail{z-index:90!important}
  .mobile-drawer-scrim:not([hidden]){z-index:89!important}
  .modal{z-index:110!important}
  #toast{z-index:120!important}
  .welcome{z-index:200!important}
}
@media(max-width:360px){
  .stage-bottom{bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}
  .video-controls .round{width:35px!important;height:37px!important}
  .video-controls{gap:5px!important}
  .mobile-chat-toggle{padding:9px 12px!important;bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
  .mobile-chat-toggle #mobileChatLabel{font-size:12px}
}
@media(max-width:740px) and (max-height:560px){
  .chat-panel{height:min(76%,420px)!important;max-height:calc(100% - 58px)!important}
  .empty-video .orbit{display:none!important}
  .local-video{top:64px!important;height:105px!important}
  .stage-head{top:58px!important}
}
@media(min-width:741px){.chat-head-actions{display:flex;align-items:center;gap:9px}}
@media(prefers-reduced-motion:reduce){.chat-panel{transition:none!important}}

/* v5.2: mobile UX: persistent Start, chat replaces control dock. Desktop unchanged. */
.mobile-start-btn{display:none}
@media(max-width:740px){
  /* Keep remote video fixed and uninterrupted on both dock modes. */
  .app-shell{top:var(--flick-viewport-top,0px)!important}
  .mobile-start-btn:not([hidden]){display:flex!important;flex:1!important;background:#7265f2!important;color:#fff!important;min-width:0!important;justify-content:center!important;gap:10px!important}
  .mobile-start-btn[hidden]{display:none!important}
  .action-bar .action-buttons:has(.mobile-start-btn:not([hidden])) #next,
  .action-bar .action-buttons:has(.mobile-start-btn:not([hidden])) #stop,
  .action-bar .action-buttons:has(.mobile-start-btn:not([hidden])) #blockBtn{display:none!important}
  .mobile-chat-toggle{bottom:calc(98px + env(safe-area-inset-bottom,0px))!important;z-index:22!important;transition:bottom .18s ease!important}
  .chat-panel{z-index:18!important;position:absolute!important;top:auto!important;bottom:calc(79px + env(safe-area-inset-bottom,0px))!important;left:9px!important;right:9px!important;height:min(38%,330px)!important;min-height:0!important;max-height:calc(100% - 185px)!important;background:rgba(15,21,39,.91)!important;color:#fff!important;border:1px solid rgba(193,187,255,.26)!important;border-radius:19px 19px 0 0!important;box-shadow:0 -14px 36px #0509185e!important;transform:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .16s ease,visibility .16s!important;backdrop-filter:blur(15px)!important;overflow:hidden!important}
  .chat-panel.mobile-chat-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  .chat-head{padding:10px 14px 6px!important;border:0!important;color:#fff!important}
  .chat-head .eyebrow,.chat-head .subtitle,.chat-status{display:none!important}
  .chat-head h2{color:#fff!important;margin:0!important;font-size:15px!important}
  .mobile-chat-close{background:#ffffff20!important;border:1px solid #ffffff35!important;color:#fff!important;width:29px!important;height:29px!important}
  .translate-tools{background:transparent!important;border-bottom:1px solid #ffffff25!important;padding:5px 11px 9px!important}
  .translate-tools .toggle{color:#d9ddf5!important}
  .translate-tools select{background:#252b48!important;color:#fff!important;border-color:#656988!important;max-width:122px!important;padding:7px!important}
  .message-list{min-height:0!important;max-height:none!important;background:transparent!important;padding:9px 12px!important;gap:6px!important}
  .message-list .bubble{background:#3b4564!important;color:#fff!important;font-size:12px!important;max-width:82%!important}
  .message-list .bubble.mine{background:#6757d9!important}
  .message-list .system-msg{background:#293450!important;color:#e7eafa!important}
  .intro-chat h3{color:#fff!important}.intro-chat p{color:#bdc5dc!important}
  /* Composer is *at the original buttons position*, not a second sheet from the bottom. */
  .chat-compose{position:fixed!important;z-index:23!important;bottom:0!important;left:0!important;right:0!important;height:calc(79px + env(safe-area-inset-bottom,0px))!important;display:flex!important;align-items:center!important;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px))!important;background:#0c1326!important;border-top:1px solid #343955!important}
  .chat-compose .compose-box{flex:1!important;background:#fff!important;border-radius:14px!important;overflow:hidden!important}
  .chat-compose input{color:#1e2740!important;background:#fff!important;min-height:43px!important;font-size:16px!important}
  .chat-compose button{background:#7065ea!important;color:#fff!important}
  .mobile-chat-scrim{display:none!important}
  body.mobile-chat-open .action-bar{visibility:hidden!important;pointer-events:none!important}
  body.mobile-chat-open .stage-bottom .video-controls{opacity:0!important;pointer-events:none!important}
  body.mobile-chat-open .mobile-chat-toggle{bottom:calc(85px + env(safe-area-inset-bottom,0px))!important;left:13px!important;padding:6px 10px!important;font-size:11px!important;border-radius:11px!important;z-index:24!important;background:#252e4ce6!important}
  body.mobile-chat-open .chat-panel{bottom:calc(79px + env(safe-area-inset-bottom,0px))!important}
  /* Chat toggler sits above message list in chat mode, without overlapping typing field. */
  body.mobile-chat-open .mobile-chat-toggle{bottom:calc(79px + env(safe-area-inset-bottom,0px) + min(38%,330px) + 7px)!important}
  .empty-video{padding-bottom:65px!important}
}
@media(max-width:740px) and (max-height:600px){
 .chat-panel{height:min(33%,175px)!important;max-height:calc(100% - 150px)!important}
 body.mobile-chat-open .mobile-chat-toggle{bottom:calc(79px + env(safe-area-inset-bottom,0px) + min(33%,175px) + 7px)!important}
 .chat-head{padding:5px 10px!important}.translate-tools{padding:3px 8px!important}
}


/* v5.5 FlowChat: mobile-only ambient messages + horizontal composer. */
@media (max-width:740px) {
  /* The video stays at full viewport height. Messages are an unobtrusive overlay. */
  .chat-panel, .chat-panel.mobile-chat-open {
    position:absolute!important; z-index:16!important;
    left:12px!important;right:12px!important;
    top:auto!important;bottom:calc(151px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;height:min(32vh,250px)!important;max-height:250px!important;min-height:0!important;
    display:block!important;overflow:visible!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:transparent!important;backdrop-filter:none!important;
    transform:none!important;opacity:1!important;visibility:visible!important;
    pointer-events:none!important;transition:none!important;
  }
  .chat-head, .mobile-chat-close {display:none!important}
  .message-list {
    display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
    position:absolute!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
    height:100%!important;min-height:0!important;max-height:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;
    padding:50px 5px 2px!important;gap:7px!important;background:transparent!important;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.12) 17%,#000 46%,#000 100%);
    mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.12) 17%,#000 46%,#000 100%);
    scrollbar-width:none!important;pointer-events:none!important;
  }
  .message-list::-webkit-scrollbar{display:none}
  .message-list .intro-chat{display:none!important}
  .message-list .bubble {
    display:block!important;flex:none!important;width:fit-content!important;max-width:84%!important;
    margin:0!important;padding:8px 11px!important;border-radius:12px 12px 12px 4px!important;
    background:rgba(17,24,43,.62)!important;border:1px solid rgba(255,255,255,.13)!important;
    color:#fff!important;text-shadow:0 1px 2px #0008;
    box-shadow:0 3px 12px #0002!important;backdrop-filter:blur(7px)!important;
    font-size:12px!important;line-height:1.4!important;word-break:break-word;
  }
  .message-list .bubble.mine{
    align-self:flex-end!important;border-radius:12px 12px 4px 12px!important;
    background:rgba(93,76,194,.77)!important;
  }
  .message-list .bubble small{font-size:11px!important;color:#e2e0ff!important;display:block;margin-top:4px}
  .message-list .system-msg{
    flex:none!important;align-self:center!important;font-size:10px!important;
    color:rgba(255,255,255,.76)!important;background:rgba(13,19,33,.35)!important;
    border-radius:8px!important;padding:5px 9px!important;max-width:88%!important;text-align:center;
  }
  /* Chat action is a permanent small control, even before matching starts. */
  .mobile-chat-toggle,body.mobile-chat-open .mobile-chat-toggle{
    position:absolute!important;z-index:25!important;left:12px!important;
    bottom:calc(17px + env(safe-area-inset-bottom,0px))!important;
    width:72px!important;height:47px!important;min-width:72px!important;
    padding:0 8px!important;display:flex!important;justify-content:center!important;gap:4px!important;
    border-radius:14px!important;border:1px solid #ffffff50!important;
    background:rgba(38,43,80,.91)!important;color:#fff!important;
    font-size:12px!important;line-height:1!important;box-shadow:0 6px 24px #0007!important;
    backdrop-filter:blur(12px)!important;transition:background .18s ease!important;
  }
  body.mobile-chat-open .mobile-chat-toggle{background:#5d54c4!important}
  .mobile-chat-unread:not([hidden]){position:absolute;right:-5px;top:-7px}
  /* The action dock shares the bottom row with Chat, without any second chat sheet. */
  .action-bar{
    padding:10px 12px 10px 92px!important;
    height:calc(79px + env(safe-area-inset-bottom,0px))!important;
  }
  body.mobile-chat-open .action-bar {visibility:hidden!important;pointer-events:none!important}
  body.mobile-chat-open .stage-bottom .video-controls{opacity:1!important;pointer-events:auto!important}
  .chat-compose {
    position:fixed!important;z-index:24!important;
    left:92px!important;right:12px!important;bottom:calc(13px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;height:53px!important;min-height:53px!important;
    padding:0!important;margin:0!important;border:0!important;
    background:transparent!important;display:flex!important;align-items:center!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transform:scaleX(.1)!important;transform-origin:left center!important;
    transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .14s ease,visibility .14s!important;
  }
  .chat-panel.mobile-chat-open .chat-compose {
    transform:scaleX(1)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
  .chat-compose .compose-box {
    width:100%!important;min-width:0!important;flex:1!important;
    height:47px!important;border-radius:14px!important;
    background:rgba(255,255,255,.97)!important;border:1px solid #ccc6fa!important;
    box-shadow:0 5px 24px #0007!important;overflow:hidden!important;
  }
  .chat-compose input{color:#202541!important;background:transparent!important;font-size:16px!important;min-width:0!important}
  .chat-compose button{background:#655ae0!important;color:#fff!important;min-width:40px!important}
  .translate-tools {
    position:absolute!important;left:auto!important;right:0!important;top:-39px!important;
    display:none!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
    width:max-content!important;max-width:100%!important;padding:5px 9px!important;
    border:1px solid #ffffff42!important;border-radius:11px!important;
    background:rgba(14,20,37,.78)!important;backdrop-filter:blur(10px)!important;
    pointer-events:auto!important;z-index:26!important;
  }
  .chat-panel.mobile-chat-open .translate-tools{display:flex!important}
  .translate-tools .toggle{font-size:10px!important;white-space:nowrap!important}
  .translate-tools select{width:86px!important;max-width:86px!important;font-size:11px!important;padding:4px!important}
  .mobile-chat-scrim{display:none!important}
  /* Keep partner country above visible conversation captions. */
  .partner-info{bottom:calc(250px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:740px) and (max-height:650px){
  .chat-panel,.chat-panel.mobile-chat-open{height:min(27vh,165px)!important;bottom:calc(138px + env(safe-area-inset-bottom,0px))!important}
  .partner-info{bottom:calc(202px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:350px){
 .mobile-chat-toggle,body.mobile-chat-open .mobile-chat-toggle{width:64px!important;min-width:64px!important;left:9px!important}
 .action-bar{padding-left:82px!important}
 .chat-compose{left:82px!important;right:9px!important}
}


/* v5.6 Clean Mobile: compact top translation bar and distraction-free chat composition.
   Overrides earlier mobile rules while leaving desktop unchanged. */
@media (max-width:740px) {
  /* Controls return immediately after closing chat; while typing, the video stays untouched. */
  body.mobile-chat-open .stage-bottom .video-controls,
  body.mobile-chat-open .stage-bottom .video-controls .round {
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  body:not(.mobile-chat-open) .stage-bottom .video-controls {
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  /* Translate settings now occupy the quiet left corner just below the live header,
     not the center of the partner's face or directly above the composer. */
  .chat-panel .translate-tools,
  .chat-panel.mobile-chat-open .translate-tools {
    position:fixed!important;
    top:calc(105px + env(safe-area-inset-top,0px))!important;
    bottom:auto!important;
    left:12px!important;
    right:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:max-content!important;
    max-width:min(215px,calc(100vw - 124px))!important;
    min-height:35px!important;
    gap:5px!important;
    padding:5px 7px!important;
    border-radius:12px!important;
    background:rgba(17,24,44,.76)!important;
    border:1px solid rgba(220,219,255,.23)!important;
    box-shadow:0 4px 16px rgba(0,0,0,.18)!important;
    backdrop-filter:blur(10px)!important;
    -webkit-backdrop-filter:blur(10px)!important;
    z-index:32!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .translate-tools .toggle {
    display:flex!important;align-items:center!important;gap:4px!important;
    margin:0!important;font-size:10px!important;white-space:nowrap!important;
    color:#f3f0ff!important;
  }
  .translate-tools .toggle span{font-size:13px!important}
  .translate-tools .toggle input{margin:0 2px 0 0!important;width:13px!important;height:13px!important;flex:none!important}
  .translate-tools select {
    min-width:0!important;width:76px!important;max-width:76px!important;
    height:27px!important;padding:3px 4px!important;font-size:10px!important;
    background:rgba(35,43,75,.88)!important;
    border:1px solid rgba(212,214,255,.23)!important;
    border-radius:8px!important;
  }
  /* Give the country/status capsule its own quiet space under the translate row. */
  .partner-info {
    position:absolute!important;
    top:calc(148px + env(safe-area-inset-top,0px))!important;
    bottom:auto!important;
    left:12px!important;
    right:auto!important;
    max-width:calc(100vw - 148px)!important;
    padding:5px 8px!important;
    border-radius:9px!important;
    font-size:10px!important;
    background:rgba(13,20,38,.58)!important;
    backdrop-filter:blur(8px)!important;
  }
  /* Chat captions remain at the bottom of the video and never affect its layout. */
  .message-list {padding-top:42px!important}
}
@media (max-width:740px) and (max-height:610px) {
  .chat-panel .translate-tools,
  .chat-panel.mobile-chat-open .translate-tools {top:calc(86px + env(safe-area-inset-top,0px))!important}
  .partner-info{top:calc(127px + env(safe-area-inset-top,0px))!important}
}
@media (max-width:350px){
  .chat-panel .translate-tools,
  .chat-panel.mobile-chat-open .translate-tools{left:8px!important;max-width:195px!important}
  .translate-tools select{width:65px!important;max-width:65px!important}
}
