/* Shared presentation layer. Keep application navigation and editor geometry intact. */
html { -webkit-text-size-adjust:100%; }
html[data-theme] body:not(.page-admin) {
  --main-bg:#f5f7fa; --main-surface:#fff; --main-surface-soft:#f0f3f8;
  --text:#202938; --text-soft:#4b586c; --text-muted:#64748b;
  --line:#e3e8ef; --line-strong:#cbd5e1;
  --shadow-card:0 2px 12px rgba(25,40,65,.04);
  --shadow:0 4px 20px rgba(25,40,65,.06);
  font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:16px; line-height:1.65;
  background-color:var(--main-bg); color:var(--text);
}
body:not(.page-admin) :is(.page-hd h1,.page-title) {font-size:clamp(26px,3vw,36px);font-weight:700;letter-spacing:-.025em;}
body:not(.page-admin) :is(.page-hd p,.form-label,.form-help,.form-hint) {font-size:14px;line-height:1.6;}
body:not(.page-admin) :is(.card,.panel,.home-console,.creation-topbar) {border-color:var(--line);border-radius:16px;box-shadow:var(--shadow-card);}
body:not(.page-admin) .btn {font-size:15px;min-height:44px;padding:10px 16px;border-radius:10px;font-weight:600;line-height:1.4;}
body:not(.page-admin) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]):not([type=file]),select,textarea) {
  font-size:16px;line-height:1.5;border-radius:10px;
}
body:not(.page-admin) textarea {line-height:1.7;}
body:not(.page-admin) :is(a,button,input,select,textarea):focus-visible {outline:3px solid var(--primary);outline-offset:3px;}
body:not(.page-admin) .sidebar-nav-item {min-height:46px;font-size:15px;border-radius:10px;}
body:not(.page-admin) .sidebar-nav-section {font-size:12px;letter-spacing:.04em;}
body:not(.page-admin) .page-hd-actions {flex-wrap:wrap;}
html[data-theme] body.page-creation .creation-message > div {font-size:16px;line-height:1.8;}
html[data-theme] body.page-creation .creation-chat-actions button {min-height:40px;font-size:14px;}
html[data-theme] body.page-creation .creation-history-item strong {font-size:14px;}
html[data-theme] body.page-creation .creation-history-item small {font-size:12px;}
html[data-theme] body.page-creation .creation-welcome h2 {font-size:26px;}
html[data-theme] body.page-creation .creation-topbar {box-shadow:none;}
html[data-theme] body.page-creation .creation-composer {border:1px solid var(--line-strong);box-shadow:0 6px 24px rgba(25,40,65,.07);}
@media(max-width:720px) {
  body:not(.page-admin) {--display-main-pad-x:14px;--display-main-pad-y:18px;}
  body:not(.page-admin) .page-hd {align-items:flex-start;flex-direction:column;gap:12px;}
  body:not(.page-admin) .page-hd-actions {width:100%;gap:8px;}
  body:not(.page-admin) .page-hd-actions .btn {flex:1 1 auto;}
  body:not(.page-admin) .btn {min-height:44px;font-size:15px;}
  body:not(.page-admin) :is(.table-wrap,.table-responsive) {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
  body:not(.page-admin) :is(.modal-dialog,dialog) {max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto;}
  html[data-theme] body.page-creation .creation-workspace {grid-template-rows:146px minmax(0,1fr);}
  html[data-theme] body.page-creation .creation-sidebar {height:146px;max-height:146px;padding:8px 12px;}
  html[data-theme] body.page-creation .creation-sidebar-head {height:46px;}
  html[data-theme] body.page-creation .creation-sidebar-head a {min-width:44px;min-height:44px;}
  html[data-theme] body.page-creation .creation-history-item {min-height:74px;}
  html[data-theme] body.page-creation .creation-topbar {margin:6px 10px 0;padding:10px;gap:8px;flex-wrap:wrap;}
  html[data-theme] body.page-creation .creation-top-actions .btn {min-height:44px;padding:8px 12px;}
  html[data-theme] body.page-creation .creation-thread {padding:16px 12px;}
  html[data-theme] body.page-creation .creation-message > div {max-width:100%;padding:12px 14px;overflow-wrap:anywhere;}
  html[data-theme] body.page-creation .creation-chat-actions {flex-wrap:wrap;gap:8px;}
  html[data-theme] body.page-creation .creation-chat-actions button {min-height:44px;}
  html[data-theme] body.page-creation .creation-composer {width:calc(100% - 20px);margin:0 10px 10px;padding:12px;max-height:45dvh;}
  html[data-theme] body.page-creation .creation-composer :is(textarea,input,select) {font-size:16px!important;}
  html[data-theme] body.page-creation .creation-composer .home-create-toolbar {gap:8px;}
}
@media(prefers-reduced-motion:reduce) {
  body:not(.page-admin) :is(.btn,.card,.sidebar-nav-item) {transition:none;animation:none;}
}
/* Reference-aligned visual tokens: clear blue, high contrast, mobile-first cards. */
html[data-theme] body:not(.page-admin){
  --primary:#1f5ae0;--primary-dark:#1a4fc6;--primary-light:#2b6cf0;
  --primary-glow:rgba(31,90,224,.16);--main-bg:#f6f8fb;--main-surface:#fff;
  --main-surface-soft:#eef3fc;--line:#e5e9f0;--line-strong:#cbd5e1;
  --radius:18px;--radius-lg:26px;--shadow-card:0 6px 18px rgba(15,23,42,.06);
}
html[data-theme] body:not(.page-admin) .sidebar{background:#0f172a;}
html[data-theme] body:not(.page-admin) .sidebar-nav-item.active{background:rgba(31,90,224,.18);color:#dbeafe;}
html[data-theme] body:not(.page-admin) :is(.card,.panel,.home-console,.creation-topbar,.creation-composer,.creation-history-item){
  border-radius:18px;border-color:#e5e9f0;box-shadow:0 6px 18px rgba(15,23,42,.06);
}
html[data-theme] body:not(.page-admin) .btn-primary{background:linear-gradient(135deg,#2b6cf0,#1a4fc6);box-shadow:0 8px 20px rgba(31,90,224,.18);}
html[data-theme] body:not(.page-admin) :is(input,select,textarea){border-color:#d6dee9;background:#fff;}
@media(max-width:720px){
  html[data-theme] body:not(.page-admin){font-size:15px;padding-bottom:calc(var(--mobile-bottom-nav-height,74px) + env(safe-area-inset-bottom));}
  html[data-theme] body:not(.page-admin) .main-area{padding-left:14px;padding-right:14px;}
  html[data-theme] body:not(.page-admin) .sidebar{display:none;}
  html[data-theme] body:not(.page-admin) .mobile-sidebar-primary{display:flex;}
  html[data-theme] body:not(.page-admin) .page-hd h1{font-size:28px;}
  html[data-theme] body:not(.page-admin) :is(.card,.panel){border-radius:18px;}
}
/* Studio landing: dedicated structure, independent of legacy layout density. */
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home{
  display:flex!important;flex-direction:column;gap:28px!important;width:min(1180px,100%)!important;
  max-width:1180px!important;margin:24px auto 48px!important;padding:0 24px!important;transform:none!important;
}
html[data-theme] body.page-app .studio-hero{
  order:-10;display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;
  padding:48px;border-radius:28px;background:linear-gradient(120deg,#123da5,#2563eb);
  color:#fff;box-shadow:0 16px 40px rgba(31,90,224,.15);
}
.studio-eyebrow{display:inline-block;padding:6px 12px;border:1px solid #ffffff60;border-radius:999px;font-size:14px;letter-spacing:.08em}
html[data-theme] body.page-app .studio-hero h1{font-size:clamp(32px,4vw,52px);line-height:1.2;letter-spacing:-.03em;color:#fff;margin:22px 0 16px;font-weight:750}
.studio-hero-copy p{font-size:17px;line-height:1.8;color:#e6eeff;margin:0 0 24px;max-width:360px}
.studio-start{display:inline-flex;align-items:center;gap:30px;background:#fff;color:#184cc3!important;text-decoration:none;padding:14px 22px;border-radius:14px;font-size:17px;font-weight:700;min-height:48px}
.studio-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.studio-path{position:relative;display:flex;flex-direction:column;gap:8px;min-height:160px;padding:20px;background:#ffffff12;border:1px solid #ffffff40;border-radius:18px;text-decoration:none;color:#fff!important;transition:background .15s}
.studio-path:hover{background:#ffffff26}.studio-path>span{font-size:13px;color:#d4e3ff}.studio-path strong{font-size:25px}.studio-path small{font-size:14px;color:#e6eeff}.studio-path i{position:absolute;right:18px;top:18px;font-style:normal}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-console{order:-9;width:100%!important;max-width:none!important;margin:0!important;background:#fff!important;border:1px solid #e5e9f0!important;padding:0!important;scroll-margin-top:90px}
html[data-theme] body.page-app .studio-home .home-console-head{padding:24px!important;display:flex;flex-wrap:wrap;gap:20px}
html[data-theme] body.page-app .studio-home .home-console-head h3{font-size:24px!important}
html[data-theme] body.page-app .studio-home .home-console-body{padding:0 24px 24px!important}
html[data-theme] body.page-app .studio-home .home-mode-tabs{display:flex;gap:8px;overflow-x:auto;max-width:100%;padding:4px;background:#f0f4fb;border-radius:14px}
html[data-theme] body.page-app .studio-home .home-mode-tabs button{min-height:44px;padding:10px 16px;font-size:16px!important;border-radius:10px;white-space:nowrap}
html[data-theme] body.page-app .studio-home .home-mode-tabs button.active{background:#1f5ae0!important;color:#fff!important}
html[data-theme] body.page-app .studio-home #homePrompt{font-size:17px!important;min-height:140px!important;line-height:1.8!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-hero-grid{width:100%!important;max-width:none!important;margin:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
html[data-theme] body.page-app .studio-home .home-featured-orbit{display:none!important}
html[data-theme] body.page-app .studio-home .home-feature-card{position:relative!important;inset:auto!important;min-height:150px!important;padding:24px!important;background:#fff!important;color:#17233b!important;border:1px solid #e5e9f0!important;border-radius:20px!important;transform:none!important}
html[data-theme] body.page-app .studio-home .home-feature-card strong{font-size:24px!important;color:#17233b!important}
html[data-theme] body.page-app .studio-home .home-feature-card small{font-size:15px!important;color:#536176!important}
html[data-theme] body.page-creation .creation-workspace{background:#f6f8fb;border:1px solid #e5e9f0;border-radius:22px}
html[data-theme] body.page-creation .creation-sidebar{background:#fff}
html[data-theme] body.page-creation .creation-history-item.active{background:#eef3ff;border-color:#c8d8fa}
@media(max-width:720px){
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home{padding:0 12px!important;margin:14px auto 28px!important;gap:18px!important}
 html[data-theme] body.page-app .studio-hero{grid-template-columns:1fr;gap:26px;padding:26px 20px;border-radius:22px}
 html[data-theme] body.page-app .studio-hero h1{font-size:36px}
 .studio-hero-copy p{font-size:16px}.studio-path{min-height:132px;padding:16px}.studio-path strong{font-size:22px}.studio-paths{gap:10px}
 html[data-theme] body.page-app .studio-home .home-console-head{padding:18px!important;display:block}
 html[data-theme] body.page-app .studio-home .home-mode-tabs{margin-top:16px}
 html[data-theme] body.page-app .studio-home .home-console-body{padding:0 16px 18px!important}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-hero-grid{grid-template-columns:1fr!important}
 html[data-theme] body.page-creation .creation-workspace{border:0;border-radius:0}
}
/* Final home composition: one focused creation flow. */
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-hero-grid,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-project-thread,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-workflow-strip{display:none!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.studio-hero{order:-20!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-console{order:-10!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>#homeFeaturedMarketplace{order:0!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>#homeFeaturedMarketplace{display:block!important;width:100%!important;margin:0!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-main{border-radius:22px!important;border:1px solid #e5e9f0!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important;background:#fff!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-main .card-v3-head{padding:24px!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-main h3{font-size:24px!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-public-gallery-masonry{padding:0 24px 24px!important}
@media(max-width:720px){
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-main .card-v3-head{padding:18px!important}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-public-gallery-masonry{padding:0 14px 18px!important}
}
/* Clean background: disable the legacy customizable wallpaper on the redesigned home. */
html[data-theme] body.page-app:not(.home-layout-editing){background:#f6f8fb!important;background-image:none!important;}
html[data-theme] body.page-app:not(.home-layout-editing)::before,
html[data-theme] body.page-app:not(.home-layout-editing)::after,
html[data-theme] body.page-app:not(.home-layout-editing) .home-bg-layer,
html[data-theme] body.page-app:not(.home-layout-editing) .home-background-layer{display:none!important;background:none!important;filter:none!important;}
/* Complete homepage chrome: every visible block follows one editorial system. */
html[data-theme] body.page-app:not(.home-layout-editing) .studio-topline{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:4px 2px 0}
.studio-topline-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;color:#1f5ae0}
html[data-theme] body.page-app .studio-topline h2{margin:7px 0 0;font-size:30px;line-height:1.2;color:#0f172a}
.studio-topline p{margin:5px 0 0;color:#64748b;font-size:15px}
.studio-topline-actions{display:flex;gap:10px}.studio-outline{display:inline-flex;align-items:center;min-height:42px;padding:8px 15px;border:1px solid #d8e1ee;border-radius:11px;color:#1f5ae0;text-decoration:none;font-size:14px;font-weight:650;background:#fff}
.studio-outline:hover{background:#eef3fc}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.studio-hero{margin-top:0}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-console-head{border-bottom:1px solid #e8edf4!important;background:#fff!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-create-form{gap:18px!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-prompt-shell{border:1px solid #cbd8ea!important;border-radius:16px!important;background:#fbfdff!important;box-shadow:inset 0 1px 3px rgba(15,23,42,.03)}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-prompt-send{background:#1f5ae0!important;border-radius:12px!important;min-width:88px!important}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-create-toolbar{border-top:1px solid #edf1f6;padding-top:14px}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-title{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-title .sub{margin:0}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-search-inline{margin-left:auto}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-marketplace-type-nav{display:flex;gap:8px;overflow:auto;padding:0 24px 16px}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-marketplace-type-nav button{min-height:40px;padding:8px 15px;border:1px solid #e1e7f0;border-radius:10px;background:#fff;color:#526176;white-space:nowrap;font-size:14px}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-marketplace-type-nav button.active{background:#eef3fc;border-color:#a9c1f0;color:#1f5ae0;font-weight:700}
@media(max-width:720px){
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-topline{align-items:flex-start;flex-direction:column;gap:12px}
 html[data-theme] body.page-app .studio-topline h2{font-size:26px}
 .studio-topline-actions{width:100%}.studio-outline{flex:1;justify-content:center}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-title{display:block}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-title .sub{margin-top:4px}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-showcase-search-inline{display:block;margin:14px 0 0}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-marketplace-type-nav{padding-left:14px;padding-right:14px}
}
/* Final clean surface and collision-safe controls. */
html[data-theme] body.page-app:not(.home-layout-editing) .main-area{
  background:#f6f8fb!important;background-image:linear-gradient(135deg,#f8fbff 0%,#eef4fc 52%,#f8fafc 100%)!important;background-attachment:fixed!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .main-area::before,
html[data-theme] body.page-app:not(.home-layout-editing) .main-area::after{display:none!important;content:none!important;}
html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell{
  position:relative!important;min-height:170px!important;overflow:hidden!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell textarea{
  width:100%!important;min-height:170px!important;height:170px!important;padding:18px 110px 54px 18px!important;resize:vertical!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell #homeGenerateButton.home-prompt-send{
  position:absolute!important;right:14px!important;bottom:14px!important;z-index:5!important;
  width:auto!important;min-width:86px!important;max-width:none!important;height:42px!important;min-height:42px!important;
  display:inline-flex!important;padding:8px 16px!important;font-size:15px!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell #homePolishBtn.home-prompt-polish{
  position:absolute!important;right:112px!important;bottom:14px!important;z-index:5!important;
  width:auto!important;min-width:42px!important;max-width:none!important;height:42px!important;min-height:42px!important;padding:8px 12px!important;font-size:13px!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell .home-prompt-expand{
  position:absolute!important;right:14px!important;top:14px!important;z-index:5!important;width:38px!important;height:38px!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell>.home-file-tool{
  position:absolute!important;left:14px!important;bottom:14px!important;top:auto!important;z-index:5!important;height:42px!important;min-height:42px!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-create-toolbar{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-create-actions{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;margin-left:auto!important;min-width:0!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .home-create-toolbar .btn,
html[data-theme] body.page-app:not(.home-layout-editing) .home-create-actions .btn{position:static!important;transform:none!important;max-width:100%!important;white-space:nowrap!important;}
@media(max-width:720px){
 html[data-theme] body.page-app:not(.home-layout-editing) .main-area{background-image:linear-gradient(180deg,#f8fbff,#f2f6fb)!important;background-attachment:scroll!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell textarea{height:190px!important;min-height:190px!important;padding:16px 14px 62px!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell #homeGenerateButton.home-prompt-send{right:12px!important;bottom:12px!important;min-width:78px!important;padding:8px 12px!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell #homePolishBtn.home-prompt-polish{right:100px!important;bottom:12px!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .home-prompt-shell>.home-file-tool{left:12px!important;bottom:12px!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .home-create-actions{width:100%!important;margin-left:0!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .home-create-actions>*{flex:1 1 auto!important;}
}
/* Home polish: fresh surface, consistent controls, no stacking collisions. */
html[data-theme] body.page-app:not(.home-layout-editing){
  background:#eef4fb!important;background-image:linear-gradient(135deg,#eaf3ff 0%,#f8fbff 48%,#edf7f5 100%)!important;color:#17233b!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .main-area{
  min-height:100dvh!important;background:transparent!important;background-image:none!important;isolation:isolate;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home{
  position:relative!important;z-index:1!important;overflow:visible!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>*{
  position:relative;z-index:1;opacity:1;visibility:visible;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home>.home-console{
  position:relative!important;display:block!important;clear:both!important;z-index:10!important;overflow:visible!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-console-body{
  position:relative!important;z-index:2!important;overflow:visible!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-prompt-field,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-prompt-shell{
  position:relative!important;display:block!important;visibility:visible!important;opacity:1!important;z-index:20!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-prompt-shell textarea{
  position:relative!important;display:block!important;visibility:visible!important;z-index:1!important;color:#17233b!important;background:#fff!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home button,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .btn,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home a.studio-start,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home a.studio-outline{
  font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif!important;
  font-weight:650!important;letter-spacing:0!important;text-transform:none!important;
}
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-console-head,
html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-console-body{
  overflow:visible!important;
}
@media(max-width:720px){
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home{overflow:visible!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-console{margin-bottom:20px!important;}
 html[data-theme] body.page-app:not(.home-layout-editing) .studio-home .home-prompt-shell textarea{min-height:190px!important;height:190px!important;}
}
/* The studio composer uses document flow; legacy mobile controls must not float over text. */
html[data-theme] body.page-app #studio-console,
html[data-theme] body.page-app #studio-console .home-console-head,
html[data-theme] body.page-app #studio-console .home-console-body,
html[data-theme] body.page-app #studio-console #homeCreateForm,
html[data-theme] body.page-app #studio-console .home-prompt-field{
 position:relative!important;inset:auto!important;transform:none!important;
 width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;
 margin:0!important;overflow:visible!important;z-index:auto!important;
}
html[data-theme] body.page-app #studio-console #homeCreateForm{display:flex!important;flex-direction:column!important;padding:18px 0 0!important;gap:16px!important}
html[data-theme] body.page-app #studio-console .home-prompt-shell{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;
 height:auto!important;min-height:0!important;max-height:none!important;padding:12px!important;
 overflow:visible!important;z-index:auto!important;
}
html[data-theme] body.page-app #studio-console #homePrompt{
 order:0!important;flex:0 0 100%!important;box-sizing:border-box!important;
 position:static!important;transform:none!important;min-height:160px!important;max-height:60dvh!important;
 margin:0!important;padding:12px!important;z-index:auto!important;overflow-y:auto!important;
}
html[data-theme] body.page-app #studio-console .home-prompt-shell>button,
html[data-theme] body.page-app #studio-console #homeGenerateButton.home-prompt-send{
 position:static!important;inset:auto!important;transform:none!important;order:1!important;
 width:auto!important;min-width:44px!important;max-width:none!important;height:44px!important;
 min-height:44px!important;margin:0!important;padding:10px 14px!important;flex:0 0 auto!important;z-index:auto!important;
}
html[data-theme] body.page-app #studio-console #homeGenerateButton.home-prompt-send{margin-left:auto!important;background:#1f5ae0!important}
html[data-theme] body.page-app #studio-console .home-create-toolbar{margin:0!important;overflow:visible!important}
