/* TAN — tropical design tokens ---------------------------------- */

:root {
  --sea-900: #041F26;
  --sea-800: #06303A;
  --sea-700: #0A414D;
  --sea-600: #0E5462;
  --line:    #12606E;

  --lagoon:  #12A594;
  --lagoon-bright: #2ED3B7;
  --lagoon-deep:   #0B7A70;

  --sand:    #EFE0C6;
  --sand-bright: #F9F0DE;
  --coral:   #E4785F;

  --foam:    #8FB8BC;
  --foam-dim: #5E868C;

  --ink: var(--sand-bright);

  --display: 'Gabarito', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --rail: 306px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--body);
  background: var(--sea-900);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--lagoon-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #123f4a; border-radius: 6px; border: 3px solid var(--sea-900); }

/* Sign in ------------------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% -10%, #0d4f56 0%, transparent 60%),
    linear-gradient(180deg, var(--sea-800) 0%, var(--sea-900) 100%);
  overflow-y: auto;
}

.gate-card {
  width: min(400px, 100%);
  text-align: center;
}

.gate-mark {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.gate h1 {
  font-family: var(--display);
  font-size: 52px;
  letter-spacing: 0.16em;
  margin: 0;
  font-weight: 600;
  color: var(--sand-bright);
  text-indent: 0.16em;
}

.gate .tagline {
  color: var(--foam);
  margin: 4px 0 30px;
  font-size: 14px;
}

.gate .tagline b {
  color: var(--lagoon-bright);
  font-weight: 500;
}

.field { text-align: left; margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foam-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.field input::placeholder { color: #4d7278; }
.field input:focus { border-color: var(--lagoon); outline: none; background: rgba(255,255,255,0.07); }

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--lagoon) 0%, var(--lagoon-bright) 100%);
  color: #04262b;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }

.notice {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  background: rgba(228, 120, 95, 0.14);
  border: 1px solid rgba(228, 120, 95, 0.4);
  color: #ffc4b4;
  text-align: left;
}

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

.app { display: none; height: 100%; }
.app.on { display: grid; grid-template-columns: var(--rail) 1fr; }

.rail {
  background: var(--sea-800);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rail-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 11px;
}

.rail-head img { width: 38px; height: 38px; flex: none; }

.rail-head .wordmark {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.15em;
  font-weight: 600;
  line-height: 1;
}

.rail-head .who {
  font-size: 11.5px;
  color: var(--foam-dim);
  margin-top: 2px;
}

.tabs {
  display: flex;
  padding: 10px 12px 0;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.tab {
  flex: 1;
  padding: 9px 4px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--foam-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 140ms ease;
}

.tab:hover { color: var(--foam); }
.tab.on { color: var(--lagoon-bright); border-bottom-color: var(--lagoon-bright); }

.panel { flex: 1; overflow-y: auto; min-height: 0; padding: 10px; }

/* Conversations */

.conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  width: 100%;
  text-align: left;
  transition: background 130ms ease;
}

.conv:hover { background: rgba(255, 255, 255, 0.05); }
.conv.on { background: var(--sea-600); }

.pip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: #04262b;
  flex: none;
  position: relative;
}

