:root {
  --bg: #15202b;
  --bg-0: #0e141b;
  --panel: #1b2838;
  --panel-soft: #16202d;
  --panel-2: #243447;
  --line: rgba(199, 213, 224, .12);
  --text: #c7d5e0;
  --bright: #f3f7fa;
  --muted: #8b98a5;
  --accent: #66c0f4;
  --accent-deep: #1a9fff;
  --green: #a4d007;
  --red: #cd544b;
  --yellow: #e5b04a;
  --radius: 10px;
  --radius-sm: 8px;
  --steam-blue: #1a9fff;
  --shadow: 0 12px 40px rgba(0, 0, 0, .35);
  --font: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(26, 159, 255, .18), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(102, 192, 244, .1), transparent 55%),
    linear-gradient(180deg, #1b2838 0%, #121920 48%, #0e141b 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
}
button, a, input, select, textarea { touch-action: manipulation; font-family: inherit; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--bright); }

.view-as-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 24px;
  background: linear-gradient(90deg, #a94847, #6b2a29);
  color: #fff;
  font-size: .88rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.view-as-banner form { margin: 0; }
.view-as-banner .btn {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 2px;
}
body.is-view-as .steam-top { top: 40px; }

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ Steam top bar (SaaS density) ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */
.steam-top {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px;
  background: rgba(14, 20, 27, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.steam-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .78rem;
  padding-right: 12px;
  flex-shrink: 0;
}
.steam-logo svg,
.steam-logo img {
  display: block;
  border-radius: 6px;
}
.steam-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.steam-nav-primary {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.steam-nav-primary::-webkit-scrollbar { display: none; }
.steam-nav-admin {
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 45;
}
.steam-nav-primary > a,
.steam-nav-admin > a,
.steam-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  margin: 8px 0;
}
.steam-nav-ico {
  flex-shrink: 0;
  opacity: .9;
}
.steam-nav-primary > a.steam-nav-community {
  color: #9fd8ff;
  background: rgba(94, 184, 232, .08);
  box-shadow: inset 0 0 0 1px rgba(94, 184, 232, .22);
}
.steam-nav-primary > a.steam-nav-community:hover,
.steam-nav-primary > a.steam-nav-community.is-on {
  color: #fff;
  background: rgba(94, 184, 232, .18);
  box-shadow: inset 0 0 0 1px rgba(94, 184, 232, .45);
}
.steam-nav-community .steam-nav-ico {
  color: #66c0f4;
  filter: drop-shadow(0 0 5px rgba(102, 192, 244, .55));
  animation: steam-nav-screen-pulse 2.6s ease-in-out infinite;
}
@keyframes steam-nav-screen-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(102, 192, 244, .35)); transform: translateY(0); }
  50% { filter: drop-shadow(0 0 8px rgba(102, 192, 244, .85)); transform: translateY(-0.5px); }
}
.steam-download-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(102, 192, 244, .35);
  background: linear-gradient(135deg, rgba(102, 192, 244, .18), rgba(27, 40, 56, .85));
  color: #e8f6ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 6px 16px rgba(0, 0, 0, .25);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.steam-download-card:hover {
  border-color: rgba(102, 192, 244, .7);
  color: #fff;
  transform: translateY(-1px);
}
.steam-download-card .steam-nav-ico {
  color: #66c0f4;
}
.nav-sheet-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-sheet-panel a .steam-nav-ico {
  opacity: .85;
}
.nav-sheet-download {
  border: 1px solid rgba(102, 192, 244, .3) !important;
  background: rgba(102, 192, 244, .1) !important;
  border-radius: 10px;
  margin-top: 4px;
}
.app-dock .dock-ico {
  display: grid;
  place-items: center;
  line-height: 0;
}
.app-dock .dock-ico svg {
  display: block;
}
.steam-nav-primary > a:hover,
.steam-nav-admin > a:hover,
.steam-dd-btn:hover {
  color: var(--bright);
  background: rgba(255,255,255,.05);
}
.steam-nav-primary > a.is-on,
.steam-nav-admin > a.is-on,
.steam-dd-btn.is-on {
  color: var(--bright);
  background: rgba(102, 192, 244, .12);
  box-shadow: inset 0 0 0 1px rgba(102, 192, 244, .28);
}
.steam-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.steam-wallet {
  color: var(--green);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(164, 208, 7, .1);
  border: 1px solid rgba(164, 208, 7, .22);
}
.steam-persona {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}
.steam-persona:hover { border-color: rgba(102,192,244,.5); }
.steam-persona .avatar { border-radius: 50%; }
.steam-persona-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
}
.steam-dd { position: relative; display: flex; align-items: stretch; }
.steam-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #15202b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 80;
  padding: 8px;
}
.steam-dd-menu-right { left: auto; right: 0; }
.steam-nav-admin .steam-dd-menu {
  left: auto;
  right: 0;
}
.steam-dd-menu a,
.steam-dd-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
}
.steam-dd-menu a:hover,
.steam-dd-menu button:hover {
  background: rgba(102,192,244,.12);
  color: #fff;
}
.steam-dd-menu form { margin: 0; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #1a2030;
  flex-shrink: 0;
  display: block;
}
.avatar-sq { border-radius: 8px; }
.avatar-xs { width: 22px; height: 22px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 12px; }
.avatar-ph {
  display: inline-block;
  background: #2a475e;
  border: 1px solid rgba(255,255,255,.1);
}

/* legacy class aliases kept for account pages */
.topbar { display: none; }
.nav-desktop { display: none; }
.steam-menu-btn {
  display: none;
  border: 0;
  background: #1e2633;
  color: #c7d5e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  min-height: 36px;
  cursor: pointer;
}
.steam-wallet {
  text-decoration: none;
  color: #a4d007;
  font-weight: 700;
  font-size: .85rem;
}
.nav-burger, .app-dock, .nav-sheet { display: none; }
.who { display: none; }
.brand { display: none; }

.tile-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tile-user .avatar { width: 40px; height: 40px; margin-top: 2px; }
.rail-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
}
.rail-user .rail-name { padding: 0; }
.rail-nick { font-size: .78rem; }

.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 22px 48px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.page-head h1, h1, h2, h3 { margin: 0; color: var(--bright); font-weight: 400; }
.page-head p { margin: .3rem 0 0; }
.muted { color: var(--muted); font-size: .85rem; }

