:root {
  --bt-bg: #03070a;
  --bt-panel: rgba(8, 17, 21, 0.9);
  --bt-panel-soft: rgba(9, 22, 28, 0.76);
  --bt-panel-strong: rgba(13, 22, 27, 0.96);
  --bt-line: rgba(126, 148, 160, 0.22);
  --bt-line-strong: rgba(255, 124, 24, 0.56);
  --bt-text: #f5f7f6;
  --bt-muted: rgba(235, 241, 239, 0.72);
  --bt-subtle: rgba(235, 241, 239, 0.52);
  --bt-accent: #ff7a18;
  --bt-accent-2: #ff9a34;
  --bt-green: #34d66d;
  --bt-red: #ff4b32;
  --bt-blue: #5ab7ff;
  --bt-yellow: #ffd363;
  --bt-radius: 8px;
  --bt-page: min(1210px, calc(100vw - 48px));
  --bt-font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

/* Economic calendar live view */
body.tools-page.economic-calendar-page {
  background: #05090d;
}

.economic-calendar-page .econ-page {
  min-height: 70vh;
  padding: 26px 0 40px;
  background:
    linear-gradient(180deg, rgba(9, 15, 20, 0.96) 0%, rgba(5, 9, 13, 0.98) 52%, #05090d 100%);
}

body.tools-page .bt-site-footer__column a[href="/tools/economic-calendar/"] {
  display: none;
}

.econ-shell {
  width: min(100% - 44px, 1480px);
  margin: 0 auto;
}

.econ-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.econ-intro h1 {
  margin: 0;
  color: #f5f7f8;
  font-size: clamp(36px, 3.4vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.econ-intro p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(236, 242, 246, 0.76);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.52;
}

.econ-help-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 54px;
  border: 1px solid rgba(236, 192, 109, 0.48);
  border-radius: 8px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #efc56d;
  background: rgba(12, 16, 24, 0.74);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 223, 155, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.econ-help-button span {
  display: none;
}

.econ-help-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -84%;
  left: -40%;
  width: 34%;
  height: 268%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 220, 167, 0.42), transparent);
  opacity: 0;
  pointer-events: none;
}

.econ-help-button::after {
  content: "\2192";
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1;
}

.econ-help-button:hover,
.econ-help-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(239, 197, 109, 0.64);
  color: #efc56d;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(243, 190, 93, 0.2),
    inset 0 1px 0 rgba(255, 231, 169, 0.2);
  filter: saturate(1.07);
  outline: none;
}

.econ-help-button:hover::before,
.econ-help-button:focus-visible::before {
  opacity: 1;
  animation: toolsButtonShine 0.8s ease-out;
}

.econ-filters {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(230px, 270px) minmax(230px, 290px) minmax(260px, 310px);
  gap: 14px;
}

.econ-control {
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(128, 148, 160, 0.28);
  border-radius: 8px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: rgba(6, 12, 17, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.econ-control--search {
  grid-template-columns: minmax(0, 1fr) 30px;
}

.econ-control input,
.econ-control select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: rgba(244, 247, 249, 0.9);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.econ-control select option {
  color: #10171c;
  background: #f7f8fa;
}

.econ-control input::placeholder {
  color: rgba(235, 241, 244, 0.4);
}

.econ-control__icon {
  width: 24px;
  height: 24px;
  display: block;
  position: relative;
  color: rgba(235, 241, 244, 0.72);
}

.econ-control__icon--calendar {
  border: 2px solid currentColor;
  border-radius: 4px;
}

.econ-control__icon--calendar::before,
.econ-control__icon--calendar::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.econ-control__icon--calendar::before {
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
}

.econ-control__icon--calendar::after {
  left: 6px;
  top: -5px;
  width: 2px;
  height: 8px;
  box-shadow: 9px 0 0 currentColor;
}

.econ-control__icon--globe {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.econ-control__icon--globe::before,
.econ-control__icon--globe::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.econ-control__icon--globe::before {
  inset: 4px 8px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.econ-control__icon--globe::after {
  left: 3px;
  right: 3px;
  top: 10px;
  border-top: 1px solid currentColor;
}

.econ-control__icon--flag::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 2px;
  height: 18px;
  background: currentColor;
}

.econ-control__icon--flag::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 13px;
  height: 9px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 1px 5px 5px 1px;
}

.econ-control__icon--search {
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: scale(0.72);
}

.econ-control__icon--search::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.econ-stat-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.econ-stat {
  min-width: 0;
  min-height: 94px;
  border: 1px solid rgba(255, 122, 24, 0.42);
  border-radius: 8px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(110deg, rgba(255, 122, 24, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(13, 18, 22, 0.88);
}

.econ-stat__icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: block;
  position: relative;
  background: rgba(255, 122, 24, 0.18);
  color: #ff9a3f;
}

.econ-stat__icon--calendar::before {
  content: "";
  position: absolute;
  inset: 14px 13px 12px;
  border: 3px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 9px 0 rgba(255, 122, 24, 0.18);
}

.econ-stat__icon--fire::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 13px;
  width: 20px;
  height: 30px;
  border-radius: 70% 70% 70% 16%;
  background: linear-gradient(145deg, #ffd36b 0%, #ff8a21 56%, #ff4c1f 100%);
  transform: rotate(38deg);
}

.econ-stat__icon--clock::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.econ-stat__icon--clock::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 23px;
  width: 3px;
  height: 13px;
  background: currentColor;
  box-shadow: 6px 12px 0 -1px currentColor;
}

.econ-stat span:not(.econ-stat__icon) {
  display: block;
  color: rgba(238, 242, 245, 0.74);
  font-size: 15px;
  font-weight: 600;
}

.econ-stat strong {
  display: inline-block;
  margin-top: 3px;
  color: #f7fafb;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.02;
  font-weight: 900;
}

.econ-stat small {
  display: inline-block;
  margin-left: 8px;
  color: rgba(235, 241, 244, 0.62);
  font-size: 14px;
  font-weight: 600;
}

.econ-calendar {
  margin-top: 12px;
  border: 1px solid rgba(128, 148, 160, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 17, 22, 0.9);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}

.econ-table-wrap {
  overflow-x: auto;
}

.econ-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  color: rgba(238, 243, 246, 0.86);
}

.econ-table th {
  height: 48px;
  border-right: 1px solid rgba(128, 148, 160, 0.18);
  padding: 0 22px;
  color: rgba(244, 247, 249, 0.92);
  background: linear-gradient(180deg, rgba(53, 59, 64, 0.82), rgba(31, 37, 42, 0.9));
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.econ-table th:last-child,
.econ-table td:last-child {
  border-right: 0;
}

.econ-table td {
  height: 40px;
  border-top: 1px solid rgba(128, 148, 160, 0.18);
  border-right: 1px solid rgba(128, 148, 160, 0.12);
  padding: 0 22px;
  font-size: 15px;
  vertical-align: middle;
}

.econ-row {
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.econ-row:hover,
.econ-row:focus-visible,
.econ-row.is-open {
  background: rgba(255, 122, 24, 0.055);
  outline: none;
}

.econ-row.is-next {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.78);
}

.econ-row td:first-child {
  white-space: nowrap;
}

.econ-row__toggle {
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
  border: 1px solid rgba(238, 243, 246, 0.24);
  border-radius: 4px;
  display: inline-flex;
  vertical-align: -4px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.econ-row__toggle::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(238, 243, 246, 0.72);
  border-bottom: 2px solid rgba(238, 243, 246, 0.72);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.econ-row.is-open .econ-row__toggle::before {
  top: 7px;
  transform: rotate(225deg);
}

.econ-currency {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.econ-currency__mark {
  width: 24px;
  height: 17px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #071016;
  background: linear-gradient(90deg, #f3f5f6 0 38%, #ff7a18 38% 62%, #2f8fff 62%);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.econ-impact-dots {
  display: inline-flex;
  gap: 7px;
}

.econ-impact-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff251f;
  box-shadow: 0 0 11px rgba(255, 37, 31, 0.28);
}

.econ-impact-dots[data-impact-score="2"] i:not(.is-muted) {
  background: #ff7a18;
  box-shadow: 0 0 11px rgba(255, 122, 24, 0.28);
}

.econ-impact-dots[data-impact-score="1"] i:not(.is-muted) {
  background: rgba(238, 243, 246, 0.58);
  box-shadow: none;
}

.econ-impact-dots i.is-muted {
  background: rgba(238, 243, 246, 0.18);
  box-shadow: none;
}

.econ-title-cell {
  min-width: 390px;
}

.econ-title-cell strong {
  display: block;
  color: rgba(240, 244, 247, 0.9);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.econ-title-cell small {
  display: block;
  margin-top: 3px;
  color: rgba(238, 243, 246, 0.48);
  font-size: 12px;
  line-height: 1.25;
}

.econ-value {
  display: inline-block;
  min-width: 54px;
  color: rgba(238, 243, 246, 0.86);
  font-weight: 900;
  text-align: right;
}

.econ-value.is-positive {
  color: #29c947;
}

.econ-value.is-negative {
  color: #ff2a25;
}

.econ-value.is-empty {
  color: rgba(238, 243, 246, 0.68);
}

.econ-detail-row td {
  height: auto;
  padding: 0;
  background: rgba(232, 235, 240, 0.96);
  color: #2f3d4c;
}

.econ-detail {
  min-height: 154px;
  padding: 28px 28px 26px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1fr) auto;
  align-items: start;
  gap: 36px;
  color: #354252;
}

.econ-detail p {
  margin: 0;
  color: #425267;
  font-size: 16px;
  line-height: 1.48;
}

.econ-detail__copy {
  display: grid;
  gap: 12px;
}

.econ-detail__copy b {
  color: #252d39;
  font-weight: 900;
}

.econ-detail dl {
  margin: 0;
  display: grid;
  gap: 13px;
}

.econ-detail dl div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}

.econ-detail dt {
  color: #252d39;
  font-size: 14px;
  font-weight: 900;
}

.econ-detail dd {
  margin: 0;
  color: #283345;
  font-size: 14px;
  font-weight: 700;
}

.econ-detail__links {
  display: flex;
  gap: 10px;
}

.econ-detail__links a {
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #26445e;
  background: #d3dde8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.econ-no-results td {
  height: 84px;
  color: rgba(238, 243, 246, 0.7);
  text-align: center;
}

.econ-table-footer {
  min-height: 48px;
  border-top: 1px solid rgba(128, 148, 160, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  background: rgba(28, 35, 41, 0.84);
}

.econ-table-footer strong {
  color: #f4f7f9;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.econ-table-footer a {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.econ-table-footer a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid #ff8b2a;
  border-bottom: 2px solid #ff8b2a;
  transform: rotate(45deg);
}

.econ-table-footer a:last-child::before {
  transform: rotate(225deg);
}

.econ-data-line {
  min-height: 46px;
  border-top: 1px solid rgba(128, 148, 160, 0.14);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(238, 243, 246, 0.58);
  font-size: 13px;
  line-height: 1.35;
}

.econ-empty {
  min-height: 280px;
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  align-content: center;
  gap: 12px;
}

.econ-empty h2 {
  margin: 0;
  color: #f6f8fa;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.econ-empty p {
  max-width: 700px;
  margin: 0;
  color: rgba(238, 243, 246, 0.7);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 1220px) {
  .econ-filters,
  .econ-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .econ-detail {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .econ-shell {
    width: min(100% - 24px, 560px);
  }

  .econ-intro,
  .econ-filters,
  .econ-stat-grid {
    grid-template-columns: 1fr;
  }

  .econ-help-button {
    width: fit-content;
  }

  .econ-stat {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px;
  }

  .econ-stat__icon {
    width: 52px;
    height: 52px;
  }

  .econ-data-line {
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .econ-detail {
    padding: 22px 18px;
  }

  .econ-detail dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bt-bg);
}

body.tools-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 24, 0.09), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 122, 24, 0.08), transparent 32%),
    linear-gradient(180deg, #03070a 0%, #071116 42%, #03070a 100%);
  color: var(--bt-text);
  font-family: var(--bt-font);
  letter-spacing: 0;
}

body.tools-page a {
  color: inherit;
}

body.tools-page a.tools-button,
body.tools-page a.econ-help-button {
  color: #efc56d;
}

body.tools-page button,
body.tools-page input,
body.tools-page select {
  font: inherit;
}

.tools-shell {
  width: var(--bt-page);
  margin: 0 auto;
}

.tools-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 10, 0.88);
  backdrop-filter: blur(16px);
}

