:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #263041;
  background: #f4f5f7;
  font-synthesis: none;
  font-size: 13px;
  --blue: #307dd2;
  --green: #159967;
  --red: #d5444a;
  --muted: #77818d;
  --line: #e5e8ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
select,
input,
.button {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 8px 11px;
  min-height: 34px;
}
button,
.button,
select {
  cursor: pointer;
}
button:hover,
.button:hover {
  border-color: #b5cae6;
  background: #f8fbff;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #8dbbf0;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: var(--blue);
  text-decoration: none;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.4px;
  margin: 0;
}
h2 {
  font-size: 14px;
  margin: 0;
}
p {
  line-height: 1.45;
}
main {
  max-width: 1800px;
  margin: auto;
  padding: 24px 32px 36px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.exports {
  display: flex;
  gap: 8px;
}
.exports button {
  font-weight: 600;
}
.tabs {
  display: flex;
  gap: 15px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
  scrollbar-width: thin;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  white-space: nowrap;
  padding: 12px 10px;
  color: #747c88;
  font-weight: 600;
}
.tabs button[aria-current="page"] {
  border-bottom: 2px solid #526bd2;
  color: #283447;
}
.tabs button:hover {
  color: var(--blue);
}
#status:empty {
  display: none;
}
#status {
  color: #626d7c;
}
#filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#filters select {
  max-width: 215px;
}
.date-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.date-label input {
  padding: 7px 6px;
  font-size: 11px;
  width: 118px;
}
#updated {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}
.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  padding: 12px 14px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.kpi-label {
  color: var(--muted);
  font-size: 12px;
}
.kpi strong {
  font-size: 21px;
  letter-spacing: -0.3px;
  color: #253041;
}
.delta {
  font-size: 11px;
}
.positive {
  color: var(--green);
}
.negative,
.danger {
  color: var(--red);
}
.warning {
  color: #b78a00;
}
.muted {
  color: var(--muted);
}
.blocks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 16px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
  min-width: 0;
}
.card.wide {
  grid-column: 1/-1;
}
.card h2 {
  margin-bottom: 20px;
}
.insight {
  color: #818994;
  font-size: 11px;
  margin: 13px 0 0;
  line-height: 1.45;
}

