.emoji-card,
.supported-filter {
  user-select: none;
  cursor: pointer;
}
#loader,
#toast,
.emoji-card,
.summary,
.empty,
header {
  text-align: center;
}
#search-bar:focus,
.back-to-top:hover,
.pill-control:focus {
  border-color: #3498db;
}
#loader,
#toast,
.emoji-warning,
.group__title {
  font-weight: 700;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fb;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.summary strong,
h1 {
  color: #2c3e50;
}
header {
  margin-bottom: 30px;
}
h1 {
  margin-bottom: 5px;
}
p {
  color: #7f8c8d;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  pointer-events: none;
}
.search-container {
  top: 0px;
  z-index: 100;
  background: #f5f7fb;
  padding: 6px 0;
  margin-top: 25px;
  bottom: 10px;  
}
#toast,
.back-to-top {
  position: fixed;
  z-index: 200;
  visibility: hidden;
}
#search-bar {
  /* border-box: sem ele, o padding (42px da lupa + 20px) e a borda somam-se
     ao width:100% e o campo vaza da .search */
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 15px; /* mesma fonte e altura dos botões ao lado */
  text-overflow: ellipsis; /* placeholder longo termina em "…" em vez de cortado */
  border: 2px solid #bdc3c7;
  border-radius: 30px;
  outline: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.emoji-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.emoji-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  background-color: #eef4ff;
  box-shadow: 0 6px 14px rgba(42, 127, 255, 0.14);
}
.emoji-char {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}
.emoji-name {
  font-size: 11px;
  color: #7f8c8d;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
#loader {
  font-size: 18px;
  color: #3498db;
  margin: 40px;
}
#toast {
  min-width: 200px;
  background-color: #2ecc71;
  color: #fff;
  border-radius: 25px;
  padding: 12px 24px;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
#toast.show {
  visibility: visible;
  animation:
    0.3s fadein,
    0.3s 1.7s fadeout;
}
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}
@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
.supported-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 12px;
  font-size: 14px;
  color: #5a6b7b;
}
.supported-filter input {
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.summary {
  font-size: 13px;
  color: #7f8c8d;
  margin: 14px 0 0;
  line-height: 1.6;
}
.emoji-card--no-glyph {
  background: #fff8e6;
  border: 1px dashed #e0b44a;
  box-shadow: none;
}
.back-to-top,
.pill-control {
  background: #fff;
  cursor: pointer;
}
.emoji-card--no-glyph .emoji-char {
  opacity: 0.45;
}
.emoji-warning {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #a8791a;
  text-transform: uppercase;
}
.empty {
  grid-column: 1/-1;
  padding: 40px;
  color: #95a5a6;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
/* Os três controles dividem a linha e descem para a seguinte quando não
   cabem com a largura mínima (flex-basis), em vez de espremer a busca */
.controls > .icon-set,
.controls > .groups-menu {
  flex: 1 1 200px;
}
.controls .search {
  position: relative;
  flex: 1 1 260px;
  min-width: 180px;
  /* Sem max-width: quando a busca desce sozinha para a linha de baixo
     (entre ~600 e ~700px), ocupa a linha inteira */
}

.search #search-bar {
  max-width: none;
  width: 100% !important;
}

.controls #search-bar {
  margin: 0;
  width: 100%;
  padding-left: 42px;
}
.pill-control {
  width:100%;
  max-width:480px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #bdc3c7;
  border-radius: 30px;
  color: #2c3e50;
  outline: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
/* ── Seletor de conjunto (Emoji, Lucide…) ──
   Botão + painel de opções, no mesmo padrão do menu de categorias.
   Começa em "Select": nada é carregado até o usuário escolher. */
.icon-set {
  position: relative;
  min-width: 180px;
  max-width: 480px;
  width: 100%;
}
.icon-set__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  max-width: 480px;
  width: 100%;
  justify-content: space-between;
}
.icon-set__button--active {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  font-weight: 600;
}

.icon-set__arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform 0.15s;
}
.icon-set__button[aria-expanded="true"] .icon-set__arrow {
  transform: rotate(180deg);
}

.icon-set__panel {
  padding: 6px;
}
.icon-set__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: #42505e;
  text-align: left;
  cursor: pointer;
}
.icon-set__option:hover,
.icon-set__option:focus-visible {
  background: #eef4ff;
  outline: none;
}
.icon-set__option[aria-selected="true"] {
  color: var(--il-blue-dark);
  font-weight: 600;
}
.icon-set__option[aria-selected="true"]::after {
  content: "✓";
  color: var(--il-blue);
}