.tools-header__inner {
  width: min(1210px, calc(100vw - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.tools-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
  color: var(--bt-text);
  text-decoration: none;
}

.tools-logo__mark {
  width: 36px;
  height: 44px;
  border: 2px solid var(--bt-accent);
  border-radius: 18px;
  position: relative;
  flex: 0 0 auto;
}

.tools-logo__mark::before,
.tools-logo__mark::after {
  content: "";
  position: absolute;
  background: var(--bt-accent);
}

.tools-logo__mark::before {
  width: 2px;
  height: 26px;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
}

.tools-logo__mark::after {
  width: 18px;
  height: 2px;
  left: 8px;
  top: 20px;
  box-shadow: 0 -8px 0 rgba(255, 122, 24, 0.8), 0 8px 0 rgba(255, 122, 24, 0.8);
}

.tools-logo__text {
  display: grid;
  gap: 2px;
  font-size: 22px;
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
}

.tools-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  flex: 1 1 auto;
  min-width: 0;
}

.tools-nav__link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.tools-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--bt-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.tools-nav__link:hover,
.tools-nav__link.is-active {
  color: var(--bt-accent);
}

.tools-nav__link:hover::after,
.tools-nav__link.is-active::after {
  transform: scaleX(1);
}

.tools-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.tools-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 62px;
  min-width: 0;
  border-radius: 8px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(236, 192, 109, 0.48);
  background: rgba(12, 16, 24, 0.74);
  color: #efc56d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 223, 155, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tools-button::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -84%;
  left: -40%;
  width: 34%;
  height: 268%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 220, 167, 0.42), transparent);
  opacity: 0;
  pointer-events: none;
}

.tools-button::after {
  content: "\2192";
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-size: 19px;
  line-height: 1;
}

.tools-button:hover,
.tools-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(239, 197, 109, 0.64);
  background: rgba(12, 16, 24, 0.74);
  color: #efc56d;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 14px rgba(243, 190, 93, 0.2),
    inset 0 1px 0 rgba(255, 231, 169, 0.2);
  filter: saturate(1.07);
  outline: none;
}

.tools-button:hover::before,
.tools-button:focus-visible::before {
  opacity: 1;
  animation: toolsButtonShine 0.8s ease-out;
}

.tools-button:disabled,
.tools-button.is-disabled {
  cursor: default;
  transform: none;
  border-color: rgba(52, 214, 109, 0.48);
  background: rgba(52, 214, 109, 0.12);
  color: #8ff0ad;
  box-shadow: none;
}

.tools-button:disabled::before,
.tools-button.is-disabled::before,
.tools-button:disabled::after,
.tools-button.is-disabled::after {
  display: none;
}

.tools-button--solid {
  border-color: rgba(236, 192, 109, 0.48);
  background: rgba(12, 16, 24, 0.74);
  color: #efc56d;
}

.tools-button--wide {
  width: 100%;
}

.tools-button--small {
  min-height: 44px;
  min-width: 0;
  padding: 0 16px;
  gap: 10px;
  font-size: 13px;
}

.tools-button--small::after {
  font-size: 16px;
}

.tools-button--ghost {
  color: #efc56d;
  border-color: rgba(236, 192, 109, 0.48);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 223, 155, 0.16);
}

@keyframes toolsButtonShine {
  from {
    left: -40%;
  }

  to {
    left: 118%;
  }
}

.tools-main {
  padding: 0 0 34px;
}

.tools-page-home .tools-main {
  padding-top: 18px;
}

.tools-hero {
  position: relative;
  min-height: 258px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tools-page-home .tools-hero {
  width: var(--bt-page);
  min-height: 260px;
  margin: 0 auto;
  border: 1px solid rgba(126, 148, 160, 0.22);
  border-radius: var(--bt-radius);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(90deg, rgba(4, 10, 13, 0.98) 0%, rgba(4, 10, 13, 0.94) 38%, rgba(4, 10, 13, 0.55) 62%, rgba(4, 10, 13, 0.12) 100%),
    linear-gradient(180deg, rgba(4, 10, 13, 0.08), rgba(4, 10, 13, 0.32)),
    url("/media/fons_k/tools/brainytrade_hero_laptop_chart.webp") center right / cover no-repeat;
}

.tools-page-home .tools-hero__inner {
  width: 100%;
  min-height: 260px;
  grid-template-columns: minmax(0, 690px);
  padding: 42px 28px 38px;
}

.tools-page-home .tools-hero__copy {
  position: relative;
  z-index: 1;
}

.tools-hero--compact {
  min-height: 320px;
}

.tools-hero__inner {
  width: var(--bt-page);
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.7fr);
  gap: 34px;
  align-items: center;
}

.tools-hero__copy {
  min-width: 0;
}

.tools-breadcrumbs {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(235, 241, 239, 0.56);
  font-size: 14px;
  font-weight: 500;
}

.tools-breadcrumbs a {
  text-decoration: none;
  color: inherit;
}

.tools-breadcrumbs a:hover {
  color: var(--bt-accent);
}

.tools-breadcrumbs__sep {
  color: rgba(255, 122, 24, 0.7);
}

.tools-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4.9vw, 68px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
  color: #eff3f3;
}

.tools-title--home {
  font-size: clamp(34px, 3.9vw, 46px);
  line-height: 1.08;
  text-transform: none;
}

.tools-accent {
  display: block;
  margin-top: 8px;
  color: var(--bt-accent);
}

.tools-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--bt-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  font-weight: 500;
}

.tools-hero__aside {
  min-width: 0;
}

.hero-visual {
  min-height: 206px;
  border: 1px solid rgba(126, 148, 160, 0.2);
  border-radius: var(--bt-radius);
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(14, 30, 36, 0.92), rgba(6, 13, 17, 0.92));
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 44px;
  height: 1px;
  background: rgba(255, 122, 24, 0.28);
  box-shadow:
    0 32px 0 rgba(126, 148, 160, 0.18),
    0 64px 0 rgba(126, 148, 160, 0.14),
    0 96px 0 rgba(126, 148, 160, 0.1);
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 34px;
  width: 46%;
  height: 96px;
  border-left: 3px solid var(--bt-accent);
  border-bottom: 3px solid var(--bt-accent);
  transform: skewX(-18deg);
  opacity: 0.72;
}

