/* Bordaar — the styles of the usage chart and the share bar, shared (2026-10-18).
 *
 * They lived in dashboard.html's own <style>. The product page now draws the same chart for one product, so they moved here
 * and both pages link this file. The markup is written by usage-chart.js (renderDailyChart), whose class names these are:
 * change them together. Pages place the chart themselves (the dashboard and the product overview both drop its box and head
 * inside their own cards); this file is only what the chart IS. */

/* The share bar (an outlined track with a flat orange fill, anchored to the inline start so it grows from the
   right edge in Persian) and the usage chart. Both moved here from stats.html. */
.share-bar{position:relative;height:12px;border-radius:999px;background:var(--band2);border:1.5px solid var(--outline);overflow:hidden}
.share-bar-fill{position:absolute;inset-block:0;inset-inline-start:0;min-width:6px;background:var(--spark);
  border-inline-end:1.5px solid var(--outline);transition:width .3s ease}
.usage-chart{margin-top:22px;background:var(--card);border:1.5px solid var(--panel-bd);border-radius:22px;padding:22px 26px 16px;box-shadow:var(--hard)}
.usage-chart-head{display:flex;align-items:baseline;gap:12px;margin-bottom:6px}
.usage-chart-title{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}
.usage-chart-total{font-family:var(--font-display);font-size:22px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.usage-chart-plot{position:relative}
.usage-chart-plot svg{display:block;max-width:100%;overflow:visible}
.usage-chart-grid{stroke:var(--outline);stroke-width:1.5;opacity:.85}
.usage-chart-axis-label{font-size:9px;fill:var(--muted)}
.usage-chart-area{opacity:0;transition:opacity .8s ease .6s}
.usage-chart.drawn .usage-chart-area{opacity:1}
.usage-chart-line{fill:none;stroke:var(--outline);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1000;stroke-dashoffset:1000;transition:stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1)}
.usage-chart.drawn .usage-chart-line{stroke-dashoffset:0}
.usage-chart-dot{fill:var(--spark);stroke:var(--outline);stroke-width:2;transform-origin:center;transform-box:fill-box;transform:scale(0);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1) 1.1s}
.usage-chart.drawn .usage-chart-dot{transform:scale(1)}
.usage-chart-crosshair{stroke:var(--outline);stroke-width:1.5;stroke-dasharray:4 4;opacity:0;transition:opacity .15s;pointer-events:none}
.usage-chart-hit{fill:transparent;cursor:crosshair;outline:none}
.usage-chart-tip{position:absolute;transform:translate(-50%,calc(-100% - 12px));background:var(--tag-bg);color:var(--tag-fg);
  font-size:12.5px;font-weight:700;white-space:nowrap;padding:6px 11px;border-radius:10px;pointer-events:none;font-variant-numeric:tabular-nums}
