:root {
    --bg: #090a12;
    --panel: rgba(16, 18, 32, 0.82);
    --panel-strong: rgba(20, 23, 40, 0.94);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f5f3ee;
    --text-soft: rgba(245, 243, 238, 0.72);
    --accent: #d6a56f;
    --accent-soft: rgba(214, 165, 111, 0.16);
    --accent-strong: #efc28d;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(214, 165, 111, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(104, 134, 255, 0.16), transparent 26%),
        linear-gradient(180deg, #0a0b13 0%, #080910 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.press-page {
    position: relative;
    overflow: hidden;
}

.press-orb {
    position: fixed;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
}

.press-orb--left {
    top: -12rem;
    left: -10rem;
    background: rgba(214, 165, 111, 0.45);
}

.press-orb--right {
    right: -12rem;
    bottom: -14rem;
    background: rgba(88, 112, 255, 0.35);
}

.press-header,
.press-main {
    position: relative;
}

.press-header {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 40;
}

.press-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.press-brand__mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(214, 165, 111, 0.35), rgba(214, 165, 111, 0.12));
    border: 1px solid rgba(214, 165, 111, 0.3);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.press-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.press-brand__text strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.press-brand__text span {
    display: none;
}

.press-nav,
.press-header__actions,
.inline-actions,
.hero-actions,
.composer-actions,
.studio-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.press-nav {
    margin-left: auto;
    position: relative;
    z-index: 3;
}

.press-nav a,
.press-link-btn,
.press-primary-btn,
.press-secondary-btn,
.press-ghost-btn {
    border-radius: 999px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.press-nav a,
.press-link-btn {
    padding: 10px 14px;
    color: var(--text-soft);
}

.press-nav a:hover,
.press-link-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.press-primary-btn,
.press-secondary-btn,
.press-ghost-btn {
    border: 1px solid transparent;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.press-primary-btn {
    color: #10121f;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: 0 16px 40px rgba(214, 165, 111, 0.2);
}

.press-primary-btn:hover,
.press-secondary-btn:hover,
.press-ghost-btn:hover,
button:hover {
    transform: translateY(-1px);
}

.press-secondary-btn {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line);
}

.press-ghost-btn {
    color: var(--text-soft);
    background: transparent;
    border-color: var(--line);
}

.press-primary-btn--large,
.press-secondary-btn--large {
    padding-inline: 22px;
    min-height: 54px;
}

.press-user-pill__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(214, 165, 111, 0.28), rgba(214, 165, 111, 0.08));
    color: var(--accent-strong);
    font-weight: 800;
}

.press-menu__user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.press-menu__user-text strong {
    font-size: 0.86rem;
    line-height: 1.1;
}

.press-menu__user-text span {
    font-size: 0.72rem;
    color: var(--text-soft);
    line-height: 1.1;
}

.press-menu {
    position: relative;
    z-index: 4;
}

.press-menu summary {
    list-style: none;
}

.press-menu summary::-webkit-details-marker {
    display: none;
}

.press-menu__toggle {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
    user-select: none;
}

.press-menu__toggle:hover,
.press-menu[open] .press-menu__toggle {
    border-color: rgba(214, 165, 111, 0.32);
    background: rgba(214, 165, 111, 0.1);
    transform: translateY(-1px);
}

.press-menu__toggle::after {
    content: "▾";
    font-size: 0.78rem;
    color: var(--text-soft);
}

.press-menu__toggle--user {
    padding: 6px 10px 6px 6px;
}

.press-menu__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 8px;
    display: grid;
    gap: 4px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(16, 18, 32, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    z-index: 60;
}

.press-menu__list--right {
    left: auto;
    right: 0;
}

.press-menu--sections .press-menu__list {
    min-width: 170px;
}

.press-menu--user .press-menu__list {
    min-width: 180px;
}

.press-menu__list a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-soft);
}

.press-menu__list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.press-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 64px;
    z-index: 1;
}

.hero,
.studio-grid,
.guest-grid {
    display: grid;
    gap: 24px;
}

.hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    padding: 38px 0 58px;
    align-items: center;
}

.hero-copy h1,
.section-heading h2,
.paper-card h2,
.studio-card h3 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.02em;
}

.hero-copy h1 {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.95;
}

