/* ==========================================================================
   FERRAMENTAS — página de listagem, cards e ferramenta Corretor de Texto
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ferr-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text, #173657);
  box-sizing: border-box;
}

.ferr-hero {
  padding: 2rem 2rem;
  margin-bottom: 2rem;
}

.ferr-hero h1 {
  margin-bottom: 0;
}

.ferr-hero p {
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

/* ---------- Breadcrumb ---------- */
.ferr-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 1rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.ferr-breadcrumb a {
  color: #0284c7;
  text-decoration: none;
}

.ferr-breadcrumb a:hover {
  color: #fe55bd;
  text-decoration: underline;
}

.ferr-breadcrumb .material-symbols-rounded {
  font-size: 16px;
  opacity: 0.6;
}

/* ---------- Grid + Cards ---------- */
.ferr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.ferr-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 54, 87, 0.06);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

a.ferr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -10px rgba(23, 54, 87, 0.15), 0 4px 6px -2px rgba(23, 54, 87, 0.05);
}

.ferr-card-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: linear-gradient(135deg, rgba(43, 184, 252, 0.16), rgba(254, 85, 189, 0.16));
  overflow: hidden;
}

.ferr-card-icon {
  font-size: 64px;
  background: linear-gradient(135deg, #2bb8fc, #fe55bd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a.ferr-card:hover .ferr-card-icon {
  transform: scale(1.12) rotate(-4deg);
}

.ferr-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ferr-status.ok {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.ferr-status.soon {
  background: rgba(23, 54, 87, 0.08);
  color: #475569;
}

.ferr-card-content {
  flex-grow: 1;
  padding: 22px 24px 8px;
}

.ferr-card-content h2 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #173657;
  transition: color 0.25s ease;
}

a.ferr-card:hover .ferr-card-content h2 {
  color: #fe55bd;
}

.ferr-card-desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #475569;
}

.ferr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ferr-chips li {
  padding: 3px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
}

.ferr-card-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(23, 54, 87, 0.04);
  margin-top: 14px;
}

.ferr-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0284c7;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ferr-card-cta .material-symbols-rounded {
  font-size: 18px;
}

a.ferr-card:hover .ferr-card-cta {
  gap: 10px;
  color: #fe55bd;
}

.ferr-card-placeholder {
  border-style: dashed;
  border-color: rgba(23, 54, 87, 0.2);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.ferr-card-placeholder .ferr-card-banner {
  background: transparent;
  height: 120px;
}

.ferr-card-placeholder .ferr-card-icon {
  opacity: 0.45;
}

.ferr-card-placeholder .ferr-card-content {
  padding-bottom: 24px;
}

/* ---------- Conteúdo de apoio (SEO) ---------- */
.ferr-article,
.ferr-faq {
  max-width: 860px;
  margin: 2.5rem auto 0;
  line-height: 1.7;
  color: #334155;
}

.ferr-article h2,
.ferr-faq h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #173657;
  margin: 2rem 0 0.8rem;
}

.ferr-article h2:first-child {
  margin-top: 0;
}

.ferr-article p {
  margin: 0 0 1rem;
}

.ferr-article ul,
.ferr-article ol {
  padding-left: 1.65rem;
  margin: 0 0 1.1rem;
}

.ferr-article li {
  margin-bottom: 0.55rem;
}

.ferr-faq-item {
  background: #ffffff;
  border: 1px solid rgba(23, 54, 87, 0.08);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.ferr-faq-item summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 700;
  color: #173657;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ferr-faq-item summary::-webkit-details-marker {
  display: none;
}

.ferr-faq-item summary::before {
  content: "▸";
  flex: 0 0 auto;
  color: #2bb8fc;
  font-size: 0.95em;
  line-height: 1.5;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ferr-faq-item[open] summary::before {
  transform: rotate(90deg);
  color: #fe55bd;
}

.ferr-faq-item[open] summary {
  color: #0284c7;
}

.ferr-faq-item p {
  margin: 0 0 16px 22px;
  color: #475569;
}

.ferr-back {
  max-width: 860px;
  margin: 2rem auto 0;
}

.ferr-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0284c7;
  text-decoration: none;
}

.ferr-back a:hover {
  color: #fe55bd;
}

.ferr-back .material-symbols-rounded {
  font-size: 18px;
}

/* ==========================================================================
   CORRETOR DE TEXTO
   ========================================================================== */
.ct-app {
  margin-top: 0.5rem;
}

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "input output"
    "options options";
  gap: 24px;
  align-items: start;
}

