:root {
  --page: #f6f7f1;
  --surface: #ffffff;
  --surface-soft: #f2f5ee;
  --ink: #17201d;
  --muted: #66736d;
  --soft: #8c9892;
  --line: #d8dfd6;
  --line-strong: #b9c4bd;
  --accent: #146c5f;
  --accent-ink: #f7fffb;
  --coral: #d9654f;
  --gold: #d7a72c;
  --danger: #c93535;
  --shadow: 0 18px 42px rgba(39, 55, 49, 0.12);
  --radius: 8px;
  --body-font: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(20, 108, 95, 0.13), transparent 42%),
    linear-gradient(315deg, rgba(217, 101, 79, 0.12), transparent 46%),
    var(--page);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  font-family: var(--body-font);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  vector-effect: non-scaling-stroke;
}

::selection {
  background: rgba(20, 108, 95, 0.18);
}

.app-shell {
  min-height: 100dvh;
  padding: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.app-topbar {
  position: relative;
  isolation: isolate;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 223, 214, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(39, 55, 49, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: topbarReveal 0.66s var(--ease-out-expo) both;
}

.app-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.72) 46%, transparent 68%);
  opacity: 0.42;
  transform: translateX(-74%);
  animation: filmSweep 1.35s 0.14s var(--ease-out-expo) both;
}

.brand {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #193d34 62%, var(--gold));
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 18px rgba(20, 108, 95, 0.18);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -40% 35% -40% -15%;
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(18deg) translateX(-120%);
  animation: markGlint 2.8s 0.6s var(--ease-out-expo) infinite;
}

.brand-text {
  min-width: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  white-space: nowrap;
}

.brand-text strong {
  margin-left: 3px;
  color: var(--accent);
}

.topbar-actions,
.session-tools,
.dialog-actions,
.composer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-button,
.pill-button,
.ghost-button,
.primary-button,
.icon-button,
.attach-button,
.send-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition:
    transform 0.18s var(--ease-out-quart),
    border-color 0.18s var(--ease-out-quart),
    background 0.18s var(--ease-out-quart),
    color 0.18s var(--ease-out-quart),
    box-shadow 0.18s var(--ease-out-quart);
}

.topbar-button > *,
.pill-button > *,
.ghost-button > *,
.primary-button > *,
.icon-button > *,
.attach-button > *,
.send-button > *,
.generated-image-card figcaption a > * {
  position: relative;
  z-index: 1;
}

.topbar-button::before,
.pill-button::before,
.ghost-button::before,
.primary-button::before,
.icon-button::before,
.attach-button::before,
.send-button::before,
.generated-image-card figcaption a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 64%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 0.42s var(--ease-out-expo), opacity 0.18s var(--ease-out-quart);
}

.topbar-button::after,
.pill-button::after,
.ghost-button::after,
.primary-button::after,
.icon-button::after,
.attach-button::after,
.send-button::after,
.generated-image-card figcaption a::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16) 24%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(20, 108, 95, 0.18), transparent 54%);
  opacity: 0;
  transform: scale(0.24);
}

.topbar-button:hover::before,
.pill-button:hover::before,
.ghost-button:hover::before,
.primary-button:hover::before,
.icon-button:hover::before,
.attach-button:hover::before,
.send-button:hover::before,
.generated-image-card figcaption a:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.topbar-button,
.pill-button,
.ghost-button,
.primary-button {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.topbar-button:hover,
.pill-button:hover,
.ghost-button:hover,
.icon-button:hover,
.attach-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fbfcf9;
  box-shadow: 0 10px 20px rgba(39, 55, 49, 0.08);
}

.primary-button,
.send-button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button:hover,
.send-button:hover {
  transform: translateY(-2px);
  background: #0f5f53;
  box-shadow: 0 10px 22px rgba(20, 108, 95, 0.2);
}