.pip.t { background: linear-gradient(140deg, #2ED3B7, #12A594); }
.pip.a { background: linear-gradient(140deg, #F5C86B, #E09B3D); }
.pip.n { background: linear-gradient(140deg, #F0937C, #E4785F); }
.pip.g { background: linear-gradient(140deg, #7FD8C4, #3E9B5F); }

.pip .dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3d5d63;
  border: 2.5px solid var(--sea-800);
}

.conv.on .pip .dot { border-color: var(--sea-600); }
.pip .dot.live { background: var(--lagoon-bright); }

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

.conv-name {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.conv-name time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--foam-dim);
  font-weight: 400;
  flex: none;
}

.conv-last {
  font-size: 12.5px;
  color: var(--foam-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.badge {
  background: var(--coral);
  color: #33130c;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  flex: none;
}

/* Main pane ----------------------------------------------------- */

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--sea-900); }

.bar {
  height: 66px;
  flex: none;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sea-800);
}

.bar h2 { font-family: var(--display); font-size: 19px; margin: 0; font-weight: 600; }
.bar .sub { font-size: 12px; color: var(--foam-dim); margin-top: 1px; }
.bar .spacer { flex: 1; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--foam);
  background: rgba(255, 255, 255, 0.05);
  transition: background 130ms ease, color 130ms ease;
}

.icon-btn:hover { background: var(--lagoon); color: #04262b; }
.icon-btn svg { width: 20px; height: 20px; }

.back-btn { display: none; }

/* Messages */

.stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
}

.daymark {
  align-self: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--foam-dim);
  background: var(--sea-800);
  padding: 4px 13px;
  border-radius: 999px;
  margin: 16px 0 10px;
}

.msg { max-width: min(560px, 78%); display: flex; flex-direction: column; margin-top: 9px; }
.msg.tight { margin-top: 2px; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.in { align-self: flex-start; }

.msg .author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lagoon-bright);
  margin: 0 0 3px 13px;
}

.bubble {
  padding: 9px 14px 8px;
  border-radius: 17px;
  background: var(--sea-700);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.msg.in .bubble { border-bottom-left-radius: 5px; }
.msg.out .bubble {
  background: linear-gradient(145deg, var(--lagoon-deep), var(--lagoon));
  color: #f2fffb;
  border-bottom-right-radius: 5px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 12px 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--foam-dim);
}

.ticks { display: inline-flex; }
.ticks svg { width: 15px; height: 10px; }
.ticks.read { color: var(--lagoon-bright); }

.attach {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: -2px -4px 4px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.26);
  text-decoration: none;
  color: inherit;
}

.attach:hover { background: rgba(0, 0, 0, 0.4); }
.attach svg { width: 19px; height: 19px; flex: none; opacity: 0.85; }
.attach .n { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.attach .s { font-family: var(--mono); font-size: 10.5px; opacity: 0.7; }

.typing {
  align-self: flex-start;
  font-size: 12.5px;
  color: var(--foam-dim);
  padding: 4px 14px 10px;
  font-style: italic;
}

/* Composer */

.composer {
  flex: none;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--sea-800);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.composer textarea {
  flex: 1;
  resize: none;
  max-height: 160px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.45;
}

.composer textarea:focus { outline: none; border-color: var(--lagoon); }

.send {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(140deg, var(--lagoon-bright), var(--lagoon));
  color: #04262b;
  display: grid;
  place-items: center;
}

.send:disabled { opacity: 0.35; }
.send svg { width: 20px; height: 20px; }

/* Lockers ------------------------------------------------------- */

.pane { flex: 1; overflow-y: auto; padding: 24px 26px 40px; min-height: 0; }

.pane h3 {
  font-family: var(--display);
  font-size: 24px;
  margin: 0 0 4px;
  font-weight: 600;
}

.pane .lede { color: var(--foam); font-size: 13.5px; margin: 0 0 22px; max-width: 60ch; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--foam);
  transition: all 130ms ease;
}

.chip:hover { border-color: var(--lagoon); color: var(--sand-bright); }
.chip.on { background: var(--lagoon); border-color: var(--lagoon); color: #04262b; }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 30px 22px;
  text-align: center;
  color: var(--foam-dim);
  margin-bottom: 22px;
  transition: all 140ms ease;
}

.drop.hot { border-color: var(--lagoon-bright); background: rgba(46, 211, 183, 0.07); color: var(--sand-bright); }
.drop b { color: var(--lagoon-bright); cursor: pointer; }

.bar-track {
  height: 5px;
  border-radius: 3px;
  background: var(--sea-700);
  overflow: hidden;
  margin-top: 14px;
}

.bar-fill { height: 100%; background: var(--lagoon-bright); width: 0; transition: width 180ms ease; }

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: 9px;
}

.file-row:hover { border-color: var(--lagoon-deep); }
.file-row .grip { color: var(--lagoon-bright); flex: none; }
.file-row .grip svg { width: 22px; height: 22px; }
.file-row .info { flex: 1; min-width: 0; }
.file-row .info .n { font-weight: 600; font-size: 14px; word-break: break-word; }
.file-row .info .s { font-family: var(--mono); font-size: 11px; color: var(--foam-dim); margin-top: 2px; }

.mini {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--foam);
  text-decoration: none;
  white-space: nowrap;
}

.mini:hover { border-color: var(--lagoon); color: var(--sand-bright); }
.mini.warn:hover { border-color: var(--coral); color: #ffc4b4; }

.empty { text-align: center; padding: 46px 20px; color: var(--foam-dim); font-size: 14px; }

/* Whereabouts --------------------------------------------------- */

.loc-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 19px 21px;
  margin-bottom: 13px;
}

.loc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.loc-head .nm { font-family: var(--display); font-size: 18px; font-weight: 600; }
.loc-head .ago { font-size: 12px; color: var(--foam-dim); margin-top: 1px; }

.coords {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--foam);
  background: rgba(0, 0, 0, 0.26);
  padding: 10px 13px;
  border-radius: var(--r-sm);
  margin-bottom: 13px;
}

.share-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 16px;
  margin: 0 0 20px;
  border-radius: var(--r-md);
  background: rgba(46, 211, 183, 0.08);
  border: 1px solid rgba(46, 211, 183, 0.28);
  font-size: 13px;
  color: var(--foam);
}

.share-note svg { width: 18px; height: 18px; flex: none; color: var(--lagoon-bright); margin-top: 1px; }
.share-note b { color: var(--sand-bright); font-weight: 600; }

.watch-card {
  background: rgba(0, 0, 0, 0.26);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  margin: -2px -4px 4px;
}

.wt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 7px;
}

.wt-head svg { width: 15px; height: 15px; }

.wt-url {
  font-family: var(--mono);
  font-size: 11.5px;
  opacity: 0.85;
  word-break: break-all;
  margin-bottom: 10px;
}

.wt-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Rooms ---------------------------------------------------------- */

.stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #02171c;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.stage video {
  width: 100%;
  display: block;
  background: #02171c;
  max-height: 62vh;
}

.stage.audio video { height: 78px; }