.ct-input { grid-area: input; }
.ct-output { grid-area: output; }
.ct-options {
  grid-area: options;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.ct-card {
  background: #ffffff;
  border: 1px solid rgba(23, 54, 87, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(23, 54, 87, 0.04);
  box-sizing: border-box;
}

.ct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ct-card-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #173657;
}

.ct-card-head h2 .material-symbols-rounded {
  font-size: 22px;
  background: linear-gradient(135deg, #2bb8fc, #fe55bd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ct-card-foot {
  margin-top: 14px;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ct-help {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
}

.ct-meta {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

/* Campos */
.ct-textarea {
  width: 100%;
  min-height: 340px;
  padding: 14px 16px;
  box-sizing: border-box;
  border: 1.5px solid rgba(23, 54, 87, 0.14);
  border-radius: 12px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #1e293b;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ct-textarea:focus,
.ct-text:focus {
  outline: none;
  border-color: #2bb8fc;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 184, 252, 0.18);
}

.ct-textarea-sm {
  min-height: 84px;
  margin-top: 6px;
}

.ct-textarea-output {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.35);
}

.ct-label {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #173657;
}

.ct-label small,
.ct-check small {
  font-weight: 500;
  color: #64748b;
}

/* Regras */
.ct-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-rule {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid rgba(23, 54, 87, 0.08);
  border-radius: 12px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 130px;
  min-width: 0;
}

.ct-field-grow {
  flex: 1 1 160px;
}

.ct-field label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
}

.ct-text {
  width: 100%;
  padding: 9px 11px;
  box-sizing: border-box;
  border: 1.5px solid rgba(23, 54, 87, 0.14);
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-rule-count {
  display: none;
  flex-basis: 100%;
  font-size: 0.74rem;
  font-weight: 700;
  color: #15803d;
}

.ct-rule-count.has-count {
  display: block;
}

.ct-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ct-icon-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.ct-icon-btn .material-symbols-rounded {
  font-size: 20px;
}

/* Interruptores */
.ct-switches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ct-options .ct-card > .ct-switches:first-of-type {
  margin-top: 0;
}

.ct-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.ct-check input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #fe55bd;
  cursor: pointer;
}

/* Botões */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ct-btn .material-symbols-rounded {
  font-size: 17px;
}

.ct-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.ct-btn-ghost {
  background: #f1f5f9;
  color: #475569;
}

.ct-btn-ghost:hover:not(:disabled) {
  background: rgba(43, 184, 252, 0.14);
  color: #0369a1;
}

.ct-btn-secondary {
  background: #ffffff;
  color: #0369a1;
  border-color: rgba(43, 184, 252, 0.5);
}

.ct-btn-secondary:hover:not(:disabled) {
  background: rgba(43, 184, 252, 0.1);
}

.ct-btn-primary {
  padding: 8px 18px;
  background: linear-gradient(135deg, #2bb8fc, #fe55bd);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(254, 85, 189, 0.28);
}

.ct-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(254, 85, 189, 0.4);
}

.ct-btn:focus-visible,
.ct-icon-btn:focus-visible,
.ct-check input:focus-visible {
  outline: 2px solid #2bb8fc;
  outline-offset: 2px;
}

/* Resumo e status */
.ct-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ct-summary li {
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.ct-summary li.replace {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.ct-summary li.remove {
  background: rgba(254, 85, 189, 0.13);
  color: #be185d;
}

.ct-summary li.none {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.ct-status {
  min-height: 1.2em;
  margin: 10px 2px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d;
}

.ct-status.error {
  color: #dc2626;
}

.ct-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.ct-privacy .material-symbols-rounded {
  font-size: 17px;
  color: #10b981;
}

/* ---------- Espaço de anúncio (AdSense) e Banners próprios ---------- */
.ferr-ad {
  max-width: 960px;
  margin: 2rem auto 0;
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(23, 54, 87, 0.14);
  background: rgba(248, 250, 252, 0.85);
  text-align: center;
  overflow: hidden;
}

.ferr-ad-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ferr-promo {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 960px;
  margin: 2.2rem auto 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(43, 184, 252, 0.22);
  box-shadow: 0 8px 24px -12px rgba(23, 54, 87, 0.14);
  box-sizing: border-box;
}

.ferr-promo-curso {
  background: linear-gradient(135deg, rgba(43, 184, 252, 0.07) 0%, #ffffff 55%, rgba(254, 85, 189, 0.06) 100%);
}

.ferr-promo-clube {
  border-color: rgba(254, 85, 189, 0.28);
  background: linear-gradient(135deg, rgba(254, 85, 189, 0.08) 0%, #ffffff 55%, rgba(43, 184, 252, 0.08) 100%);
}

.ferr-promo-thumb {
  flex: 0 0 184px;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(23, 54, 87, 0.28);
  line-height: 0;
  transition: transform 0.25s ease;
}

.ferr-promo-thumb:hover {
  transform: scale(1.03);
}

.ferr-promo-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ferr-promo-icon {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(254, 85, 189, 0.45);
}

.ferr-promo-icon .material-symbols-rounded {
  font-size: 34px;
}

.ferr-promo-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ferr-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(43, 184, 252, 0.14);
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ferr-promo-tag .material-symbols-rounded {
  font-size: 14px;
}

.ferr-promo-tag-pink {
  background: rgba(254, 85, 189, 0.14);
  color: #db2777;
}

.ferr-promo-body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text, #173657);
  line-height: 1.3;
}

.ferr-promo-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

.ferr-promo-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ferr-promo-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0284c7;
}

.ferr-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2bb8fc, #0284c7);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(2, 132, 199, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ferr-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px -6px rgba(2, 132, 199, 0.6);
  filter: brightness(1.04);
}

.ferr-promo-btn .material-symbols-rounded {
  font-size: 18px;
}

.ferr-promo-btn-pink {
  background: linear-gradient(135deg, #fe55bd, #e11d8a);
  box-shadow: 0 6px 14px -6px rgba(254, 85, 189, 0.6);
}

.ferr-promo-btn-pink:hover {
  box-shadow: 0 10px 18px -6px rgba(254, 85, 189, 0.7);
}

.ferr-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ferr-promo-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.ferr-promo-link .material-symbols-rounded {
  font-size: 14px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .ct-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ct-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "input"
      "options"
      "output";
  }

  .ct-textarea {
    min-height: 240px;
  }
}

@media (max-width: 780px) {
  .ferr-promo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 18px;
  }

  .ferr-promo-thumb {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .ferr-promo-icon {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .ferr-promo-icon .material-symbols-rounded {
    font-size: 64px;
  }

  .ferr-promo-body {
    width: 100%;
  }

  .ferr-promo-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .ferr-promo-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .ferr-container {
    padding: 1rem 0.9rem 2.5rem;
  }

  .ferr-hero {
    padding: 1.4rem 1.1rem;
  }

  .ferr-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .ct-card {
    padding: 16px;
  }

  .ct-field {
    flex: 1 1 100%;
  }

  .ct-rule {
    align-items: stretch;
  }

  .ct-icon-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
  }
}


/* ==========================================================================
   CADEADO (FERRAMENTAS PROTEGIDAS POR SENHA)
   ========================================================================== */
.ferr-status.locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(254, 85, 189, 0.55);
}

.ferr-status.locked .material-symbols-rounded {
  font-size: 14px;
}

.ferr-card.is-locked .ferr-card-cta {
  color: #db2777;
}

.ferr-card.is-locked .ferr-card-cta .material-symbols-rounded {
  font-size: 16px;
}

.ferr-lock-wrap {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
}

.ferr-lock-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 30px 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(254, 85, 189, 0.24);
  box-shadow: 0 18px 42px -18px rgba(23, 54, 87, 0.2), 0 0 0 1px rgba(43, 184, 252, 0.08);
  text-align: center;
}

.ferr-lock-card.is-shaking {
  animation: ferrShake 0.36s ease;
}

@keyframes ferrShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  45% { transform: translateX(8px); }
  70% { transform: translateX(-5px); }
  85% { transform: translateX(4px); }
}

.ferr-lock-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(254, 85, 189, 0.55);
}

.ferr-lock-badge .material-symbols-rounded {
  font-size: 34px;
}

.ferr-lock-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(254, 85, 189, 0.12);
  color: #db2777;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ferr-lock-card h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text, #173657);
  line-height: 1.3;
}

.ferr-lock-desc {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
}

.ferr-lock-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ferr-lock-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.ferr-lock-input-icon {
  position: absolute;
  left: 14px;
  font-size: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.ferr-lock-input {
  width: 100%;
  padding: 13px 46px 13px 44px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  color: #173657;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ferr-lock-input:focus {
  border-color: #2bb8fc;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(43, 184, 252, 0.16);
}

.ferr-lock-eye {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ferr-lock-eye:hover {
  background: rgba(23, 54, 87, 0.06);
  color: #173657;
}

.ferr-lock-remember {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.ferr-lock-remember input {
  width: 16px;
  height: 16px;
  accent-color: #fe55bd;
}

.ferr-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(254, 85, 189, 0.55);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.ferr-lock-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.ferr-lock-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.ferr-lock-error {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #dc2626;
}

.ferr-lock-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #64748b;
}

.ferr-lock-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #db2777;
  font-weight: 800;
  text-decoration: none;
}

.ferr-lock-footer a:hover {
  text-decoration: underline;
}

.ferr-lock-footer .material-symbols-rounded {
  font-size: 16px;
}

.ferr-lock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ferr-lock-unlocked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.8rem;
  font-weight: 800;
}

