/* CallStone — tema escuro "pedra" com destaque verde-água */
:root {
  --bg-0: #121110;
  --bg-1: #191817;
  --bg-2: #201f1d;
  --bg-3: #292725;
  --bg-4: #33312e;
  --bg-5: #3d3a37;
  --line: #2e2c29;
  --text: #ece8e3;
  --text-2: #aaa49d;
  --text-3: #77726c;
  --accent: #2ec4a5;
  --accent-hi: #45d6b8;
  --accent-lo: #219c83;
  --accent-soft: rgba(46, 196, 165, 0.14);
  --danger: #ec5a52;
  --danger-soft: rgba(236, 90, 82, 0.14);
  --warn: #f0b44c;
  --live: #e5484d;
  --radius: 8px;
  --titlebar-h: 32px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg-0);
  color: var(--text);
  font: 14px/1.45 var(--font);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.spacer { flex: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--bg-5); }
::-webkit-scrollbar-track { background: transparent; }

svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
svg.i .slash { stroke: var(--danger); stroke-width: 2.4; }

/* ---------------------------------------------------------- barra de título */
#titlebar {
  height: var(--titlebar-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: var(--bg-0);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  -webkit-app-region: drag;
}
body.desktop #titlebar { padding-right: 150px; }
.tb-brand { display: flex; align-items: center; gap: 8px; letter-spacing: 0.2px; }
.logo-sm svg { width: 16px; height: 16px; display: block; }
.tb-status { margin-left: auto; color: var(--warn); }
.tb-status.ok { color: var(--accent); }
.tb-update {
  -webkit-app-region: no-drag;
  border: none; border-radius: 6px;
  padding: 3px 12px;
  background: var(--accent); color: #06231d;
  font-size: 12px; font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
}
.tb-update:hover { background: var(--accent-hi); }
.tb-update.downloading { background: var(--bg-3); color: var(--text-2); cursor: default; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }

.screen { flex: 1; min-height: 0; }

/* ------------------------------------------------------------------- login */
#login {
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(46, 196, 165, 0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(46, 196, 165, 0.07), transparent 60%),
    var(--bg-1);
}
.login-card {
  width: min(400px, calc(100vw - 32px));
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.login-logo svg { width: 64px; height: 64px; margin: 0 auto 10px; display: block; }
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: 0.3px; }
.login-card p { margin: 6px 0 22px; }
.login-card form { text-align: left; display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); }
.field input, .field select, .input {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  user-select: text;
}
.field input:focus, .field select:focus, .input:focus { border-color: var(--accent); }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; }

.btn {
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  background: var(--bg-4);
  color: var(--text);
  font-weight: 600;
  transition: background 0.12s, filter 0.12s;
}
.btn:hover { background: var(--bg-5); }
.btn.primary { background: var(--accent); color: #06231d; }
.btn.primary:hover { background: var(--accent-hi); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); text-decoration: underline; }
.btn.block { width: 100%; padding: 11px; }
.btn:disabled { opacity: 0.6; cursor: default; }

/* -------------------------------------------------------------- layout app */
#app {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 240px;
  border-top: 1px solid var(--line);
}
#app.no-members { grid-template-columns: 252px minmax(0, 1fr) 0; }
#app.no-members .members { display: none; }

/* ----------------------------------------------------------------- sidebar */
#sidebar { background: var(--bg-1); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.server-header {
  height: 48px; flex: none;
  display: flex; align-items: center;
  padding: 0 16px;
  font-weight: 700; font-size: 15px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.channel-list { flex: 1; overflow-y: auto; padding: 8px 8px 12px; }
.cat {
  display: flex; align-items: center;
  margin: 16px 4px 4px 6px;
  color: var(--text-3);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.cat:first-child { margin-top: 6px; }
.cat .add { margin-left: auto; background: none; border: none; color: var(--text-3); padding: 2px; border-radius: 4px; }
.cat .add:hover { color: var(--text); }
.cat .add svg.i { width: 16px; height: 16px; }

.channel {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  margin: 1px 0;
  border-radius: 6px;
  color: var(--text-3);
  cursor: pointer;
  position: relative;
}
.channel svg.i { width: 18px; height: 18px; }
.channel .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.channel:hover { background: var(--bg-3); color: var(--text-2); }
.channel.active { background: var(--bg-4); color: var(--text); }
.channel.unread { color: var(--text); }
.channel.unread .name { font-weight: 700; }
.channel.unread::before {
  content: ""; position: absolute; left: -8px; top: 50%;
  width: 4px; height: 8px; margin-top: -4px;
  background: var(--text); border-radius: 0 4px 4px 0;
}
.channel .count { font-size: 11.5px; color: var(--text-3); background: var(--bg-0); padding: 0 6px; border-radius: 8px; }
.channel.connected { color: var(--accent); }

.voice-users { padding: 2px 0 6px 30px; }
.vuser {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--text-2);
  cursor: default;
}
.vuser:hover { background: var(--bg-3); color: var(--text); }
.vuser .avatar { width: 24px; height: 24px; font-size: 11px; }
.vuser .vname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.vuser .flags { display: flex; gap: 3px; align-items: center; color: var(--text-3); }
.vuser .flags svg.i { width: 15px; height: 15px; }
.badge-live {
  background: var(--live); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.4px;
  padding: 1px 5px; border-radius: 4px; text-transform: uppercase;
}

