@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700&display=swap");

:root {
    --canvas: #ffffff;
    --surface-soft: #f8f9fa;
    --surface-card: #f5f5f5;
    --surface-strong: #e5e7eb;
    --surface-dark: #101010;
    --surface-dark-elevated: #1a1a1a;
    --hairline: #e5e7eb;
    --hairline-soft: #f3f4f6;
    --ink: #111111;
    --body: #374151;
    --muted: #6b7280;
    --muted-soft: #898989;
    --primary: #111111;
    --primary-active: #242424;
    --on-primary: #ffffff;
    --on-dark: #ffffff;
    --on-dark-soft: #a1a1aa;
    --success: #10b981;
    --warning: #f59e0b;
    --accent-blue: #3b82f6;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;
    --section-space: 96px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--ink);
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-width: 0;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline-soft);
}

.nav-shell {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.settings-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(420px, calc(100vw - 24px));
    padding: 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.settings-popover .card-header-row {
    margin-bottom: 14px;
}

.settings-popover h3 {
    margin: 0;
}

.brand-mark {
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.nav-pill-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
}

.nav-pill-group.compact {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.category-tab,
.category-tab-active {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.category-tab-active {
    background: var(--canvas);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.hero-band {
    padding: 56px 0 var(--section-space);
}

.signal-strip-shell {
    margin-top: -44px;
    margin-bottom: 48px;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--canvas);
    box-shadow: var(--shadow-soft);
}

.signal-strip article {
    padding: 18px 20px;
    border-right: 1px solid var(--hairline-soft);
    min-width: 0;
}

.signal-strip article:last-child {
    border-right: 0;
}

.signal-strip small {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.signal-strip strong {
    display: block;
    color: var(--ink);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.session-signal-strip {
    grid-template-columns: minmax(0, 4fr) minmax(180px, 1fr);
}

.session-link-card {
    min-width: 0;
}

.session-state-card {
    min-width: 0;
    border-right: 0;
}

.session-state-card small,
.session-state-card strong {
    color: inherit;
}

.session-state-card-pending {
    background: #fff7ed;
    color: #9a3412;
}

.session-state-card-active {
    background: #ecfeff;
    color: #155e75;
}

.session-state-card-completed {
    background: #ecfdf5;
    color: #166534;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 460px);
    gap: 40px;
    align-items: center;
}

.hero-copy h1,
.section-head h2,
.session-intro h1,
.workspace-head h2,
.product-mockup-card h2,
.feature-card h3 {
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 1.05;
}

.lead,
.section-copy,
.product-mockup-card p,
.feature-card p,
.lead-tight {
    color: var(--body);
}

.lead {
    max-width: 600px;
    margin: 0;
    font-size: 1rem;
}

.lead-tight {
    margin: 6px 0 0;
}

.eyebrow,
.card-kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.button-primary,
.button-secondary,
.button-link,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease;
}

.button-primary,
button,
.record-button {
    background: var(--primary);
    color: var(--on-primary);
}

.button-primary:active,
button:active,
.record-button:active {
    background: var(--primary-active);
}

.button-secondary {
    background: var(--canvas);
    color: var(--ink);
    border-color: var(--hairline);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hero-app-mockup-card,
.product-mockup-card,
.feature-card {
    border-radius: var(--radius-lg);
    min-width: 0;
}

.hero-app-mockup-card {
    padding: 18px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-card);
}

.mockup-window {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--canvas);
}

.mockup-bar {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--hairline-soft);
}

.mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-strong);
}

.mockup-body {
    padding: 22px;
}

.mockup-block {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface-card);
}

.mockup-block small,
.launch-link small {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.mockup-block strong {
    display: block;
    margin-bottom: 4px;
}

.mockup-flow {
    display: grid;
    gap: 14px;
    padding: 22px 0;
}

.flow-line {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.flow-dot {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--surface-strong);
}

.flow-line.active .flow-dot {
    background: var(--primary);
}

.mockup-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge-pill.dark {
    background: var(--surface-dark-elevated);
    color: var(--on-dark);
}

.flash-shell {
    margin-bottom: 40px;
}

.flash-banner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
}

