/* Existing mobile-only trainer and Tetris styles for every mobile width. */
/* Mobile-only trainer adaptation. Desktop, chat, data and global dock are untouched. */
@media all {
html.mw230 body .workspace-app-window.coach {overflow:hidden!important;display:block!important;}
html.mw230 body .workspace-app-window.coach > .workspace-app-titlebar {top:16px!important;right:12px!important;height:38px!important;z-index:10!important;}
html.mw230 body .workspace-app-window.coach > .workspace-app-titlebar > nav button {width:34px!important;height:38px!important;}
html.mw230 body .workspace-app-window.coach .coach-app.coach-suite-v173 {--coach-bg:#001a14;--coach-panel:#04221c;--coach-panel-2:#082b23;--coach-line:#205247;--coach-muted:#8fa9a1;--coach-text:#e3f3ea;--coach-accent:#85e4b6;display:block!important;width:100%!important;height:100%!important;min-width:0!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y;padding:0 12px 20px!important;box-sizing:border-box!important;background:rgba(0,23,17,.97)!important;font:14px/1.45 Manrope,Arial,sans-serif!important;}
html.mw230 body .coach-suite-v173 *,html.mw230 body .coach-suite-v173 *::before,html.mw230 body .coach-suite-v173 *::after {box-sizing:border-box;min-width:0;}
html.mw230 body .coach-suite-v173 .coach-suite-stage {display:block!important;width:100%!important;height:auto!important;overflow:visible!important;padding:0!important;}
html.mw230 body .coach-suite-v173 .coach-suite-sidebar {display:none!important;width:100%!important;min-width:0!important;height:auto!important;padding:12px!important;border:1px solid var(--coach-line)!important;border-radius:14px!important;}
html.mw230 body .coach-suite-v173.tm-menu-open .coach-suite-sidebar {display:block!important;margin:0 0 14px!important;}
html.mw230 body .coach-suite-v173 .coach-suite-sidebar > header,html.mw230 body .coach-suite-v173 .coach-suite-sidebar > footer,html.mw230 body .coach-suite-v173 .coach-suite-upsell,html.mw230 body .coach-suite-v173 .coach-suite-brand,html.mw230 body .coach-suite-v173 .coach-role-bar,html.mw230 body .coach-suite-v173 .coach-pro-rail {display:none!important;}
html.mw230 body .coach-suite-v173 .coach-suite-sidebar nav {display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;}
html.mw230 body .coach-suite-v173 button {font:inherit!important;min-height:40px;color:var(--coach-text);cursor:pointer;}
html.mw230 body .coach-suite-v173 .tm-header {display:flex;align-items:center;height:72px;padding-right:80px;gap:6px;}
html.mw230 body .coach-suite-v173 .tm-header > header {display:flex;align-items:center;gap:9px;flex:1;}
html.mw230 body .coach-suite-v173 .tm-header img {width:36px;height:36px;border-radius:10px;}
html.mw230 body .coach-suite-v173 .tm-header strong {font:600 21px/1.2 Manrope,Arial,sans-serif;}
html.mw230 body .coach-suite-v173 .tm-header span {display:none;}
html.mw230 body .coach-suite-v173 .tm-menu {font-size:11px!important;background:transparent;border:1px solid var(--coach-line);border-radius:10px;padding:5px;}
html.mw230 body .coach-suite-v173 .tm-roles {display:flex;border:1px solid var(--coach-line);border-radius:13px;padding:3px;gap:3px;margin-bottom:12px;}
html.mw230 body .coach-suite-v173 .tm-roles button {flex:1;background:transparent;border:0;border-radius:10px;font-size:12px!important;padding:6px 3px;}
html.mw230 body .coach-suite-v173 .tm-roles .active {background:#205740;color:#ecfff4;}
html.mw230 body .coach-suite-v173 .tm-tabs {display:flex;gap:5px;border-bottom:1px solid var(--coach-line);margin:0 0 16px;}
html.mw230 body .coach-suite-v173 .tm-tabs button {flex:1;border:0;border-bottom:2px solid transparent;background:transparent;padding:6px 0;font-size:13px!important;color:var(--coach-muted);}
html.mw230 body .coach-suite-v173 .tm-tabs .active {border-bottom-color:#85e4b6;color:#85e4b6;}
html.mw230 body .coach-suite-v173 .tm-register {display:block;margin:-6px 0 12px auto;padding:0 12px;border:1px solid var(--coach-line);border-radius:10px;background:transparent;color:#85e4b6;font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-marketplace {display:block!important;overflow:visible!important;height:auto!important;}
html.mw230 body .coach-suite-v173 .coach-market-main {padding:0!important;overflow:visible!important;}
html.mw230 body .coach-suite-v173 .coach-market-title h1 {font:500 24px/1.3 Manrope,Arial,sans-serif!important;margin:12px 0 6px!important;}
html.mw230 body .coach-suite-v173 .coach-market-title p {font-size:13px!important;}
html.mw230 body .coach-suite-v173 .coach-search-row {display:flex!important;gap:8px;}
html.mw230 body .coach-suite-v173 .coach-search-row label {flex:1!important;width:auto!important;}
html.mw230 body .coach-suite-v173 .coach-search-row input {width:100%!important;height:44px!important;}
html.mw230 body .coach-suite-v173 .coach-search-row button {padding:6px 10px!important;font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-category-row {display:flex!important;overflow-x:auto!important;gap:7px;padding-bottom:8px!important;}
html.mw230 body .coach-suite-v173 .coach-category-row button {flex:0 0 auto!important;white-space:nowrap;padding:6px 12px!important;font-size:12px!important;border-radius:20px!important;}
html.mw230 body .coach-suite-v173 .coach-filter-panel {display:grid!important;gap:8px;font-size:13px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-card {padding:14px!important;border-radius:16px!important;gap:10px!important;min-height:0!important;background:#06231e!important;}
html.mw230 body .coach-suite-v173 .trainer-person-main {grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important;text-align:left!important;}
html.mw230 body .coach-suite-v173 .trainer-person-main img {width:64px!important;height:64px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-main strong {font:600 16px/1.3 Manrope,Arial,sans-serif!important;white-space:normal!important;}
html.mw230 body .coach-suite-v173 .trainer-person-main small,html.mw230 body .coach-suite-v173 .trainer-person-main b {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-main i {font-size:9px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-card > p {display:none!important;}
html.mw230 body .coach-suite-v173 .trainer-tags {flex-wrap:wrap!important;gap:5px!important;}
html.mw230 body .coach-suite-v173 .trainer-tags span {font-size:11px!important;padding:4px 7px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-card footer {margin-top:6px!important;gap:8px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-card footer span {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .trainer-person-card footer button {padding:7px 12px!important;background:#17573b!important;border-radius:10px!important;}
html.mw230 body .coach-suite-v173 .trainer-heart {font-size:10px!important;}
html.mw230 body .coach-suite-v173 .coach-profile-panel {display:none!important;}
html.mw230 body .coach-suite-v173[data-tm-profile=open] .coach-market-main {display:none!important;}
html.mw230 body .coach-suite-v173[data-tm-profile=open] .coach-profile-panel:not([hidden]) {display:block!important;position:relative!important;width:100%!important;padding:16px!important;overflow:visible!important;height:auto!important;}
html.mw230 body .coach-suite-v173 .coach-benefits {margin-top:20px!important;}
html.mw230 body .coach-suite-v173 .coach-benefits > div {grid-template-columns:1fr!important;}
html.mw230 body .coach-suite-v173 .coach-pro-dashboard,html.mw230 body .coach-suite-v173 .coach-content-page {padding:0!important;overflow:visible!important;}
html.mw230 body .coach-suite-v173 .coach-pro-dashboard > header {margin-bottom:14px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-dashboard h1,html.mw230 body .coach-suite-v173 .coach-content-page h1 {font:600 22px/1.3 Manrope,Arial,sans-serif!important;}
html.mw230 body .coach-suite-v173 .coach-pro-dashboard > header p {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-dashboard > header > button {display:none!important;}
html.mw230 body .coach-suite-v173 .coach-pro-stats {grid-template-columns:1fr 1fr!important;gap:9px!important;margin-bottom:12px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-stats article {min-height:92px!important;padding:12px!important;border-radius:13px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-stats span,html.mw230 body .coach-suite-v173 .coach-pro-stats small {font-size:11px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-stats strong {font-size:22px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-grid {display:flex!important;flex-direction:column!important;gap:12px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-grid > section {padding:13px!important;border-radius:14px!important;}
html.mw230 body .coach-suite-v173 .coach-next-card {order:-2!important;}
html.mw230 body .coach-suite-v173 .coach-load-card {order:-1!important;}
html.mw230 body .coach-suite-v173 h2 {font:600 15px/1.4 Manrope,Arial,sans-serif!important;}
html.mw230 body .coach-suite-v173 .coach-next-card header > span {display:none!important;}
html.mw230 body .coach-suite-v173 .coach-next-card > button {background:#80dfaf!important;color:#003322!important;border-radius:10px!important;width:100%!important;}
html.mw230 body .coach-suite-v173 .coach-next-card small {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-load-card header {display:block!important;}
html.mw230 body .coach-suite-v173 .coach-load-card header span {font-size:11px!important;}
html.mw230 body .coach-suite-v173 .coach-bars {height:95px!important;}
html.mw230 body .coach-suite-v173 .coach-active-card {padding:12px!important;border:1px solid var(--coach-line);border-radius:14px;margin-bottom:12px;}
html.mw230 body .coach-suite-v173 .coach-active-card article {display:grid!important;grid-template-columns:40px minmax(0,1fr) 48px!important;gap:8px!important;padding:12px 0!important;}
html.mw230 body .coach-suite-v173 .coach-active-card article img {width:40px!important;height:40px!important;}
html.mw230 body .coach-suite-v173 .coach-active-card article strong {font-size:13px!important;}
html.mw230 body .coach-suite-v173 .coach-active-card article small {font-size:11px!important;white-space:normal!important;}
html.mw230 body .coach-suite-v173 .coach-program-card {padding:12px!important;border:1px solid var(--coach-line);border-radius:14px;}
html.mw230 body .coach-suite-v173 .coach-program-card > div {display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
html.mw230 body .coach-suite-v173 .coach-content-list article {display:flex!important;flex-wrap:wrap;gap:8px!important;padding:12px!important;}
html.mw230 body .coach-suite-v173 .coach-content-list strong {flex:1;white-space:normal!important;}
html.mw230 body .coach-suite-v173 .coach-suite-toast,html.mw230 body .coach-suite-v173 .coach-create-menu {position:sticky!important;bottom:0!important;left:auto!important;right:auto!important;max-width:100%!important;transform:none!important;z-index:20;}
html.mw230 body .coach-suite-v173 [hidden] {display:none!important;}
html.mw230 body .coach-suite-v173 {scrollbar-width:thin;scrollbar-color:#285648 transparent;}
html.mw230 body .coach-suite-v173 .coach-market-title p {display:none!important;}
html.mw230 body .coach-suite-v173 .trainer-person-card .trainer-tags span:nth-child(3) {display:none!important;}
html.mw230 body .coach-suite-v173 .trainer-card-top {margin-bottom:0!important;}
html.mw230 body .coach-suite-v173 .coach-next-card {min-height:0!important;}
html.mw230 body .coach-suite-v173 .coach-next-card > div strong {font-size:14px!important;}
html.mw230 body .coach-suite-v173 .coach-next-card > p {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-content-page header > button {position:static!important;}
html.mw230 body .coach-suite-v173 .coach-content-page > header {border:0!important;background:transparent!important;padding:0 0 14px!important;}
html.mw230 body .coach-suite-v173 .coach-program-card header {display:flex!important;align-items:center;justify-content:space-between;gap:8px;}
html.mw230 body .coach-suite-v173 .coach-program-card header button {font-size:11px!important;padding:5px!important;}
html.mw230 body .coach-suite-v173 .tm-header {height:62px;}
html.mw230 body .coach-suite-v173 .tm-tabs {margin-bottom:12px;}
html.mw230 body .coach-suite-v173 .coach-pro-stats article {min-height:82px!important;padding:10px!important;gap:4px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-dashboard > header {margin-bottom:10px!important;}
html.mw230 body .coach-suite-v173 .coach-next-card {padding:12px!important;}
html.mw230 body .coach-suite-v173 .coach-next-card > div {margin:8px 0!important;}
html.mw230 body .coach-suite-v173 .coach-next-card > p {margin:8px 0!important;}
html.mw230 body .coach-suite-v173 .coach-next-card > button {margin-top:0!important;}
html.mw230 body .coach-suite-v173 .coach-active-card article strong {font-size:14px!important;}
html.mw230 body .coach-suite-v173 .coach-active-card article small {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-program-card strong {font-size:13px!important;}
html.mw230 body .coach-suite-v173 .coach-program-card span {font-size:12px!important;}
html.mw230 body .coach-suite-v173 .coach-pro-stats span,html.mw230 body .coach-suite-v173 .coach-pro-stats small {font-size:12px!important;}
html.mw230:not(.mw-home):has(.workspace-app-window.coach) .mw-dock button.active {background:transparent!important;}
html.mw230:not(.mw-home):has(.workspace-app-window.coach) .mw-dock button:first-child {background:#164c37!important;border-radius:18px;}
}

/* Mobile-only Tetris layout. Existing engine, controls and persistence stay intact. */
@media all{
html.mw230 .tt-suite{position:relative}
html.mw230 .tt-game-area{grid-template-columns:minmax(0,1fr)!important;justify-content:stretch!important}
html.mw230.mw-tetris:not(.mw-home) .mw-dock{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.mw230.mw-tetris:not(.mw-home) .mw-top{display:none!important}
html.mw230.mw-tetris:not(.mw-home) .workspace-app-window.games:has(.tt-suite){inset:env(safe-area-inset-top) 0 calc(82px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;padding:0!important;overflow:hidden!important;background:#000f18!important}
html.mw230.mw-tetris .workspace-app-window.games:has(.tt-suite)>.workspace-app-titlebar{display:none!important}
html.mw230 .tt-suite{display:grid!important;grid-template-rows:30px minmax(0,1fr)!important;height:100%!important;min-height:0!important;overflow:hidden!important;background:#000f18!important;font-family:Manrope,Arial,sans-serif}
html.mw230 .tt-header,html.mw230 .tt-left,html.mw230 .tt-right,html.mw230 .tt-level,html.mw230 .tt-key-hint,html.mw230 .tt-controls .tt-pause{display:none!important}
html.mw230 .tt-toolbar{display:flex!important;justify-content:space-around;gap:4px;padding:0 8px!important;min-height:0;border-bottom:1px solid #164756;flex-wrap:nowrap!important}
html.mw230 .tt-toolbar>button,html.mw230 .tt-toolbar>span:nth-of-type(n+4){display:none!important}
html.mw230 .tt-toolbar>span{border:0;background:none;padding:0!important;font-size:11px!important;font-weight:400;color:#68efdb;white-space:nowrap}
html.mw230 .tt-toolbar b{font-size:13px;font-weight:600;margin-left:4px}
html.mw230 .tt-columns,html.mw230 .tt-center{display:contents!important}
html.mw230 .tt-game-area{display:grid!important;grid-template-rows:38px minmax(0,1fr);gap:0!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;max-width:none!important;padding:0 5px 62px;position:relative;overflow:hidden!important}
html.mw230 .tt-board-frame{grid-row:2;width:100%!important;height:100%!important;aspect-ratio:auto!important;min-height:0!important;padding:5px!important;border-radius:11px!important;border:2px solid #247a9c!important}
html.mw230 .tt-board{width:100%;height:100%;min-height:0}
html.mw230 .tt-next-column{grid-row:1;width:100%!important;min-height:0;display:block!important}
html.mw230 .tt-next{height:100%;display:grid!important;grid-template-columns:54px repeat(3,1fr);align-items:center;gap:5px;padding:2px 8px!important;border:0!important;background:none!important;border-radius:0}
html.mw230 .tt-next .tt-panel-heading{margin:0!important}
html.mw230 .tt-next h2{font-size:11px!important;font-weight:500;color:#68efdb}
html.mw230 .tt-next-item{height:30px!important;background:none;border-radius:0}
html.mw230 .tt-next-item:nth-of-type(n+4){display:none!important}
html.mw230 .tt-mini{height:30px!important;width:36px!important;gap:1px}
html.mw230 .tt-mini i[class*='piece-']{border-radius:2px;box-shadow:inset 0 1px 2px #ffffff9c,0 0 4px currentColor}
html.mw230 .tt-controls{position:absolute;bottom:4px;left:8px;right:8px;width:auto!important;max-width:none!important;height:52px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
html.mw230 .tt-controls>div{height:52px;display:block!important}
html.mw230 .tt-controls>div:nth-child(1){order:1}html.mw230 .tt-controls>div:nth-child(4){order:2}html.mw230 .tt-controls>div:nth-child(3){order:3}html.mw230 .tt-controls>div:nth-child(2){order:4}
html.mw230 .tt-controls>div span{display:none!important}
html.mw230 .tt-controls>div button{height:52px!important;min-height:44px!important;width:100%;padding:8px;background:#00121b;border:1px solid #205368;border-radius:11px}
html.mw230 .tt-controls .tt-icon{width:28px!important;height:28px!important;filter:invert(90%) sepia(32%) saturate(783%) hue-rotate(101deg)}
html.mw230 .tt-overlay{inset:5px;backdrop-filter:blur(1px);background:#001019bb}
html.mw230 .tt-overlay p{font-size:12px}html.mw230 .tt-overlay button{font-size:16px;min-height:48px}
html.mw230.mw-tetris:not(.mw-home) .mw-dock{display:grid!important}
}

/* v234: global navigation at top ONLY while mobile Tetris is visible. */
@media all{
html.mw230.mw-tetris:not(.mw-home) .mw-dock{
 top:calc(6px + env(safe-area-inset-top))!important;
 bottom:auto!important;
 height:66px!important;
}
html.mw230.mw-tetris:not(.mw-home) .workspace-app-window.games:has(.tt-suite){
 inset:calc(78px + env(safe-area-inset-top)) 0 calc(6px + env(safe-area-inset-bottom))!important;
}
html.mw230 .tt-suite{grid-template-rows:minmax(0,1fr)!important}
html.mw230 .tt-toolbar{display:none!important}
html.mw230 .tt-game-area{padding-bottom:70px!important}
html.mw230 .tt-controls,html.mw230 .tt-controls>div,html.mw230 .tt-controls>div button{height:60px!important}
}

/* WELLY mobile compatibility. No rule applies to the desktop presentation. */
html.mw230{--mw-safe-top:env(safe-area-inset-top,0px);--mw-safe-bottom:env(safe-area-inset-bottom,0px);--mw-safe-left:env(safe-area-inset-left,0px);--mw-safe-right:env(safe-area-inset-right,0px);--mw-header:62px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.mw230 body{min-width:0;overscroll-behavior-x:none}
html.mw230 body .workspace-screen{box-sizing:border-box!important;padding-top:var(--mw-safe-top)!important;padding-left:max(8px,var(--mw-safe-left))!important;padding-right:max(8px,var(--mw-safe-right))!important}
html.mw230 body .mw-top{height:var(--mw-header);flex-basis:var(--mw-header);min-width:0}
html.mw230 body .mw-logo{flex:0 1 130px;min-width:80px}
html.mw230 body .mw-top nav{flex-shrink:0}
html.mw230 body .mw-dock{left:max(10px,var(--mw-safe-left));right:max(10px,var(--mw-safe-right));-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
html.mw230 body .mw-dock button{min-height:44px;touch-action:manipulation}
html.mw230 body :is(button,a,input,textarea,select){touch-action:manipulation}
html.mw230 body :is(input,textarea,select){font-size:16px!important}
html.mw230 body :is(.hub-directory,.hub-conversation-list,.chat-thread,.workspace-app-window,.chat-info-drawer){-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding-block:12px}
html.mw230 body .workspace-app-window{top:calc(var(--mw-vtop,0px) + var(--mw-safe-top) + var(--mw-header))!important;bottom:auto!important;left:max(8px,var(--mw-safe-left))!important;right:max(8px,var(--mw-safe-right))!important;height:calc(var(--mw-vh,100dvh) - var(--mw-safe-top) - var(--mw-header) - var(--mw-dock) - var(--mw-safe-bottom))!important;min-height:0!important;max-height:none!important;overflow-x:hidden!important}
html.mw230 body .workspace-app-titlebar{flex-shrink:0;min-width:0!important;gap:8px!important}
html.mw230 body .workspace-app-titlebar>div{min-width:0!important}
html.mw230 body .workspace-app-titlebar strong{overflow-wrap:anywhere}
html.mw230 body .workspace-app-titlebar nav{flex-shrink:0;gap:4px}
html.mw230 body .workspace-app-titlebar nav button{min-width:36px;min-height:40px}
html.mw230 body :is(.chat-context-copy,.chat-message>div,.hub-conversation-copy){min-width:0!important;overflow-wrap:anywhere}
html.mw230 body .chat-message :is(img,video){max-width:100%!important;height:auto}
html.mw230 body .chat-message pre{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
html.mw230 body .chat-thread{overscroll-behavior-y:contain}
html.mw230 body .chat-compose-main{align-items:center;min-height:46px}
html.mw230 body .chat-composer textarea{resize:none;scroll-margin-bottom:12px}
html.mw230.mw-keyboard body .mw-top{display:none!important}
html.mw230.mw-keyboard{--mw-header:0px;--mw-safe-top:0px;--mw-safe-bottom:0px}
html.mw230.mw-keyboard body .workspace-screen{padding-top:0!important}
html.mw230.mw-keyboard body .chat-context-strip{min-height:52px!important;padding-block:5px!important}
/* Keep the list/conversation switch independent of viewport orientation. */
html.mw230 body .workspace-chat-hub{display:flex!important}
html.mw230 body .workspace-chat-hub:not(.mobile-conversation-open) .hub-conversation-area{display:none!important}
html.mw230 body .workspace-chat-hub:not(.mobile-conversation-open) .hub-directory{display:flex!important;flex-direction:column!important}
html.mw230 body .chat-context-strip [aria-label="Назад к списку чатов"]{display:inline-flex!important;flex-shrink:0}
html.mw230 body .workspace-chat-hub.mobile-conversation-open .hub-directory{display:none!important}
html.mw230 body .workspace-chat-hub.mobile-conversation-open .hub-conversation-area{display:flex!important;flex:1!important}
html.mw230 body .hub-conversation-area>.chat-shell{width:100%!important;flex:1 1 0%!important;min-width:0!important}
html.mw230 body .hub-directory{flex:1!important;min-height:0!important}
html.mw230 body .chat-info-drawer{top:calc(var(--mw-vtop,0px) + var(--mw-safe-top))!important;bottom:auto!important;height:calc(var(--mw-vh,100dvh) - var(--mw-safe-top) - var(--mw-dock) - var(--mw-safe-bottom))!important;padding-left:max(14px,var(--mw-safe-left))!important;padding-right:max(14px,var(--mw-safe-right))!important}
/* Narrow-screen controls and intrinsic grid sizes, not page-wide scaling. */
html.mw230 body .notes-editor-toolbar{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;max-width:100%!important;gap:4px!important;margin-inline:8px!important}
html.mw230 body .notes-editor-toolbar button{flex:0 0 auto!important;min-width:32px;min-height:36px}
html.mw230 body .notes-editor-toolbar .divider{display:none}
html.mw230 body .notes-pro-editor{grid-template-rows:64px auto minmax(180px,1fr) auto!important}
html.mw230 body .notes-editor-toolbar{padding-block:6px!important}
html.mw230 body :is(.hx-metrics,.hx-owner-top,.hx-charts,.hx-owner-bottom,.hx-property-grid,.fb-stats){min-width:0!important}
html.mw230 body :is(.hx-metrics,.fb-stats){grid-template-columns:repeat(2,minmax(0,1fr))!important}
html.mw230 body :is(.hx-metrics article,.hx-metrics article>div,.hx-metrics span,.fb-stats>div){min-width:0!important;overflow-wrap:anywhere}
html.mw230 body :is(.hx-owner-top,.hx-charts,.hx-owner-bottom){grid-template-columns:minmax(0,1fr)!important}
html.mw230 body .hx-content{min-width:0!important;overflow-x:hidden!important}
html.mw230 body .hx-metrics article{padding:10px!important;gap:6px!important}
html.mw230 body .hx-metrics .hx-icon{width:22px!important;height:22px!important}
html.mw230 body .hx-metrics strong{font-size:20px!important}
html.mw230 body :is(.fb-form-actions,.fb-builder-actions){flex-wrap:wrap}
html.mw230 body .fb-form-actions button{min-width:0!important;flex:1 1 120px}
html.mw230 body :is(.fb-new-recipe,.fb-editorial){padding:14px!important}
html.mw230 body .calendar-days{grid-template-columns:repeat(7,minmax(0,1fr))!important}
html.mw230 body .workspace-app-window.fitness{display:flex!important;flex-direction:column!important}
html.mw230 body .workspace-app-window.fitness:has(.fx-app)>.workspace-app-titlebar{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:52px!important;pointer-events:auto!important}
html.mw230 body .workspace-app-window.fitness:has(.fx-app)>.workspace-app-titlebar>div{display:flex!important}
html.mw230 body .workspace-app-window.fitness>.fx-app{flex:1 1 0%!important;height:auto!important;min-height:0!important}
html.mw230 body .fx-main{overflow-y:auto!important;min-height:0!important}
html.mw230 body .venue-marketplace-app{height:100%!important;min-height:0!important}
html.mw230.mw-home body .workspace-app-window{display:none!important}
html.mw230 body .mw-home-nav button{min-width:0;font-size:clamp(10px,2.8vw,13px);padding-inline:6px;gap:4px}
html.mw230 body .workspace-desktop-app strong{overflow-wrap:anywhere}
html.mw230 body .workspace-desktop-icons{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(min-width:600px){html.mw230 body .workspace-desktop-icons{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media(max-width:360px){
 html.mw230 body .hub-directory{padding:12px!important}
 html.mw230 body .chat-context-strip{gap:6px!important;padding-inline:6px!important}
 html.mw230 body .chat-context-copy small{max-width:120px}
 html.mw230 body .hx-property-grid{grid-template-columns:minmax(0,1fr)!important}
}
/* Retain the approved top dock and bottom game controls on every phone. */
html.mw230.mw-tetris:not(.mw-home) body .workspace-app-window.games:has(.tt-suite){top:calc(var(--mw-vtop,0px) + 78px + var(--mw-safe-top))!important;left:var(--mw-safe-left)!important;right:var(--mw-safe-right)!important;bottom:auto!important;height:calc(var(--mw-vh,100dvh) - 84px - var(--mw-safe-top) - var(--mw-safe-bottom))!important}
html.mw230 body .mw-portrait-guard[hidden]{display:none!important}
html.mw230 body .mw-portrait-guard{position:fixed;inset:0;z-index:2147483647;box-sizing:border-box;background:#00150f;color:#dcf4e8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px max(24px,env(safe-area-inset-right)) 24px max(24px,env(safe-area-inset-left));font-family:inherit;outline:0;touch-action:none}
html.mw230 body .mw-portrait-guard h2{font-size:clamp(19px,3vw,28px);margin:18px 0 10px}
html.mw230 body .mw-portrait-guard p{max-width:460px;font-size:15px;line-height:1.5;color:#a3c6b8;margin:0}
html.mw230 body .mw-portrait-phone{display:block;width:34px;height:56px;border:3px solid #75e5ac;border-radius:9px;position:relative}
html.mw230 body .mw-portrait-phone:after{content:'';position:absolute;bottom:5px;left:10px;right:10px;height:3px;background:#75e5ac;border-radius:2px}
html.mw230.mw-portrait-required body{overflow:hidden!important}
html.mw230.mw-portrait-required body :is(#root,.mw-dock){pointer-events:none!important;visibility:hidden!important}
