:root {
  --paper: #f2eee4;
  --paper-deep: #e4ddcf;
  --ink: #17201e;
  --muted: #6d746d;
  --line: #c8c2b6;
  --signal: #ff5a36;
  --blue: #2457ff;
  --acid: #d9ff52;
  --white: #fffdf7;
  --shadow-color: var(--ink);
  --grid-line: rgba(23, 32, 30, .055);
  --placeholder: #a5a49d;
  --success: #20a568;
  --success-line: #8ac7ab;
  --success-ink: #166c48;
  --success-bg: #eaf8f0;
  --danger-line: #ed9a86;
  --danger-ink: #9b321f;
  --danger-bg: #fff0eb;
  --blue-soft: #edf0ff;
  --message-surface: #fff;
  --quote: #53605c;
  --presence-surface: #faf7ef;
  --warning: #c6a23a;
  --overlay: rgba(23, 32, 30, .72);
  --shadow: 10px 10px 0 var(--shadow-color);
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  --paper: #161918;
  --paper-deep: #282e2b;
  --ink: #f3efe5;
  --muted: #a7aea8;
  --line: #49514c;
  --signal: #ff7658;
  --blue: #89a0ff;
  --acid: #cfea58;
  --white: #202523;
  --shadow-color: #090b0a;
  --grid-line: rgba(255, 255, 255, .045);
  --placeholder: #7f8782;
  --success: #6ad59f;
  --success-line: #39755b;
  --success-ink: #91e3b9;
  --success-bg: #183528;
  --danger-line: #8e5145;
  --danger-ink: #ff9e89;
  --danger-bg: #3b211c;
  --blue-soft: #2a3455;
  --message-surface: #242927;
  --quote: #abb5af;
  --presence-surface: #1c211f;
  --warning: #e6c55d;
  --overlay: rgba(3, 5, 4, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-width: 320px; height: 100%; background: var(--paper); }

body {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.9%, var(--grid-line) 50%, transparent 50.1%),
    var(--paper);
}

main { height: 100%; min-height: 0; }

button, input, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  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: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .17;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.17'/%3E%3C/svg%3E");
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 32px 46px;
}

.brand {
  position: relative;
  color: var(--ink);
  font-family: "Arial Black", "Avenir Next", sans-serif;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  text-decoration: none;
}
.brand span { font-weight: 500; }
.brand i {
  position: absolute;
  width: 8px;
  height: 8px;
  right: -12px;
  top: -3px;
  border-radius: 50%;
  background: var(--signal);
}
.brand.compact { font-size: 24px; }

.connection-label, .eyebrow, .card-index, .field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.connection-label { color: var(--muted); }
.brand-meta, .room-preferences { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; border: 1px solid var(--line); background: var(--white); }
.language-switch button {
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
.language-switch button + button { border-left: 1px solid var(--line); }
.language-switch button[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
}
.theme-toggle:hover { color: var(--white); background: var(--ink); }

.landing-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 44px) 64px clamp(28px, 7vh, 70px);
  overflow: hidden;
}