.topbar-button:active,
.pill-button:active,
.ghost-button:active,
.primary-button:active,
.icon-button:active,
.attach-button:active,
.send-button:active,
.generated-image-card figcaption a:active {
  transform: translateY(0) scale(0.985);
}

.motion-press {
  animation: buttonPress 0.42s var(--ease-out-quint) both;
}

.motion-press::after,
.motion-new-session::after,
.motion-append::after,
.motion-apply::after,
.motion-generate::after {
  animation: actionRipple 0.58s var(--ease-out-expo) both;
}

.motion-new-session {
  animation: actionLift 0.66s var(--ease-out-expo) both;
}

.motion-new-session svg {
  animation: iconOrbit 0.62s var(--ease-out-expo) both;
}

.motion-append {
  animation: actionLift 0.56s var(--ease-out-expo) both;
}

.motion-append svg {
  animation: iconSlideIn 0.58s var(--ease-out-expo) both;
}

.motion-apply {
  animation: actionConfirm 0.62s var(--ease-out-expo) both;
}

.motion-apply svg {
  animation: iconCheckDraw 0.58s var(--ease-out-expo) both;
}

.motion-generate {
  animation: generateButtonLaunch 0.72s var(--ease-out-expo) both;
}

.motion-generate svg {
  animation: sendIconLaunch 0.72s var(--ease-out-expo) both;
}

.topbar-button svg,
.pill-button svg,
.ghost-button svg,
.primary-button svg,
.icon-button svg,
.attach-button svg,
.send-button svg {
  flex: none;
  transition: transform 0.2s var(--ease-out-quint), opacity 0.2s var(--ease-out-quart);
}

.send-button:hover svg,
.primary-button:hover svg {
  transform: translateX(2px);
}

.attach-button:hover svg,
.topbar-button:hover svg,
.pill-button:hover svg,
.icon-button:hover svg,
.ghost-button:hover svg {
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--muted);
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studio-layout {
  min-height: 0;
  height: calc(100dvh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 560px) minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.session-panel,
.compose-panel,
.result-panel {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(216, 223, 214, 0.96);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panelReveal 0.92s var(--ease-out-expo) both;
}

.session-panel {
  animation-delay: 0.08s;
}

.compose-panel {
  animation-delay: 0.16s;
}

.result-panel {
  animation-delay: 0.24s;
}

.session-panel::before,
.compose-panel::before,
.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 15% -10%, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(135deg, rgba(20, 108, 95, 0.035), transparent 54%);
  opacity: 0.88;
}

.session-panel.motion-session-created {
  animation: sessionCreated 0.72s var(--ease-out-expo) both;
}

.compose-panel.motion-compose-ready {
  animation: composeReady 0.72s var(--ease-out-expo) both;
}

.result-panel.motion-gallery-reset {
  animation: galleryReset 0.72s var(--ease-out-expo) both;
}

.result-panel.motion-result-awaiting::before {
  animation: awaitingWash 0.86s var(--ease-out-expo) both;
}

.result-panel.is-generating .result-stream::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  height: 2px;
  margin: -16px -16px 14px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gold), transparent);
  transform-origin: left;
  animation: galleryScan 1.6s var(--ease-out-quint) infinite;
}

.session-panel::after,
.compose-panel::after,
.result-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.42) 43%, transparent 58%);
  opacity: 0;
  transform: translateX(-105%);
}

.session-panel:hover::after,
.compose-panel:hover::after,
.result-panel:hover::after {
  opacity: 0.72;
  transform: translateX(105%);
  transition: transform 1s var(--ease-out-expo), opacity 0.32s var(--ease-out-quart);
}

.session-panel,
.result-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.compose-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
}

