:root {
    --v2-blue: #146cff;
    --v2-blue-dark: #0b4ed1;
    --v2-blue-soft: #edf5ff;
    --v2-ink: #11223b;
    --v2-muted: #667994;
    --v2-bg: #f6f9ff;
    --v2-card: #ffffff;
    --v2-border: #dce7f7;
    --v2-border-strong: #bcd2f5;
    --v2-shadow: 0 18px 50px rgba(35, 84, 160, 0.1);
}

html.dark-mode body.public-home-v2,
html.dark-mode body.workspace-page-v2 {
    --v2-blue: #4d9cff;
    --v2-blue-dark: #2f82f2;
    --v2-blue-soft: #102d55;
    --v2-ink: #edf5ff;
    --v2-muted: #9eb1cc;
    --v2-bg: #07111f;
    --v2-card: #0d1b2f;
    --v2-border: #233955;
    --v2-border-strong: #31527c;
    --v2-shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body.public-home-v2,
body.workspace-page-v2 {
    margin: 0;
    color: var(--v2-ink);
    background-color: var(--v2-bg);
    background-image:
        radial-gradient(ellipse 75% 42% at 50% -4%, rgba(20, 108, 255, 0.085), transparent 68%),
        radial-gradient(circle at 86% 12%, rgba(14, 165, 233, 0.075), transparent 44%),
        radial-gradient(rgba(20, 108, 255, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
    background-attachment: fixed, fixed, scroll;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.dark-mode body.public-home-v2,
html.dark-mode body.workspace-page-v2 {
    background-color: var(--v2-bg);
    background-image:
        radial-gradient(ellipse 80% 45% at 50% -6%, rgba(56, 189, 248, 0.15), transparent 65%),
        radial-gradient(circle at 84% 16%, rgba(37, 99, 235, 0.14), transparent 46%),
        radial-gradient(rgba(148, 163, 184, 0.085) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
}

body.public-home-v2 *,
body.workspace-page-v2 * {
    box-sizing: border-box;
}

body.public-home-v2 a,
body.workspace-page-v2 a {
    color: inherit;
    text-decoration: none;
}

body.public-home-v2 button,
body.public-home-v2 textarea {
    font-family: inherit;
}

.v3-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.v2-skip-link {
    position: fixed;
    z-index: 9999;
    top: 10px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff !important;
    background: var(--v2-blue);
    transform: translateY(-160%);
}

.v2-skip-link:focus {
    transform: translateY(0);
}

.v2-public-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(220, 231, 247, 0.94);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.v2-public-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(35, 84, 160, 0.06);
}

.v2-public-header__inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 0 24px;
}

.v2-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.v2-brand img {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;
}

.v2-brand__logo--dark {
    display: none !important;
}

html.dark-mode body.public-home-v2 .v2-brand__logo--light {
    display: none !important;
}

html.dark-mode body.public-home-v2 .v2-brand__logo--dark {
    display: block !important;
}

.v3-canvas-label-compact {
    display: none;
}

.v3-header-context {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid var(--v2-border);
    color: #70819a;
    font-size: 13px;
    font-weight: 700;
}

.v2-public-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.v2-public-nav a,
.v2-public-mobile-nav a {
    color: #53657f;
    font-size: 13px;
    font-weight: 650;
}

.v2-public-nav a:hover,
.v2-public-nav a:focus-visible,
.v2-public-mobile-nav a:hover,
.v2-public-mobile-nav a:focus-visible {
    color: var(--v2-blue);
}

.v2-public-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-left: 24px;
}

.v2-theme-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--v2-border);
    border-radius: 11px;
    color: var(--v2-ink);
    background: var(--v2-card);
    font: inherit;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.v2-theme-toggle:hover {
    color: var(--v2-blue);
    border-color: #78abf8;
    background: var(--v2-blue-soft);
    transform: translateY(-1px);
}

.v2-theme-toggle:focus-visible {
    outline: 3px solid rgba(20, 108, 255, 0.24);
    outline-offset: 2px;
}

.v2-theme-toggle svg {
    width: 18px;
    height: 18px;
}

.v2-theme-toggle [hidden] {
    display: none !important;
}

.v2-user-hello {
    max-width: 130px;
    overflow: hidden;
    color: var(--v2-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.v2-button:hover {
    transform: translateY(-1px);
}

.v2-button:focus-visible,
.v2-reference-button:focus-visible,
.v2-quick-prompts button:focus-visible,
.v2-mobile-menu-button:focus-visible,
.v3-mode-tabs button:focus-visible,
.v3-mode-tabs a:focus-visible,
.v3-sidebar a:focus-visible,
.v3-sidebar button:focus-visible {
    outline: 3px solid rgba(20, 108, 255, 0.24);
    outline-offset: 2px;
}

.v2-button--primary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, var(--v2-blue) 0%, #0284c7 100%);
    box-shadow: 0 10px 24px rgba(20, 108, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.v2-button--primary:hover {
    background: linear-gradient(135deg, var(--v2-blue-dark) 0%, #0369a1 100%);
    box-shadow: 0 14px 28px rgba(20, 108, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.v2-button--ghost {
    color: var(--v2-ink);
    border-color: var(--v2-border);
    background: #fff;
}

.v2-button--ghost:hover {
    color: var(--v2-blue);
    border-color: #9fc1ff;
}

.v2-mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 1px solid var(--v2-border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.v2-mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 99px;
    background: var(--v2-ink);
}

.v2-public-mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding: 6px 14px 14px;
    border-top: 1px solid #edf2fa;
    background: #fff;
}

.v2-public-mobile-nav[hidden] {
    display: none;
}

.v2-public-mobile-nav a {
    padding: 11px 12px;
    border-radius: 9px;
}

.v2-public-mobile-nav a:hover {
    background: var(--v2-blue-soft);
}

.v2-public-mobile-nav__auth {
    border: 1px solid var(--v2-border);
    text-align: center;
}

.v2-public-mobile-nav__auth--primary {
    color: #fff !important;
    border-color: var(--v2-blue);
    background: var(--v2-blue);
}

.v2-public-mobile-nav__auth--primary:hover,
.v2-public-mobile-nav__auth--primary:focus-visible {
    color: #fff !important;
    border-color: var(--v2-blue-dark);
    background: var(--v2-blue-dark);
}

.v3-workbench {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: calc(100vh - 65px);
}

.v3-sidebar {
    position: sticky;
    top: 65px;
    display: flex;
    align-self: start;
    flex-direction: column;
    width: 224px;
    height: calc(100vh - 65px);
    padding: 22px 16px 18px;
    border-right: 1px solid var(--v2-border);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
}

.v3-sidebar__nav {
    display: grid;
    gap: 5px;
}

.v3-sidebar__nav a,
.v3-sidebar__nav button,
.v3-sidebar__help {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    color: #52647e;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.v3-sidebar__nav a:hover,
.v3-sidebar__nav button:hover,
.v3-sidebar__help:hover {
    color: var(--v2-blue);
    background: #f4f8ff;
}

.v3-sidebar__nav .is-active {
    color: var(--v2-blue);
    background: var(--v2-blue-soft);
    font-weight: 800;
}

.v3-sidebar__nav svg,
.v3-sidebar__help svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.v3-sidebar__nav em {
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 999px;
    color: var(--v2-blue);
    background: #e4f0ff;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.v3-sidebar__divider {
    height: 1px;
    margin: 18px 10px;
    background: #eaf0f8;
}

.v3-sidebar__label {
    margin: 0 12px 8px;
    color: #98a5b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.v3-sidebar__help {
    margin-top: auto;
}

.v3-workspace {
    min-width: 0;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 38px 48px 0;
}

.v3-creator {
    scroll-margin-top: 88px;
}

/* The homepage starts one task; secondary tools live in the shared launcher. */
body.public-home-v2 .v3-workspace {
    width: min(1160px, 100%);
    padding-top: 28px;
}

body.public-home-v2 .v3-create-box--simple .v3-composer-main {
    display: block;
    min-height: 0;
    padding: 16px 20px 8px;
}

body.public-home-v2 .v3-create-box--simple textarea {
    min-height: 82px;
    height: 82px;
    max-height: 180px;
    font-size: 16px;
    line-height: 1.65;
}

body.public-home-v2 .v3-scene-tabs {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px 2px;
}
body.public-home-v2 .v3-scene-tabs__track {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(188, 210, 245, 0.78);
    border-radius: 12px;
    background: rgba(235, 243, 255, 0.72);
    box-shadow: inset 0 1px 2px rgba(17, 34, 59, 0.04);
}
body.public-home-v2 .v3-scene-tabs button {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 34px; padding: 6px 14px; border: 1px solid transparent; border-radius: 9px;
    background: transparent; color: var(--v2-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
body.public-home-v2 .v3-scene-tabs button svg { width: 14px; height: 14px; opacity: 0.85; }
body.public-home-v2 .v3-scene-tabs button:hover { color: var(--v2-ink); }
body.public-home-v2 .v3-scene-tabs button[aria-pressed="true"] {
    color: var(--v2-blue);
    background: #fff;
    border-color: rgba(20, 108, 255, 0.2);
    box-shadow: 0 2px 8px rgba(20, 108, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
body.public-home-v2 .v3-scene-tabs > span {
    margin-left: auto;
    padding: 5px 11px;
    border: 1px solid var(--v2-border);
    border-radius: 999px;
    background: rgba(246, 249, 255, 0.85);
    color: var(--v2-muted);
    font-size: 11px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
body.public-home-v2 .v3-scene-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 2px 20px 12px; }
body.public-home-v2 .v3-scene-examples > span { color: var(--v2-muted); font-size: 11.5px; font-weight: 600; margin-right: 2px; }
body.public-home-v2 .v3-scene-examples button {
    min-height: 30px; padding: 5px 12px; border: 1px solid var(--v2-border); border-radius: 999px;
    color: #465b78; background: rgba(246, 249, 255, 0.82); font: inherit; font-size: 12px; font-weight: 550; cursor: pointer;
    transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
body.public-home-v2 .v3-scene-examples button:hover { color: var(--v2-blue); border-color: var(--v2-blue); transform: translateY(-1px); }
body.public-home-v2 .v3-entry-feedback { margin: 0; padding: 0 18px 10px; color: var(--v2-blue); font-size: 12px; line-height: 1.6; }
body.public-home-v2 .v3-entry-feedback button, body.public-home-v2 .v2-template-status button {
    margin-left: 8px; padding: 2px 5px; border: 0; background: transparent; color: var(--v2-blue); font: inherit; text-decoration: underline; cursor: pointer;
}
body.public-home-v2 .v3-entry-feedback[hidden], body.public-home-v2 .v3-entry-feedback button[hidden] { display: none; }
body.public-home-v2 .v3-scene-tabs button:focus-visible,
body.public-home-v2 .v3-scene-examples button:focus-visible,
body.public-home-v2 .v3-template-empty a:focus-visible,
body.public-home-v2 .v3-template-empty button:focus-visible,
body.public-home-v2 .v3-scene-template a:focus-visible { outline: 2px solid var(--v2-blue); outline-offset: 2px; }

body.public-home-v2 .v3-create-box--simple .v2-create-box__actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px 14px;
    border-top: 0;
    background: transparent;
}

body.public-home-v2 .v3-create-box--simple .v3-reference-link {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-radius: 6px;
    color: var(--v2-muted);
    background: transparent;
    font-size: 13px;
}

body.public-home-v2 .v3-reference-link svg { width: 18px; height: 18px; }
body.public-home-v2 .v3-reference-link:hover { color: var(--v2-blue); }
body.public-home-v2 .v3-create-box--simple .v2-create-box__submit-wrap { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
body.public-home-v2 .v3-submit-kbd {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--v2-border);
    border-radius: 6px;
    background: rgba(246, 249, 255, 0.8);
    color: var(--v2-muted);
    font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

body.public-home-v2 .v3-creator__footer--simple {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
}

body.public-home-v2 .v3-creator__footer--simple .v2-text-link { font-size: 12px; }
body.public-home-v2 .v3-creator__shortcuts {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
body.public-home-v2 .v3-creator__shortcuts-label {
    color: var(--v2-muted);
    font-size: 12px;
}
body.public-home-v2 .v3-creator__shortcut {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid var(--v2-border);
    border-radius: 999px;
    color: var(--v2-ink);
    background: var(--v2-card);
    font-size: 12px;
    font-weight: 600;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
body.public-home-v2 .v3-creator__shortcut svg {
    width: 13px;
    height: 13px;
    color: var(--v2-blue);
}
body.public-home-v2 .v3-creator__shortcut:hover,
body.public-home-v2 .v3-creator__shortcut:focus-visible {
    color: var(--v2-blue);
    border-color: var(--v2-blue);
    background: var(--v2-blue-soft);
}
body.public-home-v2 .v3-creator__footer--simple .v3-safe-note {
    flex: initial;
    margin: 0 0 0 auto;
    color: var(--v2-muted);
    font-size: 12px;
    white-space: normal;
}

.v3-recent-works {
    margin-top: 28px;
}
.v3-recent-works[hidden] { display: none !important; }
.v3-recent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.v3-recent-actions button { border: 0; background: transparent; font: inherit; cursor: pointer; }
.v3-recent-actions .v2-text-link { min-height: 32px; padding: 4px 0; font-size: 12px; }
.v3-recent-actions button:disabled { opacity: .55; cursor: default; }
.v3-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v3-recent-card {
    display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px;
    border: 1px solid var(--v2-border); border-radius: 13px;
    color: var(--v2-ink); background: var(--v2-card); text-decoration: none;
}
.v3-recent-card:hover { border-color: var(--v2-blue); }
.v3-recent-card:focus-visible, .v3-recent-actions button:focus-visible { outline: 2px solid var(--v2-blue); outline-offset: 3px; }
.v3-recent-card__media {
    display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 64px;
    overflow: hidden; border-radius: 8px; background: var(--v2-blue-soft); color: var(--v2-blue);
}
.v3-recent-card__media img { width: 100%; height: 100%; object-fit: cover; }
.v3-recent-card__media svg { width: 22px; height: 22px; }
.v3-recent-card__copy { display: grid; gap: 4px; min-width: 0; }
.v3-recent-card__copy strong {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; font-weight: 600;
}
.v3-recent-card__copy small { color: var(--v2-muted); font-size: 11px; line-height: 1.5; }
.v3-recent-card__action { color: var(--v2-blue); font-size: 11px; }
.v3-recent-state {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px 20px; padding: 20px;
    border: 1px solid var(--v2-border); border-radius: 13px; background: var(--v2-card);
}
.v3-recent-state strong { color: var(--v2-ink); font-size: 14px; font-weight: 600; }
.v3-recent-state p { margin: 5px 0 0; color: var(--v2-muted); font-size: 12px; line-height: 1.5; }
.v3-recent-state .v2-button { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.v3-recent-loading { grid-column: 1 / -1; margin: 0; padding: 20px 0; color: var(--v2-muted); font-size: 13px; }

body.public-home-v2 .v3-templates { padding-top: 30px; }
body.public-home-v2 .v3-scene-template .v2-template-card__media { display: grid; place-items: center; text-decoration: none; }
body.public-home-v2 .v3-scene-template .v2-template-card__media small { font-size: 12px; color: #244f86; }
body.public-home-v2 .v3-scene-template .v2-template-card__body { display: grid; gap: 10px; padding: 14px 15px; }
body.public-home-v2 .v3-template-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; }
body.public-home-v2 .v3-template-actions a { display: inline-flex; align-items: center; min-height: 30px; color: var(--v2-muted); font-size: 12px; font-weight: 550; text-decoration: none; }
body.public-home-v2 .v3-template-actions a:hover { color: var(--v2-blue); }
body.public-home-v2 .v3-scene-template .v2-template-card__action {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border: 1px solid rgba(20, 108, 255, 0.2);
    border-radius: 999px;
    background: var(--v2-blue-soft);
    color: var(--v2-blue);
    font-size: 11.5px;
    font-weight: 650;
    transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
body.public-home-v2 .v3-scene-template .v2-template-card__action:hover {
    border-color: var(--v2-blue);
    transform: translateY(-1px);
}
body.public-home-v2 .v3-template-empty { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--v2-border); border-radius: 13px; background: var(--v2-card); }
body.public-home-v2 .v3-template-empty p { margin: 0; color: var(--v2-muted); font-size: 13px; line-height: 1.7; }
body.public-home-v2 .v3-video-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
body.public-home-v2 .v3-video-preset {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--v2-border);
    border-radius: 11px;
    background: var(--v2-bg);
}
body.public-home-v2 .v3-video-preset__badge {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--v2-blue);
    background: var(--v2-blue-soft);
    font-size: 11px;
    font-weight: 600;
}
body.public-home-v2 .v3-video-preset strong {
    color: var(--v2-ink);
    font-size: 14px;
    font-weight: 650;
}
body.public-home-v2 .v3-video-preset p {
    margin: 0;
    color: var(--v2-muted);
    font-size: 12px;
    line-height: 1.6;
}
body.public-home-v2 .v3-video-preset__action {
    margin-top: auto;
    padding-top: 6px;
    align-self: flex-start;
}
body.public-home-v2 .v3-template-empty__actions { display: flex; flex-wrap: wrap; gap: 10px 20px; }
body.public-home-v2 .v3-template-empty__actions:not(:empty) { margin-top: 12px; }
body.public-home-v2 .v3-template-empty a, body.public-home-v2 .v3-template-empty button {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0; border: 0; background: transparent;
    color: var(--v2-blue); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer;
}

@media (max-width: 600px) {
    body.public-home-v2 .v3-workspace { padding-top: 22px; }
    body.public-home-v2 .v3-create-box--simple .v3-composer-main { padding: 16px 14px 8px; }
    body.public-home-v2 .v3-create-box--simple textarea { min-height: 90px; height: 90px; }
    body.public-home-v2 .v3-create-box--simple .v2-create-box__actions { padding: 0 14px 14px; }
    body.public-home-v2 .v3-create-box--simple .v2-create-submit { padding: 0 14px; font-size: 13px; }
    body.public-home-v2 .v3-create-box--simple .v3-reference-link { font-size: 12px; }
    body.public-home-v2 .v3-scene-tabs { gap: 6px; padding: 10px 12px 0; }
    body.public-home-v2 .v3-scene-tabs button { padding: 6px 10px; font-size: 12px; }
    body.public-home-v2 .v3-scene-tabs button svg { display: none; }
    body.public-home-v2 .v3-scene-tabs > span { font-size: 10px; padding: 3px 8px; }
    body.public-home-v2 .v3-submit-kbd,
    body.public-home-v2 .v3-creator__signals { display: none; }
    body.public-home-v2 .v2-template-card__media { height: 162px; }
    body.public-home-v2 .v3-scene-template .v2-template-card__body { padding: 11px 12px; gap: 8px; }
    body.public-home-v2 .v3-scene-template .v2-template-card__action { padding: 3px 8px; font-size: 10.5px; min-height: 26px; }
    body.public-home-v2 .v3-template-actions { gap: 4px; }
    body.public-home-v2 .v3-template-actions a { font-size: 11px; min-height: 26px; }
    body.public-home-v2 .v3-scene-examples { padding: 0 14px 9px; gap: 5px; }
    body.public-home-v2 .v3-entry-feedback { padding: 0 14px 9px; }
    body.public-home-v2 .v3-creator__footer--simple .v3-safe-note { margin-left: 0; width: 100%; }
    body.public-home-v2 .v3-video-presets { grid-template-columns: 1fr; }
    .v3-recent-grid { grid-template-columns: 1fr; gap: 9px; }
    .v3-recent-card { padding: 10px 12px; }
    .v3-recent-card__media { width: 48px; height: 48px; flex-basis: 48px; }
    .v3-recent-card__copy strong { -webkit-line-clamp: 1; }
    .v3-recent-actions { gap: 12px; }
    .v3-recent-works .v3-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
}

.v3-creator__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.v3-creator__subtitle {
    margin: 8px 0 0;
    color: var(--v2-muted);
    font-size: 14px;
    line-height: 1.5;
}

.v3-creator__signals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 4px;
}

.v3-creator__signals > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid rgba(188, 210, 245, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    color: #4b607c;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.v3-creator__signals > span > i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v2-blue), #38bdf8);
}

.v3-eyebrow,
.v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 4px 11px;
    border: 1px solid rgba(20, 108, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(8px);
    color: var(--v2-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.v3-eyebrow span,
.v2-eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v2-blue), #38bdf8);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
    animation: v3-eyebrow-pulse 2.8s ease-in-out infinite;
}

@keyframes v3-eyebrow-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.28); }
}

.v3-creator__heading h1 {
    margin: 0;
    color: var(--v2-ink);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.035em;
}

html.dark-mode body.public-home-v2 .v3-eyebrow {
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(16, 45, 85, 0.56);
    color: #7dd3fc;
}

html.dark-mode body.public-home-v2 .v3-creator__heading h1 {
    background: linear-gradient(135deg, #ffffff 35%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.v3-creator__heading > p {
    margin: 0 0 3px;
    color: var(--v2-muted);
    font-size: 13px;
}

.v3-mode-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.v3-mode-tabs::-webkit-scrollbar {
    display: none;
}

.v3-mode-tabs button,
.v3-mode-tabs a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #5c6e87;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.v3-mode-tabs button:hover,
.v3-mode-tabs a:hover {
    color: var(--v2-blue);
    background: #edf4ff;
}

.v3-mode-tabs button.is-active {
    color: var(--v2-blue);
    border-color: #bcd5ff;
    background: #fff;
    box-shadow: 0 5px 16px rgba(34, 87, 170, 0.08);
}

.v3-mode-tabs svg {
    width: 16px;
    height: 16px;
}

.v3-mode-tabs small {
    padding: 2px 5px;
    border-radius: 999px;
    color: var(--v2-blue);
    background: #e6f1ff;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.v3-image25-launch {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(390px, 1.35fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    padding: 11px 12px 11px 15px;
    border: 1px solid #c9ddfb;
    border-radius: 15px;
    background: linear-gradient(105deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: 0 8px 24px rgba(20, 108, 255, 0.06);
}

.v3-image25-launch[hidden] {
    display: none;
}

.v3-image25-launch__intro {
    min-width: 0;
}

.v3-image25-launch__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v3-image25-launch__title > span {
    padding: 3px 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--v2-blue);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.v3-image25-launch__title strong {
    color: var(--v2-ink);
    font-size: 13px;
}

.v3-image25-launch__intro p {
    margin: 5px 0 0;
    overflow: hidden;
    color: #6b7f99;
    font-size: 10px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-image25-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.v3-image25-switch button {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #dbe7f7;
    border-radius: 11px;
    color: #536983;
    background: rgba(255, 255, 255, 0.78);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.v3-image25-switch button:hover {
    border-color: #9dc1f8;
    background: #fff;
}

.v3-image25-switch button.is-active {
    border-color: var(--v2-blue);
    color: var(--v2-blue-dark);
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 108, 255, 0.11);
}

.v3-image25-switch button > span,
.v3-image25-switch strong,
.v3-image25-switch small {
    display: block;
    min-width: 0;
}

.v3-image25-switch strong {
    font-size: 12px;
}

.v3-image25-switch small {
    margin-top: 2px;
    color: #8495aa;
    font-size: 9px;
    font-weight: 550;
}

.v3-image25-switch em {
    flex: 0 0 auto;
    color: #71849d;
    font-size: 9px;
    font-style: normal;
    white-space: nowrap;
}

.v3-image25-switch button.is-active em {
    color: var(--v2-blue);
}

.v2-create-box {
    overflow: hidden;
    border: 1px solid rgba(188, 210, 245, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    box-shadow:
        0 20px 52px rgba(20, 62, 130, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 0 0 5px rgba(20, 108, 255, 0.025);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.v2-create-box:focus-within {
    border-color: var(--v2-blue);
    box-shadow:
        0 24px 58px rgba(20, 108, 255, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 0 0 4px rgba(14, 165, 233, 0.12);
}

.v3-composer-main {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 18px;
    min-height: 162px;
    padding: 18px;
}

.v2-create-box.is-reference-hidden .v3-composer-main {
    grid-template-columns: minmax(0, 1fr);
}

.v2-reference-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
    min-height: 126px;
    padding: 14px;
    border: 1px dashed #9fc1f5;
    border-radius: 14px;
    color: #405875;
    background: #f6faff;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.v2-reference-button[hidden] {
    display: none;
}

.v2-reference-button:hover {
    color: var(--v2-blue);
    border-color: var(--v2-blue);
    background: var(--v2-blue-soft);
}

.v3-reference-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #cfe0fb;
    border-radius: 12px;
    color: var(--v2-blue);
    background: #fff;
    box-shadow: 0 6px 14px rgba(20, 108, 255, 0.08);
}

.v3-reference-icon svg {
    width: 20px;
    height: 20px;
}

.v2-reference-button strong,
.v2-reference-button small {
    display: block;
}

.v2-reference-button strong {
    font-size: 13px;
}

.v2-reference-button small {
    margin-top: 5px;
    color: #8797ad;
    font-size: 10px;
    font-weight: 500;
}

.v3-prompt-field {
    min-width: 0;
    padding: 8px 6px;
}

.v2-create-box textarea {
    display: block;
    width: 100%;
    min-height: 124px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--v2-ink);
    background: transparent;
    font: inherit;
    font-size: 16px;
    line-height: 1.7;
    resize: vertical;
}

.v2-create-box textarea::placeholder {
    color: #96a5b8;
}

.v2-create-box__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    padding: 11px 14px 11px 18px;
    border-top: 1px solid #eaf0f8;
    background: #fbfdff;
}

.v3-composer-settings {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.v3-composer-settings > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #e1eaf6;
    border-radius: 9px;
    color: #52667f;
    background: #fff;
    white-space: nowrap;
}

.v3-composer-settings svg {
    width: 14px;
    height: 14px;
    color: var(--v2-blue);
}

.v3-composer-settings b {
    font-size: 11px;
    font-weight: 700;
}

.v2-create-box__submit-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.v2-create-box__submit-wrap > span {
    max-width: 130px;
    color: var(--v2-muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: right;
}

.v2-create-submit {
    min-height: 46px;
    padding: 0 19px;
}

.v2-create-submit svg {
    width: 17px;
    height: 17px;
}

.v3-creator__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
}

.v2-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.v2-quick-prompts button {
    padding: 7px 11px;
    border: 1px solid var(--v2-border);
    border-radius: 999px;
    color: #5c6f88;
    background: rgba(255, 255, 255, 0.84);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.v2-quick-prompts button:hover {
    color: var(--v2-blue);
    border-color: #aac8ff;
    background: #fff;
}

.v3-safe-note {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin: 7px 0 0;
    color: #8291a5;
    font-size: 10px;
    white-space: nowrap;
}

.v3-safe-note svg {
    width: 14px;
    height: 14px;
    color: #36a66d;
}

.v3-quick-tools,
.v3-templates {
    padding-top: 42px;
}

.v3-section-heading {
    margin-bottom: 16px;
}

.v3-section-heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.v3-section-heading h2 {
    margin: 0;
    color: var(--v2-ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.v3-section-heading p {
    margin: 5px 0 0;
    color: var(--v2-muted);
    font-size: 12px;
}

.v2-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.v2-app-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-width: 0;
    min-height: 94px;
    padding: 15px;
    border: 1px solid var(--v2-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(44, 82, 137, 0.045);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.v2-app-card:hover {
    border-color: #9fc1ff;
    box-shadow: 0 12px 28px rgba(34, 87, 170, 0.1);
    transform: translateY(-2px);
}

.v2-app-card > svg {
    width: 15px;
    height: 15px;
    color: var(--v2-blue);
}

.v2-app-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--v2-blue);
    background: var(--v2-blue-soft);
}

.v2-app-card__icon svg {
    width: 17px;
    height: 17px;
}

.v2-app-card strong,
.v2-app-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-app-card strong {
    margin-bottom: 5px;
    color: var(--v2-ink);
    font-size: 13px;
    white-space: nowrap;
}

.v2-app-card small {
    color: var(--v2-muted);
    font-size: 10px;
    line-height: 1.45;
}

.v2-app-card--canvas {
    border-color: #b5d0ff;
    background: linear-gradient(145deg, #fff, #f2f7ff);
}

.v2-text-link {
    color: var(--v2-blue) !important;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.v2-template-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.v2-template-card,
.v2-template-skeleton {
    min-width: 0;
    min-height: 234px;
    border: 1px solid var(--v2-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.v2-template-skeleton {
    background: linear-gradient(105deg, #fff 20%, #edf4ff 36%, #fff 52%);
    background-size: 240% 100%;
    animation: v2-skeleton 1.5s linear infinite;
}

@keyframes v2-skeleton {
    to { background-position-x: -240%; }
}

.v2-template-card {
    box-shadow: 0 8px 24px rgba(28, 66, 126, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.v2-template-card--empty {
    display: grid;
    grid-column: 1 / -1;
    min-height: 130px;
    place-items: center;
    padding: 24px;
    color: var(--v2-blue) !important;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.v2-template-card:hover {
    border-color: rgba(20, 108, 255, 0.42);
    box-shadow: 0 16px 34px rgba(20, 108, 255, 0.13);
    transform: translateY(-3px);
}

.v2-template-card__media {
    position: relative;
    height: 196px;
    background: linear-gradient(145deg, #dceaff, #94bdff);
    overflow: hidden;
}

.v2-template-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.v2-template-card:hover .v2-template-card__media img {
    transform: scale(1.025);
}

.v2-template-card__media span {
    position: absolute;
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
    color: #fff;
    background: rgba(8, 22, 44, 0.52);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.v2-template-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
}

.v2-template-card__body > div {
    min-width: 0;
}

.v2-template-card__body strong,
.v2-template-card__body small {
    display: block;
}

.v2-template-card__body strong {
    overflow: hidden;
    color: var(--v2-ink);
    font-size: 13.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-template-card__body small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--v2-muted);
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-template-card__action {
    flex: 0 0 auto;
    color: var(--v2-blue);
    font-size: 9px;
    font-weight: 800;
}

.v2-template-status {
    margin: 10px 0 0;
    color: var(--v2-muted);
    font-size: 10px;
    text-align: center;
}

.v3-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
    padding: 18px 0 22px;
    border-top: 1px solid var(--v2-border);
}

.public-home-v2 .footer-friend-links {
    margin-top: 44px;
}

.public-home-v2 .footer-friend-links__title {
    color: var(--v2-ink);
}

.public-home-v2 .footer-friend-links__list a {
    color: var(--v2-muted);
}

.public-home-v2 .footer-friend-links__list a:hover {
    color: var(--v2-blue);
}

.v3-legal p,
.v3-legal nav {
    margin: 0;
    color: #8a99ac;
    font-size: 10px;
}

.v3-legal nav {
    display: flex;
    gap: 18px;
}

.v3-legal a:hover {
    color: var(--v2-blue);
}

html.dark-mode body.public-home-v2 .v2-public-header {
    border-bottom-color: rgba(35, 57, 85, 0.94);
    background: rgba(7, 17, 31, 0.94);
}

html.dark-mode body.public-home-v2 .v2-public-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

html.dark-mode body.public-home-v2 .v3-header-context,
html.dark-mode body.public-home-v2 .v2-public-nav a,
html.dark-mode body.public-home-v2 .v2-public-mobile-nav a,
html.dark-mode body.public-home-v2 .v3-sidebar__nav a,
html.dark-mode body.public-home-v2 .v3-sidebar__nav button,
html.dark-mode body.public-home-v2 .v3-sidebar__help,
html.dark-mode body.public-home-v2 .v3-mode-tabs button,
html.dark-mode body.public-home-v2 .v3-mode-tabs a,
html.dark-mode body.public-home-v2 .v2-reference-button,
html.dark-mode body.public-home-v2 .v2-quick-prompts button,
html.dark-mode body.public-home-v2 .v3-safe-note,
html.dark-mode body.public-home-v2 .v3-legal p,
html.dark-mode body.public-home-v2 .v3-legal nav {
    color: var(--v2-muted);
}

html.dark-mode body.public-home-v2 .v2-public-mobile-nav,
html.dark-mode body.public-home-v2 .v3-sidebar,
html.dark-mode body.public-home-v2 .v2-button--ghost,
html.dark-mode body.public-home-v2 .v2-mobile-menu-button,
html.dark-mode body.public-home-v2 .v2-create-box,
html.dark-mode body.public-home-v2 .v3-reference-icon,
html.dark-mode body.public-home-v2 .v3-composer-settings > span,
html.dark-mode body.public-home-v2 .v2-app-card,
html.dark-mode body.public-home-v2 .v2-template-card,
html.dark-mode body.public-home-v2 .v2-template-skeleton {
    background: rgba(13, 27, 47, 0.82);
    backdrop-filter: blur(16px);
}

html.dark-mode body.public-home-v2 .v2-create-box {
    border-color: rgba(77, 156, 255, 0.28);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.dark-mode body.public-home-v2 .v2-create-box:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(56, 189, 248, 0.16);
}

html.dark-mode body.public-home-v2 .v3-creator__signals > span {
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(13, 27, 47, 0.68);
    color: #b8cde8;
}

html.dark-mode body.public-home-v2 .v3-scene-tabs__track {
    border-color: rgba(56, 189, 248, 0.22);
    background: rgba(7, 17, 31, 0.68);
}

html.dark-mode body.public-home-v2 .v3-scene-tabs button[aria-pressed="true"] {
    background: linear-gradient(135deg, rgba(20, 108, 255, 0.34), rgba(14, 165, 233, 0.24));
    border-color: rgba(56, 189, 248, 0.48);
    color: #bae6fd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.dark-mode body.public-home-v2 .v3-scene-examples button {
    background: rgba(16, 36, 64, 0.72);
    border-color: rgba(77, 156, 255, 0.22);
    color: #b8cde8;
}

html.dark-mode body.public-home-v2 .v3-scene-examples button:hover {
    border-color: #38bdf8;
    color: #bae6fd;
}

html.dark-mode body.public-home-v2 .v3-submit-kbd {
    background: rgba(16, 36, 64, 0.72);
    border-color: rgba(77, 156, 255, 0.24);
    color: #93c5fd;
}

html.dark-mode body.public-home-v2 .v3-scene-template .v2-template-card__action {
    background: rgba(20, 108, 255, 0.22);
    border-color: rgba(56, 189, 248, 0.34);
    color: #7dd3fc;
}

html.dark-mode body.public-home-v2 .v3-creator__shortcut {
    background: rgba(16, 45, 85, 0.56);
    border-color: rgba(77, 156, 255, 0.26);
    color: #e2eeff;
}

html.dark-mode body.public-home-v2 .v3-creator__shortcut:hover,
html.dark-mode body.public-home-v2 .v3-creator__shortcut:focus-visible {
    background: rgba(20, 108, 255, 0.26);
    border-color: #38bdf8;
    color: #7dd3fc;
}

html.dark-mode body.public-home-v2 .v3-scene-tabs > span {
    background: rgba(16, 45, 85, 0.55);
    border-color: rgba(77, 156, 255, 0.22);
    color: #93c5fd;
}

html.dark-mode body.public-home-v2 .v2-template-card {
    border-color: rgba(56, 189, 248, 0.16);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dark-mode body.public-home-v2 .v2-template-card:hover {
    border-color: rgba(56, 189, 248, 0.48);
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.18);
}

html.dark-mode body.public-home-v2 .v3-sidebar__nav a:hover,
html.dark-mode body.public-home-v2 .v3-sidebar__nav button:hover,
html.dark-mode body.public-home-v2 .v3-sidebar__help:hover,
html.dark-mode body.public-home-v2 .v3-mode-tabs button:hover,
html.dark-mode body.public-home-v2 .v3-mode-tabs a:hover,
html.dark-mode body.public-home-v2 .v2-reference-button:hover,
html.dark-mode body.public-home-v2 .v2-quick-prompts button:hover {
    color: var(--v2-blue);
    background: var(--v2-blue-soft);
}

html.dark-mode body.public-home-v2 .v3-mode-tabs button.is-active {
    color: var(--v2-blue);
    border-color: var(--v2-border-strong);
    background: #12243c;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
}

html.dark-mode body.public-home-v2 .v2-reference-button {
    border-color: #355985;
    background: #0a1728;
}

html.dark-mode body.public-home-v2 .v2-reference-button small,
html.dark-mode body.public-home-v2 .v2-create-box textarea::placeholder {
    color: #8297b4;
}

html.dark-mode body.public-home-v2 .v2-create-box__actions {
    border-top-color: var(--v2-border);
    background: #0a1728;
}

html.dark-mode body.public-home-v2 .v3-composer-settings > span {
    border-color: var(--v2-border);
    color: #b8c9de;
}

html.dark-mode body.public-home-v2 .v2-quick-prompts button {
    background: rgba(13, 27, 47, 0.84);
}

html.dark-mode body.public-home-v2 .v3-image25-launch {
    border-color: #294c77;
    background: linear-gradient(105deg, #0b192b 0%, #102746 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

html.dark-mode body.public-home-v2 .v3-image25-launch__intro p,
html.dark-mode body.public-home-v2 .v3-image25-switch small,
html.dark-mode body.public-home-v2 .v3-image25-switch em {
    color: #8fa5c0;
}

html.dark-mode body.public-home-v2 .v3-image25-switch button {
    border-color: #29425f;
    color: #b9cae0;
    background: rgba(13, 27, 47, 0.82);
}

html.dark-mode body.public-home-v2 .v3-image25-switch button:hover,
html.dark-mode body.public-home-v2 .v3-image25-switch button.is-active {
    border-color: var(--v2-blue);
    color: #dcecff;
    background: #122b4d;
}

html.dark-mode body.public-home-v2 .v2-app-card--canvas {
    border-color: #315b93;
    background: linear-gradient(145deg, #0d1b2f, #102848);
}

html.dark-mode body.public-home-v2 .v2-template-skeleton {
    background: linear-gradient(105deg, #0d1b2f 20%, #183250 36%, #0d1b2f 52%);
    background-size: 240% 100%;
}

@media (max-width: 1180px) {
    .v3-workbench {
        grid-template-columns: 196px minmax(0, 1fr);
    }

    .v3-sidebar {
        width: 196px;
    }

    .v3-workspace {
        padding-right: 32px;
        padding-left: 32px;
    }

    .v2-app-grid,
    .v2-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v3-creator__footer {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 940px) {
    .v3-image25-launch {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .v3-composer-main {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .v2-create-box__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .v2-create-box__submit-wrap {
        justify-content: flex-end;
    }
}

@media (max-width: 820px) {
    .v3-header-context,
    .v2-public-nav,
    .v2-user-hello {
        display: none;
    }

    .v2-public-actions {
        margin-left: auto;
    }

    .v2-mobile-menu-button {
        display: block;
    }

    .v3-workbench {
        display: block;
    }

    .v3-sidebar {
        display: none;
    }

    .v3-workspace {
        padding-top: 30px;
    }
}

@media (max-width: 600px) {
    .v2-public-header__inner {
        min-height: 60px;
        padding: 0 14px;
    }

    .v2-brand img {
        max-width: 142px;
        height: 30px;
    }

    .v2-public-actions {
        gap: 6px;
    }

    .v2-public-actions [data-home-open-register] {
        display: none;
    }

    .v2-public-actions .v2-button {
        min-height: 36px;
        padding: 0 11px;
        border-radius: 9px;
        font-size: 11px;
    }

    .v2-mobile-menu-button {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .v2-public-mobile-nav {
        grid-template-columns: 1fr;
    }

    .v3-workspace {
        width: 100%;
        padding: 24px 14px 0;
    }

    .v3-creator__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        margin-bottom: 17px;
    }

    .v3-creator__heading h1 {
        font-size: 28px;
    }

    .v3-creator__heading > p {
        font-size: 12px;
    }

    .v3-mode-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        margin-right: 0;
        padding-right: 0;
        overflow: visible;
    }

    .v3-mode-tabs button,
    .v3-mode-tabs a {
        width: 100%;
        min-width: 0;
        justify-content: center;
        min-height: 36px;
        padding: 0 4px;
        gap: 3px;
        font-size: 12px;
        white-space: nowrap;
    }

    .v3-mode-tabs svg,
    .v3-mode-tabs button small {
        display: none;
    }

    .v3-mode-tabs .v3-canvas-label-full {
        display: none;
    }

    .v3-mode-tabs .v3-canvas-label-compact {
        display: inline;
    }

    .v3-mode-tabs a small {
        display: inline-flex;
        padding: 1px 3px;
        font-size: 7px;
        letter-spacing: 0;
    }

    .v3-mode-tabs [data-canvas-entry-beta][hidden] {
        display: none !important;
    }

    .v2-create-box {
        border-radius: 16px;
    }

    .v3-image25-launch {
        padding: 10px;
        border-radius: 13px;
    }

    .v3-image25-launch__intro p {
        white-space: normal;
    }

    .v3-image25-switch button {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 8px 9px;
    }

    .v3-composer-main {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 13px;
    }

    .v2-reference-button {
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        min-height: 70px;
        padding: 11px 13px;
        text-align: left;
    }

    .v3-reference-icon {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
    }

    .v3-prompt-field {
        padding: 6px 3px;
    }

    .v2-create-box textarea {
        min-height: 118px;
        font-size: 15px;
    }

    .v2-create-box__actions {
        padding: 11px 13px 13px;
    }

    .v3-composer-settings {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .v3-composer-settings::-webkit-scrollbar {
        display: none;
    }

    .v3-composer-settings > span {
        flex: 0 0 auto;
    }

    .v2-create-box__submit-wrap {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .v2-create-box__submit-wrap > span {
        max-width: none;
        text-align: center;
    }

    .v2-create-submit {
        width: 100%;
    }

    .v3-safe-note {
        align-items: flex-start;
        white-space: normal;
        line-height: 1.5;
    }

    .v3-quick-tools,
    .v3-templates {
        padding-top: 34px;
    }

    .v2-app-grid {
        grid-template-columns: 1fr;
    }

    .v2-app-card {
        min-height: 82px;
    }

    .v2-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .v2-template-card,
    .v2-template-skeleton {
        min-height: 200px;
    }

    .v2-template-card__media {
        height: 136px;
    }

    .v2-template-card__body {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
    }

    .v2-template-card__action {
        display: none;
    }

    .v3-legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .public-home-v2 .footer-friend-links {
        margin-top: 34px;
    }
}

@media (max-width: 360px) {
    .v3-mode-tabs button,
    .v3-mode-tabs a {
        padding-inline: 2px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .v2-template-grid {
        grid-template-columns: 1fr;
    }

    .v2-template-card__media {
        height: 180px;
    }
}

/* Logged-in creation home: keep the established generator, but give its shell
   the same blue-and-white workbench language as the public entry. */
html:not(.dark-mode) body.create-page {
    --brand: #146cff;
    --brand-strong: #0b4ed1;
    --brand-subtle: rgba(20, 108, 255, 0.1);
    --brand-glow: rgba(20, 108, 255, 0.2);
    --brand-light: rgba(20, 108, 255, 0.07);
    --ui-color-accent: #146cff;
    --ui-color-accent-strong: #0b4ed1;
    --ai-start: #146cff;
    --ai-end: #38bdf8;
    --bg: #f6f9ff;
    --bg-subtle: #edf5ff;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.86);
    --bg-nav: rgba(255, 255, 255, 0.94);
    --bg-elevated: #ffffff;
    --sidebar-bg: #ffffff;
    --text: #11223b;
    --text-secondary: #53657f;
    --text-muted: #7a8ca5;
    --border: #dce7f7;
    --border-strong: #bcd2f5;
    background: var(--bg);
}

html:not(.dark-mode) body.create-page .site-shell__nav,
html:not(.dark-mode) body.create-page .apple-sidebar {
    background: rgba(255, 255, 255, 0.96);
}

html:not(.dark-mode) body.create-page .chat-panel {
    background:
        radial-gradient(circle at 50% -20%, rgba(20, 108, 255, 0.09), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%) !important;
}

html:not(.dark-mode) body.create-page .chat-bottom-fixed {
    border-top: 1px solid #dce7f7 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -14px 34px rgba(35, 84, 160, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html:not(.dark-mode) body.create-page .chat-bottom-fixed .ai-tab {
    border: 1px solid #dce7f7 !important;
    background: #f6f9ff !important;
    color: #53657f !important;
}

html:not(.dark-mode) body.create-page .chat-bottom-fixed .ai-tab:hover {
    border-color: #bcd2f5 !important;
    color: #146cff !important;
}

html:not(.dark-mode) body.create-page .chat-bottom-fixed .ai-tab.is-active {
    border-color: #146cff !important;
    color: #fff !important;
    background: linear-gradient(135deg, #146cff, #0b4ed1) !important;
    box-shadow: 0 8px 20px rgba(20, 108, 255, 0.2);
}

html:not(.dark-mode) body.create-page .chat-input-wrap {
    border-color: #cfe0f8 !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(35, 84, 160, 0.1) !important;
}

html:not(.dark-mode) body.create-page .chat-input-wrap:focus-within {
    border-color: #146cff !important;
    box-shadow: 0 0 0 4px rgba(20, 108, 255, 0.1), 0 14px 32px rgba(35, 84, 160, 0.12) !important;
}

html:not(.dark-mode) body.create-page .chat-send-btn {
    background: linear-gradient(135deg, #146cff, #0b4ed1) !important;
    box-shadow: 0 8px 20px rgba(20, 108, 255, 0.22) !important;
}

body.create-page .site-shell__nav .primary-button[href="create.php"],
body.create-page .apple-sidebar .menu-group:first-child > .menu-item[href$="index.php"] {
    display: none !important;
}

body.create-page .menu-discount-badge {
    display: none !important;
}

body.create-page .chat-ref-upload {
    gap: 5px !important;
    width: auto !important;
    padding-inline: 9px !important;
}

body.create-page .chat-ref-upload-text {
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

body.create-page .chat-ref-upload.is-entry-highlight {
    border-color: rgba(20, 108, 255, 0.72) !important;
    color: #0b4ed1 !important;
    background: #edf5ff !important;
    box-shadow: 0 0 0 4px rgba(20, 108, 255, 0.12) !important;
}

body.create-page .chat-input-bar.is-ref-dragover .chat-input-wrap {
    border-color: rgba(20, 108, 255, 0.64) !important;
    background: rgba(237, 245, 255, 0.94) !important;
}

@media (min-width: 769px) {
    body.create-page .chat-welcome {
        padding: 56px 20px 28px !important;
    }

    body.create-page .chat-welcome h2 {
        font-size: 30px !important;
    }

    body.create-page .chat-bottom-fixed .ai-tabs,
    body.create-page .chat-input-bar:not(.is-video-compact) .chat-form {
        width: calc(100% - 48px) !important;
        max-width: 960px !important;
    }
}

@media (max-width: 768px) {
    body.create-page .chat-ref-upload-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .v2-template-skeleton { animation: none; }
    .v2-button,
    .v2-app-card,
    .v2-template-card,
    .v2-template-card__media img { transition: none; }
}

/* Growth signal CTA pill in homepage V3 hero */
.v3-creator__signals .v3-signal-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(20, 108, 255, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 108, 255, 0.12), rgba(14, 165, 233, 0.12));
    color: #0b55c9;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.v3-creator__signals .v3-signal-cta i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #146cff;
    box-shadow: 0 0 0 3px rgba(20, 108, 255, 0.18);
}
.v3-creator__signals .v3-signal-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(20, 108, 255, 0.58);
    box-shadow: 0 6px 16px rgba(20, 108, 255, 0.16);
}
html.dark-mode .v3-creator__signals .v3-signal-cta {
    border-color: rgba(56, 189, 248, 0.42);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(14, 165, 233, 0.2));
    color: #93c5fd;
}
html.dark-mode .v3-creator__signals .v3-signal-cta i {
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}