.hero-copy { position: relative; }
.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  top: -50px;
  right: 5%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px var(--paper), inset 0 0 0 20px var(--ink);
  opacity: .16;
}
.eyebrow { margin: 0 0 14px; color: var(--signal); }
.hero-copy h1 {
  margin: 0;
  max-width: 800px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(55px, 7.1vw, 112px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .85;
}
.hero-copy h1 em {
  position: relative;
  color: var(--blue);
  font-weight: 400;
}
.hero-copy h1 em::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -3%;
  bottom: 4px;
  height: 6px;
  background: var(--acid);
  transform: rotate(-1deg);
  z-index: -1;
}
.hero-description {
  max-width: 560px;
  margin: 34px 0 38px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
}
.promise-row {
  display: flex;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.promise-row > span {
  flex: 1;
  padding: 14px 12px 13px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.promise-row > span + span { padding-left: 14px; border-left: 1px solid var(--line); }
.legal-note { margin: 18px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.legal-note a { color: inherit; text-underline-offset: 3px; }
.legal-note a:hover { color: var(--ink); }
.promise-row b { color: var(--ink); font-size: 18px; }

.access-card {
  position: relative;
  padding: 42px 40px 28px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.access-card::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 10px;
  right: 35px;
  top: -7px;
  background: var(--signal);
  transform: rotate(2deg);
}
.card-index { position: absolute; top: 17px; right: 18px; color: var(--muted); }
.field-label { display: block; margin-bottom: 7px; }
.line-input {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 31px;
}
.line-input::placeholder { color: var(--placeholder); }
.access-actions { margin-top: 33px; }
.access-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}
.option-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
}
.access-option h2 {
  margin: 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
}
.access-option p { margin: 3px 0 13px; color: var(--muted); font-size: 13px; }
.compact-input, .code-input {
  width: 100%;
  height: 43px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}
.code-input {
  font-family: "Arial Black", monospace;
  font-size: 20px;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.primary-button, .secondary-button, .send-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease;
}
.primary-button { color: var(--white); background: var(--ink); }
.secondary-button { color: var(--ink); background: var(--acid); }
.primary-button:hover, .secondary-button:hover, .send-button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.primary-button:disabled, .secondary-button:disabled, .send-button:disabled { opacity: .45; }
.or-rule { display: flex; align-items: center; gap: 12px; margin: 21px 0; color: var(--muted); font-size: 11px; }
.or-rule::before, .or-rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.privacy-note { margin: 26px 0 0; padding-top: 17px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.privacy-note > span[aria-hidden] { margin-right: 6px; color: var(--blue); }

.room-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}
.room-header {
  display: grid;
  grid-template-columns: 90px minmax(160px, 1fr) auto auto auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 16px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  background: var(--white);
}
.room-identity p { margin: 0 0 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.room-identity h1 { margin: 0; overflow: hidden; font-family: "Iowan Old Style", Georgia, serif; font-size: 20px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.code-ticket {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 10px;
  align-items: center;
  min-width: 135px;
  padding: 7px 12px;
  border: 1px dashed var(--ink);
  background: var(--paper);
}
.code-ticket span { font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.code-ticket strong { grid-row: span 2; font-family: "Arial Black", monospace; font-size: 18px; letter-spacing: .12em; }
.code-ticket i { color: var(--muted); font-size: 9px; font-style: normal; }
.timer-pill { display: flex; align-items: center; gap: 8px; min-width: 88px; font-size: 13px; font-weight: 800; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 12%, transparent); }
.timer-pill.warning .pulse { background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 12%, transparent); animation: pulse 1s infinite; }
.close-button { padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: var(--danger-ink); font-size: 11px; font-weight: 800; }
.close-button:hover { border-color: var(--signal); background: var(--danger-bg); }

.room-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}
.feed-panel { display: flex; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; border-right: 1px solid var(--ink); }
.panel-heading, .presence-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-heading .eyebrow, .presence-heading .eyebrow { margin-bottom: 3px; font-size: 9px; }
.panel-heading h2, .presence-heading h2 { margin: 0; font-family: "Iowan Old Style", Georgia, serif; font-size: 27px; font-weight: 600; }
.status-tag { padding: 5px 9px; border: 1px solid var(--success-line); color: var(--success-ink); background: var(--success-bg); font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.status-tag.away { border-color: var(--danger-line); color: var(--danger-ink); background: var(--danger-bg); }

.feed {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
.empty-feed { display: grid; place-items: center; min-height: 270px; color: var(--muted); text-align: center; }
.empty-feed .empty-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px dashed var(--line); border-radius: 50%; color: var(--blue); font-size: 25px; }
.empty-feed h3 { margin: 15px 0 4px; color: var(--ink); font-family: "Iowan Old Style", Georgia, serif; font-size: 22px; }
.empty-feed p { margin: 0; font-size: 13px; }

.timeline-entry { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; max-width: 830px; margin-bottom: 27px; animation: enter .28s ease both; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 20px; }
.entry-shell { min-width: 0; }
.entry-meta { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 4px; }
.entry-meta strong { font-size: 12px; }
.entry-meta time { color: var(--muted); font-size: 10px; }
.owner-mark { padding: 2px 5px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.message-card { padding: 15px 17px 12px; border: 1px solid var(--line); background: var(--message-surface); }
.message-content { position: relative; overflow-wrap: anywhere; font-family: "Iowan Old Style", Georgia, serif; font-size: 16px; line-height: 1.55; }
.message-content.collapsed { max-height: 280px; overflow: hidden; }
.message-card.has-overflow .message-content.collapsed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--message-surface));
}
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p, .message-content ul, .message-content ol, .message-content blockquote, .message-content pre { margin: .55em 0; }
.message-content blockquote { margin-left: 0; padding-left: 13px; border-left: 3px solid var(--signal); color: var(--quote); }
.message-content code { padding: 2px 5px; background: var(--paper); font-family: "SFMono-Regular", Consolas, monospace; font-size: .84em; }
.message-content pre { max-width: 100%; padding: 13px; overflow-x: auto; color: var(--acid); background: var(--ink); }
.message-content pre code { padding: 0; color: inherit; background: transparent; }
.message-content a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-actions { display: flex; gap: 4px; justify-content: flex-end; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line); }
.entry-action { padding: 4px 7px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.entry-action:hover { color: var(--blue); background: var(--blue-soft); }
.entry-action[data-action="toggle-expand"] { color: var(--blue); background: var(--blue-soft); }

.file-card { display: flex; align-items: center; gap: 13px; min-height: 70px; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); }
.file-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; color: var(--white); background: var(--blue); font-size: 19px; }
.file-details { min-width: 0; flex: 1; }
.file-details strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-details span { color: var(--muted); font-size: 10px; }
.download-button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--ink); background: var(--acid); font-size: 10px; font-weight: 900; }
.download-button:disabled { opacity: .5; }

