@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
    --vorta-white: #FFFFFF;
    --vorta-surface: #FAFAFA;
    --vorta-soft: #F6F6F6;
    --vorta-black: #000000;
    --vorta-ink: #171717;
    --vorta-muted: #626262;
    --vorta-line: #E7E7E7;
    --vorta-bottom-height: 0px;
}

html body.wx-vorta {
    --bg-secondary: var(--vorta-soft);
    --bg-deep: var(--vorta-white);
    --bg-primary: var(--vorta-white);
    --bg-main: var(--vorta-white);
    --bg-card: var(--vorta-surface);
    --bg-card-hover: var(--vorta-soft);
    --text-primary: var(--vorta-ink);
    --text-secondary: var(--vorta-muted);
    --text-tertiary: #777;
    --brand-start: #000;
    --brand-end: #000;
    --brand-gradient: #000;
    --brand-glow: rgba(0,0,0,.08);
    --brand-bg: #F2F2F2;
    --border-card: var(--vorta-line);
    --border-light: #D8D8D8;
    --input-bg: var(--vorta-soft);
    --input-border: #E2E2E2;
    --accent: #000;
    --accent2: #333;
    --ink: var(--vorta-ink);
    --paper: var(--vorta-white);
    --panel: var(--vorta-surface);
    --line: var(--vorta-line);
    --muted: var(--vorta-muted);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-card: none;
    --shadow-elevated: none;
    margin: 0;
    background: var(--vorta-white) !important;
    color: var(--vorta-ink) !important;
    font-family: 'Geist', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.wx-vorta h1, body.wx-vorta h2, body.wx-vorta h3, body.wx-vorta h4 {
    color: var(--vorta-black);
    font-family: 'Geist', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}
body.wx-vorta h1 { font-size: clamp(36px,4.6vw,56px); }
body.wx-vorta h2 { font-size: clamp(28px,3.4vw,42px); }
body.wx-vorta h3 { font-size: 20px; font-weight: 700; }
body.wx-vorta p { line-height: 1.6; }
body.wx-vorta a { color: var(--vorta-black); text-underline-offset: 3px; }
body.wx-vorta img, body.wx-vorta video { max-width: 100%; }
body.wx-vorta ::selection { background: #DEDEDE; color: #000; }
body.wx-vorta :focus-visible { outline: 3px solid #000 !important; outline-offset: 3px !important; }
body.wx-vorta :is(button, a, input, textarea, select) { touch-action: manipulation; }

/* Shared capsule navigation */
html body.wx-vorta[data-site-page="app"], html body.wx-vorta[data-site-page="manage"], html body.wx-vorta[data-site-page="monitor"], html body.wx-vorta[data-site-page="hot"], html body.wx-vorta[data-site-page="timer"], html body.wx-vorta[data-site-page="schedule"], html body.wx-vorta[data-site-page="competitors"] { display: block !important; }
body.wx-vorta .site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: calc(14px + env(safe-area-inset-top)) max(20px,3vw) 14px;
    background: rgba(255,255,255,.96);
}
body.wx-vorta .site-brand { display: inline-flex; align-items: center; gap: 9px; color: #000; text-decoration: none; }
body.wx-vorta .site-brand svg { width: 32px; height: 32px; }
body.wx-vorta .site-brand strong { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
body.wx-vorta .site-navigation { display: flex; align-items: center; gap: 2px; padding: 3px; background: #fff; border: 1px solid #000; border-radius: 200px; }
body.wx-vorta .site-navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; color: #000; border-radius: 200px; text-decoration: none; font-size: 13px; }
body.wx-vorta .site-navigation a:hover, body.wx-vorta .site-navigation a.active { background: #F0F0F0; }
body.wx-vorta .site-menu-toggle { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; background: #fff; color: #000; border: 1px solid #000; border-radius: 200px; }
body.wx-vorta .site-menu-toggle svg { width: 20px; height: 20px; }

/* Mobile app tab bar */
body.wx-vorta .site-bottom-nav { display: none; }
body.wx-vorta .site-bottom-nav a { color: #666; text-decoration: none; }
body.wx-vorta .site-bottom-nav svg { width: 22px; height: 22px; }

/* Shared footer */
body.wx-vorta .site-footer { margin-top: 64px; padding: 40px max(20px,4vw) 0; background: #fff; color: #000; border-top: 1px solid var(--vorta-line); overflow: hidden; }
body.wx-vorta .site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
body.wx-vorta .site-footer-kicker, body.wx-vorta .atomic-eyebrow { display: block; margin-bottom: 12px; font: 500 11px/1.4 'Geist Mono', monospace; letter-spacing: .06em; color: #555; }
body.wx-vorta .site-footer h2 { max-width: 650px; font-size: clamp(28px,3vw,42px); }
body.wx-vorta .site-footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; align-content: start; }
body.wx-vorta .site-footer a { min-height: 32px; display: inline-flex; align-items: center; color: #000; font-size: 14px; }
body.wx-vorta .site-footer-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--vorta-line); font: 500 11px/1.5 'Geist Mono', monospace; }
body.wx-vorta .site-wordmark { margin: 30px 0 -2vw; font-size: clamp(84px,20.5vw,300px); font-weight: 800; line-height: .8; letter-spacing: -.085em; color: #000; text-align: center; white-space: nowrap; }
body.wx-vorta[data-site-page] > footer:not(.site-footer) { display: none !important; }
html body.wx-vorta > footer:not(.site-footer) { background: #fff !important; color: #555 !important; border-top: 1px solid var(--vorta-line) !important; }
html body.wx-vorta > footer:not(.site-footer) a { color: #000 !important; }

/* Existing main navigation */
html body.wx-vorta .topbar { min-height: 58px; height: auto; padding: 10px max(16px,2.5vw) !important; background: #fff !important; color: #000 !important; border-bottom: 1px solid var(--vorta-line) !important; box-shadow: none !important; }
html body.wx-vorta .sidebar { background: #fff !important; border-bottom: 1px solid var(--vorta-line) !important; }
html body.wx-vorta .nav-item, html body.wx-vorta .nav-group, html body.wx-vorta .nav-sub-item { color: #000 !important; border-radius: 200px !important; text-decoration: none !important; }
html body.wx-vorta .nav-item.active, html body.wx-vorta .nav-group.expanded { background: #000 !important; color: #fff !important; border: 1px solid #000 !important; }
html body.wx-vorta .nav-sub-item:hover { background: #F1F1F1 !important; color: #000 !important; }
html body.wx-vorta .nav-sub-link { display: flex; align-items: center; gap: 8px; }
html body.wx-vorta .nav-badge-new { background: #000 !important; }
html body.wx-vorta .main-workspace { background: #fff !important; }

/* Cards, controls and forms */
html body.wx-vorta :is(.step1-card, .ap-card, .tool-card, .panel, .card, .tools-container, .pricing-card, .suite-card, .settings-section, .modal-box, .modal-content, .ap-modal, .right-panel, .history-panel) { background: var(--vorta-surface) !important; color: var(--vorta-ink) !important; border: 1px solid transparent !important; border-radius: 12px !important; box-shadow: none !important; backdrop-filter: none !important; }
html body.wx-vorta :is(.modal-box, .modal-content, .ap-modal, .pricing-card) { border-radius: 20px !important; }
html body.wx-vorta :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), textarea, select) { max-width: 100%; min-height: 44px; background: var(--vorta-soft) !important; color: #000 !important; border: 1px solid #E5E5E5 !important; border-radius: 8px !important; box-shadow: none !important; font-family: inherit; font-size: 16px; }
html body.wx-vorta textarea { min-height: 104px; }
html body.wx-vorta :is(input, textarea, select):focus { border-color: #000 !important; outline: 2px solid #000 !important; outline-offset: 1px; }
html body.wx-vorta :is(.drop, .ref-upload, .upload, .upload-area) { background: #F5F5F5 !important; border: 1px dashed #A3A3A3 !important; border-radius: 12px !important; color: #333 !important; }
html body.wx-vorta button, html body.wx-vorta .btn, html body.wx-vorta .btn-secondary, html body.wx-vorta .ap-btn-ghost { min-height: 44px; font-family: inherit; cursor: pointer; transition: background-color .18s ease, color .18s ease, opacity .18s ease; }
html body.wx-vorta :is(.btn-create, .btn-primary, .ap-btn-blue, .btn-modal-primary, .btn-publish-primary, .wx-start, .editorial-case-action) { background: #000 !important; color: #fff !important; border: 1px solid #000 !important; box-shadow: none !important; }
html body.wx-vorta :is(.btn-secondary, .ap-btn-ghost, .btn.ghost, .btn-publish-secondary) { background: #fff !important; color: #000 !important; border: 1px solid #D4D4D4 !important; box-shadow: none !important; }
html body.wx-vorta button:hover:not(:disabled), html body.wx-vorta .btn:hover:not(:disabled) { opacity: .78; }
html body.wx-vorta button:disabled { opacity: .4; cursor: not-allowed; }
html body.wx-vorta :is(.chip, .pill, .tag, .style-tag, .topic-track, .image-count-pill) { border-radius: 200px !important; }
html body.wx-vorta :is(.chip.on, .chip.active, .topic-track.active, .image-count-pill.active) { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html body.wx-vorta table { background: #fff; color: #000; border-collapse: collapse; }
html body.wx-vorta :is(th, td) { border-color: var(--vorta-line) !important; }
html body.wx-vorta th { background: #F4F4F4; color: #000; }
html body.wx-vorta :is(.modal-overlay, .ap-modal-bg, .lightbox, .ap-lightbox) { backdrop-filter: blur(4px) !important; }
html body.wx-vorta :is(.modal-box, .modal-content, .ap-modal) { max-height: calc(100dvh - 40px); overflow-y: auto; }

/* Vorta home */
html body.wx-vorta #wanxuHome { max-width: 1220px; margin: auto; padding: 32px 24px 64px; }
html body.wx-vorta .wx-hero { display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 48px; min-height: 490px; padding: 48px 0 56px; background: #fff !important; color: #000; border: 0 !important; }
html body.wx-vorta .wx-hero-copy, html body.wx-vorta .wx-hero-aside { padding: 0; }
html body.wx-vorta .wx-wordmark { margin-bottom: 24px; font: 500 11px/1.4 'Geist Mono', monospace; letter-spacing: .08em; color: #555; }
html body.wx-vorta .wx-hero h1 { max-width: 760px; color: #000; font-size: clamp(48px,6vw,78px); line-height: 1.02; letter-spacing: -.055em; }
html body.wx-vorta .wx-hero-aside p { max-width: 360px; margin: 0 0 24px; color: #333; font-size: 17px; }
html body.wx-vorta :is(.wx-start, .wx-cta-start) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 40px; }
html body.wx-vorta .wx-capabilities { margin-top: 24px; color: #777; font: 500 11px/1.6 'Geist Mono', monospace; }
html body.wx-vorta .wx-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 56px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--vorta-line); }
html body.wx-vorta .wx-section-heading h2 { font-size: 36px; }
html body.wx-vorta .wx-section-heading p { max-width: 360px; margin: 0; color: var(--vorta-muted); }
html body.wx-vorta .wx-launches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
html body.wx-vorta .wx-launches button { min-height: 170px; padding: 24px; text-align: left; background: var(--vorta-surface); color: #000; border: 0; border-radius: 12px; }
html body.wx-vorta .wx-launches button:hover { background: #F0F0F0; }
html body.wx-vorta .wx-launches strong { display: block; margin-bottom: 12px; font-size: 22px; }
html body.wx-vorta .wx-launches span { color: var(--vorta-muted); }
html body.wx-vorta .wx-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
html body.wx-vorta .wx-gallery button { padding: 0 0 12px; text-align: left; background: #fff; color: #000; border: 0; border-radius: 12px; overflow: hidden; }
html body.wx-vorta .wx-gallery button:first-child { grid-column: 1/-1; }
html body.wx-vorta .wx-gallery img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: #F2F2F2; }
html body.wx-vorta .wx-gallery button:first-child img { aspect-ratio: 16/8; }
html body.wx-vorta .wx-gallery span { display: block; padding: 12px 2px 0; font-weight: 600; }
html body.wx-vorta .wx-process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
html body.wx-vorta .wx-process-step { padding: 24px; background: var(--vorta-surface); border-radius: 12px; }
html body.wx-vorta .wx-process-step b { display: block; margin-bottom: 20px; font: 600 20px/1 'Geist Mono', monospace; }
html body.wx-vorta .wx-process-step strong { display: block; font-size: 18px; }
html body.wx-vorta .wx-process-step span { display: block; margin-top: 10px; color: var(--vorta-muted); font-size: 14px; }
html body.wx-vorta .wx-ai-capabilities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
html body.wx-vorta .wx-ai-capability { padding: 24px; background: var(--vorta-surface); border-radius: 12px; }
html body.wx-vorta .wx-ai-capability strong { display: block; margin-bottom: 10px; font-size: 18px; }
html body.wx-vorta .wx-ai-capability span { color: var(--vorta-muted); font-size: 14px; }
html body.wx-vorta .wx-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 56px; padding: 32px 0; border-top: 1px solid #000; border-bottom: 1px solid #000; }
html body.wx-vorta .wx-cta p { margin-bottom: 0; color: var(--vorta-muted); }
html body.wx-vorta .wx-cta button { padding: 10px 24px; background: #000; color: #fff; border: 1px solid #000; border-radius: 40px; }
html body.wx-vorta .wx-wordmark-footer { margin: 64px 0 -24px; font-size: clamp(84px,19vw,250px); font-weight: 800; line-height: .8; letter-spacing: -.085em; text-align: center; white-space: nowrap; }

/* API and detail cases */
html body.wx-vorta .vorta-cases { padding: 24px 0; background: #fff; }
html body.wx-vorta .vorta-cases .atomic-eyebrow { margin-bottom: 8px; color: #555; }
html body.wx-vorta .editorial-case-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px !important; }
html body.wx-vorta .editorial-case { min-width: 0; background: var(--vorta-surface) !important; color: #000 !important; border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: none !important; }
html body.wx-vorta .editorial-case.is-featured { grid-column: 1/-1; }
html body.wx-vorta .editorial-case-media, html body.wx-vorta .showcase-card-cover { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
html body.wx-vorta .editorial-case.is-featured :is(.editorial-case-media, .showcase-card-cover) { aspect-ratio: 16/8; }
html body.wx-vorta .editorial-case-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
html body.wx-vorta .editorial-case-tag { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 5px 10px; background: #fff !important; color: #000 !important; border-radius: 200px; font: 500 10px/1.3 'Geist Mono', monospace; }
html body.wx-vorta :is(.showcase-card-info, .ap-case-info) { padding: 14px 16px; }
html body.wx-vorta :is(.showcase-card-title, .ap-case-title) { color: #000 !important; font-size: 16px; font-weight: 650; white-space: normal !important; overflow-wrap: anywhere; }
html body.wx-vorta .showcase-card-style { color: var(--vorta-muted) !important; font: 500 11px/1.5 'Geist Mono', monospace; }
html body.wx-vorta .editorial-case-action { position: static !important; display: block; width: calc(100% - 32px); min-height: 44px !important; margin: 0 16px 16px !important; padding: 8px 16px !important; opacity: 1 !important; font-size: 12px; }
html body.wx-vorta .ap-zoom-hint { opacity: 1; background: rgba(255,255,255,.85); color: #000; }
html body.wx-vorta[data-site-page="showcase"] :is(.header, .content-section, .image-card) { background: #fff !important; color: #000 !important; border-color: var(--vorta-line) !important; box-shadow: none !important; }
html body.wx-vorta[data-site-page="showcase"] .image-card { border-radius: 12px !important; }
html body.wx-vorta[data-site-page="showcase"] .image-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 20px; }
html body.wx-vorta[data-site-page="showcase"] .image-card:first-child { grid-column: 1/-1; }
html body.wx-vorta[data-site-page="showcase"] :is(.title, .content-section h3, .content-text, .image-card .label) { color: #000 !important; }
html body.wx-vorta[data-site-page="showcase"] .content-text, html body.wx-vorta[data-site-page="showcase"] .image-card .label { color: var(--vorta-muted) !important; }
html body.wx-vorta[data-site-page="showcase"] .category-tag, html body.wx-vorta[data-site-page="showcase"] .action-btn.primary { background: #000 !important; color: #fff !important; }
html body.wx-vorta[data-site-page="showcase"] .action-btn.secondary, html body.wx-vorta[data-site-page="showcase"] .back-btn { background: #fff !important; color: #000 !important; border-color: #000 !important; }

/* Shared capsule dropdown navigation */
html body.wx-vorta[data-site-app="main"] #sidebar { display: none !important; }
html body.wx-vorta[data-site-app="main"] .main-wrapper { display: flex !important; flex-direction: column !important; flex: 1 !important; min-height: 0 !important; }
html body.wx-vorta[data-site-app="main"] .main-workspace { position: relative !important; top: auto !important; bottom: auto !important; flex: 1 !important; height: auto !important; min-height: 0 !important; }
body.wx-vorta .site-nav-group { position: relative; }
body.wx-vorta .site-nav-group-button, body.wx-vorta .site-nav-direct { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; background: transparent; color: #000; border: 0; border-radius: 200px; text-decoration: none; font-size: 13px; white-space: nowrap; }
body.wx-vorta .site-nav-group-button svg { width: 14px; height: 14px; transition: transform 180ms ease; }
body.wx-vorta .site-nav-group-button:hover, body.wx-vorta .site-nav-direct:hover, body.wx-vorta .site-nav-group.active > .site-nav-group-button, body.wx-vorta .site-nav-direct.active { background: #F0F0F0; }
body.wx-vorta .site-nav-group.open > .site-nav-group-button { background: #000; color: #fff; }
body.wx-vorta .site-nav-group.open > .site-nav-group-button svg { transform: rotate(180deg); }
body.wx-vorta .site-dropdown { display: none; position: absolute; top: calc(100% + 12px); left: 0; z-index: 2400; min-width: 224px; max-width: min(88vw,560px); max-height: 70vh; overflow-y: auto; padding: 8px; background: #fff; border: 1px solid #000; border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.1); }
body.wx-vorta .site-nav-group[data-nav-group="other"] .site-dropdown { left: auto; right: 0; }
body.wx-vorta .site-nav-group.open .site-dropdown { display: block; animation: siteDropIn 180ms ease-out both; }
body.wx-vorta .site-dropdown-section + .site-dropdown-section { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--vorta-line); }
body.wx-vorta .site-dropdown-label { padding: 8px 12px 4px; color: #666; font: 500 11px/1.4 'Geist Mono', monospace; }
body.wx-vorta .site-dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 12px; color: #000; border-radius: 10px; text-decoration: none; font-size: 13px; }
body.wx-vorta .site-dropdown-item small { color: #777; font-size: 10px; }
body.wx-vorta .site-dropdown-item:hover, body.wx-vorta .site-dropdown-item.active { background: #F1F1F1; }
@keyframes siteDropIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Independent pages */
html body.wx-vorta header:not(.site-header):not(.wx-hero) { background: #fff !important; color: #000 !important; }
html body.wx-vorta .layout > .main, html body.wx-vorta main { min-width: 0; }
html body.wx-vorta .points, html body.wx-vorta .pts, html body.wx-vorta #pointsPill { background: #F2F2F2 !important; color: #000 !important; border-color: var(--vorta-line) !important; }
html body.wx-vorta .side, html body.wx-vorta .sidebar:not(#sidebar) { background: #fff !important; border-color: var(--vorta-line) !important; }
html body.wx-vorta .side a.on { background: #000 !important; color: #fff !important; }
html body.wx-vorta .job, html body.wx-vorta .work-card { background: #fff !important; border-color: var(--vorta-line) !important; }
html body.wx-vorta .login { background: #000 !important; color: #fff !important; }
html body.wx-vorta .login h3 { color: #fff; }
html body.wx-vorta :is(.btn-redeem-code, .redeem-modal-submit, .btn-pay-confirm) { background: #000 !important; color: #fff !important; border: 1px solid #000 !important; border-radius: 40px !important; }
html body.wx-vorta .pay-method.selected { border-color: #000 !important; background: var(--vorta-soft) !important; }
html body.wx-vorta .pay-method.selected .pay-method-name { color: #000 !important; }

@media(max-width:1024px) {
    html body.wx-vorta .wx-hero { grid-template-columns: 1fr .7fr; }
    html body.wx-vorta .wx-process { grid-template-columns: repeat(2,minmax(0,1fr)); }
    html body.wx-vorta .wx-ai-capabilities { grid-template-columns: 1fr; }
}

@media(max-width:809px) {
    body.wx-vorta { padding-bottom: var(--vorta-bottom-height); }
    body.wx-vorta .site-header { justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
    body.wx-vorta .site-menu-toggle { display: inline-flex; }
    body.wx-vorta .site-navigation { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); padding: 8px; border-radius: 20px; box-shadow: 0 12px 32px rgba(0,0,0,.1); }
    body.wx-vorta .site-header.menu-open .site-navigation { display: grid; grid-template-columns: minmax(0,1fr); max-height: calc(100dvh - 150px - var(--vorta-bottom-height)); overflow-y: auto; }
    body.wx-vorta .site-navigation a { min-height: 48px; border-radius: 12px; }
    html body.wx-vorta .site-navigation .site-nav-group-button, html body.wx-vorta .site-navigation .site-nav-direct { width: 100%; justify-content: space-between; min-height: 50px; }
    body.wx-vorta .site-dropdown, body.wx-vorta .site-nav-group[data-nav-group="other"] .site-dropdown { position: static; left: auto; right: auto; width: 100%; min-width: 0; max-width: 100%; max-height: none; overflow: visible; padding: 4px 0; border: 0; border-top: 1px solid var(--vorta-line); border-radius: 0; box-shadow: none; }
    body.wx-vorta .site-dropdown-section { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
    body.wx-vorta .site-dropdown-label { grid-column: 1/-1; }
    html body.wx-vorta .site-navigation .site-dropdown-item { min-height: 50px; }
    body.wx-vorta .site-dropdown-item small { display: none; }
    body.wx-vorta .site-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--vorta-line); }
    body.wx-vorta .site-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 4px 2px; border-radius: 10px; font-size: 11px; }
    body.wx-vorta .site-bottom-nav a.active { color: #000; background: #F1F1F1; font-weight: 650; }
    body.wx-vorta .site-footer { margin-bottom: 24px; }
    body.wx-vorta .site-footer-grid { grid-template-columns: 1fr; }
    html body.wx-vorta .main-workspace { bottom: auto !important; padding-bottom: calc(24px + var(--vorta-bottom-height)) !important; }
    html body.wx-vorta .panel-overlay { z-index: 2100 !important; }
    html body.wx-vorta :is(.right-panel, .settings-drawer) { z-index: 2200 !important; }
    html body.wx-vorta .wx-mobile-header { padding-top: env(safe-area-inset-top); }
    html body.wx-vorta #wanxuHome { padding: 16px 18px 32px; }
    html body.wx-vorta .wx-hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 40px 0; }
    html body.wx-vorta .wx-hero h1 { font-size: 48px; }
    html body.wx-vorta .wx-hero-aside p { max-width: 520px; }
    html body.wx-vorta .wx-section-heading { align-items: flex-start; flex-direction: column; margin-top: 40px; }
    html body.wx-vorta .wx-gallery, html body.wx-vorta .editorial-case-grid { grid-template-columns: minmax(0,1fr) !important; }
    html body.wx-vorta .editorial-case.is-featured { grid-column: auto; }
    html body.wx-vorta .editorial-case.is-featured :is(.editorial-case-media, .showcase-card-cover), html body.wx-vorta .wx-gallery button:first-child img { aspect-ratio: 4/3; }
    html body.wx-vorta .wx-cta { align-items: flex-start; flex-direction: column; }
    html body.wx-vorta .layout { grid-template-columns: 1fr !important; }
    html body.wx-vorta .results { grid-template-columns: 1fr !important; }
    html body.wx-vorta table { display: block; max-width: 100%; overflow-x: auto; }
    html body.wx-vorta :is(.site-footer a, .nav-sub-item, .site-navigation a) { min-height: 48px; }

    html body.wx-vorta[data-site-page="app"], html body.wx-vorta[data-site-page="manage"], html body.wx-vorta[data-site-page="monitor"], html body.wx-vorta[data-site-page="hot"], html body.wx-vorta[data-site-page="timer"], html body.wx-vorta[data-site-page="schedule"], html body.wx-vorta[data-site-page="competitors"] { display: block !important; }
    html body.wx-vorta[data-site-page]:is([data-site-page="app"], [data-site-page="manage"], [data-site-page="monitor"], [data-site-page="hot"], [data-site-page="timer"], [data-site-page="schedule"], [data-site-page="competitors"]) .sidebar { display: block !important; position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; max-height: none !important; transform: none !important; border-bottom: 1px solid var(--vorta-line) !important; }
    html body.wx-vorta[data-site-page]:is([data-site-page="app"], [data-site-page="manage"], [data-site-page="monitor"], [data-site-page="hot"], [data-site-page="timer"], [data-site-page="schedule"], [data-site-page="competitors"]) :is(.sidebar-brand, .sidebar-footer) { display: none !important; }
    html body.wx-vorta[data-site-page="app"] .sidebar-nav, html body.wx-vorta[data-site-page="manage"] .sidebar-nav, html body.wx-vorta[data-site-page="monitor"] .sidebar-nav, html body.wx-vorta[data-site-page="hot"] .sidebar-nav, html body.wx-vorta[data-site-page="timer"] .sidebar-nav, html body.wx-vorta[data-site-page="schedule"] .sidebar-nav, html body.wx-vorta[data-site-page="competitors"] .sidebar-nav { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; max-height: none !important; padding: 12px !important; overflow: visible !important; }
    html body.wx-vorta[data-site-page]:is([data-site-page="app"], [data-site-page="manage"], [data-site-page="monitor"], [data-site-page="hot"], [data-site-page="timer"], [data-site-page="schedule"], [data-site-page="competitors"]) .nav-section-title { width: 100%; margin: 4px 0 0; }
    html body.wx-vorta[data-site-page]:is([data-site-page="app"], [data-site-page="manage"], [data-site-page="monitor"], [data-site-page="hot"], [data-site-page="timer"], [data-site-page="schedule"], [data-site-page="competitors"]) .sidebar .nav-item { display: flex !important; min-height: 48px !important; width: auto !important; min-width: 0 !important; }
    html body.wx-vorta[data-site-page="app"] .mobile-header { display: none !important; }
    html body.wx-vorta[data-site-page]:is([data-site-page="app"], [data-site-page="manage"], [data-site-page="monitor"], [data-site-page="hot"], [data-site-page="timer"], [data-site-page="schedule"], [data-site-page="competitors"]) :is(.main, .main-area, .main-content) { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; padding: 16px !important; }
    html body.wx-vorta[data-site-page] :is(.topics-grid, .stats-grid, .dashboard-grid, .templates-grid, .pricing-grid) { grid-template-columns: minmax(0,1fr) !important; }
    html body.wx-vorta[data-site-page] .empty { width: 100% !important; }
    html body.wx-vorta[data-site-page="manage"] .page-header, html body.wx-vorta[data-site-page="manage"] .card > div[style*="display:flex"] { flex-wrap: wrap !important; gap: 8px !important; }
    html body.wx-vorta[data-site-page="manage"] #swSearch { min-width: 0 !important; flex: 1 1 140px !important; }
}

@media(max-width:480px) {
    html body.wx-vorta .wx-hero h1 { font-size: 38px; }
    html body.wx-vorta .wx-launches, html body.wx-vorta .wx-process { grid-template-columns: 1fr; }
    html body.wx-vorta .wx-launches button { min-height: 138px; }
    html body.wx-vorta .wx-section-heading h2 { font-size: 30px; }
    html body.wx-vorta .uploads, html body.wx-vorta .actions { grid-template-columns: 1fr !important; }
    body.wx-vorta .site-footer-links { grid-template-columns: 1fr; }
    body.wx-vorta .site-footer-meta { flex-direction: column; }
}

@media(prefers-reduced-motion:reduce) {
    html body.wx-vorta *, html body.wx-vorta *::before, html body.wx-vorta *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Controls keep their own geometry; the layout adapts instead of scaling text. */
html body.wx-vorta {
    --wx-control-font: clamp(12px, .3vw + 10px, 14px);
    --wx-panel-space: clamp(16px, 2vw, 26px);
}
html body.wx-vorta :is(button, input, textarea, select) { box-sizing: border-box; }
html body.wx-vorta :is(.mode-selector, .pt-size-row, .pt-quick-tags, .lock-row, .ms-preset-filters, .ms-case-filters) { gap: 6px; }
html body.wx-vorta :is(.mode-btn, .pt-chip, .ms-chip, .lock-chip, .image-count-pill) {
    min-width: 0; min-height: 44px; padding: 8px 12px;
    border: 1px solid #dedede !important; border-radius: 7px !important;
    background: #fff !important; color: #555 !important; box-shadow: none !important;
    font-size: var(--wx-control-font) !important; font-weight: 500;
    line-height: 1.35; white-space: nowrap; text-align: center;
}
html body.wx-vorta :is(.mode-btn.active, .pt-chip.active, .ms-chip.active, .image-count-pill.active) {
    background: #171717 !important; color: #fff !important; border-color: #171717 !important;
}
html body.wx-vorta .lock-chip.on { background: #f0f0f0 !important; color: #171717 !important; border-color: #aaa !important; }
html body.wx-vorta :is(.tool-panel-left, .tool-panel-right, .poster-controls, .pt-stage-card, .panel, .ms-panel) { min-width: 0; }
html body.wx-vorta :is(.tool-panel-left, .tool-panel-right) { background: #fafafa !important; border-color: #e7e7e7 !important; box-shadow: none !important; }
html body.wx-vorta :is(.ap-title, .ap-sub, .ap-label, .ap-section-label) { color: #171717 !important; -webkit-text-fill-color: #171717 !important; }
html body.wx-vorta :is(.ap-desc, .ap-hero-en) { color: #626262 !important; }
html body.wx-vorta #rawCaseRow button.editorial-case-action { background: #171717 !important; color: #fff !important; border-color: #171717 !important; border-radius: 8px !important; }
html body.wx-vorta :is(.btn, .btn-primary, .btn-secondary, .btn-create, .ap-btn-blue, .ap-btn-ghost, .pt-btn, .pt-submit, .btn-generate, .ms-btn) {
    min-height: 44px; padding: 11px 18px; border-radius: 8px !important;
    font-size: var(--wx-control-font); line-height: 1.45; letter-spacing: 0; box-shadow: none !important;
}
html body.wx-vorta :is(.pt-submit, .btn-generate, .btn.primary, .ms-btn.primary) { background: #171717 !important; color: #fff !important; }
html body.wx-vorta :is(.pr-mode-card, .pt-mode-tab) { border-radius: 9px !important; box-shadow: none !important; }
html body.wx-vorta .pr-mode-card { padding: clamp(12px, 1.4vw, 18px) !important; }
html body.wx-vorta .pr-mode-card.active { background: #f0f0f0 !important; border-color: #171717 !important; }
html body.wx-vorta .panel-title { font-size: clamp(16px, 1.5vw, 20px); }
html body.wx-vorta .pt-canvas-wrap { box-shadow: 0 5px 20px rgba(0,0,0,.09); }
html body.wx-vorta :is(.pt-ref-clear, .pt-qr-clear, .pt-size-btn, .anchor-remove, .ms-icon-btn, #piSceneClear) {
    width: 44px !important; height: 44px !important; min-height: 44px;
    padding: 0 !important; flex: 0 0 44px; border-radius: 8px !important; line-height: 1;
    align-items: center; justify-content: center;
}
html body.wx-vorta :is(input[type=checkbox], input[type=radio]) { min-height: 0; flex-shrink: 0; accent-color: #171717; }
html body.wx-vorta input[type=range] { min-height: 24px; accent-color: #171717; }

/* Poster: quiet mode cards and an aligned, equal-height size matrix. */
html body.wx-vorta .poster-shell { padding: clamp(24px, 3vw, 44px) clamp(16px, 2.5vw, 32px) 64px; }
html body.wx-vorta .poster-hero { margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: 24px; }
html body.wx-vorta .poster-title { font-size: clamp(30px, 3.4vw, 42px); }
html body.wx-vorta .poster-sub { font-size: clamp(12px, 1vw, 14px); line-height: 1.75; }
html body.wx-vorta .poster-controls, html body.wx-vorta .pt-stage-card {
    padding: var(--wx-panel-space); background: #fafafa; border: 1px solid #e7e7e7; box-shadow: none;
}
html body.wx-vorta .pt-mode-switch { gap: 8px; margin-bottom: 0; padding-bottom: 20px; }
html body.wx-vorta .pt-mode-tab { min-height: 66px; padding: 12px; gap: 4px; background: transparent; }
html body.wx-vorta .pt-mode-tab.active { background: #fff; border-color: #171717; }
html body.wx-vorta .pt-mode-tab::after, html body.wx-vorta .pt-mode-ic { display: none; }
html body.wx-vorta .pt-mode-t { font-size: 13px; font-weight: 600; }
html body.wx-vorta .pt-mode-d { font-size: 10px; letter-spacing: 0; }
html body.wx-vorta .pt-step { padding: clamp(16px, 2vw, 22px) 0; }
html body.wx-vorta .pt-step-head { gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
html body.wx-vorta .pt-step-label { font-size: 12px; }
html body.wx-vorta .pt-step-hint { font-size: 10px; }
html body.wx-vorta .pt-size-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body.wx-vorta .pt-chip { padding: 8px 3px; font-size: 11px !important; }
html body.wx-vorta .pt-quick-tags { gap: 2px 8px; margin-top: 6px; }
html body.wx-vorta .pt-quick-tags button {
    min-width: 44px; padding: 6px 2px; border: 0; border-bottom: 1px solid #dedede; border-radius: 0;
    background: transparent; color: #626262; font-size: 11px; min-height: 44px;
}
html body.wx-vorta .pt-quick-tags button:hover { border-color: #171717; color: #171717; }
html body.wx-vorta textarea.pt-textarea-lg { min-height: 144px !important; padding: 12px !important; }
html body.wx-vorta .pt-stage-head { gap: 12px; flex-wrap: wrap; }
html body.wx-vorta .pt-actions { gap: 8px; }
html body.wx-vorta .pt-btn { padding: 10px 8px; }
@media(min-width: 900px) {
    html body.wx-vorta .poster-grid { grid-template-columns: minmax(290px, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); }
}
@media(max-width: 899px) {
    html body.wx-vorta .poster-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    html body.wx-vorta .poster-stage { position: static; }
}
@media(max-width: 809px) {
    html body.wx-vorta .step-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 4px 16px; gap: 4px; }
    html body.wx-vorta .step-node { flex-direction: column; justify-content: center; gap: 4px; min-height: 52px; }
    html body.wx-vorta .step-circle { width: 24px; height: 24px; flex-shrink: 0; font-size: 11px; border-width: 1px; }
    html body.wx-vorta .step-label { white-space: nowrap; font-size: 11px; }
    html body.wx-vorta .step-connector { display: none; }
    html body.wx-vorta .step1-container { padding: 0 4px 32px; }
    html body.wx-vorta .step1-card { padding: 16px; }
    html body.wx-vorta .step1-section > div:has(> #creationCountSelector) { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 8px !important; }
    html body.wx-vorta #creationCountSelector { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
    html body.wx-vorta #creationCountSelector button { min-width: 0; padding: 6px; }
    html body.wx-vorta[data-site-page=anchor] .topbar { flex-wrap: wrap; gap: 8px; position: static; }
    html body.wx-vorta[data-site-page=anchor] .topbar-title { flex: 1 1 100%; font-size: 16px; }
    html body.wx-vorta[data-site-page=anchor] .topbar-right { width: 100%; gap: 10px; justify-content: flex-start; }
    html body.wx-vorta[data-site-page=anchor] #btnOpenLogin { min-width: 60px; padding: 8px 14px; border-radius: 7px; white-space: nowrap; }
    html body.wx-vorta[data-site-page=anchor] :is(.points-pill, .back-link) { white-space: nowrap; font-size: 11px; }
    html body.wx-vorta[data-site-page=anchor] .back-link { margin-left: auto; }
    html body.wx-vorta :is(.site-menu-toggle, .site-navigation, .site-nav-group-button) { border-radius: 12px; }
    html body.wx-vorta .site-menu-toggle { min-height: 44px; padding: 8px 14px; font-size: 12px; }
    html body.wx-vorta :is(.tool-panel-left, .tool-panel-right, .ap-card) { padding: 16px !important; }
    html body.wx-vorta :is(.tool-panel-left, .tool-panel-right) button { max-width: 100%; min-width: 0 !important; }
    html body.wx-vorta :is(.panel-title, .results-head) { flex-wrap: wrap; gap: 8px; }
    html body.wx-vorta :is(.field select, .inline-row select, .ms-select-row select, .ap-select) { min-width: 0; width: 100%; }
    html body.wx-vorta :is(.pt-text-input, textarea.pt-textarea-lg, .ap-input) { font-size: 16px !important; }
    html body.wx-vorta #pageRawImg .ap-card > div:has(> div > #rawImgSize) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 12px !important; }
    html body.wx-vorta #pageRawImg .ap-card > div > div:has(> select) { min-width: 0; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 6px !important; }
    html body.wx-vorta #pageRawImg .ap-card > div > div:has(> select) > span { font-size: 11px !important; }
    html body.wx-vorta #pageRawImg .ap-card > div:has(> div > #rawImgSize) > div[style="flex:1;"] { display: none; }
    html body.wx-vorta #rawImgBtn { grid-column: 1 / -1; width: 100%; }
    html body.wx-vorta #piSizeSelector { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; }
    html body.wx-vorta #piSizeSelector .mode-btn { padding: 8px 4px; font-size: 11px !important; }
    html body.wx-vorta[data-site-page=workbench] .main { width: 100%; min-width: 0; padding: 16px; }
    html body.wx-vorta[data-site-page=workbench] .grid2 { grid-template-columns: minmax(0, 1fr); }
    html body.wx-vorta[data-site-page=workbench] .item { flex-wrap: wrap; gap: 8px; }
    html body.wx-vorta[data-site-page=workbench] .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 7px !important; }
}
@media(max-width: 359px) {
    html body.wx-vorta .pt-size-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body.wx-vorta .pt-mode-tab { padding: 10px 8px; }
    html body.wx-vorta #piSizeSelector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