.ferr-lock-unlocked-badge .material-symbols-rounded {
  font-size: 16px;
}

.ferr-lock-relock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(23, 54, 87, 0.14);
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ferr-lock-relock:hover {
  border-color: #fe55bd;
  color: #db2777;
}

.ferr-lock-relock .material-symbols-rounded {
  font-size: 15px;
}

/* ==========================================================================
   TELEPROMPTER FONÉTICO
   ========================================================================== */
.tp-app {
  --tp-bg: #0c1222;
  --tp-surface: #131c33;
  --tp-surface-2: #1a2644;
  --tp-border: rgba(148, 163, 184, 0.18);
  --tp-text: #f8fafc;
  --tp-muted: #94a3b8;
  --tp-pink: #fe55bd;
  --tp-blue: #2bb8fc;
  --tp-card-bg: rgba(255, 255, 255, 0.03);
  --tp-card-active: rgba(255, 255, 255, 0.08);
}

.tp-app[data-theme="light"] {
  --tp-bg: #f8fbff;
  --tp-surface: #ffffff;
  --tp-surface-2: #eef6ff;
  --tp-border: rgba(23, 54, 87, 0.12);
  --tp-text: #173657;
  --tp-muted: #64748b;
  --tp-card-bg: rgba(23, 54, 87, 0.025);
  --tp-card-active: #ffffff;
}

.tp-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.tp-tabs {
  display: inline-flex;
  padding: 5px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid rgba(23, 54, 87, 0.08);
  gap: 4px;
}

.tp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tp-tab .material-symbols-rounded {
  font-size: 19px;
}

.tp-tab.is-active {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(254, 85, 189, 0.55);
}

.tp-tab-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(23, 54, 87, 0.1);
}

.tp-tab.is-active .tp-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.tp-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 54, 87, 0.14);
  background: #ffffff;
  color: #173657;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tp-pill-btn:hover {
  border-color: #2bb8fc;
  background: #f0f9ff;
}

.tp-pill-btn .material-symbols-rounded {
  font-size: 17px;
  color: #fe55bd;
}

/* Editor */
.tp-editor-card {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(23, 54, 87, 0.08);
  box-shadow: 0 10px 28px -14px rgba(23, 54, 87, 0.14);
}

.tp-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.tp-editor-head h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #173657;
}

.tp-editor-hint {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.5;
}

.tp-editor-hint code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(43, 184, 252, 0.12);
  color: #0284c7;
  font-weight: 700;
  font-size: 0.82rem;
}

.tp-editor-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-textarea {
  width: 100%;
  min-height: 300px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #173657;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tp-textarea:focus {
  border-color: #fe55bd;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(254, 85, 189, 0.12);
}

.tp-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.tp-parse-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
}

.tp-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(254, 85, 189, 0.55);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.tp-primary-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Palco do Teleprompter */
.tp-shell {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--tp-bg);
  color: var(--tp-text);
  border: 1px solid var(--tp-border);
  box-shadow: 0 22px 50px -20px rgba(12, 18, 34, 0.45);
}

.tp-shell:fullscreen {
  border-radius: 0;
  border: none;
  width: 100vw;
  height: 100vh;
}

.tp-shell:fullscreen .tp-stage-wrap {
  flex: 1 1 auto;
  height: auto;
}

.tp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 16px;
  background: var(--tp-surface);
  border-bottom: 1px solid var(--tp-border);
}

.tp-ctrl-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tp-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  min-width: 108px;
  justify-content: center;
  box-shadow: 0 6px 16px -6px rgba(254, 85, 189, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tp-play-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.tp-play-btn.is-playing {
  background: linear-gradient(135deg, #2bb8fc, #0284c7);
  box-shadow: 0 6px 16px -6px rgba(43, 184, 252, 0.65);
}

.tp-icon-btn,
.tp-mini-btn,
.tp-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface-2);
  color: var(--tp-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tp-icon-btn {
  width: 36px;
  padding: 0;
}

.tp-icon-btn .material-symbols-rounded {
  font-size: 20px;
}

.tp-mini-btn {
  min-width: 34px;
  padding: 0 9px;
}

.tp-toggle-btn {
  padding: 0 12px;
}

.tp-toggle-btn.is-on {
  border-color: rgba(254, 85, 189, 0.55);
  background: rgba(254, 85, 189, 0.16);
  color: var(--tp-pink);
}

.tp-icon-btn:hover,
.tp-mini-btn:hover,
.tp-toggle-btn:hover {
  border-color: var(--tp-blue);
}

.tp-speed-group {
  gap: 6px;
}

.tp-ctrl-label,
.tp-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tp-muted);
}

.tp-val {
  min-width: 34px;
  text-align: right;
  color: var(--tp-blue);
}

#tp-speed {
  width: 110px;
  accent-color: #fe55bd;
  cursor: pointer;
}

/* Área de rolagem + Guia de leitura */
.tp-stage-wrap {
  position: relative;
  height: 62vh;
  min-height: 400px;
  max-height: 680px;
  overflow: hidden;
}

.tp-focus-guide {
  position: absolute;
  top: 34%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 3;
}

.tp-guide-arrow {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.tp-guide-left {
  color: var(--tp-pink);
  text-shadow: 0 0 12px rgba(254, 85, 189, 0.75);
}

.tp-guide-right {
  color: var(--tp-blue);
  text-shadow: 0 0 12px rgba(43, 184, 252, 0.75);
}

.tp-guide-line {
  flex: 1 1 auto;
  height: 1px;
  margin: 0 10px;
  background: linear-gradient(90deg, rgba(254, 85, 189, 0.35), transparent 16%, transparent 84%, rgba(43, 184, 252, 0.35));
}

.tp-stage {
  height: 100%;
  overflow-y: auto;
  padding: 26vh 28px 42vh;
  box-sizing: border-box;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 184, 252, 0.4) transparent;
}

.tp-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  --tp-font-size: 2.1rem;
}

.tp-section-tag {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(254, 85, 189, 0.2), rgba(43, 184, 252, 0.2));
  border: 1px solid rgba(254, 85, 189, 0.35);
  color: var(--tp-text);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}

.tp-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--tp-card-bg);
  border: 2px solid transparent;
  border-left: 5px solid rgba(148, 163, 184, 0.25);
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.tp-block:hover {
  opacity: 0.78;
}

.tp-block.is-past {
  opacity: 0.26;
}

.tp-block.is-active {
  opacity: 1;
  background: var(--tp-card-active);
  transform: scale(1.015);
}

.tp-block.tp-tint-pink.is-active {
  border-color: rgba(254, 85, 189, 0.42);
  border-left-color: #fe55bd;
  box-shadow: 0 14px 34px -16px rgba(254, 85, 189, 0.45);
}

.tp-block.tp-tint-blue.is-active {
  border-color: rgba(43, 184, 252, 0.42);
  border-left-color: #2bb8fc;
  box-shadow: 0 14px 34px -16px rgba(43, 184, 252, 0.45);
}

.tp-block-num {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 4px 9px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(148, 163, 184, 0.14);
  color: var(--tp-muted);
}