.press-eyebrow {
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-lead,
.manifest-card p,
.paper-note,
.scene-body,
.scene-meta,
.studio-toolbar-note,
.empty-state,
.guest-card p,
.section-note {
    color: var(--text-soft);
    line-height: 1.7;
}

.hero-lead {
    max-width: 62ch;
    margin: 22px 0 28px;
    font-size: 1.08rem;
}

.hero-metrics,
.manifest-grid,
.guest-grid {
    display: grid;
    gap: 16px;
}

.hero-metrics {
    margin-top: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metric,
.manifest-card,
.paper-card,
.studio-card {
    backdrop-filter: blur(14px);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-metric {
    border-radius: 24px;
    padding: 18px 20px;
}

.hero-metric__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.hero-metric__label {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.paper-card {
    border-radius: 32px;
    padding: 32px;
}

.paper-card h2,
.section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
}

.paper-list {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
    display: grid;
    gap: 12px;
}

.paper-list strong {
    color: var(--text);
}

.paper-list--compact {
    gap: 10px;
}

.paper-note {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.manifest {
    padding: 12px 0 20px;
}

.section-heading {
    max-width: 66rem;
    margin-bottom: 24px;
}

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

.section-note,
.composer-card__pill,
.thread-card__meta {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.manifest-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manifest-card {
    min-height: 240px;
    border-radius: 28px;
    padding: 24px;
}

.manifest-card__index {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(214, 165, 111, 0.2);
    color: var(--accent-strong);
    font-weight: 700;
}

.manifest-card h3,
.studio-card h3 {
    margin: 18px 0 12px;
    font-size: 1.85rem;
}

.studio-section {
    padding-top: 34px;
}

.studio-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: start;
}

.studio-main,
.studio-side {
    display: grid;
    gap: 18px;
}

.workspace-stack {
    display: grid;
    gap: 18px;
}

.studio-card {
    border-radius: 28px;
    padding: 24px;
}

.studio-toolbar-card {
    display: grid;
    gap: 14px;
}

.studio-toolbar {
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
}

.studio-toolbar--secondary {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.field-group {
    display: grid;
    gap: 10px;
    flex: 1 1 260px;
}

.field-group--compact {
    flex: 1 1 220px;
}

.field-group__label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.field-control,
.composer-input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--text);
    border-radius: 18px;
}

.field-control {
    min-height: 52px;
    padding: 0 16px;
}

.composer-card__head,
.thread-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.composer-input {
    resize: vertical;
    min-height: 180px;
    padding: 18px 18px 20px;
    line-height: 1.65;
}

.composer-input--scene {
    min-height: 360px;
}

.composer-input--compact {
    min-height: 140px;
}

.composer-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.mode-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mode-switch__btn {
    min-height: 54px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.98rem;
    font-weight: 700;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.mode-switch__btn:hover,
.mode-switch__btn.is-active {
    color: var(--text);
    border-color: rgba(214, 165, 111, 0.36);
    background: rgba(214, 165, 111, 0.12);
    transform: translateY(-1px);
}

.composer-card__pill {
    color: var(--accent-strong);
    white-space: nowrap;
}

.thread-messages,
.library-list {
    display: grid;
    gap: 12px;
}

.thread-messages {
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
}

.message-bubble {
    border-radius: 22px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.message-bubble--user {
    background: rgba(214, 165, 111, 0.12);
    border-color: rgba(214, 165, 111, 0.24);
}

.message-bubble__role {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.message-bubble--assistant .message-bubble__role {
    color: #9eb2ff;
}

.message-bubble__text {
    color: var(--text);
    line-height: 1.75;
}

.message-bubble__text p {
    margin: 0 0 12px;
}

.message-bubble__text p:last-child {
    margin-bottom: 0;
}

.message-media,
.result-preview__image,
.message-video {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.message-media,
.message-video {
    margin: 0 0 12px;
}

.message-audio,
.result-preview__audio {
    width: 100%;
    margin: 0 0 12px;
}

.result-preview {
    display: grid;
    gap: 14px;
}

.result-preview__meta {
    color: var(--text-soft);
    line-height: 1.65;
}

.result-preview__meta--pre {
    white-space: pre-wrap;
}

.is-hidden {
    display: none !important;
}

.empty-state {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed var(--line);
}

.empty-state--soft {
    background: rgba(255, 255, 255, 0.03);
}

.scene-body {
    max-height: 540px;
    overflow: auto;
    white-space: pre-wrap;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.scene-meta {
    margin-bottom: 18px;
}

.library-item {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.library-item:hover,
.library-item.is-active {
    border-color: rgba(214, 165, 111, 0.3);
    background: rgba(214, 165, 111, 0.08);
    transform: translateY(-1px);
}

.library-item__title {
    font-weight: 700;
    color: var(--text);
}

.library-item__meta,
.library-item__excerpt {
    margin-top: 8px;
    color: var(--text-soft);
    line-height: 1.55;
}

.library-item__meta {
    font-size: 0.82rem;
}

.library-item__excerpt {
    font-size: 0.94rem;
}

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

.guest-card--muted {
    background: rgba(255, 255, 255, 0.04);
}

.step-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 20px;
}

.step-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.step-grid--scene {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.step-main,
.step-side {
    display: grid;
    gap: 16px;
}

.composer-actions--stack {
    display: grid;
    gap: 10px;
}

.thread-card__head--compact {
    margin-top: 8px;
    margin-bottom: 8px;
}

.asset-list {
    display: grid;
    gap: 12px;
}

.asset-list--visual {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.asset-card {
    text-align: left;
}

.asset-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.asset-audio-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    color: var(--accent-strong);
    background: rgba(214, 165, 111, 0.08);
    font-weight: 700;
}

@media (max-width: 1080px) {
    .press-header,
    .press-main {
        width: min(100%, calc(100% - 24px));
    }

    .hero,
    .studio-grid,
    .manifest-grid,
    .guest-grid,
    .step-grid,
    .step-grid--scene {
        grid-template-columns: 1fr;
    }

    .press-header {
        flex-wrap: wrap;
    }

    .press-nav {
        order: 3;
        width: 100%;
        margin: 0;
        justify-content: flex-start;
        overflow: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 720px) {
    .press-header__actions,
    .hero-actions,
    .composer-actions,
    .inline-actions,
    .studio-toolbar,
    .studio-toolbar--secondary,
    .section-heading--split,
    .composer-card__head,
    .thread-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .composer-options,
    .mode-switch {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-copy h1 {
        font-size: clamp(2.6rem, 15vw, 4.2rem);
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .paper-card,
    .studio-card,
    .manifest-card {
        padding: 20px;
        border-radius: 24px;
    }
}
