/* Prueba «futurista y elegante» de la página principal: menos color, más aire, un solo acento. */
:root {
  --f-ink: #15161C;
  --f-muted: #6B6E7A;
  --f-line: rgba(21, 22, 28, 0.09);
  --f-card: rgba(255, 255, 255, 0.72);
  --f-accent: linear-gradient(120deg, #E06493 0%, #9468E4 52%, #5585E6 100%);
}

/* Fondo: casi blanco con una rejilla finísima, sin manchas de color */
body.dash-page {
  background: #F6F6F8 !important;
  background-image: linear-gradient(rgba(21, 22, 28, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 22, 28, 0.035) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  color: var(--f-ink);
}
.scene, .cursor, .bubble, .blob { display: none !important; }

/* Tarjetas: cristal claro, borde fino, sin color de fondo por sección */
.dash .tile,
.dash .tile[class*="g-"] {
  background: var(--f-card) !important;
  border: 1px solid var(--f-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -30px rgba(21, 22, 28, 0.25) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dash .tile:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 28px 50px -30px rgba(21, 22, 28, 0.3) !important; }
.dash .tile h2, .dash .tile h3 { letter-spacing: -0.02em; font-weight: 600; }

/* Etiquetas pequeñas en mayúsculas, tipo panel técnico */
.dash .eyebrow, .dash .tag, .dash .meta, .dash .soon-pill {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--f-muted);
  background: transparent;
  border: 1px solid var(--f-line);
}

/* Un solo acento: el degradado solo en el botón principal */
.dash .tile .btn-primary, .dash .tile .btn-dark, .dash .btn-primary { background: var(--f-accent) !important; color: #fff !important; border: 0 !important; }
.dash .tile .btn-line, .dash .tile .btn-ghost { background: transparent !important; color: var(--f-ink) !important; border: 1px solid var(--f-line) !important; }

/* Estrellas y botones de la página en contorno fino */
.fav-star { background: transparent; box-shadow: none; border: 1px solid var(--f-line); }
.fav-star.on { color: #E0A526; }

/* Menos cosas en pantalla: la búsqueda y los listados sin adornos */
.dash .search { background: #fff !important; border: 1px solid var(--f-line) !important; box-shadow: none !important; }
.dash .levels a { border: 1px solid var(--f-line) !important; background: #fff !important; }

/* Etiquetas sin marco: solo texto con una raya fina delante */
.dash .eyebrow, .dash .tag, .dash .meta, .dash .soon-pill {
  border: 0 !important;
  background: none !important;
  padding-left: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dash .eyebrow::before, .dash .meta::before { content: ""; width: 22px; height: 1px; background: var(--f-muted); }
.dash .eyebrow i, .dash .eyebrow::after { display: none; }

/* Búsqueda: un solo marco */
.dash .search { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.dash .search input { background: #fff !important; border: 1px solid var(--f-line) !important; box-shadow: none !important; }

/* Más color con la paleta de la web: los títulos usan el mismo degradado que «practise today?» */
.dash .tile h2,
.dash .tile h2 a {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.dash .tile h2 a { text-decoration: none; }

/* Un tono pastel por nivel, de rosa a azul, de la misma familia */
.dash .levels a { color: var(--f-ink) !important; border: 0 !important; }
.dash .levels a:nth-of-type(1) { background: #F7B5CB !important; }
.dash .levels a:nth-of-type(2) { background: #EDB4DD !important; }
.dash .levels a:nth-of-type(3) { background: #D6BDF6 !important; }
.dash .levels a:nth-of-type(4) { background: #C3CCF7 !important; }
.dash .levels a:nth-of-type(5) { background: #B2D4F9 !important; }
.dash .levels a:nth-of-type(6) { background: #A6CFF5 !important; }

/* Los demás títulos de tarjeta, con el mismo degradado */
.dash .tile .big,
.dash .tile .video-title,
.dash .tile > .tag {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Subtítulos: minúsculas y gris, debajo del título */
.dash .meta,
.dash .tile .meta {
  display: block;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  color: #8A8D98 !important;
}
.dash .meta::before { display: none !important; }

/* Vídeo: título con degradado y subtítulo dentro de un panel de cristal blanco */
.t-video .video-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px -20px rgba(21, 22, 28, 0.35);
}
.t-video .video-title {
  position: static !important;
  color: transparent;
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.1;
}
.t-video .video-sub { color: #6B6E7A; font-size: 0.9rem; font-weight: 400; text-shadow: none; }

/* Páginas interiores: los títulos grandes usan el mismo degradado pastel */
h1.split,
h2.reveal {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Mi espacio: mismo panel de control que la página de inicio */
.ms-dash {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  grid-auto-rows: auto;
  height: auto !important;
  min-height: 0 !important;
  max-width: 1100px;
  margin: 96px auto 48px !important;
}
/* Dos columnas de tarjetas en escritorio: perfil y clases; tareas y últimas cosas; flashcards y favoritos */
.ms-dash > .tile { grid-area: auto; grid-row: auto; }
.ms-dash > .ms-hero-t,
.ms-dash > .ms-classes,
.ms-dash > .ms-hw,
.ms-dash > .ms-rec,
.ms-dash > .ms-deck,
.ms-dash > .ms-fav { grid-column: span 6; grid-row: auto; }
.ms-dash .ms-list { max-height: 420px; overflow: auto; }
.ms-dash .ms-login { margin: 0; font-size: 0.92rem; }
.ms-dash .ms-login a { color: #5E3FC2; font-weight: 600; }

/* Tareas */
.hw-item { align-items: flex-start; flex-wrap: wrap; }
.hw-item small { color: var(--f-muted); font-size: 0.8rem; width: 100%; padding-left: 30px; }
.hw-check { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.hw-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #9468E4; flex: 0 0 auto; cursor: pointer; }
.hw-text { white-space: pre-wrap; color: var(--f-ink); font-weight: 600; line-height: 1.4; }
.hw-item.is-done .hw-text { color: #8A8D98; text-decoration: line-through; text-decoration-color: rgba(138, 141, 152, 0.7); font-weight: 500; }

/* Profesora: tareas dentro de la ficha del alumno */
.tp-hw-form { display: grid; gap: 8px; margin: 6px 0 14px; }
.tp-hw-form textarea { width: 100%; box-sizing: border-box; border-radius: 14px; border: 1px solid var(--f-line); padding: 10px 12px; font: inherit; background: #fff; resize: vertical; }
.tp-hw-add { justify-self: start; }
.tp-hw { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.tp-hw li { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--f-line); }
.tp-hw-mark { font-weight: 700; color: #9468E4; }
.tp-hw-text { white-space: pre-wrap; font-weight: 600; }
.tp-hw small { grid-column: 2 / span 1; color: var(--f-muted); }
.tp-hw .tp-hw-del { grid-column: 3; grid-row: 1; }
.tp-hw li.is-done { color: #8A8D98; }
.tp-hw li.is-done .tp-hw-text { text-decoration: line-through; }
.tp-hw li.is-done .tp-hw-mark { color: #3F8CFF; }

@media (max-width: 820px) {
  .ms-dash { grid-template-columns: minmax(0, 1fr) !important; }
  .ms-dash > .tile { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* Todos los títulos h2 de las páginas, con el mismo degradado pastel (también fuera del panel de inicio) */
h2 {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.eyebrow { color: var(--f-muted); }
.fc-opt h2, a h2 {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Etiquetas de las tarjetas: gris oscuro y sólido (el degradado las hacía casi invisibles) */
.dash .tile > .tag,
.tile .tag {
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #3d3b47 !important;
  -webkit-text-fill-color: #3d3b47;
}

/* ---------- Ficha de verbos irregulares (clase 24) ---------- */
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.ws-chips span { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: #3d3b47; background: linear-gradient(135deg, #f8d7e6, #d9cbfb); }
/* Tocar para descubrir: la traducción aparece al pulsar */
.ws-reveal { display: inline-block; cursor: pointer; padding: 3px 10px; margin: 3px 4px; border-radius: 999px; background: #fff; border: 1px solid #e3dcef; color: #3d3b47; font-weight: 600; transition: background 0.2s ease; }
.ws-reveal:hover, .ws-reveal:focus-visible { background: #f3edfd; outline: none; }
.ws-reveal em { display: none; font-style: italic; font-weight: 500; color: #6b6e7a; margin-left: 8px; }
.ws-reveal.open em { display: inline; }
.ws-reveal.open { background: #f3edfd; }
.ws-words { line-height: 2.4; }
/* La bota: formas irregulares */
.ws-verbs td.irr { font-weight: 700; color: #3d3b47; }
.ws-verbs.is-boot td.irr { background: linear-gradient(135deg, #fbd9e6, #d9cbfb); }
.ws-verbs.is-boot td:not(.irr) { color: #8d8a99; }
.ws-verbs td { cursor: pointer; }
.ws-vocab td { vertical-align: top; }
.ws-letter { margin: 14px 0; font-style: italic; font-size: 1.05rem; line-height: 1.6; }
.ws-letter em { font-style: normal; font-weight: 700; display: block; margin-top: 6px; }

/* Títulos: gris oscuro. Solo la palabra en cursiva conserva el degradado. */
h1.split,
h2.reveal {
  color: #3d3b47 !important;
  -webkit-text-fill-color: #3d3b47;
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
h1.split em,
h2.reveal em {
  background: var(--g-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Letras de nivel (A1, A2, B1…): relleno gris oscuro, sin el contorno vacío que parecía blanco */
.level-group-code,
#a2 .level-group-code {
  color: #3d3b47 !important;
  -webkit-text-fill-color: #3d3b47;
  -webkit-text-stroke: 0;
}

/* ---------- Practicar frases como flashcards (dentro de la ficha) ---------- */
.ws-fc-wrap { margin: 18px 0 8px; }
.ws-fc { position: relative; margin-top: 14px; max-width: 480px; padding: 22px 22px 18px; border-radius: 26px; background: #fff; border: 1px solid #e6e0f2; box-shadow: 0 24px 50px -30px rgba(70, 80, 130, 0.5); color: #3d3b47; }
.ws-fc[hidden] { display: none; }
.ws-fc-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #3d3b47; }
.ws-fc-count { margin: 0 0 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; color: #6b6e7a; }
.ws-fc-card { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 160px; padding: 20px; border: 0; border-radius: 22px; cursor: pointer; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; color: #3d3b47; text-align: center; background: linear-gradient(140deg, rgba(252, 210, 224, 0.85), rgba(212, 192, 252, 0.75)); transition: transform 0.2s ease; }
.ws-fc-card:hover, .ws-fc-card:focus-visible { transform: translateY(-2px); outline: 3px solid #7c5cd6; outline-offset: 2px; }
.ws-fc-card.is-back { background: linear-gradient(140deg, rgba(190, 240, 226, 0.9), rgba(169, 200, 255, 0.75)); }
.ws-fc-hint { display: block; margin: 8px 0 14px; color: #6b6e7a; font-size: 0.85rem; text-align: center; }
.ws-fc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ws-fc-actions button:disabled { opacity: 0.4; cursor: default; }
.ws-fc-msg { margin: 12px 0 0; min-height: 1.2em; font-size: 0.9rem; color: #3d3b47; text-align: center; }


/* ===== Cómo aprender español: un botón en la página principal; al pulsarlo se abren los artículos tipo vlog ===== */
.hl-dlg { border: 0; padding: 0; width: min(760px, 92vw); max-height: 86vh; overflow: auto; border-radius: 26px; background: #F6F6F8; color: var(--f-ink); box-shadow: 0 40px 90px -30px rgba(21, 22, 28, 0.45); }
.hl-dlg::backdrop { background: rgba(21, 22, 28, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hl { padding: 28px 28px 24px; }
.hl-head { position: relative; margin-bottom: 18px; padding-right: 48px; }
.hl-head .tag { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--f-muted); margin: 0 0 6px; background: none; -webkit-text-fill-color: currentColor; }
.hl-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; color: #3d3b47; }
.hl-head h2 em { font-style: italic; font-weight: 400; color: #3d3b47; }
.hl-lead { color: var(--f-muted); margin: 0; }
.hl-close { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--f-line); background: #fff; color: var(--f-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.hl-list { display: flex; flex-direction: column; gap: 12px; }
.hl-card { background: var(--f-card); border: 1px solid var(--f-line); border-radius: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -30px rgba(21, 22, 28, 0.25); }
.hl-card details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.hl-card details > summary::-webkit-details-marker { display: none; }
.hl-card details[open] > summary { padding-bottom: 6px; }
.hl-n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--f-accent); }
.hl-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.hl-copy small { font-size: 0.76rem; color: var(--f-muted); }
.hl-copy strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: var(--f-ink); }
.hl-copy em { font-style: normal; color: var(--f-muted); font-size: 0.92rem; }
.hl-card details > summary::after { content: "+"; flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--f-muted); margin-left: auto; transition: transform 0.3s ease; }
.hl-card details[open] > summary::after { transform: rotate(45deg); }
.hl-body { padding: 0 18px 18px 74px; color: var(--f-ink); line-height: 1.55; font-size: 0.97rem; }
.hl-body p { margin: 0 0 8px; }
.hl-body ul { margin: 0; padding-left: 18px; }
.hl-body li { margin: 5px 0; }
@media (max-width: 700px) {
  .hl { padding: 22px 16px 18px; }
  .hl-body { padding: 0 14px 16px 14px; }
}

/* Vídeo sin transcripción todavía: portada con enlace a YouTube */
.vid-simple { width: calc(100% - 2 * var(--pad)); max-width: 760px; margin: 0 auto 80px; text-align: center; }
.vid-cover-link { position: relative; display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--f-line); box-shadow: 0 18px 40px -30px rgba(21, 22, 28, 0.25); }
.vid-cover-link img { display: block; width: 100%; height: auto; }
.vid-cover-text { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--f-ink); font-weight: 600; font-size: 0.95rem; }
.vid-level { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; color: var(--f-ink); margin: 28px 0 10px; }

/* ===== Videos: niveles arriba, estrella de favoritos y vídeos ya vistos en gris ===== */
.vid-group { scroll-margin-top: 120px; }
.vid-levels { width: calc(100% - 2 * var(--pad)); max-width: 1100px; margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vid-levels a, .vid-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--f-line); background: #fff; color: var(--f-ink); font: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer; }
.vid-levels a:hover, .vid-chip:hover { border-color: rgba(21, 22, 28, 0.25); }
.vid-chip[aria-pressed="true"] { background: var(--f-ink); color: #fff; border-color: var(--f-ink); }
.vid-chip span { opacity: 0.7; font-weight: 500; }
.vcard { position: relative; }
.vcard .vfav { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--f-line); background: rgba(255, 255, 255, 0.92); color: var(--f-muted); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -10px rgba(21, 22, 28, 0.4); }
.vcard .vfav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.vcard .vfav[aria-pressed="true"] { color: #E0A106; border-color: #F3C34A; background: #FFF8E1; }
.vcard .vfav[aria-pressed="true"] svg { fill: #F5B301; }
.vcard.is-seen .video-card { filter: grayscale(1); opacity: 0.55; }
.vcard.is-seen .lesson-go { color: var(--f-muted); }
.lessons.fav-only .vcard:not(.is-fav) { display: none; }
.lessons.fav-only .vid-group:not(:has(.is-fav)) { display: none; }

/* Panel de la profesora: mismas tarjetas que «Mi espacio» */
[hidden] { display: none !important; }
.tp-login { max-width: 560px; margin: 120px auto 48px; padding: 32px 28px; border-radius: 22px; background: var(--f-card); border: 1px solid var(--f-line); box-shadow: 0 18px 40px -30px rgba(21, 22, 28, 0.25); }
.tpd > .tp-prof { grid-column: span 4; display: grid; gap: 10px; justify-items: start; align-content: start; }
.tpd > .tp-codes { grid-column: span 8; }
.tpd > .tp-students, .tpd > .tp-classes, .tpd > .tp-detail { grid-column: span 12; }
.tp-prof img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.tp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0; width: 100%; }
.tp-stats div { background: rgba(255, 255, 255, 0.72); border-radius: 14px; padding: 10px 12px; border: 1px solid var(--f-line); }
.tp-stats dt { font-size: 0.75rem; color: var(--f-muted); }
.tp-stats dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; }
.tp-codes-form { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; gap: 8px; }
.tp-codes-form input, .tp-codes-form select, #tpLoginForm input { padding: 11px 14px; border-radius: 14px; border: 1px solid var(--f-line); font: inherit; background: #fff; min-width: 0; }
.tp-plain-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.tp-plain-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--f-line); }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tp-card { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.78); border: 1px solid var(--f-line); display: grid; gap: 6px; justify-items: start; transition: transform 0.2s ease; }
.tp-card:hover { transform: translateY(-2px); }
.tp-card b { font-size: 1.05rem; }
.tp-card small { color: var(--f-muted); font-size: 0.82rem; }
.tp-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--f-accent); color: #fff; }
.tp-card .tp-open { color: #B0304F; font-weight: 700; font-size: 0.85rem; }
.tp-card .tp-ok { color: #3F8CFF; font-weight: 600; font-size: 0.85rem; }
.tp-detail-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.tp-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 18px; }
.tp-detail-grid h4 { margin: 18px 0 8px; font-size: 0.95rem; color: var(--f-muted); }
@media (max-width: 820px) {
  .tp-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-codes-form { grid-template-columns: minmax(0, 1fr); }
  .tp-login { margin: 96px 16px 48px; }
}
.tp-cls { max-height: none; overflow: visible; }

/* Campanita del alumno: tareas pendientes, junto a «Log in» */
.pf-bell { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 6px; border-radius: 50%; color: var(--f-ink); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--f-line); text-decoration: none; cursor: pointer; transition: transform 0.2s ease; }
.pf-bell:hover { transform: translateY(-1px); }
.pf-bell svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-bell-n { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: #E06493; color: #fff; font-size: 0.72rem; font-weight: 700; box-shadow: 0 0 0 2px #fff; }

/* Inicio: las filas crecen con su contenido en cualquier pantalla (ya no hay alturas fijas que se pisen).
   En pantallas grandes conservan casi la misma proporción del panel. */
.dash:not(.ms-dash):not(.tpd) {
  height: auto !important;
  min-height: 0 !important;
  grid-template-rows: none !important;
  grid-auto-rows: minmax(max(110px, calc((100svh - 124px) / 7)), auto) !important;
}

/* Inicio: los niveles y el buscador pasan a otra línea cuando no caben (sin salirse de la tarjeta) */
.t-hello .hello-row { flex-wrap: wrap !important; }
.t-hello .hello-row .levels { flex: 0 1 auto !important; max-width: 100%; }
.t-hello .hello-row .levels a { min-width: 0; }
.t-hello .hello-row .search { flex: 1 1 200px !important; max-width: 100%; }

/* Panel de la profesora: elegir qué alumnos tienen cada clase */
.tp-cls-item { border-bottom: 1px solid rgba(21, 22, 28, 0.08); padding: 8px 0; }
.tp-cls-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tp-cls-toggle { border: 1px solid rgba(21, 22, 28, 0.12); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: #15161C; }
.tp-cls-toggle[aria-expanded="true"] { background: #15161C; color: #fff; }
.tp-cls-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.tp-pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #F6F6F8; cursor: pointer; font-weight: 600; }
.tp-pick input { width: 16px; height: 16px; accent-color: #9468E4; }
.tp-pick small { color: #6B6E7A; }

/* ---------- Tarjetas de alumno (panel de la profesora) ---------- */
.tp-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.tp-c2 { background: #fff; border: 1px solid rgba(21, 22, 28, 0.1); border-radius: 18px; padding: 16px 18px; display: grid; gap: 12px; box-shadow: 0 16px 34px -30px rgba(21, 22, 28, 0.5); }
.tp-c2.is-off { opacity: 0.6; }
.tp-c2-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tp-c2-head b { font-size: 1.15rem; }
.tp-access { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.tp-c2-sum { margin: 0; font-size: 0.85rem; color: #6B6E7A; }
.tp-c-acts, .tp-c-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.9rem; }
.tp-c-acts li, .tp-c-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tp-c-list li.is-done span { text-decoration: line-through; color: #6B6E7A; }
.tp-c-list li { justify-content: space-between; }
.tp-c-list li > span { flex: 1; min-width: 0; }
.tp-c2-block h4 { margin: 0 0 4px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6B6E7A; }
.tp-c2 .meta { margin: 0 0 6px; font-size: 0.8rem; }
.tp-c2-form { display: flex; gap: 8px; margin-top: 6px; }
.tp-c2-form input { flex: 1; min-width: 0; font: inherit; padding: 6px 10px; border: 1px solid rgba(21, 22, 28, 0.15); border-radius: 10px; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 6px 4px 4px; font-size: 0.82rem; border: 1px solid rgba(21, 22, 28, 0.12); }
.tp-chip button { border: 0; background: transparent; font: inherit; font-weight: 600; cursor: pointer; padding: 2px 8px; border-radius: 999px; color: #15161C; }
.tp-chip.is-done { background: #E3F4EA; border-color: #2F9E63; }
.tp-chip.is-done button { background: #2F9E63; color: #fff; }
.tp-chip.is-todo { background: #F2F3F6; color: #6B6E7A; }
.tp-chip.is-todo button { background: #D9DBE1; color: #15161C; }
.tp-chip-ve { font-size: 0.75rem; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.tp-c2-open { justify-self: start; }

/* ---------- Panel de la profesora según el boceto: fila superior (perfil · calendario · clases), fila media (lista · alumnos) ---------- */
.tpd > .tp-cal, .tpd > .tp-levels { grid-column: span 4; align-content: start; }
.tpd > .tp-todo { grid-column: span 4; align-content: start; }
.tpd > .tp-students { grid-column: span 8; }
.tpd > .tp-codes { grid-column: span 12; }
.tp-cal-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.tp-cal-form input, .tp-cal-form select { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--f-line); font: inherit; background: #fff; min-width: 0; }
.tp-cal-form .btn { grid-column: span 2; justify-self: start; }
#tpTodoForm { grid-template-columns: minmax(0, 1fr) auto; }
#tpTodoForm .btn { grid-column: auto; }
.tp-cal ul, .tp-todo ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tp-cal li, .tp-todo li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #F6F6F8; font-size: 0.92rem; }
.tp-cal li small { color: var(--f-muted); display: block; }
.tp-todo li label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; cursor: pointer; }
.tp-todo li.is-done span { text-decoration: line-through; color: var(--f-muted); }
.tp-todo li > button, .tp-cal li > button { flex: 0 0 auto; }
.tp-lvl { border-bottom: 1px solid var(--f-line); padding: 6px 0; }
.tp-lvl-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--f-line); border-radius: 14px; background: #fff; font: inherit; cursor: pointer; text-align: left; }
.tp-lvl-btn b { font-size: 1.05rem; }
.tp-lvl-btn span { color: var(--f-muted); font-size: 0.88rem; }
.tp-lvl-btn[aria-expanded="true"] { background: #F6F6F8; }
.tp-levels .tp-cls { margin-top: 8px; }
@media (max-width: 900px) {
  .tpd > .tp-cal, .tpd > .tp-levels, .tpd > .tp-todo, .tpd > .tp-students { grid-column: span 12; }
  .tp-cal-form { grid-template-columns: minmax(0, 1fr); }
}

/* Tarjetas mínimas de alumno: nombre, ID y nivel */
.tp-today { margin: 6px 0 0; font-weight: 600; color: var(--f-accent, #7A4FD6); }
.tp-mini { padding: 14px 16px; gap: 10px; }
.tp-mini-open { display: grid; gap: 4px; justify-items: start; text-align: left; border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; }
.tp-mini-open b { font-size: 1.1rem; }
.tp-mini-open small { color: var(--f-muted); font-variant-numeric: tabular-nums; }

/* Cuadrícula de alumnos: tarjetas estrechas, varias por fila */
.tp-students .tp-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Ficha de alumno para la profesora: distinta de «Mi espacio» (cabecera oscura y tarjetas con borde de color) */
.tpa-main { max-width: 1100px; margin: 96px auto 60px; padding: 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tpa-head { grid-column: 1 / -1; background: #15161C; color: #fff; border-radius: 20px; padding: 22px 26px; }
.tpa-head h1 { color: #fff; margin: 6px 0 4px; font-size: 2rem; }
.tpa-head .tag, .tpa-head .meta { color: rgba(255, 255, 255, 0.75); }
.tpa-head .tp-link { color: #fff; text-decoration: underline; }
.tpa-head .tp-msg { color: #FFD479; }
.tpa-card { background: #fff; border: 1px solid var(--f-line); border-left: 6px solid #7A4FD6; border-radius: 18px; padding: 18px 20px; align-content: start; }
.tpa-progress { border-left-color: #2F9E63; }
.tpa-classes { border-left-color: #3B7DDD; }
.tpa-hw { border-left-color: #E8833A; }
.tpa-notes { border-left-color: #E8B20E; }
.tpa-card h2 { font-size: 1.35rem; margin: 2px 0 10px; }
.tpa-card h4 { margin: 14px 0 6px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--f-muted); }
@media (max-width: 760px) { .tpa-main { grid-template-columns: minmax(0, 1fr); } }

/* Clases en la ficha del alumno: el nombre abre la clase; el botón marca si ya está hecha */
.tp-chip a { font-weight: 600; color: #15161C; text-decoration: none; padding: 2px 8px; border-radius: 999px; }
.tp-chip a:hover { text-decoration: underline; }
.tp-chip-done { font-size: 0.75rem; }

/* Flashcards: botones de valoración bien visibles (Easy rosa, Good azul; texto blanco) */
.fc-rate [data-r="3"] { background: #5585E6; color: #fff; border-color: #5585E6; }
.fc-rate [data-r="4"] { background: #E06493; color: #fff; border-color: #E06493; }
.fc-rate [data-r="3"] strong, .fc-rate [data-r="3"] small, .fc-rate [data-r="4"] strong, .fc-rate [data-r="4"] small { color: #fff; }

/* ===== Flashcards: estudio en pantalla completa (inmersivo) ===== */
.fc-exit { display: none; }
body.fc-playing { overflow: hidden; }
body.fc-playing .nav, body.fc-playing .page-hero, body.fc-playing .fc-choose, body.fc-playing .fc-gallery, body.fc-playing .vocab, body.fc-playing .fc-build, body.fc-playing footer, body.fc-playing .footer, body.fc-playing .progress, body.fc-playing .cursor { display: none !important; }
body.fc-playing .fc { display: block; padding: 0; max-width: none; }
body.fc-playing .fc-study {
  position: fixed; inset: 0; z-index: 300; margin: 0; max-width: none; width: 100%; height: 100%; box-sizing: border-box;
  border-radius: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 4vh, 44px) clamp(16px, 4vw, 56px);
  background: radial-gradient(1200px 700px at 12% 8%, rgba(252, 210, 224, 0.95), transparent 60%), radial-gradient(1100px 700px at 92% 92%, rgba(190, 214, 255, 0.95), transparent 60%), linear-gradient(160deg, #F7F1FB 0%, #EEF2FF 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
body.fc-playing .fc-exit { display: grid; place-items: center; position: fixed; top: 16px; right: 18px; z-index: 310; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(21, 22, 28, 0.12); background: rgba(255, 255, 255, 0.85); color: #15161C; font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px -14px rgba(21, 22, 28, 0.5); }
body.fc-playing .fc-exit:hover { background: #15161C; color: #fff; }
body.fc-playing #fcPlay, body.fc-playing #fcMsg, body.fc-playing #fcEmpty { max-width: 980px; margin: 0 auto; min-height: calc(100vh - clamp(36px, 8vh, 88px)); display: flex; flex-direction: column; justify-content: center; }
body.fc-playing #fcPlay[hidden], body.fc-playing #fcMsg[hidden], body.fc-playing #fcEmpty[hidden] { display: none; }
body.fc-playing .fc-top { padding-right: 60px; }
body.fc-playing .fc-card { height: clamp(260px, 46vh, 520px); margin: 20px 0 18px; }
body.fc-playing .fc-word { font-size: clamp(2rem, 5.2vw, 4rem); }
body.fc-playing .fc-back .fc-word { font-size: clamp(1.8rem, 4.4vw, 3.2rem); }
body.fc-playing .fc-tip { min-height: 0; margin: 0 0 14px; }
@media (max-width: 640px) { body.fc-playing .fc-exit { top: 10px; right: 10px; width: 40px; height: 40px; } body.fc-playing .fc-card { height: clamp(220px, 40vh, 360px); } }

/* Flashcards: botones View table y Anki más llamativos (color + emoticono) */
.fc-tools { background: transparent; padding: 0; gap: 10px; }
.fc-tools button { min-height: 46px; padding: 0 20px; font-size: 0.95rem; font-weight: 700; color: #fff; box-shadow: 0 12px 22px -14px rgba(21, 22, 28, 0.55); }
.fc-tools button:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.fc-tools .fc-ico { font-style: normal; font-size: 1.25rem; line-height: 1; }
#fcViewTable { background: linear-gradient(135deg, #5585E6, #9468E4); }
#fcDeckAnki { background: linear-gradient(135deg, #E8833A, #F0A93A); }
#fcViewTable:hover { background: linear-gradient(135deg, #5585E6, #9468E4); }
#fcDeckAnki:hover { background: linear-gradient(135deg, #E8833A, #F0A93A); }
.fc-tools button[aria-expanded="true"] { background: linear-gradient(135deg, #2F9E63, #5BC48A); color: #fff; }

/* Flashcards: «Finish now» en rosa-rojo con una X */
#fcFinish { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; font-size: 0.95rem; font-weight: 700; color: #fff !important; border: 0 !important; background: linear-gradient(135deg, #E5484D, #F0508F); box-shadow: 0 12px 22px -14px rgba(229, 72, 77, 0.8); }
#fcFinish:hover { background: linear-gradient(135deg, #D63A40, #E43F80); color: #fff !important; transform: translateY(-2px); }
#fcFinish .fc-x { font-style: normal; font-size: 1.1rem; line-height: 1; font-weight: 800; }

/* ===== Flashcards inmersivos: fondo oscuro (azul noche con luces rosa y azul) ===== */
body.fc-playing .fc-study {
  color: #F3F1FF;
  background: radial-gradient(900px 600px at 10% 6%, rgba(224, 100, 147, 0.32), transparent 62%), radial-gradient(1000px 650px at 94% 94%, rgba(85, 133, 230, 0.34), transparent 62%), linear-gradient(160deg, #0F0E1F 0%, #1A1842 100%) !important;
  border: 0 !important; box-shadow: none !important;
}
body.fc-playing .fc-deck, body.fc-playing .fc-msg h2 { color: #fff; }
body.fc-playing .fc-prog, body.fc-playing .fc-tip, body.fc-playing .fc-msg p { color: rgba(243, 241, 255, 0.72); }
body.fc-playing .fc-track { background: rgba(255, 255, 255, 0.14); }
body.fc-playing .fc-track span { background: linear-gradient(90deg, #E06493, #5585E6); }
body.fc-playing .fc-front { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.fc-playing .fc-back { background: linear-gradient(135deg, #6A4CE0 0%, #C2478A 100%); color: #fff; box-shadow: 0 30px 60px -30px rgba(106, 76, 224, 0.7); }
body.fc-playing .fc-face small { opacity: 0.8; }
body.fc-playing .fc-word mark { background: linear-gradient(transparent 55%, rgba(250, 211, 120, 0.55) 55%); color: inherit; }
body.fc-playing .fc-modes button.on { border-color: #fff !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
body.fc-playing .fc-exit { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
body.fc-playing .fc-exit:hover { background: #fff; color: #15161C; }
body.fc-playing .fc-rate [data-r="1"] { background: #8B6BF0; }

/* ===== Vlog 05: estrategia de 30 minutos (visual) ===== */
.hl-body.st { padding-left: 18px; }
.st-lead { font-size: 1.05rem; margin: 0 0 14px; }
.st-need { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.st-need span { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: rgba(255, 255, 255, 0.8); border: 1.5px solid rgba(148, 104, 228, 0.3); }
.st-timeline { display: flex; gap: 6px; margin: 0 0 22px; }
.st-timeline span { flex: 1; padding: 10px 8px; border-radius: 14px; text-align: center; color: #fff; font-weight: 700; font-size: 0.9rem; line-height: 1.25; }
.st-timeline b { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.st-timeline .b1, .st-block.b1 { --c: #E06493; --t: rgba(224, 100, 147, 0.1); }
.st-timeline .b2, .st-block.b2 { --c: #9468E4; --t: rgba(148, 104, 228, 0.1); }
.st-timeline .b3, .st-block.b3 { --c: #5585E6; --t: rgba(85, 133, 230, 0.1); }
.st-timeline span { background: var(--c); }
.st-block { margin: 0 0 16px; padding: 16px 18px 14px; border-radius: 22px; background: var(--t); border: 1.5px solid color-mix(in srgb, var(--c) 35%, transparent); }
.st-block header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.st-emoji { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 16px; background: #fff; box-shadow: 0 8px 16px -10px var(--c); }
.st-block header small { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); }
.st-block h4 { margin: 0; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.2; }
.st-block h4 em { font-weight: 500; opacity: 0.8; }
.st-min { margin-left: auto; flex: none; display: grid; place-items: center; min-width: 58px; padding: 6px 10px; border-radius: 16px; color: #fff; background: var(--c); font-size: 1.4rem; line-height: 1; }
.st-min span { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; margin-top: 2px; }
.st-goal { margin: 0 0 10px !important; }
.st-goal span { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 99px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--c); }
.st-steps { list-style: none; counter-reset: st; margin: 0 0 10px; padding: 0 !important; display: grid; gap: 8px; }
.st-steps li { counter-increment: st; position: relative; margin: 0 !important; padding: 8px 12px 8px 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.75); }
.st-steps li::before { content: counter(st); position: absolute; left: 10px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 0.85rem; color: #fff; background: var(--c); }
.st-tip { margin: 0 !important; padding: 8px 12px; border-radius: 14px; font-size: 0.9rem; background: rgba(255, 255, 255, 0.55); border: 1px dashed color-mix(in srgb, var(--c) 50%, transparent); }
.st-h { margin: 22px 0 10px; font-size: 1.15rem; letter-spacing: -0.02em; }
.st-check { list-style: none; margin: 0 0 12px; padding: 0 !important; display: grid; gap: 8px; }
.st-check li { margin: 0 !important; }
.st-check label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.8); border: 1.5px solid var(--f-line); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.st-check input { margin-top: 3px; width: 20px; height: 20px; accent-color: #2F9E63; flex: none; }
.st-check label:has(input:checked) { background: rgba(47, 158, 99, 0.12); border-color: rgba(47, 158, 99, 0.5); }
.st-check label:has(input:checked) b { text-decoration: line-through; opacity: 0.7; }
.st-check small { display: block; color: var(--f-muted); margin-top: 2px; }
.st-done { margin: 0 0 12px !important; padding: 12px 16px; border-radius: 16px; font-weight: 800; text-align: center; color: #fff; background: linear-gradient(135deg, #2F9E63, #5BC48A); }
.st-done[hidden] { display: none; }
.st-start { margin: 0 !important; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(224, 100, 147, 0.14), rgba(85, 133, 230, 0.14)); border: 1.5px solid rgba(148, 104, 228, 0.35); }
@media (max-width: 560px) { .st-timeline span { font-size: 0.8rem; } .st-block header { flex-wrap: wrap; } }

.st-notes { display: grid; gap: 8px; margin: 0 0 14px; }
.st-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 12px 14px; border-radius: 16px; line-height: 1.45; }
.st-note > span:first-child { font-size: 1.3rem; line-height: 1.2; }
.st-note.n1 { background: rgba(232, 178, 14, 0.16); border: 1.5px solid rgba(232, 178, 14, 0.5); }
.st-note.n2 { background: rgba(148, 104, 228, 0.12); border: 1.5px solid rgba(148, 104, 228, 0.4); }
.st-note a { color: #5B3FB8; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.st-note.n3 { background: rgba(224, 100, 147, 0.12); border: 1.5px solid rgba(224, 100, 147, 0.4); }
.st-link { display: inline-block; margin-top: 6px; padding: 6px 14px; border-radius: 999px; color: #fff !important; text-decoration: none !important; background: linear-gradient(135deg, #E06493, #9468E4); }
.st-link:hover { filter: brightness(1.08); }
.st-steps a { color: #5B3FB8; text-decoration: underline; text-underline-offset: 3px; }

/* Ficha del alumno: orden nuevo, galería de clases compacta y progreso plegable */
.tpa-head { box-shadow: inset 0 -7px 0 var(--sc, #9468E4); }
.tpa-islands { border-left-color: #16A2B8; }
.tpa-classes { grid-column: 1 / -1; padding: 14px 16px; border-left-color: #3B7DDD; }
.tpa-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tpa-line h2 { margin: 0; font-size: 1.15rem; } .tpa-line .meta { margin: 0; font-size: .8rem; }
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 8px; }
.tg-t { display: grid; gap: 6px; align-content: space-between; padding: 8px 10px 8px 12px; border-radius: 12px; background: #F6F6FA; border-left: 5px solid var(--tc, #999); font-size: .8rem; }
.tg-t.is-done { background: #E3F4EA; }
.tg-n { display: block; font-weight: 800; line-height: 1.2; color: #15161C; text-decoration: none; font-size: .86rem; }
.tg-n:hover { text-decoration: underline; }
.tg-n small { display: block; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tc); margin-bottom: 1px; }
.tg-r { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tg-done { border: 0; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #D9DBE1; color: #15161C; }
.tg-t.is-done .tg-done { background: #2F9E63; color: #fff; }
.tg-ve { display: inline-flex; align-items: center; gap: 3px; font-size: .7rem; font-weight: 700; color: #6B6E7A; cursor: pointer; }
.tg-ve input { accent-color: #3B7DDD; margin: 0; }
.tpa-fold { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: none; font: inherit; cursor: pointer; padding: 0; text-align: left; }
.tpa-fold b { display: block; font-size: 1.35rem; }
.tpa-fold i { font-style: normal; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #E3F4EA; color: #2F9E63; font-size: 1.6rem; line-height: 1; padding-bottom: 3px; transition: transform .25s; flex: none; }
.tpa-fold[aria-expanded="true"] i { transform: rotate(180deg); }
#taProgBody { margin-top: 6px; }

.tg-t .tg-done { white-space: nowrap; padding: 3px 9px !important; min-height: 0 !important; height: auto !important; width: auto !important; line-height: 1.4; border-radius: 99px !important; }
.tg-ve { white-space: nowrap; }
.tg-ve input { width: 14px; height: 14px; flex: none; }