.tools-tabs {
  width: var(--bt-page);
  margin: 0 auto 20px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tools-tab {
  min-height: 38px;
  border: 1px solid rgba(126, 148, 160, 0.22);
  border-radius: var(--bt-radius);
  background: rgba(10, 18, 22, 0.7);
  color: rgba(235, 241, 239, 0.82);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tools-tab:hover,
.tools-tab.is-active {
  color: var(--bt-accent);
  border-color: rgba(255, 122, 24, 0.72);
  background: rgba(255, 122, 24, 0.08);
}

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

.tools-page-home .tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tools-page-home .tool-card {
  min-height: 514px;
}

.tool-card {
  min-width: 0;
  min-height: 514px;
  border: 1px solid rgba(126, 148, 160, 0.23);
  border-radius: var(--bt-radius);
  background:
    linear-gradient(145deg, rgba(255, 122, 24, 0.06), transparent 40%),
    var(--bt-panel);
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  overflow: hidden;
}

.tool-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tool-number {
  width: 27px;
  height: 27px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bt-accent);
  color: #0f0804;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 auto;
}

.tool-badge {
  min-height: 27px;
  border: 1px solid rgba(52, 214, 109, 0.36);
  border-radius: 6px;
  padding: 5px 10px;
  color: #70e49a;
  background: rgba(52, 214, 109, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.tool-badge--muted {
  border-color: rgba(126, 148, 160, 0.26);
  color: rgba(235, 241, 239, 0.62);
  background: rgba(126, 148, 160, 0.08);
}

.tool-badge--subscriber {
  border-color: rgba(255, 138, 34, 0.38);
  color: #ffad62;
  background: rgba(255, 122, 24, 0.09);
}

.tool-widget--radar {
  gap: 10px;
}

.tools-radar-preview {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 0 auto;
  border: 1px solid rgba(255, 138, 34, 0.24);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 21%, rgba(255, 138, 34, 0.09) 21.5% 22%, transparent 22.5% 43%),
    linear-gradient(90deg, transparent 49.5%, rgba(255, 138, 34, 0.1) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(255, 138, 34, 0.1) 50%, transparent 50.5%),
    rgba(4, 9, 13, 0.66);
  overflow: hidden;
}

.tools-radar-preview::after {
  content: "";
  position: absolute;
  inset: 50% 0 0 50%;
  transform: rotate(-22deg);
  transform-origin: 0 0;
  background: linear-gradient(12deg, rgba(255, 138, 34, 0.26), transparent 68%);
}

.tools-radar-preview i {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8a20;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.9);
}

.tools-radar-preview i:nth-child(1) { left: 68%; top: 23%; }
.tools-radar-preview i:nth-child(2) { left: 27%; top: 61%; }
.tools-radar-preview i:nth-child(3) { left: 67%; top: 71%; }
.tools-radar-preview b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 138, 34, 0.5);
  border-radius: 50%;
}

.tool-card--coming {
  border-style: dashed;
  border-color: rgba(126, 148, 160, 0.36);
  background: rgba(8, 15, 19, 0.48);
}

.coming-card {
  min-height: 260px;
  border: 1px dashed rgba(126, 148, 160, 0.25);
  border-radius: var(--bt-radius);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 12px;
  background: rgba(5, 11, 15, 0.54);
}

.tool-card__title {
  margin: 0;
  color: #f7f9f8;
  font-size: 22px;
  line-height: 1.14;
  font-weight: 800;
}

.tool-card__subtitle {
  margin: -6px 0 0;
  color: var(--bt-subtle);
  font-size: 15px;
  line-height: 1.35;
}

.tool-card__text {
  margin: 0;
  color: rgba(235, 241, 239, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.tool-widget {
  min-height: 260px;
  border: 1px solid rgba(126, 148, 160, 0.2);
  border-radius: var(--bt-radius);
  background: rgba(5, 11, 15, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
}

.tool-widget--pulse {
  gap: 14px;
}

.tools-pulse-preview {
  position: relative;
  min-height: 146px;
  border-radius: var(--bt-radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    rgba(4, 9, 13, 0.62);
  background-size: 28px 28px;
  overflow: hidden;
}

.tools-pulse-preview__bubble {
  position: absolute;
  width: 66px;
  height: 66px;
  border: 1.5px solid rgba(135, 147, 164, 0.72);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  color: #f7fafc;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16), rgba(135, 147, 164, 0.14) 48%, rgba(3, 7, 11, 0.78));
  box-shadow: 0 0 20px rgba(135, 147, 164, 0.18);
  text-align: center;
}

.tools-pulse-preview__bubble b {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.tools-pulse-preview__bubble i {
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.tools-pulse-preview__bubble.is-large {
  left: 14px;
  top: 34px;
  width: 92px;
  height: 92px;
}

.tools-pulse-preview__bubble.is-mid {
  right: 42px;
  top: 44px;
  width: 78px;
  height: 78px;
}

.tools-pulse-preview__bubble.is-small {
  width: 50px;
  height: 50px;
}

.tools-pulse-preview__bubble:nth-child(3) {
  left: 116px;
  top: 14px;
}

.tools-pulse-preview__bubble:nth-child(4) {
  right: 12px;
  bottom: 12px;
}

.tools-pulse-preview__bubble:nth-child(5) {
  left: 130px;
  bottom: 10px;
}

.tools-pulse-preview__bubble.is-up {
  border-color: #35d46b;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), rgba(53, 212, 107, 0.22) 48%, rgba(3, 8, 10, 0.78));
  box-shadow: 0 0 24px rgba(53, 212, 107, 0.24);
}

.tools-pulse-preview__bubble.is-down {
  border-color: #ff4d43;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), rgba(255, 77, 67, 0.2) 48%, rgba(8, 3, 5, 0.78));
  box-shadow: 0 0 24px rgba(255, 77, 67, 0.2);
}

.tools-pulse-preview__bubble.is-neutral {
  border-color: #8793a4;
}

.weather-chip {
  height: 82px;
  display: grid;
  align-items: center;
  padding: 16px;
  border-radius: var(--bt-radius);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.12), rgba(255, 255, 255, 0.03));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-list {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(235, 241, 239, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

.metric-row strong {
  color: #fff;
  text-align: right;
}

.metric-row strong.is-red {
  color: var(--bt-red);
}

.metric-row strong.is-yellow {
  color: var(--bt-yellow);
}

.trap-box {
  min-height: 220px;
  border: 1px solid rgba(255, 74, 50, 0.28);
  border-radius: var(--bt-radius);
  background: linear-gradient(145deg, rgba(255, 74, 50, 0.1), rgba(255, 122, 24, 0.04));
  padding: 14px;
}

.trap-box__label {
  margin: 0 0 16px;
  color: var(--bt-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.trap-box__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 19px;
  line-height: 1.34;
  font-weight: 800;
}

.trap-box__line {
  height: 1px;
  margin: 0 0 18px;
  background: rgba(255, 122, 24, 0.2);
}

.trap-box p {
  margin: 0 0 10px;
  color: rgba(235, 241, 239, 0.78);
  font-size: 12px;
  line-height: 1.55;
}

.mini-calendar {
  display: grid;
  gap: 12px;
}

.mini-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f7f9f8;
  font-size: 15px;
  font-weight: 800;
}

.mini-calendar__week,
.mini-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.mini-calendar__week span {
  color: var(--bt-subtle);
  font-size: 11px;
  text-align: center;
}

.mini-calendar__day {
  aspect-ratio: 1;
  border: 1px solid rgba(126, 148, 160, 0.2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(235, 241, 239, 0.82);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
}

.mini-calendar__day.is-empty {
  border-color: transparent;
  background: transparent;
}

.mini-calendar__day.is-today {
  box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.28);
}

.mini-calendar__day.is-done {
  color: var(--bt-green);
  border-color: rgba(52, 214, 109, 0.62);
}

.mini-calendar__day.is-part {
  color: var(--bt-accent);
  border-color: rgba(255, 122, 24, 0.66);
}

.mini-calendar__stats {
  display: grid;
  gap: 8px;
  color: var(--bt-muted);
  font-size: 13px;
}

.checklist-box {
  display: grid;
  gap: 13px;
}

.checklist-box__title {
  margin: 0 0 3px;
  color: rgba(235, 241, 239, 0.92);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(235, 241, 239, 0.78);
  font-size: 12px;
  line-height: 1.25;
}

.check-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid var(--bt-accent);
  border-radius: 50%;
  flex: 0 0 auto;
}

.check-item::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: auto;
  border: 1px solid rgba(126, 148, 160, 0.55);
  border-radius: 3px;
  flex: 0 0 auto;
}

.check-item.is-ok::after {
  border-color: rgba(52, 214, 109, 0.78);
  background: rgba(52, 214, 109, 0.2);
}

.checklist-box__result {
  margin: 6px 0 0;
  color: var(--bt-accent);
  font-size: 14px;
  font-weight: 800;
}

.radar-box {
  min-height: 235px;
  display: grid;
  place-items: center;
  position: relative;
}

.radar-box__shape {
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 122, 24, 0.42);
  clip-path: polygon(50% 0, 96% 30%, 80% 92%, 20% 92%, 4% 30%);
  background: linear-gradient(180deg, rgba(255, 122, 24, 0.24), rgba(255, 122, 24, 0.05));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.training-chart,
.mistake-chart {
  min-height: 130px;
  border: 1px solid rgba(126, 148, 160, 0.18);
  border-radius: var(--bt-radius);
  background:
    linear-gradient(rgba(126, 148, 160, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 148, 160, 0.11) 1px, transparent 1px),
    rgba(4, 10, 13, 0.74);
  background-size: 100% 26px, 34px 100%, auto;
  position: relative;
  overflow: hidden;
}

.training-chart::before,
.mistake-chart::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 56%;
  height: 2px;
  background: linear-gradient(90deg, var(--bt-accent), transparent 24%, var(--bt-green) 48%, transparent 68%, #fff 100%);
  transform: skewY(-12deg);
  box-shadow: 28px -28px 0 rgba(255, 122, 24, 0.82), 72px 18px 0 rgba(255, 122, 24, 0.62), 118px -16px 0 rgba(52, 214, 109, 0.74);
}

.mistake-chart {
  min-height: 150px;
}

.mistake-chart::before {
  top: 64%;
  transform: skewY(-20deg);
  box-shadow: 34px -20px 0 rgba(255, 122, 24, 0.7), 78px -42px 0 rgba(255, 122, 24, 0.8), 126px -14px 0 rgba(255, 122, 24, 0.6);
}

.score-widget {
  min-height: 246px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.score-ring {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--bt-accent) 0 72%, rgba(126, 148, 160, 0.22) 72% 100%);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #071116;
}

.score-ring span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
  text-align: center;
  line-height: 1.05;
}

.score-ring small {
  display: block;
  color: var(--bt-muted);
  font-size: 14px;
  font-weight: 700;
}

.score-bars {
  display: grid;
  gap: 10px;
}

.score-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 28px;
  align-items: center;
  gap: 9px;
  color: rgba(235, 241, 239, 0.72);
  font-size: 11px;
}

.score-bar i {
  height: 5px;
  border-radius: 999px;
  background: rgba(126, 148, 160, 0.24);
  overflow: hidden;
}

.score-bar i::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--value, 70%);
  border-radius: inherit;
  background: var(--bt-accent);
}

