/* ---- Base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

/* ---- Header ---- */

.page-header {
  margin-bottom: 16px;
}

.page-header h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.byline {
  font-weight: 400;
  font-size: 0.9rem;
  color: #6b7280;
}

.subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* ---- Cards ---- */

.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 16px 18px 18px;
}

.input-card {
  margin-bottom: 16px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

/* ---- Input section ---- */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.text-input {
  width: 100%;
  min-height: 160px;
  resize: vertical;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  line-height: 1.4;
}

.text-input:focus {
  outline: none;
  border-color: #0052cc;
  box-shadow: 0 0 0 1px #0052cc33;
}

.controls-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* NEW */
  gap: 16px;
  flex-wrap: wrap;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.helper-text {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
  text-align: right;
  flex: 1;
  min-width: 240px;  /* prevents weird squeezing */
}


.btn-primary {
  border: none;
  background: #0F2655;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary:hover {
  background: #0c1e44;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #4b5563;
}

.checkbox-inline input {
  transform: translateY(1px);
}

.helper-text {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* ---- Layout: summary card ---- */

.summary-card {
  padding: 8px 18px 10px; /* same card feel, slightly tighter */
}

/* ---- Layout: summary card middle row ---- */

.summary-middle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 6px;        /* nice little gap under the helper text */
}

.summary-left {
  flex: 1 1 auto;
  min-width: 0;            /* lets the bar shrink gracefully */
}

.summary-right {
  flex: 0 0 260px;         /* fixed-ish column for the list */
  font-size: 0.9rem;
}



/* ---- Layout: results ---- */
.results-layout {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  align-items: stretch;
  flex-wrap: nowrap;            /* keep them side-by-side on desktop */
}

.left-card {
  flex: 3 1 0;                  /* ≈ 75% width */
}

.right-card {
  flex: 1 1 0;                  /* ≈ 25% width */
  max-width: 360px;             /* stops it from getting too wide */
}

/* ---- Colour-coded text ---- */

.coloured-text-output {
  min-height: 90px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #f9fafb;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* placeholder style */
.coloured-text-output.placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
}

.coloured-text-output span.word {
  white-space: pre-wrap;
}

/* Word colours */
.word-band-a1a2 {
  font-weight: normal;
  color: #0070f3;
  opacity: 0,6;
}

.word-band-b1 {
  font-weight: 600;
  color: #e5534b;
}

.word-band-b2 {
  font-weight: 600;
  color: #22c55e;
}

.word-band-c1 {
  font-weight: 600;
  color: #8b5cf6; /* soft purple */
}

.word-band-c2 {
  font-weight: 600;
  color: #1d2a8a; /* dark blue */
}

.word-unknown {
  color: #6B7280;
  font-weight: 400;
}

.word-muted {
  color: #808080;
  opacity: 0.8;
  font-weight: 400;
}

/* Level toggles */

.fine-print {
  margin: 10px 0 8px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.level-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.level-toggle {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.85rem;
  background: #ffffff;
  border: 2px solid #d1d5db;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.level-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

/* Individual colours for toggles */

.level-toggle-a1a2 {
  color: #0070f3;
  border-color: #0070f3;
}
.level-toggle-a1a2::before {
  background: #0070f3;
}

.level-toggle-b1 {
  color: #e5534b;
  border-color: #e5534b;
}
.level-toggle-b1::before {
  background: #e5534b;
}

.level-toggle-b2 {
  color: #22c55e;
  border-color: #22c55e;
}
.level-toggle-b2::before {
  background: #22c55e;
}

.level-toggle-c1 {
  color: #8b5cf6;
  border-color: #8b5cf6;
}
.level-toggle-c1::before {
  background: #8b5cf6;
}

.level-toggle-c2 {
  color: #1d2a8a;
  border-color: #1d2a8a;
}

.level-toggle-c2::before {
  background: #1d2a8a;
}

.level-toggle-mwe {
  border-color: #666666;
  color: #666666;
}

.level-toggle-mwe {
  border-color: #666666;
  color: #666666;
}

.level-toggle-mwe::before {
  background: #666666;   /* grey dot, same as border/text */
}


.level-toggle-mwe.is-off {
  background-color: #f5f5f5;
  color: #aaaaaa;
  border-color: #dddddd;
}


.level-toggle.is-off {
  opacity: 0.4;
}

/* ---- Level bar ---- */

.level-bar-wrapper {
  position: relative;
  margin-bottom: 24px; /* more space before the bullet list */
  max-width: 755px;   /* ← adjust this number until the bar aligns perfectly */
  margin-left: 0;
}

.level-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: visible;
}

.level-segment {
  position: absolute;
  top: 0;
  bottom: 0;
}

/* Soft pulsing glow for each CEFR segment in the bar */
@keyframes level-segment-pulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    filter: brightness(1.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  }
}

/* Apply the pulse to all segments */
.level-bar .level-segment {
  animation: level-segment-pulse 4s ease-in-out infinite;
}

/* Staggered delays so they don't all pulse at the same time */
.level-bar .level-segment:nth-child(1) { animation-delay: 0s; }
.level-bar .level-segment:nth-child(2) { animation-delay: 0.4s; }
.level-bar .level-segment:nth-child(3) { animation-delay: 0.8s; }
.level-bar .level-segment:nth-child(4) { animation-delay: 1.2s; }
.level-bar .level-segment:nth-child(5) { animation-delay: 1.6s; }




/* individual segment colours */
.level-segment-a1a2 {
  background: #0070f3;
}
.level-segment-b1 {
  background: #e5534b;
}
.level-segment-b2 {
  background: #22c55e;
}
.level-segment-c1 {
  background: #8b5cf6;
}
.level-segment-c2 {
  background: #1d2a8a;
}


/* fixed legend under bar: A1–A2 ... C2 + Multi-word expressions */
.segment-labels {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  justify-content: space-between;   /* spread labels across the bar */
  font-size: 0.75rem;
  color: #4b5563; /* slate-600 */
}

.segment-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* little colour dot for each legend item */
.segment-label-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #e5e7eb; /* default neutral */
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.segment-label-text {
  font-weight: 500;
}

.segment-label-value {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* legend colours for each band (match the bar/toggles) */
.segment-label-a1a2 .segment-label-dot {
  background: #0070f3;
}

.segment-label-b1 .segment-label-dot {
  background: #e5534b;
}

.segment-label-b2 .segment-label-dot {
  background: #22c55e;
}

.segment-label-c1 .segment-label-dot {
  background: #8b5cf6;
}

.segment-label-c2 .segment-label-dot {
  background: #1d2a8a;
}

/* Multi-word expressions legend */
.segment-label-mwe .segment-label-dot {
  background: #4b5563; /* same family as MWE toggle */
}


/* hover highlight / muting for bar + legend */
.level-segment.segment-highlight {
  opacity: 1;
  transform: translateY(0) scaleY(1.03);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.22),
    0 0 14px rgba(15, 23, 42, 0.38);
}

.level-segment.segment-muted {
  opacity: 0.3;
}

.segment-label.segment-highlight {
  color: #111827;   /* slate-900 */
  font-weight: 600;
}

.segment-label.segment-muted {
  opacity: 0.4;
}


/* list under bar */

.level-number-list {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #4b5563;
}

.level-number-list-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.level-number-list ul {
  margin: 0;
  padding-left: 18px;
}

.level-number-list li {
  margin: 1px 0;
}

/* coloured bullet dots */
.level-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.level-dot-a1a2 {
  background: #0070f3;
}
.level-dot-b1 {
  background: #e5534b;
}
.level-dot-b2 {
  background: #22c55e;
}
.level-dot-c1 {
  background: #8b5cf6;
}
.level-dot-c2 {
  background: #1d2a8a;
}

.level-dot-mwe {
  background: #666666;   /* or #555555 if you prefer darker */
}



/* ---- Analysis ---- */

.analysis-output {
  font-size: 0.9rem;
}

.analysis-section {
  margin-bottom: 10px;
}

.analysis-section-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.analysis-section-title {
  color: #0F2655; /* corporate blue */
}

.analysis-section p {
  margin: 1px 0;
  color: #374151; /* dark grey */
}

.analysis-section ul {
  margin: 2px 0 0 16px;
  padding: 0;
  color: #374151;
}

/* ---- Multi-word expressions: inline highlighting ---- */

.mwe-chunk {
  display: inline-block;
  padding: 0 4px;
  margin: 0 1px;
  border-radius: 999px;
  border: 1px dotted #d1d5db;
}

/* subtle band-tinted outlines/backgrounds */
.mwe-chunk-a1a2 {
  border-color: #0070f3;
  background: rgba(0, 112, 243, 0.05);
}

.mwe-chunk-b1 {
  border-color: #e5534b;
  background: rgba(229, 83, 75, 0.05);
}

.mwe-chunk-b2 {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.mwe-chunk-c1 {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
}

.mwe-chunk-c2 {
  border-color: #1d2a8a;
  background: rgba(29, 42, 138, 0.05);
}

/* ---- Multi-word expressions: analysis panel ---- */

.mwe-band-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  margin-right: 4px;
  margin-bottom: 4px;
}

.mwe-band-pill-a1a2 {
  color: #0070f3;
  border-color: #0070f3;
  background: rgba(0, 112, 243, 0.05);
}

.mwe-band-pill-b1 {
  color: #e5534b;
  border-color: #e5534b;
  background: rgba(229, 83, 75, 0.05);
}

.mwe-band-pill-b2 {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.mwe-band-pill-c1 {
  color: #8b5cf6;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
}

.mwe-band-pill-c2 {
  color: #1d2a8a;
  border-color: #1d2a8a;
  background: rgba(29, 42, 138, 0.05);
}

.mwe-list {
  margin-top: 2px;
}

.mwe-list li {
  margin: 2px 0;
}

.mwe-example-text {
  font-weight: 500;
}

.mwe-example-level {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid transparent;
  margin-left: 6px;
}

/* colour-coded level badges in list */

.mwe-example-level-a1a2 {
  color: #0070f3;
  border-color: #0070f3;
  background: rgba(0, 112, 243, 0.05);
}

.mwe-example-level-b1 {
  color: #e5534b;
  border-color: #e5534b;
  background: rgba(229, 83, 75, 0.05);
}

.mwe-example-level-b2 {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.mwe-example-level-c1 {
  color: #8b5cf6;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
}

.mwe-example-level-c2 {
  color: #1d2a8a;
  border-color: #1d2a8a;
  background: rgba(29, 42, 138, 0.05);
}

.mwe-example-type {
  margin-left: 6px;
  font-size: 0.7rem;
  color: #6b7280;
  font-style: italic;
}

.success-rate {
  color: #0B8A42 !important;   /* force green */
  font-weight: 700;
  margin-top: 4px;
}

.analysis-success {
  font-weight: 700;      /* bold */
  color: #0B8A42;        /* clean green */
  margin-top: 4px;
}

/* ---- SUMMARY CARD LAYOUT (desktop) ---- */

.summary-middle-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 12px;
}

.summary-left {
  flex: 1 1 auto;
  min-width: 0;
}

.summary-right {
  flex: 0 0 260px;
  font-size: 0.9rem;
}


/* C2ES score block in the Analysis card */
.c2es-score-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb; /* subtle separator */
}

.c2es-score-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

.c2es-score-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f766e; /* teal-ish highlight */
}