/* avatar com anel de fala */
.avatar {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff;
  position: relative;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.1s;
  text-transform: uppercase;
}
.avatar.speaking { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--accent); }
.avatar .dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-0);
}

/* painel "voz conectada" */
.voice-panel {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 8px 10px 12px;
  background: var(--bg-0);
  border-top: 1px solid var(--line);
}
.vp-info { flex: 1; min-width: 0; }
.vp-status { color: var(--accent); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.vp-status.connecting { color: var(--warn); }
.vp-status.bad { color: var(--danger); }
.vp-channel { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-actions { display: flex; gap: 2px; }

/* painel do usuário */
.user-panel {
  flex: none; height: 56px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
  background: var(--bg-0);
  border-top: 1px solid var(--line);
}
.up-user { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 4px; border-radius: 6px; }
.up-names { min-width: 0; }
.up-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-actions { display: flex; }

.icon-btn {
  background: none; border: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text-2);
  transition: background 0.1s, color 0.1s;
}
.icon-btn:hover { background: var(--bg-3); color: var(--text); }
.icon-btn.on { color: var(--accent); }
.icon-btn.off { color: var(--danger); }
.icon-btn.off:hover { background: var(--danger-soft); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.icon-btn.active { background: var(--accent-soft); color: var(--accent); }

/* -------------------------------------------------------------------- main */
#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.main-header {
  height: 48px; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.main-icon { color: var(--text-3); }
.main-title { font-weight: 700; font-size: 15px; }
.main-sub { color: var(--text-3); font-size: 13px; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--bg-4); }
.main-sub:empty { display: none; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* chat */
.messages { flex: 1; overflow-y: auto; padding: 16px 0 8px; user-select: text; }
.msg { display: grid; grid-template-columns: 56px 1fr; padding: 2px 16px 2px 0; }
.msg:hover { background: rgba(0, 0, 0, 0.12); }
.msg.head { margin-top: 14px; }
.msg .gutter { display: flex; justify-content: center; }
.msg .gutter .avatar { width: 38px; height: 38px; font-size: 15px; margin-top: 2px; }
.msg .gutter .time { font-size: 10.5px; color: var(--text-3); opacity: 0; padding-top: 4px; }
.msg:hover .gutter .time { opacity: 1; }
.msg .author { font-weight: 700; margin-right: 8px; }
.msg .stamp { color: var(--text-3); font-size: 11.5px; }
.msg .text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; color: #ddd8d2; }
.msg .text a { color: var(--accent-hi); text-decoration: none; }
.msg .text a:hover { text-decoration: underline; }
.day-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 16px 6px;
  color: var(--text-3); font-size: 12px; font-weight: 600;
}
.day-divider::before, .day-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.welcome { padding: 24px 16px 8px; }
.welcome .big { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-4); display: grid; place-items: center; margin-bottom: 10px; color: var(--text); }
.welcome .big svg.i { width: 34px; height: 34px; }
.welcome h2 { margin: 0 0 4px; font-size: 26px; }
.welcome p { margin: 0; color: var(--text-2); }

