/* Premium Studio Alpha — web-only, task-led surfaces inspired by Linear,
   Vercel and Stripe; restrained spotlight/beam cues inspired by Magic UI and
   Aceternity. All effects are progressive, all data stays with real controllers. */
.app-page{
  --studio-radius:22px;
  --studio-edge:color-mix(in srgb,var(--ui-brand) 19%,var(--ui-line));
  --studio-glow:color-mix(in srgb,var(--ui-brand) 10%,transparent);
  --studio-faint:color-mix(in srgb,var(--ui-brand) 5%,var(--ui-surface));
  --studio-ease:cubic-bezier(.18,.76,.25,1);
}
.app-page [hidden]{display:none!important}
.app-page .app-main{background:
  radial-gradient(ellipse 45% 30% at 1% 2%,color-mix(in srgb,var(--ui-brand) 3%,transparent),transparent 90%),var(--ui-bg)}
.app-page .site-sidebar{background:
  linear-gradient(170deg,color-mix(in srgb,var(--ui-brand) 3%,var(--ui-surface)),var(--ui-surface) 30%);
  border-inline-end:1px solid var(--ui-line)}
.app-page .app-nav-link{transition:background .18s ease,color .18s ease,border-color .18s ease}
.app-page .app-nav-link.is-active{
  background:linear-gradient(105deg,color-mix(in srgb,var(--ui-brand) 17%,var(--ui-surface)),
  color-mix(in srgb,var(--ui-brand) 7%,var(--ui-surface)));
  box-shadow:inset -3px 0 0 var(--ui-brand),0 6px 20px color-mix(in srgb,var(--ui-brand) 6%,transparent)
}
.app-page :is(.premium-command-surface,.premium-editor-surface,.premium-preview-device,.premium-transfer-console){
  --premium-x:50%;--premium-y:50%;
  position:relative;isolation:isolate;
  overflow:hidden
}
.app-page :is(.premium-command-surface,.premium-editor-surface,.premium-preview-device,.premium-transfer-console):before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  opacity:0;transition:opacity .36s ease;
  background:radial-gradient(480px circle at var(--premium-x) var(--premium-y),
  color-mix(in srgb,var(--ui-brand) 14%,transparent),transparent 62%)
}
@media(hover:hover) and (pointer:fine){
 .app-page :is(.premium-command-surface,.premium-editor-surface,.premium-preview-device,.premium-transfer-console):hover:before,
 .app-page :is(.premium-command-surface,.premium-editor-surface,.premium-preview-device,.premium-transfer-console):focus-within:before{opacity:.65}
}
.app-page .premium-live-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  flex:none;background:var(--ui-brand);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--ui-brand) 13%,transparent)
}
.app-page .premium-live-label{display:inline-flex;align-items:center;gap:8px;font-size:10px;
  color:var(--ui-muted);font-weight:650}
.app-page :is(.premium-editor-surface,.premium-transfer-console) :is(input,textarea,select):focus-visible{
  outline:2px solid var(--ui-brand);outline-offset:2px
}
.app-page .button-primary:not([disabled]){
  transition:transform .2s var(--studio-ease),box-shadow .2s ease,filter .2s ease;
  box-shadow:0 6px 18px color-mix(in srgb,var(--ui-brand) 13%,transparent)
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .app-page .button-primary:not([disabled]):hover{
  transform:translateY(-1px);filter:brightness(1.04);
  box-shadow:0 9px 26px color-mix(in srgb,var(--ui-brand) 23%,transparent)
 }
}
.app-page .button-primary:not([disabled]):active{transform:translateY(0)}
/* HOME — a media command canvas, not another boxed dashboard. */
.app-page .home-shell .premium-command-surface{
  display:block;border:1px solid var(--studio-edge);
  background:
   radial-gradient(ellipse 43% 100% at 92% 12%,color-mix(in srgb,var(--ui-brand) 14%,transparent),transparent 82%),
   linear-gradient(115deg,color-mix(in srgb,var(--ui-brand) 9%,var(--ui-surface)),var(--ui-surface) 62%);
  border-radius:var(--studio-radius);padding:clamp(23px,3vw,48px);
  box-shadow:0 18px 52px color-mix(in srgb,var(--ui-text) 7%,transparent)
}
/* Legacy Product Workspace hides the old hero pseudo layers; explicitly
   re-enable only this new decorative command-canvas treatment. */
