/* Product Workspace V2 – layout-first interface, not landing hero cards.
 * Respect current template hooks, forms, permissions, focus order and API state.
 * Loaded last; scopes apply only to authenticated web, not the MiniApp.
 */
:root {
  --v2-surface:var(--ui-surface);
  --v2-muted:var(--ui-muted);
  --v2-stroke:var(--ui-line);
  --v2-accent:var(--ui-brand);
  --v2-focus:color-mix(in srgb,var(--ui-brand) 24%,transparent);
}
.app-page .app-main{
  background:var(--ui-bg);
  min-width:0;
}
.app-page .app-main > main.dashboard-shell{
  width:100%; max-width:1600px; min-width:0;
  margin-inline:auto;
  gap:20px;
}
.app-page .app-main > main.dashboard-shell > *{min-width:0}
.app-page .site-sidebar{border-inline-end:1px solid var(--ui-line)}
.app-page .app-nav-group-label{font-size:10px;letter-spacing:0;font-weight:750}
.app-page .app-nav-link.is-active{box-shadow:inset -3px 0 0 var(--ui-brand)}
.app-page .app-nav-link:hover{transition:background .16s,border-color .16s}
.app-page .site-header {box-shadow:none;backdrop-filter:none}
.app-page .button-primary{font-weight:800}
.app-page :is(input,textarea,select,button,a):focus-visible{
  outline:3px solid var(--v2-accent);outline-offset:3px
}
.app-page :is(.home-hero,.studio-hero,.connection-hero,.operations-hero,.downloads-intro) h1 {
  font-size:clamp(27px,2.6vw,38px);line-height:1.48;
  letter-spacing:-.035em;margin:5px 0 5px;
  font-weight:850
}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) {
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;min-height:0;isolation:auto;
  padding:0 0 17px;
  background:transparent;border:0;border-bottom:1px solid var(--ui-line);
  border-radius:0;box-shadow:none;color:var(--ui-text)
}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro):before,
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro):after {
  content:none;display:none
}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) h1 {color:var(--ui-text)}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) p{
  color:var(--ui-muted);font-size:12px;max-width:730px;line-height:2
}
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) .studio-hero-art,
.app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) .connection-hero-art,
.app-page .operations-hero-art,
.app-page .downloads-intro-art{display:none}
.app-page :is(.studio-hero-copy,.connection-hero-copy,.operations-hero-copy,.downloads-intro-copy){flex:1;min-width:0}
.app-page :is(.studio-eyebrow,.connection-eyebrow,.operations-eyebrow,.downloads-eyebrow){font-size:11px;color:var(--ui-brand)}
.app-page :is(.studio-hero-links,.connection-hero-actions,.operations-hero-actions,.downloads-intro-actions){
  margin-top:13px;gap:10px
}
.app-page :is(.studio-hero-primary,.connection-hero-primary,.operations-cta,.downloads-create-button.button-primary){
  min-height:39px;margin:0;padding:7px 15px;
  border-radius:10px;background:var(--ui-brand);
  color:#082629;border-color:var(--ui-brand);
  box-shadow:none;font-size:11px
}
:root[data-theme=light] .app-page :is(.studio-hero-primary,.connection-hero-primary,.operations-cta){color:white}
.app-page :is(.studio-hero-secondary,.connection-hero-secondary,.operations-ghost-link){
  min-height:39px;padding:7px 13px;
  background:var(--ui-soft);border:1px solid var(--ui-line);
  border-radius:10px;color:var(--ui-text);font-size:11px
}
.app-page :is(.studio-hero-secondary,.connection-hero-secondary,.operations-ghost-link):hover {
  border-color:var(--ui-brand);color:var(--ui-brand)
}
.app-page .downloads-intro-actions>span{color:var(--ui-muted)}
.app-page .panel{box-shadow:none}
/* HOME – command center: work first, a compact task rail, then sources/history. */
.app-page main.home-shell {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(255px,.65fr);
  grid-template-areas:
    "trial trial"
    "hero tasks"
    "platforms tasks"
    "onboarding onboarding"
    "workspace workspace"
    "activity activity";
  align-items:start;
  gap:16px
}
.app-page .home-shell>.home-trial-banner{grid-area:trial}
.app-page .home-shell>.home-hero{grid-area:hero}
.app-page .home-shell>.ui-onboarding{grid-area:onboarding}
.app-page .home-shell>.home-task-grid{grid-area:tasks}
.app-page .home-shell>.home-platform-panel{grid-area:platforms}
.app-page .home-shell>#download-workspace{grid-area:workspace}
.app-page .home-shell>.home-activity-panel{grid-area:activity}
.app-page .home-shell .home-hero {
  display:block;min-height:0;padding:26px 27px 24px;
  border-radius:19px;background:var(--ui-surface);
  border:1px solid color-mix(in srgb,var(--ui-brand) 35%,var(--ui-line))
}
.app-page .home-shell .home-hero:after,.app-page .home-shell .home-hero:before{display:none}
.app-page .home-shell .home-hero-art{display:none}
.app-page .home-shell .home-hero h1{font-size:clamp(29px,3vw,42px);line-height:1.45;margin:5px 0}
.app-page .home-shell .home-hero-copy>p{font-size:12px;max-width:630px;color:var(--ui-muted);line-height:2}
.app-page .home-shell .home-url-row{margin-top:15px;min-height:62px}
.app-page .home-shell .home-flow-guide{margin-top:15px}
.app-page .home-shell .home-task-grid {
  display:flex;flex-direction:column;align-items:stretch;gap:8px;
  padding:0;margin:0
}
.app-page .home-shell .workspace-actions-heading{
  display:grid;gap:4px;padding:5px 0 8px;
}
.app-page .home-shell .workspace-actions-heading span{font-size:10px;color:var(--ui-brand);font-weight:700}
.app-page .home-shell .workspace-actions-heading strong{font-size:15px;color:var(--ui-text)}
.app-page .home-shell .home-task-card{
  display:flex;align-items:center;gap:14px;min-height:104px;
  padding:14px;border-radius:14px;
  background:var(--ui-surface);
  border:1px solid var(--ui-line)
}
.app-page .home-shell .home-task-card:after{display:none}
.app-page .home-shell .home-task-card:hover{transform:none;background:var(--ui-brand-soft)}
.app-page .home-shell .home-task-icon{flex:none;width:43px;height:43px;border-radius:12px}
.app-page .home-shell .home-task-copy strong{font-size:14px}
.app-page .home-shell .home-task-copy small{line-height:1.7;font-size:11px}
.app-page .home-shell .home-task-link{font-size:11px}
.app-page .home-shell .home-platform-panel {padding:17px 20px}
.app-page .home-shell .home-platform-grid{gap:7px}
.app-page .home-shell .home-platform-grid .platform-logo-link {
  min-height:70px;border-radius:11px;padding:9px
}
.app-page .home-shell .home-platform-panel .home-section-heading h2{font-size:15px}
.app-page .home-shell .home-activity-panel{padding:20px}
/* DOWNLOADS – wide list, contextual statistics in a vertical dock. */
.app-page main.downloads-library-shell{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,240px);
  grid-template-areas:"intro intro" "library summary";
  gap:17px;align-items:start
}
.app-page .downloads-library-shell>.downloads-intro{grid-area:intro}
.app-page .downloads-library-shell>.downloads-overview{grid-area:summary;position:sticky;top:14px}
.app-page .downloads-library-shell>.downloads-full-panel{grid-area:library;min-width:0}
.app-page .downloads-summary-grid{grid-template-columns:1fr;gap:8px}
.app-page .downloads-summary-card{
  display:flex;align-items:center;justify-content:space-between;gap:11px;
  min-height:78px;border-radius:12px;padding:12px 16px;
  box-shadow:none
}
.app-page .downloads-summary-card dt{font-size:11px;max-width:115px;line-height:1.8}
.app-page .downloads-summary-card dd{font-size:24px;margin-inline-end:24px}
.app-page .downloads-summary-marker{top:18px;inset-inline-end:12px;width:7px;height:7px}
.app-page .downloads-overview-caption{font-size:11px}
.app-page .downloads-library-shell .downloads-full-panel{padding:19px 22px}
.app-page .downloads-library-shell .downloads-library-heading{padding-bottom:12px;margin-bottom:13px}
.app-page .downloads-library-shell .downloads-library-heading h2{font-size:17px}
.app-page .downloads-library-shell .history-tools{margin-top:0}
/* PUBLISH – proper composition studio with a permanent navigation rail. */
.app-page main.publish-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 186px;
  grid-template-areas:"intro intro" "editor flow" "history history";
  gap:18px;align-items:start
}
.app-page .publish-shell>.publisher-hero{grid-area:intro}
.app-page .publish-shell>.studio-flow-guide{grid-area:flow}
.app-page .publish-shell>.publisher-grid{grid-area:editor}
.app-page .publish-shell>.publish-history-panel{grid-area:history}
.app-page .publish-shell .studio-flow-guide{
  position:sticky;top:15px;
  display:flex;flex-direction:column;gap:5px;
  padding:8px;border-radius:14px;border:1px solid var(--ui-line);
  background:var(--ui-surface);margin:0
}
.app-page .publish-shell .studio-flow-item{
  display:flex;align-items:center;justify-content:flex-start;
  text-decoration:none;min-height:48px;gap:9px;
  border:1px solid transparent;border-radius:9px;
  background:transparent;padding:8px;
  font-size:11px;line-height:1.7;color:var(--ui-muted)
}
.app-page .publish-shell .studio-flow-item:hover,
.app-page .publish-shell .studio-flow-item:focus-visible{
  background:var(--ui-brand-soft);color:var(--ui-brand)
}
.app-page .publish-shell .studio-flow-item span{width:25px;height:25px;min-width:25px;border-radius:8px}
.app-page .publish-shell>.publisher-grid{min-width:0;display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(240px,.72fr);gap:13px}
.app-page .publish-shell .publisher-main,.app-page .publish-shell .publisher-side{min-width:0}
.app-page .publish-shell .publish-composer-card {padding:22px 24px;border-radius:15px}
.app-page .publish-shell .publisher-side{position:sticky;top:14px;display:grid;gap:11px}
.app-page .publish-shell .publish-side-card{padding:16px;border-radius:13px}
.app-page .publish-shell .publish-card-heading{margin-bottom:10px}
.app-page .publish-shell .publish-card-heading h2{font-size:14px}
.app-page .publish-shell .composer-section{padding-top:18px;margin-top:19px}
.app-page .publish-shell .publish-upload-zone{min-height:98px;padding:17px}
.app-page .publish-shell .composer-actions{border-radius:12px;margin-top:17px}
/* TRANSFER – action-first tool and a responsive stage rail. */
.app-page main.transfer-shell{
  display:grid;grid-template-columns:minmax(0,1fr) 186px;
  grid-template-areas:"intro intro" "resolver stages" "workspace stages" "status stages";
  gap:17px;align-items:start
}
.app-page .transfer-shell>.transfer-hero{grid-area:intro}
.app-page .transfer-shell>.studio-transfer-steps{grid-area:stages}
.app-page .transfer-shell>.transfer-resolver{grid-area:resolver}
.app-page .transfer-shell>.transfer-workspace{grid-area:workspace}
.app-page .transfer-shell>.transfer-status-panel{grid-area:status}
.app-page .transfer-shell .studio-transfer-steps{
  position:sticky;top:15px;display:flex;flex-direction:column;gap:5px;
  background:var(--ui-surface);padding:8px;border:1px solid var(--ui-line);
  border-radius:14px
}
.app-page .transfer-shell .studio-transfer-steps li{min-height:51px;padding:8px;justify-content:flex-start}
.app-page .transfer-shell .transfer-resolver,
.app-page .transfer-shell .transfer-status-panel{padding:19px 21px;border-radius:15px}
.app-page .transfer-shell .transfer-url-row{margin-top:8px}
.app-page .transfer-shell .transfer-workspace{
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:12px
}
.app-page .transfer-shell .transfer-preview-panel,
.app-page .transfer-shell .transfer-config-panel{padding:19px;border-radius:14px}
/* ACCOUNT CONNECTIONS – a real workspace with tabs, not stacked feature ads. */
.app-page main.accounts-connections-shell{
  display:block;min-width:0
}
.app-page .accounts-connections-shell>*{margin-bottom:15px}
.app-page .accounts-connections-shell .connection-flow{
  grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
.app-page .accounts-connections-shell .connection-flow-step{min-height:65px;padding:12px}
.app-page .accounts-connections-shell .connection-path-note{padding:13px 16px}
.app-page .accounts-connections-shell .connection-path-icon{width:38px;height:38px}
.app-page .accounts-connections-shell .connected-platform-tabs{
  display:flex;position:relative;top:auto;border:0;padding:0;
  background:transparent;gap:8px
}
.app-page .accounts-connections-shell .connected-platform-tab{
  flex:1 0 130px;border:1px solid var(--ui-line);
  border-radius:12px;background:var(--ui-surface);min-height:61px
}
.app-page .accounts-connections-shell .connected-platform-tab.is-active{
  border-color:var(--ui-brand);box-shadow:inset 0 -2px var(--ui-brand)
}
.app-page .accounts-connections-shell .connected-account-panel,
.app-page .accounts-connections-shell .telegram-account-panel{
  border-radius:15px
}
/* CHANNELS – live status first, connecting controls secondary. */
.app-page .channels-page-shell .connection-flow{gap:9px}
.app-page .channels-page-shell .connection-flow-step{min-height:67px;padding:12px}
.app-page .channels-page-shell .channels-stats{gap:9px}
.app-page .channels-page-shell .channel-stat-card{padding:14px;border-radius:12px;min-height:85px}
.app-page .channels-page-shell .service-bots-panel,
.app-page .channels-page-shell .channels-list-panel{padding:20px;border-radius:15px}
/* AUTOMATION – direct and scannable routes, not an ornamental hero. */
.app-page .automation-shell .operations-flow{
  display:flex;gap:8px;max-width:780px
}
.app-page .automation-shell .operations-flow>div{
  flex:1;min-width:0;min-height:53px;padding:9px 12px;font-size:11px
}
.app-page .automation-shell .auto-route.operations-route-card{
  border-radius:15px;padding:20px
}
.app-page .automation-shell .auto-flow{margin:12px 0;padding:12px}
.app-page .automation-shell .operations-editor-steps{gap:6px}
.app-page .automation-shell .auto-section{border-radius:14px}
/* WALLET – balance as a compact sidebar beside the real subscription. */
.app-page main.billing-shell:has(.wallet-hero){
  display:grid;grid-template-columns:minmax(0,1fr) minmax(215px,255px);
  grid-template-areas:"intro intro" "plans balance" "ledger ledger";
  align-items:start;gap:15px
}
.app-page .billing-shell>.wallet-hero{grid-area:intro}
.app-page .billing-shell>.wallet-balance-card{grid-area:balance;position:sticky;top:14px}
.app-page .billing-shell>#automation-plans{grid-area:plans;min-width:0}
.app-page .billing-shell>#wallet-ledger{grid-area:ledger}
.app-page .billing-shell .wallet-balance-card{padding:19px;min-height:125px}
.app-page .billing-shell .wallet-balance-card .billing-number{font-size:28px}
.app-page .billing-shell .auto-plan{border-radius:14px}
/* TEAM + MANAGEMENT – operational tools and data density, no oversized intro. */
.app-page .team-shell .team-flow{gap:9px}
.app-page .team-shell .team-flow>div{padding:10px 13px;min-height:55px}
.app-page .team-shell .team-stats{gap:9px}
.app-page .team-shell .team-stat-card{border-radius:12px;padding:15px;min-height:90px}
.app-page .team-shell .team-management-grid{gap:12px}
.app-page .team-shell .team-card,.app-page .team-shell .team-members-panel{
  padding:19px;border-radius:14px
}
.app-page .billing-shell .management-hero{padding-bottom:14px}
.app-page .billing-shell .management-list-card{padding:20px}
/* Consolidated mobile layout: no sticky rails or two-column traps. */
@media(max-width:1120px){
  .app-page .home-shell .home-hero{padding:23px}
  .app-page main.publish-shell{grid-template-columns:1fr;grid-template-areas:"intro" "flow" "editor" "history"}
  .app-page main.transfer-shell{grid-template-columns:1fr;grid-template-areas:"intro" "stages" "resolver" "workspace" "status"}
  .app-page .publish-shell .studio-flow-guide,
  .app-page .transfer-shell .studio-transfer-steps{
    position:static;display:flex;flex-direction:row;overflow-x:auto;max-width:100%;
    scroll-snap-type:x proximity
  }
  .app-page .publish-shell .studio-flow-item{flex:1 0 135px;scroll-snap-align:start}
  .app-page .transfer-shell .studio-transfer-steps li{flex:1 0 124px;justify-content:center}
}
@media(max-width:860px){
  .app-page main.home-shell {
    grid-template-columns:1fr;
    grid-template-areas:"trial" "hero" "onboarding" "tasks" "platforms" "workspace" "activity"
  }
  .app-page .home-shell .home-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .app-page .home-shell .workspace-actions-heading{grid-column:1/-1}
  .app-page .home-shell .home-task-card{min-height:124px;flex-direction:column;align-items:flex-start}
  .app-page main.downloads-library-shell{grid-template-columns:1fr;grid-template-areas:"intro" "summary" "library"}
  .app-page .downloads-library-shell>.downloads-overview{position:static}
  .app-page .downloads-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .app-page .downloads-summary-card{min-height:90px}
  .app-page .publish-shell>.publisher-grid{grid-template-columns:1fr}
  .app-page .publish-shell .publisher-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-page main.billing-shell:has(.wallet-hero){
    grid-template-columns:1fr;grid-template-areas:"intro" "balance" "plans" "ledger"
  }
  .app-page .billing-shell>.wallet-balance-card{position:static}
}
@media(max-width:600px){
  .app-page .app-main > main.dashboard-shell{gap:13px}
  .app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro){
    padding:0 0 12px;min-height:0
  }
  .app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) h1{font-size:26px}
  .app-page :is(.studio-hero,.connection-hero,.operations-hero,.downloads-intro) p{font-size:12px}
  .app-page :is(.studio-hero-links,.connection-hero-actions,.operations-hero-actions){align-items:stretch}
  .app-page .home-shell .home-hero{padding:22px 16px;border-radius:15px}
  .app-page .home-shell .home-hero h1{font-size:28px}
  .app-page .home-shell .home-task-grid{grid-template-columns:1fr}
  .app-page .home-shell .home-task-card{min-height:84px;flex-direction:row;align-items:center}
  .app-page .home-shell .home-platform-panel{padding:14px}
  .app-page .downloads-summary-grid{gap:6px}
  .app-page .downloads-summary-card{padding:10px;min-height:84px}
  .app-page .downloads-summary-card dt{font-size:10px;line-height:1.6}
  .app-page .downloads-summary-card dd{font-size:20px;margin-inline-end:7px}
  .app-page .downloads-library-shell .downloads-full-panel{padding:14px}
  .app-page .publish-shell .publisher-side{grid-template-columns:1fr}
  .app-page .publish-shell .studio-flow-item{flex:0 0 121px;min-height:42px}
  .app-page .transfer-shell .studio-transfer-steps li{flex:0 0 110px;min-height:45px}
  .app-page .transfer-shell .transfer-workspace{grid-template-columns:1fr}
  .app-page .accounts-connections-shell .connection-flow{display:none}
  .app-page .accounts-connections-shell .connected-platform-tab{flex:0 0 113px}
  .app-page .team-shell .team-flow{display:none}
  .app-page .automation-shell .operations-flow{overflow-x:auto}
  .app-page .automation-shell .operations-flow>div{flex:0 0 170px}
}
@media(prefers-reduced-motion:reduce){
 .app-page .home-shell .home-task-card,.app-page .connected-platform-tab{transition:none}
}

