:root {
  color-scheme: light;
  --ink: #272440;
  --ink-soft: #666179;
  --cream: #fffaf0;
  --paper: #fffefd;
  --coral: #f36f5b;
  --coral-dark: #d95140;
  --yellow: #ffd76a;
  --mint: #8ed9bf;
  --mint-dark: #236b59;
  --lilac: #bcaaf3;
  --sky: #9cd9ef;
  --line: #eae4dc;
  --shadow: 0 22px 65px rgba(71, 49, 38, 0.13);
  --small-shadow: 0 8px 24px rgba(68, 47, 37, 0.1);
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--cream); }

body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 6%, rgba(255, 215, 106, 0.28), transparent 25rem),
    radial-gradient(circle at 88% 92%, rgba(142, 217, 191, 0.25), transparent 27rem),
    var(--cream);
}

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

:focus-visible {
  outline: 3px solid #463d93;
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }
.suppress-skip-link .skip-link { transform: translateY(-160%); }

.background-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.shape { position: absolute; display: block; opacity: 0.7; }
.shape-one { width: 130px; height: 130px; left: -48px; top: 25%; border: 25px solid var(--lilac); border-radius: 42% 58% 66% 34%; transform: rotate(20deg); }
.shape-two { width: 150px; height: 70px; right: -40px; top: 12%; background: var(--yellow); border-radius: 70% 30% 58% 42%; transform: rotate(-22deg); }
.shape-three { width: 110px; height: 110px; right: 4%; bottom: -70px; background: var(--coral); border-radius: 30% 70% 48% 52%; transform: rotate(16deg); }