.tools-wide-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 16px;
}

.tools-panel {
  min-width: 0;
  border: 1px solid rgba(126, 148, 160, 0.23);
  border-radius: var(--bt-radius);
  background: var(--bt-panel);
  padding: 18px;
  overflow: hidden;
}

.tools-panel__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.flow-step {
  min-width: 0;
  display: grid;
  gap: 9px;
  text-align: center;
  color: var(--bt-muted);
  font-size: 12px;
  line-height: 1.35;
  position: relative;
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -14px;
  width: 12px;
  height: 2px;
  background: var(--bt-accent);
}

.flow-step:last-child::after {
  display: none;
}

.flow-step__shape {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  border: 3px solid var(--bt-accent);
  border-radius: 14px;
  background: rgba(255, 122, 24, 0.05);
}

.flow-step strong {
  color: var(--bt-accent);
  font-size: 12px;
}

.reward-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reward {
  min-height: 94px;
  border: 1px solid rgba(126, 148, 160, 0.2);
  border-radius: var(--bt-radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--bt-muted);
  font-size: 12px;
  line-height: 1.45;
}

.reward.is-active {
  border-color: rgba(255, 122, 24, 0.75);
  color: var(--bt-accent);
  box-shadow: inset 0 0 30px rgba(255, 122, 24, 0.1);
}

.tools-cta-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tools-channel {
  min-height: 76px;
  border: 1px solid rgba(126, 148, 160, 0.23);
  border-radius: var(--bt-radius);
  background: var(--bt-panel);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.tools-channel strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 17px;
}

.tools-channel span {
  color: var(--bt-muted);
  font-size: 13px;
}

.tools-note {
  width: var(--bt-page);
  margin: 18px auto 0;
  color: rgba(235, 241, 239, 0.48);
  font-size: 12px;
  line-height: 1.5;
}

.tools-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 24px;
  color: rgba(235, 241, 239, 0.56);
}

