:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: rgba(17, 26, 47, 0.92);
  --line: #243453;
  --text: #eef4ff;
  --muted: #92a5c9;
  --accent: #5b9cff;
  --accent-2: #78b3ff;
  --danger: #ff6b6b;
  --danger-2: #ff8c8c;
  --ok: #2bd59a;
  --ok-2: #7be6be;
  --warn: #f0a24f;
  --warn-2: #c97a28;
  --user-bg: #11273a;
  --admin-bg: #1a2238;
  --system-bg: #2a2631;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; font-family: Segoe UI, system-ui, sans-serif; color: var(--text); background: radial-gradient(circle at top left, #152547 0%, #0b1220 42%), linear-gradient(180deg, #0c1322, #111a2d); }
button, input, textarea { font: inherit; }
a { color: var(--accent-2); }
.screen { height: 100vh; }
.center { display: grid; place-items: center; }
.hidden { display: none !important; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24); }
.login-card { width: min(440px, calc(100vw - 32px)); padding: 28px; display: grid; gap: 14px; }
.login-card h1 { margin: 0; font-size: 34px; }
.login-card p { margin: 0; color: var(--muted); }
.login-card input, .reply-box textarea, .reply-actions input[type="file"] { width: 100%; background: #0d1526; border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; }
.login-card button, .topbar button, .reply-actions button, .ticket-actions button, .filter, .load-more { color: white; border: 0; border-radius: 12px; padding: 10px 15px; cursor: pointer; }
.login-card button, .topbar button, .reply-actions button, .filter, .load-more { background: var(--accent); }
#closeBtn { background: linear-gradient(180deg, var(--danger-2), var(--danger)); }
#reopenBtn { background: linear-gradient(180deg, #3fe0a9, var(--ok)); }
#blockBtn { background: linear-gradient(180deg, #d89247, var(--warn-2)); }
#unblockBtn { background: linear-gradient(180deg, #3fe0a9, var(--ok)); }
.login-card button:hover, .topbar button:hover, .reply-actions button:hover, .ticket-actions button:hover, .filter:hover, .load-more:hover { filter: brightness(1.06); }
.error { color: #ff8f8f; }
.app-shell { display: grid; grid-template-rows: 82px 1fr; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.topbar-title h1 { margin: 0; font-size: 32px; }
.topbar-meta { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.topbar-meta small { color: var(--muted); }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-actions button { min-width: 48px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #5f9eff, #4a86e8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.icon-btn-symbol {
  font-size: 15px;
  line-height: 1;
}
.icon-btn-label {
  font-weight: 600;
}
.ghost-btn {
  background: #1d2a45 !important;
  color: #d9e7ff;
  border: 1px solid rgba(120, 179, 255, .18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.connection-pill { display: inline-flex; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.connection-pill.online { background: rgba(43, 213, 154, .14); color: var(--ok-2); border-color: rgba(43, 213, 154, .28); }
.connection-pill.offline { background: rgba(255, 107, 107, .12); color: #ffb0b0; border-color: rgba(255, 107, 107, .24); }
.layout { height: calc(100vh - 82px); display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; padding: 16px; min-height: 0; }
.sidebar, .content { min-height: 0; height: 100%; overflow: hidden; }
.sidebar { padding: 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.sidebar-footer { display: flex; justify-content: stretch; }
.sidebar-footer .ghost-btn { width: 100%; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter { background: #17233c; color: var(--muted); }
.filter.active { background: linear-gradient(180deg, #68a8ff, var(--accent)); color: white; }
.ticket-list { overflow: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ticket-item { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #101828; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease, opacity .15s ease; }
.ticket-item:hover { transform: translateY(-1px); }
.ticket-item.active { border-color: var(--accent); background: #142342; }
.ticket-item.loading { opacity: .7; }
.ticket-item.blocked { border-color: rgba(240, 162, 79, .45); }
.ticket-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ticket-item-flags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini-flag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.mini-flag.blocked { background: rgba(240, 162, 79, .16); color: #f0c07f; border: 1px solid rgba(240, 162, 79, .24); }
.ticket-item h3, .ticket-header h2 { margin: 0; }
.ticket-item h3 { font-size: 16px; line-height: 1.35; }
.ticket-item h3 span { color: var(--text); font-weight: 700; }
.ticket-item p, .ticket-item small, #ticketMeta, #ticketCountLabel { margin: 0; color: var(--muted); }
.ticket-item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; margin-bottom: 8px; }
.status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid transparent; }
.status-pill.abierto { background: rgba(43, 213, 154, .15); color: var(--ok-2); border-color: rgba(43, 213, 154, .25); }
.status-pill.cerrado { background: rgba(255, 107, 107, .12); color: #ffaaaa; border-color: rgba(255, 107, 107, .2); }
.content { padding: 16px; display: flex; }
.empty-state { margin: auto; color: var(--muted); font-size: 18px; }
.ticket-view { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; width: 100%; min-height: 0; }
.ticket-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ticket-heading h2 { font-size: 22px; }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.danger-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.danger-icon-symbol {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 700;
}
.message-list { min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #0e1728; display: flex; flex-direction: column; gap: 12px; }
.messages-loading { color: var(--muted); text-align: center; padding: 26px 14px; border: 1px dashed var(--line); border-radius: 14px; }
.load-more { align-self: center; padding: 8px 14px; font-size: 13px; margin-bottom: 4px; }
.load-more[disabled] { cursor: progress; opacity: .75; }
.history-separator { align-self: center; font-size: 12px; color: var(--muted); background: #13213d; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.message { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; max-width: min(920px, 100%); }
.message.user { align-self: flex-start; background: var(--user-bg); border-color: rgba(43, 213, 154, .5); }
.message.admin { align-self: flex-end; background: var(--admin-bg); border-color: rgba(91, 156, 255, .5); }
.message.system { align-self: center; background: var(--system-bg); border-color: rgba(255, 210, 90, .35); }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.sender-badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.sender-badge.user { background: rgba(43, 213, 154, .16); color: #82ecc4; }
.sender-badge.admin { background: rgba(91, 156, 255, .18); color: #9bc7ff; }
.sender-badge.system { background: rgba(255, 210, 90, .16); color: #f8d788; }
.message-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.reply-preview {
  display: grid;
  gap: 3px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border-left: 3px solid rgba(103, 168, 255, .85);
  background: rgba(255, 255, 255, .04);
}
.reply-preview strong {
  font-size: 12px;
  color: #9ec1ff;
}
.reply-preview span {
  font-size: 13px;
  color: #d3e2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-preview.user {
  border-left-color: rgba(43, 213, 154, .88);
}
.reply-preview.user strong {
  color: #82ecc4;
}
.reply-preview.system {
  border-left-color: rgba(255, 210, 90, .88);
}
.reply-preview.system strong {
  color: #f8d788;
}
.message-body { white-space: normal; word-break: break-word; line-height: 1.55; font-size: 17px; }
.message-empty { color: var(--muted); }
.message-media { margin-top: 10px; font-size: 14px; display: grid; gap: 8px; }
.message-media img { display: block; max-width: min(420px, 100%); max-height: 260px; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.message-media video { display: block; max-width: min(420px, 100%); max-height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.media-link { display: inline-flex; align-items: center; gap: 8px; }
.reply-box { display: grid; gap: 10px; background: #111a2e; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.02); }
.reply-box textarea { min-height: 110px; max-height: 220px; resize: vertical; }
.reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.reply-actions input[type="file"] { flex: 1; min-width: 0; }
.compact-btn {
  min-width: auto !important;
  white-space: nowrap;
  padding: 10px 14px !important;
}
.compact-btn .icon-btn-symbol {
  font-size: 14px;
}
.reply-actions input[type="file"] {
  padding: 0;
  background: #0d1526;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  overflow: hidden;
}
.reply-actions input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
  color: white;
  background: linear-gradient(180deg, #243a61, #1a2943);
  cursor: pointer;
  font-weight: 600;
}
.reply-actions input[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 12px 16px;
  color: white;
  background: linear-gradient(180deg, #243a61, #1a2943);
  cursor: pointer;
  font-weight: 600;
}
.reply-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(95, 140, 215, .28);
  background: linear-gradient(180deg, rgba(24, 39, 69, .95), rgba(17, 28, 49, .95));
}
.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 115, 115, .2);
  background: linear-gradient(180deg, rgba(41, 21, 31, .95), rgba(28, 15, 23, .95));
}
.selection-bar-copy {
  display: grid;
  gap: 4px;
}
.selection-bar-copy strong {
  font-size: 12px;
  color: #ffc1c1;
}
.selection-bar-copy span {
  font-size: 13px;
  color: var(--muted);
}
.selection-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.danger-pill-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: white;
  background: linear-gradient(180deg, #ff8d8d, #ff6767);
}
.reply-context-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.reply-context-copy strong {
  font-size: 12px;
  color: #9ec1ff;
}
.reply-context-copy span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-context-cancel {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: white;
  background: linear-gradient(180deg, #40516f, #303c53);
}
.payment-builder {
  padding: 8px 10px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(17, 27, 47, .98), rgba(14, 23, 40, .96));
  border-radius: 14px;
  border: 1px solid rgba(87, 122, 184, .22);
}
.payment-builder-header h3 { margin: 0; font-size: 13px; letter-spacing: .01em; }
.payment-grid { display: grid; grid-template-columns: 1.05fr .82fr .8fr .9fr; gap: 8px; }
.payment-grid label { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.payment-grid select, .payment-grid input {
  width: 100%;
  background: #0d1526;
  border: 1px solid rgba(74, 107, 161, .42);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 10px;
  min-height: 36px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.payment-actions { display: flex; justify-content: flex-end; }
.payment-actions button {
  min-width: 148px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 8px 14px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(180deg, #67a8ff, #4c88eb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.payment-actions button:disabled {
  background: linear-gradient(180deg, #3a4760, #2a3447) !important;
  color: rgba(255,255,255,.74);
  cursor: not-allowed;
}
.payment-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}
.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.message-actions .message-action-btn {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(99, 136, 198, .24);
  padding: 6px 11px;
  color: white;
  font-size: 12px;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(180deg, #38547f, #273956);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.message-actions .message-action-btn.reply {
  background: linear-gradient(180deg, #5b92ff, #4278dc);
}
.message-actions .message-action-btn.edit {
  background: linear-gradient(180deg, #57b6a4, #348a7a);
}
.message-actions .message-action-btn.delete {
  background: linear-gradient(180deg, #ff8d8d, #ff6767);
}
.message-focus {
  box-shadow: 0 0 0 2px rgba(103, 168, 255, .45), 0 18px 38px rgba(28, 45, 74, .18);
}
.selectable-message {
  cursor: pointer;
}
.selected-message {
  box-shadow: 0 0 0 2px rgba(255, 132, 132, .46), 0 18px 38px rgba(53, 17, 26, .18);
}
.context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: rgba(11, 19, 34, .98);
  border: 1px solid rgba(88, 117, 168, .24);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.context-menu button {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.context-menu button:hover {
  background: rgba(103, 168, 255, .12);
}
.payment-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  color: white;
  font-size: 18px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.payment-action-btn.confirm { background: linear-gradient(180deg, #38d99a, #21b97d); }
.payment-action-btn.dismiss { background: linear-gradient(180deg, #ff8d8d, #ff6767); }
.payment-action-btn:disabled { opacity: .7; cursor: wait; }
.payment-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.payment-status-tag.confirmed {
  background: rgba(43, 213, 154, .14);
  color: var(--ok-2);
  border: 1px solid rgba(43, 213, 154, .24);
}
.payment-status-tag.dismissed {
  background: rgba(255, 107, 107, .12);
  color: #ffb0b0;
  border: 1px solid rgba(255, 107, 107, .22);
}
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 1000; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 18, .72); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; width: min(980px, calc(100vw - 40px)); max-height: calc(100vh - 40px); padding: 18px; overflow: auto; }
.small-modal { width: min(460px, calc(100vw - 40px)); }
.modal-payment-builder { border: 0; box-shadow: none; padding: 0; background: transparent; }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.modal-header h2 { margin: 0; }
#settingsCloseBtn {
  background: linear-gradient(180deg, var(--danger-2), var(--danger));
  min-width: 92px;
}
.modal-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  border: 0;
  border-radius: 12px;
  color: white;
  padding: 10px 14px;
}
.modal-close-btn span:first-child {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
}
.settings-form { display: grid; gap: 14px; }
.settings-form label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.settings-form textarea, .settings-form input { width: 100%; background: #0d1526; border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; }
.settings-form textarea { min-height: 140px; resize: vertical; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.settings-prices-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wallet-editor { display: grid; gap: 12px; }
.command-editor { display: grid; gap: 12px; }
.wallet-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wallet-editor-head h3 { margin: 0; }
.circle-add-btn {
  width: 42px;
  height: 42px;
  min-width: 42px !important;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #6ab0ff, #4b88eb) !important;
  border: 1px solid rgba(126, 185, 255, .22);
  box-shadow: 0 10px 22px rgba(63, 117, 204, .22), inset 0 1px 0 rgba(255,255,255,.1);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.wallet-editor-list { display: grid; gap: 12px; }
.command-editor-list { display: grid; gap: 14px; }
.wallet-coin { padding: 14px; display: grid; gap: 12px; background: linear-gradient(180deg, #10192b, #0d1524); border: 1px solid rgba(80, 114, 170, .25); border-radius: 16px; }
.command-card { padding: 14px; display: grid; gap: 12px; background: linear-gradient(180deg, #10192b, #0d1524); border: 1px solid rgba(80, 114, 170, .25); border-radius: 16px; }
.wallet-coin-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.command-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.wallet-coin-title { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1; }
.command-card-title { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; flex: 1; }
.wallet-coin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.command-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.wallet-lines { display: grid; gap: 10px; }
.command-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.command-toolbar button,
.command-card-actions button {
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: white;
  background: linear-gradient(180deg, #2a3550, #1d2639);
  border-color: rgba(116, 145, 198, .14);
  cursor: pointer;
  font-weight: 600;
}
.command-card-actions .danger,
.command-toolbar .primary {
  background: linear-gradient(180deg, #67a8ff, #4c88eb);
  border-color: rgba(126, 185, 255, .22);
}
.command-preview {
  min-height: 160px;
  padding: 14px;
  border-radius: 14px;
  background: #0d1526;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  line-height: 1.5;
}
.command-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.command-kind-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(103, 168, 255, .12);
  color: #9cc7ff;
  font-size: 12px;
  border: 1px solid rgba(103, 168, 255, .18);
}
.command-readonly {
  opacity: .72;
}
.wallet-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: end; }
.wallet-line button, .wallet-coin-actions button {
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: white;
  background: linear-gradient(180deg, #67a8ff, #4c88eb);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  font-weight: 600;
}
.wallet-line .remove-line-btn {
  background: linear-gradient(180deg, #2a3550, #1d2639);
  border-color: rgba(116, 145, 198, .14);
  color: #dce8ff;
}
.wallet-coin-actions .danger { background: linear-gradient(180deg, var(--danger-2), var(--danger)); }
.code-area { min-height: 260px; font-family: Consolas, 'Courier New', monospace; font-size: 12px; }
.settings-help { margin: -2px 0 0; color: var(--muted); font-size: 12px; }
.settings-actions { display: flex; justify-content: flex-end; }
.sending { opacity: .78; }
@media (max-width: 920px) {
  body { overflow: auto; }
  .app-shell { grid-template-rows: auto auto; height: auto; }
  .layout { height: auto; grid-template-columns: 1fr; }
  .sidebar, .content, .ticket-view, .message-list { min-height: auto; }
  .ticket-header, .meta-row, .reply-actions, .topbar { flex-direction: column; align-items: stretch; }
  .ticket-actions, .topbar-actions { justify-content: flex-end; }
  .icon-btn { justify-content: center; }
  .message.admin, .message.user, .message.system { align-self: stretch; }
  .settings-grid { grid-template-columns: 1fr; }
  .payment-grid, .wallet-coin-title, .wallet-line, .command-card-title { grid-template-columns: 1fr; }
}

.inline-code { display: inline-block; padding: 2px 6px; border-radius: 8px; background: rgba(255,255,255,.08); font-family: Consolas, 'Courier New', monospace; font-size: .92em; }
.block-code { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08); font-family: Consolas, 'Courier New', monospace; white-space: pre-wrap; overflow: auto; }
.message-body b, .message-body strong { font-weight: 700; }
.message-body i, .message-body em { font-style: italic; }
