@font-face {
  font-family: "Plex Sans";
  src: url("/fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #fdfcfa;
  --sunk: #efede7;
  --ink: #181816;
  --ink-2: #4a4944;
  --ink-3: #7b7972;
  --line: #e2dfd7;
  --line-strong: #cfcbc1;
  --accent: #2b47c9;
  --accent-ink: #ffffff;
  --accent-soft: #e9ecfa;
  --accent-line: #c7cff1;
  --danger: #b3261e;
  --danger-soft: #f8e9e7;
  --focus: #2b47c9;
  --shadow: 0 1px 0 rgb(24 24 22 / 0.04), 0 12px 32px -18px rgb(24 24 22 / 0.18);

  --sans: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a18;
    --sunk: #0d0d0c;
    --ink: #edebe5;
    --ink-2: #b9b6ad;
    --ink-3: #8a877f;
    --line: #2a2a27;
    --line-strong: #3a3a36;
    --accent: #93a4ff;
    --accent-ink: #0e1330;
    --accent-soft: #1d2136;
    --accent-line: #343c66;
    --danger: #f2a49d;
    --danger-soft: #2e1b19;
    --focus: #93a4ff;
    --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 16px 40px -20px rgb(0 0 0 / 0.7);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

input,
textarea {
  caret-color: var(--accent);
}

html {
  scrollbar-color: var(--line-strong) transparent;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Shell ------------------------------------------------------------------------- */

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}

body[data-view="chat"] .bar {
  border-bottom-color: var(--line);
}

@media (min-width: 720px) {
  .bar {
    padding: 18px 32px;
  }
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-s);
}

.mark-glyph {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ink);
}

.mark-glyph::before,
.mark-glyph::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 6px;
  height: 10px;
  border-radius: 3px;
  background: var(--bg);
}

.mark-glyph::before {
  left: 4px;
}

.mark-glyph::after {
  right: 4px;
  background: var(--accent);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}

.status[data-tone="live"] .status-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.status[data-tone="busy"] .status-dot {
  background: transparent;
  border: 1.5px solid var(--ink-3);
  border-top-color: transparent;
  animation: spin 900ms linear infinite;
}

.status[data-tone="bad"] .status-dot {
  background: var(--danger);
}

main {
  display: grid;
  min-width: 0;
}

