:root {
  color-scheme: light;
  --ink: #17171d;
  --ink-soft: #4c4c57;
  --muted: #777782;
  --paper: #f5f2eb;
  --paper-strong: #fffdf8;
  --line: #d9d4ca;
  --line-dark: #aaa49b;
  --accent: #6557ff;
  --accent-dark: #4839db;
  --accent-soft: #e8e4ff;
  --mint: #c8f7df;
  --mint-dark: #176b49;
  --danger: #b93636;
  --danger-soft: #ffe5e2;
  --shadow: 0 24px 70px rgba(24, 23, 30, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(101, 87, 255, 0.12), transparent 27rem),
    radial-gradient(circle at 91% 30%, rgba(200, 247, 223, 0.55), transparent 28rem),
    var(--paper);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.58; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  transform: rotate(-3deg);
}
.privacy-chip, .countdown, .connection-state, .role-badge, .room-status,
.live-dot, .locked-badge, .response-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}
.privacy-chip {
  padding: 8px 13px;
  border: 1px solid rgba(23, 23, 29, 0.13);
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-block: 58px 88px;
}
.hero-copy { max-width: 680px; }
.eyebrow, .section-kicker {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.3rem, 7.4vw, 6.7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.99;
}
.hero h1 strong { position: relative; z-index: 0; color: var(--accent); font-weight: inherit; }
.hero h1 strong::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.05em;
  left: -0.04em;
  height: 0.18em;
  border-radius: 999px;
  background: var(--mint);
  content: "";
  transform: rotate(-1deg);
}
.hero-description {
  max-width: 630px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  word-break: keep-all;
}
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 25px;
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}
.feature-row span { display: inline-flex; align-items: center; gap: 8px; }
.feature-row b { color: var(--accent); font-size: 0.69rem; letter-spacing: 0.08em; }

.create-card, .panel, .state-card, .side-panel {
  border: 1px solid rgba(23, 23, 29, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.create-card { padding: clamp(25px, 4vw, 38px); transform: rotate(0.65deg); }
.card-heading, .panel-heading, .section-title-row, .chat-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.card-heading h2, .panel-heading h2, .section-title-row h2, .chat-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.055em;
  line-height: 1.13;
}
.live-dot {
  gap: 6px;
  padding: 7px 10px;
  color: var(--mint-dark);
  background: var(--mint);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.live-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e9a6c;
  content: "";
  box-shadow: 0 0 0 4px rgba(46, 154, 108, 0.14);
}
form { margin-top: 26px; }
.field { position: relative; display: block; margin-bottom: 19px; }
.field-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 800;
}
.field-label em, .field-label small { font-size: 0.67rem; font-style: normal; font-weight: 700; }
.field-label em { color: var(--accent); }
.field-label small { color: var(--muted); }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input, select { min-height: 52px; padding: 0 15px; }
textarea { min-height: 114px; padding: 14px 15px 28px; line-height: 1.5; resize: vertical; }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(101, 87, 255, 0.12);
}
input::placeholder, textarea::placeholder { color: #9b98a2; }
.field-hint {
  position: absolute;
  right: 11px;
  bottom: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}
.form-error {
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #f0b7b2;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 0.82rem;
  font-weight: 700;
}
.primary-button, .secondary-button, .text-button, .send-button { border: 0; text-decoration: none; }
.primary-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 19px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
  letter-spacing: -0.025em;
  box-shadow: 0 9px 25px rgba(23, 23, 29, 0.16);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.primary-button:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 12px 30px rgba(72, 57, 219, 0.23);
  transform: translateY(-2px);
}
.primary-button:active:not(:disabled) { transform: translateY(0); }
.security-note { margin: 14px 3px 0; color: var(--muted); font-size: 0.7rem; line-height: 1.55; }

