/* The overview's bands (CMS-L85): the AI band, the income band, the site
   band, the next-steps banner, and the charts and controls they share.

   Built on the dashboard kit's card (cms-dashboard.css) and the shell's
   tokens, so the bands follow the operator's theme and both schemes. The one
   palette of its own is the chart series: four colours chosen together and
   checked for colour-blind separation in both schemes, the fourth a neutral
   for "other". A series keeps its colour whatever period is shown — the
   colour follows the assistant, the model or the source, never its rank.

   Logical properties throughout; the charts alone run left to right
   (dir="ltr" on their frame), because time does on every chart. */

:root {
    --cms-ov-s1: #126fbe;
    --cms-ov-s2: #eb6834;
    --cms-ov-s3: #1baf7a;
    --cms-ov-s4: color-mix(in srgb, var(--haya-text) 34%, var(--haya-surface));
    --cms-ov-tip-bg: #232738;
    --cms-ov-tip-ink: #f2f4fa;
    --cms-ov-tip-muted: #b9bfd1;
    --cms-ov-grid: color-mix(in srgb, var(--haya-text) 8%, transparent);
    --cms-ov-grid-base: color-mix(in srgb, var(--haya-text) 22%, transparent);
    --cms-ov-soft: color-mix(in srgb, var(--haya-text) 5%, var(--haya-surface));
}

:root[data-haya-scheme='dark'] {
    --cms-ov-s1: #3987e5;
    --cms-ov-s2: #d95926;
    --cms-ov-s3: #199e70;
    --cms-ov-tip-bg: #0d111c;
    --cms-ov-tip-ink: #e8ebf3;
    --cms-ov-tip-muted: #a3a9bd;
}

/* -------------------------------------------------------------- band - */

/* One row of six columns inside one full-width widget. The band is its own
   size container, so its cells reflow to the band's width — which the
   sidebar, not the window, decides. */
.cms-ov-band {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.cms-ov-cell { min-width: 0; }
.cms-ov-cell--wide { grid-column: span 4; }
.cms-ov-cell--narrow { grid-column: span 2; }
.cms-ov-cell--third { grid-column: span 2; }

@container (max-width: 1040px) {
    .cms-ov-cell--wide { grid-column: 1 / -1; }
    .cms-ov-cell--narrow { grid-column: 1 / -1; }
    .cms-ov-cell--third { grid-column: span 3; }
    .cms-ov-cell--third:last-child { grid-column: 1 / -1; }
}

@container (max-width: 640px) {
    .cms-ov-cell--third { grid-column: 1 / -1; }
}

.cms-ov-cell--alert {
    border-color: color-mix(in srgb, var(--haya-warning) 55%, var(--haya-border));
}

.cms-ov-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cms-ov-head__text { min-width: 0; }

.cms-ov-head__tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cms-ov-head__link {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.cms-ov-muted { color: var(--haya-text-muted); margin: 0; font-size: 0.8125rem; }
.cms-ov-small { font-size: 0.75rem; }
.cms-ov-good { color: var(--haya-success); display: inline-flex; align-items: center; gap: 0.25rem; }
.cms-ov-center { display: flex; justify-content: center; }

.cms-ov-empty {
    margin: 0;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--haya-text-muted);
    font-size: 0.875rem;
    border: 1px dashed var(--haya-border);
    border-radius: 0.75rem;
}

.cms-ov-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.is-busy { opacity: 0.55; transition: opacity 120ms ease; }

.cms-ov-bone--block {
    display: block;
    height: 9rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--haya-text) 6%, var(--haya-surface));
}

/* ------------------------------------------------------------ controls - */

.cms-ov-segs {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 0.625rem;
    background: var(--cms-ov-soft);
    border: 1px solid var(--haya-border);
}

.cms-ov-seg {
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    min-height: 1.75rem;
    border: 0;
    border-radius: 0.4375rem;
    background: transparent;
    color: var(--haya-text-muted);
    cursor: pointer;
}

.cms-ov-seg.is-on {
    background: var(--haya-surface);
    color: var(--haya-text);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--haya-text) 14%, transparent);
}

.cms-ov-tool,
.cms-ov-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 0.625rem;
    border: 1px solid var(--haya-border);
    background: var(--haya-surface);
    color: var(--haya-text-muted);
    cursor: pointer;
    padding: 0;
}