.foot {
  padding: 20px 16px 28px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

.foot p {
  margin: 0;
}

body[data-view="chat"] .foot {
  display: none;
}

/* ---- Screens ----------------------------------------------------------------------- */

.screen {
  min-width: 0;
  animation: enter 260ms var(--ease) both;
}

.screen-center {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px 16px 40px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status[data-tone="busy"] .status-dot {
    border: 0;
    background: var(--ink-3);
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ---- Type -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-size: clamp(40px, 9vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 34ch;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.title {
  margin: 0;
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title:focus {
  outline: none;
}

.body {
  margin: 12px 0 0;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hint {
  margin: 8px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---- Buttons and inputs ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease), transform 140ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.btn-large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.btn-small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 86%, var(--accent));
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--ink-3);
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-quiet:hover {
  background: var(--surface);
}

.btn-danger-quiet {
  color: var(--danger);
  border-color: transparent;
}

.btn-danger-quiet:hover {
  background: var(--danger-soft);
}

.btn-link {
  min-height: 40px;
  padding: 0 8px;
  color: var(--ink-3);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.btn-link:hover {
  color: var(--ink);
}

.btn[data-done="true"] {
  color: var(--accent);
  border-color: var(--accent-line);
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.input::placeholder {
  color: var(--ink-3);
  opacity: 0.8;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
}

.optional {
  color: var(--ink-3);
  font-weight: 400;
}

.field-error {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.field-error:empty {
  display: none;
}

/* ---- Home -------------------------------------------------------------------------- */

.screen-home {
  display: grid;
  align-items: center;
  padding: 32px 16px 24px;
}

.home {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .screen-home {
    padding: 56px 32px 32px;
  }
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 479px) {
  .home-actions .btn {
    flex: 1 1 100%;
  }
}

.join {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  animation: enter 220ms var(--ease) both;
}

.join-row {
  display: flex;
  gap: 10px;
}

.input-code {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.01em;
}

@media (max-width: 479px) {
  .join-row {
    flex-direction: column;
  }
}

.steps {
  display: grid;
  gap: 16px;
  margin: 56px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
}

.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
}

.steps strong {
  color: var(--ink);
  font-weight: 600;
}

.step-n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .steps li {
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    gap: 8px;
  }
}

/* ---- Panels ------------------------------------------------------------------------ */

.panel {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.panel-quiet .body {
  margin-left: auto;
  margin-right: auto;
  max-width: 34ch;
}

/* Host code */

.panel-code {
  max-width: 860px;
  padding: 8px 0;
}

.code {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 0;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(30px, 5.4vw, 46px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.code-part {
  white-space: nowrap;
}

.code-room {
  color: var(--accent);
}

.code-sep {
  padding: 0 0.32em;
  color: var(--line-strong);
}

@media (max-width: 479px) {
  .code {
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.18;
  }

  .code-sep {
    display: none;
  }
}

.code-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.waiting {
  margin: 40px auto 0;
  max-width: 360px;
}

.waiting-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  }
  80%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

.timer {
  height: 2px;
  margin: 18px 0 0;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.timer-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 1s linear;
}

#cancel-host-btn {
  margin-top: 28px;
}

/* Connecting */

.loader {
  width: 120px;
  height: 2px;
  margin: 0 auto 28px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: slide 1.2s var(--ease) infinite;
}

@keyframes slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}

/* Verify */

.panel-verify .body {
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.verifier {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 32px auto 0;
  padding: 0;
  max-width: 440px;
  list-style: none;
  counter-reset: g;
}

.verifier li {
  position: relative;
  padding: 12px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--surface);
  font-family: var(--mono);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 500;
  letter-spacing: 0.04em;
  counter-increment: g;
}

.verifier li::before {
  content: counter(g);
  position: absolute;
  top: 4px;
  left: 6px;
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0;
  opacity: 0.75;
}

.verifier li:nth-child(n + 5):nth-child(-n + 8),
.verifier li:nth-child(n + 13) {
  background: var(--sunk);
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

@media (max-width: 479px) {
  .verify-actions .btn {
    flex: 1 1 100%;
  }
}

.verify-state {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-weight: 500;
}

.verify-state:empty {
  display: none;
}

.verify-state[data-waiting="true"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  animation: pulse 1.6s var(--ease) infinite;
}

/* Ended */

.panel-ended {
  max-width: 460px;
}

.ended-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  position: relative;
}

.ended-mark::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 3px;
  background: var(--ink-3);
}

.panel-ended[data-tone="bad"] .ended-mark {
  border-color: var(--danger);
}

.panel-ended[data-tone="bad"] .ended-mark::after {
  inset: 20px 12px;
  border-radius: 2px;
  background: var(--danger);
}

.panel-ended[data-tone="bad"] .eyebrow {
  color: var(--danger);
}

.panel-ended .body {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.cleared {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink-2);
  font-size: 14px;
}

.cleared .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.panel-ended > .btn {
  display: flex;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* ---- Conversation ------------------------------------------------------------------ */

.screen-chat {
  display: grid;
  min-height: 0;
}

.chat {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 0;
  height: calc(100dvh - 65px);
}

@media (min-width: 720px) {
  .chat {
    height: calc(100dvh - 73px);
  }
}

.log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 24px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px);
  mask-image: linear-gradient(to bottom, transparent, #000 28px);
}

.log:focus-visible {
  outline-offset: -2px;
}

@media (min-width: 720px) {
  .log {
    padding: 32px 32px 20px;
  }
}

.log-start {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 46ch;
  margin: 0 auto 10px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: left;
}

.log-start .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.msg {
  align-self: flex-start;
  max-width: min(78%, 520px);
  animation: enter 200ms var(--ease) both;
}

.msg-who {
  margin: 0 0 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 550;
}

.msg-text {
  margin: 0;
  padding: 10px 14px;
  border-radius: 4px var(--r-l) var(--r-l) var(--r-l);
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg[data-mine="true"] {
  align-self: flex-end;
}

.msg[data-mine="true"] .msg-who {
  text-align: right;
}

.msg[data-mine="true"] .msg-text {
  border-radius: var(--r-l) 4px var(--r-l) var(--r-l);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* Secret card */

.secret {
  align-self: flex-start;
  width: min(100%, 440px);
  padding: 16px 16px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: enter 220ms var(--ease) both;
  transition: opacity 200ms var(--ease);
}

.secret[data-mine="true"] {
  align-self: flex-end;
}

.secret-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secret-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.secret-who {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.secret-label {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.secret-label:empty {
  display: none;
}

.secret-value {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-s);
  background: var(--sunk);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  letter-spacing: 0.02em;
}

.secret-value[data-masked="true"] {
  color: var(--ink-3);
  letter-spacing: 0.12em;
  user-select: none;
  -webkit-user-select: none;
}

.secret-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.secret-actions .btn {
  flex: 1;
}

.secret-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.secret-state:empty {
  display: none;
}

.secret-state[data-tone="warn"] {
  color: var(--danger);
}

.secret[data-state="cleared"] {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

.secret[data-state="cleared"] .secret-value,
.secret[data-state="cleared"] .secret-actions {
  display: none;
}

.secret[data-state="cleared"] .secret-state {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 500;
}

.secret-state .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Composer */

.composer {
  display: grid;
  gap: 12px;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

@media (min-width: 720px) {
  .composer {
    margin: 0 32px 24px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
}

.mode {
  display: inline-flex;
  justify-self: start;
  padding: 3px;
  border-radius: 10px;
  background: var(--sunk);
}

.mode-opt {
  position: relative;
}

.mode-opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.mode-opt span {
  display: block;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 550;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.mode-opt input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.mode-opt input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

@media (min-width: 720px) {
  .mode-opt input:checked + span {
    background: var(--bg);
  }
}

.compose-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compose-top .hint {
  margin: 0;
  font-size: 13px;
}

.compose-top .hint[data-tone="warn"] {
  color: var(--danger);
}

.compose-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.compose-body {
  flex: 1;
  min-width: 0;
}

.input-msg {
  display: block;
  min-height: 46px;
  max-height: 180px;
  resize: none;
  overflow-y: auto;
}

.compose-secret {
  display: grid;
  gap: 10px;
}

.compose-secret .field-label {
  margin-bottom: 6px;
  font-size: 13px;
}

@media (min-width: 560px) {
  .compose-secret {
    grid-template-columns: 2fr 3fr;
  }
}

.input-secret {
  font-family: var(--mono);
}

.btn-send {
  min-height: 46px;
}

@media (max-width: 479px) {
  .compose-top .hint {
    display: none;
  }

  .compose-top .hint[data-tone="warn"] {
    display: block;
  }

  .btn-send {
    width: 46px;
    padding: 0;
  }

  .send-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.code-title {
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}