.c2es-score-bar-outer {
  margin-top: 6px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.c2es-score-bar-inner {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  transition: width 0.4s ease;
}

.c2es-score-message {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}




/* ---- Responsive ---- */
@media (max-width: 900px) {

  /* SUMMARY CARD: stack bar + list vertically on mobile */
  .summary-middle-row {
    flex-direction: column;
    gap: 12px;
  }

  .summary-right {
    width: 100%;
    flex: 0 0 auto;
  }

  /* RESULTS LAYOUT: stack analysis cards on mobile */
  .results-layout {
    flex-direction: column;
  }

  .left-card,
  .right-card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 12px 8px 24px;
  }

  .card {
    padding: 14px 12px 16px;
  }
}

.analysis-output.placeholder,
.analysis-output:empty {
  color: #6b7280;       /* subtle grey */
  font-size: 0.85rem;   /* same as left card placeholder */
  line-height: 1.4;
}

/* Corporate blue for main section titles */
.page-header .title,
.left-card .card-title,
.right-card .card-title {
  color: #0F2655;
}

/* Dot color for Multi-word expressions */
.legend-mwe {
  background-color: #666666; /* your original neutral grey */
}

/* Small outlined pill button */
.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;        /* small size */
  font-size: 0.78rem;       /* small text */
  border-radius: 999px;
  border: 1px solid #d1d5db; /* light grey outline */
  background-color: #ffffff;
  color: #374151;           /* soft grey text */
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-outline-pill:hover {
  background-color: #f3f4f6;
  border-color: #cbd5e1;
}

