/* Centre d'apprentissage Linker — composant autonome compte/lanceur/rapport */
:root {
  --ll-navy: #0b1f59;
  --ll-navy-2: #173a8f;
  --ll-gold: #c89427;
  --ll-gold-soft: #f5e5b8;
  --ll-ink: #17213d;
  --ll-muted: #687086;
  --ll-line: #e7e1d6;
  --ll-surface: #fffdfa;
  --ll-soft: #f6f4ef;
  --ll-green: #157557;
  --ll-shadow: 0 30px 90px rgba(8, 24, 74, .22);
}

body.ll-open {
  overflow: hidden;
}

.ll-overlay[hidden] {
  display: none !important;
}

.ll-overlay {
  position: fixed;
  z-index: 22000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 15, 46, .66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ll-dialog {
  width: min(1120px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--ll-ink);
  background:
    radial-gradient(circle at 94% 0, rgba(238, 205, 127, .25), transparent 25%),
    var(--ll-surface);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 30px;
  box-shadow: var(--ll-shadow);
  font-family: Inter, "Syne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ll-dialog:focus {
  outline: none;
}

.ll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 16px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--ll-navy), #112d77 68%, #4c4f8e);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.ll-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ll-mascot {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 28px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 17px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .24);
}

.ll-mascot .ll-live-cat {
  width: 45px;
  height: 45px;
}

.ll-mascot .ll-cat-shadow {
  display: none;
}

.ll-eyebrow {
  margin-bottom: 3px;
  color: #ebd08d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ll-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.02em;
}

.ll-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.ll-icon-button:hover,
.ll-icon-button:focus-visible {
  background: rgba(255, 255, 255, .2);
  outline: 2px solid #ecd285;
  outline-offset: 2px;
}

.ll-body {
  min-height: 0;
  overflow: auto;
  padding: clamp(22px, 4vw, 42px);
  overscroll-behavior: contain;
}

.ll-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(247, 244, 237, .95);
  border-top: 1px solid var(--ll-line);
}

.ll-footer-spacer {
  flex: 1 1 auto;
}

.ll-welcome,
.ll-completion {
  width: min(900px, 100%);
  margin: 0 auto;
}

.ll-welcome-badge,
.ll-recommended {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  color: #6d5219;
  background: #f7e9bd;
  border: 1px solid #ead28d;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ll-welcome h3,
.ll-menu h3,
.ll-step h3,
.ll-completion h3 {
  margin: 14px 0 12px;
  color: var(--ll-navy);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.ll-lead {
  max-width: 820px;
  margin: 0;
  color: var(--ll-muted);
  font-size: 16px;
  line-height: 1.72;
}

.ll-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}

.ll-choice {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(8, 24, 74, .07);
}

/* LIMPI_LINKER_CARD_CONTAINMENT_V1 */
.ll-choice .ll-recommended {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
  letter-spacing: .08em;
  overflow-wrap: break-word;
}

.ll-choice.is-recommended {
  border-color: #d4aa4c;
  box-shadow: 0 18px 46px rgba(201, 154, 46, .15);
}

.ll-choice h4 {
  margin: 16px 0 8px;
  color: var(--ll-navy);
  min-width: 0;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.24;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ll-choice p {
  flex: 1 1 auto;
  margin: 0 0 20px;
  color: var(--ll-muted);
  font-size: 14px;
  line-height: 1.62;
}

.ll-reassurance {
  margin-top: 20px;
  padding: 16px 18px;
  color: #4f5870;
  background: #f1f4fb;
  border: 1px solid #dce3f3;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.ll-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ll-button:hover {
  transform: translateY(-1px);
}

.ll-button:focus-visible,
.ll-card-action:focus-visible,
.ll-mode:focus-visible,
.ll-location-action:focus-visible,
.ll-search:focus-visible {
  outline: 3px solid rgba(44, 95, 199, .3);
  outline-offset: 2px;
}

.ll-button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ll-navy-2), var(--ll-navy));
  box-shadow: 0 10px 24px rgba(8, 24, 74, .18);
}

.ll-button-secondary {
  color: var(--ll-navy);
  background: #fff;
  border-color: #cfd8eb;
}

