/* ============================================================================
   Studio design style — html[data-style="studio"].

   Same components, same behaviour, same colour families as Enterprise; this layer only changes
   the shape language, density and type, after shadcn/ui (new-york) and assistant-ui's thread:
     • a centred welcome with a greeting and suggestion cards;
     • a floating, fully rounded composer with a round send button and no keyboard hints;
     • pill-shaped user turns on a muted surface, answers set larger with more air;
     • softer, larger corners on every card; a quieter header; an always-reachable action bar.
   Still no gradients, glows or blur: it reads "startup" through shape, space and type.

   Every rule is scoped to html[data-style="studio"], so Enterprise (app.css + theme-expression.css
   as written) is untouched, and the attribute's specificity lets these win without !important.
   Fonts and answer text sizes are shared with Enterprise (typography.css); Studio only adds air
   between turns through --turn-gap.
   ========================================================================= */

html[data-style="studio"] {
  --studio-radius-sm: 0.625rem;
  --studio-radius: 0.875rem;
  --studio-radius-lg: 1.125rem;
  --studio-radius-xl: 1.5rem;
  --studio-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04);
  --studio-shadow-float: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px -12px rgb(0 0 0 / 0.18);
  --turn-gap: 2.25rem;
}
html[data-style="studio"].dark {
  --studio-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --studio-shadow-float: 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 36px -12px rgb(0 0 0 / 0.6);
}

html[data-style="studio"] body { font-size: 15px; }

/* ── Header: quiet, borderless ───────────────────────────────────────── */

html[data-style="studio"] .sm-header { border-bottom-color: transparent; }
html[data-style="studio"] .sm-header__title { font-size: 0.9375rem; font-weight: 500; }
html[data-style="studio"] .sm-header .sm-pill { border-color: transparent; background: var(--muted); border-radius: 999px; }
html[data-style="studio"] .sm-icon-button { border-radius: var(--studio-radius-sm); }
html[data-style="studio"] .sm-icon-button--lg { border-color: transparent; background: transparent; }
html[data-style="studio"] .sm-icon-button--lg:hover { background: var(--muted); }

/* ── Welcome: centred greeting + suggestion cards (assistant-ui ThreadWelcome) ── */

