/* Task-first Uploader web workbench. Loaded after legacy geometry.
   Landing, MiniApp, operational JS, signed forms and backend untouched. */
.app-page{--wb-line:color-mix(in srgb,var(--ui-line) 90%,transparent);--wb-radius:14px}
.app-page .site-header{background:var(--ui-surface);border-bottom:1px solid var(--wb-line)}
.app-page .header-inner{max-width:none;min-height:62px;padding:9px clamp(16px,2.35vw,36px)}
.app-page .site-sidebar{padding:19px 14px 15px;gap:9px;background:var(--ui-surface)}
.app-page .site-sidebar .app-nav-link{min-height:40px;padding:9px 12px}
.app-page .app-nav-group+.app-nav-group{margin-block-start:15px}
.app-page .sidebar-collapse-toggle{top:78px}
.app-page .app-main>main.dashboard-shell{
 width:100%;max-width:1640px;padding:22px clamp(16px,2.35vw,36px) 54px;
 gap:16px;align-content:start
}
.app-page main.dashboard-shell>*{min-width:0}
.app-page .panel{border-color:var(--wb-line);border-radius:var(--wb-radius);box-shadow:none}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro){
 min-height:0;padding:0 0 13px;border:0;border-bottom:1px solid var(--wb-line);
 background:transparent;border-radius:0;box-shadow:none;align-items:center;gap:15px
}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro)::before,
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro)::after{display:none;content:none}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro)
 :is(.studio-hero-art,.connection-hero-art,.operations-hero-art,.downloads-intro-art){display:none}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) h1{
 margin:0;color:var(--ui-text);font-size:clamp(23px,2.15vw,29px);line-height:1.5;font-weight:850
}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) p{
 margin:3px 0 0;color:var(--ui-muted);font-size:12px;line-height:1.7
}
.app-page :is(.studio-eyebrow,.connection-eyebrow,.operations-eyebrow,.downloads-eyebrow){display:none}
.app-page :is(.studio-hero-links,.connection-hero-actions,.operations-hero-actions,.downloads-intro-actions){
 margin:0;gap:8px;flex:none
}
.app-page :is(.studio-hero-primary,.connection-hero-primary,.operations-cta,.downloads-create-button.button-primary){
 margin:0;min-height:39px;padding:8px 13px;border-radius:10px;font-size:12px
}
.app-page :is(.studio-hero-secondary,.connection-hero-secondary,.operations-ghost-link){
 min-height:39px;padding:8px 12px;font-size:12px
}
.app-page :is(.ui-page-heading,.page-heading){margin:0;padding:0 0 13px;border-bottom:1px solid var(--wb-line)}
.app-page :is(.ui-page-heading,.page-heading) .ui-kicker{display:none}
.app-page :is(.ui-page-heading,.page-heading) h1{font-size:clamp(23px,2.15vw,29px);line-height:1.5;margin:0}
.app-page :is(.ui-page-heading,.page-heading) p{font-size:12px;line-height:1.7;margin:3px 0 0}
/* Keep real tasks prominent and decorative step art secondary. */
.app-page .publish-shell>.studio-flow-guide{
 padding:5px;border:1px solid var(--wb-line);border-radius:12px;background:var(--ui-surface)
}
.app-page .publish-shell .studio-flow-item{min-height:42px;padding:7px 9px}
.app-page .transfer-shell>.studio-transfer-steps{
 margin:0;padding:5px;border:1px solid var(--wb-line);border-radius:12px;background:var(--ui-surface)
}
.app-page .transfer-shell .studio-transfer-steps li{min-height:44px}
.app-page .transfer-shell .transfer-resolver{padding:19px 21px}
.app-page .downloads-library-shell .downloads-intro-actions>span{display:none}
.app-page .downloads-library-shell .downloads-full-panel{padding:19px}
.app-page .downloads-library-shell .downloads-overview{top:12px}
.app-page .channels-page-shell>.connection-flow,.app-page .team-shell>.team-flow{display:none}
.app-page .channels-page-shell .channels-list-panel,.app-page .channels-page-shell .service-bots-panel{padding:18px}
.app-page .channels-page-shell .channel-stat-card,.app-page .team-shell .team-stat-card{min-height:78px;padding:12px 14px}
.app-page .settings-shell .settings-card-description{font-size:12px;line-height:1.7}
@media(min-width:1000px){
 .app-page main.home-shell{
  grid-template-areas:"hero tasks" "platforms tasks" "trial trial"
                      "onboarding onboarding" "workspace workspace" "activity activity"
 }
}
.app-page .home-shell .home-hero{padding:24px 26px;border-radius:var(--wb-radius);box-shadow:none}
.app-page .home-shell .home-hero h1{font-size:clamp(25px,2.3vw,32px)}
.app-page .home-shell .home-hero-copy>p{font-size:12px;margin-bottom:13px}
.app-page .home-shell .home-trial-banner{border-radius:var(--wb-radius);box-shadow:none}
/* Account action panel appears immediately after a compact platform picker. */
.app-page main.dashboard-shell.accounts-connections-shell{
 display:flex;flex-direction:column;gap:11px;min-width:0
}
.app-page .accounts-connections-shell>*{margin:0;min-width:0}
.app-page .accounts-connections-shell .accounts-hero[data-workbench="compact"]{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 padding:0 0 12px;border-bottom:1px solid var(--wb-line)
}
.app-page .accounts-connections-shell .accounts-hero[data-workbench="compact"] h1{
 font-size:clamp(23px,2.15vw,29px);line-height:1.45;margin:0
}
.app-page .accounts-connections-shell .accounts-hero[data-workbench="compact"] p{
 font-size:12px;line-height:1.65;margin:3px 0 0
}
.app-page .accounts-connections-shell .accounts-hero[data-workbench="compact"] .connection-platform-hint{flex:none}
.app-page .accounts-connections-shell .accounts-platform-heading{padding:3px 0 0;align-items:center;margin:0}
.app-page .accounts-connections-shell .accounts-platform-heading h2{font-size:13px;margin:0}
.app-page .accounts-connections-shell .connected-platform-tabs{
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
 gap:8px;padding:0;margin:0;border:0;background:transparent;overflow:visible
}
.app-page .accounts-connections-shell .connected-platform-tab{
 display:flex;flex:unset;min-width:0;min-height:46px;padding:7px 9px;
 gap:7px;align-items:center;justify-content:center;font-size:12px;
 border-radius:10px;border:1px solid var(--ui-line);background:var(--ui-surface)
}
.app-page .accounts-connections-shell .connected-platform-tab img{width:24px;height:24px}
.app-page .accounts-connections-shell .connected-platform-tab.is-active{
 background:var(--ui-brand-soft);color:var(--ui-brand);
 border-color:var(--ui-brand);box-shadow:inset 0 -2px var(--ui-brand)
}
.app-page .accounts-connections-shell .connected-platform-tab:focus-visible{
 outline:3px solid var(--ui-brand);outline-offset:2px
}
.app-page .accounts-connections-shell .connected-platform-pane:not([hidden]){
 display:grid;gap:10px;margin:0
}
.app-page .accounts-connections-shell .connected-platform-pane>.notice:empty{display:none}
.app-page .accounts-connections-shell :is(.connected-account-panel,.telegram-account-panel,
 .connected-destinations-panel,.telegram-destinations-panel){
 margin:0;padding:19px 21px;background:var(--ui-surface);
 border-radius:var(--wb-radius);box-shadow:none
}
.app-page .accounts-connections-shell :is(.connected-account-heading,.telegram-account-heading){
 margin-bottom:13px;padding-bottom:13px;align-items:center
}
.app-page .accounts-connections-shell :is(.connected-account-identity,.telegram-account-identity) .brand-icon{
 width:42px;height:42px;padding:7px;border-radius:12px
}
.app-page .accounts-connections-shell :is(.connected-account-identity,.telegram-account-identity) h2{
 font-size:16px;margin:0
}
.app-page .accounts-connections-shell :is(.connected-account-form,.telegram-login-form){
 max-width:560px;padding:14px;background:var(--ui-soft)
}
.app-page .accounts-connections-shell :is(.connected-account-actions,.telegram-actions){gap:8px}
.app-page .accounts-connections-shell .account-connection-guide{
 margin-top:3px;border:1px solid var(--wb-line);
 background:var(--ui-surface);border-radius:var(--wb-radius)
}
.app-page .accounts-connections-shell .account-connection-guide>summary{
 cursor:pointer;list-style:none;display:flex;justify-content:space-between;
 align-items:center;gap:12px;padding:13px 16px;
 font-size:12px;font-weight:750;color:var(--ui-text)
}
.app-page .accounts-connections-shell .account-connection-guide>summary::-webkit-details-marker{display:none}
.app-page .accounts-connections-shell .account-connection-guide[open]>summary{border-bottom:1px solid var(--wb-line)}
.app-page .accounts-connections-shell .account-connection-guide .connection-accounts-flow{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:8px;margin:0;padding:12px;overflow:visible
}
.app-page .accounts-connections-shell .account-connection-guide .connection-flow-step{
 min-height:59px;padding:10px;border-radius:10px
}
.app-page .accounts-connections-shell .connection-path-note{
 margin:0;padding:13px 16px;gap:12px;border:1px solid var(--wb-line);background:transparent
}
.app-page .accounts-connections-shell .connection-path-icon{width:35px;height:35px}
@media(max-width:1050px){
 .app-page .accounts-connections-shell .connected-platform-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 .app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro){flex-wrap:wrap;align-items:flex-start}
 .app-page :is(.studio-hero-links,.connection-hero-actions,.operations-hero-actions,.downloads-intro-actions){flex-wrap:wrap}
}
@media(max-width:760px){
 .app-page .header-inner{min-height:58px;padding:9px 14px;gap:8px}
 .app-page .app-main>main.dashboard-shell{
  padding:16px 14px calc(102px + env(safe-area-inset-bottom));gap:12px
 }
 .app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro){gap:8px;padding-bottom:10px}
 .app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) h1{font-size:23px}
 .app-page :is(.studio-hero-links,.connection-hero-actions,.operations-hero-actions,.downloads-intro-actions){width:100%;gap:7px}
 .app-page .accounts-connections-shell .accounts-hero[data-workbench="compact"] .connection-platform-hint{display:none}
 .app-page .accounts-connections-shell .connected-platform-tabs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:visible;gap:6px;padding:0;margin:0
 }
 .app-page .accounts-connections-shell .connected-platform-tab{
  flex:unset;width:100%;min-height:44px;padding:6px;font-size:11px;scroll-snap-align:unset
 }
 .app-page .accounts-connections-shell .connected-platform-tab img{width:21px;height:21px}
 .app-page .accounts-connections-shell :is(.connected-account-panel,.telegram-account-panel,
  .connected-destinations-panel,.telegram-destinations-panel){padding:14px}
 .app-page .accounts-connections-shell .account-connection-guide .connection-accounts-flow{
  display:grid;grid-template-columns:1fr;overflow:visible
 }
 .app-page .accounts-connections-shell .account-connection-guide .connection-flow-step{min-height:44px}
 .app-page .accounts-connections-shell .connection-path-note{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 .app-page .accounts-connections-shell .connected-platform-tab,.app-page .app-nav-link{transition:none}
}