.panel-head {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.is-ready .panel-head > div,
body.is-ready .template-topline,
body.is-ready .template-controls,
body.is-ready .template-list,
body.is-ready .template-detail,
body.is-ready .composer-shell,
body.is-ready .result-head,
body.is-ready .empty-state {
  animation: contentFloatIn 0.74s var(--ease-out-expo) both;
}

body.is-ready .template-topline {
  animation-delay: 0.1s;
}

body.is-ready .template-controls {
  animation-delay: 0.17s;
}

body.is-ready .template-list {
  animation-delay: 0.24s;
}

body.is-ready .template-detail {
  animation-delay: 0.31s;
}

body.is-ready .composer-shell {
  animation-delay: 0.38s;
}

body.is-ready .empty-state {
  animation-delay: 0.4s;
}

.panel-head > div {
  min-width: 0;
}

.panel-head h1,
.panel-head h2 {
  margin: 3px 0 0;
  min-width: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

.panel-head h1 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(22px, 2.1vw, 30px);
}

.panel-head h2 {
  font-size: 19px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.template-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 18px 18px 0;
  display: grid;
  gap: 14px;
}

.template-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.template-topline h2 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.template-source {
  flex: none;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.template-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 10px;
}

.template-search input,
.template-controls select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
}

.template-search input::placeholder {
  color: var(--soft);
}

.template-list {
  min-width: 0;
  overflow-x: auto;
  display: flex;
  gap: 10px;
  padding: 1px 0 6px;
  scrollbar-width: thin;
}

.template-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 172px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 10px;
  transition:
    transform 0.2s var(--ease-out-quart),
    border-color 0.2s var(--ease-out-quart),
    background 0.2s var(--ease-out-quart),
    box-shadow 0.2s var(--ease-out-quart);
}

.template-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.22s var(--ease-out-quint), opacity 0.18s var(--ease-out-quart);
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(39, 55, 49, 0.08);
}

.template-card.active {
  border-color: rgba(20, 108, 95, 0.56);
  background: color-mix(in srgb, var(--accent) 9%, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(20, 108, 95, 0.08);
}

.template-card.active::after,
.template-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.template-card-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 850;
}

.template-card-meta {
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.template-empty,
.template-detail-empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.template-detail {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(20, 108, 95, 0.075), transparent 34%),
    #ffffff;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.44fr);
  grid-template-areas:
    "copy side"
    "actions side";
  align-items: start;
  gap: 14px 18px;
  animation: detailReveal 0.32s var(--ease-out-quart) both;
}

.template-detail.motion-template-picked {
  animation: templatePicked 0.58s var(--ease-out-expo) both;
}

.template-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent, rgba(215, 167, 44, 0.08), transparent 48%);
  opacity: 0.7;
}

.template-detail-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.template-detail h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.template-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.template-use {
  max-width: 48ch;
}

.template-detail-side {
  grid-area: side;
  min-width: 0;
  display: grid;
  gap: 11px;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-tags span {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.template-guidance {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.template-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.session-list {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
}

.session-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 11px 10px 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  transition:
    border-color 0.18s var(--ease-out-quart),
    background 0.18s var(--ease-out-quart),
    transform 0.18s var(--ease-out-quart),
    box-shadow 0.18s var(--ease-out-quart);
}

.session-card.motion-card-born {
  animation: cardBorn 0.66s var(--ease-out-expo) both;
}

.session-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  opacity: 0;
  transform: scaleY(0.35);
  transition: transform 0.22s var(--ease-out-quint), opacity 0.18s var(--ease-out-quart);
}

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

.session-copy {
  min-width: 0;
  padding-right: 2px;
}

.session-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(39, 55, 49, 0.08);
}

.session-card.active {
  border-color: rgba(20, 108, 95, 0.48);
  background: color-mix(in srgb, var(--accent) 8%, #ffffff);
}

.session-card.active::before,
.session-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.session-title {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
  font-weight: 850;
  line-height: 1.35;
}

.session-time {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  color: var(--soft);
  font-size: 12px;
}

.session-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: none;
  opacity: 0.74;
  transform: translateX(2px);
  transition: opacity 0.18s var(--ease-out-quart), transform 0.18s var(--ease-out-quart);
}

.session-card:hover .session-actions,
.session-card.active .session-actions {
  opacity: 1;
  transform: translateX(0);
}

