/* Página principal como panel de control (prueba): todo en una pantalla, con cristal. */
:root {
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3));
  --glass-blur: blur(24px) saturate(1.8);
  --glass-edge:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.35),
    inset 0 18px 30px -22px rgba(255, 255, 255, 0.9),
    0 30px 60px -34px rgba(70, 80, 130, 0.45);
}

/* Fondo con más color para que el cristal se note */
.scene .blob { opacity: 0.9; filter: blur(60px); }
.scene .b1 { width: 38vw; height: 38vw; left: -6vw; top: 10vh; background: #9EE6D6; }
.scene .b2 { width: 34vw; height: 34vw; right: 20vw; top: -10vh; background: #C9B3FA; }
.scene .b3 { width: 36vw; height: 36vw; left: 22vw; bottom: -14vh; background: #FBCFA4; }
.scene .b4 { width: 30vw; height: 30vw; right: -6vw; top: 30vh; background: #F8B4C8; animation-delay: -6s; }
.scene .b5 { width: 28vw; height: 28vw; left: 42vw; top: 18vh; background: #A9C8FF; animation-delay: -13s; }

/* ---------- Rejilla: una sola pantalla ---------- */
.dash {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "hello hello hello hello hello hello teach teach level level level level"
    "hello hello hello hello hello hello teach teach level level level level"
    "gram  gram  gram  gram  vocab vocab vocab vocab word  word  video video"
    "gram  gram  gram  gram  vocab vocab vocab vocab read  read  plan  plan";
  gap: 16px;
  width: calc(100% - 2 * var(--pad));
  max-width: 1400px;
  height: calc(100svh - 112px);
  min-height: 620px;
  margin: 96px auto 16px;
}
.t-hello { grid-area: hello; }
.t-teacher { grid-area: teach; }
.t-levels { grid-area: level; }
.t-grammar { grid-area: gram; }
.t-vocab { grid-area: vocab; }
.t-word { grid-area: word; }
.t-video { grid-area: video; }
.t-read { grid-area: read; }
.t-plan { grid-area: plan; }

/* ---------- Baldosas de cristal ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 1.8vw, 28px);
  border-radius: 30px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--glass-edge);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
a.tile:hover, .main-tile:hover { transform: translateY(-4px); }
.g-pink { background: linear-gradient(140deg, rgba(250, 211, 218, 0.85), rgba(244, 169, 184, 0.6)); }
.g-blue { background: linear-gradient(150deg, rgba(107, 139, 255, 0.88), rgba(47, 91, 234, 0.72) 55%, rgba(139, 203, 247, 0.7)); color: #fff; }
.g-irid { background: linear-gradient(135deg, rgba(251, 211, 224, 0.75), rgba(249, 226, 200, 0.6) 35%, rgba(220, 203, 247, 0.6) 65%, rgba(191, 227, 245, 0.7)); }
.g-lilac { background: linear-gradient(150deg, rgba(205, 187, 251, 0.8), rgba(163, 184, 255, 0.6) 50%, rgba(131, 226, 222, 0.65)); }
.g-peach { background: linear-gradient(140deg, rgba(252, 231, 198, 0.85), rgba(246, 201, 143, 0.6)); }

/* Jerarquía: principal (título grande), secundaria y pequeñas */
.tile h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.02; color: inherit; }
.tile h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.main-tile h2 { font-size: clamp(1.9rem, 2.9vw, 2.8rem); max-width: 10ch; }
.tile .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tile .meta { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.g-blue .meta { color: rgba(255, 255, 255, 0.86); }
.small { gap: 6px; padding: 16px 18px; border-radius: 24px; }
.small .big { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tile .knob { top: 22px; right: 22px; width: 48px; height: 28px; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tile:hover .knob { transform: translateX(-8px) scale(1.08); }
.tile .foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tile .foot a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--ink); font-size: 0.85rem; font-weight: 600; box-shadow: inset 0 1px 0 #fff; transition: background 0.3s, transform 0.3s; }
.tile .foot a:hover { background: #fff; transform: translateY(-2px); }
.tile .foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Saludo (igual que antes) ---------- */
.t-hello { justify-content: center; gap: 18px; padding: clamp(24px, 2.8vw, 44px); overflow: visible; z-index: 5; }
.t-hello .eyebrow { color: var(--muted); }
.t-hello h1 { font-size: clamp(2.2rem, 4.2vw, 4.1rem); max-width: 15ch; }
.search { position: relative; max-width: 560px; }
.search > svg { position: absolute; left: 20px; top: 29px; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; min-height: 58px; padding: 0 22px 0 52px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.85); font: inherit; font-size: 1rem; color: var(--ink); box-shadow: inset 0 2px 6px rgba(70, 80, 130, 0.1), 0 10px 24px -18px rgba(70, 80, 130, 0.5); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; gap: 4px; padding: 8px; border-radius: 24px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: 0 30px 50px -24px rgba(70, 80, 130, 0.55), inset 0 1px 0 #fff; }
.results[hidden] { display: none; }
.results a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 16px; transition: background 0.2s; }
.results a:hover, .results a:focus-visible { background: #EEF1FB; }
.results strong { font-weight: 600; }
.results small { flex: none; padding: 3px 10px; border-radius: 999px; background: #EEF1FB; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.results .empty { padding: 10px 14px; color: var(--muted); }
.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.levels span { margin-right: 6px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.levels a { display: grid; place-items: center; min-width: 52px; height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; font-weight: 700; letter-spacing: -0.02em; box-shadow: 0 8px 18px -12px rgba(70, 80, 130, 0.55), inset 0 1px 0 #fff; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.levels a:nth-child(2), .levels a:nth-child(3) { background: var(--g-mint); }
.levels a:nth-child(4), .levels a:nth-child(5) { background: var(--g-lilac); }
.levels a:nth-child(6), .levels a:nth-child(7) { background: var(--g-pink); }
.levels a:hover { transform: translateY(-3px) scale(1.06); }

/* ---------- Profesora: la foto llena la baldosa ---------- */
.t-teacher { padding: 0; }
.t-teacher img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.glass-label {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px -14px rgba(20, 20, 40, 0.5);
  color: var(--ink);
}
.glass-label small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(21, 22, 28, 0.66); }
.glass-label strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.t-teacher .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.t-teacher .links a { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); font-size: 0.78rem; font-weight: 600; }
.t-teacher .links a:first-child { background: var(--btn-grad); color: #fff; }

/* ---------- Niveles: montaña grande ---------- */
.t-levels { flex-direction: row; align-items: stretch; gap: 16px; }
.lv-copy { display: flex; flex-direction: column; gap: 8px; flex: 0 0 34%; justify-content: flex-end; padding-bottom: 6px; }
.t-levels .peak { flex: 1 1 66%; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 22px; align-self: stretch; }

/* ---------- Gramática y vocabulario ---------- */
.mini { display: grid; gap: 6px; }
.mini li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); font-size: 0.9rem; font-weight: 500; }
.mini a:hover { text-decoration: underline; }
.mini small { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.fan { position: relative; height: 84px; margin: 6px 0; }
.fan span { position: absolute; left: 0; top: 0; padding: 12px 20px; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; box-shadow: 0 12px 22px -12px rgba(20, 30, 90, 0.6); transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.fan span:nth-child(1) { transform: rotate(-7deg); }
.fan span:nth-child(2) { transform: translate(40px, 12px) rotate(3deg); background: var(--g-peach); }
.fan span:nth-child(3) { transform: translate(84px, 26px) rotate(9deg); }
.t-vocab:hover .fan span:nth-child(1) { transform: translate(-4px, -6px) rotate(-12deg); }
.t-vocab:hover .fan span:nth-child(2) { transform: translate(70px, 4px) rotate(2deg); }
.t-vocab:hover .fan span:nth-child(3) { transform: translate(140px, 20px) rotate(13deg); }

/* ---------- Pequeñas ---------- */
.t-word .word { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.t-word .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.t-word .meta { color: var(--ink); font-size: 0.88rem; }
.listen { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--btn-grad); color: #fff; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(140, 95, 210, 0.35); }
.listen[hidden] { display: none; }
.listen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-video { padding: 0; }
.t-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.t-video:hover img { transform: scale(1.05); }
.t-video .glass-label { left: 8px; right: 8px; bottom: 8px; padding: 9px 12px; border-radius: 16px; }
.t-video .glass-label strong { font-size: 1rem; }
.t-read .meta, .t-plan .meta { font-size: 0.82rem; }
.soon-pill { align-self: flex-start; margin-top: auto; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); font-size: 0.74rem; font-weight: 700; }
.t-read .meta { margin-top: auto; }

/* Sin pie en el panel: todo cabe en una pantalla */
.dash-page .footer { display: none; }

/* ---------- Pantallas bajas o estrechas: se puede bajar ---------- */
@media (max-height: 700px), (max-width: 1100px) {
  .dash { height: auto; min-height: 0; grid-template-rows: none; grid-auto-rows: minmax(170px, auto); }
}
@media (max-width: 1100px) {
  .dash {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "hello hello hello hello teach teach"
      "hello hello hello hello teach teach"
      "gram  gram  gram  vocab vocab vocab"
      "gram  gram  gram  vocab vocab vocab"
      "level level level level level level"
      "level level level level level level"
      "word  word  video video read  read"
      "plan  plan  plan  plan  plan  plan";
  }
}
@media (max-width: 700px) {
  .dash {
    width: calc(100% - 24px);
    margin-top: 86px;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-template-areas:
      "hello hello"
      "gram  gram"
      "vocab vocab"
      "level level"
      "teach video"
      "word  read"
      "plan  plan";
  }
  .t-teacher, .t-video { min-height: 230px; }
  .t-levels { flex-direction: column; }
  .lv-copy { flex: none; }
  .t-levels .peak { height: auto; width: 100%; }
  .t-teacher .links a { font-size: 0.72rem; padding: 5px 9px; }
}

/* La montaña ocupa su baldosa entera */
.t-levels { background: linear-gradient(135deg, rgba(251, 211, 224, 0.7), rgba(249, 226, 200, 0.55) 35%, rgba(220, 203, 247, 0.6) 65%, rgba(191, 227, 245, 0.75)); padding-right: 8px; padding-bottom: 8px; }
.t-levels .peak { background: none; box-shadow: none; flex: 1 1 70%; }
.lv-copy { flex: 0 0 28%; }

/* ===== Sin montaña; el vídeo con la ilustración del café ===== */
.dash {
  grid-template-areas:
    "hello hello hello hello hello hello hello teach teach video video video"
    "hello hello hello hello hello hello hello teach teach video video video"
    "gram  gram  gram  gram  vocab vocab vocab vocab word  word  read  read"
    "gram  gram  gram  gram  vocab vocab vocab vocab plan  plan  read  read";
}
.t-video img { object-position: 50% 45%; }
.t-video .glass-label { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 20px; }
.t-video .glass-label strong { font-size: 1.15rem; }

/* Todas las baldosas se animan al pasar el ratón */
.tile { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease; }
.tile:hover { transform: translateY(-5px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.4), inset 0 18px 30px -22px rgba(255, 255, 255, 0.9), 0 40px 70px -32px rgba(70, 80, 130, 0.55); }
.t-hello:hover { transform: translateY(-3px); }
.t-teacher img { transition: transform 0.7s var(--ease); }
.t-teacher:hover img, .t-video:hover img { transform: scale(1.05); }
.small:hover .big, .t-word:hover .word { transform: translateX(3px); }
.small .big, .t-word .word { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Fondo animado: las manchas de color se pasean por la pantalla */
@keyframes roamA { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(18vw, 12vh) scale(1.15); } 66% { transform: translate(6vw, -10vh) scale(0.9); } }
@keyframes roamB { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-16vw, 14vh) scale(0.9); } 66% { transform: translate(-6vw, -8vh) scale(1.2); } }
@keyframes roamC { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(14vw, -16vh) scale(0.85); } }
.scene .b1 { animation: roamA 18s ease-in-out infinite; }
.scene .b2 { animation: roamB 21s ease-in-out infinite; }
.scene .b3 { animation: roamC 17s ease-in-out infinite; }
.scene .b4 { animation: roamB 19s ease-in-out infinite -7s; }
.scene .b5 { animation: roamA 23s ease-in-out infinite -11s; }

@media (max-width: 1100px) {
  .dash {
    grid-template-areas:
      "hello hello hello hello teach teach"
      "hello hello hello hello teach teach"
      "gram  gram  gram  vocab vocab vocab"
      "gram  gram  gram  vocab vocab vocab"
      "video video word  word  read  read"
      "video video plan  plan  read  read";
  }
}
@media (max-width: 700px) {
  .dash {
    grid-template-areas:
      "hello hello"
      "gram  gram"
      "vocab vocab"
      "teach video"
      "word  read"
      "plan  plan";
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene .blob { animation: none !important; }
  .tile, .tile:hover { transform: none; }
}
.t-teacher img { object-position: 62% 16%; }

/* Vídeos: solo el texto, directamente sobre la ilustración */
.video-title { position: absolute; left: 20px; right: 20px; bottom: 18px; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9), 0 0 2px rgba(255, 255, 255, 0.8); }
.t-teacher img { opacity: 0.7; }

/* Arriba solo el saludo y el vocabulario; la foto, abajo */
.dash {
  grid-template-areas:
    "hello hello hello hello hello hello hello vocab vocab vocab vocab vocab"
    "hello hello hello hello hello hello hello vocab vocab vocab vocab vocab"
    "gram  gram  gram  gram  teach teach video video word  word  read  read"
    "gram  gram  gram  gram  teach teach video video plan  plan  read  read";
}
@media (max-width: 1100px) {
  .dash {
    grid-template-areas:
      "hello hello hello hello hello hello"
      "vocab vocab vocab gram  gram  gram"
      "vocab vocab vocab gram  gram  gram"
      "teach teach video video read  read"
      "teach teach video video read  read"
      "word  word  word  plan  plan  plan";
  }
}
@media (max-width: 700px) {
  .dash {
    grid-template-areas:
      "hello hello"
      "vocab vocab"
      "gram  gram"
      "teach video"
      "word  read"
      "plan  plan";
  }
}

/* Vocabulario con la ilustración de las tarjetas de fondo */
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; z-index: 0; transition: transform 0.7s var(--ease); }
.t-vocab { color: var(--ink); }
.t-vocab > :not(.tile-bg) { position: relative; z-index: 1; }
.t-vocab .knob { position: absolute; }
.t-vocab .meta { color: rgba(21, 22, 28, 0.7); }
.t-vocab:hover .tile-bg { transform: scale(1.04); }

/* Revisión con IA encima de las lecturas */
.t-review { grid-area: review; }
/* Talk & debate: cuadrado en la rejilla, debajo del vídeo */
.t-talk { grid-area: talk; background: linear-gradient(140deg, rgba(190, 240, 226, 0.95), rgba(128, 214, 190, 0.7)) !important; }
.dash {
  grid-template-areas:
    "hello hello hello hello hello hello hello vocab vocab vocab vocab vocab"
    "hello hello hello hello hello hello hello vocab vocab vocab vocab vocab"
    "gram  gram  gram  gram  teach teach video video word  word  review review"
    "gram  gram  gram  gram  teach teach talk  talk  plan  plan  read  read";
}
@media (max-width: 1100px) {
  .dash {
    grid-template-areas:
      "hello hello hello hello hello hello"
      "vocab vocab vocab gram  gram  gram"
      "vocab vocab vocab gram  gram  gram"
      "teach teach video video review review"
      "teach teach video video read  read"
      "word  word  talk  talk  plan  plan";
  }
}
@media (max-width: 700px) {
  .dash {
    grid-template-areas:
      "hello hello"
      "vocab vocab"
      "gram  gram"
      "teach video"
      "review read"
      "word  plan"
      "talk  talk";
  }
  .t-vocab { min-height: 300px; }
}

/* ---------- Página «Check my writing» ---------- */
.wc { width: calc(100% - 2 * var(--pad)); max-width: 860px; margin: 104px auto 40px; }
.wc .tile { gap: 16px; padding: clamp(24px, 3.4vw, 44px); overflow: visible; }
.wc h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.wc .lead { color: var(--muted); max-width: 56ch; }
.wc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wc-steps li { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 1px 0 #fff; font-size: 0.9rem; }
.wc-steps b { display: block; margin-bottom: 2px; font-weight: 700; }
.wc label { font-weight: 600; font-size: 0.92rem; }
.wc-levels { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.wc-levels legend { margin-bottom: 8px; font-weight: 600; font-size: 0.92rem; }
.wc-levels input { position: absolute; opacity: 0; pointer-events: none; }
.wc-levels span { display: grid; place-items: center; min-width: 52px; height: 42px; padding: 0 14px; border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px -12px rgba(70, 80, 130, 0.55); transition: background 0.2s, color 0.2s; }
.wc-levels input:checked + span { background: var(--btn-grad); color: #fff; }
.wc-levels input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.wc textarea { width: 100%; min-height: 220px; padding: 18px 20px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.85); font: inherit; font-size: 1.02rem; line-height: 1.55; color: var(--ink); resize: vertical; box-shadow: inset 0 2px 6px rgba(70, 80, 130, 0.1); }
.wc textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.wc-count { align-self: flex-end; margin-top: -8px; font-size: 0.8rem; color: var(--muted); }
.wc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wc-actions .btn { min-height: 50px; }
.wc-status { min-height: 1.4em; font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.wc-note { font-size: 0.84rem; color: var(--muted); }
.wc details { font-size: 0.88rem; color: var(--muted); }
.wc summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.wc pre { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.7); white-space: pre-wrap; font-family: inherit; font-size: 0.84rem; line-height: 1.5; }
@media (max-width: 700px) {
  .wc { width: calc(100% - 24px); margin-top: 88px; }
  .wc-steps { grid-template-columns: 1fr; }
  .wc-actions .btn { flex: 1 1 100%; }
}
.wc-steps { list-style: none; padding: 0; margin: 0; }

/* Profesora: solo el nombre, directamente sobre la foto */
.teacher-name { position: absolute; left: 18px; right: 18px; bottom: 16px; font-size: clamp(1.3rem, 1.8vw, 1.7rem); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); text-shadow: 0 1px 12px rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 0.85); }

/* ===== Colores de cada recuadro (20-10-2026) ===== */
.t-grammar { background: linear-gradient(150deg, rgba(178, 206, 255, 0.92) 0%, rgba(132, 170, 246, 0.72) 100%) !important; }
.t-word { background: linear-gradient(140deg, rgba(204, 238, 255, 0.9) 0%, rgba(150, 206, 248, 0.68) 100%) !important; }
.t-review { background: linear-gradient(140deg, rgba(252, 210, 224, 0.9) 0%, rgba(244, 164, 192, 0.66) 100%) !important; }
.t-read { background: linear-gradient(150deg, rgba(212, 192, 252, 0.9) 0%, rgba(168, 136, 242, 0.68) 100%) !important; }
.t-plan { background: linear-gradient(140deg, rgba(255, 230, 150, 0.95) 0%, rgba(250, 196, 86, 0.78) 100%) !important; }

/* Vídeos: como un móvil de cristal transparente */
.t-video {
  padding: 9px !important;
  border-radius: 34px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.28)) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.6),
    inset 2px 2px 6px rgba(255, 255, 255, 0.8),
    inset -2px -3px 8px rgba(120, 130, 180, 0.18),
    0 30px 50px -28px rgba(70, 80, 130, 0.5) !important;
}
.t-video img { inset: 9px !important; width: calc(100% - 18px) !important; height: calc(100% - 18px) !important; border-radius: 26px; }
.t-video::before {
  content: ""; position: absolute; z-index: 3; top: 18px; left: 50%;
  width: 30%; max-width: 74px; height: 16px; border-radius: 999px; transform: translateX(-50%);
  background: rgba(22, 22, 32, 0.78);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.t-video::after {
  content: ""; position: absolute; z-index: 3; right: -3px; top: 26%; width: 3px; height: 14%;
  border-radius: 3px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 4px rgba(70, 80, 130, 0.3);
}
.t-video .video-title { left: 26px; right: 22px; bottom: 26px; z-index: 2; }

/* Botón de play de cristal en el centro del vídeo */
.video-play {
  position: absolute; z-index: 2; left: 50%; top: 46%;
  display: grid; place-items: center;
  width: clamp(58px, 5vw, 76px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.95), inset 0 -8px 16px -10px rgba(120, 100, 200, 0.35), 0 16px 30px -14px rgba(70, 60, 130, 0.5);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-play svg { width: 42%; height: 42%; margin-left: 8%; fill: #fff; filter: drop-shadow(0 2px 4px rgba(80, 50, 140, 0.35)); }
.t-video:hover .video-play { transform: translate(-50%, -50%) scale(1.1); }

/* ===== Perfil del alumno: botón del menú y ventana para entrar ===== */
.pf-pill { position: relative; display: flex; align-items: center; margin-right: 8px; }
.pf-login, .pf-who { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(40, 50, 100, 0.45); }
.pf-who { padding-left: 5px; }
.pf-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-grad); color: #fff; font-weight: 700; font-size: 0.85rem; }
.pf-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; min-width: 220px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -20px rgba(40, 50, 100, 0.5); }
.pf-menu[hidden] { display: none; }
.pf-menu-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.pf-out { width: 100%; min-height: 38px; border: 0; border-radius: 12px; background: rgba(21, 22, 28, 0.06); font: inherit; font-weight: 600; cursor: pointer; }
.pf-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(30, 30, 60, 0.25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pf-modal[hidden] { display: none; }
.pf-box { position: relative; display: grid; gap: 12px; width: min(100%, 440px); padding: 30px; border-radius: 28px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)); box-shadow: var(--glass-edge); }
.pf-box h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.pf-help, .pf-small { color: var(--muted); font-size: 0.92rem; }
.pf-small { font-size: 0.78rem; }
.pf-box label { font-weight: 600; font-size: 0.9rem; }
.pf-box input { min-height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid rgba(21, 22, 28, 0.12); background: #fff; font: inherit; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pf-box input:focus { outline: 2px solid #9468E4; outline-offset: 2px; }
.pf-msg { min-height: 1.3em; font-size: 0.9rem; font-weight: 500; }
.pf-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(21, 22, 28, 0.06); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 820px) { .pf-name { display: none; } .pf-who { padding-right: 5px; } .pf-login { padding: 0 12px; } }

/* ===== Panel de la profesora ===== */
.tp { width: calc(100% - 2 * var(--pad)); max-width: 1100px; margin: 104px auto 60px; display: grid; gap: 16px; }
.tp .tile { overflow: visible; gap: 14px; }
.tp-app { display: grid; gap: 16px; }
.tp-app[hidden] { display: none; }
.tp h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.tp h2 { font-size: 1.5rem; }
.tp h2 small { font-size: 0.9rem; color: var(--muted); }
.tp h3 { font-size: 1.05rem; margin: 6px 0; }
.tp-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-row input, .tp-row select { flex: 1 1 200px; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(21, 22, 28, 0.12); background: #fff; font: inherit; }
.tp-row select { flex: 0 0 120px; }
.tp-msg { min-height: 1.3em; }
.tp-code { padding: 3px 9px; border-radius: 8px; background: rgba(148, 104, 228, 0.12); font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: 0.04em; }
.tp-link { border: 0; background: none; padding: 4px 6px; color: #5E3FC2; font: inherit; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.tp-link:hover { text-decoration: underline; }
.tp-del { color: #B4385A; }
.tp-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-table-wrap { overflow-x: auto; }
.tp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tp-table th { text-align: left; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; }
.tp-table td { padding: 10px; border-top: 1px solid rgba(21, 22, 28, 0.07); white-space: nowrap; }
.tp-actions { text-align: right; }
.tp-empty, .tp-sub { color: var(--muted); }
.tp-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.tp-acts { display: grid; gap: 6px; max-height: 460px; overflow: auto; padding: 0; list-style: none; }
.tp-acts li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.tp-acts small { color: var(--muted); white-space: nowrap; }
.tp-kind { padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #EEF1FB; }
.tp-flashcards { background: #E4DCFD; } .tp-reading { background: #D4E6FB; } .tp-worksheet { background: #FAD3DA; } .tp-opened { background: #EDEDED; }
.tp-plain { display: grid; gap: 6px; padding-left: 18px; font-size: 0.9rem; }
@media (max-width: 820px) { .tp { width: calc(100% - 24px); margin-top: 88px; } .tp-cols { grid-template-columns: 1fr; } }
.tp [hidden], .pf-pill [hidden] { display: none !important; }

/* ===== Progreso de flashcards: % sabido y mazos terminados en gris ===== */
.tp-prog { display: grid; gap: 6px; padding: 0; margin-bottom: 14px; list-style: none; }
.tp-prog li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 92px; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.tp-prog-name { display: grid; gap: 2px; min-width: 0; }
.tp-prog-name small { color: var(--muted); font-size: 0.78rem; }
.tp-bar { height: 8px; border-radius: 99px; background: rgba(21, 22, 28, 0.08); overflow: hidden; }
.tp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--btn-grad); }
.tp-pct { font-weight: 700; text-align: right; }
.tp-prog li.is-done { background: rgba(21, 22, 28, 0.05); color: #8A8C95; filter: grayscale(1); opacity: 0.7; }
@media (max-width: 820px) { .tp-prog li { grid-template-columns: 1fr auto; } .tp-bar { grid-column: 1 / -1; grid-row: 2; } }
.fc-done { filter: grayscale(1); opacity: 0.6; }
.vcard-row .vcard-done { background: rgba(21, 22, 28, 0.07) !important; color: #6F717A !important; box-shadow: none !important; }
.vcard-alldone { filter: grayscale(1); opacity: 0.6; }
.vcard-alldone:hover { opacity: 0.85; }

/* ===== Favoritos: la estrellita de cada página, tema y mazo ===== */
.fav-star { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 50%; background: rgba(255, 255, 255, 0.75); color: #8A8C95; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 6px 14px -10px rgba(40, 50, 100, 0.45); transition: transform 0.25s ease, color 0.25s ease; }
.fav-star:hover { transform: scale(1.08); color: #E0A526; }
.fav-star svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-star.on { color: #E0A526; }
.fav-star.on svg { fill: currentColor; }
.fav-hero { position: absolute; top: 22px; right: var(--pad); }
.fav-tile { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.dash .tile { position: relative; }
.vcard-row .fav-card { position: static; flex: 0 0 auto; width: 40px; height: 40px; }
.vcard { position: relative; }
.fav-deck { width: 34px; height: 34px; }
@media (max-width: 820px) { .fav-hero { top: 14px; } }

/* ===== Mi espacio ===== */
.ms { width: calc(100% - 2 * var(--pad)); max-width: 980px; margin: 0 auto; padding: clamp(120px, 16vh, 170px) 0 60px; display: grid; gap: 18px; }
.ms-hero { display: grid; gap: 14px; padding-bottom: 6px; }
.ms-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.ms-login { color: var(--muted); }
.ms-login a { color: #5E3FC2; font-weight: 600; }
.ms-card { padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--glass-edge); }
.ms-card h2 { font-size: 1.5rem; }
.ms-sub, .ms-empty { color: var(--muted); font-size: 0.92rem; margin: 4px 0 14px; }
.ms-empty a { color: #5E3FC2; font-weight: 600; }
.ms-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.ms-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.72); }
.ms-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ms-text a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-text a:hover { text-decoration: underline; }
.ms-text small { color: var(--muted); font-size: 0.82rem; }
.ms-right { color: #5E3FC2; text-decoration: none; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pf-link { display: block; margin-top: 6px; min-height: 38px; line-height: 38px; padding: 0 12px; border-radius: 12px; color: var(--ink); font-weight: 600; text-decoration: none; background: rgba(148, 104, 228, 0.12); }
.pf-link:hover { background: rgba(148, 104, 228, 0.22); }

/* Fila de botones de cada tema: Practise · Anki · ☆ en una sola línea en ordenador */
.vcard .vcard-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; grid-column: 2; grid-row: 1 / span 3; width: max-content; max-width: 100%; }
.vcard .vcard-row .vcard-go { flex: 0 0 auto; }
.vcard .vcard-row .fav-card { width: 38px; height: 38px; }
@media (max-width: 640px) { .vcard .vcard-row { flex-wrap: wrap; justify-content: flex-start; width: auto; grid-column: 1 / -1; grid-row: 4; } }


/* ===== Todo en una pantalla: vocabulario a la izquierda; saludo, plan, palabra del día y «cómo aprender» a la derecha.
   Siete filas que se reparten la altura de la ventana ===== */
.t-learn { grid-area: learn; width: 100%; height: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; appearance: none; }
.dash {
  height: calc(100svh - 112px);
  min-height: 620px;
  grid-template-rows: repeat(7, minmax(0, 1fr)) minmax(0, .6fr);
  grid-template-areas:
    "vocab vocab vocab vocab vocab vocab hello hello hello hello hello hello"
    "vocab vocab vocab vocab vocab vocab hello hello hello hello hello hello"
    "vocab vocab vocab vocab vocab vocab word  word  word  plan  plan  plan"
    "vocab vocab vocab vocab vocab vocab word  word  word  plan  plan  plan"
    "gram  gram  gram  gram  teach teach video video video read  read  read"
    "wb    wb    wb    wb    teach teach video video video read  read  read"
    "talk  talk  talk  exam  exam  exam  learn learn learn review review review"
    "song  song  song  song  song  song  song  song  song  song  song  song";
}
@media (max-width: 1100px) {
  .dash {
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(150px, auto);
    grid-template-areas:
      "vocab vocab vocab hello hello hello"
      "vocab vocab vocab hello hello hello"
      "vocab vocab vocab word  word  word"
      "vocab vocab vocab plan  plan  plan"
      "learn learn learn gram  gram  gram"
      "learn learn learn gram  gram  gram"
      "teach teach video video read  read"
      "wb    wb    wb    wb    wb    wb"
      "talk  talk  exam  exam  review review"
      "song  song  song  song  song  song";
  }
}
@media (max-width: 700px) {
  .dash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hello hello"
      "vocab vocab"
      "word  plan"
      "learn learn"
      "gram  gram"
      "teach video"
      "read  talk"
      "wb    review"
      "exam  exam"
      "song  song";
  }
}

/* Saludo: niveles a la izquierda y buscador a su derecha, en una misma línea (la búsqueda puede ser más pequeña) */
.t-hello .hello-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 14px; }
.t-hello .hello-row .levels { flex: 0 1 auto; min-width: 0; margin: 0; }
.t-hello .hello-row .search { flex: 0 1 240px; min-width: 180px; margin: 0; }
.t-hello .hello-row .levels > span { display: none; }
.t-hello .hello-row .search { flex: 0 1 220px; }
.t-hello .hello-row { flex-wrap: nowrap; }
.t-hello .hello-row .levels { flex: 0 0 auto; }
.t-hello .hello-row .levels a { padding: 7px 9px; }
.t-hello .hello-row .search { flex: 0 1 170px; min-width: 120px; }
.t-hello .hello-row .search input { padding-left: 34px; font-size: 0.85rem; }

/* Lecturas graduadas: la ilustración de fondo del tile, con el texto encima */
.t-read > :not(.tile-bg) { position: relative; z-index: 1; }
.t-read .tile-bg { z-index: 0; }

/* Plan semanal: la ilustración de fondo del tile, con el texto encima */
.t-plan > :not(.tile-bg) { position: relative; z-index: 1; }
.t-plan .tile-bg { z-index: 0; }

/* Talk & debate: la ilustración de fondo del tile, con el texto encima */
.t-talk > :not(.tile-bg) { position: relative; z-index: 1; }
.t-talk .tile-bg { z-index: 0; }

/* Workbooks */
.t-wb { grid-area: wb; background: linear-gradient(140deg, rgba(255, 226, 190, 0.95), rgba(247, 170, 130, 0.7)) !important; text-decoration: none; color: inherit; }
@media (min-width: 1101px) {
  .t-grammar h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
  .t-grammar .mini, .t-grammar .knob { display: none; }
  .t-grammar h2 { max-width: none; } .t-grammar .meta { display: none; }
  .t-grammar { gap: 4px; padding-block: 10px; }
  .t-grammar h2 { font-size: 1.5rem; line-height: 1.1; }
  .t-grammar .foot a { padding-block: 6px; font-size: .85rem; }
  .t-grammar, .t-wb { justify-content: center; }
}

/* Exámenes oficiales */
.t-exam { grid-area: exam; background: linear-gradient(140deg, rgba(220, 203, 247, 0.95), rgba(148, 130, 228, 0.7)) !important; text-decoration: none; color: inherit; }

/* Canciones */
.t-song { grid-area: song; background: linear-gradient(140deg, rgba(250, 205, 220, 0.95), rgba(224, 100, 147, 0.7)) !important; text-decoration: none; color: inherit; }

/* ===== Portada: reparto lógico y proporcionado (2026-11-25). Tres columnas de 4; filas de ~108 px.
   Franja 1: vocabulario · saludo · foto. Franja 2: tres bloques con imagen iguales. Franja 3: bloques pequeños. Última: canciones. ===== */
body .dash:not(.ms-dash):not(.tpd) {
  grid-template-columns: repeat(15, minmax(0, 1fr));
  /* 8 filas que se reparten la altura de la pantalla. Arriba, cinco bloques con imagen pequeños; en medio, bloques de texto grandes; abajo, canciones */
  grid-auto-rows: max(64px, calc((100svh - 200px) / 7)) !important;
  gap: 12px;
  height: auto !important;
  grid-template-areas:
    "vocab vocab vocab video video video read  read  read  talk  talk  talk  teach teach teach"
    "vocab vocab vocab video video video read  read  read  talk  talk  talk  teach teach teach"
    "hello hello hello hello hello hello wb    wb    wb    song  song  song  plan  plan  plan"
    "hello hello hello hello hello hello wb    wb    wb    song  song  song  plan  plan  plan"
    "hello hello hello hello hello hello wb    wb    wb    song  song  song  plan  plan  plan"
    "gram  gram  gram  gram  gram  gram  exam  exam  exam  learn learn learn review review review"
    "gram  gram  gram  gram  gram  gram  exam  exam  exam  learn learn learn review review review";
  /* 7 filas: la franja de abajo es más corta y el sobrante se reparte arriba y abajo */
}
/* Bloques de una sola fila: solo etiqueta y título */
.t-wb, .t-exam, .t-learn, .t-review, .t-song, .t-word, .t-plan { padding-block: 12px; gap: 2px; justify-content: center; }
.t-word .row { margin-top: 0; }
.t-word .word { font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
.t-vocab h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.t-vocab .tile-bg { object-position: 50% 100%; }
.dash .t-vocab .meta { position: relative; z-index: 2; }

@media (max-width: 1100px) {
  body .dash:not(.ms-dash):not(.tpd) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: minmax(92px, auto) !important;
    grid-template-areas:
      "hello hello hello hello teach teach"
      "hello hello hello hello teach teach"
      "hello hello hello hello teach teach"
      "vocab vocab vocab video video video"
      "vocab vocab vocab video video video"
      "vocab vocab vocab video video video"
      "read  read  read  talk  talk  talk"
      "read  read  read  talk  talk  talk"
      "gram  gram  gram  word  word  word"
      "gram  gram  gram  plan  plan  plan"
      "wb    wb    exam  exam  learn learn"
      "review review review song  song  song";
  }
  .t-vocab, .t-video, .t-teacher { min-height: 0; }
}
@media (max-width: 700px) {
  body .dash:not(.ms-dash):not(.tpd) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hello hello"
      "vocab vocab"
      "teach video"
      "word  plan"
      "read  talk"
      "gram  gram"
      "wb    exam"
      "learn review"
      "song  song";
  }
  .t-teacher, .t-video { min-height: 220px; }
  .t-vocab { min-height: 300px; }
}

/* Panel compacto (ordenador): letras, márgenes y esquinas más pequeños para que todo quepa en una pantalla */
@media (min-width: 1101px) {
  body .dash:not(.ms-dash):not(.tpd) { margin-top: 84px !important; margin-bottom: 12px !important; }
  body .dash .tile { padding: 11px 14px; border-radius: 22px; gap: 4px; }
  body .dash .tile .tag, body .dash .tile .meta, body .dash .tile .eyebrow, body .dash .tile .soon-pill { font-size: .58rem; letter-spacing: .08em; padding: 0; border: 0; }
  body .dash .tile .meta::before { display: none; }
  body .dash .small .big { font-size: .95rem; line-height: 1.12; }
  body .dash .t-hello { padding: 16px 22px; gap: 10px; }
  body .dash .t-hello h1 { font-size: clamp(1.5rem, 4.4vh, 2.6rem); }
  body .dash .t-hello .levels a { padding: 4px 11px; font-size: .8rem; }
  body .dash .t-vocab h2 { font-size: clamp(1.3rem, 3.1vh, 1.9rem); }
  body .dash .t-grammar h2 { font-size: 1.15rem; }
  body .dash .t-grammar .mini { display: block; margin: 2px 0 0; }
  body .dash .t-grammar .mini li { padding: 3px 9px; font-size: .74rem; min-height: 0; }
  body .dash .t-grammar .mini li small { font-size: .62rem; }
  body .dash .t-grammar .foot a { padding: 4px 10px; font-size: .72rem; }
  body .dash .t-vocab .foot a, body .dash .t-grammar .foot a { font-size: .74rem; }
  body .dash .t-word .word { font-size: 1rem; }
  body .dash .t-word .row .meta { font-size: .62rem; }
  body .dash .video-title { font-size: 1.15rem; left: 14px; bottom: 12px; }
  body .dash .t-video .video-sub { font-size: .7rem; }
  body .dash .teacher-name { font-size: .95rem; }
  body .dash .t-song { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1101px) { body .dash .t-wb, body .dash .t-exam, body .dash .t-song { padding-block: 7px; } }

/* Fondos abstractos (hechos con los colores de la web) para Workbooks y Canciones */
body .dash .t-wb { background: #FBEAF1 url(assets/img/workbooks-bg.svg?v=3) center / cover no-repeat !important; }
body .dash .t-song { background: #F3EAFB url(assets/img/songs-bg.svg?v=2) center / cover no-repeat !important; }
@media (min-width: 1101px) { body .dash .t-song { flex-direction: column; justify-content: center; } }

@media (min-width: 1101px) {
  body .dash .t-vocab .tile-bg { top: auto; bottom: 0; height: 64%; object-position: 50% 85%; }
  body .dash .t-word .word { font-size: 1.6rem; }
  body .dash .t-grammar h2 { font-size: 1.35rem; }
  body .dash .t-grammar .mini li { padding: 7px 10px; font-size: .82rem; }
  body .dash .t-grammar { gap: 8px; }
  body .dash .t-plan .big, body .dash .t-exam .big, body .dash .t-wb .big { font-size: 1.15rem; }
}

@media (min-width: 1101px) {
  body .dash .t-song { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  body .dash .t-song .big { font-size: 1.5rem; }
  body .dash .t-vocab h2 { font-size: 1.05rem; line-height: 1.1; }
  body .dash .t-vocab .meta { display: none; }
  body .dash .t-vocab .foot a { font-size: .66rem; padding: 3px 9px; }
  body .dash .t-vocab .knob { width: 36px; height: 24px; }
  body .dash .t-hello { padding: 18px 26px; }
  body .dash .t-hello h1 { font-size: clamp(1.8rem, 5.2vh, 3rem); }
  body .dash .t-word .word { font-size: 1.9rem; }
  body .dash .t-wb .big, body .dash .t-exam .big, body .dash .t-plan .big, body .dash .t-learn .big, body .dash .t-review .big { font-size: 1.25rem; }
  body .dash .tile .tag, body .dash .tile .meta { font-size: .64rem; }
  body .dash .t-grammar h2 { font-size: 1.6rem; }
  body .dash .t-grammar .mini li { padding: 7px 12px; font-size: .92rem; }
  body .dash .t-grammar .foot a { font-size: .85rem; padding: 7px 14px; }
}

/* Word of the day: oculto (en su sitio va Canciones) */
body .dash .t-word { display: none !important; }

/* ===== Personalidad de cada bloque: color propio + un dibujo muy suave (sin fotos) ===== */
body .dash .tile.t-grammar {
  background: #F4EEFC repeating-linear-gradient(transparent 0 29px, rgba(148, 104, 228, .13) 29px 30px) !important;
}
body .dash .tile.t-exam {
  background: #E9F1FE repeating-linear-gradient(135deg, rgba(85, 133, 230, .09) 0 9px, transparent 9px 18px) !important;
}
body .dash .tile.t-learn {
  background: #FFF2E7 repeating-radial-gradient(circle at 100% 100%, transparent 0 26px, rgba(232, 131, 58, .15) 26px 27px) !important;
}
body .dash .tile.t-review {
  background: #E8F7F0 radial-gradient(rgba(47, 158, 99, .22) 1.6px, transparent 1.8px) 0 0 / 15px 15px !important;
}
body .dash .tile.t-hello {
  background: #FDF6F9 radial-gradient(circle at 92% 12%, rgba(224, 100, 147, .20) 0 70px, transparent 61px), radial-gradient(circle at 100% 100%, rgba(85, 133, 230, .16) 0 110px, transparent 91px) !important;
}
/* Colores de título y etiqueta de cada tema (lisos) */
body .dash .t-grammar h2, body .dash .t-grammar h2 a { background: none !important; -webkit-text-fill-color: #6A3FC4 !important; color: #6A3FC4 !important; }
body .dash .t-exam .big { background: none !important; -webkit-text-fill-color: #2F5BC9 !important; color: #2F5BC9 !important; }
body .dash .t-learn .big { background: none !important; -webkit-text-fill-color: #C2631F !important; color: #C2631F !important; }
body .dash .t-review .big { background: none !important; -webkit-text-fill-color: #1F8A55 !important; color: #1F8A55 !important; }
body .dash .t-wb .big { background: none !important; -webkit-text-fill-color: #C23D70 !important; color: #C23D70 !important; }
body .dash .t-song .big { background: none !important; -webkit-text-fill-color: #5B3FB8 !important; color: #5B3FB8 !important; }
body .dash .t-grammar .tag, body .dash .t-grammar .meta { color: #8A6BD0; }
body .dash .t-exam .tag { color: #5C86DC; }
body .dash .t-learn .tag { color: #D58A52; }
body .dash .t-review .tag { color: #4FAE80; }

/* Flashcards y lecturas: sin imagen, cada uno con su color y su dibujo propios */
body .dash .t-vocab .tile-bg, body .dash .t-read .tile-bg { display: none; }
body .dash .tile.t-vocab { background: #FFE9EF !important; overflow: hidden; }
body .dash .t-vocab::before, body .dash .t-vocab::after { content: ""; position: absolute; width: 64px; height: 88px; border-radius: 12px; border: 2px solid rgba(224, 100, 147, .38); background: rgba(255, 255, 255, .55); pointer-events: none; }
body .dash .t-vocab::before { right: 52px; bottom: 14px; transform: rotate(-12deg); }
body .dash .t-vocab::after { right: 16px; bottom: 6px; transform: rotate(9deg); background: rgba(224, 100, 147, .16); }
body .dash .t-vocab h2, body .dash .t-vocab h2 a { background: none !important; -webkit-text-fill-color: #C23D70 !important; color: #C23D70 !important; }
body .dash .t-vocab .meta { color: #D5779C; }
body .dash .tile.t-read { background: #FFF5D8 linear-gradient(transparent, transparent) !important; background-image: repeating-linear-gradient(transparent 0 13px, rgba(214, 160, 30, .24) 13px 15px) !important; background-size: 52% 100% !important; background-position: 92% 50% !important; background-repeat: no-repeat !important; }
body .dash .t-read .big { background: none !important; -webkit-text-fill-color: #A8740B !important; color: #A8740B !important; }
body .dash .t-read .tag { color: #CFA23A; }

/* ===== Coherencia: mismo estilo de etiqueta, título y subtítulo en todos los bloques; solo cambia el color ===== */
body .dash .tile { --ac: #5B3FB8; --al: #8A6BD0; }
body .dash .t-vocab { --ac: #C23D70; --al: #D5779C; }
body .dash .t-grammar { --ac: #6A3FC4; --al: #8A6BD0; }
body .dash .t-video { --ac: #4A5FD0; --al: #7C8EE3; }
body .dash .t-read { --ac: #A8740B; --al: #CFA23A; }
body .dash .t-talk { --ac: #2F6FC9; --al: #6A9BE0; }
body .dash .t-plan { --ac: #D4572F; --al: #E8896A; }
body .dash .t-wb { --ac: #A63DA8; --al: #C47BC6; }
body .dash .t-song { --ac: #5B3FB8; --al: #8A6BD0; }
body .dash .t-exam { --ac: #2F5BC9; --al: #5C86DC; }
body .dash .t-learn { --ac: #C2631F; --al: #D58A52; }
body .dash .t-review { --ac: #1F8A55; --al: #4FAE80; }
/* Etiqueta */
body .dash .tile .tag, body .dash .tile .video-tag {
  display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--al) !important; background: none; border: 0; padding: 0; margin: 0;
}
/* Título */
body .dash .t-vocab h2, body .dash .t-vocab h2 a, body .dash .t-grammar h2, body .dash .t-grammar h2 a,
body .dash .small .big, body .dash .t-video .video-title {
  font-size: 1.25rem !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.12;
  background: none !important; -webkit-text-fill-color: var(--ac) !important; color: var(--ac) !important;
  text-shadow: none; margin: 0;
}
/* Subtítulo */
body .dash .tile .meta, body .dash .t-video .video-sub {
  display: block; font-size: .76rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
  color: rgba(21, 22, 28, .58) !important; background: none; border: 0; padding: 0; margin: 0;
}
/* El vídeo: etiqueta, título y subtítulo en flujo normal dentro del cristal */
body .dash .t-video .video-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 16px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body .dash .t-video .video-title { position: static; }
/* Bloques de Grammar y Vocabulary: separación consistente */
body .dash .t-vocab, body .dash .t-grammar { gap: 3px; }

/* ===== Coherencia absoluta: todos los bloques son etiqueta + título + subtítulo, arriba a la izquierda, sin extras ===== */
body .dash .tile { justify-content: flex-start !important; align-items: flex-start; padding: 14px 16px !important; gap: 3px !important; }
body .dash .tile .tag { order: 0; }
body .dash .tile h2, body .dash .tile .big { order: 1; }
body .dash .tile .meta { order: 2; }
body .dash .t-teacher { --ac: #3D3B47; --al: #8A8D99; }
body .dash .t-teacher .big, body .dash .t-video .big { font-size: 1.25rem !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.12; background: none !important; -webkit-text-fill-color: var(--ac) !important; color: var(--ac) !important; margin: 0; }
body .dash .t-video .tag, body .dash .t-video .meta, body .dash .t-teacher .tag, body .dash .t-teacher .meta { text-shadow: 0 0 8px rgba(255, 255, 255, .9); }
body .dash .t-video .big, body .dash .t-teacher .big { text-shadow: 0 0 10px rgba(255, 255, 255, .9); }
body .dash .t-teacher img { object-position: 85% 18%; }
body .dash .t-video img { object-position: 50% 88%; }
/* Tarjetas completas enlazadas por su título */
body .dash .t-vocab h2 a::after, body .dash .t-grammar h2 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
/* Sin estrellitas de favoritos ni botones extra en los bloques de la portada */
body .dash .fav-tile, body .dash .t-vocab .foot, body .dash .t-grammar .foot, body .dash .t-grammar .mini, body .dash .knob { display: none !important; }
body .dash .t-hello { justify-content: center !important; }
body .dash .t-video > :not(img), body .dash .t-teacher > :not(img) { position: relative; z-index: 3; }
body .dash .t-video .video-play { position: absolute; z-index: 2; }
body .dash .t-teacher img { object-position: 100% 12%; }
body .dash .t-video img { top: auto; bottom: 0; height: 54%; object-position: 50% 62%; }
body .dash .t-teacher img { left: auto; right: 0; width: 56%; object-position: 50% 12%; }
body .dash .tile { padding: 20px 18px 14px !important; }
/* Vídeos: imagen al 50 % y sin el marco de móvil */
body .dash .t-video::before, body .dash .t-video::after { display: none !important; }
body .dash .t-video img { opacity: .5; }
/* Foto de la profe: fondo blanco y borde izquierdo difuminado para que no se vea el corte */
body .dash .tile.t-teacher { background: #fff !important; }
body .dash .t-teacher img { opacity: .6; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); }