.stats {
  display: flex;
  gap: 28px;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.stats.compact { padding-top: 8px; margin-bottom: 18px; }
.finance-block h2 { font-size: 1rem; margin-bottom: 4px; }
.finance-block { margin-bottom: 8px; }
.stats b { display: block; color: var(--bright); font-size: 1.35rem; font-weight: 500; }
.stats span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

.status {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.status-online { color: var(--green); }
.status-connecting, .status-reconnecting { color: var(--yellow); }
.status-error { color: var(--red); }
.status-need_email_code,
.status-need_device_code,
.status-need_device_confirm,
.status-awaiting_retry { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--bright);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: #2f4258; color: #fff; }
.btn-sm { padding: .36rem .72rem; font-size: .78rem; }
.btn-primary {
  background: linear-gradient(180deg, #3aa6e0 0%, #1a7fb8 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-success { background: #5c7e10; }
.btn-danger { background: transparent; color: #e89494; box-shadow: inset 0 0 0 1px #6b3030; }
.btn-danger:hover { background: #6b3030; color: #fff; }

.guard-form, .guard-note, .guard-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  margin: .8rem 0;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(0,0,0,.25);
}
.guard-panel { flex-direction: column; align-items: stretch; }
.guard-form {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
.guard-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; color: var(--muted); }
.guard-form input[type="text"] {
  padding: .35rem .6rem;
  background: #0e141b;
  border: 1px solid var(--line);
  color: var(--text);
  width: 160px;
}
.account-tile .guard-slot:not(:empty),
.account-tile .tile-actions:not(:empty),
.shelf-card .guard-slot:not(:empty),
.shelf-card .shelf-actions:not(:empty) { padding: 0 12px 12px; }
.account-tile .tile-actions,
.shelf-card .shelf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-tile > a,
.shelf-card > .shelf-hit { color: inherit; display: block; }
.account-tile .guard-slot:empty,
.account-tile .tile-actions:empty,
.shelf-card .guard-slot:empty,
.shelf-card .shelf-actions:empty,
.lib-main > .guard-slot:empty { display: none; padding: 0; margin: 0; }

.game-form { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; max-width: 640px; }
.game-selector { display: flex; flex-direction: column; gap: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .3rem .15rem .6rem;
  background: #0e141b;
  border: 1px solid var(--line);
  font-size: .78rem;
}
.chip-remove { background: none; border: none; color: var(--muted); cursor: pointer; }
.selector-input { position: relative; width: 100%; }
.selector-search, .form-card input[type="text"], .form-card input[type="password"], .form-card input[type="number"] {
  width: 100%;
  padding: .55rem .65rem;
  background: #0e141b;
  border: 1px solid var(--line);
  color: var(--text);
}
.suggestions {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 0; right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #1b2838;
  border: 1px solid var(--line);
}
.suggestion { padding: .4rem .6rem; font-size: .8rem; cursor: pointer; display: flex; gap: .5rem; align-items: center; }
.suggestion img { width: 92px; height: 34px; object-fit: cover; }
.suggestion:hover { background: #2a475e; }

.form-card {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(14, 20, 27, .55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.form-card h1, .form-card h2 { margin: 0; }
.auth-card {
  width: min(420px, 100%);
  text-align: left;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.auth-brand strong {
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--bright);
}
.toast-host {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}
.toast {
  padding: 12px 14px;
  border-radius: 10px;
  background: #15202b;
  border: 1px solid var(--line);
  color: var(--bright);
  box-shadow: var(--shadow);
  font-size: .9rem;
}
.toast-error { border-color: rgba(205,84,75,.5); }
.toast-ok { border-color: rgba(164,208,7,.45); }
.pay-badge {
  display: inline-flex;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
}
.pay-badge-approved { background: rgba(164,208,7,.15); color: #c6e48b; }
.pay-badge-pending, .pay-badge-in_process, .pay-badge-authorized { background: rgba(229,176,74,.15); color: #f0c86a; }
.pay-badge-rejected, .pay-badge-cancelled, .pay-badge-refunded { background: rgba(205,84,75,.18); color: #ff9d96; }

.form-card textarea {
  background: #0c1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .7rem;
  font: inherit;
}
.form-card-wide, .form-card.form-card-wide { max-width: none; }
.avisos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.avisos-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.check-tile {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c1016;
  flex-direction: row;
}
.check-tile strong { display: block; color: var(--bright); font-size: .86rem; }
.check-tile em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); }
.hour-picked { min-height: 1.4em; }
.hour-list { margin-top: 12px; }
.avisos-extra { margin-top: 16px; }
.avisos-extra summary { cursor: pointer; color: var(--bright); font-weight: 600; }
.sim-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 960px) {
  .avisos-grid, .avisos-checks { grid-template-columns: 1fr; }
}
.split-wide { grid-template-columns: 340px 1fr; }
.qr-box {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.qr-box img { width: 240px; height: 240px; }
.alert-edit {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 10px;
}
.alert-edit textarea { width: 100%; }
.sim-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  margin: 8px 0;
}
.sim-preview img {
  width: 168px;
  border-radius: 10px;
  display: block;
  background: #0c1016;
}
.sim-preview pre {
  margin: 0;
  flex: 1;
  min-width: 180px;
  white-space: pre-wrap;
  font-size: .78rem;
  color: var(--bright);
  background: #0c1016;
  border-radius: 10px;
  padding: 8px 10px;
}
.sim-row { margin: 0 0 8px; }
.auto-start {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .72rem;
  color: var(--muted);
}
.auto-start select {
  background: #0c1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  max-width: 240px;
}
.form-card select {
  background: #0c1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .7rem;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 4px;
}
.pager-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card .checkbox { flex-direction: row; align-items: center; gap: .5rem; }
.form-actions { display: flex; gap: .6rem; }
body.page-auth .steam-nav,
body.page-auth .steam-user,
body.page-auth .app-dock { display: none !important; }
body.page-auth .stage { padding-bottom: 24px; }
.auth-card { width: min(400px, 100%); }
.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 400px);
  gap: 28px;
  align-items: center;
  min-height: calc(100dvh - 120px);
  padding: 24px 0 40px;
}
.auth-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: #fff;
}
.auth-bullets {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.auth-bullets li {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--bright);
  font-size: .95rem;
}
.auth-switch { margin: 14px 0 0; text-align: center; }
.auth-switch a { color: #66c0f4; }
.reg-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.image-legend {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  font-size: .88rem;
}
.image-legend ul { margin: 8px 0 0; padding-left: 1.1rem; }
.signup-settings { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.hours-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.65);
}
.hours-modal-card {
  width: min(420px, 100%);
  padding: 22px;
  border-radius: 12px;
  background: #1b2838;
  border: 1px solid #000;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.hours-modal-card h2 { margin: 0 0 8px; color: #fff; }
@media (max-width: 860px) {
  .auth-hero { grid-template-columns: 1fr; min-height: auto; }
  .reg-code-row { grid-template-columns: 1fr; }
}
.split { display: grid; grid-template-columns: 320px 1fr; gap: 1.2rem; }
.user-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  background: var(--panel); padding: .8rem 1rem; margin-bottom: .5rem;
  gap: 12px;
}
.badge { margin-left: .5rem; font-size: .7rem; color: var(--muted); }
.badge-approved { color: var(--green); }
.badge-pending, .badge-in_process, .badge-authorized { color: var(--yellow); }
.badge-rejected, .badge-cancelled, .badge-refunded { color: var(--red); }
.inline-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.inline-hours input {
  background: #0c1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .35rem .5rem;
  font: inherit;
  width: 120px;
}
.inline-hours input[name="note"] { width: 180px; }
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.data-table th, .data-table td {
  text-align: left;
  padding: .45rem .5rem;
  border-bottom: 1px solid var(--line);
}
.data-table th { color: var(--muted); font-weight: 500; }
.buy-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: #0c1016;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.buy-summary span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.buy-summary b { color: var(--bright); font-size: 1.05rem; }
.pix-amount { font-size: 1.05rem; color: var(--bright); }
.form-card input[type="number"], .form-card input[type="email"] {
  background: #0c1016;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .7rem;
  font: inherit;
}

ul.flashes { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash { padding: .55rem .8rem; font-size: .88rem; margin-bottom: .35rem; }
.flash-error { color: #ff9a9a; background: #3a1c1c; }
.flash-success { color: #c6e48b; background: #243014; }

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.account-tile {
  display: block;
  background: var(--panel);
  color: inherit;
  padding: 0;
  overflow: hidden;
}
.account-tile > a > img,
.account-tile .tile-cover {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: #000;
}
.account-tile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 2px;
}
.account-tile .tile-body { padding: 12px 14px 14px; }
.account-tile strong { color: var(--bright); font-weight: 500; }

.lib-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100vh - 48px);
}
.lib-rail {
  background: #0e1218;
  border-right: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
}
.lib-rail button.is-active {
  color: var(--bright);
  background: rgba(91,140,255,.12);
}
.lib-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  min-height: 86px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}
.lib-card.is-off {
  cursor: pointer;
}
.lib-card.is-off .art,
.lib-card.is-off h3,
.lib-card.is-off .lib-stats {
  filter: grayscale(1);
  opacity: .5;
}
.lib-card.is-free-off .art,
.lib-card.is-free-off h3,
.lib-card.is-free-off .lib-stats {
  filter: grayscale(.35);
  opacity: .78;
}
.lib-card.is-off .actions {
  filter: none;
  opacity: 1;
}
.pill-off {
  font-size: .72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 60;
  display: grid;
  justify-items: end;
}
.drawer[hidden] { display: none !important; }
.drawer-panel {
  width: min(520px, 100%);
  height: 100%;
  background: #10141c;
  border-left: 1px solid var(--line);
  padding: 20px;
  overflow: auto;
}
.drawer-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.set-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}
.meters { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.meter-rule { margin: 0; font-size: .78rem; color: var(--muted); }
.meter-rule b { color: var(--bright); font-weight: 600; }
.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.meter-top b { color: var(--bright); font-weight: 500; }
.meter-track {
  height: 7px;
  border-radius: 99px;
  background: #1a2230;
  overflow: hidden;
}
.meter-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 99px;
}
.set-card {
  margin: 0;
  background: #0c1016;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.set-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.set-card figcaption { padding: 8px; font-size: .75rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.set-card figcaption strong { color: var(--bright); font-weight: 600; font-size: .78rem; }
.set-card .card-status { font-style: normal; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.set-card .card-how { font-size: .68rem; line-height: 1.35; color: var(--muted); }
.set-card.is-owned { border-color: rgba(61,214,140,.45); }
.set-card.is-owned figcaption strong, .set-card.is-owned .card-status { color: var(--green); }
.set-card.is-missing { border-color: rgba(255,176,80,.35); }
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ach-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 8px;
  background: #0c1016;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ach-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.ach-card figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ach-card strong { color: var(--bright); font-size: .82rem; font-weight: 600; }
.ach-card span, .ach-card em { font-size: .72rem; color: var(--muted); font-style: normal; }
.ach-card.is-off { filter: grayscale(1); opacity: .55; }
.ach-card.is-on { border-color: rgba(61,214,140,.4); }
.stat-table { display: flex; flex-direction: column; gap: 6px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #0c1016;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: .82rem;
}
.stat-row b { color: var(--bright); }
.lib-rail a.back {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  padding: 0 16px 12px;
}
.lib-rail .rail-name {
  padding: 0;
  color: var(--bright);
  font-size: 1.05rem;
}
.lib-rail button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 16px;
  cursor: pointer;
  font-size: .86rem;
}
.lib-rail button.is-active {
  color: var(--bright);
  background: rgba(91,140,255,.12);
}
.acct-tabs { display: contents; }
.acct-tabs .tab { display: block; }
.acct-top, .acct-section-pick, .acct-uptime, .acct-autostart, .topbar-mobile-meta { display: none; }
.avatar-sm { width: 36px; height: 36px; border-radius: 2px; object-fit: cover; }
.acct-danger {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(255,107,122,.28);
  border-radius: 12px;
  background: rgba(58, 28, 28, .35);
}
.acct-danger h2 {
  margin: 0 0 6px;
  font-size: .95rem;
  color: #ff9a9a;
}
.acct-danger p { margin: 0 0 12px; }
.acct-delete-rail {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--line);
}
.acct-delete-rail .btn { width: 100%; }
.tile-delete {
  padding: 0 12px 12px;
}
.tile-delete .btn { width: 100%; }
.lib-main { padding: 18px 22px 40px; min-width: 0; }

.now-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.now-kicker {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.now-kicker.is-live { color: var(--green); }
.now-games { display: flex; flex-wrap: wrap; gap: 8px; }
.now-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0e141b;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.now-chip img { width: 92px; height: 34px; object-fit: cover; display: block; }
.now-chip em { font-style: normal; color: var(--bright); font-size: .86rem; }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.filter-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-row input[type="search"],
.filter-bar select {
  max-width: 360px;
  padding: .5rem .65rem;
  background: #0e141b;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
}
.filter-bar select { max-width: 200px; cursor: pointer; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: grid;
  place-items: center;
  z-index: 50;
}
.modal[hidden] { display: none !important; }
.modal-card {
  width: min(440px, calc(100% - 32px));
  background: #12161e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.modal-card h3 { margin-bottom: 8px; }
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.lib-stack { display: flex; flex-direction: column; gap: 10px; }
.lib-card {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  min-height: 86px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.section-title {
  margin: 22px 0 10px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lib-card .art {
  width: 184px;
  height: 86px;
  object-fit: cover;
  background: #000;
  display: block;
}
.lib-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--bright); font-weight: 500; }
.lib-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.lib-stats div { min-width: 72px; }
.lib-stats b { display: block; color: var(--bright); font-size: .95rem; font-weight: 500; }
.lib-stats span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.lib-card .actions { padding-right: 14px; display: flex; gap: 6px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.empty { color: var(--muted); padding: 24px 0; }

.popular-mini { display: flex; flex-wrap: wrap; gap: .35rem; }

@media (max-width: 860px) {
  .lib-layout { grid-template-columns: 1fr; }
  .lib-card { grid-template-columns: 1fr; }
  .lib-card .art { width: 100%; height: 110px; }
  .stats, .split { grid-template-columns: 1fr; display: grid; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .bank-kpis, .bank-charts { grid-template-columns: 1fr; }
}

.bank-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.bank-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.bank-kpis-mp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bank-kpis article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.bank-kpis span, .bank-kpis small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bank-kpis b {
  display: block;
  color: var(--bright);
  font-size: 1.45rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}
.bank-kpis small { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.bank-note { margin: 0 0 18px; }
.bank-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.bank-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 18px;
}
.bank-card h2 { font-size: 1rem; margin-bottom: 4px; }
.bank-line { width: 100%; height: 180px; display: block; }
.bank-line .axis { stroke: var(--line); }
.bank-line .ln-paid { stroke: var(--green); stroke-width: 2; }
.bank-line .ln-pending { stroke: var(--yellow); stroke-width: 2; }
.legend { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.lg-paid { background: var(--green); }
.lg-pend { background: var(--yellow); }
.status-bars { list-style: none; padding: 8px 0 0; margin: 0; }
.status-bars li { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .85rem; }
.status-bars .track { height: 8px; background: #0c1016; border-radius: 99px; overflow: hidden; }
.status-bars .track b { display: block; height: 100%; background: var(--accent); }
.status-bars em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.bank-table .num, .bank-table .money { text-align: right; font-variant-numeric: tabular-nums; }
.bank-table .ref { font-size: .75rem; word-break: break-all; max-width: 160px; }
.bank-table tbody tr:hover { background: rgba(91,140,255,.06); }
.bank-table-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.howto ol { margin: 8px 0 0; padding-left: 1.2rem; }
.howto li { margin-bottom: .55rem; }
.howto code { font-size: .82rem; word-break: break-all; }

.status-bars .track.dual { display: flex; background: #0c1016; }
.status-bars .track.dual b, .status-bars .track.dual i { display: block; height: 8px; }
.status-bars .bar-left { background: var(--green); }
.status-bars .bar-right { background: var(--yellow); }
.game-bars { list-style: none; margin: 8px 0 0; padding: 0; }
.game-bars li { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.game-bars img { width: 92px; height: 34px; object-fit: cover; border-radius: 6px; background: #000; }
.game-bars strong { display: block; font-size: .82rem; color: var(--bright); font-weight: 500; margin-bottom: 4px; }
.game-bars em { font-style: normal; color: var(--muted); }
.game-bars .track { height: 8px; background: #0c1016; border-radius: 99px; overflow: hidden; }
.game-bars .track b { display: block; height: 100%; background: var(--accent); }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.ops-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
}
.ops-card.is-on { border-color: rgba(61,214,140,.35); }
.ops-cover { height: 86px; background: #0a0d12 center/cover no-repeat; }
.ops-body { padding: 12px 14px 14px; }
.ops-who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ops-who .avatar { width: 42px; height: 42px; border-radius: 2px; object-fit: cover; }
.avatar-ph { display: inline-block; width: 42px; height: 42px; border-radius: 2px; background: #1a2130; }
.ops-who strong { display: block; color: var(--bright); font-weight: 500; }
.ops-games { display: flex; flex-direction: column; gap: 6px; min-height: 40px; margin-bottom: 10px; }
.ops-game { display: flex; gap: 8px; align-items: center; }
.ops-game img { width: 84px; height: 32px; object-fit: cover; border-radius: 4px; background: #000; }
.ops-game em { font-style: normal; font-size: .82rem; color: var(--bright); }
.ops-game small { color: var(--muted); font-variant-numeric: tabular-nums; }
.ops-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0; }
.ops-meta dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.ops-meta dd { margin: 2px 0 0; color: var(--bright); font-variant-numeric: tabular-nums; font-size: .9rem; }

.ops-charts canvas { width: 100%; height: auto; display: block; }
.hour-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chart-legend { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--muted); margin: 0 0 8px; }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 4px; }
.chart-legend .remaining { background: var(--green); }
.chart-legend .consumed { background: var(--yellow); }
@media (max-width: 860px) {
  .ops-meta { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  input, select, textarea { font-size: 16px; }
  .steam-nav { display: none !important; }
  .steam-wallet { display: inline-flex; align-items: center; margin-right: 6px; }
  .steam-persona-name { display: none; }
  .steam-menu-btn { display: inline-flex; align-items: center; }
  .steam-dd-user { display: none; }
  .steam-download-card {
    padding: 6px 9px;
    margin-right: 6px;
  }
  .steam-download-card span { display: none; }
  .steam-top {
    padding: 0 12px;
    padding-top: env(safe-area-inset-top);
    min-height: calc(52px + env(safe-area-inset-top));
  }
  .steam-user { gap: 0; }
  .stage {
    padding: 14px 14px calc(88px + env(safe-area-inset-bottom));
  }
  body.has-app-nav .app-dock {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: linear-gradient(180deg, #1b2838, #171a21);
    border-top: 1px solid #000;
    padding: 6px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .app-dock a, .app-dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #8f98a0;
    font-size: .68rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
  }
  .app-dock a.is-on, .app-dock button.is-on {
    color: #fff;
    box-shadow: inset 0 2px 0 #66c0f4;
  }
  .nav-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,0,0,.6);
  }
  .nav-sheet[hidden] { display: none !important; }
  .nav-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1b2838;
    border-top: 1px solid #000;
    border-radius: 8px 8px 0 0;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(82vh, 640px);
    overflow: auto;
  }
  .nav-sheet-persona {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }
  .nav-sheet-persona strong { display: block; color: #fff; }
  .nav-sheet-label {
    margin: 10px 0 0;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-sheet-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 2px;
    background: rgba(0,0,0,.28);
    color: var(--bright);
    min-height: 44px;
  }
  .nav-sheet-download {
    border: 1px solid rgba(102, 192, 244, .35) !important;
    background: rgba(102, 192, 244, .12) !important;
    border-radius: 10px !important;
  }
  .stats, .lib-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
  .split, .split-wide { grid-template-columns: 1fr; }
  .buy-summary { grid-template-columns: 1fr; }
  .form-card { max-width: none; padding: 1rem; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn, .btn { min-height: 44px; }
  .user-row { flex-direction: column; }
  .inline-hours input, .inline-hours input[name="note"] { width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-row input[type="search"], .filter-bar select { max-width: none; width: 100%; }
  .filter-hint { display: none; }
  .page-head p.muted { display: none; }

  /* Conta Steam: topbar prÃÂÃÂÃÂÃÂ³pria; menu sheet continua acessÃÂÃÂÃÂÃÂ­vel */
  body.acct-focus {
    overflow-x: hidden;
  }
  body.acct-focus .steam-top,
  body.acct-focus .app-dock {
    display: none !important;
  }
  body.acct-focus .nav-sheet {
    display: block;
  }
  body.acct-focus .flashes-acct {
    margin: calc(8px + env(safe-area-inset-top)) 12px 0;
  }
  .acct-top-end {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .acct-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #1e2633;
    color: var(--bright);
    font-size: 1.15rem;
    cursor: pointer;
  }
  .dock-ico {
    font-size: 1rem;
    line-height: 1;
    opacity: .9;
  }
  .nav-sheet-panel a.is-on {
    outline: 1px solid rgba(102, 192, 244, .45);
    background: rgba(102, 192, 244, .12);
  }
  .lib-layout {
    min-height: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    grid-template-columns: 1fr;
  }
  .acct-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 25;
    padding: calc(10px + env(safe-area-inset-top)) 12px 12px;
    background: rgba(9, 11, 16, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .acct-top-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }
  .acct-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1e2633;
    color: var(--bright);
    font-size: 1.1rem;
    text-decoration: none;
  }
  .acct-top-who {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .acct-top-text {
    min-width: 0;
  }
  .acct-top-text strong,
  .acct-top-text span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .acct-top-text strong {
    color: var(--bright);
    font-weight: 600;
    font-size: .95rem;
  }
  .acct-status {
    font-size: .68rem;
    max-width: 72px;
    text-align: right;
  }
  .acct-section-pick {
    display: block;
    margin: 0;
  }
  .acct-section-pick select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #12161e;
    color: var(--bright);
    padding: 0 12px;
  }
  .acct-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  .acct-actions:empty { display: none; }
  .acct-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .lib-rail { display: none !important; }
  .now-bar-desk { display: none !important; }
  .acct-autostart { display: flex; margin-top: 8px; }
  .lib-main {
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .lib-card .actions {
    padding: 0 12px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .lib-card .actions .btn { width: 100%; }
  .lib-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 8px;
  }
  .lib-card h3 { padding: 0 12px; }
  .suggestion { flex-wrap: wrap; }
  .suggestion img { width: 72px; height: 27px; }
  .chips { gap: 6px; }
  .chip { max-width: 100%; }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ach-grid { grid-template-columns: 1fr; }
  .drawer-panel {
    width: 100%;
    border-left: 0;
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
  }
  .modal-card { width: min(100%, calc(100vw - 24px)); }
  .pager-btns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .pager-btns .btn { width: 100%; }
  .qr-box img, #pix-qr { max-width: 100%; height: auto; }
  .bank-kpis, .bank-kpis-mp, .bank-charts { grid-template-columns: 1fr; }
  .status-bars li, .game-bars li { grid-template-columns: 1fr; }
  .ops-grid, .account-grid { grid-template-columns: 1fr; }
  .hour-targets { grid-template-columns: 1fr; }
  .auth-wrap { min-height: calc(100dvh - 80px); padding: 16px; }
  .pager { flex-direction: column; align-items: stretch; }
  .data-table { font-size: .78rem; }
  .bank-table .ref { max-width: none; }
  .account-tile .tile-actions { width: 100%; }
  .account-tile .tile-actions .btn { flex: 1; }
}

@media (min-width: 981px) {
  .nav-sheet { display: none !important; }
  .steam-menu-btn { display: none !important; }
  .acct-menu-btn { display: none !important; }
  .acct-top { display: none !important; }
}

.farm-toggles, .farm-board { margin-bottom: 16px; }
.farm-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
}
.farm-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.farm-hero h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--bright);
  letter-spacing: 0;
  text-transform: none;
}
.farm-hero .muted { margin: 0; max-width: 52ch; }
.farm-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
}
.farm-pill.is-live {
  color: #9ef0c4;
  background: rgba(61,214,140,.14);
  border-color: rgba(61,214,140,.4);
}
.farm-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.farm-parallel-row {
  margin-top: 10px;
}
.farm-parallel-row select {
  background: var(--card, #121a2b);
  color: inherit;
  border: 1px solid var(--border, #2a3650);
  border-radius: 8px;
  padding: 4px 8px;
}
.farm-done-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.farm-find { margin: 8px 0 22px; }
.farm-kpis { margin-bottom: 18px; }
.opp-rank {
  margin: 6px 0 0;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lib-card.is-top {
  border-color: rgba(102,192,244,.4);
}
.lib-card.is-top .opp-rank { color: var(--accent, #66c0f4); }
.pct-line {
  margin-top: 8px;
  min-width: 140px;
}
.pct-line-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .72rem;
  color: var(--muted);
}
.pct-line-top b { color: var(--bright); font-weight: 650; }
.pct-track {
  height: 6px;
  border-radius: 99px;
  background: #1a2230;
  overflow: hidden;
  margin-top: 4px;
}
.pct-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 99px;
}
.pct-line em {
  display: block;
  font-size: .68rem;
  color: var(--muted);
  margin-top: 3px;
  font-style: normal;
}
.pct-line.is-empty .pct-track { opacity: .35; }
.ach-card .pct-line, .set-card .pct-line { margin-top: 6px; }
.key-redeem {
  max-width: 520px;
  margin-bottom: 24px;
}
.key-redeem .filter-bar { margin-top: 10px; }
.inv-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 4px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  font-size: .78rem;
  color: var(--muted);
}
.inv-chip em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  color: var(--bright);
}
.inv-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.metrics-hero {
  margin-bottom: 18px;
}
.metric-last,
.dash-spotlight {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.dash-spotlight img,
.metric-last img {
  width: 140px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
}
.dash-spotlight strong,
.metric-last strong { display: block; margin: 2px 0 4px; color: var(--bright); font-size: 1.05rem; }
.acct-dash { display: flex; flex-direction: column; gap: 16px; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-head h2 { margin: 0; font-size: 1.25rem; color: var(--bright); font-weight: 560; }
.dash-empty {
  padding: 28px 18px;
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 12px;
  text-align: center;
}
.dash-empty h3 { margin: 0 0 8px; color: var(--bright); }
.dash-empty p { margin: 0 0 14px; color: var(--muted); }
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.dash-kpis article {
  padding: 14px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
}
.dash-kpis b {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bright);
  letter-spacing: -.02em;
}
.dash-kpis span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dash-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dash-table-card {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  overflow: hidden;
}
.dash-table-wide { grid-column: 1 / -1; }
.dash-table-card > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-table-card h3 { margin: 0; font-size: .95rem; color: var(--bright); font-weight: 560; }
.table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.dash-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.dash-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.dash-table tbody tr { cursor: pointer; }
.dash-table tbody tr:hover { background: rgba(102,192,244,.06); }
.dash-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--bright); }
.dash-table .game-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}
.dash-table .game-cell img {
  width: 54px;
  height: 25px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
}
.dash-table .empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 22px 12px;
  cursor: default;
}
.dash-empty .btn { margin-top: 4px; }
@media (max-width: 1100px) {
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dash-tables { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-spotlight, .metric-last { grid-template-columns: 1fr; }
  .dash-spotlight img, .metric-last img { width: 100%; height: 100px; }
}

.inv-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 4px 2px 16px;
  max-height: min(70vh, 640px);
  overflow: auto;
}
.inv-item-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.inv-item-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.inv-item-card strong {
  display: block;
  font-size: .88rem;
  color: var(--bright);
  margin-bottom: 2px;
}

/* Library toolbar + Steam shelf cards */
.lib-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.lib-toolbar h1 {
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: .02em;
  margin: 0;
}
.lib-toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.lib-count {
  color: var(--muted);
  font-size: .85rem;
}
.lib-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lib-context {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .9rem;
}
.lib-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.lib-stat {
  min-width: 96px;
  padding: 10px 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 2px;
}
.lib-stat b {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.lib-stat span {
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.steam-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.shelf-card {
  background: #0e1621;
  border: 1px solid #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.shelf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #66c0f4, 0 10px 24px rgba(0,0,0,.45);
}
.shelf-art {
  position: relative;
  aspect-ratio: 460 / 215;
  background: #000;
  overflow: hidden;
}
.shelf-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shelf-art-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88));
  pointer-events: none;
}
.shelf-persona {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.shelf-persona .avatar {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.shelf-persona strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-shadow: 0 1px 2px #000;
  line-height: 1.2;
}
.shelf-persona em {
  display: block;
  font-style: normal;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-shadow: 0 1px 2px #000;
}
.shelf-meta {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #16202d, #121a24);
}
.shelf-user {
  color: #c7d5e0;
  font-size: .82rem;
  font-weight: 600;
}
.shelf-owner {
  color: var(--muted);
  font-size: .72rem;
}
.shelf-games {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-delete {
  padding: 0 12px 12px;
  margin: 0;
}
.shelf-delete .btn { width: 100%; }
.shelf-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  background: rgba(0,0,0,.22);
  border: 1px dashed rgba(255,255,255,.12);
}
.shelf-empty p { color: var(--muted); margin: 0 0 14px; }

.head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.client-filter select {
  min-width: 160px;
  background: #101822;
  color: var(--bright);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  padding: 8px 10px;
}
.steam-head h1 { font-weight: 300; letter-spacing: .02em; }
.steam-stats {
  background: linear-gradient(180deg, rgba(42,71,94,.55), rgba(27,40,56,.2));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 2px;
  padding: 14px 18px;
}
.section-title {
  margin: 28px 0 12px;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--bright);
}
.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.steam-profile { display: grid; gap: 18px; }
.steam-profile-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(120deg, rgba(102,192,244,.12), transparent 40%),
    linear-gradient(135deg, #2a475e 0%, #1b2838 70%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
}
.steam-profile-avatars { display: flex; gap: 6px; flex-wrap: wrap; }
.steam-profile-avatars .avatar {
  border: 1px solid rgba(255,255,255,.15);
}
.profile-hours { margin: .5rem 0 0; color: var(--accent); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-bots { display: grid; gap: 8px; }
.profile-bot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
}
.profile-bot:hover { border-color: var(--accent); color: var(--bright); }
.profile-bot .avatar { width: 42px; height: 42px; }
.profile-bot em { display: block; font-style: normal; font-size: .8rem; }

@media (max-width: 980px) {
  .view-as-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    position: relative;
  }
  body.is-view-as .steam-top { top: 0; }
  .lib-toolbar-right, .client-filter, .client-filter select { width: 100%; }
  .shelf-card .shelf-actions { width: 100%; }
  .shelf-card .shelf-actions .btn { flex: 1; }
}

/* ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ SaaS admin + modern library controls ÃÂÃÂ¢ÃÂÃÂÃÂÃÂÃÂÃÂ¢ÃÂÃÂÃÂÃÂ */
.saas-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.saas-kicker {
  margin: 0 0 4px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.saas-hero h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.saas-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.alert-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.alert-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: inherit;
}
.alert-chip > a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
}
.alert-chip:hover { color: var(--bright); }
.alert-chip strong { font-size: .9rem; }
.alert-chip span { color: var(--muted); font-size: .8rem; }
.alert-action { margin: 0; }
.alert-critical { border-color: rgba(205,84,75,.55); background: rgba(205,84,75,.12); }
.alert-warn { border-color: rgba(229,176,74,.45); background: rgba(229,176,74,.1); }
.alert-info { border-color: rgba(102,192,244,.35); background: rgba(102,192,244,.08); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(36,52,71,.9), rgba(22,32,45,.92));
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  min-width: 0;
}
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.kpi-card b {
  display: block;
  margin-top: 6px;
  color: var(--bright);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
}
.kpi-card .ok { color: var(--green); }
.kpi-card .warn { color: var(--yellow); }
.kpi-money b { color: var(--green); }

.saas-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.saas-panel {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(14, 20, 27, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.saas-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.saas-panel-head h2 {
  font-size: 1rem;
  font-weight: 700;
}
.saas-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.saas-tools input[type="search"],
.saas-tools select,
.lib-controls input[type="search"],
.client-filter select {
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line);
  color: var(--bright);
  border-radius: 8px;
  padding: 9px 12px;
  min-height: 40px;
}
.saas-tools input[type="search"] { min-width: 180px; }
.spark-wrap { width: 100%; overflow: hidden; border-radius: 8px; background: rgba(0,0,0,.2); }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  color: inherit;
}
.quick-link:hover {
  border-color: rgba(102,192,244,.45);
  background: rgba(102,192,244,.08);
  color: var(--bright);
}
.quick-link strong { font-size: .9rem; }
.quick-link span { color: var(--muted); font-size: .78rem; }

.guard-list, .pay-feed { display: grid; gap: 8px; }
.guard-item, .pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,.22);
  border: 1px solid var(--line);
  color: inherit;
}
.guard-item:hover { border-color: var(--accent); color: var(--bright); }
.guard-item strong, .pay-row strong { display: block; }
.pay-amt { display: flex; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.pill-critical { background: rgba(205,84,75,.2); color: #ff9d96; }
.pill-warn { background: rgba(229,176,74,.18); color: #f0c86a; }
.pill-ok { background: rgba(164,208,7,.15); color: #c6e48b; }
.pill-idle { background: rgba(255,255,255,.06); color: var(--muted); }
.saas-table .is-warn { color: var(--yellow); font-weight: 700; }
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.credit-mini {
  display: inline-flex;
  gap: 4px;
  margin: 0;
}
.credit-mini input {
  width: 64px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.3);
  color: var(--bright);
}

.lib-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.lib-controls input[type="search"] {
  flex: 1;
  min-width: 200px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip:hover { color: var(--bright); border-color: rgba(102,192,244,.35); }
.filter-chip.is-on {
  color: #fff;
  background: rgba(102,192,244,.18);
  border-color: rgba(102,192,244,.45);
}
.filter-chip:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.shelf-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.lib-stat, .steam-stats, .saas-panel, .kpi-card { border-radius: var(--radius); }
.bank-kpis article, .bank-card { border-radius: var(--radius); }

.saas-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}
.saas-panel input[type="text"],
.saas-panel input[type="password"],
.saas-panel input[type="number"] {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--bright);
}

.welcome-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(61, 214, 140, .35);
  background: rgba(61, 214, 140, .08);
}
.guard-loading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.users-table-panel { margin-top: 8px; }
.users-table .num { text-align: right; white-space: nowrap; }
.users-table .is-live { color: #3dd68c; }
.user-name-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.user-name-cell a { color: var(--bright); text-decoration: none; }
.user-name-cell a:hover { color: #66c0f4; }
.users-table .user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.profile-modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  width: min(520px, calc(100vw - 24px));
  max-height: min(92vh, 760px);
}
.profile-modal::backdrop {
  background: rgba(6, 10, 16, .72);
  backdrop-filter: blur(6px);
}
.profile-modal-card {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 760px);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #1f2a38 0%, #171d27 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.profile-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.profile-modal-head h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}
.profile-modal-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #c7d5e0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.profile-modal-x:hover { background: rgba(255,255,255,.12); color: #fff; }
.profile-modal-body {
  padding: 16px 20px 8px;
  overflow: auto;
}
.avatar-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
}
.avatar-picker img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(102,192,244,.35);
  background: #0e141b;
  flex-shrink: 0;
}
.avatar-picker-actions { min-width: 0; }
.avatar-file-btn { cursor: pointer; display: inline-flex; }
.profile-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.profile-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .84rem;
  color: var(--muted);
}
.profile-modal-grid .span-2 { grid-column: 1 / -1; }
.profile-modal-grid input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,12,18,.75);
  color: var(--bright);
  padding: 10px 12px;
}
.profile-modal-grid input:focus {
  outline: none;
  border-color: rgba(102,192,244,.55);
  box-shadow: 0 0 0 3px rgba(102,192,244,.15);
}
.profile-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}
@media (max-width: 560px) {
  .profile-modal-grid { grid-template-columns: 1fr; }
  .avatar-picker { flex-direction: column; text-align: center; }
}
.user-dialog {
  border: 1px solid #000;
  border-radius: 12px;
  padding: 0;
  background: #1b2838;
  color: var(--text);
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.profile-edit-avatar {
  display: flex;
  justify-content: center;
}
.profile-edit-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.user-dialog::backdrop { background: rgba(0,0,0,.6); }
.user-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.user-dialog-form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.user-dialog-form h2 { margin: 0; font-size: 1.15rem; color: #fff; }
@media (max-width: 860px) {
  .users-table th:nth-child(n+3):nth-child(-n+5),
  .users-table td:nth-child(n+3):nth-child(-n+5) {
    /* keep all columns; allow horizontal scroll via table-wrap */
  }
  .users-table .user-row-actions { justify-content: flex-start; }
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .saas-split { grid-template-columns: 1fr; }
}
.steam-pulse {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  max-width: 420px;
}
.steam-pulse strong { display: block; color: var(--bright); font-size: .98rem; }
.steam-pulse .muted { display: block; margin-top: 2px; font-size: .8rem; }
.steam-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #5c6b80;
  box-shadow: 0 0 0 4px rgba(92,107,128,.18);
}
.steam-pulse-dot.is-online, .steam-pulse.is-online .steam-pulse-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61,214,140,.2);
}
.steam-pulse-dot.is-delayed, .steam-pulse.is-delayed .steam-pulse-dot {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(230,162,60,.2);
}
.steam-pulse-dot.is-offline, .steam-pulse.is-offline .steam-pulse-dot {
  background: var(--red, #e06c75);
  box-shadow: 0 0 0 4px rgba(224,108,117,.2);
}
.steam-pulse.is-online { border-color: rgba(61,214,140,.35); }
.steam-pulse.is-delayed { border-color: rgba(230,162,60,.4); }
.steam-pulse.is-offline { border-color: rgba(224,108,117,.45); }
.steam-now { margin-bottom: 22px; }
.steam-now-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 14px;
}
.steam-now-hero strong { display: block; font-size: 1.15rem; color: var(--bright); }
.steam-now-hero p { margin: 4px 0 0; }
.steam-now-hero.is-online { border-color: rgba(61,214,140,.35); }
.steam-now-hero.is-delayed { border-color: rgba(230,162,60,.4); }
.steam-now-hero.is-offline { border-color: rgba(224,108,117,.45); }
.steam-svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.steam-svc {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.steam-svc header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.steam-svc header strong { flex: 1; color: var(--bright); font-size: .92rem; }
.steam-svc header em { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.steam-svc p { margin: 0 0 6px; font-size: .82rem; color: var(--bright); }
.steam-svc.is-online { border-color: rgba(61,214,140,.3); }
.steam-svc.is-delayed { border-color: rgba(230,162,60,.35); }
.steam-svc.is-offline { border-color: rgba(224,108,117,.4); }
.steam-svc.is-unknown { opacity: .75; }
.steam-charts { margin-bottom: 16px; }
.steam-src-note { margin: 0 0 32px; font-size: .8rem; }
.steam-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--bright);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
}
.steam-chip .steam-pulse-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(92,107,128,.2); }
.steam-chip.is-online { border-color: rgba(61,214,140,.4); }
.steam-chip.is-delayed { border-color: rgba(230,162,60,.45); }
.steam-chip.is-offline { border-color: rgba(224,108,117,.5); }
.steam-dash-dlg {
  width: min(720px, calc(100vw - 20px));
  max-height: min(92vh, 940px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: #121922;
  color: #c7d5e0;
  font-family: inherit;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.steam-dash-dlg::backdrop { background: rgba(6, 10, 14, .62); }
.steam-dash-dlg .ss-dash {
  padding: 18px 20px 22px;
  overflow: auto;
  max-height: min(92vh, 940px);
}
.ss-dash.is-page { padding-bottom: 8px; }
.ss-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.ss-head-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.ss-kicker {
  margin: 0 0 4px;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ss-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.ss-hero strong { display: block; font-size: 1.2rem; color: #fff; line-height: 1.2; }
.ss-hero p { margin: 3px 0 0; }
.ss-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 8px;
  margin-bottom: 12px;
}
.ss-block[hidden] { display: none; }
.ss-block h2 {
  margin: 0 0 4px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ss-list { list-style: none; margin: 0; padding: 0; }
.ss-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 4.6rem 4.4rem;
  column-gap: 10px;
  align-items: center;
  min-height: 36px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ss-row:first-child { border-top: 0; }
.ss-row .steam-pulse-dot {
  width: 8px;
  height: 8px;
  justify-self: center;
}
.ss-row strong {
  font-size: .9rem;
  color: var(--bright);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-row .ss-ms {
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}
.ss-row em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.ss-row.is-online em { color: var(--green); }
.ss-row.is-delayed em { color: var(--yellow); }
.ss-row.is-offline em { color: var(--red); }
.ss-mm {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}
.ss-mm:empty { display: none; }
.ss-mm div {
  background: rgba(0,0,0,.22);
  border-radius: 10px;
  padding: 8px 10px;
}
.ss-mm b { display: block; color: #fff; font-size: .92rem; }
.ss-mm span { color: var(--muted); font-size: .7rem; }
.ss-hint {
  margin: 8px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(102, 192, 244, .08);
  border: 1px solid rgba(102, 192, 244, .22);
}
.ss-hint[hidden] { display: none; }
.ss-hint p { margin: 0 0 8px; font-size: .82rem; color: var(--bright); line-height: 1.4; }
.ss-hint p:last-child { margin-bottom: 0; }
.ss-hint a { color: #66c0f4; }
.ss-key {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}
.ss-key input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.ss-dc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 6px;
}
.ss-dc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,.18);
}
.ss-dc-item strong {
  font-size: .8rem;
  color: var(--bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-dc-item span { font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.ss-dc-item.is-online { border-color: rgba(61,214,140,.28); }
.ss-dc-item.is-online span { color: var(--green); }
.ss-dc-item.is-delayed { border-color: rgba(230,162,60,.32); }
.ss-dc-item.is-delayed span { color: var(--yellow); }
.ss-dc-item.is-offline { border-color: rgba(224,108,117,.35); }
.ss-dc-item.is-offline span { color: var(--red); }
@media (max-width: 720px) {
  .steam-pulse { max-width: none; }
  .ss-mm { grid-template-columns: 1fr 1fr; }
  .ss-row { grid-template-columns: 10px minmax(0, 1fr) 3.8rem; }
  .ss-row .ss-ms { display: none; }
  .steam-chip { padding: 6px 9px; margin-right: 6px; }
  .ss-key { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .steam-dash-dlg { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 12px; }
}
body.page-community .stage {
  padding: 0;
  max-width: none;
  margin: 0;
  width: 100%;
}

/* WhatsApp hub (web + Electron) */
.comm-rail-wa {
  color: #25d366;
}
.comm-rail-wa.is-on {
  background: rgba(37, 211, 102, 0.18);
  color: #3dd68c;
}
.comm-wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
  font-size: .68rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-wa-msg-meta time {
  font-variant-numeric: tabular-nums;
}
.comm-wa-ticks {
  letter-spacing: -0.12em;
  font-size: .78rem;
  line-height: 1;
  color: #8b95a5;
}
.comm-wa-ticks.is-delivered {
  color: #8b95a5;
}
.comm-wa-ticks.is-read {
  color: #53bdeb;
}
.comm-msg.is-mine .comm-wa-msg-meta {
  color: rgba(232, 237, 245, .72);
}
.comm-wa-status-panel {
  padding: 0 0 12px;
}
.comm-wa-status-actions {
  display: flex;
  gap: 6px;
  padding: 4px 10px 8px;
  flex-wrap: wrap;
}
.comm-wa-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comm-wa-status-metrics {
  font-style: normal;
  font-size: .68rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-wa-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 2px 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.comm-wa-ico {
  display: block;
}
.comm.is-wa-hub {
  --comm-side: min(320px, 34vw);
}
.comm-wa-hub-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.comm-wa-hub-panel > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.comm-wa-hub-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 4px;
  color: #e8edf5;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .7rem;
  flex-shrink: 0;
}
.comm-wa-hub-brand strong {
  font-weight: 700;
}
.comm-wa-hub-brand-ico {
  color: #25d366;
  display: grid;
  place-items: center;
}
.comm-wa-hub-brand-ico svg {
  width: 14px;
  height: 14px;
}
.comm-wa-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 6px;
  padding: 6px 8px 8px;
  flex-shrink: 0;
}
.comm-wa-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #c9d2e0;
  font-size: .62rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  line-height: 1.15;
  text-align: center;
}
.comm-wa-action span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-wa-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.comm-wa-action.is-accent {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  border-color: rgba(167, 139, 250, .45);
  color: #f5f3ff;
  box-shadow: 0 6px 14px rgba(91, 33, 182, .22);
}
.comm-wa-slots {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.comm-wa-conn-card {
  margin: 2px 8px 2px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.18));
  overflow: hidden;
}
.comm-wa-conn-card.is-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comm-wa-conn-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  min-width: 0;
}
.comm-wa-conn-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.comm-wa-conn-av,
.comm-wa-conn-av-ph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #1a2130;
}
.comm-wa-conn-av-ph {
  display: grid;
  place-items: center;
  color: #7a8799;
  font-size: .7rem;
  font-weight: 700;
}
.comm-wa-conn-id {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.comm-wa-conn-id strong,
.comm-wa-conn-id em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-wa-conn-id strong {
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  color: #f3f6fb;
}
.comm-wa-conn-id em {
  font-style: normal;
  font-size: .66rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-wa-conn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  max-width: 42%;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fca5a5;
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .28);
}
.comm-wa-conn-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-wa-conn-badge.is-on {
  color: #86efac;
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .35);
}
.comm-wa-conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.comm-wa-conn-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}
.comm-wa-conn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.22);
  color: #e8edf5;
  border-radius: 9px;
  padding: 7px 6px;
  font-size: .68rem;
  font-weight: 600;
  cursor: pointer;
}
.comm-wa-conn-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-wa-conn-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.comm-wa-conn-btn.is-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, .35);
}
.comm-wa-conn-btn.is-accent {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  border-color: transparent;
}
.comm-wa-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 4px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--comm-muted, #9aa4b2);
  flex-shrink: 0;
}
.comm-wa-list-head[hidden] { display: none !important; }
.comm-wa-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.comm-wa-row-top strong {
  min-width: 0;
  flex: 1;
}
.comm-wa-row-top time {
  flex-shrink: 0;
  font-size: .64rem;
  color: var(--comm-muted, #9aa4b2);
  font-variant-numeric: tabular-nums;
}
.comm-wa-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.comm-wa-row-bottom .comm-wa-row-sub {
  min-width: 0;
  flex: 1;
}
.comm-wa-unread {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}
.comm-wa-chat-item.is-orphan .comm-wa-row-sub {
  color: #fbbf24;
}
.comm-wa-mais {
  max-width: min(440px, 92vw);
}
.comm-wa-mais-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.comm-wa-mais-section h3 {
  margin: 0;
  font-size: .85rem;
}
.comm-wa-mais-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.comm-wa-mais-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a2130;
}
.comm-wa-mais-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.comm-wa-mais-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comm-wa-mais-photo-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #9aa4b2;
}
.comm-wa-mais-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comm-wa-mais-id strong,
.comm-wa-mais-id em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-wa-mais-id em {
  font-style: normal;
  font-size: .78rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-wa-group-sidehead.is-orphan {
  border-color: rgba(251, 191, 36, .35);
  background: rgba(251, 191, 36, .08);
}
.comm-wa-toolbar {
  display: flex;
  gap: 6px;
  padding: 4px 10px 6px;
  flex-wrap: wrap;
}
.comm-wa-toolbar .btn {
  font-size: .72rem;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comm-wa-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--comm-muted, #9aa4b2);
  border-radius: 0;
  padding: 8px 4px 7px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
}
.comm-wa-tab.is-on {
  color: #c4b5fd;
  border-bottom-color: #8b5cf6;
  background: transparent;
}
.comm-wa-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  padding: 0 8px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}
.comm-wa-search-wrap[hidden] { display: none !important; }
.comm-wa-search-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--comm-muted, #9aa4b2);
  flex-shrink: 0;
}
.comm-wa-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--comm-text);
  font-size: .78rem;
  outline: none;
}
.comm-wa-search::placeholder { color: var(--comm-muted, #9aa4b2); }
.comm-wa-subbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 8px;
}
.comm-wa-subbar[hidden] { display: none !important; }
.comm-wa-arch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--comm-muted, #9aa4b2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .72rem;
  cursor: pointer;
}
.comm-wa-arch-toggle svg { width: 13px; height: 13px; }
.comm-wa-arch-toggle em {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 1px 6px;
}
.comm-wa-arch-toggle.is-on {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.1);
}
.comm-wa-chat-item {
  display: block;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.comm-wa-chat-item .comm-wa-row {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.comm-wa-row-acts {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 2;
}
.comm-wa-chat-item:hover .comm-wa-row-acts,
.comm-wa-chat-item:focus-within .comm-wa-row-acts,
.comm-wa-chat-item.is-orphan .comm-wa-row-acts {
  opacity: 1;
  pointer-events: auto;
}
.comm-wa-row-act {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(18, 21, 28, .92);
  color: var(--comm-muted, #9aa4b2);
  cursor: pointer;
}
.comm-wa-row-act:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--comm-text);
}
.comm-wa-row-act.is-danger {
  color: #fca5a5;
}
.comm-wa-row-act svg { width: 13px; height: 13px; }
.comm-wa-row-archive {
  display: none;
}
.comm-wa-empty {
  padding: 8px 12px;
  font-size: .8rem;
}
.comm-wa-chat-list {
  list-style: none;
  margin: 0;
  padding: 0 0 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.comm-wa-chat-list > li {
  margin: 0;
  max-width: 100%;
}
.comm-wa-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 9px 10px;
  cursor: pointer;
  border-radius: 0;
  box-sizing: border-box;
}
.comm-wa-row:hover {
  background: rgba(255,255,255,.04);
}
.comm-wa-row.is-on {
  background: rgba(37, 211, 102, .12);
}
.comm-wa-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a2130;
}
.comm-wa-av-ph {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #1a2130;
  color: #7a8799;
  font-size: .78rem;
  font-weight: 600;
}
.comm-msg .comm-wa-av,
.comm-msg .comm-wa-av-ph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.comm-wa-member {
  align-items: center;
}
.comm-wa-member .comm-wa-av,
.comm-wa-member .comm-wa-av-ph {
  width: 32px;
  height: 32px;
}
.comm-wa-member-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.comm-wa-member-meta strong,
.comm-wa-member-meta em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-wa-row-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comm-wa-row-meta strong {
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-wa-row-meta em {
  font-style: normal;
  font-size: .7rem;
  color: var(--comm-muted, #9aa4b2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-wa-row-push {
  font-size: .68rem !important;
  color: #7d8796 !important;
  opacity: .9;
}
.comm-wa-from-phone {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: #8b95a5;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.comm-wa-media-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(280px, 100%);
  min-width: min(220px, 100%);
  max-width: 280px;
  box-sizing: border-box;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.22);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.comm-wa-media-card.is-loading {
  opacity: .75;
  cursor: wait;
}
.comm-wa-media-card.is-audio.is-ready {
  cursor: default;
  flex-direction: column;
  align-items: stretch;
}
.comm-wa-media-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
}
.comm-wa-media-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, .15);
  color: #25d366;
  flex: 0 0 auto;
  font-size: .85rem;
}
.comm-wa-media-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.comm-wa-media-card-text strong {
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-wa-media-card-text em,
.comm-wa-media-hint {
  font-style: normal;
  font-size: .68rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-wa-audio {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 100%);
  min-width: min(240px, 100%);
  margin: 6px 0 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
  box-sizing: border-box;
}
.comm-wa-audio audio { display: none; }
.comm-wa-audio-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #0b141a;
  cursor: pointer;
}
.comm-wa-audio-play svg { width: 18px; height: 18px; }
.comm-msg.is-mine .comm-wa-audio-play {
  background: #d1f4cc;
  color: #005c4b;
}
.comm-wa-audio-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comm-wa-audio-seek {
  width: 100%;
  height: 4px;
  margin: 0;
  accent-color: #25d366;
  cursor: pointer;
}
.comm-msg.is-mine .comm-wa-audio-seek { accent-color: #b6f0b0; }
.comm-wa-audio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.comm-wa-audio-time {
  font-size: .68rem;
  color: var(--comm-muted, #9aa4b2);
  font-variant-numeric: tabular-nums;
}
.comm-wa-audio-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.comm-wa-audio-speed,
.comm-wa-audio-dl {
  border: 0;
  background: rgba(255,255,255,.08);
  color: inherit;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 24px;
}
.comm-wa-audio-dl svg { width: 14px; height: 14px; }
.comm-wa-media-shell {
  position: relative;
  display: inline-block;
  max-width: min(300px, 100%);
  margin: 6px 0;
}
.comm-wa-media-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.comm-wa-media-expand svg { width: 14px; height: 14px; }
.comm-wa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}
.comm-wa-lightbox[hidden] { display: none !important; }
.comm-wa-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.82);
  cursor: pointer;
}
.comm-wa-lightbox-stage {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  display: grid;
  place-items: center;
}
.comm-wa-lightbox-body img,
.comm-wa-lightbox-body video {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  border-radius: 10px;
  background: #000;
}
.comm-wa-lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.comm-rail-wa-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.comm-wa-group-sidehead {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.comm-wa-group-sidehead strong {
  font-size: 0.95rem;
}
.comm-wa-group-sideacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comm-wa-ge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.comm-wa-ge-row input {
  flex: 1;
  min-width: 160px;
}
.comm-wa-ge-members {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.comm-wa-ge-member {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.comm-wa-ge-member-acts {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.comm-wa-ge-danger {
  display: grid;
  gap: 10px;
  max-width: 360px;
}
.comm-wa-group-editor .comm-live-wiz-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .comm-wa-group-editor .comm-live-wiz-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.comm-wa-peer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 20px;
  text-align: center;
}
.comm-wa-peer-av {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--comm-bg3);
  display: grid;
  place-items: center;
}
.comm-wa-peer-photo,
.comm-wa-peer-photo-ph {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.comm-wa-peer-photo-ph {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  background: #1a2330;
  color: #c9d4e3;
}
.comm-wa-peer-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.comm-wa-peer-push {
  font-style: normal;
  font-size: .78rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-wa-peer-phone {
  margin: 0;
  font-size: .84rem;
  color: #c5cedb;
}
.comm-wa-peer-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  align-self: stretch;
  margin: 12px 0 4px;
}
.comm-wa-peer-h-row .comm-wa-peer-h {
  margin: 0;
  flex: 1;
}
.comm-wa-peer-verify {
  flex-shrink: 0;
  font-size: .72rem;
  padding: 4px 10px;
}
.comm-wa-peer-groups-meta,
.comm-wa-peer-groups-empty {
  margin: 0 0 6px;
  font-size: .74rem;
  line-height: 1.35;
}
.comm-wa-peer-h {
  align-self: stretch;
  margin: 12px 0 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--comm-muted, #9aa4b2);
  text-align: left;
}
.comm-wa-peer-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comm-wa-peer-group {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: inherit;
  text-align: left;
  padding: 8px 10px;
  font-size: .8rem;
  cursor: pointer;
}
.comm-wa-peer-group:hover {
  background: rgba(37, 211, 102, .12);
}
.comm.has-server.is-wa-hub:not(.has-wa-peer) {
  grid-template-columns: var(--comm-rail) var(--comm-side) minmax(0, 1fr);
}
.comm.has-server.is-wa-hub.has-wa-peer {
  grid-template-columns: var(--comm-rail) var(--comm-side) minmax(0, 1fr) var(--comm-members);
}
.comm.is-wa-hub [data-comm-server-banner-wrap],
.comm.is-wa-hub [data-comm-server-settings],
.comm.is-wa-hub [data-comm-requests],
.comm.is-wa-hub [data-comm-invite],
.comm.is-wa-hub [data-comm-add-channel],
.comm.is-wa-hub [data-comm-server-channels] {
  display: none !important;
}
.comm-wa-slot-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 4px;
}
.comm-wa-slot {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--comm-text, #e8edf5);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: .72rem;
  cursor: pointer;
}
.comm-wa-slot.is-on {
  border-color: rgba(37, 211, 102, .45);
  background: rgba(37, 211, 102, .12);
}
.comm-wa-slot.is-add {
  color: #25d366;
}
.comm-wa-slot-meta {
  padding: 2px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comm-wa-slot-phone {
  margin: 0;
  font-size: .72rem;
  color: var(--comm-muted, #9aa4b2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.comm-wa-slot-actions {
  display: flex;
  gap: 6px;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
.comm-wa-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: inherit;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.comm-wa-mini-btn svg { width: 12px; height: 12px; }
.comm-wa-mini-btn.is-danger {
  border-color: rgba(239, 68, 68, .35);
  color: #fca5a5;
  background: rgba(239, 68, 68, .08);
}
.comm-wa-caption-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  padding: 16px;
}
.comm-wa-caption-card {
  width: min(420px, 100%);
  background: var(--comm-bg2, #151a22);
  border: 1px solid var(--comm-line, rgba(255,255,255,.1));
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comm-wa-caption-card.is-wide { width: min(520px, 100%); }
.comm-wa-caption-card h3 { margin: 0; font-size: .95rem; }
.comm-wa-caption-preview {
  max-height: 220px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  display: grid;
  place-items: center;
}
.comm-wa-caption-preview img,
.comm-wa-caption-preview video {
  max-width: 100%;
  max-height: 220px;
  display: block;
}
.comm-wa-caption-card textarea,
.comm-wa-caption-card input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3, #0f131a);
  color: inherit;
  padding: 8px 10px;
  font: inherit;
}
.comm-wa-caption-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.comm-wa-int-tabs {
  display: flex;
  gap: 6px;
}
.comm-icon-btn.is-recording {
  color: #f87171;
  background: rgba(239,68,68,.15);
  animation: wa-rec-pulse 1.2s ease-in-out infinite;
}
@keyframes wa-rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.comm-compose.is-recording {
  flex-wrap: wrap;
  align-items: stretch;
}
.comm-compose.is-recording textarea,
.comm-compose.is-recording .comm-compose-input-wrap,
.comm-compose.is-recording [type="submit"],
.comm-compose.is-recording [data-comm-wa-attach],
.comm-compose.is-recording [data-comm-wa-interactive],
.comm-compose.is-recording [data-comm-wa-rec] {
  display: none !important;
}
/* SÃÂÃÂÃÂÃÂ³ aparece durante gravaÃÂÃÂÃÂÃÂ§ÃÂÃÂÃÂÃÂ£o ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ no fluxo do compose, sem overlay absoluto sobre o input */
.comm-wa-rec-panel {
  display: none;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,.45);
  background: #1a1014;
  background: linear-gradient(180deg, #24151a 0%, #140c10 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  box-sizing: border-box;
  position: relative;
  z-index: auto;
  pointer-events: auto;
}
.comm-compose.is-recording .comm-wa-rec-panel:not([hidden]) {
  display: flex;
}
.comm-wa-rec-panel[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  inset: auto !important;
  z-index: -1 !important;
}
.comm-wa-rec-wave-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
}
.comm-wa-rec-wave {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 52px;
  display: block;
  border-radius: 8px;
  background: rgba(0,0,0,.28);
}
.comm-wa-rec-timer {
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  color: #fca5a5;
  min-width: 42px;
  text-align: right;
  flex-shrink: 0;
}
.comm-wa-rec-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.comm-wa-rec-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: inherit;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
}
.comm-wa-rec-action:hover { background: rgba(255,255,255,.08); }
.comm-wa-rec-action svg { width: 16px; height: 16px; flex-shrink: 0; }
.comm-wa-rec-action.is-primary {
  background: linear-gradient(180deg, #6ec4ef, #3a9fd0);
  border-color: transparent;
  color: #041018;
  font-weight: 600;
}
.comm-wa-rec-action.is-muted { color: var(--comm-muted, #9aa4b2); }
.comm-wa-int-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.comm-wa-int-row-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: start;
}
.comm-wa-int-row-item input,
.comm-wa-int-row-item textarea {
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3);
  color: inherit;
  padding: 8px 10px;
  font: inherit;
}
.comm-wa-int-row-item textarea { min-height: 52px; resize: vertical; }
.comm-wa-int-btn-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.comm-wa-int-btn-row input { flex: 1; }
.comm-ch-reorder {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  margin-left: 2px;
}
.comm-ch-move {
  border: 0;
  background: transparent;
  color: var(--comm-muted);
  padding: 0 2px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.comm-ch-move:hover { opacity: 1; color: var(--comm-text); }
.comm-ch-move svg { width: 12px; height: 12px; }
.comm-member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.comm-member-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
}
.comm-member-card.is-owner-card {
  border-color: rgba(167,139,250,.28);
  background: rgba(167,139,250,.06);
}
.comm-member-av-wrap {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}
.comm-member-card .comm-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.08);
  background: #2a3344;
}
.comm-member-card.is-owner-card .comm-avatar {
  border-color: rgba(167,139,250,.65);
  box-shadow: 0 0 0 1px rgba(167,139,250,.25), 0 0 18px rgba(167,139,250,.18);
}
.comm-member-av-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--comm-bg1, #12141c);
  box-sizing: border-box;
}
.comm-member-card.is-online .comm-member-av-dot {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(61,214,140,.22);
}
.comm-member-card.is-offline .comm-member-av-dot {
  background: #6b7280;
}
.comm-member-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comm-member-top {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.comm-member-top strong {
  flex: 1;
  min-width: 0;
  font-size: .88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-member-menu {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--comm-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.comm-member-menu:hover {
  background: rgba(255,255,255,.08);
  color: var(--comm-text);
}
.comm-member-menu svg { width: 16px; height: 16px; }
.comm-member-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  line-height: 1.2;
  color: var(--comm-muted);
}
.comm-member-role svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.comm-member-role.is-owner {
  color: #a78bfa;
  font-weight: 600;
}
.comm-member-role.is-admin {
  color: #93c5fd;
  font-weight: 600;
}
.comm-member-body .comm-badges {
  margin-top: 2px;
  margin-left: 0;
  padding-left: 0;
  gap: 5px;
}
.comm-ramal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(94, 184, 232, 0.12);
  border: 1px solid rgba(94, 184, 232, 0.28);
  color: #9ad4f5;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  max-width: 100%;
  flex-wrap: wrap;
}
.comm-ramal-badge.is-oncall {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.42);
  color: #86efac;
}
.comm-ramal-oncall {
  font-style: normal;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #34d399;
  margin-left: 2px;
}
.comm-ramal-badge svg,
.comm-ramal-badge [data-lucide] {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #5eb8e8;
}
.comm-ramal-badge.is-oncall svg,
.comm-ramal-badge.is-oncall [data-lucide] {
  color: #34d399;
}
.comm-work-status {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.comm-work-status[data-status="pausa_banheiro"],
.comm-work-status[data-status="pausa_almoco"] {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}
.comm-work-status[data-status="reuniao"],
.comm-work-status[data-status="google_meet"] {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
  color: #93c5fd;
}
.comm-status-bar {
  position: relative;
  margin: 6px 10px 8px;
}
.comm-status-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  color: #e8eaed;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.comm-status-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}
.comm-status-btn.is-oncall {
  border-color: rgba(52, 211, 153, 0.35);
}
.comm-status-btn .comm-status-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-status-btn [data-lucide] {
  width: 14px;
  height: 14px;
  opacity: .7;
}
.comm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  flex-shrink: 0;
}
.comm-status-dot[data-status="pausa_banheiro"],
.comm-status-dot[data-status="pausa_almoco"] { background: #fbbf24; }
.comm-status-dot[data-status="reuniao"],
.comm-status-dot[data-status="google_meet"] { background: #60a5fa; }
.comm-status-dot[data-status="em_chamada"] { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.comm-status-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 10px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.comm-status-menu[hidden] { display: none !important; }
.comm-status-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #dfe3ea;
  font-size: .8rem;
  font-weight: 550;
  cursor: pointer;
  text-align: left;
}
.comm-status-option:hover { background: rgba(255, 255, 255, 0.06); }
.comm-status-option.is-selected { background: rgba(88, 101, 242, 0.18); }
.comm-status-option.is-auto {
  opacity: .72;
  cursor: default;
}
.comm-status-option.is-auto em {
  margin-left: auto;
  font-style: normal;
  font-size: .65rem;
  color: #8b93a7;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.comm-calls-badge {
  margin-left: auto;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #34d399;
  color: #0b1f17;
  font-size: .65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.comm-calls {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.comm-calls-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 24px;
}
.comm-calls-status {
  margin-left: 10px;
  font-size: .78rem;
  color: #8b93a7;
  font-style: normal;
}
.comm-calls-empty {
  padding: 28px 12px;
  text-align: center;
  color: #8b93a7;
}
.comm-calls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.comm-call-card {
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.comm-call-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.comm-call-card header strong {
  font-size: .85rem;
  color: #e8eaed;
}
.comm-call-dur {
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 700;
  color: #34d399;
}
.comm-call-legs {
  display: grid;
  gap: 10px;
}
.comm-call-legs .muted {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.comm-call-legs p {
  margin: 0;
  font-size: .82rem;
  color: #d5dae3;
  word-break: break-word;
}
.comm-voice-user .comm-ramal-badge {
  margin-top: 2px;
  font-size: .68rem;
  padding: 1px 7px 1px 5px;
}
.comm-net-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  max-width: 100%;
}
.comm-net-loc {
  font-size: .65rem;
  line-height: 1.25;
  color: #6b7585;
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.comm-net-ping {
  font-size: .62rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: #7a8494;
  opacity: .9;
}
.comm-net-ping.is-good { color: #3dd68c; }
.comm-net-ping.is-ok { color: #e5b04a; }
.comm-net-ping.is-bad { color: #f07178; }
.comm-voice-user .comm-net-meta {
  margin-top: 2px;
  gap: 5px;
}
.comm-voice-user .comm-net-loc {
  font-size: .6rem;
}
.comm-member-card.is-offline .comm-net-meta {
  display: none;
}
.comm-members-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 2px;
}
.comm-members-head > svg,
.comm-members-head > i,
.comm-members-head [data-lucide] {
  width: 16px;
  height: 16px;
  color: #a78bfa;
  flex-shrink: 0;
}
.comm-members-title {
  flex: 1;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--comm-muted);
  font-weight: 700;
}
.comm-members-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--comm-text);
  font-size: .72rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.comm-member-group {
  margin-bottom: 10px;
}
.comm-member-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 6px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--comm-muted);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.comm-member-group-head:hover { color: var(--comm-text); }
.comm-member-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.comm-member-group-dot.is-online {
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(61,214,140,.22);
}
.comm-member-group-dot.is-offline { background: #6b7280; }
.comm-member-group-label { flex: 1; min-width: 0; }
.comm-member-group-head svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.comm-member-group.is-collapsed .comm-member-group-body { display: none; }
.comm-member-group.is-collapsed .comm-member-group-head svg { transform: rotate(-90deg); }
.comm-members-empty {
  padding: 8px;
  margin: 0;
}

/* Theme scrollbars */
.comm-scroll,
.comm-wa-chat-list,
.comm-messages,
.comm-members-panel [data-comm-members],
.comm-wa-status-panel,
.comm-channels,
.comm-dm-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.comm-scroll::-webkit-scrollbar,
.comm-wa-chat-list::-webkit-scrollbar,
.comm-messages::-webkit-scrollbar,
.comm-members-panel [data-comm-members]::-webkit-scrollbar,
.comm-wa-status-panel::-webkit-scrollbar,
.comm-channels::-webkit-scrollbar,
.comm-dm-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.comm-scroll::-webkit-scrollbar-track,
.comm-wa-chat-list::-webkit-scrollbar-track,
.comm-messages::-webkit-scrollbar-track,
.comm-members-panel [data-comm-members]::-webkit-scrollbar-track,
.comm-wa-status-panel::-webkit-scrollbar-track,
.comm-channels::-webkit-scrollbar-track,
.comm-dm-list::-webkit-scrollbar-track {
  background: transparent;
}
.comm-scroll::-webkit-scrollbar-thumb,
.comm-wa-chat-list::-webkit-scrollbar-thumb,
.comm-messages::-webkit-scrollbar-thumb,
.comm-members-panel [data-comm-members]::-webkit-scrollbar-thumb,
.comm-wa-status-panel::-webkit-scrollbar-thumb,
.comm-channels::-webkit-scrollbar-thumb,
.comm-dm-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
}
.comm-wa-preview {
  display: none;
}
.comm-wa-media {
  display: block;
  max-width: min(300px, 100%);
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin: 6px 0;
}
.comm-wa-media.is-zoomable { cursor: zoom-in; }
video.comm-wa-media {
  max-width: min(300px, 100%);
  max-height: 280px;
}
.comm-wa-media-shell .comm-wa-media { margin: 0; }
.comm-wa-qr-wrap {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 12px;
  min-height: 200px;
}
.comm-wa-qr-wrap img {
  width: 240px;
  height: 240px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}
.comm-wa-contact-list {
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.comm-wa-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  color: inherit;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.comm-wa-contact-item:hover {
  border-color: rgba(37, 211, 102, .35);
}
.comm-wa-contact-item strong {
  display: block;
  font-size: .82rem;
}
.comm-wa-contact-item span {
  font-size: .72rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm.is-wa-hub .comm-members-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.comm.is-wa-hub .comm-members-panel .comm-label {
  flex-shrink: 0;
  padding: 10px 12px 6px;
}
.comm.is-wa-hub .comm-members-panel [data-comm-members] {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px 10px;
}
.comm.is-wa-hub .comm-msg.is-mine {
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-self: flex-end;
  margin-left: auto;
  max-width: min(92%, 520px);
}
.comm.is-wa-hub .comm-msg:not(.is-mine) {
  align-self: flex-start;
  max-width: min(92%, 520px);
}
.comm.is-wa-hub .comm-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comm.is-wa-hub .comm-msg.is-mine .comm-msg-body {
  background: #005c4b;
  border-radius: 12px 12px 4px 12px;
  padding: 8px 10px;
}
.comm.is-wa-hub .comm-msg:not(.is-mine) .comm-msg-body {
  background: #1f2a37;
  border-radius: 12px 12px 12px 4px;
  padding: 8px 10px;
}
.comm.is-wa-hub .comm-msg.is-mine strong {
  text-align: right;
}
.comm-compose textarea[name="body"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3);
  color: var(--comm-text);
  padding: 10px 12px;
  resize: vertical;
  min-height: 44px;
  max-height: min(40vh, 280px);
  line-height: 1.4;
  font: inherit;
  cursor: text;
  pointer-events: auto;
  box-sizing: border-box;
  field-sizing: content;
}
.comm-compose-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  cursor: text;
}
.comm-compose [hidden] {
  display: none !important;
  pointer-events: none !important;
}
.comm-wa-status-hint {
  padding: 0 12px 8px;
  font-size: .68rem;
  line-height: 1.35;
}
.comm-wa-status-ring {
  display: inline-grid;
  place-items: center;
  padding: 2px;
  border-radius: 50%;
  border: 2px solid #25d366;
  flex-shrink: 0;
}
.comm-wa-status-ring.is-me {
  border-color: #53bdeb;
}
.comm-compose [data-comm-wa-attach] {
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  flex-shrink: 0;
}
.comm.is-wa-hub .comm-compose [data-comm-wa-attach] {
  display: inline-flex;
}

.comm-voice-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #1a2330;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  max-width: min(360px, calc(100vw - 24px));
}
.comm-voice-float[hidden] { display: none !important; }
.comm-voice-float-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.comm-voice-float-meta strong {
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-voice-float-meta em {
  font-style: normal;
  font-size: .68rem;
  color: var(--comm-muted, #9aa4b2);
}
.comm-tue-banner {
  flex: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f5e6a8;
  border: 1px solid #d4b84a;
  border-left: none;
  border-right: none;
  color: #3b3414;
  font-size: .82rem;
}
.comm-tue-banner[hidden] { display: none !important; }
.comm-tue-banner p { margin: 0; flex: 1; }
.comm-tue-banner-close {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}
.comm-update-banner {
  flex: 0 0 auto;
  z-index: 41;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-left: none;
  border-right: none;
  color: #1e3a5f;
  font-size: .82rem;
}
.comm-update-banner[hidden] { display: none !important; }
.comm-update-banner-main {
  flex: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.comm-update-banner-main:hover { text-decoration: underline; }
.comm-update-banner-main p { margin: 0; }
.comm-update-banner-main strong { font-weight: 700; }
.comm-update-banner-close {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}
.wa-groups-toolbar {
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.wa-groups-toolbar-left,
.wa-groups-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wa-groups-toolbar-right {
  margin-left: auto;
}
.wa-groups-slot-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.wa-groups-slot-label select {
  min-width: 4rem;
}
.wa-groups-hint {
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: .82rem;
  line-height: 1.45;
}
.wa-groups-check-col {
  width: 42px;
  text-align: center;
}
.btn-danger {
  background: #b91c1c;
  border-color: #991b1b;
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: #991b1b;
}
.btn-danger:disabled {
  opacity: .45;
}
.comm-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.comm-dialog-profile,
.comm-dialog[data-comm-dialog-profile] {
  width: min(96vw, 520px);
  max-height: min(92vh, 720px);
}
.comm-dialog-profile .comm-dialog-form,
.comm-dialog[data-comm-dialog-profile] .comm-dialog-form {
  max-height: min(88vh, 680px);
  overflow: auto;
}
.comm-dialog-profile .form-actions {
  flex-wrap: wrap;
}
.comm-trade-selected {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid var(--comm-line);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}
.comm-trade-selected-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.comm-trade-selected-cols em {
  display: block;
  font-style: normal;
  font-size: .72rem;
  color: var(--comm-muted);
  margin-bottom: 4px;
}
.comm-trade-selected-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .78rem;
  max-height: 120px;
  overflow: auto;
}
.comm-wa-toolbar {
  display: flex;
  gap: 6px;
  padding: 4px 10px 6px;
  flex-wrap: wrap;
  align-items: center;
}
.comm-rail-wa-slot {
  position: relative;
}
.comm-rail-wa-label {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: .55rem;
  background: #128c7e;
  color: #fff;
  border-radius: 4px;
  padding: 0 3px;
  line-height: 1.2;
}
.comm-wa-wizard-list {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  font-size: .84rem;
  color: var(--comm-muted);
}
.comm-wa-unlock-error.is-error,
.comm-wa-unlock-error:not([hidden]) {
  color: var(--comm-danger, #f07178);
  margin: 0;
}
.comm-wa-unlock-error[hidden] { display: none !important; }

.comm-wa-msg-meta .comm-wa-react-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0;
  opacity: .85;
  flex-shrink: 0;
}
.comm-wa-msg-meta .comm-wa-react-btn:hover {
  opacity: 1;
  color: var(--comm-accent, #6ec4ef);
  border-color: rgba(110,196,239,.35);
}
.comm-wa-msg-meta .comm-wa-react-btn svg { width: 14px; height: 14px; }
.comm-wa-react-pop {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  max-width: min(280px, calc(100vw - 16px));
  border-radius: 12px;
  background: var(--comm-bg2, #121820);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  z-index: 80;
}
.comm-wa-react-pop.is-fixed {
  position: fixed;
  right: auto;
  bottom: auto;
}
.comm-msg-body { position: relative; }
.comm-wa-react-emoji {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
}
.comm-wa-react-emoji:hover { background: rgba(255,255,255,.08); }
.comm-wa-status-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 12px 14px;
}
.comm-wa-status-tile {
  flex: 0 0 auto;
  width: 76px;
  border: 0;
  background: transparent;
  color: var(--comm-text, #e8edf5);
  cursor: pointer;
  text-align: center;
  padding: 0;
}
.comm-wa-status-tile strong {
  display: block;
  font-size: .68rem;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-wa-status-tile em {
  display: block;
  font-style: normal;
  font-size: .6rem;
  color: var(--comm-muted);
}
.comm-wa-status-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0,0,0,.92);
  display: grid;
  place-items: center;
}
.comm-wa-status-viewer-inner {
  position: relative;
  width: min(420px, 100vw);
  height: min(720px, 100vh);
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.comm-wa-status-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.comm-wa-status-progress i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
}
.comm-wa-status-progress i.is-on { background: #fff; }
.comm-wa-status-viewer-inner header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 12px;
}
.comm-wa-status-viewer-inner header strong { display: block; font-size: .9rem; }
.comm-wa-status-viewer-inner header em { font-style: normal; font-size: .72rem; opacity: .75; }
.comm-wa-status-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.comm-wa-status-stage {
  flex: 1;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 1.15rem;
  line-height: 1.45;
}
.comm-wa-status-media {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}
.comm-wa-status-caption {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
}
.comm-wa-status-nav {
  position: absolute;
  top: 56px;
  bottom: 0;
  width: 40%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.comm-wa-status-nav.is-prev { left: 0; }
.comm-wa-status-nav.is-next { right: 0; }
.comm-wa-sticker {
  max-width: 140px;
  max-height: 140px;
  background: transparent;
  cursor: default;
}
audio.comm-wa-media {
  width: min(100%, 280px);
  height: 36px;
}

/* Electron: barra Steam + comunidade em coluna, sem quebrar o grid */
body.page-community.is-desktop-app,
body.page-community-discover.is-desktop-app {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  background: var(--comm-bg0, #0b0e13) !important;
  display: flex !important;
  flex-direction: column !important;
}
.steam-desktop-status {
  flex: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11, 14, 19, .96);
  backdrop-filter: blur(12px);
}
.steam-desktop-status-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 14px;
}
.steam-desktop-status-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8edf5;
  font-size: .72rem;
  letter-spacing: .08em;
  font-weight: 700;
}
.steam-desktop-status-brand img {
  display: block;
  border-radius: 5px;
}
.steam-desktop-status .steam-chip {
  margin: 0;
}
html:has(body.is-desktop-app.page-community),
html:has(body.is-desktop-app.page-community-discover) {
  height: 100%;
  overflow: hidden;
}
body.is-desktop-app.page-community .stage,
body.is-desktop-app.page-community-discover .stage {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
body.page-community.is-desktop-app .comm,
body.page-community-discover.is-desktop-app .comm {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
body.page-community.is-desktop-app .comm-page,
body.page-community-discover.is-desktop-app .comm-page {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
@media (max-width: 900px) {
  body.page-community.is-desktop-app .stage {
    padding-bottom: 0 !important;
  }
  body.page-community.is-desktop-app .comm-page {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
  }
  body.page-community.is-desktop-app .comm {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
}
.comm-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}
.comm-top-banners {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.comm-page > .comm {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}
body.page-community {
  --comm-bg0: #0b0e13;
  --comm-bg1: #12151c;
  --comm-bg2: #171b24;
  --comm-bg3: #1d2330;
  --comm-line: rgba(255,255,255,.06);
  --comm-text: #e8edf5;
  --comm-muted: #8b95a8;
  --comm-accent: #5eb8e8;
  --comm-accent-soft: rgba(94,184,232,.16);
  --comm-danger: #f07178;
  --comm-ok: #3dd68c;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0b0e13 !important;
  background-image: none !important;
}
html:has(body.page-community) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #0b0e13 !important;
  background-image: none !important;
}
body.page-community:not(.is-desktop-app) .steam-top {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  margin: 0;
  padding-top: 0;
  background: #0b0e13 !important;
  background-image: none !important;
  backdrop-filter: none;
  border-radius: 0;
}
body.page-community:not(.is-desktop-app) .stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.comm {
  --comm-rail: 72px;
  --comm-side: 248px;
  --comm-members: 280px;
  display: grid;
  grid-template-columns: var(--comm-rail) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  background: var(--comm-bg0);
  color: var(--comm-text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  overflow: hidden;
}
/* Sem servidor: sÃÂÃÂÃÂÃÂ³ rail + ÃÂÃÂÃÂÃÂ¡rea principal. Com servidor: 4 colunas. */
.comm.has-server {
  grid-template-columns: var(--comm-rail) var(--comm-side) minmax(0, 1fr) var(--comm-members);
}
.comm [hidden] { display: none !important; }
.comm > .comm-rail,
.comm > .comm-sidebar,
.comm > .comm-main,
.comm > .comm-members-panel {
  min-height: 0;
  min-width: 0;
}

.comm-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  background: var(--comm-bg0);
  border-right: 1px solid var(--comm-line);
}
.comm-rail-sep {
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--comm-line);
  margin: 2px 0 4px;
}
.comm-server-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
  flex: 1;
  overflow: auto;
}
.comm-rail-btn {
  position: relative;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--comm-bg3);
  color: var(--comm-text);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  transition: border-radius .18s ease, background .18s ease, transform .15s ease;
}
.comm-rail-btn svg { width: 20px; height: 20px; }
.comm-rail-btn:hover,
.comm-rail-btn.is-on {
  border-radius: 14px;
  background: var(--comm-accent-soft);
  color: var(--comm-accent);
}
.comm-rail-btn.is-on::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 4px;
  height: 36px;
  border-radius: 0 4px 4px 0;
  background: var(--comm-accent);
}
.comm-rail-btn.is-in-voice::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--comm-ok, #3dd68c);
  border: 2px solid var(--comm-bg, #0e1117);
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.35);
}
.comm-rail-add { color: var(--comm-ok); }
.comm-rail-home { background: linear-gradient(145deg, #1b2838, #2a475e); color: #fff; }

.comm-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--comm-bg1);
  border-right: 1px solid var(--comm-line);
}
.comm-sidebar-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--comm-line);
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.comm-sidebar-head-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.comm-sidebar-head-top:has(.comm-mobile-back:not([hidden])) {
  justify-content: space-between;
}
.comm-sidebar-head strong {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.comm-sidebar-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.comm-sidebar-banner-wrap {
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--comm-line);
}
.comm-sidebar-banner {
  height: 72px;
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 55%, #1b2838 100%);
  background-size: cover;
  background-position: center;
}
.comm-sidebar-banner.is-default {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 55%, #1b2838 100%);
}
.comm-sidebar-banner.has-image {
  background-color: #0e1117;
}

.comm-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.comm-server-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--comm-bg2);
}

.comm-rail-btn .comm-rail-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.comm-ch-row {
  display: flex;
  align-items: center;
  gap: 2px;
}
.comm-ch-row .comm-ch { flex: 1; min-width: 0; }
.comm-ch-icon-img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.comm-ch-edit {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--comm-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity .12s ease;
}
.comm-ch-wrap:hover .comm-ch-edit,
.comm-ch-edit:focus-visible { opacity: 1; }
.comm-ch-edit:hover { background: rgba(255,255,255,.08); color: #fff; }
.comm-ch-edit svg { width: 12px; height: 12px; }

.comm-invite-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--comm-line);
  margin-bottom: 12px;
}
.comm-invite-preview-banner {
  height: 80px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  background-size: cover;
  background-position: center;
}
.comm-invite-preview-banner.has-image { background-color: #0e1117; }
.comm-invite-preview-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--comm-bg2);
}
.comm-invite-preview-icon {
  border-radius: 50%;
  object-fit: cover;
  background: var(--comm-bg1);
}
.comm-invite-preview-kicker {
  font-size: .75rem;
  margin: 0 0 2px;
}

