/* Final layout contract, loaded after legacy themes. Width, not OS, selects layout. */
html:has(body.cl-guest-v2){height:100%;overflow:hidden}
body.cl-guest-v2{--cl-actions:72px;--cl-header:56px;--cl-safe-bottom:env(safe-area-inset-bottom,0px);height:var(--cl-viewport-height,100dvh);min-height:0;overflow:hidden}
body.cl-guest-v2 .cl-topbar{box-sizing:border-box;height:var(--cl-header);min-height:0;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
body.cl-guest-v2 .cl-main{height:calc(var(--cl-viewport-height,100dvh) - var(--cl-header));min-height:0;min-width:0;overflow:hidden}
body.cl-guest-v2 .cl-call{min-height:0;min-width:0;height:100%;padding-bottom:var(--cl-actions)}
body.cl-guest-v2 .cl-call:not(.cl-presenting){padding-bottom:var(--cl-actions)}
body.cl-guest-v2 .cl-call-actions{box-sizing:border-box;height:var(--cl-actions);padding-bottom:calc(8px + var(--cl-safe-bottom))}
body.cl-guest-v2 .cl-call-actions{grid-template-columns:auto auto minmax(0,1fr) 64px;gap:8px}
body.cl-guest-v2 .cl-control-left{grid-column:1;grid-row:1;justify-content:flex-start}
body.cl-guest-v2 .cl-control-center{grid-column:2;grid-row:1;display:flex;gap:6px;justify-content:flex-start}
body.cl-guest-v2 .cl-control-messages{grid-column:3;grid-row:1;justify-content:flex-end}
body.cl-guest-v2 .cl-control-search{grid-column:4;grid-row:1;display:grid;place-items:center}
body.cl-guest-v2 .cl-topbar>.cl-round-progress{height:9px;box-shadow:inset 0 1px 2px #94651122}
body.cl-guest-v2 .cl-topbar .cl-hud{height:calc(100% - 9px);padding-block:0}
/* Keep the toolbar order and tap targets, but lift its visible circles clear of progress. */
body.cl-guest-v2 .cl-topbar .cl-toolbar{align-self:center;align-items:center;height:100%;margin-block:0}
body.cl-guest-v2 .cl-topbar .cl-toolbar>.cl-account-button{width:36px!important;height:36px!important;min-height:36px;padding:6px!important;margin-block:0;border-radius:50%;align-self:center}
body.cl-guest-v2 .cl-toolbar>.cl-pro-crown{display:grid;place-items:center;border:1px solid #e3e6ea!important;background:#fff!important;filter:none!important;opacity:1;animation:none!important;box-shadow:0 1px 2px #252b3312!important;border-radius:50%;overflow:visible;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
body.cl-guest-v2 .cl-toolbar>.cl-pro-crown:hover{background:#fff!important;border-color:#c6cdd5!important;box-shadow:0 0 0 2px #252b3310!important}
body.cl-guest-v2 .cl-toolbar>.cl-pro-crown:active{background:#f6f7f9!important;box-shadow:inset 0 1px 3px #252b3320!important}
body.cl-guest-v2 .cl-toolbar>.cl-pro-crown:focus-visible{outline:3px solid #bf961a;outline-offset:2px}
body.cl-guest-v2 .cl-pro-crown:before,body.cl-guest-v2 .cl-pro-crown:after{content:none}
body.cl-guest-v2 .cl-crown-art{display:block;width:26px;height:26px;object-fit:contain;margin:auto;filter:drop-shadow(0 2px 2px #ad770c35);transform-origin:50% 80%;animation:cl-crown-polish 4.8s ease-in-out infinite}
body.cl-guest-v2 .cl-pro-crown.is-pro .cl-crown-art{filter:drop-shadow(0 1px 4px #efb72a80)}
body.cl-guest-v2 .cl-crown-fallback{font-size:25px;line-height:1}
body.cl-guest-v2 .cl-topbar .ce-bell .ce-count{right:-3px;top:-3px;min-width:17px;line-height:17px;font-size:10px}
/* Visible without opening a profile: each later flag overlaps the previous one. */
body.cl-guest-v2 .cl-topbar .cl-toolbar .cl-language-button{max-width:none;overflow:visible;flex:none;gap:4px}
body.cl-guest-v2 .cl-topbar .cl-toolbar #language-preview{display:flex;align-items:center;max-width:none;overflow:visible;padding-inline-end:4px;isolation:isolate}
body.cl-guest-v2 .cl-topbar .cl-toolbar #language-preview>*:nth-child(n){display:block;position:relative;flex:none;width:22px!important;height:22px!important;margin-inline-end:-4px;border:0!important;background:transparent!important;box-shadow:-1px 1px 2px #252b3333!important}
body.cl-guest-v2 .cl-topbar .cl-toolbar #language-preview>*+*{margin-inline-start:-2px}
@keyframes cl-crown-polish{0%,100%{transform:perspective(90px) rotateY(-10deg) rotate(-3deg)}50%{transform:perspective(90px) rotateY(13deg) rotate(3deg) translateY(-2px)}}
body.cl-guest-v2 .cl-presenting :is(.cl-board-v4,.ce-screen){bottom:var(--cl-actions)!important}
body.cl-guest-v2 :is(.cl-chat,.cm-chat){min-width:0;min-height:0}
body.cl-guest-v2 :is(.cl-messages,.cm-directory){overscroll-behavior:contain}
body.cl-guest-v2 .cl-empty{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px}
body.cl-guest-v2 .cl-empty.is-searching{place-content:center;justify-items:center}
body.cl-guest-v2 .cl-instructions{box-sizing:border-box;width:min(100%,490px);max-height:100%;margin:0;flex-shrink:0}
body.cl-guest-v2 .cl-instructions h2{font-size:22px;line-height:1.25}
.cl-instructions .cl-search-content{padding:10px 0 2px}
.cl-instructions .cl-search-content[hidden],.cl-search-content [hidden]{display:none!important}
.cl-search-content p{font-size:16px;line-height:1.65;margin:0;overflow-wrap:anywhere}
.cl-search-content .cl-practice-tip{padding:18px;border:1px solid #f1ddaa;border-radius:16px;background:#fff9e8;color:#584117}
.cl-search-loader{box-sizing:border-box;width:48px;height:48px;margin:0 auto 20px;border:4px solid #fff0bf;border-top-color:#f2bc29;border-right-color:#f2bc29;border-radius:50%;animation:cl-spin .95s linear infinite}
.cl-search-loader[hidden]{display:none!important}
.cl-instructions:has(.cl-search-loader:not([hidden])){position:relative;margin-top:66px}
.cl-instructions .cl-search-loader{position:absolute;top:-66px;left:calc(50% - 24px);margin:0}
.cl-search-ad{min-height:110px;display:grid;align-items:center;max-width:100%;overflow:hidden}
.cl-search-ad .cl-ad-fallback{text-align:center;color:#667085}
body.cl-guest-v2 .cl-empty.is-queued:has(.cl-instructions:not([hidden]))>.cl-empty-icon{display:none}
body.cl-guest-v2 .cl-empty.is-queued:has(.cl-instructions:not([hidden]))>#empty-copy{display:none}
body.cl-guest-v2 .cl-empty.is-queued:has(.cl-instructions:not([hidden])){gap:12px}
body.cl-guest-v2 :is(.cl-social-dialog,.cl-dialog,.cl-a-dialog){max-height:calc(var(--cl-viewport-height) - 24px);max-width:calc(100vw - 24px)}
/* Keep the established PC order. The right-hand search layout is mobile-only. */
@media(min-width:851px){
 body.cl-guest-v2 .cl-call-actions{grid-template-columns:minmax(0,1fr) 48px 56px 48px minmax(0,1fr);column-gap:10px}
 body.cl-guest-v2 .cl-control-center{display:contents}
 body.cl-guest-v2 .cl-control-center>.cl-mode-wrap:has(#mode-toggle){grid-column:2;grid-row:1}
 body.cl-guest-v2 .cl-control-center>.cl-a-launcher{grid-column:4;grid-row:1}
 body.cl-guest-v2 .cl-control-search{grid-column:3;grid-row:1}
 body.cl-guest-v2 .cl-control-messages{grid-column:5;grid-row:1}
}
@media(max-width:850px){
 body.cl-guest-v2{--cl-header:52px;--cl-actions:calc(64px + var(--cl-safe-bottom))}
 body.cl-guest-v2:has(.cl-round-language-info:not([hidden])){--cl-header:80px}
 body.cl-guest-v2 .cl-topbar{align-items:flex-start;padding-top:3px;gap:6px}
 body.cl-guest-v2 .cl-brand{height:44px;gap:6px;font-size:15px;white-space:nowrap}
 body.cl-guest-v2 .cl-brand-icon{width:30px;height:30px}
 body.cl-guest-v2 .cl-beta{display:none}
 body.cl-guest-v2 .cl-toolbar{order:2}
 body.cl-guest-v2 .cl-toolbar{gap:2px;flex-wrap:nowrap;min-width:0}
 body.cl-guest-v2 .cl-topbar .cl-hud{top:auto;bottom:12px;height:26px;padding:0 8px;border:0;font-size:12px;gap:6px;left:0;transform:none;width:100%;justify-content:center}
 body.cl-guest-v2 .cl-topbar .cl-hud strong{font-size:12px}
 body.cl-guest-v2 .cl-topbar .cl-round-language-info{height:24px;min-height:0;padding:2px 4px}
 body.cl-guest-v2 .cl-topbar #round-flag{height:17px;width:24px;object-fit:contain}
 body.cl-guest-v2:not(:has(.cl-round-language-info:not([hidden]))) .cl-topbar .cl-hud{position:static;order:1;transform:none;width:44px;height:44px!important;padding:0;flex:none;pointer-events:auto}
 body.cl-guest-v2:not(:has(.cl-round-language-info:not([hidden]))) .cl-topbar .cl-hud .cl-view-tools{position:static;pointer-events:auto}
 body.cl-guest-v2 .cl-topbar .cl-view-tools{position:static}
 body.cl-guest-v2 :is(.cl-topbar .cl-view-tools .cl-control,.cl-toolbar>.icon-button,.cl-toolbar>.cl-account-button){width:44px;height:44px;padding:10px;flex:none}
 body.cl-guest-v2 .cl-topbar .cl-language-button{height:44px;max-width:86px;padding:5px;overflow:hidden}
 body.cl-guest-v2 .cl-topbar .cl-toolbar #language-preview>*:nth-child(n){width:20px!important;height:20px!important}
 body.cl-guest-v2 .cl-control-group{min-width:0;gap:4px}
 body.cl-guest-v2 .cl-control{width:44px;height:44px;padding:10px;flex:none}
 body.cl-guest-v2 .cl-control.cl-primary{width:48px;height:48px}
 body.cl-guest-v2 :is(.cl-control,.cl-device-arrow) svg{width:21px;height:21px}
 body.cl-guest-v2 .cl-device-wrap{height:44px;flex:none}
 body.cl-guest-v2 .cl-device-arrow{height:44px;width:28px;padding:4px}
 body.cl-guest-v2 :is(.cl-chat,.cm-chat){position:absolute;z-index:55;inset:0 0 var(--cl-actions);height:auto;max-height:none;width:100%;max-width:none;border-left:0;border-radius:0;padding:8px 8px 0}
 body.cl-guest-v2 .cl-chat-closed :is(.cl-chat,.cm-chat){display:none}
 body.cl-guest-v2 .cm-head{min-width:0;gap:2px;padding:6px;min-height:54px;border-radius:14px}
 body.cl-guest-v2 .cm-head>button:not(.cm-profile){width:36px;height:44px;min-width:0;padding:7px;flex:none}
 body.cl-guest-v2 .cm-head>.cm-person{min-width:0;flex:1}
 body.cl-guest-v2 .cm-person strong{font-size:14px}
 body.cl-guest-v2 .cm-person :is(strong,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.cl-guest-v2 .cm-chat .cl-messages{padding:12px 3px;gap:12px}
 body.cl-guest-v2 .cm-chat .cm-bubble{padding:10px 12px;font-size:var(--chat-font,15px);line-height:1.5}
 body.cl-guest-v2 .cm-chat .cl-composer{min-height:56px;padding:6px;gap:3px;flex-shrink:0}
 body.cl-guest-v2 .cm-chat .cl-composer :is(input,textarea){min-width:0;font-size:16px;max-height:100px}
 body.cl-guest-v2 .cm-chat .cl-composer button{width:40px;height:44px;min-width:0;padding:8px;flex:none}
 body.cl-guest-v2 :is(.cl-dialog,.cl-social-dialog,.cl-a-dialog){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(var(--cl-viewport-height) - 16px);margin:auto;border-radius:18px}
 body.cl-guest-v2 .cl-social-dialog{font-size:14px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog{padding:16px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog h2{font-size:21px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-biography textarea{font-size:16px}
 body.cl-guest-v2 .cl-a-menu{width:calc(100vw - 16px);max-height:calc(var(--cl-viewport-height) - 16px);padding:16px;border-radius:18px}
 body.cl-guest-v2 .cl-a-menu h2{font-size:21px}
 body.cl-guest-v2 #language-dialog[open]{inset:0!important;margin:auto!important;width:calc(100vw - 16px)!important;height:min(680px,calc(var(--cl-viewport-height) - 16px));max-height:calc(var(--cl-viewport-height) - 16px)!important}
 body.cl-guest-v2 #language-dialog .cl-dialog-head{display:none}
 body.cl-guest-v2 #language-dialog .cl-language-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px}
 body.cl-guest-v2 #language-dialog .language-option{min-width:0;min-height:48px;font-size:14px;gap:6px;padding:8px}
 body.cl-guest-v2 #language-dialog .flag-dot{width:25px;height:20px}
 body.cl-guest-v2 #language-search{font-size:16px}
 body.cl-guest-v2 .cl-instructions{padding:20px;max-width:390px;border-radius:20px}
 body.cl-guest-v2 .cl-instructions h2{font-size:20px;margin:0 0 14px}
 body.cl-guest-v2 .cl-tutorial li{font-size:14px;line-height:1.5;gap:12px}
 body.cl-guest-v2 .cl-tutorial-icon{width:38px;height:38px;flex:0 0 38px}
 body.cl-guest-v2 .cl-tutorial-icon svg{width:38px;height:38px}
 body.cl-guest-v2 .cl-instructions li+li{margin-top:12px}
 body.cl-guest-v2 .cl-presenting .cl-video-grid{position:absolute;inset:auto 0 var(--cl-actions);height:88px;width:100%;padding:4px;display:flex;flex-direction:row;gap:5px;overflow-x:auto;overflow-y:hidden;grid-template-columns:none!important}
 body.cl-guest-v2 .cl-call.cl-presenting .cl-video-grid>article{position:relative!important;inset:auto!important;flex:0 0 112px!important;width:112px!important;height:80px!important;min-height:0;grid-area:auto;aspect-ratio:auto}
 body.cl-guest-v2 .cl-presenting :is(.cl-board-v4,.ce-screen){inset:0 0 calc(var(--cl-actions) + 88px)!important;width:100%!important;height:auto!important;min-width:0;min-height:0;max-width:none;max-height:none;resize:none;transform:none;border-radius:12px}
 body.cl-guest-v2 .cl-a-game{inset:0 0 calc(var(--cl-actions) + 88px);width:100%;height:auto;min-width:0;border-radius:0}
 body.cl-guest-v2 .cl-a-game-header{padding:8px 12px;min-height:44px;gap:8px}
 body.cl-guest-v2 .cl-a-game-header h2{font-size:16px}
 body.cl-guest-v2 .cl-a-content,body.cl-guest-v2 .cl-a-game.is-board .cl-a-content{padding:12px;min-width:0}
 body.cl-guest-v2 .cl-a-game.is-board .cl-a-content{gap:8px}
 body.cl-guest-v2 .cl-main .cl-call:has(>#board-panel:not([hidden])) .cl-a-board-open{display:none}
 body.cl-guest-v2 .cl-a-game.is-board .cl-a-content button{font-size:13px;padding:8px 12px;min-height:38px}
 body.cl-guest-v2 .cl-call:has(>.cl-a-game.is-board:not([hidden])){--cl-activity-height:176px}
 body.cl-guest-v2 .cl-a-game.is-board{inset:0 0 auto;height:var(--cl-activity-height);width:100%;border-right:0}
 body.cl-guest-v2 .cl-main .cl-call:has(>.cl-a-game.is-board:not([hidden]))>.cl-board-v4{inset:var(--cl-activity-height) 0 calc(var(--cl-actions) + 88px)!important}
 body.cl-guest-v2 .cl-presenting .ce-screen-previews{flex-direction:row;max-height:none;flex-shrink:0;width:auto}
 body.cl-guest-v2 .cl-presenting .ce-screen-preview{flex:none;width:112px;height:80px}
 body.cl-guest-v2 .cl-board-v4 .wb-header{height:44px;padding:4px 8px;gap:4px;font-size:14px}
 body.cl-guest-v2 .cl-board-v4 .wb-header #board-status{font-size:11px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.cl-guest-v2 .cl-board-v4 .wb-header button{width:40px;height:40px;padding:9px;flex:none}
 body.cl-guest-v2 .cl-board-v4 .wb-footer{min-height:44px;padding:2px 4px;gap:0;flex-wrap:wrap}
 body.cl-guest-v2 .cl-board-v4 .wb-footer button{width:32px;height:40px;padding:7px}
 body.cl-guest-v2 .cl-board-v4 .wb-footer span{font-size:11px;min-width:30px}
 body.cl-guest-v2 .cl-board-v4 .wb-stage{min-height:0}
 body.cl-guest-v2 .cl-board-v4 .wb-tools:not([style*="contents"]){inset:auto 4px 4px;transform:none;flex-direction:row;max-height:none;width:auto;padding:3px;gap:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
 body.cl-guest-v2 .cl-board-v4 .wb-tools :is(.wb-tool>button,.wb-history>button),body.cl-guest-v2 .cl-board-v4 .wb-tools>button{width:40px;height:42px;padding:9px;flex:none}
 body.cl-guest-v2 .cl-board-v4 .wb-tools .wb-history{flex-direction:row;flex:none;padding-left:3px;margin:0;border:0}
 body.cl-guest-v2 .cl-board-v4 .wb-popover{position:fixed;inset:auto 12px calc(var(--cl-actions) + 178px);width:min(300px,calc(100vw - 24px));max-height:calc(var(--cl-viewport-height) - var(--cl-header) - var(--cl-actions) - 200px);overflow:auto;transform:none}
 body.cl-guest-v2 .cl-board-v4 .wb-object-tools{max-width:calc(100% - 16px);flex-wrap:wrap;gap:3px}
}
@media(max-width:620px) and (orientation:portrait){
 body.cl-guest-v2{--cl-actions:calc(108px + var(--cl-safe-bottom))}
 body.cl-guest-v2 .cl-call-actions{grid-template-columns:repeat(4,44px) minmax(0,1fr) 64px;grid-template-rows:44px 44px;justify-content:stretch;gap:4px;padding:8px 8px calc(8px + var(--cl-safe-bottom))}
 body.cl-guest-v2 .cl-control-left{grid-column:1/5;grid-row:1;justify-content:flex-start}
 body.cl-guest-v2 .cl-control-center{grid-column:1/3;grid-row:2;justify-content:flex-start;gap:4px}
 body.cl-guest-v2 .cl-control-group:last-child{grid-column:3/5;grid-row:2;justify-content:flex-start;gap:4px}
 body.cl-guest-v2 .cl-control-search{grid-column:6;grid-row:1/3}
 body.cl-guest-v2 .cl-control.cl-primary{width:60px;height:60px;border-radius:50%}
 body.cl-guest-v2 .cl-control.cl-primary svg{width:26px;height:26px}
 body.cl-guest-v2 .cl-device-arrow{display:none}
 body.cl-guest-v2 .cl-device-wrap{width:44px}
 body.cl-guest-v2 .cl-device-wrap .cl-control{width:44px}
 body.cl-guest-v2 .cl-topbar #language-preview>*:nth-child(n+2){display:none}
 body.cl-guest-v2 .cl-empty{padding:16px 20px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-card .cl-profile-flags{grid-template-columns:minmax(0,1fr)}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-card .cl-profile-language{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:6px;row-gap:3px;min-height:56px;text-align:left;padding:6px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-card .cl-profile-language img{width:28px;height:21px;grid-row:1/span 2}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-card .cl-profile-language-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-card .cl-profile-language-add{min-height:44px}
 body.cl-guest-v2 .cl-social-dialog.cl-profile-dialog .cl-profile-card .cl-profile-portrait{width:88px;height:88px}
}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){
 body.cl-guest-v2{--cl-actions:calc(56px + var(--cl-safe-bottom));--cl-header:48px}
 body.cl-guest-v2:has(.cl-round-language-info:not([hidden])){--cl-header:48px}
 body.cl-guest-v2 .cl-topbar{padding-top:2px}
 body.cl-guest-v2 .cl-topbar .cl-hud{top:2px;left:50%;width:160px;height:44px;transform:translateX(-50%)}
 body.cl-guest-v2 .cl-call-actions{grid-template-columns:auto auto minmax(0,1fr) 64px;grid-template-rows:44px;gap:6px;padding:4px 8px calc(4px + var(--cl-safe-bottom))}
 body.cl-guest-v2 .cl-control-left{grid-area:1/1;justify-content:flex-start}
 body.cl-guest-v2 .cl-control-center{grid-area:1/2;gap:4px}
 body.cl-guest-v2 .cl-control-group:last-child{grid-area:1/3;justify-content:flex-end}
 body.cl-guest-v2 .cl-control-search{grid-area:1/4}
 body.cl-guest-v2 .cl-instructions{width:min(520px,100%);max-width:none;padding:12px 16px}
 body.cl-guest-v2 .cl-instructions ul{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0}
 body.cl-guest-v2 .cl-instructions li+li{margin:0}
 body.cl-guest-v2 .cl-instructions li{font-size:13px}
 body.cl-guest-v2 .cl-presenting .cl-video-grid{inset:0 0 var(--cl-actions) auto;width:108px;height:auto;flex-direction:column;padding:4px}
 body.cl-guest-v2 .cl-call.cl-presenting .cl-video-grid>article{width:100px!important;height:74px!important;flex:0 0 74px!important}
 body.cl-guest-v2 .cl-presenting :is(.cl-board-v4,.ce-screen){inset:0 108px var(--cl-actions) 0!important;width:auto!important}
 body.cl-guest-v2 .cl-a-game:not(.is-board){inset:0 108px var(--cl-actions) 0}
 body.cl-guest-v2 .cl-a-game.is-board{inset:0 auto var(--cl-actions) 0;width:236px;height:auto;border-right:1px solid #dde5ec}
 body.cl-guest-v2 .cl-main .cl-call:has(>.cl-a-game.is-board:not([hidden]))>.cl-board-v4{inset:0 108px var(--cl-actions) 236px!important}
 body.cl-guest-v2 .cl-board-v4 .wb-popover{bottom:calc(var(--cl-actions) + 94px);max-height:calc(var(--cl-viewport-height) - var(--cl-header) - var(--cl-actions) - 112px)}
}
@media(max-width:380px){body.cl-guest-v2 .cl-toolbar{gap:0}body.cl-guest-v2 .cl-brand{font-size:13px;gap:3px}body.cl-guest-v2 .cl-brand>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body.cl-guest-v2 .cl-brand-icon{width:28px;height:28px}}
@media(pointer:coarse){body.cl-guest-v2 button{touch-action:manipulation}body.cl-guest-v2 .cl-control:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.cl-search-content *,.cl-search-loader,body.cl-guest-v2 .cl-crown-art{animation:none!important;transition:none!important}}
.cl-keyboard-open body.cl-guest-v2 :is(.cl-chat,.cm-chat){bottom:0}
.cl-keyboard-open body.cl-guest-v2 .cl-main:not(.cl-chat-closed) .cl-call-actions{visibility:hidden;pointer-events:none}

/* Keep cameras and shared-screen thumbnails reachable while drawing. The rail
   retains the same media nodes; selecting a tile can close the board. */
@media(max-width:850px){
 body.cl-guest-v2 .cl-call:has(#board-panel:not([hidden])) .cl-video-grid{visibility:visible!important;pointer-events:auto!important}
 body.cl-guest-v2 .cl-call:has(#board-panel:not([hidden]))>#board-panel{inset:0 0 calc(var(--cl-actions) + 88px) 0!important;width:auto!important}
 body.cl-guest-v2 .cl-call:has(>.cl-a-game.is-board:not([hidden]))>#board-panel:not([hidden]){left:0!important}
}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){body.cl-guest-v2 .cl-call:has(#board-panel:not([hidden]))>#board-panel{inset:0 108px var(--cl-actions) 0!important}}
/* Restore the original left brand and right account toolbar. The one language
   control stays in that toolbar; local learning rotates without moving it. */
body.cl-guest-v2 .cl-topbar{align-items:center;padding-block:0}
body.cl-guest-v2 .cl-topbar>.cl-brand{position:static;inset:auto;transform:none;flex:none;margin:0;height:36px;display:flex;align-items:center}
body.cl-guest-v2 .cl-topbar .cl-brand-icon{width:32px;height:32px}
body.cl-guest-v2 .cl-topbar>.cl-toolbar{position:static;inset:auto;transform:none;margin-left:auto;display:flex;align-items:center;flex:none}
body.cl-guest-v2 .cl-topbar .cl-hud{height:100%;padding-block:0}
body.cl-guest-v2 .cl-topbar .cl-toolbar #open-languages{display:flex;align-items:center;justify-content:center;min-width:38px;min-height:36px;padding:5px;background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;flex:none;margin:0}
body.cl-guest-v2 .cl-topbar .cl-toolbar #language-preview{display:flex;align-items:center;justify-content:center;padding:0;overflow:visible}
body.cl-guest-v2 .cl-topbar .cl-toolbar #language-preview>img.cl-header-learning-flag:nth-child(n){width:27px!important;height:18px!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:transparent!important;filter:none!important;margin:0!important;box-shadow:0 1px 2px #252b332e!important}
body.cl-guest-v2 .cl-topbar .cl-toolbar .cl-header-learning-empty{width:24px;height:24px;color:#86621b;flex:none}
body.cl-guest-v2 .cl-topbar #round-flag{animation:none!important;transition:none!important}
body.cl-guest-v2 .cl-call-actions :is(#mode-toggle,#activities-toggle){width:48px;height:46px;padding:0;flex:none}
body.cl-guest-v2 .cl-call-actions #search.cl-primary{width:58px;height:54px;padding:0;flex:none}
/* Contain intrinsic video widths and the optional voice/chat panel. */
body.cl-guest-v2 .cl-main{width:100%;max-width:100%;box-sizing:border-box}
body.cl-guest-v2 .cl-main>.cl-call,body.cl-guest-v2 .cl-call>.cl-video-grid{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body.cl-guest-v2 .cl-call>.cl-video-grid>:is(article,.cl-remote,.cl-local){min-width:0;max-width:100%;box-sizing:border-box}
body.cl-guest-v2 .cl-main.cl-chat-closed{grid-template-columns:minmax(0,1fr)}
@media(min-width:851px){body.cl-guest-v2 .cl-call-actions{grid-template-columns:minmax(0,1fr) 48px 58px 48px minmax(0,1fr)}body.cl-guest-v2 .cl-main:not(.cl-chat-closed){grid-template-columns:minmax(0,1fr) minmax(0,min(var(--chat-width,390px),45vw))}}
@media(max-width:850px){
 body.cl-guest-v2 .cl-topbar{gap:4px}
 body.cl-guest-v2 .cl-topbar>.cl-brand{font-size:15px;gap:5px}
 body.cl-guest-v2 .cl-topbar>.cl-toolbar{height:44px;gap:2px}
 body.cl-guest-v2:has(.cl-round-language-info:not([hidden])) .cl-topbar{padding-bottom:28px}
 body.cl-guest-v2:has(.cl-round-language-info:not([hidden])) .cl-topbar .cl-hud{position:absolute;top:auto;bottom:9px;height:26px;left:0;transform:none;width:100%;justify-content:center}
 body.cl-guest-v2 .cl-topbar .cl-toolbar #open-languages{width:36px;min-width:36px;max-width:36px;height:36px;min-height:36px}
 body.cl-guest-v2 .cl-call-actions :is(#mode-toggle,#activities-toggle){width:44px;height:44px}
 body.cl-guest-v2 .cl-call-actions #search.cl-primary{width:48px;height:48px}
}
@media(max-width:620px) and (orientation:portrait){body.cl-guest-v2 .cl-call-actions #search.cl-primary{width:60px;height:60px}}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){body.cl-guest-v2:has(.cl-round-language-info:not([hidden])) .cl-topbar{padding-bottom:0}body.cl-guest-v2:has(.cl-round-language-info:not([hidden])) .cl-topbar .cl-hud{top:0;bottom:auto;left:50%;transform:translateX(-50%);width:160px;height:48px}}
@media(max-width:380px){body.cl-guest-v2 .cl-topbar{padding-inline:8px;gap:2px}body.cl-guest-v2 .cl-topbar>.cl-brand{font-size:13px}body.cl-guest-v2 .cl-topbar>.cl-toolbar{gap:0}}
/* Compact header, using one vertical center for logo, tools and account. */
@media(min-width:851px){
 body.cl-guest-v2{--cl-header:50px}
 body.cl-guest-v2 .cl-topbar{align-items:center}
 body.cl-guest-v2 .cl-topbar .cl-hud{position:absolute;inset:0 auto auto 50%;transform:translateX(-50%);height:50px;width:36px;display:flex;align-items:center;justify-content:center;padding:0;border:0;gap:0}
 body.cl-guest-v2 .cl-topbar .cl-view-tools{position:absolute;inset:0;transform:none;margin:0;padding:0;width:36px;height:50px;display:grid;place-items:center;gap:0;border:0}
 body.cl-guest-v2 .cl-topbar .cl-round-language-info{position:absolute;right:calc(50% + 28px);white-space:nowrap}
 body.cl-guest-v2 .cl-topbar #fullscreen-toggle{width:36px;height:36px;min-height:36px;padding:8px}
}
/* Cream, black-rimmed level picker. The native select still owns validation. */
body.cl-guest-v2 #language-dialog .cl-level-select[hidden]{display:none!important}
.cl-level-trigger{position:relative;box-sizing:border-box;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;width:74px;min-width:74px;height:34px;min-height:34px;margin:0 6px 0 0;padding:5px 7px;border:2px solid #1c2026;border-radius:7px;background:#ffd858;color:#111;font:700 14px/1.1 system-ui;cursor:pointer}
.cl-level-trigger::after{content:'';width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
.cl-level-tab{display:block;width:max-content;padding:3px 7px;border:1px solid #1c2026;border-radius:4px;background:#ffd858;color:#111;font:700 11px/1.2 system-ui}
.cl-level-menu{position:fixed;z-index:90;box-sizing:border-box;width:132px;max-height:min(300px,calc(100dvh - 24px));overflow:auto;padding:14px 7px 7px;border:2px solid #1c2026;border-radius:8px;background:#fff9e6;box-shadow:3px 4px 0 #1c2026}
.cl-level-menu[hidden]{display:none}
.cl-level-menu>.cl-level-tab{margin:0 auto 7px}
.cl-level-menu>[role=option]{display:block;width:100%;min-height:30px;padding:4px 8px;border:0;border-radius:3px;background:transparent;color:#111;text-align:center;font:700 15px/1.2 system-ui;cursor:pointer}
.cl-level-menu>[data-level=native]{color:#d9293d}
.cl-level-menu>[role=option]:is(:hover,:focus-visible,[aria-selected=true]){background:#ffe89a;outline:2px solid #1c2026;outline-offset:-2px}
.cl-level-trigger:focus-visible{outline:3px solid #d29a12;outline-offset:3px}
body.cl-guest-v2 #language-dialog .language-option span{white-space:nowrap}
@media(max-width:480px){body.cl-guest-v2 #language-dialog .cl-language-list{grid-template-columns:minmax(0,1fr)}}
/* Search card category is outside the existing live tip/fact copy. */
.cl-tip-frame{position:relative;margin:18px 0 4px;padding-top:0}
.cl-tip-frame:has(>.cl-practice-tip[hidden]){display:none}
.cl-tip-category{position:absolute;z-index:1;left:14px;top:-14px;padding:5px 10px;border:2px solid #1c2026;border-radius:5px;background:#ffd858;color:#111;font:700 13px/1.2 system-ui}
.cl-instructions .cl-tip-frame>.cl-practice-tip{padding:25px 18px 18px;border:2px solid #1c2026;border-radius:9px;background:#fff9e6;color:#111;box-shadow:3px 4px 0 #1c2026;text-align:left}
.cl-tip-frame .cl-search-language-flag{float:left;width:36px;height:25px;margin:2px 10px 3px 0;object-fit:contain;border:0;border-radius:0;background:transparent}
.cl-instructions .cl-search-loader.cl-search-dots{display:flex;justify-content:center;align-items:center;gap:7px;width:64px;height:32px;left:calc(50% - 32px);border:0;border-radius:0;background:transparent;animation:none}
.cl-instructions .cl-search-loader.cl-search-dots[hidden]{display:none!important}
.cl-search-dot{width:10px;height:10px;border:1px solid #1c2026;border-radius:50%;background:#ffd858;animation:cl-qa5-search-dot .9s ease-in-out infinite}
.cl-search-dot:nth-child(2){animation-delay:.15s}.cl-search-dot:nth-child(3){animation-delay:.3s}
@keyframes cl-qa5-search-dot{0%,80%,100%{transform:translateY(0);opacity:.55}40%{transform:translateY(-6px);opacity:1}}
/* Actual close buttons are red; toggles named "Cerrar chat" or PiP are not Xs. */
body.cl-guest-v2 button:not([aria-expanded]):not([aria-pressed]):is(.cm-close,.cm-invite-close,.cl-profile-close-button,.cl-language-card-close,.ce-camera-badge-close){color:#de3044!important;font-weight:800;background:transparent!important;box-shadow:none!important}
body.cl-guest-v2 button:not([aria-expanded]):not([aria-pressed]):is(.cm-close,.cm-invite-close,.cl-profile-close-button,.cl-language-card-close,.ce-camera-badge-close) svg:not([stroke="#232930"]){stroke:#de3044;stroke-width:3}
body.cl-guest-v2 button:not([aria-expanded]):not([aria-pressed]):is(.cm-close,.cm-invite-close,.cl-profile-close-button,.cl-language-card-close,.ce-camera-badge-close):is(:hover,:active){color:#ef203a!important;background:#fff0f2!important}
/* Reuse the existing invitation/shield/X vector paths in the supplied style. */
body.cl-guest-v2 .cm-head :is(.cm-invite,.cm-safety,.cm-danger,.cm-close) svg{width:23px;height:23px;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(1px 1px 0 #252b3330)}
body.cl-guest-v2 .cm-head :is(.cm-invite,.cm-safety,.cm-danger) svg:not([stroke="#232930"]){fill:#ffcf58;stroke:#252b33;stroke-width:2.3}
body.cl-guest-v2 .cm-head .cm-invite svg:not([stroke="#232930"]) path{fill:none;stroke:#252b33;stroke-width:2.3}
body.cl-guest-v2 .cm-head .cm-close svg:not([stroke="#232930"]){stroke:#ef304a;stroke-width:4}
@media(prefers-reduced-motion:reduce){.cl-search-dot{animation:none}}
