/*
 * PREP4STEP — «خريطة رحلتك إلى هدفك» (the Line Map) and the «هدفي» page.
 *
 * Three coloured lines (القواعد violet, القراءة cyan, الاستماع gold — the
 * dashboard's own tones) run side by side, merge at the three assessment
 * stations and end in one trunk that docks into the student's target, drawn
 * as a dial. The «هدفي» page is the same dial, larger, with the target as a
 * real number field.
 *
 * Layout follows the SECTION's width, not the window's (container queries):
 *   >= 1064px  the horizontal map, the line status under the lines, the board
 *   640-1063   the strip map beside the line status and the board
 *   < 640      everything stacked; the strip map on its own
 * The map is SVG and scales with its box; its smallest label never renders
 * under 12px in any of the three layouts.
 *
 * Motion: at most three looping animations at a time, paused off screen by
 * the script, and none at all under prefers-reduced-motion.
 */

/* ---------------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------------ */

.lm,
.lm-goal {
  --lm-text: #fff9ec;
  --lm-soft: #d9e8e0;
  --lm-muted: #a9cabc;
  --lm-muted2: #93b6a7;
  --lm-gold: #ffd66b;
  --lm-gold2: #fff1b2;
  --lm-gold3: #f2ad1d;
  --lm-green: #37f2a8;
  --lm-green2: #9bffd2;
  --lm-warn: #ffb45c;
  --lm-rule: rgba(183, 255, 225, 0.1);
  --lm-font: "Tajawal", var(--see-font, "Segoe UI"), system-ui, sans-serif;
  color: var(--lm-text);
  font-family: var(--lm-font);
}

/* ---------------------------------------------------------------------------
 * The section
 * ------------------------------------------------------------------------ */

