/* Cohesive, scroll-safe refinement of existing workspaces. */
body.senvora-app-body .senvora-select-portal{position:fixed!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;box-sizing:border-box!important;z-index:11000!important;padding:6px!important;max-width:calc(100vw - 20px)!important;scrollbar-gutter:stable;border-radius:14px!important;background:var(--surface,#fff)!important}
body.senvora-app-body .senvora-select-portal button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;min-height:40px!important;margin:0!important;padding:10px 12px!important}
body.senvora-app-body .senvora-select-portal button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.senvora-select-button{min-width:0!important;max-width:100%!important}.senvora-select-button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-panel-v10{min-width:0!important;padding-inline:clamp(12px,2vw,26px)!important}.setting-row,.personalization-row-v221{min-width:0!important;gap:18px!important;flex-wrap:wrap}.setting-row>.senvora-select,.personalization-row-v221>.senvora-select{min-width:150px;max-width:100%}.setting-row>div:first-child{flex:1;min-width:140px}.settings-unsaved-hint{white-space:nowrap}.settings-save-bar{gap:12px!important;flex-wrap:wrap}.settings-search-results-v251{display:grid;gap:5px;padding:8px;margin:6px 0;background:var(--surface,#fff);border-radius:14px;max-height:32dvh;overflow:auto}.settings-search-results-v251:empty{display:none}.settings-search-results-v251 button{text-align:left;background:transparent;border:0;padding:10px;border-radius:9px;color:var(--text,#182337);cursor:pointer}.settings-search-results-v251 button:hover{background:var(--surface-soft,#f0f2fa)}.settings-search-highlight-v251{outline:2px solid var(--accent,#6658ed);outline-offset:3px}
.message-user .message-bubble{padding:10px 14px!important;min-height:0!important;width:fit-content!important;max-width:100%!important;border-radius:18px 18px 5px 18px!important}.message-user .message-body p,.message-user .message-content p{margin:0!important;line-height:1.5!important}.message-user .message-actions{padding:4px 0 0!important;gap:10px!important}.message-user .message-meta{margin-top:4px!important;font-size:10px!important}.message-user .message-bubble .message-content{padding:0!important;min-height:0!important}
.learning-visual-card-v241{width:min(100%,560px)!important;margin:18px auto!important;padding:16px!important;box-sizing:border-box!important;overflow:hidden!important}.learning-visual-card-v241 svg{display:block!important;width:100%!important;height:auto!important;max-height:240px!important;overflow:visible!important}.learning-visual-card-v241 svg text{paint-order:stroke;stroke:var(--surface,#fff);stroke-width:4px;stroke-linejoin:round}.learning-formula-v241{display:flex!important;align-items:center!important;justify-content:center!important;min-height:68px!important;padding:14px!important}.math-block{display:flex!important;justify-content:center!important;align-items:center!important;overflow-x:auto;max-width:100%;padding:12px!important;margin:14px 0!important}.message-content img,.message-body img,.generated-media-card img{display:block;max-width:100%!important;height:auto;object-fit:contain;margin-inline:auto}
.tutorials-grid-v243 video,video:fullscreen,video:-webkit-full-screen,.senvo-fullscreen-v251{object-fit:contain!important;max-width:100%!important;max-height:100%!important;background:#070b12!important}.tutorials-grid-v243 video{aspect-ratio:auto!important;height:auto!important}.tutorial-card-v243{min-width:0!important}.tutorial-card-v243 video{width:100%;max-height:55dvh;object-fit:contain!important}
.sidebar-animation-ghost-v250{display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1;flex:none!important;contain:layout paint;transition:none!important;transform:none;margin:0!important;border-radius:20px;background:var(--surface,#fff)!important;box-shadow:0 16px 38px #17203318}.sidebar-animation-ghost-v250 .collapsed-sidebar-rail{display:none!important}.sidebar-animation-ghost-v250 .sidebar-main-content{display:block!important}
.collapsed-sidebar-rail{gap:10px!important;padding-block:18px!important;overflow-y:auto!important;overflow-x:hidden!important;justify-content:flex-start!important}.collapsed-rail-button,.collapsed-rail-account,.collapsed-rail-logo{flex-shrink:0!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-height:42px!important;border-radius:13px!important}.collapsed-rail-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.collapsed-rail-account{margin-top:auto!important}.humanizer-nav-v251{color:var(--accent,#6658ed)!important}.collapsed-sidebar-rail a{text-decoration:none;background:#f1efff;color:#6658ed}
#developerTestResultV248{white-space:normal!important;line-height:1.65!important;padding:14px!important;max-height:420px!important;overflow:auto!important}#developerTestResultV248 p{margin:8px 0!important}#developerTestResultV248 pre{white-space:pre!important}.developer-key-row-v244{gap:16px!important;align-items:center!important;padding:16px 0!important}.developer-key-row-v244>div{min-width:0}.developer-key-row-v244 code{overflow-wrap:anywhere}.developer-tools-link-v251{display:flex;gap:12px;padding:16px;margin:16px 0;border:1px solid #dbdff5;border-radius:16px;background:linear-gradient(120deg,#f3f1ff,#effafd);color:#6558df;font-weight:700}
.arcade-shell{border-radius:26px!important;box-shadow:0 20px 70px #1c2b4926!important}#arcadeContentV247{scroll-behavior:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}.arcade-game-stage{background:linear-gradient(140deg,#f5f7fe,#fff)!important;border:1px solid #e0e7f2!important;border-radius:22px!important;padding:clamp(14px,2vw,26px)!important}.arcade-game-grid>button{border:1px solid #e0e5f2!important;box-shadow:0 3px 9px #23314a08!important;transition:transform .16s ease,box-shadow .16s ease!important}.arcade-game-grid>button:hover{transform:translateY(-2px);box-shadow:0 8px 22px #23314a12!important}.arcade-game-grid>button>span:first-child{background:linear-gradient(140deg,#776af9,#5143cb)!important;color:#fff!important;border:0!important;border-radius:16px!important;padding:12px!important;box-shadow:inset 0 1px 0 #ffffff55,0 5px 12px #6558df22}.arcade-game-grid>button:nth-child(3n+2)>span:first-child{background:linear-gradient(140deg,#28baa8,#138578)!important}.arcade-game-grid>button:nth-child(3n)>span:first-child{background:linear-gradient(140deg,#f8b44e,#d77a28)!important}.arcade-game-grid svg{width:30px!important;height:30px!important;stroke-width:1.6!important}.arcade-board button{min-height:42px!important;border-radius:9px!important;transition:background .14s,transform .14s}.arcade-board button:active:not(:disabled){transform:scale(.96)}.arcade-shell[aria-busy="true"] .arcade-board{cursor:progress;opacity:.82}.arcade-shell[aria-busy="true"] button[data-game-action]{pointer-events:none}.arcade-latency-v251{font-size:10px;color:var(--text-soft,#8390a5);font-variant-numeric:tabular-nums}.arcade-shop-card{border-radius:19px!important;gap:16px!important;padding:18px!important}.arcade-shop-icon{background:linear-gradient(130deg,#6d60f4,#3bbdc9)!important;color:#fff!important}.arcade-quest{padding:18px!important;border-radius:18px!important}.arcade-resume button{min-height:60px!important}.arcade-football-card{background:linear-gradient(120deg,#143d35,#174f64)!important;color:#fff!important}.arcade-football-card b{color:#fff!important}
.mine-impact-v251{position:fixed;inset:0;pointer-events:none;z-index:12000;background:radial-gradient(circle at 50% 50%,#c0552322,transparent 55%);display:grid;place-items:center;animation:mineImpactOutV251 .85s ease both}.mine-impact-core{position:relative;width:1px;height:1px}.mine-impact-core strong{position:absolute;transform:translate(-50%,-50%);font:900 40px system-ui;color:#fff;text-shadow:0 3px 18px #843610;background:#ab542cee;padding:15px 28px;border-radius:18px}.mine-impact-core i{position:absolute;width:8px;height:8px;border-radius:3px;background:#f8b559;animation:mineParticleV251 .7s ease-out both;transform:rotate(var(--a)) translateX(var(--d))}.mine-impact-v251.reduced i{display:none}.mine-impact-v251.reduced{animation:none}@keyframes mineParticleV251{from{transform:rotate(var(--a)) translateX(0);opacity:1}to{transform:rotate(var(--a)) translateX(var(--d));opacity:0}}@keyframes mineImpactOutV251{0%{opacity:0}15%,55%{opacity:1}100%{opacity:0}}
.product-tour-card-v242{overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box!important;border-radius:20px!important;padding:20px!important;box-shadow:0 12px 45px #15213a28!important}.product-tour-focus-v242{outline:3px solid #7164ed!important;outline-offset:4px!important;box-shadow:0 0 0 7px #7869ed22!important}.product-tour-focus-v242:after{pointer-events:none!important}
#footballModalV249 .football-pitch{isolation:isolate}#footballModalV249 .football-overlay{z-index:5!important}#footballModalV249 .football-minimap,#footballModalV249 .football-banner,#footballModalV249 .football-reward{z-index:4;position:relative}#footballModalV249 .football-minimap{position:absolute}#footballModalV249 .football-buttons button{transition:transform .13s,background .13s,box-shadow .13s!important;box-shadow:inset 0 1px 0 #ffffff22,0 5px 10px #0003!important}#footballModalV249 .football-buttons button:active,#footballModalV249 .football-buttons button.held{transform:scale(.94)!important}#footballModalV249 .football-settings label{min-width:0;gap:10px}.football-webgl-v251{border-radius:0!important}.football-webgl-v251+*{z-index:3}
body[data-performance-tier="eco"] .modal-card,body[data-performance-tier="eco"] .account-menu{backdrop-filter:none!important}body[data-performance-tier="eco"] .aurora-schedule-orbit i{animation:none!important}
@media(max-width:760px){.settings-panel-v10{padding:12px!important}.personalization-panel-v221 .personalization-grid-v221{grid-template-columns:1fr!important;gap:16px!important}.setting-row{padding:16px!important;margin-bottom:14px!important}.setting-row>.senvora-select{flex:1 1 100%!important;width:100%!important}.learning-visual-card-v241{padding:12px!important}.arcade-game-stage{padding:12px!important}.settings-save-bar .settings-unsaved-hint{flex:1 1 100%}.message-user .message-bubble{max-width:90vw!important}.product-tour-card-v242{padding:16px!important}.arcade-shop-card{padding:14px!important}.developer-key-row-v244{align-items:flex-start!important}.developer-tools-link-v251{font-size:13px}}
@media(prefers-reduced-motion:reduce){.arcade-game-grid>button,.arcade-board button,.football-buttons button{transition:none!important}.mine-impact-core i{display:none}.mine-impact-v251{animation:none}}

#footballModalV249 .football-selected{z-index:3!important}.performance-resolution-v251{font-size:11px;display:grid;gap:5px;color:var(--text-soft)}.performance-resolution-v251 .senvora-select{max-width:200px}.personalization-grid,.personalization-grid-v221{gap:18px!important}.search-trace-block{border:1px solid var(--border,#e0e5f2)!important;border-radius:16px!important;padding:16px!important;background:var(--surface,#fff)!important}.trace-sites{display:flex;flex-wrap:wrap;gap:8px!important}.source-card{padding:16px!important;border-radius:17px!important;gap:12px!important}.source-strip-scroll{gap:10px!important;scroll-snap-type:x proximity;overscroll-behavior-x:contain}.source-strip-scroll>a{scroll-snap-align:start;min-width:190px;max-width:260px}.tutorial-chat-video-v251 video{width:100%;max-height:60dvh;object-fit:contain}

.personal-grid-v221{gap:18px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.personal-grid-v221>.setting-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:18px!important;margin:0!important;gap:12px!important}.personal-grid-v221 .senvora-select{width:100%!important;max-width:none!important}.setting-row>.senvora-select{flex-shrink:0}.personal-card-v221{padding:20px!important;margin-bottom:20px!important}.personal-card-head-v221{margin-bottom:16px!important}@media(max-width:760px){.personal-grid-v221{grid-template-columns:1fr!important}.personal-card-v221{padding:16px!important}.personal-grid-v221>.setting-row{padding:16px!important}}

body.senvora-app-body .senvora-select-portal button{max-width:100%!important;flex:none!important;margin:0!important;box-sizing:border-box!important}body.senvora-app-body .senvora-select-portal button span{flex:1!important;min-width:0!important;max-width:calc(100% - 24px)!important}