body.page-community-invite {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.comm-invite-page {
  width: min(480px, 100%);
}
.comm-invite-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg1);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.comm-invite-banner {
  height: 120px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  background-size: cover;
  background-position: center;
}
.comm-invite-banner.is-default {
  background: linear-gradient(135deg, #1b2838, #2a475e);
}
.comm-invite-body { padding: 20px 22px 24px; }
.comm-invite-server {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.comm-invite-icon {
  border-radius: 50%;
  object-fit: cover;
  background: var(--comm-bg2);
  flex-shrink: 0;
}
.comm-invite-kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--comm-muted);
  margin: 0 0 4px;
}
.comm-invite-server h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.comm-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.comm-invite-loading,
.comm-invite-error {
  text-align: center;
  padding: 32px 16px;
  color: var(--comm-muted);
}
.comm-invite-error { color: #f87171; }

.comm-upload-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--comm-bg2);
  border: 1px solid var(--comm-line);
}
.comm-upload-preview {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.comm-upload-preview-banner {
  width: 100%;
  height: 64px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  background-color: var(--comm-bg1);
}

.comm-rail-btn { position: relative; }
.comm-rail-badge,
.comm-icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.comm-icon-btn { position: relative; }
.comm-icon-badge { top: -2px; right: -2px; }

.comm-dialog-wide { width: min(1100px, calc(100vw - 16px)); }

.comm-dm-layout {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  gap: 12px;
  min-height: 320px;
}
.comm-dm-threads ul { list-style: none; margin: 0; padding: 0; }
.comm-dm-thread-btn {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.comm-dm-thread-btn:hover { background: rgba(255,255,255,.06); }
.comm-dm-thread-btn span { flex: 1; min-width: 0; }
.comm-dm-thread-btn em {
  display: block;
  font-style: normal;
  font-size: .78rem;
  color: var(--comm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-dm-chat { display: flex; flex-direction: column; min-height: 280px; }
.comm-dm-messages {
  flex: 1;
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
}
.comm-dm-msg { display: flex; }
.comm-dm-msg > div {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--comm-bg2);
  white-space: pre-wrap;
  word-break: break-word;
}
.comm-dm-msg.is-mine { justify-content: flex-end; }
.comm-dm-msg.is-mine > div { background: #2563eb; color: #fff; }
.comm-dm-compose { display: flex; gap: 8px; margin-top: 8px; }
.comm-dm-compose input { flex: 1; }
.comm-dot-unread { background: #ef4444; }

.comm-requests-list { list-style: none; margin: 0; padding: 0; }
.comm-request-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--comm-line);
}
.comm-request-body p { margin: 6px 0; white-space: pre-wrap; }
.comm-request-actions { display: flex; gap: 8px; }

body.page-community-discover {
  padding: 20px 16px 40px;
}
.comm-discover-page { max-width: 1100px; margin: 0 auto; }
.comm-discover-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.comm-discover-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.comm-discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.comm-discover-card {
  border: 1px solid var(--comm-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--comm-bg1);
}
.comm-discover-card-banner {
  height: 96px;
  background: linear-gradient(135deg, #1b2838, #2a475e);
  background-size: cover;
  background-position: center;
}
.comm-discover-card-body { padding: 14px 16px 16px; }
.comm-discover-card-title {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.comm-discover-card-title h2 { margin: 0; font-size: 1.1rem; }
.comm-discover-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comm-discover-icon-fallback {
  display: grid;
  place-items: center;
  background: var(--comm-bg2);
  font-weight: 700;
}
.comm-discover-desc {
  font-size: .9rem;
  color: var(--comm-muted);
  margin: 0 0 12px;
  min-height: 2.5em;
}
.comm-discover-admins {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.comm-discover-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.comm-discover-admin em {
  font-style: normal;
  color: var(--comm-muted);
  margin-left: 4px;
  font-size: .75rem;
}
.comm-discover-card-actions { display: flex; gap: 8px; align-items: center; }
.comm-discover-pending { font-size: .85rem; }

.comm-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--comm-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.comm-icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.comm-icon-btn svg { width: 18px; height: 18px; }

.comm-channel-scroll { flex: 1; overflow: auto; padding: 10px 8px 12px; }
.comm.is-wa-hub .comm-channel-scroll {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.comm.is-wa-hub .comm-wa-hub-panel {
  flex: 1 1 auto;
  min-height: 0;
}
.comm.is-wa-hub .comm-wa-chat-list {
  flex: 1 1 auto;
}
.comm-cat { margin-bottom: 10px; }
.comm-cat-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--comm-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: default;
}
.comm-cat-toggle svg { width: 12px; height: 12px; }
.comm-cat ul { list-style: none; margin: 0; padding: 0; }
.comm-ch-wrap { margin-bottom: 2px; }
.comm-ch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--comm-muted);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
}
.comm-ch svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }
.comm-ch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-ch:hover { background: rgba(255,255,255,.05); color: #dfe6f0; }
.comm-ch.is-on { background: rgba(255,255,255,.08); color: #fff; }
.comm-ch.is-connected { color: var(--comm-ok); }
.comm-voice-roster {
  list-style: none;
  margin: 0 0 4px;
  padding: 0 8px 0 24px;
}
.comm-voice-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .82rem;
  color: var(--comm-muted);
}
.comm-voice-user.is-self { color: var(--comm-text); }
.comm-voice-user.is-speaking { color: #fff; }
.comm-voice-user-av {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.comm-voice-user .comm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.08);
  background: #2a3344;
}
.comm-voice-user.is-speaking .comm-avatar {
  border-color: rgba(61,214,140,.55);
}
.comm-voice-user .comm-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--comm-ok);
  box-shadow: 0 0 0 0 rgba(61,214,140,.45);
  border: 2px solid var(--comm-bg1, #12141c);
  flex-shrink: 0;
}
.comm-voice-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.comm-voice-user-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.comm-voice-user .comm-badges {
  margin-top: 0;
}
.comm-voice-user .comm-skin-chip.size-xs {
  width: 24px;
  height: 24px;
}
.comm-voice-user[data-comm-member-id] {
  cursor: pointer;
}
.comm-voice-user.is-speaking .comm-dot {
  animation: comm-pulse 1.2s ease-out infinite;
}
@keyframes comm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,214,140,.45); }
  70% { box-shadow: 0 0 0 8px rgba(61,214,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); }
}

