.beta-badge {
  display: inline-block;
  vertical-align: top;
  margin-left: 7px;
  border: 1px solid #c9d4ee;
  border-radius: 4px;
  padding: 1px 5px;
  color: #51659e;
  background: #f5f7fc;
  font:
    500 10px/1.4 system-ui,
    sans-serif;
  letter-spacing: 0.2px;
}
.nav-item {
  position: relative;
}
.nav-item .nav-beta {
  position: absolute;
  right: 9px;
  top: 7px;
  font-size: 8px;
  padding: 0 3px;
}
.forecast-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.forecast-page-heading h2 {
  margin: 0;
  font-size: 24px;
  color: #19334f;
  line-height: 1.3;
}
.forecast-page-heading h2 > .beta-badge {
  font-size: 10px;
}
.forecast-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #788598;
  font-size: 12px;
  margin: 18px 0 24px;
}
.forecast-legend > span:before {
  content: "";
  display: inline-block;
  width: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.forecast-legend .chart-actual-label:before {
  border-top: 3px solid #147d75;
}
.forecast-legend .chart-predicted-label:before {
  border-top: 2px dashed #4263ce;
}
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.forecast-card {
  min-width: 0;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  background: white;
  padding: 19px 16px 10px;
}
.forecast-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.forecast-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #19334f;
}
.forecast-pin {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: white;
  color: #8997a8;
  cursor: pointer;
}
.forecast-pin:hover,
.forecast-pin[aria-pressed="true"] {
  color: #4263ce;
  background: #f2f5fc;
  border-color: #d5def2;
}
.forecast-unit {
  font-size: 11px;
  color: #8490a0;
  margin: 4px 0 10px;
}
.forecast-chart {
  position: relative;
  width: 100%;
  min-width: 0;
  touch-action: pan-y;
}
.forecast-chart > svg {
  display: block;
  width: 100%;
  height: 236px;
}
.chart-axis {
  font:
    11px system-ui,
    sans-serif;
  fill: #8390a1;
}
.chart-coordinate {
  font:
    10px system-ui,
    sans-serif;
  fill: #4263ce;
}
.chart-crosshair {
  stroke: #8e9cb1;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.forecast-tooltip {
  position: absolute;
  z-index: 3;
  top: 20px;
  display: grid;
  gap: 6px;
  max-width: 205px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d7dfe9;
  border-radius: 5px;
  box-shadow: 0 4px 16px #19334f12;
  font-size: 11px;
  color: #526174;
  pointer-events: none;
}
.forecast-tooltip strong {
  font-size: 11px;
  color: #19334f;
}
.forecast-model-note,
.forecast-empty {
  font-size: 12px;
  line-height: 1.9;
  color: #7e8b9c;
  margin: 22px 0;
}
.forecast-empty {
  padding: 50px 10px;
  text-align: center;
  background: #f7f9fc;
  border: 1px dashed #dbe3ed;
  border-radius: 8px;
}
.feature-introduction {
  max-width: 780px;
  font-size: 13px;
  line-height: 1.9;
  color: #71717a;
  margin: 16px 0 22px;
}
.alert-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 780px;
  margin: 25px 0;
}
.alert-form .field {
  display: grid;
  gap: 8px;
}
.alert-form input,
.alert-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce2e8;
  border-radius: 6px;
  color: #19334f;
  background: white;
  font: inherit;
}
.alert-form .field-label {
  font-size: 12px;
  color: #526174;
}
.alert-form > button {
  justify-self: start;
  grid-column: 1/-1;
}
.alert-active {
  padding: 22px;
  max-width: 780px;
  background: #f2f8f6;
  border: 1px solid #d1e5de;
  border-radius: 8px;
}
.alert-active h3 {
  font-size: 16px;
  margin-top: 0;
}
.alert-active p {
  font-size: 13px;
  color: #587068;
}
.alert-history {
  max-width: 900px;
  border-top: 1px solid #e2e7ee;
  padding-top: 22px;
  margin-top: 36px;
}
.alert-history h3 {
  font-size: 15px;
}
.alert-history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
  font-size: 12px;
  color: #7a8799;
}
.alert-history-row strong {
  color: #19334f;
}
.alert-history-row time {
  margin-left: auto;
}
.alert-history-row p {
  flex-basis: 100%;
  margin: 0;
}
.account-membership {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  border-top: 1px solid #e5e9ee;
  padding-top: 16px;
  margin-top: 14px;
}
.account-membership .account-plan-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #19334f;
}
.account-membership .account-field-help {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
}
.supporter-plans-dialog {
  width: min(940px, calc(100% - 30px));
  max-height: 88dvh;
  border: 1px solid #dce3eb;
  border-radius: 13px;
  padding: 25px;
  overflow-y: auto;
  color: #19334f;
}
.supporter-plans-dialog::backdrop {
  background: #19334f66;
}
.supporter-plans-dialog .supporter-plan-grid {
  margin-top: 22px;
}
.supporter-payment-panel {
  border-top: 1px solid #e1e6ed;
  margin-top: 24px;
  padding-top: 22px;
  font-size: 13px;
  line-height: 1.9;
}
.supporter-payment-panel h3 {
  font-size: 17px;
}
.supporter-feature h2 {
  font-size: 24px;
}
body.user-app .sidebar {
  transition:
    width 220ms linear,
    padding 220ms linear;
  overflow-x: hidden;
}
body.user-app .workspace {
  transition: margin-left 220ms linear;
}
body.admin-page .adm-workspace {
  transition: grid-template-columns 220ms linear;
}
.statistic-workspace {
  transition: grid-template-columns 220ms linear;
}
@media (max-width: 1100px) {
  .forecast-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  body.user-app .workspace,
  body.admin-page .adm-workspace {
    transition: none;
  }
  body.user-app .sidebar {
    transition: none;
  }
  .forecast-page-heading h2 {
    font-size: 22px;
  }
  .forecast-card {
    padding: 16px 8px 7px;
  }
  .forecast-legend {
    gap: 10px;
    font-size: 11px;
  }
  .alert-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .supporter-plans-dialog {
    padding: 20px 15px;
  }
  .supporter-plan {
    padding: 23px 19px;
  }
  .forecast-tooltip {
    font-size: 10px;
  }
  .alert-history-row time {
    flex-basis: 100%;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.user-app .sidebar,
  body.user-app .workspace,
  body.admin-page .adm-workspace,
  .statistic-workspace {
    transition: none;
  }
}
