/* Главный экран по концепту Rev02: Панда в полный рост, прибор на нижней части сцены */
.hero {
  position: relative;
  padding-top: calc(var(--st) + 40px);
  overflow: hidden;
  background: #04080f;
}

.hero .panda {
  position: relative;
}

.hero .panda img {
  display: block;
  width: 100%;
  aspect-ratio: 398 / 500;
  object-fit: cover;
}

/* Улица продолжается под прибором: отражённая и растянутая полоса асфальта из того же кадра */
.hero .panda::after {
  content: none;
}

.hero-bar {
  position: absolute;
  top: var(--st);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.hero-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(34, 211, 238, .45);
}

.hero-sober {
  position: absolute;
  left: 14px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text-2);
}

.hero-icon {
  position: absolute;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text);
}

.hero-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero-gauge {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 4px;
  background:
    linear-gradient(transparent 72%, var(--bg)),
    url("../assets/panda-ground.webp") center top / 100% 100% no-repeat;
  padding: 0 16px 10px;
  text-align: center;
  cursor: pointer;
}

.gauge-title {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, .5);
}

/* Ширина шкалы как в макете: хорда дуги ≈ 54 % ширины экрана */
.hero-gauge .gauge {
  max-width: 65%;
  margin-top: 2px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--st) + 30px);
  background: linear-gradient(#04080f 45%, transparent);
  z-index: 1;
}

/* Эмоция (Current State) — пока только оттенок нижней подсветки: заглушка до набора ассетов эмоций */
.hero .mood-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--tint) 10%, transparent));
  transition: background 1s;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), rgba(255, 72, 0, .6), transparent);
}


.home-body {
  padding: 6px 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ask {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 2px 4px 0;
}

.moods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 0 0;
}

.moods.pulse {
  animation: pulseRow 1s;
}

@keyframes pulseRow {
  30% {
    transform: scale(1.04);
  }
}

.mood {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 4px;
  position: relative;
  color: var(--c);
  transition: transform .25s;
}

.mood svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 55%, transparent));
  transition: transform .3s;
}

.mood::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .35s cubic-bezier(.2, 1.4, .4, 1);
  box-shadow: 0 0 16px -2px var(--c), inset 0 0 12px -4px var(--c);
}

.mood.on::before {
  opacity: 1;
  transform: none;
}

.mood.on svg {
  transform: scale(1.1);
}

.mood .rip {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--c);
  animation: rip .6s ease-out forwards;
  pointer-events: none;
}

@keyframes rip {
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.alert {
  border: 1px solid;
  padding: 10px 12px;
  transition: border-color .6s, background .6s;
}

.alert .t {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  transition: color .6s;
}

.alert p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}

.alert.risk {
  border-color: rgba(255, 77, 106, .45);
  background: rgba(255, 77, 106, .07);
}

.alert.risk .t {
  color: var(--red);
}

.alert.edge {
  border-color: rgba(255, 176, 32, .45);
  background: rgba(255, 176, 32, .06);
}

.alert.edge .t {
  color: var(--yellow);
}

.alert.ok {
  border-color: rgba(61, 220, 151, .45);
  background: rgba(61, 220, 151, .07);
}

.alert.ok .t {
  color: var(--green);
}

.alert.info {
  border-color: rgba(34, 211, 238, .4);
  background: rgba(34, 211, 238, .05);
}

.alert.info .t {
  color: var(--cyan);
}

.next.static {
  animation: none!important;
}

.alert.flip {
  animation: flip .5s;
}

@keyframes flip {
  0% {
    opacity: .2;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
  }
}

.haiku {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.6;
  min-height: 86px;
}

.haiku .ln {
  display: block;
  opacity: 0;
  transform: translateY(6px);
  animation: rise .6s forwards;
  animation-delay: calc(.25s + var(--i) * .55s);
}

.haiku.static .ln {
  animation: none;
  opacity: 1;
  transform: none;
}

.haiku-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.cnt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-soft);
  display: inline-block;
}

.cnt.bump {
  animation: bump .45s;
}

@keyframes bump {
  40% {
    transform: scale(1.45);
    color: #ffd2bf;
    text-shadow: 0 0 12px var(--orange);
  }
}

.tasks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.task {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid var(--line-dim);
  background: rgba(10, 18, 28, .55);
  transition: border-color .35s, background .35s, box-shadow .35s, transform .15s;
}

.task .cb {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(34, 211, 238, .45);
  display: grid;
  place-items: center;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.task .cb svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .45s .1s;
}

