#panel-overview {
  --ov-muted: color-mix(in srgb, var(--text) 62%, var(--bg));
  --ov-surface: color-mix(in srgb, var(--text) 4%, var(--bg));
  --ov-series-opened: color-mix(in srgb, var(--text) 43%, var(--bg));
  --ov-series-accepted: color-mix(in srgb, var(--text) 62%, var(--bg));
  --ov-series-pending: color-mix(in srgb, var(--text) 25%, var(--bg));
  --ov-series-completed: color-mix(in srgb, var(--text) 88%, var(--bg));
}
#overview-body, .ov-heading { width: 100%; max-width: 1320px; margin-inline: auto; }
.ov-header {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(8.5rem, 13vw, 11rem);
  margin: -2.5rem calc(-1 * var(--px)) clamp(.75rem, 2vw, 1.5rem);
  padding-inline: var(--px);
}
.ov-header-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .74;
  mask-image: linear-gradient(to bottom, #000 68%, transparent);
}
.ov-header-pattern canvas, .ov-header-pattern::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ov-header-pattern::after {
  content: '';
  background: radial-gradient(circle at 50% 50%, transparent 3.5px, var(--bg) 3.5px) 0 0 / 9px 9px;
}
.ov-heading { position: relative; }
.ov-header h1 { font-size: clamp(1.9rem, 3vw, 2.85rem); line-height: 1.03; letter-spacing: -.065em; }
.ov-header p { margin-top: .45rem; font-size: .875rem; color: var(--ov-muted); }
.ov-card {
  min-width: 0;
  border: 1px solid var(--border-s);
  border-radius: var(--radius-ui);
  background: var(--ov-surface);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (hover: hover) {
  .ov-card:hover {
    border-color: color-mix(in srgb, var(--text) 31%, var(--bg));
    box-shadow: inset 0 1px color-mix(in srgb, var(--text) 15%, transparent);
    transform: translateY(-2px);
  }
}
.ov-card:focus-within { border-color: color-mix(in srgb, var(--text) 31%, var(--bg)); }
.ov-card h2 { color: var(--text); font-size: 1.025rem; letter-spacing: -.02em; }
.ov-analytics {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: .75rem;
}
.ov-activity, .ov-pipeline { padding: clamp(1rem, 1.7vw, 1.5rem); }
.ov-activity, .ov-pipeline, .ov-summary-card {
  background: linear-gradient(145deg, var(--bg-1), var(--ov-surface) 60%);
}
.ov-activity {
  background: radial-gradient(ellipse at 50% 61%, var(--ov-surface) 12%, transparent 73%),
    linear-gradient(180deg, color-mix(in srgb, var(--text) 16%, var(--bg)), var(--ov-surface) 66%, var(--bg-1));
}
.ov-pipeline { display: flex; flex-direction: column; }
.ov-activity-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.ov-activity-tools { display: flex; align-items: center; gap: .45rem; }
.ov-payment-shortcut {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  background: transparent;
  color: var(--ov-muted);
  font: inherit;
  cursor: pointer;
}
.ov-payment-shortcut span { transition: color .18s ease, transform .18s ease; }
.ov-payment-shortcut:is(:hover, :focus-visible) { color: var(--text); }
.ov-payment-shortcut:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }
.ov-period { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; }
.ov-period button {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: var(--ov-muted);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  padding: .32rem .5rem;
}
.ov-period button[aria-pressed="true"] { color: var(--text); background: var(--bg-1); }
.ov-period-nav {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: .35rem;
  margin-top: .7rem;
}
.ov-period-nav p { color: var(--ov-muted); font-size: .75rem; text-align: center; min-width: 7rem; }
.ov-period-nav button {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--border-s);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.ov-period-nav button:not(:disabled):hover { background: var(--bg-1); }
.ov-period-nav button:disabled { opacity: .36; cursor: default; }
.ov-chart-summary { margin-top: .8rem; }
.ov-dot-total { display: block; width: fit-content; max-width: 100%; }
.ov-dot-total svg { width: auto; height: clamp(2.2rem, 4vw, 3.15rem); max-width: 100%; display: block; fill: currentColor; }
.ov-chart-total-label { margin-top: .45rem; color: var(--text); font-size: .76rem; }
.ov-gauge-value span, .ov-legend li { font-size: .73rem; color: var(--ov-muted); }
.ov-gauge-value strong { font-size: min(clamp(2rem, 4vw, 3.1rem), 20cqi); line-height: 1; letter-spacing: -.06em; }
.ov-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: .85rem; }
.ov-legend li, .ov-pipeline-list li span { display: flex; align-items: center; gap: .42rem; }
.ov-swatch { display: inline-block; width: .43rem; height: .43rem; border-radius: 2px; flex: none; }
.ov-swatch--opened, .ov-stream-opened { background: var(--ov-series-opened); fill: var(--ov-series-opened); }
.ov-swatch--fees, .ov-stream-fees { background: var(--ov-series-accepted); fill: var(--ov-series-accepted); }
.ov-swatch--completed, .ov-swatch--principal, .ov-stream-principal { background: var(--ov-series-completed); fill: var(--ov-series-completed); }
.ov-swatch--pending { background: var(--ov-series-pending); }
.ov-stream { position: relative; margin-top: .7rem; }
.ov-stream > svg { width: 100%; height: clamp(9.25rem, 16vw, 12.5rem); display: block; }
.ov-stream-axis { stroke: var(--border-s); vector-effect: non-scaling-stroke; }
.ov-stream-shape { transform-origin: center; animation: ov-stream-open .5s cubic-bezier(.2, .65, .25, 1) both; }
@keyframes ov-stream-open { from { opacity: .35; transform: scaleY(.3); } }
.ov-stream-markers { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--bin-count), minmax(0, 1fr)); }
.ov-bin { min-width: 0; position: relative; }
.ov-bin-hit {
  position: absolute; inset: 0; width: 100%;
  border: 0; background: transparent;
  color: var(--text); font: inherit; cursor: pointer;
}
.ov-bin-hit::before {
  content: ''; position: absolute; top: .85rem; bottom: .85rem; left: 50%; width: 1px;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  opacity: 0;
}
.ov-bin-count, .ov-date {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: .17rem .42rem; border-radius: var(--radius-sm); background: var(--bg);
  font-size: .65rem; opacity: 0;
}
.ov-bin-count { top: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-date { bottom: 0; color: var(--ov-muted); }
.ov-bin--marked .ov-bin-hit::before,
.ov-bin--marked :is(.ov-bin-count, .ov-date),
.ov-bin:is(:hover, :focus-within, :has([aria-pressed="true"])) .ov-bin-hit::before,
.ov-bin:is(:hover, :focus-within, :has([aria-pressed="true"])) :is(.ov-bin-count, .ov-date) { opacity: 1; }
.ov-bin-hit:focus-visible { outline-width: 1px; outline-offset: -1px; }
.ov-bin-details {
  display: none; position: absolute; z-index: 1; pointer-events: none;
  left: 50%; top: 1.55rem; transform: translateX(-50%); width: 10rem;
  padding: .55rem .65rem; border: 1px solid var(--border-s); border-radius: var(--radius-ui);
  background: var(--bg); color: var(--text); font-size: .69rem;
}
.ov-bin:first-child .ov-bin-details { left: 0; transform: none; }
.ov-bin:last-child .ov-bin-details { left: auto; right: 0; transform: none; }
.ov-bin:is(:hover, :focus-within, :has([aria-pressed="true"])) .ov-bin-details { display: grid; gap: .3rem; }
.ov-bin-details span { display: flex; align-items: center; gap: .35rem; color: var(--ov-muted); }
.ov-bin-details b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.ov-chart-empty { display: grid; align-content: center; justify-items: center; gap: .4rem; min-height: 11.5rem; text-align: center; }
.ov-chart-empty p, .ov-recent-empty p { font-size: .85rem; font-weight: 700; }
.ov-chart-empty span, .ov-recent-empty span, .ov-summary-empty { font-size: .77rem; color: var(--ov-muted); }
.ov-gauge { width: min(100%, 15.5rem); margin: auto auto .65rem; position: relative; container-type: inline-size; }
.ov-gauge svg { display: block; width: 100%; height: auto; overflow: visible; stroke-width: 2.7; stroke-linecap: round; }
.ov-tick--completed { stroke: var(--ov-series-completed); }
.ov-tick-hover .ov-tick--completed { pointer-events: none; }
.ov-tick-hit { stroke: transparent; stroke-width: 7; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ov-tick-hover .ov-tick--completed { transition: transform .22s cubic-bezier(.2, 0, 0, 1); }
  .ov-tick-hover:hover .ov-tick--completed {
    transform: translate(var(--ov-tick-x), var(--ov-tick-y));
    transition-duration: .09s;
  }
}
.ov-tick--opened { stroke: var(--ov-series-opened); }
.ov-tick--pending { stroke: var(--ov-series-pending); }
.ov-gauge-value { position: absolute; inset: auto 0 .18rem; display: grid; gap: .3rem; text-align: center; pointer-events: none; }
.ov-pipeline-list { margin-top: auto; }
.ov-pipeline-list li { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--border); padding: .37rem 0; font-size: .76rem; color: var(--ov-muted); }
.ov-pipeline-list li:last-child { border-bottom: 0; }
.ov-pipeline-list li strong { font-variant-numeric: tabular-nums; color: var(--text); }
.ov-work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: .75rem; margin-top: .75rem; }
.ov-recent, .ov-summary-card {
  --ov-card-top: color-mix(in srgb, var(--text) 18%, var(--bg));
  background: radial-gradient(ellipse at 48% 50%, var(--ov-surface), transparent 83%),
    linear-gradient(180deg, var(--ov-card-top), var(--ov-surface) 95%);
  box-shadow: inset 0 1px color-mix(in srgb, var(--text) 9%, transparent);
}
.ov-summary-card--review { --ov-card-top: color-mix(in srgb, var(--text) 22%, var(--bg)); }
.ov-summary-card--messages { --ov-card-top: color-mix(in srgb, var(--text) 14%, var(--bg)); }
.ov-recent, .ov-summary-card--messages { position: relative; }
.ov-card-shortcut {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: var(--radius-ui);
  padding: 0;
  background: transparent;
  color: var(--ov-muted);
  cursor: pointer;
}
.ov-card-shortcut:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.ov-card-shortcut span {
  position: absolute;
  top: .85rem;
  right: clamp(.85rem, 1.7vw, 1.5rem);
  font-size: .98rem;
  transition: color .18s ease, transform .18s ease;
}
.ov-card-shortcut:is(:hover, :focus-visible) span { color: var(--text); transform: translate(2px, -2px); }
.ov-recent h2, .ov-summary-card h2 { padding: 1rem clamp(.85rem, 1.7vw, 1.5rem) .7rem; }
.ov-order-row, .ov-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .7rem;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  padding: .65rem clamp(.85rem, 1.7vw, 1.5rem);
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
  transition: background-color .18s ease;
}
.ov-summary-row { grid-template-columns: minmax(0, 1fr) auto; }
.ov-summary-card--messages .ov-summary-row { grid-template-columns: minmax(0, 1fr); }
.ov-summary-row > span:first-child { display: grid; min-width: 0; gap: .18rem; }
.ov-summary-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ov-muted); font-size: .72rem; }
.ov-summary-empty { border-top: 1px solid var(--border); padding: .75rem clamp(.85rem, 1.7vw, 1.5rem); }
button.ov-summary-row:hover { background: var(--bg-1); }
button.ov-summary-row:focus-visible { outline-offset: -3px; }
.ov-order-name { display: grid; gap: .16rem; overflow-wrap: anywhere; }
.ov-order-name span { font-size: .72rem; color: var(--ov-muted); }
.ov-order-status { width: fit-content; border: 1px solid var(--border-s); border-radius: var(--radius-sm); padding: .2rem .4rem; font-size: .69rem; }
.ov-order-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ov-recent-empty { display: grid; gap: .4rem; justify-items: start; padding: .6rem clamp(.85rem, 1.7vw, 1.5rem) 1.25rem; }
.ov-recent-empty a { margin-top: .4rem; position: relative; z-index: 2; }
.ov-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 720px) {
  .ov-analytics { grid-template-columns: 1fr; }
  .ov-work { grid-template-columns: 1fr; }
  .ov-order-row { gap: .45rem; }
}
@media (max-width: 390px) {
  .ov-bin-count, .ov-date { font-size: .61rem; padding-inline: .28rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-card, .ov-card-shortcut span, .ov-payment-shortcut span, .ov-order-row, .ov-summary-row { transition: none; }
  .ov-card:hover, .ov-card-shortcut:is(:hover, :focus-visible) span, .ov-payment-shortcut:is(:hover, :focus-visible) span { transform: none; }
  .ov-stream-shape { animation: none; }
}
