/* MEME//GPT: deliberately absurd. Chunky borders, hard shadows, meme
   captions in Anton, one accent color per user (set by the app). */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton.woff2") format("woff2");
  font-display: swap;
}

:root {
  --accent: #7c3aed;
  --accent-ink: #ffffff;
  --bg: #0b0b10;
  --panel: #15151d;
  --panel2: #20202c;
  --ink: #f4f1e8;
  --muted: #9a97a6;
  --line: #f4f1e8;
  --shadow: var(--accent);
  --danger: #ef4444;
  --radius: 16px;
  --meme: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f3ea;
  --panel: #fffdf6;
  --panel2: #ece5d2;
  --ink: #0b0b10;
  --muted: #6b6878;
  --line: #0b0b10;
  --shadow: #0b0b10;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
body { overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
#app { height: 100%; }

/* ------------------------------------------------------------- buttons */
.btn {
  font-family: var(--meme); font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 18px; border: 3px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--ink); box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.06s, box-shadow 0.06s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { box-shadow: none; border-color: transparent; background: transparent; text-align: left; padding: 8px 10px; }
.btn.ghost:active { transform: none; box-shadow: none; background: var(--panel2); }
.btn.block { display: block; width: 100%; }
.btn.small { font-size: 14px; padding: 6px 12px; border-width: 2px; box-shadow: 3px 3px 0 var(--shadow); }
.btn.big { font-size: 22px; padding: 14px 26px; }
.icon-btn { border: 0; background: transparent; font-size: 22px; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.icon-btn:active { background: var(--panel2); }
.icon-btn.small { width: 32px; height: 32px; font-size: 15px; }
.mini {
  font-family: var(--meme); font-size: 12px; letter-spacing: 0.06em; padding: 3px 9px;
  border: 2px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
}

/* --------------------------------------------------------------- boot */
.boot { height: 100%; display: grid; place-items: center; }
.boot-brain { font-size: 72px; animation: wobble 1s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }

/* --------------------------------------------------------------- pair */
.pair { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.pair h1 { font-family: var(--meme); font-size: 44px; line-height: 1.05; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.02em; }
.pair-icon { width: 120px; height: 120px; border-radius: 30px; border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.big-emoji { display: grid; place-items: center; font-size: 56px; background: var(--panel); }
.pair-label { font-family: var(--meme); color: var(--muted); letter-spacing: 0.08em; }
.code-input { max-width: 340px; text-align: center; font: 700 22px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.pair-error { min-height: 24px; margin: 0; color: var(--danger); font-weight: 700; }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px) rotate(-1deg); } 40%, 80% { transform: translateX(10px) rotate(1deg); } }

/* ------------------------------------------------------------- inputs */
.input {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--panel);
  border: 3px solid var(--line); border-radius: 12px; outline: none;
}
.input:focus { border-color: var(--accent); }
.input:disabled { opacity: 0.45; }
.color { width: 64px; height: 40px; border: 3px solid var(--line); border-radius: 10px; background: var(--panel); padding: 2px; }

/* -------------------------------------------------------------- shell */
.shell { height: 100%; display: flex; position: relative; }
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 20; display: flex; flex-direction: column; gap: 12px;
  padding: 16px 14px; background: var(--panel); border-right: 3px solid var(--line);
  transform: translateX(-105%); transition: transform 0.22s ease;
}
.drawer-open .drawer { transform: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; gap: 10px; }
.drawer-icon { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--line); }
.drawer-title { font-family: var(--meme); font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 0 -6px; padding: 0 6px; scrollbar-width: none; }
.chat-item {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline; text-align: left;
  border: 2px solid transparent; border-radius: 12px; background: transparent; padding: 10px 10px;
}
.chat-item.on { border-color: var(--line); background: var(--panel2); }
.chat-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chat-item-meta { flex: none; font-size: 12px; color: var(--muted); }
.drawer-foot { display: flex; flex-direction: column; gap: 2px; border-top: 2px dashed var(--muted); padding-top: 8px; }
.update-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 3px solid var(--line); border-radius: var(--radius); background: var(--panel2); }
.update-card strong { font-family: var(--meme); letter-spacing: 0.03em; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100%; }
.topbar { display: flex; align-items: center; gap: 6px; padding: 8px 8px; border-bottom: 3px solid var(--line); background: var(--bg); }
.top-title {
  flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 6px 4px;
  font-family: var(--meme); font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.model-chip {
  flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; max-width: 46vw;
  border: 2px solid var(--line); border-radius: 12px; background: var(--panel); padding: 4px 10px;
  font-size: 13px; font-weight: 700; box-shadow: 3px 3px 0 var(--shadow);
}
.model-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chip-effort { font-size: 11px; color: var(--muted); font-weight: 600; }

.scroller { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.messages { max-width: 820px; margin: 0 auto; padding: 18px 14px 28px; display: flex; flex-direction: column; gap: 16px; }

/* -------------------------------------------------------------- empty */
.empty { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px 0; }
.empty-icon { width: 96px; height: 96px; border-radius: 26px; border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); transform: rotate(-4deg); }
.meme-caption {
  margin: 0; font-family: var(--meme); font-size: clamp(30px, 8vw, 54px); line-height: 1.05; text-transform: uppercase;
  color: #fff; letter-spacing: 0.01em;
  text-shadow: 3px 3px 0 #000, -3px 3px 0 #000, 3px -3px 0 #000, -3px -3px 0 #000, 0 3px 0 #000, 0 -3px 0 #000, 3px 0 0 #000, -3px 0 0 #000;
}
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; }
.suggestion { border: 2px solid var(--line); border-radius: 999px; background: var(--panel); padding: 8px 14px; font-size: 14px; font-weight: 600; }
.suggestion:active { background: var(--accent); color: var(--accent-ink); }