.tp-block.tp-tint-pink.is-active .tp-block-num {
  background: rgba(254, 85, 189, 0.2);
  color: #fe55bd;
}

.tp-block.tp-tint-blue.is-active .tp-block-num {
  background: rgba(43, 184, 252, 0.2);
  color: #2bb8fc;
}

.tp-block-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-phonetic {
  margin: 0;
  font-size: var(--tp-font-size);
  font-weight: 800;
  line-height: 1.48;
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22em 0.42em;
}

.tp-word {
  display: inline-block;
  padding: 0.04em 0.22em;
  border-radius: 10px;
}

.tp-block.is-active .tp-word-a {
  background: rgba(254, 85, 189, 0.09);
}

.tp-block.is-active .tp-word-b {
  background: rgba(43, 184, 252, 0.09);
}

.tp-hyphen {
  opacity: 0.45;
  font-weight: 600;
}

.tp-syl-stress {
  color: #fe55bd;
}

.tp-block.tp-tint-blue .tp-syl-stress {
  color: #2bb8fc;
}

.tp-app[data-theme="light"] .tp-syl-stress {
  color: #db2777;
}

.tp-app[data-theme="light"] .tp-block.tp-tint-blue .tp-syl-stress {
  color: #0284c7;
}

.tp-app.hide-stress .tp-syl-stress {
  color: inherit;
}

.tp-original {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, calc(var(--tp-font-size) * 0.52), 1.3rem);
  font-weight: 600;
  font-style: italic;
  color: var(--tp-muted);
  line-height: 1.45;
}

.tp-app.hide-original .tp-original {
  display: none;
}

.tp-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--tp-muted);
  font-weight: 600;
}

/* Rodapé do palco */
.tp-footer-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 18px 13px;
  background: var(--tp-surface);
  border-top: 1px solid var(--tp-border);
  font-size: 0.78rem;
  color: var(--tp-muted);
}

.tp-counter {
  font-weight: 800;
  color: var(--tp-text);
}

.tp-shortcuts-hint {
  font-weight: 600;
  opacity: 0.85;
}

.tp-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(148, 163, 184, 0.16);
}

.tp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fe55bd, #2bb8fc);
  transition: width 0.12s linear;
}

@media (max-width: 720px) {
  .ferr-lock-card {
    padding: 26px 18px 22px;
  }

  .tp-editor-card {
    padding: 16px;
  }

  .tp-stage {
    padding: 22vh 14px 36vh;
  }

  .tp-block {
    padding: 16px;
    gap: 10px;
  }

  .tp-shortcuts-hint {
    display: none;
  }
}


/* ---------- Guia de instruções e marcações de pausa (/ e //) ---------- */
.tp-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tp-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(23, 54, 87, 0.08);
}

.tp-legend-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.tp-legend-bracket {
  background: linear-gradient(135deg, rgba(254, 85, 189, 0.16), rgba(43, 184, 252, 0.16));
  color: #173657;
  border: 1px solid rgba(43, 184, 252, 0.3);
}

.tp-legend-short {
  background: rgba(43, 184, 252, 0.16);
  color: #0284c7;
  border: 1px solid rgba(43, 184, 252, 0.35);
}

.tp-legend-long {
  background: rgba(254, 85, 189, 0.16);
  color: #db2777;
  border: 1px solid rgba(254, 85, 189, 0.38);
}

.tp-legend-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #173657;
  margin-bottom: 2px;
}

.tp-legend-item p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.45;
  color: #64748b;
}

.tp-stage-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 7px 16px;
  background: var(--tp-surface-2);
  border-bottom: 1px solid var(--tp-border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--tp-muted);
}

.tp-sl-bracket {
  color: var(--tp-text);
  margin-right: 4px;
}

.tp-sl-short {
  color: var(--tp-blue);
  margin-right: 4px;
}

.tp-sl-long {
  color: var(--tp-pink);
  margin-right: 4px;
}

.tp-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 0.68em;
  font-weight: 900;
  line-height: 1;
  padding: 0.22em 0.48em;
  border-radius: 999px;
  vertical-align: middle;
}

.tp-pause-short {
  background: rgba(43, 184, 252, 0.18);
  color: #2bb8fc;
  border: 1px solid rgba(43, 184, 252, 0.45);
}

.tp-pause-long {
  background: rgba(254, 85, 189, 0.2);
  color: #fe55bd;
  border: 1px solid rgba(254, 85, 189, 0.5);
}

.tp-app[data-theme="light"] .tp-pause-short {
  color: #0284c7;
}

.tp-app[data-theme="light"] .tp-pause-long {
  color: #db2777;
}

.tp-pause-end {
  margin-left: 0.15em;
}

.tp-translation {
  margin: 6px 0 0;
  font-size: clamp(0.86rem, calc(var(--tp-font-size) * 0.44), 1.12rem);
  font-weight: 600;
  color: #2bb8fc;
  opacity: 0.88;
  line-height: 1.45;
}

.tp-app[data-theme="light"] .tp-translation {
  color: #0284c7;
}

.tp-app.hide-translation .tp-translation {
  display: none;
}

@media (max-width: 900px) {
  .tp-legend-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   AVISO "EM BREVE" NO CADEADO + LOGO DO CANAL NAS FERRAMENTAS
   ========================================================================== */
.ferr-lock-soon-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43, 184, 252, 0.12), rgba(254, 85, 189, 0.12));
  border: 1px solid rgba(43, 184, 252, 0.28);
  font-size: 0.85rem;
  line-height: 1.48;
  color: #173657;
}

.ferr-lock-soon-notice .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 20px;
  color: #fe55bd;
  margin-top: 1px;
}

.ferr-tool-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.ferr-tool-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.tp-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-footer-logo {
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

/* ==========================================================================
   CRIADOR DE TIER LIST PERSONALIZADA
   ========================================================================== */
.tl-app {
  --tl-bg: #0c1222;
  --tl-surface: #131c33;
  --tl-surface-2: #1a2644;
  --tl-border: rgba(148, 163, 184, 0.2);
  --tl-text: #f8fafc;
  --tl-muted: #94a3b8;
  --tl-pink: #fe55bd;
  --tl-blue: #2bb8fc;
  --tl-item-w: 96px;
  --tl-item-h: 96px;
  max-width: 1220px;
  margin: 0 auto;
}

.tl-app[data-theme="light"] {
  --tl-bg: #f8fbff;
  --tl-surface: #ffffff;
  --tl-surface-2: #eef6ff;
  --tl-border: rgba(23, 54, 87, 0.12);
  --tl-text: #173657;
  --tl-muted: #64748b;
}

.tl-app[data-aspect="portrait"] {
  --tl-item-w: 80px;
  --tl-item-h: 106px;
}

.tl-app[data-aspect="landscape"] {
  --tl-item-w: 118px;
  --tl-item-h: 88px;
}

/* Barra superior */
.tl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.tl-toolbar-left,
.tl-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.tl-btn .material-symbols-rounded {
  font-size: 18px;
}

.tl-btn-sm {
  padding: 7px 12px;
  font-size: 0.79rem;
  border-radius: 10px;
}

.tl-btn-primary {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(254, 85, 189, 0.55);
}

.tl-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.tl-btn-outline {
  background: #ffffff;
  color: #173657;
  border-color: rgba(43, 184, 252, 0.45);
  box-shadow: 0 4px 12px -6px rgba(43, 184, 252, 0.35);
}

.tl-btn-outline:hover {
  border-color: #fe55bd;
  background: #fff5fb;
  color: #db2777;
}

.tl-btn-ghost {
  background: #ffffff;
  color: #475569;
  border-color: rgba(23, 54, 87, 0.14);
}

.tl-btn-ghost:hover {
  border-color: #2bb8fc;
  color: #0284c7;
  background: #f0f9ff;
}

.tl-btn-export {
  background: linear-gradient(135deg, #2bb8fc, #0284c7);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(2, 132, 199, 0.55);
}

.tl-btn-export:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.tl-btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.25);
}