.task b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.task small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.task .go {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 14px;
  transition: opacity .2s;
}

.task.done {
  border-color: rgba(34, 211, 238, .6);
  background: rgba(34, 211, 238, .05);
  box-shadow: inset 0 0 18px -10px rgba(34, 211, 238, .8);
}

.task.done .cb {
  background: rgba(34, 211, 238, .14);
  border-color: var(--cyan);
  box-shadow: 0 0 12px -2px rgba(34, 211, 238, .6);
}

.task.done .cb svg {
  stroke-dashoffset: 0;
}

.task.done .go {
  opacity: 0;
}

.task.locked {
  opacity: .7;
}

.finish {
  margin-top: 14px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s, opacity .4s, margin .4s;
}

.finish.show {
  max-height: 70px;
  opacity: 1;
  overflow: visible;
}

.finish .btn {
  animation: btnglow 2.2s ease-in-out infinite;
}

@keyframes btnglow {
  50% {
    box-shadow: 0 0 30px -4px rgba(255, 72, 0, .8), inset 0 0 22px -8px rgba(255, 72, 0, .8);
  }
}

.finish .btn.closed,
.finish .btn.closed:disabled {
  opacity: 1;
  animation: none;
  border-color: var(--green);
  color: #bff3db;
  background: rgba(61, 220, 151, .08);
  box-shadow: 0 0 22px -8px rgba(61, 220, 151, .6);
}

.next .ttl {
  font-size: 17px;
  font-weight: 600;
  margin: 6px 0 4px;
}

.next .swap {
  min-height: 74px;
  transition: opacity .18s ease, transform .18s ease;
}

.next .swap.out {
  opacity: 0;
  transform: translateY(-4px);
}

.next .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.next .row .btn {
  flex: 1 1 140px;
  width: auto;
  height: 42px;
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 0 8px;
}

.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
  text-align: center;
}

.week .d {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 8px;
}

.week .d.today {
  color: var(--cyan);
}

.week .c {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dim);
  background: rgba(10, 18, 28, .5);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  position: relative;
  transition: border-color .5s, box-shadow .5s;
}

.week .c.miss {
  border-color: rgba(255, 77, 106, .5);
  color: var(--red);
  background: rgba(255, 77, 106, .06);
}

.week .c.today {
  border-color: rgba(34, 211, 238, .6);
  padding: 2px;
}

.week .c.today img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.week .c.today.done {
  border-color: var(--green);
  box-shadow: 0 0 14px -2px rgba(61, 220, 151, .7);
}

.week .c .ok {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  display: none;
  place-items: center;
}

.week .c .ok svg {
  width: 10px;
  height: 10px;
  stroke: #04130c;
  stroke-width: 3;
  fill: none;
}

.week .c.today.done .ok {
  display: grid;
  animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both;
  transform: scale(.4);
}

.streak {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--orange-soft);
}

@media (max-width: 380px) {
  .ask {
    font-size: 12px;
    letter-spacing: .04em;
  }
}

.card-h.compact {
  margin-bottom: 8px;
}

.next .card-h {
  margin-bottom: 4px;
}

.week-card .card-h {
  margin-bottom: 0;
}

/* ---------- Настроение: биполярная шкала с подписями ---------- */

/* Кольцо выбора и «рябь» центрируются по иконке, а не по всей кнопке с подписью */
.mood::before {
  content: none;
}

.mood .ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.mood .ico::before {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .35s cubic-bezier(.2, 1.4, .4, 1);
  box-shadow: 0 0 16px -2px var(--c), inset 0 0 12px -4px var(--c);
}

.mood.on .ico::before {
  opacity: 1;
  transform: none;
}

.mood svg {
  width: 30px;
  height: 30px;
}

.mood .rip {
  inset: 0;
  box-sizing: border-box;
}

.mood .name {
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .3s;
}

.mood.on .name {
  color: var(--text);
  font-weight: 600;
}

