.report-menu {position:relative;color:var(--ink);font-size:.84rem}
.report-menu>summary {display:flex;align-items:center;gap:.55rem;min-height:2.2rem;padding:.38rem .68rem;list-style:none;border:1px solid var(--line);border-radius:.6rem;background:#fff;cursor:pointer;white-space:nowrap;font-weight:560}
.report-menu>summary::-webkit-details-marker {display:none}
.report-menu>summary::after {content:"";width:.35rem;height:.35rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-1px) rotate(45deg)}
.report-menu[open]>summary::after {transform:translateY(2px) rotate(225deg)}
.report-menu-items {position:absolute;right:0;top:calc(100% + .35rem);z-index:8;display:grid;gap:.65rem;width:13.5rem;padding:.75rem;border:1px solid var(--line);border-radius:.75rem;background:white;box-shadow:0 .5rem 1.5rem #17171618}
.report-menu-items>button {justify-content:flex-start}
.telegram-send {display:grid;justify-items:start;gap:.4rem;padding-bottom:.85rem;border-bottom:1px solid var(--line)}
.telegram-preview-block {width:100%;min-width:0}
.telegram-preview-block summary {cursor:pointer;font-size:.84rem;color:var(--muted)}
.telegram-preview-block pre {margin:.4rem 0}
@media(max-width:730px){
  .report-menu-items {position:absolute;right:0;max-width:calc(100vw - 1.5rem)}
  .topbar .report-menu, .alt-top .report-menu {position:static}
  .topbar,.alt-top {position:relative}
  .topbar .report-menu-items,.alt-top .report-menu-items {right:.75rem;top:calc(100% + .15rem)}
  .alt-top .report-menu>summary {font-size:.78rem;min-height:2rem;padding:.25rem .5rem}
}

/* The studio's graphite and yellow anchor the navigation. The report itself stays on paper. */
:root[data-theme=studio],:root[data-theme=studio] .alt-shell {
  --ink:#171716;--muted:#60605c;--paper:#f5f5f3;--line:#deded9;
  --accent:#ffd600;--accent-pressed:#edc600;--pale:#fff7ce;--link:#363632;
  --table-head:#f3f3f3;--table-line:#d8d8d3;
  --chart-1:#a77a00;--chart-2:#3459a8;--chart-3:#373735;
  --chart-grid:#e6e6e2;--chart-text:#62625d;
  --series-1:#405c9b;--series-2:#bc900e;--series-3:#3f4240;--series-4:#5f8d87;
  --series-5:#ac7450;--series-6:#82769a;--series-7:#87925d;--series-8:#9d687d;
  --spend-series:#a77a00;--result-series:#405c9b;--cost-series:#424443;
  --trend-line:#686965;--active-point:#ffd600;--point-label:#fff2a8;--plot-guide:#858681;
  --plot-track:#ecece8;--plot-grid:#e6e6e2;
}
[data-theme=studio] .alt-top {background:var(--ink);border-color:var(--ink)}
[data-theme=studio] .alt-identity .mark {background:var(--accent);color:var(--ink)}
[data-theme=studio] .alt-identity .project-picker>summary,[data-theme=studio] .alt-client-project {color:white}
[data-theme=studio] .alt-identity .project-picker>summary::after {border-color:#d0d0c9}
[data-theme=studio] .alt-top .nav {border-color:#454542}
[data-theme=studio] .alt-top .nav button,[data-theme=studio] .alt-user .management-switch {color:#e7e7e2}
[data-theme=studio] .alt-top .nav button:hover {background:#343432}
[data-theme=studio] .alt-top .nav button.active {color:var(--ink);background:var(--accent)}
[data-theme=studio] .alt-top .report-menu>summary {color:white;border-color:#575751;background:#242422}
[data-theme=studio] .alt-account>summary {background:#41413d;color:white}
[data-theme=studio] .nav button.active,[data-theme=studio] .alt-direction[aria-current=true],
[data-theme=studio] .alt-direction-list .alt-direction[aria-current=true] {background:var(--pale);color:var(--ink)}
[data-theme=studio] .alt-direction[aria-current=true] {box-shadow:inset 3px 0 var(--accent)}
[data-theme=studio] :is(.alt-card,.alt-directions,.alt-shell .panel,.alt-account-menu,.alt-kpis,.alt-shape,.budget-panel,.alt-filters>.period-picker,.alt-filters>select) {background-color:white}
[data-theme=studio] .alt-kpis {border-color:var(--line)}
[data-theme=studio] :is(.alt-kpi-value,.alt-compare .direction-jump,.alt-rail-action) {color:var(--ink)}
[data-theme=studio] :is(.alt-kpi small,.alt-kpi-label,.alt-plot-date,.alt-legend-item,.alt-trend-key,.alt-plan-key) {color:var(--muted)}
[data-theme=studio] .alt-direction-list .alt-direction+.alt-direction {border-color:var(--line)}
[data-theme=studio] .alt-direction:hover,[data-theme=studio] .alt-filters .vat-options {background:#f3f3ef}
[data-theme=studio] .alt-chart-tab[aria-pressed=true] {color:var(--ink);background:var(--pale)}
[data-theme=studio] .alt-filters .vat-options input:checked+span {background:#fff;color:var(--ink)}
[data-theme=studio] .alt-trend input[type=checkbox] {accent-color:var(--ink)}
[data-theme=studio] .alt-trend-key::before {border-color:var(--trend-line)}
[data-theme=studio] .alt-plot svg text {fill:var(--chart-text)}
[data-theme=studio] .alt-plot svg .alt-tip-text {fill:var(--ink)}
[data-theme=studio] .alt-legend button {background:#f5f5f3;color:var(--ink)}
[data-theme=studio] .alt-percent progress {accent-color:#628766}
[data-theme=studio] tbody tr {--row-bg:#fff;--plan-bg:#faf8ef}
[data-theme=studio] tbody tr:nth-child(even) {--row-bg:#f6f6f4;--plan-bg:#f4f1e4}
[data-theme=studio] tbody tr:is(:hover,:focus-within) {--row-bg:#fff4c5;--plan-bg:#ffecaa}
[data-theme=studio] thead th {color:#52524e}
[data-theme=studio] thead .plan-detail {background:#eeecdf;color:#514f43}
[data-theme=studio] :is(.alt-compare,.history-table) tfoot tr>* {background:var(--pale);border-color:#dbcc89}
[data-theme=studio] .alt-notices>.notification-center {background:white}
[data-theme=studio] .has-alerts>.notification-head {background:#fff8d9}
[data-theme=studio] .has-alerts .notification-icon {background:var(--accent);color:var(--ink)}
[data-theme=studio] .has-alerts .notification-count {background:var(--ink);color:white}
[data-theme=studio] :focus-visible {outline-color:#2258f6}
@media(max-width:730px){
  [data-theme=studio] .alt-direction-list .alt-direction {background:#f3f3f0}
}