.composer { margin: 0 22px 22px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 var(--paper-deep); }
.markdown-tools { display: flex; align-items: center; gap: 3px; min-height: 31px; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.markdown-tools > span { margin-right: 6px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.markdown-tools button { min-width: 28px; height: 23px; border: 0; background: transparent; font-family: Georgia, serif; font-size: 11px; }
.markdown-tools button:hover { color: var(--white); background: var(--ink); }
.composer textarea { display: block; width: 100%; min-height: 78px; max-height: 78px; resize: none; padding: 13px; overflow-y: auto; border: 0; border-radius: 0; color: var(--ink); background: transparent; line-height: 1.45; }
.composer textarea:focus { outline: 0; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-top: 1px solid var(--line); }
.composer-actions, .send-group { display: flex; align-items: center; gap: 9px; }
.attach-button { padding: 7px 9px; border: 1px solid var(--line); background: var(--white); font-size: 10px; font-weight: 800; }
.upload-status { max-width: 230px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.send-group > span { color: var(--muted); font-size: 9px; }
.send-button { width: auto; min-height: 34px; padding: 0 12px; color: var(--white); background: var(--blue); }
.composer.disabled { opacity: .55; pointer-events: none; }

.presence-panel { display: flex; min-width: 0; min-height: 0; overflow: hidden; flex-direction: column; background: var(--presence-surface); }
.participant-count { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 11px; font-weight: 800; }
.participant-list { flex: 1; min-height: 0; margin: 0; padding: 13px 15px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.participant { display: grid; grid-template-columns: 39px minmax(0, 1fr) 8px; gap: 9px; align-items: center; padding: 11px 5px; border-bottom: 1px solid var(--line); }
.participant-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--paper-deep); font-size: 18px; }
.participant-name { min-width: 0; }
.participant-name strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.participant-name span { color: var(--muted); font-size: 9px; }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.presence-dot.background { background: var(--warning); }
.presence-note { display: flex; gap: 10px; margin: 15px; padding: 13px; border: 1px dashed var(--line); color: var(--muted); }
.presence-note span { color: var(--signal); }
.presence-note p { margin: 0; font-size: 9px; line-height: 1.5; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 25px;
  max-width: calc(100vw - 40px);
  padding: 12px 16px;
  transform: translateX(-50%);
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--signal);
  font-size: 12px;
  animation: toast-in .2s ease;
}
.ended-overlay { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 25px; background: var(--overlay); backdrop-filter: blur(8px); }
.ended-overlay > div { width: min(440px, 100%); padding: 38px; border: 2px solid var(--ink); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.ended-overlay h2 { margin: 0; font-family: "Iowan Old Style", Georgia, serif; font-size: 38px; }
.ended-overlay p:not(.eyebrow) { margin: 10px 0 25px; color: var(--muted); }
.ended-overlay .primary-button { justify-content: center; }

@keyframes enter { from { opacity: 0; transform: translateY(9px); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes pulse { 50% { transform: scale(.7); opacity: .6; } }

@media (max-width: 980px) {
  .landing-grid { gap: 32px; padding-inline: 32px; }
  .hero-copy h1 { font-size: clamp(52px, 9vw, 82px); }
  .room-header { grid-template-columns: 70px 1fr auto auto; }
  .room-preferences { grid-column: 4; }
  .code-ticket { grid-row: 2; grid-column: 2 / 4; justify-self: start; }
  .room-shell { grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (max-width: 720px) {
  body { background: var(--paper); }
  .brand-bar { padding: 17px 20px; }
  .connection-label { font-size: 9px; }
  .brand-meta, .room-preferences { gap: 7px; }
  .language-switch button { min-width: 29px; height: 27px; padding-inline: 5px; }
  .landing-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: center;
    max-width: 620px;
    padding: 14px 20px 24px;
    overflow: hidden;
  }
  .hero-copy h1 { font-size: clamp(44px, 14vw, 67px); }
  .hero-description, .promise-row { display: none; }
  .promise-row { flex-wrap: wrap; }
  .promise-row > span { min-width: 33%; padding: 10px 6px 9px 0; font-size: 8px; }
  .access-card { padding: 34px 23px 20px; box-shadow: 7px 7px 0 var(--ink); }
  .access-actions { margin-top: 22px; }
  .privacy-note { display: none; }
  .room-view { padding: 8px; }
  .room-header { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 9px; margin-bottom: 8px; padding: 10px; }
  .room-identity h1 { font-size: 17px; }
  .code-ticket { grid-row: 2; grid-column: 1 / 3; }
  .timer-pill { grid-column: 3; grid-row: 1; min-width: 70px; }
  .room-preferences { grid-column: 3; grid-row: 2; }
  .room-shell { display: flex; height: 100%; min-height: 0; flex-direction: column; box-shadow: 3px 3px 0 var(--ink); }
  .feed-panel { flex: 1; order: 2; min-height: 0; border: 0; }
  .presence-panel { flex: 0 0 auto; order: 1; max-height: 113px; border-bottom: 1px solid var(--ink); }
  .presence-heading { min-height: 48px; padding: 8px 14px; }
  .presence-heading h2 { font-size: 20px; }
  .participant-list { display: flex; flex: 0 1 auto; gap: 7px; padding: 8px; overflow-x: auto; overflow-y: hidden; }
  .participant { min-width: 125px; padding: 6px; border: 1px solid var(--line); background: var(--white); }
  .presence-note { display: none; }
  .panel-heading { min-height: 58px; padding: 10px 15px; }
  .panel-heading h2 { font-size: 22px; }
  .feed { min-height: 0; padding: 14px 13px; }
  .timeline-entry { grid-template-columns: 35px minmax(0, 1fr); gap: 8px; }
  .avatar { width: 32px; height: 32px; font-size: 17px; }
  .message-card { padding: 12px; }
  .composer { flex: 0 0 auto; margin: 0 8px 9px; box-shadow: 3px 3px 0 var(--paper-deep); }
  .composer textarea { min-height: 64px; max-height: 64px; }
  .composer-footer { align-items: flex-end; }
  .upload-status { max-width: 100px; }
  .markdown-tools > span { display: none; }
  .send-group > span { display: none; }
}

@media (max-width: 720px) and (max-height: 760px) {
  .brand-bar { padding-block: 11px; }
  .landing-grid { gap: 10px; padding-block: 8px 14px; }
  .hero-copy .eyebrow, .hero-description, .promise-row, .privacy-note { display: none; }
  .hero-copy h1 { font-size: clamp(38px, 12vw, 50px); }
  .access-card { padding: 27px 16px 13px; }
  .line-input { padding: 5px 0 7px; font-size: 24px; }
  .access-actions { margin-top: 13px; }
  .access-option { gap: 7px; }
  .access-option h2 { font-size: 20px; }
  .access-option p { display: none; }
  .compact-input, .code-input { height: 36px; margin-bottom: 6px; }
  .primary-button, .secondary-button { min-height: 38px; }
  .or-rule { margin: 8px 0; }
  .presence-panel { max-height: 91px; }
  .presence-heading { min-height: 38px; padding-block: 5px; }
  .presence-heading .eyebrow { display: none; }
  .panel-heading { min-height: 48px; padding-block: 7px; }
  .panel-heading .eyebrow { display: none; }
  .composer textarea { min-height: 52px; max-height: 52px; }
}

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