.chart {
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  font-size: 10px;
  fill: #89919a;
}
.chart .gridline {
  stroke: #edf0f3;
  stroke-width: 1;
}
.chart .series {
  stroke: var(--blue);
  stroke-width: 2.5;
  fill: none;
}
.chart .compare {
  stroke: #ef7746;
  stroke-dasharray: 5 4;
}
.chart .plan {
  stroke: #98a4b4;
  stroke-dasharray: 2 4;
}
.chart .range {
  fill: #dfeafb;
  opacity: 0.6;
}
.chart .point {
  fill: var(--blue);
  cursor: pointer;
}
.chart .bar {
  fill: var(--blue);
  cursor: pointer;
}
.chart .secondary {
  fill: #ee753c;
}
.chart [tabindex]:focus {
  outline: 2px solid var(--blue);
}
.legend {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: #727b88;
  margin: 6px 0 0;
}
.legend span::before {
  content: "━ ";
  color: var(--blue);
}
.legend span:nth-child(2)::before {
  color: #ee753c;
}
.legend span:nth-child(3)::before {
  color: #98a4b4;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(80px, 2fr) minmax(76px, auto);
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 0;
  width: 100%;
  background: none;
  text-align: left;
  min-height: 27px;
  padding: 3px 0;
  font-size: 12px;
}
.bar-row strong {
  text-align: right;
  font-size: 12px;
}
.bar-track {
  height: 11px;
  background: #f0f2f0;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
}
.bar-row:nth-child(5n) .bar-fill {
  background: #ed753d;
}
.scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th,
td {
  text-align: right;
  padding: 11px 8px;
  border-bottom: 1px solid #eef0f3;
  white-space: nowrap;
}
th {
  font-size: 11px;
  color: #858c95;
  font-weight: 600;
}
th:first-child,
td:first-child {
  text-align: left;
}
td:first-child {
  font-weight: 600;
}
td button {
  border: 0;
  background: none;
  padding: 2px 0;
  min-height: 24px;
  text-align: inherit;
  border-radius: 2px;
}
td button:hover {
  color: var(--blue);
}
.heat th,
.heat td {
  padding: 2px;
  border: 0;
  text-align: center;
  font-weight: 400;
  font-size: 10px;
}
.heat th:first-child,
.heat td:first-child {
  text-align: left;
  min-width: 85px;
  padding-right: 10px;
  color: var(--muted);
}
.heat button {
  min-width: 28px;
  width: 100%;
  min-height: 27px;
  padding: 4px;
  border-radius: 3px;
  text-align: center;
  color: #345273;
  font-size: 10px;
  background: #edf4fc;
}
.heat button.level1 {
  background: #dceaf9;
}
.heat button.level2 {
  background: #b9d4f2;
}
.heat button.level3 {
  background: #88b4e7;
}
.heat button.level4 {
  background: #4d90d8;
  color: white;
}
.heat button.level5 {
  background: #2764a9;
  color: white;
}
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.segment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border-left: 3px solid #199d74;
  padding: 12px;
  min-height: 92px;
}
.segment:nth-child(2) {
  border-left-color: var(--blue);
}
.segment:nth-child(4) {
  border-left-color: #c79a12;
}
.segment:nth-child(5) {
  border-left-color: #aaa;
}
.segment:nth-child(6) {
  border-left-color: var(--red);
}
.segment strong {
  font-size: 20px;
}
.segment small {
  color: var(--muted);
}
.signal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}
.signal .dot {
  font-size: 20px;
  line-height: 20px;
}
.signal .signal-text {
  flex: 1;
  min-width: 0;
}
.signal strong {
  font-size: 12px;
}
.signal p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.signal button {
  white-space: nowrap;
  font-size: 11px;
  padding: 5px 9px;
  min-height: 27px;
}
.footnote {
  font-size: 11px;
  color: #9198a1;
  margin-top: 22px;
}
.primary {
  background: #307dd2;
  color: white;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8a96a5;
  margin: 0 0 7px;
}
.constructor-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}
.constructor-options p {
  font-size: 11px;
}
.constructor-options select {
  margin-left: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
dialog {
  margin: 0 0 0 auto;
  width: min(620px, 100%);
  height: 100%;
  max-height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 28px;
  position: fixed;
  color: inherit;
  box-shadow: -10px 0 50px #12233e15;
}
dialog::backdrop {
  background: #15233a55;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head button {
  font-size: 24px;
}
.drill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.drill-row small {
  grid-column: 1/-1;
  color: var(--muted);
}
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 1450px) {
  main {
    padding: 28px 38px;
  }
  .card {
    padding: 22px;
  }
}
@media (max-width: 1100px) {
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .segments {
    grid-template-columns: repeat(2, 1fr);
  }
  #updated {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  main {
    padding: 20px 14px;
  }
  .heading {
    margin-bottom: 12px;
  }
  h1 {
    font-size: 21px;
  }
  .exports {
    gap: 5px;
  }
  .exports button {
    font-size: 11px;
    padding: 7px;
  }
  .tabs {
    gap: 2px;
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 8px;
  }
  .tabs button {
    font-size: 12px;
    padding: 13px 9px;
  }
  #filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  #filters select {
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    padding: 8px 6px;
  }
  .date-label input {
    width: 100%;
    min-width: 0;
  }
  #filters button {
    font-size: 11px;
  }
  #updated {
    grid-column: 1/-1;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .kpi {
    padding: 11px;
    min-height: 88px;
  }
  .kpi-label {
    font-size: 11px;
  }
  .kpi strong {
    font-size: 19px;
  }
  .blocks {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .card {
    padding: 15px;
    border-radius: 10px;
  }
  .card h2 {
    margin-bottom: 17px;
    font-size: 13px;
  }
  .insight {
    font-size: 10px;
  }
  .bar-row {
    grid-template-columns: 105px minmax(40px, 1fr) auto;
    gap: 8px;
    font-size: 11px;
  }
  .bar-row strong {
    font-size: 11px;
  }
  .signal {
    gap: 8px;
    flex-wrap: wrap;
  }
  .signal .signal-text {
    min-width: 220px;
  }
  .signal button {
    margin-left: 28px;
  }
  .segments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .segment {
    font-size: 11px;
    padding: 10px;
  }
  .segment small {
    font-size: 10px;
  }
  dialog {
    padding: 22px 16px;
  }
  .constructor-options select {
    max-width: 205px;
  }
}

.ui-icon{display:inline-block;width:1.125em;height:1.125em;vertical-align:-.2em;flex-shrink:0;pointer-events:none;overflow:visible;margin-right:4px;}
.bell .ui-icon{width:18px;height:18px;margin:0;}
.dot.ui-icon{width:14px;height:14px;fill:currentColor;}
.insight .ui-icon{color:#c9860a;}
.spinner .ui-icon,.loading-icon{animation:loadingSpin .9s linear infinite;}
@keyframes loadingSpin{to{transform:rotate(360deg)}}
.loading-placeholder{display:flex;align-items:center;gap:14px;min-height:72px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--blue);}
.loading-placeholder .ui-icon{width:24px;height:24px;}
.skeleton-line{display:block;background:#eef0f3;border-radius:5px;height:12px;width:65%;}
.loading-placeholder.card{min-height:240px;justify-content:center;}
.loading-placeholder.kpi{min-height:90px;}
@media(prefers-reduced-motion:reduce){.spinner .ui-icon,.loading-icon{animation:none;}}