.cms-ov-icon { border-color: transparent; background: transparent; width: 2rem; height: 2rem; }

.cms-ov-tool:hover,
.cms-ov-icon:hover { background: var(--cms-ov-soft); color: var(--haya-text); }

.cms-ov-tool.is-on {
    color: var(--haya-brand);
    border-color: color-mix(in srgb, var(--haya-brand) 45%, var(--haya-border));
}

.cms-ov-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    box-sizing: border-box;
    border-radius: 0.625rem;
    border: 1px solid var(--haya-border);
    background: var(--haya-surface);
    color: var(--haya-text);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.cms-ov-button:hover { background: var(--cms-ov-soft); text-decoration: none; }

.cms-ov-button--primary {
    background: var(--haya-brand);
    border-color: var(--haya-brand);
    color: #ffffff;
}

.cms-ov-button--primary:hover { background: var(--haya-brand); filter: brightness(1.06); }

.cms-ov-button--ghost { background: transparent; border-color: transparent; color: var(--haya-text-muted); }

.cms-ov-button--small { min-height: 2rem; padding: 0.25rem 0.75rem; align-self: flex-start; }

.cms-ov-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cms-ov-actions > .cms-ov-button { flex: 1 1 10rem; }

/* --------------------------------------------------------- range pick - */

.cms-ov-range { position: relative; }

.cms-ov-range__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.125rem;
    padding: 0.25rem 0.75rem;
    box-sizing: border-box;
    border-radius: 0.625rem;
    border: 1px solid var(--haya-border);
    background: var(--haya-surface);
    color: var(--haya-text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cms-ov-range__button:hover { background: var(--cms-ov-soft); }

.cms-ov-range__button.is-open {
    border-color: var(--haya-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--haya-brand) 18%, transparent);
}

.cms-ov-range__span { font-size: 0.6875rem; font-weight: 500; color: var(--haya-text-muted); }
.cms-ov-range__chevron { color: var(--haya-text-muted); }

.cms-ov-overlay { position: fixed; inset: 0; z-index: 40; }

.cms-ov-pop {
    position: absolute;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline-end: 0;
    z-index: 41;
    width: 18rem;
    max-width: calc(100vw - 2rem);
    background: var(--haya-surface);
    border: 1px solid var(--haya-border);
    border-radius: 0.875rem;
    box-shadow: 0 28px 56px -18px rgba(12, 16, 30, 0.42);
    overflow: hidden;
}

.cms-ov-pop__presets { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem; }

.cms-ov-pop__preset {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--haya-text);
    font: inherit;
    font-size: 0.8125rem;
    text-align: start;
    cursor: pointer;
}

.cms-ov-pop__preset small { font-size: 0.6875rem; color: var(--haya-text-muted); }
.cms-ov-pop__preset:hover { background: var(--cms-ov-soft); }

.cms-ov-pop__preset.is-on {
    background: color-mix(in srgb, var(--haya-brand) 12%, transparent);
    color: var(--haya-brand);
    font-weight: 600;
}

.cms-ov-pop__foot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-block-start: 1px solid var(--haya-border);
    background: var(--cms-ov-soft);
}

.cms-ov-pop__note { margin: 0; font-size: 0.6875rem; line-height: 1.7; color: var(--haya-text-muted); }

.cms-ov-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--haya-text);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-align: start;
}

.cms-ov-switch__track {
    position: relative;
    flex: none;
    width: 2.125rem;
    height: 1.25rem;
    border-radius: 99px;
    background: color-mix(in srgb, var(--haya-text) 18%, var(--haya-surface));
    transition: background 120ms ease;
}

.cms-ov-switch__track::after {
    content: "";
    position: absolute;
    inset-block-start: 3px;
    inset-inline-start: 3px;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 99px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: inset-inline-start 120ms ease;
}

.cms-ov-switch.is-on .cms-ov-switch__track { background: var(--haya-brand); }
.cms-ov-switch.is-on .cms-ov-switch__track::after { inset-inline-start: 1.0625rem; }

/* --------------------------------------------------------------- kpis - */

.cms-ov-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--haya-border);
    border-radius: 0.75rem;
    background: var(--cms-ov-soft);
}