/* Multi-channel distribution panel: bot catalog is the setup rail, confirmed
 * channels are the primary operational list. No nested hero cards. */
@media(min-width:1200px){
 .app-page main.channels-page-shell{
  display:grid;
  grid-template-columns:minmax(280px,.63fr) minmax(0,1fr);
  grid-template-areas:
   "intro intro"
   "note note"
   "stats stats"
   "flow flow"
   "bots list";
  gap:15px;align-items:start
 }
 .app-page .channels-page-shell>.channels-hero{grid-area:intro}
 .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-stats{grid-area:stats}
 .app-page .channels-page-shell>.service-bots-panel{grid-area:bots}
 .app-page .channels-page-shell>.channels-list-panel{grid-area:list}
 .app-page .channels-page-shell .service-bot-grid{grid-template-columns:1fr}
 .app-page .channels-page-shell .channels-grid{grid-template-columns:1fr}
 .app-page .channels-page-shell>.service-bots-panel,
 .app-page .channels-page-shell>.channels-list-panel{min-width:0}
}
/* Routing console: real source / destination values, status and controls
 * are scanned as rows, not a collection of marketing-style tiles. */
.app-page .automation-shell .operations-route-grid{
 display:grid;grid-template-columns:1fr;gap:9px
}
@media(min-width:1100px){
 .app-page .automation-shell .auto-route.operations-route-card{
  display:grid;
  grid-template-columns:minmax(145px,.55fr) minmax(210px,1fr) minmax(260px,.85fr);
  grid-template-areas:"name path actions" "name details actions";
  column-gap:16px;row-gap:9px;
  align-items:center;
  padding:16px 20px
 }
 .app-page .automation-shell .auto-route.operations-route-card>header{
  grid-area:name;display:flex;flex-direction:column;align-items:start;gap:8px;
  min-width:0
 }
 .app-page .automation-shell .auto-route.operations-route-card>.auto-flow{
  grid-area:path;margin:0;min-width:0;padding:12px
 }
 .app-page .automation-shell .auto-route.operations-route-card>.auto-meta{
  grid-area:details;line-height:1.7;margin:0
 }
 .app-page .automation-shell .auto-route.operations-route-card>footer{
  grid-area:actions;display:flex;flex-wrap:wrap;
  justify-content:flex-end;align-items:center;gap:7px
 }
 .app-page .automation-shell .auto-route.operations-route-card>footer .button{
  min-height:37px;padding:7px 11px;font-size:11px
 }
 .app-page .automation-shell .auto-route.operations-route-card>.auto-notice{
  grid-column:1/-1;margin:0
 }
}
@media(max-width:1199px){
 .app-page main.channels-page-shell{grid-template-columns:1fr}
}

