/* ==================================================================
   Interior — design system das páginas dentro do app (pós-login).
   Reusa as CSS vars definidas em landing.css (--yn-green, --yn-gold,
   etc) — essas vars já são sobrescritas por body[data-theme=X] via
   landing.css, então este arquivo é automaticamente dinâmico para
   os 25+ temas do sistema.

   Prefixo:
     .yni-*   = interior only (evita colidir com .yn-* da landing)
     .yn-*    = reusa utilitários já existentes em landing.css
   ================================================================== */


/* ==== BODY ==== */
/* Fundo creme com grain sutil — substitui o bg Tailwind do Theme.Bg. */
body.yn-int-body {
  background: var(--yn-cream);
  color: #1f3a2a;
  position: relative;
}
body.yn-int-body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(139, 111, 46, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
body.yn-int-body > * { position: relative; z-index: 1; }


/* ==== NAVBAR flutuante minimalista ==== */
.yni-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--yn-border);
}
.yni-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.yni-brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none;
  color: var(--yn-green-dark);
}
.yni-brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--yn-green) 0%, var(--yn-green-dark) 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(31, 58, 42, 0.5), inset 0 1px 0 rgba(217, 197, 138, 0.2);
  overflow: hidden;
}
.yni-brand-mark img { width: 22px; height: 22px; object-fit: contain; }
.yni-brand-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--yn-green-dark);
}
.yni-brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yn-gold);
  font-weight: 600;
  margin-top: 2px;
}

.yni-nav-pills {
  display: inline-flex; align-items: center; gap: 0.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--yn-border);
  border-radius: 999px;
  padding: 0.25rem;
}
.yni-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #485951;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s var(--yn-ease), color 0.2s, transform 0.2s;
}
.yni-pill:hover { background: rgba(255, 255, 255, 0.8); color: var(--yn-green-dark); }
.yni-pill.is-active {
  background: var(--yn-green-dark);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(31, 58, 42, 0.55);
}
.yni-pill svg { width: 15px; height: 15px; }
.yni-pill-primary {
  background: var(--yn-gold);
  color: #1a1410;
}
.yni-pill-primary:hover { background: var(--yn-gold-soft); color: var(--yn-green-dark); }

.yni-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yn-gold-soft), var(--yn-gold));
  color: var(--yn-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 6px 14px -6px rgba(139, 111, 46, 0.5);
  transition: transform 0.2s var(--yn-ease);
}
.yni-avatar:hover { transform: translateY(-1px); }
.yni-icon-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #64766b;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.yni-icon-btn:hover { background: rgba(31, 58, 42, 0.08); color: var(--yn-green-dark); }

/* Mobile menu toggle — só aparece < md */
.yni-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--yn-border);
  align-items: center; justify-content: center;
  color: var(--yn-green-dark);
}
.yni-mobile-menu { display: none; }
@media (max-width: 900px) {
  .yni-nav-pills { display: none; }
  .yni-mobile-toggle { display: inline-flex; }
  .yni-mobile-menu.is-open {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(246,244,238,0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--yn-border);
  }
  .yni-mobile-menu.is-open a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--yn-green-dark);
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--yn-border);
  }
  .yni-mobile-menu.is-open a.is-active {
    background: var(--yn-green-dark); color: #fff;
  }
}


/* ==== HERO compacto dos internos ==== */
.yni-hero {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  background: radial-gradient(ellipse at 15% 10%, var(--yn-green) 0%, var(--yn-green-dark) 55%, #0e1a12 110%);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  isolation: isolate;
}
.yni-hero::before {
  content: ''; position: absolute; inset: -15%;
  background:
    radial-gradient(circle at 20% 30%, rgba(217, 197, 138, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(139, 111, 46, 0.12) 0%, transparent 55%);
  animation: ynBreathing 11s ease-in-out infinite;
  z-index: -1;
}
.yni-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.5px);
  background-size: 3px 3px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.yni-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; }
.yni-hero-kicker {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yn-gold-soft);
  padding-bottom: 0.4rem;
  position: relative;
  margin-bottom: 0.9rem;
  opacity: 0; animation: ynFadeUp 0.7s var(--yn-ease) 0.1s forwards;
}
.yni-hero-kicker::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--yn-gold), var(--yn-gold-soft));
  animation: ynKickerLine 1.3s var(--yn-ease) 0.8s forwards;
}
.yni-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.75rem;
  opacity: 0; animation: ynFadeUp 0.9s var(--yn-ease) 0.2s forwards;
}
.yni-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--yn-gold-soft), #f3e0a8);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.yni-hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  max-width: 56ch;
  opacity: 0; animation: ynFadeUp 0.9s var(--yn-ease) 0.35s forwards;
}


/* ==== BUSCA grande com underline gold ==== */
.yni-search {
  position: relative;
  max-width: 640px;
  margin: 1.25rem 0 0;
  opacity: 0; animation: ynFadeUp 0.9s var(--yn-ease) 0.5s forwards;
}
.yni-search input {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(217, 197, 138, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.3s;
  font-family: 'Inter', sans-serif;
}
.yni-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.yni-search input:focus {
  border-color: var(--yn-gold-soft);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(217, 197, 138, 0.15);
}
.yni-search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: rgba(217, 197, 138, 0.7);
  pointer-events: none;
}


/* ==== CATEGORIAS (pills cream+verde tipo admin-audios) ==== */
.yni-cat-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.yni-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--yn-gold);
  background: #fff8e6;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--yn-ease);
  text-decoration: none;
  white-space: nowrap;
}
.yni-badge:hover {
  background: #fdf0cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(139, 111, 46, 0.25);
}
.yni-badge.is-active {
  background: var(--yn-green-dark);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(31, 58, 42, 0.45);
}
.yni-badge-count {
  font-size: 0.72rem;
  opacity: 0.65;
  font-weight: 500;
}

/* Controles secundários (sort / export) */
.yni-ctrl-sep {
  width: 1px; height: 20px;
  background: var(--yn-border);
  margin: 0 0.3rem;
}
.yni-ctrl {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 10px;
  font-size: 0.82rem;
  color: #556;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: 'Inter', sans-serif;
}
.yni-ctrl:hover { background: #fff8e6; border-color: var(--yn-gold-soft); }
.yni-ctrl svg { width: 14px; height: 14px; }
.yni-ctrl select {
  border: none; background: transparent; outline: none;
  font-size: 0.82rem; color: #556;
  cursor: pointer;
}


/* ==== CARDS de TERMO ==== */
.yni-term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.yni-term {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--yn-ease), box-shadow 0.35s, border-color 0.35s;
}
.yni-term::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--yn-gold-soft) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.yni-term:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -12px rgba(31, 58, 42, 0.22);
  border-color: var(--yn-gold-soft);
}
.yni-term:hover::before { opacity: 0.08; }