@container (max-width: 640px) {
    .cms-ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cms-ov-kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0.875rem;
    min-width: 0;
    border-inline-start: 1px solid var(--haya-border);
}

.cms-ov-kpi:first-child { border-inline-start: 0; }

.cms-ov-kpi__label { font-size: 0.75rem; font-weight: 500; color: var(--haya-text-muted); }

.cms-ov-kpi__value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    unicode-bidi: plaintext;
}

.cms-ov-kpi__value small { font-size: 0.75rem; font-weight: 500; color: var(--haya-text-muted); }

/* -------------------------------------------------------------- chart - */

.cms-ov-chart {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    direction: ltr;
}

.cms-ov-chart__axis {
    position: relative;
    flex: none;
    width: 2.75rem;
    height: 11.25rem;
    font-size: 0.6875rem;
    color: var(--haya-text-muted);
    font-variant-numeric: tabular-nums;
}

.cms-ov-chart__axis span {
    position: absolute;
    inset-inline-end: 0;
    transform: translateY(-50%);
    white-space: nowrap;
}

.cms-ov-chart__frame { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.cms-ov-chart__plot { position: relative; height: 11.25rem; }

.cms-ov-chart__plot > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cms-ov-chart__grid {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px solid var(--cms-ov-grid);
}

.cms-ov-chart__grid--base { border-top-color: var(--cms-ov-grid-base); }

.cms-ov-stop--top { stop-color: var(--cms-ov-s1); stop-opacity: 0.34; }
.cms-ov-stop--bottom { stop-color: var(--cms-ov-s1); stop-opacity: 0; }

.cms-ov-line {
    fill: none;
    stroke: var(--cms-ov-s1);
    stroke-width: 2.25;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.cms-ov-line--glow { stroke-width: 8; stroke-opacity: 0.12; }
.cms-ov-line--thin { stroke-width: 1.5; }

.cms-ov-line--previous {
    stroke: var(--haya-text-muted);
    stroke-width: 1.5;
    stroke-dasharray: 5 5;
    stroke-opacity: 0.8;
}

path.cms-ov-layer { fill-opacity: 0.9; }

path.cms-ov-layer.cms-ov-tone--1 { fill: color-mix(in srgb, var(--cms-ov-s1) 70%, var(--haya-surface)); }
path.cms-ov-layer.cms-ov-tone--2 { fill: color-mix(in srgb, var(--cms-ov-s2) 70%, var(--haya-surface)); }
path.cms-ov-layer.cms-ov-tone--3 { fill: color-mix(in srgb, var(--cms-ov-s3) 70%, var(--haya-surface)); }
path.cms-ov-layer.cms-ov-tone--4 { fill: color-mix(in srgb, var(--cms-ov-s4) 80%, var(--haya-surface)); }

.cms-ov-line.cms-ov-tone--1 { stroke: var(--cms-ov-s1); }
.cms-ov-line.cms-ov-tone--2 { stroke: var(--cms-ov-s2); }
.cms-ov-line.cms-ov-tone--3 { stroke: var(--cms-ov-s3); }
.cms-ov-line.cms-ov-tone--4 { stroke: var(--cms-ov-s4); }

/* A 2px surface gap between stacked fills, so neighbouring layers read as
   separate shapes and not one blended one. */
.cms-ov-line--thin { stroke: var(--haya-surface) !important; stroke-width: 2; }

.cms-ov-fill--1 { background: var(--cms-ov-s1); }
.cms-ov-fill--2 { background: var(--cms-ov-s2); }
.cms-ov-fill--3 { background: var(--cms-ov-s3); }
.cms-ov-fill--4 { background: var(--cms-ov-s4); }

.cms-ov-chart__hits { position: absolute; inset: 0; display: flex; z-index: 2; }

.cms-ov-chart__hit { position: relative; flex: 1 1 0; min-width: 0; cursor: crosshair; }

.cms-ov-chart__hit::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 1px dashed var(--cms-ov-grid-base);
    opacity: 0;
}

.cms-ov-chart__hit:hover::before { opacity: 1; }
.cms-ov-chart__hit.is-future { cursor: default; }
.cms-ov-chart__hit.is-future::before { display: none; }

.cms-ov-chart__dot {
    position: absolute;
    left: 50%;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: -0.375rem;
    margin-bottom: -0.375rem;
    border-radius: 99px;
    background: var(--haya-surface);
    border: 3px solid var(--cms-ov-s1);
    box-sizing: border-box;
    opacity: 0;
    z-index: 3;
}

.cms-ov-chart__dot--previous { width: 0.5625rem; height: 0.5625rem; margin-left: -0.28rem; margin-bottom: -0.28rem; border: 2px solid var(--haya-text-muted); }

.cms-ov-chart__hit:hover .cms-ov-chart__dot { opacity: 1; }

.cms-ov-chart__live {
    position: absolute;
    width: 0.625rem;
    height: 0.625rem;
    margin-left: -0.3125rem;
    margin-bottom: -0.3125rem;
    border-radius: 99px;
    background: var(--cms-ov-s1);
    z-index: 2;
    pointer-events: none;
}

.cms-ov-chart__live::after {
    content: "";
    position: absolute;
    inset: -0.375rem;
    border-radius: 99px;
    border: 2px solid var(--cms-ov-s1);
    animation: cms-ov-pulse 1.8s ease-out infinite;
}

@keyframes cms-ov-pulse {
    from { transform: scale(0.45); opacity: 0.8; }
    to { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cms-ov-chart__live::after { animation: none; opacity: 0.4; }
}

.cms-ov-chart__peak {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 99px;
    background: var(--haya-surface);
    border: 1px solid var(--haya-border);
    color: var(--haya-text);
    box-shadow: 0 6px 16px -10px rgba(20, 24, 40, 0.4);
    z-index: 2;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    unicode-bidi: isolate;
}

.cms-ov-chart__pin {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.375rem;
    background: color-mix(in srgb, var(--haya-success) 18%, var(--haya-surface));
    color: var(--haya-success);
    border: 2px solid var(--haya-surface);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
}

.cms-ov-chart__labels { display: flex; height: 1.75rem; }

.cms-ov-chart__labels span {
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.9rem;
    color: var(--haya-text-muted);
    white-space: nowrap;
}

/* ------------------------------------------------------------ tooltip - */

.cms-ov-tip {
    display: none;
    position: absolute;
    top: -0.5rem;
    width: 16.5rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    background: var(--cms-ov-tip-bg);
    color: var(--cms-ov-tip-ink);
    box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.55);
    font-size: 0.75rem;
    z-index: 30;
    pointer-events: none;
    flex-direction: column;
    gap: 0.125rem;
}

.cms-ov-chart__hit.is-start .cms-ov-tip { left: calc(50% + 1rem); }
.cms-ov-chart__hit.is-end .cms-ov-tip { right: calc(50% + 1rem); }
.cms-ov-chart__hit:hover .cms-ov-tip { display: flex; }

.cms-ov-tip__head { color: var(--cms-ov-tip-muted); }

.cms-ov-tip__value { display: flex; align-items: baseline; gap: 0.375rem; flex-wrap: wrap; }
.cms-ov-tip__value b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.cms-ov-tip__muted { color: var(--cms-ov-tip-muted); font-size: 0.6875rem; }

.cms-ov-tip__section {
    margin-block-start: 0.5rem;
    padding-block-start: 0.5rem;
    border-block-start: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--cms-ov-tip-muted);
    font-size: 0.6875rem;
}