/* Controles que dependem de um conjunto carregado */
.groups-menu__button:disabled,
#search-bar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.svg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: #2c3e50;
}
.svg-icon svg {
  width: 28px;
  height: 28px;
}
.emoji-card:hover .svg-icon {
  color: #2980b9;
  color: var(--il-blue-dark);
}
[hidden] {
  display: none !important;
}
.sources-note {
  /* max-width: 720px; */
  padding-top: 6px;
  margin: 10px auto 0;
  font-size: 20px;
  line-height: 1.7;
  color: #8a99a8;
}
.back-to-top,
.sources-note strong {
  color: #5a6b7b;
}
.back-to-top {
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #bdc3c7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s,
    color 0.15s,
    border-color 0.15s;
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  color: #2980b9;
}
.group {
  margin-top: 28px;
}
.group:first-child {
  margin-top: 8px;
}
.group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e4e9f0;
  font-size: 15px;
  color: #2c3e50;
  position: sticky;
  top: 0;
  background: #f5f7fb;
  z-index: 50;
}
.group__count {
  font-size: 12px;
  font-weight: 600;
  color: #7f8c8d;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 20px;
  padding: 2px 10px;
}
.group .emoji-grid {
  margin-top: 0;
}
:root {
  --il-blue: #2a7fff;
  --il-blue-dark: #1558c8;
  --il-gold: #f5c141;
  --il-gold-dark: #e09410;
  --il-purple: #7c4dff;
  --il-teal: #1ba3b8;
  --il-green: #2fa14d;
}

.logo-card{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 6px;
}
.header__logo {
  max-height: 180px;  
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  animation: 4s ease-in-out infinite il-float;
}
@keyframes il-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}
.header__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  /* O degradê (background-clip: text) só pinta dentro da caixa; com
     line-height 1.1 a perna do "y" ficava fora e era cortada */
  padding-bottom: 0.12em;
  background: linear-gradient(
    95deg,
    var(--il-blue-dark),
    var(--il-purple) 35%,
    var(--il-gold-dark) 65%,
    var(--il-teal)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header__subtitle {
  margin: 6px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: #7f8c8d;
}

.header__subtitle-list {
  margin-top: 4px;
  margin-left: 22px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: #183574;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 56px 20px;
  color: #7f8c8d;
}
.fan {
  position: relative;
  width: 120px;
  height: 76px;
}
.fan__card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 58px;
  margin-left: -11px;
  border-radius: 6px;
  transform-origin: 50% 100%;
  box-shadow: 0 4px 10px rgba(21, 88, 200, 0.18);
  animation: 1.6s ease-in-out infinite il-fan;
}
.fan__card--1 {
  background: var(--il-blue);
  --tilt: -42deg;
  animation-delay: 0ms;
}
.fan__card--2 {
  background: var(--il-purple);
  --tilt: -21deg;
  animation-delay: -0.12s;
}
.fan__card--3 {
  background: var(--il-gold);
  --tilt: 0deg;
  animation-delay: -0.24s;
}
.fan__card--4 {
  background: var(--il-teal);
  --tilt: 21deg;
  animation-delay: -0.36s;
}
.fan__card--5 {
  background: var(--il-green);
  --tilt: 42deg;
  animation-delay: -0.48s;
}
@keyframes il-fan {
  0%,
  100% {
    transform: rotate(calc(var(--tilt) * 0.25)) translateY(6px);
    opacity: 0.55;
  }
  50% {
    transform: rotate(var(--tilt)) translateY(-6px);
    opacity: 1;
  }
}
.loading__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #8a99a8;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition:
      opacity 0.2s,
      visibility 0.2s;
    transform: none;
  }
  .header__logo,
  .fan__card {
    animation: none;
  }
  .fan__card {
    transform: rotate(var(--tilt)) translateY(-6px);
    opacity: 1;
  }
}
#search-bar:focus,
.pill-control:focus {
  border-color: var(--il-blue);
}
.group__title {
  border-bottom-color: #dbe4f0;
}
.back-to-top:hover {
  color: var(--il-blue);
  border-color: var(--il-blue);
}
@media (max-width: 600px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }

}
.groups-menu {
  position: relative;
  min-width: 180px;
  max-width: 480px;
  width: 100%;
}
.groups-menu__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  max-width: 480px;
  width: 100%;
  justify-content: space-between;
}
.groups-menu__button--active {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  font-weight: 600;
}
.groups-menu__arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
}
.groups-menu__panel,
.icon-set__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  /* Mesma largura do botão: o contêiner (.icon-set / .groups-menu) é
     position:relative e tem a largura do botão */
  width: 100%;
  box-sizing: border-box;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(21, 88, 200, 0.16);
  overflow: hidden;
}
.groups-menu__actions {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
}
.groups-menu__clear {
  background: 0 0;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--il-blue);
  cursor: pointer;
}
.groups-menu__clear:hover {
  text-decoration: underline;
}
.groups-menu__list {
  overflow-y: auto;
  padding: 6px;
}
.groups-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #42505e;
  cursor: pointer;
}
.groups-menu__item:hover {
  background: #eef4ff;
}
.groups-menu__item input {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--il-blue);
}
.groups-menu__name {
  flex: 1;
}
.groups-menu__count {
  font-size: 11.5px;
  font-weight: 600;
  color: #8a99a8;
  background: #f2f5f9;
  border-radius: 20px;
  padding: 1px 8px;
}