.tl-btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
}

.tl-aspect-group {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: #f1f5f9;
  border: 1px solid rgba(23, 54, 87, 0.08);
  gap: 2px;
}

.tl-aspect-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.tl-aspect-btn.is-active {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
}

/* Quadro principal */
.tl-board {
  border-radius: 22px;
  overflow: hidden;
  background: var(--tl-bg);
  color: var(--tl-text);
  border: 1px solid var(--tl-border);
  box-shadow: 0 22px 48px -22px rgba(12, 18, 34, 0.45);
}

.tl-board-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--tl-surface);
  border-bottom: 1px solid var(--tl-border);
}

.tl-board-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fe55bd, #2bb8fc);
}

.tl-board-logo {
  height: 46px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.tl-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.tl-title-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 6px 10px;
  background: transparent;
  color: var(--tl-text);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tl-title-input:hover {
  border-color: var(--tl-border);
}

.tl-title-input:focus {
  border-color: var(--tl-blue);
  background: var(--tl-surface-2);
}

.tl-board-watermark {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--tl-muted);
  opacity: 0.8;
}

.tl-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.tl-row {
  display: flex;
  align-items: stretch;
  min-height: calc(var(--tl-item-h) + 20px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--tl-surface);
  border: 1px solid var(--tl-border);
}

.tl-label {
  flex: 0 0 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.tl-label-text {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  word-break: break-word;
  outline: none;
  border-radius: 8px;
  padding: 4px;
}

.tl-label-text:focus {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.tl-tier-items {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 10px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.tl-dropzone.is-over {
  background: rgba(43, 184, 252, 0.14);
  box-shadow: inset 0 0 0 2px #2bb8fc;
}

.tl-row-ctrl {
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--tl-border);
  background: var(--tl-surface-2);
}

.tl-gear-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--tl-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tl-gear-btn:hover {
  background: rgba(254, 85, 189, 0.16);
  color: var(--tl-pink);
}

/* Itens (imagens arrastáveis) */
.tl-item {
  position: relative;
  width: var(--tl-item-w);
  height: var(--tl-item-h);
  border-radius: 10px;
  overflow: hidden;
  background: var(--tl-surface-2);
  border: 2px solid transparent;
  cursor: grab;
  user-select: none;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.tl-item:active {
  cursor: grabbing;
}

.tl-item:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 184, 252, 0.7);
}

.tl-item.is-dragging {
  opacity: 0.35;
  transform: scale(0.95);
}

.tl-item.is-selected {
  border-color: #fe55bd;
  box-shadow: 0 0 0 3px rgba(254, 85, 189, 0.35);
}

.tl-item.is-insert-before {
  box-shadow: -4px 0 0 0 #fe55bd;
}

.tl-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.tl-item-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.78);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.tl-item:hover .tl-item-del,
.tl-item.is-selected .tl-item-del {
  opacity: 1;
}

.tl-item-del:hover {
  background: #fe55bd;
}

.tl-item-del .material-symbols-rounded {
  font-size: 14px;
}

/* Banco de imagens */
.tl-bank-section {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: var(--tl-surface);
  color: var(--tl-text);
  border: 1px solid var(--tl-border);
  box-shadow: 0 12px 30px -18px rgba(12, 18, 34, 0.3);
}

.tl-bank-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.tl-bank-title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tl-text);
}

.tl-bank-title h2 .material-symbols-rounded {
  color: var(--tl-blue);
  font-size: 22px;
}

.tl-count-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(254, 85, 189, 0.2), rgba(43, 184, 252, 0.2));
  color: var(--tl-text);
  font-size: 0.76rem;
  font-weight: 800;
}

.tl-tip {
  margin: 0;
  font-size: 0.82rem;
  color: var(--tl-muted);
}

.tl-bank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-bank {
  min-height: 132px;
  padding: 14px;
  border-radius: 16px;
  border: 2px dashed var(--tl-border);
  background: var(--tl-bg);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tl-bank-empty {
  width: 100%;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--tl-muted);
}

.tl-bank-empty .material-symbols-rounded {
  font-size: 34px;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tl-bank-empty strong {
  font-size: 0.92rem;
  color: var(--tl-text);
}

.tl-bank-empty span {
  font-size: 0.8rem;
}

.tl-status {
  min-height: 1.2em;
  margin: 10px 2px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tl-blue);
}

.tl-status.is-error {
  color: #f87171;
}

/* Modal de personalização */
.tl-modal[hidden] {
  display: none;
}

.tl-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 34, 0.65);
  backdrop-filter: blur(4px);
}

.tl-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  border-radius: 22px;
  background: #ffffff;
  color: #173657;
  box-shadow: 0 24px 60px -16px rgba(12, 18, 34, 0.55);
  overflow: hidden;
}

.tl-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.tl-modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.tl-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tl-icon-btn:hover {
  background: #e2e8f0;
  color: #173657;
}

.tl-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tl-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.tl-text-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  color: #173657;
  outline: none;
  box-sizing: border-box;
}

.tl-text-input:focus {
  border-color: #2bb8fc;
}