/* SETTINGS – identity sidebar + visual theme choice, not a stack of
 * undifferentiated settings cards. The existing local preference buttons work. */
@media(min-width:940px){
 .app-page main.settings-shell:has(.settings-account-card){
   display:grid;
   grid-template-columns:minmax(225px,.37fr) minmax(0,1fr);
   grid-template-areas:"intro intro" "account preferences";
   gap:16px;align-items:start
 }
 .app-page .settings-shell>.ui-page-heading{grid-area:intro}
 .app-page .settings-shell>.settings-account-card{grid-area:account}
 .app-page .settings-shell>.settings-options-grid{grid-area:preferences;min-width:0}
}
.app-page .settings-shell>.ui-page-heading{
 padding:0 0 13px;margin:0;border-bottom:1px solid var(--ui-line)
}
.app-page .settings-shell>.settings-account-card {
 display:flex;flex-direction:column;align-items:stretch;gap:20px;
 border:1px solid var(--ui-line);border-radius:15px;
 padding:20px;background:var(--ui-surface);
 box-shadow:none
}
.app-page .settings-shell .settings-account-main{align-items:center;gap:12px}
.app-page .settings-shell .settings-profile-avatar{
 width:52px;height:52px;flex:none;border-radius:14px
}
.app-page .settings-shell .settings-account-copy{min-width:0}
.app-page .settings-shell .settings-account-copy strong,
.app-page .settings-shell .settings-account-copy small{
 overflow-wrap:anywhere;line-height:1.7
}
.app-page .settings-shell .settings-account-state{
 align-self:flex-start;border-radius:100px
}
.app-page .settings-shell .settings-options-grid{
 display:grid;grid-template-columns:1fr;gap:12px;min-width:0
}
.app-page .settings-shell .settings-panel{
 padding:22px 24px;background:var(--ui-surface);
 border:1px solid var(--ui-line);border-radius:15px
}
.app-page .settings-shell .settings-card-heading h2{font-size:17px}
.app-page .settings-shell .settings-preference-options{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.app-page .settings-shell .settings-preference-choice{
 position:relative;display:grid;align-content:start;justify-items:start;
 text-align:start;gap:11px;min-width:0;min-height:146px;
 padding:13px;border-radius:13px;
 border:1px solid var(--ui-line);background:var(--ui-soft)
}
/* Each option previews an actual app surface with sidebar + document. */
.app-page .settings-shell .settings-preference-choice:before{
 content:"";display:block;width:100%;height:52px;box-sizing:border-box;
 border-radius:8px;border:1px solid #c5d2df;
 background:linear-gradient(90deg,#dce5ef 0 24%,#f5f8fc 24%);
 box-shadow:inset 0 12px 0 #e8eef6
}
.app-page .settings-shell [data-theme-choice=dark]:before{
 border-color:#35475f;
 background:linear-gradient(90deg,#0b1726 0 24%,#1a293d 24%);
 box-shadow:inset 0 12px 0 #142237
}
.app-page .settings-shell [data-theme-choice=system]:before{
 border-color:#71879d;
 background:linear-gradient(90deg,#0b1726 0 24%,#1a293d 24% 50%,#dce5ef 50% 74%,#f5f8fc 74%);
 box-shadow:inset 0 12px 0 #a6b8c76b
}
.app-page .settings-shell .settings-preference-choice[aria-pressed=true]{
 border-color:var(--ui-brand);background:var(--ui-brand-soft);
 box-shadow:0 0 0 2px var(--v2-focus)
}
.app-page .settings-shell .settings-preference-choice strong{color:var(--ui-text);font-size:12px}
.app-page .settings-shell .settings-preference-choice small{color:var(--ui-muted);font-size:10px}
.app-page .settings-shell .settings-preference-icon{display:none}
.app-page .settings-shell .settings-session-copy{padding:12px 0}
@media(max-width:650px){
 .app-page .settings-shell .settings-preference-options{grid-template-columns:1fr}
 .app-page .settings-shell .settings-preference-choice{
  min-height:82px;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:12px
 }
 .app-page .settings-shell .settings-preference-choice:before{
  grid-row:1/-1;width:90px;height:53px
 }
}

/* SaaS reference refinement — presentation only: no data, forms or API changes.
   Product-first hero, keyboard selection, gentle actionable-card feedback. */
.app-page .home-shell .home-hero{
  background:radial-gradient(ellipse 48% 88% at 94% 6%,color-mix(in srgb,var(--ui-brand) 10%,transparent),transparent 74%),var(--ui-surface);
  box-shadow:0 15px 38px color-mix(in srgb,var(--ui-text) 5%,transparent)
}
.app-page .home-shell .home-task-card{
  position:relative;
  transition:border-color .2s var(--ui-ease),box-shadow .2s var(--ui-ease),background .2s var(--ui-ease)
}
.app-page .home-shell .home-task-card:focus-within{
  border-color:var(--ui-brand);background:var(--ui-brand-soft);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-brand) 14%,transparent)
}
.app-page .home-shell .home-task-icon{transition:translate .2s var(--ui-ease)}
.app-page .home-shell .home-task-link{font-weight:800;text-underline-offset:4px}
.app-page .home-shell .home-platform-grid .platform-logo-link{
  transition:border-color .2s var(--ui-ease),box-shadow .2s var(--ui-ease),translate .2s var(--ui-ease)
}
.app-page .home-shell .home-platform-grid .platform-logo-link:focus-visible,
.app-page .publish-shell .selection-card:focus-within,
.app-page .transfer-shell .transfer-destination:focus-within{
  border-color:var(--ui-brand);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-brand) 16%,transparent)
}
.app-page .operational-empty{
  background:linear-gradient(140deg,color-mix(in srgb,var(--ui-brand) 6%,var(--ui-soft)),var(--ui-soft) 65%)
}
.app-page .operational-empty .operational-empty-symbol{
  border:1px solid color-mix(in srgb,var(--ui-brand) 20%,transparent)
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .app-page .home-shell .home-task-card:hover{
    transform:none;
    border-color:color-mix(in srgb,var(--ui-brand) 52%,var(--ui-line));
    background:linear-gradient(125deg,color-mix(in srgb,var(--ui-brand) 9%,var(--ui-surface)),var(--ui-surface) 68%);
    box-shadow:0 12px 30px color-mix(in srgb,var(--ui-text) 9%,transparent)
  }
  .app-page .home-shell .home-task-card:hover .home-task-icon{translate:0 -2px}
  .app-page .home-shell .home-platform-grid .platform-logo-link:hover{
    border-color:color-mix(in srgb,var(--ui-brand) 48%,var(--ui-line));
    box-shadow:0 8px 18px color-mix(in srgb,var(--ui-text) 8%,transparent);
    translate:0 -2px
  }
  .app-page .app-nav-link:not(.is-active):hover .nav-icon{translate:0 -1px}
  .app-page :is(a.button-primary,button.button-primary):not([disabled]):hover{
    translate:0 -1px;box-shadow:0 6px 18px color-mix(in srgb,var(--ui-brand) 16%,transparent)
  }
}
@media(prefers-reduced-motion:reduce){
  .app-page .home-shell .home-task-card,
  .app-page .home-shell .home-task-icon,
  .app-page .home-shell .home-platform-grid .platform-logo-link{
    transition:none;translate:none
  }
}