.yni-term-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}
.yni-term-text { flex: 1; min-width: 0; }
.yni-term-open {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  color: var(--yn-green-dark);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.yni-term-open:hover {
  background: var(--yn-cream);
  border-color: var(--yn-gold-soft);
  transform: translateX(2px);
}

.yni-term-pt {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yn-green-dark);
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.yni-term-ya {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(120deg, var(--yn-gold) 30%, var(--yn-gold-soft));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.yni-term-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--yn-gold);
  background: #fff8e6;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.yni-term-desc {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: #5a6b61;
  line-height: 1.55;
}
.yni-term-ctx {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-style: italic;
  color: #7c8a81;
}
.yni-term-actions {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.95rem;
  position: relative; z-index: 1;
}
.yni-term-audio {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--yn-green-dark);
  color: #fff;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.yni-term-audio:hover { background: var(--yn-green); transform: translateY(-1px); }
.yni-term-audio:active { transform: translateY(0) scale(0.97); }
.yni-term-audio.is-playing::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(217,197,138,0.5) 50%, transparent 60%);
  animation: ynAudioSweep 1.2s linear infinite;
}
@keyframes ynAudioSweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.yni-term-audio svg { width: 14px; height: 14px; }
.yni-term-fav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--yn-border);
  color: #9aa69d;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.yni-term-fav:hover { background: #fff8e6; color: var(--yn-gold); transform: scale(1.05); }
.yni-term-fav.is-active { color: var(--yn-gold); background: #fff8e6; }
.yni-term-fav.is-active svg { fill: currentColor; }

.yni-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--yn-border);
  border-radius: 16px;
  color: #8a9690;
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.yni-empty svg { color: var(--yn-gold-soft); opacity: 0.7; }
.yni-empty p { margin: 0; font-size: 0.95rem; }


/* ==== ESTUDO — stats + cards de modo ==== */
.yni-page-head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}
.yni-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--yn-border);
  color: var(--yn-green-dark);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.yni-back:hover { background: #fff8e6; border-color: var(--yn-gold-soft); transform: translateX(-2px); }
.yni-page-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--yn-green-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.yni-page-sub {
  font-size: 0.9rem;
  color: #7a8a80;
  margin: 0.2rem 0 0;
}

.yni-stat-card {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 24px -16px rgba(31, 58, 42, 0.18);
}
.yni-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yn-gold);
}
.yni-stat-val {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--yn-green-dark);
  line-height: 1; margin-top: 0.3rem;
}
.yni-stat-bar {
  height: 6px;
  background: #ece4cf;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}
.yni-stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yn-green), var(--yn-gold));
  border-radius: 999px;
  transition: width 0.8s var(--yn-ease);
}

.yni-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.yni-mode {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s var(--yn-ease), box-shadow 0.35s, border-color 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}
.yni-mode::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--yn-gold-soft) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.yni-mode:hover {
  transform: translateY(-6px);
  border-color: var(--yn-gold);
  box-shadow: 0 18px 40px -18px rgba(31, 58, 42, 0.28);
}
.yni-mode:hover::after { opacity: 0.12; }
.yni-mode-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f1ea, #f6f4ee);
  color: var(--yn-green);
  border-radius: 16px;
  transition: transform 0.4s var(--yn-ease);
}
.yni-mode:hover .yni-mode-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, var(--yn-green), var(--yn-green-dark));
  color: #fff;
}
.yni-mode-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yn-green-dark);
  margin: 0 0 0.3rem;
}
.yni-mode-desc {
  font-size: 0.85rem;
  color: #6c7d73;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.yni-mode-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--yn-green-dark);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
.yni-mode:hover .yni-mode-cta {
  background: var(--yn-gold);
  color: var(--yn-green-dark);
}


/* ==== FLASHCARD flip 3D ==== */
.yni-fc-stage {
  perspective: 1400px;
  min-height: 320px;
  display: flex; justify-content: center; align-items: center;
}
.yni-fc {
  width: 100%; max-width: 520px;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--yn-ease);
  cursor: pointer;
  position: relative;
}
.yni-fc.is-flipped { transform: rotateY(180deg); }
.yni-fc-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 20px;
  box-shadow: 0 14px 42px -18px rgba(31, 58, 42, 0.28);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.yni-fc-face-back { transform: rotateY(180deg); }
.yni-fc-face-back::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--yn-gold-soft), transparent 60%);
  opacity: 0.16;
  border-radius: 20px;
  pointer-events: none;
}
.yni-fc-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yn-gold);
  margin-bottom: 1.25rem;
}
.yni-fc-pt {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--yn-green-dark);
  line-height: 1.3;
}
.yni-fc-ya {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, var(--yn-gold) 30%, var(--yn-gold-soft));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative; z-index: 1;
}
.yni-fc-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #95a39a;
  letter-spacing: 0.08em;
}


/* ==== DETALHE DE TERMO ==== */
.yni-term-detail-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.yni-back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--yn-border);
  color: var(--yn-green-dark);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.yni-back-link:hover {
  background: var(--yn-cream);
  border-color: var(--yn-gold-soft);
  transform: translateX(-2px);
}
.yni-term-detail {
  max-width: 760px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 14px 42px -22px rgba(31, 58, 42, 0.22);
  position: relative;
  overflow: hidden;
}
.yni-term-detail::before {
  content: ''; position: absolute; top: 0; right: 0; width: 280px; height: 280px;
  background: radial-gradient(circle at center, var(--yn-gold-soft) 0%, transparent 65%);
  opacity: 0.18;
  pointer-events: none;
  transform: translate(30%, -30%);
}
.yni-term-detail-pt {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yn-green-dark);
  margin: 0 0 0.4rem;
}
.yni-term-detail-ya {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--yn-gold) 20%, var(--yn-gold-soft));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 0 0 1.25rem;
}
.yni-term-detail-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.yni-term-detail-desc {
  font-size: 1.05rem;
  color: #465650;
  line-height: 1.7;
}
.yni-term-detail-ctx {
  font-size: 0.95rem;
  color: #7c8a81;
  font-style: italic;
  margin-top: 0.75rem;
  line-height: 1.65;
}
.yni-term-detail-audio {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  margin-top: 1.75rem;
  background: var(--yn-green-dark);
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(31, 58, 42, 0.45);
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
  position: relative; overflow: hidden;
}
.yni-term-detail-audio:hover {
  transform: translateY(-2px);
  background: var(--yn-green);
  box-shadow: 0 16px 34px -10px rgba(31, 58, 42, 0.55);
}
.yni-term-detail-audio svg { width: 18px; height: 18px; }