.comm-userbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px 10px;
  background: #0e1117;
  border-top: 1px solid var(--comm-line);
}
.comm-userbar-persona {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 4px 6px;
  margin: -4px -6px;
}
.comm-userbar-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.comm-userbar-name-row strong {
  min-width: 0;
  flex: 1;
}
.comm-userbar-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--comm-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.comm-userbar-profile-btn svg { width: 14px; height: 14px; }
.comm-userbar-profile-btn:hover {
  background: rgba(167, 139, 250, 0.18);
  color: #e9d5ff;
}
.comm-userbar-noise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--comm-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.comm-userbar-noise-btn svg { width: 14px; height: 14px; }
.comm-userbar-noise-btn:hover:not(:disabled) {
  background: rgba(167, 139, 250, 0.18);
  color: #e9d5ff;
}
.comm-userbar-noise-btn.is-on {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
}
.comm-userbar-noise-btn:disabled {
  opacity: 0.45;
  cursor: wait;
}
.comm-userbar-noise-btn:not(.is-on) {
  opacity: 0.55;
}
.comm-dialog.comm-dialog-profile-edit {
  width: min(880px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(90vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.comm-profile-edit-form {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 820px);
  min-height: 0;
  margin: 0;
}
.comm-profile-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.comm-profile-edit-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a78bfa;
}
.comm-profile-edit-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.comm-profile-edit-lead {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--comm-muted);
  max-width: 54ch;
}
.comm-profile-edit-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 28px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.comm-profile-edit-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.comm-profile-edit-col {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.comm-profile-edit-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.comm-profile-edit-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--comm-muted);
}
.comm-profile-edit-avatar {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.comm-profile-edit-avatar img {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.35);
  background: #0e141b;
}
.comm-profile-edit-avatar .muted {
  margin: 0;
  font-size: 0.76rem;
}
.comm-profile-edit-avatar .comm-field {
  width: 100%;
  text-align: left;
}
.comm-profile-edit-readonly {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.comm-profile-login-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--comm-text);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}
.comm-profile-edit-readonly .muted {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}
.comm-profile-edit-form .comm-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.comm-profile-edit-form .comm-field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--comm-text);
}
.comm-profile-edit-form .comm-field-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--comm-muted);
}
.comm-profile-edit-form .comm-field input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3);
  color: var(--comm-text);
  padding: 11px 13px;
  font-size: 0.92rem;
}
.comm-profile-edit-form .comm-field input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.12);
}
.comm-profile-edit-steam-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  background: rgba(94, 184, 232, 0.08);
  border: 1px solid rgba(94, 184, 232, 0.2);
  color: var(--comm-text);
}
.comm-profile-stream-lead {
  margin: 0 0 12px;
  font-size: 0.84rem;
}
.comm-stream-account {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 12px;
}
.comm-stream-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.comm-stream-status.is-ok { color: var(--comm-ok, #3ba55d); }
.comm-stream-meta { margin: 0 0 10px; font-size: 0.82rem; }
.comm-stream-meta.is-warn { color: #f0c14b; }
.comm-stream-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--comm-muted, #949ba4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
}
.comm-stream-help:hover {
  color: var(--comm-text, #fff);
  border-color: rgba(255, 255, 255, 0.35);
}
.comm-stream-key-field .comm-field-desc {
  display: block;
  margin: 4px 0 8px;
  font-size: 0.78rem;
  color: var(--comm-muted, #949ba4);
  line-height: 1.35;
}
.comm-stream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.comm-stream-key-field { margin-top: 8px; }
.comm-live-destinations {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.comm-live-destinations legend {
  font-size: 0.82rem;
  color: var(--comm-muted);
  padding: 0 4px;
}
.comm-live-hint { margin: 8px 0 0; font-size: 0.82rem; }
.comm-live-obs-block {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.comm-live-obs-block code {
  word-break: break-all;
  font-size: 0.82rem;
}
.comm-voice-body {
  flex: 1;
  display: flex;
  min-height: 0;
  gap: 0;
}
.comm.has-live-chat .comm-voice-body .comm-stage {
  flex: 1;
  min-width: 0;
}
.comm-live-chat-panel {
  width: min(340px, 38vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--comm-line);
  background: rgba(0, 0, 0, 0.22);
  min-height: 0;
}
.comm-live-chat-panel[hidden] { display: none !important; }
.comm-live-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--comm-line);
}
.comm-live-chat-head strong { display: block; font-size: 0.95rem; }
.comm-live-chat-sub { margin: 4px 0 0; font-size: 0.78rem; }
.comm-live-chat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--comm-line);
}
.comm-live-chat-filter {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--comm-muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
}
.comm-live-chat-filter.is-on {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.12);
}
.comm-live-chat-msgs {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comm-live-chat-msg {
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.comm-live-chat-msg p { margin: 4px 0 0; word-break: break-word; }
.comm-live-chat-msg strong { font-size: 0.82rem; }
.comm-live-chat-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.comm-live-chat-msg.is-twitch .comm-live-chat-badge {
  background: rgba(145, 70, 255, 0.2);
  color: #bf94ff;
}
.comm-live-chat-msg.is-youtube .comm-live-chat-badge {
  background: rgba(255, 0, 0, 0.15);
  color: #ff8a8a;
}
.comm-live-chat-msg.is-community .comm-live-chat-badge {
  background: rgba(94, 184, 232, 0.15);
  color: #8fd4ff;
}
.comm-live-chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--comm-line);
}
.comm-live-chat-compose input {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--comm-text);
  padding: 8px 10px;
}
.comm-profile-edit-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .comm-profile-edit-columns { grid-template-columns: 1fr; }
  .comm-profile-edit-head,
  .comm-profile-edit-body,
  .comm-profile-edit-foot {
    padding-left: 18px;
    padding-right: 18px;
  }
}
.comm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  background: #2a3344;
  flex-shrink: 0;
}
.comm-userbar-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
}
.comm-userbar-meta strong {
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-userbar-meta span {
  font-size: .68rem;
  color: var(--comm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-userbar-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.comm-userbar-badges:empty { display: none; }
.comm-userbar-badges::-webkit-scrollbar { display: none; }
.comm-userbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.comm-ctrl {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--comm-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.comm-ctrl svg { width: 18px; height: 18px; }
.comm-ctrl:hover { background: rgba(255,255,255,.07); }
.comm-ctrl.is-off { color: var(--comm-danger); }
.comm-ctrl:disabled { opacity: .35; cursor: not-allowed; }

.comm-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--comm-bg2);
  position: relative;
}
.comm-empty {
  margin: auto;
  padding: 40px 24px;
  max-width: 480px;
  width: 100%;
}
.comm-empty-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--comm-line);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.comm-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--comm-accent-soft);
  color: var(--comm-accent);
}
.comm-empty-icon svg { width: 28px; height: 28px; }
.comm-empty h1 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.02em; }
.comm-empty p { margin: 0; color: var(--comm-muted); line-height: 1.5; }
.comm-hint { margin-top: 12px !important; font-size: .84rem; }
.comm-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.comm-chat, .comm-voice { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.comm-main-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--comm-line);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.comm-main-head svg { width: 18px; height: 18px; color: var(--comm-muted); }
.comm-voice-status {
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  font-size: .78rem;
  color: var(--comm-muted);
}