.session-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s var(--ease-out-quart),
    border-color 0.18s var(--ease-out-quart),
    background 0.18s var(--ease-out-quart),
    color 0.18s var(--ease-out-quart),
    box-shadow 0.18s var(--ease-out-quart);
}

.session-actions svg {
  width: 15px;
  height: 15px;
}

.session-actions button:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(39, 55, 49, 0.08);
}

.session-actions .rename-action:hover {
  border-color: rgba(20, 108, 95, 0.34);
  color: var(--accent);
}

.session-actions .delete-action {
  border-color: rgba(201, 53, 53, 0.14);
  color: #a84a42;
}

.session-actions .delete-action:hover {
  border-color: rgba(201, 53, 53, 0.36);
  background: #fff4f2;
  color: var(--danger);
}

.session-card.motion-session-delete {
  pointer-events: none;
  animation: sessionDelete 0.2s var(--ease-out-quart) both;
}

.composer {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 12px 18px 18px;
  overflow: hidden;
}

.image-composer {
  display: grid;
  min-height: 0;
}

.composer-shell {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf9;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  gap: 10px;
  padding: 12px;
  transition:
    border-color 0.22s var(--ease-out-quart),
    background 0.22s var(--ease-out-quart),
    box-shadow 0.22s var(--ease-out-quart),
    transform 0.22s var(--ease-out-quart);
}

.composer-shell.motion-template-append {
  animation: shellAppend 0.7s var(--ease-out-expo) both;
}

.composer-shell.motion-template-apply {
  animation: shellApply 0.72s var(--ease-out-expo) both;
}

.composer-shell.motion-generate-launch {
  animation: shellGenerate 0.78s var(--ease-out-expo) both;
}

.composer-shell.motion-needs-input {
  animation: needsInput 0.5s var(--ease-out-quart) both;
}

.composer-shell.is-generating {
  border-color: rgba(217, 101, 79, 0.36);
  box-shadow: 0 18px 38px rgba(217, 101, 79, 0.14);
}

.composer-shell.is-generating::before {
  animation: composerExposure 1.8s var(--ease-out-quint) infinite;
}

.composer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.6), transparent 30%, rgba(20, 108, 95, 0.055));
  opacity: 0.7;
}

.composer-shell:focus-within {
  border-color: rgba(20, 108, 95, 0.42);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(20, 108, 95, 0.11);
  transform: translateY(-1px);
}

.hidden-file-input {
  display: none;
}

.composer-attachments {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-height: 142px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

.attachment-chip {
  animation: chipIn 0.26s var(--ease-out-quart) both;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.attachment-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-soft);
}

.attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.attachment-size {
  margin-top: 1px;
  color: var(--soft);
  font-size: 12px;
}

.attachment-remove {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  transition: transform 0.16s var(--ease-out-quart), border-color 0.16s var(--ease-out-quart), color 0.16s var(--ease-out-quart);
}

.attachment-remove:hover {
  border-color: rgba(201, 53, 53, 0.34);
  color: var(--danger);
  transform: rotate(8deg) scale(1.04);
}

textarea,
input {
  outline: none;
}

#promptInput {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 150px;
  max-height: 32dvh;
  resize: vertical;
  border: 0;
  background: transparent;
  color: var(--ink);
  line-height: 1.62;
  padding: 4px;
}

#promptInput.motion-prompt-filled {
  animation: promptFilled 0.58s var(--ease-out-expo) both;
}

#promptInput::placeholder {
  color: var(--soft);
}

#promptInput:focus,
.field input:focus {
  box-shadow: 0 0 0 4px rgba(20, 108, 95, 0.11);
}

.composer-actions {
  min-width: 0;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fbfcf9;
}

.attach-button,
.send-button {
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
}

.attach-button {
  background: var(--surface);
  color: var(--muted);
}

.send-button.loading {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(217, 101, 79, 0.22);
  animation: generatingBreath 1.35s var(--ease-out-quint) infinite;
}