html[data-style="studio"] .sm-empty { align-items: center; text-align: center; max-width: var(--thread-width); padding-top: 20vh; }
html[data-style="studio"] .sm-empty__title { font-size: 2.375rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
html[data-style="studio"] .sm-empty__body { max-width: 32rem; margin-top: 0.75rem; font-size: 1.0625rem; line-height: 1.6; color: var(--muted-foreground); }
html[data-style="studio"] .sm-empty__suggestions { margin-top: 2.25rem; gap: 0.625rem; }
html[data-style="studio"] .sm-suggestion {
  min-height: 3.5rem; padding: 0.85rem 1rem; border-radius: var(--studio-radius-lg);
  background: transparent; font-size: 0.875rem; font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease;
}
html[data-style="studio"] .sm-suggestion:hover { background: var(--muted); border-color: transparent; }
html[data-style="studio"] .sm-suggestion svg { opacity: 0; transition: opacity 150ms ease; }
html[data-style="studio"] .sm-suggestion:hover svg { opacity: 1; }

/* ── Transcript ──────────────────────────────────────────────────────── */

/* User turn: a soft box on a muted surface, no hairline. assistant-ui uses rounded-3xl (24px),
   which turns a two-line message into a capsule; 18px stays soft without that. */
html[data-style="studio"] .sm-bubble-user {
  padding: 0.65rem 1.1rem; border: 0; border-radius: var(--studio-radius-lg);
  background: var(--muted);
}
html[data-style="studio"] .sm-bubble-user--code { border-radius: var(--studio-radius-lg); }

/* The action bar stays reachable (dimmed) instead of appearing only on hover. */
html[data-style="studio"] .sm-message__actions { opacity: 0.55; }
html[data-style="studio"] .sm-message:hover .sm-message__actions,
html[data-style="studio"] .sm-message__actions:focus-within { opacity: 1; }
html[data-style="studio"] .sm-message__actions .sm-icon-button { border-radius: 999px; }

/* Thinking line and sources rail: pill triggers. */
html[data-style="studio"] .sm-thought .ui-collapsible-trigger,
html[data-style="studio"] .sm-sources .ui-collapsible-trigger { border-radius: 999px; }

/* ── Surfaces: larger, softer corners; a whisper of elevation ───────── */

/* Rich blocks in an answer (charts, diagrams, code, tables) keep the shared hairline frame
   (theme-expression.css, Content surfaces) at Studio's table radius; only cards lift. */
html[data-style="studio"] { --block-radius: var(--studio-radius); }

html[data-style="studio"] .sm-approval,
html[data-style="studio"] .sm-file,
html[data-style="studio"] .sm-image,
html[data-style="studio"] .sm-card {
  border-radius: var(--studio-radius-lg);
  box-shadow: var(--studio-shadow-sm);
}
html[data-style="studio"] .sm-code__head,
html[data-style="studio"] .sm-artifact__head { padding-inline: 1rem; }
html[data-style="studio"] .sm-file__icon { border-radius: var(--studio-radius-sm); }
html[data-style="studio"] .sm-file__download,
/* Buttons are rounded-md, not pills: pills read as chips (Approve/Reject looked like tags).
   Fully round stays for icon-only controls: send, message actions, scroll-to-bottom. */
html[data-style="studio"] .sm-button { border-radius: 0.5rem; }
html[data-style="studio"] .sm-code__copy { border-radius: 0.5rem; }
html[data-style="studio"] .sm-prose code { border-radius: 0.375rem; }

/* Floating layers */
html[data-style="studio"] .sm-menu,
html[data-style="studio"] .sm-theme-panel,
html[data-style="studio"] .sm-usage__panel { border-radius: var(--studio-radius-lg); }
html[data-style="studio"] .sm-scroll-bottom { border-radius: 999px; box-shadow: var(--studio-shadow-float); }

/* ── Composer: floating pill with a round send ──────────────────────── */

/* One row: the input and a round send button side by side in a pill (assistant-ui / ChatGPT).
   As the text wraps the pill grows into a rounded box and the button stays bottom-right. */
html[data-style="studio"] .sm-dock { padding-bottom: 0.5rem; }
html[data-style="studio"] .sm-composer-wrap { padding-bottom: 1.25rem; }
html[data-style="studio"] .sm-composer {
  display: flex; align-items: flex-end; gap: 0.25rem;
  padding: 0.4rem 0.4rem 0.4rem 0;
  border-radius: 1.25rem;
  box-shadow: var(--studio-shadow-float);
}
html[data-style="studio"] .sm-composer:focus-within {
  border-color: color-mix(in srgb, var(--foreground) 22%, var(--border));
  box-shadow: var(--studio-shadow-float);
}
html[data-style="studio"] .sm-composer__input {
  flex: 1; min-height: 2.5rem; padding: 0.55rem 0.5rem 0.55rem 1.35rem;
  line-height: 1.5rem;
}
html[data-style="studio"] .sm-composer__footer { flex-shrink: 0; padding: 0; }
/* Hints stay for screen readers (aria-describedby); the pill does not show them. */
html[data-style="studio"] .sm-composer__hint {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html[data-style="studio"] .sm-composer__send { width: 2.5rem; height: 2.5rem; border-radius: 999px; }

/* ── Sidebar: roomier rows, rounder hits ────────────────────────────── */

/* The sidebar sits on the page itself (no separate panel); selection is a soft pill. */
html[data-style="studio"] .sm-sidebar { border-right-color: transparent; background: var(--background); }
html[data-style="studio"] .sm-session--active { background: var(--muted); }
html[data-style="studio"] .sm-session:not(.sm-session--active):hover { background: color-mix(in srgb, var(--muted) 70%, transparent); }
html[data-style="studio"] .sm-sidebar__brand,
html[data-style="studio"] .sm-sidebar__footer { border-color: transparent; }
html[data-style="studio"] .sm-sidebar__brand-mark { border-radius: var(--studio-radius-sm); }
html[data-style="studio"] .sm-sidebar__new-chat,
html[data-style="studio"] .sm-sidebar__search,
html[data-style="studio"] .sm-session,
html[data-style="studio"] .sm-sidebar__group-toggle,
html[data-style="studio"] .sm-profile { border-radius: var(--studio-radius-sm); }
html[data-style="studio"] .sm-session { height: 2.25rem; }
html[data-style="studio"] .sm-session__title { font-size: 0.875rem; }
html[data-style="studio"] .sm-sidebar__new-chat { height: 2.375rem; font-size: 0.875rem; }
html[data-style="studio"] .sm-sidebar__search { height: 2.25rem; }

@media (max-width: 768px) {
  html[data-style="studio"] .sm-empty { padding-top: 10vh; }
  html[data-style="studio"] .sm-empty__title { font-size: 1.625rem; }
  html[data-style="studio"] .sm-composer { border-radius: var(--studio-radius-lg); }
}
