:root {
  color-scheme: light;
  --bg: #f4f2f8;
  --surface: #ffffff;
  --ink: #14161b;
  --muted: #737986;
  --line: #e4e6eb;
  --line-strong: #d8dbe2;
  --primary: #6d5dfc;
  --primary-dark: #5849e8;
  --primary-soft: #f0edff;
  --success: #29b87b;
  --danger: #e34f57;
  --shadow: 0 18px 55px rgba(35, 29, 58, 0.07), 0 1px 2px rgba(35, 29, 58, 0.04);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(225, 217, 255, 0.55) 0, rgba(225, 217, 255, 0) 360px),
    radial-gradient(circle at 86% 34%, rgba(209, 235, 255, 0.45) 0, rgba(209, 235, 255, 0) 420px),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  height: 70px;
  padding: 0 clamp(20px, 4vw, 52px);
  background: rgba(247, 246, 250, 0.76);
  border-bottom: 1px solid rgba(218, 215, 226, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 24px;
  display: grid;
  place-items: center;
}

.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }

.header-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}

.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(41, 184, 123, 0.1); }

.page-shell {
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vh, 62px) 0 48px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pairing-view { display: grid; gap: 16px; }

.pair-card {
  position: relative;
  min-height: 510px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 31px;
  padding: clamp(36px, 5.5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
  overflow: hidden;
  background:
    linear-gradient(126deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 45%),
    #12121a;
  box-shadow: 0 30px 80px rgba(22, 19, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pair-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  top: -210px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, 0.018), 0 0 0 108px rgba(255, 255, 255, 0.012);
}

.stage-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.stage-glow-one { width: 360px; height: 360px; right: 40px; top: 20px; background: radial-gradient(circle, rgba(112, 91, 255, 0.25), rgba(112, 91, 255, 0) 70%); }
.stage-glow-two { width: 260px; height: 260px; left: -130px; bottom: -150px; background: radial-gradient(circle, rgba(62, 195, 255, 0.11), rgba(62, 195, 255, 0) 70%); }
.pair-copy, .qr-area { position: relative; z-index: 1; }

.eyebrow {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a99fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.eyebrow-spark { font-size: 15px; line-height: 1; }

h1 {
  margin: 0;
  color: #f8f8fb;
  font-size: clamp(35px, 4.4vw, 50px);
  line-height: 1.13;
  letter-spacing: -0.065em;
}

h1 em { color: #9e91ff; font-style: normal; }

.lead { margin: 18px 0 29px; color: #9fa0ac; font-size: 14px; line-height: 1.65; }

.code-block {
  max-width: 430px;
  padding: 19px 21px 17px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.code-label { color: #a7a8b4; font-size: 11px; font-weight: 650; display: flex; justify-content: space-between; }
.code-tap-hint { color: #70717d; font-weight: 600; }

.pair-code {
  width: 100%;
  min-height: 58px;
  padding: 4px 0 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: clamp(32px, 4.7vw, 44px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.code-digit { min-width: 0.71em; text-align: center; }
.code-gap { width: 0.38em; }

.waiting-line { color: #a7a8b4; display: flex; align-items: center; gap: 8px; font-size: 11px; }

.pulse-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: pulse 1.8s ease-out infinite; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(41, 184, 123, 0.32); } 70%, 100% { box-shadow: 0 0 0 7px rgba(41, 184, 123, 0); } }

.pair-actions { margin-top: 15px; display: flex; gap: 9px; }

.button {
  min-height: 44px;
  border-radius: 12px;
  border: 0;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-secondary { color: #4f5664; background: #fff; border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--line-strong); background: #fafbfc; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 6px 16px rgba(67, 93, 245, 0.22); }
.button-primary:hover { background: var(--primary-dark); }
.button-bright { color: #17151f; background: #fff; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16); }
.button-bright:hover { background: #f7f5ff; }
.button-quiet { color: #e1dff1; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.11); }
.button-quiet:hover { background: rgba(255, 255, 255, 0.12); }

.qr-area { text-align: center; display: flex; flex-direction: column; align-items: center; transform: rotate(1.2deg); }

.qr-card {
  width: 282px;
  padding: 14px 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32), 0 2px 0 rgba(255, 255, 255, 0.85) inset;
}

.qr-card-head { height: 31px; padding: 0 5px; color: #a09da9; display: flex; align-items: center; justify-content: space-between; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; }
.qr-mini-mark { width: 19px; height: 13px; display: block; object-fit: contain; }

.qr-frame {
  width: 252px;
  height: 252px;
  padding: 18px;
  border: 1px solid #eceaf1;
  border-radius: 18px;
  background: #fbfafc;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.qr-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(109, 93, 252, 0.08); border-radius: 13px; pointer-events: none; }
.qr-frame img { width: 216px; height: 216px; border-radius: 3px; }
.qr-skeleton { width: 206px; height: 206px; border-radius: 9px; background: linear-gradient(110deg, #f0eef4 8%, #fafafa 18%, #f0eef4 33%); background-size: 200% 100%; animation: shine 1.4s linear infinite; }
@keyframes shine { to { background-position-x: -200%; } }
.qr-meta { margin-top: 16px; display: flex; flex-direction: column; gap: 5px; }
.qr-meta strong { font-size: 13px; }
.qr-meta span { color: #8e8b96; font-size: 11px; }
.privacy-chip { margin-top: 15px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 99px; color: #858591; background: rgba(255, 255, 255, 0.045); display: inline-flex; align-items: center; gap: 6px; font-size: 9px; transform: rotate(-1.2deg); }
.privacy-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.join-card {
  min-height: 104px;
  padding: 19px 21px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 13px 40px rgba(35, 29, 58, 0.06);
}

.join-symbol { width: 46px; height: 46px; flex: 0 0 auto; color: var(--primary); background: var(--primary-soft); border-radius: 14px; display: grid; place-items: center; }
.join-symbol svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.join-copy { margin-right: auto; display: flex; flex-direction: column; gap: 5px; min-width: 250px; }
.join-copy strong { font-size: 13px; }
.join-copy span { color: var(--muted); font-size: 12px; }
.pin-form { display: flex; align-items: center; gap: 10px; }
.pin-inputs { padding: 5px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 15px; background: #f8f7fa; }
.pin-inputs input {
  width: 39px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  text-align: center;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  font-weight: 720;
  caret-color: var(--primary);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.pin-inputs input:hover { background: #f0eef4; }
.pin-inputs input:focus { box-shadow: none; background: #fff; }
.pin-separator { width: 10px; height: 1px; background: #c4c0cd; margin: 0 2px; }
.join-button { min-width: 88px; height: 56px; border-radius: 14px; box-shadow: 0 9px 22px rgba(109, 93, 252, 0.24); }
.join-button svg { width: 16px; }

.trust-row { min-height: 44px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: #8f8b98; font-size: 10px; }
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: #c8cbd2; }

.transfer-view { width: min(780px, 100%); margin: 0 auto; }
.transfer-card { min-height: 650px; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.transfer-topbar { min-height: 84px; padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.peer-summary, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.peer-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.peer-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.connected-label { margin-bottom: 3px; color: var(--success); font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.connected-label span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.peer-summary h2 { margin: 0; font-size: 16px; letter-spacing: -0.025em; }
.transport-badge { padding: 6px 9px; color: #6c7280; background: #f5f6f8; border-radius: 8px; font-size: 10px; font-weight: 700; }
.transport-badge.direct { color: #2b9368; background: #eaf8f2; }
.icon-button { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: white; color: #656b77; cursor: pointer; display: grid; place-items: center; }
.icon-button:hover { background: #f8f9fa; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-button { position: relative; }
.notification-button.notifications-on { color: var(--primary); border-color: #d9d4ff; background: var(--primary-soft); }
.notification-button.notifications-on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--success); }

.message-list { min-height: 300px; max-height: 360px; flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: #d8dbe2 transparent; }
.empty-messages { margin: auto; color: var(--muted); text-align: center; display: flex; flex-direction: column; align-items: center; }
.empty-symbol { width: 52px; height: 52px; margin-bottom: 14px; color: #a6acb7; background: #f4f5f7; border-radius: 17px; display: grid; place-items: center; }
.empty-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-messages strong { color: #4a505c; font-size: 14px; }
.empty-messages span { margin-top: 7px; font-size: 12px; }

.message { max-width: 78%; display: flex; flex-direction: column; gap: 4px; }
.message.own { align-self: flex-end; align-items: flex-end; }
.message.peer { align-self: flex-start; align-items: flex-start; }
.message-bubble { padding: 11px 14px; border-radius: 14px; color: #343945; background: #f1f2f5; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.own .message-bubble { color: white; background: var(--primary); border-bottom-right-radius: 5px; }
.message.peer .message-bubble { border-bottom-left-radius: 5px; }
.message-link { color: #5749de; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.message.own .message-link { color: white; text-decoration-color: rgba(255, 255, 255, 0.68); }
.message-link:hover { text-decoration-thickness: 2px; }
.message-time { padding: 0 3px; color: #a1a6b0; font-size: 9px; }
.message-status { transition: color 160ms ease; }
.message-status.read { color: var(--primary); font-weight: 700; }

.file-message { width: min(360px, 84%); padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; }
.file-message.image-file { width: min(430px, 92%); }
.file-message.own { align-self: flex-end; }
.file-message.peer { align-self: flex-start; }
.file-symbol { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.file-info { min-width: 0; }
.file-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.file-progress { grid-column: 2 / -1; height: 3px; border-radius: 99px; overflow: hidden; background: #eceef2; }
.file-progress span { display: block; width: 0; height: 100%; background: var(--primary); transition: width 120ms linear; }
.download-button { padding: 6px 7px; border: 0; color: var(--primary); background: transparent; text-decoration: none; font-size: 11px; font-weight: 750; cursor: pointer; }
.image-thumbnail { position: relative; grid-column: 1 / -1; width: 100%; max-height: 260px; padding: 0; overflow: hidden; border: 0; border-radius: 11px; background: #f0f0f4; cursor: zoom-in; display: grid; place-items: center; }
.image-thumbnail img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.image-thumbnail span { position: absolute; right: 9px; bottom: 9px; padding: 6px 9px; border-radius: 8px; color: white; background: rgba(16, 16, 22, 0.72); backdrop-filter: blur(8px); font-size: 9px; font-weight: 700; opacity: 0; transform: translateY(3px); transition: opacity 150ms ease, transform 150ms ease; }
.image-thumbnail:hover span, .image-thumbnail:focus-visible span { opacity: 1; transform: translateY(0); }

.drop-zone { margin: 0 20px 12px; min-height: 88px; padding: 14px 17px; border: 1px dashed #cfd3dc; border-radius: 15px; background: #fafbfc; cursor: pointer; display: flex; align-items: center; gap: 13px; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--primary); background: var(--primary-soft); }
.drop-zone.dragging { transform: scale(0.995); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 41px; height: 41px; flex: 0 0 auto; color: var(--primary); background: white; border: 1px solid #e1e4ef; border-radius: 12px; display: grid; place-items: center; }
.drop-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.drop-copy strong { font-size: 12px; }
.drop-copy span { color: var(--muted); font-size: 10px; }
.file-limit { margin-left: auto; flex: 0 0 auto; color: #969ca7; font-size: 10px; }

.message-form { margin: 0 20px 20px; min-height: 58px; padding: 8px 8px 8px 15px; border: 1px solid var(--line); border-radius: 15px; background: white; display: flex; align-items: flex-end; gap: 8px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.message-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67, 93, 245, 0.08); }
.message-form textarea { width: 100%; max-height: 120px; padding: 8px 0; resize: none; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; line-height: 1.45; }
.message-form textarea::placeholder { color: #a4a9b3; }
.send-button { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 12px; color: white; background: var(--primary); cursor: pointer; display: grid; place-items: center; }
.send-button:hover { background: var(--primary-dark); }
.send-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.session-note { margin: 14px 0 0; color: #9399a4; text-align: center; font-size: 11px; }

.image-preview-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: clamp(12px, 3vw, 30px); border: 0; background: transparent; overflow: hidden; }
.image-preview-dialog::backdrop { background: rgba(10, 10, 15, 0.86); backdrop-filter: blur(10px); }
.image-preview-panel { width: min(1040px, 100%); height: 100%; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 24px; color: #f7f7fa; background: #17171f; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48); display: flex; flex-direction: column; }
.image-preview-header { min-height: 72px; padding: 14px 18px 14px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.image-preview-header div { min-width: 0; }
.image-preview-header span { display: block; margin-bottom: 4px; color: #8f8d9a; font-size: 10px; font-weight: 700; }
.image-preview-header strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.preview-close-button { width: 40px; height: 40px; flex: 0 0 auto; padding: 0; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: #d4d2dc; background: rgba(255, 255, 255, 0.06); cursor: pointer; display: grid; place-items: center; }
.preview-close-button:hover { background: rgba(255, 255, 255, 0.11); }
.preview-close-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.image-preview-stage { min-height: 0; flex: 1; padding: 18px; background: radial-gradient(circle at 50% 40%, #292735 0, #111117 74%); display: grid; place-items: center; }
.image-preview-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28); }
.image-preview-actions { min-height: 82px; padding: 14px 18px 14px 22px; border-top: 1px solid rgba(255, 255, 255, 0.09); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.image-preview-actions p { margin: 0; color: #93919e; font-size: 11px; line-height: 1.45; }
.image-preview-actions > div { display: flex; flex: 0 0 auto; gap: 9px; }
.preview-action { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.preview-action-secondary { border: 1px solid rgba(255, 255, 255, 0.12); color: #dedce7; background: rgba(255, 255, 255, 0.06); }
.preview-action-primary { border: 0; color: white; background: var(--primary); }
.preview-action-primary:hover { background: var(--primary-dark); }

.toast { position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 18px); padding: 11px 15px; border-radius: 11px; color: white; background: rgba(21, 23, 29, 0.92); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(185, 48, 56, 0.95); }

:focus-visible { outline: 3px solid rgba(109, 93, 252, 0.3); outline-offset: 2px; }

@media (max-width: 760px) {
  .site-header { height: 58px; padding: 0 18px; }
  .brand-mark { width: 32px; height: 22px; }
  .header-note { font-size: 0; }
  .header-note .online-dot { display: block; }
  .page-shell { width: min(100% - 24px, 560px); padding-top: 22px; }
  .pair-card { min-height: 0; padding: 31px 24px 28px; grid-template-columns: 1fr; gap: 34px; border-radius: 25px; }
  .pair-card::before { right: -250px; top: -250px; }
  .pair-copy { display: block; }
  h1 { font-size: clamp(34px, 10vw, 43px); }
  .lead br { display: none; }
  .code-block { max-width: none; }
  .qr-area { transform: none; }
  .qr-card { width: 258px; padding: 12px 12px 18px; border-radius: 22px; }
  .qr-frame { width: 234px; height: 234px; padding: 16px; border-radius: 16px; }
  .qr-frame img, .qr-skeleton { width: 202px; height: 202px; }
  .privacy-chip { transform: none; }
  .join-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; }
  .join-copy { min-width: 0; margin-right: 0; }
  .pin-form { grid-column: 1 / -1; justify-content: space-between; }
  .pin-inputs { flex: 1; justify-content: space-between; gap: 2px; }
  .pin-inputs input { width: clamp(34px, 9vw, 42px); height: 46px; }
  .join-button { width: 50px; min-width: 50px; height: 50px; padding: 0; font-size: 0; }
  .trust-row { padding: 0 20px; line-height: 1.7; }
  .transfer-card { min-height: calc(100dvh - 112px); border-radius: 19px; }
  .transport-badge { display: none; }
}

@media (max-width: 420px) {
  .pair-card { padding: 27px 18px 24px; border-radius: 22px; }
  h1 { font-size: 33px; }
  .lead { margin-bottom: 23px; font-size: 13px; }
  .pair-code { font-size: 35px; }
  .pair-actions .button { flex: 1; }
  .pair-actions .button { padding-inline: 11px; }
  .join-card { padding: 17px 15px; }
  .pin-inputs { flex: 1; justify-content: space-between; }
  .pin-inputs input { width: calc((100vw - 146px) / 6); min-width: 29px; padding: 0; }
  .pin-separator { display: none; }
  .transfer-topbar { padding: 14px 15px; }
  .message-list { padding: 18px 14px; }
  .message { max-width: 88%; }
  .file-message.image-file { width: 96%; }
  .image-thumbnail span { display: none; }
  .drop-zone { margin-inline: 13px; }
  .drop-icon { display: none; }
  .file-limit { display: none; }
  .message-form { margin: 0 13px 13px; }
  .image-preview-dialog { padding: 0; }
  .image-preview-panel { border: 0; border-radius: 0; }
  .image-preview-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .image-preview-stage { padding: 10px; }
  .image-preview-actions { padding: 12px 14px max(12px, env(safe-area-inset-bottom)); align-items: stretch; flex-direction: column; gap: 10px; }
  .image-preview-actions > div { width: 100%; }
  .preview-action { flex: 1; }
}

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