/* AntiFast — coque des espaces connectés (panel client et administration). */

.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

/* ─── Barre latérale ─── */
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px;
}
.sidebar-top { padding: 4px 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-top .brand { min-width: 0; }
/* Mention discrète sous le menu quand le panel est aux couleurs d'un partenaire. */
.powered { padding: 10px 10px 0; font-size: 11.5px; color: var(--muted); }
.powered a { color: inherit; font-weight: 550; }
.sidebar .tag { font-size: 11px; font-weight: 600; color: var(--brand-text); background: var(--brand-soft); padding: 2px 7px; border-radius: 999px; }
.switcher { margin: 0 4px 14px; }
.switcher .select { height: 40px; font-weight: 550; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.nav a svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.9; }
.nav a .count { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--border); margin-top: 12px; }
.sidebar-user .name { font-weight: 600; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .role { font-size: 12px; color: var(--muted); }

/* ─── Contenu ─── */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 18px; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; }
.content { width: 100%; max-width: 1180px; padding: 28px 32px 120px; display: flex; flex-direction: column; gap: 20px; }

.page-intro { color: var(--text-2); max-width: 720px; }

/* Grilles */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

/* Statistiques */
.stat { padding: 18px 20px; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.stat .meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* Graphique en barres (SVG) */
.chart { width: 100%; height: 180px; }
.chart .bar { fill: var(--brand); opacity: 0.85; }
.chart .bar:hover { opacity: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; }
.chart .area { fill: var(--brand-soft); }

/* Listes */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .title { font-weight: 550; }
.list-item .desc { font-size: 12.5px; color: var(--muted); }

/* Incidents */
.incident { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.incident:last-child { border-bottom: 0; }
.incident .sev { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--danger); }
.incident .sev.low { background: var(--warning); }
.incident .sev.info { background: var(--brand); }
.incident .summary { font-weight: 500; overflow-wrap: anywhere; }
.incident .actions-list { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.incident time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Modules de protection */
.module { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.module:last-child { border-bottom: 0; }
.module .title { font-weight: 600; }
.module .desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.module .params { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.module .params label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.module .params .input { width: 76px; }
.module .select { width: 190px; }
.module.disabled .title, .module.disabled .desc { opacity: 0.55; }

/* Listes d'IDs (whitelist…) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; max-width: 100%; }
.chip.text { padding-left: 12px; }
.chip img { width: 26px; height: 26px; border-radius: 50%; }
.chip .chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .chip-id { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.chip button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.chip button:hover { background: var(--danger-soft); color: var(--danger); }
.add-row { display: flex; gap: 8px; margin-top: 12px; }
.add-row .input, .add-row .select { max-width: 320px; }

/* Barre d'enregistrement */
.savebar {
  position: fixed; left: calc(252px + 50%); transform: translateX(calc(-50% - 126px)); bottom: 24px; z-index: 50;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); animation: toast-in 0.2s ease-out;
}
.savebar .btn-ghost { color: inherit; opacity: 0.8; }
.savebar .btn-ghost:hover { background: rgba(127, 127, 127, 0.2); opacity: 1; }

/* Console */
.console { margin: 0; height: 460px; overflow: auto; padding: 16px 18px; background: #0d0c13; color: #d8d6e4; font-family: var(--mono); font-size: 12px; line-height: 1.6; border-radius: 0 0 var(--radius-lg) var(--radius-lg); white-space: pre-wrap; word-break: break-word; }
.console .err { color: #ff7b80; }
.console .warn { color: #f0b85c; }
.console .ok { color: #6fd6a8; }

/* Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 12px; }
.tabs button { height: 42px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 550; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--brand-text); border-color: var(--brand); }

/* Alerte */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.callout.warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.callout.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout strong { display: block; margin-bottom: 2px; }

.loading { display: grid; place-items: center; padding: 80px 0; }

/* Ticket options */
.ticket-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }

/* Rôles-réactions */
.rr-pair { display: grid; grid-template-columns: minmax(0, 200px) auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.rr-arrow { color: var(--muted); }
img.rr-emoji { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.rr-chip { gap: 6px; }
.rr-pair.rr-button { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) minmax(0, 100px) auto minmax(0, 1fr) auto; }
@media (max-width: 520px) {
  .rr-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .rr-pair.rr-button { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rr-arrow { display: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 100; transform: translateX(-100%); transition: transform 0.2s, box-shadow 0.2s, visibility 0.2s; visibility: hidden; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); visibility: visible; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 120px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .module { grid-template-columns: auto minmax(0, 1fr); }
  .module > :last-child { grid-column: 2; }
  .module .select { width: 100%; }
  .savebar { left: 16px; right: 16px; transform: none; justify-content: space-between; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Tutoriel (fenêtres en haut à droite) ─── */
.tour {
  position: fixed; top: 76px; right: 20px; z-index: 200; width: 340px; max-width: calc(100vw - 24px);
  padding: 16px 16px 14px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); box-shadow: var(--shadow-lg);
  animation: tour-in 0.22s ease-out;
}
.tour-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tour-count { font-size: 11.5px; font-weight: 600; color: var(--brand-text); text-transform: uppercase; letter-spacing: 0.05em; }
.tour-close { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.tour-close:hover { background: var(--surface-2); color: var(--text); }
.tour h4 { font-size: 15px; font-weight: 650; }
.tour p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.tour-link { margin-top: 12px; }
.tour-progress { height: 3px; margin: 14px 0 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tour-progress span { display: block; height: 100%; background: var(--brand); transition: width 0.25s; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; }
.tour-target { box-shadow: 0 0 0 3px var(--brand-ring); border-radius: var(--radius); animation: tour-pulse 1.8s ease-in-out infinite; }
@keyframes tour-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes tour-pulse { 50% { box-shadow: 0 0 0 6px var(--brand-soft); } }
@media (max-width: 860px) { .tour { top: 72px; right: 12px; left: 12px; width: auto; } }

/* ─── Installation ─── */
.setup-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; }
.setup-step .num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 13.5px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.setup-step.done .num { background: var(--success-soft); color: var(--success); border-color: transparent; }
.setup-step.current .num { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.setup-step h3 { font-size: 15px; }
.setup-step .body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bot-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.bot-card img { width: 40px; height: 40px; border-radius: 50%; }
.guild-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.guild-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.guild-option:hover { border-color: var(--border-strong); }
.guild-option.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.guild-option img, .guild-option .icon-fallback { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.guild-option .icon-fallback { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-weight: 650; font-size: 13px; }
.guild-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }

/* ─── Application Windows : bouton de la barre latérale ─── */
.app-download {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; text-align: left;
  border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  background: linear-gradient(135deg, var(--brand-soft), transparent 70%); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.app-download:hover { border-color: var(--brand); transform: translateY(-1px); }
.app-download-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--on-brand); flex-shrink: 0; }
.app-download-icon svg { width: 16px; height: 16px; }
.app-download strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.app-download .grow span { display: block; font-size: 11.5px; color: var(--muted); }
.app-download-go { color: var(--brand-text); font-weight: 600; }

/* ─── Application Windows : fenêtre de présentation ─── */
dialog.promo { width: min(860px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; position: relative; }
dialog.promo:not([open]) { display: none; }
.promo-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.promo-close:hover { background: var(--surface-2); color: var(--text); }
.promo-close svg { width: 16px; height: 16px; }

.promo-visual {
  position: relative; padding: 44px 28px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #8a6dff 0%, #5b3be6 45%, #24185c 100%);
}
.promo-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(160deg, #000 20%, transparent 85%); }
.promo-window { position: relative; width: 100%; max-width: 360px; border-radius: 10px; overflow: hidden; background: #0f0e15; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px rgba(8, 4, 30, .55); transform: perspective(900px) rotateY(-6deg) rotateX(3deg); }
.pw-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; background: #16151e; border-bottom: 1px solid rgba(255,255,255,.06); color: #cfcbe4; font-size: 10px; font-weight: 600; }
.pw-bar img { width: 13px; height: 13px; }
.pw-ctrl { margin-left: auto; display: flex; gap: 8px; }
.pw-ctrl i { width: 7px; height: 7px; border-radius: 2px; border: 1px solid #6f6a88; }
.pw-body { display: grid; grid-template-columns: 26px 78px 1fr; height: 190px; }
.pw-rail { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 9px; background: #0b0a10; }
.pw-rail i { width: 16px; height: 16px; border-radius: 6px; background: #2a2738; }
.pw-rail i.on { background: #8a6dff; box-shadow: 0 0 0 2px rgba(138,109,255,.3); }
.pw-side { display: flex; flex-direction: column; gap: 7px; padding: 10px 8px; background: #13121a; border-right: 1px solid rgba(255,255,255,.05); }
.pw-side b { height: 7px; border-radius: 4px; background: #2a2738; }
.pw-side b:first-child { width: 70%; background: #3a3650; margin-bottom: 4px; }
.pw-side b.active { background: rgba(138,109,255,.55); }
.pw-main { padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.pw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pw-cards span { height: 34px; border-radius: 6px; background: #1b1a25; border: 1px solid rgba(255,255,255,.05); }
.pw-cards span:first-child { background: linear-gradient(135deg, rgba(61,189,139,.25), #1b1a25 70%); }
.pw-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 8px; border-radius: 6px; background: #1b1a25; border: 1px solid rgba(255,255,255,.05); }
.pw-chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#a993ff, #6644f2); opacity: .9; }
.promo-toast {
  position: absolute; right: 18px; bottom: 26px; display: flex; align-items: center; gap: 10px; width: 236px; padding: 10px 12px;
  border-radius: 10px; background: rgba(24, 22, 34, .92); border: 1px solid rgba(255,255,255,.1); color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.45); backdrop-filter: blur(8px); animation: promo-toast 0.6s 0.35s both cubic-bezier(.2,.8,.2,1);
}
.promo-toast img { width: 28px; height: 28px; flex-shrink: 0; }
.promo-toast strong { display: block; font-size: 12.5px; }
.promo-toast span { display: block; font-size: 11px; color: #b9b4d2; }
@keyframes promo-toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.promo-content { padding: 36px 34px 28px; display: flex; flex-direction: column; gap: 14px; }
.promo-kicker { align-self: flex-start; font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-text); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.promo-content h3 { font-size: 24px; letter-spacing: -0.025em; }
.promo-lead { color: var(--text-2); font-size: 14px; }
.promo-features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.promo-features li { display: flex; gap: 12px; align-items: flex-start; }
.promo-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); flex-shrink: 0; }
.promo-ico svg { width: 16px; height: 16px; }
.promo-features strong { display: block; font-size: 13.5px; }
.promo-features span { display: block; font-size: 12.5px; color: var(--muted); }
.promo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.promo-meta { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  dialog.promo { grid-template-columns: 1fr; }
  .promo-visual { padding: 28px 20px 70px; }
  .promo-content { padding: 26px 22px 22px; }
}

/* Bienvenue : variables cliquables */
.var-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.var-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.var-item code { font-family: var(--mono); font-size: 12.5px; color: var(--brand-text); }
.var-item:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.var-item:disabled { cursor: default; }

/* Notification « Mise à jour » (une fois après chaque nouvelle version) */
.update-notice { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 360px; max-width: 100%; padding: 14px 40px 14px 14px; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toast-in 0.25s ease-out; }
.update-notice.leaving { animation: update-notice-out 0.18s ease-in forwards; }
.update-notice-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; background: var(--brand-soft); color: var(--brand-text); }
.update-notice-icon svg { width: 18px; height: 18px; }
.update-notice strong { display: block; font-size: 14px; }
.update-notice p { margin: 2px 0 8px; color: var(--text-2); }
.update-notice a { font-weight: 600; color: var(--brand-text); text-decoration: none; }
.update-notice a:hover { text-decoration: underline; }
.update-notice-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.update-notice-close:hover { background: var(--surface-2); color: var(--text); }
.update-notice-close svg { width: 14px; height: 14px; }
@keyframes update-notice-out { to { opacity: 0; transform: translateX(16px); } }

/* Sélecteur d'emojis personnalisés (textes et boutons de messages, tickets) */
.emoji-input { position: relative; display: flex; align-items: center; gap: 6px; }
.emoji-input > .input, .emoji-input > .textarea { flex: 1; min-width: 0; }
.emoji-input.multiline { align-items: flex-start; }
.emoji-btn { flex: none; }
.emoji-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: min(320px, calc(100vw - 32px)); max-height: 340px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg, 0 16px 40px rgba(0, 0, 0, 0.35)); }
.emoji-list { overflow-y: auto; min-height: 0; }
.emoji-group { margin: 2px 2px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; margin-bottom: 8px; }
.emoji-item { display: grid; place-items: center; height: 36px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.emoji-item:hover, .emoji-item:focus-visible { background: var(--surface-2); }
.emoji-item img { width: 26px; height: 26px; object-fit: contain; }
.emoji-hint { margin: 0; font-size: 12px; color: var(--muted); }