.cms-ov-tip__row { display: flex; align-items: center; gap: 0.5rem; line-height: 1.6; }
.cms-ov-tip__row b { font-variant-numeric: tabular-nums; }
.cms-ov-tip__label { flex: 1; color: var(--cms-ov-tip-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cms-ov-tip__row--sum {
    margin-block-start: 0.375rem;
    padding-block-start: 0.375rem;
    border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}

.cms-ov-tip__meter { display: flex; gap: 2px; height: 0.375rem; border-radius: 99px; overflow: hidden; margin-block: 0.125rem 0.25rem; }
.cms-ov-tip__meter > span { display: block; min-width: 2px; }

.cms-ov-tip__small { margin-block-start: 0.375rem; color: var(--cms-ov-tip-muted); font-size: 0.6875rem; line-height: 1.7; }
.cms-ov-tip__good { margin-block-start: 0.375rem; color: #7fe0a6; font-weight: 700; }

/* --------------------------------------------------------------- bars - */

.cms-ov-bars__col::after {
    content: "";
    position: absolute;
    inset: 0 1px;
    border-radius: 0.375rem;
    background: transparent;
}

.cms-ov-bars__col:hover::after { background: color-mix(in srgb, var(--haya-brand) 7%, transparent); }
.cms-ov-chart--bars .cms-ov-chart__hit::before { display: none; }
.cms-ov-chart--bars .cms-ov-chart__hit { cursor: default; }

.cms-ov-bars__ghost {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    max-width: 2.125rem;
    border-radius: 0.375rem 0.375rem 0 0;
    background: color-mix(in srgb, var(--haya-text) 10%, var(--haya-surface));
}

.cms-ov-bars__bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    max-width: 1.125rem;
    min-width: 4px;
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    z-index: 1;
}

.cms-ov-bars__piece { display: block; width: 100%; flex-basis: 0; min-height: 2px; }

/* ------------------------------------------------------------- legend - */

.cms-ov-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.75rem;
    color: var(--haya-text-muted);
}

.cms-ov-legend__item { display: inline-flex; align-items: center; gap: 0.375rem; }

.cms-ov-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 3px;
}

