.vy-profit {
  --vy-bg: #0f0f0f;
  --vy-ink: #f5f5f5;
  --vy-muted: #ababab;
  --vy-line: #333333;
  --vy-accent: #42a5ff;
  --vy-card: linear-gradient(135deg, #222222 0%, #141414 100%);

  width: 100%;
  max-width: 1180px;
  margin: 24px auto;
  padding: clamp(18px, 4vw, 46px);
  background: var(--vy-bg);
  color: var(--vy-ink);
  border: 1px solid #292929;
  border-radius: 30px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  color-scheme: dark;
}

.vy-profit *,
.vy-profit *::before,
.vy-profit *::after {
  box-sizing: border-box;
}

.vy-profit [hidden] {
  display: none !important;
}

.vy-profit h2,
.vy-profit h3,
.vy-profit p {
  margin: 0;
  font-family: inherit;
}

.vy-profit .vy-header {
  display: flex;
  justify-content: flex-end;
}

.vy-profit .vy-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid #383838;
  border-radius: 100px;
  background: #1c1c1c;
  color: #d9d9d9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.vy-profit .vy-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vy-accent);
}

.vy-profit .vy-intro {
  padding: 26px 0 34px;
}

.vy-profit .vy-eyebrow {
  color: var(--vy-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.vy-profit h2 {
  margin: 12px 0 18px;
  color: #ffffff;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 750;
  letter-spacing: -1.8px;
  line-height: 1.12;
}

.vy-profit h2 span {
  color: var(--vy-accent);
}

.vy-profit .vy-intro > p {
  max-width: 560px;
  color: var(--vy-muted);
  font-size: 14px;
}

.vy-profit .vy-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  gap: 24px;
}

.vy-profit .vy-panel,
.vy-profit .vy-metric,
.vy-profit .vy-profit-card {
  background: var(--vy-card);
  border: 1px solid var(--vy-line);
  box-shadow: inset 0 1px 0 #ffffff03;
}

.vy-profit .vy-panel {
  padding: 26px;
  border-radius: 26px;
}

.vy-profit .vy-form {
  min-width: 0;
  margin: 0;
}

.vy-profit .vy-panel-heading,
.vy-profit .vy-form-footer,
.vy-profit .vy-profit-top,
.vy-profit .vy-profit-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vy-profit .vy-panel-heading {
  align-items: flex-start;
  flex-wrap: wrap;
}

.vy-profit h3 {
  color: #f5f5f5;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.vy-profit .vy-panel-heading p {
  margin-top: 6px;
  color: var(--vy-muted);
  font-size: 12px;
}

.vy-profit .vy-currency {
  display: grid;
  gap: 5px;
  margin: 0;
}

.vy-profit .vy-currency > span {
  color: var(--vy-muted);
  font-size: 11px;
}

.vy-profit .vy-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 28px;
}

.vy-profit .vy-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.vy-profit .vy-field > span {
  color: #e7e7e7;
  font-size: 12px;
  font-weight: 600;
}

.vy-profit .vy-full {
  grid-column: 1 / -1;
}

.vy-profit input,
.vy-profit select {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #414141;
  border-radius: 12px;
  background: #111111;
  color: #f5f5f5;
  font: inherit;
  font-size: 16px;
  line-height: normal;
  box-shadow: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.vy-profit select {
  width: auto;
  min-width: 104px;
  height: 40px;
  padding: 6px 10px;
  font-size: 13px;
}

.vy-profit select option {
  background: #171717;
  color: #ffffff;
}

.vy-profit input:hover,
.vy-profit select:hover {
  border-color: #616161;
}

.vy-profit input:focus,
.vy-profit select:focus {
  outline: 3px solid #42a5ff26;
  border-color: var(--vy-accent);
  box-shadow: 0 0 0 1px #42a5ff14;
}

.vy-profit input[aria-invalid="true"] {
  border-color: #ff8d96;
}

.vy-profit .vy-field small {
  color: var(--vy-muted);
  font-size: 11px;
  line-height: 1.5;
}

.vy-profit .vy-form-footer {
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--vy-line);
}

.vy-profit .vy-form-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--vy-muted);
  font-size: 11px;
}

.vy-profit .vy-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vy-accent);
}

.vy-profit .vy-reset {
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #454545;
  border-radius: 100px;
  background: #292929;
  color: #f5f5f5;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  box-shadow: none;
  transition: background 150ms ease, border-color 150ms ease;
}

