/* Overview composition, incoming payments and scroll-driven owner navigation. */
.oh-income {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: 12px;
}
.oh-income-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.oh-income-label {
  display: block;
  color: #b7cbd2;
  font-size: var(--oh-caption);
}
.oh-income-top strong {
  display: block;
  font-size: clamp(32px, 4dvh, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-top: 7px;
}
.oh-stripe-state {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  font-size: var(--oh-caption);
  color: #b4bdcf;
}
.oh-stripe-state b {
  font-size: 20px;
  color: #c4baf6;
  letter-spacing: -0.04em;
}
.oh-income-chart {
  margin: 0;
  flex: 1;
  min-height: 60px;
  display: flex;
  flex-direction: column;
}
.oh-income-chart svg {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: visible;
}
.oh-chart-grid path {
  stroke: #e4f5ff18;
  stroke-width: 1;
  stroke-dasharray: 3 7;
  fill: none;
}
.oh-chart-line {
  stroke: #acd5e9;
  stroke-width: 2.5;
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}
.oh-income-chart figcaption {
  display: flex;
  justify-content: space-between;
  font-size: var(--oh-caption);
  color: #b0c1c9;
  margin-top: 9px;
}
.oh-income-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #adbfca;
  font-size: var(--oh-caption);
}
.oh-income-link {
  padding: 4px 0;
  background: none;
  border: 0;
  color: #d6ebf3;
  font-size: var(--oh-caption) !important;
}
.oh-income-unavailable {
  margin-block: auto !important;
}
.oh-main[data-transitioning] {
  pointer-events: none;
}
.oh-scroll-hint {
  color: #b5c9d2;
}
@media (min-width: 701px) {
  .oh-main:not(.oh-destination) {
    grid-template-rows: 36px minmax(0, 1.16fr) minmax(0, 1fr) 16px;
  }
  .oh-main:not(.oh-destination) .oh-money {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(18px, 2.7dvh, 30px);
  }
  .oh-main:not(.oh-destination) .oh-money .oh-section-title {
    margin-bottom: 0;
  }
  .oh-main:not(.oh-destination) .oh-feature {
    grid-column: 2;
    grid-row: 2;
  }
  .oh-main:not(.oh-destination) .oh-feature > section {
    padding: clamp(14px, 2dvh, 22px);
    padding-bottom: 10px;
  }
  .oh-main:not(.oh-destination) .oh-attention h3 {
    font-size: clamp(22px, 2.8dvh, 29px);
    margin-block: 10px;
  }
  .oh-main:not(.oh-destination) .oh-attention small {
    font-size: var(--oh-caption);
    line-height: 1.4;
    display: block;
  }
  .oh-main:not(.oh-destination) .oh-attention p {
    font-size: var(--oh-caption);
    line-height: 1.5;
  }
  .oh-feature .oh-summary {
    padding: 12px 10px;
  }
  .oh-feature .oh-summary > div {
    padding-inline: 9px;
    gap: 6px;
  }
  .oh-feature .oh-summary strong {
    font-size: 23px;
  }
  .oh-feature .oh-summary span {
    font-size: var(--oh-caption);
    line-height: 1.3;
  }
  .oh-main:not(.oh-destination) #oh-projects {
    grid-row: 3;
  }
  .oh-main:not(.oh-destination) .oh-footer {
    grid-row: 4;
  }
  #oh-projects .oh-projects {
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #afc8d24d transparent;
    justify-content: flex-start;
    padding-right: 5px;
  }
  #oh-projects:hover .oh-projects,
  #oh-projects:focus-within .oh-projects {
    overflow-y: auto;
  }
  #oh-projects .oh-project {
    flex: 0 0 auto;
    min-height: 96px;
    padding-block: 16px;
  }
  .oh-page-list .oh-project-picker {
    overflow-y: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #afc8d24d transparent;
    min-height: 0;
  }
  .oh-page-list:hover .oh-project-picker,
  .oh-page-list:focus-within .oh-project-picker {
    overflow-y: auto;
  }
  .oh-project-picker > button {
    flex-shrink: 0;
  }
}
@media (min-width: 701px) and (max-height: 740px) {
  .oh-main:not(.oh-destination) {
    grid-template-rows: 32px minmax(0, 1.22fr) minmax(0, 1fr) 14px;
  }
  .oh-main:not(.oh-destination) .oh-money {
    padding: 16px 20px;
    gap: 8px;
  }
  .oh-main:not(.oh-destination) .oh-feature > section {
    padding: 13px 16px 8px;
  }
  .oh-main:not(.oh-destination) .oh-attention h3 {
    font-size: 22px;
    margin-block: 7px;
  }
  .oh-feature .oh-summary {
    padding-block: 9px;
  }
  .oh-income {
    gap: 7px;
  }
  .oh-income-top strong {
    font-size: 32px;
  }
  #oh-projects .oh-project {
    min-height: 84px;
    padding-block: 12px;
  }
}
@media (min-width: 701px) and (max-height: 650px) {
  .oh-main:not(.oh-destination) {
    grid-template-rows: 28px minmax(0, 1.4fr) minmax(0, 1fr) 12px;
  }
  .oh-main:not(.oh-destination) .oh-feature .oh-summary > div {
    display: flex;
    gap: 4px;
  }
  .oh-feature .oh-summary strong {
    font-size: 20px;
  }
  .oh-main:not(.oh-destination) .oh-attention h3 {
    font-size: 20px;
  }
  .oh-main:not(.oh-destination) .oh-attention p {
    font-size: var(--oh-caption);
  }
  .oh-main:not(.oh-destination) .oh-button {
    margin-top: 6px;
    padding-block: 6px;
  }
}
@media (max-width: 700px) {
  .oh-income-chart {
    min-height: 120px;
  }
  .oh-scroll-hint {
    display: none;
  }
}
@media (hover: none) {
  #oh-projects .oh-projects,
  .oh-page-list .oh-project-picker {
    overflow-y: auto;
  }
}

/* Empty decorative frames live in viewport coordinates, independent of the
   source/target grid. Their text stays in the real destination DOM. */
.oh-morph-stage {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.oh-morph-frame {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: none;
  background: none;
  isolation: isolate;
  will-change: left, top, width, height;
}
.oh-morph-waiting .oh-lens-panel {
  visibility: hidden;
}
.oh-main[data-transitioning] {
  pointer-events: none;
}

/* Local comparison tools live outside the animated card contents. */
@property --oh-morph-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --oh-morph-clock {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --oh-edge-top {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --oh-edge-right {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --oh-edge-bottom {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}
@property --oh-edge-left {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

.oh[data-glass-quality="gpu-retina"][data-menu-ink="gpu"]
  .oh-sidebar
  a[data-oh-nav]
  svg {
  opacity: 0;
}
@media (prefers-reduced-transparency: reduce) {
  .oh[data-glass-quality][data-menu-ink] .oh-sidebar a[data-oh-nav] svg {
    opacity: 1;
  }
}