.tl-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.tl-swatch {
  height: 34px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.tl-swatch:hover {
  transform: scale(1.06);
}

.tl-swatch.is-active {
  border-color: #173657;
  box-shadow: 0 0 0 2px #ffffff inset;
}

.tl-custom-color {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.tl-custom-color label {
  margin: 0;
}

.tl-custom-color input[type="color"] {
  width: 44px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.tl-modal-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.tl-modal-foot {
  padding: 14px 20px 18px;
  display: flex;
  justify-content: flex-end;
  background: #f8fafc;
}

@media (max-width: 720px) {
  .tl-board-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .tl-board-logo {
    height: 34px;
  }

  .tl-title-input {
    font-size: 1.05rem;
  }

  .tl-board-watermark {
    display: none;
  }

  .tl-label {
    flex: 0 0 82px;
    padding: 6px;
  }

  .tl-label-text {
    font-size: 1rem;
  }

  .tl-row-ctrl {
    flex: 0 0 38px;
  }

  .tl-app {
    --tl-item-w: 76px;
    --tl-item-h: 76px;
  }

  .tl-app[data-aspect="portrait"] {
    --tl-item-w: 66px;
    --tl-item-h: 88px;
  }

  .tl-app[data-aspect="landscape"] {
    --tl-item-w: 94px;
    --tl-item-h: 70px;
  }

  .tl-item-del {
    opacity: 1;
  }
}


/* ---------- Layout lateral da Tier List (banco de imagens à direita) ---------- */
.tl-app[data-layout="side"] {
  max-width: 1380px;
}

.tl-btn-ghost.is-active-layout {
  border-color: #fe55bd;
  background: rgba(254, 85, 189, 0.1);
  color: #db2777;
}

@media (min-width: 980px) {
  .tl-app[data-layout="side"] .tl-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
  }

  .tl-app[data-layout="side"] .tl-bank-section {
    margin-top: 0;
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
    padding: 16px;
  }

  .tl-app[data-layout="side"] .tl-bank-head {
    margin-bottom: 10px;
  }

  .tl-app[data-layout="side"] .tl-bank {
    flex: 1 1 auto;
    min-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(43, 184, 252, 0.45) transparent;
  }
}


/* Efeito azul rápido ao soltar a imagem em uma tier */
.tl-item.is-just-dropped {
  animation: tlDropBlue 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tlDropBlue {
  0% {
    transform: scale(0.92);
    border-color: #2bb8fc;
    box-shadow: 0 0 0 0 rgba(43, 184, 252, 0.9), 0 0 24px rgba(43, 184, 252, 0.75);
  }
  45% {
    transform: scale(1.06);
    border-color: #2bb8fc;
    box-shadow: 0 0 0 6px rgba(43, 184, 252, 0.35), 0 0 28px rgba(43, 184, 252, 0.65);
  }
  100% {
    transform: scale(1);
    border-color: transparent;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.45);
  }
}


/* Tooltip de informação na tela de bloqueio */
.ferr-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 4px;
  color: #2bb8fc;
  cursor: help;
  outline: none;
}

.ferr-info-tip .material-symbols-rounded {
  font-size: 18px;
}

.ferr-info-tip:hover,
.ferr-info-tip:focus-visible {
  color: #fe55bd;
}

.ferr-info-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(260px, 78vw);
  padding: 8px 12px;
  border-radius: 10px;
  background: #173657;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 24px -8px rgba(12, 18, 34, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ferr-info-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #173657;
}

.ferr-info-tip:hover .ferr-info-bubble,
.ferr-info-tip:focus .ferr-info-bubble,
.ferr-info-tip:focus-within .ferr-info-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tl-btn-ghost.is-muted {
  opacity: 0.65;
}


/* ==========================================================================
   EFEITO FOIL HOLOGRÁFICO PARA FERRAMENTAS BLOQUEADAS
   ========================================================================== */
.ferr-card.is-locked {
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(125deg, #6d28d9 0%, #db2777 30%, #2bb8fc 58%, #9333ea 82%, #f472b6 100%) border-box;
  background-size: 100% 100%, 240% 240%;
  animation: ferrFoilShift 4.5s ease infinite;
}

.ferr-card.is-locked:hover {
  box-shadow: 0 14px 32px -10px rgba(219, 39, 119, 0.28), 0 6px 16px -6px rgba(43, 184, 252, 0.22);
}

.ferr-status.locked,
.ferr-lock-pill,
.ferr-lock-badge,
.ferr-lock-btn {
  overflow: hidden;
  background: linear-gradient(125deg, #6d28d9 0%, #db2777 30%, #2bb8fc 58%, #9333ea 82%, #f472b6 100%);
  background-size: 240% 240%;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.42);
  animation: ferrFoilShift 4.5s ease infinite;
}

.ferr-status.locked {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ferr-lock-pill,
.ferr-lock-badge,
.ferr-lock-btn {
  position: relative;
}

.ferr-lock-pill {
  padding: 5px 14px;
  box-shadow: 0 4px 14px -4px rgba(219, 39, 119, 0.45);
}

.ferr-lock-card {
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(125deg, #6d28d9 0%, #db2777 30%, #2bb8fc 58%, #9333ea 82%, #f472b6 100%) border-box;
  background-size: 100% 100%, 240% 240%;
  animation: ferrFoilShift 4.5s ease infinite;
}

.ferr-status.locked::before,
.ferr-lock-pill::before,
.ferr-lock-btn::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -130%;
  width: 60%;
  height: 180%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  pointer-events: none;
  animation: ferrFoilSweep 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ferrFoilShift {
  0% { background-position: 0% 50%, 0% 50%; }
  50% { background-position: 100% 50%, 100% 50%; }
  100% { background-position: 0% 50%, 0% 50%; }
}

@keyframes ferrFoilSweep {
  0% { left: -130%; }
  45% { left: 165%; }
  100% { left: 165%; }
}

@media (prefers-reduced-motion: reduce) {
  .ferr-card.is-locked,
  .ferr-status.locked,
  .ferr-status.locked::before,
  .ferr-lock-pill,
  .ferr-lock-pill::before,
  .ferr-lock-badge,
  .ferr-lock-btn,
  .ferr-lock-btn::before,
  .ferr-lock-card {
    animation: none;
  }
}


/* Seletor de som na Tier List */
.tl-sound-group {
  display: inline-flex;
  align-items: stretch;
}

.tl-sound-group .tl-sound-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.tl-sound-group .tl-sound-pick {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 10px;
  padding-right: 12px;
  color: #db2777;
}

.tl-sound-group .tl-sound-pick:disabled {
  cursor: not-allowed;
}

/* ==========================================================================
   ORGANIZADOR DE REFERÊNCIAS POR PASTAS LOCAIS (GALERIA ESTILO PINTEREST)
   ========================================================================== */
.gr-app {
  --gr-bg: #0c1222;
  --gr-surface: #131c33;
  --gr-surface-2: #1a2644;
  --gr-border: rgba(148, 163, 184, 0.2);
  --gr-text: #f8fafc;
  --gr-muted: #94a3b8;
  --gr-pink: #fe55bd;
  --gr-blue: #2bb8fc;
  max-width: 1360px;
  margin: 0 auto;
}

.gr-app[data-theme="light"] {
  --gr-bg: #f8fbff;
  --gr-surface: #ffffff;
  --gr-surface-2: #eef6ff;
  --gr-border: rgba(23, 54, 87, 0.12);
  --gr-text: #173657;
  --gr-muted: #64748b;
}

.gr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.gr-toolbar-left,
.gr-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.gr-btn .material-symbols-rounded {
  font-size: 18px;
}

.gr-btn-primary {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(254, 85, 189, 0.55);
}

.gr-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.gr-btn-outline {
  background: #ffffff;
  color: #173657;
  border-color: rgba(43, 184, 252, 0.45);
}

.gr-btn-outline:hover {
  border-color: #fe55bd;
  background: #fff5fb;
  color: #db2777;
}

.gr-btn-ghost {
  background: #ffffff;
  color: #475569;
  border-color: rgba(23, 54, 87, 0.14);
}

.gr-btn-ghost:hover {
  border-color: #2bb8fc;
  color: #0284c7;
  background: #f0f9ff;
}

.gr-btn-ghost.is-active-pill {
  border-color: #fe55bd;
  background: rgba(254, 85, 189, 0.12);
  color: #db2777;
}

.gr-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid rgba(23, 54, 87, 0.08);
  gap: 2px;
}

.gr-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.gr-seg-btn .material-symbols-rounded {
  font-size: 16px;
}

.gr-seg-btn.is-active {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(254, 85, 189, 0.55);
}

.gr-cols-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(23, 54, 87, 0.14);
  color: #475569;
}

.gr-cols-ctrl .material-symbols-rounded {
  font-size: 17px;
  color: #2bb8fc;
}

.gr-mini-btn {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(23, 54, 87, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  color: #173657;
  font-weight: 800;
  cursor: pointer;
}

.gr-mini-btn:hover {
  border-color: #fe55bd;
  color: #db2777;
}

.gr-cols-val {
  min-width: 18px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #173657;
}

.gr-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(23, 54, 87, 0.14);
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gr-icon-btn:hover {
  border-color: #2bb8fc;
  color: #0284c7;
}

/* Molduras: Livre, Horizontal (16:9) e Vertical (9:16) */
.gr-stage-outer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gr-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: var(--gr-bg);
  color: var(--gr-text);
  border: 1px solid var(--gr-border);
  box-shadow: 0 22px 50px -22px rgba(12, 18, 34, 0.45);
  transition: max-width 0.25s ease, box-shadow 0.25s ease;
}

.gr-stage.is-dragover {
  box-shadow: 0 0 0 3px #2bb8fc, 0 22px 50px -22px rgba(43, 184, 252, 0.55);
}

.gr-app[data-frame="free"] .gr-stage {
  min-height: 540px;
}

.gr-app[data-frame="horizontal"] .gr-stage {
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  min-height: 460px;
}

.gr-app[data-frame="vertical"] .gr-stage {
  max-width: 430px;
  aspect-ratio: 9 / 16;
  max-height: 82vh;
  min-height: 560px;
  border: 2px solid rgba(254, 85, 189, 0.35);
  box-shadow: 0 24px 60px -20px rgba(254, 85, 189, 0.35), 0 0 0 1px rgba(43, 184, 252, 0.2);
}

.gr-stage:fullscreen {
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
}

/* Cabeçalho do palco */
.gr-stage-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--gr-surface);
  border-bottom: 1px solid var(--gr-border);
}

