/* Pelican: a presentation-only layer over the live product. No billing or model behavior. */
html[data-pelican-ui] {
  --pc-header-height:65px; --pc-canvas:#f8fafc; --pc-surface:#ffffff; --pc-soft:#f1f0fb; --pc-input:#fafbfe;
  --pc-ink:#202238; --pc-muted:#60677f; --pc-line:#e1e5f0; --pc-brand:#6654df;
  --pc-brand-hover:#5745d1; --pc-brand-soft:#eeebfd; --pc-on-brand:#ffffff;
  --pc-shadow:0 8px 30px rgba(33,30,79,.045); --pc-focus:#7160e3;
  --ui-ink:var(--pc-ink); --ui-muted:var(--pc-muted); --ui-panel:var(--pc-surface); --ui-line:var(--pc-line);
  --ui-soft:var(--pc-soft); --ui-primary:var(--pc-brand); --ui-primary-ink:var(--pc-on-brand);
  --studio-canvas:var(--pc-canvas); --studio-surface:var(--pc-surface); --studio-ink:var(--pc-ink);
  --studio-muted:var(--pc-muted); --studio-line:var(--pc-line); --studio-accent:var(--pc-brand);
  --text:var(--pc-ink); --text-muted:var(--pc-muted); --text-secondary:var(--pc-muted);
  --primary:var(--pc-brand); --primary-color:var(--pc-brand); --accent:var(--pc-brand); --accent-strong:var(--pc-brand-hover);
  --bg:var(--pc-canvas); --bg-main:var(--pc-canvas); --panel:var(--pc-surface); --border:var(--pc-line);
  color-scheme:light; scroll-padding-top:88px;
}
html[data-pelican-ui][data-toolbox-theme="dark"]:not([data-subsite-color-scheme="light"]),
html[data-pelican-ui][data-subsite-color-scheme="dark"] {
  --pc-canvas:#111421; --pc-surface:#1b2032; --pc-soft:#262a41; --pc-input:#171c2d;
  --pc-ink:#f1f2fb; --pc-muted:#b4bbd2; --pc-line:#3b425c; --pc-brand:#b5aaff;
  --pc-brand-hover:#c8c0ff; --pc-brand-soft:#353052; --pc-on-brand:#211a46;
  --pc-shadow:0 8px 30px rgba(0,0,0,.12); --pc-focus:#c0b5ff; color-scheme:dark;
}
@media (prefers-color-scheme:dark) {
  html[data-pelican-ui][data-toolbox-theme="auto"]:not([data-subsite-color-scheme="light"]) {
    --pc-canvas:#111421; --pc-surface:#1b2032; --pc-soft:#262a41; --pc-input:#171c2d;
    --pc-ink:#f1f2fb; --pc-muted:#b4bbd2; --pc-line:#3b425c; --pc-brand:#b5aaff;
    --pc-brand-hover:#c8c0ff; --pc-brand-soft:#353052; --pc-on-brand:#211a46;
    --pc-shadow:0 8px 30px rgba(0,0,0,.12); --pc-focus:#c0b5ff; color-scheme:dark;
  }
}
html[data-pelican-ui] body[data-page] {
  background:var(--pc-canvas)!important; color:var(--pc-ink)!important;
  font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif!important;
  font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
html[data-pelican-ui] body [hidden] {display:none!important;}
html[data-pelican-ui] body :is(button,input,select,textarea) {font-family:inherit;}
html[data-pelican-ui] body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline:3px solid var(--pc-focus)!important; outline-offset:3px;
}
html[data-pelican-ui] body :is(h1,h2,h3) {color:var(--pc-ink);text-wrap:balance;}
html[data-pelican-ui] body :is(.eyebrow,.workspace-eyebrow) {color:var(--pc-brand)!important;letter-spacing:.08em;font-size:11px;line-height:1.5;}
/* Keep the established fixed-header positions and menu controllers. Change only their surface. */
html[data-pelican-ui] body :is(.home-topbar,.topbar,.workspace-topbar,.fzadmin-topbar) {
  background:var(--pc-surface)!important; border-bottom:1px solid var(--pc-line)!important;
  box-shadow:0 3px 16px rgba(28,28,65,.025)!important;
}
html[data-pelican-ui] body .ui-brand :is(.brand-mark,.workspace-brand-mark) {
  flex-basis:34px!important; width:34px!important; height:34px!important; border-radius:10px!important;
}
html[data-pelican-ui] body .ui-brand :is(.toolbox-brand-logo,img) {
  width:34px!important;height:34px!important;border-radius:10px!important;
}
html[data-pelican-ui] body .ui-brand .ui-brand-copy strong {
  font-size:15px!important;line-height:1.3!important;color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;
}
html[data-pelican-ui] body .ui-brand .ui-brand-copy small {font-size:10px!important;line-height:1.4!important;color:var(--pc-muted)!important;}
html[data-pelican-ui] body :is(.topnav,.home-nav,.workspace-topnav) {background:var(--pc-soft)!important;border-color:var(--pc-line)!important;box-shadow:none!important;}
html[data-pelican-ui] body :is(.topnav,.home-nav,.workspace-topnav) a {color:var(--pc-muted)!important;font-size:13px!important;font-weight:600!important;}
html[data-pelican-ui] body :is(.topnav,.home-nav,.workspace-topnav) a:is(.active,[aria-current="page"]) {
  color:var(--pc-brand)!important; background:var(--pc-surface)!important;box-shadow:0 2px 5px rgba(40,32,90,.06)!important;
}
html[data-pelican-ui] body :is(.haomj-purchase-link,.global-recharge-button,.workspace-recharge-button) {
  color:var(--pc-on-brand)!important;background:var(--pc-brand)!important;border-color:var(--pc-brand)!important;box-shadow:none!important;
}
html[data-pelican-ui] body :is(.haomj-account-link,.nt-icon-button,.workspace-icon-button,.global-theme-toggle,.mvp-main-menu-button) {
  color:var(--pc-ink)!important;background:var(--pc-surface)!important;border-color:var(--pc-line)!important;box-shadow:none!important;
}
/* Panels are calm; form density and all submit/upload/history hooks remain intact. */
html[data-pelican-ui] body :is(.panel,.workspace-card,.workspace-panel,.workspace-stat,.workspace-stat-card,.fzadmin-card) {
  background:var(--pc-surface)!important;border:1px solid var(--pc-line)!important;border-radius:18px!important;box-shadow:var(--pc-shadow)!important;
}
html[data-pelican-ui] body :is(.section-head h1,.workspace-view-head h1) {font-size:26px!important;line-height:1.35!important;letter-spacing:-.035em;}
html[data-pelican-ui] body :is(.section-head h2,.workspace-card h2) {line-height:1.5!important;}
html[data-pelican-ui] body :is(.field>span,.field>label,.field>legend,.mode-tab-copy strong,.production-direction-grid strong) {color:var(--pc-ink)!important;line-height:1.55!important;}
html[data-pelican-ui] body :is(.field small,.field-hint,.mode-tab-copy small,.production-direction-grid small,.workspace-view-head p,.empty-state,.panel>.hint) {color:var(--pc-muted)!important;line-height:1.7!important;}
html[data-pelican-ui] body :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),textarea,select) {
  color:var(--pc-ink)!important;background:var(--pc-input)!important;border-color:var(--pc-line)!important;border-radius:10px!important;
}
html[data-pelican-ui] body :is(input,textarea)::placeholder {color:var(--pc-muted)!important;opacity:1;}
html[data-pelican-ui] body :is(input[type="radio"],input[type="checkbox"]) {accent-color:var(--pc-brand);}
html[data-pelican-ui] body :is(.button.primary,.mini-button.primary,.workspace-primary-button) {
  color:var(--pc-on-brand)!important;background:var(--pc-brand)!important;border:1px solid var(--pc-brand)!important;
  box-shadow:none!important;border-radius:10px!important;text-shadow:none!important;
}
html[data-pelican-ui] body :is(.button.secondary,.mini-button,.button.ghost) {background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-line);border-radius:10px;}
html[data-pelican-ui] body :is(.button,.mini-button,button)[disabled] {opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important;}
html[data-pelican-ui] body :is(#copyWriteButton,#videoCopyWriteButton,.ai-write-button,.copy-write-button) {
  background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;border:1px solid var(--pc-brand)!important;box-shadow:none!important;
}
html[data-pelican-ui] body .mode-tab {background:var(--pc-surface)!important;border:1px solid var(--pc-line)!important;border-radius:12px!important;box-shadow:none!important;min-width:0;}
html[data-pelican-ui] body .mode-tab.active,html[data-pelican-ui] body .mode-tab:has(input:checked) {
  border-color:var(--pc-brand)!important;background:var(--pc-brand-soft)!important;box-shadow:inset 0 0 0 1px var(--pc-brand)!important;
}
html[data-pelican-ui] body .mode-tab .mode-tab-copy {min-width:0;white-space:normal;}
html[data-pelican-ui] body .mode-description {background:var(--pc-brand-soft)!important;border-color:var(--pc-line)!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body :is(.upload-zone,.upload-box,.upload-area,.image-upload-zone) {background:var(--pc-input)!important;border-color:var(--pc-line)!important;border-radius:12px!important;}
html[data-pelican-ui] body :is(.upload-zone,.upload-box,.upload-area,.image-upload-zone):hover {border-color:var(--pc-brand)!important;background:var(--pc-brand-soft)!important;}
html[data-pelican-ui] body :is(.production-direction-grid label,.video-reference-type-grid label) {background:var(--pc-input)!important;border-color:var(--pc-line)!important;box-shadow:none!important;border-radius:10px!important;}
html[data-pelican-ui] body .production-direction-grid label:has(input:checked) {background:var(--pc-brand-soft)!important;border-color:var(--pc-brand)!important;}
html[data-pelican-ui] body :is(.aurora-task-track,.history-filter-panel,.history-date-filter) {background:var(--pc-soft)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body .aurora-task-track li {color:var(--pc-muted)!important;}
html[data-pelican-ui] body .aurora-task-track li.is-current {color:var(--pc-brand)!important;}
html[data-pelican-ui] body .aurora-task-track li.is-current i {color:var(--pc-on-brand)!important;background:var(--pc-brand)!important;}
html[data-pelican-ui] body :is(.history-grid,.history-list) {min-width:0;}
html[data-pelican-ui] body :is(.history-card,.history-item) {border-color:var(--pc-line)!important;background:var(--pc-surface)!important;}
html[data-pelican-ui] body .history-card :is(h3,strong) {overflow-wrap:anywhere;}
html[data-pelican-ui] body :is(.workspace-quick-link,.workspace-action-card) {background:var(--pc-surface)!important;border-color:var(--pc-line)!important;box-shadow:none!important;}
html[data-pelican-ui] body :is(.workspace-quick-link,.workspace-action-card):hover {border-color:var(--pc-brand)!important;background:var(--pc-brand-soft)!important;}
html[data-pelican-ui] body :is(.workspace-sidebar,.workspace-tool-subnav,.workspace-user-menu,.haomj-member-dropdown) {background:var(--pc-surface)!important;border-color:var(--pc-line)!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body .workspace-nav a {color:var(--pc-ink)!important;}
html[data-pelican-ui] body .workspace-nav a:is(.active,[aria-current="page"]) {color:var(--pc-brand)!important;background:var(--pc-brand-soft)!important;}
/* The homepage is a separate presentation, never an embedded generation form. */
html[data-pelican-ui] body[data-page="home"] #studioHome,html[data-pelican-ui] body[data-page="home"] .legacy-home-content {display:none!important;}
html[data-pelican-ui] body[data-page="home"] main.pelican-home {width:min(100%,1280px);max-width:1280px!important;margin:0 auto!important;padding:calc(var(--pc-header-height) + 38px) 32px 64px!important;color:var(--pc-ink);}
.pelican-home *, .pelican-home *::before, .pelican-home *::after {box-sizing:border-box;}
.pelican-home a {text-decoration:none;}
.pelican-hero {display:grid;grid-template-columns:1.02fr 1fr;align-items:center;gap:56px;min-height:460px;padding:12px 0 60px;}
.pelican-eyebrow {margin:0 0 20px;color:var(--pc-brand);font-size:11px;font-weight:700;line-height:1.7;letter-spacing:.12em;}
.pelican-hero .pelican-eyebrow {display:flex;align-items:center;gap:9px;letter-spacing:.06em;font-size:12px;}
.pelican-eyebrow>span {width:7px;height:7px;border-radius:50%;background:var(--pc-brand);box-shadow:0 0 0 5px var(--pc-brand-soft);}
html[data-pelican-ui] .pelican-hero h1 {margin:0 0 24px;font-size:clamp(42px,4.35vw,64px)!important;font-weight:750;line-height:1.22!important;letter-spacing:-.055em;}
.pelican-hero h1>span {color:var(--pc-brand);}
.pelican-lead {font-size:16px;line-height:1.95;margin:0 0 30px;color:var(--pc-muted);}
.pelican-hero-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.pelican-cta {min-height:48px;padding:12px 21px;display:inline-flex;justify-content:center;align-items:center;gap:22px;font-size:14px;font-weight:600;line-height:1.6;color:var(--pc-on-brand)!important;background:var(--pc-brand);border:1px solid var(--pc-brand);border-radius:12px;transition:background .18s,box-shadow .18s;}
.pelican-cta:hover {background:var(--pc-brand-hover);box-shadow:0 6px 18px rgba(88,67,190,.17);}
.pelican-cta-secondary {background:var(--pc-surface);color:var(--pc-ink)!important;border-color:var(--pc-line);gap:10px;}
.pelican-cta-secondary:hover {background:var(--pc-brand-soft);box-shadow:none;}
.pelican-cta svg {width:16px;height:16px;}
.pelican-account-note {margin:19px 0 0;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--pc-muted);line-height:1.7;}
.pelican-account-note svg {width:14px;height:14px;color:var(--pc-brand);flex-shrink:0;}
/* Code-native product sculpture. All labels explicitly mark this as illustrative. */
.pelican-art {height:414px;position:relative;isolation:isolate;overflow:hidden;border:1px solid #e6e1f6;border-radius:32px;background:radial-gradient(ellipse at 68% 28%,#fff9ff 0,transparent 56%),linear-gradient(145deg,#f0ebff,#e6e5ff 63%,#e8eefc);}
.pelican-art-grid {position:absolute;inset:0;background-image:linear-gradient(#9486bb12 1px,transparent 1px),linear-gradient(90deg,#9486bb12 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(transparent,#0008);}
.pelican-orbit {position:absolute;border:1px solid #8d7bb63b;border-radius:50%;pointer-events:none;}
.pelican-orbit-one {width:425px;height:230px;left:50%;top:80px;transform:translateX(-50%) rotate(-32deg);}
.pelican-orbit-two {width:350px;height:350px;left:50%;top:20px;transform:translateX(-50%) rotate(24deg);border-style:dashed;opacity:.4;}
.pelican-art-stage {position:absolute;inset:0;transform:translate3d(var(--pc-tilt-x,0),var(--pc-tilt-y,0),0);transition:transform .22s ease-out;}
.pelican-stage-shadow {position:absolute;width:285px;height:43px;left:50%;bottom:39px;transform:translateX(-50%);background:#6b55aa26;filter:blur(15px);border-radius:50%;}
.pelican-stage-base {position:absolute;left:50%;bottom:70px;width:260px;height:88px;border-radius:50%;transform:translateX(-50%);background:linear-gradient(135deg,#fff,#ddd8f5);box-shadow:0 18px 0 #c9bfe8,0 19px 0 #b1a3d2,0 35px 30px #7e6eab24;}
.pelican-product {position:absolute;width:120px;height:217px;left:50%;bottom:145px;border-radius:35px 35px 27px 27px;transform:translateX(-50%) rotate(-11deg);background:linear-gradient(90deg,#7353a8,#b59ade 24%,#d2bfe9 38%,#b79bd9 62%,#7958ad);box-shadow:inset 5px 0 7px #ffffff38,inset -5px 0 9px #65498d40,21px 20px 26px #5c408742;}
.pelican-product-cap {position:absolute;left:26px;top:-25px;width:68px;height:33px;border-radius:8px 8px 4px 4px;background:repeating-linear-gradient(90deg,#494071 0 2px,#63588b 2px 4px);box-shadow:0 -4px 0 #74699e,inset 0 5px 5px #ffffff20;}
.pelican-product-shine {position:absolute;inset:17px auto 12px 19px;width:9px;border-radius:50%;background:#ffffff30;filter:blur(5px);}
.pelican-product-label {position:absolute;left:8px;right:8px;top:66px;height:108px;padding:18px 4px 9px;text-align:center;background:linear-gradient(95deg,#f5f2fc,#fff,#ede6f8);color:#493961;}
.pelican-product-label>span {font:500 24px/1.2 Georgia,serif;letter-spacing:.13em;}
.pelican-product-label small {display:block;font:600 6px/2.4 ui-monospace,monospace;letter-spacing:.06em;}
.pelican-product-label b {display:block;margin-top:8px;font:500 19px/1 Georgia,serif;}
.pelican-float-tag {position:absolute;display:flex;align-items:center;gap:10px;padding:12px 15px;background:#ffffffed;border:1px solid #ffffff;border-radius:14px;box-shadow:0 9px 30px #68518714;color:#39334e;transform:rotate(-4deg);}
.pelican-float-tag>svg {width:28px;height:28px;padding:6px;box-sizing:content-box;border-radius:10px;background:#efe9fb;color:#7750b1;}
.pelican-float-tag>span {font-size:12px;font-weight:700;line-height:1.6;}
.pelican-float-tag small {display:block;font-size:10px;color:#716781;font-weight:400;}
.pelican-float-tag-one {top:74px;left:25px;}
.pelican-float-tag-two {right:20px;bottom:115px;transform:rotate(5deg);}
.pelican-art-index {position:absolute;left:23px;top:19px;font:500 9px/1.5 ui-monospace,monospace;letter-spacing:.13em;color:#685882;}
.pelican-art-caption {position:absolute;left:23px;bottom:18px;font-size:10px;color:#685882;}
.pelican-tools {padding:12px 0 52px;}
.pelican-section-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px;}
.pelican-section-heading .pelican-eyebrow {margin:0 0 8px;font-size:10px;}
html[data-pelican-ui] .pelican-home h2 {font-size:25px;line-height:1.45;letter-spacing:-.03em;margin:0;}
.pelican-section-heading>a {font-size:12px;font-weight:600;white-space:nowrap;color:var(--pc-muted);padding:7px 0;}
.pelican-section-heading>a:hover {color:var(--pc-brand);}
.pelican-tool-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.pelican-tool-card {position:relative;display:flex;flex-direction:column;padding:24px 24px 19px;min-width:0;border:1px solid var(--pc-line);border-radius:18px;background:var(--pc-surface);box-shadow:var(--pc-shadow);color:var(--pc-ink);transition:transform .2s,border-color .2s,box-shadow .2s;}
.pelican-tool-card:hover {transform:translateY(-3px);border-color:var(--pc-brand);box-shadow:0 12px 26px #4a3a8712;}
.pelican-tool-icon {display:grid;place-items:center;width:40px;height:40px;margin:0 0 17px;border-radius:12px;background:var(--pc-brand-soft);color:var(--pc-brand);}
.pelican-tool-icon>svg {width:20px;height:20px;}
.pelican-tool-icon-blue {background:#edf2ff;color:#4a63ad;}
.pelican-tool-number {position:absolute;right:24px;top:31px;font:500 9px/1.6 ui-monospace,monospace;letter-spacing:.08em;color:var(--pc-muted);}
html[data-pelican-ui] .pelican-tool-card h3 {font-size:18px;line-height:1.4;font-weight:650;letter-spacing:-.025em;margin:0 0 9px;}
.pelican-tool-card>p {font-size:13px;color:var(--pc-muted);line-height:1.8;margin:0 0 22px;max-width:29em;}
.pelican-tool-link {display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--pc-brand);margin-top:auto;padding-top:14px;border-top:1px solid var(--pc-line);}
.pelican-tool-link>b {font-size:15px;font-weight:500;}
.pelican-flow {display:grid;grid-template-columns:1fr 1.35fr;gap:70px;align-items:center;padding:38px 40px;border-radius:24px;background:var(--pc-soft);border:1px solid var(--pc-line);}
.pelican-flow-heading>.pelican-eyebrow {margin-bottom:10px;font-size:9px;}
.pelican-flow-heading>p:last-child {font-size:12px;line-height:1.8;color:var(--pc-muted);margin:15px 0 0;max-width:26em;}
.pelican-flow ol {list-style:none;display:grid;gap:24px;margin:0;padding:0;}
.pelican-flow li {display:flex;align-items:flex-start;gap:17px;}
.pelican-flow li>span {display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border:1px solid var(--pc-line);background:var(--pc-surface);border-radius:10px;color:var(--pc-brand);font:600 11px/1 ui-monospace,monospace;}
html[data-pelican-ui] .pelican-flow h3 {font-size:14px;line-height:1.6;margin:0 0 3px;}
.pelican-flow li p {margin:0;font-size:12px;line-height:1.8;color:var(--pc-muted);}
html[data-pelican-ui] body[data-page="home"] .home-footer {background:var(--pc-canvas)!important;color:var(--pc-muted)!important;border-top:1px solid var(--pc-line)!important;}
/* Narrow screens: the original accessible drawer behavior is retained, never a wrapped nav. */
@media(max-width:1050px) {
 .pelican-hero {gap:28px;grid-template-columns:1fr 1fr;}
 .pelican-art {height:370px;}
 .pelican-float-tag-one {left:12px;top:65px;}
 .pelican-float-tag-two {right:10px;bottom:79px;}
 .pelican-float-tag {padding:9px;}
 .pelican-tool-card {padding:20px;}
 .pelican-tool-number {right:20px;}
 .pelican-flow {gap:35px;}
}
@media(max-width:767px) {
 html[data-pelican-ui] body[data-page="home"] main.pelican-home {padding:28px 20px 40px!important;}
 .pelican-hero {grid-template-columns:1fr;gap:28px;padding:8px 0 40px;}
 html[data-pelican-ui] .pelican-hero h1 {font-size:46px!important;line-height:1.23!important;margin-bottom:18px;}
 .pelican-lead {font-size:14px;line-height:1.9;margin-bottom:22px;}
 .pelican-hero .pelican-eyebrow {margin-bottom:17px;font-size:11px;}
 .pelican-account-note {font-size:11px;}
 .pelican-art {height:345px;max-width:490px;width:100%;margin:0 auto;border-radius:24px;}
 .pelican-product {bottom:116px;height:193px;width:109px;}
 .pelican-product-cap {left:22px;}
 .pelican-product-label {top:53px;height:103px;}
 .pelican-stage-base {bottom:54px;width:240px;height:80px;}
 .pelican-float-tag-one {top:66px;left:12px;}
 .pelican-float-tag-two {bottom:74px;right:12px;}
 .pelican-orbit-one {width:330px;}
 .pelican-tools {padding:4px 0 32px;}
 .pelican-section-heading {display:block;margin-bottom:19px;}
 html[data-pelican-ui] .pelican-home h2 {font-size:23px;}
 .pelican-section-heading>a {display:inline-block;margin-top:11px;}
 .pelican-tool-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .pelican-tool-card {padding:18px;}
 .pelican-tool-number {display:none;}
 .pelican-tool-card>p {font-size:12px;}
 .pelican-tool-link {font-size:10px;}
 .pelican-flow {grid-template-columns:1fr;gap:28px;padding:28px 24px;border-radius:18px;}
 .pelican-flow-heading>h2 br {display:none;}
 html[data-pelican-ui] body .section-head h1 {font-size:22px!important;}
 html[data-pelican-ui] body .panel {border-radius:14px!important;}
}
@media(max-width:460px) {
 .pelican-tool-grid {grid-template-columns:1fr;}
 .pelican-tool-card {padding:20px;}
 .pelican-tool-number {display:block;top:28px;}
 .pelican-tool-card>p {font-size:13px;max-width:100%;margin-bottom:16px;}
 .pelican-tool-link {font-size:11px;}
 .pelican-cta {padding:12px 16px;gap:12px;font-size:13px;}
 .pelican-float-tag>svg {width:23px;height:23px;padding:5px;}
 .pelican-float-tag-one {top:63px;left:9px;}
 .pelican-float-tag-two {right:8px;}
}
@media(max-width:350px) {
 html[data-pelican-ui] body[data-page="home"] main.pelican-home {padding-inline:16px!important;}
 html[data-pelican-ui] .pelican-hero h1 {font-size:39px!important;}
 .pelican-hero-actions {gap:10px;}
 .pelican-cta {padding:11px 13px;font-size:12px;}
 .pelican-art {height:322px;}
 .pelican-float-tag {gap:5px;}
 .pelican-float-tag small {font-size:9px;}
}
@media(prefers-reduced-motion:reduce) {
 html[data-pelican-ui] {scroll-behavior:auto!important;}
 html[data-pelican-ui] body *,html[data-pelican-ui] body *::before,html[data-pelican-ui] body *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
 .pelican-art-stage {transform:none!important;}
 .pelican-tool-card:hover {transform:none;}
}

/* Bridge legacy token namespaces on their actual consumer scope, not only :root. */
html[data-pelican-ui] body[data-page] {
 --ui-ink:var(--pc-ink)!important;--ui-muted:var(--pc-muted)!important;--ui-panel:var(--pc-surface)!important;--ui-line:var(--pc-line)!important;--ui-soft:var(--pc-soft)!important;--ui-primary:var(--pc-brand)!important;--ui-primary-ink:var(--pc-on-brand)!important;
 --hmj-bg:var(--pc-canvas)!important;--hmj-bg-deep:var(--pc-canvas)!important;--hmj-card:var(--pc-surface)!important;--hmj-card-raised:var(--pc-surface)!important;--hmj-input:var(--pc-input)!important;--hmj-line:var(--pc-line)!important;--hmj-line-soft:var(--pc-line)!important;--hmj-text:var(--pc-ink)!important;--hmj-text-secondary:var(--pc-muted)!important;--hmj-muted:var(--pc-muted)!important;--hmj-primary:var(--pc-brand)!important;--hmj-primary-soft:var(--pc-brand-soft)!important;--hmj-on-primary:var(--pc-on-brand)!important;--hmj-secondary:var(--pc-brand-hover)!important;--hmj-shadow:var(--pc-shadow)!important;
 --ws-bg:var(--pc-canvas)!important;--ws-surface:var(--pc-surface)!important;--ws-sidebar:var(--pc-surface)!important;--ws-sidebar-soft:var(--pc-soft)!important;--ws-topbar:var(--pc-surface)!important;--ws-text:var(--pc-ink)!important;--ws-muted:var(--pc-muted)!important;--ws-line:var(--pc-line)!important;--ws-primary:var(--pc-brand)!important;--ws-primary-strong:var(--pc-brand-hover)!important;--ws-focus:var(--pc-focus)!important;--ws-shadow:var(--pc-shadow)!important;
 --aurora-primary:var(--pc-brand)!important;--aurora-primary-2:var(--pc-brand-hover)!important;--aurora-soft:var(--pc-brand-soft)!important;--aurora-soft-2:var(--pc-soft)!important;--aurora-border:var(--pc-line)!important;--aurora-text:var(--pc-ink)!important;--aurora-muted:var(--pc-muted)!important;--aurora-canvas:var(--pc-canvas)!important;--aurora-panel:var(--pc-surface)!important;--aurora-shadow:var(--pc-shadow)!important;
 --fz-bg:var(--pc-canvas)!important;--fz-surface:var(--pc-surface)!important;--fz-soft:var(--pc-soft)!important;--fz-line:var(--pc-line)!important;--fz-text:var(--pc-ink)!important;--fz-muted:var(--pc-muted)!important;--fz-primary:var(--pc-brand)!important;--fz-primary-hover:var(--pc-brand-hover)!important;--fz-shadow:var(--pc-shadow)!important;
}
html[data-pelican-ui] body[data-page] :is(.workspace-top-recharge,.workspace-button.primary) {color:var(--pc-on-brand)!important;-webkit-text-fill-color:var(--pc-on-brand)!important;background:var(--pc-brand)!important;border-color:var(--pc-brand)!important;box-shadow:none!important;}
html[data-pelican-ui] body[data-page] :is(.section-head,.workspace-section-head,.workspace-view-head) :is(h1,h2,h3) {color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page] :is(.eyebrow,.workspace-eyebrow,.workspace-section-head>p,.workspace-hero>p) {color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] .upload-media-icon {color:var(--pc-brand)!important;border-color:var(--pc-line)!important;background:var(--pc-brand-soft)!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card {background:var(--pc-input)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card:focus-within {outline:3px solid var(--pc-focus);outline-offset:3px;}
html[data-pelican-ui] body[data-page] .mode-tab:focus-within {outline:3px solid var(--pc-focus);outline-offset:3px;}
html[data-pelican-ui] body[data-page="video"] .video-segmented {background:var(--pc-soft)!important;border:1px solid var(--pc-line)!important;gap:6px;padding:5px;border-radius:10px;}
html[data-pelican-ui] body[data-page="video"] .video-segmented label>span {min-height:36px;color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;}
html[data-pelican-ui] body[data-page="video"] .video-segmented label:has(input:checked)>span {background:var(--pc-surface)!important;color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;border-color:var(--pc-line)!important;box-shadow:0 2px 5px rgba(40,32,90,.05)!important;}
html[data-pelican-ui] body[data-page="video"] .video-segmented label:focus-within>span {outline:3px solid var(--pc-focus);outline-offset:2px;}
html[data-pelican-ui] body[data-page="video"] .video-segmented label>span strong {color:inherit!important;-webkit-text-fill-color:inherit!important;}
html[data-pelican-ui] body[data-page="video"] .video-fixed-quality {background:var(--pc-soft)!important;border-color:var(--pc-line)!important;box-shadow:none!important;}
html[data-pelican-ui] body[data-page="video"] .video-fixed-quality .video-segmented {border:0!important;padding:0!important;}
html[data-pelican-ui] body[data-page="video"] .video-duration-price {color:var(--pc-muted)!important;background:var(--pc-soft)!important;border-color:var(--pc-line)!important;line-height:1.7;}
html[data-pelican-ui] body[data-page="video"] .video-spec-strip>span {color:var(--pc-ink)!important;background:var(--pc-soft)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page="video"] .video-spec-strip :is(strong,small) {color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;line-height:1.6;}
html[data-pelican-ui] body[data-page="video"] .video-spec-strip small {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}
/* A translated-out drawer must not leave a dark shadow over the document. */
html[data-pelican-ui] body[data-page] .aurora-drawer:not(.is-open) {visibility:hidden;pointer-events:none;}
html[data-pelican-ui] body[data-page] .aurora-drawer.is-open {visibility:visible;background:var(--pc-surface);color:var(--pc-ink);border-color:var(--pc-line);}
html[data-pelican-ui] body[data-page] :is(.history-status-tabs,.history-filter-panel) {color:var(--pc-ink);}
@media(max-width:767px) {
 html[data-pelican-ui] body[data-page="home"] main.pelican-home {padding-top:calc(var(--pc-header-height) + 26px)!important;}
 html[data-pelican-ui] body[data-page="video"] .video-spec-strip {grid-template-columns:1fr!important;}
 html[data-pelican-ui] body[data-page="video"] .video-spec-strip>span {min-height:62px;}
}

/* R3: verified small-text, nested-workbench, and responsive corrections. */
html[data-pelican-ui] body[data-page] {
 --mvp-surface:var(--pc-surface)!important;--mvp-soft:var(--pc-soft)!important;--mvp-text:var(--pc-ink)!important;--mvp-muted:var(--pc-muted)!important;--mvp-line:var(--pc-line)!important;--mvp-selected:var(--pc-brand-soft)!important;--mvp-accent:var(--pc-brand)!important;
}
html[data-pelican-ui] body[data-page] .fzadmin-button.primary,
html[data-pelican-ui] body[data-page] #workspaceRecentActivityFilters button.is-active {
 background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;-webkit-text-fill-color:var(--pc-on-brand)!important;border-color:var(--pc-brand)!important;
}
html[data-pelican-ui] body[data-page] :is(.history-date-filter>div>span,.history-date-filter>label>span,.subsite-benefit-grid small,.competitor-journey-map b,.workspace-customer-support-head>div>span,.workspace-customer-demo-side section>span,.workspace-customer-demo-side section>p,.roi-table-header,.roi-summary-grid small,.image-canvas-panel header small,.image-canvas-upload small,.image-canvas-ai-card label small,#imageCanvasAiStatus,.image-canvas-statusbar,#imageCanvasLayers>p,.media-dedupe-pipeline li,.media-dedupe-log time,#mediaDedupeHistoryList>.workspace-empty-state) {
 color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;font-size:max(11px, .78rem);line-height:1.65;
}
html[data-pelican-ui] body[data-page] :is(.roi-sku-head p,.workspace-customer-support-head>div>p,.competitor-local-steps article>span) {color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;background:var(--pc-brand-soft)!important;}
html[data-pelican-ui] body[data-page] :is(.roi-summary-grid article,.image-canvas-panel,.image-canvas-toolbar,.image-canvas-statusbar,.image-canvas-ai-card,.image-canvas-upload,.subsite-benefit-grid article) {background:var(--pc-surface)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] .roi-summary-grid strong {color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page] .image-canvas-mode button {background:var(--pc-soft)!important;color:var(--pc-muted)!important;}
html[data-pelican-ui] body[data-page] .image-canvas-mode button.is-active {background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;}
html[data-pelican-ui] body[data-page] #videoRemakeHistoryStatusTabs .is-generating {color:#98601a!important;}
html[data-pelican-ui] body[data-page] #videoRemakeHistoryStatusTabs .is-generating span {color:inherit!important;-webkit-text-fill-color:inherit!important;}
html[data-pelican-ui] body[data-page] .workspace-view.media-dedupe-view {margin:0!important;padding:16px 0 24px!important;min-width:0;max-width:100%;background:var(--pc-canvas)!important;}
html[data-pelican-ui] body[data-page] .media-dedupe-pipeline li {background:var(--pc-soft)!important;border-color:var(--pc-line)!important;min-height:58px;}
html[data-pelican-ui] body[data-page] .media-dedupe-pipeline li i {background:var(--pc-surface)!important;color:var(--pc-muted)!important;font-size:10px;}
html[data-pelican-ui] body[data-page] .media-dedupe-pipeline li span {font-size:11px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;}
html[data-pelican-ui] body[data-page] .media-dedupe-pipeline li:is(.is-active,.is-done) {background:var(--pc-brand-soft)!important;color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] .media-dedupe-pipeline li:is(.is-active,.is-done) i {background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;}
html[data-pelican-ui] body[data-page] :is(.video-segmented) {background:var(--pc-soft)!important;border:1px solid var(--pc-line)!important;gap:6px;padding:5px;border-radius:10px;}
html[data-pelican-ui] body[data-page] .video-segmented label>span {min-height:36px;color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;}
html[data-pelican-ui] body[data-page] .video-segmented label:has(input:checked)>span {background:var(--pc-surface)!important;color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;border-color:var(--pc-line)!important;box-shadow:0 2px 5px rgba(40,32,90,.05)!important;}
html[data-pelican-ui] body[data-page] .video-segmented label>span strong {color:inherit!important;-webkit-text-fill-color:inherit!important;}
html[data-pelican-ui] body[data-page] .video-segmented label:focus-within>span {outline:3px solid var(--pc-focus);outline-offset:2px;}
html[data-pelican-ui] body[data-page] #productionDirectionRequirement {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}
html[data-pelican-ui] body[data-page] #workspaceCheckInTitle {color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page] .workspace-check-in-copy {background:var(--pc-surface);padding:14px;border-radius:12px;}
@media(max-width:767px) {
 html[data-pelican-ui] body[data-page] .media-dedupe-pipeline {grid-template-columns:repeat(3,minmax(0,1fr));}
}
/* R5 — one currency confirmation and result-derived progress, shared by both studios. */
html[data-pelican-ui] body[data-page] .generation-confirm {
  box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;
  padding:26px;border:1px solid var(--pc-line);border-radius:22px;background:var(--pc-surface);
  color:var(--pc-ink);box-shadow:0 24px 100px #10162f40;overflow:auto;overscroll-behavior:contain;
}
html[data-pelican-ui] .generation-confirm::backdrop {background:#10152888;backdrop-filter:blur(5px);}
html[data-pelican-ui] .generation-confirm form {display:block!important;margin:0;padding:0;}
html[data-pelican-ui] .generation-confirm-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;}
html[data-pelican-ui] .generation-confirm-icon {display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--pc-line);border-radius:14px;color:var(--pc-brand);background:var(--pc-brand-soft);font-size:27px;}
html[data-pelican-ui] body[data-page] .generation-dialog-close {display:grid;place-items:center;min-width:38px;min-height:38px;padding:0;background:var(--pc-soft);border:1px solid var(--pc-line);border-radius:50%;font-size:24px;line-height:1;color:var(--pc-ink);cursor:pointer;}
html[data-pelican-ui] .generation-confirm .generation-kicker {margin:0 0 4px;color:var(--pc-brand);font-size:11px;letter-spacing:.1em;font-weight:700;}
html[data-pelican-ui] .generation-confirm h2 {margin:0 0 8px;font-size:23px;line-height:1.4;}
html[data-pelican-ui] .generation-confirm #generationConfirmDetail {color:var(--pc-muted);font-size:13px;line-height:1.75;margin:0 0 20px;}
html[data-pelican-ui] .generation-confirm dl {display:grid;gap:16px;background:var(--pc-soft);border:1px solid var(--pc-line);border-radius:14px;padding:18px;margin:0;}
html[data-pelican-ui] .generation-confirm dl div {display:flex;justify-content:space-between;align-items:baseline;gap:12px;}
html[data-pelican-ui] .generation-confirm dt {font-size:12px;color:var(--pc-muted);}
html[data-pelican-ui] .generation-confirm dd {margin:0;text-align:right;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;}
html[data-pelican-ui] .generation-confirm dd.generation-confirm-amount {font-size:28px;letter-spacing:-.03em;color:var(--pc-brand);}
html[data-pelican-ui] .generation-confirm-amount small {font-size:12px;letter-spacing:normal;}
html[data-pelican-ui] .generation-confirm .generation-confirm-note {font-size:12px;color:var(--pc-muted);line-height:1.7;margin:16px 0 20px;}
html[data-pelican-ui] .generation-dialog-actions {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.55fr);gap:10px;}
html[data-pelican-ui] body[data-page] .generation-dialog-actions button {border:1px solid var(--pc-line);border-radius:11px;min-height:46px;padding:10px 12px;font-size:13px;font-weight:650;white-space:normal;cursor:pointer;}
html[data-pelican-ui] body[data-page] .generation-dialog-actions .generation-accept {background:var(--pc-brand);color:var(--pc-on-brand);-webkit-text-fill-color:var(--pc-on-brand);border-color:var(--pc-brand);}
html[data-pelican-ui] body[data-page] .generation-dialog-actions .generation-cancel {background:var(--pc-surface);color:var(--pc-ink);}
html[data-pelican-ui] .generation-accept:hover {filter:brightness(.96);}
html[data-pelican-ui] body[data-page] .generation-progress {padding:13px 14px;margin:14px 0 12px;border:1px solid var(--pc-line);border-radius:12px;background:var(--pc-soft);}
html[data-pelican-ui] .generation-progress-top {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--pc-muted);}
html[data-pelican-ui] .generation-progress-top strong {font-size:14px;font-variant-numeric:tabular-nums;color:var(--pc-ink);}
html[data-pelican-ui] .generation-progress progress {appearance:none;width:100%;height:6px;display:block;margin:10px 0;background:var(--pc-line);border:0;border-radius:20px;overflow:hidden;color:var(--pc-brand);}
html[data-pelican-ui] .generation-progress progress::-webkit-progress-bar {background:var(--pc-line);border-radius:20px;}
html[data-pelican-ui] .generation-progress progress::-webkit-progress-value {background:var(--pc-brand);border-radius:20px;transition:width .2s ease;}
html[data-pelican-ui] .generation-progress progress::-moz-progress-bar {background:var(--pc-brand);border-radius:20px;}
html[data-pelican-ui] .generation-progress p,html[data-pelican-ui] .generation-batch-note {font-size:12px;color:var(--pc-muted);line-height:1.65;margin:8px 0 0;}
html[data-pelican-ui] body[data-page] .history-images.generation-image-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px;min-width:0;}
html[data-pelican-ui] body[data-page] .generation-image-grid>* {width:100%!important;min-width:0!important;margin:0;}
html[data-pelican-ui] body[data-page] .generation-image-grid .history-image {aspect-ratio:3/4;max-height:none;}
html[data-pelican-ui] .generation-image-grid img {max-width:100%;object-fit:contain!important;background:var(--pc-soft);}
html[data-pelican-ui] body[data-page] .generation-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;aspect-ratio:3/4;margin:0;padding:12px 8px;min-width:0;border:1px dashed var(--pc-line);border-radius:12px;background:var(--pc-input);color:var(--pc-muted);font-size:11px;text-align:center;}
html[data-pelican-ui] .generation-placeholder strong {font-size:13px;color:var(--pc-ink);}
html[data-pelican-ui] .generation-placeholder-icon {display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--pc-soft);color:var(--pc-brand);font-size:23px;}
html[data-pelican-ui] .generation-placeholder.is-unavailable {background:var(--pc-soft);border-style:solid;}
html[data-pelican-ui] body[data-page] .generation-video-grid {display:grid;grid-template-columns:minmax(0,1fr);}
html[data-pelican-ui] .generation-video-grid .generation-placeholder {aspect-ratio:16/9;}
html[data-pelican-ui] body[data-page] .generation-batch-summary {padding:16px;border:1px solid var(--pc-line);background:var(--pc-surface);border-radius:16px;margin:0 0 14px;}
html[data-pelican-ui] .generation-batch-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;}
html[data-pelican-ui] .generation-batch-heading>span {font-size:12px;color:var(--pc-muted);}
@media(max-width:600px) {
 html[data-pelican-ui] body[data-page] .history-images.generation-image-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 html[data-pelican-ui] body[data-page] .generation-confirm {padding:20px;border-radius:18px;}
 html[data-pelican-ui] .generation-confirm h2 {font-size:21px;}
}
@media(prefers-reduced-motion:reduce) {html[data-pelican-ui] .generation-progress progress::-webkit-progress-value {transition:none;}}
/* Close legacy light-surface leaks, keeping the same palette in standalone and embedded workbenches. */
html[data-pelican-ui] body[data-page] :is(#workspaceCheckInDays article,.competitor-workflow li,.competitor-local-primary,.competitor-local-steps article,.competitor-journey,.competitor-journey-map li,.competitor-feature-grid article,.competitor-help-strip,.competitor-help-strip summary,.commerce-output-panel,.commerce-empty,.automation-product-card,.automation-empty,.workspace-customer-support-head,.workspace-customer-demo-head,.workspace-customer-demo-side section,.image-canvas-panel header,.media-dropzone,.media-compressor-preview,.media-canvas-stage,.media-dedupe-guard,.media-dedupe-summary,.media-dedupe-compare,.media-dedupe-report-empty,.media-dedupe-log-head,.media-dedupe-disclaimer,.workspace-empty-state,.workspace-placeholder,.roi-sku-head,.roi-summary-panel,.roi-table-header,.workspace-product-price-grid,.image-retention-notice,.video-retention-notice,.video-spec-strip>span,.field-assist-row .field-guidance,#productionDirectionHint,#skuRuleHint,#titleRuleHint) {background:var(--pc-surface)!important;color:var(--pc-ink)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] :is(#workspaceCheckInDays article strong,.workspace-check-in-stats strong,.workspace-check-in-stats b,.competitor-local-primary strong,.competitor-workflow strong,.competitor-local-steps strong,.competitor-journey h2,.competitor-feature-grid strong,.commerce-empty strong,.automation-product-card label>span,.workspace-customer-support-head h1,#workspaceCustomerAgentName,.workspace-customer-demo-side strong,.media-dropzone strong,.media-dedupe-guard b,.media-dedupe-summary strong,.workspace-placeholder strong,.subsite-benefit-grid strong,.roi-summary-head h2) {color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page] :is(#workspaceCheckInDescription,.workspace-check-in-stats small,.competitor-local-primary small,.competitor-workflow small,.competitor-local-steps small,.competitor-journey-head p,.competitor-journey-head span,.competitor-journey-map b,.competitor-help-strip small,.competitor-help-strip p span,.commerce-empty span,.automation-empty,.automation-product-card th,#workspaceCustomerAgentStatus,.workspace-customer-demo-side section>span,.workspace-customer-demo-side p,.workspace-customer-message time,.image-canvas-ai-card small,.image-canvas-toolbar label span,.workbench-upload-copy em,.field-heading label,.image-retention-notice,.video-retention-notice,.video-spec-strip small,.field-guidance,.media-dropzone span,.media-compressor-preview,.media-canvas-stage>span,#compressImageResult,#retouchStatus,#mediaDedupeDropzone>span,#mediaDedupeQueue>p,.media-dedupe-log-head span,.media-dedupe-report-empty span,.media-dedupe-disclaimer,#mediaDedupeHistoryList>p,.roi-table-header>span,#roiSubmitStatus,.roi-summary-head>span,.workspace-price-note,.workspace-section-head>small,.workspace-empty-state,.workspace-placeholder span,#historyList.history-list) {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}
html[data-pelican-ui] body[data-page] :is(#userWorkbenchTabs,#compressorTabs,#retouchSubjectOptions,#retouchBrushMode) button {background:var(--pc-soft)!important;color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] :is(#userWorkbenchTabs,#compressorTabs,#retouchSubjectOptions,#retouchBrushMode) button.is-active {background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;-webkit-text-fill-color:var(--pc-on-brand)!important;border-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] #videoRemakeHistoryStatusTabs button {background:var(--pc-soft)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] #videoRemakeHistoryStatusTabs button span {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}
html[data-pelican-ui] body[data-page] #videoRemakeHistoryStatusTabs button.is-active {background:var(--pc-brand-soft)!important;}
html[data-pelican-ui] body[data-page] #videoRemakeHistoryStatusTabs button.is-active span {color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] #communityStatus {background:var(--pc-soft)!important;color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}

/* R7: remaining embedded-workbench contrast corrections, scoped to actual surfaces. */
html[data-pelican-ui] body[data-page] :is(.competitor-local-primary>p,.competitor-help-strip strong,.image-canvas-panel header strong,.workspace-product-price-grid>span,.video-spec-strip strong) {color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page] :is(.competitor-install-details>summary,.workspace-product-price-grid strong) {color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] .workspace-status.ready {background:var(--pc-brand-soft)!important;color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] :is(#competitor-tutorial>summary,.workspace-customer-chat-panel>header,#workspaceCustomerChatForm,.workspace-customer-message,.media-dedupe-compare>span,.video-workbench-grid .field-heading,.video-workbench-grid .field-heading>label) {background:var(--pc-surface)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] :is(.image-canvas-ai-card label small,#roiSubmitStatus) {background:var(--pc-soft)!important;border-color:var(--pc-line)!important;}
html[data-pelican-ui] body[data-page] #mediaDedupeProgressText {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}

/* R9: generated results must fit both standalone and embedded workbenches. */
html[data-pelican-ui] body[data-page] #competitor-tutorial>summary>span {color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] #workspaceToolSubnav .workspace-tool-subnav-link {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}
html[data-pelican-ui] body[data-page] #workspaceToolSubnav .workspace-tool-subnav-link.is-active {background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;-webkit-text-fill-color:var(--pc-on-brand)!important;}
html[data-pelican-ui] body[data-page] #historyList.history-list {grid-template-columns:minmax(0,1fr)!important;min-width:0;}
html[data-pelican-ui] body[data-page] #historyList .history-card {min-width:0!important;max-width:100%;overflow-wrap:anywhere;}
html[data-pelican-ui] body[data-page] .generation-video-grid .generation-placeholder {aspect-ratio:16/9;}
@media(max-width:760px) {
 html[data-pelican-ui] body[data-page] #historyList.history-list {max-height:none!important;height:auto!important;overflow:visible!important;}
}

/* R10 reference direction: centered home, lilac workflow cards, real business controls retained. */
html[data-pelican-ui] { --pc-title-ink:#292952; --pc-violet:#8a5eea; --pc-hero-glow:rgba(109,86,232,.055); }
html[data-pelican-ui][data-toolbox-theme="dark"]:not([data-subsite-color-scheme="light"]),html[data-pelican-ui][data-subsite-color-scheme="dark"] { --pc-title-ink:#edeaff; --pc-violet:#d6aaff; --pc-hero-glow:rgba(153,128,255,.08); }
@media(prefers-color-scheme:dark) { html[data-pelican-ui][data-toolbox-theme="auto"]:not([data-subsite-color-scheme="light"]) { --pc-title-ink:#edeaff; --pc-violet:#d6aaff; --pc-hero-glow:rgba(153,128,255,.08); } }
html[data-pelican-ui] body[data-page] { line-height:1.65; }
html[data-pelican-ui] body .ui-brand .ui-brand-copy strong { color:var(--pc-brand)!important; -webkit-text-fill-color:var(--pc-brand)!important; font-size:16px!important; font-weight:750!important; }
html[data-pelican-ui] body[data-page] :is(.topnav,.home-nav,.workspace-topnav,.workspace-global-nav) { background:transparent!important; border-color:transparent!important; box-shadow:none!important; border-radius:0!important; gap:6px!important; }
html[data-pelican-ui] body[data-page] :is(.topnav,.home-nav,.workspace-topnav,.workspace-global-nav) a { position:relative; background:transparent!important; box-shadow:none!important; border-radius:8px!important; font-weight:500!important; }
html[data-pelican-ui] body[data-page] :is(.topnav,.home-nav,.workspace-topnav,.workspace-global-nav) a:is(.active,[aria-current="page"]) { color:var(--pc-brand)!important; background:transparent!important; box-shadow:none!important; }
html[data-pelican-ui] body[data-page] :is(.topnav,.home-nav,.workspace-topnav,.workspace-global-nav) a:is(.active,[aria-current="page"])::after { content:""; position:absolute; width:24px; height:2px; bottom:3px; left:50%; transform:translateX(-50%); border-radius:3px; background:var(--pc-brand); }
html[data-pelican-ui] body .haomj-purchase-link { background:var(--pc-surface)!important; color:var(--pc-brand)!important; border:1px solid var(--pc-brand)!important; border-radius:11px!important; }
html[data-pelican-ui] body .haomj-account-link { background:var(--pc-brand)!important; color:var(--pc-on-brand)!important; border:1px solid var(--pc-brand)!important; border-radius:11px!important; }
/* Home faithfully follows the supplied local composition without invented metrics. */
html[data-pelican-ui] body[data-page="home"] main.pc-reference-home { display:block!important; width:min(1240px,calc(100% - 64px))!important; max-width:1240px!important; margin:0 auto!important; padding:var(--pc-header-height) 0 72px!important; overflow:visible!important; }
.pc-home-hero { position:relative; padding:62px 24px 42px; text-align:center; isolation:isolate; }
.pc-home-hero::before { content:""; position:absolute; z-index:-1; pointer-events:none; inset:8% -5% -16%; background:radial-gradient(ellipse at center,var(--pc-hero-glow),transparent 66%); }
.pc-home-badge { display:inline-flex; align-items:center; justify-content:center; gap:8px; max-width:100%; color:var(--pc-brand); background:var(--pc-brand-soft); border:1px solid var(--pc-line); border-radius:999px; padding:9px 17px; font-size:13px; font-weight:650; line-height:1.6; }
.pc-home-badge svg { width:17px; height:17px; flex:0 0 17px; }
html[data-pelican-ui] body .pc-home-hero h1 { margin:28px 0 22px!important; color:var(--pc-title-ink)!important; font-size:clamp(36px,4.6vw,60px)!important; font-weight:800!important; line-height:1.26!important; letter-spacing:-.035em!important; text-wrap:balance; }
.pc-home-hero h1 em { display:block; font-style:normal; color:var(--pc-brand); background:linear-gradient(115deg,var(--pc-brand),var(--pc-violet) 65%,#be52b5); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.pc-home-description { margin:0 auto!important; max-width:720px; color:var(--pc-muted)!important; font-size:18px!important; line-height:1.9!important; }
.pc-home-actions { margin:34px auto 0; display:flex; justify-content:center; flex-wrap:wrap; gap:16px; }
.pc-home-button { display:inline-flex!important; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:12px 26px; border:1.5px solid var(--pc-brand); border-radius:12px; font-size:16px; font-weight:650; text-decoration:none; transition:background .18s ease,box-shadow .18s ease,transform .18s ease; }
.pc-home-button svg { width:20px;height:20px;flex:0 0 20px; }
.pc-home-button-primary { color:var(--pc-on-brand)!important; background:var(--pc-brand); box-shadow:0 6px 16px rgba(99,79,219,.18); }
.pc-home-button-secondary { color:var(--pc-brand)!important; background:var(--pc-surface); }
.pc-home-button:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(99,79,219,.17); }
.pc-home-workflow { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin:0 auto 70px; padding:28px 32px; max-width:1040px; border:1px solid var(--pc-line); background:var(--pc-surface); border-radius:24px; box-shadow:0 18px 40px var(--pc-hero-glow); }
.pc-home-workflow li { display:flex; align-items:center; flex-direction:column; text-align:center; gap:3px; min-width:0; padding:4px 8px; }
.pc-workflow-number { color:var(--pc-brand); font-size:30px; line-height:1.2; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-.025em; }
.pc-home-workflow strong { color:var(--pc-ink); font-size:14px; margin-top:5px; font-weight:650; }
.pc-home-workflow small { color:var(--pc-muted); font-size:12px; }
.pc-home-section-heading { margin:0 auto 36px; text-align:center; }
.pc-section-tag { display:inline-flex; background:var(--pc-brand-soft); color:var(--pc-brand); border-radius:999px; font-size:12px; font-weight:650; padding:5px 12px; }
html[data-pelican-ui] body .pc-home-section-heading h2 { margin:20px 0 12px; font-size:clamp(25px,2.9vw,36px); font-weight:750; line-height:1.4; letter-spacing:-.025em; }
.pc-home-section-heading p { color:var(--pc-muted); font-size:16px; line-height:1.8; margin:0; }
.pc-home-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.pc-home-feature { min-width:0; display:flex; flex-direction:column; align-items:flex-start; background:var(--pc-surface); border:1px solid var(--pc-line); border-radius:18px; padding:28px; text-decoration:none; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.pc-home-feature:hover { transform:translateY(-3px); border-color:var(--pc-brand); box-shadow:0 12px 28px var(--pc-hero-glow); }
.pc-feature-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:14px; background:var(--pc-brand-soft); color:var(--pc-brand); margin-bottom:19px; }
.pc-feature-icon svg { width:26px; height:26px; }
.pc-feature-icon-lilac { background:var(--pc-soft); }
.pc-feature-icon-rose { background:color-mix(in srgb,var(--pc-violet) 10%,var(--pc-surface)); color:var(--pc-brand); }
html[data-pelican-ui] body .pc-home-feature h3 { font-size:19px; line-height:1.5; font-weight:700; margin:0 0 9px; }
.pc-home-feature>p { color:var(--pc-muted); font-size:14px; line-height:1.8; margin:0 0 23px; }
.pc-feature-link { display:flex; align-items:center; gap:7px; color:var(--pc-brand); margin-top:auto; font-size:13px; font-weight:650; }
.pc-feature-link svg { width:16px; height:16px; }
.pc-home-footer-card { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-top:56px; padding:32px 36px; border-radius:24px; border:1px solid var(--pc-line); background:linear-gradient(115deg,var(--pc-surface),var(--pc-brand-soft)); }
html[data-pelican-ui] body .pc-home-footer-card h2 { margin:16px 0 7px; font-size:25px; line-height:1.45; letter-spacing:-.02em; }
.pc-home-footer-card p { color:var(--pc-muted);font-size:14px;margin:0; }
.pc-home-footer-card>.pc-home-button { flex-shrink:0; }
/* Studio pages keep their original IDs and inputs; the new frame is shared by embedded views. */
html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid) { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:28px!important; padding-top:36px!important; }
html[data-pelican-ui] body[data-page] :is(.image-workbench-panel,.video-form-panel) { background:transparent!important; border:0!important; border-radius:0!important; padding:0!important; box-shadow:none!important; }
html[data-pelican-ui] body[data-page] :is(.image-workbench-panel,.video-form-panel)>.section-head { display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; gap:12px!important; text-align:center!important; padding:2px 0 0!important; margin:0 0 26px!important; border:0!important; background:transparent!important; }
html[data-pelican-ui] body[data-page] :is(.image-workbench-panel,.video-form-panel)>.section-head .eyebrow { display:none!important; }
html[data-pelican-ui] body[data-page] .section-head h1.pc-studio-title { display:flex; align-items:center; justify-content:center; gap:12px; color:var(--pc-brand)!important; -webkit-text-fill-color:var(--pc-brand)!important; font-size:36px!important; font-weight:780!important; line-height:1.35!important; letter-spacing:-.035em!important; margin:0!important; }
.pc-studio-title>svg { width:35px;height:35px;flex:0 0 35px;stroke-width:2; }
.pc-studio-subtitle { color:var(--pc-muted)!important; font-size:16px!important; line-height:1.75!important; margin:12px 0 0!important; }
.pc-creation-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding:0!important; list-style:none; margin:28px 0 30px!important; }
.pc-creation-steps li { display:flex; flex-direction:column; align-items:center; text-align:center; background:var(--pc-surface); border:1.5px solid var(--pc-line); border-radius:17px; padding:24px 16px; min-width:0; }
.pc-creation-steps li.is-current { border-color:var(--pc-brand); box-shadow:0 8px 26px var(--pc-hero-glow); }
.pc-step-number { display:flex; align-items:center; justify-content:center; width:43px; height:43px; border-radius:50%; background:var(--pc-brand); color:var(--pc-on-brand); font-size:20px; font-weight:750; margin-bottom:12px; }
html[data-pelican-ui] body .pc-creation-steps h3 { margin:0 0 5px; color:var(--pc-ink); font-size:17px; line-height:1.5; font-weight:700; }
.pc-creation-steps p { margin:0;color:var(--pc-muted);font-size:13px;line-height:1.65; }
html[data-pelican-ui] body[data-page] :is(#openClawForm,#videoForm) { border:1px solid var(--pc-line); border-radius:20px; background:var(--pc-surface); padding:26px; gap:20px!important; box-shadow:0 4px 18px rgba(34,25,78,.025); }
html[data-pelican-ui] body[data-page] .workbench-upload-pair { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:20px!important; align-items:stretch!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-pair:has(>.clone-only[hidden])>label:not([hidden]),html[data-pelican-ui] body[data-page] .workbench-upload-pair>.face-assets-card { grid-column:1/-1!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-card:not([hidden]) { display:flex!important; flex-direction:column!important; align-items:stretch!important; justify-content:flex-start!important; min-height:256px!important; padding:22px!important; background:var(--pc-surface)!important; border:1.5px dashed var(--pc-line)!important; border-radius:17px!important; gap:10px!important; box-shadow:none!important; transition:border-color .18s ease,background .18s ease; }
html[data-pelican-ui] body[data-page] .workbench-upload-card:hover { border-color:var(--pc-brand)!important; background:var(--pc-input)!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-card:focus-within { border-color:var(--pc-brand)!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-copy { display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important; gap:10px!important; text-align:center; padding:7px 0!important; width:100%; }
html[data-pelican-ui] body[data-page] .workbench-upload-copy .upload-media-icon { display:flex!important; align-items:center; justify-content:center; width:64px!important; height:64px!important; color:var(--pc-brand)!important; background:var(--pc-brand-soft)!important; border-radius:18px!important; margin:0 0 4px!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-copy .upload-media-icon svg { width:32px!important; height:32px!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-copy strong { font-size:18px!important; line-height:1.6!important; color:var(--pc-ink)!important; }
html[data-pelican-ui] body[data-page] .workbench-upload-copy em { font-size:13px!important; color:var(--pc-muted)!important; line-height:1.6!important; font-style:normal; }
.pc-upload-cta { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px 20px; min-height:40px; font-size:14px; font-weight:650; line-height:1.5; background:var(--pc-brand); color:var(--pc-on-brand); border-radius:10px; margin-top:4px; pointer-events:none; }
html[data-pelican-ui] body[data-page] .workbench-upload-card>small { text-align:center; font-size:12px!important; line-height:1.7!important; color:var(--pc-muted)!important; margin:0!important; }
html[data-pelican-ui] body[data-page] :is(.workspace-stat,.workspace-stat-card,.workspace-card,.workspace-panel,.fzadmin-card,.panel) { border-radius:17px!important; }
html[data-pelican-ui] body[data-page] :is(.workspace-section-head,.workspace-view-head) h1 { color:var(--pc-brand)!important; -webkit-text-fill-color:var(--pc-brand)!important; letter-spacing:-.025em; }
html[data-pelican-ui] body[data-page] .workspace-tool-subnav { border-radius:13px!important; }
@media(min-width:1000px) { html[data-pelican-ui] body[data-page] #productionDirectionField .production-direction-grid { grid-template-columns:repeat(4,minmax(0,1fr))!important; } }
@media(max-width:900px) {
  html[data-pelican-ui] body[data-page="home"] main.pc-reference-home { width:calc(100% - 40px)!important; }
  .pc-home-hero { padding:44px 8px 36px; }
  .pc-home-workflow { margin-bottom:48px;padding:24px 14px;gap:8px; }
  .pc-home-feature-grid { gap:16px;grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pc-home-feature { padding:24px; }
  .pc-home-footer-card { padding:28px; }
  .pc-creation-steps { gap:16px; }
}
@media(max-width:640px) {
  html[data-pelican-ui] body[data-page] #productionDirectionField .production-direction-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; }
  html[data-pelican-ui] body[data-page] #productionDirectionField .production-direction-grid label { min-width:0!important; padding:11px 9px!important; }
  html[data-pelican-ui] body[data-page] #productionDirectionField .production-direction-grid :is(strong,small) { white-space:normal!important; overflow-wrap:anywhere; line-height:1.65!important; }

  html[data-pelican-ui] body[data-page="home"] main.pc-reference-home { width:calc(100% - 32px)!important; padding:var(--pc-header-height) 0 36px!important; }
  .pc-home-hero { padding:34px 0 28px; }
  .pc-home-badge { font-size:11px;padding:7px 11px;gap:6px; }
  html[data-pelican-ui] body .pc-home-hero h1 { font-size:clamp(29px,8.7vw,43px)!important;margin:23px 0 17px!important;line-height:1.3!important; }
  .pc-home-description { font-size:14px!important; line-height:1.9!important; }
  .pc-home-description br { display:none; }
  .pc-home-actions { gap:10px;margin-top:25px; }
  .pc-home-button { font-size:13px;min-height:47px;padding:10px 14px;gap:7px;border-radius:10px; }
  .pc-home-button svg { width:17px;height:17px;flex-basis:17px; }
  .pc-home-workflow { grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 10px;padding:24px 13px;margin-bottom:44px;border-radius:20px; }
  .pc-workflow-number { font-size:27px; }
  .pc-home-workflow strong { font-size:13px; }
  .pc-home-workflow small { font-size:11px; }
  .pc-home-section-heading { margin-bottom:24px; }
  html[data-pelican-ui] body .pc-home-section-heading h2 { font-size:25px;margin:15px 0 10px; }
  .pc-home-section-heading p { font-size:13px; }
  .pc-home-feature-grid { grid-template-columns:minmax(0,1fr);gap:14px; }
  .pc-home-feature { padding:24px; }
  .pc-home-feature>p { margin-bottom:18px; }
  .pc-home-footer-card { flex-direction:column;align-items:flex-start;margin-top:30px;padding:25px;gap:22px; }
  html[data-pelican-ui] body .pc-home-footer-card h2 { font-size:22px; }
  html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid) { padding-top:22px!important;gap:20px!important; }
  html[data-pelican-ui] body[data-page] .section-head h1.pc-studio-title { font-size:28px!important;gap:9px; }
  .pc-studio-title>svg { width:27px;height:27px;flex-basis:27px; }
  .pc-studio-subtitle { font-size:13px!important;margin-top:9px!important; }
  .pc-creation-steps { gap:9px;margin:20px 0 22px!important; }
  .pc-creation-steps li { padding:15px 7px;border-radius:13px; }
  .pc-step-number { width:32px;height:32px;font-size:16px;margin-bottom:10px; }
  html[data-pelican-ui] body .pc-creation-steps h3 { font-size:13px; }
  .pc-creation-steps p { font-size:11px;line-height:1.6; }
  html[data-pelican-ui] body[data-page] :is(#openClawForm,#videoForm) { padding:16px;border-radius:17px;gap:16px!important; }
  html[data-pelican-ui] body[data-page] .workbench-upload-pair { grid-template-columns:minmax(0,1fr)!important;gap:16px!important; }
  html[data-pelican-ui] body[data-page] .workbench-upload-card { min-height:232px!important;padding:18px!important; }
}

/* Three-step guide reflects the original task stage; numerical progress remains in the result panel. */
html[data-pelican-ui] body[data-page] .pc-creation-steps + .aurora-task-track { display:none!important; }
.pc-creation-steps li.is-complete { border-color:var(--pc-brand); }
.pc-creation-steps li.is-current { border-color:var(--pc-brand);box-shadow:0 7px 22px var(--pc-hero-glow); }
.pc-creation-steps li.is-failed { border-color:var(--pc-danger,#b93b58); }
.pc-creation-steps li[aria-current="step"] h3 { color:var(--pc-brand)!important; }

/* Strongly scope upload CTA ink so legacy span colors cannot override it. */
html[data-pelican-ui] body[data-page] .workbench-upload-copy .pc-upload-cta { color:var(--pc-on-brand)!important; -webkit-text-fill-color:var(--pc-on-brand)!important; font-size:14px!important; }
@media(prefers-reduced-motion:reduce) { html[data-pelican-ui] body .pc-home-feature:hover { transform:none!important; } }
/* Result cards: readable filenames and explicit actions in both themes. */
html[data-pelican-ui] body[data-page] :is(.history-image,.history-video) {
 background:var(--pc-surface)!important;border-color:var(--pc-line)!important;color:var(--pc-ink)!important;
}
html[data-pelican-ui] body[data-page] .generation-image-grid .history-image {
 display:flex;flex-direction:column;aspect-ratio:auto;min-width:0;align-self:stretch;
}
html[data-pelican-ui] body[data-page] .generation-image-grid .history-image>img {
 width:100%!important;height:auto!important;aspect-ratio:3/4;object-fit:contain!important;flex:0 0 auto;background:var(--pc-canvas)!important;
}
html[data-pelican-ui] body[data-page] :is(.history-image,.history-video)>figcaption {
 box-sizing:border-box;max-width:100%;min-height:78px;padding:10px 10px 48px!important;
 color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;background:var(--pc-surface)!important;
 font-size:12px!important;line-height:1.5;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;text-overflow:clip!important;
}
html[data-pelican-ui] body[data-page] :is(.history-image,.history-video) .image-open {
 bottom:8px;left:8px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;
 padding:5px 10px;border:1px solid var(--pc-brand)!important;border-radius:8px;font-size:12px!important;line-height:1.4;
 background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;-webkit-text-fill-color:var(--pc-on-brand)!important;
}
html[data-pelican-ui] body[data-page] .history-video .video-download-link {left:auto;right:8px;}
html[data-pelican-ui] body[data-page] :is(.history-image,.history-video) :is(.image-check,.video-select-check,.history-video-play) {
 background:#30364a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#fff!important;
}
html[data-pelican-ui] body[data-page] :is(.image-check,.video-select-check,.history-video-play) :is(span,em) {color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-pelican-ui] body[data-page] .history-image .image-check {width:30px;height:30px;top:8px;right:8px;}
html[data-pelican-ui] body[data-page] :is(.history-image,.history-video).selected {border-color:var(--pc-brand)!important;box-shadow:0 0 0 2px var(--pc-focus)!important;}
html[data-pelican-ui] body[data-page] :is(.history-image,.history-video):focus-visible {outline:3px solid var(--pc-focus)!important;outline-offset:2px;}
html[data-pelican-ui] body[data-page] .history-video-poster.placeholder {background:#202238!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-pelican-ui] body[data-page] .history-video-poster.placeholder>span {color:#fff!important;-webkit-text-fill-color:#fff!important;}
/* Let completed video cards occupy their result track, like queued placeholders. */
html[data-pelican-ui] body[data-page] .generation-video-grid .history-video {width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box;}
html[data-pelican-ui] body[data-page] .history-video-poster {position:relative;width:100%!important;height:auto!important;min-height:0;aspect-ratio:16/9;background:var(--pc-canvas)!important;}
html[data-pelican-ui] body[data-page] .history-video-poster>img {display:block;width:100%!important;height:100%!important;object-fit:contain!important;}
/* Only the main navigation stays pinned; result titles must not cover filters or actions. */
html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid)>.panel>.section-head {position:static!important;top:auto!important;z-index:auto!important;}

/* R11: centered brand rail, compact creation controls, read-only recent results. */
html[data-pelican-ui] { --pc-content-width:1240px; --pc-success:#20784f; --pc-warning:#986415; }
/* Keep status text readable in every supported dark-theme entry point. */
html[data-pelican-ui][data-toolbox-theme="dark"]:not([data-subsite-color-scheme="light"]),
html[data-pelican-ui][data-subsite-color-scheme="dark"] { --pc-success:#64d6a1; --pc-warning:#f2c071; }
@media (prefers-color-scheme:dark) {
  html[data-pelican-ui][data-toolbox-theme="auto"]:not([data-subsite-color-scheme="light"]) { --pc-success:#64d6a1; --pc-warning:#f2c071; }
}
html[data-pelican-ui] body[data-page] :is(.home-topbar,.topbar,.workspace-topbar,.fzadmin-topbar) {
  padding-inline:max(24px,calc((100% - var(--pc-content-width))/2))!important;
  gap:16px!important;
}
html[data-pelican-ui] body[data-page] .ui-brand { gap:9px!important; }
html[data-pelican-ui] body[data-page] .ui-brand :is(.brand-mark,.workspace-brand-mark,.toolbox-brand-logo,img) {
  width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:9px!important;
}
html[data-pelican-ui] body[data-page] .ui-brand .ui-brand-copy strong { font-size:15px!important;line-height:1.35!important;letter-spacing:.01em; }
html[data-pelican-ui] body[data-page] .ui-brand .ui-brand-copy small { font-size:10px!important;line-height:1.5!important; }
html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid) { padding-top:24px!important;gap:24px!important; }
html[data-pelican-ui] body[data-page] :is(.image-workbench-panel,.video-form-panel)>.section-head { margin-bottom:20px!important;gap:8px!important; }
html[data-pelican-ui] body[data-page] .section-head h1.pc-studio-title { font-size:30px!important;gap:10px!important;line-height:1.3!important; }
html[data-pelican-ui] body[data-page] .pc-studio-title>svg { width:28px;height:28px;flex-basis:28px; }
html[data-pelican-ui] body[data-page] .pc-studio-subtitle { font-size:14px!important;line-height:1.6!important;margin-top:8px!important; }
html[data-pelican-ui] body[data-page] .pc-creation-steps { gap:0!important;margin:16px 0!important;padding:5px!important;border:1px solid var(--pc-line);background:var(--pc-surface);border-radius:14px; }
html[data-pelican-ui] body[data-page] .pc-creation-steps>li { display:grid!important;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-content:center;align-items:center;text-align:left!important;min-height:62px;padding:8px 18px!important;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none; }
html[data-pelican-ui] body[data-page] .pc-creation-steps>li.is-current { background:var(--pc-brand-soft);border-color:transparent;box-shadow:none; }
html[data-pelican-ui] body[data-page] .pc-step-number { grid-column:1;grid-row:1/3;width:30px;height:30px;margin:0!important;font-size:13px;background:var(--pc-soft);color:var(--pc-muted); }
html[data-pelican-ui] body[data-page] .is-current>.pc-step-number,html[data-pelican-ui] body[data-page] .is-complete>.pc-step-number {background:var(--pc-brand);color:var(--pc-on-brand);}
html[data-pelican-ui] body[data-page] .pc-creation-steps h3 {grid-column:2;grid-row:1;font-size:14px!important;line-height:1.5!important;margin:0!important;}
html[data-pelican-ui] body[data-page] .pc-creation-steps p {grid-column:2;grid-row:2;font-size:12px;line-height:1.5;}
html[data-pelican-ui] body[data-page] :is(#openClawForm,#videoForm) {padding:20px;border-radius:16px;gap:18px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-pair {gap:16px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card:not([hidden]) {min-height:144px!important;padding:16px!important;gap:10px!important;border-radius:12px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card>span:first-child {font-size:12px!important;line-height:1.5!important;font-weight:650;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy {display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-rows:auto auto;gap:2px 12px!important;align-items:center!important;text-align:left!important;padding:0!important;min-width:0;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy .upload-media-icon {grid-row:1/3;grid-column:1;width:42px!important;height:42px!important;border-radius:12px!important;margin:0!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy .upload-media-icon svg {width:23px!important;height:23px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy strong {grid-row:1;grid-column:2;font-size:15px!important;line-height:1.5!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy em {grid-row:2;grid-column:2;font-size:11px!important;line-height:1.5!important;overflow-wrap:anywhere;}
html[data-pelican-ui] body[data-page] .pc-upload-cta {grid-column:3;grid-row:1/3;min-height:36px;margin:0;padding:8px 13px;font-size:12px;border-radius:9px;white-space:nowrap;}
html[data-pelican-ui] body[data-page] .workbench-upload-card>small {text-align:left;font-size:12px!important;line-height:1.6!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card .inline-preview:not(.empty) {margin-top:0;}
/* These strips read the existing authenticated history; they never create a task. */
.pc-recent {border:1px solid var(--pc-line);border-radius:16px;padding:15px 16px 13px;background:var(--pc-surface);margin:0 0 16px;min-width:0;}
.pc-recent-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.pc-recent-heading {display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0;}
html[data-pelican-ui] body .pc-recent-heading h2 {font-size:14px!important;font-weight:700!important;line-height:1.5!important;margin:0!important;}
.pc-recent-meta {font-size:11px;color:var(--pc-muted);line-height:1.5;}
.pc-recent-actions {display:flex;align-items:center;gap:5px;flex-shrink:0;}
html[data-pelican-ui] body .pc-recent-actions button {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;border:1px solid var(--pc-line);border-radius:8px;padding:4px 9px;background:var(--pc-surface);color:var(--pc-muted);font:inherit;font-size:12px;cursor:pointer;}
html[data-pelican-ui] body .pc-recent-actions button:hover {border-color:var(--pc-brand);color:var(--pc-brand);background:var(--pc-brand-soft);}
.pc-recent-actions svg {width:14px;height:14px;}
.pc-recent-actions [hidden] {display:none!important;}
.pc-recent-scroll {display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 6px;scroll-padding:2px;scrollbar-width:thin;scrollbar-color:var(--pc-line) transparent;}
.pc-recent-item {flex:0 0 124px;min-width:0;scroll-snap-align:start;}
html[data-pelican-ui] body .pc-recent-preview {position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;width:100%;height:86px;overflow:hidden;border:1px solid var(--pc-line);border-radius:10px;background:var(--pc-input);padding:0;color:var(--pc-muted);cursor:pointer;isolation:isolate;}
.pc-recent-preview img {width:100%;height:100%;object-fit:cover;display:block;}
.pc-recent-preview>svg {width:24px;height:24px;color:var(--pc-brand);}
.pc-recent-preview>span:not(.pc-recent-count):not(.pc-recent-play) {font-size:11px;}
.pc-recent-count {position:absolute;bottom:5px;right:5px;padding:2px 6px;border-radius:5px;background:#25233be8;color:#fff;font-size:10px;line-height:1.6;font-variant-numeric:tabular-nums;}
.pc-recent-play {position:absolute;inset:0;display:grid;place-content:center;background:#20152c15;color:#fff;font-size:16px;text-shadow:0 1px 4px #000;}
.pc-recent-footer {display:flex;align-items:center;gap:6px;margin-top:7px;}
html[data-pelican-ui] body .pc-recent-name {display:block;margin:0;font-size:12px!important;line-height:1.55!important;font-weight:550!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pc-ink);}
.pc-recent-status {display:flex;align-items:center;gap:5px;color:var(--pc-muted);font-size:11px;line-height:1.5;}
.pc-recent-status::before {content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0;}
.pc-recent-item[data-phase='complete'] .pc-recent-status {color:var(--pc-success,#20784f);}
.pc-recent-item[data-phase='failed'] .pc-recent-status,.pc-recent-item[data-phase='partial'] .pc-recent-status {color:var(--pc-warning,#986415);}
html[data-pelican-ui] body .pc-recent-detail {margin-left:auto;flex-shrink:0;background:transparent;color:var(--pc-muted);border:0;border-radius:5px;display:grid;place-items:center;width:26px;height:26px;cursor:pointer;padding:5px;}
.pc-recent-detail svg {width:15px;height:15px;}
.pc-recent-preview:hover,.pc-recent-preview:focus-visible {border-color:var(--pc-brand)!important;}
html[data-pelican-ui] body .pc-recent-detail:hover {background:var(--pc-brand-soft);color:var(--pc-brand);}
.pc-recent-empty {display:flex;align-items:center;gap:12px;padding:10px 2px;min-height:56px;color:var(--pc-muted);font-size:12px;line-height:1.7;}
.pc-recent-empty>svg {flex-shrink:0;width:30px;height:30px;color:var(--pc-brand);opacity:.7;}
.pc-recent-empty strong {display:block;font-size:12px;font-weight:550;color:var(--pc-ink);}
.pc-recent-empty p {margin:0!important;font-size:12px!important;color:var(--pc-muted)!important;}
.pc-recent-announcer {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.pc-history-highlight {outline:2px solid var(--pc-brand)!important;outline-offset:4px;scroll-margin-block:88px;}
html[data-pelican-ui] body .pc-recent :is(button,a):focus-visible {outline:3px solid var(--pc-focus);outline-offset:3px;}
@media(max-width:1100px) { html[data-pelican-ui] body[data-page] :is(.home-topbar,.topbar,.workspace-topbar,.fzadmin-topbar) {padding-inline:24px!important;} }
@media(max-width:640px) {
 html[data-pelican-ui] body[data-page] :is(.home-topbar,.topbar,.workspace-topbar,.fzadmin-topbar) {padding-inline:16px!important;gap:8px!important;}
 html[data-pelican-ui] body[data-page] .section-head h1.pc-studio-title {font-size:25px!important;}
 html[data-pelican-ui] body[data-page] .pc-studio-subtitle {font-size:12px!important;margin-top:7px!important;}
 html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid) {padding-top:20px!important;}
 html[data-pelican-ui] body[data-page] .pc-creation-steps>li {padding:8px 5px!important;column-gap:6px;grid-template-columns:23px minmax(0,1fr);min-height:70px;}
 html[data-pelican-ui] body[data-page] .pc-step-number {width:23px;height:23px;font-size:11px;}
 html[data-pelican-ui] body[data-page] .pc-creation-steps h3 {font-size:12px!important;}
 html[data-pelican-ui] body[data-page] .pc-creation-steps p {font-size:10px;line-height:1.5;}
 html[data-pelican-ui] body[data-page] :is(#openClawForm,#videoForm) {padding:14px;gap:16px!important;border-radius:14px;}
 html[data-pelican-ui] body[data-page] .workbench-upload-card:not([hidden]) {padding:13px!important;min-height:138px!important;}
 html[data-pelican-ui] body[data-page] .workbench-upload-copy {grid-template-columns:34px minmax(0,1fr) auto!important;gap:2px 8px!important;}
 html[data-pelican-ui] body[data-page] .workbench-upload-copy .upload-media-icon {width:34px!important;height:36px!important;border-radius:9px!important;}
 html[data-pelican-ui] body[data-page] .workbench-upload-copy strong {font-size:13px!important;}
 html[data-pelican-ui] body[data-page] .workbench-upload-copy em {font-size:10px!important;}
 html[data-pelican-ui] body[data-page] .pc-upload-cta {font-size:11px;min-height:34px;padding:7px 9px;}
 .pc-recent {padding:12px;margin-bottom:14px;border-radius:14px;}
 .pc-recent-head {gap:8px;margin-bottom:9px;}
 .pc-recent-heading {gap:2px 8px;}
 .pc-recent-meta {font-size:10px;}
 .pc-recent-item {flex-basis:104px;}
 .pc-recent-preview {height:74px!important;}
 .pc-recent-scroll {gap:10px;}
 html[data-pelican-ui] body .pc-recent-actions button {font-size:11px;padding:4px 7px;}
 .pc-recent-actions [data-scroll] {display:none!important;}
}
@media(prefers-reduced-motion:reduce) { .pc-recent * {scroll-behavior:auto!important;transition:none!important;animation:none!important;} }

.pc-recent [hidden] {display:none!important;}
/* R11 record metadata and download actions: compact, explicit, no resubmission. */
.pc-recent-date {display:block;margin-top:2px;font-size:10px;line-height:1.6;color:var(--pc-muted);font-variant-numeric:tabular-nums;}
.pc-recent-footer {gap:4px;margin-top:4px;justify-content:space-between;}
.pc-recent-item-actions {display:flex;align-items:center;gap:2px;flex-shrink:0;}
html[data-pelican-ui] body .pc-recent :is(.pc-recent-download,.pc-recent-detail) {margin:0;flex-shrink:0;display:grid;place-items:center;width:25px;height:25px;min-height:25px;border:0;border-radius:6px;padding:5px;background:transparent;color:var(--pc-muted);cursor:pointer;text-decoration:none;}
.pc-recent-download svg {width:15px;height:15px;}
html[data-pelican-ui] body .pc-recent-download:hover {color:var(--pc-brand);background:var(--pc-brand-soft);}
html[data-pelican-ui] body .pc-recent-download:disabled {cursor:not-allowed;opacity:.48;background:transparent;}
.pc-recent-download-dialog {box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-height:82vh;overflow:auto;padding:22px;border:1px solid var(--pc-line);border-radius:18px;background:var(--pc-surface);color:var(--pc-ink);box-shadow:0 20px 70px #20123730;}
.pc-recent-download-dialog::backdrop {background:#14132e70;backdrop-filter:blur(3px);}
.pc-download-head {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;}
html[data-pelican-ui] body .pc-download-head h2 {font-size:18px;line-height:1.5;margin:0;overflow-wrap:anywhere;}
html[data-pelican-ui] body .pc-download-head p {font-size:12px;color:var(--pc-muted);margin:6px 0 18px;line-height:1.6;}
html[data-pelican-ui] body .pc-download-close {flex-shrink:0;width:32px;height:32px;min-height:32px;background:var(--pc-soft);border:0;border-radius:9px;color:var(--pc-ink);font-size:23px;cursor:pointer;}
.pc-download-files {display:grid;gap:10px;}
.pc-download-file {display:flex;gap:12px;align-items:center;border:1px solid var(--pc-line);padding:10px;border-radius:12px;min-width:0;}
.pc-download-file img {width:52px;height:48px;object-fit:cover;border-radius:7px;flex-shrink:0;}
.pc-download-file-name {flex:1;min-width:0;line-height:1.5;}
.pc-download-file-name strong {display:block;font-size:13px;}
.pc-download-file-name small {display:block;color:var(--pc-muted);font-size:11px;overflow-wrap:anywhere;}
html[data-pelican-ui] body .pc-download-file-link {display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 12px;background:var(--pc-brand);color:var(--pc-on-brand);border-radius:8px;font-size:12px;flex-shrink:0;text-decoration:none;}
html[data-pelican-ui] body .pc-download-note {font-size:12px;line-height:1.7;color:var(--pc-muted);margin:16px 0 0;}
.pc-recent-download-dialog :is(a,button):focus-visible {outline:3px solid var(--pc-focus);outline-offset:3px;}
@media(max-width:640px){.pc-recent-item{flex-basis:112px;}.pc-recent-download-dialog{padding:16px;}.pc-download-file{gap:8px;padding:8px;}.pc-download-file img{width:42px;height:44px;}}

/* Same brand rail for the admin shell; do not change its authentication or menu behavior. */
html[data-pelican-ui] body[data-page="admin"]>.app-shell {width:100%!important;max-width:none!important;margin-inline:0!important;padding-top:0!important;}
html[data-pelican-ui] body[data-page="admin"] .topbar {top:0!important;min-height:65px!important;height:65px!important;border-width:0 0 1px!important;border-radius:0!important;}
/* A visible download label, not an unexplained icon. Status stays on one line. */
.pc-recent-status {font-size:10px;gap:4px;white-space:nowrap;}
html[data-pelican-ui] body .pc-recent .pc-recent-download {display:inline-flex;gap:2px;align-items:center;justify-content:center;width:44px;height:28px;min-height:28px;padding:4px 3px;}
html[data-pelican-ui] body .pc-recent .pc-recent-detail {width:24px;height:28px;min-height:28px;padding:5px 4px;}
.pc-recent-download svg {width:13px;height:13px;flex-shrink:0;}
.pc-recent-download-label {font-size:10px;line-height:1.4;white-space:nowrap;}
@media(max-width:640px){.pc-recent-status::before{display:none;}.pc-recent-footer{gap:2px;}}

/* Protect file metadata from the legacy small-text color override. */
html[data-pelican-ui] body[data-page] .pc-recent-download-dialog .pc-download-file-name small {color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}

/* R12 batch selection and download states. Inherit the same light/dark tokens. */
.pc-recent-item {position:relative;}
html[data-pelican-ui] body .pc-recent-actions .pc-recent-batch {color:var(--pc-brand);border-color:var(--pc-line);background:var(--pc-brand-soft);}
html[data-pelican-ui] body .pc-recent-actions button:disabled {opacity:.45;cursor:not-allowed;}
.pc-selection-toolbar {display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin-bottom:12px;border:1px solid var(--pc-line);border-radius:10px;background:var(--pc-soft);font-size:12px;}
.pc-selection-count {margin-right:auto;color:var(--pc-muted);line-height:1.6;}
html[data-pelican-ui] body .pc-selection-toolbar button {font:inherit;line-height:1.4;min-height:32px;border:1px solid var(--pc-line);border-radius:7px;background:var(--pc-surface);color:var(--pc-ink);padding:6px 10px;cursor:pointer;}
html[data-pelican-ui] body .pc-selection-toolbar .pc-selection-download {background:var(--pc-brand);color:var(--pc-on-brand);border-color:var(--pc-brand);}
html[data-pelican-ui] body .pc-selection-toolbar button:disabled {opacity:.5;cursor:not-allowed;}
.pc-recent-select {position:absolute;z-index:2;top:5px;left:5px;display:flex;align-items:center;gap:3px;border-radius:6px;padding:3px 5px;background:var(--pc-surface);color:var(--pc-ink);box-shadow:0 1px 5px #15102425;cursor:pointer;font-size:10px;line-height:1.5;}
html[data-pelican-ui] body .pc-recent-select input {display:block;appearance:auto;-webkit-appearance:checkbox;accent-color:var(--pc-brand);width:15px;height:15px;min-height:15px;margin:0;padding:0;flex-shrink:0;}
.pc-recent-item:has(.pc-recent-checkbox:checked) .pc-recent-preview {outline:2px solid var(--pc-brand);outline-offset:1px;}
.pc-recent-select:has(input:disabled) {opacity:.65;cursor:not-allowed;}
.pc-recent-download-dialog [hidden] {display:none!important;}
.pc-batch-panel {border:1px solid var(--pc-line);border-radius:12px;padding:14px;margin-bottom:20px;background:var(--pc-soft);}
html[data-pelican-ui] body .pc-batch-heading {display:block;color:var(--pc-ink);font-size:14px;line-height:1.5;}
html[data-pelican-ui] body .pc-batch-hint,html[data-pelican-ui] body .pc-batch-status {margin:5px 0 0;font-size:12px;line-height:1.75;color:var(--pc-muted);overflow-wrap:anywhere;}
.pc-batch-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
html[data-pelican-ui] body .pc-batch-actions button {font:inherit;font-size:12px;line-height:1.5;min-height:36px;border:1px solid var(--pc-line);border-radius:8px;padding:7px 12px;background:var(--pc-surface);color:var(--pc-ink);cursor:pointer;}
html[data-pelican-ui] body .pc-batch-actions :is(.pc-batch-start,.pc-batch-save) {background:var(--pc-brand);color:var(--pc-on-brand);border-color:var(--pc-brand);}
html[data-pelican-ui] body .pc-batch-actions button:disabled {opacity:.5;cursor:not-allowed;}
.pc-batch-progress {display:block;width:100%;height:6px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--pc-brand);margin:14px 0 6px;background:var(--pc-line);}
.pc-batch-progress::-webkit-progress-bar {background:var(--pc-line);border-radius:8px;}
.pc-batch-progress::-webkit-progress-value {background:var(--pc-brand);border-radius:8px;}
html[data-pelican-ui] body .pc-batch-failures {padding:10px 10px 10px 25px;margin:10px 0 0;border:1px solid var(--pc-line);border-radius:8px;color:var(--pc-warning);background:var(--pc-surface);font-size:12px;line-height:1.8;max-height:150px;overflow:auto;overflow-wrap:anywhere;}
html[data-pelican-ui] body .pc-download-list-heading {margin:0 0 9px;color:var(--pc-ink);font-size:13px;line-height:1.5;}
@media(max-width:640px){.pc-recent-heading{gap:1px;}.pc-recent-meta{flex-basis:100%;font-size:10px;}.pc-recent-actions{gap:4px;}.pc-selection-toolbar{gap:7px;padding:8px;}.pc-selection-count{flex-basis:100%;}.pc-batch-panel{padding:12px;}.pc-batch-actions{gap:6px;}}


/* R13: consistent actions and an independent, compact download center. */
html[data-pelican-ui] body .pc-recent-actions .pc-records-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:4px 9px;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);color:var(--pc-muted);font:inherit;font-size:12px;text-decoration:none;white-space:nowrap;}
html[data-pelican-ui] body .pc-recent-actions .pc-records-link:hover{border-color:var(--pc-brand);color:var(--pc-brand);background:var(--pc-brand-soft);}
html[data-pelican-ui] body .pc-retention-inline{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin:10px 0 0;font-size:11px;line-height:1.7;color:var(--pc-muted);}
html[data-pelican-ui] body .pc-retention-inline a{color:var(--pc-brand);text-decoration:underline;text-underline-offset:3px;}
html[data-pelican-ui] body .actions:has(>#auroraImageSubmit),html[data-pelican-ui] body .actions:has(>#auroraVideoSubmit){display:flex!important;justify-content:flex-end;align-items:center;gap:12px;margin-top:4px;padding-top:18px;border-top:1px solid var(--pc-line);}
html[data-pelican-ui] body :is(#auroraImageSubmit,#auroraVideoSubmit){position:static!important;display:inline-flex!important;align-items:center;justify-content:center;min-height:46px!important;width:min(100%,300px)!important;max-width:100%!important;margin:0!important;padding:11px 22px!important;border-radius:11px!important;border:1px solid var(--pc-brand)!important;background:var(--pc-brand)!important;color:var(--pc-on-brand)!important;-webkit-text-fill-color:var(--pc-on-brand)!important;font-size:14px!important;line-height:1.5!important;letter-spacing:0!important;white-space:normal!important;text-align:center;box-shadow:0 3px 10px color-mix(in srgb,var(--pc-brand) 12%,transparent)!important;transform:none!important;}
html[data-pelican-ui] body :is(#auroraImageSubmit,#auroraVideoSubmit):hover:not(:disabled){background:var(--pc-brand-hover)!important;}
html[data-pelican-ui] body :is(#auroraImageSubmit,#auroraVideoSubmit):disabled{opacity:.6!important;cursor:not-allowed;}
html[data-pelican-ui] body .ai-write-button{position:static!important;min-height:34px!important;flex:none;align-self:center!important;padding:6px 12px!important;border-radius:8px!important;line-height:1.5!important;font-size:12px!important;white-space:nowrap;box-shadow:none!important;transform:none!important;}
html[data-pelican-ui] body[data-page="downloads"]{background:var(--pc-canvas);color:var(--pc-ink);}
html[data-pelican-ui] body[data-page="downloads"] .dc-main{width:min(1240px,calc(100% - 48px));margin:0 auto;padding:34px 0 64px;}
html[data-pelican-ui] body[data-page="downloads"] :is(h1,h2,h3,p){overflow-wrap:anywhere;}
html[data-pelican-ui] body[data-page="downloads"] .dc-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-eyebrow{display:block;color:var(--pc-brand);font-size:11px;font-weight:700;letter-spacing:.14em;margin:0 0 8px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-heading h1{margin:0;font-size:32px;line-height:1.3;letter-spacing:-.025em;color:var(--pc-ink);}
html[data-pelican-ui] body[data-page="downloads"] .dc-heading p{margin:10px 0 0;color:var(--pc-muted);font-size:14px;line-height:1.8;}
html[data-pelican-ui] body .dc-button{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid var(--pc-line);border-radius:9px;background:var(--pc-surface);color:var(--pc-ink);-webkit-text-fill-color:var(--pc-ink);font:inherit;font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;white-space:normal;cursor:pointer;box-shadow:none;}
html[data-pelican-ui] body .dc-button:hover:not(:disabled){border-color:var(--pc-brand);background:var(--pc-brand-soft);}
html[data-pelican-ui] body .dc-button.dc-primary{background:var(--pc-brand);color:var(--pc-on-brand);-webkit-text-fill-color:var(--pc-on-brand);border-color:var(--pc-brand);}
html[data-pelican-ui] body .dc-button.dc-primary:hover:not(:disabled){background:var(--pc-brand-hover);}
html[data-pelican-ui] body .dc-button:disabled{cursor:not-allowed;opacity:.5;}
html[data-pelican-ui] body .pc-retention{display:flex;align-items:flex-start;gap:12px;padding:17px 20px;border:1px solid var(--pc-line);border-radius:12px;background:var(--pc-soft);margin:0 0 24px;}
html[data-pelican-ui] body .pc-retention>svg{width:21px;height:21px;flex:none;color:var(--pc-brand);margin-top:2px;}
html[data-pelican-ui] body .pc-retention strong{color:var(--pc-ink);font-size:14px;line-height:1.6;}
html[data-pelican-ui] body .pc-retention p{color:var(--pc-muted);font-size:12px;line-height:1.75;margin:3px 0 0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-filters{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-tabs{display:flex;gap:3px;background:var(--pc-soft);border:1px solid var(--pc-line);padding:4px;border-radius:10px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-tabs button{background:transparent;color:var(--pc-muted);border:0;border-radius:7px;font:inherit;font-size:13px;padding:7px 16px;min-height:34px;cursor:pointer;white-space:nowrap;}
html[data-pelican-ui] body[data-page="downloads"] .dc-tabs button.active{background:var(--pc-surface);color:var(--pc-ink);box-shadow:0 1px 4px #0000000d;font-weight:650;}
html[data-pelican-ui] body[data-page="downloads"] .dc-search{flex:1;min-width:160px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-field{display:grid;gap:4px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-field>span{font-size:11px;line-height:1.4;color:var(--pc-muted);}
html[data-pelican-ui] body[data-page="downloads"] .dc-field :is(input,select){height:38px;min-height:38px;width:100%;min-width:0;border:1px solid var(--pc-line);border-radius:9px;background:var(--pc-surface);color:var(--pc-ink);font:inherit;font-size:13px;padding:8px 12px;box-shadow:none;}
html[data-pelican-ui] body[data-page="downloads"] .dc-field input::placeholder{color:var(--pc-muted);opacity:1;}
html[data-pelican-ui] body[data-page="downloads"] .dc-selection{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-block:1px solid var(--pc-line);padding:14px 0;margin-bottom:20px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-selection-copy{flex:1;min-width:200px;display:grid;gap:3px;}
html[data-pelican-ui] body[data-page="downloads"] #downloadSelectionCount{font-size:13px;font-weight:650;color:var(--pc-ink);}
html[data-pelican-ui] body[data-page="downloads"] #downloadSummary{font-size:11px;color:var(--pc-muted);}
html[data-pelican-ui] body[data-page="downloads"] .dc-sync{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
html[data-pelican-ui] body[data-page="downloads"] #downloadUpdated{font-size:11px;line-height:1.6;color:var(--pc-muted);}
html[data-pelican-ui] body[data-page="downloads"] .dc-state{padding:48px 24px;text-align:center;background:var(--pc-surface);border:1px dashed var(--pc-line);border-radius:14px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-state h2{margin:0;font-size:18px;color:var(--pc-ink);}
html[data-pelican-ui] body[data-page="downloads"] .dc-state p{margin:10px auto 18px;max-width:480px;color:var(--pc-muted);font-size:13px;line-height:1.8;}
html[data-pelican-ui] body[data-page="downloads"] .dc-state-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batches{display:grid;gap:18px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch{padding:20px 22px;border:1px solid var(--pc-line);border-radius:14px;background:var(--pc-surface);box-shadow:var(--pc-shadow);min-width:0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-head{display:flex;gap:12px;align-items:flex-start;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-selector{padding-top:3px;flex:none;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-selector input{display:block;appearance:auto;width:17px;height:17px;accent-color:var(--pc-brand);cursor:pointer;margin:0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-title{flex:1;min-width:0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-title h2{font-size:15px;line-height:1.6;font-weight:650;margin:0 0 5px;color:var(--pc-ink);}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-meta{display:flex;gap:6px 12px;align-items:center;flex-wrap:wrap;font-size:11px;line-height:1.6;color:var(--pc-muted);}
html[data-pelican-ui] body[data-page="downloads"] .dc-kind{background:var(--pc-soft);padding:1px 7px;border-radius:5px;color:var(--pc-brand);}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-actions{display:flex;align-items:center;gap:12px;flex:none;}
html[data-pelican-ui] body[data-page="downloads"] .dc-phase{font-size:11px;line-height:1.7;color:var(--pc-muted);}
html[data-pelican-ui] body[data-page="downloads"] [data-phase="complete"] .dc-phase{color:var(--pc-success);}
html[data-pelican-ui] body[data-page="downloads"] [data-phase="partial"] .dc-phase,html[data-pelican-ui] body[data-page="downloads"] [data-phase="failed"] .dc-phase{color:var(--pc-warning);}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-progress{display:flex;align-items:center;gap:12px;font-size:12px;line-height:1.6;color:var(--pc-muted);margin:14px 0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-batch-progress progress{flex:1;max-width:170px;min-width:40px;height:5px;border:0;accent-color:var(--pc-brand);border-radius:8px;overflow:hidden;background:var(--pc-line);}
html[data-pelican-ui] body[data-page="downloads"] progress::-webkit-progress-bar{background:var(--pc-line);}
html[data-pelican-ui] body[data-page="downloads"] progress::-webkit-progress-value{background:var(--pc-brand);}
html[data-pelican-ui] body[data-page="downloads"] .dc-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:start;}
html[data-pelican-ui] body[data-page="downloads"] .dc-tile{min-width:0;border:1px solid var(--pc-line);border-radius:10px;overflow:hidden;background:var(--pc-input);}
html[data-pelican-ui] body[data-page="downloads"] .dc-thumb{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;padding:0;border:0;border-radius:0;background:var(--pc-soft);color:var(--pc-muted);font:inherit;font-size:11px;cursor:pointer;}
html[data-pelican-ui] body[data-page="downloads"] .dc-thumb img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-play{position:relative;background:#181b2a99;color:white;font-size:14px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;padding-left:2px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-file-download{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;text-decoration:none;font-size:11px;line-height:1.5;color:var(--pc-ink);border-top:1px solid var(--pc-line);background:var(--pc-surface);}
html[data-pelican-ui] body[data-page="downloads"] .dc-file-download:hover{color:var(--pc-brand);background:var(--pc-brand-soft);}
html[data-pelican-ui] body[data-page="downloads"] .dc-file-download svg{width:13px;height:13px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-placeholder{display:flex;aspect-ratio:4/3;align-items:center;justify-content:center;flex-direction:column;gap:8px;border-style:dashed;color:var(--pc-muted);font-size:11px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-placeholder-icon{font-size:24px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-more-files{align-self:center;background:var(--pc-soft);border:1px dashed var(--pc-line);border-radius:10px;min-height:70px;padding:10px;color:var(--pc-brand);font:inherit;font-size:12px;cursor:pointer;}
html[data-pelican-ui] body[data-page="downloads"] .dc-expiry{margin:12px 0 0;color:var(--pc-muted);font-size:11px;line-height:1.75;}
html[data-pelican-ui] body[data-page="downloads"] .dc-expiry.is-warning{color:var(--pc-warning);}
html[data-pelican-ui] body[data-page="downloads"] .dc-no-files{grid-column:1/-1;color:var(--pc-muted);font-size:13px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-more{margin:22px auto 0;display:flex;}
html[data-pelican-ui] body[data-page="downloads"] .dc-bottom{margin:22px 0 0;color:var(--pc-muted);font-size:11px;line-height:1.7;}
html[data-pelican-ui] body .pc-media-dialog{width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:20px;border:1px solid var(--pc-line);border-radius:14px;background:var(--pc-surface);color:var(--pc-ink);overflow:auto;}
html[data-pelican-ui] body .pc-media-dialog::backdrop{background:#11142599;}
html[data-pelican-ui] body .pc-media-head{display:flex;align-items:flex-start;gap:15px;justify-content:space-between;margin-bottom:16px;}
html[data-pelican-ui] body .pc-media-head h2{font-size:16px;line-height:1.5;margin:0;overflow-wrap:anywhere;color:var(--pc-ink);}
html[data-pelican-ui] body .pc-media-dialog :is(img,video){display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:auto;background:var(--pc-soft);border-radius:9px;}
html[data-pelican-ui] body .pc-media-note,html[data-pelican-ui] body .pc-media-error{font-size:12px;line-height:1.75;color:var(--pc-muted);margin-bottom:0;}
html[data-pelican-ui] body[data-page="downloads"] [hidden]{display:none!important;}
html[data-pelican-ui] body[data-page="downloads"] :is(button,a,input,select):focus-visible,html[data-pelican-ui] body .pc-media-dialog :is(button,a):focus-visible{outline:3px solid var(--pc-focus);outline-offset:3px;}
@media(max-width:900px){html[data-pelican-ui] body[data-page="downloads"] .dc-heading{align-items:flex-start;flex-direction:column;gap:14px;}html[data-pelican-ui] body[data-page="downloads"] .dc-gallery{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:640px){
 html[data-pelican-ui] body .pc-recent-actions .pc-records-link{font-size:11px;padding:4px 7px;}
 html[data-pelican-ui] body :is(#auroraImageSubmit,#auroraVideoSubmit){width:100%!important;min-height:46px!important;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-main{width:calc(100% - 32px);padding-top:24px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-heading h1{font-size:27px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-heading p{font-size:13px;}
 html[data-pelican-ui] body .pc-retention{padding:14px;gap:9px;margin-bottom:20px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-filters{gap:12px;align-items:flex-end;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-tabs{width:100%;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-tabs button{flex:1;padding-inline:10px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-search{min-width:140px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-selection-copy{flex-basis:100%;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-selection .dc-button{font-size:12px;padding:7px 10px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-batch{padding:15px 13px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-batch-head{gap:9px;flex-wrap:wrap;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-batch-title{flex-basis:calc(100% - 32px);}
 html[data-pelican-ui] body[data-page="downloads"] .dc-batch-actions{padding-left:26px;width:100%;justify-content:space-between;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-batch-actions .dc-button{min-height:35px;font-size:12px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-file-download{font-size:10px;}
 html[data-pelican-ui] body .pc-media-dialog{padding:14px;}
}
@media(prefers-reduced-motion:reduce){html[data-pelican-ui] body[data-page="downloads"] *,html[data-pelican-ui] body .pc-media-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

@media(min-width:1100px){html[data-pelican-ui] body[data-page="downloads"] .dc-batches{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;}html[data-pelican-ui] body[data-page="downloads"] .dc-gallery{grid-template-columns:repeat(3,minmax(0,1fr));}html[data-pelican-ui] body[data-page="downloads"] .dc-batch-actions{gap:8px;}}
/* Same fixed, single-row header geometry as the generation studios. */
html[data-pelican-ui] body[data-page="downloads"] .app-shell{width:100%!important;margin:0;padding:0;max-width:none;}
html[data-pelican-ui] body[data-page="downloads"] .topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:65px!important;min-height:65px!important;max-height:65px!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;box-sizing:border-box!important;border-width:0 0 1px!important;border-radius:0!important;z-index:100!important;}
html[data-pelican-ui] body[data-page="downloads"] .topbar>.brand{grid-column:1;grid-row:1;justify-self:start;min-width:0;}
html[data-pelican-ui] body[data-page="downloads"] .topbar>.topnav{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap!important;width:max-content;justify-self:center;padding:0;margin:0;}
html[data-pelican-ui] body[data-page="downloads"] .topnav a{flex:none;white-space:nowrap;font-size:12px!important;line-height:1.5;padding:10px 8px;}
html[data-pelican-ui] body[data-page="downloads"] .topbar>.ui-header-actions{grid-column:3;grid-row:1;display:flex!important;gap:10px;align-items:center;justify-self:end;white-space:nowrap;min-width:0;}
html[data-pelican-ui] body[data-page="downloads"] .topbar #auroraThemeButton{margin:0;flex-shrink:0;}
html[data-pelican-ui] body[data-page="downloads"] .dc-main{margin-top:65px;padding-top:34px;}
html[data-pelican-ui] body[data-page="downloads"] .dc-menu-toggle{display:none!important;}
html[data-pelican-ui] body[data-page="downloads"] .dc-header-account{font-size:11px;color:var(--pc-muted);max-width:100px;overflow:hidden;text-overflow:ellipsis;}
@media(max-width:1279px){
 html[data-pelican-ui] body[data-page="downloads"] .topbar{grid-template-columns:minmax(0,1fr) auto 40px!important;gap:10px!important;}
 html[data-pelican-ui] body[data-page="downloads"] .topbar>.ui-header-actions{grid-column:2;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-menu-toggle{grid-column:3;grid-row:1;display:grid!important;place-items:center;width:40px;height:40px;padding:9px;border:1px solid var(--pc-line);border-radius:8px;background:var(--pc-surface);color:var(--pc-ink);cursor:pointer;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-menu-toggle svg{width:20px;height:20px;}
 html[data-pelican-ui] body[data-page="downloads"]:not(.dc-menu-open) .topbar>.topnav{display:none!important;}
 html[data-pelican-ui] body[data-page="downloads"].dc-menu-open .topbar>.topnav{position:absolute!important;display:grid!important;top:64px;left:16px;right:16px;width:auto;grid-column:auto;justify-self:stretch;border:1px solid var(--pc-line)!important;border-radius:12px!important;padding:8px;box-shadow:var(--pc-shadow)!important;background:var(--pc-surface)!important;}
 html[data-pelican-ui] body[data-page="downloads"].dc-menu-open .topnav a{min-height:42px;display:flex;align-items:center;padding:10px 12px;}
}
@media(max-width:767px){
 html[data-pelican-ui] body[data-page="downloads"] .topbar{gap:8px!important;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-header-account{display:none;}
 html[data-pelican-ui] body[data-page="downloads"] .topbar>.ui-header-actions{gap:6px;}
 html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton{width:36px!important;min-width:36px!important;}
 html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton>summary{padding:0!important;}
 html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton>summary>span{display:none;}
 html[data-pelican-ui] body[data-page="downloads"] #downloadLogout{min-height:36px;padding:6px 8px;font-size:11px;}
 html[data-pelican-ui] body[data-page="downloads"] .dc-main{padding-top:24px;}
}

/* Standalone theme controls, without loading legacy app layout or icon libraries. */
html[data-pelican-ui] body[data-page="downloads"] .topbar #auroraThemeButton{position:relative!important;display:block!important;width:auto;height:auto;min-height:0!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:36px;min-height:40px;padding:0 10px;color:var(--pc-ink);background:var(--pc-surface);border:1px solid var(--pc-line);border-radius:9px;list-style:none;cursor:pointer;font-size:12px;line-height:1.5;}
html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton>summary::-webkit-details-marker{display:none;}
html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton>summary::marker{content:"";}
html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton svg{flex:none;width:17px;height:17px;}
html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton>summary:hover,html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton[open]>summary{border-color:var(--pc-brand);color:var(--pc-brand);background:var(--pc-brand-soft);}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:120;display:grid;gap:4px;width:min(230px,calc(100vw - 32px));padding:6px;border:1px solid var(--pc-line);border-radius:12px;background:var(--pc-surface);box-shadow:var(--pc-shadow);white-space:normal;}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu button{position:static;display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:52px;margin:0;padding:9px 10px;border:1px solid transparent;border-radius:8px;color:var(--pc-ink);background:transparent;font:inherit;text-align:left;cursor:pointer;transform:none;box-shadow:none;}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu button:hover,html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu button[aria-checked="true"]{border-color:var(--pc-line);background:var(--pc-brand-soft);}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu button>svg{color:var(--pc-brand);}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu button>span{display:grid;gap:3px;min-width:0;}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu strong{color:var(--pc-ink);font-size:12px;font-weight:600;line-height:1.5;}
html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu small{color:var(--pc-muted);font-size:11px;line-height:1.5;}
html[data-pelican-ui] body[data-page="downloads"] #auroraThemeButton :is(summary,button):focus-visible{outline:2px solid var(--pc-brand);outline-offset:3px;}

@media(max-width:767px){html[data-pelican-ui] body[data-page="downloads"] .toolbox-theme-menu{position:fixed;top:73px;right:16px;box-sizing:border-box;}}

/* Keep legacy subsite cards on the same opaque theme surface as their headings. */
html[data-pelican-ui] body[data-page="workspace"] :is(.subsite-hero-card,.subsite-panel-card,.subsite-open-process li){background:var(--pc-surface)!important;border-color:var(--pc-line)!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body[data-page="workspace"] :is(.subsite-hero-card>p,.subsite-open-process small){color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;}
html[data-pelican-ui] body[data-page="workspace"] .subsite-open-process strong{color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}

/* R14 — one front-end frame. Real controls, forms and balances remain unchanged. */
html[data-pelican-ui] { --pc-content-width:1120px; }
html[data-pelican-ui] body[data-page] [data-pc-header] {
  position:fixed!important;inset:0 0 auto!important;z-index:1000!important;
  width:100%!important;height:65px!important;min-height:65px!important;max-height:65px!important;
  padding:0 max(24px,calc((100% - 1320px)/2))!important;margin:0!important;
  box-sizing:border-box!important;border-width:0 0 1px!important;
  background:var(--pc-surface)!important;color:var(--pc-ink)!important;
}
html[data-pelican-ui] body[data-page] [data-pc-header-row] {
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)!important;
  align-items:center!important;gap:16px!important;height:64px!important;min-height:64px!important;
  width:100%!important;max-width:none!important;margin:0!important;padding-block:0!important;
}
html[data-pelican-ui] body[data-page] [data-pc-header] .haomj-topbar-inner {padding-inline:0!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-row]>.ui-brand {grid-column:1;grid-row:1;justify-self:start;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important;gap:8px!important;transform:none!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-row] .ui-brand .ui-brand-copy {display:grid!important;gap:0!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-row] .ui-brand .ui-brand-copy strong {font-size:15px!important;line-height:21px!important;font-weight:750!important;letter-spacing:0!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-row] .ui-brand .ui-brand-copy small {font-size:10px!important;line-height:15px!important;letter-spacing:0!important;}
html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"] {
  grid-column:2!important;grid-row:1!important;display:flex!important;position:static!important;
  align-items:center!important;justify-content:center!important;justify-self:center!important;
  flex-wrap:nowrap!important;gap:4px!important;width:max-content!important;max-width:none!important;
  height:40px!important;min-height:40px!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  transform:none!important;overflow:visible!important;opacity:1!important;visibility:visible!important;
}
html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a {
  display:inline-flex!important;position:relative!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;height:40px!important;min-height:40px!important;max-height:40px!important;
  min-width:0!important;width:auto!important;margin:0!important;padding:0 12px!important;
  border:0!important;border-radius:8px!important;font-size:13px!important;font-weight:700!important;
  line-height:20px!important;letter-spacing:0!important;text-indent:0!important;text-align:center!important;
  white-space:nowrap!important;color:var(--pc-muted)!important;background:transparent!important;
  text-decoration:none!important;box-shadow:none!important;transform:none!important;
}
html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a:is(:hover,.active,[aria-current="page"]) {color:var(--pc-brand)!important;-webkit-text-fill-color:var(--pc-brand)!important;}
html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a:hover {background:var(--pc-brand-soft)!important;}
html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a::after {bottom:2px!important;}
html[data-pelican-ui] body[data-page] [data-pc-header] [data-pc-header-actions]:is(.haomj-topbar-actions,.ui-header-actions,.workspace-topbar-actions) {display:flex!important;grid-column:3!important;grid-row:1!important;justify-self:end!important;align-items:center!important;gap:8px!important;min-width:0!important;width:max-content!important;max-width:100%!important;padding:0!important;margin:0!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-actions] :is(button,a,summary) {font-size:12px!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-actions] .global-recharge-panel:not([hidden]) {display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-actions] .global-credit-copy {gap:3px!important;font-size:11px!important;white-space:nowrap;}
html[data-pelican-ui] body[data-page] [data-pc-header-actions] :is(.haomj-purchase-link,.haomj-account-link,.global-recharge-button,.ui-account-trigger,.workspace-top-recharge) {height:36px!important;min-height:36px!important;padding:0 10px!important;line-height:20px!important;}
html[data-pelican-ui] body[data-page] [data-pc-header] :is(#mvpMainMenuButton,#homeMenuButton,#downloadMenuToggle,.workspace-topbar-slogan) {display:none!important;}
/* Hide only header theme switches, not the theme engine or admin settings. */
html[data-pelican-ui] body[data-page] :is(#homeTopbar,.topbar,.workspace-topbar,.fzadmin-header) :is([data-toolbox-theme-control],#auroraThemeButton,#toolboxThemeButton,#auroraAdminThemeButton,#fzadminThemeToggle) {display:none!important;}
html[data-pelican-ui] body .pc-home-actions>.pc-home-button {font-weight:750!important;}
html[data-pelican-ui] body .pc-menu-toggle {display:none!important;grid-column:3;grid-row:1;align-items:center;justify-content:center;width:38px!important;height:38px!important;min-height:38px!important;margin:0!important;padding:8px!important;border:1px solid var(--pc-line)!important;border-radius:10px!important;color:var(--pc-ink)!important;background:var(--pc-surface)!important;box-shadow:none!important;cursor:pointer;}
.pc-menu-toggle svg {width:20px;height:20px;}
html[data-pelican-ui] body [data-pc-main-nav]>a:focus-visible,html[data-pelican-ui] body .pc-menu-toggle:focus-visible {outline:2px solid var(--pc-brand)!important;outline-offset:3px!important;}
html[data-pelican-ui] body[data-page="workspace"] .pc-directory-toolbar {display:flex;justify-content:flex-end;margin:0 0 12px;}
html[data-pelican-ui] body[data-page="workspace"] #workspaceMenuButton.pc-directory-toggle {display:inline-flex!important;gap:6px;align-items:center;justify-content:center;width:auto!important;flex:0 0 auto!important;min-width:max-content!important;white-space:nowrap!important;min-height:36px!important;height:36px!important;padding:6px 10px!important;border:1px solid var(--pc-line)!important;border-radius:9px!important;background:var(--pc-surface)!important;color:var(--pc-ink)!important;font-size:12px!important;font-weight:650!important;}
.pc-directory-toggle svg {width:16px;height:16px;flex:0 0 16px;}
/* Denser creation frame, without collapsing current task progress or returned media. */
html[data-pelican-ui] body:is([data-page="image"],[data-page="video"]) .app-shell {width:100%!important;max-width:1168px!important;margin-inline:auto!important;padding-inline:24px!important;padding-top:65px!important;box-sizing:border-box!important;}
html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid) {width:100%!important;max-width:1120px!important;margin-inline:auto!important;padding-top:22px!important;gap:18px!important;}
html[data-pelican-ui] body[data-page] :is(.image-workbench-panel,.video-form-panel)>.section-head {margin-bottom:16px!important;}
html[data-pelican-ui] body[data-page] .section-head h1.pc-studio-title {font-size:27px!important;}
html[data-pelican-ui] body[data-page] .pc-creation-steps {padding:4px!important;margin:12px 0!important;border-radius:12px!important;}
html[data-pelican-ui] body[data-page] .pc-creation-steps>li {min-height:54px!important;padding:7px 12px!important;column-gap:9px!important;}
html[data-pelican-ui] body[data-page] :is(#openClawForm,#videoForm) {padding:18px!important;gap:16px!important;border-radius:14px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-pair {gap:14px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card:not([hidden]) {min-height:112px!important;padding:13px 14px!important;gap:8px!important;align-content:start!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card>small {display:block!important;font-size:11px!important;line-height:1.55!important;margin:0!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-card .inline-preview.empty {display:none!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy {grid-template-columns:36px minmax(0,1fr) auto!important;gap:1px 10px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy .upload-media-icon {width:36px!important;height:36px!important;border-radius:10px!important;}
html[data-pelican-ui] body[data-page] .workbench-upload-copy strong {font-size:14px!important;}
html[data-pelican-ui] body[data-page] .pc-upload-cta {padding:7px 11px!important;min-height:34px!important;font-size:12px!important;font-weight:700!important;}
/* One selection-card language for image modes and video directions. */
html[data-pelican-ui] body .mode-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:0!important;border:0!important;background:transparent!important;}
html[data-pelican-ui] body :is(.mode-tabs>.mode-tab,.production-direction-grid>label) {position:relative!important;display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;min-height:74px!important;height:auto!important;padding:12px!important;border:1px solid var(--pc-line)!important;border-radius:11px!important;background:var(--pc-surface)!important;box-shadow:none!important;transform:none!important;color:var(--pc-ink)!important;cursor:pointer;}
html[data-pelican-ui] body .mode-tabs>.mode-tab::before,html[data-pelican-ui] body .mode-tabs>.mode-tab::after {display:none!important;}
html[data-pelican-ui] body .mode-tabs>.mode-tab input {position:static!important;display:block!important;opacity:1!important;width:16px!important;height:16px!important;min-width:16px!important;margin:0!important;accent-color:var(--pc-brand);flex:0 0 16px;}
html[data-pelican-ui] body .mode-tab-copy {min-width:0;display:grid!important;gap:4px!important;}
html[data-pelican-ui] body :is(.mode-tab-copy,.production-direction-grid>label>span) strong {display:block!important;font-size:13px!important;font-weight:700!important;line-height:1.55!important;color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;white-space:normal!important;}
html[data-pelican-ui] body :is(.mode-tab-copy,.production-direction-grid>label>span) small {display:block!important;font-size:11px!important;line-height:1.55!important;font-weight:400!important;color:var(--pc-muted)!important;-webkit-text-fill-color:var(--pc-muted)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
html[data-pelican-ui] body :is(.mode-tabs>.mode-tab,.production-direction-grid>label):hover {border-color:var(--pc-brand)!important;}
html[data-pelican-ui] body :is(.mode-tabs>.mode-tab,.production-direction-grid>label):has(input:checked) {background:var(--pc-brand-soft)!important;border-color:var(--pc-brand)!important;box-shadow:inset 0 0 0 1px var(--pc-brand)!important;}
html[data-pelican-ui] body :is(.mode-tabs>.mode-tab,.production-direction-grid>label):has(input:focus-visible) {outline:2px solid var(--pc-brand);outline-offset:3px;}
html[data-pelican-ui] body .production-direction-field {margin:0!important;padding:12px!important;border:1px solid var(--pc-line)!important;border-radius:12px!important;background:var(--pc-surface)!important;}
html[data-pelican-ui] body .production-direction-field>legend {font-size:12px!important;font-weight:700!important;padding:0 5px!important;}
html[data-pelican-ui] body .production-direction-group-title {display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:4px 12px!important;margin:0 0 10px!important;}
html[data-pelican-ui] body .production-direction-group-title strong {font-size:13px!important;font-weight:700!important;}
html[data-pelican-ui] body .production-direction-group-title>span {font-size:11px!important;color:var(--pc-muted)!important;}
html[data-pelican-ui] body .production-direction-grid {gap:8px!important;}
html[data-pelican-ui] body .production-direction-grid>label {min-height:65px!important;padding:10px 12px!important;}
html[data-pelican-ui] body .production-direction-hint {margin-top:9px!important;font-size:11px!important;line-height:1.6!important;}
/* Compact, aligned parameters. The provider's price text stays live and unchanged. */
html[data-pelican-ui] body #videoForm .video-option-row {display:grid!important;grid-template-columns:1fr 1fr 1.35fr 1.15fr!important;gap:12px!important;align-items:start!important;}
html[data-pelican-ui] body #videoForm .video-option-row>.field {display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
html[data-pelican-ui] body #videoForm :is(.video-option-row>.field>span,.video-option-row>.field>legend,.video-duration-field>legend) {float:none!important;width:auto!important;margin:0!important;padding:0!important;font-size:12px!important;font-weight:700!important;line-height:18px!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body #videoForm .video-option-row select {height:42px!important;min-height:42px!important;padding:8px 12px!important;font-size:13px!important;line-height:20px!important;border-radius:9px!important;border:1px solid var(--pc-line)!important;background-color:var(--pc-input)!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body #videoForm .video-segmented {padding:3px!important;gap:3px!important;border-radius:9px!important;border:1px solid var(--pc-line)!important;background:var(--pc-soft)!important;min-height:42px!important;}
html[data-pelican-ui] body #videoForm .video-segmented label {min-width:0!important;margin:0!important;}
html[data-pelican-ui] body #videoForm .video-segmented label>span {display:flex!important;align-items:center!important;justify-content:center!important;min-height:34px!important;height:auto!important;margin:0!important;padding:7px 8px!important;border:1px solid transparent!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;font-size:12px!important;font-weight:650!important;line-height:18px!important;color:var(--pc-muted)!important;white-space:normal!important;}
html[data-pelican-ui] body #videoForm .video-segmented label:has(input:checked)>span {border-color:var(--pc-line)!important;background:var(--pc-surface)!important;color:var(--pc-brand)!important;}
html[data-pelican-ui] body #videoForm .video-segmented label:has(input:focus-visible)>span {outline:2px solid var(--pc-brand);outline-offset:2px;}
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented {padding:0 10px!important;display:flex!important;align-items:center!important;min-height:42px!important;background:var(--pc-input)!important;}
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented label:has(input:checked)>span {padding:5px 0!important;border:0!important;background:transparent!important;color:var(--pc-ink)!important;justify-content:flex-start!important;font-size:12px!important;}
html[data-pelican-ui] body #videoForm .video-duration-field {display:grid!important;grid-template-columns:minmax(280px,420px) minmax(0,1fr)!important;align-items:center!important;gap:8px 16px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;}
html[data-pelican-ui] body #videoForm .video-duration-field>legend {margin-bottom:8px!important;}
html[data-pelican-ui] body #videoForm .video-duration-segmented {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;gap:3px!important;}
html[data-pelican-ui] body #videoForm .video-duration-price {display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important;font-size:11px!important;font-weight:400!important;line-height:1.7!important;color:var(--pc-muted)!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:0!important;padding:12px 14px!important;border:0!important;border-radius:10px!important;background:var(--pc-soft)!important;box-shadow:none!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip>span {display:block!important;min-height:0!important;padding:0 10px!important;text-align:left!important;border:0!important;border-left:1px solid var(--pc-line)!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip>span:first-child {border-left:0!important;padding-left:0!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip strong {font-size:11px!important;line-height:1.6!important;font-weight:650!important;color:var(--pc-ink)!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip small {font-size:11px!important;line-height:1.6!important;color:var(--pc-muted)!important;}
html[data-pelican-ui] body #videoForm .video-copy-field {padding:14px!important;border-radius:12px!important;}
html[data-pelican-ui] body #videoSellingPoints {min-height:150px!important;height:150px!important;max-height:none!important;padding:12px!important;font-size:13px!important;line-height:1.8!important;resize:vertical!important;}
html[data-pelican-ui] body :is(#videoAiWrite,.ai-write-button) {border-radius:9px!important;min-height:34px!important;font-size:12px!important;font-weight:700!important;}
html[data-pelican-ui] body .pc-retired-history {display:none!important;}
html[data-pelican-ui] body .pc-recent {padding:13px 14px 10px!important;margin-bottom:12px!important;border-radius:12px!important;}
html[data-pelican-ui] body .pc-recent-empty {min-height:68px!important;padding:10px 14px!important;}
/* Read-only task details take over the old history jump; no record is deleted. */
html[data-pelican-ui] body .pc-task-dialog {width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;padding:22px;border:1px solid var(--pc-line);border-radius:16px;background:var(--pc-surface);color:var(--pc-ink);box-shadow:0 20px 70px #16192b30;overflow:auto;}
.pc-task-dialog::backdrop {background:rgba(17,20,33,.48);}
html[data-pelican-ui] body .pc-task-dialog h2 {font-size:19px!important;line-height:1.5!important;margin:0!important;overflow-wrap:anywhere;}
.pc-task-meta {display:grid;gap:12px;margin:20px 0;}
.pc-task-meta>div {display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;font-size:13px;line-height:1.6;}
.pc-task-meta dt {color:var(--pc-muted);}
.pc-task-meta dd {margin:0;font-weight:600;overflow-wrap:anywhere;}
.pc-task-note {background:var(--pc-soft);border-radius:10px;padding:12px;font-size:12px;line-height:1.75;color:var(--pc-muted);}
.pc-task-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;}
html[data-pelican-ui] body .pc-task-actions>:is(a,button) {display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;border:1px solid var(--pc-line);border-radius:9px;background:var(--pc-surface);color:var(--pc-ink);font:600 12px/20px inherit;text-decoration:none;cursor:pointer;}
html[data-pelican-ui] body .pc-task-actions>.pc-task-primary {background:var(--pc-brand);border-color:var(--pc-brand);color:var(--pc-on-brand);}
.pc-task-actions>button:disabled {opacity:.5;cursor:not-allowed;}
@media(min-width:1200px) and (max-width:1350px) {
  html[data-pelican-ui] body[data-page] [data-pc-header-actions] .global-credit-copy>span {display:none!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-actions] .workspace-profile>span:not(.workspace-avatar) {display:none!important;}
}
@media(max-width:1199px) {
  html[data-pelican-ui] body[data-page] [data-pc-header-row] {grid-template-columns:minmax(0,1fr) auto 38px!important;gap:10px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header] [data-pc-header-actions]:is(.haomj-topbar-actions,.ui-header-actions,.workspace-topbar-actions) {grid-column:2!important;}
  html[data-pelican-ui] body .pc-menu-toggle {display:inline-flex!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"] {display:none!important;position:absolute!important;top:72px!important;left:auto!important;right:max(24px,calc((100% - 1320px)/2))!important;bottom:auto!important;grid-column:auto!important;grid-template-columns:1fr!important;z-index:1100!important;max-height:calc(100dvh - 88px)!important;overflow:auto!important;width:240px!important;max-width:calc(100vw - 32px)!important;height:auto!important;padding:8px!important;border:1px solid var(--pc-line)!important;border-radius:12px!important;background:var(--pc-surface)!important;box-shadow:var(--pc-shadow)!important;}
  html[data-pelican-ui] body[data-page].pc-nav-open [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"] {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a {width:100%!important;justify-content:flex-start!important;padding:0 12px!important;box-sizing:border-box!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a::after {display:none!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a:is(.active,[aria-current="page"]) {background:var(--pc-brand-soft)!important;}
}
@media(max-width:900px) {
  html[data-pelican-ui] body #videoForm .video-option-row {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html[data-pelican-ui] body #videoForm .video-duration-field {grid-template-columns:1fr!important;gap:8px!important;}
  html[data-pelican-ui] body #videoForm .video-duration-segmented {max-width:480px;}
}
@media(max-width:640px) {
  html[data-pelican-ui] body[data-page] [data-pc-header] {padding-inline:16px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-row] {gap:8px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"] {right:16px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-row] .ui-brand .ui-brand-copy strong {font-size:14px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-row] .ui-brand .ui-brand-copy small {font-size:9px!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-actions] .global-credit-copy {display:none!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-actions] :is(.workspace-balance-chip,.workspace-top-recharge,.haomj-purchase-link,.haomj-member-chip>span:not(.nt-member-avatar),.workspace-profile>span:not(.workspace-avatar)) {display:none!important;}
  html[data-pelican-ui] body[data-page] [data-pc-header-actions] .haomj-member-chip {width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;justify-content:center!important;}
  html[data-pelican-ui] body:is([data-page="image"],[data-page="video"]) .app-shell {padding-inline:12px!important;}
  html[data-pelican-ui] body[data-page] :is(.ak-workspace,.video-workbench-grid) {padding-top:18px!important;}
  html[data-pelican-ui] body[data-page] :is(#openClawForm,#videoForm) {padding:12px!important;gap:14px!important;}
  html[data-pelican-ui] body[data-page] .pc-creation-steps>li {padding:6px 5px!important;column-gap:6px!important;grid-template-columns:23px minmax(0,1fr)!important;min-height:60px!important;}
  html[data-pelican-ui] body[data-page] .pc-creation-steps h3 {font-size:12px!important;}
  html[data-pelican-ui] body[data-page] .pc-creation-steps p {font-size:10px!important;}
  html[data-pelican-ui] body .mode-tabs {grid-template-columns:1fr!important;gap:7px!important;}
  html[data-pelican-ui] body .mode-tabs>.mode-tab {min-height:62px!important;padding:10px 12px!important;}
  html[data-pelican-ui] body #videoForm .video-spec-strip {grid-template-columns:1fr!important;gap:8px!important;padding:11px 12px!important;}
  html[data-pelican-ui] body #videoForm .video-spec-strip>span {border:0!important;padding:0!important;}
  html[data-pelican-ui] body #videoForm .video-spec-strip strong {margin-right:8px;}
  html[data-pelican-ui] body #videoForm .video-spec-strip small {display:inline!important;}
}
@media(prefers-reduced-motion:reduce) {
  html[data-pelican-ui] body :is([data-pc-main-nav]>* ,.pc-menu-toggle,.mode-tab,.production-direction-grid>label) {transition:none!important;animation:none!important;}
}

/* R14 visual review: flatten legacy nested option spans; keep all labels readable. */
html[data-pelican-ui] body[data-page] [data-pc-header][data-pc-header-row] {height:65px!important;min-height:65px!important;max-height:65px!important;}
html[data-pelican-ui] body[data-page] [data-pc-header-row]>.ui-brand {width:max-content!important;height:38px!important;min-height:38px!important;}
html[data-pelican-ui] body .production-direction-grid>label>span {display:grid!important;gap:3px!important;width:100%!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
html[data-pelican-ui] body .production-direction-grid>label>span::before,html[data-pelican-ui] body .production-direction-grid>label>span::after {display:none!important;}
html[data-pelican-ui] body .production-direction-group {padding:0!important;margin:0!important;gap:0!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip>span {background:transparent!important;border-radius:0!important;}
html[data-pelican-ui] body #videoForm .video-spec-strip :is(strong,small) {display:block!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented label>span {color:var(--pc-ink)!important;-webkit-text-fill-color:var(--pc-ink)!important;}
html[data-pelican-ui] body .pc-recent:has(.pc-recent-scroll[hidden]) .pc-recent-head {margin-bottom:4px!important;}
html[data-pelican-ui] body .pc-recent:has(.pc-recent-scroll[hidden]) .pc-recent-empty {min-height:42px!important;padding:6px 12px!important;}
html[data-pelican-ui] body .pc-recent:has(.pc-recent-scroll[hidden]) .pc-retention-inline {margin-top:6px!important;padding-top:0!important;}
html[data-pelican-ui] body .pc-task-actions>:is(a,button) {font-family:inherit;font-weight:600;font-size:12px;line-height:20px;}

/* Preserve the legacy home nav id while this shared frame owns responsive layout. */
html[data-pelican-ui] body[data-page] [data-pc-header] nav:is(#homeNav,[data-pc-main-nav])[aria-label="主导航"]>a:is([hidden],.is-hidden-by-owner) {display:none!important;}
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented,
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented label,
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented label>span {height:auto!important;max-height:none!important;min-height:42px!important;overflow:visible!important;white-space:normal!important;}
html[data-pelican-ui] body #videoForm .video-fixed-quality .video-segmented label>span {display:block!important;box-sizing:border-box!important;line-height:18px!important;padding-block:6px!important;overflow-wrap:anywhere!important;}

/* R15: keep the same navigation font before, during and after every route change.
   The static shell carries its R14 layout attributes from the first paint. */
html[data-pelican-ui] body[data-page] [data-pc-header],
html[data-pelican-ui] body[data-page] [data-pc-header] .ui-brand,
html[data-pelican-ui] body[data-page] [data-pc-header] .ui-brand-copy,
html[data-pelican-ui] body[data-page] [data-pc-header] nav[data-pc-main-nav]>a {
  font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif!important;
}
html[data-pelican-ui] body[data-page] [data-pc-header] nav[data-pc-main-nav]>a {
  transition:color .15s ease,background-color .15s ease!important;animation:none!important;
}
html[data-pelican-ui] body[data-page="workspace"] [data-pc-header] #workspaceMenuButton {display:none!important;}
@media(prefers-reduced-motion:reduce) {
  html[data-pelican-ui] body[data-page] [data-pc-header] nav[data-pc-main-nav]>a {transition:none!important;}
}
