.ps-chart-controls .ps-readable-info {
  position: relative;
}
.ps-chart-controls .ps-readable-info > button {
  min-height: 26px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--scheme-accent);
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ps-chart-controls .ps-readable-info > button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.ps-chart-controls .ps-readable-info > p[hidden] {
  display: none;
}
@media (max-width: 680px) {
  .ps-chart-controls .ps-readable-info {
    position: static;
  }
}

.workspace-main-header > .workspace-toolbar:has(+ .ps-grouped-toolbar) {
  border-bottom: 0;
}
.workspace-main-header > .ps-grouped-toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 8px 16px;
  min-height: 0;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid var(--palette-border, var(--ps-e5e5e5));
  border-radius: 10px;
  background: var(--palette-surface, var(--ps-ffffff));
}
.ps-grouped-toolbar .ps-toolbar-scope {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--scheme-accent) 12%, var(--palette-surface));
}
.ps-toolbar-scope .overview-property-select {
  width: clamp(150px, 19vw, 250px);
  min-width: 0;
}
.ps-toolbar-scope :is(.overview-property-select > label, .ps-toolbar-horizon) {
  color: var(--palette-text);
  font-size: 12px;
  font-weight: 600;
}
.ps-toolbar-scope .ps-toolbar-horizon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ps-toolbar-scope :is(.property-menu-trigger, .ps-toolbar-horizon select) {
  box-sizing: border-box;
  min-height: 36px;
  height: 36px;
}
.ps-toolbar-horizon select {
  padding: 0 8px;
  border: 1px solid var(--ps-334155);
  border-radius: 8px;
  background: var(--palette-surface, var(--ps-ffffff));
  color: var(--palette-text);
  font: inherit;
  font-weight: 400;
}
.ps-grouped-toolbar .ps-chart-controls {
  gap: 8px 16px;
}
.ps-toolbar-scope + .ps-chart-controls {
  padding-left: 14px;
  border-left: 1px solid var(--palette-border, var(--ps-e5e5e5));
}
.workspace-main-header .ps-grouped-toolbar > .demo-pill {
  margin-left: auto;
  white-space: nowrap;
}
.overview-dashboard .overview-headlines {
  padding-block: 12px;
  margin-bottom: 16px;
}
@media (max-width: 1000px) {
  .ps-toolbar-scope + .ps-chart-controls {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 680px) {
  .workspace-main-header .workspace-toolbar.ps-grouped-toolbar {
    display: flex !important;
    gap: 8px;
  }
  .ps-grouped-toolbar .ps-toolbar-scope {
    width: 100%;
  }
  .ps-toolbar-scope .overview-property-select {
    flex: 1;
    width: auto;
  }
  .ps-grouped-toolbar .ps-chart-controls {
    max-width: 100%;
  }
}
.ps-engine-chart-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 0 12px;
}
.ps-engine-chart-controls > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.ps-engine-chart-controls > div > span {
  margin-right: 3px;
  color: var(--palette-text);
  font-size: 12px;
  font-weight: 600;
}
.ps-engine-chart-controls button,
.ps-engine-trendlines {
  min-height: 36px;
  padding: 4px 9px;
  border: 1px solid var(--palette-border, var(--ps-dedfe3));
  border-radius: 7px;
  background: var(--palette-surface, var(--ps-ffffff));
  color: var(--palette-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.ps-engine-chart-controls button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--scheme-accent) 15%, var(--palette-surface));
  border-color: var(--scheme-accent);
  font-weight: 600;
}
.ps-engine-trendlines {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (pointer: coarse) {
  .ps-engine-chart-controls button,
  .ps-engine-trendlines {
    min-height: 44px;
  }
}

.overview-card .ps-growth-value {
  align-self: start;
}
.overview-card .ps-growth-value .overview-result {
  white-space: normal;
}

.overview-dashboard .overview-headlines {
  padding-block: 9px;
}
.overview-dashboard .overview-headline {
  row-gap: 5px;
}
.ps-chart-controls .ps-readable-info > p {
  box-sizing: border-box;
  width: min(220px, calc(100vw - 32px));
  padding: 8px 10px;
}
@media (max-width: 680px) {
  .ps-chart-controls .ps-readable-info > p {
    width: min(220px, 100%);
  }
}

.ps-grouped-toolbar .ps-toolbar-scope {
  background: color-mix(in srgb, var(--scheme-accent) 4%, var(--palette-surface));
}
.ps-grouped-toolbar .ps-chart-controls .ps-smooth-control[aria-checked="true"] .theme-switch-track {
  background: #80a893;
  box-shadow: inset 0 0 0 1px #547a66;
}

.workspace-main-header:has(.ps-toolbar-scope) {
  container-type: inline-size;
}
@container (min-width: 1040px) {
  .workspace-main-header > .ps-grouped-toolbar:has(.ps-toolbar-scope) {
    display: grid;
    grid-template-columns: calc(50% - 3px) minmax(0, 1fr) auto;
    column-gap: 8px;
  }
  .ps-grouped-toolbar:has(.ps-toolbar-scope) .ps-toolbar-scope {
    justify-self: start;
  }
  .ps-grouped-toolbar:has(.ps-toolbar-scope) .ps-chart-controls {
    justify-self: start;
    margin-left: 0;
    column-gap: 8px;
  }
}

[id^="engine-controls-"] :is([aria-label="Cash flow property selection"], [aria-label="Risk property selection"], [aria-label="Overview property selection"], [aria-label^="Risk comparison property:"], [aria-label^="Property selection:"], [aria-label^="Refinance property:"], [aria-label^="Projected returns property:"], [aria-label^="Intersection property:"], [aria-label^="Sensitivity property:"], [aria-label^="Paid-off scenario property:"]) {
  width: 100%;
  min-height: 40px !important;
  padding: 7px 11px !important;
  border: 1px solid var(--palette-border, var(--ps-dedfe3));
  border-radius: 7px !important;
  background: var(--palette-surface, var(--ps-ffffff)) !important;
}
[id^="engine-controls-"] .graph-choice-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-block: 8px 12px;
}
[id^="engine-controls-"] .graph-choice-row::before {
  content: "Year selection";
  margin-right: 3px;
  color: var(--palette-text);
  font-size: 12px !important;
  font-weight: 600;
}
[id^="engine-controls-"] .graph-choice-row > [role="button"] {
  flex: 0 0 auto !important;
  min-height: 36px !important;
  padding: 4px 9px !important;
  border: 1px solid var(--palette-border, var(--ps-dedfe3));
  border-radius: 7px !important;
  background: var(--palette-surface, var(--ps-ffffff)) !important;
}
[id^="engine-controls-"] .graph-choice-row > [role="button"] > * {
  font-size: 12px !important;
}
[id^="engine-controls-"] .graph-choice-row > [aria-selected="true"] {
  background: color-mix(in srgb, var(--scheme-accent) 15%, var(--palette-surface)) !important;
  border-color: var(--scheme-accent);
}
@media (pointer: coarse) {
  [id^="engine-controls-"] :is(:is([aria-label="Cash flow property selection"], [aria-label="Risk property selection"], [aria-label="Overview property selection"], [aria-label^="Risk comparison property:"], [aria-label^="Property selection:"], [aria-label^="Refinance property:"], [aria-label^="Projected returns property:"], [aria-label^="Intersection property:"], [aria-label^="Sensitivity property:"], [aria-label^="Paid-off scenario property:"]), .graph-choice-row > [role="button"]) {
    min-height: 44px !important;
  }
}

.overview-dashboard .overview-headline > span {
  color: var(--ps-1f2937) !important;
}
.ps-toolbar-scope :is(.overview-property-select > label, .ps-toolbar-horizon) {
  color: var(--ps-1f2937);
}
