:root {
  color-scheme: dark;
  --bg: #101912;
  --panel: #17221a;
  --panel-2: #1d2b20;
  --panel-3: #243428;
  --line: #344b39;
  --line-soft: #273b2c;
  --text: #f2f6ef;
  --muted: #a4b3a5;
  --green: #74c65d;
  --green-bright: #97e978;
  --green-deep: #2c6b3b;
  --gold: #e6c45e;
  --red: #e36c60;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
  --pixel-shadow: 0 4px 0 #0c120d;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

.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;
}

.app-body { overflow: hidden; }

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: 100dvh;
}

.sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 16px max(18px, env(safe-area-inset-bottom));
  background:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px),
    #121d15;
  background-size: 16px 16px;
  border-right: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 5px 24px;
}

.brand strong { display: block; font-size: 18px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }

.brand-cube {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--green);
  box-shadow: inset -7px -7px 0 #3d843e, inset 5px 5px 0 #95dc72, var(--pixel-shadow);
}

.brand-cube::before, .brand-cube::after, .brand-cube i {
  content: "";
  position: absolute;
  background: #254d2c;
}
.brand-cube::before { width: 6px; height: 7px; left: 9px; top: 10px; }
.brand-cube::after { width: 6px; height: 7px; right: 9px; top: 10px; }
.brand-cube i { width: 15px; height: 5px; left: 12px; bottom: 9px; }