.composer-wrap { flex: none; padding: 0 16px 4px; }
.composer { background: var(--bg-3); border-radius: 8px; padding: 0 14px; display: flex; }
.composer textarea {
  flex: 1; resize: none; border: none; outline: none; background: transparent;
  padding: 11px 0; max-height: 200px; line-height: 1.4;
  user-select: text;
}
.composer textarea::placeholder { color: var(--text-3); }
.typing { height: 22px; font-size: 12px; color: var(--text-2); padding: 3px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing b { color: var(--text); }

/* palco da sala de voz */
.stage {
  flex: 1; min-height: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: minmax(160px, 1fr);
  align-content: center;
  overflow-y: auto;
  background: #0f0e0d;
}
.stage.focus { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 130px; grid-auto-rows: 130px; align-content: stretch; }
.stage.focus .tile { grid-row: 2; }
.stage.focus .tile.focused { grid-row: 1; grid-column: 1 / -1; }
.stage-empty { grid-column: 1 / -1; text-align: center; color: var(--text-2); align-self: center; }

.tile {
  position: relative;
  background: var(--bg-3);
  border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
  min-height: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.1s;
}
.tile.speaking { box-shadow: inset 0 0 0 3px var(--accent); }
.tile video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.tile.camera video { object-fit: cover; }
.tile.mirror video { transform: scaleX(-1); }
.tile .avatar { width: 84px; height: 84px; font-size: 32px; }
.tile .avatar.speaking { box-shadow: none; }
.tile .label {
  position: absolute; left: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  max-width: calc(100% - 16px);
}
.tile .label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .label svg.i { width: 15px; height: 15px; }
.tile .corner { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.12s; }
.tile:hover .corner { opacity: 1; }
.tile .corner button { background: rgba(0, 0, 0, 0.6); border: none; border-radius: 6px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; }
.tile .corner button:hover { background: rgba(0, 0, 0, 0.85); }
.tile .corner svg.i { width: 16px; height: 16px; }
.tile .live { position: absolute; left: 8px; top: 8px; }
.tile .waiting { color: var(--text-3); font-size: 13px; }
.tile:fullscreen { border-radius: 0; }

.stage-controls {
  flex: none;
  display: flex; justify-content: center; gap: 12px;
  padding: 12px;
  background: #0f0e0d;
}
.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: none;
  background: var(--bg-4); color: var(--text);
  display: grid; place-items: center;
  transition: background 0.12s, transform 0.08s;
}
.round-btn:hover { background: var(--bg-5); }
.round-btn:active { transform: scale(0.96); }
.round-btn svg.i { width: 22px; height: 22px; }
.round-btn.off { background: var(--danger-soft); color: var(--danger); }
.round-btn.active { background: var(--accent); color: #06231d; }
.round-btn.danger { background: var(--danger); color: #fff; }
.round-btn.danger:hover { filter: brightness(1.1); }

/* ---------------------------------------------------------------- membros */
.members { background: var(--bg-1); overflow-y: auto; padding: 8px 8px 16px; border-left: 1px solid var(--line); }
.members .cat { margin-top: 14px; }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; color: var(--text-2); }
.member:hover { background: var(--bg-3); color: var(--text); }
.member .mname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .msub { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.member .msub svg.i { width: 13px; height: 13px; }
.member > div:last-child { min-width: 0; }

/* ----------------------------------------------------------------- modais */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid; place-items: center;
  z-index: 50;
  animation: fade 0.12s ease-out;
}
.modal {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: pop 0.14s ease-out;
}
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal-head { display: flex; align-items: center; padding: 18px 18px 6px 20px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 8px 20px 16px; overflow-y: auto; display: grid; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: var(--bg-1); border-radius: 0 0 12px 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } }

.type-pick { display: grid; gap: 8px; }
.type-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 8px;
  background: var(--bg-3); border: 2px solid transparent; cursor: pointer;
}
.type-opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.type-opt b { display: block; }
.type-opt small { color: var(--text-2); }

.section-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); margin-top: 6px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.toggle-row .t-text { flex: 1; }
.toggle-row small { display: block; color: var(--text-3); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--bg-5); border-radius: 24px; transition: background 0.15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform 0.15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }

.meter { height: 8px; background: var(--bg-0); border-radius: 8px; overflow: hidden; }
.meter > div { height: 100%; width: 0; background: var(--accent); border-radius: 8px; transition: width 0.08s linear; }

/* seletor de tela */
.src-tabs { display: flex; gap: 6px; }
.src-tabs button { background: var(--bg-3); border: none; border-radius: 6px; padding: 6px 14px; color: var(--text-2); font-weight: 600; }
.src-tabs button.sel { background: var(--bg-5); color: var(--text); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 46vh; overflow-y: auto; padding: 2px; }
.src {
  background: var(--bg-3); border: 2px solid transparent; border-radius: 8px;
  padding: 6px; cursor: pointer; text-align: left; display: grid; gap: 6px;
}
.src:hover { background: var(--bg-4); }
.src.sel { border-color: var(--accent); }
.src .thumb { aspect-ratio: 16 / 9; background: #000 center / contain no-repeat; border-radius: 4px; display: grid; place-items: center; color: var(--text-3); font-size: 12px; }
.src .sname { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; }
.src .sname img { width: 16px; height: 16px; }
.src .sname span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-opts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.share-opts select { background: var(--bg-0); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.hint { font-size: 12px; color: var(--text-3); }

/* menu de contexto */
.ctx-menu {
  position: fixed; z-index: 60;
  min-width: 200px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.ctx-item { padding: 7px 10px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ctx-item:hover { background: var(--accent); color: #06231d; }
.ctx-item.danger { color: var(--danger); }
.ctx-item.danger:hover { background: var(--danger); color: #fff; }
.ctx-title { padding: 4px 10px 2px; font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; }
.ctx-slider { padding: 4px 10px 8px; }
.ctx-slider input { width: 100%; accent-color: var(--accent); }
.ctx-slider .val { font-size: 12px; color: var(--text-2); }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 6px; }

/* tooltip */
.tooltip {
  position: fixed; z-index: 70;
  background: var(--bg-0); color: var(--text);
  padding: 5px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* toasts */
.toasts { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  background: var(--bg-4); color: var(--text);
  padding: 10px 16px; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-weight: 500;
  animation: pop 0.15s ease-out;
  max-width: min(560px, calc(100vw - 32px));
}
.toast.error { background: #4a1f1d; color: #ffd9d6; }
.toast.update-toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
.toast.update-toast .btn { padding: 6px 12px; }
.toast.ok { background: #143b33; color: #c9f5ea; }

@media (max-width: 1100px) {
  #app { grid-template-columns: 240px minmax(0, 1fr) 0; }
  #app .members { display: none; }
  #app.show-members { grid-template-columns: 240px minmax(0, 1fr) 220px; }
  #app.show-members .members { display: block; }
}