/* ==== FOOTER ==== */
.yni-footer {
  background: var(--yn-green-dark);
  color: rgba(246, 244, 238, 0.72);
  padding: 2.25rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 4rem;
}
.yni-footer-links {
  margin-top: 0.75rem;
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
}
.yni-footer-links a {
  color: rgba(246, 244, 238, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.yni-footer-links a:hover { color: var(--yn-gold-soft); }


/* ==== REVEAL (reusa .yn-reveal do landing.css se disponível,
         senão definimos aqui) ==== */
.yni-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--yn-ease), transform 0.8s var(--yn-ease);
}
.yni-reveal.is-in {
  opacity: 1; transform: translateY(0);
}
.yni-reveal.d1 { transition-delay: 0.08s; }
.yni-reveal.d2 { transition-delay: 0.16s; }
.yni-reveal.d3 { transition-delay: 0.24s; }
.yni-reveal.d4 { transition-delay: 0.32s; }


/* ==== ESTUDO — chips, quiz, audio, flashcard controls ==== */
.yni-study-head {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}
.yni-study-head-text h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--yn-green-dark);
  margin: 0;
  letter-spacing: -0.01em;
}
.yni-study-head-text p {
  font-size: 0.9rem;
  color: #7a8a80;
  margin: 0.2rem 0 0;
}
.yni-icon-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--yn-border);
  color: var(--yn-green-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.yni-icon-back:hover {
  background: var(--yn-cream); border-color: var(--yn-gold-soft);
  transform: translateX(-2px);
}

.yni-chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #556;
  margin: 0 0 0.5rem;
}
.yni-chip-row {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.yni-chip {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--yn-border);
  color: var(--yn-green-dark);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.yni-chip:hover { background: var(--yn-cream); border-color: var(--yn-gold-soft); }
.yni-chip.is-active {
  background: var(--yn-green-dark);
  color: #fff;
  border-color: var(--yn-green-dark);
  transform: scale(1.02);
}

.yni-pos-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: #7a8a80;
  margin-bottom: 1rem;
}
.yni-pos-row .yni-score {
  padding: 0.25rem 0.7rem;
  background: #fff8e6;
  border-radius: 999px;
  color: var(--yn-gold);
  font-weight: 600;
}

.yni-fc-toolbar {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 1rem;
}
.yni-fc-toolbar button {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--yn-border);
  color: var(--yn-green-dark);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.yni-fc-toolbar button:hover {
  background: var(--yn-cream);
  border-color: var(--yn-gold-soft);
  transform: translateY(-2px);
}