.lm {
  background:
    radial-gradient(40% 60% at 14% 42%, rgba(255, 214, 107, 0.1), transparent 70%),
    radial-gradient(40% 55% at 70% 30%, rgba(55, 242, 168, 0.07), transparent 70%),
    linear-gradient(158deg, #113a2d 0%, #0a271e 48%, #05170f 100%);
  border: 1px solid rgba(183, 255, 225, 0.15);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.07);
  container: lm / inline-size;
  isolation: isolate;
  margin: 28px 0 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.lm::before {
  background: linear-gradient(90deg, #ffd66b, #37f2a8 45%, #52ecff 70%, #b99cff);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  opacity: 0.9;
  position: absolute;
  z-index: 1;
}

.lm::after {
  background-image: radial-gradient(rgba(214, 255, 238, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  content: "";
  inset: 0;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 38%, #000 20%, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 38%, #000 20%, transparent 80%);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.lm__in {
  padding: 20px 14px 18px;
}

/* Header ------------------------------------------------------------------ */

.lm .lm-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lm .lm-head__txt {
  max-width: 720px;
  min-width: 0;
}

.lm .lm-eyebrow,
.lm-goal .lm-eyebrow {
  color: var(--lm-gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0;
}

.lm .lm-title {
  background: linear-gradient(180deg, #fffdf6 30%, #e9dcb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  margin: 4px 0 6px;
  padding-block: 0.04em 0.12em;
}

.lm .lm-intro {
  color: var(--lm-muted);
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0;
}

/* «مؤشر الجاهزية: هل أنت جاهز للاختبار؟» — a gauge badge, a gold kicker and
 * the question. The title's own gradient text is switched off here so the
 * badge keeps its colour; each part carries its own. */
.lm .lm-title--ready {
  align-items: center;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--lm-text);
  display: flex;
  gap: 13px;
  margin: 0 0 12px;
  padding: 0;
}

/* The gauge medallion: a dark dial face inside the section's own colour ring. */
.lm .lm-title__badge {
  align-items: center;
  background:
    radial-gradient(circle at 50% 30%, #17503e, #07231b 70%) padding-box,
    conic-gradient(from 210deg, #ffd66b, #37f2a8, #52ecff, #b99cff, #ffd66b) border-box;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(255, 214, 107, 0.05),
    0 0 30px rgba(55, 242, 168, 0.18),
    0 10px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.12);
  display: inline-flex;
  flex: none;
  height: 64px;
  justify-content: center;
  position: relative;
  width: 64px;
}

.lm .lm-title__badge::after {
  border: 1px solid rgba(255, 249, 236, 0.08);
  border-radius: 50%;
  content: "";
  inset: 5px;
  pointer-events: none;
  position: absolute;
}

.lm .lm-title__badge svg {
  display: block;
  height: 50px;
  width: 50px;
}

.lm .lm-gauge__needle {
  animation: lmNeedle 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
  transform-box: view-box;
  transform-origin: 32px 40px;
}

@keyframes lmNeedle {
  from {
    transform: rotate(-118deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm .lm-gauge__needle {
    animation: none;
  }
}

.lm .lm-title__txt {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lm .lm-title__k {
  align-items: center;
  color: var(--lm-gold);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 9px;
  line-height: 1.4;
}

.lm .lm-title__k::after {
  background: linear-gradient(270deg, rgba(255, 214, 107, 0.75), rgba(55, 242, 168, 0.45) 60%, transparent);
  border-radius: 2px;
  content: "";
  height: 2px;
  width: 64px;
}

.lm .lm-title__q {
  background: linear-gradient(180deg, #fffdf6 22%, #f5e6bb 72%, #e6c77c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.3;
  padding-block: 0.04em 0.14em;
  text-wrap: balance;
}

.lm .lm-title__q b {
  color: var(--lm-gold);
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 214, 107, 0.5);
}

.lm .lm-intro strong {
  color: var(--lm-gold2);
  font-weight: 900;
}

.lm .lm-headnote {
  align-items: flex-start;
  color: var(--lm-muted2);
  display: flex;
  font-size: 13px;
  gap: 7px;
  line-height: 1.7;
  margin: 10px 0 0;
}

.lm .lm-headnote svg {
  color: var(--lm-gold);
  flex: none;
  margin-top: 2px;
  opacity: 0.8;
}

@container lm (min-width: 640px) {
  .lm .lm-title--ready {
    gap: 16px;
  }

  .lm .lm-title__badge {
    height: 76px;
    width: 76px;
  }

  .lm .lm-title__badge svg {
    height: 60px;
    width: 60px;
  }

  .lm .lm-title__k {
    font-size: 15px;
  }

  .lm .lm-title__q {
    font-size: 31px;
  }
}

@container lm (min-width: 1064px) {
  .lm .lm-title__q {
    font-size: 36px;
  }
}

/* «موقعك الآن» and the whole route. */
.lm .lm-now {
  background: linear-gradient(180deg, rgba(2, 14, 10, 0.55), rgba(2, 14, 10, 0.32));
  border: 1px solid rgba(255, 214, 107, 0.22);
  border-radius: 18px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
  display: grid;
  flex: none;
  gap: 10px;
  padding: 12px 16px 13px;
}

.lm .lm-now__top {
  align-items: center;
  display: flex;
  gap: 14px;
}

.lm .lm-now__glyph {
  display: flex;
  filter: drop-shadow(0 0 6px rgba(255, 249, 236, 0.35));
}

.lm .lm-now__glyph svg {
  display: block;
}

.lm .lm-now__txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.lm .lm-now__k {
  color: var(--lm-muted);
  font-size: 12.5px;
  font-weight: 700;
}

.lm .lm-now strong {
  color: var(--lm-gold2);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.lm .lm-now__route {
  display: grid;
  gap: 6px;
}

.lm .lm-now__bar {
  background: rgba(255, 249, 236, 0.1);
  border-radius: 3px;
  display: block;
  height: 5px;
  overflow: hidden;
}

.lm .lm-now__bar i {
  background: linear-gradient(270deg, #fff1b2, #ffd66b 60%, #f2ad1d);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 214, 107, 0.6);
  display: block;
  height: 100%;
  width: var(--p);
}

.lm .lm-now__route-txt {
  color: var(--lm-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.lm .lm-now__route-txt b {
  color: var(--lm-gold2);
  font-weight: 900;
}

/* Body layouts ------------------------------------------------------------ */

.lm .lm-body {
  margin-top: 18px;
  min-width: 0;
}

.lm .lm-mapcol,
.lm .lm-sidecol {
  min-width: 0;
}

.lm .lm-sidecol {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.lm .lm-canvas {
  container-type: inline-size;
  position: relative;
}

.lm .lm-canvas--wide {
  display: none;
}

.lm .lm-canvas--tall {
  margin-inline: auto;
  max-width: 440px;
}

.lm .lm-svg {
  display: block;
  height: auto;
  overflow: visible;
  width: 100%;
}

.lm .lm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.lm .lm-leg {
  align-items: center;
  background: color-mix(in srgb, var(--c, #a9cabc) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #a9cabc) 40%, transparent);
  border-radius: 999px;
  color: var(--lm-text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 5px;
  margin: 0;
  padding: 4px 10px;
  white-space: nowrap;
}

.lm .lm-leg > i {
  background: var(--c);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c);
  height: 10px;
  width: 10px;
}

.lm .lm-leg span {
  color: var(--c);
  font-weight: 900;
}

.lm .lm-leg svg {
  color: var(--c);
  height: 14px;
  width: 14px;
}

.lm .lm-leg--all {
  --c: #9bffd2;
  background: rgba(55, 242, 168, 0.08);
  border-color: rgba(55, 242, 168, 0.35);
}

.lm .lm-leg--all > i {
  margin-inline-end: -2px;
}

/* Phones: the three pills share one row. */
@container lm (max-width: 419.98px) {
  .lm .lm-legend:not(:has(.lm-leg--all)) {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lm .lm-leg {
    font-size: 12px;
    gap: 4px;
    justify-content: center;
    min-width: 0;
    padding: 4px 5px;
  }

  .lm .lm-leg > i {
    height: 8px;
    width: 8px;
  }

  .lm .lm-leg:not(.lm-leg--all) svg {
    display: none;
  }

  .lm .lm-leg.is-met span {
    color: #9bffd2;
  }
}

.lm .lm-dialact {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

@container lm (min-width: 640px) {
  .lm__in {
    padding: 28px 26px 22px;
  }

  .lm .lm-title {
    font-size: 30px;
  }

  .lm .lm-intro {
    font-size: 15px;
  }

  .lm .lm-body {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(270px, 40%) minmax(0, 1fr);
  }

  .lm .lm-sidecol {
    margin-top: 0;
  }
}

@container lm (min-width: 820px) {
  .lm .lm-head {
    align-items: flex-start;
    flex-direction: row;
    gap: 20px 32px;
    justify-content: space-between;
  }

  .lm .lm-now {
    max-width: 360px;
    min-width: 290px;
  }
}

@container lm (min-width: 1064px) {
  .lm__in {
    padding: 34px 32px 26px;
  }

  .lm .lm-title {
    font-size: 34px;
  }

  .lm .lm-body {
    column-gap: 0;
    grid-template-areas:
      "canvas canvas"
      "lines act"
      "board board";
    grid-template-columns: minmax(0, 1fr) 33%;
    margin-top: 10px;
    row-gap: 14px;
  }

  .lm .lm-mapcol,
  .lm .lm-sidecol {
    display: contents;
  }

  .lm .lm-canvas--wide {
    display: block;
    grid-area: canvas;
  }

  .lm .lm-canvas--tall,
  .lm .lm-legend {
    display: none;
  }

  .lm .lm-dialact {
    align-self: start;
    grid-area: act;
    margin-top: -4px;
  }

  .lm .lm-lines {
    grid-area: lines;
  }

  .lm .lm-board {
    grid-area: board;
  }
}

/* SVG typography (user units; the SVG scales with its box) -------------- */

.lm .lm-svg text,
.lm-goal .lm-goal-svg text {
  font-family: var(--lm-font);
}

.lm .t-key { fill: #a9cabc; font-size: 13.5px; font-weight: 700; }
.lm .t-badge { fill: #fff9ec; font-size: 14px; font-weight: 800; }
.lm .t-badgen { font-size: 13.5px; font-weight: 800; }
.lm .t-warn { fill: #1a1000; font-size: 12.5px; font-weight: 900; }
.lm .t-start { fill: #a9cabc; font-size: 14.2px; font-weight: 700; }
.lm .t-snum { fill: #93b6a7; font-size: 18px; font-weight: 800; }
.lm .t-snum--next { fill: #ffd66b; font-weight: 900; }
.lm .t-snum--done { fill: #fff9ec; font-weight: 900; }
.lm .t-capn { fill: #a9cabc; font-size: 14px; font-weight: 800; }
.lm .t-capn--next { fill: #ffd66b; font-weight: 900; }
.lm .t-capn--done { fill: #0a3a28; font-weight: 900; }
.lm .t-sname { fill: #fff9ec; font-size: 15px; font-weight: 800; }
.lm .t-sname.is-dim { fill: #cfe3d9; }
.lm .t-ssub { fill: #a9cabc; font-size: 13.5px; font-weight: 500; }
.lm .t-st { font-size: 13.5px; font-weight: 800; }
.lm .t-st--done { fill: #37f2a8; }
.lm .t-st--here { fill: #fff9ec; }
.lm .t-st--next { fill: #ffd66b; }
.lm .t-st--future { fill: #93b6a7; font-weight: 700; }
.lm .t-tag { fill: #06231b; font-size: 14.5px; font-weight: 900; }
.lm .t-tag2 { fill: #34554a; font-size: 13px; font-weight: 700; }
.lm .t-scale,
.lm-goal .t-scale { fill: #93b6a7; font-size: 13px; font-weight: 700; }
.lm .t-gap,
.lm-goal .t-gap { fill: #ffd66b; font-size: 14px; font-weight: 900; }
.lm .t-over { fill: #9bffd2; font-size: 15px; font-weight: 900; }
.lm .t-over--quiet { fill: #fff1b2; }

/* The strip map renders narrower than its viewBox on phones. */
.lm .lm-svg--tall .t-sname { font-size: 15.5px; }
.lm .lm-svg--tall .t-ssub,
.lm .lm-svg--tall .t-st,
.lm .lm-svg--tall .t-tag2,
.lm .lm-svg--tall .t-scale { font-size: 14.2px; }
.lm .lm-svg--tall .t-tag { font-size: 14.5px; }
.lm .lm-svg--tall .t-gap,
.lm .lm-svg--tall .t-over { font-size: 15px; }

/* The medallion's words: real text laid over the dial ------------------- */

.lm .lm-medal {
  align-content: center;
  display: grid;
  justify-items: center;
  left: var(--mx);
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: var(--my);
  transform: translate(-50%, -50%);
  width: 16cqw;
}

.lm .lm-medal--tall {
  width: 44cqw;
}

.lm .lm-medal__k {
  color: #e9cf8a;
  font-size: max(12px, 1.25cqw);
  font-weight: 800;
  line-height: 1.3;
}

.lm .lm-medal__num {
  background: linear-gradient(180deg, #fffbe8 0%, #ffe08a 45%, #f0a92a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 201, 74, 0.5));
  font-size: 7.9cqw;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  padding-top: 0.06em;
}

.lm .lm-medal__rule {
  background: linear-gradient(90deg, transparent, rgba(255, 214, 107, 0.45), transparent);
  height: 1px;
  margin: 1px 0 3px;
  width: 50%;
}

.lm .lm-medal__sub {
  color: #a9cabc;
  font-size: max(12px, 1.2cqw);
  font-weight: 700;
}

.lm .lm-medal__est {
  color: #c7ffe6;
  font-size: max(12px, 1.3cqw);
  font-weight: 800;
  white-space: nowrap;
}

.lm .lm-medal__est b {
  color: #9bffd2;
  font-weight: 900;
}

.lm .lm-medal__invite {
  background: linear-gradient(180deg, #fffbe8 0%, #ffe08a 50%, #f0a92a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 201, 74, 0.45));
  font-size: 2.4cqw;
  font-weight: 900;
  line-height: 1.35;
  margin: 2px 0;
}

.lm .lm-medal--tall .lm-medal__k { font-size: max(12px, 4.5cqw); }
.lm .lm-medal--tall .lm-medal__num { font-size: 22cqw; }
.lm .lm-medal--tall .lm-medal__sub { font-size: max(12px, 4.2cqw); }
.lm .lm-medal--tall .lm-medal__est { font-size: max(12px, 4.6cqw); }
.lm .lm-medal--tall .lm-medal__invite { font-size: 7.8cqw; }

/* Buttons and links ------------------------------------------------------- */

.lm .lm-edit {
  align-items: center;
  background: rgba(255, 214, 107, 0.08);
  border: 1px solid rgba(255, 214, 107, 0.34);
  border-radius: 999px;
  color: var(--lm-gold2);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 7px;
  padding: 9px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.lm .lm-edit:hover {
  background: rgba(255, 214, 107, 0.16);
  color: var(--lm-gold2);
}

.lm .lm-btn,
.lm-goal .lm-btn {
  align-items: center;
  align-self: flex-start;
  background: linear-gradient(135deg, #fff3c2, #ffd66b 42%, #f2ad1d);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(242, 173, 29, 0.28), inset 0 1px rgba(255, 255, 255, 0.7), inset 0 -2px rgba(150, 90, 0, 0.25);
  color: #1d1300;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--lm-font);
  font-size: 15px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  line-height: 1.35;
  margin-top: 6px;
  padding: 13px 20px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.lm .lm-btn:hover,
.lm-goal .lm-btn:hover {
  box-shadow: 0 16px 36px rgba(242, 173, 29, 0.36), inset 0 1px rgba(255, 255, 255, 0.7);
  color: #1d1300;
  transform: translateY(-2px);
}

.lm .lm-btn svg,
.lm-goal .lm-btn svg {
  flex: none;
}

.lm .lm-btn:focus-visible,
.lm .lm-edit:focus-visible,
.lm .lm-line__next:focus-visible,
.lm .lm-textlink:focus-visible,
.lm .lm-formula summary:focus-visible,
.lm-goal a:focus-visible,
.lm-goal button:focus-visible {
  border-radius: 8px;
  outline: 3px solid #9bffd2;
  outline-offset: 3px;
}

.lm .lm-textlink {
  color: var(--lm-soft);
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 4px;
  text-underline-offset: 4px;
}

/* Line status ------------------------------------------------------------- */

.lm .lm-lines {
  background: linear-gradient(180deg, rgba(1, 12, 9, 0.46), rgba(1, 12, 9, 0.26));
  border: 1px solid var(--lm-rule);
  border-radius: 20px;
  container-type: inline-size;
  min-width: 0;
  padding: 15px 14px 14px;
}

.lm .lm-lines__head h3 {
  color: var(--lm-text);
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.lm .lm-lines__head p {
  color: var(--lm-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 3px 0 0;
}

.lm .lm-lines__list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

@container (min-width: 540px) {
  .lm .lm-lines__list {
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mid-width: one compact row per line, the name beside its facts. */
@container (min-width: 360px) and (max-width: 539.98px) {
  .lm .lm-line {
    column-gap: 12px;
    grid-template-columns: 5.6em minmax(0, 1fr);
    padding: 10px 14px 10px 12px;
    row-gap: 3px;
  }

  .lm .lm-line::before {
    border-radius: 3px 0 0 3px;
    height: auto;
    inset: 10px auto;
    inset-inline-start: -1px;
    width: 3px;
  }

  .lm .lm-line__name {
    align-self: start;
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .lm .lm-line > :not(.lm-line__name) {
    grid-column: 2;
  }
}

.lm .lm-line {
  align-content: start;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 80%);
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
  border-radius: 14px;
  display: grid;
  gap: 5px;
  margin: 0;
  min-width: 0;
  padding: 11px 12px;
  position: relative;
}

.lm .lm-line::before {
  background: var(--c);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 12px var(--c);
  content: "";
  height: 3px;
  inset: -1px 14px auto;
  position: absolute;
}

.lm .lm-line.is-blocked {
  background: linear-gradient(180deg, rgba(255, 180, 92, 0.13), transparent 80%);
  border-color: rgba(255, 180, 92, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 180, 92, 0.18), 0 10px 26px rgba(255, 180, 92, 0.08);
}

.lm .lm-line__name {
  align-items: center;
  color: var(--c);
  display: flex;
  font-size: 15px;
  font-weight: 900;
  gap: 7px;
  margin: 0;
}

.lm .lm-line__name i {
  background: var(--c);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c);
  flex: none;
  height: 9px;
  width: 9px;
}

.lm .lm-line__fact,
.lm .lm-line__trend {
  align-items: center;
  color: var(--lm-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 13.5px;
  gap: 4px 6px;
  line-height: 1.55;
  margin: 0;
}

.lm .lm-line__fact b,
.lm .lm-line__trend b {
  color: var(--lm-text);
  font-weight: 900;
}

.lm .lm-line__fact svg {
  color: var(--lm-green);
  flex: none;
}

.lm .lm-line__fact.is-met {
  color: var(--lm-green2);
}

.lm .lm-line__fact.is-warn {
  color: #ffdcb0;
}

.lm .lm-line__fact.is-warn b:not(.lm-line__warn) {
  color: #ffc98a;
}

.lm .lm-line__warn {
  background: var(--lm-warn);
  border-radius: 50%;
  color: #1a1000 !important;
  display: inline-grid;
  flex: none;
  font-size: 12px;
  height: 18px;
  place-items: center;
  width: 18px;
}

.lm .lm-line__trend > span {
  color: var(--lm-muted);
}

.lm .lm-line__trend svg {
  color: var(--lm-muted);
  flex: none;
}

.lm .lm-line__trend.is-up svg {
  color: var(--lm-green);
}

.lm .lm-line__trend.is-down svg {
  color: var(--lm-warn);
}

.lm .lm-line__next {
  align-items: center;
  color: var(--lm-gold2);
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 800;
  gap: 6px;
  justify-self: start;
  margin-top: 2px;
  text-decoration: none;
}

.lm .lm-line__next small {
  color: var(--lm-muted);
  font-size: 13px;
  font-weight: 700;
}

.lm .lm-line__next svg {
  flex: none;
  height: 15px;
  width: 15px;
}

.lm .lm-line__next:hover {
  color: var(--lm-gold2);
}

.lm .lm-line__next:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The departure board ------------------------------------------------------ */

.lm .lm-board {
  background: linear-gradient(180deg, rgba(1, 12, 9, 0.62), rgba(1, 12, 9, 0.38));
  border: 1px solid var(--lm-rule);
  border-radius: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -18px 40px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 16px 16px 18px;
  position: relative;
}

.lm .lm-board::before {
  background: linear-gradient(90deg, transparent, rgba(255, 214, 107, 0.55), transparent);
  content: "";
  height: 1px;
  inset: -1px 22% auto;
  position: absolute;
}

.lm .lm-board--ready {
  border-color: rgba(55, 242, 168, 0.24);
}

.lm .lm-board--ready::before {
  background: linear-gradient(90deg, transparent, rgba(55, 242, 168, 0.7), transparent);
}

.lm .lm-board--practice::before,
.lm .lm-board--blocked::before {
  background: linear-gradient(90deg, transparent, rgba(255, 180, 92, 0.7), transparent);
}

.lm .lm-board__rule {
  display: none;
}

.lm .lm-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 0;
}

.lm .lm-cell + .lm-board__rule + .lm-cell {
  border-top: 1px solid var(--lm-rule);
}

.lm .lm-cell:first-child {
  padding-top: 0;
}

.lm .lm-cell:last-child {
  padding-bottom: 0;
}

.lm .lm-k {
  align-items: center;
  color: var(--lm-muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.lm .lm-k svg {
  color: var(--lm-gold);
  height: 18px;
  width: 18px;
}

.lm .lm-v {
  color: var(--lm-gold2);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.lm .lm-s,
.lm-goal .lm-s {
  color: var(--lm-muted);
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0;
}

.lm .lm-s b {
  color: var(--lm-text);
  font-weight: 900;
}

.lm .lm-big {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.lm .lm-big b {
  color: #fff9ec;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 249, 236, 0.25);
}

.lm .lm-big span {
  color: var(--lm-soft);
  font-size: 15px;
  font-weight: 800;
}

.lm .lm-why {
  color: var(--lm-soft);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}

.lm .lm-verdict {
  align-items: center;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  gap: 10px;
  line-height: 1.35;
  margin: 0;
}

.lm .lm-verdict svg {
  flex: none;
}

.lm .is-ready .lm-verdict {
  color: #9bffd2;
  text-shadow: 0 0 22px rgba(55, 242, 168, 0.35);
}

.lm .is-ready .lm-verdict svg {
  color: #37f2a8;
}

.lm .is-practice .lm-verdict,
.lm .is-blocked .lm-verdict {
  color: #ffd9a8;
}

.lm .is-practice .lm-verdict svg,
.lm .is-blocked .lm-verdict svg {
  color: var(--lm-warn);
}

.lm .lm-verdict--ask {
  color: var(--lm-gold2);
  font-size: 18px;
}

.lm .lm-verdict--ask svg {
  color: var(--lm-gold);
  height: 24px;
  width: 24px;
}

.lm .lm-rules {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.lm .lm-rules li {
  align-items: flex-start;
  color: var(--lm-soft);
  display: flex;
  font-size: 14px;
  gap: 9px;
  line-height: 1.65;
  margin: 0;
}

.lm .lm-rules li b {
  color: var(--lm-gold);
  font-weight: 900;
}

.lm .lm-rules__mark {
  border: 1.5px solid rgba(255, 249, 236, 0.3);
  border-radius: 50%;
  color: #1a1000;
  display: inline-grid;
  flex: none;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  height: 20px;
  margin-top: 2px;
  place-items: center;
  width: 20px;
}

.lm .lm-rules__mark.is-met {
  background: #37f2a8;
  border-color: #37f2a8;
  color: #06231b;
}

.lm .lm-rules__mark.is-met svg {
  height: 13px;
  width: 13px;
}

.lm .lm-rules__mark.is-open {
  background: var(--lm-warn);
  border-color: var(--lm-warn);
}

.lm .lm-formula {
  margin-top: 4px;
}

.lm .lm-formula summary {
  color: var(--lm-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style-position: inside;
}

.lm .lm-formula p {
  color: var(--lm-muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 6px 0 0;
}

.lm .lm-formula b {
  color: var(--lm-soft);
}

.lm .lm-cell--go .lm-btn {
  align-self: stretch;
}

@container lm (min-width: 1064px) {
  .lm .lm-board {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr);
    padding: 22px 24px;
  }

  .lm .lm-board__rule {
    background: linear-gradient(180deg, transparent, rgba(183, 255, 225, 0.16), transparent);
    display: block;
    margin: 2px 22px;
    width: 1px;
  }

  .lm .lm-cell {
    padding: 0;
  }

  .lm .lm-cell + .lm-board__rule + .lm-cell {
    border-top: 0;
  }

  .lm .lm-cell--go .lm-btn {
    align-self: flex-start;
  }

  .lm .lm-lines {
    margin-inline-end: 12px;
  }
}

/* Station results ---------------------------------------------------------- */

.lm .lm-results {
  margin-top: 18px;
  min-width: 0;
}

.lm .lm-results__head h3 {
  color: var(--lm-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
}

.lm .lm-results__head p {
  color: var(--lm-muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 2px 0 0;
}

.lm .lm-results__list {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.lm .lm-result {
  background: linear-gradient(180deg, rgba(1, 12, 9, 0.55), rgba(1, 12, 9, 0.32));
  border: 1px solid var(--lm-rule);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  min-width: 0;
  padding: 16px 16px 14px;
  position: relative;
}

.lm .lm-result::before {
  background: linear-gradient(90deg, transparent, rgba(255, 214, 107, 0.45), transparent);
  content: "";
  height: 1px;
  inset: -1px 18% auto;
  position: absolute;
}

.lm .lm-result.is-met::before,
.lm .lm-result.is-ready::before {
  background: linear-gradient(90deg, transparent, rgba(55, 242, 168, 0.65), transparent);
}

.lm .lm-result.is-practice::before,
.lm .lm-result.is-blocked::before {
  background: linear-gradient(90deg, transparent, rgba(255, 180, 92, 0.65), transparent);
}

.lm .lm-result.is-latest {
  border-color: rgba(255, 214, 107, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 214, 107, 0.06), 0 14px 36px rgba(0, 0, 0, 0.22);
}

.lm .lm-result.is-ready.is-latest {
  border-color: rgba(55, 242, 168, 0.3);
}

.lm .lm-result__top {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.lm .lm-result__n {
  background: #fff9ec;
  border-radius: 999px;
  color: #0a7a48;
  display: inline-grid;
  flex: none;
  font-size: 13px;
  font-weight: 900;
  height: 26px;
  place-items: center;
  width: 26px;
}

.lm .lm-result__name {
  color: var(--lm-muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
}

.lm .lm-result__name strong {
  color: var(--lm-gold2);
  font-size: 15.5px;
  font-weight: 900;
}

.lm .lm-result__score {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.lm .lm-result__num {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin: 0;
}

.lm .lm-result__num b {
  color: #fff9ec;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 249, 236, 0.22);
}

.lm .lm-result__num span {
  color: var(--lm-muted);
  font-size: 14px;
  font-weight: 800;
}

.lm .lm-result__chip {
  align-items: center;
  border: 1px solid;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 5px;
  line-height: 1.4;
  padding: 4px 11px;
}

.lm .lm-result__chip svg {
  height: 14px;
  width: 14px;
}

.lm .lm-result__chip.is-met,
.lm .lm-result__chip.is-ready {
  background: rgba(55, 242, 168, 0.1);
  border-color: rgba(55, 242, 168, 0.38);
  color: #9bffd2;
}

.lm .lm-result__chip.is-gap {
  background: rgba(255, 214, 107, 0.09);
  border-color: rgba(255, 214, 107, 0.36);
  color: var(--lm-gold2);
}

.lm .lm-result__chip.is-warn {
  background: rgba(255, 180, 92, 0.1);
  border-color: rgba(255, 180, 92, 0.4);
  color: #ffd9a8;
}

.lm .lm-result__msg {
  color: var(--lm-soft);
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0;
}

.lm .lm-result__msg b {
  color: var(--lm-text);
  font-weight: 900;
}

.lm .lm-result__basis {
  border-top: 1px solid var(--lm-rule);
  color: var(--lm-muted2);
  font-size: 12.5px;
  line-height: 1.6;
  margin: auto 0 0;
  padding-top: 9px;
}

/* A station still ahead: a quiet placeholder, shown on wide screens only. */
.lm .lm-result.is-ahead {
  background: transparent;
  border: 1.5px dashed rgba(255, 249, 236, 0.16);
  box-shadow: none;
  display: none;
  justify-content: center;
}

.lm .lm-result.is-ahead::before {
  display: none;
}

.lm .lm-result.is-ahead .lm-result__n {
  background: transparent;
  border: 1.5px solid rgba(255, 249, 236, 0.35);
  color: var(--lm-muted);
}

.lm .lm-result.is-ahead .lm-result__name strong {
  color: var(--lm-muted);
}

.lm .lm-result.is-ahead .lm-result__msg {
  color: var(--lm-muted2);
  font-size: 13.5px;
}

@container lm (min-width: 820px) {
  .lm .lm-results__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lm .lm-result.is-ahead {
    display: flex;
  }
}

/* The disclaimer ---------------------------------------------------------- */

.lm .lm-disc,
.lm-goal .lm-disc {
  align-items: flex-start;
  color: var(--lm-muted2);
  display: flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.7;
  margin: 16px 4px 0;
}

.lm .lm-disc svg,
.lm-goal .lm-disc svg {
  color: var(--lm-muted);
  flex: none;
  margin-top: 2px;
}

/* ---------------------------------------------------------------------------
 * Motion (at most three looping animations in any one state)
 * ------------------------------------------------------------------------ */

.lm-halo {
  animation: lmHalo 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.lm-next {
  animation: lmNext 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.lm-flow {
  animation: lmFlow 2.8s linear infinite;
}

.lm-scan {
  animation: lmScan 9s linear infinite;
}

.lm-march {
  animation: lmMarch 1.2s linear infinite;
}

.lm-readyglow {
  animation: lmBreath 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.lm-draw {
  animation: lmDraw 1.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.lm-spark {
  animation: lmSpark 2.2s ease-in-out 3;
  transform-box: fill-box;
  transform-origin: center;
}

.is-offscreen .lm-halo,
.is-offscreen .lm-next,
.is-offscreen .lm-flow,
.is-offscreen .lm-scan,
.is-offscreen .lm-march,
.is-offscreen .lm-readyglow {
  animation-play-state: paused;
}

@keyframes lmHalo { 0% { opacity: 0.55; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes lmNext { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7, 1.35); } }
@keyframes lmFlow { to { stroke-dashoffset: -150; } }
@keyframes lmScan { to { transform: rotate(300deg); } }
@keyframes lmDraw { to { stroke-dashoffset: 0; } }
@keyframes lmMarch { to { stroke-dashoffset: -16; } }
@keyframes lmBreath { 0%, 100% { opacity: 0.6; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes lmSpark { 0%, 100% { opacity: 0.35; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .lm-halo,
  .lm-next,
  .lm-flow,
  .lm-scan,
  .lm-march,
  .lm-readyglow,
  .lm-spark {
    animation: none;
  }

  .lm-halo { opacity: 0.22; }
  .lm-next { opacity: 0; }
  .lm-flow { opacity: 0; }

  .lm-draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .lm .lm-btn,
  .lm-goal .lm-btn,
  .lm-goal .lm-goal__fill {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
 * «هدفي»
 * ------------------------------------------------------------------------ */

.lm-goal {
  background:
    radial-gradient(40% 60% at 22% 42%, rgba(255, 214, 107, 0.13), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(55, 242, 168, 0.08), transparent 70%),
    linear-gradient(158deg, #113a2d 0%, #0a271e 50%, #05170f 100%);
  border: 1px solid rgba(183, 255, 225, 0.15);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.07);
  container: lmgoal / inline-size;
  isolation: isolate;
  margin: 8px 0 32px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.lm-goal::before {
  background: linear-gradient(90deg, #ffd66b, #37f2a8 45%, #52ecff 70%, #b99cff);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  opacity: 0.9;
  position: absolute;
}

.lm-goal__in {
  padding: 20px 14px 20px;
}

.lm-goal .lm-goal__top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lm-goal .lm-goal__back {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(183, 255, 225, 0.14);
  border-radius: 999px;
  color: var(--lm-soft);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  padding: 8px 16px 8px 14px;
  text-decoration: none;
}

.lm-goal .lm-goal__back:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--lm-text);
}

.lm-goal .lm-goal__crumb {
  color: var(--lm-muted2);
  font-size: 14px;
  font-weight: 700;
}

.lm-goal .lm-goal__crumb::before {
  content: "/";
  margin-inline-end: 12px;
  opacity: 0.5;
}

.lm-goal .lm-goal__saved,
.lm-goal .lm-goal__error {
  align-items: center;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 700;
  gap: 8px 12px;
  line-height: 1.7;
  margin: 16px 0 0;
  padding: 12px 16px;
}

.lm-goal .lm-goal__saved {
  background: linear-gradient(90deg, rgba(55, 242, 168, 0.14), rgba(55, 242, 168, 0.04));
  border: 1px solid rgba(55, 242, 168, 0.3);
  color: #d8ffee;
}

.lm-goal .lm-goal__error {
  background: rgba(255, 180, 92, 0.1);
  border: 1px solid rgba(255, 180, 92, 0.45);
  color: #ffe2bd;
}

.lm-goal .lm-goal__saved svg {
  color: #37f2a8;
  flex: none;
  height: 20px;
  width: 20px;
}

.lm-goal .lm-goal__saved span {
  flex: 1 1 220px;
}

.lm-goal .lm-goal__saved b {
  color: var(--lm-gold);
}

.lm-goal .lm-goal__saved a {
  color: var(--lm-green2);
  font-weight: 800;
  text-underline-offset: 4px;
}

.lm-goal .lm-goal__form {
  margin: 0;
}

.lm-goal .lm-goal__grid {
  display: grid;
  grid-template-areas: "head" "dial" "mean" "act" "disc";
  grid-template-columns: minmax(0, 1fr);
  margin-top: 20px;
}

.lm-goal .lm-goal__head { grid-area: head; }
.lm-goal .lm-goal__dial { grid-area: dial; margin: 14px auto 0; max-width: 470px; min-width: 0; width: 100%; }
.lm-goal .lm-goal__block--mean { grid-area: mean; }
.lm-goal .lm-goal__actions { grid-area: act; }
.lm-goal .lm-goal__disc { grid-area: disc; margin-top: 24px; }

.lm-goal .lm-goal__title {
  background: linear-gradient(180deg, #fffdf6 30%, #e9dcb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.25;
  margin: 4px 0 6px;
  padding-block: 0.04em 0.16em;
}

.lm-goal .lm-goal__lead {
  color: var(--lm-muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  max-width: 56ch;
}

.lm-goal .lm-goal__face {
  container: lmface / inline-size;
  position: relative;
}

.lm-goal .lm-goal-svg {
  display: block;
  height: auto;
  overflow: visible;
  touch-action: pan-y;
  width: 100%;
}

.lm-goal .lm-goal-svg--compact {
  display: none;
}

/* The dial renders small on phones: its labels are drawn larger. */
.lm-goal .lm-goal-svg .t-scale { font-size: 18px; }
.lm-goal .lm-goal-svg .t-gap { font-size: 18px; }
.lm-goal .lm-goal-svg--compact .t-scale,
.lm-goal .lm-goal-svg--compact .t-gap { font-size: 20px; }

.lm-goal .lm-goal__core {
  display: grid;
  gap: 2px;
  justify-items: center;
  left: var(--core-x, 43.83%);
  position: absolute;
  top: 49.3%;
  transform: translate(-50%, -50%);
  width: 44%;
}

@container lmface (max-width: 399px) {
  .lm-goal .lm-goal-svg--wide { display: none; }
  .lm-goal .lm-goal-svg--compact { display: block; }
  .lm-goal .lm-goal__core { --core-x: 50%; width: 52%; }
  .lm-goal .lm-goal__long { display: none; }
}

.lm-goal .lm-goal__label {
  color: #e9cf8a;
  font-size: max(12px, 3cqw);
  font-weight: 800;
}

.lm-goal .lm-goal__num {
  -moz-appearance: textfield;
  appearance: textfield;
  background: transparent;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  caret-color: #fff1b2;
  color: #ffe08a;
  font-family: var(--lm-font);
  font-size: 21cqw;
  font-weight: 900;
  height: auto;
  line-height: 1;
  margin: 0;
  min-height: 0;
  padding: 0.04em 0 0;
  text-align: center;
  text-shadow: 0 0 28px rgba(255, 201, 74, 0.55), 0 2px 0 rgba(120, 70, 0, 0.35);
  width: 100%;
}

.lm-goal .lm-goal__num::placeholder {
  color: rgba(255, 224, 138, 0.45);
}

.lm-goal .lm-goal__num::-webkit-outer-spin-button,
.lm-goal .lm-goal__num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lm-goal .lm-goal__num:focus {
  background: rgba(255, 214, 107, 0.07);
  box-shadow: 0 0 0 2px rgba(255, 214, 107, 0.5);
  outline: none;
}

.lm-goal .lm-goal__of {
  color: #a9cabc;
  font-size: max(12px, 2.8cqw);
  font-weight: 700;
}

.lm-goal .lm-goal__ctl {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 6px auto 0;
  max-width: 420px;
}

.lm-goal .lm-goal__ctl[hidden] {
  display: none;
}

.lm-goal .lm-goal__step {
  background: rgba(255, 214, 107, 0.08);
  border: 1px solid rgba(255, 214, 107, 0.36);
  border-radius: 50%;
  color: var(--lm-gold2);
  cursor: pointer;
  flex: none;
  font-family: var(--lm-font);
  font-size: 22px;
  font-weight: 800;
  height: 44px;
  line-height: 1;
  padding: 0;
  width: 44px;
}

.lm-goal .lm-goal__step:hover {
  background: rgba(255, 214, 107, 0.16);
}

.lm-goal .lm-goal__range {
  flex: 1;
  min-width: 0;
  padding-bottom: 24px;
  position: relative;
}

.lm-goal .lm-goal__range input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  direction: rtl;
  height: 30px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.lm-goal .lm-goal__range input::-webkit-slider-runnable-track {
  background: linear-gradient(270deg, rgba(255, 214, 107, 0.3), rgba(255, 214, 107, 0.78) calc(var(--v) * 1%), rgba(255, 249, 236, 0.1) calc(var(--v) * 1%));
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 249, 236, 0.06);
  height: 8px;
}

.lm-goal .lm-goal__range input::-moz-range-track {
  background: rgba(255, 249, 236, 0.1);
  border-radius: 4px;
  height: 8px;
}

.lm-goal .lm-goal__range input::-moz-range-progress {
  background: rgba(255, 214, 107, 0.7);
  border-radius: 4px;
  height: 8px;
}

.lm-goal .lm-goal__range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: linear-gradient(180deg, #fff9ec, #ffd66b);
  border-radius: 5px;
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.25), 0 0 18px rgba(255, 214, 107, 0.7);
  height: 30px;
  margin-top: -11px;
  width: 12px;
}

.lm-goal .lm-goal__range input::-moz-range-thumb {
  background: linear-gradient(180deg, #fff9ec, #ffd66b);
  border: 0;
  border-radius: 5px;
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.25), 0 0 18px rgba(255, 214, 107, 0.7);
  height: 30px;
  width: 12px;
}

.lm-goal .lm-goal__range input:focus-visible {
  border-radius: 6px;
  outline: 3px solid #9bffd2;
  outline-offset: 4px;
}

.lm-goal .lm-goal__how {
  color: #a9cabc;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.8;
  margin: 4px auto 0;
  max-width: 420px;
  text-align: center;
  text-wrap: pretty;
}

.lm-goal .lm-goal__how svg {
  color: var(--lm-gold2);
  margin-inline-end: 6px;
  vertical-align: -3px;
}

.lm-goal .lm-goal__key {
  border: 1px solid rgba(255, 214, 107, 0.36);
  border-radius: 50%;
  color: var(--lm-gold2);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  height: 20px;
  line-height: 18px;
  margin: 0 2px;
  text-align: center;
  vertical-align: 1px;
  width: 20px;
}

.lm-goal .lm-goal__you {
  align-items: center;
  bottom: 0;
  color: #9bffd2;
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 800;
  gap: 5px;
  position: absolute;
  right: calc(var(--at) * 1% - var(--at) * 0.12px + 6px);
  transform: translateX(50%);
  white-space: nowrap;
}

.lm-goal .lm-goal__you i {
  background: #9bffd2;
  border-radius: 50%;
  box-shadow: 0 0 8px #37f2a8;
  height: 8px;
  width: 8px;
}

.lm-goal .lm-goal__block {
  border-top: 1px solid var(--lm-rule);
  margin-top: 24px;
  padding-top: 20px;
}

.lm-goal .lm-goal__block h2 {
  color: var(--lm-text);
  font-size: 19px;
  font-weight: 900;
  margin: 0 0 8px;
}

.lm-goal .lm-goal__muted {
  color: var(--lm-muted);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 14px;
}

.lm-goal .is-gold {
  color: var(--lm-gold) !important;
}

.lm-goal .is-green {
  color: var(--lm-green2) !important;
}

.lm-goal .lm-goal__bar {
  align-items: center;
  display: flex;
  gap: 10px;
}

.lm-goal .lm-goal__seg {
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  flex: var(--w) 1 0;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.lm-goal .lm-goal__fill {
  background: var(--c);
  border-radius: 6px;
  box-shadow: 0 0 14px var(--c);
  inset-block: 0;
  inset-inline-start: 0;
  position: absolute;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lm-goal .lm-goal__parts {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.lm-goal .lm-goal__parts li {
  display: grid;
  flex: var(--w) 1 0;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.lm-goal .lm-goal__pn {
  align-items: center;
  color: var(--lm-soft);
  display: flex;
  font-size: 13.5px;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.lm-goal .lm-goal__pn i {
  background: var(--c);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--c);
  flex: none;
  height: 4px;
  width: 10px;
}

.lm-goal .lm-goal__pv {
  align-items: baseline;
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.lm-goal .lm-goal__pv b {
  color: var(--c);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.lm-goal .lm-goal__pv em {
  color: var(--lm-muted2);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}

.lm-goal .lm-goal__sum {
  color: var(--lm-muted);
  font-size: 15px;
  font-weight: 800;
  margin: 14px 0 0;
}

.lm-goal .lm-goal__sum b {
  font-size: 18px;
}

.lm-goal .lm-goal__actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px 20px;
  margin-top: 28px;
  text-align: center;
}

.lm-goal .lm-goal__save {
  font-size: 16px;
  margin: 0;
  padding: 15px 26px;
}

.lm-goal .lm-goal__ghost {
  color: var(--lm-soft);
  font-size: 14.5px;
  font-weight: 800;
  text-underline-offset: 5px;
}

@container lmgoal (min-width: 640px) {
  .lm-goal__in {
    padding: 28px 28px 26px;
  }

  .lm-goal .lm-goal__title {
    font-size: 38px;
  }

  .lm-goal .lm-goal__lead {
    font-size: 16px;
  }
}

@container lmgoal (min-width: 860px) {
  .lm-goal__in {
    padding: 34px 36px 30px;
  }

  .lm-goal .lm-goal__grid {
    align-items: start;
    column-gap: 48px;
    grid-template-areas:
      "head dial"
      "mean dial"
      "act dial"
      "disc disc";
    grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  }

  .lm-goal .lm-goal__dial {
    align-self: center;
    margin: 0;
  }

  .lm-goal .lm-goal__title {
    font-size: 44px;
  }

  .lm-goal .lm-goal__actions {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    text-align: start;
  }
}