.vy-profit .vy-reset:hover {
  background: #343434;
  border-color: #777777;
}

.vy-profit button:focus-visible,
.vy-profit summary:focus-visible {
  outline: 3px solid var(--vy-accent);
  outline-offset: 4px;
}

.vy-profit .vy-error {
  margin-top: 16px;
  color: #ffabb2;
  font-size: 12px;
}

.vy-profit .vy-results {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.vy-profit .vy-profit-card {
  padding: 27px;
  border-radius: 26px;
}

.vy-profit .vy-profit-top {
  flex-wrap: wrap;
  color: #c5c5c5;
  font-size: 13px;
}

.vy-profit .vy-status {
  padding: 4px 11px;
  border: 1px solid #4b4b4b;
  border-radius: 100px;
  background: #292929;
  color: #e5e5e5;
  font-size: 11px;
  font-weight: 600;
}

/* Subtle status colors preserve the charcoal theme. */
.vy-profit[data-state="positive"] .vy-status {
  border-color: #284e6a;
  background: #162b3b;
  color: #91ceff;
}

.vy-profit[data-state="negative"] .vy-status {
  border-color: #6b3c43;
  background: #352124;
  color: #ffb2bb;
}

.vy-profit .vy-profit-number {
  display: block;
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: clamp(29px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.vy-profit .vy-profit-card > p {
  color: var(--vy-muted);
  font-size: 12px;
}

.vy-profit .vy-profit-bottom {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #383838;
  color: #c5c5c5;
  font-size: 13px;
}

.vy-profit .vy-profit-bottom strong {
  color: #ffffff;
}

.vy-profit .vy-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vy-profit .vy-metric {
  min-width: 0;
  padding: 19px;
  border-radius: 21px;
}

.vy-profit .vy-metric > span {
  display: block;
  color: #b5b5b5;
  font-size: 12px;
}

.vy-profit .vy-metric strong {
  display: block;
  margin: 7px 0;
  color: #f5f5f5;
  font-size: 23px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.vy-profit .vy-metric:first-child strong {
  color: var(--vy-accent);
}

.vy-profit .vy-metric small {
  display: block;
  color: var(--vy-muted);
  font-size: 10px;
  line-height: 1.5;
}

.vy-profit .vy-breakdown {
  padding: 23px;
}

.vy-profit dl {
  margin: 15px 0 0;
}

.vy-profit dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 12px;
}

.vy-profit dt {
  color: var(--vy-muted);
  font-weight: 400;
}

.vy-profit dd {
  min-width: 0;
  margin: 0;
  color: #eeeeee;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.vy-profit .vy-total {
  margin-top: 9px;
  padding-top: 15px;
  border-top: 1px solid #383838;
}

.vy-profit .vy-total dt,
.vy-profit .vy-total dd {
  color: #ffffff;
  font-weight: 700;
}

.vy-profit .vy-method {
  margin-top: 26px;
  border: 1px solid var(--vy-line);
  border-radius: 20px;
  background: var(--vy-card);
}

.vy-profit .vy-method summary {
  padding: 18px 21px;
  color: #dedede;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vy-profit .vy-method summary::marker {
  color: var(--vy-accent);
}

.vy-profit .vy-method > div {
  padding: 0 21px 20px;
  color: var(--vy-muted);
  font-size: 12px;
}

.vy-profit .vy-method strong {
  color: #e3e3e3;
}

.vy-profit .vy-method p + p {
  margin-top: 11px;
}

.vy-profit .vy-footer {
  margin-top: 25px;
  color: var(--vy-muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 850px) {
  .vy-profit .vy-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vy-profit {
    margin: 12px auto;
    padding: 18px;
    border-radius: 22px;
  }

  .vy-profit .vy-intro {
    padding: 25px 0;
  }

  .vy-profit .vy-eyebrow {
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  .vy-profit .vy-panel {
    padding: 18px;
    border-radius: 21px;
  }

  .vy-profit .vy-fields {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vy-profit .vy-profit-card {
    padding: 21px;
    border-radius: 21px;
  }

  .vy-profit .vy-metric {
    padding: 14px;
    border-radius: 18px;
  }

  .vy-profit .vy-metric strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vy-profit input,
  .vy-profit select,
  .vy-profit .vy-reset {
    transition: none;
  }
}