.cms-ov-swatch--dash { width: 1.125rem; height: 0; border-radius: 0; border-top: 2px dashed var(--haya-text-muted); }
.cms-ov-swatch--ghost { background: color-mix(in srgb, var(--haya-text) 14%, var(--haya-surface)); }

.cms-ov-swatch--pin {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 4px;
    background: color-mix(in srgb, var(--haya-success) 18%, var(--haya-surface));
    color: var(--haya-success);
    font-size: 0.625rem;
    font-weight: 700;
}

.cms-ov-insight {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--haya-brand) 9%, var(--haya-surface));
    font-size: 0.8rem;
    line-height: 1.8;
}

.cms-ov-insight svg { color: var(--haya-brand); flex: none; margin-block-start: 0.25rem; }

/* -------------------------------------------------------------- table - */

.cms-ov-table {
    max-height: 15rem;
    overflow: auto;
    border: 1px solid var(--haya-border);
    border-radius: 0.75rem;
    font-size: 0.75rem;
}

.cms-ov-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }

.cms-ov-table th,
.cms-ov-table td {
    padding: 0.4375rem 0.75rem;
    border-block-start: 1px solid var(--haya-border);
    text-align: start;
    white-space: nowrap;
}

.cms-ov-table thead th {
    position: sticky;
    top: 0;
    border-block-start: 0;
    background: var(--cms-ov-soft);
    color: var(--haya-text-muted);
    font-weight: 600;
}

.cms-ov-table tbody th { font-weight: 500; }

/* -------------------------------------------------------------- gauge - */

.cms-ov-gauge { position: relative; width: 13.125rem; height: 11.125rem; margin: 0 auto; }
.cms-ov-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.cms-ov-gauge__unlit {
    fill: none;
    stroke: color-mix(in srgb, var(--haya-text) 12%, var(--haya-surface));
    stroke-width: 5;
    stroke-linecap: round;
}

.cms-ov-gauge__lit { fill: none; stroke-width: 5; stroke-linecap: round; }

.cms-ov-gauge__stop--from { stop-color: var(--cms-ov-s1); }
.cms-ov-gauge__stop--to { stop-color: color-mix(in srgb, var(--cms-ov-s1) 55%, var(--cms-ov-s3)); }
.cms-ov-gauge--warn .cms-ov-gauge__stop--from,
.cms-ov-gauge--warn .cms-ov-gauge__stop--to { stop-color: var(--haya-warning); }
.cms-ov-gauge--bad .cms-ov-gauge__stop--from,
.cms-ov-gauge--bad .cms-ov-gauge__stop--to { stop-color: var(--haya-danger); }

.cms-ov-gauge__reading {
    position: absolute;
    inset-inline: 0;
    top: 3.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    text-align: center;
}

.cms-ov-gauge__value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cms-ov-gauge__unit { font-size: 0.75rem; color: var(--haya-text-muted); }
.cms-ov-gauge__caption { font-size: 0.6875rem; color: var(--haya-text-muted); max-width: 10rem; line-height: 1.5; }

.cms-ov-facts { display: flex; flex-direction: column; margin: 0; }