.send-button.loading svg {
  animation: pausePulse 0.95s var(--ease-out-quart) infinite;
}

.status-line {
  position: relative;
  z-index: 1;
  margin: 0 18px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  min-height: 18px;
  transition: color 0.18s var(--ease-out-quart), transform 0.18s var(--ease-out-quart);
}

.status-line.motion-status-pop {
  animation: statusPop 0.36s var(--ease-out-expo) both;
}

.result-stream {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-state {
  min-height: 100%;
  color: var(--muted);
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  animation: emptyFloat 0.72s var(--ease-out-expo) both;
}

.empty-state strong {
  color: var(--ink);
  font-size: 24px;
}

.empty-state span {
  max-width: 34ch;
  line-height: 1.65;
}

.turn-block {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216, 223, 214, 0.8);
  animation: turnIn 0.42s var(--ease-out-expo) both;
}

.turn-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.turn-prompt {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  padding: 12px 13px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.62;
  font-weight: 760;
}

.turn-prompt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0;
  transform: translateX(-100%);
  animation: promptSweep 0.8s 0.12s var(--ease-out-expo) both;
}

.turn-meta {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.reference-strip {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
}

.reference-strip img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  object-fit: cover;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}

.reference-strip img:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 18px rgba(39, 55, 49, 0.12);
}

.message-bubble {
  position: relative;
  overflow: hidden;
  width: fit-content;
  max-width: min(640px, 100%);
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  line-height: 1.65;
  animation: bubbleIn 0.34s var(--ease-out-quart) both;
}

.error-bubble {
  border-color: rgba(201, 53, 53, 0.28);
  background: #fff4f2;
  color: #9a2727;
}

.thinking {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.thinking::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(20, 108, 95, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.82s linear infinite;
}

.thinking i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: dot 1.05s infinite ease-in-out;
}

.thinking i:nth-child(3) {
  animation-delay: 0.14s;
}

.thinking i:nth-child(4) {
  animation-delay: 0.28s;
}

.generated-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-items: start;
  gap: 12px;
}

.generated-image-card {
  position: relative;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(39, 55, 49, 0.1);
  animation: imageReveal 0.58s var(--ease-out-expo) both;
  transition: transform 0.24s var(--ease-out-quart), box-shadow 0.24s var(--ease-out-quart), border-color 0.24s var(--ease-out-quart);
}

.generated-image-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 38px rgba(39, 55, 49, 0.14);
}

.generated-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 44%, transparent 58%);
  opacity: 0;
  transform: translateX(-100%);
  animation: imageSweep 1.1s 0.2s var(--ease-out-expo) both;
}

.generated-image-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(74vh, 860px);
  object-fit: contain;
  background: #ffffff;
  transform-origin: center;
  transition: transform 0.42s var(--ease-out-expo), filter 0.24s var(--ease-out-quart);
}

.generated-image-card:hover img {
  transform: scale(1.012);
  filter: saturate(1.03) contrast(1.02);
}

.generated-image-card img.generated-image-missing {
  min-height: 180px;
  opacity: 0.35;
}

.generated-image-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.generated-image-card figcaption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.generated-image-card figcaption a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: none;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  transition: transform 0.18s var(--ease-out-quart), background 0.18s var(--ease-out-quart), box-shadow 0.18s var(--ease-out-quart);
}

.generated-image-card figcaption a:hover {
  transform: translateY(-1px);
  background: #24312d;
  box-shadow: 0 8px 16px rgba(23, 32, 29, 0.16);
}

.settings-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.settings-dialog::backdrop {
  background: rgba(23, 32, 29, 0.34);
  backdrop-filter: blur(4px);
  animation: backdropIn 0.22s var(--ease-out-quart) both;
}

.dialog-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(23, 32, 29, 0.24);
  display: grid;
  gap: 16px;
  animation: dialogIn 0.36s var(--ease-out-expo) both;
}