.how-it-works { padding-block: 88px 110px; border-top: 1px solid rgba(23, 23, 29, 0.12); }
.section-title-row { align-items: flex-end; }
.section-title-row > p { max-width: 340px; margin: 0 0 3px; color: var(--muted); font-size: 0.9rem; text-align: right; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.step-card {
  min-height: 265px;
  padding: 25px;
  border: 1px solid rgba(23, 23, 29, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.5);
}
.step-card:nth-child(2) { background: var(--accent-soft); }
.step-card:nth-child(3) { background: rgba(200, 247, 223, 0.5); }
.step-number, .panel-number, .rule-number { color: var(--accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.step-card h3 { margin: 78px 0 10px; font-size: 1.18rem; letter-spacing: -0.035em; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; word-break: keep-all; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px 42px;
  border-top: 1px solid rgba(23, 23, 29, 0.12);
  color: var(--muted);
  font-size: 0.72rem;
}
.site-footer p { margin: 0; }

/* Room */
.room-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(101, 87, 255, 0.14), transparent 31rem),
    radial-gradient(circle at 7% 91%, rgba(200, 247, 223, 0.56), transparent 32rem),
    var(--paper);
}
.room-header { position: relative; z-index: 5; }
.header-status { display: flex; align-items: center; gap: 9px; }
.connection-state {
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 23, 29, 0.12);
  color: var(--muted);
  background: rgba(255, 253, 248, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
}
.connection-state::before { width: 7px; height: 7px; border-radius: 50%; background: #c49c33; content: ""; }
.connection-state[data-state="connected"] { color: var(--mint-dark); }
.connection-state[data-state="connected"]::before { background: #2d9d6b; }
.connection-state[data-state="disconnected"] { color: var(--danger); }
.connection-state[data-state="disconnected"]::before { background: var(--danger); }
.countdown {
  min-width: 88px;
  padding: 8px 13px;
  color: #fff;
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.countdown[data-urgent="true"] { background: var(--danger); animation: pulse 1.4s ease-in-out infinite; }
.room-shell { padding-block: 34px 70px; }
.standalone-state { display: grid; min-height: 100vh; place-items: center; }
.state-card { max-width: 650px; margin: 8vh auto 0; padding: clamp(40px, 8vw, 76px) clamp(24px, 7vw, 68px); }
.centered-state, .centered-panel { text-align: center; }
.centered-state h1, .centered-panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.06em;
  line-height: 1.08;
}
.centered-state > p:not(.section-kicker), .centered-panel > p:not(.section-kicker) {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink-soft);
}
.loader {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-bottom: 25px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.state-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: var(--accent);
  font-size: 1.5rem;
  font-weight: 900;
  transform: rotate(-4deg);
}
.state-icon.soft { color: var(--accent-dark); background: var(--accent-soft); }
.compact-button { width: fit-content; min-width: 180px; margin: 28px auto 0; }
.room-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: end;
  padding: clamp(20px, 5vw, 45px) 0 35px;
  border-bottom: 1px solid rgba(23, 23, 29, 0.13);
}
.room-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.75rem;
}
.role-badge { padding: 6px 10px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 850; }
.room-status { padding: 6px 10px; color: var(--mint-dark); background: var(--mint); font-weight: 850; }
.room-status[data-status="matched"] { color: #6b4e07; background: #ffedb9; }
.room-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  letter-spacing: -0.07em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.room-details {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.share-box { padding: 17px; border: 1px solid rgba(23, 23, 29, 0.12); border-radius: var(--radius-md); background: rgba(255, 253, 248, 0.64); }
.share-box > p { margin: 0 0 8px; color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.share-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.share-url-row code {
  display: block;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(23, 23, 29, 0.06);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secondary-button {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 850;
  transition: color 150ms ease, background 150ms ease;
}
.secondary-button:hover:not(:disabled) { color: #fff; background: var(--ink); }
.text-button {
  margin-top: 9px;
  padding: 2px 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; padding-top: 28px; }
.panel { min-width: 0; padding: clamp(24px, 4vw, 38px); }
.panel-description { max-width: 680px; margin: 15px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.warning-copy { padding: 12px 14px; border-radius: 12px; color: #775814; background: #fff2c9; }
.panel-number { padding-top: 7px; }
.side-panel { position: sticky; top: 20px; padding: 22px; box-shadow: none; }
.rule-block { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rule-block:first-child { padding-top: 2px; }
.rule-block h3 { margin: 0 0 3px; font-size: 0.87rem; letter-spacing: -0.025em; }
.rule-block p, .safety-copy { margin: 0; color: var(--muted); font-size: 0.72rem; }
.safety-copy { padding-top: 16px; line-height: 1.55; }
.empty-list {
  margin-top: 26px;
  padding: 55px 20px;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}
.empty-list span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 1.5rem; font-weight: 900; letter-spacing: 0.22em; }
.empty-list p { margin: 0 0 4px; color: var(--ink-soft); font-weight: 800; }
.empty-list small { font-size: 0.7rem; }
.response-count-badge { min-width: 38px; height: 38px; color: #fff; background: var(--ink); font-size: 0.8rem; font-weight: 900; }
.response-list { display: grid; gap: 12px; margin-top: 20px; }
.response-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.response-card:hover { border-color: rgba(101, 87, 255, 0.48); box-shadow: 0 12px 30px rgba(23, 23, 29, 0.07); transform: translateY(-1px); }
.response-card[data-status="selected"] { border-color: var(--accent); background: var(--accent-soft); }
.response-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.response-card h3 { margin: 0; font-size: 1rem; letter-spacing: -0.03em; }
.response-card time { color: var(--muted); font-size: 0.68rem; }
.response-card p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.select-response-button {
  min-width: 82px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  transition: background 150ms ease, transform 150ms ease;
}
.select-response-button:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.own-response {
  max-width: 560px;
  margin: 27px auto 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  text-align: left;
}
.own-response b { display: block; margin-bottom: 6px; font-size: 0.83rem; }
.own-response p { margin: 0; color: var(--ink-soft); font-size: 0.83rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.waiting-orbit { position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 25px; border: 1px solid rgba(101, 87, 255, 0.35); border-radius: 50%; }
.waiting-orbit::before, .waiting-orbit::after, .waiting-orbit i { position: absolute; border-radius: 50%; content: ""; }
.waiting-orbit::before { inset: 13px; background: var(--accent-soft); }
.waiting-orbit::after { top: -4px; left: 28px; width: 8px; height: 8px; background: var(--accent); transform-origin: 4px 36px; animation: orbit 2.3s linear infinite; }
.waiting-orbit i { inset: 25px; z-index: 1; background: var(--accent); }
.chat-panel { padding: 0; overflow: hidden; }
.chat-heading { align-items: center; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
.chat-heading .section-kicker { margin-bottom: 6px; }
.chat-heading h2 { font-size: 1.45rem; }
.locked-badge { gap: 5px; padding: 7px 10px; color: var(--mint-dark); background: var(--mint); font-size: 0.68rem; font-weight: 850; }
.locked-badge::before { content: "●"; font-size: 0.48rem; }
.message-list {
  display: flex;
  min-height: 340px;
  max-height: min(55vh, 560px);
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding: 24px 28px;
  scroll-behavior: smooth;
}
.message-empty { display: grid; min-height: 300px; place-items: center; color: var(--muted); font-size: 0.78rem; text-align: center; }
.message-row { display: flex; flex-direction: column; align-items: flex-start; }
.message-row[data-own="true"] { align-items: flex-end; }
.message-meta { display: flex; gap: 7px; margin: 0 4px 4px; color: var(--muted); font-size: 0.64rem; }
.message-bubble {
  max-width: min(78%, 590px);
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-row[data-own="true"] .message-bubble { border-color: var(--accent); border-radius: 15px 15px 4px 15px; color: #fff; background: var(--accent); }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 9px; margin: 0; padding: 16px 20px 10px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 48px; max-height: 130px; padding: 12px 14px; resize: none; }
.send-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  transition: background 150ms ease, transform 150ms ease;
}
.send-button:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.chat-expiry-note { margin: 0; padding: 0 24px 17px; color: var(--muted); font-size: 0.67rem; text-align: center; }
.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 40px rgba(23, 23, 29, 0.23);
  font-size: 0.8rem;
  font-weight: 750;
  animation: toast-in 180ms ease-out;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.035); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  :root { --shell: min(100% - 28px, 760px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 54px 78px; }
  .hero-copy { max-width: none; }
  .create-card { max-width: 650px; transform: none; }
  .room-intro { grid-template-columns: 1fr; align-items: start; }
  .share-box { max-width: 540px; }
  .room-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
  .safety-copy { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-header { min-height: 72px; }
  .privacy-chip { display: none; }
  .hero { gap: 46px; padding-top: 40px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .section-title-row { display: block; }
  .section-title-row > p { margin-top: 12px; text-align: left; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 220px; }
  .step-card h3 { margin-top: 54px; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: 7px; }
  .header-status { gap: 6px; }
  .connection-state { position: relative; width: 10px; height: 10px; min-width: 10px; padding: 0; border: 0; overflow: hidden; text-indent: 30px; }
  .connection-state::before { position: absolute; width: 10px; height: 10px; }
  .countdown { min-width: 76px; padding-inline: 10px; font-size: 0.74rem; }
  .room-shell { padding-top: 13px; }
  .room-intro { padding-top: 23px; }
  .room-intro h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .room-layout { gap: 14px; padding-top: 18px; }
  .panel, .state-card { border-radius: 22px; }
  .side-panel { display: block; }
  .response-card { grid-template-columns: 1fr; }
  .select-response-button { width: 100%; }
  .chat-heading, .message-list { padding-inline: 18px; }
  .message-list { min-height: 310px; max-height: 56vh; }
  .message-bubble { max-width: 88%; }
  .locked-badge { display: none; }
  .toast { right: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
}

@media (max-width: 420px) {
  :root { --shell: calc(100% - 20px); }
  .brand-mark { width: 35px; height: 35px; }
  .create-card, .panel { padding: 22px 18px; }
  .create-card { border-radius: 22px; }
  .feature-row { gap: 10px 14px; }
  .share-url-row { grid-template-columns: 1fr; }
  .compact-control { width: 100%; }
  .chat-panel { padding: 0; }
}

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