.gr-stage-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fe55bd, #2bb8fc);
}

.gr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.gr-logo {
  height: 36px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.gr-title-input {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 8px;
  background: transparent;
  color: var(--gr-text);
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 800;
  outline: none;
}

.gr-title-input:focus {
  border-color: var(--gr-blue);
  background: var(--gr-surface-2);
}

.gr-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.gr-count-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(254, 85, 189, 0.18), rgba(43, 184, 252, 0.18));
  color: var(--gr-text);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.gr-clear-btn {
  width: 32px;
  height: 32px;
  background: var(--gr-surface-2);
  border-color: var(--gr-border);
  color: var(--gr-muted);
}

.gr-clear-btn:hover {
  border-color: #fe55bd;
  color: #fe55bd;
}

/* Barra de subpastas e filtros */
.gr-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 18px;
  background: var(--gr-surface-2);
  border-bottom: 1px solid var(--gr-border);
}

.gr-app[data-clean="true"] .gr-filter-bar,
.gr-app[data-clean="true"] .gr-card-cap,
.gr-app[data-clean="true"] .gr-clear-btn {
  display: none;
}

.gr-folders {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.gr-folder-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--gr-border);
  background: var(--gr-surface);
  color: var(--gr-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.gr-folder-pill.is-active {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  border-color: transparent;
  color: #ffffff;
}

.gr-fp-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 0.7rem;
  font-weight: 800;
}

.gr-folder-pill.is-active .gr-fp-count {
  background: rgba(255, 255, 255, 0.25);
}

.gr-filter-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gr-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--gr-border);
  background: var(--gr-surface);
  color: var(--gr-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.gr-chip-btn .material-symbols-rounded {
  font-size: 16px;
}

.gr-chip-btn.is-on {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.gr-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gr-search-wrap .material-symbols-rounded {
  position: absolute;
  left: 9px;
  font-size: 16px;
  color: var(--gr-muted);
  pointer-events: none;
}

.gr-search-input {
  width: 155px;
  padding: 6px 10px 6px 30px;
  border-radius: 10px;
  border: 1px solid var(--gr-border);
  background: var(--gr-surface);
  color: var(--gr-text);
  font-family: inherit;
  font-size: 0.8rem;
  outline: none;
}

.gr-search-input:focus {
  border-color: var(--gr-blue);
}

.gr-sort-select {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--gr-border);
  background: var(--gr-surface);
  color: var(--gr-text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* Área rolável + Grade Pinterest (Masonry) */
.gr-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 184, 252, 0.45) transparent;
}

.gr-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  gap: 10px;
}

.gr-empty-icon {
  font-size: 56px;
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gr-empty h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gr-text);
}

.gr-empty p {
  margin: 0;
  max-width: 460px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--gr-muted);
}

.gr-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.gr-empty-tip {
  font-size: 0.78rem;
  color: var(--gr-muted);
  opacity: 0.85;
}

.gr-masonry {
  --gr-cols: 4;
  column-count: var(--gr-cols);
  column-gap: 14px;
}

.gr-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gr-surface);
  border: 1px solid var(--gr-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gr-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 184, 252, 0.65);
  box-shadow: 0 12px 26px -12px rgba(43, 184, 252, 0.35);
}

.gr-card.is-fav {
  border-color: rgba(254, 85, 189, 0.6);
}

.gr-card img {
  width: 100%;
  height: auto;
  display: block;
}

.gr-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.72);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.gr-card:hover .gr-card-fav,
.gr-card.is-fav .gr-card-fav {
  opacity: 1;
}