/* Operational surfaces — put the task and its true results first. */
@media(min-width:861px){
 .app-page main.downloads-library-shell{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"intro" "summary" "library";
  align-items:start;gap:12px
 }
 .app-page main.publish-shell{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"intro" "flow" "editor" "history";gap:12px
 }
 .app-page main.transfer-shell{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"intro" "stages" "resolver" "workspace" "status";gap:12px
 }
}
.app-page .downloads-library-shell>.downloads-overview{position:static;top:auto}
.app-page .downloads-library-shell .downloads-summary-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
.app-page .downloads-library-shell .downloads-overview-caption{
 margin:0 0 7px;font-size:11px;color:var(--ui-muted)
}
.app-page .downloads-library-shell .downloads-summary-card{
 min-height:69px;padding:11px 16px;box-shadow:none
}
.app-page .downloads-library-shell .downloads-summary-card dd{
 font-size:22px;margin-inline-end:12px
}
.app-page .downloads-library-shell .downloads-full-panel{min-width:0}
.app-page .downloads-library-shell .history-tools{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px
}
.app-page .downloads-library-shell .history-search{
 flex:1 1 270px;min-width:min(100%,230px)
}
.app-page .downloads-library-shell .downloads-history-table-wrap{
 max-width:100%;overflow-x:auto
}
.app-page .publish-shell>.studio-flow-guide,
.app-page .transfer-shell>.studio-transfer-steps{
 position:static;top:auto;display:flex;flex-direction:row;flex-wrap:wrap;
 align-items:center;gap:6px;max-width:100%;
 padding:6px;border:1px solid var(--wb-line);background:var(--ui-surface);
 border-radius:12px;margin:0
}
.app-page .publish-shell>.studio-flow-guide .studio-flow-item{
 flex:1 1 145px;min-height:41px;padding:8px 10px;justify-content:center;
 border-radius:9px;font-size:11px
}
.app-page .transfer-shell>.studio-transfer-steps li{
 flex:1 1 150px;min-height:42px;justify-content:center;padding:7px 10px
}
.app-page .publish-shell>.publisher-grid{
 grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:13px
}
.app-page .publish-shell .publisher-main,
.app-page .publish-shell .publisher-side{min-width:0}
.app-page .publish-shell .publisher-side{top:16px}
.app-page .publish-shell .publish-composer-card{padding:20px 23px}
.app-page .publish-shell .publish-composer-card .studio-section-description{
 margin:0 0 11px;font-size:11px;line-height:1.75
}
.app-page .publish-shell .publish-completeness{
 padding:10px 13px;margin-bottom:13px
}
.app-page .publish-shell .composer-section{margin-top:15px;padding-top:15px}
.app-page .publish-shell .publish-upload-zone{
 min-height:86px;padding:12px 16px;gap:10px
}
.app-page .publish-shell .composer-section-head{gap:8px;margin-bottom:10px}
.app-page .publish-shell .composer-section-head p{font-size:11px;line-height:1.7}
.app-page .publish-shell .publish-mode-options{gap:9px}
.app-page .publish-shell .publish-media-disclosure,
.app-page .transfer-shell .transfer-optional-settings{
 border:1px solid var(--wb-line);border-radius:12px;
 background:var(--ui-soft);margin:15px 0 0;min-width:0
}
.app-page .publish-shell .publish-media-disclosure>summary,
.app-page .transfer-shell .transfer-optional-settings>summary{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 list-style:none;cursor:pointer;padding:13px 16px;min-height:46px;
 color:var(--ui-text);font-weight:750;font-size:12px
}
.app-page .publish-shell .publish-media-disclosure>summary span{
 color:var(--ui-muted);font-size:11px;font-weight:500
}
.app-page .publish-shell .publish-media-disclosure>summary::-webkit-details-marker,
.app-page .transfer-shell .transfer-optional-settings>summary::-webkit-details-marker{display:none}
.app-page .publish-shell .publish-media-disclosure[open]>summary,
.app-page .transfer-shell .transfer-optional-settings[open]>summary{
 border-bottom:1px solid var(--wb-line)
}
.app-page .publish-shell .publish-media-disclosure>.composer-section{
 margin:0;padding:14px 16px;border:0
}
.app-page .transfer-shell .transfer-optional-settings>label{
 display:flex;margin:12px 16px
}
.app-page .transfer-shell .transfer-optional-settings>.transfer-field{
 flex-direction:column;align-items:stretch
}
.app-page .transfer-shell .transfer-optional-settings textarea{min-height:93px}
.app-page .transfer-shell .transfer-optional-settings .transfer-source-toggle{margin-block-end:16px}
.app-page .transfer-shell .transfer-resolver,
.app-page .transfer-shell .transfer-status-panel{padding:18px 20px}
.app-page .transfer-shell .transfer-resolver .studio-resolver-heading p{
 line-height:1.65;margin:0
}
.app-page .transfer-shell .transfer-resolver-hint{font-size:11px;margin:8px 0}
.app-page .transfer-shell .transfer-status-panel .operational-transfer-empty{
 min-height:105px;display:flex;flex-wrap:wrap;
 text-align:start;justify-content:flex-start;align-content:center;
 gap:8px 13px;padding:12px 13px;border-radius:11px
}
.app-page .transfer-shell .transfer-status-panel .operational-transfer-empty .operational-empty-symbol{
 width:35px;height:35px;font-size:17px;border-radius:10px
}
.app-page .transfer-shell .transfer-status-panel .operational-transfer-empty p{
 flex:1 1 260px;max-width:none;font-size:11px
}
.app-page .transfer-shell .transfer-workspace{
 grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px
}
/* Connected channels: real channel list occupies full width; bot setup follows. */
@media(min-width:901px){
 .app-page main.channels-page-shell{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"intro" "stats" "list" "bots" "note" "flow";
  gap:12px;align-items:start
 }
 .app-page .channels-page-shell>.channels-hero{grid-area:intro}
 .app-page .channels-page-shell>.channels-stats{grid-area:stats}
 .app-page .channels-page-shell>.channels-list-panel{grid-area:list}
 .app-page .channels-page-shell>.service-bots-panel{grid-area:bots}
 .app-page .channels-page-shell>.connection-path-note{grid-area:note}
 .app-page .channels-page-shell>.connection-flow{grid-area:flow}
 .app-page .channels-page-shell .channels-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))
 }
 .app-page .channels-page-shell .service-bot-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))
 }
}
.app-page .channels-page-shell .channels-stats{gap:9px}
.app-page .channels-page-shell .channel-stat-card{min-height:70px;box-shadow:none}
.app-page .channels-page-shell .channels-list-panel .channels-list-heading{margin-bottom:11px}
.app-page .channels-page-shell .channel-workbench-tools{
 display:flex;flex-wrap:wrap;align-items:center;gap:9px
}
.app-page .channels-page-shell .service-bots-panel{background:var(--ui-surface)}
.app-page .team-shell .team-management-grid>.team-active-card{order:-2}
.app-page .team-shell .team-management-grid>.team-members-panel{order:-1}
@media(max-width:860px){
 .app-page main.home-shell{
  grid-template-areas:"hero" "tasks" "trial" "onboarding" "platforms" "workspace" "activity"
 }
 .app-page .publish-shell>.publisher-grid{grid-template-columns:minmax(0,1fr)}
 .app-page .publish-shell .publisher-side{position:static}
 .app-page .transfer-shell .transfer-workspace{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 .app-page .downloads-library-shell .downloads-summary-grid{gap:6px}
 .app-page .downloads-library-shell .downloads-summary-card{
  min-height:72px;padding:9px;display:grid;gap:4px
 }
 .app-page .downloads-library-shell .downloads-summary-card dd{
  font-size:19px;margin:0
 }
 .app-page .publish-shell>.studio-flow-guide,
 .app-page .transfer-shell>.studio-transfer-steps{
  flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin
 }
 .app-page .publish-shell>.studio-flow-guide .studio-flow-item{
  flex:0 0 120px;justify-content:flex-start
 }
 .app-page .transfer-shell>.studio-transfer-steps li{flex:0 0 126px}
 .app-page .publish-shell .publish-composer-card{padding:14px}
 .app-page .publish-shell .publish-media-disclosure>.composer-section{padding:11px}
 .app-page .transfer-shell .transfer-status-panel .operational-transfer-empty{display:grid}
}

/* Team — real members and active workspace precede creation and join forms. */
.app-page .team-shell .team-management-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px
}
.app-page .team-shell .team-management-grid>.team-active-card{
 grid-column:1/-1;order:0
}
.app-page .team-shell .team-management-grid>.team-members-panel{
 grid-column:1/-1;order:0
}
.app-page .team-shell .team-management-grid>.team-card:not(.team-active-card){
 align-self:start;min-height:0
}
.app-page .team-shell .team-workspace-summary{padding:12px 14px}
.app-page .team-shell .team-inline-form{gap:10px}
.app-page .team-shell .team-members-panel{padding:17px 20px}
.app-page .team-shell .team-members-table-wrap{overflow-x:auto;max-width:100%}
.app-page .team-shell .team-members-list>article{padding:11px 13px;min-height:59px}
/* Automatic transfer — render actual sources, status and controls ahead of teaching steps. */
.app-page .automation-shell .operations-section-heading{
 scroll-margin-top:12px;margin:0;padding:0 0 9px
}
.app-page .automation-shell .operations-route-grid{gap:9px}
.app-page .automation-shell .operations-route-card{
 border-color:var(--wb-line);box-shadow:none;border-radius:var(--wb-radius)
}
.app-page .automation-shell .operations-route-card .auto-flow{
 border-radius:10px;max-width:100%;overflow-wrap:anywhere
}
.app-page .automation-shell .operations-route-card footer{
 display:flex;flex-wrap:wrap;gap:7px
}
.app-page .automation-shell .operations-route-card footer .button{
 border-radius:9px;min-height:38px
}
.app-page .automation-shell .operations-instructions{
 background:var(--ui-surface);border:1px solid var(--wb-line);
 border-radius:var(--wb-radius);margin-top:7px;min-width:0
}
.app-page .automation-shell .operations-instructions>summary{
 list-style:none;display:flex;align-items:center;
 justify-content:space-between;gap:10px;cursor:pointer;
 padding:13px 16px;min-height:44px;color:var(--ui-text);
 font-size:12px;font-weight:750
}
.app-page .automation-shell .operations-instructions>summary::-webkit-details-marker{display:none}
.app-page .automation-shell .operations-instructions[open]>summary{border-bottom:1px solid var(--wb-line)}
.app-page .automation-shell .operations-instructions .operations-flow{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 padding:12px;gap:8px;margin:0;overflow:visible
}
.app-page .automation-shell .operations-instructions .operations-flow>div{
 min-height:44px;padding:9px 12px
}
/* Automated route editor already has real three-step semantics: no hero-size wizard. */
.app-page .automation-shell .auto-editor{min-width:0;max-width:100%}
.app-page .automation-shell .auto-editor .operations-editor-steps{
 margin:0 0 14px;padding:6px;max-width:100%;overflow-x:auto
}
.app-page .automation-shell .auto-editor .auto-section{
 border-color:var(--wb-line);box-shadow:none;border-radius:var(--wb-radius)
}
.app-page .automation-shell .auto-editor .auto-fields{gap:12px}
.app-page .automation-shell .auto-editor :is(input,select,textarea){
 max-width:100%
}
/* Wallet: numbers and plan controls, not empty illustrations. */
.app-page .billing-shell .wallet-balance-card{
 min-height:105px;padding:16px 20px
}
.app-page .billing-shell .wallet-balance-card .billing-number{
 line-height:1.45;font-size:clamp(22px,2vw,28px)
}
.app-page .billing-shell #wallet-ledger{padding:18px 20px}
.app-page .billing-shell #automation-plans{min-width:0}
/* Settings — compact selectable previews replace oversized empty cards. */
@media(min-width:760px){
 .app-page .settings-shell .settings-preference-choice{
  min-height:104px;padding:10px;gap:7px
 }
 .app-page .settings-shell .settings-preference-choice:before{
  height:39px
 }
}
@media(max-width:1050px){
 .app-page .team-shell .team-management-grid{grid-template-columns:minmax(0,1fr)}
 .app-page .team-shell .team-management-grid>.team-active-card,
 .app-page .team-shell .team-management-grid>.team-members-panel{grid-column:1}
}
@media(max-width:760px){
 .app-page .team-shell .team-members-panel{padding:14px}
 .app-page .automation-shell .operations-instructions .operations-flow{grid-template-columns:1fr}
 .app-page .automation-shell .operations-instructions .operations-flow>div{min-height:40px}
 .app-page .automation-shell .auto-editor .operations-editor-steps{display:flex;flex-wrap:nowrap}
 .app-page .billing-shell #wallet-ledger{padding:14px}
}

