.asst {
    --asst-muted: var(--studio-muted);
    --asst-line: var(--studio-line);
    --asst-pad: clamp(20px, 3.5vw, 46px);
    width: min(calc(100% - 2 * var(--studio-gutter)), var(--studio-width));
    margin: clamp(24px, 4.8vw, 72px) auto;
    color: var(--studio-ink);
    font-family: var(--font-body);
    text-align: start;
    overflow-wrap: anywhere;
}
.asst *, .asst *::after, .asst *::before { box-sizing: border-box; }
.asst [hidden] { display: none !important; }
.asst h1, .asst h2, .asst p, .asst figure, .asst fieldset { margin: 0; }
.asst h1 { font: 500 clamp(2.8rem, 5.4vw, 5.4rem)/1.07 var(--font-heading); letter-spacing: -.055em; }
.asst h2 { font: 500 clamp(1.4rem, 2.3vw, 2.05rem)/1.23 var(--font-heading); letter-spacing: -.038em; }
.asst p, .asst li, .asst summary { line-height: 1.6; }
.asst a:not(.asst-primary, .asst-secondary) { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.asst button, .asst input, .asst select, .asst textarea { font: inherit; }
.asst :focus-visible { outline: 3px solid var(--studio-accent); outline-offset: 3px; }
.asst-guest { display: grid; grid-template-columns: minmax(0,1.32fr) minmax(320px,.86fr); background: var(--studio-surface); }
.asst-hero { position: relative; isolation: isolate; min-height: clamp(420px, 43vw, 620px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: var(--asst-pad); color: #fff; }
.asst-hero > img, .asst-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.asst-hero > img { object-fit: cover; object-position: 43% center; }
.asst-hero::after { content: ''; background: linear-gradient(180deg, transparent 18%, rgba(9, 12, 9, .32) 47%, rgba(9, 12, 9, .9) 100%); }
.asst .asst-hero h1 { color: #fff; }
.asst-hero-title { max-width: 34rem; }
.asst-hero-title p { color: #f9f7f3; font-size: clamp(1rem, 1.7vw, 1.32rem); line-height: 1.45; margin: .85rem 0; }
.asst-caption { display: block; font-size: .76rem; color: #e7e3d9; margin-top: 1.4rem; }
.asst-entry { align-self: center; padding: var(--asst-pad); }
.asst-entry .asst-intro { margin: .85rem 0 1.6rem; color: var(--asst-muted); }
.asst-demo, .asst-alert { padding: 12px 16px; background: var(--studio-surface); border-inline-start: 3px solid var(--studio-accent); font-size: .86rem; }
.asst .asst-demo, .asst .asst-alert { margin-bottom: 18px; }
.asst .asst-error { color: var(--studio-error); border-color: var(--studio-error); }
.asst .asst-help, .asst .asst-empty, .asst .asst-feedback { color: var(--asst-muted); font-size: .88rem; }
.asst .asst-feedback:empty { display: none; }
.asst .asst-empty { margin-top: 1rem; }
.asst .asst-feedback.is-error { color: var(--studio-error); }
.asst a.asst-secondary, .asst button.asst-secondary, .asst .asst-primary, .asst .asst-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: .7rem; align-self: flex-start; justify-self: start;
    min-height: 44px; border: 1px solid var(--studio-ink); padding: .65rem 1rem; cursor: pointer; border-radius: 0; font-size: .92rem;
    font-family: var(--font-body); font-weight: 500; text-decoration: none; line-height: 1.35; text-align: center;
}
.asst .asst-primary { background: var(--studio-ink); color: var(--studio-paper); }
.asst .asst-secondary { background: var(--studio-paper); color: var(--studio-ink); }
.asst .asst-danger { background: transparent; color: var(--studio-error); border-color: currentColor; }
.asst .asst-link { background: none; border: 0; color: var(--studio-ink); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; padding: .4rem 0; }
.asst button:disabled { opacity: .5; cursor: default; }
.asst .asst-primary:not(:disabled):hover { background: var(--studio-accent); border-color: var(--studio-accent); color: var(--studio-paper); }
.asst .asst-secondary:not(:disabled):hover { background: var(--studio-surface); }
.asst-form { display: grid; gap: .7rem; }
.asst-form label, .asst-choices legend, .asst-version label { font-size: .87rem; font-weight: 500; color: var(--studio-ink); }
.asst input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"]), .asst textarea, .asst select {
    min-width: 0; width: 100%; min-height: 44px; color: var(--studio-ink); background: var(--studio-field);
    padding: .6rem .8rem; font-size: 1rem; border: 1px solid var(--studio-field-line); border-radius: 0;
}
.asst textarea { resize: vertical; }
.asst ::placeholder { color: var(--asst-muted); opacity: 1; }
.asst label.asst-check { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; font-weight: 400; margin: .25rem 0; cursor: pointer; }
.asst input:is([type="checkbox"], [type="radio"]) { width: 1.05rem; height: 1.05rem; flex: none; margin: .12rem 0 0; accent-color: var(--studio-accent); }
.asst .asst-code { max-width: 13rem; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.asst .asst-auth-alternate { margin-top: 1.25rem; }
.asst summary { cursor: pointer; padding: .6rem 0; font-size: .9rem; font-weight: 500; }
.asst details > form, .asst details > p, .asst details > [data-auth] { margin: .4rem 0 1rem; }
.asst-breadcrumb { display: flex; gap: .65rem; font-size: .82rem; align-items: baseline; color: var(--asst-muted); }
.asst-heading { padding: 1.2rem 0 clamp(20px, 3.5vw, 42px); }
.asst .asst-heading h1 { font-size: clamp(2.3rem, 4.6vw, 4.3rem); }
.asst-heading p { color: var(--asst-muted); margin: .6rem 0 0; }
.asst-heading p > span { margin-inline: .35rem; }
/* The signed-in workspace shares the studio typography and a single reading column. */
.asst.asst-member {
    --chat-width: 47rem;
    width: min(var(--chat-width), calc(100% - 2 * var(--studio-gutter)));
    margin-block: clamp(2rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
}
.asst-welcome { margin: 0 auto clamp(1.5rem, 3.4vw, 2.75rem); text-align: center; }
.asst-identity {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--studio-accent); font-size: .9rem; font-weight: 500; letter-spacing: -.015em;
}
.asst-identity svg { width: 1.35rem; height: 1.35rem; stroke-width: 1.45; flex: none; }
.asst .asst-welcome h1 {
    margin: 1.05rem auto .65rem; font-size: clamp(2.15rem, 4.1vw, 3.65rem);
    line-height: 1.13; font-weight: 500; letter-spacing: -.06em; text-wrap: balance;
}
.asst-welcome > p:last-child { color: var(--asst-muted); font-size: 1rem; text-wrap: pretty; }
.asst-composer-fields { display: grid; gap: .85rem; min-width: 0; padding: 0; border: 0; }
.asst-composer-box {
    display: grid; gap: .65rem; min-width: 0; padding: .9rem;
    background: var(--studio-field); border: 1px solid var(--asst-line); border-radius: 1.35rem;
    box-shadow: 0 2px 5px color-mix(in srgb, var(--studio-ink) 4%, transparent);
}
.asst-composer-box:focus-within { border-color: var(--studio-field-line); }
.asst .asst-composer-box textarea {
    display: block; width: 100%; min-height: 5.5rem; margin: 0; padding: .65rem .7rem;
    line-height: 1.55; font-size: 1.05rem; border: 0; border-radius: .55rem; background: transparent;
    resize: vertical;
}
.asst-composer-box textarea:focus { outline: none; }
.asst-toolbar, .asst-toolbar-start, .asst-toolbar-end {
    display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; min-width: 0;
}
.asst-toolbar { justify-content: space-between; column-gap: .65rem; row-gap: .45rem; }
.asst-toolbar-end { margin-inline-start: auto; }
.asst-attach-control { display: inline-flex; position: relative; max-width: 100%; min-width: 0; }
.asst-attach-label { display: none; }
.asst .asst-attach-control input[type=file] {
    width: auto; max-width: 100%; min-height: 2.75rem; padding: .3rem 0; border: 0; background: transparent; font-size: .875rem;
}
.asst-attach-control input::file-selector-button { padding: .4rem .7rem; border-radius: .5rem; }
.asst .asst-toolbar button, .asst-enhanced .asst-attach-label, .asst .asst-toolbar select {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem;
    width: auto; max-width: 100%; padding: .4rem .7rem; border: 0; border-radius: .7rem;
    background: transparent; color: var(--studio-muted); font-size: .875rem;
    font-weight: 500; line-height: 1.35; cursor: pointer; white-space: nowrap;
}
.asst-toolbar svg { width: 1.1rem; height: 1.1rem; stroke-width: 1.7; flex: none; }
.asst .asst-toolbar select { padding-inline-start: .4rem; }
.asst-enhanced .asst-attach-control input[type=file] {
    position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer;
}
.asst-enhanced .asst-attach-control:focus-within { outline: 2px solid var(--studio-accent); outline-offset: 2px; border-radius: .7rem; }
.asst .asst-toolbar button:not(:disabled):hover, .asst-enhanced .asst-attach-control:hover .asst-attach-label,
.asst .asst-toolbar select:hover { background: var(--studio-surface); color: var(--studio-ink); }
.asst .asst-toolbar .asst-send-action {
    order: 2; padding-inline: .95rem; background: var(--studio-ink); color: var(--studio-paper); border-radius: 999px;
}
.asst .asst-toolbar .asst-send-action:not(:disabled):hover { background: var(--studio-accent); color: var(--studio-paper); }
.asst .asst-toolbar button:disabled, .asst-composer-fields:disabled .asst-attach-label { opacity: .48; cursor: default; }
.asst-file-details { display: flex; gap: .6rem; align-items: center; padding: .6rem .55rem 0; border-top: 1px solid var(--asst-line); }
.asst-file-details [data-file-name] { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .875rem; }
.asst-remove-file { border: 0; background: transparent; color: var(--studio-muted); font-size: .875rem; cursor: pointer; min-height: 2.75rem; }
.asst .asst-preview canvas { border-radius: .7rem; }
.asst-photo-consent { padding: .6rem .55rem 0; }
.asst-first-use, .asst-photo-consent { display: grid; gap: .25rem; }
.asst-first-use { padding-inline: .4rem; }
.asst-first-use p, .asst-photo-consent p, .asst-quota { color: var(--asst-muted); font-size: .84rem; line-height: 1.55; }
.asst .asst-first-use label.asst-check, .asst .asst-photo-consent label.asst-check { font-size: .875rem; line-height: 1.5; }
.asst-pause { border-inline-start: 3px solid var(--studio-accent); padding-inline-start: .75rem; }
.asst-breadcrumb a { display: inline-flex; align-items: center; gap: .45rem; }
.asst-member .asst-heading h1, .asst-thread h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; text-wrap: balance; }
.asst-member .asst-heading { padding-block: .9rem 1.5rem; }
.asst-thread .asst-transcript { display: grid; list-style: none; gap: 1.45rem; margin: 1rem 0 2rem; padding: 0; }
.asst-transcript li { justify-self: start; max-width: 92%; }
.asst-transcript .asst-user {
    justify-self: end; padding: .75rem 1rem; border-radius: 1.15rem 1.15rem .35rem 1.15rem; background: var(--studio-surface);
}
.asst-transcript strong { display: block; margin-bottom: .25rem; color: var(--asst-muted); font-size: .82rem; font-weight: 500; }
.asst-transcript p { white-space: pre-wrap; font-size: 1rem; line-height: 1.65; }
.asst-thread .asst-images { margin-top: .8rem; }
.asst-thread .asst-images img, .asst-thread .asst-archived-concept img { border-radius: .85rem; }
.asst-thread-images { margin-bottom: 1.65rem; }
.asst-thread h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.asst-history, .asst-account, .asst-project-tools { margin-top: 1.2rem; border-top: 1px solid var(--asst-line); }
.asst-member > .asst-account { margin-top: clamp(1.7rem, 4vw, 3rem); }
.asst .asst-history > summary, .asst .asst-account > summary, .asst .asst-project-tools > summary {
    color: var(--studio-muted); padding-block: .8rem; font-size: .875rem; font-weight: 500;
}
.asst .asst-account[open] > summary, .asst .asst-history[open] > summary, .asst .asst-project-tools[open] > summary { color: var(--studio-ink); }
.asst-project-list { list-style: none; margin: 0; padding: 0; }
.asst-project-list li + li { border-top: 1px solid var(--asst-line); }
.asst .asst-project-list a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem .25rem; text-decoration: none; }
.asst-project-list strong { font-size: .95rem; font-weight: 500; }
.asst-project-list small { margin-inline-start: .5rem; color: var(--asst-muted); }
.asst .asst-project-list a:hover strong { text-decoration: underline; }
@media (max-width: 520px) {
    .asst.asst-member { width: calc(100% - 2rem); }
    .asst-composer-box { gap: .35rem; padding: .6rem; border-radius: 1.1rem; }
    .asst .asst-toolbar button, .asst-enhanced .asst-attach-label, .asst .asst-toolbar select { padding-inline: .43rem; }
    .asst-enhanced .asst-attach-label, .asst .asst-toolbar .asst-send-action {
        width: 2.75rem; min-width: 2.75rem; padding: 0; gap: 0;
    }
    .asst-toolbar .asst-tool-caption { display: none; }
    .asst .asst-composer-box textarea { resize: none; }
    .asst-toolbar, .asst-toolbar-start, .asst-toolbar-end { column-gap: .15rem; }
    .asst .asst-composer-box textarea { min-height: 5.8rem; }
    .asst-welcome { margin-bottom: 1.6rem; }
}
.asst-images { display: grid; gap: .7rem; }
.asst-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asst-images img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--studio-surface); }
.asst-images figcaption { font-size: .82rem; margin-top: .5rem; font-weight: 500; }
.asst-version, .asst-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.asst-version { margin-top: 1.2rem; }
.asst-version select { width: auto; max-width: 100%; }
.asst-actions small { font-size: .78rem; color: var(--asst-muted); }
.asst-activity { display: grid; gap: .3rem; margin-bottom: 1rem; }
.asst-activity:empty { display: none; }
.asst-activity > p { margin: 0; color: var(--studio-accent); font-size: .9rem; }
.asst-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 100%; background: currentColor; margin-inline-end: .5rem; }
.asst-generating { display: grid; gap: .55rem; margin-block: .5rem 1rem; color: var(--asst-muted); font-size: .9rem; }
.asst-generating-preview {
    position: relative; isolation: isolate; overflow: hidden; width: min(100%, 32rem); aspect-ratio: 2.25;
    border-radius: .9rem; background: #d8cbbd;
}
.asst-generating-preview img {
    position: absolute; inset: -7%; width: 114%; height: 114%; max-width: none;
    object-fit: cover; filter: blur(14px) saturate(.72); opacity: .55;
}
.asst-generating-preview::after {
    content: ""; position: absolute; inset: -35%; pointer-events: none;
    background: radial-gradient(ellipse at 21% 30%, #d7b591cf, transparent 48%),
        radial-gradient(ellipse at 65% 68%, #eae5dacc, transparent 48%),
        radial-gradient(ellipse at 72% 22%, #87968caa, transparent 46%);
    animation: asst-concept-light 5s ease-in-out infinite alternate;
}
@keyframes asst-concept-light {
    from { transform: translate(-7%, 3%) scale(1.03); }
    to { transform: translate(9%, -5%) scale(1.16); }
}
@media (prefers-reduced-motion: reduce) {
    .asst-generating-preview::after { animation: none; }
}
.asst input[type=file]::file-selector-button { border: 0; margin-inline-end: .7rem; font: inherit; background: var(--studio-surface); color: var(--studio-ink); cursor: pointer; }
.asst [data-preview] canvas { display: block; width: 100%; height: auto; max-height: 330px; object-fit: contain; background: var(--studio-surface); }
.asst-crop { padding: .35rem 0; }
.asst-ranges { display: grid; gap: .6rem; margin-top: .65rem; }
.asst-ranges label { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.asst-ranges input { width: 48%; accent-color: var(--studio-accent); }
.asst-project-tools details > form, .asst-account details .asst-form { max-width: 35rem; }
.asst-account-line { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; font-size: .85rem; }
.asst-account-content > p { max-width: 55rem; font-size: .88rem; color: var(--asst-muted); }
.asst-reauth, .asst-case { margin-bottom: .8rem; }
.asst-case code { font-size: .78rem; }
@media (max-width: 850px) {
    .asst-guest { grid-template-columns: minmax(0,1fr) minmax(300px,1fr); }
    .asst-pair { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .asst-guest { grid-template-columns: 1fr; }
    .asst-hero { min-height: 300px; }
    .asst-entry { padding-block: 1.65rem; }
    .asst-guest .asst-hero-title p { margin-bottom: 0; }
    .asst-help a { overflow-wrap: anywhere; }
}
.asst-compare-tools { display: none; }
@media (max-width: 850px) {
    .asst-compare-tools { display: flex; gap: 0; margin: 1rem 0 .6rem; }
    .asst-compare-tools button { background: transparent; color: var(--studio-ink); font-size: .8rem; border: 1px solid var(--studio-field-line); padding: .4rem .7rem; min-height: 40px; cursor: pointer; }
    .asst-compare-tools button + button { border-inline-start: 0; }
    .asst-compare-tools button[aria-pressed="true"] { background: var(--studio-ink); color: var(--studio-paper); }
    .asst-pair[data-selected="concept"] figure:first-child, .asst-pair[data-selected="original"] figure:last-child { display: none; }
}
.asst-entry .asst-pilot { font-size: .84rem; font-weight: 500; margin: -.45rem 0 1.1rem; }
.asst-archived-concept { padding-top: 1rem; }
.asst-archived-concept img { width: 100%; max-height: 360px; object-fit: contain; }
.asst-archived-concept figcaption { font-size: .82rem; }
.asst .asst-local-help { color: var(--asst-muted); font-size: .82rem; padding-block: .25rem .85rem; }
.asst-local-help code { white-space: nowrap; }
