/* One segmented control; neutralize the inherited nested borders/padding. */
.ember-app .workspace-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 12px 14px;padding:4px;border:1px solid var(--border);border-radius:12px;flex-shrink:0;isolation:isolate}
.ember-app .workspace-tabs button{width:auto;min-width:0;min-height:44px;margin:0;padding:9px 5px;border:0;border-radius:8px;box-shadow:none;font-size:10px;line-height:1.3;letter-spacing:.02em;background:transparent}
.ember-app .workspace-tabs button.active{box-shadow:none;background:var(--accent);color:#fff}
.ember-app :is(.ember-workbench,.ember-lower){grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr)}
.ember-app #dashboard-chat{width:100%;max-width:620px;min-width:0;justify-self:start}
.ember-app .ember-workbench>aside{min-width:0}
.ember-app .ember-current{min-height:0}
.ember-app #dashboard-images{margin-top:18px;border-top:1px solid var(--border);padding-top:18px}
.ember-app #dashboard-images .panel{border:0;box-shadow:none;background:transparent;padding:0;margin:0}
.ember-app .dashboard-chat.chat-compact{min-height:0;padding:16px;width:100%}
.ember-app .dashboard-chat .section-head{align-items:center;flex-direction:row;flex-wrap:nowrap;gap:8px}
.ember-app .dashboard-chat h2{font-size:18px;letter-spacing:-.25px;margin:0;overflow-wrap:anywhere}
.ember-app .dashboard-chat .chat-expand{padding:8px;min-height:36px;font-size:10px;white-space:nowrap;flex:0 0 auto}
.ember-app .dashboard-chat textarea{min-height:66px;max-height:150px;resize:vertical;padding:11px;line-height:1.5;font-size:12px;margin-top:5px}
.ember-app .dashboard-chat .chat-message-label{font-size:11px;margin:0}
.ember-app .chat-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}
.ember-app .chat-actions button{min-height:40px;padding:8px 11px;font-size:11px}
.ember-app .chat-actions [type=submit]{margin-left:auto}
.ember-app .chat-actions small{font-size:10px;line-height:1.4;flex:1;min-width:65px}
.ember-app .chat-state{font-size:11px;line-height:1.45;margin:7px 0 0;overflow-wrap:anywhere}
.ember-app .chat-state:empty{display:none}
.ember-app .chat-file-help,.ember-app .chat-history-controls{background:transparent;border:0;padding:0;margin:9px 0 0;box-shadow:none}
.ember-app .chat-file-help summary,.ember-app .chat-history-controls summary{font-size:10px;line-height:1.5;min-height:25px;display:flex;align-items:center;gap:5px}
.ember-app .chat-file-help summary:before,.ember-app .chat-history-controls summary:before{content:'▸'}
.ember-app :is(.chat-file-help,.chat-history-controls)[open]>summary:before{content:'▾'}
.ember-app .chat-file-help p{margin:6px 0 0;font-size:11px}
.ember-app .chat-attachment{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:8px;padding:5px 8px;margin-top:8px;font-size:11px;background:var(--panel2)}
.ember-app .chat-attachment span{min-width:0;overflow-wrap:anywhere;flex:1}
.ember-app .chat-attachment button{min-width:32px;min-height:32px;font-size:20px}
.ember-app .chat-expanded .chat-feed{max-height:240px;min-height:0;overscroll-behavior:contain}
.ember-app .chat-expanded .chat-history-controls .fields{display:flex;flex-wrap:wrap}
.ember-app .chat-expanded{max-height:none}
.ember-app .tool-advanced{padding:14px;margin:0 0 16px;border-color:var(--border);background:var(--panel)}
.ember-app .tool-advanced>summary{min-height:28px;display:flex;align-items:center;gap:8px;font-weight:600}
.ember-app .tool-advanced>summary:before{content:'＋';color:var(--gold)}
.ember-app .tool-advanced[open]>summary{margin-bottom:16px}
.ember-app .tool-advanced[open]>summary:before{content:'−'}
.ember-app .qwen-panel{padding:17px}
.ember-app .qwen-panel h2{font-size:17px;margin-bottom:7px}
.ember-app .qwen-panel>p{margin-bottom:8px;font-size:12px}
.ember-app .qwen-panel textarea{min-height:72px;max-height:220px;margin-bottom:10px;padding:11px}
.ember-app .tool-help{margin:8px 0;padding:8px;border-color:var(--border)}
.ember-app .tool-help summary{font-size:11px}
.ember-app .tool-help p{margin:9px 0 0;font-size:11px}
.ember-app .tool-help pre{font-size:11px;overflow-wrap:anywhere}
.ember-app :is(.panel,.workspace-grid,.ember-metrics,.ember-lower,.ember-quick,.ember-discover,.member-market,.fields)>*{min-width:0}
.ember-app :is(img,video,canvas,iframe){max-width:100%}
.ember-app :is(input,textarea,select){max-width:100%}
.ember-app :is(button,.primary,.secondary){overflow-wrap:anywhere}
.ember-app .ember-current #ember-current-jobs{display:block}
@media(max-width:1180px){.ember-app :is(.ember-workbench,.ember-lower){grid-template-columns:minmax(0,1fr)}.ember-app .ember-workbench>aside{width:100%}.ember-app #dashboard-images{max-width:620px}.ember-app .ember-current #ember-current-jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.ember-app #sidebar{width:min(280px,calc(100vw - 36px));height:100dvh}.ember-app .sidebar-bottom{max-height:43dvh;overflow:auto}.ember-app .mobile-bar{position:sticky;top:0;z-index:25;min-height:56px}.ember-app .mobile-bar button{min-width:44px;min-height:44px}.ember-app #main{padding-inline:14px}.ember-app .ember-topbar{gap:8px;flex-wrap:wrap;padding-block:10px;min-height:64px;margin-bottom:18px}.ember-app .ember-topbar>span{font-size:9px}.ember-app .ember-theme-switch{padding:3px;flex-shrink:0}.ember-app .ember-theme-switch button{min-height:34px;padding:6px;font-size:10px}.ember-app :is(input,textarea,select){font-size:16px!important}.ember-app .dashboard-chat textarea{font-size:16px;min-height:78px}.ember-app .dashboard-chat h2{font-size:16px}.ember-app .ember-hero h1{font-size:31px;letter-spacing:-.6px}.ember-app .ember-hero{gap:12px}.ember-app .ember-workbench{gap:16px}.ember-app .panel{padding:15px}.ember-app .table-wrap{max-width:100%}.ember-app #toast{inset:auto 12px 12px;max-width:calc(100vw - 24px)}.ember-app dialog{max-width:calc(100vw - 24px);padding:20px}}
@media(max-width:500px){.ember-app .ember-current #ember-current-jobs{grid-template-columns:1fr}.ember-app .ember-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ember-app .ember-metrics>div:first-child{grid-column:1/-1}.ember-app .ember-metrics .panel{margin:0;padding:13px}.ember-app .ember-metric small:last-child{display:none}.ember-app .ember-metric>span:last-child{display:block}.ember-app .ember-metric strong{font-size:23px}.ember-app .ember-metrics .member-wallet-balance p{margin:8px 0 0}.ember-app .ember-hero>.secondary{display:none}.ember-app .ember-hero{margin-bottom:18px}.ember-app .ember-topbar>span{display:none}.ember-app .ember-topbar{justify-content:flex-end}.ember-app .dashboard-chat.chat-compact{padding:13px}.ember-app .chat-actions{gap:6px}.ember-app .chat-actions small{font-size:9px}.ember-app .chat-actions button{padding:8px;min-height:42px}.ember-app .chat-file-help summary{font-size:10px}.ember-app .ember-lower{gap:14px;margin-top:16px}.ember-app .intro>div{padding:13px}.ember-app .intro p{font-size:12px}.ember-app .intro .eyebrow{font-size:10px}.ember-app .filter-row>*{min-width:0;flex-basis:100%}.ember-app .section-head>a{white-space:normal;text-align:right}.ember-app .ember-discover .member-collections,.ember-app .ember-discover .member-product-grid{grid-template-columns:1fr 1fr}.ember-app .ember-footer{flex-wrap:wrap}}
@media(max-width:350px){.ember-app #main{padding-inline:10px}.ember-app .dashboard-chat .section-head{align-items:flex-start}.ember-app .dashboard-chat h2{font-size:14px}.ember-app .chat-expand{font-size:9px!important}.ember-app .chat-actions small{flex-basis:100%;order:3}.ember-app .chat-actions [type=submit]{margin-left:auto}.ember-app .ember-hero h1{font-size:28px}}
/* Public homepage: intrinsic sizing, readable phone controls, contained media. */
.sales-home :is(img,video,iframe){max-width:100%}
.sales-home :is(.hero,.sec,.container,.wrap,.plan,.fcard,.how-row){min-width:0}
.sales-home :is(h1,h2,h3,p,a,button){overflow-wrap:break-word}
@media(max-width:850px){.sales-home :is(input,textarea,select){font-size:16px}.sales-home :is(button,.cta,.btn-white){min-height:44px}.sales-home .home-marketplace-shelf{max-width:100%;overscroll-behavior-inline:contain}}
@media(max-width:450px){.sales-home .hero h1{font-size:clamp(28px,8vw,36px);line-height:1.19;letter-spacing:-.025em}.sales-home .hero{padding-inline:14px!important}.sales-home .hero-actions{flex-wrap:wrap}.sales-home .hero-actions>*{flex:1 1 100%;min-width:0}.sales-home .plan{padding-inline:18px}.sales-home .sub{font-size:14px}.sales-home .price .amt{font-size:32px}}

.ember-app .ember-main-stack{display:grid;gap:18px;align-content:start;min-width:0}.ember-app .ember-main-stack .ember-recent{margin:0;max-width:620px}.ember-app .ember-lower{grid-template-columns:1fr}.ember-app .ember-quick #ember-quick-tools{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:650px){.ember-app .ember-quick #ember-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Image generation is a peer of the compact assistant, directly beneath it. */
.ember-app #dashboard-images{margin:0;border:0;padding:0;max-width:620px}.ember-app #dashboard-images .panel{border:1px solid var(--accent);border-radius:13px;background:linear-gradient(125deg,var(--panel),var(--ember-active));padding:17px;box-shadow:0 0 18px #d9362010;margin:0}.ember-app #dashboard-images h2{font-weight:700;font-size:19px}.ember-app #dashboard-images .image-studio{min-height:0}.ember-app #dashboard-images .image-studio textarea{min-height:64px}@media(max-width:500px){.ember-app #dashboard-images h2{font-size:17px}}

/* October 24 refinement: readable CTAs and balanced workspace columns. */
.ember-side-stack{display:grid;gap:18px;align-content:start;min-width:0}.ember-app .ember-side-stack .ember-recent{max-width:none;margin:0}.ember-side-stack .ember-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.blackhat-ai-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start;margin-bottom:22px}.ember-app .blackhat-ai-grid #dashboard-images{max-width:none}.ember-app .blackhat-ai-grid .dashboard-chat{min-height:0}.ember-app .row{flex-wrap:wrap;align-items:end}.ember-app .row>label,.ember-app .row>input{flex:1 1 260px!important;min-width:0}.ember-app .row>button,.ember-app .toolbar>button{flex:0 1 auto!important;width:auto;min-width:180px;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:normal;word-break:normal;padding:12px 18px}.ember-app .member-tool-layout{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:24px}.ember-app .member-promotions{position:static}.ember-app .member-promotions .panel{padding:18px}.member-featured>img{height:auto;aspect-ratio:16/10;object-fit:contain;background:var(--panel2);margin:10px 0;border-radius:9px}.member-featured .artwork-note{font-size:10px;letter-spacing:0;color:var(--muted)}.member-featured h3{font-size:18px}.member-tool-content #process-form>.workspace-grid{display:flex;flex-direction:column}.member-tool-content #process-form>.workspace-grid>div{width:100%;min-width:0}.member-tool-content .right{display:grid;grid-template-columns:1fr}.member-tool-content #process-button{width:100%;min-height:48px;white-space:normal;word-break:normal;overflow-wrap:normal}.member-tool-content .qwen-panel{border-color:var(--accent)}
@media(max-width:1150px){.ember-app .member-tool-layout{grid-template-columns:minmax(0,1fr)}.ember-app .member-promotions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:860px}.blackhat-ai-grid{grid-template-columns:1fr}}@media(max-width:600px){.ember-app .member-promotions{grid-template-columns:minmax(0,1fr);max-width:420px;justify-self:center;width:100%}.ember-app .row>button{flex:1 1 100%!important;width:100%}.blackhat-ai-grid{gap:18px}}

.home-credit-allowance{font-size:17px;font-weight:700;color:#e1c98f;margin:12px 0 18px}.member-product img{object-fit:contain}.artwork-note{display:block}
.member-tool-content #process-form{padding:22px;background:var(--panel);border:1px solid var(--border);border-radius:14px;margin-bottom:20px}.ember-app .member-tool-content #process-form .panel{padding:0;margin:0;border:0;box-shadow:none}.ember-app .member-tool-content #process-form .qwen-panel{padding:18px 0;background:transparent}.member-tool-content #process-form>.workspace-grid{gap:14px}.member-tool-content .right>.panel:last-child{border-top:1px solid var(--border)!important;padding-top:16px!important;margin-top:12px!important}.member-tool-content #process-form .notice{margin:14px 0}.ember-app .member-tool-content #process-form>.panel{font-size:12px;margin-bottom:16px}@media(max-width:550px){.member-tool-content #process-form{padding:16px}}
.ember-app .member-tool-layout.no-promotions{grid-template-columns:minmax(0,1fr)}
.ember-app .blackhat-ai-grid{align-items:stretch}
.ember-app .blackhat-ai-grid>#dashboard-chat,.ember-app .blackhat-ai-grid>#dashboard-images{display:flex;width:100%;max-width:none;min-width:0;justify-self:stretch}
.ember-app .blackhat-ai-grid .dashboard-chat{box-sizing:border-box;width:100%;height:100%;min-height:420px;margin:0;padding:17px;border:1px solid var(--accent);border-radius:13px;background:linear-gradient(125deg,var(--panel),var(--ember-active));box-shadow:0 0 18px #d9362010;display:flex;flex-direction:column}
.ember-app .blackhat-ai-grid .dashboard-chat form{margin-top:auto}
.ember-app .blackhat-ai-grid .chat-feed{max-height:300px;overflow:auto}
@media(max-width:600px){.ember-app .blackhat-ai-grid .dashboard-chat{min-height:340px}}

.dashboard-chat .chat-message.answer-collapsed{max-height:7.5em;overflow:hidden}