.flash-banner a {
    color: var(--accent-blue);
}

.section-stack {
    padding-bottom: var(--section-space);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-copy {
    margin: 0;
    font-size: 0.98rem;
}

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

.workspace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.workspace-tabs {
    display: grid;
    gap: 20px;
}

.workspace-tab {
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.workspace-tab.is-active {
    background: var(--canvas);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.workspace-tab-panel {
    display: none;
}

.workspace-tab-panel.is-active {
    display: block;
}

.workspace-tab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.subform-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--canvas);
    border: 1px solid var(--hairline);
}

.feature-card {
    padding: 28px;
    background: var(--surface-card);
}

.featured-launch {
    background: var(--surface-dark);
    color: var(--on-dark);
    width: 100%;
}

.featured-launch h3,
.featured-launch p,
.featured-launch .card-kicker,
.featured-launch label,
.featured-launch strong,
.featured-launch span,
.featured-launch .launch-link a,
.featured-launch .launch-link small {
    color: var(--on-dark);
}

.featured-launch input,
.featured-launch select,
.featured-launch textarea {
    background: var(--surface-dark-elevated);
    border-color: #2b2b2b;
    color: var(--on-dark);
}

.featured-launch .button-primary {
    background: var(--canvas);
    color: var(--ink);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.card-header-row h3,
.product-mockup-card h2,
.workspace-head h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.stack {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    margin: 0;
}

.hidden-field {
    transition: all 0.3s ease;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--hairline);
    background: var(--canvas);
    color: var(--ink);
    min-width: 0;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

.featured-launch input::placeholder,
.featured-launch textarea::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.launch-link {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.launch-link a {
    display: block;
    word-break: break-all;
    overflow-wrap: anywhere;
}

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

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

.catalog-carousel {
    --carousel-height: 132px;
    height: var(--carousel-height);
    overflow: hidden;
    position: relative;
}

.carousel-track {
    list-style: none;
    padding-left: 0;
    margin: 0;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.carousel-item {
    min-height: var(--carousel-height);
    display: grid;
    align-content: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.carousel-item:last-child {
    border-bottom: 0;
}

.product-mockup-card {
    padding: 24px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
}

.list-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.list-head h3 {
    margin: 0;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.list-head span {
    color: var(--muted);
}

.plain-list,
.data-list,
.footer-list {
    margin: 0;
    padding-left: 18px;
}

.data-list.clean {
    list-style: none;
    padding-left: 0;
}

.data-list.clean li {
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.data-list.clean li:last-child {
    border-bottom: 0;
}

.data-list strong,
.catalog-card h3,
.entry-card strong {
    display: block;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.data-list span,
.data-list small,
.catalog-card p,
.entry-card span,
.entry-card small,
.assistant-note,
.session-meta,
.workspace-head p,
.live-status,
.footer p,
.footer li,
.muted {
    color: var(--muted);
}

.table-card {
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table th,
.table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--hairline-soft);
    vertical-align: top;
    font-size: 0.94rem;
    overflow-wrap: anywhere;
}

.table th {
    color: var(--muted);
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-active {
    background: #d1fae5;
    color: #065f46;
}

.badge-completed {
    background: #e0e7ff;
    color: #3730a3;
}

.session-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 420px);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 64px;
    align-items: start;
}

.session-shell.single {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 64px);
    align-items: center;
}

.conversation-surface {
    display: grid;
    gap: 24px;
    min-width: 0;
    align-content: start;
}

.session-intro {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}

.session-intro h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.06;
}

.session-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.assistant-note {
    padding: 14px 18px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
}

.assistant-note.neutral {
    background: var(--canvas);
}

.summary-total {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--hairline-soft);
    color: var(--body);
}

.live-workspace {
    display: grid;
    gap: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.workspace-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: start;
}

.live-status {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.timeline {
    display: grid;
    gap: 12px;
    max-height: 480px;
    overflow: auto;
    overflow-x: hidden;
    padding: 8px;
    min-width: 0;
}

.message {
    display: grid;
    gap: 6px;
    max-width: 88%;
}

.message.assistant {
    justify-self: start;
}

.message.user {
    justify-self: end;
    text-align: right;
}

.message-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.message.user .message-meta {
    justify-content: flex-end;
}

.message-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--surface-card);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}

.message.user .message-avatar {
    background: var(--primary);
    color: var(--on-primary);
}

.role {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.message-bubble {
    position: relative;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--hairline);
    background: var(--canvas);
    box-shadow: var(--shadow-soft);
    min-width: 0;
}

.message.assistant .message-bubble {
    background: var(--surface-card);
    border-top-left-radius: 8px;
}

.message.user .message-bubble {
    background: #111111;
    color: var(--on-primary);
    border-color: #111111;
    border-top-right-radius: 8px;
}

.live-workspace .message.user .message-bubble,
.live-workspace .message.user .message-bubble p {
    color: var(--on-primary);
}

.message.user .message-bubble::after,
.message.assistant .message-bubble::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border-top: 1px solid var(--hairline);
    border-left: 1px solid var(--hairline);
    background: inherit;
}

.message.assistant .message-bubble::after {
    left: -6px;
}

.message.user .message-bubble::after {
    right: -6px;
    border-top: 1px solid #111111;
    border-left: 1px solid #111111;
}

.message-bubble p {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.manual-zone {
    display: grid;
}

.inset-form {
    background: var(--surface-card);
}

.manual-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.manual-compose textarea {
    margin: 0;
    min-height: 108px;
}

.manual-compose .manual-send-button {
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    border-radius: 12px;
    align-self: stretch;
}

.summary-rail {
    display: grid;
    gap: 24px;
    align-content: start;
    position: sticky;
    top: 88px;
    align-self: start;
    min-width: 0;
}

.entry-card,
.catalog-card {
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    border: 1px solid var(--hairline-soft);
}

.entry-card {
    margin-bottom: 12px;
}

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

.catalog-card ul {
    margin-top: 12px;
}

.catalog-card,
.entry-card,
.flash-banner,
.assistant-note,
.live-status,
.product-mockup-card p,
.feature-card p,
.footer p,
.footer li,
.data-list span,
.data-list small {
    overflow-wrap: anywhere;
}

.footer {
    background: var(--surface-dark);
    color: var(--on-dark-soft);
    padding: 64px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer-brand,
.footer h4 {
    color: var(--on-dark);
}

.footer h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
}

.footer a {
    color: var(--on-dark-soft);
}

.footer-list li {
    margin-bottom: 8px;
}

.narrow {
    max-width: 560px;
    margin: 0 auto;
}

.chooser-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
}

.chooser-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.chooser-card {
    width: min(920px, 100%);
    padding: 42px;
    border-radius: 22px;
    border: 1px solid var(--hairline);
    background: var(--canvas);
    box-shadow: var(--shadow-card);
}

.chooser-card h1 {
    margin: 0 0 12px;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.chooser-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.chooser-button {
    min-height: 108px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-xl);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
}

.chooser-button-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.chooser-button-secondary {
    background: var(--canvas);
    color: var(--ink);
    border-color: var(--hairline);
}

.simple-session-shell {
    display: flex;
    height: calc(100dvh - var(--simple-top-nav-height, 64px));
    padding-top: 16px;
    padding-bottom: 16px;
    overflow: hidden;
}

.simple-conversation-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    padding: 22px;
    min-width: 0;
    position: relative;
}