.yni-fc-answers {
  display: flex; justify-content: center; gap: 0.8rem;
  margin-top: 1.25rem;
}
.yni-btn-wrong, .yni-btn-right {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.yni-btn-wrong {
  background: #fff;
  color: #b43a3a;
  border: 1px solid #f4c7c7;
}
.yni-btn-wrong:hover { background: #fdf1f1; transform: translateY(-2px); }
.yni-btn-right {
  background: var(--yn-green-dark);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 22px -10px rgba(31, 58, 42, 0.45);
}
.yni-btn-right:hover { background: var(--yn-green); transform: translateY(-2px); }

.yni-fc-audio-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.45rem 0.95rem;
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 10px;
  color: var(--yn-green-dark);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.yni-fc-audio-btn:hover { background: var(--yn-cream); border-color: var(--yn-gold-soft); }

.yni-qz-card {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 28px -18px rgba(31, 58, 42, 0.18);
  position: relative;
  overflow: hidden;
}
.yni-qz-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--yn-gold-soft), transparent 60%);
  opacity: 0.1;
  pointer-events: none;
}
.yni-qz-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yn-gold);
  margin: 0 0 0.6rem;
  position: relative; z-index: 1;
}
.yni-qz-pt {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yn-green-dark);
  margin: 0 0 0.2rem;
  position: relative; z-index: 1;
}
.yni-qz-meta { font-size: 0.78rem; color: #7a8a80; position: relative; z-index: 1; }

.yni-opt-list { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.yni-opt {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--yn-border);
  color: var(--yn-green-dark);
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.yni-opt:hover:not(.is-answered) { border-color: var(--yn-gold-soft); background: var(--yn-cream); transform: translateX(3px); }
.yni-opt.is-correct {
  border-color: #2ea26a;
  background: #e9f7ef;
  color: #1d6b48;
  cursor: default;
}
.yni-opt.is-wrong {
  border-color: #c94b4b;
  background: #fdecec;
  color: #8b2a2a;
  cursor: default;
}
.yni-opt .opt-pt { font-weight: 600; }
.yni-opt .opt-ya {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--yn-gold);
}

.yni-au-play {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  margin: 0.5rem auto 0;
  background: var(--yn-green-dark);
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(31, 58, 42, 0.45);
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
}
.yni-au-play:hover { background: var(--yn-green); transform: translateY(-2px); }

.yni-next-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  background: var(--yn-gold);
  color: var(--yn-green-dark);
  border: 0;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.yni-next-btn:hover { background: var(--yn-gold-soft); transform: translateX(2px); }

.yni-swap-btn {
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 10px;
  color: var(--yn-green-dark);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.yni-swap-btn:hover { background: var(--yn-cream); border-color: var(--yn-gold-soft); }


/* ==== Reduced motion ==== */
@media (prefers-reduced-motion: reduce) {
  .yni-reveal { opacity: 1 !important; transform: none !important; }
  .yni-hero::before { animation: none !important; }
  .yni-hero-kicker::after { animation: none !important; width: 100% !important; }
  .yni-hero h1, .yni-hero-kicker, .yni-hero-sub, .yni-search { opacity: 1 !important; animation: none !important; }
  .yni-term-audio.is-playing::after { animation: none !important; }
}


/* ==== Admin — cabeçalho estilo admin-audios (Fernanda-approved) ==== */
.yni-admin-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.yni-admin-head h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1f3a2a;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.yni-admin-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d5a3f;
  flex-shrink: 0;
}
.yni-admin-sub { font-size: 0.875rem; color: #6b7280; margin: 0.15rem 0 1.25rem; }

/* ==== Admin Features — cards limpos estilo admin-audios ==== */
.yni-feat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  margin-top: 0.75rem;
}
.yni-feat-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.18s var(--yn-ease), box-shadow 0.18s var(--yn-ease);
}
.yni-feat-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.yni-feat-card.is-off { background: #fafafa; }
.yni-feat-card.is-off .yni-feat-title { color: #6b7280; }
.yni-feat-card.is-saving { border-color: #d4b98b; box-shadow: 0 0 0 3px rgba(212, 185, 139, 0.2); }
.yni-feat-card.is-saved { border-color: #2d5a3f; box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.12); }
.yni-feat-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  justify-content: space-between;
}
.yni-feat-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f3a2a;
  line-height: 1.3;
  margin: 0 0 0.15rem;
  letter-spacing: -0.005em;
}
.yni-feat-desc {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0;
}
/* Toggle master — switch Apple-style compacto */
.yni-switch {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s var(--yn-ease);
  border: none;
  padding: 0;
}
.yni-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s var(--yn-ease);
}
.yni-switch.is-on { background: #2d5a3f; }
.yni-switch.is-on::after { transform: translateX(16px); }
.yni-switch:focus-visible { outline: 2px solid #2d5a3f; outline-offset: 2px; }
/* Role section */
.yni-feat-roles-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.yni-role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.yni-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s var(--yn-ease);
  user-select: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-family: inherit;
  line-height: 1;
}
.yni-role-chip svg { width: 12px; height: 12px; opacity: 0; width: 0; transition: all 0.15s var(--yn-ease); }
.yni-role-chip:hover:not(:disabled) {
  border-color: #2d5a3f;
  color: #2d5a3f;
  background: #f6faf7;
}
.yni-role-chip.is-active {
  background: #2d5a3f;
  border-color: #2d5a3f;
  color: #fff;
}
.yni-role-chip.is-active svg { opacity: 1; width: 12px; }
.yni-role-chip.is-active:hover {
  background: #1f3a2a;
  border-color: #1f3a2a;
}
.yni-role-chip.is-locked {
  cursor: not-allowed;
  background: #fff8e6;
  border-color: #e8dfc9;
  color: #8b6f2e;
}
.yni-role-chip.is-locked svg { opacity: 1; width: 12px; }
.yni-role-chip.is-locked:hover { background: #fff8e6; border-color: #e8dfc9; color: #8b6f2e; }

/* Toast feedback */
.yni-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: var(--yn-green-dark);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.25);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--yn-ease);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.yni-toast.is-show { transform: translateY(0); opacity: 1; }
.yni-toast.is-error { background: #c94b4b; }

/* ==== Admin Dashboard — stats limpos estilo admin-audios ==== */
.yni-stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin-top: 0.5rem;
}
.yni-stat-mini {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: border-color 0.18s var(--yn-ease), box-shadow 0.18s var(--yn-ease);
}
.yni-stat-mini:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.yni-stat-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.yni-stat-mini-icon.is-green { background: #e8f1ea; color: #2d5a3f; }
.yni-stat-mini-icon.is-gold { background: #fff8e6; color: #8b6f2e; }
.yni-stat-mini-icon.is-warn { background: #fef3c7; color: #92400e; }
.yni-stat-mini-icon.is-muted { background: #f3f4f6; color: #6b7280; }
.yni-stat-mini-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.yni-stat-mini-val {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1f3a2a;
  line-height: 1;
  letter-spacing: -0.02em;
}
.yni-stat-mini-label {
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Cobertura de áudio card — limpo, sem gradient */
.yni-cov-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-top: 0.5rem;
}
.yni-cov-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.yni-cov-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1f3a2a;
  margin: 0;
  letter-spacing: -0.005em;
}
.yni-cov-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: #6b7280;
}
.yni-cov-bar {
  display: flex;
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 0.75rem;
}
.yni-cov-bar > div {
  height: 100%;
  transition: width 0.6s var(--yn-ease);
}
.yni-cov-approved { background: #2d5a3f; }
.yni-cov-pending { background: #8b6f2e; }
.yni-cov-missing { background: #c94b4b; }
.yni-cov-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #4b5563;
  align-items: center;
}
.yni-cov-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.yni-cov-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.yni-cov-pct {
  margin-left: auto;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #1f3a2a;
}
.yni-cov-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: #fff8e6;
  border: 1px solid #e8dfc9;
  border-radius: 8px;
  color: #8b6f2e;
  font-size: 0.82rem;
  margin-top: 0.85rem;
}
.yni-cov-alert a {
  color: #8b6f2e;
  font-weight: 600;
  text-decoration: underline;
}
.yni-cov-alert a:hover { text-decoration: none; }

/* Shortcuts — cards discretos */
.yni-short-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 0.5rem;
}
.yni-short-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: #1f3a2a;
  transition: border-color 0.18s var(--yn-ease), background 0.18s var(--yn-ease);
}
.yni-short-card:hover {
  border-color: #2d5a3f;
  background: #f6faf7;
}
.yni-short-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8f1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d5a3f;
  flex-shrink: 0;
}
.yni-short-body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.yni-short-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1f3a2a;
}
.yni-short-desc {
  font-size: 0.72rem;
  color: #6b7280;
}

.yni-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.35rem;
}

/* ==== Admin — componentes reutilizáveis (button, table, badge, input, tabs, modal, kpi, alert) ==== */