.comm-messages {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comm-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comm-msg .comm-avatar { width: 40px; height: 40px; border-radius: 12px; }
.comm-msg-body { min-width: 0; position: relative; }
.comm-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.comm-msg-head strong {
  flex: 1;
  min-width: 0;
  display: block;
  color: var(--comm-accent);
  font-size: .86rem;
  margin-bottom: 0;
}
.comm-msg-del {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--comm-muted);
  cursor: pointer;
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity .12s ease, background .12s ease, color .12s ease;
}
.comm-msg:hover .comm-msg-del,
.comm-msg-del:focus-visible { opacity: 1; }
.comm-msg-del:hover {
  background: rgba(240,113,120,.12);
  color: var(--comm-danger);
}
.comm-msg-del svg { width: 14px; height: 14px; }
.comm-msg strong { display: block; color: var(--comm-accent); font-size: .86rem; margin-bottom: 2px; }
.comm-msg span { color: #d7dee8; font-size: .95rem; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.comm-channel-danger {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 6px;
}
.comm-ch-delete:hover { color: #f07178 !important; background: rgba(240,113,120,.12) !important; }
.comm-ch-wrap:hover .comm-ch-delete,
.comm-ch-delete:focus-visible { opacity: 1; }
.comm-compose {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: var(--comm-bg2);
  border-top: 1px solid var(--comm-line);
  width: 100%;
  box-sizing: border-box;
}
.comm-compose .comm-icon-btn,
.comm-compose button[type="submit"] {
  flex-shrink: 0;
}
.comm-compose input {
  flex: 1;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3);
  color: var(--comm-text);
  padding: 12px 14px;
}
.comm-compose button { display: grid; place-items: center; min-width: 44px; }
.comm-compose button svg { width: 18px; height: 18px; }

.comm-stage {
  flex: 1;
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.comm-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.comm-stage-toolbar[hidden] { display: none !important; }
.comm-stage-share-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, .22);
  background: rgba(15, 12, 28, .55);
  font-size: .72rem;
  color: #e9d5ff;
  cursor: default;
}
.comm-stage-share-audio[hidden] { display: none !important; }
.comm-stage-share-audio svg { width: 14px; height: 14px; flex-shrink: 0; }
.comm-stage-share-audio span { white-space: nowrap; font-weight: 600; }
.comm-stage-share-audio input[type="range"] {
  flex: 1;
  min-width: 72px;
  margin: 0;
}
.comm-stage-share-audio strong {
  min-width: 2.8rem;
  text-align: right;
  font-size: .72rem;
  color: #c4b5fd;
}
.comm-stream-audio-gain {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, .22);
  background: rgba(15, 12, 28, .45);
  flex-shrink: 0;
}
.comm-stream-audio-gain[hidden] { display: none !important; }
.comm-stream-audio-gain-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  font-size: .8rem;
  color: #e9d5ff;
  cursor: default;
}
.comm-stream-audio-gain-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.comm-stream-audio-gain-label span { white-space: nowrap; font-weight: 600; }
.comm-stream-audio-gain-label input[type="range"] {
  flex: 1;
  min-width: 120px;
  margin: 0;
}
.comm-stream-audio-gain-label strong {
  min-width: 3.2rem;
  text-align: right;
  font-size: .78rem;
  color: #c4b5fd;
}
.comm-stage-toolbar-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--comm-muted);
}
.comm-tile-size-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--comm-muted);
  font-weight: 600;
}
.comm-tile-size-label input[type="range"] {
  width: 100px;
  margin: 0;
  accent-color: var(--comm-accent);
  cursor: pointer;
}

.comm-stage-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.comm-stage-grid[hidden] { display: none !important; }