.app-page .home-shell .premium-command-surface:before{display:block}
.app-page .home-shell .premium-command-surface:after{
  display:block;content:"";position:absolute;pointer-events:none;
  inset-inline-start:0;top:0;bottom:0;width:43%;opacity:.32;
  background-image:radial-gradient(color-mix(in srgb,var(--ui-brand) 38%,transparent) .75px,transparent .75px);
  background-size:19px 19px;mask-image:linear-gradient(to right,#000,transparent);
  z-index:-1
}
.app-page .home-shell .premium-command-surface .home-hero-copy{max-width:none}
.app-page .home-shell .premium-command-surface .home-hero-kicker{
 display:inline-flex;align-items:center;gap:8px;margin-bottom:3px;
 font-size:10px;letter-spacing:0;font-weight:700;color:var(--ui-brand)
}
.app-page .home-shell .premium-command-surface #workflow-title{
 margin:6px 0 12px;letter-spacing:-.02em;
 font-size:clamp(29px,3.15vw,47px);font-weight:850;line-height:1.43;max-width:870px
}
.app-page .home-shell .premium-command-surface .home-hero-copy>p{
 font-size:clamp(12px,1vw,14px);line-height:1.85;max-width:820px;
 margin:0 0 19px;color:var(--ui-muted)
}
.app-page .premium-hero-meta{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;
 width:max-content;max-width:100%;margin:6px 0 22px;
 padding:8px 12px;border:1px solid var(--ui-line);border-radius:999px;
 background:color-mix(in srgb,var(--ui-surface) 85%,transparent);
 font-size:11px;color:var(--ui-muted)
}
.app-page .premium-hero-meta kbd{
 font:700 11px/1 var(--ui-font);border:1px solid var(--ui-line);border-radius:5px;
 background:var(--ui-soft);color:var(--ui-text);padding:5px 7px;margin-inline-start:9px
}
.app-page .home-shell .premium-command-surface .home-url-row{
 margin:0;min-height:70px;padding:6px 8px;
 border:1px solid color-mix(in srgb,var(--ui-brand) 38%,var(--ui-line));
 border-radius:17px;background:var(--ui-surface);
 box-shadow:0 12px 38px color-mix(in srgb,var(--ui-text) 9%,transparent);
 transition:border-color .22s ease,box-shadow .22s ease
}
.app-page .home-shell .premium-command-surface .home-url-row:focus-within{
 border-color:var(--ui-brand);box-shadow:0 0 0 4px var(--studio-glow),
 0 12px 40px color-mix(in srgb,var(--ui-text) 10%,transparent)
}
.app-page .home-shell .premium-command-surface .home-url-row input{
 font-size:14px;min-width:0
}
.app-page .home-shell .premium-command-surface .downloader-resolve-button{min-height:50px;border-radius:12px}
.app-page .home-shell .premium-command-surface .home-flow-guide{
 display:flex;align-items:center;gap:0;flex-wrap:wrap;
 border:0;background:transparent;padding:12px 0 0;margin:0
}
.app-page .home-shell .premium-command-surface .home-flow-item{
 min-width:0;flex:0 1 auto;padding:3px 12px;gap:7px;
 border-inline-end:1px solid var(--ui-line);font-size:11px;color:var(--ui-muted)
}
.app-page .home-shell .premium-command-surface .home-flow-item:first-child{
 border-inline-end:0;padding-inline-start:0
}
.app-page .home-shell .premium-download-workspace:not([hidden]){
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start
}
.app-page .home-shell .premium-download-workspace .panel{
 border:1px solid var(--studio-edge);border-radius:var(--studio-radius);
 background:var(--ui-surface)
}
.app-page .home-shell .premium-source-strip{
 border:0;border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line);
 border-radius:0;background:transparent;box-shadow:none;padding:20px 0
}
.app-page .home-shell .premium-source-strip .home-section-heading{margin-bottom:12px}
.app-page .home-shell .premium-source-strip .home-platform-grid{
 grid-template-columns:repeat(8,minmax(0,1fr));gap:9px
}
.app-page .home-shell .premium-source-strip .platform-logo-link{
 min-height:84px;border:1px solid transparent;
 background:color-mix(in srgb,var(--ui-soft) 74%,transparent);
 border-radius:16px;
 transition:transform .2s var(--studio-ease),background .2s ease,border-color .2s ease
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .app-page .home-shell .premium-source-strip .platform-logo-link:hover{
  transform:translateY(-3px);
  background:var(--ui-brand-soft);border-color:var(--studio-edge)
 }
}
.app-page .home-shell .premium-activity-log{
 border:0;border-top:1px solid var(--ui-line);border-radius:0;
 box-shadow:none;background:transparent;padding:18px 0
}
.app-page .home-shell .premium-activity-log .downloader-history-table-head{
 background:color-mix(in srgb,var(--ui-brand) 4%,var(--ui-soft));
 border-radius:11px
}
.app-page .home-shell .premium-activity-log .job-list{
 border-inline-start:2px solid color-mix(in srgb,var(--ui-brand) 24%,var(--ui-line));
 margin-inline-start:7px
}
.app-page .home-shell .premium-activity-log .job-list>*{
 transition:background .18s ease,border-color .18s ease
}
/* PUBLISH — an editorial composer alongside a believable, data-driven preview. */
.app-page .publish-shell .premium-composer-layout{
 display:grid;grid-template-columns:minmax(0,1.5fr) minmax(295px,.8fr);
 gap:clamp(15px,2vw,28px);align-items:start
}
.app-page .publish-shell .premium-editor-surface{
 border:1px solid var(--ui-line);border-radius:var(--studio-radius);
 background:var(--ui-surface);
 padding:clamp(22px,2.8vw,40px);
 box-shadow:0 15px 40px color-mix(in srgb,var(--ui-text) 5%,transparent)
}
.app-page .publish-shell .premium-editor-surface .publish-card-heading{
 margin:0 0 10px;padding:0;border:0
}
.app-page .publish-shell .premium-editor-surface .workbench-content-title{font-size:clamp(23px,2vw,31px)}
.app-page .publish-shell .premium-editor-surface .studio-section-description{
 font-size:12px;line-height:1.75;margin:0 0 22px
}
.app-page .publish-shell .premium-editor-surface .publish-completeness{
 padding:13px 15px;background:var(--studio-faint);
 border:1px solid var(--studio-edge);border-radius:12px;margin-bottom:20px
}
.app-page .publish-shell .premium-editor-surface .publish-completeness [role=progressbar]{
 border-radius:999px;overflow:hidden
}
.app-page .publish-shell .premium-editor-surface .form-grid{
 display:grid;gap:15px
}
.app-page .publish-shell .premium-editor-surface #publish-text{
 min-height:185px;border:1px solid var(--ui-line);border-radius:13px;
 background:color-mix(in srgb,var(--ui-surface) 94%,var(--ui-soft));
 line-height:2;padding:16px 18px;resize:vertical
}
.app-page .publish-shell .premium-editor-surface .composer-section{
 border-top:1px solid var(--ui-line);padding-top:23px;margin-top:23px
}
.app-page .publish-shell .premium-editor-surface .composer-section-head h3{
 font-size:15px;font-weight:800
}
.app-page .publish-shell .premium-editor-surface .studio-section-number{
 border-radius:11px
}
.app-page .publish-shell .premium-editor-surface .publish-upload-zone{
 position:relative;min-height:118px;display:flex;align-items:center;
 border:1px dashed color-mix(in srgb,var(--ui-brand) 52%,var(--ui-line));
 background:linear-gradient(112deg,var(--studio-faint),var(--ui-surface) 75%);
 border-radius:17px;padding:22px;gap:16px;
 transition:background .2s ease,border-color .2s ease,box-shadow .2s ease
}
.app-page .publish-shell .premium-editor-surface .publish-upload-zone:is(:hover,:focus-within){
 border-color:var(--ui-brand);box-shadow:0 0 0 3px var(--studio-glow)
}
.app-page .publish-shell .premium-editor-surface .publish-mode-options{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px
}
.app-page .publish-shell .premium-editor-surface .publish-mode-choice{
 border-radius:13px;transition:border-color .18s ease,background .18s ease
}
.app-page .publish-shell .premium-editor-surface .composer-actions{
 padding-top:16px;border-top:1px solid var(--ui-line)
}
.app-page .publish-shell .premium-editor-surface #publish-submit{
 min-height:49px;min-width:180px;border-radius:12px
}
.app-page .publish-shell .publisher-side{
 position:sticky;top:18px;align-self:start;display:grid;gap:12px
}
.app-page .publish-shell .premium-preview-device{
 border-radius:26px;border:1px solid var(--studio-edge);
 background:linear-gradient(168deg,color-mix(in srgb,var(--ui-brand) 7%,var(--ui-surface)),var(--ui-surface) 36%);
 padding:clamp(16px,2vw,26px);box-shadow:0 22px 52px color-mix(in srgb,var(--ui-text) 8%,transparent)
}
.app-page .publish-shell .premium-preview-device .social-preview{
 border:1px solid var(--ui-line);background:var(--ui-surface);
 border-radius:22px;overflow:hidden;
 box-shadow:0 14px 28px color-mix(in srgb,var(--ui-text) 7%,transparent)
}
.app-page .publish-shell .premium-preview-device .preview-header{
 padding:14px;border-bottom:1px solid var(--ui-line)
}
.app-page .publish-shell .premium-preview-device .preview-media{min-height:148px}
.app-page .publish-shell .premium-preview-device #preview-text{
 min-height:55px;padding:14px 16px;line-height:1.9
}
.app-page .publish-shell .publish-status-panel{
 border:1px solid var(--ui-line);border-radius:18px;
 background:transparent;box-shadow:none
}
.app-page .publish-shell .premium-publish-history{
 border:0;border-top:1px solid var(--ui-line);border-radius:0;
 padding:18px 0;background:transparent;box-shadow:none
}
/* TRANSFER — interactive pathway only advances on real app state. */
.app-page .transfer-shell .premium-transfer-console{
 border:1px solid var(--studio-edge);border-radius:var(--studio-radius);
 background:
  radial-gradient(ellipse at 8% 15%,color-mix(in srgb,var(--ui-brand) 9%,transparent),transparent 63%),
  linear-gradient(130deg,var(--ui-surface),color-mix(in srgb,var(--ui-brand) 4%,var(--ui-surface)));
 padding:clamp(22px,3vw,39px);box-shadow:0 15px 36px color-mix(in srgb,var(--ui-text) 6%,transparent)
}
.app-page .transfer-shell .premium-transfer-console .studio-resolver-heading{margin-bottom:18px}
.app-page .transfer-shell .premium-transfer-console .workbench-content-title{
 font-size:clamp(22px,2.2vw,33px);line-height:1.5
}
.app-page .transfer-shell .premium-transfer-console .transfer-url-row{
 min-height:67px;border-radius:16px;background:var(--ui-surface);
 border:1px solid color-mix(in srgb,var(--ui-brand) 38%,var(--ui-line));
 box-shadow:0 8px 28px color-mix(in srgb,var(--ui-text) 7%,transparent);
 transition:border-color .2s ease,box-shadow .2s ease
}
.app-page .transfer-shell .premium-transfer-console .transfer-url-row:focus-within{
 border-color:var(--ui-brand);box-shadow:0 0 0 4px var(--studio-glow)
}
.app-page .transfer-shell .premium-transfer-console .transfer-url-row .button{
 border-radius:11px;min-height:47px
}
.app-page .transfer-shell .premium-transfer-flow{
 position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:0;padding:0;margin:0;border:0;background:transparent;
 border-radius:0;overflow:visible
}
.app-page .transfer-shell .premium-transfer-flow:before{
 content:"";position:absolute;left:8%;right:8%;top:50%;
 border-top:1px dashed color-mix(in srgb,var(--ui-brand) 43%,var(--ui-line));
 pointer-events:none
}
.app-page .transfer-shell .premium-transfer-flow li{
 position:relative;display:flex;flex:1 1 auto;align-items:center;justify-content:center;
 margin:0 5px;border:1px solid var(--ui-line);border-radius:999px;
 min-height:49px;min-width:0;padding:8px 10px;
 background:var(--ui-surface);color:var(--ui-muted);
 transition:background .25s ease,border-color .25s ease,box-shadow .25s ease;
 font-size:11px;font-weight:750;z-index:1
}
.app-page .transfer-shell .premium-transfer-flow li[aria-current=step]{
 border-color:var(--ui-brand);background:var(--ui-brand-soft);color:var(--ui-text);
 box-shadow:0 0 0 3px var(--studio-glow)
}
.app-page .transfer-shell .premium-transfer-flow li[aria-current=step]:after{
 content:"";width:5px;height:5px;flex:none;border-radius:50%;
 margin-inline-start:4px;background:var(--ui-brand);box-shadow:0 0 0 4px var(--studio-glow)
}
.app-page .transfer-shell .premium-transfer-workspace:not([hidden]){
 display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;align-items:start
}
.app-page .transfer-shell .premium-transfer-workspace>.panel{
 border-radius:19px;border:1px solid var(--studio-edge);padding:clamp(18px,2vw,29px);
 background:var(--ui-surface)
}
.app-page .transfer-shell .premium-transfer-activity{
 border:0;border-top:1px solid var(--ui-line);border-radius:0;
 background:transparent;box-shadow:none;padding:17px 0
}
.app-page .transfer-shell .premium-transfer-activity .operational-transfer-empty{
 border:1px dashed var(--ui-line);border-radius:15px;background:var(--ui-surface);
 min-height:83px
}
/* Motion is opt-in and never hides content before JS has run. */
@media(prefers-reduced-motion:no-preference){
 .app-page .premium-visible{
  animation:premium-enter .53s var(--studio-ease) both
 }
 .app-page .premium-live-dot{animation:premium-glow 3.2s ease-in-out infinite}
 @keyframes premium-enter{
  from{opacity:.65;transform:translateY(9px)}
  to{opacity:1;transform:translateY(0)}
 }
 @keyframes premium-glow{
  0%,100%{box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-brand) 12%,transparent)}
  50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--ui-brand) 5%,transparent)}
 }
}
/* Narrow viewports: one task column, readable hit targets, never faux sidebars. */
@media(max-width:1030px){
 .app-page .publish-shell .premium-composer-layout{grid-template-columns:minmax(0,1fr)}
 .app-page .publish-shell .publisher-side{position:static;top:auto;
   grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-page .transfer-shell .premium-transfer-workspace:not([hidden]){grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
 .app-page .home-shell .premium-command-surface{padding:23px 18px}
 .app-page .home-shell .premium-command-surface #workflow-title{font-size:clamp(26px,6vw,35px)}
 .app-page .home-shell .premium-command-surface .home-flow-guide{flex-wrap:wrap;gap:4px}
 .app-page .home-shell .premium-command-surface .home-flow-item{font-size:10px;padding:4px 7px}
 .app-page .home-shell .premium-download-workspace:not([hidden]){grid-template-columns:minmax(0,1fr)}
 .app-page .home-shell .premium-source-strip .home-platform-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .app-page .publish-shell .publisher-side{grid-template-columns:minmax(0,1fr)}
 .app-page .publish-shell .premium-editor-surface{padding:18px 16px}
 .app-page .publish-shell .premium-editor-surface .publish-upload-zone{
   padding:16px;flex-wrap:wrap;min-height:110px
 }
 .app-page .transfer-shell .premium-transfer-flow{gap:5px}
 .app-page .transfer-shell .premium-transfer-flow:before{display:none}
 .app-page .transfer-shell .premium-transfer-flow li{
  flex-direction:column;margin:0;padding:8px 3px;border-radius:13px;
  min-height:64px;line-height:1.5;font-size:10px
 }
 .app-page .transfer-shell .premium-transfer-flow li[aria-current=step]:after{display:none}
}
@media(max-width:440px){
 .app-page .premium-hero-meta{width:100%;gap:6px;padding:8px;font-size:10px}
 .app-page .premium-hero-meta kbd{display:none}
 .app-page .home-shell .premium-command-surface .home-url-row{min-height:60px}
 .app-page .home-shell .premium-command-surface .downloader-resolve-button{min-height:42px;padding-inline:10px}
 .app-page .home-shell .premium-source-strip .platform-logo-link{min-height:73px}
 .app-page .transfer-shell .premium-transfer-console{padding:18px 15px}
 .app-page .transfer-shell .premium-transfer-console .transfer-url-row{
  display:grid;grid-template-columns:auto minmax(0,1fr)
 }
 .app-page .transfer-shell .premium-transfer-console .transfer-url-row .button{
  grid-column:1/-1;width:100%
 }
}
@media(prefers-reduced-motion:reduce){
 .app-page .premium-visible,.app-page .premium-live-dot{animation:none}
 .app-page :is(.premium-command-surface,.premium-editor-surface,.premium-preview-device,.premium-transfer-console):before{
  transition:none;opacity:0
 }
 .app-page .premium-transfer-flow li,.app-page .button-primary{transition:none;transform:none}
}

/* Task Studio beta 2: structural layouts and functional controls.
   This section replaces the earlier decorative treatment on the three workflows. */
.app-page .home-shell .premium-command-surface{
 padding:clamp(24px,3vw,42px);min-height:0;
 border-radius:16px;border:1px solid var(--ui-line);
 background:var(--ui-surface);box-shadow:none
}
.app-page .home-shell .premium-command-surface:before,
.app-page .home-shell .premium-command-surface:after{display:none}
.app-page .home-shell .premium-command-surface #workflow-title{
 font-size:clamp(25px,2.5vw,38px);margin:3px 0 9px;max-width:900px
}
.app-page .studio-command-hint{display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 margin:0 0 18px;font-size:11px;color:var(--ui-muted)}
.app-page .studio-command-indicator{width:7px;height:7px;border-radius:50%;
 background:var(--ui-brand);flex:none}
.app-page .studio-command-hint kbd{margin-inline-start:auto;
 padding:5px 8px;border-radius:6px;border:1px solid var(--ui-line);
 color:var(--ui-text);background:var(--ui-soft);font:700 11px var(--ui-font)}
.app-page .studio-paste-button{border:1px solid var(--ui-line);border-radius:10px;
 background:var(--ui-soft);color:var(--ui-text);padding:10px 12px;
 min-height:45px;font-size:11px;white-space:nowrap}
.app-page .studio-paste-button:hover{border-color:var(--ui-brand)}
.app-page .premium-activity-log .studio-stream-heading{align-items:center;margin-bottom:3px}
.app-page .studio-history-toolbar{display:flex;gap:12px;align-items:center;
 justify-content:space-between;flex-wrap:wrap;padding:8px 0 17px}
.app-page .studio-history-search{display:flex;align-items:center;
 gap:9px;flex:1 1 230px;max-width:400px;min-width:0;padding:0 11px;
 border:1px solid var(--ui-line);border-radius:11px;
 background:var(--ui-surface);color:var(--ui-muted)}
.app-page .studio-history-search:focus-within{border-color:var(--ui-brand)}
.app-page .studio-history-search input{min-height:44px;min-width:0;width:100%;
 background:transparent;border:0;outline:none;
 color:var(--ui-text);font:inherit;font-size:12px}
.app-page .studio-history-filters{display:flex;align-items:center;
 gap:5px;max-width:100%;overflow-x:auto;padding:2px}
.app-page .studio-history-filters button{border:1px solid transparent;border-radius:9px;
 padding:9px 12px;color:var(--ui-muted);background:transparent;
 font:700 11px var(--ui-font);white-space:nowrap;cursor:pointer}
.app-page .studio-history-filters button.is-selected{
 background:var(--ui-brand-soft);color:var(--ui-brand);
 border-color:color-mix(in srgb,var(--ui-brand) 24%,var(--ui-line))
}
.app-page .studio-history-filters button:focus-visible,
.app-page .studio-paste-button:focus-visible{outline:2px solid var(--ui-brand);outline-offset:2px}
/* Publishing: clear stages, movable focus, dedicated preview on small screens. */
.app-page .studio-publish-switcher{display:none}
.app-page .publish-shell .studio-editor-navigation{display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
 margin:2px 0 20px;padding:5px;background:var(--ui-soft);
 border:1px solid var(--ui-line);border-radius:12px}
.app-page .studio-editor-navigation button{display:flex;align-items:center;
 justify-content:center;gap:7px;min-width:0;min-height:45px;
 border:1px solid transparent;border-radius:9px;
 background:transparent;color:var(--ui-muted);
 font:750 11px var(--ui-font);cursor:pointer}
.app-page .studio-editor-navigation button span{opacity:.7;font-size:10px}
.app-page .studio-editor-navigation button:is(:hover,[aria-current=step]){
 background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text);
 box-shadow:0 2px 7px color-mix(in srgb,var(--ui-text) 7%,transparent)}