/* Botões */
.yni-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--yn-ease);
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
}
.yni-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.yni-btn svg { width: 16px; height: 16px; }
.yni-btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.yni-btn-primary { background: #2d5a3f; color: #fff; border-color: #2d5a3f; }
.yni-btn-primary:hover:not(:disabled) { background: #1f3a2a; border-color: #1f3a2a; }
.yni-btn-secondary { background: #fff; color: #374151; border-color: #d1d5db; }
.yni-btn-secondary:hover:not(:disabled) { background: #f9fafb; border-color: #9ca3af; }
.yni-btn-ghost { background: transparent; color: #6b7280; }
.yni-btn-ghost:hover:not(:disabled) { background: #f3f4f6; color: #1f3a2a; }
.yni-btn-danger { background: #fff; color: #b91c1c; border-color: #fecaca; }
.yni-btn-danger:hover:not(:disabled) { background: #fef2f2; border-color: #ef4444; }
.yni-btn-gold { background: #fff8e6; color: #8b6f2e; border-color: #e8dfc9; }
.yni-btn-gold:hover:not(:disabled) { background: #fff3d6; border-color: #d4b98b; }

/* Tabelas */
.yni-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
}
.yni-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.yni-table thead {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.yni-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.yni-table td {
  padding: 0.7rem 0.9rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.yni-table tbody tr:last-child td { border-bottom: none; }
.yni-table tbody tr:hover { background: #fafafa; }
.yni-table tbody tr.is-muted { background: #fafafa; color: #9ca3af; }
.yni-table-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Badges */
.yni-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.yni-badge-green { background: #e8f1ea; color: #2d5a3f; border-color: #cfe0d4; }
.yni-badge-gold { background: #fff8e6; color: #8b6f2e; border-color: #e8dfc9; }
.yni-badge-red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.yni-badge-gray { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.yni-badge-blue { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* Inputs */
.yni-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.yni-input, .yni-select, .yni-textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #1f3a2a;
  font-family: inherit;
  transition: border-color 0.15s var(--yn-ease), box-shadow 0.15s var(--yn-ease);
}
.yni-input:focus, .yni-select:focus, .yni-textarea:focus {
  outline: none;
  border-color: #2d5a3f;
  box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.1);
}
.yni-input:disabled, .yni-select:disabled, .yni-textarea:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}
.yni-textarea { resize: vertical; min-height: 90px; }
.yni-input-icon {
  position: relative;
}
.yni-input-icon > svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}
.yni-input-icon .yni-input { padding-left: 2.25rem; }

/* Tabs / Filter Pills */
.yni-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0;
  margin-bottom: 1rem;
}
.yni-tab {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--yn-ease);
  text-decoration: none;
  margin-bottom: -1px;
}
.yni-tab:hover:not(.is-active) { color: #1f3a2a; }
.yni-tab.is-active {
  color: #2d5a3f;
  border-bottom-color: #2d5a3f;
  font-weight: 600;
}
.yni-tab-count {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
}
.yni-tab.is-active .yni-tab-count { background: #e8f1ea; color: #2d5a3f; }

/* Filter pills row */
.yni-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.yni-pill {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s var(--yn-ease);
  text-decoration: none;
}
.yni-pill:hover:not(.is-active) { background: #f9fafb; border-color: #9ca3af; }
.yni-pill.is-active {
  background: #2d5a3f;
  color: #fff;
  border-color: #2d5a3f;
}
.yni-pill.is-active-gold { background: #8b6f2e; color: #fff; border-color: #8b6f2e; }
.yni-pill.is-active-gray { background: #374151; color: #fff; border-color: #374151; }

/* KPI cards com border-left colorido */
.yni-kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.yni-kpi {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.yni-kpi-label {
  font-size: 0.68rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0;
}
.yni-kpi-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f3a2a;
  line-height: 1.1;
  margin: 0.2rem 0 0;
  letter-spacing: -0.02em;
}
.yni-kpi-sub {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0.1rem 0 0;
}
.yni-kpi-green { border-left-color: #2d5a3f; }
.yni-kpi-gold { border-left-color: #8b6f2e; }
.yni-kpi-red { border-left-color: #c94b4b; }
.yni-kpi-blue { border-left-color: #3b82f6; }
.yni-kpi-gray { border-left-color: #9ca3af; }

/* Genérico card */
.yni-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.yni-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #f3f4f6;
}
.yni-card-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1f3a2a;
  margin: 0;
  letter-spacing: -0.005em;
}

/* Modal / Dialog */
.yni-modal[open] {
  max-width: 500px;
  width: 92%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.25);
  background: #fff;
}
.yni-modal::backdrop { background: rgba(17, 24, 39, 0.5); }
.yni-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.yni-modal-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f3a2a;
  margin: 0;
}
.yni-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  display: flex;
  border-radius: 6px;
  transition: all 0.15s var(--yn-ease);
}
.yni-modal-close:hover { background: #f3f4f6; color: #1f3a2a; }
.yni-modal-body { padding: 1.25rem; }
.yni-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

/* Alerts */
.yni-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.yni-alert svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.1rem; }
.yni-alert-warn { background: #fff8e6; border: 1px solid #e8dfc9; color: #8b6f2e; }
.yni-alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.yni-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.yni-alert-success { background: #e8f1ea; border: 1px solid #cfe0d4; color: #2d5a3f; }

/* Actions toolbar (header com buttons à direita) */
.yni-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.yni-toolbar-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Form fields agrupados (label em cima do input) */
.yni-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.yni-field > .yni-field-label { margin: 0; }
.yni-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.yni-form-inline .yni-btn { margin-top: 0; }

/* Página admin wrapper padrão */
.yni-admin-page {
  display: block;
}

/* Cells de tabela utilitárias */
.yni-td-id { color: #d1d5db; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.yni-td-actions {
  white-space: nowrap;
  text-align: right;
}
.yni-td-actions .yni-btn { margin-left: 0.25rem; }
.yni-td-actions .yni-btn:first-child { margin-left: 0; }

/* Split layout (lista + sidebar) */
.yni-split-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
@media (max-width: 900px) {
  .yni-split-layout { grid-template-columns: 1fr; }
}

/* Definition list em grid (chave/valor) */
.yni-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0;
}
@media (max-width: 640px) { .yni-dl-grid { grid-template-columns: 1fr; } }
.yni-dl-grid > div > dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  font-weight: 600;
  margin: 0 0 0.3rem 0;
}
.yni-dl-grid > div > dd {
  margin: 0;
  color: #1f3a2a;
  font-size: 0.9rem;
}

/* Blockquote com borda lateral */
.yni-quote {
  border-left: 3px solid #2d5a3f;
  padding: 0.25rem 0 0.25rem 0.85rem;
  margin: 0.25rem 1.25rem 1rem 1.25rem;
  color: #4b5563;
  font-size: 0.88rem;
  white-space: pre-wrap;
  line-height: 1.55;
}
.yni-quote-red { border-left-color: #c94b4b; }

/* Grid de gráficos (Chart.js) */
.yni-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .yni-chart-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .yni-chart-grid { grid-template-columns: 1fr; } }
.yni-chart-body {
  padding: 0.75rem 1rem 1rem 1rem;
  height: 240px;
  position: relative;
}
.yni-chart-body canvas { max-height: 100%; }

/* Toggle switch estilo iOS em label inline (para tabelas) */
.yni-switch-inline {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.yni-switch-inline input { position: absolute; opacity: 0; pointer-events: none; }
.yni-switch-inline .yni-switch-track {
  width: 34px;
  height: 18px;
  background: #e5e7eb;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.yni-switch-inline .yni-switch-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.yni-switch-inline input:checked + .yni-switch-track { background: #2d5a3f; }
.yni-switch-inline input:checked + .yni-switch-track::after { transform: translateX(16px); }

/* Painel de stream (SSE) */
.yni-stream-panel {
  background: #0f1611;
  color: #a7e8be;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  border-radius: 8px;
  border: 1px solid #1f3a2a;
  overflow: hidden;
}
.yni-stream-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.9rem;
  background: #1f3a2a;
  color: #fff;
  border-bottom: 1px solid #2d5a3f;
}
.yni-stream-head .yni-modal-close { color: #a7e8be; background: transparent; }
.yni-stream-head .yni-modal-close:hover { color: #fff; }
.yni-stream-body {
  padding: 0.75rem 1rem;
  max-height: 22rem;
  overflow-y: auto;
  line-height: 1.55;
}
.yni-stream-body > div { white-space: pre-wrap; word-break: break-word; }

/* Grid de temas (preview cards) */
.yni-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1100px) { .yni-theme-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .yni-theme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .yni-theme-grid { grid-template-columns: 1fr; } }

.yni-theme-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.yni-theme-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: #cfe0d4;
  transform: translateY(-2px);
}
.yni-theme-card.is-active {
  border-color: #2d5a3f;
  box-shadow: 0 0 0 2px rgba(45,90,63,0.15);
}

.yni-theme-preview {
  height: 8rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.yni-theme-preview-topbar {
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.yni-theme-preview-topbar.is-dark { background: #1f2937; }

.yni-theme-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}
.yni-theme-bar {
  height: 0.35rem;
  border-radius: 999px;
  background: #d1d5db;
  display: inline-block;
}
.yni-theme-bar.is-dark { background: #4b5563; }
.yni-theme-bar-accent { height: 0.5rem; }

.yni-theme-preview-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.yni-theme-preview-row {
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.yni-theme-preview-row.is-dark { background: #1f2937; }

.yni-theme-label {
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #f3f4f6;
}
.yni-theme-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f3a2a;
}
.yni-theme-type {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: capitalize;
  margin-top: 0.1rem;
}
.yni-theme-active {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d5a3f;
}
.yni-theme-active svg { width: 14px; height: 14px; }

/* Kanban board */
.yni-kanban-board {
  display: grid;
  gap: 1rem;
}
@media (max-width: 1000px) { .yni-kanban-board { grid-template-columns: 1fr !important; } }

.yni-kanban-col {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem;
}
.yni-kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0.1rem 0.25rem;
}
.yni-kanban-head h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin: 0;
}
.yni-kanban-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.yni-kanban-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.yni-kanban-empty {
  font-size: 0.78rem;
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}

.yni-kanban-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.85rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.yni-kanban-card:hover {
  border-color: #cfe0d4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.yni-kanban-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.yni-kanban-card-title {
  font-weight: 600;
  color: #1f3a2a;
  flex: 1;
  min-width: 0;
}
.yni-kanban-card-desc {
  font-size: 0.78rem;
  color: #4b5563;
  margin: 0 0 0.5rem 0;
  line-height: 1.45;
}
.yni-kanban-card-meta {
  font-size: 0.72rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.yni-kanban-card-attach {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.yni-kanban-attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: #f9fafb;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.yni-kanban-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}
.yni-kanban-link {
  background: none;
  border: none;
  padding: 0.1rem 0.25rem;
  cursor: pointer;
  font-size: 0.72rem;
  color: #6b7280;
  transition: color 0.15s;
}
.yni-kanban-link:hover { color: #1f3a2a; }

/* ==== Coverage bar (admin audio stats) ==== */
.yni-coverage-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.yni-coverage-seg-good { background: #2d5a3f; }
.yni-coverage-seg-warn { background: #8b6f2e; }
.yni-coverage-seg-bad  { background: #b91c1c; }

.yni-coverage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: #4b5563;
  margin-top: 0.5rem;
}
.yni-coverage-legend .dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-right: 0.3rem;
}
.yni-coverage-legend .dot-good { background: #2d5a3f; }
.yni-coverage-legend .dot-warn { background: #8b6f2e; }
.yni-coverage-legend .dot-bad  { background: #b91c1c; }

.yni-coverage-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.yni-coverage-cell {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.yni-coverage-cell.is-good { background: #2d5a3f; border-color: #2d5a3f; }
.yni-coverage-cell.is-warn { background: #8b6f2e; border-color: #8b6f2e; }
.yni-coverage-cell.is-bad  { background: #b91c1c; border-color: #b91c1c; }
.yni-coverage-pct {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.yni-coverage-pct.is-good { color: #2d5a3f; }
.yni-coverage-pct.is-warn { color: #8b6f2e; }
.yni-coverage-pct.is-bad  { color: #b91c1c; }

/* ==== Chat layout (admin claude chat) ==== */
.yni-chat-shell {
  display: flex;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  height: calc(100vh - 13rem);
  min-height: 28rem;
}
.yni-chat-sidebar {
  width: 15rem;
  flex-shrink: 0;
  background: #fafafa;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.yni-chat-sidebar-head {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}
.yni-chat-sessions {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.yni-chat-session {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  color: #4b5563;
  font-size: 0.78rem;
  transition: background 0.15s;
}
.yni-chat-session:hover { background: #f3f4f6; }
.yni-chat-session.is-active {
  background: #e8f1ea;
  color: #1f3a2a;
  font-weight: 600;
}
.yni-chat-session-body {
  min-width: 0;
  flex: 1;
}
.yni-chat-session-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 0.78rem;
}
.yni-chat-session-meta {
  display: block;
  font-size: 0.68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.yni-chat-session-del {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem;
  color: #9ca3af;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.yni-chat-session:hover .yni-chat-session-del { opacity: 1; }
.yni-chat-session-del:hover { color: #b91c1c; }

.yni-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.yni-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}
.yni-chat-head-title {
  font-weight: 700;
  color: #2d5a3f;
  font-size: 0.9rem;
}
.yni-chat-models {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}
.yni-chat-model-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s;
}
.yni-chat-model-btn:hover { border-color: #c8d8cd; color: #1f3a2a; }
.yni-chat-model-btn.is-active {
  background: #2d5a3f;
  border-color: #2d5a3f;
  color: #fff;
}
.yni-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.yni-chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.85rem;
}
.yni-chat-msg {
  display: flex;
}
.yni-chat-msg.is-user { justify-content: flex-end; }
.yni-chat-bubble {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.yni-chat-msg.is-user .yni-chat-bubble {
  background: #2d5a3f;
  color: #fff;
}
.yni-chat-msg.is-assistant .yni-chat-bubble {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.yni-chat-bubble pre {
  background: #1f3a2a;
  color: #d5e7d9;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  overflow-x: auto;
  margin: 0.4rem 0;
}
.yni-chat-bubble code {
  background: #fff;
  color: #8b6f2e;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.78rem;
  border: 1px solid #e5e7eb;
}
.yni-chat-bubble pre code {
  background: transparent;
  color: inherit;
  border: none;
  padding: 0;
}
.yni-chat-toolcall {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.25rem;
}
.yni-chat-toolcall summary {
  cursor: pointer;
}
.yni-chat-toolcall pre {
  background: #e5e7eb;
  color: #1f2937;
  margin-top: 0.3rem;
}
.yni-chat-cost {
  font-size: 0.68rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}
.yni-chat-spinner {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.35rem;
  border: 2px solid #9ca3af;
  border-top-color: transparent;
  border-radius: 999px;
  animation: yni-spin 0.8s linear infinite;
}
@keyframes yni-spin { to { transform: rotate(360deg); } }

.yni-chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
  align-items: flex-end;
}
.yni-chat-input-row textarea {
  flex: 1;
  resize: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
.yni-chat-input-row textarea:focus {
  outline: none;
  border-color: #2d5a3f;
  box-shadow: 0 0 0 3px rgba(45,90,63,0.12);
}
.yni-chat-send, .yni-chat-stop {
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}
.yni-chat-send {
  background: #2d5a3f;
  color: #fff;
}
.yni-chat-send:hover:not(:disabled) { background: #1f3a2a; }
.yni-chat-stop {
  background: #b91c1c;
  color: #fff;
}
.yni-chat-stop:hover { background: #991b1b; }

/* ==== Print — remove wow ==== */
@media print {
  body.yn-int-body::before { display: none; }
  .yni-nav, .yni-mobile-menu, .yni-footer, .yni-term-actions, .yni-cat-row { display: none !important; }
  .yni-hero { background: #fff !important; color: #000 !important; box-shadow: none !important; border: 1px solid #ccc; }
  .yni-hero h1, .yni-hero h1 em { color: #000 !important; background: none !important; -webkit-text-fill-color: #000 !important;  }
  .yni-term { border: 1px solid #ddd !important; break-inside: avoid; }
}

/* ==== Card: Permissões do Subadmin (admin-features.html) ==== */
.yni-sub-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.25rem 0 1.5rem 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}
.yni-sub-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2d5a3f, #8b6f2e 60%, #d4b98b);
}
.yni-sub-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}
.yni-sub-card-head-left {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  flex: 1;
  min-width: 280px;
}
.yni-sub-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #e8f1ea;
  color: #1f3a2a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.yni-sub-card-icon svg { width: 20px; height: 20px; }
.yni-sub-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f3a2a;
  margin: 0 0 .2rem 0;
  letter-spacing: -0.01em;
}
.yni-sub-card-desc {
  font-size: .82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  max-width: 56rem;
}
.yni-sub-card-desc strong { color: #1f3a2a; }
.yni-sub-card-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem 1rem;
  background: #fafaf7;
  border: 1px solid #eee4d1;
  border-radius: 10px;
  min-width: 90px;
}
.yni-sub-count-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #8b6f2e;
  line-height: 1;
}
.yni-sub-count-lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9ca3af;
  margin-top: .25rem;
}

.yni-sub-caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.yni-sub-cap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  background: #fafaf7;
  border: 1px solid #eee4d1;
  border-radius: 10px;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.yni-sub-cap:hover { border-color: #d4b98b; background: #fdfaf1; }
.yni-sub-cap.is-locked {
  cursor: not-allowed;
  background: #f3f4f6;
  border-color: #e5e7eb;
  opacity: .75;
}
.yni-sub-cap-body { flex: 1; min-width: 0; }
.yni-sub-cap-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: #1f3a2a;
  margin-bottom: .15rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.yni-sub-cap-lock { width: 12px; height: 12px; color: #9ca3af; }
.yni-sub-cap.is-locked .yni-sub-cap-title { color: #6b7280; }
.yni-sub-cap-desc {
  font-size: .74rem;
  color: #6b7280;
  line-height: 1.45;
  margin: 0 0 .35rem 0;
}
.yni-sub-cap-key {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: .68rem;
  color: #8b6f2e;
  background: #fff;
  padding: .1rem .35rem;
  border-radius: 4px;
  border: 1px solid #eee4d1;
}

.yni-sub-users {
  border-top: 1px dashed #e5e7eb;
  padding-top: 1rem;
}
.yni-sub-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.yni-sub-users-head strong {
  font-family: 'Sora', sans-serif;
  font-size: .88rem;
  color: #1f3a2a;
}
.yni-sub-users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .5rem;
}
.yni-sub-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .85rem;
  background: #fafaf7;
  border: 1px solid #f3ece0;
  border-radius: 8px;
}
.yni-sub-user-info { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.yni-sub-user-name {
  font-weight: 600;
  color: #1f3a2a;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yni-sub-user-at {
  font-size: .72rem;
  color: #8b6f2e;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.yni-sub-user-mail {
  font-size: .72rem;
  color: #9ca3af;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yni-sub-users-empty {
  margin: 0;
  font-size: .82rem;
  color: #6b7280;
  padding: .75rem 1rem;
  background: #fafaf7;
  border-radius: 8px;
  border: 1px dashed #e5e7eb;
}
.yni-sub-users-empty a { color: #2d5a3f; text-decoration: underline; }


/* ==================================================================
   Página "Conhecer os Yanomami" — prefixo .ync-*
   ================================================================== */

.ync-hero {
  position: relative;
  background: linear-gradient(135deg, #1f3a2a 0%, #2d5a3f 70%, #1f3a2a 100%);
  color: #fff;
  padding: 4.5rem 1.5rem 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
.ync-hero-pattern {
  position: absolute; inset: 0; opacity: 0.22; z-index: 0;
}
.ync-hero-pattern svg { width: 100%; height: 100%; }
.ync-hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.ync-hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: .9rem 0 1.1rem;
  color: #fff;
}
.ync-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--yn-gold-soft), #f3e0a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ync-hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 64ch;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.ync-hero-sub strong { color: #fff; font-weight: 700; }

/* sumário (TOC) flutuante */
.ync-toc {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 1.5rem;
}
.ync-toc-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 1px solid rgba(217, 197, 138, 0.25);
  transition: all 0.2s ease;
}
.ync-toc-link:hover {
  background: rgba(217, 197, 138, 0.15);
  color: #fff;
  border-color: rgba(217, 197, 138, 0.6);
}
.ync-toc-link-quiz {
  background: var(--yn-gold);
  color: #1a1410;
  border-color: var(--yn-gold);
}
.ync-toc-link-quiz:hover { background: var(--yn-gold-soft); color: #1a1410; }

/* ==== Sections ==== */
.ync-section { padding: 4.5rem 1.5rem; border-top: 1px solid var(--yn-border); }
.ync-section-cream { background: var(--yn-cream); }
.ync-section-dark {
  background: var(--yn-green-dark);
  color: #fff;
  border-top: 0;
}
.ync-section-quiz {
  background: linear-gradient(180deg, #fff 0%, #f6f4ee 100%);
  border-top: 0;
}
.ync-section-inner { max-width: 1100px; margin: 0 auto; }
.ync-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .ync-section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ync-section { padding: 3rem 1.25rem; }
}

/* kicker / title / lead — variações */
.ync-kicker {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yn-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.ync-kicker-light { color: var(--yn-gold-soft); }
.ync-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--yn-green-dark);
  margin: 0 0 1rem;
}
.ync-title-light { color: #fff; }
.ync-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a5a52;
  max-width: 68ch;
  margin: 0;
}
.ync-lead-light { color: rgba(255, 255, 255, 0.85); }

/* highlights bullets */
.ync-highlights {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.ync-highlights li {
  position: relative;
  padding-left: 0.4rem;
  color: #2a3a31;
  line-height: 1.6;
  font-size: 0.98rem;
}
.ync-highlights li::before {
  content: '';
  position: absolute;
  left: -1rem; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yn-gold);
}
.ync-highlights-light li { color: rgba(255, 255, 255, 0.86); }
.ync-highlights-light li::before { background: var(--yn-gold-soft); }
.ync-highlights-2col {
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .ync-highlights-2col {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

/* ==== Mapa SVG ==== */
.ync-map {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--yn-shadow);
  border: 1px solid var(--yn-border);
}
.ync-map svg { width: 100%; height: auto; display: block; }
.ync-map .ync-hot { cursor: help; transition: transform 0.2s ease; }
.ync-map .ync-hot:hover { transform: translateY(-2px); }
.ync-map .ync-hot:hover circle:nth-child(1) {
  fill: var(--yn-gold-soft);
  fill-opacity: 0.55;
}
.ync-map-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0.6rem 0 0;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ==== Mini-glossário cultural ==== */
.ync-glossario { margin-top: 3rem; }
.ync-mini-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  color: var(--yn-green-dark);
  margin: 0 0 0.4rem;
}
.ync-mini-sub {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
  max-width: 60ch;
}
.ync-gloss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.ync-gloss-card {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  transition: all 0.25s ease;
}
.ync-gloss-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(31, 58, 42, 0.25);
  border-color: var(--yn-gold-soft);
}
.ync-gloss-termo {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yn-green-dark);
  letter-spacing: -0.01em;
}
.ync-gloss-pt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yn-gold);
  font-weight: 700;
  margin: 0.2rem 0 0.7rem;
}
.ync-gloss-note {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5a52;
  margin: 0;
}

/* ==== Timeline ==== */
.ync-timeline {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  position: relative;
  display: grid;
  gap: 1.4rem;
}
.ync-timeline::before {
  content: '';
  position: absolute;
  left: 100px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--yn-gold-soft), transparent);
}
.ync-timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.2rem;
  align-items: start;
  position: relative;
}
.ync-timeline-year {
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--yn-gold);
  letter-spacing: 0.06em;
  padding-top: 1.1rem;
  text-align: right;
  padding-right: 0.5rem;
}
.ync-timeline-card {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-left: 4px solid var(--yn-gold-soft);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  position: relative;
}
.ync-timeline-card::before {
  content: '';
  position: absolute;
  left: -34px; top: 1.2rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yn-gold);
  border: 3px solid var(--yn-cream);
  box-shadow: 0 0 0 2px var(--yn-gold-soft);
}
.ync-timeline-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yn-green-dark);
  margin: 0 0 0.35rem;
}
.ync-timeline-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #4a5a52;
  margin: 0;
}
.ync-timeline-danger .ync-timeline-card { border-left-color: #c0392b; }
.ync-timeline-danger .ync-timeline-card::before { background: #c0392b; box-shadow: 0 0 0 2px #f4c1bc; }
.ync-timeline-win .ync-timeline-card { border-left-color: #2d5a3f; }
.ync-timeline-win .ync-timeline-card::before { background: #2d5a3f; box-shadow: 0 0 0 2px #b8d4c0; }
@media (max-width: 600px) {
  .ync-timeline::before { left: 60px; }
  .ync-timeline-item { grid-template-columns: 60px 1fr; gap: 0.8rem; }
  .ync-timeline-card::before { left: -22px; width: 10px; height: 10px; }
  .ync-timeline-year { font-size: 0.72rem; padding-right: 0.3rem; }
}

/* ==== Curiosidades ==== */
.ync-curio-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ync-curio {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ync-curio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(217, 197, 138, 0.08) 100%);
  pointer-events: none;
}
.ync-curio:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(31, 58, 42, 0.3);
  border-color: var(--yn-gold-soft);
}
.ync-curio-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.ync-curio h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yn-green-dark);
  margin: 0 0 0.5rem;
}
.ync-curio p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #4a5a52;
  margin: 0;
}

/* ==== Quiz ==== */
.ync-quiz {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  max-width: 780px;
}
.ync-quiz-q {
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 16px;
  padding: 1.5rem;
}
.ync-quiz-q header { margin-bottom: 1rem; }
.ync-quiz-num {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yn-gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.ync-quiz-q h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yn-green-dark);
  margin: 0;
  line-height: 1.4;
}
.ync-quiz-opts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.ync-quiz-opt {
  width: 100%;
  text-align: left;
  background: #fafaf7;
  border: 1.5px solid var(--yn-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: #2a3a31;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.ync-quiz-opt:not(:disabled):hover {
  background: #fff;
  border-color: var(--yn-gold-soft);
  transform: translateX(2px);
}
.ync-quiz-opt:disabled { cursor: default; }
.ync-quiz-opt.is-correct {
  background: #e8f5ec;
  border-color: #2d5a3f;
  color: #1f3a2a;
  font-weight: 600;
}
.ync-quiz-opt.is-correct::after {
  content: ' ✓';
  color: #2d5a3f;
  font-weight: 700;
}
.ync-quiz-opt.is-wrong {
  background: #fbeae8;
  border-color: #c0392b;
  color: #8a2a20;
}
.ync-quiz-opt.is-wrong::after {
  content: ' ✗';
  font-weight: 700;
}
.ync-quiz-why {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--yn-cream);
  border-left: 3px solid var(--yn-gold);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5a52;
}
.ync-quiz-why strong { color: var(--yn-green-dark); }

.ync-quiz-result {
  background: linear-gradient(135deg, var(--yn-green-dark) 0%, #2d5a3f 100%);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(31, 58, 42, 0.4);
}
.ync-quiz-score-num {
  font-family: 'Sora', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--yn-gold-soft);
}
.ync-quiz-score-tot {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.55);
}
.ync-quiz-msg {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0.8rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}
.ync-btn-quiz {
  background: var(--yn-gold);
  color: #1a1410;
  border: 0;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.ync-btn-quiz:hover {
  background: var(--yn-gold-soft);
  transform: translateY(-1px);
}

/* ==== Saiba mais ==== */
.ync-refs {
  margin-top: 2rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.ync-refs a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: #fff;
  border: 1px solid var(--yn-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--yn-green-dark);
  transition: all 0.25s ease;
}
.ync-refs a:hover {
  border-color: var(--yn-gold);
  box-shadow: 0 12px 28px -16px rgba(139, 111, 46, 0.3);
  transform: translateY(-2px);
}
.ync-refs a strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.ync-refs a span {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.45;
}
.ync-refs a svg {
  color: var(--yn-gold);
  flex-shrink: 0;
}
.ync-refs a:hover svg { transform: translate(2px, -2px); transition: transform 0.2s; }

/* ==== Nota de respeito ==== */
.ync-respeito {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}
.ync-respeito p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b7280;
  font-style: italic;
  margin: 0;
}
.ync-respeito strong {
  color: var(--yn-green-dark);
  font-style: normal;
}