.app-shell { min-height: 100vh; padding: 26px; }
.center-card { width: min(440px, calc(100vw - 40px)); margin: 18vh auto 0; padding: 36px; text-align: center; border: 1px solid rgba(255,255,255,.7); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.loading-card p { margin: 18px 0 0; color: var(--ink-soft); font-weight: 700; }

.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-size: 1.35rem; font-weight: 850; letter-spacing: -0.04em; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 31px; height: 30px; padding: 6px; border-radius: 10px; background: var(--coral); box-shadow: 0 5px 12px rgba(243,111,91,.25); transform: rotate(-2deg); }
.brand-mark span { display: block; flex: 1; border-radius: 3px 3px 1px 1px; background: #fff7e8; }
.brand-mark span:nth-child(1) { height: 55%; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 74%; }
.brand-mark-large { width: 42px; height: 41px; padding: 8px; border-radius: 13px; }

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  width: min(1080px, calc(100vw - 42px));
  min-height: min(720px, calc(100vh - 52px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.welcome-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 620px; padding: 50px 56px; overflow: hidden; background: linear-gradient(145deg, #ffe28b 0%, #ffd36a 70%, #ffc761 100%); }
.welcome-panel::before { content: ""; position: absolute; width: 270px; height: 270px; right: -80px; top: -80px; border: 55px solid rgba(255,255,255,.28); border-radius: 50%; }
.welcome-panel::after { content: ""; position: absolute; width: 160px; height: 160px; left: -65px; bottom: 90px; border-radius: 42% 58% 62% 38%; background: rgba(243,111,91,.3); transform: rotate(24deg); }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-copy { max-width: 520px; margin: 50px 0 35px; }
.eyebrow { margin: 0 0 8px; color: #80673e; font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.welcome-copy h1 { max-width: 540px; margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.065em; }
.welcome-copy > p:last-child { max-width: 500px; margin: 24px 0 0; font-size: 1.08rem; line-height: 1.65; color: #5c503e; }

.mini-world { position: relative; height: 172px; }
.mini-window { position: absolute; left: 10%; bottom: -16px; width: 250px; height: 166px; overflow: hidden; border: 8px solid #fff9e9; border-radius: 125px 125px 18px 18px; background: #97dced; box-shadow: 0 15px 30px rgba(114,82,27,.16); }
.mini-sun { position: absolute; width: 38px; height: 38px; top: 25px; right: 45px; border-radius: 50%; background: #fff5bd; box-shadow: 0 0 0 11px rgba(255,245,189,.2); }
.mini-hill { position: absolute; bottom: -50px; border-radius: 50% 50% 0 0; transform: rotate(-8deg); }
.hill-back { width: 210px; height: 115px; right: -28px; background: #83caa9; }
.hill-front { width: 230px; height: 105px; left: -35px; background: #6fba97; transform: rotate(8deg); }
.mini-star { position: absolute; left: 55px; top: 38px; color: white; font-size: 27px; }
.mini-block { position: absolute; display: grid; place-items: center; font-weight: 900; box-shadow: var(--small-shadow); }
.block-one { width: 70px; height: 70px; right: 17%; bottom: 11px; border-radius: 18px; color: white; background: var(--coral); transform: rotate(8deg); }
.block-two { width: 50px; height: 50px; right: 4%; bottom: 78px; border-radius: 50%; color: #5c4fa0; background: var(--lilac); transform: rotate(-10deg); }

.login-panel { position: relative; display: grid; place-content: center; padding: 62px clamp(38px, 6vw, 80px); background: rgba(255,255,255,.92); }
.login-form { display: grid; width: min(390px, 100%); gap: 10px; }
.step-label { margin: 0 0 6px; color: var(--coral-dark); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.login-form h2 { margin: 0; font-size: 2rem; letter-spacing: -.045em; }
.form-intro { margin: 8px 0 25px; color: var(--ink-soft); line-height: 1.5; }
.login-form label { margin: 10px 0 0; font-size: .88rem; font-weight: 800; }
.login-form select, .login-form input { width: 100%; height: 54px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); background: #fffdfa; outline: none; transition: border-color .2s, box-shadow .2s; }
.login-form select:focus, .login-form input:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(188,170,243,.2); }
.select-wrap, .password-wrap { position: relative; }
.select-wrap::after { content: "⌄"; position: absolute; right: 17px; top: 14px; pointer-events: none; font-weight: 900; }
.select-wrap select { appearance: none; padding-right: 45px; }
.password-wrap input { padding-right: 54px; }
.icon-button { border: 0; background: transparent; cursor: pointer; }
.password-toggle { position: absolute; right: 8px; top: 7px; width: 42px; height: 42px; border-radius: 10px; }
.password-toggle:hover { background: #f3efe9; }
.eye-icon { display: block; width: 20px; height: 13px; margin: auto; border: 2px solid var(--ink-soft); border-radius: 70% 25%; transform: rotate(45deg); }
.eye-icon::after { content: ""; display: block; width: 5px; height: 5px; margin: 2px auto; border-radius: 50%; background: var(--ink-soft); }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 10px; padding: 12px 20px; border: 0; border-radius: 15px; color: white; background: var(--coral); box-shadow: 0 9px 18px rgba(243,111,91,.24); font-weight: 850; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--coral-dark); box-shadow: 0 12px 24px rgba(243,111,91,.3); }
button:disabled { cursor: not-allowed; opacity: .5; }
.form-error { min-height: 1.25em; margin: 4px 0 0; color: #ad352b; font-size: .87rem; font-weight: 700; }
.demo-hint { margin: 4px 0 0; padding: 9px 11px; border-radius: 10px; color: #665524; background: #fff4c9; font-size: .83rem; }
.privacy-note { position: absolute; bottom: 24px; left: 35px; right: 35px; margin: 0; text-align: center; color: #8a8492; font-size: .75rem; }
.privacy-note span { color: var(--mint-dark); font-size: .5rem; vertical-align: 2px; }
.mode-badge { display: inline-flex; align-items: center; width: max-content; padding: 7px 11px; border: 1px solid #e0a72c; border-radius: 99px; color: #624b12; background: #fff0b9; font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.login-panel > .mode-badge { position: absolute; top: 25px; right: 28px; }

.workshop { width: min(1440px, calc(100vw - 32px)); min-height: calc(100vh - 52px); margin: 0 auto; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.7); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(10px); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: rgba(255,254,253,.95); }
.room-identity { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: .83rem; font-weight: 800; }
.room-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(142,217,191,.2); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.quiet-button { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 10px; color: var(--ink-soft); background: transparent; font-size: .82rem; font-weight: 750; cursor: pointer; }
.quiet-button:hover { color: var(--ink); background: #f3efe9; }
.mobile-preview-link { display: none; }

.workshop-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); min-height: calc(100vh - 125px); }
.chat-card { display: grid; grid-template-rows: auto minmax(260px, 1fr) auto; min-width: 0; background: var(--paper); }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 32px 20px; border-bottom: 1px solid var(--line); }
.chat-heading h1 { margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -.045em; }
.connection-pill { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 10px; border-radius: 99px; color: var(--ink-soft); background: #f3f0ec; font-size: .7rem; font-weight: 800; }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #aaa3a0; }
.connection-pill.online { color: #27634f; background: #e6f6ef; }
.connection-pill.online .connection-dot { background: #4ab68e; box-shadow: 0 0 0 3px rgba(74,182,142,.15); }
.connection-pill.offline { color: #8d392f; background: #ffebe7; }
.connection-pill.offline .connection-dot { background: var(--coral); }
.connection-pill.connecting .connection-dot { background: #d49d23; animation: pulse 1.2s infinite; }

.chat-scroll { min-height: 0; max-height: calc(100vh - 370px); padding: 30px 32px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; background: radial-gradient(circle at 8% 20%, rgba(255,215,106,.12), transparent 15rem), #fffdfa; }
.empty-chat { max-width: 440px; margin: 10vh auto 0; text-align: center; }
.empty-chat h2 { margin: 15px 0 8px; font-size: 1.3rem; }
.empty-chat p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.helper-avatar { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 12px 12px 12px 4px; color: white; background: linear-gradient(145deg, var(--coral), #f79a69); box-shadow: 0 5px 12px rgba(243,111,91,.22); }
.helper-avatar.large { width: 56px; height: 56px; margin: auto; border-radius: 20px 20px 20px 7px; font-size: 1.3rem; transform: rotate(-3deg); }
.message-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.message { display: flex; align-items: flex-end; gap: 9px; max-width: min(78%, 700px); }
.message.user { align-self: flex-end; margin-left: auto; }
.message.assistant { align-self: flex-start; }
.message.system { align-self: center; max-width: 90%; }
.message-stack { display: flex; flex-direction: column; }
.message.user .message-stack { align-items: flex-end; }
.message-bubble { margin: 0; padding: 12px 15px; border: 1px solid #e9e3dc; border-radius: 8px 18px 18px 18px; background: white; box-shadow: 0 3px 10px rgba(62,42,32,.05); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.user .message-bubble { border: 0; border-radius: 18px 8px 18px 18px; background: #ddeee9; box-shadow: none; }
.message.system .message-bubble { padding: 7px 13px; border: 0; border-radius: 99px; color: #766e78; background: #f0ece7; font-size: .76rem; text-align: center; box-shadow: none; }
.message-time { margin: 5px 5px 0; color: #99919a; font-size: .65rem; }
.typing-row { display: flex; align-items: flex-end; gap: 9px; margin-top: 18px; }
.typing-bubble { display: flex; align-items: center; gap: 4px; min-height: 43px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px 17px 17px 17px; background: white; }
.typing-bubble > span { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: bounce 1s infinite ease-in-out; }
.typing-bubble > span:nth-child(2) { animation-delay: .14s; }
.typing-bubble > span:nth-child(3) { animation-delay: .28s; }
.typing-bubble em { margin-left: 5px; color: var(--ink-soft); font-size: .73rem; font-style: normal; }

.composer-area { padding: 14px 24px 18px; border-top: 1px solid var(--line); background: white; }
.paused-notice { display: flex; align-items: center; gap: 11px; margin: 0 2px 11px; padding: 11px 13px; border: 1px solid #f0b0a6; border-radius: 13px; color: #7f3029; background: #fff0ed; }
.paused-notice > span { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 9px; color: white; background: var(--coral); font-weight: 900; }
.paused-notice strong, .paused-notice p { display: block; margin: 0; }
.paused-notice strong { font-size: .76rem; }
.paused-notice p { margin-top: 2px; font-size: .68rem; line-height: 1.35; }
.prompt-chips { display: flex; gap: 7px; margin: 0 2px 10px; overflow-x: auto; scrollbar-width: none; }
.prompt-chips::-webkit-scrollbar { display: none; }
.prompt-chips button { flex: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: #625d6a; background: #fffdfa; font-size: .72rem; font-weight: 700; cursor: pointer; }
.prompt-chips button:hover { border-color: var(--lilac); background: #f5f1ff; }
.composer { overflow: hidden; border: 2px solid #e7e0d8; border-radius: 18px; background: #fffdfa; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(188,170,243,.16); }
.composer textarea { display: block; width: 100%; min-height: 60px; max-height: 160px; padding: 13px 15px 5px; resize: vertical; border: 0; outline: 0; color: var(--ink); background: transparent; line-height: 1.45; }
.composer textarea::placeholder { color: #aaa3aa; }
.composer textarea:disabled { background: #f7f4f0; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 8px 14px; }
.character-count { color: #aaa3aa; font-size: .65rem; }
.character-count.near-limit { color: var(--coral-dark); font-weight: 800; }
.send-button { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px 7px 14px; border: 0; border-radius: 12px; color: white; background: var(--coral); font-size: .8rem; font-weight: 850; cursor: pointer; }
.send-button:not(:disabled):hover { background: var(--coral-dark); }
.send-arrow { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: var(--coral-dark); background: white; font-size: 1rem; }
.chat-error { min-height: 1.1em; margin: 7px 5px 0; color: #ad352b; font-size: .75rem; font-weight: 700; }

.project-panel { padding: 24px; border-left: 1px solid var(--line); background: linear-gradient(160deg, #f8f5f0, #f2eee9); }
.project-card { padding: 22px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.9); box-shadow: var(--small-shadow); }
.project-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.project-card h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.03em; }
.revision-badge { flex: none; padding: 5px 8px; border-radius: 99px; color: #61588a; background: #eee9ff; font-size: .65rem; font-weight: 850; }
.project-portal { margin: 20px 0 17px; overflow: hidden; border: 5px solid #323047; border-radius: 16px; background: #323047; box-shadow: 0 13px 25px rgba(39,36,64,.2); }
.portal-top { display: flex; gap: 4px; height: 20px; padding: 6px 8px; }
.portal-top span { width: 6px; height: 6px; border-radius: 50%; background: #625e78; }
.portal-top span:first-child { background: var(--coral); }
.portal-top span:nth-child(2) { background: var(--yellow); }
.portal-top span:nth-child(3) { background: var(--mint); }
.portal-scene { position: relative; display: grid; place-items: center; height: 155px; overflow: hidden; border-radius: 10px; background: linear-gradient(145deg, #9bdced, #c4aff5); }
.portal-scene::before { content: ""; position: absolute; width: 210px; height: 80px; bottom: -48px; left: -20px; border-radius: 50%; background: #80c7a7; transform: rotate(7deg); }
.portal-scene::after { content: ""; position: absolute; width: 190px; height: 76px; bottom: -45px; right: -35px; border-radius: 50%; background: #f7c85d; transform: rotate(-9deg); }
.portal-play { position: relative; z-index: 2; display: grid; place-items: center; width: 55px; height: 55px; padding-left: 4px; border: 5px solid rgba(255,255,255,.5); border-radius: 50%; color: white; background: var(--coral); box-shadow: 0 8px 18px rgba(78,48,48,.2); }
.portal-orbit { position: absolute; border: 2px solid rgba(255,255,255,.5); border-radius: 50%; }
.orbit-one { width: 150px; height: 55px; transform: rotate(22deg); }
.orbit-two { width: 135px; height: 48px; transform: rotate(-35deg); }
.portal-spark { position: absolute; color: white; }
.spark-one { left: 14%; top: 20%; }
.spark-two { right: 12%; bottom: 25%; font-size: .7rem; }
.project-explainer { margin: 0 2px 14px; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.preview-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 13px; color: white; background: var(--ink); text-decoration: none; font-size: .83rem; font-weight: 850; transition: transform .18s, background .18s; }
.preview-button:hover { transform: translateY(-2px); background: #403b67; }
.preview-button.is-disabled { pointer-events: none; opacity: .45; }
.status-box { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px; border: 1px solid #ddece5; border-radius: 13px; background: #f1faf6; }
.status-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; color: var(--mint-dark); background: #d8f1e7; }
.status-box strong, .status-box span { display: block; }
.status-box strong { font-size: .75rem; }
.status-box span { margin-top: 2px; color: var(--ink-soft); font-size: .67rem; }
.project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.secondary-button, .stop-button { min-height: 39px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: .68rem; font-weight: 800; cursor: pointer; }
.secondary-button:hover:not(:disabled) { border-color: var(--lilac); color: #594d94; background: #f7f4ff; }
.stop-button { color: #a33e34; }
.stop-button:hover:not(:disabled) { border-color: #f2b5ac; background: #fff2ef; }
.turns-card { margin-top: 14px; padding: 15px 17px; border-radius: 18px; background: #fff4cb; }
.turns-card > div { display: flex; align-items: center; gap: 10px; }
.turns-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #82661a; background: var(--yellow); }
.turns-card strong, .turns-card span { display: block; }
.turns-card strong { font-size: 1rem; }
.turns-card div div span { color: #746439; font-size: .67rem; }
.turns-card p { margin: 9px 0 0; color: #806f43; font-size: .65rem; line-height: 1.4; }

.fatal-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 17px; border-radius: 18px; color: white; background: var(--coral); font-size: 1.6rem; font-weight: 900; transform: rotate(-4deg); }
.fatal-card h1 { margin: 0; font-size: 1.65rem; }
.fatal-card p { margin: 10px 0 18px; color: var(--ink-soft); line-height: 1.5; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

@media (max-width: 900px) {
  .app-shell { padding: 14px; }
  .login-layout { grid-template-columns: 1fr; width: min(620px, 100%); }
  .welcome-panel { min-height: 310px; padding: 32px; }
  .welcome-copy { margin: 35px 0 10px; }
  .welcome-copy h1 { font-size: clamp(2.3rem, 8vw, 3.5rem); }
  .mini-world { display: none; }
  .login-panel { min-height: 520px; padding: 60px 35px; }
  .workshop { width: 100%; min-height: calc(100vh - 28px); }
  .workshop-grid { grid-template-columns: 1fr; }
  .project-panel { border-top: 1px solid var(--line); border-left: 0; }
  .project-card, .turns-card { max-width: 560px; margin-left: auto; margin-right: auto; }
  .chat-scroll { height: 48vh; max-height: none; }
}

@media (max-width: 600px) {
  .app-shell { padding: 0; }
  .background-shapes { display: none; }
  .login-layout, .workshop { width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
  .welcome-panel { min-height: 250px; padding: 25px 23px; }
  .welcome-copy { margin: 28px 0 0; }
  .welcome-copy h1 { font-size: 2.25rem; }
  .welcome-copy > p:last-child { margin-top: 15px; font-size: .95rem; }
  .login-panel { min-height: 520px; padding: 60px 23px 70px; place-content: start stretch; }
  .login-form { width: 100%; }
  .privacy-note { bottom: 22px; }
  .topbar { grid-template-columns: auto 1fr; gap: 7px 12px; min-height: 62px; padding: 8px 12px 9px; }
  .brand-lockup.compact .brand-name { display: none; }
  .room-identity { justify-self: end; padding: 7px 10px; font-size: .72rem; }
  .topbar-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
  .topbar .mode-badge { position: static; justify-self: start; padding: 5px 8px; font-size: .6rem; }
  .mobile-preview-link { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 10px; border-radius: 10px; color: white; background: var(--ink); text-decoration: none; font-size: .7rem; font-weight: 850; }
  .mobile-preview-link.is-disabled { pointer-events: none; opacity: .45; }
  .quiet-button { padding: 7px; font-size: .74rem; }
  .chat-heading { padding: 21px 17px 16px; }
  .chat-heading .eyebrow { display: none; }
  .chat-heading h1 { font-size: 1.35rem; }
  .connection-pill { padding: 6px 8px; }
  .connection-pill span:last-child { max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-scroll { height: calc(100vh - 335px); min-height: 290px; padding: 23px 16px; }
  .empty-chat { margin-top: 5vh; }
  .message { max-width: 91%; }
  .composer-area { padding: 11px 12px 14px; }
  .send-button > span:first-child { display: none; }
  .send-button { padding: 7px; }
  .project-panel { padding: 16px 12px 28px; }
  .project-card { padding: 18px; }
}

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