.cms-ov-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding-block: 0.5rem;
    border-block-start: 1px solid var(--haya-border);
}

.cms-ov-facts > div:first-child { border-block-start: 0; }
.cms-ov-facts dt { font-size: 0.75rem; color: var(--haya-text-muted); }
.cms-ov-facts dd { margin: 0; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: end; }

.cms-ov-note {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
}

.cms-ov-note svg { flex: none; margin-block-start: 0.125rem; }
.cms-ov-note--warn { background: color-mix(in srgb, var(--haya-warning) 14%, var(--haya-surface)); color: var(--haya-warning); }
.cms-ov-note--bad { background: color-mix(in srgb, var(--haya-danger) 12%, var(--haya-surface)); color: var(--haya-danger); }

/* ---------------------------------------------------------- attention - */

.cms-ov-attention { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.cms-ov-attention li + li { border-block-start: 1px solid var(--haya-border); }

.cms-ov-attention__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.375rem;
    border-radius: 0.5rem;
    color: var(--haya-text);
    text-decoration: none;
}

.cms-ov-attention__row:hover { background: var(--cms-ov-soft); text-decoration: none; }
.cms-ov-attention__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cms-ov-attention__title { font-size: 0.8125rem; font-weight: 600; }
.cms-ov-attention__sub { font-size: 0.75rem; color: var(--haya-text-muted); }
.cms-ov-attention__go { color: var(--haya-text-muted); flex: none; }

.cms-ov-count {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cms-ov-count--bad { background: color-mix(in srgb, var(--haya-danger) 12%, var(--haya-surface)); color: var(--haya-danger); }
.cms-ov-count--warn { background: color-mix(in srgb, var(--haya-warning) 14%, var(--haya-surface)); color: var(--haya-warning); }
.cms-ov-count--brand { background: color-mix(in srgb, var(--haya-brand) 12%, var(--haya-surface)); color: var(--haya-brand); }
.cms-ov-count--muted { background: var(--cms-ov-soft); color: var(--haya-text-muted); }

.cms-ov-clear {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 1.5rem 0.75rem;
    justify-content: center;
    color: var(--haya-success);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* --------------------------------------------------------- site band - */

.cms-ov-rows {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid var(--haya-border);
}

.cms-ov-rows:first-of-type { padding-block-start: 0; border-block-start: 0; }

.cms-ov-rows__row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex-wrap: wrap; }
.cms-ov-rows__row > svg { color: var(--haya-text-muted); flex: none; }
.cms-ov-rows__label { font-size: 0.8125rem; font-weight: 600; flex: 1; }

.cms-ov-host {
    font-family: var(--haya-font-family-mono, ui-monospace, Consolas, monospace);
    font-size: 0.75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    unicode-bidi: isolate;
}

.cms-ov-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }

.cms-ov-tiles > div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--cms-ov-soft);
}

.cms-ov-tiles b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.cms-ov-section { font-size: 0.75rem; font-weight: 600; color: var(--haya-text-muted); }

.cms-ov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.cms-ov-list__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.25rem;
    border-radius: 0.5rem;
    color: var(--haya-text);
    text-decoration: none;
    font-size: 0.8125rem;
}

.cms-ov-list__row:hover { background: var(--cms-ov-soft); text-decoration: none; }
.cms-ov-list__row > svg { color: var(--haya-text-muted); flex: none; }
.cms-ov-list__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-ov-list__when { font-size: 0.6875rem; color: var(--haya-text-muted); white-space: nowrap; }

.cms-ov-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }

.cms-ov-shortcut {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 3.25rem;
    padding: 0.625rem 0.75rem;
    box-sizing: border-box;
    border: 1px solid var(--haya-border);
    border-radius: 0.75rem;
    color: var(--haya-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    min-width: 0;
}

.cms-ov-shortcut:hover {
    border-color: var(--haya-brand);
    background: color-mix(in srgb, var(--haya-brand) 8%, var(--haya-surface));
    text-decoration: none;
}

.cms-ov-shortcut > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.cms-ov-shortcut__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5625rem;
    background: color-mix(in srgb, var(--haya-brand) 12%, var(--haya-surface));
    color: var(--haya-brand);
}

.cms-ov-palette {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: auto 0 0;
    font-size: 0.75rem;
    color: var(--haya-text-muted);
}