.mood-axis {
  display: flex;
  justify-content: space-between;
  margin: 6px 14px 0;
  padding-top: 6px;
  border-top: 1px solid var(--line-dim);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Прибор «Состояние сейчас» ---------- */

.home-gauge {
  cursor: pointer;
}

.home-gauge .more {
  color: var(--cyan-soft);
  padding: 6px 0 6px 10px;
  margin: -6px 0;
}

.gauge {
  height: auto;
  max-width: 270px;
  margin: 0 auto;
}

.gauge-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.g-track {
  fill: none;
  stroke-width: 12;
  opacity: .22;
}

.g-track.pos,
.g-rb.pos {
  stroke: var(--pos);
}

.g-track.neg,
.g-rb.neg {
  stroke: var(--neg);
}

.g-rb {
  fill: none;
  stroke-width: 12;
}

.g-cs {
  fill: none;
  stroke-width: 26;
  opacity: .38;
}

.g-cs.pos {
  stroke: var(--pos-soft);
}

.g-cs.neg {
  stroke: var(--neg-soft);
}

.g-rb-edge {
  stroke: var(--text);
  stroke-width: 2;
  opacity: .75;
}

.g-tick {
  stroke: var(--dim);
  stroke-width: 1.5;
}

.g-zero {
  stroke: var(--text-2);
  stroke-width: 2;
}

.g-zero-t,
.g-end {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  fill: var(--muted);
}

.g-zero-t {
  fill: var(--text-2);
}

.g-oc {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55));
}

.g-oc.no-mood {
  fill: var(--bg);
  stroke: var(--text);
  stroke-width: 2;
}

.g-legend,
.g-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
}

.g-legend span,
.g-values span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.g-values b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.g-legend i,
.g-values i {
  display: inline-block;
}

.k-rb {
  width: 16px;
  height: 4px;
  background: var(--pos);
}

.k-cs {
  width: 16px;
  height: 9px;
  background: var(--pos-soft);
  opacity: .5;
}

.k-oc {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
}

.mood-note {
  margin: 8px 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  text-align: center;
}

.alert.risk {
  border-color: color-mix(in srgb, var(--neg) 55%, transparent);
  background: color-mix(in srgb, var(--neg) 8%, transparent);
}

.alert.risk .t {
  color: var(--neg-soft);
}

.alert.ok {
  border-color: color-mix(in srgb, var(--pos) 55%, transparent);
  background: color-mix(in srgb, var(--pos) 8%, transparent);
}

.alert.ok .t {
  color: var(--pos-soft);
}

/* ---------- Циклы ---------- */

.status-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid;
  white-space: nowrap;
}

.status-chip.wait {
  color: var(--yellow);
  border-color: rgba(255, 176, 32, .45);
}

.status-chip.ok {
  color: var(--green);
  border-color: rgba(61, 220, 151, .45);
}

.yday .row,
.next .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.yday .row .btn,
.next .row .btn {
  flex: 1 1 130px;
  width: auto;
  height: 42px;
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 0 8px;
}

.task.auto .cb {
  border-style: dashed;
}

.task.missed {
  border-color: rgba(255, 176, 32, .4);
}

.task.missed small {
  color: var(--yellow);
}

.demo-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .03em;
  color: var(--cyan-soft);
  text-align: left;
}

.finish.show {
  max-height: 110px;
}

.finish-note,
.next-note,
.sheet-note {
  margin: 8px 2px 0;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: .03em;
}

.next .ttl {
  margin-top: 2px;
}

.week .c.wait {
  border-color: rgba(255, 176, 32, .55);
  color: var(--yellow);
}

.week .c.confirmed {
  border-color: rgba(61, 220, 151, .55);
  color: var(--green);
}

.week .c.future {
  opacity: .5;
}

@media (max-width: 360px) {
  .moods {
    gap: 0;
  }
  .mood .name {
    font-size: 10px;
    letter-spacing: -.01em;
  }
  .mood.on .name {
    font-weight: 500;
  }
}

.g-end {
  font-size: 18px;
  font-weight: 500;
}

.g-end.neg {
  fill: var(--neg-soft);
}

.g-end.pos {
  fill: var(--pos-soft);
}

/* ---------- Прибор по концепту Home Rev02 ---------- */

.gauge-svg {
  --g-neg-a: #1f4a68;
  --g-neg-b: #5fa8d3;
  --g-pos-a: #1f8f5a;
  --g-pos-b: #8dfc5c;
}

.g-track {
  stroke-width: 17;
  opacity: 1;
}

/* Градиент лежит под всей шкалой; заливка баланса поверх — ярче и со свечением */
.g-track {
  opacity: .5;
}

.g-rb {
  fill: none;
  stroke-width: 17;
  filter: drop-shadow(0 0 7px rgba(141, 252, 92, .45)) brightness(1.15);
}

.g-cs {
  fill: none;
  stroke: #9fe7ff;
  stroke-width: 24;
  opacity: .28;
}

.g-zero {
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.g-zero-t {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  fill: var(--text);
}

.g-rb-edge {
  stroke: rgba(255, 255, 255, .55);
  stroke-width: 1.5;
}

.g-oc {
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .8));
}