/* ── Controles no celular ──
   No fim do arquivo de propósito: precisa vencer as regras de .groups-menu e
   .pill-control acima, que têm a mesma especificidade. */
@media (max-width: 600px) {
  /* Cada controle ocupa a linha inteira */
  .controls > .icon-set,
  .controls > .groups-menu,
  .controls .search,
  .controls > .scratchpad-open,
  .controls > .ile-open {
    flex-basis: 100%;
    max-width: none;
  }
  .pill-control,
  .groups-menu__button {
    max-width: none;
  }
  #search-bar {
    padding: 10px 16px 10px 40px;
    /* 16px: abaixo disso o Safari do iPhone dá zoom na página ao focar o campo */
    font-size: 16px;
  }
  .pill-control {
    padding: 10px 16px;
    font-size: 16px; /* acompanha o campo de busca, mesma altura */
  }
  .search-icon {
    left: 16px;
  }
  .sources-note {
    font-size: 17px;
  }
}

/* ── Cabeçalho em tela estreita ──
   Logo e título empilhados e centralizados. O subtítulo vira um info-box de
   orientação — o mesmo elemento, restilizado, para o texto existir num só lugar. */
@media (max-width: 590px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }
  .header > div {
    width: 100%;
  }
  /* Centraliza a caixa do título, não só o texto: com a caixa na largura toda
     o degradê se estica e o título mostra só as cores do meio */
  .header__title {
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }
  /* Grid, não flex: o ícone fica na 1ª coluna e todo o conteúdo (parágrafo,
     lista…) empilha na 2ª. Com flex, cada filho viraria uma coluna. */
  .header__subtitle {
    display: grid;
    grid-template-columns: 20px 1fr;
    column-gap: 10px;
    align-items: start;
    max-width: none;
    margin: 16px 0 0;
    padding: 12px 14px;
    text-align: left;
    font-size: 13.5px;
    line-height: 1.55;
    color: #42505e;
    background: #eef4ff;
    border: 1px solid #d6e4ff;
    border-left: 4px solid var(--il-blue);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(21, 88, 200, 0.08);
  }
  /* Ícone "i" no azul da página */
  .header__subtitle > * {
    grid-column: 2;
    margin: 0;
  }
  .header__subtitle ul {
    margin: 4px 0 0;
    padding-left: 18px;
  }
  /* O <p> interno traria a margem padrão (texto abaixo do ícone) e o cinza
     da regra global "p" — no box, o texto segue a cor do próprio box */
  .header__subtitle p {
    margin: 0;
    color: inherit;
  }
  .header__subtitle::before {
    content: "i";
    grid-column: 1;
    grid-row: 1;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--il-blue);
    color: #fff;
    font: italic 700 12px/20px Georgia, serif;
    text-align: center;
  }
}

/* ── Publicidade (Google AdSense) ──
   Duas disposições, nunca as duas ao mesmo tempo:
   · laterais flutuantes de 160×600 (position: fixed, como o botão "voltar ao
     topo"): ficam paradas na tela enquanto a página rola. O body ganha
     padding lateral para elas, então o conteúdo encolhe em vez de ficar por
     baixo — anúncio sobre conteúdo viola as regras do AdSense;
   · faixa horizontal no fluxo da página, quando as laterais não cabem
     (janela estreita ou baixa demais). */
:root {
  /* Aba do scratchpad, sempre encostada na borda direita */
  --tab-width: 28px;
  /* Faixa lateral reservada (simétrica, para o conteúdo seguir centrado):
     aba + 16px + 160px do anúncio + 16px */
  --ad-rail-zone: calc(var(--tab-width) + 192px);
}
.ad {
  text-align: center;
}
.ad__label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a3b0bd;
}
.ad--banner {
  margin: 18px 0 6px;
}
/* Altura reservada: a página não pula quando o anúncio chega */
.ad--banner .ad__unit {
  min-height: 90px;
}
.ad--rail {
  display: none;
  position: fixed;
  /* Centralizada na altura da janela */
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 10;
}
.ad--rail .ad__unit {
  height: 600px;
}
/* Coladas ao conteúdo (600px = metade dele) com 16px de respiro; em janela
   mais estreita ficam a 16px da borda — a direita, a 16px da aba do
   scratchpad, que nunca pode cobrir o anúncio */
.ad--rail-left {
  left: max(calc(var(--tab-width) + 16px), calc(50% - 600px - 176px));
}
.ad--rail-right {
  right: max(calc(var(--tab-width) + 16px), calc(50% - 600px - 176px));
}
/* Largura: sobra espaço útil para o conteúdo entre as duas laterais.
   Altura: a lateral (14 + 600px) cabe inteira na janela, com folga. */