.button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 13px;
  color: var(--text);
  background: var(--panel-3);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.button:hover { border-color: #52745a; background: #2a3d2e; }
.button:active { transform: translateY(2px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-wide { width: 100%; }
.button-small { padding: 7px 10px; white-space: nowrap; }
.button-primary {
  color: #102015;
  font-weight: 800;
  background: var(--green);
  border-color: #9ce783;
  box-shadow: 0 3px 0 #2e6a36;
}
.button-primary:hover { background: var(--green-bright); border-color: #b7f39f; }
.button-ghost { background: transparent; border-color: transparent; color: var(--muted); text-align: left; }
.button-ghost:hover { color: var(--text); background: rgb(255 255 255 / 5%); border-color: var(--line-soft); }
.button-danger { background: #462522; border-color: #75413b; color: #ffb9b1; }
.button-danger:hover { background: #5a2d29; border-color: var(--red); }

.sidebar-heading {
  margin: 24px 8px 9px;
  color: #7f9382;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.conversation-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--line) transparent;
}

.conversation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin: 3px 0;
  padding: 10px 9px 10px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left;
}
.conversation-item:hover { color: var(--text); background: rgb(255 255 255 / 4%); }
.conversation-item.active { color: var(--text); background: #203226; border-color: #35533c; }
.conversation-item .conversation-open {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.conversation-item .built-dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 8px rgb(116 198 93 / 50%); }
.conversation-delete { padding: 3px 5px; color: #809084; background: transparent; border: 0; cursor: pointer; opacity: 0; }
.conversation-item:hover .conversation-delete, .conversation-delete:focus { opacity: 1; }

.sidebar-empty { margin: 12px 8px; color: #708075; font-size: 12px; line-height: 1.55; }
.sidebar-footer { display: grid; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  height: 100dvh;
  background:
    radial-gradient(circle at 50% 22%, rgb(63 106 70 / 16%), transparent 34%),
    var(--bg);
}

.workspace-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: max(14px, env(safe-area-inset-top)) 28px 14px;
  background: rgb(16 25 18 / 86%);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}
.workspace-title { min-width: 0; }
.workspace-title h1 { margin: 0; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.model-badge { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 7px 9px; color: #b8c7b9; border: 1px solid var(--line-soft); font-size: 10px; white-space: nowrap; }
.model-badge span { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 8px var(--green); }

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.icon-button:hover { color: var(--text); background: var(--panel-2); }
.mobile-only { display: none; }

.setup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 24px 0;
  padding: 10px 13px;
  color: #e5deb6;
  background: #342f1e;
  border: 1px solid #655a2c;
  box-shadow: 0 3px 0 #18160e;
}
.setup-banner p { margin: 0; font-size: 12px; }
.setup-banner .button { margin-left: auto; background: #5b5127; border-color: #88783a; }

.chat-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line) transparent;
}

.welcome {
  width: min(790px, calc(100% - 40px));
  margin: clamp(44px, 8vh, 92px) auto 38px;
  text-align: center;
}
.welcome h2 { max-width: 620px; margin: 10px auto 11px; font-size: clamp(25px, 4vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.welcome > p:not(.eyebrow) { max-width: 630px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.eyebrow { margin: 0; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }

.hero-cube { position: relative; width: 70px; height: 70px; margin: 0 auto 25px; transform: rotate(-3deg); filter: drop-shadow(0 10px 8px rgb(0 0 0 / 35%)); }
.hero-face { position: absolute; display: grid; place-items: center; }
.hero-front { inset: 8px 7px 0 0; z-index: 2; color: #1c3e25; background: #72bf57; box-shadow: inset -10px -10px 0 #459347, inset 7px 7px 0 #93df72; font-size: 25px; font-weight: 900; }
.hero-top { width: 57px; height: 15px; top: 0; left: 7px; background: #a6ed82; transform: skewX(-43deg); }
.hero-side { width: 13px; height: 55px; top: 8px; right: 0; background: #347238; transform: skewY(-46deg); }

.idea-machine { position: relative; margin-top: 28px; padding: 8px 17px 18px; overflow: hidden; background: #1a291e; border: 2px solid #4c6e54; box-shadow: inset 0 0 0 4px #101912, 0 7px 0 #080d09, var(--shadow); text-align: left; }
.machine-lights { display: flex; justify-content: space-around; margin: 1px 0 9px; }
.machine-lights i { width: 7px; height: 7px; background: var(--gold); box-shadow: 0 0 8px rgb(230 196 94 / 65%); }
.machine-lights i:nth-child(2n) { background: var(--green); box-shadow: 0 0 8px rgb(116 198 93 / 65%); }
.machine-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 3px 12px; }
.machine-heading strong { display: block; color: #edf6e9; font-size: 14px; letter-spacing: .08em; }
.machine-heading small { display: block; margin-top: 3px; color: #849989; font-size: 8px; letter-spacing: .13em; }
.speaker-button { display: grid; width: 38px; height: 34px; place-items: center; color: var(--text); background: #2a3e2f; border: 1px solid #4d6c53; border-radius: 3px; cursor: pointer; }
.speaker-button[aria-pressed="false"] { filter: grayscale(1); opacity: .65; }
.speaker-button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: .35; }
.idea-reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.idea-reel { position: relative; min-width: 0; padding-bottom: 29px; background: #0e160f; border: 1px solid #47604b; box-shadow: inset 0 6px 0 rgb(255 255 255 / 2%), inset 0 -7px 0 rgb(0 0 0 / 18%); }
.reel-choice { display: flex; width: 100%; min-height: 154px; flex-direction: column; align-items: center; justify-content: center; padding: 12px 7px 8px; color: var(--text); background: linear-gradient(#223128, #17231a); border: 0; cursor: pointer; }
.reel-choice:hover { background: linear-gradient(#2a3c30, #1d2b20); }
.reel-choice small { color: #78907f; font-size: 8px; font-style: normal; letter-spacing: .1em; }
.reel-emoji { display: grid; height: 67px; place-items: center; font-family: system-ui, sans-serif; font-size: 45px; filter: drop-shadow(0 4px 2px rgb(0 0 0 / 35%)); transform: translateZ(0); }
.reel-label { display: -webkit-box; min-height: 29px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #edf5e9; font-size: 11px; line-height: 1.35; text-align: center; }
.reel-choice em { margin-top: 5px; color: #66796b; font-size: 7px; font-style: normal; }
.reel-lock { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 29px; padding: 0; color: #899a8c; background: #18231b; border: 0; border-top: 1px solid #344939; cursor: pointer; }
.reel-lock[aria-pressed="true"] { color: #1c291e; background: var(--gold); border-color: #f3d97e; }
.idea-reel.spinning .reel-emoji { animation: reelSpin 130ms infinite linear; }
@keyframes reelSpin { 0% { transform: translateY(-9px) scale(.8); opacity: .4; } 50% { transform: translateY(8px) scale(1.08); opacity: 1; } 100% { transform: translateY(-9px) scale(.8); opacity: .4; } }
.idea-preview { display: flex; align-items: center; gap: 12px; min-height: 57px; margin: 12px 0; padding: 9px 12px; color: #cbd8cc; background: #101812; border: 1px dashed #3c5542; }
.idea-preview span { flex: 0 0 auto; font-family: system-ui, sans-serif; font-size: 18px; white-space: nowrap; }
.idea-preview p { margin: 0; font-size: 10px; line-height: 1.45; }
.machine-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.mix-button, .build-idea-button { min-height: 48px; padding: 10px 13px; border-radius: 3px; font-size: 13px; font-weight: 900; letter-spacing: .03em; cursor: pointer; }
.mix-button { color: #f9e8a6; background: #554823; border: 1px solid #89763a; box-shadow: 0 3px 0 #231e0e; }
.mix-button:hover { background: #6b5b2b; }
.build-idea-button { color: #102015; background: var(--green); border: 1px solid #a9ed8e; box-shadow: 0 3px 0 #2e6b38; }
.build-idea-button:hover { background: var(--green-bright); }
.mix-button:disabled, .build-idea-button:disabled { cursor: not-allowed; opacity: .55; }

.messages { width: min(820px, calc(100% - 40px)); margin: 30px auto; }
.message-row { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; }
.message-row.user { justify-content: flex-end; }
.message-bubble { max-width: min(650px, 84%); padding: 13px 15px; border: 1px solid var(--line); border-radius: 4px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-row.assistant .message-bubble { background: var(--panel-2); box-shadow: 0 3px 0 #0b110d; }
.message-row.user .message-bubble { color: #122017; background: #7ac566; border-color: #a7eb90; box-shadow: 0 3px 0 #2e6c39; }
.message-bubble.visual-idea-message { display: grid; min-width: min(390px, 78vw); gap: 6px; text-align: center; }
.visual-idea-icons { font-family: system-ui, sans-serif; font-size: 25px; letter-spacing: .05em; white-space: nowrap; }
.visual-idea-message strong { font-size: 11px; line-height: 1.45; }
.bot-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #17351f; background: var(--green); box-shadow: inset -5px -5px 0 #3a8140, 0 3px 0 #0b100c; font-size: 13px; font-weight: 900; }
.message-meta { display: block; margin-top: 7px; color: #758479; font-size: 9px; }
.message-row.user .message-meta { color: #31533a; text-align: right; }
.visual-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0 46px; max-width: 650px; }
.visual-choice { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; min-height: 67px; padding: 7px 11px 7px 7px; color: var(--text); background: #223328; border: 1px solid #45604b; box-shadow: 0 3px 0 #0a100b; text-align: left; cursor: pointer; }
.visual-choice:hover { background: #2b4031; border-color: #6c8e73; transform: translateY(-1px); }
.visual-choice:disabled { cursor: not-allowed; opacity: .45; }
.visual-choice .choice-emoji { display: grid; width: 45px; height: 45px; place-items: center; background: #152219; border: 1px solid #3e5944; font-family: system-ui, sans-serif; font-size: 27px; }
.visual-choice strong { padding-left: 8px; font-size: 11px; line-height: 1.35; }

.builds-heading { display: flex; align-items: center; gap: 10px; margin: 34px 0 14px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.builds-heading::before, .builds-heading::after { content: ""; height: 1px; flex: 1; background: var(--line-soft); }
.build-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 12px 0; padding: 15px; background: linear-gradient(135deg, #213526, #17251b); border: 1px solid #3d6045; box-shadow: 0 4px 0 #0a100b; }
.build-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #19361f; background: var(--green); box-shadow: inset -7px -7px 0 #3d8040; font-size: 20px; font-weight: 900; }
.build-info { min-width: 0; }
.build-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build-info p { margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.build-info small { color: #819183; font-size: 9px; }
.download-button { display: inline-block; padding: 10px 12px; color: #102015; background: var(--green); border: 1px solid #a1e984; border-radius: 3px; box-shadow: 0 3px 0 #2b6535; font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.download-button:hover { background: var(--green-bright); }
.build-warning { grid-column: 2 / -1; margin: 0; padding: 8px 10px; color: #ead99f; background: rgb(123 95 35 / 20%); border-left: 3px solid var(--gold); font-size: 10px; line-height: 1.45; }

.thinking { display: flex; gap: 12px; align-items: center; width: min(820px, calc(100% - 40px)); margin: 5px auto 30px; }
.thinking > div { display: flex; align-items: center; gap: 5px; padding: 12px 15px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 3px 0 #0b110d; }
.thinking i { width: 6px; height: 6px; background: var(--green); animation: bounce 900ms infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: 120ms; }
.thinking i:nth-child(3) { animation-delay: 240ms; }
.thinking small { margin-left: 7px; color: var(--muted); font-size: 10px; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.composer-wrap { padding: 12px max(20px, calc((100% - 860px) / 2)) max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, #101912 18%); }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 8px; background: #1b2920; border: 1px solid #405a46; box-shadow: 0 5px 0 #090e0a, 0 -12px 40px rgb(0 0 0 / 12%); }
.composer textarea { width: 100%; max-height: 150px; resize: none; padding: 10px 5px 8px; color: var(--text); background: transparent; border: 0; line-height: 1.45; outline: 0; }
.composer textarea::placeholder { color: #758479; }
.send-button { display: grid; width: 39px; height: 39px; place-items: center; padding: 0; border-radius: 3px; cursor: pointer; }
.send-button { color: #102015; background: var(--green); border: 1px solid #a4eb8a; box-shadow: 0 2px 0 #2c6736; font-size: 20px; }
.send-button:hover { background: var(--green-bright); }
.send-button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .5; }
.composer-tip { margin: 9px 0 0; color: #657469; font-size: 9px; text-align: center; }

.sidebar-shade { position: fixed; inset: 0; z-index: 25; background: rgb(0 0 0 / 55%); backdrop-filter: blur(2px); }

.modal { width: min(580px, calc(100% - 30px)); padding: 0; color: var(--text); background: transparent; border: 0; }
.modal::backdrop { background: rgb(4 8 5 / 76%); backdrop-filter: blur(5px); }
.modal-small { width: min(430px, calc(100% - 30px)); }
.modal-card { padding: 24px; background: #19251c; border: 1px solid #47604c; box-shadow: 0 8px 0 #080d09, var(--shadow); }
.modal-card h2 { margin: 4px 0 8px; font-size: 20px; }
.modal-card > p { color: var(--muted); line-height: 1.55; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.field-label { display: block; margin: 17px 0 7px; color: #cdd6cd; font-size: 11px; font-weight: 800; }
.secret-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.secret-field input { min-width: 0; padding: 12px; color: var(--text); background: #101812; border: 1px solid var(--line); border-radius: 3px; }
.field-help { margin: 8px 0 0; color: #7f8e81; font-size: 9px; line-height: 1.5; }
.key-status { padding: 12px; color: var(--muted); background: #111a13; border: 1px solid var(--line-soft); font-size: 11px; line-height: 1.55; }
.key-status strong { color: var(--text); }
.key-status .status-good { color: var(--green-bright); }
.modal-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; margin-top: 22px; }
.inline-error { margin-top: 13px; padding: 10px; color: #ffc0ba; background: #3d2220; border-left: 3px solid var(--red); font-size: 11px; line-height: 1.45; }

.toast { position: fixed; z-index: 100; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); max-width: min(390px, calc(100% - 40px)); padding: 12px 15px; color: var(--text); background: #25382a; border: 1px solid #52705a; box-shadow: 0 5px 0 #080d09, var(--shadow); font-size: 11px; line-height: 1.5; }
.toast.error { color: #ffd0cb; background: #432521; border-color: #7f4740; }

.login-body {
  display: grid;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  place-items: center;
  background:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px),
    radial-gradient(circle at 50% 25%, #273d2c, #101912 54%);
  background-size: 24px 24px, 24px 24px, auto;
}
.login-card { width: min(430px, 100%); padding: 31px; background: #17231a; border: 1px solid #415b47; box-shadow: 0 8px 0 #080d09, var(--shadow); }
.login-card h1 { margin: 7px 0 10px; font-size: 28px; letter-spacing: -.04em; }
.login-copy { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.login-submit { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.login-note { margin: 22px 0 0; color: #76877a; font-size: 9px; text-align: center; }
.login-scene { position: relative; width: 96px; height: 75px; margin: 0 auto 26px; }
.login-block { position: absolute; width: 38px; height: 38px; background: #426b3f; box-shadow: inset -7px -7px 0 #284a2d, inset 5px 5px 0 #649657; }
.block-one { left: 0; bottom: 0; }
.block-two { right: 0; bottom: 0; background: #735235; box-shadow: inset -7px -7px 0 #493620, inset 5px 5px 0 #96734d; }
.block-three { left: 29px; top: 0; background: #6cb454; }
.login-lock { position: absolute; z-index: 2; left: 37px; top: 28px; display: grid; width: 25px; height: 30px; place-items: center; color: #34280e; background: var(--gold); box-shadow: 0 3px 0 #685524; font-size: 11px; }

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(310px, 86vw); transform: translateX(-105%); transition: transform 180ms ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: grid; }
  .workspace-header { padding-inline: 15px; }
  .workspace-title p { display: none; }
  .setup-banner { margin-inline: 12px; }
  .idea-reels { grid-template-columns: repeat(2, 1fr); }
  .composer-wrap { padding-inline: 12px; }
}

@media (max-width: 520px) {
  .model-badge { display: none; }
  .welcome { width: calc(100% - 24px); margin-top: 35px; }
  .welcome h2 { font-size: 27px; }
  .idea-machine { margin-top: 22px; padding-inline: 11px; }
  .idea-reels { gap: 7px; }
  .reel-choice { min-height: 135px; }
  .reel-emoji { height: 58px; font-size: 39px; }
  .machine-actions { grid-template-columns: 1fr; }
  .idea-preview { display: block; text-align: center; }
  .idea-preview p { margin-top: 6px; }
  .visual-choices { margin-left: 0; }
  .messages, .thinking { width: calc(100% - 22px); }
  .message-bubble { max-width: 88%; }
  .build-card { grid-template-columns: auto minmax(0, 1fr); }
  .download-button { grid-column: 1 / -1; text-align: center; }
  .build-warning { grid-column: 1 / -1; }
  .composer-tip { display: none; }
  .modal-card { padding: 19px; }
  .modal-actions { grid-template-columns: 1fr 1fr; }
  .modal-actions > span { display: none; }
  .modal-actions .button { text-align: center; }
  .login-card { padding: 25px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