/* Intro-free workspace: context stays in the persistent shell breadcrumb.
   A compact visible title lives in the real tool card, never a hero banner. */
.app-page .workbench-content-title{
 margin:0;color:var(--ui-text);font-size:clamp(16px,1.25vw,19px);
 line-height:1.6;letter-spacing:0;font-weight:800;overflow-wrap:anywhere
}
.app-page .workbench-form-title{margin:2px 0 10px}
.app-page .workbench-card-toolbar{
 display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
 gap:12px;margin:0 0 13px
}
.app-page .workbench-card-toolbar .billing-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.app-page .workbench-card-toolbar .button{min-height:37px;padding:7px 12px;border-radius:9px}
.app-page .downloads-library-shell .downloads-library-heading .workbench-content-title,
.app-page .channels-page-shell .channels-list-heading .workbench-content-title,
.app-page .publish-shell .publish-card-heading .workbench-content-title,
.app-page .team-shell .team-card-heading .workbench-content-title,
.app-page .settings-shell .settings-card-heading .workbench-content-title{
 font-size:17px;margin:0
}
/* No empty intro grid tracks. The first visible area is real functionality. */
.app-page main.downloads-library-shell{
 display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-areas:"summary" "library";gap:13px;align-items:start
}
.app-page main.downloads-library-shell>.downloads-overview{grid-area:summary}
.app-page main.downloads-library-shell>.downloads-full-panel{grid-area:library}
.app-page main.publish-shell{
 display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-areas:"editor" "history";gap:13px;align-items:start
}
.app-page .publish-shell>.publisher-grid{grid-area:editor}
.app-page .publish-shell>.publish-history-panel{grid-area:history}
.app-page main.transfer-shell{
 display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-areas:"resolver" "stages" "workspace" "status";
 gap:12px;align-items:start
}
.app-page .transfer-shell>.transfer-resolver{grid-area:resolver}
.app-page .transfer-shell>.studio-transfer-steps{grid-area:stages}
.app-page .transfer-shell>.transfer-workspace{grid-area:workspace}
.app-page .transfer-shell>.transfer-status-panel{grid-area:status}
.app-page main.channels-page-shell{
 display:grid;grid-template-columns:minmax(0,1fr);
 grid-template-areas:"stats" "list" "bots" "note" "flow";
 gap:12px;align-items:start
}
.app-page .channels-page-shell>.channels-stats{grid-area:stats}
.app-page .channels-page-shell>.channels-list-panel{grid-area:list}
.app-page .channels-page-shell>.service-bots-panel{grid-area:bots}
.app-page .channels-page-shell>.connection-path-note{grid-area:note}
.app-page .channels-page-shell>.connection-flow{grid-area:flow}
.app-page main.billing-shell:has(#automation-plans){
 display:grid;grid-template-columns:minmax(0,1fr);gap:13px;
 grid-template-areas:"balance" "plans" "ledger";align-items:start
}
.app-page .billing-shell:has(#automation-plans)>.billing-stats{grid-area:balance}
.app-page .billing-shell:has(#automation-plans)>#automation-plans{grid-area:plans}
.app-page .billing-shell:has(#automation-plans)>#wallet-ledger{grid-area:ledger}
.app-page .billing-shell .wallet-balance-card{min-height:0}
.app-page .billing-shell .wallet-balance-card .workbench-content-title{font-size:12px;color:var(--ui-muted);font-weight:700}
.app-page .billing-shell .management-list-card .management-list-intro{margin:5px 0 10px;font-size:11px}
.app-page .automation-shell .operations-section-heading .workbench-content-title{font-size:17px}
.app-page .automation-shell .auto-editor>.workbench-content-title{font-size:18px}
.app-page .automation-shell .operations-section-heading>.button{flex:none}
.app-page .settings-shell .settings-options-grid{margin-top:0}
.app-page .accounts-connections-shell .accounts-platform-heading{padding-top:0}
.app-page .accounts-connections-shell .accounts-platform-heading h1{font-size:18px}
.app-page .team-shell .team-stats{margin-top:0}
.app-page .publish-shell .publisher-grid{min-width:0}
.app-page .transfer-shell>.studio-transfer-steps{margin:0}
@media(min-width:950px){
 .app-page main.billing-shell:has(#automation-plans){
  grid-template-columns:minmax(0,1fr) minmax(220px,270px);
  grid-template-areas:"plans balance" "ledger ledger"
 }
 .app-page .billing-shell:has(#automation-plans)>.billing-stats{align-self:start}
}
@media(max-width:760px){
 .app-page .workbench-card-toolbar{align-items:flex-start}
 .app-page .workbench-card-toolbar .billing-actions{width:100%}
 .app-page main.dashboard-shell{row-gap:11px}
 .app-page .workbench-content-title{font-size:17px}
 .app-page .publish-shell .publish-composer-card{padding:14px}
}

/* Balanced wide-screen workspaces, pass V5.
   No artificial left/right columns, no retired banner placeholders. */
.app-page .app-main>main.dashboard-shell{
  max-width:none;width:100%;margin-inline:0;
  padding-inline:clamp(16px,2.2vw,38px);
  align-content:start;min-width:0
}
.app-page main.dashboard-shell>*{min-width:0;max-width:100%}
/* Home: the URL action is the sole primary task. Sidebar already navigates
   to downloads, publishing and transfers. Keep preview next to its input in
   document order and give every real block full usable width. */
.app-page main.dashboard-shell.home-shell{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"hero" "workspace" "platforms" "activity" "trial" "onboarding";
  justify-items:stretch;align-items:start;gap:14px
}
.app-page .home-shell>.home-hero,
.app-page .home-shell>#download-workspace,
.app-page .home-shell>.home-platform-panel,
.app-page .home-shell>.home-activity-panel,
.app-page .home-shell>.home-trial-banner,
.app-page .home-shell>.ui-onboarding{
  width:100%;min-width:0;max-width:none
}
.app-page .home-shell>.home-hero{
  padding:23px clamp(18px,2.4vw,32px);
  min-height:0
}
.app-page .home-shell .home-hero-copy,
.app-page .home-shell .home-url-form{width:100%;max-width:none}
.app-page .home-shell .home-hero h1{
  font-size:clamp(25px,2.35vw,34px);line-height:1.4
}
.app-page .home-shell .home-platform-panel,
.app-page .home-shell .home-activity-panel{
  padding:18px clamp(15px,2vw,28px)
}
.app-page .home-shell .home-platform-grid{
  grid-template-columns:repeat(8,minmax(0,1fr))
}
/* Wallet: balance is a full-width summary row above full-width real plans.
   Never reserve a tall side rail with nothing underneath it. */
.app-page main.dashboard-shell.billing-shell:has(#automation-plans){
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"balance" "plans" "ledger";
  gap:14px;align-items:start;justify-items:stretch
}
.app-page .billing-shell:has(#automation-plans)>.billing-stats{
  grid-area:balance;display:block;min-width:0;
  width:100%;max-width:none
}
.app-page .billing-shell:has(#automation-plans) #automation-plans{
  grid-area:plans;min-width:0;width:100%;max-width:none;
  margin:0
}
.app-page .billing-shell:has(#automation-plans)>#wallet-ledger{
  grid-area:ledger;min-width:0
}
.app-page .billing-shell .wallet-balance-card{
  position:static;top:auto;width:100%;min-height:0;
  display:grid;grid-template-columns:max-content max-content minmax(0,1fr);
  align-items:center;column-gap:clamp(20px,3.2vw,56px);
  row-gap:5px;padding:16px 22px
}
.app-page .billing-shell .wallet-balance-card .billing-number{
  font-size:clamp(21px,2.1vw,30px);white-space:nowrap
}
.app-page .billing-shell .wallet-balance-card>p{
  margin:0;justify-self:start;line-height:1.7;
  max-width:none;font-size:11px
}
.app-page .billing-shell #automation-plans .auto-heading{
  display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;margin:0 0 12px
}
.app-page .billing-shell #automation-plans .auto-heading h2{
  margin:0;font-size:17px
}
.app-page .billing-shell #automation-plans .auto-heading p{
  display:none
}
/* Settings: account information is a short strip, not a lonely left rail.
   Its interactive appearance controls occupy the full row below. */
.app-page main.dashboard-shell.settings-shell:has(.settings-account-card){
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-areas:"account" "preferences";
  align-items:start;justify-items:stretch;gap:13px
}
.app-page .settings-shell>.settings-account-card{
  grid-area:account;min-height:0;
  display:flex;flex-direction:row;align-items:center;
  justify-content:space-between;gap:12px;padding:15px 20px
}
.app-page .settings-shell>.settings-options-grid{
  grid-area:preferences;width:100%;min-width:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px
}
.app-page .settings-shell .settings-account-state{
  align-self:center;flex:none
}
/* Automation: when there are no routes, a compact next-action row
   replaces the 400px decorative void. Route cards remain fully functional. */
.app-page .automation-shell .operations-section-heading{
  padding:0 0 9px;margin:0;min-height:0;gap:10px
}
.app-page .automation-shell .operations-section-heading .ui-kicker{
  display:none
}
.app-page .automation-shell .operations-route-grid{
  display:grid;grid-template-columns:minmax(0,1fr);gap:12px;
  align-items:start;min-height:0
}
.app-page .automation-shell .auto-empty.operations-empty-state{
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;justify-items:start;gap:5px 15px;
  width:100%;min-height:0;padding:18px 22px;
  text-align:start;border-radius:var(--wb-radius)
}
.app-page .automation-shell .operations-empty-state>.auto-empty-icon{
  grid-column:1;grid-row:1/3;
  font-size:30px;margin:0;align-self:center
}
.app-page .automation-shell .operations-empty-state>h2{
  grid-column:2;grid-row:1;margin:0;
  font-size:16px;line-height:1.5
}
.app-page .automation-shell .operations-empty-state>p{
  grid-column:2;grid-row:2;
  margin:0;font-size:11px;line-height:1.65;
  max-width:none
}
.app-page .automation-shell .operations-empty-state>.button{
  grid-column:3;grid-row:1/3;
  min-height:39px;white-space:nowrap;
  align-self:center
}
/* Preserve useful side-by-side inputs, but do not stretch short cards to
   the full height of an unrelated long form. */
.app-page :is(.team-shell,.publish-shell,.transfer-shell,.channels-page-shell)
 :is(.team-card,.team-members-panel,.publisher-main,.publisher-side,
      .transfer-workspace,.service-bots-panel,.channels-list-panel){
  align-self:start;min-width:0
}
.app-page .team-shell .team-management-grid{
  align-items:start
}
.app-page .automation-shell .operations-instructions{
  margin-top:0
}
@media(max-width:1100px){
  .app-page .settings-shell>.settings-options-grid{
    grid-template-columns:minmax(0,1fr)
  }
}
@media(max-width:760px){
  .app-page .app-main>main.dashboard-shell{
    padding-inline:14px
  }
  .app-page .home-shell .home-platform-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
  .app-page .billing-shell .wallet-balance-card{
    grid-template-columns:minmax(0,1fr) auto;
    padding:14px 16px;gap:5px 9px
  }
  .app-page .billing-shell .wallet-balance-card>p{
    grid-column:1/-1;max-width:100%
  }
  .app-page .settings-shell>.settings-account-card{
    padding:14px;flex-wrap:wrap
  }
  .app-page .automation-shell .auto-empty.operations-empty-state{
    grid-template-columns:34px minmax(0,1fr);
    gap:7px 10px;padding:15px
  }
  .app-page .automation-shell .operations-empty-state>.auto-empty-icon{
    grid-column:1;grid-row:1/3;font-size:25px
  }
  .app-page .automation-shell .operations-empty-state>.button{
    grid-column:2;grid-row:3;justify-self:start;margin-top:5px
  }
}
@media(max-width:460px){
  .app-page .billing-shell .wallet-balance-card{
    display:flex;flex-direction:column;align-items:flex-start;gap:5px
  }
  .app-page .home-shell .home-hero{padding:17px 15px}
}