.stage-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: var(--sea-800);
  flex-wrap: wrap;
}

.stage-bar .now {
  flex: 1;
  min-width: 140px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hand-note {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--coral);
  color: #33130c;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  animation: rise 220ms ease both;
  max-width: calc(100% - 32px);
  text-align: center;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: 9px;
}

.media-row.on { border-color: var(--lagoon); background: rgba(18, 165, 148, 0.1); }
.media-row .grip { color: var(--lagoon-bright); flex: none; }
.media-row .grip svg { width: 22px; height: 22px; }
.media-row .info { flex: 1; min-width: 0; }
.media-row .info .n { font-weight: 600; font-size: 14px; word-break: break-word; }
.media-row .info .s { font-family: var(--mono); font-size: 11px; color: var(--foam-dim); margin-top: 2px; }

.media-row .converting {
  height: 4px;
  border-radius: 2px;
  background: var(--sea-700);
  overflow: hidden;
  margin-top: 7px;
}

.media-row .converting i { display: block; height: 100%; background: var(--lagoon-bright); transition: width 300ms ease; }

/* Group sheet ---------------------------------------------------- */

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(2, 18, 22, 0.72);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.sheet-wrap.on { display: flex; }

.sheet {
  background: var(--sea-800);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 22px 28px;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  animation: sheet-up 240ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.sheet h4 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 600;
}

.sheet-lede { color: var(--foam); font-size: 13px; margin: 0 0 20px; }

.sheet-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  transition: border-color 130ms ease, background 130ms ease;
}

.member.on { border-color: var(--lagoon); background: rgba(18, 165, 148, 0.12); }
.member .pip { width: 34px; height: 34px; font-size: 14px; }
.member .nm { flex: 1; font-weight: 600; font-size: 14px; }

.member .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  color: transparent;
}

.member.on .tick { background: var(--lagoon-bright); border-color: var(--lagoon-bright); color: #04262b; }
.member .tick svg { width: 13px; height: 13px; }
.member.locked { opacity: 0.55; }

.rail-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 6px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foam-dim);
  font-weight: 700;
}

.rail-section button {
  color: var(--lagoon-bright);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}

.rail-section button:hover { background: rgba(46, 211, 183, 0.14); }

.conv .cog {
  color: var(--foam-dim);
  padding: 4px;
  border-radius: 6px;
  flex: none;
}

.conv .cog:hover { color: var(--lagoon-bright); }
.conv .cog svg { width: 16px; height: 16px; display: block; }

/* Calls --------------------------------------------------------- */

.call {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #02171c;
  display: none;
  flex-direction: column;
}

.call.on { display: flex; }

.call-grid {
  flex: 1;
  display: grid;
  gap: 10px;
  padding: 14px;
  grid-template-columns: 1fr;
  min-height: 0;
}

.call-grid.two { grid-template-columns: repeat(2, 1fr); }
.call-grid.three { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }

.tile {
  position: relative;
  background: #061f25;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 0;
}

.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.self video { transform: scaleX(-1); }

.tile .nametag {
  position: absolute;
  left: 12px;
  bottom: 11px;
  background: rgba(2, 23, 28, 0.75);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.tile .ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #061f25;
}

.tile .ghost .pip { width: 78px; height: 78px; font-size: 30px; }

.call-bar {
  flex: none;
  padding: 16px;
  display: flex;
  justify-content: center;
  gap: 13px;
  background: rgba(4, 31, 38, 0.9);
}

.round {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sand-bright);
  transition: background 130ms ease;
}

.round:hover { background: rgba(255, 255, 255, 0.18); }
.round.off { background: var(--sand); color: var(--sea-900); }
.round.hang { background: #D9483B; color: #fff; }
.round.hang:hover { background: #c23a2e; }
.round svg { width: 24px; height: 24px; }

.ring {
  position: fixed;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--sea-700);
  border: 1px solid var(--lagoon-deep);
  border-radius: var(--r-lg);
  padding: 17px 21px;
  display: none;
  align-items: center;
  gap: 15px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: rise 260ms ease both;
  max-width: calc(100vw - 32px);
}

.ring.on { display: flex; }
.ring .txt { font-size: 14.5px; }
.ring .txt b { font-family: var(--display); font-size: 16px; display: block; }
.ring .txt span { color: var(--foam-dim); font-size: 12.5px; }

.ring .accept, .ring .reject {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}

.ring .accept { background: var(--lagoon-bright); color: #04262b; }
.ring .reject { background: #D9483B; color: #fff; }
.ring svg { width: 21px; height: 21px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  background: var(--sea-700);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.on { opacity: 1; }

/* Mobile -------------------------------------------------------- */

@media (max-width: 860px) {
  .app.on { grid-template-columns: 1fr; }
  .rail { border-right: none; }
  .app.on.reading .rail { display: none; }
  .app.on:not(.reading) .main { display: none; }
  .back-btn { display: grid; }
  .stream { padding: 14px 12px 6px; }
  .msg { max-width: 88%; }
  .pane { padding: 20px 16px 34px; }
  .call-grid.three { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .gate h1 { font-size: 44px; }
}

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