/* Public appearance variants. The original presentation remains in app.css. */

.v2-hero-canvas {
    display: none;
}

[data-studio-v2-only] {
    display: none;
}

.public-language-field {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    padding: 6px 8px 6px 10px;
    color: #9cac9f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.public-language-field > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.public-language-field select {
    field-sizing: content;
    min-width: 96px;
    padding: 4px 22px 4px 5px;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    background: transparent;
    border: 0;
    outline: 0;
}

.public-language-field option {
    color: #102c2c;
    background: #f7fbf9;
}

.appearance-switcher {
    position: fixed;
    z-index: 90;
    bottom: 18px;
    left: 50%;
    display: flex;
    gap: 7px;
    align-items: stretch;
    padding: 6px;
    color: #e8f0ea;
    background: rgba(7, 18, 12, 0.9);
    border: 1px solid rgba(211, 235, 215, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.appearance-switcher__group {
    display: flex;
    gap: 7px;
    align-items: center;
}

.appearance-switcher__group[hidden] {
    display: none;
}

.appearance-switcher__group + .appearance-switcher__group {
    padding-left: 7px;
    border-left: 1px solid rgba(211, 235, 215, 0.14);
}

.appearance-switcher__group > span {
    padding-left: 5px;
    color: #8ea098;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.appearance-switcher__options {
    display: flex;
    gap: 3px;
    align-items: center;
}

.appearance-switcher button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 10px;
    color: #9cad9f;
    font-size: 9px;
    font-weight: 650;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.appearance-switcher button:hover {
    color: #f7fbf8;
    background: rgba(255, 255, 255, 0.055);
}

.appearance-switcher button[aria-pressed="true"] {
    color: #071516;
    background: #39c3c7;
    border-color: #65d7d9;
    box-shadow: 0 6px 18px rgba(34, 174, 179, 0.2);
}

.appearance-switcher button svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) body.public-chat-body {
    --display: "HK Grotesk", "Avenir Next", "Century Gothic", sans-serif;
    --sans: "HK Grotesk", "Avenir Next", "Century Gothic", sans-serif;
    --ink: var(--v2-ink);
    --muted: var(--v2-muted);
    --line: var(--v2-line);
    --panel: var(--v2-panel);
    --panel-solid: var(--v2-panel-solid);
    --canvas: var(--v2-canvas);
    --acid: var(--v2-accent);
    --acid-dark: var(--v2-accent-strong);
    --mint: var(--v2-accent);
    color: var(--v2-ink);
    background:
        radial-gradient(circle at 88% 10%, var(--v2-glow), transparent 31rem),
        radial-gradient(circle at 9% 74%, var(--v2-glow-secondary), transparent 34rem),
        var(--v2-canvas);
    transition: color 180ms ease, background-color 180ms ease;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) body.public-chat-body::before {
    z-index: 0;
    opacity: 1;
    background-image:
        linear-gradient(var(--v2-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 94%);
}

html[data-public-chat-layout="studio"][data-public-chat-theme="night"] body.public-chat-body {
    --v2-canvas: #071416;
    --v2-panel: rgba(12, 30, 32, 0.88);
    --v2-panel-solid: #0b2022;
    --v2-panel-raised: rgba(17, 39, 41, 0.96);
    --v2-input: rgba(4, 17, 19, 0.88);
    --v2-ink: #eff8f6;
    --v2-muted: #8ca5a3;
    --v2-line: rgba(160, 215, 214, 0.17);
    --v2-line-strong: rgba(70, 201, 202, 0.38);
    --v2-accent: #39c3c7;
    --v2-accent-strong: #179ba0;
    --v2-accent-ink: #041517;
    --v2-secondary: #b7e638;
    --v2-grid: rgba(122, 188, 188, 0.065);
    --v2-glow: rgba(38, 182, 185, 0.18);
    --v2-glow-secondary: rgba(101, 176, 126, 0.09);
    --v2-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

html[data-public-chat-layout="studio"][data-public-chat-theme="day"] body.public-chat-body {
    --v2-canvas: #edf6f3;
    --v2-panel: rgba(255, 255, 255, 0.82);
    --v2-panel-solid: #f9fcfb;
    --v2-panel-raised: rgba(255, 255, 255, 0.96);
    --v2-input: rgba(244, 250, 248, 0.96);
    --v2-ink: #102c2c;
    --v2-muted: #617978;
    --v2-line: rgba(20, 83, 83, 0.15);
    --v2-line-strong: rgba(13, 151, 155, 0.38);
    --v2-accent: #0fa6aa;
    --v2-accent-strong: #087c80;
    --v2-accent-ink: #f7ffff;
    --v2-secondary: #6d8f05;
    --v2-grid: rgba(22, 98, 96, 0.065);
    --v2-glow: rgba(25, 180, 180, 0.13);
    --v2-glow-secondary: rgba(117, 174, 100, 0.12);
    --v2-shadow: 0 28px 80px rgba(20, 72, 70, 0.14);
}

html[data-public-chat-layout="canvas"][data-public-chat-theme="night"] body.public-chat-body {
    --v2-canvas: #07110e;
    --v2-panel: rgba(14, 28, 23, 0.88);
    --v2-panel-solid: #0d1c17;
    --v2-panel-raised: rgba(19, 38, 31, 0.96);
    --v2-input: rgba(4, 14, 11, 0.9);
    --v2-ink: #f2f7f1;
    --v2-muted: #93a49a;
    --v2-line: rgba(196, 224, 201, 0.14);
    --v2-line-strong: rgba(181, 230, 55, 0.35);
    --v2-accent: #b5e637;
    --v2-accent-strong: #83ad16;
    --v2-accent-ink: #0c180c;
    --v2-secondary: #37bec1;
    --v2-grid: rgba(177, 215, 183, 0.055);
    --v2-glow: rgba(176, 226, 51, 0.13);
    --v2-glow-secondary: rgba(43, 177, 181, 0.12);
    --v2-shadow: 0 30px 95px rgba(0, 0, 0, 0.38);
}

html[data-public-chat-layout="canvas"][data-public-chat-theme="day"] body.public-chat-body {
    --v2-canvas: #f3f7f3;
    --v2-panel: rgba(255, 255, 255, 0.84);
    --v2-panel-solid: #fbfdf9;
    --v2-panel-raised: rgba(255, 255, 255, 0.98);
    --v2-input: rgba(247, 250, 246, 0.96);
    --v2-ink: #1c3025;
    --v2-muted: #6e7e73;
    --v2-line: rgba(44, 81, 55, 0.14);
    --v2-line-strong: rgba(100, 143, 9, 0.34);
    --v2-accent: #7fa70d;
    --v2-accent-strong: #5f8006;
    --v2-accent-ink: #fbfff5;
    --v2-secondary: #0c9ea2;
    --v2-grid: rgba(54, 91, 64, 0.055);
    --v2-glow: rgba(146, 188, 30, 0.13);
    --v2-glow-secondary: rgba(23, 166, 169, 0.1);
    --v2-shadow: 0 28px 80px rgba(48, 78, 54, 0.14);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .site-frame {
    position: relative;
    z-index: 1;
    width: min(1580px, calc(100% - 28px));
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .site-header {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
    min-height: 76px;
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .appearance-switcher {
    position: static;
    justify-self: center;
    color: var(--v2-ink);
    background: var(--v2-panel);
    border-color: var(--v2-line);
    border-radius: 13px;
    box-shadow: none;
    backdrop-filter: blur(18px);
    transform: none;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .appearance-switcher__group + .appearance-switcher__group {
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .appearance-switcher__group > span,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .appearance-switcher button {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .appearance-switcher button:hover {
    color: var(--v2-ink);
    background: var(--v2-input);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .appearance-switcher button[aria-pressed="true"] {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-color: color-mix(in srgb, var(--v2-accent), white 24%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .brand-mark {
    width: 42px;
    height: 42px;
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-radius: 50% 50% 50% 14px;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--v2-accent), transparent 88%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .brand-copy strong {
    color: var(--v2-ink);
    font-size: 16px;
    font-weight: 650;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .brand-copy small {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .public-language-field {
    justify-self: end;
    color: var(--v2-muted);
    background: var(--v2-panel);
    border-color: var(--v2-line);
    backdrop-filter: blur(18px);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .public-language-field:focus-within {
    color: var(--v2-ink);
    border-color: var(--v2-line-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--v2-accent), transparent 88%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100dvh - 76px);
    overflow: hidden;
    border-bottom: 1px solid var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero::before {
    position: absolute;
    z-index: -2;
    inset: 18px 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 49.9%, var(--v2-line) 50%, transparent 50.1%),
        linear-gradient(transparent 49.9%, var(--v2-line) 50%, transparent 50.1%);
    border: 1px solid var(--v2-line);
    border-radius: 22px;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero-copy,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-panel {
    position: relative;
    z-index: 2;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .eyebrow,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .trust-strip {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .eyebrow span,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero h1 em,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .panel-index,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .result-kicker {
    color: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero h1 {
    color: var(--v2-ink);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero h1 em {
    font-style: normal;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .hero-lead {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .trust-strip span::before {
    color: var(--v2-secondary);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-panel {
    color: var(--v2-ink);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--v2-panel-raised), transparent 4%), var(--v2-panel)),
        var(--v2-panel-solid);
    border-color: var(--v2-line-strong);
    border-radius: 20px;
    box-shadow: var(--v2-shadow);
    backdrop-filter: blur(18px);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-panel::before {
    position: absolute;
    top: -1px;
    left: 28px;
    width: 96px;
    height: 3px;
    content: "";
    background: var(--v2-accent);
    box-shadow: 104px 0 0 color-mix(in srgb, var(--v2-accent), transparent 74%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-panel::after {
    background: var(--v2-glow);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-panel__heading h2,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-form > label {
    color: var(--v2-ink);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-panel__heading h2 {
    font-weight: 620;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .secure-label {
    color: var(--v2-muted);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-form textarea {
    color: var(--v2-ink);
    background: var(--v2-input);
    border-color: var(--v2-line);
    border-radius: 13px;
    caret-color: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-form textarea::placeholder {
    color: color-mix(in srgb, var(--v2-muted), transparent 18%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-form textarea:focus {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2-accent), transparent 88%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .reference-upload--intake,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .prompt-examples button,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .market-field select {
    color: var(--v2-muted);
    background: var(--v2-input);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .reference-upload__choose {
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-accent), transparent 91%);
    border-color: color-mix(in srgb, var(--v2-accent), transparent 68%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .reference-upload__choose svg,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .reference-upload__media svg {
    stroke: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .prompt-examples button:hover {
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-accent), transparent 90%);
    border-color: var(--v2-line-strong);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .market-field span,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .reference-upload--intake > p,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .form-status {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .submit-button {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-radius: 12px;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--v2-accent), transparent 80%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .submit-button:hover {
    background: color-mix(in srgb, var(--v2-accent), white 13%);
}

/* Studio V2: product-creator cockpit. */
html[data-public-chat-layout="studio"] .hero {
    grid-template-columns: minmax(280px, 0.72fr) minmax(290px, 0.68fr) minmax(430px, 1fr);
    gap: clamp(22px, 2.7vw, 48px);
    padding: 42px clamp(18px, 2.7vw, 44px) 48px;
}

html[data-public-chat-layout="studio"] .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 520px;
}

html[data-public-chat-layout="studio"] .hero h1 {
    font-size: clamp(56px, 5.15vw, 88px);
}

html[data-public-chat-layout="studio"] .hero-lead {
    max-width: 530px;
    margin-top: 26px;
    font-size: clamp(15px, 1.2vw, 18px);
}

html[data-public-chat-layout="studio"] .trust-strip {
    margin-top: 34px;
}

html[data-public-chat-layout="studio"] .intake-panel {
    grid-column: 3;
    grid-row: 1;
    padding: clamp(27px, 3.2vw, 48px);
}

html[data-public-chat-layout="studio"] .intake-form textarea {
    min-height: 190px;
}

html[data-public-chat-layout="studio"] .studio-hero-product {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    display: grid;
    width: min(100%, 390px);
    min-height: 560px;
    place-self: center;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--v2-accent), transparent 82%), transparent 44%),
        linear-gradient(145deg, color-mix(in srgb, var(--v2-panel-raised), transparent 17%), color-mix(in srgb, var(--v2-panel), transparent 14%));
    border: 1px solid var(--v2-line);
    border-radius: 220px 220px 30px 30px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v2-ink), transparent 97%), var(--v2-shadow);
}

html[data-public-chat-layout="studio"] .studio-hero-product::before,
html[data-public-chat-layout="studio"] .studio-hero-product::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

html[data-public-chat-layout="studio"] .studio-hero-product::before {
    inset: 22px;
    background:
        linear-gradient(var(--v2-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--v2-line) 1px, transparent 1px);
    background-size: 28px 28px;
    border: 1px dashed var(--v2-line-strong);
    border-radius: inherit;
    opacity: 0.58;
    mask-image: linear-gradient(to bottom, black, transparent 89%);
}

html[data-public-chat-layout="studio"] .studio-hero-product::after {
    top: 88px;
    left: 15%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v2-secondary), transparent);
    box-shadow: 0 0 20px var(--v2-secondary);
    animation: studio-product-scan 4.8s ease-in-out infinite;
}

.studio-hero-product__axis {
    position: absolute;
    z-index: 1;
    opacity: 0.62;
}

.studio-hero-product__axis::before,
.studio-hero-product__axis::after {
    position: absolute;
    content: "";
    background: var(--v2-accent);
}

.studio-hero-product__axis--x {
    right: 28px;
    bottom: 82px;
    left: 28px;
    height: 1px;
    background: var(--v2-line-strong);
}

.studio-hero-product__axis--x::before,
.studio-hero-product__axis--x::after {
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.studio-hero-product__axis--x::before { left: 0; }
.studio-hero-product__axis--x::after { right: 0; }

.studio-hero-product__axis--y {
    top: 44px;
    bottom: 90px;
    left: 50%;
    width: 1px;
    background: linear-gradient(var(--v2-line-strong), transparent);
}

.studio-hero-product__shirt {
    position: relative;
    z-index: 2;
    width: 90%;
    transform: translateY(-6px);
    animation: studio-shirt-float 5.6s ease-in-out infinite;
}

.studio-hero-product__shirt svg {
    display: block;
    width: 100%;
    overflow: visible;
    filter: drop-shadow(0 32px 32px color-mix(in srgb, var(--v2-canvas), transparent 48%));
}

.studio-shirt-shadow {
    fill: color-mix(in srgb, var(--v2-canvas), transparent 44%);
    transform: translate(10px, 14px);
}

.studio-shirt-body {
    fill: color-mix(in srgb, var(--v2-panel-raised), var(--v2-ink) 9%);
    stroke: color-mix(in srgb, var(--v2-ink), transparent 54%);
    stroke-width: 1.5;
}

.studio-shirt-neck {
    fill: none;
    stroke: var(--v2-secondary);
    stroke-width: 3;
}

.studio-shirt-zone {
    fill: color-mix(in srgb, var(--v2-accent), transparent 88%);
    stroke: var(--v2-accent);
    stroke-dasharray: 7 6;
    stroke-width: 1.7;
    animation: v2-stitch 9s linear infinite;
}

.studio-shirt-art {
    fill: none;
    stroke: var(--v2-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.studio-shirt-art circle {
    fill: color-mix(in srgb, var(--v2-secondary), transparent 58%);
    stroke: var(--v2-secondary);
}

.studio-hero-product__tag {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: var(--v2-ink);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--v2-panel-raised), transparent 7%);
    border: 1px solid var(--v2-line-strong);
    border-radius: 7px;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--v2-canvas), transparent 55%);
    backdrop-filter: blur(12px);
}

.studio-hero-product__tag::before {
    width: 5px;
    height: 5px;
    margin-right: 6px;
    content: "";
    background: var(--v2-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2-accent), transparent 88%);
}

.studio-hero-product__tag--product { top: 54px; left: 50%; transform: translateX(-50%); }
.studio-hero-product__tag--print { top: 46%; right: 10px; }
.studio-hero-product__tag--ready { bottom: 45px; left: 32px; }
.studio-hero-product__tag--ready::before { background: var(--v2-secondary); }

.studio-hero-product__swatches {
    position: absolute;
    z-index: 4;
    right: 28px;
    bottom: 36px;
    display: flex;
    align-items: center;
}

.studio-hero-product__swatches i {
    width: 18px;
    height: 18px;
    margin-left: -5px;
    background: #f6f2e8;
    border: 2px solid var(--v2-panel-solid);
    border-radius: 50%;
}

.studio-hero-product__swatches i:nth-child(2) { background: #e95945; }
.studio-hero-product__swatches i:nth-child(3) { background: #136664; }
.studio-hero-product__swatches i:nth-child(4) { background: #d4dc46; }

.studio-hero-product__swatches span {
    margin-left: 7px;
    color: var(--v2-muted);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.studio-hero-product__measure {
    position: absolute;
    z-index: 4;
    top: 116px;
    left: 50%;
    display: flex;
    gap: 7px;
    align-items: center;
    color: var(--v2-muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.studio-hero-product__measure i {
    width: 24px;
    height: 1px;
    background: var(--v2-line-strong);
}

@keyframes studio-product-scan {
    0%, 100% { opacity: 0.22; transform: translateY(0); }
    50% { opacity: 0.9; transform: translateY(350px); }
}

@keyframes studio-shirt-float {
    0%, 100% { transform: translateY(-6px) rotate(-0.4deg); }
    50% { transform: translateY(-16px) rotate(0.4deg); }
}

/* Canvas V2: visual workspace first, command dock at its edge. */
html[data-public-chat-layout="canvas"] .hero {
    grid-template-columns: minmax(590px, 1.25fr) minmax(360px, 0.75fr);
    gap: clamp(28px, 4vw, 66px);
    align-items: center;
    padding: 34px clamp(18px, 3.2vw, 52px) 36px;
}

html[data-public-chat-layout="canvas"] .hero-copy {
    grid-column: 2;
    grid-row: 1;
    padding-right: clamp(8px, 2vw, 32px);
}

html[data-public-chat-layout="canvas"] .hero h1 {
    font-size: clamp(56px, 5.4vw, 88px);
}

html[data-public-chat-layout="canvas"] .hero-lead {
    margin-top: 25px;
    font-size: 16px;
}

html[data-public-chat-layout="canvas"] .trust-strip {
    display: grid;
    margin-top: 32px;
}

html[data-public-chat-layout="canvas"] .intake-panel {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    min-height: min(680px, calc(100dvh - 132px));
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(45deg, var(--v2-grid) 25%, transparent 25%, transparent 75%, var(--v2-grid) 75%),
        linear-gradient(45deg, var(--v2-grid) 25%, transparent 25%, transparent 75%, var(--v2-grid) 75%),
        linear-gradient(145deg, var(--v2-panel-raised), var(--v2-panel));
    background-position: 0 0, 10px 10px, 0 0;
    background-size: 20px 20px, 20px 20px, auto;
}

html[data-public-chat-layout="canvas"] .intake-panel__heading {
    position: absolute;
    z-index: 4;
    top: 24px;
    right: 26px;
    left: 26px;
}

html[data-public-chat-layout="canvas"] .intake-panel__heading h2 {
    font-size: 26px;
}

html[data-public-chat-layout="canvas"] .intake-form {
    z-index: 4;
    padding: 15px;
    background: color-mix(in srgb, var(--v2-panel-raised), transparent 5%);
    border: 1px solid var(--v2-line);
    border-radius: 16px;
    box-shadow: 0 18px 50px color-mix(in srgb, var(--v2-canvas), transparent 62%);
    backdrop-filter: blur(18px);
}

html[data-public-chat-layout="canvas"] .intake-form textarea {
    min-height: 104px;
    max-height: 190px;
}

html[data-public-chat-layout="canvas"] .v2-hero-canvas {
    position: absolute;
    z-index: 3;
    top: 100px;
    left: clamp(205px, 22vw, 330px);
    display: grid;
    width: 310px;
    aspect-ratio: 1;
    pointer-events: none;
    place-items: center;
}

.v2-hero-canvas svg {
    width: 72%;
    height: auto;
    overflow: visible;
    fill: none;
    stroke: var(--v2-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 24px 50px color-mix(in srgb, var(--v2-accent), transparent 82%));
}

.v2-shirt-outline {
    fill: color-mix(in srgb, var(--v2-panel-solid), transparent 18%);
    stroke-width: 2;
}

.v2-shirt-neck {
    stroke: var(--v2-secondary);
    stroke-width: 3;
}

.v2-print-zone {
    fill: color-mix(in srgb, var(--v2-accent), transparent 91%);
    stroke-dasharray: 7 7;
    stroke-width: 1.6;
    animation: v2-stitch 10s linear infinite;
}

.v2-scan-line {
    stroke: var(--v2-secondary);
    stroke-width: 1.5;
    opacity: 0.7;
    animation: v2-scan 3.2s ease-in-out infinite;
}

.v2-hero-canvas__orbit {
    position: absolute;
    width: 92%;
    height: 92%;
    border: 1px dashed var(--v2-line-strong);
    border-radius: 50%;
    animation: v2-orbit 30s linear infinite;
}

.v2-hero-canvas__orbit::before,
.v2-hero-canvas__orbit::after {
    position: absolute;
    width: 7px;
    height: 7px;
    content: "";
    background: var(--v2-accent);
    border-radius: 50%;
}

.v2-hero-canvas__orbit::before {
    top: 12%;
    left: 14%;
}

.v2-hero-canvas__orbit::after {
    right: 7%;
    bottom: 23%;
    background: var(--v2-secondary);
}

.v2-hero-canvas > i {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid var(--v2-line-strong);
}

.v2-hero-canvas > i:nth-of-type(1) { top: 2%; left: 20%; border-width: 1px 0 0 1px; }
.v2-hero-canvas > i:nth-of-type(2) { top: 2%; right: 20%; border-width: 1px 1px 0 0; }
.v2-hero-canvas > i:nth-of-type(3) { bottom: 2%; left: 20%; border-width: 0 0 1px 1px; }
.v2-hero-canvas > i:nth-of-type(4) { right: 20%; bottom: 2%; border-width: 0 1px 1px 0; }

@keyframes v2-orbit {
    to { transform: rotate(360deg); }
}

@keyframes v2-stitch {
    to { stroke-dashoffset: -140; }
}

@keyframes v2-scan {
    0%, 100% { opacity: 0.28; transform: translateY(-54px); }
    50% { opacity: 0.9; transform: translateY(54px); }
}

/* Shared V2 conversation surface. */
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-studio[hidden] {
    display: none;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) body.is-chat-active .site-header {
    height: 66px;
    min-height: 66px;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-studio {
    gap: 10px;
    padding: 10px 0;
}

html[data-public-chat-layout="studio"] .chat-studio {
    grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
}

html[data-public-chat-layout="canvas"] .chat-studio {
    grid-template-columns: minmax(430px, 0.88fr) minmax(0, 1.12fr);
}

html[data-public-chat-layout="canvas"] .studio-visuals {
    order: 2;
}

html[data-public-chat-layout="canvas"] .studio-conversation {
    order: 1;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visuals,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-conversation {
    color: var(--v2-ink);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--v2-panel-raised), transparent 4%), var(--v2-panel)),
        var(--v2-panel-solid);
    border-color: var(--v2-line);
    border-radius: 18px;
    box-shadow: var(--v2-shadow);
    backdrop-filter: blur(18px);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-pane-heading,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-conversation__header {
    min-height: 58px;
    color: var(--v2-ink);
    background: var(--v2-input);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-pane-heading strong,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-live,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-products > header p,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visual-empty span {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-conversation__header > div > span,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-products > header span,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visuals .recommendation-group__heading {
    color: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-live i {
    background: var(--v2-secondary);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--v2-secondary), transparent 90%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-reset {
    color: var(--v2-accent);
    background: color-mix(in srgb, var(--v2-accent), transparent 91%);
    border-color: var(--v2-line-strong);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visual-scroll,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-thread {
    scrollbar-color: color-mix(in srgb, var(--v2-accent), transparent 66%) transparent;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visual-empty svg {
    fill: color-mix(in srgb, var(--v2-panel-solid), transparent 8%);
    stroke: var(--v2-line-strong);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visual-empty strong,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-conversation__header strong {
    color: var(--v2-ink);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-progress {
    background: var(--v2-input);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-progress__status {
    border-color: var(--v2-line-strong);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .intake-progress__status i,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-thinking i {
    background: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__avatar {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-radius: 50% 50% 50% 8px;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message--customer .chat-message__avatar {
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-secondary), var(--v2-panel-solid) 72%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__body {
    color: var(--v2-ink);
    background: var(--v2-panel-raised);
    border-color: var(--v2-line-strong);
    border-radius: 4px 14px 14px 14px;
    box-shadow: 0 12px 34px color-mix(in srgb, var(--v2-canvas), transparent 74%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message--customer .chat-message__body {
    background: color-mix(in srgb, var(--v2-accent), var(--v2-panel-raised) 86%);
    border-color: var(--v2-line);
    border-radius: 14px 4px 14px 14px;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__meta > strong,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__content li::marker,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__product-copy b,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .recommendation-card__action {
    color: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__body p,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__content ul,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__heading,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-thinking__label,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__product-copy strong {
    color: var(--v2-ink);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__time,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__copy,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__note,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__product-copy small {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__content a,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__content a:visited {
    color: var(--v2-accent);
    text-decoration-color: color-mix(in srgb, var(--v2-accent), transparent 48%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visuals .recommendation-group,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .studio-visuals .recommendation-card,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__product-card {
    color: var(--v2-ink);
    background: var(--v2-input);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .recommendation-card__media,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__product-media {
    background: color-mix(in srgb, var(--v2-panel-raised), white 10%);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-composer {
    background: var(--v2-panel-raised);
    border-color: var(--v2-line-strong);
    border-radius: 14px;
    box-shadow: 0 -16px 42px color-mix(in srgb, var(--v2-canvas), transparent 70%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-composer textarea {
    color: var(--v2-ink);
    caret-color: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-composer textarea::placeholder,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-composer__attach {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-composer__attach {
    background: var(--v2-input);
    border-color: var(--v2-line);
    border-radius: 10px;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-composer > button {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-radius: 10px;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .design-artifact,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .design-variant {
    color: var(--v2-ink);
    background: var(--v2-input);
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .design-variant.is-selected {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--v2-accent), transparent 88%);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .design-variant__select,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .design-variant__creator-open,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .chat-message__design-creator {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-color: var(--v2-accent);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .workflow {
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .workflow-grid {
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .workflow-grid li {
    border-color: var(--v2-line);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .section-heading h2,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .workflow-grid h3 {
    color: var(--v2-ink);
    font-weight: 620;
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .workflow-grid p,
:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .site-footer {
    color: var(--v2-muted);
}

:is(
    html[data-public-chat-layout="studio"],
    html[data-public-chat-layout="canvas"]
) .step-number {
    color: var(--v2-accent);
}

@media (max-width: 1120px) {
    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .site-header {
        grid-template-columns: auto 1fr auto;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .appearance-switcher__group > span {
        display: none;
    }

    html[data-public-chat-layout="studio"] .hero,
    html[data-public-chat-layout="canvas"] .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: 0;
        padding: 52px clamp(18px, 5vw, 56px) 62px;
    }

    html[data-public-chat-layout="canvas"] .hero-copy,
    html[data-public-chat-layout="canvas"] .intake-panel {
        grid-column: 1;
        grid-row: auto;
    }

    html[data-public-chat-layout="canvas"] .hero-copy {
        order: 1;
        max-width: 760px;
    }

    html[data-public-chat-layout="canvas"] .intake-panel {
        order: 2;
        min-height: 620px;
    }

    html[data-public-chat-layout="canvas"] .v2-hero-canvas {
        top: auto;
        bottom: 270px;
        left: 50%;
        width: 420px;
        transform: translateX(-50%);
    }
}

@media (max-width: 840px) {
    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .site-frame {
        width: min(100% - 16px, 1580px);
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .site-header {
        display: flex;
        min-height: 64px;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .appearance-switcher {
        position: fixed;
        top: 72px;
        right: 8px;
        bottom: auto;
        left: 8px;
        justify-content: center;
        width: auto;
        transform: none;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) body.is-chat-active .appearance-switcher {
        top: 7px;
        right: 8px;
        bottom: auto;
        left: 65px;
        min-height: 44px;
        justify-content: flex-end;
        padding: 4px;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) body.is-chat-active .appearance-switcher button {
        min-height: 28px;
        padding: 0 7px;
        font-size: 8px;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) body.is-chat-active .appearance-switcher__group--theme button span {
        display: none;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) body.is-chat-active .brand-copy {
        display: none;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) body.is-chat-active .chat-studio {
        grid-template-columns: minmax(0, 1fr);
    }

    html[data-public-chat-layout="canvas"] body.is-chat-active .chat-studio {
        grid-template-rows: minmax(0, 1fr) minmax(160px, 28dvh);
    }

    html[data-public-chat-layout="canvas"] body.is-chat-active .studio-conversation {
        order: 1;
    }

    html[data-public-chat-layout="canvas"] body.is-chat-active .studio-visuals {
        order: 2;
    }
}

@media (max-width: 640px) {
    .appearance-switcher {
        right: 7px;
        bottom: 7px;
        left: 7px;
        width: auto;
        justify-content: center;
        transform: none;
    }

    .appearance-switcher__group > span {
        display: none;
    }

    .appearance-switcher button {
        padding: 0 8px;
        font-size: 8px;
    }

    html[data-public-chat-layout="studio"] .hero,
    html[data-public-chat-layout="canvas"] .hero {
        padding: 90px 12px 44px;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .appearance-switcher {
        top: 70px;
        bottom: auto;
    }

    html[data-public-chat-layout="studio"] .hero h1,
    html[data-public-chat-layout="canvas"] .hero h1 {
        font-size: clamp(51px, 15vw, 72px);
    }

    html[data-public-chat-layout="canvas"] .intake-panel {
        min-height: 570px;
        padding: 18px;
    }

    html[data-public-chat-layout="canvas"] .intake-panel__heading {
        top: 18px;
        right: 18px;
        left: 18px;
    }

    html[data-public-chat-layout="canvas"] .v2-hero-canvas {
        display: none;
    }

    html[data-public-chat-layout="canvas"] .intake-form {
        padding: 11px;
    }

    :is(
        html[data-public-chat-layout="studio"],
        html[data-public-chat-layout="canvas"]
    ) .workflow {
        padding-bottom: 98px;
    }

    html[data-public-chat-layout="studio"] body.is-chat-active .appearance-switcher,
    html[data-public-chat-layout="canvas"] body.is-chat-active .appearance-switcher {
        top: 7px;
        left: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-print-zone,
    .v2-scan-line,
    .v2-hero-canvas__orbit {
        animation: none;
    }
}

@media (max-width: 840px) {
    html[data-public-chat-layout="studio"] .site-header {
        display: flex;
        gap: 8px;
        min-height: 0;
        padding: 10px 0 12px;
        flex-wrap: wrap;
    }

    html[data-public-chat-layout="studio"] .site-header .brand {
        order: 1;
    }

    html[data-public-chat-layout="studio"] .public-language-field {
        order: 2;
        margin-left: auto;
    }

    html[data-public-chat-layout="studio"] .appearance-switcher {
        position: static;
        order: 3;
        width: 100%;
        flex: 1 0 100%;
        justify-content: center;
        padding: 4px;
        transform: none;
    }

    html[data-public-chat-layout="studio"] .hero {
        padding-top: 44px;
    }
}

/* Studio V2: spatial product workspace and signed-in future shell. */
html[data-public-chat-layout="studio"] .studio-v2-workspace,
html[data-public-chat-layout="studio"] .studio-v2-account {
    display: block;
}

html[data-public-chat-layout="studio"] .studio-v2-workspace {
    padding: clamp(92px, 10vw, 156px) clamp(14px, 2.7vw, 44px) clamp(72px, 9vw, 130px);
    border-bottom: 1px solid var(--v2-line);
}

html[data-public-chat-layout="studio"] .studio-v2-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 52px;
}

html[data-public-chat-layout="studio"] .studio-v2-section-heading .eyebrow {
    margin-bottom: 22px;
}

html[data-public-chat-layout="studio"] .studio-v2-section-heading h2 {
    max-width: 850px;
    margin: 0;
    color: var(--v2-ink);
    font-size: clamp(48px, 5.6vw, 88px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

html[data-public-chat-layout="studio"] .studio-v2-section-heading > p {
    max-width: 570px;
    margin: 0;
    color: var(--v2-muted);
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.7;
}

.spatial-workspace {
    position: relative;
    overflow: hidden;
    color: var(--v2-ink);
    background: var(--v2-panel-solid);
    border: 1px solid var(--v2-line-strong);
    border-radius: 24px;
    box-shadow: 0 40px 110px color-mix(in srgb, var(--v2-canvas), transparent 43%);
}

.spatial-workspace::before {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, transparent 8%, var(--v2-accent) 30%, var(--v2-secondary) 70%, transparent 92%);
}

.spatial-workspace__toolbar {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 12px 16px 12px 22px;
    background: color-mix(in srgb, var(--v2-panel-raised), transparent 4%);
    border-bottom: 1px solid var(--v2-line);
    backdrop-filter: blur(18px);
}

.spatial-workspace__toolbar > div:first-child {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 11px;
    align-items: center;
}

.spatial-workspace__toolbar strong {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.spatial-workspace__toolbar small {
    grid-column: 2;
    margin-top: 3px;
    color: var(--v2-muted);
    font-size: 9px;
}

.spatial-workspace__pulse {
    grid-row: 1 / span 2;
    width: 9px;
    height: 9px;
    background: var(--v2-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--v2-secondary), transparent 89%);
    animation: spatial-pulse 2.4s ease-out infinite;
}

.spatial-workspace__actions {
    display: flex;
    gap: 5px;
    align-items: center;
}

.spatial-workspace__actions button,
.spatial-workspace__actions output {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--v2-muted);
    font-size: 9px;
    font-weight: 650;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 9px;
}

.spatial-workspace__actions output {
    min-width: 52px;
    color: var(--v2-ink);
}

.spatial-workspace__actions button:hover {
    color: var(--v2-ink);
    border-color: var(--v2-line-strong);
}

.spatial-workspace__actions button[aria-expanded="true"] {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-color: var(--v2-accent);
}

.spatial-workspace__actions button:last-child {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-color: var(--v2-accent);
}

.spatial-workspace__actions svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.spatial-workspace__viewport {
    --workspace-pan-x: 0px;
    --workspace-pan-y: 0px;
    --workspace-grid-small: 20px;
    --workspace-grid-large: 100px;
    position: relative;
    height: clamp(620px, 69vw, 820px);
    max-height: 820px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    background:
        radial-gradient(circle at 52% 46%, color-mix(in srgb, var(--v2-accent), transparent 94%), transparent 34%),
        linear-gradient(var(--v2-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px),
        linear-gradient(color-mix(in srgb, var(--v2-grid), transparent 30%) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--v2-grid), transparent 30%) 1px, transparent 1px),
        var(--v2-canvas);
    background-position:
        center,
        var(--workspace-pan-x) var(--workspace-pan-y),
        var(--workspace-pan-x) var(--workspace-pan-y),
        var(--workspace-pan-x) var(--workspace-pan-y),
        var(--workspace-pan-x) var(--workspace-pan-y),
        center;
    background-size:
        auto,
        var(--workspace-grid-small) var(--workspace-grid-small),
        var(--workspace-grid-small) var(--workspace-grid-small),
        var(--workspace-grid-large) var(--workspace-grid-large),
        var(--workspace-grid-large) var(--workspace-grid-large),
        auto;
}

.spatial-workspace__viewport::before,
.spatial-workspace__viewport::after {
    position: absolute;
    z-index: 1;
    content: "";
    pointer-events: none;
}

.spatial-workspace__viewport::before {
    inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--v2-canvas), transparent 5%), transparent 8%, transparent 92%, color-mix(in srgb, var(--v2-canvas), transparent 5%)),
        linear-gradient(color-mix(in srgb, var(--v2-canvas), transparent 12%), transparent 9%, transparent 91%, color-mix(in srgb, var(--v2-canvas), transparent 12%));
}

.spatial-workspace__viewport::after {
    top: 14px;
    right: 14px;
    width: 11px;
    height: 11px;
    border-top: 1px solid var(--v2-accent);
    border-right: 1px solid var(--v2-accent);
}

.spatial-workspace.is-panning .spatial-workspace__viewport {
    cursor: grabbing;
}

.spatial-workspace__stage {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 1400px;
    height: 900px;
    overflow: visible;
    transform-origin: 0 0;
    will-change: transform;
}

.spatial-workspace__links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: color-mix(in srgb, var(--v2-accent), transparent 53%);
    stroke-dasharray: 4 7;
    stroke-width: 1.5;
    overflow: visible;
    pointer-events: none;
    animation: spatial-flow 16s linear infinite;
}

.spatial-workspace__links .workspace-link--instruction {
    stroke: var(--v2-secondary);
    stroke-dasharray: 2 6;
    stroke-width: 2;
}

.workspace-node {
    position: absolute;
    top: var(--node-y);
    left: var(--node-x);
    width: 300px;
    min-height: 164px;
    padding: 15px;
    color: var(--v2-ink);
    cursor: grab;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--v2-panel-raised), transparent 2%), var(--v2-panel)),
        var(--v2-panel-solid);
    border: 1px solid var(--v2-line);
    border-radius: 16px;
    box-shadow: 0 22px 48px color-mix(in srgb, var(--v2-canvas), transparent 48%);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    user-select: none;
}

.workspace-node::before {
    position: absolute;
    top: -1px;
    left: 16px;
    width: 48px;
    height: 2px;
    content: "";
    background: var(--v2-accent);
}

.workspace-node:hover {
    border-color: var(--v2-line-strong);
    box-shadow: 0 27px 60px color-mix(in srgb, var(--v2-canvas), transparent 38%);
    transform: translateY(-3px);
}

.workspace-node:focus-visible,
.workspace-node.is-selected {
    outline: 0;
    border-color: var(--v2-accent);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--v2-accent), transparent 82%),
        0 30px 65px color-mix(in srgb, var(--v2-canvas), transparent 37%);
}

.workspace-node.is-selected::after {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    width: 20px;
    height: 20px;
    content: "✓";
    place-items: center;
    color: var(--v2-accent-ink);
    font-size: 10px;
    font-weight: 800;
    background: var(--v2-accent);
    border: 3px solid var(--v2-canvas);
    border-radius: 50%;
}

.workspace-node.is-linked {
    animation: spatial-linked 900ms ease both;
}

.workspace-node.is-dragging {
    z-index: 10;
    cursor: grabbing;
    transition: none;
    transform: rotate(0.8deg) scale(1.015);
}

.workspace-node a,
.workspace-node button {
    cursor: pointer;
}

.workspace-node > header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
    cursor: grab;
    touch-action: none;
}

.workspace-node > header > span {
    color: var(--v2-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-node > header button {
    display: grid;
    grid-template-columns: repeat(2, 3px);
    gap: 3px;
    width: 26px;
    height: 23px;
    padding: 5px 7px;
    background: transparent;
    border: 0;
}

.workspace-node > header button i {
    width: 3px;
    height: 3px;
    background: var(--v2-muted);
    border-radius: 50%;
}

.workspace-node h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.workspace-node p {
    margin: 9px 0 0;
    color: var(--v2-muted);
    font-size: 11px;
    line-height: 1.55;
}

.workspace-node > footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
    padding-top: 11px;
    color: var(--v2-muted);
    font-size: 9px;
    border-top: 1px solid var(--v2-line);
}

.workspace-node__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 14px;
}

.workspace-node__chips span {
    padding: 5px 7px;
    color: var(--v2-muted);
    font-size: 8px;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 999px;
}

.workspace-node--brief { width: 300px; }
.workspace-node--product { width: 310px; }
.workspace-node--artwork { width: 330px; }
.workspace-node--composition { width: 360px; }
.workspace-node--evidence { width: 290px; }
.workspace-node--instruction { width: min(440px, calc(100vw - 42px)); }
.workspace-node--live-prompt { width: min(460px, calc(100vw - 42px)); }
.workspace-node--live-answer { width: min(520px, calc(100vw - 42px)); }
.workspace-node--live-product { width: 300px; }
.workspace-node--live-artwork { width: 330px; }
.workspace-node--live-progress { width: 290px; }

.workspace-node--instruction::before {
    width: 84px;
    background: linear-gradient(90deg, var(--v2-secondary), var(--v2-accent));
}

.workspace-node--instruction h3 {
    color: var(--v2-secondary);
}

.workspace-node--instruction .workspace-node__instruction-copy {
    max-height: 118px;
    overflow: auto;
    color: var(--v2-ink);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    scrollbar-width: thin;
}

.workspace-node--instruction > footer strong {
    color: var(--v2-accent);
    font-weight: 650;
}

.workspace-node--instruction.is-new {
    animation: spatial-node-arrive 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.workspace-product-preview {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
}

.workspace-product-preview > svg {
    width: 92px;
    height: 106px;
    padding: 6px;
    fill: color-mix(in srgb, var(--v2-ink), transparent 17%);
    stroke: color-mix(in srgb, var(--v2-accent), transparent 14%);
    stroke-width: 1.5;
    background: color-mix(in srgb, var(--v2-accent), transparent 93%);
    border: 1px solid var(--v2-line);
    border-radius: 12px;
}

.workspace-product-preview > div {
    display: grid;
    gap: 5px;
}

.workspace-product-preview span,
.workspace-product-preview small {
    color: var(--v2-muted);
    font-size: 8px;
}

.workspace-product-preview strong {
    font-size: 17px;
    font-weight: 600;
}

.workspace-node--product > footer b {
    color: var(--v2-ink);
    font-size: 17px;
    font-weight: 600;
}

.workspace-score {
    padding: 4px 7px;
    color: var(--v2-accent);
    background: color-mix(in srgb, var(--v2-accent), transparent 91%);
    border-radius: 999px;
}

.workspace-artwork-preview {
    position: relative;
    display: grid;
    min-height: 168px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(45deg, color-mix(in srgb, var(--v2-ink), transparent 95%) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--v2-ink), transparent 95%) 75%),
        linear-gradient(45deg, color-mix(in srgb, var(--v2-ink), transparent 95%) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--v2-ink), transparent 95%) 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
    border: 1px solid var(--v2-line);
    border-radius: 12px;
}

.workspace-artwork-preview svg {
    position: absolute;
    width: 82%;
    fill: none;
    stroke: var(--v2-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
    filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--v2-accent), transparent 73%));
}

.workspace-artwork-preview circle {
    fill: color-mix(in srgb, var(--v2-secondary), transparent 58%);
    stroke: var(--v2-secondary);
}

.workspace-artwork-preview strong {
    z-index: 1;
    align-self: end;
    margin-bottom: 14px;
    color: var(--v2-ink);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-composition {
    position: relative;
    display: grid;
    min-height: 258px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--v2-accent), transparent 88%), transparent 54%),
        var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 12px;
}

.workspace-composition > svg {
    width: 72%;
    fill: color-mix(in srgb, var(--v2-ink), transparent 14%);
    stroke: color-mix(in srgb, var(--v2-accent), transparent 17%);
    stroke-width: 1.5;
}

.workspace-composition > svg rect {
    fill: color-mix(in srgb, var(--v2-accent), transparent 85%);
    stroke-dasharray: 5 4;
}

.workspace-composition > svg circle {
    fill: color-mix(in srgb, var(--v2-secondary), transparent 55%);
}

.workspace-composition__zone {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 8px;
    color: var(--v2-muted);
    font-size: 8px;
    background: color-mix(in srgb, var(--v2-panel-raised), transparent 5%);
    border: 1px solid var(--v2-line);
    border-radius: 7px;
}

.workspace-composition__zone i {
    width: 5px;
    height: 5px;
    background: var(--v2-secondary);
    border-radius: 50%;
}

.workspace-node--evidence ul {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.workspace-node--evidence li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px;
    color: var(--v2-muted);
    font-size: 9px;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 8px;
}

.workspace-node--evidence li i {
    width: 6px;
    height: 6px;
    background: var(--v2-secondary);
    border-radius: 50%;
}

.workspace-node--evidence li b {
    color: var(--v2-ink);
    font-size: 10px;
}

.workspace-prompt-dock {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px;
    padding: 4px;
    background: var(--v2-input);
    border: 1px solid var(--v2-line-strong);
    border-radius: 12px;
}

.workspace-prompt-dock textarea {
    box-sizing: border-box;
    min-width: 0;
    resize: none;
    padding: 11px 6px;
    color: var(--v2-ink);
    min-height: 44px;
    max-height: 164px;
    height: 44px;
    overflow-y: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    font-size: 14px;
    line-height: 1.5;
    background: transparent;
    border: 0;
    outline: 0;
}

.workspace-prompt-dock textarea::placeholder {
    color: var(--v2-muted);
}

.workspace-prompt-dock button {
    align-self: end;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border: 0;
    border-radius: 9px;
}

.workspace-prompt-dock .workspace-prompt-dock__attach {
    align-self: end;
    color: var(--v2-muted);
    background: transparent;
    border: 1px solid var(--v2-line);
}

.workspace-prompt-dock .workspace-prompt-dock__attach:hover,
.workspace-prompt-dock.is-dragging .workspace-prompt-dock__attach {
    color: var(--v2-accent);
    border-color: var(--v2-accent);
}

.workspace-prompt-dock button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.spatial-workspace__command {
    position: absolute;
    z-index: 6;
    right: auto;
    bottom: 16px;
    left: 16px;
    width: min(620px, calc(100% - 220px));
    padding: 8px;
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-panel-raised), transparent 3%);
    border: 1px solid var(--v2-line-strong);
    border-radius: 15px;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--v2-canvas), transparent 33%);
    backdrop-filter: blur(20px);
}

.spatial-workspace__command > header {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.workspace-command__context { flex: 1; }
.workspace-command__body[hidden] { display: none; }
.spatial-workspace:not(.has-selection) [data-workspace-center-selection] { display: none; }

.workspace-command__toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 30px;
    min-height: 30px;
    padding: 4px 6px;
    color: var(--v2-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
}
.workspace-command__toggle:hover { color: var(--v2-ink); background: var(--v2-input); }
.workspace-command__toggle:focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }
.workspace-command__toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.workspace-command__toggle span { display: none; }
.spatial-workspace .spatial-workspace__command.is-collapsed {
    width: max-content;
    max-width: calc(100% - 32px);
    right: auto;
    padding: 4px 8px;
    border-radius: 999px;
}
.spatial-workspace__command.is-collapsed > header { margin: 0; }
.spatial-workspace__command.is-collapsed .workspace-command__context,
.spatial-workspace__command.is-collapsed .workspace-command__actions { display: none; }
.spatial-workspace__command.is-collapsed .workspace-command__toggle span { display: inline; font-size: 12px; letter-spacing: 0; text-transform: none; }
.spatial-workspace__command.is-collapsed .workspace-command__toggle svg { transform: rotate(180deg); }

.spatial-workspace__command > header > div {
    display: flex;
    gap: 8px;
    min-width: 0;
    align-items: baseline;
}

.spatial-workspace__command > header span,
.spatial-workspace__command > header strong {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spatial-workspace__command > header span {
    color: var(--v2-muted);
}

.spatial-workspace__command > header strong {
    color: var(--v2-accent);
}

.spatial-workspace__command [data-workspace-center-selection],
.spatial-workspace__command [data-workspace-open-creator]:not([hidden]) {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    color: var(--v2-muted);
    font-size: 8px;
    font-weight: 650;
    background: transparent;
    border: 1px solid var(--v2-line);
    border-radius: 7px;
}

.spatial-workspace__command [data-workspace-center-selection]:not(:disabled):hover,
.spatial-workspace__command [data-workspace-open-creator]:hover {
    color: var(--v2-ink);
    border-color: var(--v2-line-strong);
}

.spatial-workspace__command [data-workspace-center-selection]:disabled {
    opacity: 0.38;
}

.spatial-workspace__command [data-workspace-center-selection] svg,
.spatial-workspace__command [data-workspace-open-creator] svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.workspace-command__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    align-items: center;
}

.spatial-workspace__command .workspace-command__creator {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-color: var(--v2-accent);
}

.spatial-workspace__command .workspace-command__creator:hover {
    color: var(--v2-accent-ink);
    border-color: color-mix(in srgb, var(--v2-accent), white 24%);
}

.workspace-command__actions [hidden] { display: none; }

.workspace-command__body > p {
    margin: 6px 2px 0;
    color: var(--v2-secondary);
    font-size: 11px;
}
.workspace-command__body > p:empty { display: none; }

.spatial-workspace__command.is-busy .workspace-prompt-dock button {
    cursor: wait;
    opacity: 0.56;
}

.workspace-reference-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    margin-top: 7px;
    padding: 7px 9px;
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-accent), transparent 94%);
    border: 1px solid color-mix(in srgb, var(--v2-accent), transparent 68%);
    border-radius: 10px;
}

.workspace-reference-chip[hidden] {
    display: none;
}

.workspace-reference-chip > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--v2-accent);
    background: var(--v2-panel-raised);
    border-radius: 8px;
}

.workspace-reference-chip svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.workspace-reference-chip > div {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.workspace-reference-chip strong,
.workspace-reference-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-reference-chip strong {
    font-size: 10px;
    font-weight: 650;
}

.workspace-reference-chip small {
    color: var(--v2-muted);
    font-size: 8px;
}

.workspace-reference-chip > button {
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--v2-muted);
    background: transparent;
    border: 0;
    border-radius: 7px;
}

.workspace-reference-chip > button:hover {
    color: var(--v2-ink);
    background: var(--v2-input);
}

.workspace-chat-sidebar {
    position: absolute;
    z-index: 9;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    width: min(390px, calc(100% - 38px));
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-panel-solid), transparent 2%);
    border-left: 1px solid var(--v2-line-strong);
    box-shadow: -28px 0 70px color-mix(in srgb, var(--v2-canvas), transparent 28%);
    backdrop-filter: blur(24px);
    animation: workspace-drawer-in 220ms ease both;
    cursor: auto;
}

.workspace-chat-sidebar[hidden] {
    display: none;
}

.workspace-chat-sidebar > header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 17px 14px;
    border-bottom: 1px solid var(--v2-line);
}

.workspace-chat-sidebar > header > div {
    display: grid;
    gap: 3px;
}

.workspace-chat-sidebar > header span {
    color: var(--v2-accent);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-chat-sidebar > header strong {
    font-size: 18px;
    font-weight: 620;
    letter-spacing: -0.03em;
}

.workspace-chat-sidebar > header button,
.workspace-help > header button {
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--v2-muted);
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 9px;
}

.workspace-chat-sidebar > nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 9px;
    border-bottom: 1px solid var(--v2-line);
}

.workspace-chat-sidebar > nav button {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    color: var(--v2-muted);
    font-size: 8px;
    font-weight: 650;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
}

.workspace-chat-sidebar > nav button[aria-selected="true"] {
    color: var(--v2-ink);
    background: var(--v2-input);
    border-color: var(--v2-line-strong);
}

.workspace-chat-sidebar > nav b {
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    color: var(--v2-accent);
    font-size: 8px;
    background: color-mix(in srgb, var(--v2-accent), transparent 90%);
    border-radius: 999px;
}

.workspace-chat-sidebar > section {
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.workspace-chat-sidebar > section[hidden] {
    display: none;
}

.workspace-chat-sidebar > footer {
    padding: 10px 14px;
    color: var(--v2-muted);
    font-size: 8px;
    line-height: 1.45;
    background: var(--v2-input);
    border-top: 1px solid var(--v2-line);
}

.workspace-chat-sidebar > footer button {
    width: 100%;
    min-height: 38px;
    color: var(--v2-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    background: var(--v2-panel-raised);
    border: 1px solid var(--v2-line-strong);
    border-radius: 10px;
}

.workspace-chat-sidebar__empty {
    display: grid;
    gap: 5px;
    margin: 18px;
    padding: 18px;
    color: var(--v2-muted);
    background: var(--v2-input);
    border: 1px dashed var(--v2-line-strong);
    border-radius: 13px;
}

.workspace-chat-sidebar__empty[hidden] {
    display: none;
}

.workspace-chat-sidebar__empty strong {
    color: var(--v2-ink);
    font-size: 13px;
    font-weight: 620;
}

.workspace-chat-sidebar__empty p {
    margin: 0;
    font-size: 9px;
    line-height: 1.55;
}

.workspace-chat-sidebar__thread {
    display: grid;
    gap: 13px;
    max-height: 100%;
    padding: 15px;
    overflow: auto;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.workspace-chat-message {
    display: grid;
    gap: 6px;
    width: min(92%, 318px);
    padding: 11px 12px;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 13px 13px 13px 4px;
}

.workspace-chat-message--customer {
    justify-self: end;
    background: color-mix(in srgb, var(--v2-accent), transparent 88%);
    border-color: color-mix(in srgb, var(--v2-accent), transparent 65%);
    border-radius: 13px 13px 4px 13px;
}

.workspace-chat-message > header {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.workspace-chat-message > header strong,
.workspace-chat-message > header time {
    font-size: 8px;
}

.workspace-chat-message > header strong {
    color: var(--v2-accent);
    font-weight: 700;
}

.workspace-chat-message > header time {
    color: var(--v2-muted);
}

.workspace-chat-message p {
    margin: 0;
    color: var(--v2-ink);
    font-size: 10px;
    line-height: 1.58;
    white-space: pre-wrap;
    user-select: text;
}

.workspace-chat-message.is-working {
    grid-template-columns: auto 1fr;
    align-items: center;
    color: var(--v2-muted);
    font-size: 9px;
}

.workspace-chat-message__dots {
    display: flex;
    gap: 3px;
}

.workspace-chat-message__dots i {
    width: 4px;
    height: 4px;
    background: var(--v2-accent);
    border-radius: 50%;
    animation: workspace-thinking 1.15s ease-in-out infinite;
}

.workspace-chat-message__dots i:nth-child(2) { animation-delay: 140ms; }
.workspace-chat-message__dots i:nth-child(3) { animation-delay: 280ms; }

.workspace-chat-sidebar__grid {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.workspace-sidebar-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px 10px;
    align-items: center;
    padding: 10px;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 13px;
}

.workspace-sidebar-card > img {
    width: 72px;
    height: 84px;
    object-fit: contain;
    background: var(--v2-panel-raised);
    border-radius: 9px;
}

.workspace-sidebar-card > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.workspace-sidebar-card small {
    color: var(--v2-muted);
    font-size: 8px;
}

.workspace-sidebar-card strong {
    color: var(--v2-ink);
    font-size: 14px;
    font-weight: 620;
    line-height: 1.3;
}

.workspace-sidebar-card b {
    color: var(--v2-accent);
    font-size: 14px;
    font-weight: 650;
}

.workspace-sidebar-card > footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workspace-sidebar-card button,
.workspace-sidebar-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 7px;
    color: var(--v2-muted);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--v2-line);
    border-radius: 7px;
}

.workspace-sidebar-card > footer svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.workspace-sidebar-card > footer button:hover,
.workspace-sidebar-card > footer a:hover { color: var(--v2-ink); border-color: var(--v2-line-strong); }
.workspace-sidebar-card > footer button:disabled { opacity: .5; cursor: default; }

.studio-result-swatches,
.workspace-sidebar-card > .studio-result-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 1 / -1;
    margin: 8px 0;
}
.workspace-sidebar-card > .studio-result-swatches { margin: 0; }
.studio-result-swatches > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 38px;
    max-width: 100%;
    padding: 3px 6px;
    color: inherit;
    font: inherit;
    font-size: 11px;
    background: transparent;
    border: 1px solid var(--v2-line, #71877a);
    border-radius: 9px;
    cursor: pointer;
}
.studio-result-swatches > button[aria-pressed="true"] {
    border-color: var(--v2-accent, #39b875);
    box-shadow: 0 0 0 1px var(--v2-accent, #39b875);
}
.studio-result-swatches > button > img { width: 32px; height: 34px; object-fit: contain; }
.studio-result-swatches__label { flex: 0 0 100%; font-size: 11px; }
.workspace-results-hint { margin: 14px 14px 0; color: var(--v2-muted); font-size: 12px; line-height: 1.5; }
.workspace-product-hint { display: block; margin-top: 12px; color: var(--v2-muted); font-size: 11px; line-height: 1.5; }
.workspace-product-artworks { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.workspace-product-artworks > small { flex-basis: 100%; color: var(--v2-accent); }
.workspace-product-artworks > button { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--v2-line); border-radius: 8px; background: var(--v2-input); color: var(--v2-ink); cursor: pointer; }
.workspace-product-artworks img { width: 42px; height: 42px; object-fit: contain; }
.workspace-link--composition { stroke: var(--v2-accent); stroke-width: 3; }
.workspace-node--live-product a { color: var(--v2-accent); }

.workspace-help {
    position: absolute;
    z-index: 11;
    top: 18px;
    left: 50%;
    width: min(420px, calc(100% - 28px));
    padding: 15px;
    color: var(--v2-ink);
    background: color-mix(in srgb, var(--v2-panel-solid), transparent 1%);
    border: 1px solid var(--v2-line-strong);
    border-radius: 16px;
    box-shadow: 0 30px 80px color-mix(in srgb, var(--v2-canvas), transparent 26%);
    transform: translateX(-50%);
    backdrop-filter: blur(24px);
}

.workspace-help[hidden] {
    display: none;
}

.workspace-help > header {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.workspace-help > header > div {
    display: grid;
    gap: 2px;
}

.workspace-help > header span {
    color: var(--v2-accent);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-help > header strong {
    font-size: 17px;
    font-weight: 620;
}

.workspace-help ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workspace-help li {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--v2-muted);
    font-size: 9px;
    line-height: 1.45;
}

.workspace-help kbd {
    display: inline-flex;
    min-height: 27px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    color: var(--v2-ink);
    font: inherit;
    font-weight: 700;
    background: var(--v2-input);
    border: 1px solid var(--v2-line-strong);
    border-bottom-width: 2px;
    border-radius: 7px;
}

.workspace-context-menu {
    position: absolute;
    z-index: 14;
    min-width: 178px;
    padding: 5px;
    background: var(--v2-panel-solid);
    border: 1px solid var(--v2-line-strong);
    border-radius: 10px;
    box-shadow: 0 18px 45px color-mix(in srgb, var(--v2-canvas), transparent 24%);
}

.workspace-context-menu[hidden] {
    display: none;
}

.workspace-context-menu button {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 8px 9px;
    color: #ef7b72;
    font-size: 9px;
    font-weight: 650;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 7px;
}

.workspace-context-menu button:hover {
    background: color-mix(in srgb, #ef7b72, transparent 90%);
}

.workspace-context-menu svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.spatial-workspace.has-chat-sidebar .spatial-minimap {
    right: 407px;
}

.spatial-workspace.has-chat-sidebar .spatial-workspace__command {
    width: min(620px, calc(100% - 422px));
}

@keyframes workspace-drawer-in {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes workspace-thinking {
    0%, 70%, 100% { opacity: 0.28; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-2px); }
}

.workspace-node--live-prompt::before,
.workspace-node--live-answer::before {
    width: 88px;
    background: linear-gradient(90deg, var(--v2-accent), var(--v2-secondary));
}

.workspace-node--live-prompt .workspace-node__instruction-copy,
.workspace-node--live-answer .workspace-node__live-copy {
    max-height: 230px;
    overflow: auto;
    color: var(--v2-ink);
    font-size: 12px;
    line-height: 1.62;
    white-space: pre-wrap;
    user-select: text;
    scrollbar-width: thin;
}

.workspace-node--live-answer[data-live-status="failed"]::before {
    background: #f07167;
}

.workspace-node__live-product {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.workspace-node__live-product img {
    width: 88px;
    height: 108px;
    padding: 5px;
    object-fit: contain;
    background: color-mix(in srgb, var(--v2-accent), transparent 94%);
    border: 1px solid var(--v2-line);
    border-radius: 10px;
}

.workspace-node__live-product div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.workspace-node__live-product strong,
.workspace-node__live-product a {
    color: var(--v2-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.18;
    text-decoration: none;
}

.workspace-node__live-product a:hover {
    color: var(--v2-accent);
}

.workspace-node__live-product span,
.workspace-node__live-product small {
    overflow: hidden;
    color: var(--v2-muted);
    font-size: 8px;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.workspace-node--live-artwork img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background:
        linear-gradient(45deg, color-mix(in srgb, var(--v2-ink), transparent 95%) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--v2-ink), transparent 95%) 75%),
        linear-gradient(45deg, color-mix(in srgb, var(--v2-ink), transparent 95%) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--v2-ink), transparent 95%) 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
    border: 1px solid var(--v2-line);
    border-radius: 10px;
}

.workspace-node--live-progress ul {
    display: grid;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.workspace-node--live-progress li {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--v2-muted);
    font-size: 9px;
}

.workspace-node--live-progress li::before {
    width: 6px;
    height: 6px;
    content: "";
    background: var(--v2-line-strong);
    border-radius: 50%;
}

.workspace-node--live-progress li.is-current {
    color: var(--v2-ink);
}

.workspace-node--live-progress li.is-current::before {
    background: var(--v2-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2-accent), transparent 86%);
}

.spatial-minimap {
    position: absolute;
    z-index: 4;
    right: 17px;
    top: 17px;
    width: 152px;
    height: 92px;
    overflow: hidden;
    cursor: crosshair;
    pointer-events: auto;
    touch-action: none;
    background:
        linear-gradient(var(--v2-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px),
        color-mix(in srgb, var(--v2-panel-raised), transparent 4%);
    background-size: 12px 12px;
    border: 1px solid var(--v2-line-strong);
    border-radius: 9px;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--v2-canvas), transparent 44%);
}

.spatial-minimap > span {
    position: absolute;
    top: var(--map-y);
    left: var(--map-x);
    width: 10px;
    height: 6px;
    background: var(--v2-accent);
    border-radius: 2px;
}

.spatial-minimap > span:nth-child(3n) { background: var(--v2-secondary); }

.spatial-minimap > i {
    position: absolute;
    border: 1px solid var(--v2-ink);
    border-radius: 4px;
    box-shadow: 0 0 0 999px color-mix(in srgb, var(--v2-canvas), transparent 60%);
    cursor: grab;
}

.spatial-minimap.is-dragging,
.spatial-minimap.is-dragging > i {
    cursor: grabbing;
}

.spatial-workspace__footer {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    min-height: 51px;
    padding: 9px 17px 9px 22px;
    color: var(--v2-muted);
    font-size: 9px;
    background: var(--v2-panel-raised);
    border-top: 1px solid var(--v2-line);
}

.spatial-workspace__footer button {
    padding: 7px 10px;
    color: var(--v2-muted);
    font-size: 8px;
    background: transparent;
    border: 1px solid var(--v2-line);
    border-radius: 7px;
}

.spatial-workspace.has-selection .spatial-workspace__footer {
    color: var(--v2-ink);
}

.spatial-workspace.is-focus-mode {
    position: fixed;
    z-index: 500;
    inset: 14px;
    border-radius: 18px;
    box-shadow: 0 0 0 9999px color-mix(in srgb, var(--v2-canvas), transparent 8%);
}

.spatial-workspace.is-focus-mode .spatial-workspace__viewport {
    height: calc(100dvh - 137px);
    max-height: none;
}

body.has-spatial-focus {
    overflow: hidden;
}

html[data-public-chat-layout="studio"] .studio-v2-account {
    padding: clamp(92px, 10vw, 150px) clamp(14px, 2.7vw, 44px) clamp(80px, 10vw, 142px);
    border-bottom: 1px solid var(--v2-line);
}

.account-workspace {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: 610px;
    overflow: hidden;
    color: var(--v2-ink);
    background: var(--v2-panel-solid);
    border: 1px solid var(--v2-line-strong);
    border-radius: 24px;
    box-shadow: var(--v2-shadow);
}

.account-workspace__sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 19px;
    background:
        radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--v2-accent), transparent 88%), transparent 17rem),
        color-mix(in srgb, var(--v2-panel-raised), var(--v2-canvas) 17%);
    border-right: 1px solid var(--v2-line);
}

.account-workspace__identity {
    display: flex;
    gap: 11px;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--v2-line);
}

.account-workspace__identity > span {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--v2-accent-ink);
    font-weight: 700;
    background: var(--v2-accent);
    border-radius: 50% 50% 50% 10px;
}

.account-workspace__identity > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.account-workspace__identity strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-workspace__identity small {
    color: var(--v2-muted);
    font-size: 8px;
}

.account-workspace__sidebar nav {
    display: grid;
    gap: 5px;
    margin-top: 23px;
}

.account-workspace__sidebar nav button {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 43px;
    padding: 0 11px;
    color: var(--v2-muted);
    font-size: 10px;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
}

.account-workspace__sidebar nav button:hover,
.account-workspace__sidebar nav button[aria-selected="true"] {
    color: var(--v2-ink);
    background: var(--v2-input);
    border-color: var(--v2-line);
}

.account-workspace__sidebar nav button[aria-selected="true"] {
    box-shadow: inset 3px 0 0 var(--v2-accent);
}

.account-workspace__sidebar nav svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.account-workspace__sidebar nav b {
    min-width: 22px;
    padding: 3px 5px;
    color: var(--v2-muted);
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    background: color-mix(in srgb, var(--v2-ink), transparent 94%);
    border-radius: 999px;
}

.account-workspace__usage {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: auto;
    color: var(--v2-muted);
    font-size: 8px;
}

.account-workspace__usage b {
    color: var(--v2-ink);
    font-weight: 500;
}

.account-workspace__usage > i {
    grid-column: 1 / -1;
    height: 4px;
    overflow: hidden;
    background: var(--v2-input);
    border-radius: 999px;
}

.account-workspace__usage > i span {
    display: block;
    width: 24%;
    height: 100%;
    background: linear-gradient(90deg, var(--v2-accent), var(--v2-secondary));
}

.account-workspace__main {
    min-width: 0;
    padding: clamp(18px, 3vw, 36px);
    background:
        linear-gradient(var(--v2-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px),
        var(--v2-panel);
    background-size: 32px 32px;
}

.account-workspace__main > header {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.account-workspace__main > header > div {
    display: grid;
    gap: 5px;
}

.account-workspace__main > header span {
    color: var(--v2-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-workspace__main > header strong {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.account-search {
    position: relative;
    display: flex;
    width: min(320px, 42%);
    align-items: center;
}

.account-search svg {
    position: absolute;
    left: 13px;
    width: 15px;
    fill: none;
    stroke: var(--v2-muted);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.account-search input {
    width: 100%;
    min-height: 40px;
    padding: 0 13px 0 38px;
    color: var(--v2-ink);
    font-size: 10px;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 10px;
}

.account-search input::placeholder { color: var(--v2-muted); }
.account-search input:focus { border-color: var(--v2-line-strong); outline: 0; }

.account-panel {
    display: grid;
    gap: 10px;
}

.account-panel[hidden] {
    display: none;
}

.account-chat-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto auto;
    gap: 15px;
    align-items: center;
    min-height: 100px;
    padding: 13px 15px;
    background: color-mix(in srgb, var(--v2-panel-raised), transparent 3%);
    border: 1px solid var(--v2-line);
    border-radius: 13px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.account-chat-card:hover {
    border-color: var(--v2-line-strong);
    transform: translateX(3px);
}

.account-chat-card__mark {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    color: var(--v2-accent);
    background: color-mix(in srgb, var(--v2-accent), transparent 91%);
    border: 1px solid color-mix(in srgb, var(--v2-accent), transparent 69%);
    border-radius: 11px;
}

.account-chat-card__mark--lime {
    color: var(--v2-secondary);
    background: color-mix(in srgb, var(--v2-secondary), transparent 91%);
    border-color: color-mix(in srgb, var(--v2-secondary), transparent 72%);
}

.account-chat-card__mark--cyan { color: #53a8ff; }

.account-chat-card__mark svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.account-chat-card > div {
    min-width: 0;
}

.account-chat-card small,
.account-draft-card small {
    color: var(--v2-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-chat-card h3,
.account-draft-card h3 {
    margin: 5px 0 3px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-chat-card p,
.account-draft-card p {
    margin: 0;
    color: var(--v2-muted);
    font-size: 9px;
}

.account-chat-card time {
    color: var(--v2-muted);
    font-size: 8px;
}

.account-chat-card > button,
.account-resource-card > button,
.account-draft-card > button {
    padding: 8px 11px;
    color: var(--v2-ink);
    font-size: 8px;
    font-weight: 650;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 8px;
}

.account-chat-card > button:hover,
.account-resource-card > button:hover,
.account-draft-card > button:hover {
    color: var(--v2-accent-ink);
    background: var(--v2-accent);
    border-color: var(--v2-accent);
}

.account-panel--resources {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-resource-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--v2-panel-raised);
    border: 1px solid var(--v2-line);
    border-radius: 13px;
}

.account-resource-card > div {
    position: relative;
    display: grid;
    min-height: 142px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(45deg, color-mix(in srgb, var(--v2-ink), transparent 96%) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--v2-ink), transparent 96%) 75%),
        linear-gradient(45deg, color-mix(in srgb, var(--v2-ink), transparent 96%) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--v2-ink), transparent 96%) 75%);
    background-position: 0 0, 7px 7px;
    background-size: 14px 14px;
    border-bottom: 1px solid var(--v2-line);
}

.account-resource-card > div i {
    position: absolute;
    display: block;
}

.account-resource-card--sunset > div i:first-child {
    width: 68px;
    height: 68px;
    background: linear-gradient(#f7d34d 50%, #ec6952 50%);
    border-radius: 50%;
    box-shadow: 0 0 0 12px color-mix(in srgb, #ef8b50, transparent 84%);
}

.account-resource-card--sunset > div i:nth-child(2) {
    width: 104px;
    height: 40px;
    bottom: 20px;
    border-top: 4px solid #3dc2c4;
    border-radius: 50%;
    transform: rotate(-7deg);
}

.account-resource-card--type > div::before {
    content: "SUMMER";
    color: var(--v2-accent);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.05em;
    transform: rotate(-8deg);
}

.account-resource-card--dog > div i:first-child {
    width: 72px;
    height: 78px;
    background: #dd9b57;
    border: 5px solid #413127;
    border-radius: 42% 42% 50% 50%;
}

.account-resource-card--dog > div i:nth-child(2),
.account-resource-card--dog > div i:nth-child(3) {
    top: 31px;
    width: 28px;
    height: 45px;
    background: #8a5a38;
    border-radius: 50% 50% 10% 10%;
}

.account-resource-card--dog > div i:nth-child(2) { margin-left: -68px; transform: rotate(28deg); }
.account-resource-card--dog > div i:nth-child(3) { margin-left: 68px; transform: rotate(-28deg); }

.account-resource-card--badge > div::before {
    display: grid;
    width: 76px;
    height: 86px;
    content: "NK";
    place-items: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    background: #205d91;
    border: 5px double #e9c65b;
    clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
}

.account-resource-card--wave > div::before {
    width: 118px;
    height: 70px;
    content: "";
    border-top: 10px solid #43c2c4;
    border-bottom: 10px solid #43c2c4;
    border-radius: 50%;
    box-shadow: 0 18px 0 -5px #8bd84e;
    transform: rotate(-7deg);
}

.account-resource-card--logo > div::before {
    content: "PX";
    color: var(--v2-secondary);
    font-size: 54px;
    font-weight: 600;
    letter-spacing: -0.18em;
    text-shadow: 6px 6px 0 color-mix(in srgb, var(--v2-accent), transparent 50%);
}

.account-resource-card footer {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 11px 5px;
}

.account-resource-card footer strong {
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-resource-card footer span {
    color: var(--v2-muted);
    font-size: 7px;
}

.account-resource-card > button {
    margin: 5px 11px 11px;
}

.account-panel--drafts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-draft-card {
    min-width: 0;
    padding: 12px;
    background: var(--v2-panel-raised);
    border: 1px solid var(--v2-line);
    border-radius: 13px;
}

.account-draft-card__shirt {
    display: grid;
    min-height: 230px;
    margin-bottom: 12px;
    place-items: center;
    background:
        radial-gradient(circle, color-mix(in srgb, var(--v2-accent), transparent 87%), transparent 55%),
        var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 10px;
}

.account-draft-card__shirt svg {
    width: 76%;
    fill: #f4f1e9;
    stroke: color-mix(in srgb, var(--v2-ink), transparent 46%);
    stroke-width: 1.2;
    filter: drop-shadow(0 18px 19px color-mix(in srgb, var(--v2-canvas), transparent 48%));
}

.account-draft-card__shirt svg circle,
.account-draft-card__shirt svg path:not(:first-child) {
    fill: none;
    stroke: var(--v2-accent);
    stroke-width: 4;
}

.account-draft-card__shirt--blue svg { fill: #295893; }
.account-draft-card__shirt--green svg { fill: #2e614e; }
.account-draft-card > button { margin-top: 13px; }

.account-workspace__empty {
    display: grid;
    min-height: 180px;
    margin: 0;
    place-items: center;
    color: var(--v2-muted);
    font-size: 11px;
    border: 1px dashed var(--v2-line-strong);
    border-radius: 13px;
}

.account-workspace__empty[hidden] { display: none; }

html[data-public-chat-layout="studio"] .workflow {
    padding: clamp(92px, 10vw, 150px) clamp(14px, 2.7vw, 44px) 120px;
}

html[data-public-chat-layout="studio"] .section-heading h2 {
    font-size: clamp(48px, 5.5vw, 84px);
    font-weight: 600;
}

html[data-public-chat-layout="studio"] .workflow-grid {
    gap: 12px;
    margin-top: 58px;
    border: 0;
}

html[data-public-chat-layout="studio"] .workflow-grid li {
    position: relative;
    min-height: 390px;
    padding: 18px;
    overflow: hidden;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--v2-panel-raised), transparent 3%), var(--v2-panel)),
        var(--v2-panel-solid);
    border: 1px solid var(--v2-line);
    border-radius: 16px;
}

html[data-public-chat-layout="studio"] .workflow-grid li:first-child,
html[data-public-chat-layout="studio"] .workflow-grid li:last-child {
    padding: 18px;
    border: 1px solid var(--v2-line);
}

html[data-public-chat-layout="studio"] .workflow-grid li::before {
    position: absolute;
    top: 0;
    left: 18px;
    width: 38px;
    height: 2px;
    content: "";
    background: var(--v2-accent);
}

html[data-public-chat-layout="studio"] .workflow-visual {
    position: relative;
    display: grid;
    height: 126px;
    margin-top: 20px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(var(--v2-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--v2-grid) 1px, transparent 1px),
        var(--v2-input);
    background-size: 18px 18px;
    border: 1px solid var(--v2-line);
    border-radius: 11px;
}

html[data-public-chat-layout="studio"] .workflow-visual::before,
html[data-public-chat-layout="studio"] .workflow-visual::after {
    position: absolute;
    width: 6px;
    height: 6px;
    content: "";
    border: 1px solid var(--v2-accent);
}

html[data-public-chat-layout="studio"] .workflow-visual::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
html[data-public-chat-layout="studio"] .workflow-visual::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; }

html[data-public-chat-layout="studio"] .workflow-visual svg {
    width: 78%;
    height: 82%;
    fill: none;
    stroke: var(--v2-accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

html[data-public-chat-layout="studio"] .workflow-visual--compose svg rect {
    fill: color-mix(in srgb, var(--v2-accent), transparent 91%);
}

html[data-public-chat-layout="studio"] .workflow-visual--approve svg circle {
    fill: color-mix(in srgb, var(--v2-secondary), transparent 90%);
    stroke: var(--v2-secondary);
}

html[data-public-chat-layout="studio"] .workflow-visual--finish svg path:first-child {
    fill: color-mix(in srgb, var(--v2-accent), transparent 91%);
}

html[data-public-chat-layout="studio"] .workflow-grid h3 {
    margin: 20px 0 8px;
    font-size: 23px;
}

html[data-public-chat-layout="studio"] .workflow-grid p {
    font-size: 11px;
    line-height: 1.55;
}

html[data-public-chat-layout="studio"] .workflow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 16px;
}

html[data-public-chat-layout="studio"] .workflow-tags span {
    padding: 5px 7px;
    color: var(--v2-muted);
    font-size: 7px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--v2-input);
    border: 1px solid var(--v2-line);
    border-radius: 999px;
}

@keyframes spatial-pulse {
    0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--v2-secondary), transparent 90%); }
    50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--v2-secondary), transparent 100%); }
}

@keyframes spatial-flow {
    to { stroke-dashoffset: -120; }
}

@keyframes spatial-linked {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v2-secondary), transparent 25%); }
    100% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--v2-secondary), transparent 100%); }
}

@keyframes spatial-node-arrive {
    0% { opacity: 0; transform: translateY(22px) scale(0.94); }
    65% { opacity: 1; transform: translateY(-3px) scale(1.01); }
    100% { opacity: 1; transform: none; }
}

@media (max-width: 1280px) {
    html[data-public-chat-layout="studio"] .hero {
        grid-template-columns: minmax(300px, 0.76fr) minmax(500px, 1.24fr);
        align-items: center;
    }

    html[data-public-chat-layout="studio"] .hero-copy {
        grid-column: 1;
        grid-row: 1;
    }

    html[data-public-chat-layout="studio"] .studio-hero-product {
        grid-column: 1;
        grid-row: 2;
        width: min(100%, 440px);
        min-height: 420px;
        border-radius: 190px 190px 24px 24px;
    }

    html[data-public-chat-layout="studio"] .studio-hero-product__shirt {
        width: 74%;
    }

    html[data-public-chat-layout="studio"] .studio-hero-product__measure {
        top: 80px;
    }

    html[data-public-chat-layout="studio"] .intake-panel {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 1020px) {
    html[data-public-chat-layout="studio"] .studio-v2-section-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .account-workspace {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .account-panel--resources,
    .account-panel--drafts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-chat-card {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }

    .account-chat-card time {
        display: none;
    }
}

@media (max-width: 900px) {
    html[data-public-chat-layout="studio"] .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 96px;
    }

    html[data-public-chat-layout="studio"] .hero-copy,
    html[data-public-chat-layout="studio"] .studio-hero-product,
    html[data-public-chat-layout="studio"] .intake-panel {
        grid-column: 1;
        grid-row: auto;
    }

    html[data-public-chat-layout="studio"] .hero-copy { order: 1; }
    html[data-public-chat-layout="studio"] .studio-hero-product { order: 2; }
    html[data-public-chat-layout="studio"] .intake-panel { order: 3; }

    html[data-public-chat-layout="studio"] .studio-hero-product {
        width: min(100%, 530px);
        min-height: 500px;
    }

    .account-workspace {
        grid-template-columns: 1fr;
    }

    .account-workspace__sidebar {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--v2-line);
    }

    .account-workspace__identity {
        padding: 0 18px 0 0;
        border-right: 1px solid var(--v2-line);
        border-bottom: 0;
    }

    .account-workspace__sidebar nav {
        display: flex;
        margin-top: 0;
    }

    .account-workspace__sidebar nav button {
        grid-template-columns: 18px 1fr auto;
    }

    .account-workspace__usage { display: none; }
}

@media (max-width: 700px) {
    .public-language-field > span {
        display: none;
    }

    .public-language-field select {
        min-width: 74px;
        max-width: min(210px, 55vw);
    }

    html[data-public-chat-layout="studio"] .studio-v2-workspace,
    html[data-public-chat-layout="studio"] .studio-v2-account,
    html[data-public-chat-layout="studio"] .workflow {
        padding-right: 4px;
        padding-left: 4px;
    }

    .spatial-workspace {
        border-radius: 16px;
    }

    .spatial-workspace__toolbar {
        align-items: flex-start;
        padding: 12px;
    }

    .spatial-workspace__actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .spatial-workspace__toolbar small {
        display: none;
    }

    .spatial-workspace__actions button span {
        display: none;
    }

    .spatial-workspace__actions button,
    .spatial-workspace__actions output {
        min-width: 30px;
        min-height: 30px;
        padding: 0 7px;
    }

    .spatial-workspace__actions output {
        min-width: 45px;
    }

    .spatial-workspace__viewport {
        height: 640px;
    }

    .spatial-minimap {
        width: 112px;
        height: 68px;
    }

    .spatial-workspace__command {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        padding: 9px;
    }

    .spatial-workspace.has-chat-sidebar .spatial-workspace__command {
        right: 10px;
        width: auto;
    }

    .spatial-workspace.has-chat-sidebar .spatial-minimap {
        display: none;
    }

    .workspace-chat-sidebar {
        width: 100%;
    }

    .spatial-workspace__command > header > div {
        display: flex;
        gap: 2px;
    }

    .spatial-workspace__command [data-workspace-center-selection] span {
        display: none;
    }

    .spatial-workspace__command [data-workspace-open-creator] span {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .workspace-command__actions {
        align-self: center;
    }

    .workspace-prompt-dock textarea {
        max-height: 132px;
        font-size: 16px;
    }

    .workspace-help {
        top: 10px;
    }

    .spatial-workspace__footer {
        align-items: flex-start;
        min-height: 62px;
    }

    .account-workspace {
        border-radius: 16px;
    }

    .account-workspace__sidebar {
        display: block;
        padding: 13px;
    }

    .account-workspace__identity {
        display: none;
    }

    .account-workspace__sidebar nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .account-workspace__sidebar nav button {
        display: flex;
        gap: 5px;
        justify-content: center;
        padding: 0 6px;
        font-size: 8px;
        text-align: center;
    }

    .account-workspace__sidebar nav button b {
        display: none;
    }

    .account-workspace__main {
        padding: 14px;
    }

    .account-workspace__main > header {
        display: grid;
        gap: 12px;
    }

    .account-search {
        width: 100%;
    }

    .account-chat-card {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 11px;
    }

    .account-chat-card__mark {
        width: 40px;
        height: 40px;
    }

    .account-chat-card > button {
        grid-column: 2;
        justify-self: start;
    }

    .account-panel--resources,
    .account-panel--drafts {
        grid-template-columns: 1fr 1fr;
    }

    .account-draft-card__shirt {
        min-height: 160px;
    }

    html[data-public-chat-layout="studio"] .workflow-grid {
        grid-template-columns: 1fr;
    }

    html[data-public-chat-layout="studio"] .workflow-grid li {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    html[data-public-chat-layout="studio"] .studio-hero-product {
        min-height: 420px;
    }

    .public-language-field {
        position: static;
        margin-left: auto;
        background: var(--v2-panel-solid);
    }

    .account-panel--resources,
    .account-panel--drafts {
        grid-template-columns: 1fr;
    }

    .spatial-workspace__toolbar > div:first-child strong {
        max-width: 105px;
    }

    .spatial-workspace__footer span {
        max-width: 220px;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-hero-product::after,
    .studio-hero-product__shirt,
    .studio-shirt-zone,
    .spatial-workspace__pulse,
    .spatial-workspace__links,
    .workspace-node.is-linked,
    .workspace-node--instruction.is-new,
    .workspace-chat-sidebar,
    .workspace-node__thinking-dot {
        animation: none !important;
    }
}