@media (min-width: 1100px) and (min-height: 630px) {
  body:has(.ad--rail:not([hidden])) {
    padding-inline: var(--ad-rail-zone);
  }
  .ad--rail {
    display: block;
  }
  .ad--banner {
    display: none;
  }
  /* O botão "voltar ao topo" sai da faixa do anúncio e vai para o canto do
     conteúdo: nada pode encobrir a lateral */
  body:has(.ad--rail-right:not([hidden])) .back-to-top {
    right: max(
      calc(var(--ad-rail-zone) + 8px),
      calc(50% - 600px + 8px)
    );
  }
}
/* Prévia em localhost, enquanto o AdSense não está configurado */
.ad--preview .ad__unit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 2px dashed #c5d0dc;
  border-radius: 8px;
  font-size: 12px;
  color: #a3b0bd;
}

/* ── Scratchpad ──
   Gaveta fixa no canto direito. Fechada, sai da tela e deixa só a aba à
   vista; aberta, fica por cima da página, que continua utilizável. */
.controls > .scratchpad-open,
.controls > .ile-open {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}
.scratchpad {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, calc(100vw - var(--tab-width)));
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.scratchpad--open {
  transform: none;
}
.scratchpad__tab {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: var(--tab-width);
  padding: 14px 0;
  border: none;
  border-radius: 10px 0 0 10px;
  background: var(--il-blue);
  color: #fff;
  font: 600 13px/1 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.03em;
  writing-mode: vertical-rl;
  cursor: pointer;
  box-shadow: -4px 4px 14px rgba(21, 88, 200, 0.25);
}
.scratchpad__tab:hover,
.scratchpad__tab:focus-visible {
  background: var(--il-blue-dark);
  outline: none;
}
.scratchpad__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border-left: 1px solid #dfe6ee;
}
.scratchpad--open .scratchpad__body {
  box-shadow: -12px 0 30px rgba(21, 88, 200, 0.14);
}
.scratchpad__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scratchpad__title {
  margin: 0;
  font-size: 17px;
  color: #2c3e50;
}
.scratchpad__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #7f8c8d;
  cursor: pointer;
}
.scratchpad__close:hover,
.scratchpad__close:focus-visible {
  background: #eef4ff;
  color: var(--il-blue-dark);
  outline: none;
}
.scratchpad__main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 16px;
}
.scratchpad__text {
  flex: 1;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 12px;
  border: 2px solid #dfe6ee;
  border-radius: 10px;
  font: 12.5px/1.5 Consolas, "Cascadia Mono", Menlo, monospace;
  color: #2c3e50;
  background: #fbfcfe;
  resize: none;
  outline: 0;
}
.scratchpad__text:focus {
  border-color: var(--il-blue);
}
.scratchpad__actions {
  display: flex;
  gap: 10px;
}
.scratchpad__button {
  flex: 1;
  padding: 11px 16px;
  border: 2px solid #bdc3c7;
  border-radius: 30px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #42505e;
  cursor: pointer;
}
.scratchpad__button:hover,
.scratchpad__button:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  outline: none;
}
.scratchpad__button--primary {
  border-color: var(--il-blue);
  background: var(--il-blue);
  color: #fff;
}
.scratchpad__button--primary:hover,
.scratchpad__button--primary:focus-visible {
  background: var(--il-blue-dark);
  border-color: var(--il-blue-dark);
  color: #fff;
}
/* Aberta, a gaveta cobriria o anúncio direito e o botão "voltar ao topo":
   os dois saem de cena enquanto ela estiver aberta */
body:has(.scratchpad--open) .ad--rail-right,
body:has(.scratchpad--open) .back-to-top {
  visibility: hidden;
  opacity: 0;
}

/* Botões do card: lápis (abre no Lucide Studio) e "+" (envia ao scratchpad) */
.emoji-card {
  position: relative;
}
.emoji-card__actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.emoji-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #dfe6ee;
  border-radius: 50%;
  background: #fff;
  color: #7f8c8d;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.emoji-card:hover .emoji-card__action,