.simple-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.simple-head h1 {
    margin: 0;
    font-family: "Manrope", "Inter", sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.simple-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.simple-subheader-actions {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}

.simple-session-page .simple-nav-shell {
    /*display: grid; */
    grid-template-rows: auto auto;
    gap: 6px;
    min-height: auto;
    padding-top: 3px;
    padding-bottom: 6px;
}

.simple-session-page .simple-nav-shell-full {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
}

.simple-session-page .simple-nav-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.simple-session-page .simple-nav-row-top {
    justify-content: flex-end;
    gap: 10px;
}

.simple-session-page .simple-nav-row-top .brand-mark {
    margin-right: auto;
}

.simple-session-page .simple-nav-row-actions {
    justify-content: flex-end;
}

.simple-session-page .simple-subheader-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.simple-session-page .simple-subheader-actions .button-primary,
.simple-session-page .simple-subheader-actions .button-secondary {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.simple-timeline {
    display: grid;
    align-content: start;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

.simple-timeline .message {
    width: fit-content;
    max-width: 82%;
}

.simple-timeline .message.assistant {
    align-self: flex-start;
}

.simple-timeline .message.user {
    align-self: flex-end;
}

.simple-manual-form {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.simple-task-summary {
    display: grid;
    gap: 6px;
    align-content: start;
    min-width: 0;
    max-width: 100%;
    justify-items: start;
    text-align: left;
}

.simple-task-summary .card-kicker {
    margin-bottom: 0;
    letter-spacing: 0px;

}

.simple-task-summary #compact-task-total {
    margin-right: 8px;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0px;

}

.compact-task-badges {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    max-width: 260px;
    pointer-events: none;
    align-items: flex-end;
}

.compact-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    border: 1px solid rgba(26, 92, 26, 0.25);
    background: rgba(217, 242, 217, 0.9);
    color: #1a5c1a;
    font-size: 0.5rem;
    line-height: 0.5;
    pointer-events: auto;
}

.compact-task-badge.empty {
    color: var(--muted);
}

.compact-task-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 0.67rem;
    line-height: 1;
    cursor: pointer;
}

.compact-task-remove:hover {
    color: #991b1b;
    background: #fee2e2;
}

.simple-manual-form input {
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 40px;
}

.simple-send-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    flex: 0 0 auto;
}