.cms-ov-palette kbd {
    font: inherit;
    font-size: 0.6875rem;
    padding: 0 0.375rem;
    border: 1px solid var(--haya-border);
    border-radius: 0.375rem;
}

/* ---------------------------------------------------------- spotlight - */

.cms-ov-spot {
    display: grid;
    grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
    padding: 0;
    gap: 0;
    overflow: hidden;
}

@media (max-width: 760px) {
    .cms-ov-spot { grid-template-columns: 1fr; }
    .cms-ov-spot__art { min-height: 8rem; }
}

.cms-ov-spot__art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 13rem;
    overflow: hidden;
    background: radial-gradient(120% 140% at 30% 20%,
        var(--haya-surface) 0%,
        color-mix(in srgb, var(--cms-ov-spot-ink) 12%, var(--haya-surface)) 55%,
        color-mix(in srgb, var(--cms-ov-spot-ink) 22%, var(--haya-surface)) 100%);
    border-inline-end: 1px solid var(--haya-border);
}

.cms-ov-spot { --cms-ov-spot-ink: var(--haya-brand); }
.cms-ov-spot--urgent { --cms-ov-spot-ink: var(--haya-warning); }
.cms-ov-spot--idea { --cms-ov-spot-ink: var(--cms-ov-s3); }

.cms-ov-spot__ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--cms-ov-spot-ink) 26%, transparent);
}

.cms-ov-spot__ring--outer { width: 11rem; height: 11rem; }
.cms-ov-spot__ring--inner { width: 7.5rem; height: 7.5rem; background: color-mix(in srgb, var(--cms-ov-spot-ink) 8%, transparent); }

.cms-ov-spot__badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.25rem;
    background: var(--haya-surface);
    color: var(--cms-ov-spot-ink);
    box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--cms-ov-spot-ink) 70%, transparent);
}

.cms-ov-spot__badge svg { width: 2rem; height: 2rem; }

.cms-ov-spot__body {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
    padding: 1.25rem 1.5rem 0.875rem;
}

.cms-ov-spot__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

.cms-ov-spot__pager {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
    color: var(--haya-text-muted);
    font-variant-numeric: tabular-nums;
}

.cms-ov-spot__pager > span { padding-inline-end: 0.375rem; }

.cms-ov-spot__title { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.45; }
.cms-ov-spot__text { margin: 0; max-width: 44rem; font-size: 0.85rem; line-height: 1.9; color: var(--haya-text-muted); }

.cms-ov-spot__progress { display: flex; align-items: center; gap: 0.625rem; font-size: 0.75rem; color: var(--haya-text-muted); }

.cms-ov-spot__bar {
    flex: 0 1 14rem;
    height: 0.375rem;
    border-radius: 99px;
    background: color-mix(in srgb, var(--haya-text) 10%, var(--haya-surface));
    overflow: hidden;
}

.cms-ov-spot__bar > span { display: block; height: 100%; border-radius: 99px; background: var(--haya-brand); }

.cms-ov-spot__steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; }

.cms-ov-step {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    border: 1px solid var(--haya-border);
    background: var(--haya-surface);
    font-size: 0.75rem;
    font-weight: 600;
}

.cms-ov-step > svg { color: var(--haya-text-muted); }
.cms-ov-step.is-done { color: var(--haya-text-muted); background: var(--cms-ov-soft); border-color: transparent; }
.cms-ov-step.is-done > svg { color: var(--haya-success); }

.cms-ov-spot__actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-block-start: 0.125rem; }

.cms-ov-spot__dots { display: flex; gap: 2px; margin-block-start: auto; padding-block-start: 0.25rem; }

.cms-ov-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.125rem;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.cms-ov-dot::before {
    content: "";
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 99px;
    background: color-mix(in srgb, var(--haya-text) 18%, var(--haya-surface));
    transition: width 160ms ease;
}

.cms-ov-dot.is-on::before { width: 1.25rem; background: var(--haya-brand); }

.cms-ov-spot-mini {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    flex-wrap: wrap;
}

.cms-ov-spot-mini__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 0.5625rem;
    background: color-mix(in srgb, var(--haya-brand) 12%, var(--haya-surface));
    color: var(--haya-brand);
}

.cms-ov-spot-mini__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 0.8125rem; }