.emoji-card__action:focus-visible {
  opacity: 1;
}
.emoji-card__action:hover,
.emoji-card__action:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue);
  outline: none;
}
/* Telas de toque não têm hover: o botão fica sempre à vista */
@media (hover: none) {
  .emoji-card__action {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scratchpad {
    transition: none;
  }
}

/* Anúncio dentro da gaveta, ao lado do texto (160×600). Só aparece quando a
   janela tem altura para o anúncio inteiro mais o cabeçalho e os botões da
   gaveta, e largura para ele não espremer o texto; aí a gaveta alarga. */
.ad--drawer {
  display: none;
  flex: 0 0 160px;
}
.ad--drawer .ad__unit {
  width: 160px;
  height: 600px;
}
@media (min-width: 640px) and (min-height: 750px) {
  .ad--drawer {
    display: block;
  }
  .scratchpad:has(.ad--drawer:not([hidden])) {
    width: min(540px, calc(100vw - var(--tab-width)));
  }
}

/* ── Cards: botões nos cantos ──
   Lápis à esquerda; "+" e "⋯" à direita. O padding de cima abre espaço para
   eles, para não ficarem por cima do ícone. */
.emoji-card {
  padding-top: 34px;
}
.emoji-card__actions--start {
  right: auto;
  left: 6px;
}
.svg-icon {
  color: var(--icon-color, #2c3e50);
}
.svg-icon svg {
  stroke-width: var(--icon-stroke, 2);
}
.emoji-card:hover .svg-icon {
  color: var(--icon-color, var(--il-blue-dark));
}

/* Menu "⋯" do card */
.card-menu {
  position: fixed;
  z-index: 140;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(21, 88, 200, 0.16);
}
.card-menu button {
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 14px;
  color: #42505e;
  text-align: left;
  cursor: pointer;
}
.card-menu button:hover,
.card-menu button:focus-visible {
  background: #eef4ff;
  color: var(--il-blue-dark);
  outline: none;
}

/* ── Personalização (tamanho, traço, cor) ── */
.customize {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 12px;
  font-size: 13.5px;
  color: #5a6b7b;
}
.customize__field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.customize__field span {
  font-weight: 600;
}
.customize__field input[type="range"] {
  width: 110px;
  accent-color: var(--il-blue);
}
.customize__field input[type="color"] {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.customize__field input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.customize__field:has(input:disabled) {
  opacity: 0.55;
}
.customize__field output {
  min-width: 3.5em;
  font-variant-numeric: tabular-nums;
  color: #8a99a8;
}
.customize__reset {
  padding: 4px 12px;
  border: 1px solid #c5d0dc;
  border-radius: 20px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: #42505e;
  cursor: pointer;
}
.customize__reset:hover,
.customize__reset:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  outline: none;
}

/* ── Botão de tema (canto do cabeçalho, dentro da coluna de conteúdo) ── */
.header {
  position: relative;
}
.theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #c5d0dc;
  border-radius: 50%;
  background: #fff;
  color: #5a6b7b;
  cursor: pointer;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue);
  outline: none;
}
.theme-toggle__sun,
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}
[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

/* ── Rodapé ── */
.site-footer {
  margin-top: 60px;
  padding: 24px 0 8px;
  border-top: 1px solid #dfe6ee;
  text-align: center;
  font-size: 13px;
  color: #8a99a8;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--il-blue-dark);
  font-weight: 600;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer p {
  margin: 12px 0 0;
  font-size: 12px;
}

/* ── Páginas de texto (Sobre, Privacidade) ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #3d4a57;
}
.page p {
  color: inherit;
}
.page__back {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--il-blue-dark);
  text-decoration: none;
}
.page__title {
  margin: 18px 0 4px;
  font-size: 32px;
  color: #2c3e50;
}
.page__lead {
  font-size: 18px;
}
.page__meta {
  margin: 0;
  font-size: 13px;
  color: #8a99a8 !important;
}
.page h2 {
  margin: 36px 0 8px;
  font-size: 21px;
  color: #2c3e50;
}
.page h3 {
  margin: 22px 0 4px;
  font-size: 16.5px;
  color: #2c3e50;
}
.page a {
  color: var(--il-blue-dark);
}
.page code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #e9eef5;
  font-size: 0.88em;
}
.page__list dt {
  margin-top: 14px;
  font-weight: 700;
  color: #2c3e50;
}
.page__list dd {
  margin: 2px 0 0;
}
.page__steps li {
  margin-bottom: 10px;
}

/* ── Tema escuro ──
   O tema é marcado em <html data-theme> por js/views/theme.js (escolha salva
   ou a do sistema). Só as superfícies e textos mudam; os azuis da marca ficam. */
[data-theme="dark"] {
  color-scheme: dark;
  --dk-bg: #0f1520;
  --dk-surface: #172031;
  --dk-surface-2: #1f2a3e;
  --dk-border: #2c3a52;
  --dk-text: #d7deea;
  --dk-muted: #8d9bb0;
  --dk-heading: #eef2f8;
  --il-blue-dark: #7fb0ff;
}
[data-theme="dark"] body,
[data-theme="dark"] .search-container,
[data-theme="dark"] .group__title {
  background: var(--dk-bg);
}
[data-theme="dark"] body {
  color: var(--dk-text);
}
[data-theme="dark"] h1:not(.header__title),
[data-theme="dark"] .summary strong,
[data-theme="dark"] .group__title,
[data-theme="dark"] .scratchpad__title,
[data-theme="dark"] .page__title,
[data-theme="dark"] .page h2,
[data-theme="dark"] .page h3,
[data-theme="dark"] .page__list dt {
  color: var(--dk-heading);
}
[data-theme="dark"] p,
[data-theme="dark"] .summary,
[data-theme="dark"] .sources-note,
[data-theme="dark"] .header__subtitle,
[data-theme="dark"] .emoji-name,
[data-theme="dark"] .customize,
[data-theme="dark"] .supported-filter,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .loading__text {
  color: var(--dk-muted);
}
[data-theme="dark"] .sources-note strong,
[data-theme="dark"] .page {
  color: var(--dk-text);
}
[data-theme="dark"] .header__subtitle-list {
  color: #a9c4ff;
}
[data-theme="dark"] .group__title {
  border-bottom-color: var(--dk-border);
}
[data-theme="dark"] .emoji-card {
  background: var(--dk-surface);
  box-shadow: none;
}
[data-theme="dark"] .emoji-card:hover {
  background: var(--dk-surface-2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .emoji-card--no-glyph {
  background: #2a2414;
  border-color: #7a6224;
}
[data-theme="dark"] .svg-icon {
  color: var(--icon-color, var(--dk-text));
}
[data-theme="dark"] .pill-control,
[data-theme="dark"] #search-bar,
[data-theme="dark"] .back-to-top,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .customize__reset,
[data-theme="dark"] .scratchpad__button:not(.scratchpad__button--primary),
[data-theme="dark"] .emoji-card__action {
  background: var(--dk-surface);
  border-color: var(--dk-border);
  color: var(--dk-text);
}
[data-theme="dark"] .groups-menu__panel,
[data-theme="dark"] .icon-set__panel,
[data-theme="dark"] .card-menu,
[data-theme="dark"] .scratchpad__body {
  background: var(--dk-surface);
  border-color: var(--dk-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .groups-menu__actions {
  border-bottom-color: var(--dk-border);
}
[data-theme="dark"] .icon-set__option,
[data-theme="dark"] .groups-menu__item,
[data-theme="dark"] .card-menu button {
  color: var(--dk-text);
}
[data-theme="dark"] .icon-set__option:hover,
[data-theme="dark"] .icon-set__option:focus-visible,
[data-theme="dark"] .groups-menu__item:hover,
[data-theme="dark"] .card-menu button:hover,
[data-theme="dark"] .card-menu button:focus-visible,
[data-theme="dark"] .scratchpad__close:hover {
  background: var(--dk-surface-2);
}
[data-theme="dark"] .groups-menu__count,
[data-theme="dark"] .group__count,
[data-theme="dark"] .page code {
  background: var(--dk-surface-2);
  border-color: var(--dk-border);
  color: var(--dk-muted);
}
[data-theme="dark"] .scratchpad__text {
  background: var(--dk-bg);
  border-color: var(--dk-border);
  color: var(--dk-text);
}
[data-theme="dark"] .customize__field input[type="color"] {
  border-color: var(--dk-border);
}
[data-theme="dark"] .ad--preview .ad__unit {
  border-color: var(--dk-border);
}
[data-theme="dark"] .site-footer {
  border-top-color: var(--dk-border);
}
@media (max-width: 590px) {
  [data-theme="dark"] .header__subtitle {
    background: #16213a;
    border-color: #26375a;
    border-left-color: var(--il-blue);
    color: var(--dk-text);
  }
}
[data-theme="dark"] .page p {
  color: var(--dk-text);
}

/* ── Editor de ícones ──
   Janela modal: elementos e transformações à esquerda, grade no centro,
   prévias e código à direita, ações embaixo. Em tela estreita, empilha. */
.editor {
  width: min(1180px, 96vw);
  height: min(820px, 94vh);
  max-width: none;
  max-height: none;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: #2c3e50;
  box-shadow: 0 24px 60px rgba(15, 21, 32, 0.35);
}
.editor::backdrop {
  background: rgba(15, 21, 32, 0.55);
}
.editor__layout {
  display: grid;
  height: 100%;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "header header header"
    "side stage code"
    "footer footer footer";
}
.editor__header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #e4e9f0;
}
.editor__title {
  margin: 0;
  font-size: 17px;
}
.editor__name {
  margin-left: 6px;
  font-weight: 500;
  color: var(--il-blue-dark);
  text-transform: capitalize;
}
.editor__close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: #7f8c8d;
  cursor: pointer;
}
.editor__close:hover,
.editor__close:focus-visible {
  background: #eef4ff;
  color: var(--il-blue-dark);
  outline: none;
}
.editor__side {
  grid-area: side;
  overflow-y: auto;
  padding: 14px 16px;
  border-right: 1px solid #e4e9f0;
}
.editor__heading {
  display: block;
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7f8c8d;
}
.editor__side .editor__heading:first-child {
  margin-top: 0;
}
.editor__note {
  margin: -4px 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #8a99a8;
}
.editor__elements {
  max-height: 34vh;
  margin: 0 0 10px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.editor__element {
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 8px;
}
.editor__element--selected {
  background: #eef4ff;
}
.editor__element--hidden .editor__element-name {
  opacity: 0.45;
}
.editor__element-name {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border: none;
  background: none;
  font: inherit;
  font-size: 12.5px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.editor__element-name span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: 11.5px;
  color: #8a99a8;
}
.editor__element-action {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 13px;
  color: #8a99a8;
  cursor: pointer;
}
.editor__element-action:hover,
.editor__element-action:focus-visible {
  background: #e3ecfb;
  color: var(--il-blue-dark);
  outline: none;
}
.editor__empty {
  padding: 6px 8px;
  font-size: 12.5px;
  color: #8a99a8;
}
.editor__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.editor__buttons--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.editor__buttons button,
.editor__footer button,
.editor__studio {
  padding: 7px 10px;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: #42505e;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.editor__buttons button:hover,
.editor__buttons button:focus-visible,
.editor__footer button:hover,
.editor__footer button:focus-visible,
.editor__studio:hover,
.editor__studio:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  outline: none;
}
.editor__footer button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.editor__snap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6b7b;
}
.editor__snap select {
  padding: 4px 6px;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}
.editor__stage {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 14px;
  background: #f5f7fb;
}
.editor__canvas {
  flex: 1;
  width: 100%;
  min-height: 0;
  color: #2c3e50;
  touch-action: none;
  outline: none;
}
.editor__grid-bg {
  fill: #fff;
}
.editor__grid line {
  stroke: #e6ebf2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.editor__grid line.editor__grid-major {
  stroke: #cdd7e3;
}
.editor__hits > * {
  cursor: move;
}
.editor__handle {
  fill: #fff;
  stroke: var(--il-blue);
  stroke-width: 2;
  cursor: grab;
}
.editor__handle:active {
  cursor: grabbing;
}
.editor__handle--ctrl {
  stroke: var(--il-purple);
}
.editor__handle--center,
.editor__handle--radius {
  fill: var(--il-blue);
  stroke: #fff;
}
.editor__handle-line {
  stroke: var(--il-purple);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}
.editor__hint {
  margin: 8px 0 0;
  font-size: 12px;
  text-align: center;
  color: #8a99a8;
}
.editor__code {
  grid-area: code;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 16px;
  border-left: 1px solid #e4e9f0;
}
.editor__previews {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  color: #2c3e50;
}
.editor__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.editor__preview span {
  display: block;
}
.editor__preview svg {
  display: block;
  width: 100%;
  height: 100%;
}
.editor__preview figcaption {
  font-size: 11px;
  color: #8a99a8;
}
.editor__textarea {
  flex: 1;
  min-height: 120px;
  box-sizing: border-box;
  padding: 10px;
  border: 2px solid #dfe6ee;
  border-radius: 10px;
  font: 12px/1.5 Consolas, "Cascadia Mono", Menlo, monospace;
  color: #2c3e50;
  background: #fbfcfe;
  resize: none;
  outline: 0;
  word-break: break-all;
}
.editor__textarea:focus {
  border-color: var(--il-blue);
}
.editor__error {
  min-height: 1.4em;
  margin: 6px 0 0;
  font-size: 12px;
  color: #d0392b;
}
.editor__footer {
  grid-area: footer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #e4e9f0;
}
.editor__spacer {
  flex: 1;
}
.editor__footer .editor__primary {
  border-color: var(--il-blue);
  background: var(--il-blue);
  color: #fff;
  font-weight: 600;
}
.editor__footer .editor__primary:hover,
.editor__footer .editor__primary:focus-visible {
  background: var(--il-blue-dark);
  border-color: var(--il-blue-dark);
  color: #fff;
}
/* Tela estreita: tudo em coluna, com rolagem na janela */
@media (max-width: 900px) {
  /* 100%, não 100vw: o vw conta a barra de rolagem e a janela vazava */
  .editor {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .editor__layout {
    height: auto;
    min-height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "header" "stage" "side" "code" "footer";
  }
  .editor__stage {
    height: min(92vw, 60vh);
  }
  .editor__side,
  .editor__code {
    border: none;
    border-top: 1px solid #e4e9f0;
  }
  .editor__textarea {
    min-height: 160px;
  }
}
[data-theme="dark"] .editor {
  background: var(--dk-surface);
  color: var(--dk-text);
}
[data-theme="dark"] .editor__header,
[data-theme="dark"] .editor__side,
[data-theme="dark"] .editor__code,
[data-theme="dark"] .editor__footer,
[data-theme="dark"] .editor__previews {
  border-color: var(--dk-border);
}
[data-theme="dark"] .editor__stage {
  background: var(--dk-bg);
}
[data-theme="dark"] .editor__canvas,
[data-theme="dark"] .editor__previews {
  color: var(--dk-text);
}
[data-theme="dark"] .editor__grid-bg {
  fill: var(--dk-surface);
}
[data-theme="dark"] .editor__grid line {
  stroke: #233049;
}
[data-theme="dark"] .editor__grid line.editor__grid-major {
  stroke: #33435f;
}
[data-theme="dark"] .editor__handle {
  fill: var(--dk-surface);
}
[data-theme="dark"] .editor__element--selected,
[data-theme="dark"] .editor__close:hover,
[data-theme="dark"] .editor__element-action:hover {
  background: var(--dk-surface-2);
}
[data-theme="dark"] .editor__buttons button,
[data-theme="dark"] .editor__footer button:not(.editor__primary),
[data-theme="dark"] .editor__studio,
[data-theme="dark"] .editor__snap select {
  background: var(--dk-surface-2);
  border-color: var(--dk-border);
  color: var(--dk-text);
}
[data-theme="dark"] .editor__textarea {
  background: var(--dk-bg);
  border-color: var(--dk-border);
  color: var(--dk-text);
}
[data-theme="dark"] .editor__snap {
  color: var(--dk-muted);
}

/* Seleção no editor: contorno tracejado por cima, a forma mantém a cor */
.editor__outline {
  fill: none;
  stroke: var(--il-blue);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  pointer-events: none;
}

/* Lista agrupada por ícone */
.editor__group {
  margin-top: 6px;
}
.editor__group:first-child {
  margin-top: 0;
}
.editor__group-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  text-align: left;
  text-transform: capitalize;
  cursor: pointer;
}
.editor__group-name span {
  font-size: 11px;
  font-weight: 500;
  color: #8a99a8;
  text-transform: none;
}
.editor__group-name:hover,
.editor__group--selected .editor__group-name {
  background: #eef4ff;
  color: var(--il-blue-dark);
}
.editor__group ~ .editor__element {
  padding-left: 10px;
}
.editor__swatch {
  flex: 0 0 auto;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* "+ Icon on top" e a busca */
.editor__buttons .editor__add-icon {
  flex-basis: 100%;
  border-style: dashed;
}
.editor__picker {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #f8fafd;
}
.editor__picker-bar {
  display: flex;
  gap: 6px;
}
.editor__picker-bar select {
  flex: 1;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.editor__picker-close {
  width: 30px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 18px;
  color: #7f8c8d;
  cursor: pointer;
}
.editor__picker-close:hover {
  background: #eef4ff;
}
.editor__picker-search {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0;
  padding: 6px 8px;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.editor__picker-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.editor__picker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #2c3e50;
  cursor: pointer;
}
.editor__picker-icon svg {
  width: 20px;
  height: 20px;
}
.editor__picker-icon:hover,
.editor__picker-icon:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  outline: none;
}
.editor__picker-message {
  grid-column: 1 / -1;
  margin: 6px 0;
  font-size: 12.5px;
  color: #8a99a8;
}

/* Cor e espessura da seleção */
.editor__style {
  margin-top: 6px;
}
.editor__style-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.editor__style-row label {
  min-width: 46px;
  font-weight: 600;
  color: #5a6b7b;
}
.editor__style-row input[type="color"] {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 1px solid #c5d0dc;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.editor__style-row input[type="range"] {
  flex: 1;
  min-width: 80px;
  accent-color: var(--il-blue);
}
.editor__style-row output {
  min-width: 2.5em;
  font-size: 12px;
  color: #8a99a8;
}
.editor__style-reset {
  padding: 3px 9px;
  border: 1px solid #c5d0dc;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: #42505e;
  cursor: pointer;
}
.editor__style-reset:hover,
.editor__style-reset:focus-visible {
  border-color: var(--il-blue);
  color: var(--il-blue-dark);
  outline: none;
}
[data-theme="dark"] .editor__group-name:hover,
[data-theme="dark"] .editor__group--selected .editor__group-name,
[data-theme="dark"] .editor__picker-close:hover {
  background: var(--dk-surface-2);
}
[data-theme="dark"] .editor__picker {
  background: var(--dk-bg);
  border-color: var(--dk-border);
}
[data-theme="dark"] .editor__picker-icon {
  background: var(--dk-surface);
  color: var(--dk-text);
}
[data-theme="dark"] .editor__picker-bar select,
[data-theme="dark"] .editor__picker-search,
[data-theme="dark"] .editor__style-reset,
[data-theme="dark"] .editor__style-row input[type="color"] {
  background: var(--dk-surface-2);
  border-color: var(--dk-border);
  color: var(--dk-text);
}
[data-theme="dark"] .editor__style-row label {
  color: var(--dk-muted);
}

/* Arquivo .ile sendo arrastado sobre o editor */
.editor--drop {
  outline: 3px dashed var(--il-blue);
  outline-offset: -10px;
}