.app-page .publish-shell [data-studio-editor-section]{scroll-margin-top:24px}
.app-page .publish-shell .premium-preview-device{
 background:var(--ui-soft);border-radius:18px;box-shadow:none}
.app-page .publish-shell .premium-preview-device .social-preview{
 border-radius:15px;box-shadow:0 6px 14px color-mix(in srgb,var(--ui-text) 5%,transparent)}
/* Transfer: a real, readable path showing actual URL and selected endpoints. */
.app-page .transfer-shell .premium-transfer-console{
 border-radius:16px;background:var(--ui-surface);box-shadow:none}
.app-page .transfer-shell .premium-transfer-console:before{display:none}
.app-page .studio-transfer-route{display:grid;
 grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr) 32px minmax(0,1fr);
 gap:9px;align-items:center;min-width:0;padding:16px;
 border:1px solid var(--ui-line);border-radius:16px;background:var(--ui-soft)}
.app-page .studio-route-node{display:flex;align-items:center;gap:11px;min-width:0;
 padding:12px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}
.app-page .studio-route-node>div{display:grid;gap:4px;min-width:0}
.app-page .studio-route-node small{color:var(--ui-muted);font-size:10px}
.app-page .studio-route-node strong{color:var(--ui-text);font-size:12px;
 font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-page .studio-route-icon{display:grid;place-items:center;
 width:35px;height:35px;flex:none;border-radius:10px;
 color:var(--ui-brand);background:var(--ui-brand-soft)}
.app-page .studio-route-connector{display:flex;align-items:center;
 justify-content:center;color:var(--ui-brand);font-size:17px;min-width:0}
.app-page .studio-transfer-route[data-resolved=true] .studio-route-media{
 border-color:var(--ui-brand);background:var(--ui-brand-soft)}
@media(max-width:1080px){
 .app-page .studio-transfer-route{grid-template-columns:minmax(0,1fr);
  gap:5px;padding:10px}
 .app-page .studio-route-node{width:100%}
 .app-page .studio-route-connector{height:14px;transform:rotate(-90deg)}
}
@media(max-width:760px){
 .app-page .studio-publish-switcher[data-studio-ready=true]{display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;
  padding:5px;background:var(--ui-soft);
  border:1px solid var(--ui-line);border-radius:12px}
 .app-page .studio-publish-switcher button{
  min-height:44px;border:1px solid transparent;
  border-radius:9px;color:var(--ui-muted);background:transparent;
  font:750 12px var(--ui-font);cursor:pointer}
 .app-page .studio-publish-switcher button[aria-selected=true]{
  color:var(--ui-brand);background:var(--ui-surface);border-color:var(--ui-line)}
 .app-page .publish-shell .premium-composer-layout[data-studio-ready=true][data-studio-publish-layout=edit]>.publisher-side,
 .app-page .publish-shell .premium-composer-layout[data-studio-ready=true][data-studio-publish-layout=preview]>.publisher-main{
  display:none}
 .app-page .studio-editor-navigation button{min-height:44px;
  flex-direction:column;gap:2px;font-size:10px}
 .app-page .studio-history-search{max-width:none;flex-basis:100%}
 .app-page .studio-history-filters{width:100%}
}
@media(max-width:440px){
 .app-page .studio-command-hint kbd{display:none}
 .app-page .home-shell .premium-command-surface .home-url-row{
  display:flex;flex-wrap:wrap;gap:7px}
 .app-page .home-shell .premium-command-surface .home-url-row input{
  flex:1 1 calc(100% - 45px);min-height:42px}
 .app-page .home-shell .premium-command-surface .home-url-row .studio-paste-button{
  flex:1 1 35%;min-height:42px}
 .app-page .home-shell .premium-command-surface .home-url-row .downloader-resolve-button{
  flex:1 1 54%;min-height:42px}
}

/* The added route is a first-class grid row, never an implicit side column. */
.app-page main.transfer-shell{
 grid-template-columns:minmax(0,1fr);
 grid-template-areas:"resolver" "stages" "route" "workspace" "status"
}
.app-page main.transfer-shell>.studio-transfer-route{grid-area:route}
/* Keep old "premium" browser visual contract as an action-first layout,
   not a gradient or spotlight-only change. */