.comm-stage-tile {
  width: var(--tile-base, 220px);
  min-width: 180px;
  max-width: 280px;
  resize: both;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 18px;
  background: #111214;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comm-stage-tile.has-stream { background: #0d0f12; }
.comm-stage-tile.is-speaking {
  border-color: color-mix(in srgb, var(--stage-accent, var(--comm-ok)) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stage-accent, var(--comm-ok)) 35%, transparent);
}
.comm-stage-tile.is-local.has-stream {
  background: linear-gradient(180deg, color-mix(in srgb, var(--stage-accent, #5865f2) 12%, #0d0f12), #0d0f12);
}

.comm-stage-hero {
  position: relative;
  min-height: calc(var(--tile-base, 220px) * 0.72);
  aspect-ratio: 4 / 3;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--stage-accent, #5865f2) 28%, transparent), transparent 62%),
    #18191c;
  display: grid;
  place-items: center;
}
.comm-stage-hero--stream video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.comm-stage-hero--stream.is-watching video {
  box-shadow: inset 0 0 0 2px rgba(94,184,232,.45);
}
.comm-stage-stats {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: #e8eaed;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-stage-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: color-mix(in srgb, var(--badge-color, #5865f2) 88%, #000);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.comm-stage-live-pills {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 55%;
}
.comm-stage-live-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #e91916;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.comm-stage-live-pill.is-twitch { background: #9146ff; }
.comm-stage-live-pill.is-youtube { background: #c00; }
.comm-my-lives {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.comm-my-lives-title {
  margin: 0 0 .35rem;
  font-size: 1rem;
}
.comm-my-lives-list {
  display: grid;
  gap: .65rem;
  margin-top: .75rem;
}
.comm-live-hist-item {
  padding: .65rem .75rem;
  border-radius: 8px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
}
.comm-live-hist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.comm-live-hist-status {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  opacity: .75;
}
.comm-twitch-cat {
  position: relative;
}
.comm-twitch-cat input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e141b;
  color: var(--text);
  font: inherit;
}
.comm-twitch-cat-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #15202b;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.comm-twitch-cat-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.comm-twitch-cat-opt:hover {
  background: rgba(102, 192, 244, .14);
  color: #fff;
}
.comm-twitch-cat-picked.is-ok {
  color: #8fd19e;
}

/* Wizard go-live: Comunidade / Twitch / YouTube */
.comm-dialog.comm-dialog-live-wizard {
  width: min(920px, calc(100vw - 24px));
  max-width: 920px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(102, 192, 244, 0.12), transparent 55%),
    linear-gradient(180deg, #121a22 0%, #0c1218 100%);
  color: var(--text);
}
.comm-dialog.comm-dialog-live-wizard .comm-dialog-form {
  padding: 22px 26px 20px;
  gap: 16px;
  max-height: min(88vh, 900px);
  overflow: auto;
}
.comm-live-wiz-head h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.comm-live-wiz-head .comm-dialog-hint {
  margin: 0;
  max-width: 62ch;
}
.comm-live-wiz-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.comm-live-wiz-tab {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.comm-live-wiz-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.comm-live-wiz-tab.is-on {
  color: #0b1520;
  background: #66c0f4;
  box-shadow: 0 8px 24px rgba(102, 192, 244, 0.22);
}
.comm-live-wiz-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 6px 2px 4px;
  min-height: 280px;
}
.comm-live-wiz-panel.is-on {
  display: grid;
}
.comm-live-wiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.comm-live-wiz-checks,
.comm-live-wiz-ccl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}
.comm-live-wiz-ccl legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
}
.comm-live-wiz-current {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(102, 192, 244, 0.35);
  background: rgba(102, 192, 244, 0.06);
  line-height: 1.4;
}
.comm-dialog-live-wizard textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e141b;
  color: var(--text);
  font: inherit;
}
.comm-dialog-live-wizard .comm-field-label em {
  font-style: normal;
  font-weight: 400;
}
@media (max-width: 720px) {
  .comm-live-wiz-grid,
  .comm-live-wiz-checks,
  .comm-live-wiz-ccl {
    grid-template-columns: 1fr;
  }
  .comm-live-wiz-tabs {
    grid-template-columns: 1fr;
  }
}

.comm-live-hist-status.is-live {
  color: #ff6b6b;
  font-weight: 700;
  opacity: 1;
}
.comm-live-hist-links {
  margin: .35rem 0 0;
  font-size: .82rem;
}
.comm-live-hist-links a { color: #8ab4ff; }
.comm-stage-hero-avatar {
  position: relative;
  width: min(88px, 46%);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--stage-accent, #5865f2) 82%, #000);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  overflow: hidden;
}
.comm-stage-hero-avatar .comm-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.comm-stage-hero-init {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: rgba(255,255,255,.95);
  z-index: 0;
}
.comm-stage-hero-avatar .comm-avatar:not([src=""]) ~ .comm-stage-hero-init { display: none; }

.comm-stage-watch {
  margin: 8px auto 0;
  min-width: 7rem;
}

.comm-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 6px;
  min-width: 0;
}
.comm-stage-name {
  font-size: .88rem;
  font-weight: 700;
  color: #f2f3f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-stage-you {
  font-style: normal;
  color: var(--comm-muted);
  font-weight: 500;
}
.comm-stage-mic-state {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #b5bac1;
  flex-shrink: 0;
}
.comm-stage-tile.is-muted .comm-stage-mic-state {
  color: #ed4245;
  background: rgba(237,66,69,.12);
}
.comm-stage-mic-state svg { width: 16px; height: 16px; }

.comm-stage-vols {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}
.comm-stage-vol {
  display: grid;
  grid-template-columns: 16px auto 1fr 28px;
  align-items: center;
  gap: 8px;
  color: #b5bac1;
  font-size: .72rem;
  font-weight: 600;
}
.comm-stage-vol svg { width: 14px; height: 14px; }
.comm-stage-vol-label { min-width: 2rem; }
.comm-stage-vol input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--stage-accent, var(--comm-accent));
  height: 4px;
  cursor: pointer;
}
.comm-stage-vol-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #dbdee1;
}

/* legado ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ foco / tiles antigos ainda referenciados em alguns pontos */
.comm-tile-media {
  position: relative;
  flex: 1 1 auto;
  min-height: calc(var(--tile-base, 240px) * 0.56);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0c10;
}
.comm-tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.comm-tile-media.comm-tile-avatar-only {
  display: grid;
  place-items: center;
  background: var(--comm-bg2);
}
.comm-tile-media.comm-tile-avatar-only .comm-avatar {
  width: min(72px, 42%);
  height: min(72px, 42%);
  border-radius: 50%;
}
.comm-tile-media.is-watching {
  box-shadow: 0 0 0 2px rgba(94,184,232,.45);
}

.comm-tile-actions {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.comm-tile-actions .btn { min-width: 7rem; }

.comm-tile-persona {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}
.comm-tile-av-sm .comm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.comm-tile-name {
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-tile-name em { font-style: normal; color: var(--comm-muted); font-weight: 500; }

.comm-tile-vols {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.comm-tile-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--comm-muted);
  font-size: .7rem;
}
.comm-tile-vol svg { width: 14px; height: 14px; flex-shrink: 0; }
.comm-tile-vol input[type="range"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  accent-color: var(--comm-accent);
  height: 4px;
  cursor: pointer;
}

.comm-stage-focus {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #05070b;
  border: 1px solid var(--comm-line);
}
.comm-stage-focus[hidden] { display: none !important; }
.comm-focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  flex-shrink: 0;
}
.comm-focus-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.comm-vol-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--comm-muted);
  font-size: .75rem;
}
.comm-vol-inline svg { width: 14px; height: 14px; }
.comm-vol-inline input[type="range"] {
  width: 88px;
  margin: 0;
  accent-color: var(--comm-accent);
  cursor: pointer;
}
.comm-focus-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.comm-focus-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.comm-peers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.comm-stage-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--comm-muted);
  padding: 48px 16px;
  border: 1px dashed var(--comm-line);
  border-radius: 16px;
}
.comm-peer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 12px;
  border-radius: 16px;
  background: var(--comm-bg3);
  border: 2px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.comm-peer.is-local { background: linear-gradient(180deg, rgba(94,184,232,.12), var(--comm-bg3)); }
.comm-peer.is-speaking { border-color: var(--comm-ok); }
.comm-peer.is-muted .comm-peer-av::after {
  content: "";
  position: absolute;
  inset: auto 4px 4px auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--comm-danger);
  box-shadow: 0 0 0 2px var(--comm-bg3);
}
.comm-peer-av {
  position: relative;
  width: 72px;
  height: 72px;
}
.comm-peer-av .comm-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.comm-peer-name {
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}
.comm-peer-name em { font-style: normal; color: var(--comm-muted); font-weight: 500; }
.comm-peer-vol {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
  color: var(--comm-muted);
  font-size: .7rem;
  font-weight: 600;
}
.comm-peer-vol svg { width: 14px; height: 14px; flex-shrink: 0; }
.comm-peer-vol input[type="range"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  accent-color: var(--comm-accent);
  height: 4px;
  cursor: pointer;
}
.comm-peer-vol span { min-width: 2.4em; text-align: right; color: var(--comm-muted); }
.comm-peer-vol.is-compact { margin: 0; width: auto; flex: 1; }

.comm-streams-wrap { display: flex; flex-direction: column; gap: 10px; }
.comm-streams-wrap[hidden] { display: none !important; }
.comm-streams-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.comm-streams-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--comm-muted);
}
.comm-size-group {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--comm-line);
}
.comm-size-btn {
  min-width: 28px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--comm-muted);
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 6px;
}
.comm-size-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.comm-size-btn.is-on { color: #fff; background: var(--comm-accent-soft); }

.comm-streams {
  display: grid;
  gap: 12px;
}
.comm-streams.is-preview-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.comm-streams.is-preview-md { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.comm-streams.is-preview-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.comm-stream-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--comm-line);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comm-stream-tile.is-watching {
  border-color: rgba(94,184,232,.55);
  box-shadow: 0 0 0 1px rgba(94,184,232,.2);
}
.comm-stream-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0c10;
  overflow: hidden;
}
.comm-stream-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.comm-stream-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
}
.comm-stream-play:hover {
  transform: scale(1.06);
  background: rgba(94,184,232,.85);
}
.comm-stream-play svg { width: 22px; height: 22px; margin-left: 2px; }
.comm-stream-tile.is-watching .comm-stream-play {
  background: rgba(94,184,232,.9);
}
.comm-stream-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  pointer-events: none;
}
.comm-stream-badge svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--comm-accent); }
.comm-stream-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-stream-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 10px;
}

.comm-watch {
  display: flex;
  flex-direction: column;
  background: #05070b;
  border-bottom: 1px solid var(--comm-line);
}
.comm-watch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}
.comm-watch-tools { display: flex; align-items: center; gap: 8px; }
.comm-watch-frame {
  width: 100%;
  margin: 0 auto;
  background: #000;
}
.comm-watch-video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  display: block;
}
.comm-watch.is-size-sm .comm-watch-frame { max-width: 360px; max-height: 28vh; }
.comm-watch.is-size-md .comm-watch-frame { max-width: 640px; max-height: 40vh; }
.comm-watch.is-size-lg .comm-watch-frame { max-width: 960px; max-height: 52vh; }
.comm-watch.is-size-xl .comm-watch-frame { max-width: none; max-height: min(72vh, 820px); }
.comm-watch.is-size-sm .comm-watch-video,
.comm-watch.is-size-md .comm-watch-video,
.comm-watch.is-size-lg .comm-watch-video,
.comm-watch.is-size-xl .comm-watch-video {
  max-height: inherit;
  aspect-ratio: 16 / 9;
}
.comm-watch-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  color: var(--comm-muted);
  background: rgba(0,0,0,.35);
}
.comm-watch-vol svg { width: 16px; height: 16px; }
.comm-watch-vol input[type="range"] {
  flex: 1;
  margin: 0;
  accent-color: var(--comm-accent);
  cursor: pointer;
}

.comm-voice-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--comm-line);
  background: rgba(0,0,0,.15);
}
.comm-voice-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comm-voice-actions .btn svg { width: 16px; height: 16px; }
.comm-voice-actions .btn.is-on {
  border-color: rgba(240,113,120,.45);
  color: var(--comm-danger);
}

.comm-members-panel {
  background: var(--comm-bg1);
  border-left: 1px solid var(--comm-line);
  padding: 14px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}
.comm-members-panel .comm-label { display: none; }
.comm-members-panel.is-wa-members,
.comm.is-wa-hub .comm-members-panel:not([hidden]) {
  overflow-x: hidden;
  overflow-y: auto;
}
.comm-members-panel [data-comm-members] {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.comm-label {
  margin: 0 0 10px;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--comm-muted);
  font-weight: 700;
}
.comm-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.comm-member:hover { background: rgba(255,255,255,.04); }
.comm-member strong { display: block; font-size: .84rem; line-height: 1.2; }
.comm-member em { font-style: normal; color: var(--comm-muted); font-size: .7rem; }
.comm-wa-member {
  align-items: center;
  gap: 8px;
  padding-left: 4px;
  padding-right: 4px;
}
.comm-wa-member .comm-wa-av,
.comm-wa-member .comm-wa-av-ph {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.comm-wa-member-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.comm-wa-member-meta strong,
.comm-wa-member-meta em {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  align-items: center;
}
.comm-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(0,0,0,.25);
  position: static;
  display: block;
  flex-shrink: 0;
  padding: 0;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: normal;
}