/* ----------------------------------------------------------- messages */
.msg.user { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bubble {
  max-width: 86%; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: var(--accent); color: var(--accent-ink); border: 3px solid var(--line);
  border-radius: 18px 18px 4px 18px; box-shadow: 4px 4px 0 var(--shadow);
}
:root:not([data-theme="light"]) .bubble { box-shadow: 4px 4px 0 #000; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 3px solid var(--line); }
.file-chip, .attach-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--panel); }

.msg.assistant { display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 0.7em; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--meme); text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15; margin: 1em 0 0.4em; font-weight: 400; }
.md h1 { font-size: 1.6em; } .md h2 { font-size: 1.35em; } .md h3 { font-size: 1.15em; }
.md a { color: var(--accent); font-weight: 600; }
:root:not([data-theme="light"]) .md a { filter: brightness(1.35); }
.md ul, .md ol { padding-left: 1.4em; margin: 0 0 0.7em; }
.md li { margin: 0.15em 0; }
.md code { font: 0.88em var(--mono); background: var(--panel2); padding: 1px 5px; border-radius: 6px; }
.md pre { position: relative; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow-x: auto; margin: 0 0 0.8em; }
.md pre code { background: none; padding: 0; font-size: 0.85em; }
.code-copy { position: absolute; top: 6px; right: 6px; font-family: var(--meme); font-size: 11px; letter-spacing: 0.06em; padding: 2px 8px; border: 2px solid var(--line); border-radius: 7px; background: var(--panel2); opacity: 0.85; }
.md blockquote { margin: 0 0 0.7em; padding: 4px 12px; border-left: 4px solid var(--accent); color: var(--muted); }
.md table { border-collapse: collapse; display: block; overflow-x: auto; margin: 0 0 0.8em; font-size: 0.92em; }
.md th, .md td { border: 2px solid var(--line); padding: 5px 9px; text-align: left; }
.md th { background: var(--panel2); }
.md hr { border: 0; border-top: 3px dashed var(--muted); margin: 1em 0; }
.md img { max-width: 100%; }
.msg-actions { display: flex; gap: 6px; opacity: 0.7; }

