/* --------------------------------------------------------------------------
   Etiquetas Especiais — abas e painel de importação de arte SVG.
   Arquivo separado de propósito: nada aqui altera o visual do fluxo padrão.
   -------------------------------------------------------------------------- */

/* O atributo [hidden] só aplica `display:none` com especificidade mínima —
   qualquer regra com `display: grid/flex` explícito (como .layout e
   .special-empty) o vence e o elemento continua visível. Sem isto, as duas
   abas apareciam ao mesmo tempo. */
[hidden] {
  display: none !important;
}

/* --- abas --- */
.tabs {
  display: flex;
  gap: 4px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.tab {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.tab:hover {
  background: var(--accent-bg);
}

.tab--active {
  background: var(--panel-bg);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 -1px 0 var(--ink) inset;
}

/* a vista de especiais usa o mesmo grid de 3 colunas da vista padrão */
.layout--special {
  align-items: start;
}

/* --- painel de importação --- */
.special-intro {
  margin: -6px 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.special-actions-top {
  margin-bottom: 12px;
}

.special-actions-top button {
  width: 100%;
}

.special-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 22px 14px;
  border: 2px dashed #cfcfcf;
  border-radius: 10px;
  background: var(--accent-bg);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.special-dropzone:hover,
.special-dropzone:focus-visible,
.special-dropzone--over {
  border-color: var(--ink);
  background: #f0f0ee;
}

.special-dropzone strong {
  font-size: 13px;
}

.special-dropzone span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* --- mensagens de validação --- */
.special-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  border: 1px solid var(--line);
  background: var(--accent-bg);
  color: var(--ink);
}

.special-status ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.special-status li {
  margin-bottom: 4px;
}

.special-status--ok {
  border-color: #bfe3bf;
  background: #eef6ee;
  color: #14532d;
}

.special-status--warn {
  border-color: #f0b429;
  background: var(--warn-bg);
  color: #7a4b00;
}

.special-status--error {
  border-color: #e8c6c1;
  background: var(--danger-bg);
  color: #7f1d1d;
}

.special-status--info {
  color: var(--muted);
}

/* --- formulário de dados --- */
.special-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.special-form button {
  width: 100%;
  margin-top: 4px;
}

/* --- etiqueta aberta --- */
.special-opened {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--accent-bg);
}

.special-opened__label {
  margin: 0 0 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.special-opened__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.special-opened__meta {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* --- prévia vazia --- */
.label-frame {
  position: relative;
}

.special-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  pointer-events: none;
}

/* --- uso de armazenamento --- */
.special-usage {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