/* Mini card CS2 com borda de raridade + laser sÃÂÃÂÃÂÃÂ³ na borda (raros) */
.comm-skin-chip {
  --skin-accent: #8b9bb4;
  --chip-pad: 2px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  background: color-mix(in srgb, var(--skin-accent) 70%, #1a2030);
  border: 0;
  box-shadow: none;
  isolation: isolate;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.comm-skin-chip.size-xs { width: 22px; height: 22px; border-radius: 6px; --chip-pad: 1.5px; }
.comm-skin-chip.size-sm { width: 28px; height: 28px; }
.comm-skin-chip.size-md { width: 44px; height: 44px; border-radius: 9px; --chip-pad: 2px; }
/* anel girando atrÃÂÃÂÃÂÃÂ¡s; o miolo cobre o centro ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ laser sÃÂÃÂÃÂÃÂ³ na borda */
.comm-skin-chip .comm-skin-ring {
  display: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 255deg,
    color-mix(in srgb, var(--skin-accent) 35%, transparent) 280deg,
    var(--skin-accent) 300deg,
    #fff 315deg,
    var(--skin-accent) 330deg,
    transparent 348deg 360deg
  );
  animation: comm-skin-laser 2.2s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.comm-skin-chip.tier-rare .comm-skin-ring,
.comm-skin-chip.tier-epic .comm-skin-ring,
.comm-skin-chip.tier-legendary .comm-skin-ring,
.comm-skin-chip.tier-mythic .comm-skin-ring {
  display: block;
}
.comm-skin-chip.tier-legendary .comm-skin-ring { animation-duration: 1.9s; }
.comm-skin-chip.tier-mythic .comm-skin-ring { animation-duration: 1.5s; }
.comm-skin-chip .comm-skin-face {
  position: absolute;
  inset: var(--chip-pad);
  z-index: 1;
  border-radius: calc(inherit - 1px);
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(20,24,32,.98), rgba(8,10,14,.99));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  overflow: hidden;
}
.comm-skin-chip .comm-skin-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 15%, var(--skin-accent), transparent 72%);
  opacity: .22;
  pointer-events: none;
}
.comm-skin-chip.tier-rare .comm-skin-glow { opacity: .3; }
.comm-skin-chip.tier-epic .comm-skin-glow { opacity: .38; }
.comm-skin-chip.tier-legendary .comm-skin-glow,
.comm-skin-chip.tier-mythic .comm-skin-glow { opacity: .48; }
.comm-skin-chip img {
  position: relative;
  z-index: 2;
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.comm-skin-chip.tier-legendary,
.comm-skin-chip.tier-mythic {
  box-shadow: 0 0 10px color-mix(in srgb, var(--skin-accent) 35%, transparent);
}
@keyframes comm-skin-laser {
  to { transform: rotate(360deg); }
}
.comm-dialog.comm-dialog-wide,
.comm-dialog-wide {
  width: min(1100px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: min(92vh, 900px);
  margin: auto;
  overflow: hidden;
}
.comm-dialog-wide > .comm-dialog-form {
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  box-sizing: border-box;
}
.comm-dialog-wide .comm-dialog-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.comm-dialog-wide .form-actions {
  flex-shrink: 0;
  margin: 0;
}
.comm-steam-linked {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--comm-line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.comm-steam-linked img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #1a2030;
  flex-shrink: 0;
}
.comm-steam-linked strong { display: block; font-size: .95rem; }
.comm-steam-linked p { margin: 2px 0 0; font-size: .78rem; color: var(--comm-muted); }
.comm-steam-linked[hidden],
.comm-steam-unlink-row[hidden] { display: none !important; }
.comm-showcase-pick,
.comm-showcase-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  grid-auto-rows: minmax(148px, auto);
  align-content: start;
  gap: 10px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--comm-line);
  background: rgba(8, 10, 14, 0.45);
  backdrop-filter: blur(6px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.comm-showcase-pick-tall {
  max-height: min(48vh, 420px);
  min-height: 220px;
  flex: 1 1 auto;
}
.comm-showcase-pick::-webkit-scrollbar,
.comm-showcase-view::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.comm-showcase-pick::-webkit-scrollbar-thumb,
.comm-showcase-view::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
}
.comm-trade-filter {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3);
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}
.comm-pick-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  min-height: 148px;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--skin-accent, #8b9bb4) 55%, var(--comm-line));
  background: linear-gradient(160deg, rgba(20,24,32,.96), rgba(8,10,14,.98));
  border-radius: 10px;
  padding: 8px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  min-width: 0;
  overflow: hidden;
  --skin-accent: #8b9bb4;
  box-sizing: border-box;
}
.comm-pick-item.is-static { cursor: default; }
.comm-pick-item.is-on {
  border-color: var(--skin-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--skin-accent) 45%, transparent);
}
.comm-pick-item > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #0a0c10;
  border-radius: 6px;
  flex: 0 0 auto;
}
.comm-pick-item > span {
  position: relative;
  z-index: 1;
  font-size: .68rem;
  line-height: 1.25;
  color: var(--comm-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  flex: 0 0 auto;
}
.comm-pick-item.tier-legendary,
.comm-pick-item.tier-mythic {
  box-shadow: 0 0 14px color-mix(in srgb, var(--skin-accent) 28%, transparent);
}
.comm-trade-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.comm-trade-cols > div {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.comm-requests-btn {
  width: auto !important;
  min-width: 32px;
  padding: 0 8px !important;
  gap: 6px;
  display: inline-flex !important;
  align-items: center;
}
.comm-requests-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.comm-dm-person {
  display: flex !important;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.comm-dm-person .comm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.comm-dm-person-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
}
.comm-dm-person-meta strong {
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-dm-person-meta em {
  font-style: normal;
  font-size: .68rem;
  color: var(--comm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-dm-person .comm-dot-unread {
  margin-left: auto;
  flex-shrink: 0;
}
.comm-dm-empty-hint {
  display: block;
  padding: 10px 12px;
  font-size: .78rem;
  line-height: 1.4;
}
.comm.is-dm-hub .comm-sidebar-actions .comm-icon-btn:not([data-comm-requests]) {
  /* keep actions hidden via JS */
}
.comm-rail-dm.is-on {
  box-shadow: 0 0 0 2px var(--comm-accent, #66c0f4);
}
.comm-item-detail-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(20,24,32,.96), rgba(8,10,14,.98));
  border: 1px solid color-mix(in srgb, var(--skin-accent) 55%, var(--comm-line));
  margin-bottom: 12px;
}
.comm-item-detail-hero img {
  position: relative;
  z-index: 1;
  max-width: 70%;
  max-height: 160px;
  object-fit: contain;
}
.comm-item-detail-hero .comm-skin-ring {
  display: block;
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 255deg,
    var(--skin-accent) 300deg,
    #fff 315deg,
    var(--skin-accent) 330deg,
    transparent 348deg 360deg
  );
  animation: comm-skin-laser 2.2s linear infinite;
  opacity: .55;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  padding: 2px;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.comm-item-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.comm-item-facts dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--comm-muted);
}
.comm-item-facts dd { margin: 2px 0 0; font-weight: 600; }
.comm-item-prov ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--comm-muted);
  font-size: .84rem;
}
@media (max-width: 820px) {
  .comm-item-facts { grid-template-columns: 1fr; }
  .comm-showcase-pick,
  .comm-showcase-view {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-auto-rows: minmax(140px, auto);
  }
  .comm-pick-item { min-height: 140px; }
}
.comm-profile-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.comm-trades-list { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.comm-trade-card {
  border: 1px solid var(--comm-line);
  border-radius: 12px;
  padding: 12px;
  background: var(--comm-bg3);
}
.comm-trade-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.comm-trade-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.comm-dialog {
  border: 1px solid var(--comm-line);
  border-radius: 16px;
  padding: 0;
  background: var(--comm-bg2);
  color: var(--comm-text);
  width: min(400px, calc(100vw - 24px));
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
.comm-dialog.comm-dialog-settings {
  width: min(460px, calc(100vw - 24px));
  max-height: min(90vh, 720px);
}
.comm-dialog.comm-dialog-settings .comm-dialog-form {
  max-height: min(90vh, 720px);
  overflow: auto;
}
.comm-dialog.comm-dialog-wide {
  overflow: hidden;
}
.comm-dialog::backdrop { background: rgba(6,8,12,.65); backdrop-filter: blur(4px); }

.comm-dialog.comm-dialog-welcome {
  width: min(760px, calc(100vw - 20px));
  max-height: min(92vh, 720px);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}
.comm-welcome {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 720px);
}
.comm-welcome-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.35) 0%, rgba(30, 27, 75, 0.2) 55%, transparent 100%);
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}
.comm-welcome-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 4px;
}
.comm-welcome-head h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.comm-welcome-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--comm-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.comm-welcome-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--comm-text);
}
.comm-welcome-close svg { width: 16px; height: 16px; }
.comm-welcome-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.comm-welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px 14px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
  overflow: auto;
}
.comm-welcome-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--comm-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.comm-welcome-step svg { width: 15px; height: 15px; flex-shrink: 0; }
.comm-welcome-step.is-on {
  background: rgba(167, 139, 250, 0.16);
  color: #e9d5ff;
}
.comm-welcome-step:hover:not(.is-on) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--comm-text);
}
.comm-welcome-stage {
  position: relative;
  min-height: 280px;
  overflow: auto;
}
.comm-welcome-slide {
  display: none;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px 18px;
  animation: commWelcomeIn 0.22s ease;
}
.comm-welcome-slide.is-on { display: grid; }
@keyframes commWelcomeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.comm-welcome-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.22), rgba(88, 28, 135, 0.08) 55%, rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.14);
  color: #ddd6fe;
}
.comm-welcome-visual svg { width: 44px; height: 44px; }
.comm-welcome-visual-hero svg { width: 52px; height: 52px; }
.comm-welcome-copy h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.comm-welcome-copy p {
  margin: 0 0 12px;
  color: var(--comm-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.comm-welcome-list,
.comm-welcome-steps-list {
  margin: 0 0 14px;
  padding-left: 1.15rem;
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #c9cdd4;
}
.comm-welcome-steps-list { list-style: decimal; }
.comm-welcome-list li::marker { color: #a78bfa; }
.comm-welcome-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.comm-welcome-foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.1);
}
.comm-welcome-dots {
  display: none;
  gap: 6px;
}
.comm-welcome-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.comm-welcome-dot.is-on { background: #a78bfa; }
.comm-welcome-dont {
  margin: 0;
  font-size: 0.78rem;
  justify-self: center;
}
.comm-welcome-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.comm-welcome-progress {
  font-size: 0.75rem;
  min-width: 2.5rem;
  text-align: center;
}
@media (max-width: 720px) {
  .comm-welcome-body {
    grid-template-columns: 1fr;
  }
  .comm-welcome-steps {
    display: none;
  }
  .comm-welcome-dots {
    display: flex;
  }
  .comm-welcome-slide {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .comm-welcome-visual {
    min-height: 88px;
  }
  .comm-welcome-foot {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .comm-welcome-dont { justify-self: start; }
  .comm-welcome-nav {
    width: 100%;
    justify-content: space-between;
  }
}

.comm-dialog-form { padding: 20px; display: grid; gap: 12px; }
.comm-dialog-form h2 { margin: 0; font-size: 1.12rem; flex-shrink: 0; }
.comm-settings-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.comm-settings-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--comm-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.comm-settings-tab svg { width: 15px; height: 15px; }
.comm-settings-tab.is-on {
  background: rgba(167,139,250,.16);
  color: #e9d5ff;
}
.comm-settings-panel {
  display: grid;
  gap: 10px;
}
.comm-settings-panel[hidden] { display: none !important; }
.comm-notify-master {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}
.comm-notify-master input { width: auto; margin: 0; accent-color: #a78bfa; }
.comm-notify-perm { margin: 0; font-size: .78rem; }
.comm-notify-group {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.comm-notify-group legend {
  padding: 0 4px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--comm-muted);
  font-weight: 700;
}
.comm-notify-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  cursor: pointer;
}
.comm-notify-group input { width: auto; margin: 0; accent-color: #a78bfa; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.comm-dialog-form input:not([type="checkbox"]):not([type="radio"]),
.comm-dialog-form select {
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--comm-line);
  background: var(--comm-bg3);
  color: var(--comm-text);
  padding: 10px 12px;
}
.comm-dialog-form input[type="checkbox"],
.comm-dialog-form input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  accent-color: #a78bfa;
}
.comm-dialog-hint {
  margin: 0;
  font-size: .85rem;
  color: var(--comm-muted);
  line-height: 1.45;
}
.comm-dialog-note {
  margin: 0;
  font-size: .78rem;
  line-height: 1.4;
}
.comm-dialog-note strong { font-weight: 600; color: var(--comm-text); }
.comm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.35;
}
.comm-check input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
  accent-color: var(--comm-accent);
  cursor: pointer;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .comm.has-server {
    grid-template-columns: var(--comm-rail) var(--comm-side) minmax(0, 1fr);
  }
  .comm.has-server .comm-members-panel { display: none !important; }
}
/* Tablet estreito (nÃÂÃÂÃÂÃÂ£o celular Discord-stack, nÃÂÃÂÃÂÃÂ£o Electron) */
@media (max-width: 900px) and (min-width: 769px) {
  body.page-community:not(.is-desktop-app) .comm,
  body.page-community:not(.is-desktop-app) .comm.has-server {
    grid-template-columns: var(--comm-rail) minmax(0, 1fr);
    position: relative;
  }
  body.page-community:not(.is-desktop-app) .comm.is-wa-hub.has-server {
    grid-template-columns: var(--comm-rail) minmax(120px, 36vw) minmax(0, 1fr);
  }
  body.page-community:not(.is-desktop-app) .comm.has-server .comm-sidebar {
    position: absolute;
    z-index: 6;
    left: var(--comm-rail);
    top: 0;
    bottom: 0;
    width: min(260px, 78vw);
    box-shadow: 12px 0 40px rgba(0,0,0,.4);
  }
  body.page-community:not(.is-desktop-app) .comm.is-wa-hub.has-server .comm-sidebar {
    position: static;
    z-index: auto;
    width: auto;
    min-width: 0;
    box-shadow: none;
  }
  body.page-community:not(.is-desktop-app) .stage { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.page-community:not(.is-desktop-app) .comm-page {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  body.page-community:not(.is-desktop-app) .comm {
    height: auto;
    max-height: none;
    min-height: 0;
  }
}

/* CS2 inventory page */
body.page-cs2-inventory .stage { max-width: 1200px; margin: 0 auto; }
.cs2-inv-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.cs2-inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cs2-inv-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
}
.cs2-inv-summary {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.cs2-inv-accounts { display: flex; flex-direction: column; gap: 10px; }
.cs2-inv-account {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.cs2-inv-account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}
.cs2-inv-account-head::-webkit-details-marker { display: none; }
.cs2-inv-account-meta { flex: 1; min-width: 0; }
.cs2-inv-account-meta strong { display: block; }
.cs2-inv-account-meta em { font-style: normal; }
.cs2-inv-account-stats {
  display: flex;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
}
.cs2-inv-account-stats b { color: var(--bright); margin-right: 2px; }
.cs2-inv-account-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.cs2-inv-items { max-height: 420px; }
.cs2-inv-acc-error,
.cs2-inv-acc-empty { padding: 12px 0 4px; margin: 0; }
.cs2-inv-item-ph {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  display: block;
}
.cs2-inv-loading,
.cs2-inv-error { margin-bottom: 16px; }
.cs2-inv-error { color: #f87171; }

.cs2-acc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cs2-acc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102,192,244,.35);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.cs2-acc-card-body { flex: 1; min-width: 0; }
.cs2-acc-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs2-acc-card-title strong { font-size: 1.05rem; }
.cs2-acc-card-badge {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(102,192,244,.15);
  color: #66c0f4;
  font-weight: 700;
}
.cs2-acc-card.is-disabled { opacity: .72; }
.cs2-inv-store-meta { margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(245,193,92,.25);
  background: rgba(245,193,92,.08);
  color: #f5c15c;
}
.cs2-acc-card-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.cs2-acc-card-stats b { color: var(--bright); }
.cs2-acc-card-cta { font-size: .85rem; color: #66c0f4; white-space: nowrap; }
.cs2-acc-card-error { margin: 6px 0 0; font-size: .82rem; }

.cs2-account-title { display: flex; gap: 14px; align-items: center; }
.cs2-skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.cs2-skin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(20,24,32,.95), rgba(10,12,18,.98));
  border: 1px solid rgba(255,255,255,.08);
  min-height: 210px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cs2-skin-card:hover { transform: translateY(-3px) scale(1.02); }
.cs2-skin-card .cs2-skin-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--skin-accent, #8b9bb4), transparent 70%);
  opacity: .22;
  pointer-events: none;
}
.cs2-skin-card.tier-rare .cs2-skin-glow { opacity: .32; }
.cs2-skin-card.tier-epic .cs2-skin-glow { opacity: .42; }
.cs2-skin-card.tier-legendary .cs2-skin-glow { opacity: .55; }
.cs2-skin-card.tier-mythic .cs2-skin-glow { opacity: .7; }
.cs2-skin-card.tier-legendary,
.cs2-skin-card.tier-mythic {
  box-shadow: 0 0 24px color-mix(in srgb, var(--skin-accent) 35%, transparent);
}
.cs2-skin-img-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 14px 10px 6px;
  min-height: 110px;
}
.cs2-skin-img-wrap img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}
.cs2-skin-body {
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
}
.cs2-skin-rarity {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 4px;
  font-weight: 700;
}
.cs2-skin-name {
  display: block;
  font-size: .78rem;
  line-height: 1.25;
  margin-bottom: 6px;
  min-height: 2.5em;
}
.cs2-skin-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.cs2-skin-wear,
.cs2-skin-quality {
  font-size: .62rem;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}
.cs2-skin-prices { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.cs2-skin-price {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: #7ee787;
}
.cs2-skin-price-cs2 { color: #7ee787; }
.cs2-skin-price-steam {
  font-size: .72rem;
  font-weight: 600;
  color: #66c0f4;
}
.cs2-skin-market {
  display: inline-block;
  margin-top: 6px;
  font-size: .68rem;
  color: #66c0f4;
  text-decoration: none;
}
.cs2-skin-market:hover { text-decoration: underline; }

.cs2-item-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.cs2-item-hero .cs2-skin-card { min-height: 280px; pointer-events: none; }
.cs2-item-price-lg {
  font-size: 1.75rem;
  font-weight: 700;
  color: #7ee787;
  margin: 8px 0 4px;
}
.cs2-item-price-cs2 { color: #7ee787; }
.cs2-item-price-steam {
  font-size: 1rem;
  font-weight: 600;
  color: #66c0f4;
  margin: 0 0 16px;
}
.cs2-item-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.cs2-item-facts dt { font-size: .72rem; text-transform: uppercase; color: var(--muted); }
.cs2-item-facts dd { margin: 4px 0 0; font-weight: 600; }
.cs2-item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cs2-item-prov ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.cs2-item-chart-wrap {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255,255,255,.03);
}
.cs2-item-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 10px;
}
@media (max-width: 720px) {
  .cs2-item-layout { grid-template-columns: 1fr; }
  .cs2-skin-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.comm-server-settings-wrap { min-width: min(720px, 92vw); }

/* ---- Modal configuraÃÂÃÂÃÂÃÂ§ÃÂÃÂÃÂÃÂµes do servidor (largo, duas colunas) ---- */
.comm-dialog.comm-dialog-server-settings {
  width: min(1080px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: min(92vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.comm-server-settings {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
  min-height: 520px;
}
.comm-server-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.comm-server-settings-head h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.comm-server-settings-head p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 52ch;
}
.comm-dialog-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--comm-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.comm-dialog-x:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}
.comm-dialog-x svg { width: 18px; height: 18px; }
.comm-server-settings-tabs {
  margin: 0 24px 0;
  flex-shrink: 0;
}
.comm-server-settings-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.comm-server-appearance {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.comm-server-appearance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: start;
}
.comm-server-appearance-fields {
  display: grid;
  gap: 14px;
  align-content: start;
}
.comm-field {
  display: grid;
  gap: 6px;
}
.comm-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--comm-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comm-field-label svg { width: 14px; height: 14px; opacity: 0.85; }
.comm-field input:not([type="checkbox"]):not([type="color"]),
.comm-field textarea {
  width: 100%;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--comm-line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--comm-text);
  padding: 11px 13px;
  font-size: 0.92rem;
  box-sizing: border-box;
}
.comm-field textarea { resize: vertical; min-height: 84px; }
.comm-server-listed {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.18);
}
.comm-server-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.comm-server-media-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--comm-line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}
.comm-server-media-card h3 {
  margin: 0;
  font-size: 0.78rem;
}
.comm-server-media-inputs {
  display: grid;
  gap: 8px;
}
.comm-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
  color: var(--comm-text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.comm-file-btn:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
}
.comm-file-btn svg { width: 16px; height: 16px; }
.comm-server-preview-card {
  position: sticky;
  top: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--comm-line);
  background: rgba(0, 0, 0, 0.25);
}
.comm-server-preview-mock {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--comm-bg1);
}
.comm-server-preview-banner {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(167, 139, 250, 0.2));
  background-size: cover;
  background-position: center;
  font-size: 0.78rem;
}
.comm-server-preview-banner.has-image span { display: none; }
.comm-server-preview-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px 16px;
  margin-top: -22px;
}
.comm-server-preview-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--comm-bg1);
  background: var(--comm-bg2);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.comm-server-preview-icon-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--comm-muted);
}
.comm-server-preview-icon-ph svg { width: 26px; height: 26px; }
.comm-server-preview-meta strong {
  display: block;
  font-size: 1rem;
  margin-top: 24px;
}
.comm-server-preview-meta p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comm-server-settings-actions {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.comm-server-settings-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.comm-server-settings-actions .btn svg { width: 16px; height: 16px; }

.comm-roles-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  min-height: 420px;
}
.comm-roles-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--comm-line);
  background: rgba(0, 0, 0, 0.18);
}
.comm-roles-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.comm-roles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  overflow: auto;
  max-height: min(52vh, 480px);
  scrollbar-width: thin;
}
.comm-role-pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--comm-text);
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.comm-role-pick:hover {
  border-color: rgba(167, 139, 250, 0.28);
  background: rgba(167, 139, 250, 0.06);
}
.comm-role-pick.is-on {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.14);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2) inset;
}
.comm-role-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.comm-roles-editor-wrap {
  min-height: 420px;
  position: relative;
}
.comm-roles-editor {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--comm-line);
  background: rgba(0, 0, 0, 0.2);
  min-height: 420px;
  box-sizing: border-box;
}
.comm-roles-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}
.comm-roles-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.comm-field-color input[type="color"] {
  width: 52px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--comm-line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.comm-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comm-perms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.comm-perms-group {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.comm-perms-group legend {
  padding: 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--comm-muted);
  font-weight: 700;
}
.comm-perm-item { font-size: 0.84rem; line-height: 1.35; }
.comm-roles-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 420px;
  padding: 32px 24px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--comm-muted);
}
.comm-roles-empty-state[hidden] { display: none !important; }
.comm-roles-empty-state svg {
  width: 40px;
  height: 40px;
  opacity: 0.45;
}
.comm-roles-empty-state p {
  margin: 0;
  max-width: 28ch;
  font-size: 0.9rem;
  line-height: 1.5;
}
.comm-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.comm-member-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--tag-color, #949ba4) 22%, transparent);
  color: var(--tag-color, #949ba4);
  border: 1px solid color-mix(in srgb, var(--tag-color, #949ba4) 40%, transparent);
}
.comm-member-card[style*="--member-card-accent"] {
  border-left: 3px solid var(--member-card-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--member-card-accent) 12%, transparent), transparent);
}
.comm-profile-roles {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: grid;
  gap: 8px;
}
.comm-profile-role-picks {
  display: grid;
  gap: 6px;
}
.comm-role-assign {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
}
@media (max-width: 900px) {
  .comm-server-appearance-grid { grid-template-columns: 1fr; }
  .comm-server-preview-card { position: static; order: -1; }
  .comm-server-media-grid { grid-template-columns: 1fr; }
  .comm-roles-layout { grid-template-columns: 1fr; }
  .comm-roles-editor-head { grid-template-columns: 1fr; }
  .comm-perms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .comm-dialog.comm-dialog-server-settings {
    width: calc(100vw - 12px);
    max-height: 96vh;
  }
  .comm-server-settings { min-height: 0; }
  .comm-server-settings-head,
  .comm-server-settings-body { padding-left: 14px; padding-right: 14px; }
  .comm-server-settings-tabs { margin-left: 14px; margin-right: 14px; }
}

/* ==========================================================================
   Comunidade mobile ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ espelha Discord app (web celular only)
   - guild: rail ÃÂÃÂÃÂÃÂ­cones (esq) + canais (dir)
   - main: chat/voz tela cheia + voltar
   NÃÂÃÂÃÂÃÂO aplica em Electron (is-desktop-app) nem desktop (>=769px)
   ========================================================================== */
.comm-mobile-back,
.comm-mobile-members-btn {
  display: none;
}