.tools-footer__inner {
  width: var(--bt-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.tools-footer__links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.tools-footer__links a {
  color: inherit;
  text-decoration: none;
}

.tools-footer__links a:hover {
  color: var(--bt-accent);
}

.tools-detail-grid {
  width: var(--bt-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
}

.tools-page[data-calendar-page] {
  --bt-calendar-layout: min(1380px, calc(100vw - 36px));
  --bt-calendar-offset: max(18px, calc((100vw - 1480px) / 2));
}

.tools-page[data-calendar-page] .tools-hero__inner,
.tools-page[data-calendar-page] .tools-detail-grid {
  width: var(--bt-calendar-layout);
  margin-left: var(--bt-calendar-offset);
  margin-right: auto;
}

.tools-page[data-calendar-page] .tools-detail-grid {
  grid-template-columns: minmax(560px, 1.35fr) minmax(480px, 1fr);
  gap: 18px;
}

.detail-stack {
  display: grid;
  gap: 16px;
}

.detail-card {
  border: 1px solid rgba(126, 148, 160, 0.23);
  border-radius: var(--bt-radius);
  background: var(--bt-panel);
  padding: clamp(18px, 2.1vw, 28px);
  overflow: hidden;
}

.detail-card__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.detail-card__subtitle {
  margin: -8px 0 18px;
  color: var(--bt-muted);
  font-size: 15px;
  line-height: 1.5;
}

.calendar-main {
  min-height: 624px;
  padding: 26px;
}

.calendar-months-card {
  padding: 18px;
}

.calendar-months-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.calendar-months-card .detail-card__title,
.calendar-months-card .detail-card__subtitle {
  margin-bottom: 0;
}

.calendar-month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-admin-mode {
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(52, 214, 109, 0.45);
  border-radius: 10px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dffbea;
  background: rgba(52, 214, 109, 0.08);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.calendar-admin-mode[hidden] {
  display: none !important;
}

.calendar-admin-mode input {
  width: 17px;
  height: 17px;
  accent-color: var(--bt-green);
}

.tools-page.is-calendar-admin-mode .calendar-main {
  box-shadow: 0 0 0 1px rgba(52, 214, 109, 0.28), 0 0 34px rgba(52, 214, 109, 0.08);
}

.calendar-month-button {
  min-height: 42px;
  border: 1px solid rgba(126, 148, 160, 0.28);
  border-radius: 10px;
  padding: 10px 14px;
  color: rgba(235, 241, 239, 0.82);
  background: rgba(8, 15, 19, 0.78);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.calendar-month-button:hover,
.calendar-month-button.is-active {
  border-color: rgba(255, 122, 24, 0.72);
  color: var(--bt-accent);
  background: rgba(255, 122, 24, 0.1);
}

.calendar-month-button.is-current:not(.is-active) {
  border-color: rgba(52, 214, 109, 0.54);
}

.calendar-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.calendar-main__month {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-switch {
  min-height: 42px;
  border: 1px solid rgba(126, 148, 160, 0.28);
  border-radius: var(--bt-radius);
  padding: 10px 15px;
  color: var(--bt-muted);
  font-size: 14px;
  background: rgba(8, 15, 19, 0.78);
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid rgba(126, 148, 160, 0.17);
  border-bottom: 0;
  border-right: 0;
}

.calendar-cell,
.calendar-weekday {
  min-width: 0;
  border-right: 1px solid rgba(126, 148, 160, 0.17);
  border-bottom: 1px solid rgba(126, 148, 160, 0.17);
}

.calendar-weekday {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: rgba(235, 241, 239, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.calendar-cell {
  min-height: 86px;
  padding: 14px 12px;
  color: rgba(235, 241, 239, 0.92);
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.calendar-cell:not(.is-empty) {
  cursor: pointer;
}

.calendar-cell.is-locked {
  cursor: default;
  color: rgba(235, 241, 239, 0.3);
  background: rgba(126, 148, 160, 0.05);
}

.calendar-cell.is-muted {
  color: rgba(235, 241, 239, 0.34);
}

.calendar-cell.is-selected {
  background: rgba(255, 122, 24, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.48);
}

.calendar-cell.is-today {
  outline: 2px solid var(--bt-accent);
  outline-offset: -2px;
  color: #fff;
}

.calendar-cell::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(126, 148, 160, 0.35);
  border-radius: 50%;
}

.calendar-cell.is-done::after {
  border-color: var(--bt-green);
  background: rgba(52, 214, 109, 0.14);
}

.calendar-cell.is-part::after {
  border-color: var(--bt-accent);
  background: rgba(255, 122, 24, 0.12);
}

.calendar-cell.is-empty::after,
.calendar-cell.is-muted::after,
.calendar-cell.is-locked::after {
  display: none;
}

.calendar-legend {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  color: var(--bt-muted);
  font-size: 14px;
}

.legend-dot {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(126, 148, 160, 0.38);
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
}

.legend-dot.is-done {
  border-color: var(--bt-green);
}

.legend-dot.is-part {
  border-color: var(--bt-accent);
}

.legend-dot.is-today {
  width: 9px;
  height: 9px;
  border: 0;
  background: var(--bt-accent);
}

.today-card {
  display: grid;
  gap: 16px;
}

.tools-page[data-calendar-page] .today-card {
  gap: 18px;
  padding: clamp(22px, 2vw, 30px);
  border-color: rgba(255, 122, 24, 0.24);
  background:
    linear-gradient(150deg, rgba(255, 122, 24, 0.08), transparent 38%),
    rgba(10, 18, 23, 0.94);
}

.today-card__label {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.today-card__day {
  color: var(--bt-accent);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.today-card__date {
  color: var(--bt-muted);
  font-size: 14px;
}

.today-card__divider {
  height: 1px;
  background: rgba(126, 148, 160, 0.22);
}

.today-card h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.36;
}

.today-card p {
  margin: 0;
  color: var(--bt-muted);
  font-size: 15px;
  line-height: 1.6;
}

.calendar-task-topic {
  margin-top: 8px;
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 122, 24, 0.38);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--bt-accent);
  background: rgba(255, 122, 24, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-question-images {
  display: grid;
  gap: 10px;
}

.calendar-question-images.is-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-question-image {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0;
  display: block;
  background: transparent;
  cursor: zoom-in;
}

.calendar-question-image img {
  width: 100%;
  max-height: 220px;
  border: 1px solid rgba(126, 148, 160, 0.24);
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: rgba(8, 15, 19, 0.78);
}

.calendar-question-image:hover img,
.calendar-question-image:focus-visible img {
  border-color: rgba(255, 122, 24, 0.58);
}

.calendar-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 28px;
  display: grid;
  place-items: center;
  background: rgba(1, 6, 9, 0.88);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.tools-page.is-calendar-image-open {
  overflow: hidden;
}

.calendar-image-lightbox[hidden] {
  display: none !important;
}

.calendar-image-lightbox__image {
  max-width: min(1120px, 94vw);
  max-height: 88vh;
  border: 1px solid rgba(235, 241, 239, 0.2);
  border-radius: 10px;
  object-fit: contain;
  background: rgba(8, 15, 19, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  cursor: default;
}

.calendar-image-lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(235, 241, 239, 0.22);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(8, 15, 19, 0.9);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.calendar-image-lightbox__close:hover,
.calendar-image-lightbox__close:focus-visible {
  border-color: rgba(255, 122, 24, 0.68);
  color: var(--bt-accent);
}

.calendar-quiz {
  display: grid;
  gap: 12px;
}

.tools-page[data-calendar-page] .calendar-quiz {
  gap: 14px;
}

.calendar-quiz__label {
  color: #fff;
  font-weight: 800;
}

.calendar-quiz__question {
  color: #eef5f3;
  font-weight: 700;
}

.calendar-answer-list {
  display: grid;
  gap: 10px;
}

.calendar-answer {
  min-height: 54px;
  width: 100%;
  border: 1px solid rgba(126, 148, 160, 0.28);
  border-radius: 8px;
  padding: 12px 44px 12px 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #eef5f3;
  background: rgba(8, 15, 19, 0.78);
  font: inherit;
  line-height: 1.4;
  text-align: left;
  position: relative;
}

.tools-page[data-calendar-page] .calendar-answer {
  min-height: 62px;
  padding: 14px 50px 14px 16px;
  gap: 14px;
  border-radius: 10px;
  font-size: 15px;
}

.calendar-answer:not(:disabled) {
  cursor: pointer;
}

.calendar-answer.is-locked {
  color: rgba(235, 241, 239, 0.5);
  background: rgba(8, 15, 19, 0.48);
}

.calendar-answer__key {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(235, 241, 239, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.calendar-answer.is-correct {
  border-color: rgba(52, 214, 109, 0.72);
  background: rgba(52, 214, 109, 0.12);
}

.calendar-answer.is-wrong {
  border-color: rgba(255, 74, 50, 0.72);
  background: rgba(255, 74, 50, 0.12);
}

.calendar-answer.is-correct::after,
.calendar-answer.is-wrong::after {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.calendar-answer.is-correct::after {
  content: "✓";
  color: var(--bt-green);
}

.calendar-answer.is-wrong::after {
  content: "×";
  color: #ff6b55;
}

.calendar-feedback {
  border-left: 3px solid var(--bt-accent);
  padding: 2px 0 2px 13px;
  display: grid;
  gap: 8px;
}

.calendar-quiz[hidden],
.calendar-question-images[hidden],
.calendar-feedback[hidden],
[data-task-conclusion-wrap][hidden],
[data-task-month-wrap][hidden] {
  display: none !important;
}

.calendar-action-note {
  border: 1px solid rgba(126, 148, 160, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(8, 15, 19, 0.56);
}

.progress-card {
  display: grid;
  gap: 22px;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--bt-muted);
  font-size: 15px;
}

.progress-row strong {
  color: #fff;
  font-size: 20px;
}

.progress-line {
  height: 7px;
  border-radius: 999px;
  background: rgba(126, 148, 160, 0.2);
  overflow: hidden;
}

.progress-line i {
  display: block;
  width: var(--value, 62%);
  height: 100%;
  border-radius: inherit;
  background: var(--bt-accent);
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.week-day {
  min-width: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: var(--bt-muted);
  font-size: 12px;
  line-height: 1.35;
}

.week-day__box {
  width: 70px;
  height: 88px;
  border: 1px solid rgba(126, 148, 160, 0.28);
  border-radius: var(--bt-radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.week-day.is-active .week-day__box {
  border-color: var(--bt-accent);
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.22);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.bonus-card {
  min-height: 178px;
  border: 1px solid rgba(126, 148, 160, 0.22);
  border-radius: var(--bt-radius);
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--bt-muted);
  font-size: 15px;
  line-height: 1.45;
}

.bonus-card.is-active {
  border-color: var(--bt-accent);
  color: var(--bt-accent);
  box-shadow: inset 0 0 34px rgba(255, 122, 24, 0.11);
}

.checklist-main {
  min-height: 748px;
  display: grid;
  gap: 12px;
}

.deal-check {
  min-height: 88px;
  border: 1px solid rgba(126, 148, 160, 0.22);
  border-radius: var(--bt-radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 56px 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  background: rgba(7, 14, 18, 0.72);
}

.deal-check__empty {
  width: 46px;
  height: 46px;
  border: 2px solid var(--bt-accent);
  border-radius: 10px;
}

.deal-check__num {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(235, 241, 239, 0.48);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.deal-check h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.24;
}

.deal-check p {
  margin: 0;
  color: var(--bt-muted);
  font-size: 13px;
  line-height: 1.45;
}

.answer-group {
  display: inline-grid;
  grid-template-columns: 88px 88px;
  gap: 12px;
}

.answer-button {
  min-height: 46px;
  border: 1px solid rgba(126, 148, 160, 0.28);
  border-radius: 6px;
  background: rgba(9, 17, 21, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.answer-button.is-yes {
  border-color: rgba(52, 214, 109, 0.66);
}

.answer-button.is-no {
  border-color: rgba(255, 74, 50, 0.66);
}

.answer-button.is-selected {
  color: #120904;
  background: linear-gradient(180deg, #ffbf69 0%, #ffa334 50%, #ef7e12 100%);
  border-color: rgba(255, 176, 87, 0.92);
}

.deal-check__state {
  width: 24px;
  height: 24px;
  border: 2px solid var(--bt-green);
  border-radius: 50%;
}

.deal-check__state.is-bad {
  border-color: var(--bt-red);
}

.result-card {
  border-color: rgba(255, 74, 50, 0.38);
  background: linear-gradient(145deg, rgba(255, 74, 50, 0.1), rgba(9, 22, 28, 0.88));
}

.result-card__status {
  margin: 0 0 18px;
  color: var(--bt-red);
  font-size: 21px;
  font-weight: 900;
}

.result-card__status.is-good {
  color: var(--bt-green);
}

.result-card p {
  margin: 0 0 14px;
  color: var(--bt-muted);
  font-size: 15px;
  line-height: 1.6;
}

.history-list {
  display: grid;
  gap: 13px;
}

.history-row {
  display: grid;
  grid-template-columns: 92px 64px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  color: var(--bt-muted);
  font-size: 13px;
}

.history-row strong {
  color: var(--bt-green);
  text-align: right;
}

.history-row strong.is-bad {
  color: var(--bt-red);
}

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

.why-item {
  min-width: 0;
}

.why-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.why-item p {
  margin: 0;
  color: var(--bt-muted);
  font-size: 14px;
  line-height: 1.55;
}

.weather-layout {
  width: var(--bt-page);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.weather-mode {
  min-height: 286px;
  border: 1px solid rgba(126, 148, 160, 0.24);
  border-radius: var(--bt-radius);
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.08), rgba(9, 22, 28, 0.9));
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
}

.weather-mode__label {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.weather-mode__title {
  margin: 0;
  color: var(--bt-accent);
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.05;
  font-weight: 900;
}

.weather-mode__text {
  max-width: 620px;
  margin: 0;
  color: var(--bt-muted);
  font-size: 17px;
  line-height: 1.55;
}

.weather-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.weather-pill {
  min-width: 220px;
  min-height: 68px;
  border: 1px solid rgba(126, 148, 160, 0.22);
  border-radius: var(--bt-radius);
  padding: 13px 16px;
  display: grid;
  gap: 4px;
  color: var(--bt-muted);
  font-size: 14px;
  background: rgba(5, 11, 15, 0.54);
}

.weather-pill strong {
  color: var(--bt-yellow);
  font-size: 15px;
}

.weather-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.weather-copy p {
  margin: 0 0 18px;
  color: var(--bt-muted);
  font-size: 16px;
  line-height: 1.75;
}

.conditions-list {
  display: grid;
  gap: 18px;
}

.condition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(126, 148, 160, 0.16);
  color: var(--bt-muted);
  font-size: 16px;
}

.condition-row strong {
  color: var(--bt-accent);
  text-align: right;
}

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scenario-chart {
  min-height: 274px;
  border: 1px solid rgba(126, 148, 160, 0.23);
  border-radius: var(--bt-radius);
  background: var(--bt-panel);
  padding: 22px;
}

.scenario-chart__box {
  min-height: 140px;
  margin: 18px 0;
  border: 1px solid rgba(126, 148, 160, 0.16);
  background:
    linear-gradient(rgba(126, 148, 160, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 148, 160, 0.08) 1px, transparent 1px);
  background-size: 100% 28px, 42px 100%;
  position: relative;
}

.scenario-chart__box::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 68px;
  height: 3px;
  background: linear-gradient(90deg, #fff, var(--bt-accent), #fff, var(--bt-green));
  transform: skewY(-14deg);
}

.scenario-chart h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  text-transform: uppercase;
}

.scenario-chart p {
  margin: 0;
  color: var(--bt-muted);
  font-size: 14px;
  line-height: 1.55;
}

.attention-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.attention-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.attention-list li {
  color: var(--bt-muted);
  font-size: 15px;
  line-height: 1.45;
  padding-left: 20px;
  position: relative;
}

.attention-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bt-accent);
}

.quote-box {
  min-height: 160px;
  display: grid;
  align-content: center;
  color: var(--bt-accent);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
  font-style: italic;
}

body.tools-page[data-weather-page] {
  background:
    linear-gradient(180deg, rgba(1, 7, 10, 0.92) 0%, rgba(5, 13, 18, 0.98) 48%, #020609 100%),
    #020609;
}

.tools-hero--market-weather {
  min-height: clamp(360px, 42vw, 520px);
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(2, 7, 10, 0.98) 0%, rgba(2, 7, 10, 0.86) 34%, rgba(2, 7, 10, 0.52) 58%, rgba(2, 7, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.2), rgba(2, 7, 10, 0.72)),
    url("/media/fons/tools/market-weather-hero.png") center right / cover no-repeat;
}

.tools-hero--market-weather .tools-hero__inner {
  min-height: clamp(360px, 42vw, 520px);
  padding-top: clamp(44px, 6vw, 86px);
  padding-bottom: clamp(34px, 5vw, 70px);
}

.tools-hero--market-weather .tools-title {
  max-width: 640px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.tools-hero--market-weather .tools-lead {
  max-width: 610px;
  color: rgba(238, 245, 244, 0.84);
}

.weather-hero-status {
  width: min(360px, 100%);
  min-height: 206px;
  margin-left: auto;
  border: 1px solid rgba(0, 232, 221, 0.26);
  border-radius: 8px;
  padding: 22px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(0, 225, 212, 0.13), transparent 44%),
    rgba(3, 11, 15, 0.74);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.weather-hero-status img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.weather-hero-status span {
  color: rgba(236, 245, 243, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-hero-status strong {
  color: #f7fbfa;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.weather-hero-status small {
  color: #00e8dd;
  font-size: 18px;
  font-weight: 800;
}

.weather-layout--daily,
.weather-layout--empty {
  margin-top: 0;
}

.weather-mode--daily {
  min-height: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 232, 221, 0.1), transparent 42%),
    linear-gradient(135deg, rgba(255, 122, 24, 0.11), rgba(7, 19, 24, 0.94));
}

.weather-mode--daily .weather-pills {
  grid-column: 1 / -1;
}

.weather-mode__icon {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(0, 232, 221, 0.32);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(0, 232, 221, 0.08);
}

.weather-mode__icon img,
.weather-section-head img,
.weather-pill img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.weather-mode__content {
  min-width: 0;
}

.weather-pill {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.weather-pill img {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
}

.weather-pill strong {
  color: #00e8dd;
}

.weather-section-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-section-head .detail-card__title,
.weather-section-head h3 {
  margin: 0;
}

.weather-section-head img {
  flex: 0 0 auto;
}

.scenario-chart .weather-section-head {
  margin-bottom: 0;
}

.scenario-chart--warning .scenario-chart__box::before {
  background: linear-gradient(90deg, #fff, #ff7a18, #ff4b32, transparent);
}

.weather-quote-box {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  font-style: normal;
}

.weather-quote-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.weather-quote-box span {
  min-width: 0;
}

.weather-empty-card {
  min-height: 300px;
  border: 1px solid rgba(255, 122, 24, 0.3);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.11), rgba(0, 232, 221, 0.05)),
    rgba(6, 15, 20, 0.92);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.weather-empty-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.weather-empty-card__kicker {
  margin: 0;
  color: #00e8dd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-empty-card h2 {
  margin: 0;
  color: #f6fbfa;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.weather-empty-card p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(236, 245, 243, 0.78);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .tools-grid,
  .tools-page-home .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tools-header__inner {
    gap: 20px;
  }

  .tools-nav {
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  :root {
    --bt-page: min(100vw - 32px, 860px);
  }

  .tools-header__inner {
    width: var(--bt-page);
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .tools-logo {
    min-width: 0;
  }

  .tools-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tools-nav__link::after {
    bottom: -4px;
  }

  .tools-actions {
    margin-left: auto;
  }

  .tools-hero__inner,
  .tools-detail-grid,
  .weather-two,
  .scenario-grid,
  .attention-grid,
  .tools-wide-row {
    grid-template-columns: 1fr;
  }

  .tools-page[data-calendar-page] .tools-hero__inner,
  .tools-page[data-calendar-page] .tools-detail-grid {
    width: var(--bt-page);
    margin-left: auto;
    margin-right: auto;
  }

  .tools-page[data-calendar-page] .tools-detail-grid {
    grid-template-columns: 1fr;
  }

  .tools-hero__inner {
    padding-top: 34px;
  }

  .tools-hero--market-weather {
    background:
      linear-gradient(90deg, rgba(2, 7, 10, 0.98) 0%, rgba(2, 7, 10, 0.9) 56%, rgba(2, 7, 10, 0.38) 100%),
      linear-gradient(180deg, rgba(2, 7, 10, 0.2), rgba(2, 7, 10, 0.72)),
      url("/media/fons/tools/market-weather-hero.png") center right / cover no-repeat;
  }

  .tools-page-home .tools-hero {
    min-height: 260px;
    background:
      linear-gradient(90deg, rgba(4, 10, 13, 0.98) 0%, rgba(4, 10, 13, 0.94) 54%, rgba(4, 10, 13, 0.45) 100%),
      url("/media/fons_k/tools/brainytrade_hero_laptop_chart.webp") center right / cover no-repeat;
  }

  .tools-page-home .tools-hero__inner {
    min-height: 260px;
    grid-template-columns: 1fr;
    padding: 38px 24px 34px;
  }

  .calendar-main {
    min-height: 0;
  }

  .calendar-question-images.is-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.tools-page .bt-site-header__auth.bt-auth-slot {
    display: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --bt-page: min(100vw - 24px, 560px);
  }

  .tools-header__inner {
    width: var(--bt-page);
    gap: 14px;
  }

  .tools-logo__mark {
    width: 32px;
    height: 38px;
  }

  .tools-logo__text {
    font-size: 18px;
  }

  .tools-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tools-button {
    min-width: 0;
    padding-inline: 12px;
  }

  .tools-title,
  .tools-title--home {
    font-size: 34px;
  }

  .tools-hero__aside {
    display: none;
  }

  .tools-page-home .tools-hero {
    background:
      linear-gradient(90deg, rgba(4, 10, 13, 0.98) 0%, rgba(4, 10, 13, 0.95) 74%, rgba(4, 10, 13, 0.74) 100%),
      url("/media/fons_k/tools/brainytrade_hero_laptop_chart.webp") center right / cover no-repeat;
  }

  .tools-tabs,
  .tools-grid,
  .tools-page-home .tools-grid,
  .tools-cta-row,
  .flow-steps,
  .reward-row,
  .bonus-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

  .tools-channel {
    grid-template-columns: 1fr;
  }

  .tools-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-footer__links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .calendar-main {
    padding: 16px;
  }

  .calendar-main__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-months-card__head {
    flex-direction: column;
  }

  .calendar-month-button {
    flex: 1 1 150px;
  }

  .calendar-cell {
    min-height: 62px;
    padding: 8px;
    font-size: 14px;
  }

  .calendar-cell::after {
    left: 8px;
    bottom: 8px;
    width: 13px;
    height: 13px;
  }

  .calendar-legend,
  .weather-pills {
    gap: 12px;
  }

  .weather-mode--daily {
    grid-template-columns: 1fr;
  }

  .weather-mode__icon {
    width: 62px;
    height: 62px;
  }

  .weather-quote-box {
    grid-template-columns: 1fr;
  }

  .week-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-check {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .deal-check__empty,
  .deal-check__state {
    display: none;
  }

  .deal-check__num {
    grid-row: 1 / span 2;
  }

  .answer-group {
    grid-column: 2;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .history-row {
    grid-template-columns: 1fr auto;
  }

  .history-row span:nth-child(2) {
    display: none;
  }

  .weather-pill {
    min-width: 100%;
  }

  .tools-hero--market-weather {
    min-height: 360px;
    background:
      linear-gradient(90deg, rgba(2, 7, 10, 0.99) 0%, rgba(2, 7, 10, 0.94) 74%, rgba(2, 7, 10, 0.7) 100%),
      url("/media/fons/tools/market-weather-hero.png") 62% center / cover no-repeat;
  }

  .tools-hero--market-weather .tools-hero__inner {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Market weather mockup page */
body.weather-v2-page {
  --weather-bg: #02080b;
  --weather-panel: rgba(8, 18, 23, 0.82);
  --weather-panel-strong: rgba(10, 22, 28, 0.94);
  --weather-line: rgba(185, 211, 218, 0.16);
  --weather-text: #f5f8f7;
  --weather-muted: rgba(232, 239, 238, 0.68);
  --weather-soft: rgba(232, 239, 238, 0.42);
  --weather-orange: #ff7a18;
  --weather-orange-2: #ff9b2f;
  --weather-cyan: #00d5c8;
  --weather-green: #1fe0a4;
  --weather-red: #ff553d;
  min-width: 0;
  background:
    linear-gradient(180deg, #02080b 0%, #041015 46%, #02070a 100%),
    var(--weather-bg);
  color: var(--weather-text);
  font-family: Inter, Arial, sans-serif;
}

body.weather-v2-page *,
body.weather-v2-page *::before,
body.weather-v2-page *::after {
  box-sizing: border-box;
}

.weather-v2-shell {
  width: min(1390px, calc(100% - 64px));
  margin-inline: auto;
}

.weather-v2-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 8, 11, 0.9);
  backdrop-filter: blur(18px);
}

.weather-v2-header__inner {
  width: min(1390px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.weather-v2-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--weather-text);
  text-decoration: none;
}

.weather-v2-brand__mark {
  width: 40px;
  height: 40px;
  border: 2px solid var(--weather-orange);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background:
    linear-gradient(90deg, transparent 43%, rgba(255, 122, 24, 0.7) 45% 55%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(255, 122, 24, 0.7) 45% 55%, transparent 57%),
    rgba(255, 122, 24, 0.04);
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.22);
}

.weather-v2-brand__mark::before,
.weather-v2-brand__mark::after {
  content: "";
  position: absolute;
  inset: 7px 4px;
  border: 1px solid rgba(255, 122, 24, 0.72);
  border-radius: 50%;
}

.weather-v2-brand__mark::after {
  inset: 4px 10px;
}

.weather-v2-brand__text {
  color: var(--weather-text);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-v2-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  white-space: nowrap;
  scrollbar-width: none;
}

.weather-v2-nav::-webkit-scrollbar {
  display: none;
}

.weather-v2-nav a,
.weather-v2-footer__links a {
  color: rgba(246, 249, 248, 0.82);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.18s ease;
}

.weather-v2-nav a:hover,
.weather-v2-nav a.is-active,
.weather-v2-footer__links a:hover {
  color: var(--weather-orange);
}

.weather-v2-auth {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.weather-v2-login,
.weather-v2-register {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--weather-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.weather-v2-login {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.02);
}

.weather-v2-register {
  color: #140900;
  background: linear-gradient(180deg, #ff9d35, #ff7416);
  box-shadow: 0 12px 30px rgba(255, 122, 24, 0.24);
}

.weather-v2-main {
  min-height: 70vh;
}

.weather-v2-hero {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.weather-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/media/fons/tools/market-weather-hero.png") right top / min(1020px, 70vw) auto no-repeat;
  opacity: 0.98;
}

.weather-v2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 8, 11, 0.98) 0%, rgba(2, 8, 11, 0.84) 34%, rgba(2, 8, 11, 0.36) 66%, rgba(2, 8, 11, 0.58) 100%),
    linear-gradient(180deg, rgba(2, 8, 11, 0) 0%, rgba(2, 8, 11, 0.18) 68%, #02080b 100%);
}

.weather-v2-hero__grid {
  min-height: 500px;
  padding: 54px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 455px);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}

.weather-v2-hero__copy {
  min-width: 0;
  align-self: start;
  padding-top: 2px;
}

.weather-v2-hero h1 {
  margin: 0;
  max-width: none;
  color: var(--weather-text);
  font-size: clamp(56px, 5vw, 82px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.weather-v2-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(245, 248, 247, 0.74);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.48;
}

.weather-v2-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  color: rgba(245, 248, 247, 0.76);
  font-size: 17px;
}

.weather-v2-meta b {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  color: rgba(245, 248, 247, 0.74);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 700;
}

.weather-v2-clock {
  width: 23px;
  height: 23px;
  border: 2px solid var(--weather-orange);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.3);
}

.weather-v2-clock::before,
.weather-v2-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  border-radius: 2px;
  background: var(--weather-orange);
  transform-origin: bottom center;
}

.weather-v2-clock::before {
  height: 7px;
  transform: translateX(-50%) rotate(0deg);
}

.weather-v2-clock::after {
  height: 6px;
  transform: translateX(-50%) rotate(42deg);
}

.weather-v2-now,
.weather-v2-card,
.weather-v2-empty {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    var(--weather-panel);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.weather-v2-empty p {
  margin: 0;
  color: var(--weather-orange);
  font-size: 14px;
  font-weight: 800;
}

.weather-v2-hero__now {
  width: min(455px, 100%);
  align-self: start;
  justify-self: end;
  margin-top: 8px;
  margin-bottom: 0;
}

.weather-v2-now {
  padding: 30px 26px 22px;
}

.weather-v2-now h2,
.weather-v2-card h2,
.weather-v2-empty h2 {
  margin: 0;
  color: var(--weather-text);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.weather-v2-now__list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.weather-v2-now__row {
  --tone: rgba(245, 248, 247, 0.55);
  --tone-soft: rgba(245, 248, 247, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 14px;
}

.weather-v2-now__row span {
  color: rgba(245, 248, 247, 0.74);
  font-size: 15px;
}

.weather-v2-now__row strong {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--tone) 42%, transparent);
  border-radius: 8px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tone);
  background: var(--tone-soft);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.weather-v2-content {
  display: grid;
  gap: 22px;
  padding: 22px 0 20px;
}

.weather-v2-card {
  padding: 28px;
}

.weather-v2-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.weather-v2-section-head span {
  color: var(--weather-soft);
  font-size: 14px;
}

.weather-v2-change-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.weather-v2-change,
.weather-v2-scenario {
  --tone: rgba(245, 248, 247, 0.58);
  --tone-soft: rgba(245, 248, 247, 0.08);
  border: 1px solid color-mix(in srgb, var(--tone) 34%, transparent);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tone-soft), rgba(255, 255, 255, 0.015));
}

.weather-v2-change {
  min-height: 178px;
  padding: 18px 16px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.weather-v2-change__top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.weather-v2-change__top img,
.weather-v2-driver__event img,
.weather-v2-scenario img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.weather-v2-change h3,
.weather-v2-driver h3,
.weather-v2-scenario h3,
.weather-v2-time h3 {
  margin: 0;
  color: rgba(245, 248, 247, 0.84);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.weather-v2-change strong {
  display: block;
  margin-top: 8px;
  color: var(--tone);
  font-size: 15px;
  font-weight: 900;
}

.weather-v2-change__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weather-v2-change__bottom span {
  color: rgba(245, 248, 247, 0.66);
  font-size: 13px;
}

.weather-v2-change__bottom b {
  color: var(--tone);
  font-size: 28px;
  line-height: 1;
}

.weather-v2-two,
.weather-v2-bottom {
  display: grid;
  gap: 22px;
}

.weather-v2-two {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
}

.weather-v2-overview {
  position: relative;
  overflow: hidden;
}

.weather-v2-overview::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-bottom: 26px solid var(--weather-orange);
  opacity: 0.88;
}

.weather-v2-overview p,
.weather-v2-driver p,
.weather-v2-scenario p,
.weather-v2-time p {
  margin: 0;
  color: var(--weather-muted);
  font-size: 15px;
  line-height: 1.62;
}

.weather-v2-overview h2 + p {
  margin-top: 24px;
}

.weather-v2-overview p + p {
  margin-top: 20px;
}

.weather-v2-driver__event {
  margin: 24px 0 22px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.weather-v2-driver h3 {
  color: var(--weather-text);
  font-size: clamp(20px, 1.6vw, 24px);
}

.weather-v2-driver__badge {
  width: fit-content;
  margin: 0 0 8px;
  border: 1px solid rgba(255, 122, 24, 0.32);
  border-radius: 999px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  color: var(--weather-orange);
  background: rgba(255, 122, 24, 0.09);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.weather-v2-driver strong {
  display: block;
  margin-top: 8px;
  color: var(--weather-orange);
  font-size: 20px;
  font-weight: 900;
}

.weather-v2-driver .weather-v2-impact {
  margin-top: 10px;
}

.weather-v2-driver h4 {
  margin: 22px 0 8px;
  color: var(--weather-text);
  font-size: 16px;
  font-weight: 800;
}

.weather-v2-bottom {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(310px, 1fr);
}

.weather-v2-section-head--stack {
  align-items: flex-start;
  flex-direction: column;
}

.weather-v2-levels__list,
.weather-v2-scenarios__list,
.weather-v2-timeline {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.weather-v2-level {
  --tone: rgba(245, 248, 247, 0.6);
}

.weather-v2-level div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.weather-v2-level span {
  min-height: 40px;
  border-left: 3px solid var(--tone);
  border-radius: 5px;
  padding: 10px 10px 10px 12px;
  display: inline-flex;
  align-items: center;
  color: var(--tone);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 800;
}

.weather-v2-level strong {
  color: rgba(245, 248, 247, 0.88);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.weather-v2-level i {
  height: 3px;
  margin-top: 7px;
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--tone) 0 var(--level-fill), rgba(255, 255, 255, 0.22) var(--level-fill) 100%);
  position: relative;
}

.weather-v2-level i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--level-fill);
  width: 11px;
  height: 11px;
  border: 2px solid var(--tone);
  border-radius: 50%;
  background: #061116;
  transform: translate(-50%, -50%);
}

.weather-v2-scenario {
  padding: 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
}

.weather-v2-scenario h3 {
  color: var(--tone);
}

.weather-v2-scenario p {
  margin-top: 4px;
  font-size: 13px;
}

.weather-v2-scenario b {
  color: rgba(245, 248, 247, 0.86);
}

.weather-v2-timeline {
  position: relative;
}

.weather-v2-windows .weather-v2-timeline {
  max-height: 620px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.weather-v2-windows .weather-v2-timeline::-webkit-scrollbar {
  width: 6px;
}

.weather-v2-windows .weather-v2-timeline::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(245, 248, 247, 0.18);
}

.weather-v2-timeline::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.weather-v2-time {
  --tone: rgba(245, 248, 247, 0.56);
  border-radius: 8px;
  padding: 0 0 0 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
  position: relative;
}

.weather-v2-time[data-next="true"] {
  margin-left: 0;
  margin-right: 0;
  border: 1px solid color-mix(in srgb, var(--tone) 36%, transparent);
  padding: 12px 8px;
  background: color-mix(in srgb, var(--tone) 10%, transparent);
}

.weather-v2-time::before {
  content: "";
  position: absolute;
  left: 69px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--tone);
  border-radius: 50%;
  background: #081217;
  z-index: 1;
}

.weather-v2-time[data-next="true"]::before {
  top: 16px;
  background: var(--tone);
  box-shadow: 0 0 22px color-mix(in srgb, var(--tone) 58%, transparent);
}

.weather-v2-time time {
  color: rgba(245, 248, 247, 0.92);
  font-size: 21px;
  line-height: 1;
}

.weather-v2-time > div {
  min-width: 0;
}

.weather-v2-time__top {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.weather-v2-time h3 {
  color: rgba(245, 248, 247, 0.9);
}

.weather-v2-time__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weather-v2-time__chips span,
.weather-v2-time__chips b {
  min-height: 24px;
  border: 1px solid rgba(245, 248, 247, 0.14);
  border-radius: 999px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  color: rgba(245, 248, 247, 0.76);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.weather-v2-impact {
  width: fit-content;
  min-height: 24px;
  border: 1px solid rgba(255, 122, 24, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 122, 24, 0.08);
}

.weather-v2-impact i {
  width: 9px;
  height: 12px;
  border-radius: 70% 70% 70% 12%;
  display: block;
  background: linear-gradient(145deg, #ffd36b 12%, #ff8a21 54%, #ff4c1f 100%);
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.24);
  transform: rotate(45deg);
}

.weather-v2-time__chips b {
  border-color: transparent;
  color: #061116;
  background: var(--tone);
}

.weather-v2-time p {
  margin-top: 6px;
  font-size: 13px;
}

.weather-v2-event-meta {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
}

.weather-v2-event-meta div {
  min-width: 0;
  border: 1px solid rgba(245, 248, 247, 0.09);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.weather-v2-event-meta dt {
  margin: 0 0 4px;
  color: rgba(245, 248, 247, 0.48);
  font-size: 11px;
  font-weight: 800;
}

.weather-v2-event-meta dd {
  margin: 0;
  color: rgba(245, 248, 247, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.weather-v2-empty {
  min-height: 360px;
  padding: clamp(26px, 5vw, 52px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.13), transparent 44%),
    rgba(9, 20, 26, 0.9);
}

.weather-v2-empty img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.weather-v2-empty span {
  max-width: 760px;
  color: var(--weather-muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.58;
}

/* Economic calendar */
.economic-calendar-page {
  overflow-x: hidden;
}

.econ-page {
  min-height: 70vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 122, 24, 0.16), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(0, 213, 200, 0.14), transparent 28%),
    var(--weather-bg);
}

.econ-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 30px;
}

.econ-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.econ-hero__inner > *,
.econ-date-nav {
  min-width: 0;
}

.econ-kicker {
  margin: 0 0 10px;
  color: var(--weather-orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.econ-hero h1 {
  margin: 0;
  color: var(--weather-text);
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.econ-hero p:not(.econ-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(245, 248, 247, 0.72);
  font-size: 18px;
  line-height: 1.55;
}

.econ-date-nav {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(7, 17, 22, 0.72);
}

.econ-date-nav a {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: rgba(245, 248, 247, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.econ-date-nav a:hover {
  color: #061116;
  background: var(--weather-orange);
}

.econ-summary {
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.econ-summary article,
.econ-day,
.econ-empty {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.012)),
    var(--weather-panel);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.econ-summary article {
  min-width: 0;
  padding: 18px;
}

.econ-summary span,
.econ-summary small,
.econ-day header span,
.econ-day header strong {
  color: rgba(245, 248, 247, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.econ-summary strong {
  margin-top: 8px;
  display: block;
  color: var(--weather-text);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.18;
  font-weight: 900;
}

.econ-summary small {
  margin-top: 8px;
  display: block;
}

.econ-board {
  padding: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.econ-day,
.econ-empty {
  min-width: 0;
  padding: 24px;
}

.econ-day header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.econ-day h2,
.econ-empty h2 {
  margin: 6px 0 0;
  color: var(--weather-text);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.1;
}

.econ-day__empty,
.econ-empty p {
  color: var(--weather-muted);
  line-height: 1.6;
}

.econ-events {
  display: grid;
  gap: 12px;
}

.econ-event {
  --tone: rgba(245, 248, 247, 0.58);
  min-width: 0;
  border: 1px solid rgba(245, 248, 247, 0.1);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.econ-event[data-next="true"] {
  border-color: color-mix(in srgb, var(--tone) 42%, transparent);
  background: color-mix(in srgb, var(--tone) 10%, rgba(255, 255, 255, 0.02));
}

.econ-event time {
  color: rgba(245, 248, 247, 0.9);
  font-size: 20px;
  font-weight: 900;
}

.econ-event__body {
  min-width: 0;
}

.econ-event__meta {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.econ-event__meta span,
.econ-event__meta b {
  min-height: 24px;
  border: 1px solid rgba(245, 248, 247, 0.14);
  border-radius: 999px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  color: rgba(245, 248, 247, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.econ-event__meta b {
  border-color: transparent;
  color: #061116;
  background: var(--tone);
}

.econ-impact {
  min-height: 24px;
  border: 1px solid rgba(255, 122, 24, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 122, 24, 0.08);
}

.econ-impact i {
  width: 9px;
  height: 12px;
  border-radius: 70% 70% 70% 12%;
  display: block;
  background: linear-gradient(145deg, #ffd36b 12%, #ff8a21 54%, #ff4c1f 100%);
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.24);
  transform: rotate(45deg);
}

.econ-event h3 {
  margin: 0;
  color: var(--weather-text);
  font-size: 17px;
  line-height: 1.25;
}

.econ-event p {
  margin: 8px 0 0;
  color: var(--weather-muted);
  font-size: 14px;
  line-height: 1.55;
}

.econ-values {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.econ-values div {
  min-width: 0;
  border: 1px solid rgba(245, 248, 247, 0.09);
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.econ-values dt {
  margin: 0 0 4px;
  color: rgba(245, 248, 247, 0.48);
  font-size: 11px;
  font-weight: 900;
}

.econ-values dd {
  margin: 0;
  color: rgba(245, 248, 247, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.weather-v2-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #02080b;
}

.weather-v2-footer__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
}

.weather-v2-footer__brand {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.weather-v2-footer__brand .weather-v2-brand__mark {
  width: 30px;
  height: 30px;
}

.weather-v2-footer__brand .weather-v2-brand__text {
  font-size: 16px;
}

.weather-v2-footer__brand span,
.weather-v2-footer small {
  color: rgba(245, 248, 247, 0.58);
  font-size: 13px;
}

.weather-v2-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.weather-v2-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-v2-socials a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
}

.weather-v2-socials img {
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
}

.weather-v2-footer small {
  grid-column: 2 / -1;
  justify-self: end;
}

.weather-v2-page [data-tone="orange"] {
  --tone: var(--weather-orange);
  --tone-soft: rgba(255, 122, 24, 0.12);
}

.weather-v2-page [data-tone="red"] {
  --tone: var(--weather-red);
  --tone-soft: rgba(255, 85, 61, 0.12);
}

.weather-v2-page [data-tone="green"] {
  --tone: var(--weather-green);
  --tone-soft: rgba(31, 224, 164, 0.12);
}

.weather-v2-page [data-tone="cyan"] {
  --tone: var(--weather-cyan);
  --tone-soft: rgba(0, 213, 200, 0.12);
}

.weather-v2-page [data-tone="muted"],
.weather-v2-page [data-tone="neutral"] {
  --tone: rgba(245, 248, 247, 0.58);
  --tone-soft: rgba(245, 248, 247, 0.07);
}

@supports not (color: color-mix(in srgb, #fff 50%, transparent)) {
  .weather-v2-now__row strong,
  .weather-v2-change,
  .weather-v2-scenario {
    border-color: rgba(255, 255, 255, 0.16);
  }

  .weather-v2-time[data-next="true"] {
    border-color: rgba(255, 122, 24, 0.34);
    background: rgba(255, 122, 24, 0.08);
  }

  .weather-v2-time[data-next="true"]::before {
    box-shadow: 0 0 22px rgba(255, 122, 24, 0.32);
  }
}

@media (max-width: 1220px) {
  .weather-v2-header__inner {
    gap: 20px;
  }

  .weather-v2-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px 0;
  }

  .weather-v2-hero__grid,
  .weather-v2-two,
  .weather-v2-bottom {
    grid-template-columns: 1fr;
  }

  .weather-v2-hero__now {
    justify-self: start;
    margin-top: 0;
    margin-bottom: 0;
  }

  .weather-v2-hero h1 {
    white-space: normal;
  }

  .weather-v2-change-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-v2-windows .weather-v2-timeline {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .econ-hero__inner,
  .econ-summary,
  .econ-board {
    grid-template-columns: 1fr;
  }

  .econ-date-nav {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .weather-v2-shell,
  .weather-v2-header__inner {
    width: min(100% - 32px, 720px);
  }

  .weather-v2-header__inner {
    min-height: 0;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .weather-v2-nav {
    order: 3;
    flex-basis: 100%;
  }

  .weather-v2-auth {
    margin-left: auto;
  }

  .weather-v2-hero {
    min-height: 0;
  }

  .weather-v2-hero::before {
    background-position: center top;
    background-size: 980px auto;
    opacity: 0.6;
  }

  .weather-v2-hero::after {
    background:
      linear-gradient(90deg, rgba(2, 8, 11, 0.98), rgba(2, 8, 11, 0.84)),
      linear-gradient(180deg, rgba(2, 8, 11, 0.12), #02080b 100%);
  }

  .weather-v2-hero__grid {
    min-height: 0;
    padding: 40px 0 28px;
  }

  .weather-v2-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .weather-v2-footer__links {
    justify-content: flex-start;
  }

  .weather-v2-footer small {
    grid-column: auto;
    justify-self: start;
  }

  .econ-hero {
    padding: 44px 0 24px;
  }

  .econ-event {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
  }

  .econ-event time {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .weather-v2-shell,
  .weather-v2-header__inner {
    width: min(100% - 24px, 520px);
  }

  .weather-v2-brand__mark {
    width: 34px;
    height: 34px;
  }

  .weather-v2-brand__text {
    font-size: 18px;
  }

  .weather-v2-auth {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .weather-v2-login,
  .weather-v2-register {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .weather-v2-nav a {
    font-size: 14px;
  }

  .weather-v2-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .econ-hero h1 {
    font-size: clamp(34px, 10vw, 40px);
  }

  .weather-v2-lead,
  .weather-v2-meta {
    font-size: 16px;
  }

  .weather-v2-now,
  .weather-v2-card {
    padding: 20px;
  }

  .weather-v2-now__row,
  .weather-v2-level div {
    grid-template-columns: 1fr;
  }

  .weather-v2-now__row strong {
    justify-content: flex-start;
  }

  .weather-v2-change-grid {
    grid-template-columns: 1fr;
  }

  .weather-v2-scenario {
    grid-template-columns: 1fr;
  }

  .weather-v2-timeline::before {
    left: 63px;
  }

  .weather-v2-time {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
  }

  .weather-v2-time::before {
    left: 58px;
  }

  .weather-v2-time time {
    font-size: 18px;
  }

  .econ-date-nav,
  .econ-date-nav a {
    width: 100%;
  }

  .econ-date-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .econ-hero__inner > div,
  .econ-date-nav {
    width: 100%;
    max-width: 100%;
  }

  .econ-day,
  .econ-empty {
    padding: 18px;
  }

  .econ-event {
    grid-template-columns: 1fr;
  }
}

.economic-calendar-page .econ-empty {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.economic-calendar-page .econ-empty h2 {
  color: #f6f8fa;
}

.economic-calendar-page .econ-empty p {
  color: rgba(238, 243, 246, 0.7);
}