.gr-card.is-fav .gr-card-fav {
  background: linear-gradient(135deg, #fe55bd, #f59e0b);
  color: #ffffff;
}

.gr-card-fav .material-symbols-rounded {
  font-size: 17px;
}

.gr-card-cap {
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-no-match {
  column-span: all;
  text-align: center;
  padding: 40px 16px;
  color: var(--gr-muted);
  font-weight: 700;
}

/* Lightbox dentro da moldura */
.gr-lightbox[hidden] {
  display: none;
}

.gr-lightbox {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 24, 0.94);
  backdrop-filter: blur(8px);
  color: #f8fafc;
}

.gr-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(19, 28, 51, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.gr-lb-info {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gr-lb-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.gr-lb-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gr-lb-btn:hover {
  border-color: #2bb8fc;
  color: #2bb8fc;
}

.gr-lb-btn.is-on,
.gr-lb-btn.is-fav {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  border-color: transparent;
  color: #ffffff;
}

.gr-lb-close:hover {
  border-color: #fe55bd;
  color: #fe55bd;
}

.gr-lb-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px 48px;
}

.gr-lb-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.gr-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gr-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(19, 28, 51, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.gr-lb-nav:hover {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  border-color: transparent;
}

.gr-lb-prev { left: 10px; }
.gr-lb-next { right: 10px; }

/* Ajustes para moldura vertical 9:16 */
.gr-app[data-frame="vertical"] .gr-stage-head {
  padding: 10px 12px;
}

.gr-app[data-frame="vertical"] .gr-logo {
  height: 28px;
}

.gr-app[data-frame="vertical"] .gr-title-input {
  font-size: 0.96rem;
}

.gr-app[data-frame="vertical"] .gr-filter-bar {
  padding: 8px 12px;
}

.gr-app[data-frame="vertical"] .gr-search-input {
  width: 120px;
}

.gr-app[data-frame="vertical"] .gr-scroll {
  padding: 10px;
}

.gr-app[data-frame="vertical"] .gr-masonry {
  column-gap: 10px;
}

.gr-app[data-frame="vertical"] .gr-card {
  margin-bottom: 10px;
  border-radius: 12px;
}

@media (max-width: 720px) {
  .gr-app[data-frame="free"] .gr-masonry,
  .gr-app[data-frame="horizontal"] .gr-masonry {
    column-count: 2 !important;
  }

  .gr-app[data-frame="horizontal"] .gr-stage {
    aspect-ratio: auto;
  }

  .gr-lb-body {
    padding: 12px 10px;
  }
}


/* Alinhamento refinado da barra superior da Tier List */
.tl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.tl-toolbar-main,
.tl-toolbar-extras {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.tl-toolbar .tl-btn {
  padding: 8px 12px;
  font-size: 0.81rem;
  gap: 5px;
  height: 36px;
  box-sizing: border-box;
}

.tl-toolbar .tl-aspect-group {
  height: 36px;
  align-items: center;
  box-sizing: border-box;
}


/* Rolagem isolada dentro da área útil do Organizador de Referências */
.gr-app[data-frame="free"] .gr-stage {
  height: 76vh;
  min-height: 520px;
  max-height: 820px;
}

.gr-stage,
.gr-scroll {
  overscroll-behavior: contain;
}


/* Garante que estados vazios e grades ocultas sumam completamente quando [hidden] está ativo */
.gr-empty[hidden],
.gr-masonry[hidden],
.tl-bank-empty[hidden] {
  display: none !important;
}


/* Seletor de tamanho da grade (P / M / G) + Fullscreen respeitando proporção Vertical (9:16) */
.gr-size-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px 3px 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(23, 54, 87, 0.14);
}

.gr-size-group .material-symbols-rounded {
  font-size: 17px;
  color: #2bb8fc;
  margin-right: 2px;
}

.gr-size-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.gr-size-btn:hover {
  background: #f1f5f9;
  color: #173657;
}

.gr-size-btn.is-active {
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  color: #ffffff;
  box-shadow: 0 4px 10px -4px rgba(254, 85, 189, 0.55);
}

.gr-stage-outer:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: #060913;
  padding: 0;
  box-sizing: border-box;
}

.gr-app[data-frame="free"] .gr-stage-outer:fullscreen .gr-stage,
.gr-app[data-frame="horizontal"] .gr-stage-outer:fullscreen .gr-stage {
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}

.gr-app[data-frame="vertical"] .gr-stage-outer:fullscreen .gr-stage {
  height: 96vh;
  max-height: 96vh;
  width: auto;
  max-width: min(94vw, calc(96vh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 22px;
}


/* Controles disponíveis no Fullscreen + botão olhinho para ocultar/mostrar */
.gr-only-in-fs,
.gr-fs-eye-float {
  display: none;
}

.gr-app:fullscreen {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: 12px 16px 14px;
  box-sizing: border-box;
  background: #060913;
  position: relative;
}

.gr-app[data-theme="light"]:fullscreen {
  background: #e6f1fc;
}

.gr-app:fullscreen .gr-hide-in-fs {
  display: none;
}

.gr-app:fullscreen .gr-only-in-fs {
  display: inline-flex;
}

.gr-app:fullscreen .gr-toolbar {
  justify-content: center;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.gr-app:fullscreen .gr-stage-outer {
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
}

.gr-app[data-frame="free"]:fullscreen .gr-stage,
.gr-app[data-frame="horizontal"]:fullscreen .gr-stage {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.gr-app[data-frame="vertical"]:fullscreen .gr-stage {
  height: 100%;
  max-height: 100%;
  width: auto;
  max-width: min(94vw, calc(100% * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 22px;
}

/* Quando o olhinho oculta a barra no Fullscreen */
.gr-app[data-fs-ui="hidden"]:fullscreen {
  padding: 10px;
}

.gr-app[data-fs-ui="hidden"]:fullscreen .gr-toolbar {
  display: none;
}

.gr-app[data-fs-ui="hidden"]:fullscreen .gr-fs-eye-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(19, 28, 51, 0.65);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.gr-app[data-fs-ui="hidden"]:fullscreen .gr-fs-eye-float:hover {
  opacity: 1;
  transform: scale(1.06);
  background: linear-gradient(135deg, #fe55bd, #2bb8fc);
  border-color: transparent;
}


/* Menu de opções do modo Limpo + esconder barra no Fullscreen com reveal ao passar o mouse no topo */
.gr-clean-wrap {
  position: relative;
}

.gr-caret {
  font-size: 16px !important;
  margin-left: -2px;
}

.gr-clean-menu[hidden] {
  display: none;
}

.gr-clean-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: 270px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  color: #173657;
  border: 1px solid rgba(23, 54, 87, 0.14);
  box-shadow: 0 18px 40px -14px rgba(12, 18, 34, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gr-clean-menu-title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.gr-clean-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #173657;
  cursor: pointer;
  user-select: none;
}

.gr-clean-opt input {
  width: 16px;
  height: 16px;
  accent-color: #fe55bd;
  cursor: pointer;
}

.gr-clean-hint {
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #64748b;
}

/* Regras individuais do modo Limpo */
.gr-app[data-hide-folders="true"] .gr-filter-bar {
  display: none;
}

.gr-app[data-hide-files="true"] .gr-card-cap {
  display: none;
}

/* Esconder barra superior em tela cheia + revelar suavemente ao levar o mouse ao topo */
.gr-fs-hover-zone {
  display: none;
}

.gr-app[data-hide-toolbar="true"]:fullscreen {
  padding: 10px;
}

.gr-app[data-hide-toolbar="true"]:fullscreen .gr-fs-hover-zone {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  z-index: 65;
}

.gr-app[data-hide-toolbar="true"]:fullscreen .gr-toolbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 70;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(19, 28, 51, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.gr-app[data-hide-toolbar="true"]:fullscreen .gr-fs-hover-zone:hover + .gr-toolbar,
.gr-app[data-hide-toolbar="true"]:fullscreen .gr-toolbar:hover,
.gr-app[data-hide-toolbar="true"]:fullscreen .gr-toolbar:focus-within {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