.tools { display: flex; flex-direction: column; gap: 4px; }
.tools-more { align-self: flex-start; border: 2px dashed var(--muted); border-radius: 10px; background: transparent; color: var(--muted); padding: 4px 10px; font-size: 13px; font-weight: 600; }
.tool { border-left: 4px solid var(--accent); background: var(--panel); border-radius: 0 10px 10px 0; }
.tool.error { border-left-color: var(--danger); }
.tool-head { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 6px 10px; text-align: left; font-size: 13px; }
.tool-emoji { flex: none; }
.tool-verb { flex: none; font-weight: 800; }
.tool-sum { flex: 1; min-width: 0; color: var(--muted); font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-state { flex: none; font-weight: 900; }
.tool.running .tool-state::after { content: "●"; color: var(--accent); animation: blink 0.9s infinite; }
.tool.error .tool-state { color: var(--danger); }
@keyframes blink { 50% { opacity: 0.15; } }
.tool-out { margin: 0; padding: 8px 12px 10px; font: 12px/1.45 var(--mono); white-space: pre-wrap; max-height: 280px; overflow: auto; color: var(--muted); border-top: 1px dashed var(--muted); }

.thinking { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-style: italic; }
.thinking-brain { font-size: 26px; font-style: normal; animation: wobble 0.9s ease-in-out infinite; }

.error-block { padding: 10px 14px; border: 3px solid var(--danger); border-radius: 12px; background: color-mix(in srgb, var(--danger) 14%, var(--panel)); font-weight: 700; }
.note-block { font-size: 13px; color: var(--muted); font-style: italic; }

.file-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 3px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 4px 4px 0 var(--shadow); margin: 0; max-width: 520px; }
.file-card.media { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.file-card.media img, .file-card.media video { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.file-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--muted); }
.file-card audio { flex: 1; min-width: 0; }
.file-card:not(.media) figcaption { padding: 0; }
.file-emoji { font-size: 34px; flex: none; }
.file-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card.apk { border-color: var(--accent); }