.dialog-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.dialog-header p,
.settings-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 13px;
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

.dialog-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mobile-only {
  display: none;
}

.mobile-mask {
  display: none;
}

@keyframes topbarReveal {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.992);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.975);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes contentFloatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes buttonPress {
  0% {
    transform: translateY(0) scale(1);
  }

  36% {
    transform: translateY(1px) scale(0.965);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes actionRipple {
  0% {
    opacity: 0;
    transform: scale(0.22);
  }

  28% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes actionLift {
  0% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-3px) scale(1.018);
    box-shadow: 0 18px 34px rgba(20, 108, 95, 0.16);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes actionConfirm {
  0% {
    transform: translateY(0) scale(1);
  }

  42% {
    transform: translateY(-2px) scale(1.025);
    box-shadow: 0 20px 34px rgba(20, 108, 95, 0.2);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes iconOrbit {
  0% {
    transform: rotate(0) scale(1);
  }

  42% {
    transform: rotate(90deg) scale(1.1);
  }

  100% {
    transform: rotate(180deg) scale(1);
  }
}

@keyframes iconSlideIn {
  0% {
    transform: translateX(-3px);
    opacity: 0.75;
  }

  44% {
    transform: translateX(3px);
    opacity: 1;
  }

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

@keyframes iconCheckDraw {
  0% {
    transform: scale(0.88);
    opacity: 0.7;
  }

  45% {
    transform: scale(1.12);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes generateButtonLaunch {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 22px rgba(20, 108, 95, 0.2);
  }

  34% {
    transform: translateY(-4px) scale(1.035);
    box-shadow: 0 24px 42px rgba(20, 108, 95, 0.25);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes sendIconLaunch {
  0% {
    transform: translateX(0) rotate(0);
    opacity: 1;
  }

  42% {
    transform: translateX(9px) translateY(-5px) rotate(-8deg);
    opacity: 0;
  }

  43% {
    transform: translateX(-8px) translateY(5px) rotate(-8deg);
    opacity: 0;
  }

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

@keyframes sessionCreated {
  0% {
    transform: translateX(0);
  }

  38% {
    transform: translateX(4px);
    box-shadow: 0 24px 46px rgba(20, 108, 95, 0.14);
  }

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

@keyframes sessionDelete {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-12px) scale(0.985);
  }
}

@keyframes composeReady {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(0.992);
    box-shadow: 0 24px 46px rgba(20, 108, 95, 0.13);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes galleryReset {
  0% {
    filter: saturate(1);
  }

  44% {
    filter: saturate(1.08) brightness(1.02);
  }

  100% {
    filter: saturate(1);
  }
}

@keyframes awaitingWash {
  0% {
    opacity: 0.6;
    transform: translateX(-2%);
  }

  50% {
    opacity: 1;
    transform: translateX(1%);
  }

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

@keyframes galleryScan {
  0% {
    transform: scaleX(0.06) translateX(-12%);
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

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

@keyframes templatePicked {
  0% {
    transform: translateY(0);
    box-shadow: none;
  }

  42% {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(20, 108, 95, 0.1);
  }

  100% {
    transform: translateY(0);
    box-shadow: none;
  }
}

@keyframes cardBorn {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  55% {
    opacity: 1;
    transform: translateY(1px) scale(1.01);
  }

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

@keyframes shellAppend {
  0% {
    transform: translateY(0);
  }

  36% {
    transform: translateY(-2px);
    border-color: rgba(215, 167, 44, 0.55);
    box-shadow: 0 18px 36px rgba(215, 167, 44, 0.16);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes shellApply {
  0% {
    transform: scale(1);
  }

  36% {
    transform: scale(0.992);
    border-color: rgba(20, 108, 95, 0.56);
    box-shadow: 0 18px 36px rgba(20, 108, 95, 0.16);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shellGenerate {
  0% {
    transform: translateY(0);
  }

  38% {
    transform: translateY(-3px);
    border-color: rgba(217, 101, 79, 0.44);
    box-shadow: 0 20px 40px rgba(217, 101, 79, 0.15);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes needsInput {
  0%,
  100% {
    transform: translateX(0);
    border-color: var(--line);
  }

  22% {
    transform: translateX(-4px);
    border-color: rgba(201, 53, 53, 0.38);
  }

  48% {
    transform: translateX(4px);
    border-color: rgba(201, 53, 53, 0.38);
  }

  74% {
    transform: translateX(-2px);
  }
}

@keyframes promptFilled {
  0% {
    transform: translateY(0);
  }

  38% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes composerExposure {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(-2%);
  }

  50% {
    opacity: 1;
    transform: translateX(2%);
  }
}

@keyframes generatingBreath {
  0%,
  100% {
    box-shadow: 0 12px 26px rgba(217, 101, 79, 0.22);
  }

  50% {
    box-shadow: 0 18px 38px rgba(217, 101, 79, 0.32);
  }
}

@keyframes statusPop {
  0% {
    opacity: 0.45;
    transform: translateY(3px);
  }

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

@keyframes filmSweep {
  from {
    transform: translateX(-74%);
  }

  to {
    transform: translateX(86%);
  }
}

@keyframes markGlint {
  0%,
  60%,
  100% {
    transform: rotate(18deg) translateX(-130%);
  }

  74% {
    transform: rotate(18deg) translateX(220%);
  }
}

@keyframes detailReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes turnIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes promptSweep {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  30% {
    opacity: 0.8;
  }

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

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes imageSweep {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  36% {
    opacity: 0.72;
  }

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

@keyframes emptyFloat {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pausePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.72;
    transform: scale(0.94);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 1180px) {
  .studio-layout {
    grid-template-columns: minmax(0, 250px) minmax(0, 470px) minmax(0, 1fr);
  }

  .template-detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "side"
      "actions";
  }
}

@media (max-width: 1100px) {
  .app-shell {
    padding: 10px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .mobile-mask {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: rgba(23, 32, 29, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s var(--ease-out-quart);
  }

  .mobile-mask.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .studio-layout {
    height: auto;
    min-height: calc(100dvh - 78px);
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  }

  .session-panel {
    position: fixed;
    inset: 10px auto 10px 10px;
    z-index: 50;
    width: min(360px, calc(100vw - 20px));
    transform: translateX(calc(-100% - 20px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease-out-expo), opacity 0.22s var(--ease-out-quart);
  }

  .session-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .compose-panel,
  .result-panel {
    min-height: calc(100dvh - 78px);
  }
}

@media (max-width: 760px) {
  .app-topbar {
    min-height: 54px;
  }

  .studio-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compose-panel,
  .result-panel {
    min-height: auto;
  }

  .compose-panel {
    grid-template-rows: auto auto auto;
  }

  .template-card {
    flex-basis: 160px;
  }

  .composer-shell {
    grid-template-rows: auto minmax(160px, auto) auto;
  }

  .result-panel {
    min-height: 55dvh;
  }

  .topbar-button span {
    display: none;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
    gap: 0;
  }

  .app-topbar,
  .session-panel,
  .compose-panel,
  .result-panel {
    border-radius: 0;
  }

  .studio-layout {
    gap: 0;
  }

  .panel-head,
  .composer,
  .result-stream {
    padding: 13px;
  }

  .status-line {
    margin: 0 13px;
  }

  .composer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .template-controls {
    grid-template-columns: 1fr;
  }

  .template-source {
    display: none;
  }

  .attach-button,
  .send-button {
    width: 100%;
  }

  .topbar-button,
  .pill-button,
  .ghost-button,
  .primary-button,
  .attach-button,
  .send-button {
    min-width: 0;
  }

  .generated-image-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .session-panel,
  .compose-panel,
  .result-panel,
  .app-topbar,
  .turn-block,
  .generated-image-card,
  .message-bubble,
  .empty-state {
    transform: none !important;
  }
}