.btn-outline-pill:active {
  background-color: #e5e7eb;
}

.btn-outline-pill:disabled {
  opacity: 0.5;
  cursor: default;
}

.copy-button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.card-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
/* C2 Learning Lab integration — visual shell only. Engine styles above remain intact. */
.vocab-page{background:#fff;color:#17313a;font-family:Inter,system-ui,sans-serif}.vocab-page .page{max-width:none;margin:0;padding:0}.vocab-shell{background-color:#f4f8f7;background-image:linear-gradient(rgba(37,83,91,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(37,83,91,.055) 1px,transparent 1px);background-size:24px 24px;padding:26px 0 58px;border-bottom:1px solid #e3ece9}.vocab-mini{display:flex;gap:10px;align-items:center;font-size:.78rem;font-weight:700;color:#708388;margin-bottom:42px}.vocab-mini a{color:#526d74;text-decoration:none}.vocab-mini .back{margin-left:auto}.vocab-hero{display:grid;grid-template-columns:116px minmax(0,780px);gap:28px;align-items:center}.vocab-icon{width:104px;height:104px;padding:18px;border-radius:26px;background:#fffaf1;box-shadow:0 10px 30px rgba(22,49,58,.09)}.vocab-kicker{display:block;color:#d77a38;font-size:.75rem;font-weight:800;letter-spacing:.12em;margin-bottom:10px}.vocab-hero h1{font-family:Sora,Inter,sans-serif;color:#173e48;font-size:clamp(2.2rem,4.8vw,4.25rem);line-height:1.02;letter-spacing:-.045em;margin:0 0 14px}.vocab-hero p{font-size:1.03rem;line-height:1.7;color:#526970;max-width:760px;margin:0}.vocab-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.vocab-tags span{background:rgba(255,255,255,.78);border:1px solid #d9e5e2;border-radius:999px;padding:6px 10px;font-size:.75rem;font-weight:700;color:#587077}.vocab-app-wrap{background:#fbfaf7;padding:46px 0 54px}.vocab-app{background:transparent!important}.vocab-app .card{border:1px solid #e3e7e3;box-shadow:0 8px 26px rgba(31,55,61,.06);border-radius:18px}.vocab-app .btn-primary{background:#173e48}.vocab-app .btn-primary:hover{background:#102f37}.vocab-app .text-input{border-radius:12px;border-color:#d7e0de}.vocab-app .text-input:focus{border-color:#d77a38;box-shadow:0 0 0 3px rgba(215,122,56,.12)}.vocab-content{padding:72px 0;background:#fff}.vocab-explain{display:grid;grid-template-columns:.9fr 1.1fr;gap:60px;align-items:start}.vocab-explain h2,.vocab-faq h2,.vocab-related h2,.vocab-funnel h2{font-family:Sora,Inter,sans-serif;color:#173e48;letter-spacing:-.035em}.vocab-explain h2{font-size:2.25rem;margin:0 0 16px}.vocab-explain p{color:#60747a;line-height:1.75}.vocab-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.vocab-feature-grid article{padding:22px;border:1px solid #e1e9e6;border-radius:18px;background:#fafcfb}.vocab-feature-grid b{display:block;color:#173e48;margin-bottom:7px}.vocab-feature-grid span{color:#6a7d82;font-size:.9rem;line-height:1.5}.vocab-note{margin:42px 0;padding:18px 22px;background:#fff8ed;border:1px solid #f0dfc8;border-radius:16px;color:#6d604f;line-height:1.6}.vocab-faq{max-width:900px;margin-top:58px}.vocab-faq h2{font-size:2rem}.vocab-faq details{border-top:1px solid #e4e9e7;padding:18px 0}.vocab-faq summary{cursor:pointer;font-weight:700;color:#264a53}.vocab-faq p{color:#65777c;line-height:1.65}.vocab-related{padding:64px 0;background:#f4f8f7}.vocab-funnel{background:#fff7ea}.vocab-app .page-header{display:none}.vocab-app .summary-card{margin-top:16px}
@media(max-width:800px){.vocab-shell{padding-bottom:38px}.vocab-mini{margin-bottom:28px}.vocab-hero{grid-template-columns:74px 1fr;gap:16px}.vocab-icon{width:70px;height:70px;padding:12px;border-radius:18px}.vocab-hero h1{font-size:2.15rem}.vocab-explain{grid-template-columns:1fr;gap:28px}.vocab-feature-grid{grid-template-columns:1fr}.vocab-app-wrap{padding:28px 0}.vocab-mini .back{display:none}}

/* ===== v164 Learning Lab reskin ===== */
:root{--lab-blue:#0b5f86;--lab-blue-dark:#123b56;--lab-orange:#d9783d;--lab-cream:#fbf8f2;--lab-pale:#eef6f8;--lab-ink:#20313c;--lab-line:rgba(18,59,86,.13)}
.vocab-page{font-family:Inter,system-ui,sans-serif;color:var(--lab-ink)}
.vocab-page h1,.vocab-page h2,.vocab-page h3,.vocab-page button{font-family:Sora,Inter,sans-serif}
.vocab-shell{background-color:#f7fbfc;background-image:linear-gradient(var(--lab-line) 1px,transparent 1px),linear-gradient(90deg,var(--lab-line) 1px,transparent 1px);background-size:30px 30px;border-bottom:1px solid #dce9ed;padding:0 0 20px}
.vocab-mini{gap:18px;padding:12px 0;margin:0 0 0;font-size:13px;font-weight:400;color:var(--lab-ink)}.vocab-mini a{color:var(--lab-blue-dark)}.vocab-mini .back{font-weight:700}
.vocab-hero{grid-template-columns:auto 1fr;gap:20px;padding:24px 0 20px}.vocab-icon{width:76px;height:76px;padding:0;border-radius:20px;background:transparent;box-shadow:0 12px 30px rgba(22,64,83,.12)}
.vocab-kicker{font-size:12px;line-height:1.2;letter-spacing:.14em;color:var(--lab-orange);margin:0;font-weight:800}.vocab-hero h1{font-size:clamp(30px,4vw,50px);line-height:1;margin:5px 0 7px;color:var(--lab-blue-dark);letter-spacing:normal}.vocab-hero p{margin:0;max-width:760px;color:#52636c;font-size:1rem;line-height:1.55}.vocab-tags{gap:7px;margin-top:10px}.vocab-tags span{font-size:11px;font-weight:800;border:1px solid #ccdce2;background:#fff;border-radius:999px;padding:5px 9px;color:#45606d}
.vocab-app-wrap{padding:28px 0 42px;background:linear-gradient(#fff,#fbf8f2)}.vocab-app.page{max-width:1120px;margin:auto;padding:0;background:#fff!important;border:1px solid #dce7eb;border-radius:28px;box-shadow:0 22px 70px rgba(25,64,82,.12);overflow:hidden}
.vocab-app-head{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;padding:30px 32px 22px}.vocab-app-head h2{margin:7px 0 7px;color:var(--lab-blue-dark);font:700 clamp(1.35rem,2.4vw,2rem)/1.15 Sora,Inter,sans-serif}.vocab-app-head p{margin:0;max-width:760px;color:#637681;line-height:1.55;font-size:.88rem}.vocab-app-badge{flex:0 0 auto;text-align:right}.vocab-app-badge b,.vocab-app-badge span{display:block}.vocab-app-badge b{color:var(--lab-blue-dark);font:700 1rem Sora,Inter,sans-serif}.vocab-app-badge span{color:#87969d;font-size:.72rem;margin-top:2px}
.vocab-app .card{box-shadow:none;border:0;border-radius:0;padding:0;background:transparent}.vocab-app .input-card{margin:0;padding:0 32px 26px}.vocab-app .field-label{display:block;margin-bottom:9px;color:#49616c;font:700 .78rem Sora,Inter,sans-serif}.vocab-app .text-input{min-height:190px;padding:22px 24px;border:1px solid #cfdde2;border-radius:18px;background:#fbfcfd;color:#203b4b;font:500 1.02rem/1.65 Inter,sans-serif;transition:.18s}.vocab-app .text-input:focus{background:#fff;border-color:#77a9bc;box-shadow:0 0 0 4px rgba(70,140,168,.10)}.vocab-app .controls-row{margin-top:12px}.vocab-app .controls-left{gap:18px}.vocab-app .btn-primary{min-height:44px;padding:11px 22px;border-radius:13px;background:var(--lab-orange);box-shadow:0 9px 20px rgba(217,120,61,.18);font:700 .86rem Sora,Inter,sans-serif}.vocab-app .btn-primary:hover{background:#c96c34}.vocab-app .checkbox-inline{font-size:.82rem;color:#607884}.vocab-app .fine-print{color:#83939a;font-size:.75rem;line-height:1.45;max-width:580px}
.vocab-app .summary-card{margin:0;padding:24px 32px 20px;background:#f8fafb;border-block:1px solid #e7eef1}.vocab-app .summary-middle-row{margin:0;gap:28px}.vocab-app .summary-right{flex-basis:230px}.vocab-app .level-toggle-row{gap:8px}.vocab-app .level-toggle{min-height:34px;padding:6px 11px;background:#fff;border-width:1px;font:700 .72rem Sora,Inter,sans-serif;box-shadow:0 3px 10px rgba(25,64,82,.035)}.vocab-app .level-bar{height:9px}.vocab-app .segment-labels{font-size:.7rem}.vocab-app .level-number-list{font-size:.8rem;color:#60737e}
.vocab-app .results-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:0;margin:0;align-items:stretch}.vocab-app .left-card,.vocab-app .right-card{max-width:none;padding:28px 32px 30px}.vocab-app .right-card{background:var(--lab-cream);border-left:1px solid #e7e2d9}.vocab-app .card-title{color:var(--lab-blue-dark);font:700 1.05rem Sora,Inter,sans-serif;margin:0 0 12px}.vocab-app .coloured-text-output{min-height:190px;padding:18px 20px;border:1px solid #dce6e9;border-radius:16px;background:#fbfcfd;font-size:.96rem;line-height:1.7}.vocab-app .analysis-output{font-size:.86rem;line-height:1.5}.vocab-app .analysis-section-title{color:var(--lab-blue-dark)}.vocab-app .btn-outline-pill{padding:8px 12px;border-color:#d2dfe4;color:#526b77;font-weight:700;background:#fff}.vocab-app .copy-button-container,.vocab-app .card-actions{margin-top:12px}
.vocab-app .c2es-score-number{color:var(--lab-blue)}.vocab-app .c2es-score-bar-inner{background:linear-gradient(90deg,var(--lab-orange),var(--lab-blue))}
@media(max-width:800px){.vocab-shell{padding-bottom:0}.vocab-mini{overflow:auto;white-space:nowrap}.vocab-hero{grid-template-columns:60px 1fr;gap:14px;padding:18px 0}.vocab-icon{width:58px;height:58px;border-radius:15px}.vocab-hero h1{font-size:clamp(30px,9vw,42px)}.vocab-app.page{border-radius:20px}.vocab-app-head{align-items:flex-start;padding:24px 20px 18px}.vocab-app-badge{display:none}.vocab-app .input-card{padding:0 20px 22px}.vocab-app .text-input{min-height:180px;padding:18px}.vocab-app .controls-row{align-items:flex-start}.vocab-app .summary-card{padding:22px 20px}.vocab-app .results-layout{grid-template-columns:1fr}.vocab-app .left-card,.vocab-app .right-card{padding:24px 20px}.vocab-app .right-card{border-left:0;border-top:1px solid #e7e2d9}}

/* v165 compact analysis dashboard */
.vocab-app{max-width:1180px!important}
.input-card{padding:18px 20px!important;margin-bottom:12px!important}
.text-input{min-height:130px!important;background:#fffdf9!important;border:1px solid #d9d7d0!important;border-radius:14px!important;padding:14px 16px!important}
.controls-row{margin-top:12px!important}.btn-primary{padding:10px 20px!important;font-weight:700!important}
.summary-card{padding:16px 18px 14px!important;margin-bottom:12px!important;background:linear-gradient(180deg,#fff,#fffdf9)!important}
.summary-middle-row{display:block!important;margin-top:0!important}.summary-top-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.summary-top-row>.fine-print{max-width:430px;margin:0!important;text-align:right}
.level-toggle-row{margin:0!important}.level-bar-wrapper{max-width:none!important;margin:14px 0 0!important}.level-bar{height:14px!important;background:#eceae4!important}.level-segment{transform-origin:left center;animation:vc-grow .55s cubic-bezier(.2,.75,.25,1) both!important}.level-segment:nth-child(2){animation-delay:.06s!important}.level-segment:nth-child(3){animation-delay:.12s!important}.level-segment:nth-child(4){animation-delay:.18s!important}.level-segment:nth-child(5){animation-delay:.24s!important}@keyframes vc-grow{from{transform:scaleX(0);opacity:.45}to{transform:scaleX(1);opacity:1}}
.segment-labels{justify-content:flex-start!important;gap:7px!important;margin-top:10px!important}.segment-label{padding:5px 9px;border:1px solid #e4e1d9;border-radius:999px;background:#fff;font-size:.74rem!important}.segment-label-mwe{margin-left:auto}.summary-right{display:none!important}
.results-layout{display:grid!important;grid-template-columns:minmax(0,1.85fr) minmax(300px,.75fr)!important;gap:12px!important;margin-top:0!important;align-items:start!important}.left-card,.right-card{max-width:none!important;padding:18px!important;border-radius:18px!important}.card-title{font-family:Sora,sans-serif!important;font-size:1rem!important}.coloured-text-output{min-height:230px!important;max-height:520px;padding:16px!important;border-radius:12px!important;background:#fffdf9!important;line-height:1.72!important}
.analysis-output{display:grid;gap:10px}.analysis-section{margin:0!important;padding:12px;border:1px solid #ece8df;border-radius:13px;background:#fffdf9}.analysis-section-title{font-family:Sora,sans-serif;font-size:.78rem;text-transform:uppercase;letter-spacing:.055em;margin-bottom:7px!important}.analysis-section p{font-size:.82rem;line-height:1.42}.success-rate{font-size:.76rem!important}.mwe-list{padding-left:17px!important;margin-bottom:0!important}.mwe-list li{font-size:.8rem;margin:5px 0!important}
.c2es-score-section{position:relative;overflow:hidden;border-color:#d9e8e5!important;background:linear-gradient(135deg,#f5fbfa,#fffaf2)!important}.c2es-score-row{margin:1px 0 6px}.c2es-score-number{font-family:Sora,sans-serif!important;font-size:1.75rem!important;letter-spacing:-.04em}.c2es-score-bar-outer{height:10px!important}.c2es-score-bar-inner{animation:vc-score .65s ease-out both}@keyframes vc-score{from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left}}.c2es-score-message{font-size:.72rem!important;line-height:1.35!important;white-space:pre-line}.copy-button-container,.card-actions{margin-top:10px!important}.btn-outline-pill{padding:6px 12px!important}
@media(max-width:900px){.summary-top-row{display:block}.summary-top-row>.fine-print{text-align:left;max-width:none;margin-top:10px!important}.segment-label-mwe{margin-left:0}.results-layout{grid-template-columns:1fr!important}.coloured-text-output{min-height:180px!important;max-height:none}}

/* ===== v166 lower-page Learning Lab component repair ===== */
.vocab-related{padding:56px 0;background:#f4f8f9}
.vocab-related .wrap{max-width:1180px}
.vocab-related h2{margin:8px 0 22px;color:var(--lab-blue-dark);font:700 clamp(1.45rem,2.5vw,2rem)/1.2 Sora,Inter,sans-serif}
.vocab-related .related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.vocab-related .related-grid>a{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;column-gap:14px;align-items:center;min-width:0;padding:18px 20px;background:#fff;border:1px solid rgba(18,58,104,.12);border-radius:20px;color:#17324d;text-decoration:none;box-shadow:0 10px 28px rgba(18,58,104,.06);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.vocab-related .related-grid>a:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(18,58,104,.10);border-color:rgba(18,58,104,.2)}
.vocab-related .related-grid img{grid-row:1/3;width:56px;height:56px;max-width:56px;max-height:56px;object-fit:contain;display:block}
.vocab-related .related-grid b{display:block;margin:0;color:var(--lab-blue-dark);font:700 .95rem/1.25 Sora,Inter,sans-serif}
.vocab-related .related-grid span{display:block;margin-top:4px;color:#617184;font-size:.82rem;line-height:1.4}

.vocab-funnel{padding:56px 0;background:#fff7ea}
.vocab-funnel .wrap{max-width:1180px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.6fr);gap:32px;align-items:center}
.vocab-funnel h2{margin:8px 0 10px;color:var(--lab-blue-dark);font:700 clamp(1.45rem,2.5vw,2rem)/1.2 Sora,Inter,sans-serif}
.vocab-funnel p{margin:0;max-width:760px;color:#52636c;line-height:1.65}
.vocab-funnel .funnel-actions{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.vocab-funnel .funnel-actions a{font-weight:700;color:#153e75;text-decoration:none}
.vocab-funnel .funnel-primary{display:inline-flex;align-items:center;justify-content:center;background:#e98545;color:#fff!important;padding:13px 20px;border-radius:999px;box-shadow:0 9px 20px rgba(217,120,61,.18)}
.vocab-funnel .funnel-primary:hover{background:#d9783d;transform:translateY(-1px)}

@media(max-width:760px){
 .vocab-related{padding:42px 0}.vocab-related .related-grid{grid-template-columns:1fr}
 .vocab-funnel{padding:42px 0}.vocab-funnel .wrap{grid-template-columns:1fr;gap:24px}
}

/* ===== v167 interactive MWE dictionary cards ===== */
.mwe-smart{cursor:pointer;position:relative;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.mwe-smart:hover,.mwe-smart:focus-visible{transform:translateY(-1px);box-shadow:0 3px 10px rgba(18,59,86,.12);outline:none}
.mwe-smart::after{content:"↗";font-size:.62em;margin-left:3px;opacity:.48;vertical-align:super}
.mwe-smart-link{appearance:none;border:0;background:transparent;padding:0;margin:0;color:inherit;font:600 .8rem/1.35 Inter,sans-serif;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer;text-align:left}
.mwe-smart-link:hover{color:var(--lab-blue,#0b5f86)}
.mwe-info-card{position:fixed;z-index:10000;width:min(360px,calc(100vw - 36px));padding:20px 20px 16px;background:#fffdf9;border:1px solid #d9e4e5;border-radius:20px;box-shadow:0 24px 70px rgba(18,59,86,.22);opacity:0;visibility:hidden;transform:translateY(7px) scale(.985);transition:opacity .16s ease,transform .16s ease,visibility .16s;font-family:Inter,system-ui,sans-serif;color:#263b45}
.mwe-info-card.is-open{opacity:1;visibility:visible;transform:none}
.mwe-info-close{position:absolute;right:12px;top:10px;width:30px;height:30px;border:0;border-radius:50%;background:#f0f4f3;color:#536a72;font-size:20px;line-height:1;cursor:pointer}
.mwe-info-topline{display:flex;gap:7px;align-items:center;padding-right:32px;color:#71838a;font:700 .68rem Sora,Inter,sans-serif;text-transform:uppercase;letter-spacing:.08em}
.mwe-info-level{display:inline-flex;padding:4px 7px;border-radius:999px;background:#173e48;color:#fff;letter-spacing:.04em}
.mwe-info-card h3{margin:9px 34px 15px 0;color:#173e48;font:700 1.22rem/1.2 Sora,Inter,sans-serif;letter-spacing:-.025em}
.mwe-info-meaning,.mwe-info-example{padding-top:12px;border-top:1px solid #e9e7e1}.mwe-info-example{margin-top:12px}
.mwe-info-meaning>span,.mwe-info-example>span{display:block;margin-bottom:5px;color:#d9783d;font:800 .66rem Sora,Inter,sans-serif;text-transform:uppercase;letter-spacing:.1em}
.mwe-info-meaning p,.mwe-info-example p{margin:0;color:#4d626a;font-size:.86rem;line-height:1.55}.mwe-info-example p{font-style:italic;color:#63757c}
.mwe-info-foot{margin-top:14px;color:#94a0a4;font-size:.64rem}
@media(max-width:700px){.mwe-info-card{left:14px!important;right:14px;top:auto!important;bottom:14px;width:auto;border-radius:22px;padding:22px 20px 18px;transform:translateY(18px)}.mwe-info-card.is-open{transform:none}.mwe-info-foot{display:none}}

/* v168: tighten C2ES score number-to-bar spacing */
.vocab-app .c2es-score-row {
  margin-bottom: 2px !important;
}

/* v169: give the C2ES score bar breathing room before explanatory copy */
.vocab-app .c2es-score-bar-outer {
  margin-bottom: 10px !important;
}

/* v170 — SEO/supporting content; presentation only */
.vocab-seo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:26px 0 30px}
.vocab-seo-card{padding:24px 26px;border:1px solid #dce7eb;border-radius:22px;background:#fff;box-shadow:0 10px 30px rgba(25,64,82,.055)}
.vocab-seo-card h3{margin:7px 0 9px;color:var(--lab-blue-dark);font:700 1.08rem/1.3 Sora,Inter,sans-serif}
.vocab-seo-card p{margin:0;color:#52636c;line-height:1.65;font-size:.92rem}
.vocab-seo-card a{color:#153e75;font-weight:700;text-decoration:none}.vocab-seo-card a:hover{text-decoration:underline}
@media(max-width:760px){.vocab-seo-grid{grid-template-columns:1fr}.vocab-seo-card{padding:21px}}

/* Keep enabled and off filter labels readable without changing their behaviour. */
.vocab-page .vocab-app #analyseBtn{background:#b55b24;color:#fff}
.vocab-page .vocab-app #analyseBtn:hover{background:#944719;color:#fff}
.vocab-page .vocab-app .level-toggle-b1{color:#ad352e;border-color:#ad352e}
.vocab-page .vocab-app .level-toggle-b2{color:#16723b;border-color:#16723b}
.vocab-page .vocab-app .level-toggle-c1{color:#713db7;border-color:#713db7}
.vocab-page .vocab-app .level-toggle.is-off{opacity:1;color:#596b7c;background:#edf2f6;border-style:dashed;border-color:#8796a2}

/* V689 — presentation-only refresh. Scoped to the app; shared footer is untouched. */
.vocab-app.page {
  color-scheme: light;
  background: #fff !important;
  border: 1px solid #dce4e5;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(25, 64, 82, .09);
}
.vocab-app .vocab-app-head {
  padding: 25px 26px 18px;
  align-items: center;
  border-bottom: 1px solid #e8eceb;
  background: #fcfdfb;
}
.vocab-app .vocab-app-head .vocab-kicker { color: #a85a2c; font-size: 10px; letter-spacing: .14em; }
.vocab-app .vocab-app-head h2 { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -.025em; margin: 8px 0; }
.vocab-app .vocab-app-head p { font-size: 14px; line-height: 1.6; max-width: 760px; color: #596f79; }
.vocab-app .vocab-app-badge { padding-left: 20px; border-left: 1px solid #dce4e3; min-width: 108px; }
.vocab-app .vocab-app-badge b { font-size: 19px; }
.vocab-app .vocab-app-badge span { color: #5b737b; }
.vocab-app .input-card { padding: 20px 26px 22px !important; margin: 0 !important; }
.vocab-app .field-label { font: 600 13px/1.4 Inter, system-ui, sans-serif; margin-bottom: 9px; color: #2a4b59; }
.vocab-app .text-input {
  min-height: 146px !important;
  padding: 16px 18px !important;
  border: 1px solid #cdd9dc !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #263e4c;
  font: 400 17px/1.75 Inter, system-ui, sans-serif;
  transition: border-color .18s, box-shadow .18s;
}
.vocab-app .text-input:focus { border-color: #b55b24 !important; box-shadow: 0 0 0 3px rgba(181, 91, 36, .12); }
.vocab-app .controls-row { gap: 14px 24px; flex-wrap: wrap; align-items: center; margin-top: 13px !important; }
.vocab-app .controls-left { gap: 18px; flex-wrap: wrap; }
.vocab-app .btn-primary { min-height: 44px; border-radius: 9px; padding: 11px 19px !important; font: 600 13px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 5px 12px rgba(181, 91, 36, .13); }
.vocab-app .checkbox-inline { font: 400 13px/1.5 Inter, system-ui, sans-serif; color: #516a76; }
.vocab-app .checkbox-inline input { width: 16px; height: 16px; accent-color: #b55b24; }
.vocab-app .fine-print { font-size: 12px; line-height: 1.6; color: #596f79; min-width: 0; }
.vocab-app .controls-row > .fine-print { max-width: 460px; flex: 1 1 260px; margin: 0; }
.vocab-app .summary-card {
  padding: 19px 26px 18px !important;
  margin: 0 !important;
  border-block: 1px solid #e0e7e6;
  background: #f7faf8 !important;
  border-radius: 0;
}
.vocab-app .summary-middle-row { margin: 0; gap: 18px; }
.vocab-app .summary-top-row { align-items: center; gap: 18px; }
.vocab-app .summary-top-row > .fine-print { max-width: 370px; margin: 0; font-size: 11px; }
.vocab-app .level-toggle-row { gap: 7px; flex-wrap: wrap; }
.vocab-app .level-toggle { border-radius: 8px; padding: 8px 10px; min-height: 36px; font: 650 12px/1.3 Inter, system-ui, sans-serif; box-shadow: none; }
.vocab-app .level-bar-wrapper { margin: 16px 0 0 !important; max-width: none; }
.vocab-app .level-bar { height: 12px !important; background: #e6ece9 !important; border-radius: 7px; overflow: hidden; isolation: isolate; }
.vocab-app .level-bar .level-segment {
  animation: none !important;
  transform: none;
  filter: none;
  box-shadow: none;
  transition: opacity .18s ease;
}
.vocab-app .level-bar .level-segment.segment-highlight { transform: none; box-shadow: none; }
.vocab-app .level-bar .level-segment.segment-muted { opacity: .4; }
.vocab-app .segment-labels { margin-top: 10px !important; gap: 7px 14px !important; align-items: center; }
.vocab-app .segment-label { padding: 0; border: 0; border-radius: 0; background: transparent; font: 500 12px/1.6 Inter, system-ui, sans-serif !important; color: #344f5d; }
.vocab-app .segment-label-value { font-variant-numeric: tabular-nums; opacity: 1; }
.vocab-app .segment-label-dot { box-shadow: none; }
.vocab-app .segment-label-mwe { margin-left: auto; }
/* Both results occupy the same grid rows, sharing a heading baseline and content edge.
   Existing card hover lift is deliberately retained. */
.vocab-app .results-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr) !important;
  grid-template-rows: auto 1fr auto;
  gap: 0 16px !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 22px 26px 24px;
  background: #fff;
}
.vocab-app .results-layout > .card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 18px !important;
  border: 1px solid #dbe4e5;
  border-radius: 13px !important;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 64, 82, .025);
}
.vocab-app .results-layout > .card:hover { box-shadow: 0 10px 24px rgba(25, 64, 82, .09); }
.vocab-app .results-layout .card-title { font: 650 15px/1.5 Sora, Inter, sans-serif !important; margin: 0 0 14px; color: #173f52; }
.vocab-app .coloured-text-output {
  min-height: 245px !important;
  max-height: none;
  padding: 14px 16px !important;
  border: 1px solid #e3e9e7;
  border-radius: 9px !important;
  background: #fdfefa !important;
  font: 400 17px/1.85 Inter, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.vocab-app .coloured-text-output.placeholder { font-size: 15px; color: #627781; }
.vocab-app .analysis-output { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px; min-width: 0; }
.vocab-app .analysis-output.placeholder:not(:has(.analysis-section)) { display: block; font-size: 14px; line-height: 1.7; color: #627781; padding: 14px 16px; background: #fdfefa; border: 1px solid #e3e9e7; border-radius: 9px; }
.vocab-app .analysis-section { padding: 0 0 12px; margin: 0 !important; border: 0; border-bottom: 1px solid #e7ece9; background: transparent; border-radius: 0; min-width: 0; }
.vocab-app .analysis-section:nth-child(n+3) { grid-column: 1 / -1; }
.vocab-app .analysis-section-title { font: 700 10px/1.5 Inter, system-ui, sans-serif !important; letter-spacing: .07em; color: #4d6874; margin-bottom: 6px !important; }
.vocab-app .analysis-section p { font: 400 13px/1.65 Inter, system-ui, sans-serif; color: #354e5a; margin: 2px 0; }
.vocab-app .analysis-section .success-rate { font-size: 12px !important; }
.vocab-app .mwe-list { padding-left: 16px !important; margin: 8px 0 0; }
.vocab-app .mwe-list li { font-size: 13px; line-height: 1.6; }
.vocab-app .c2es-score-section { padding: 14px 15px; border: 1px solid #dce7df !important; border-radius: 10px; background: #f5f9f5 !important; }
.vocab-app .c2es-score-number { color: #17556b; font-size: 28px !important; }
.vocab-app .c2es-score-bar-outer { height: 7px !important; margin-top: 6px; margin-bottom: 12px !important; }
.vocab-app .c2es-score-bar-inner { animation: vc-score-restyle .65s cubic-bezier(.22, 1, .36, 1) both; transform-origin: left; }
.vocab-app .c2es-score-message { font-size: 12px !important; line-height: 1.65 !important; }
.vocab-app .copy-button-container,.vocab-app .card-actions { align-self: end; margin: 14px 0 0 !important; display: flex; justify-content: flex-end; }
.vocab-app .btn-outline-pill { border-radius: 7px; padding: 9px 12px !important; min-height: 38px; font: 600 12px/1.4 Inter, system-ui, sans-serif; border-color: #cbdadd; color: #315666; }
.vocab-app .vocab-course-links { display: flex; justify-content: center; align-items: center; gap: 15px 30px; flex-wrap: wrap; padding: 17px 24px; border-top: 1px solid #e1e7e4; background: #fafbf8; }
.vocab-app .vocab-course-links a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: #315462; font: 600 12px/1.4 Inter, system-ui, sans-serif; text-decoration: none; }
.vocab-app .vocab-course-links svg { width: 20px; height: 20px; flex-shrink: 0; color: #a85a2c; }
.vocab-app .vocab-course-links a:hover { color: #a85a2c; text-decoration: underline; text-underline-offset: 4px; }
.vocab-app a:focus-visible,.vocab-app button:focus-visible { outline: 3px solid #b55b24; outline-offset: 3px; }
@keyframes vc-score-restyle { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports not (grid-template-rows: subgrid) {
  .vocab-app .results-layout { grid-template-rows: auto; }
  .vocab-app .results-layout > .card { grid-row: auto; grid-template-rows: auto 1fr auto; }
  .vocab-app .results-layout .card-title { min-height: 45px; }
}
@media(max-width: 980px) {
  .vocab-app .results-layout { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto; gap: 16px !important; }
  .vocab-app .results-layout > .card { grid-template-rows: auto 1fr auto; grid-row: auto; }
  .vocab-app .summary-top-row { display: block; }
  .vocab-app .summary-top-row > .fine-print { text-align: left; max-width: none; margin-top: 10px !important; }
  .vocab-app .segment-label-mwe { margin-left: 0; }
  .vocab-app .controls-row > .fine-print { max-width: none; text-align: left; }
}
@media(max-width: 600px) {
  .vocab-app .vocab-app-head { padding: 20px 18px 16px; }
  .vocab-app .input-card { padding: 17px 18px 20px !important; }
  .vocab-app .summary-card { padding: 17px 18px !important; }
  .vocab-app .results-layout { padding: 18px; }
  .vocab-app .results-layout > .card { padding: 15px !important; }
  .vocab-app .analysis-output { grid-template-columns: 1fr; }
  .vocab-app .text-input { min-height: 170px !important; }
  .vocab-app .coloured-text-output { font-size: 16px; padding: 12px !important; }
  .vocab-app .vocab-course-links { gap: 8px 16px; padding: 14px 18px; justify-content: flex-start; }
  .vocab-app .vocab-course-links a { flex: 1 1 180px; min-height: 44px; }
  .vocab-app .level-toggle { min-height: 40px; }
}
@media(prefers-reduced-motion: reduce) {
  .vocab-app .level-bar .level-segment,.vocab-app .c2es-score-bar-inner { animation: none !important; transition: none; }
  .vocab-app .card,.vocab-app .card:hover { transition: none; }
}

/* V690 — course shortcuts beside the level controls; replaces the old helper copy. */
.vocab-app .summary-top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.vocab-app .summary-toggles { flex: 0 1 auto; }
.vocab-app .summary-top-row .vocab-course-links { flex: 0 1 auto; margin-left: auto; border: 0; padding: 0; background: transparent; gap: 8px 18px; justify-content: flex-end; }
.vocab-app .summary-top-row .vocab-course-links a { flex: 0 0 auto; gap: 6px; font-size: 11px; min-height: 36px; }
.vocab-app .summary-top-row .vocab-course-links svg { width: 18px; height: 18px; }
@media(max-width: 980px) {
  .vocab-app .summary-top-row .vocab-course-links { margin-left: 0; justify-content: flex-start; }
}
@media(max-width: 600px) {
  .vocab-app .summary-top-row .vocab-course-links { gap: 2px 16px; }
  .vocab-app .summary-top-row .vocab-course-links a { min-height: 44px; }
}

/* V691 — retain position-neutral guidance directly below the level buttons. */
.vocab-app .summary-top-row .summary-toggles { flex: 0 1 auto; width: max-content; max-width: 100%; }
.vocab-app .summary-toggles .level-toggle-row { width: max-content; max-width: 100%; }
.vocab-app .vocab-controls-help { margin: 10px 0 0; width: 0; min-width: 100%; max-width: none; color: #526b76; font: 400 12px/1.6 Inter, system-ui, sans-serif; text-align: left; }
@media(max-width: 980px) {
  .vocab-app .summary-top-row .summary-toggles { max-width: 100%; }
}

/* A quiet blue surround distinguishes the checker from the page. */
.vocab-app-wrap {
  background: #e9f2fa;
  border-top: 1px solid #d6e4f0;
  border-bottom: 1px solid #d6e4f0;
}

/* A small Learning Lab signature inside the checker. */
.vocab-app .vocab-app-head .vocab-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vocab-app .vocab-app-head .vocab-kicker::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #173d5b;
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0;
}