/* ----------------------------------------------------------- composer */
.composer { border-top: 3px solid var(--line); background: var(--bg); padding: 8px 8px 10px; }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; max-width: 820px; margin: 0 auto; }
.attach-row:not(:empty) { padding-bottom: 8px; }
.attach-chip.loading { opacity: 0.6; }
.attach-x { border: 0; background: transparent; padding: 0 2px; font-size: 12px; }
.composer-row { display: flex; align-items: flex-end; gap: 6px; max-width: 820px; margin: 0 auto; }
.composer-input {
  flex: 1; min-width: 0; resize: none; max-height: 180px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--panel); border: 3px solid var(--line); border-radius: 18px; outline: none;
}
.composer-input:focus { border-color: var(--accent); }
.send {
  flex: none; height: 48px; padding: 0 16px; font-family: var(--meme); font-size: 17px; letter-spacing: 0.04em;
  border: 3px solid var(--line); border-radius: 16px; background: var(--accent); color: var(--accent-ink);
  box-shadow: 4px 4px 0 var(--shadow); transition: transform 0.06s, box-shadow 0.06s;
}
:root:not([data-theme="light"]) .send { box-shadow: 4px 4px 0 #000; }
.send:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.send:disabled { opacity: 0.4; }
.send.stop { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------- layers */
#layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.layer-wrap { position: absolute; inset: 0; pointer-events: auto; }
.layer-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.2s; }
.layer-wrap.open .layer-scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg); border-top: 3px solid var(--line); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: transform 0.22s ease;
}
.sheet.tall { height: 92vh; max-height: 92vh; }
.layer-wrap.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 6px 20px; }
.sheet-head h2 { margin: 0; font-family: var(--meme); font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; }
.sheet-body { overflow-y: auto; padding: 4px 20px 28px; display: flex; flex-direction: column; gap: 12px; }
.modal {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 420px); transform: translate(-50%, -46%) scale(0.96); opacity: 0;
  transition: transform 0.18s, opacity 0.18s; display: flex; flex-direction: column; gap: 14px;
  padding: 22px; background: var(--bg); border: 3px solid var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--shadow);
}
.layer-wrap.open .modal { transform: translate(-50%, -50%); opacity: 1; }
.modal h2 { margin: 0; font-family: var(--meme); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1.1; }
.modal p { margin: 0; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.menu { display: flex; flex-direction: column; gap: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 60; max-width: 90vw;
  padding: 10px 16px; border: 3px solid var(--line); border-radius: 14px; background: var(--ink); color: var(--bg);
  font-weight: 800; box-shadow: 4px 4px 0 var(--shadow);
}

/* ----------------------------------------------------------- controls */
.section { margin: 10px 0 0; font-family: var(--meme); font-weight: 400; font-size: 17px; letter-spacing: 0.06em; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px;
  border: 3px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 3px 3px 0 var(--shadow);
}
.tile.on { background: var(--accent); color: var(--accent-ink); }
.tile.locked { opacity: 0.4; }
.tile-emoji { font-size: 28px; }
.tile-name { font-family: var(--meme); font-size: 18px; letter-spacing: 0.02em; line-height: 1.1; text-transform: uppercase; }
.tile-tag { font-size: 12px; opacity: 0.75; }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider { flex: 1; accent-color: var(--accent); height: 30px; }
.slider-value { flex: none; min-width: 132px; font-family: var(--meme); font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.switch { position: relative; width: 54px; height: 32px; flex: none; border: 3px solid var(--line); border-radius: 999px; background: var(--panel2); padding: 0; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform 0.15s; }
.switch.on { background: var(--accent); }
.switch.on .knob { transform: translateX(22px); background: var(--accent-ink); }
.segmented { display: inline-flex; border: 3px solid var(--line); border-radius: 12px; overflow: hidden; }
.segmented button { border: 0; background: var(--panel); padding: 7px 14px; font-family: var(--meme); letter-spacing: 0.04em; }
.segmented button + button { border-left: 3px solid var(--line); }
.segmented button.on { background: var(--accent); color: var(--accent-ink); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.fld-label { font-family: var(--meme); font-size: 15px; letter-spacing: 0.06em; color: var(--muted); }

.sub { margin: 4px 0 0; font-family: var(--meme); font-weight: 400; font-size: 21px; letter-spacing: 0.03em; }
.fld.inline .slider-row { flex: 1; max-width: 72%; }
.fld.inline .slider-value { min-width: 118px; font-size: 16px; }

.brain-list { display: flex; flex-direction: column; gap: 10px; }
.brain-edit { gap: 8px; padding: 10px; background: var(--bg); }
.brain-edit-head { display: flex; align-items: center; gap: 8px; }
.emoji-input { width: 60px; flex: none; text-align: center; font-size: 20px; padding: 8px 4px; }
.brain-edit .segmented { display: flex; }
.brain-edit .segmented button { flex: 1; padding: 7px 4px; font-size: 14px; }
.persona { resize: vertical; min-height: 64px; font-size: 14px; }

.memory-list { display: flex; flex-direction: column; gap: 6px; }
.memory { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14px; }
.memory > span { flex: 1; }
.empty-memory { color: var(--muted); font-style: italic; }
.juice-bar { height: 18px; border: 3px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel2); }
.juice-fill { height: 100%; width: 0; background: var(--accent); }
.juice-text { font-family: var(--meme); letter-spacing: 0.04em; }

/* -------------------------------------------------------------- admin */
.admin { display: flex; flex-direction: column; gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 3px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-weight: 600; }
.user-head { display: flex; align-items: center; gap: 10px; }
.user-head strong { font-family: var(--meme); font-weight: 400; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.swatch { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; }
.muted { color: var(--muted); }
.user-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.user-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .input { flex: 1; font-size: 13px; }
.invite-code { flex: 1; font: 800 20px var(--mono); letter-spacing: 0.05em; padding: 10px 12px; border: 3px dashed var(--accent); border-radius: 12px; text-align: center; }
.devices { display: flex; flex-direction: column; gap: 6px; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------- invite page */
body.invite { overflow: auto; }
.invite-card { max-width: 440px; margin: 0 auto; padding: 40px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.invite-card h1 { margin: 0; font-family: var(--meme); font-weight: 400; font-size: 46px; text-transform: uppercase; line-height: 1; }
.invite-icon { width: 128px; height: 128px; border-radius: 32px; border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.invite-brain { font-size: 64px; }
.invite-sub { margin: 0; font-weight: 700; }
.invite-steps { text-align: left; display: flex; flex-direction: column; gap: 14px; padding-left: 1.2em; margin: 8px 0 0; width: 100%; }
.invite-steps .btn { display: inline-block; text-decoration: none; }
.invite-card .invite-code { width: 100%; flex: none; }
.invite-fine { font-size: 13px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ desktop */
@media (min-width: 900px) {
  .drawer { position: static; transform: none; width: 300px; flex: none; }
  .drawer-scrim, .burger { display: none; }
  .sheet { left: 50%; right: auto; width: 580px; transform: translate(-50%, 100%); border: 3px solid var(--line); border-bottom: 0; }
  .layer-wrap.open .sheet { transform: translate(-50%, 0); }
  .toast { bottom: 100px; }
}
