.xm-dashboard .calc-panel {
  padding: 12px !important;
}

.xm-dashboard .calc-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  flex-wrap: nowrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 150, 0, 0.16);
}

.xm-dashboard .calc-hero__content {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.xm-dashboard .calc-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4df;
  color: #ff9600;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xm-dashboard .calc-title {
  margin: 10px 0 4px;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.12;
  font-weight: 900;
  color: #122033;
}

.xm-dashboard .calc-subtitle {
  margin: 0;
  color: #728095;
  font-size: 13px;
  line-height: 1.6;
}

.xm-dashboard .calc-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
  border: 1px solid #dfe6ee;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.xm-dashboard .calc-mode-btn {
  min-height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #5e6a7c;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.xm-dashboard .calc-mode-btn.is-active {
  background: linear-gradient(135deg, #ff9a14 0%, #ff7b18 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(255, 140, 0, 0.2);
}

.xm-dashboard .calc-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.xm-dashboard .calc-input-card {
  border: 1px solid #e3e9f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
  padding: 12px;
}

.xm-dashboard .calc-input-card label {
  display: block;
  margin-bottom: 8px;
  color: #ff920b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.xm-dashboard .calc-input-card input[type="number"] {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe2eb;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: #1c2a3b;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.xm-dashboard .calc-input-card input[type="number"]:focus {
  border-color: #ff9600;
  box-shadow: 0 0 0 4px rgba(255, 150, 0, 0.12);
}

.xm-dashboard .calc-slider-box {
  margin-top: 4px;
}

.xm-dashboard .calc-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.xm-dashboard .calc-badge,
.xm-dashboard .calc-live-amount {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.xm-dashboard .calc-badge {
  background: #fff1e0;
  color: #ff920b;
}

.xm-dashboard .calc-live-amount {
  background: #f2f5f9;
  color: #39485b;
}

.xm-dashboard .calc-ratio-slider {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: #e2e8f0;
  -webkit-appearance: none;
  appearance: none;
  margin: 0.8rem 0;
  outline: none;
}

.xm-dashboard .calc-ratio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fe9906;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(254, 153, 6, 0.4);
  border: 2px solid #fff;
}

.xm-dashboard .calc-ratio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.xm-dashboard .calc-ratio-slider::-moz-range-track {
  height: 6px;
  border-radius: 10px;
  background: #e2e8f0;
}

.xm-dashboard .calc-ratio-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fe9906;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(254, 153, 6, 0.4);
  border: 2px solid #fff;
}

.xm-dashboard .calc-slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8692a3;
  font-size: 11px;
  font-weight: 700;
}

.xm-dashboard .calc-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.xm-dashboard .calc-stat-card {
  border: 1px solid #e7edf4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.xm-dashboard .calc-stat-label {
  display: block;
  color: #6f7c90;
  font-size: 12px;
  font-weight: 800;
}

.xm-dashboard .calc-stat-value {
  display: block;
  margin-top: 8px;
  color: #13233d;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.xm-dashboard .calc-stat-value.is-negative {
  color: #c23b32;
}

.xm-dashboard .calc-stat-desc {
  display: block;
  margin-top: 6px;
  color: #8b97a8;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}

.xm-dashboard .calc-panel--table {
  padding-top: 10px !important;
}

.xm-dashboard .calc-info-card {
  border: 1px solid #ffe0b8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf3 0%, #fff6ea 100%);
  padding: 12px;
}

.xm-dashboard .calc-info-title {
  color: #ff920b;
  font-size: 14px;
  font-weight: 900;
}

.xm-dashboard .calc-info-desc {
  margin-top: 8px;
  color: #6c788d;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 700;
}

.xm-dashboard .calc-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.xm-dashboard .calc-rate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 153, 6, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 6px;
  color: #5c6676;
  font-size: 11px;
  font-weight: 700;
}

.xm-dashboard .calc-rate-item span {
  color: #ff920b;
  font-size: 13px;
  font-weight: 900;
}

.xm-dashboard .calc-rate-item em {
  font-style: normal;
}

.xm-dashboard .calc-formula {
  margin-top: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 10px;
  color: #516072;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 800;
}

@media (max-width: 1199px) {
  .xm-dashboard .content-grid {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .calc-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .xm-dashboard .calc-panel {
    padding: 10px !important;
  }

  .xm-dashboard .calc-hero {
    gap: 12px;
  }

  .xm-dashboard .calc-title {
    font-size: 22px;
  }

  .xm-dashboard .calc-mode-switch {
    width: 100%;
    min-width: 0;
  }

  .xm-dashboard .calc-input-grid,
  .xm-dashboard .calc-summary-grid,
  .xm-dashboard .calc-rate-grid {
    grid-template-columns: 1fr;
  }

  .xm-dashboard .calc-slider-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .xm-dashboard .calc-badge,
  .xm-dashboard .calc-live-amount {
    width: 100%;
    justify-content: center;
  }
}