.ll-button-quiet {
  color: #596178;
  background: transparent;
  border-color: transparent;
}

.ll-menu-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: end;
}

.ll-progress-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(8, 24, 74, .06);
}

.ll-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ll-progress-top strong {
  color: var(--ll-navy);
  font-size: 24px;
}

.ll-progress-top span {
  color: var(--ll-muted);
  font-size: 11px;
  text-align: right;
}

.ll-progress-track {
  height: 9px;
  margin-top: 12px;
  overflow: hidden;
  background: #e9edf5;
  border-radius: 99px;
}

.ll-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ll-gold), #e6c970);
  border-radius: inherit;
  transition: width .35s ease;
}

.ll-menu-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
}

.ll-search {
  min-width: 0;
  flex: 1 1 420px;
  height: 46px;
  padding: 0 16px;
  color: var(--ll-ink);
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
}

.ll-mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #ebeef4;
  border-radius: 14px;
}

.ll-mode {
  min-height: 38px;
  padding: 8px 14px;
  color: #626a7d;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ll-mode.is-active {
  color: var(--ll-navy);
  background: #fff;
  box-shadow: 0 4px 12px rgba(8, 24, 74, .1);
}

.ll-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, #163881, #0b1f59);
  border-radius: 18px;
}

.ll-resume div {
  min-width: 0;
}

.ll-resume span,
.ll-resume strong {
  display: block;
}

.ll-resume span {
  margin-bottom: 3px;
  color: #ccd7f3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ll-resume strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-resume .ll-button-primary {
  flex: 0 0 auto;
  color: #15224b;
  background: #f0d68d;
  box-shadow: none;
}

.ll-chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ll-chapter {
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 19px;
  box-shadow: 0 12px 28px rgba(8, 24, 74, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ll-chapter:hover {
  transform: translateY(-2px);
  border-color: #c9d3e7;
  box-shadow: 0 18px 36px rgba(8, 24, 74, .09);
}

.ll-chapter.is-complete {
  border-color: #a9d5c4;
  background: linear-gradient(180deg, #f9fffc, #fff);
}

.ll-chapter-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ll-chapter-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ll-navy);
  background: #f3e5ba;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 900;
}

.ll-chapter-number {
  color: #9aa0ae;
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.ll-chapter-done {
  margin-left: auto;
  padding: 5px 8px;
  color: #0d6d4d;
  background: #dff5ec;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.ll-chapter h4 {
  margin: 14px 0 7px;
  color: var(--ll-navy);
  font-size: 17px;
}

.ll-chapter > p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--ll-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ll-chapter-meta {
  display: flex;
  gap: 12px;
  margin: 14px 0 10px;
  color: #8a91a3;
  font-size: 10px;
  font-weight: 750;
}

.ll-card-action {
  width: max-content;
  padding: 0;
  color: var(--ll-navy-2);
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.ll-card-action::after {
  content: " →";
}

.ll-step {
  width: min(850px, 100%);
  margin: 0 auto;
}

.ll-step-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #8a91a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ll-step-copy {
  margin: 0 0 13px;
  color: #4f5870;
  font-size: 15px;
  line-height: 1.72;
}

.ll-remember,
.ll-actions,
.ll-location {
  margin-top: 20px;
  border-radius: 18px;
}

.ll-remember {
  padding: 18px 20px;
  color: #24345f;
  background: linear-gradient(135deg, #eef3ff, #f9fbff);
  border: 1px solid #d6e0f5;
}

.ll-remember strong,
.ll-actions > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ll-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ll-remember p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
}

.ll-actions {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--ll-line);
}

.ll-actions ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ll-actions li {
  display: flex;
  gap: 8px;
  color: #596178;
  font-size: 12px;
  line-height: 1.45;
}

.ll-actions li span {
  color: var(--ll-green);
  font-weight: 900;
}

.ll-location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: #646c7f;
  background: #f3f1eb;
  border: 1px solid #e6e0d4;
  font-size: 11px;
}

.ll-location-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: #2b9a70;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(43, 154, 112, .12);
}

.ll-location-dot.is-away {
  background: var(--ll-gold);
  box-shadow: 0 0 0 4px rgba(201, 154, 46, .14);
}