@media (max-width: 768px) {
  /* Esconde dock do site sÃÂÃÂÃÂÃÂ³ na Comunidade mobile ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ mais espaÃÂÃÂÃÂÃÂ§o, como app */
  body.page-community:not(.is-desktop-app).has-app-nav .app-dock {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app).has-app-nav .stage {
    padding-bottom: 0 !important;
  }
  body.page-community:not(.is-desktop-app) {
    overflow: hidden;
  }
  body.page-community:not(.is-desktop-app) .stage {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  body.page-community:not(.is-desktop-app) .comm-page {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }
  body.page-community:not(.is-desktop-app) .comm {
    --comm-rail: 64px;
    --comm-side: minmax(0, 1fr);
    display: grid !important;
    grid-template-rows: 1fr;
    position: relative;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: var(--comm-bg0);
  }
  /* Guild / lista: sempre rail + canais (nunca 3ÃÂÃÂÃÂÃÂª/4ÃÂÃÂÃÂÃÂª coluna desktop) */
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view="main"]),
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view="main"]).has-server,
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view="main"]).has-server.is-wa-hub,
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view="main"]).has-server.is-wa-hub:not(.has-wa-peer),
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view="main"]).has-server.is-wa-hub.has-wa-peer,
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view="main"]).has-server.is-dm-hub {
    grid-template-columns: var(--comm-rail) minmax(0, 1fr) !important;
  }

  /* Sem data-view ainda: esconde membros (coluna desktop) */
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view]) > .comm-members-panel {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view]).has-server > .comm-main {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view]).has-server > .comm-sidebar,
  body.page-community:not(.is-desktop-app) .comm:not([data-comm-mobile-view]).has-server > .comm-sidebar[hidden] {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    position: relative !important;
    left: auto !important;
    box-shadow: none !important;
  }

  /* ---- guild: rail + sidebar (ou rail + main se sem servidor) ---- */
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"],
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"].has-server,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"].is-wa-hub.has-server,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"].is-dm-hub.has-server,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="servers"],
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="channels"] {
    grid-template-columns: var(--comm-rail) minmax(0, 1fr) !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"] > .comm-rail {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: var(--comm-rail) !important;
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #0a0c10;
    border-right: 1px solid var(--comm-line);
    z-index: 3;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"].has-server > .comm-sidebar {
    display: flex !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    position: relative !important;
    left: auto !important;
    box-shadow: none !important;
    background: var(--comm-bg1);
    border-right: none;
    overflow: hidden;
    z-index: 2;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"].has-server > .comm-sidebar[hidden] {
    display: flex !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"].has-server > .comm-main {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"]:not(.has-server) > .comm-sidebar {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"]:not(.has-server) > .comm-main {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="guild"] > .comm-members-panel {
    display: none !important;
  }

  /* ---- main: sÃÂÃÂÃÂÃÂ³ chat/voz (ganha de WA has-wa-peer / 4 colunas) ---- */
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"],
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].has-server,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-wa-hub,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-wa-hub.has-server,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-wa-hub.has-server.has-wa-peer,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-dm-hub,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-dm-hub.has-server {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-rail,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-sidebar,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-voice-float {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-members-panel,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-members-panel:not([hidden]),
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-wa-hub > .comm-members-panel:not([hidden]) {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-mobile-members-open > .comm-members-panel,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-mobile-members-open > .comm-members-panel[hidden],
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-mobile-members-open.is-wa-hub > .comm-members-panel:not([hidden]) {
    display: flex !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-main {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    overflow: hidden;
    background: var(--comm-bg0);
    z-index: 2;
    grid-column: 1 / -1;
  }

  /* Compat: servers/channels = guild (rail + canais) */
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="servers"] > .comm-rail,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="channels"] > .comm-rail {
    display: flex !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="servers"].has-server > .comm-sidebar,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="channels"].has-server > .comm-sidebar,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="servers"].has-server > .comm-sidebar[hidden],
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="channels"].has-server > .comm-sidebar[hidden] {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    position: relative !important;
    left: auto !important;
    box-shadow: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="servers"].has-server > .comm-main,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="channels"].has-server > .comm-main {
    display: none !important;
  }

  /* Rail = ÃÂÃÂÃÂÃÂ­cones circulares (Discord), sem texto */
  body.page-community:not(.is-desktop-app) .comm-rail-sep {
    width: 32px;
    height: 2px;
    margin: 2px 0;
    border-radius: 2px;
    background: var(--comm-line);
  }
  body.page-community:not(.is-desktop-app) .comm-server-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  body.page-community:not(.is-desktop-app) .comm-server-list li {
    width: auto;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 16px;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-btn.is-on {
    border-radius: 14px;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-btn[title]::after {
    content: none !important;
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-btn .comm-rail-icon,
  body.page-community:not(.is-desktop-app) .comm-rail-btn img.comm-rail-icon {
    width: 48px;
    height: 48px;
    border-radius: inherit;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-wa-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-wa-label {
    display: none;
  }
  body.page-community:not(.is-desktop-app) .comm-rail-badge {
    top: -2px;
    right: -2px;
  }

  /* Sidebar / canais */
  body.page-community:not(.is-desktop-app) .comm-sidebar-head {
    gap: 8px;
    padding: 12px 14px;
    min-height: 0;
    align-items: stretch;
  }
  /* Sem voltar na lista ÃÂÃÂ¢ÃÂÃÂÃÂÃÂ rail jÃÂÃÂÃÂÃÂ¡ estÃÂÃÂÃÂÃÂ¡ ÃÂÃÂÃÂÃÂ  esquerda */
  body.page-community:not(.is-desktop-app) .comm-sidebar-head .comm-mobile-back {
    display: none !important;
  }
  body.page-community:not(.is-desktop-app) .comm-sidebar-title {
    width: 100%;
    min-width: 0;
  }
  body.page-community:not(.is-desktop-app) .comm-sidebar-title strong {
    font-size: 1rem;
    display: block;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  body.page-community:not(.is-desktop-app) .comm-channel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 8px 16px;
  }
  body.page-community:not(.is-desktop-app) .comm-cat ul button,
  body.page-community:not(.is-desktop-app) .comm-wa-chat-item,
  body.page-community:not(.is-desktop-app) [data-comm-dm-people] button {
    min-height: 44px;
    border-radius: 8px;
  }

  /* Chat / voz */
  body.page-community:not(.is-desktop-app) .comm-chat,
  body.page-community:not(.is-desktop-app) .comm-voice,
  body.page-community:not(.is-desktop-app) .comm-matches,
  body.page-community:not(.is-desktop-app) .comm-empty {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  body.page-community:not(.is-desktop-app) .comm-main-head {
    gap: 8px;
    padding: 8px 10px;
    min-height: 52px;
    align-items: center;
    border-bottom: 1px solid var(--comm-line);
    background: var(--comm-bg1);
  }
  body.page-community:not(.is-desktop-app) .comm-main-head [data-comm-channel-name],
  body.page-community:not(.is-desktop-app) .comm-main-head [data-comm-voice-label] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
  }
  body.page-community:not(.is-desktop-app) .comm-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }
  body.page-community:not(.is-desktop-app) .comm-compose {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    border-top: 1px solid var(--comm-line);
    background: var(--comm-bg1);
  }
  body.page-community:not(.is-desktop-app) .comm-compose textarea {
    font-size: 16px;
    min-height: 40px;
  }
  body.page-community:not(.is-desktop-app) .comm-voice-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.page-community:not(.is-desktop-app) .comm-voice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--comm-bg1);
    border-top: 1px solid var(--comm-line);
  }
  body.page-community:not(.is-desktop-app) .comm-voice-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
  body.page-community:not(.is-desktop-app) .comm-empty-card {
    margin: auto;
    padding: 24px 20px;
    max-width: 320px;
  }
  body.page-community:not(.is-desktop-app) .comm-empty-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  body.page-community:not(.is-desktop-app) .comm-empty-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Card de voz: faixa acima da userbar (nÃÂÃÂÃÂÃÂ£o cobre mic/config) */
  body.page-community:not(.is-desktop-app) .comm-voice-float {
    left: var(--comm-rail, 64px);
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    border-radius: 0;
    z-index: 8;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] > .comm-voice-float {
    display: none !important;
  }
  /* Em call + chat texto: faixa no topo do main (nÃÂÃÂÃÂÃÂ£o cobre compose) */
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-voice-away > .comm-voice-float {
    display: flex !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    position: absolute;
    z-index: 12;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"].is-voice-away > .comm-main {
    padding-top: 52px;
  }

  body.page-community:not(.is-desktop-app) .comm-mobile-back,
  body.page-community:not(.is-desktop-app) .comm-mobile-members-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--comm-text);
    cursor: pointer;
    flex-shrink: 0;
  }
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] .comm-main-head .comm-mobile-back,
  body.page-community:not(.is-desktop-app) .comm[data-comm-mobile-view="main"] .comm-main-head .comm-mobile-members-btn {
    display: inline-flex !important;
  }

  /* Drawer membros */
  body.page-community:not(.is-desktop-app) .comm-members-panel {
    display: none !important;
    position: absolute !important;
    inset: 0;
    z-index: 40;
    background: var(--comm-bg1);
    border-left: none;
    flex-direction: column;
  }
  body.page-community:not(.is-desktop-app) .comm.is-mobile-members-open .comm-members-panel,
  body.page-community:not(.is-desktop-app) .comm.is-mobile-members-open .comm-members-panel[hidden] {
    display: flex !important;
  }
  body.page-community:not(.is-desktop-app) .comm-members-head {
    gap: 8px;
    min-height: 56px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--comm-line);
  }
  body.page-community:not(.is-desktop-app) .comm.is-mobile-members-open [data-comm-mobile-members-close] {
    display: inline-flex !important;
  }
  body.page-community:not(.is-desktop-app) .comm-members-panel [data-comm-members] {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px 24px;
  }

  body.page-community:not(.is-desktop-app) .comm-userbar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--comm-line);
  }
  body.page-community:not(.is-desktop-app) .comm-ctrl {
    width: 40px;
    height: 40px;
  }

  body.page-community:not(.is-desktop-app) .comm-sidebar-actions .comm-requests-label {
    display: none;
  }
  body.page-community:not(.is-desktop-app) .comm-sidebar-actions .comm-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
  }

  /* WhatsApp chat: compose e bolhas usÃÂÃÂÃÂÃÂ¡veis no mobile */
  body.page-community:not(.is-desktop-app) .comm.is-wa-hub .comm-chat {
    min-height: 0;
  }
  body.page-community:not(.is-desktop-app) .comm.is-wa-hub .comm-messages {
    padding: 10px;
  }
  body.page-community:not(.is-desktop-app) .comm.is-wa-hub .comm-compose {
    flex-wrap: wrap;
  }
  body.page-community:not(.is-desktop-app) .comm.is-wa-hub .comm-compose textarea {
    flex: 1 1 100%;
    order: -1;
  }

  body.page-community:not(.is-desktop-app) .comm-dialog {
    width: calc(100vw - 16px);
    max-width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto;
    border-radius: 14px;
  }
  body.page-community:not(.is-desktop-app) .comm-dialog.comm-dialog-wide {
    width: calc(100vw - 12px);
  }
}

.comm-public-watch-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 10px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.comm-public-watch-bar[hidden] { display: none !important; }
.comm-public-watch-bar svg { width: 16px; height: 16px; color: #c4b5fd; flex-shrink: 0; }
.comm-public-watch-label { font-size: .78rem; font-weight: 700; color: #e9d5ff; }
.comm-public-watch-bar input {
  flex: 1;
  min-width: 120px;
  font-size: .75rem;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  color: var(--comm-text);
}
.comm-public-watch-meta { font-size: .72rem; }

.comm-public-watch-drop {
  position: relative;
  margin: .5rem 0 .75rem;
}
.comm-public-watch-drop[hidden] { display: none !important; }
.comm-public-watch-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, .35);
  background: rgba(15, 12, 28, .65);
  color: #e9d5ff;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.comm-public-watch-drop-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.comm-public-watch-drop-chevron {
  margin-left: .15rem;
  transition: transform .15s ease;
}
.comm-public-watch-drop.is-open .comm-public-watch-drop-chevron {
  transform: rotate(180deg);
}
.comm-public-watch-drop-badge {
  min-width: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-align: center;
  background: rgba(167, 139, 250, .35);
  color: #fff;
}
.comm-public-watch-drop-badge[hidden] { display: none !important; }
.comm-public-watch-drop-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-width: 520px;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, .28);
  background: rgba(12, 10, 22, .98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.comm-public-watch-drop-panel[hidden] { display: none !important; }
.comm-public-watch-mine-bar {
  margin-bottom: .65rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.comm-public-watch-mine-bar[hidden] { display: none !important; }
.comm-public-watch-mine-row {
  display: flex;
  gap: .35rem;
  margin: .35rem 0;
}
.comm-public-watch-mine-row input {
  flex: 1;
  min-width: 0;
  padding: .35rem .5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  color: var(--comm-text);
  font-size: .78rem;
}
.comm-public-watch-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: #c4b5fd;
}
.comm-public-watch-board {
  margin: .5rem 0 .75rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, .22);
  background: rgba(15, 12, 28, .55);
}
.comm-public-watch-board[hidden] { display: none !important; }
.comm-public-watch-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.comm-public-watch-board-head h3 {
  margin: 0;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  color: #e9d5ff;
}
.comm-public-watch-board-head svg { width: 15px; height: 15px; }
.comm-public-watch-board-list { display: flex; flex-direction: column; gap: .5rem; }
.comm-public-watch-item {
  padding: .55rem .65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .22);
}
.comm-public-watch-item.is-mine { border-color: rgba(167, 139, 250, .45); }
.comm-public-watch-item-top {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.comm-public-watch-item-meta { margin: .25rem 0 .45rem; font-size: .74rem; }
.comm-public-watch-item-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: center;
}
.comm-public-watch-item-actions input {
  flex: 1 1 180px;
  min-width: 0;
  font-size: .72rem;
  padding: .3rem .45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .35);
  color: #e5e7eb;
}
.comm-public-watch-live {
  font-size: .65rem;
  font-weight: 800;
  color: #fecaca;
  background: rgba(239, 68, 68, .2);
  padding: .1rem .35rem;
  border-radius: 4px;
}
.comm-public-watch-mine {
  font-size: .65rem;
  font-weight: 700;
  color: #c4b5fd;
}

.comm-live-public-watch {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.comm-live-public-max input { max-width: 120px; }
.comm-live-share-quality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .comm-live-share-quality { grid-template-columns: 1fr; }
}
[data-comm-public-watch-chat-post-wrap][hidden] { display: none !important; }

.page-watch-public .content { max-width: 1200px; margin: 0 auto; padding: 16px; }
.watch-public-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.watch-public-brand {
  font-weight: 700;
  color: #e9d5ff;
  text-decoration: none;
}
.watch-public-live-badge {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: #ef4444;
  padding: 4px 10px;
  border-radius: 999px;
}
.watch-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.watch-public-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.watch-public-video-wrap {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  min-height: 280px;
}
.watch-public-video {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #000;
}
.watch-public-volume {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
}
.watch-public-volume[hidden] { display: none !important; }
.watch-public-volume svg { width: 18px; height: 18px; flex-shrink: 0; }
.watch-public-volume input[type="range"] {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.watch-public-volume span {
  min-width: 2.8rem;
  text-align: right;
  font-weight: 700;
  font-size: .78rem;
  color: #e9d5ff;
}
.watch-public-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 10, 16, 0.72);
  color: #c9cdd4;
}
.watch-public-overlay[hidden] { display: none !important; }
.watch-public-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(167, 139, 250, 0.25);
  border-top-color: #a78bfa;
  animation: watchSpin 0.8s linear infinite;
}
@keyframes watchSpin { to { transform: rotate(360deg); } }
.watch-public-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  background: var(--comm-bg2, #141820);
  border: 1px solid rgba(255,255,255,.08);
}
.watch-public-meta-body { min-width: 0; }
.watch-public-meta h1 { margin: 0 0 6px; font-size: 1.1rem; }
.watch-public-streamer { margin: 0 0 8px; color: var(--comm-muted); font-size: .88rem; }
.watch-public-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.watch-public-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: calc(72vh + 88px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: var(--comm-bg2, #141820);
  overflow: hidden;
}
.watch-public-chat[hidden] { display: none !important; }
.watch-public-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.watch-public-chat-head strong { font-size: .92rem; }
.watch-public-chat-sub { margin: 2px 0 0; font-size: .74rem; }
.watch-public-chat-close {
  border: none;
  background: transparent;
  color: var(--comm-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.watch-public-chat-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.watch-public-chat-msgs {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.watch-public-chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.watch-public-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #ede9fe;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}
.watch-public-chat-bubble { min-width: 0; flex: 1; }
.watch-public-chat-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.watch-public-chat-author {
  font-size: .8rem;
  font-weight: 700;
  color: #f3f4f6;
}
.watch-public-chat-time {
  font-size: .68rem;
  color: var(--comm-muted);
}
.watch-public-chat-body {
  margin: 0;
  font-size: .84rem;
  line-height: 1.4;
  color: #d1d5db;
  word-break: break-word;
}
.watch-public-chat-prov {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.watch-public-chat-prov.is-twitch { background: rgba(145, 70, 255, .25); color: #d8b4fe; }
.watch-public-chat-prov.is-youtube { background: rgba(239, 68, 68, .22); color: #fecaca; }
.watch-public-chat-prov.is-public { background: rgba(34, 197, 94, .2); color: #bbf7d0; }
.watch-public-chat-prov.is-community { background: rgba(167, 139, 250, .2); color: #ddd6fe; }
.watch-public-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
}
.watch-public-chat-form[hidden] { display: none !important; }
.watch-public-chat-form input {
  flex: 1;
  min-width: 0;
  padding: .5rem .65rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  color: #fff;
}
.watch-public-chat-form .btn { min-width: 2.25rem; padding-inline: .65rem; }
.watch-public-chat-readonly {
  margin: 0;
  padding: 10px 12px;
  font-size: .78rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.watch-public-chat-readonly[hidden] { display: none !important; }
.watch-public-chat-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, .4);
  background: rgba(76, 29, 149, .92);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.watch-public-chat-fab.is-on { background: rgba(30, 27, 46, .95); }
.watch-public-name-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 360px;
  width: calc(100% - 32px);
}
.watch-public-name-form {
  padding: 20px;
}
.watch-public-name-form h2 { margin: 0 0 8px; font-size: 1.1rem; }
.watch-public-name-actions {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0;
  padding: 0;
}
.watch-public-error {
  margin-top: 12px;
  color: #fca5a5;
}
@media (max-width: 960px) {
  .watch-public-layout { grid-template-columns: 1fr; }
  .watch-public-chat {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 25;
    max-height: 58vh;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,.45);
  }
  .watch-public.has-chat-open .watch-public-chat-fab { display: none; }
  .watch-public-chat-fab { display: inline-flex; }
}


/* ÃÂÃÂÃÂÃÂ Partidas CS2 (matchmaking) ÃÂÃÂÃÂÃÂ */
.comm-matches {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.comm-matches[hidden] { display: none !important; }
.comm-matches-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 28px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.comm-matches-status {
  margin-left: auto;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--comm-muted, #949ba4);
}
.comm-matches-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.comm-matches-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.comm-matches-tab {
  border: 0;
  background: rgba(255,255,255,.06);
  color: var(--comm-muted, #949ba4);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.comm-matches-tab.is-on {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.comm-match-card,
.comm-match-lobby {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.comm-match-card h3,
.comm-match-lobby h3,
.comm-match-team h4,
.comm-match-veto h4 {
  margin: 0;
  font-size: 0.95rem;
}
.comm-match-lobby-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.comm-match-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .comm-match-teams { grid-template-columns: 1fr; }
}
.comm-match-team ul,
.comm-match-party-list,
.comm-match-queue-list,
.comm-match-history,
.comm-match-ratings,
.comm-match-maps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.comm-match-player,
.comm-match-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.comm-match-player-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comm-match-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255,255,255,.08);
  color: #dfe6f0;
}
.comm-match-pill.is-ok { background: rgba(87,242,135,.15); color: #57f287; }
.comm-match-pill.is-bad { background: rgba(237,66,69,.18); color: #ed4245; }
.comm-match-queue {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.comm-match-queue > div:first-child {
  display: grid;
  gap: 2px;
}
.comm-match-queue-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.comm-match-create-queue,
.comm-match-invite-row,
.comm-match-finish,
.comm-match-actions,
.comm-match-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.comm-match-create-queue input,
.comm-match-create-queue select,
.comm-match-invite-row select,
.comm-match-finish input {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.1);
  color: inherit;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}
.comm-match-finish input { width: 56px; }
.comm-match-connect code {
  display: block;
  padding: 8px 10px;
  background: rgba(0,0,0,.35);
  border-radius: 6px;
  word-break: break-all;
}
.comm-match-map {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.comm-match-rank {
  width: 1.5rem;
  text-align: right;
  color: var(--comm-muted, #949ba4);
  font-variant-numeric: tabular-nums;
}

/* ÃÂÃÂ Perfil edit tabs + histÃÂ³rico CS2 ÃÂÃÂ */
.comm-profile-edit-tabs {
  padding: 0 1.25rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.comm-profile-edit-panel {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.comm-profile-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.comm-history-steps {
  margin: .5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--comm-muted, #949ba4);
  line-height: 1.45;
}
.comm-history-steps a { color: #8ab4ff; }
.comm-dialog-profile-edit {
  width: min(720px, calc(100vw - 1.5rem));
  max-height: min(92vh, 900px);
}
.comm-dialog-profile-edit .comm-profile-edit-body {
  overflow: auto;
  max-height: min(58vh, 560px);
}
.cs2-hist-panel { padding-bottom: 1.25rem; }
.cs2-hist-tabs { padding: 0 1rem 0; }
.cs2-hist-body { padding: 1rem; }
.cs2-hist-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.cs2-hist-card {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: grid;
  gap: .25rem;
}
.cs2-hist-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cs2-hist-item {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
  padding: .65rem .75rem;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
}
.cs2-hist-item code { flex: 1; min-width: 12rem; word-break: break-all; }
.cs2-match-list { display: grid; gap: .85rem; }
.cs2-match-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}
.cs2-match-card[data-result="win"] {
  border-color: rgba(62, 168, 110, .45);
  box-shadow: inset 3px 0 0 rgba(62, 168, 110, .75);
}
.cs2-match-card[data-result="loss"] {
  border-color: rgba(196, 78, 78, .4);
  box-shadow: inset 3px 0 0 rgba(196, 78, 78, .7);
}
.cs2-match-card[data-result="pending"] {
  box-shadow: inset 3px 0 0 rgba(255,255,255,.18);
}
.cs2-match-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem .55rem;
}
.cs2-match-identity { min-width: 0; flex: 1; }
.cs2-match-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.cs2-match-mapname {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
.cs2-match-badge {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
}
.cs2-match-badge--win { background: rgba(62, 168, 110, .22); color: #a8efc2; }
.cs2-match-badge--loss { background: rgba(196, 78, 78, .22); color: #ffb3b3; }
.cs2-match-badge--pending { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.cs2-match-scoreboard {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
}
.cs2-match-score-us,
.cs2-match-score-them {
  font-size: 1.85rem;
  font-weight: 800;
}
.cs2-match-card[data-result="win"] .cs2-match-score-us { color: #9de0b4; }
.cs2-match-card[data-result="loss"] .cs2-match-score-us { color: #f0a0a0; }
.cs2-match-score-sep {
  font-size: 1.2rem;
  opacity: .45;
  padding: 0 .1rem;
}
.cs2-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-top: .45rem;
  font-size: .86rem;
  color: rgba(255,255,255,.62);
}
.cs2-match-meta span::before {
  content: "·";
  margin-right: .75rem;
  opacity: .5;
}
.cs2-match-meta time::before { content: none; margin: 0; }
.cs2-match-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0 1.1rem .9rem;
}
.cs2-match-body {
  padding: .85rem 1.1rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.16);
}
.cs2-match-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.cs2-match-team h4 {
  margin: 0 0 .55rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .75;
}
.cs2-match-team--allies h4 { color: #9de0b4; opacity: 1; }
.cs2-match-team--enemies h4 { color: #f0a0a0; opacity: 1; }
.cs2-match-table-wrap { overflow-x: auto; }
.cs2-match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.cs2-match-table th {
  text-align: left;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .55;
  font-weight: 600;
  padding: 0 .35rem .4rem;
  white-space: nowrap;
}
.cs2-match-table th:not(:first-child),
.cs2-match-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cs2-match-player td {
  padding: .4rem .35rem;
  border-top: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}
.cs2-match-player.is-self td {
  background: rgba(70, 140, 200, .14);
}
.cs2-match-player.is-self td:first-child { border-radius: 8px 0 0 8px; }
.cs2-match-player.is-self td:last-child { border-radius: 0 8px 8px 0; }
.cs2-match-pwho {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 8rem;
}
.cs2-match-av {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cs2-match-av--empty {
  display: inline-block;
  background: rgba(255,255,255,.1);
}
.cs2-match-pname { font-weight: 600; }
.cs2-match-pname em { font-style: normal; opacity: .6; font-weight: 500; font-size: .78rem; }
.cs2-match-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  align-items: center;
  justify-content: space-between;
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.cs2-match-foot code {
  font-size: .75rem;
  opacity: .7;
  word-break: break-all;
}
.cs2-match-demo-link {
  font-size: .85rem;
  color: #9ec4ff;
  text-decoration: none;
}
.cs2-match-demo-link:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .cs2-match-teams { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cs2-match-head { flex-direction: column; gap: .65rem; }
  .cs2-match-scoreboard { align-self: flex-start; }
  .cs2-match-score-us,
  .cs2-match-score-them { font-size: 1.55rem; }
}
.cs2-hist-setup {
  display: grid;
  gap: .85rem;
  max-width: 520px;
}
.cs2-hist-setup label { display: grid; gap: .35rem; }
.cs2-hist-setup input {
  padding: .55rem .65rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: inherit;
  font: inherit;
}
.cs2-hist-manual { display: grid; gap: .5rem; max-width: 640px; }
.cs2-hist-manual textarea {
  padding: .55rem .65rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: inherit;
  font: inherit;
  resize: vertical;
}