.g-oc.no-mood {
  stroke: rgba(255, 255, 255, .75);
}

.g-end {
  font-family: var(--body);
  font-size: 24px;
  font-weight: 400;
}

.g-end.neg {
  fill: var(--text);
}

.g-end.pos {
  fill: #5ee06a;
}

.g-legend {
  gap: 6px 18px;
  font-size: 13px;
  color: var(--text-2);
}

.g-legend b {
  font-weight: 700;
}

.k-rb-t {
  color: #5ee06a;
}

.k-cs-t {
  color: var(--cyan);
}

.k-oc-t {
  color: var(--text);
}

/* Фокус дня — как в концепте */
.focus-card {
  border-radius: 12px;
  padding: 14px 18px 16px;
}

.focus-card .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

.focus-card .haiku {
  margin-top: 8px;
  min-height: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.hero-sober b {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* Убираем декоративную полосу под сценой — в концепте её нет */
.hero::after {
  content: none;
}

/* Синяя половина ярче к нулю, как в концепте */
.gauge-svg {
  --g-neg-a: #173049;
  --g-neg-b: #4aa6dc;
}

.g-track.neg {
  opacity: .8;
}

.gauge-title {
  font-size: 15px;
}

.hero-gauge .g-legend {
  margin-top: 2px;
  font-size: 12.5px;
}

.hero-gauge .mood-note {
  margin: 6px 0 0;
  font-size: 12px;
}

.hero-gauge {
  padding-bottom: 14px;
}

/* Верх как в концепте: город уходит под статус-бар и шапку, слева меню, справа профиль */
.hero {
  background: #04080f url("../assets/panda-sky.webp") center top / 100% calc(var(--st) + 40px) no-repeat;
}

.hero::before {
  height: calc(var(--st) + 40px);
  background: linear-gradient(rgba(4, 8, 15, .45), transparent);
}

.hero-icon {
  right: 8px;
}


.hero-sober {
  top: calc(var(--st) + 48px);
  left: 12px;
  z-index: 3;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 15, .55);
  font-size: 9.5px;
  letter-spacing: .04em;
}

.hero-sober b {
  font-size: 12px;
}

.hero-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.hero-title {
  font-size: 21px;
}

.focus-card .haiku {
  font-size: 14.5px;
  line-height: 1.45;
}

/* Толщина и знаки как в макете */
.g-track,
.g-rb {
  stroke-width: 24;
}

.g-cs {
  stroke-width: 34;
}

.g-end {
  font-size: 30px;
}

@media (max-width: 360px) {
  .hero-gauge .g-legend {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 11px;
  }
}

/* Счётчик трезвости — на улице слева от стоп, не на персонаже */
.hero .panda .hero-sober {
  top: auto;
  bottom: 10px;
  left: 12px;
}

/* Счётчик трезвости — слева от заголовка прибора, под стопами: персонажа и шкалу не перекрывает */
.hero-gauge .hero-sober {
  top: 2px;
  bottom: auto;
  left: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 3px 7px;
  line-height: 1.15;
  text-align: left;
}

@media (max-width: 360px) {
  .hero-gauge .hero-sober {
    position: static;
    flex-direction: row;
    gap: 4px;
    margin-top: 8px;
  }
}

.task {
  border-radius: 10px;
}

.task .cb {
  border-radius: 6px;
}

.demo-link,
.status-chip {
  border-radius: 8px;
}

.finish .btn.blocked,
.finish .btn.blocked:disabled {
  opacity: 1;
  animation: none;
  height: auto;
  min-height: 50px;
  padding: 10px 12px;
  border-color: rgba(255, 176, 32, .5);
  background: rgba(255, 176, 32, .06);
  box-shadow: none;
  color: var(--yellow);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.demo-link + .demo-link {
  margin-top: 8px;
}

/* Воздух между заголовком, шкалой и легендой */
.hero-gauge .gauge,
.gauge-card .gauge {
  margin-top: 14px;
}

.hero-gauge .g-legend,
.gauge-card .g-values {
  margin-top: 10px;
}

/* ---------- Узкие экраны: без висячих слов и тесных строк ---------- */
.next .label {
  white-space: nowrap;
}

@media (max-width: 360px) {
  .task {
    gap: 10px;
    padding: 12px 10px;
  }
  .task .cb {
    width: 28px;
    height: 28px;
  }
  .task b {
    font-size: 14px;
  }
}