.ll-location-action {
  margin-left: auto;
  padding: 7px 10px;
  color: var(--ll-navy);
  background: #fff;
  border: 1px solid #d9d4c9;
  border-radius: 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ll-completion {
  padding: 30px 0;
  text-align: center;
}

.ll-completion .ll-welcome-badge {
  margin: 0 auto;
}

.ll-completion-mascot {
  margin-bottom: 16px;
  font-size: 64px;
}

.ll-completion .ll-lead {
  margin: 0 auto;
}

.ll-completion-stats {
  width: max-content;
  margin: 26px auto 0;
  padding: 16px 28px;
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 18px;
}

.ll-completion-stats strong,
.ll-completion-stats span {
  display: block;
}

.ll-completion-stats strong {
  color: var(--ll-navy);
  font-size: 32px;
}

.ll-completion-stats span {
  color: var(--ll-muted);
  font-size: 11px;
}

.ll-floating {
  position: fixed;
  z-index: 9000;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 9px 12px 9px 9px;
  color: #fff;
  background: linear-gradient(135deg, #173b91, #0b1f59);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(8, 24, 74, .3);
  font: inherit;
  cursor: pointer;
}

.ll-floating:hover {
  transform: translateY(-2px);
}

.ll-floating:focus-visible {
  outline: 3px solid #e7c76f;
  outline-offset: 3px;
}

.ll-floating-face {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .13);
  border-radius: 13px;
  font-size: 24px;
}

.ll-floating-copy {
  display: grid;
  text-align: left;
}

.ll-floating-copy strong {
  font-size: 13px;
}

.ll-floating-copy small {
  margin-top: 2px;
  color: #cad5f1;
  font-size: 9px;
}

.ll-floating-progress {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 6px;
  color: #22315d;
  background: #ecd285;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 900;
}

.linker-learning-header-btn {
  font-size: 16px;
}

.linker-learning-chat-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 11px 12px;
  color: #314268;
  background: #f6edcf;
  border: 1px solid #e8d494;
  border-radius: 13px;
  font-family: "DM Mono", monospace;
}

.linker-learning-chat-entry > div {
  min-width: 0;
  flex: 1 1 auto;
}

.linker-learning-chat-entry strong,
.linker-learning-chat-entry span {
  display: block;
}

.linker-learning-chat-entry strong {
  color: #1b2d5f;
  font-size: 10px;
}

.linker-learning-chat-entry span {
  margin-top: 3px;
  color: #697086;
  font-size: 8px;
  line-height: 1.4;
}

.linker-learning-chat-button {
  padding: 7px 9px;
  flex: 0 0 auto;
  color: #fff;
  background: #122e75;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.linker-learning-chat-actions {
  display: grid;
  gap: 5px;
  flex: 0 0 auto;
}

.linker-learning-chat-button.is-secondary {
  color: #17316f;
  background: #fff;
  border: 1px solid #d6c78f;
}

.ll-floating-face .ll-live-cat {
  width: 39px;
  height: 39px;
}

.ll-floating-face .ll-cat-shadow {
  display: none;
}

.ll-live-menu-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 24px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(239, 207, 126, .28), transparent 32%),
    linear-gradient(135deg, #0c205c, #173e96);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(12, 35, 92, .18);
}

.ll-live-menu-card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.ll-live-menu-card strong {
  display: block;
  margin: 10px 0 5px;
  font-size: 18px;
}

.ll-live-menu-card p {
  margin: 0;
  color: #dbe4fa;
  font-size: 12px;
  line-height: 1.55;
}

.ll-live-stage[hidden] {
  display: none !important;
}