.simple-send-button span {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
    transform: translateX(0);
}

.manual-compose .manual-send-button {
    width: 48px;
    height: auto;
    min-height: 0;
    border-radius: 12px;
    align-self: stretch;
}

.simple-manual-form.is-sending .simple-send-button span {
    animation: compact-send-glyph 0.7s ease-in-out infinite;
}

@keyframes compact-send-glyph {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(4px);
        opacity: 0.75;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.simple-assigned-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 0;
    z-index: 1300;
    border: 1px solid var(--hairline);
    border-radius: 16px 16px 0 0;
    background: var(--canvas);
    padding: 18px;
    max-height: min(72vh, 680px);
    overflow: auto;
    box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.18);
    transform: translateY(104%);
    transition: transform 0.3s ease;
}

.simple-assigned-panel.is-open {
    transform: translateY(0);
}

.simple-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(0, 0, 0, 0.35);
}

.toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.toast {
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 12px 30px rgba(10, 10, 10, 0.15);
    border: 1px solid transparent;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
}

.toast-add {
    background: #ecfdf3;
    border-color: #8ee6b8;
    color: #0f5132;
}

.toast-remove {
    background: #fff1f2;
    border-color: #f8a9b2;
    color: #7f1d1d;
}

.toast-update {
    background: #eff6ff;
    border-color: #9cc2ff;
    color: #1e3a8a;
}

@media (max-width: 1024px) {

    .hero-grid,
    .section-head,
    .workspace-grid,
    .workspace-layout,
    .workspace-tab-grid,
    .catalog-grid,
    .catalog-grid.four,
    .session-shell,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .session-intro,
    .workspace-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .session-meta {
        justify-content: flex-start;
    }

    .summary-rail {
        position: static;
    }

    .simple-session-shell,
    .chooser-actions {
        grid-template-columns: 1fr;
    }

    .signal-strip {
        grid-template-columns: 1fr;
    }

    .signal-strip article {
        border-right: 0;
        border-bottom: 1px solid var(--hairline-soft);
    }

    .signal-strip article:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 767px) {

    .nav-shell,
    .hero-actions,
    .card-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-band {
        padding-top: 32px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .section-head h2,
    .session-intro h1 {
        font-size: 1.9rem;
    }

    .feature-card,
    .product-mockup-card,
    .hero-app-mockup-card {
        padding: 20px;
    }
}