.star-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 24px 42px 0; }
.star-hero h1 { font-size: clamp(48px, 6vw, 76px); }
.star-hero .eyebrow { color: var(--yellow); letter-spacing: 3px; }
.star-hero .subtitle { max-width: 420px; }
.star-emblem { width: 190px; height: 190px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ffe28055; border-radius: 50%; background: radial-gradient(circle, #58412780, #201725 72%); box-shadow: 0 0 0 14px #ffe28005, 0 0 0 15px #ffe28018, 0 0 80px #ff618c18; transform: rotate(8deg); }
.star-emblem > span { font-size: 106px; line-height: 1; color: var(--yellow); text-shadow: 0 0 35px #ffe28055; }
.star-emblem small { color: var(--yellow); font-size: 8px; letter-spacing: 1.4px; margin-top: 10px; }
.chart-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; padding: 20px; }
.chart-filters label { display: block; margin-bottom: 8px; }
.chart-account { min-width: 0; }
.chart-account select { width: 100%; max-width: 290px; }
.chart-filters .periods { margin-left: auto; align-self: end; flex-wrap: wrap; }
.chart-metric select { min-width: 130px; }
.chart-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.star-stats { margin: 0 0 24px; }
.star-stats .stat strong { overflow-wrap: anywhere; font-size: clamp(24px, 3vw, 37px); }
.star-stats .stat small { min-height: 28px; line-height: 1.6; }
.star-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.chart-card { min-width: 0; overflow: hidden; padding: 24px; border-top: 2px solid var(--chart-color); }
.chart-gold { --chart-color: var(--yellow); }
.chart-mint { --chart-color: var(--mint); }
.chart-pink { --chart-color: var(--pink); }
.chart-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.chart-heading .eyebrow { color: var(--chart-color); font-size: 9px; margin-bottom: 10px; }
.chart-heading h2 { font-size: 19px; line-height: 1.4; }
.chart-chip { flex-shrink: 0; border: 1px solid #ffffff20; border-radius: 20px; padding: 6px 9px; font-size: 8px; letter-spacing: .7px; color: var(--chart-color); }
.chart-caption { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 14px 0 10px; min-height: 36px; overflow-wrap: anywhere; }
.chart-box { position: relative; }
.chart-plot { height: 238px; width: 100%; touch-action: pan-y; }
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.chart-gridline { stroke: #ffffff0d; stroke-width: 1; }
.chart-axis { fill: var(--muted); font: 11px "Segoe UI", system-ui, sans-serif; }
.chart-line { fill: none; stroke: var(--chart-color); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: var(--chart-color); opacity: .09; }
.chart-point { fill: var(--chart-color); }
.chart-cursor { stroke: var(--chart-color); stroke-width: 1; stroke-dasharray: 3 5; opacity: .55; }
.chart-selected { fill: #17131f; stroke: var(--chart-color); stroke-width: 2.5; }
.chart-empty { position: absolute; top: 62px; left: 12%; right: 5%; padding: 16px; margin: 0; color: var(--muted); background: #1b1623eb; border: 1px dashed var(--line); border-radius: 12px; font-size: 12px; line-height: 1.8; text-align: center; pointer-events: none; }
.chart-readout { display: block; min-height: 60px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: #e4dced; background: #ffffff03; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.chart-box input[type="range"] { display: block; width: 100%; min-height: 44px; margin: 2px 0; accent-color: var(--chart-color); cursor: pointer; }
.chart-box input:disabled { cursor: default; }
.chart-box summary { display: flex; align-items: center; min-height: 44px; width: fit-content; color: var(--muted); cursor: pointer; font-size: 11px; }
.chart-box summary::before { content: "+"; color: var(--chart-color); font-size: 17px; margin-right: 9px; }
.chart-box details[open] summary::before { content: "−"; }
.chart-values { min-height: 44px; max-height: 280px; overflow-y: auto; margin: 0; padding: 0 8px 0 20px; font-size: 11px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.chart-box :is(input, summary, .chart-values):focus-visible { outline: 2px solid var(--chart-color); outline-offset: 3px; border-radius: 4px; }
.chart-values li { padding: 7px 0; }
.chart-footnote { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 15px 0 0; }
.gift-bars { list-style: none; margin: 4px 0 0; padding: 0; }
.gift-bars li { padding: 13px 0; }
.bar-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; font-size: 12px; }
.bar-heading > span { min-width: 0; overflow-wrap: anywhere; }
.bar-heading strong { color: var(--pink); flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.bar-track { height: 7px; border-radius: 5px; background: #ffffff07; overflow: hidden; }
.bar-track > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #bd497e, var(--pink)); }
.gift-bars small { display: block; color: var(--yellow); font-size: 10px; line-height: 1.6; margin-top: 6px; }
.chart-placeholder { color: var(--muted); padding: 45px 12px; font-size: 12px; text-align: center; line-height: 1.8; }
.hour-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.hour-tile { min-width: 0; min-height: 66px; border: 1px solid #ffe28016; border-radius: 9px; padding: 8px 3px; background: #25202b; color: var(--muted); }
.hour-tile span, .hour-tile strong { display: block; }
.hour-tile span { font-size: 9px; font-weight: 400; }
.hour-tile strong { font-size: 11px; margin-top: 7px; overflow-wrap: anywhere; }
.hour-tile.heat-1 { background: #3d3326; color: #d3c59d; }
.hour-tile.heat-2 { background: #67532e; color: #ffedb0; }
.hour-tile.heat-3 { background: #a6843e; color: #fff5d5; }
.hour-tile.heat-4 { background: var(--yellow); color: #302510; }
.hour-tile.heat-unknown { border-style: dashed; color: #ff9fbc; }
.hour-tile[aria-pressed="true"] { outline: 2px solid var(--mint); outline-offset: 2px; }
.hour-detail { min-height: 70px; border-top: 1px solid var(--line); padding-top: 16px; margin: 20px 0 0; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.heat-legend { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.heat-legend i { width: 13px; height: 9px; border-radius: 2px; background: #3d3326; }
.heat-legend i:nth-of-type(2) { background: #67532e; }
.heat-legend i:nth-of-type(3) { background: #a6843e; }
.heat-legend i:nth-of-type(4) { background: var(--yellow); }
.heat-legend span:first-child { margin-right: 3px; }
.heat-legend span:last-child { margin-left: 3px; }
@media (max-width: 1000px) {
  .chart-filters .periods { order: 3; width: 100%; margin-left: 0; }
  .chart-metric { margin-left: auto; }
  .chart-card { padding: 20px; }
  .hour-grid { gap: 6px; }
}
@media (max-width: 760px) {
  .star-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .star-hero { padding: 36px 0 30px; gap: 12px; }
  .star-hero h1 { font-size: 46px; }
  .star-hero .subtitle { font-size: 12px; max-width: 270px; }
  .star-emblem { width: 84px; height: 84px; box-shadow: 0 0 0 7px #ffe28005, 0 0 0 8px #ffe28018; align-self: start; margin-top: 30px; }
  .star-emblem > span { font-size: 59px; }
  .star-emblem small { display: none; }
  .chart-filters { padding: 16px; gap: 14px; }
  .chart-account { width: 100%; }
  .chart-account select { max-width: none; }
  .chart-metric { margin-left: 0; width: 100%; }
  .chart-metric select { width: 100%; }
  .chart-filters .periods { gap: 3px; order: 0; }
  .chart-filters .periods button { flex: 1; padding: 8px 5px; }
  .star-stats { gap: 10px; }
  .star-stats .stat { padding: 15px 12px; }
  .star-stats .stat strong { font-size: 29px; }
  .star-stats .stat > span { font-size: 10px; }
  .chart-card { padding: 17px 14px; }
  .chart-heading h2 { font-size: 17px; }
  .bar-heading { flex-wrap: wrap; gap: 5px; }
  .bar-heading strong { margin-left: auto; }
  .hour-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 380px) {
  .star-emblem { display: none; }
  .star-hero h1 { font-size: 43px; }
}