.ll-live-stage {
  position: fixed;
  z-index: 24000;
  inset: 0;
  pointer-events: none;
  font-family: Inter, "Syne", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ll-live-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ll-live-spotlight {
  position: fixed;
  min-width: 24px;
  min-height: 24px;
  border: 3px solid #f0c85d;
  border-radius: 17px;
  box-shadow:
    0 0 0 9999px rgba(5, 13, 40, .68),
    0 0 0 7px rgba(240, 200, 93, .18),
    0 0 34px rgba(240, 200, 93, .85);
  transition:
    left .35s cubic-bezier(.2, .8, .2, 1),
    top .35s cubic-bezier(.2, .8, .2, 1),
    width .35s cubic-bezier(.2, .8, .2, 1),
    height .35s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}

.ll-live-stage.is-success .ll-live-spotlight {
  border-color: #58d39d;
  box-shadow:
    0 0 0 9999px rgba(5, 13, 40, .62),
    0 0 0 7px rgba(88, 211, 157, .18),
    0 0 34px rgba(88, 211, 157, .8);
}

.ll-live-companion {
  position: fixed;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 0;
  color: #18213c;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 24px 40px rgba(3, 12, 40, .34));
  pointer-events: auto;
  transition:
    left .35s cubic-bezier(.2, .8, .2, 1),
    top .35s cubic-bezier(.2, .8, .2, 1);
}

.ll-live-mascot {
  width: 112px;
  flex: 0 0 112px;
  align-self: flex-end;
  transform-origin: 50% 100%;
  animation: ll-live-breathe 2.4s ease-in-out infinite;
}

.ll-live-cat {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ll-cat-tail {
  transform-origin: 132px 130px;
  animation: ll-live-tail 1.7s ease-in-out infinite alternate;
}

.ll-cat-eyes {
  transform-origin: 90px 78px;
  animation: ll-live-blink 4.8s linear infinite;
}

.ll-cat-paw {
  transform-origin: 65px 155px;
  animation: ll-live-paw 3.2s ease-in-out infinite;
}

.ll-live-bubble {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  padding: 17px 18px 16px;
  background:
    radial-gradient(circle at 94% 5%, rgba(239, 205, 120, .25), transparent 28%),
    #fffdf9;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px 24px 24px 8px;
  box-shadow: 0 20px 50px rgba(8, 24, 74, .22);
}

.ll-live-bubble:before {
  content: "";
  position: absolute;
  left: -13px;
  bottom: 28px;
  width: 24px;
  height: 24px;
  background: #fffdf9;
  border-left: 1px solid rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  transform: rotate(45deg);
}

.ll-live-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ll-live-counter {
  color: #9b6f12;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ll-live-top-actions {
  display: flex;
  gap: 5px;
}

.ll-live-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #25325a;
  background: #f3f0e8;
  border: 1px solid #e4ded1;
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.ll-live-icon:hover,
.ll-live-icon:focus-visible {
  color: #fff;
  background: #173a8f;
  outline: 2px solid #eacb76;
  outline-offset: 2px;
}

.ll-live-bubble h3 {
  position: relative;
  z-index: 1;
  margin: 10px 0 7px;
  color: #0b1f59;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.ll-live-text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #515a70;
  font-size: 12px;
  line-height: 1.62;
}

.ll-live-why {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 9px 11px;
  color: #4e5870;
  background: #f5f3ed;
  border: 1px solid #e5dfd3;
  border-radius: 12px;
}

.ll-live-why summary {
  color: #17336f;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.ll-live-why p {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.55;
}

.ll-live-status {
  min-height: 17px;
  margin-top: 9px;
  color: #8b681e;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
}

.ll-live-stage.is-success .ll-live-status {
  color: #157557;
}

.ll-live-controls {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
}

.ll-live-button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 11px;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.ll-live-primary {
  color: #fff;
  background: linear-gradient(135deg, #173f99, #0b1f59);
  border: 1px solid #0b1f59;
}

.ll-live-primary:disabled {
  color: #777e8d;
  background: #e9e7e1;
  border-color: #ddd8ce;
  cursor: default;
}

.ll-live-secondary {
  color: #17336f;
  background: #fff;
  border: 1px solid #d5d9e5;
}

.ll-live-quiet {
  color: #6a7181;
  background: transparent;
  border: 1px solid transparent;
}

.ll-live-button:not(:disabled):hover,
.ll-live-button:not(:disabled):focus-visible {
  transform: translateY(-1px);
  outline: 2px solid #e8c665;
  outline-offset: 2px;
}

@keyframes ll-live-breathe {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

@keyframes ll-live-tail {
  from { transform: rotate(-7deg); }
  to { transform: rotate(10deg); }
}

@keyframes ll-live-blink {
  0%, 43%, 47%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(.15); }
}

@keyframes ll-live-paw {
  0%, 76%, 100% { transform: rotate(0); }
  82% { transform: rotate(-8deg) translateY(-2px); }
  88% { transform: rotate(5deg); }
}

.ll-target-highlight {
  position: relative;
  z-index: 22500 !important;
  border-radius: 14px;
  outline: 4px solid #e2b84f !important;
  outline-offset: 7px !important;
  box-shadow: 0 0 0 9999px rgba(7, 15, 43, .38), 0 0 34px rgba(225, 181, 70, .8) !important;
  animation: ll-highlight-pulse 1.15s ease-in-out infinite alternate;
}

@keyframes ll-highlight-pulse {
  from { outline-color: #e4b53d; }
  to { outline-color: #fff0a7; }
}

.ll-toast {
  position: fixed;
  z-index: 23000;
  left: 50%;
  bottom: 24px;
  width: min(560px, calc(100% - 32px));
  padding: 13px 16px;
  color: #fff;
  background: #17234b;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  box-shadow: 0 16px 38px rgba(8, 24, 74, .3);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}

.ll-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .ll-overlay {
    padding: 12px;
  }

  .ll-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .ll-choice-grid,
  .ll-chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ll-menu-top {
    grid-template-columns: 1fr;
  }

  .ll-progress-card {
    width: min(360px, 100%);
  }

  .ll-footer {
    flex-wrap: wrap;
  }

  .ll-live-menu-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .ll-footer-spacer {
    display: none;
  }
}

@media (max-width: 620px) {
  .ll-overlay {
    padding: 0;
  }

  .ll-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .ll-header {
    min-height: 72px;
    padding: 11px 14px;
  }

  .ll-mascot {
    width: 43px;
    height: 43px;
    font-size: 24px;
  }

  .ll-body {
    padding: 20px 16px;
  }

  .ll-footer {
    padding: 10px 12px;
  }

  .ll-footer .ll-button {
    flex: 1 1 calc(50% - 8px);
  }

  .ll-reset {
    display: none;
  }

  .ll-choice-grid,
  .ll-chapter-grid,
  .ll-actions ul {
    grid-template-columns: 1fr;
  }

  .ll-choice {
    min-height: 0;
  }

  .ll-menu-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .ll-mode-switch {
    align-self: flex-start;
  }

  .ll-resume {
    align-items: stretch;
    flex-direction: column;
  }

  .ll-resume .ll-button {
    width: 100%;
  }

  .ll-step-breadcrumb {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ll-location {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ll-location-action {
    width: 100%;
    margin-left: 19px;
    text-align: center;
  }

  .ll-floating {
    right: 14px;
    bottom: 14px;
  }

  .ll-floating-copy {
    display: none;
  }

  .linker-learning-chat-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .linker-learning-chat-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-button,
  .ll-chapter,
  .ll-progress-fill,
  .ll-toast,
  .ll-floating {
    transition: none !important;
  }

  .ll-target-highlight {
    animation: none !important;
    scroll-behavior: auto;
  }

  .ll-live-spotlight,
  .ll-live-companion,
  .ll-live-mascot,
  .ll-cat-tail,
  .ll-cat-eyes,
  .ll-cat-paw {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .ll-live-spotlight {
    box-shadow:
      0 0 0 9999px rgba(5, 13, 40, .62),
      0 0 0 6px rgba(240, 200, 93, .18);
  }

  .ll-live-companion {
    width: auto !important;
    max-height: min(54vh, 440px);
    align-items: flex-end;
    gap: 0;
    filter: drop-shadow(0 16px 30px rgba(3, 12, 40, .3));
  }

  .ll-live-mascot {
    width: 82px;
    flex-basis: 82px;
    margin-right: -8px;
  }

  .ll-live-bubble {
    max-height: min(52vh, 420px);
    overflow: auto;
    padding: 14px;
    border-radius: 19px 19px 19px 7px;
  }

  .ll-live-bubble h3 {
    font-size: 17px;
  }

  .ll-live-text {
    font-size: 11px;
  }

  .ll-live-controls {
    flex-wrap: wrap;
  }

  .ll-live-button {
    flex: 1 1 auto;
  }
}
