:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d2039;
  background: #f5f5fb;
  font-size: 14px;
  line-height: 1.5;
  --ink: #1d2039;
  --muted: #626780;
  --accent: #6039db;
  --accent-soft: #eee9ff;
  --line: #e4e4ef;
  --paper: #fff;
  --nav: #1b1932;
  --radius: 18px;
  --shadow: 0 6px 18px #24204b07;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -.065em; line-height: 1.04; }
h2 { font-size: 19px; letter-spacing: -.031em; line-height: 1.26; }
small, .muted { color: var(--muted); }
button, input, select { font: inherit; color: inherit; }
button, input, select {
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--paper);
}
button { cursor: pointer; font-weight: 650; white-space: nowrap; }
button:hover { border-color: #c9bef6; background: #f7f4ff; }
button:disabled { cursor: default; opacity: .45; }
button.primary, .filter-submit { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .filter-submit:hover { background: #4d28b8; border-color: #4d28b8; }
:focus-visible { outline: 2px solid #7856eb; outline-offset: 3px; }
select { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 650; }

.icon { display: inline-block; position: relative; width: 18px; height: 18px; flex: 0 0 18px; color: inherit; }
.icon::before, .icon::after { position: absolute; content: ""; }
.icon-pulse::before { inset: 2px 0; background: currentColor; clip-path: polygon(0 49%,25% 49%,39% 5%,56% 75%,67% 36%,100% 36%,100% 54%,77% 54%,54% 100%,39% 40%,34% 67%,0 67%); }
.icon-summary::before { inset: 2px; border-radius: 1px; background: conic-gradient(currentColor 0 25%,transparent 0 50%,currentColor 0 75%,transparent 0); box-shadow: inset 0 0 0 1.4px currentColor; }
.icon-orders::before, .icon-shop::before { inset: 5px 2px 1px; border: 1.6px solid currentColor; border-radius: 2px; }
.icon-orders::after, .icon-shop::after { inset: 1px 6px 9px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.icon-sales::before { inset: 2px 1px 2px 2px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; border-radius: 0 0 0 2px; }
.icon-sales::after { inset: 3px 0 4px 5px; background: currentColor; clip-path: polygon(0 85%,35% 43%,58% 57%,83% 12%,61% 12%,61% 0,100% 0,100% 43%,88% 43%,88% 27%,61% 79%,35% 64%,9% 98%); }
.icon-stocks::before { inset: 2px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-stocks::after { top: 2px; left: 6px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 0 0 2px 2px; }
.icon-connection::before, .icon-connection::after { width: 9px; height: 6px; border-radius: 6px; border: 1.5px solid currentColor; transform: rotate(-42deg); }
.icon-connection::before { top: 3px; right: 0; }
.icon-connection::after { bottom: 3px; left: 0; }
.icon-user::before { top: 0; left: 6px; width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 50%; }
.icon-user::after { bottom: 0; left: 2px; width: 14px; height: 7px; border: 1.4px solid currentColor; border-radius: 8px 8px 2px 2px; }
.icon-exit::before { inset: 2px 7px 2px 2px; border: 1.4px solid currentColor; border-right: 0; border-radius: 2px 0 0 2px; }
.icon-exit::after, .icon-arrow::after { inset: 4px 1px 4px 6px; background: currentColor; clip-path: polygon(54% 0,100% 50%,54% 100%,43% 86%,72% 59%,0 59%,0 41%,72% 41%,43% 14%); }
.icon-search::before { width: 11px; height: 11px; left: 1px; top: 1px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-search::after { width: 6px; height: 1.5px; left: 10px; top: 12px; background: currentColor; transform: rotate(45deg); }
.icon-calendar::before { inset: 3px 1px 1px; border: 1.4px solid currentColor; border-radius: 3px; }
.icon-calendar::after { width: 10px; height: 5px; top: 6px; left: 4px; border-top: 1.4px solid currentColor; background: radial-gradient(circle at 50% 95%,currentColor 1px,transparent 1.3px); }
.icon-funnel::before { inset: 2px 1px; background: currentColor; clip-path: polygon(0 0,100% 0,64% 53%,64% 79%,39% 100%,39% 54%); }

.brand { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 760; letter-spacing: -.04em; line-height: 1.2; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #9a78ff; color: #1b1932; flex: 0 0 36px; }
.brand-mark .icon { width: 23px; height: 21px; }
.frame { min-height: 100svh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.side {
  display: flex;
  flex-direction: column;
  gap: 35px;
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 28px 15px 19px;
  background: var(--nav);
  color: #fff;
}
.side-top { padding-inline: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side nav { display: grid; align-content: start; gap: 5px; }
.side nav button {
  display: flex; align-items: center; gap: 12px;
  color: #c8c3df; background: transparent; border: 1px solid transparent;
  padding: 10px 12px; text-align: left; white-space: normal;
}
.side nav button .icon { opacity: .83; }
.side nav button:hover { background: #2d284b; color: #fff; }
.side nav button[aria-current="page"] { background: #38265e; border-color: #61469b; color: #fff; }
.side nav button[aria-current="page"] .icon { color: #d2baff; opacity: 1; }
.side-footer { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: auto; border-top: 1px solid #3d3757; padding: 15px 2px 0; color: #d4cee9; font-size: 12px; }
.side-footer > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exit-button { background: transparent; border-color: #51476e; color: #e8e1fc; padding: 6px 8px; display: inline-grid; place-items: center; min-height: 34px; }
.exit-button:hover { color: #fff; background: #392d54; }
.mobile-exit { display: none; }

.main { width: 100%; max-width: 1600px; min-width: 0; padding: 25px clamp(18px, 3vw, 44px) 38px; margin: 0 auto; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 13px; margin-bottom: 19px; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 7px; }
.eyebrow span { color: #998cc7; margin-inline: 4px; }
.head-actions { display: flex; align-items: center; gap: 9px; justify-content: flex-end; flex-wrap: wrap; }
.workspace-picker { position: relative; display: block; max-width: min(270px, 41vw); }
.workspace-picker .icon { position: absolute; top: 11px; left: 10px; color: var(--accent); pointer-events: none; }
.workspace-picker select { padding-left: 35px; width: 100%; }
.demo-label { display: inline-flex; align-items: center; white-space: nowrap; gap: 7px; font-size: 12px; font-weight: 680; color: #5c438c; padding: 7px 11px; border: 1px solid #e2d7fb; border-radius: 100px; background: #f6f0ff; }
.demo-label i { width: 7px; height: 7px; border-radius: 50%; background: #8a58da; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); min-width: 0; }
.panel.padded { padding: 18px 20px; }
.toolbar { padding: 11px; margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 13px; flex-wrap: wrap; }
.period-control, .filter-fields { display: flex; align-items: center; gap: 8px; min-width: 0; }
.period-control { flex-wrap: wrap; }
.filter-fields { flex: 1 1 330px; justify-content: flex-end; }
.periods { background: #f0eef7; border-radius: 11px; display: inline-flex; align-items: stretch; gap: 3px; padding: 3px; }
.periods button { border: 0; min-height: 32px; border-radius: 8px; background: transparent; color: #5f5974; font-size: 12px; padding: 5px 10px; }
.periods button:hover { background: #e7e0fe; color: var(--accent); }
.periods button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 5px #30205b19; color: var(--accent); }
.dates { position: relative; }
.dates summary { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 670; white-space: nowrap; color: var(--ink); font-size: 12px; }
.dates summary::marker { content: ""; }
.dates summary::-webkit-details-marker { display: none; }
.dates summary .icon { color: var(--accent); }
.dates[open] summary, .dates summary:hover { background: #f7f4ff; border-color: #c9bef6; }
.date-fields { position: absolute; top: calc(100% + 8px); left: 0; z-index: 4; display: flex; gap: 9px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 25px #2118401f; }
.date-fields label { flex: 1 1 125px; }
.date-fields input { width: 100%; min-width: 132px; }
.filter-fields .scheme select { min-width: 105px; }
.search { position: relative; flex: 1 1 220px; max-width: 300px; }
.search .icon { position: absolute; top: 11px; left: 11px; color: #766b93; }
.search input { width: 100%; padding-left: 35px; font-weight: 500; }
.filter-submit { font-size: 13px; }
.banner { margin-bottom: 14px; padding: 11px 14px; border: 1px solid #e3daf9; border-radius: 12px; background: #f0eaff; color: #553b90; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.kpi { padding: 15px 20px 14px; min-width: 0; }
.kpi.mint { background: linear-gradient(127deg,#fff 22%,#f0fcf8); border-color: #dfeee8; }
.kpi.violet { background: linear-gradient(127deg,#fff 22%,#f2eeff); border-color: #e9e2f9; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 740; letter-spacing: -.012em; }
.card-head .icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; color: #13705a; background: #def5eb; }
.card-head .icon-orders::before, .card-head .icon-orders::after { margin: 6px; }
.card-head .icon-sales::before, .card-head .icon-sales::after { margin: 6px; }
.card-head .icon-connection::before, .card-head .icon-connection::after { margin: 6px; }
.kpi.violet .card-head .icon { background: #e9e0ff; color: var(--accent); }
.kpi .metric { font-size: clamp(30px, 4vw, 55px); font-weight: 800; line-height: 1.05; letter-spacing: -.065em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .metric-empty { font-size: clamp(24px, 3vw, 36px); }
.kpi .metric small { font-size: .42em; font-weight: 680; letter-spacing: 0; }
.comparison { color: var(--muted); font-size: 12px; }
.kpi .subtitle { border-top: 1px solid #e4e5ee; padding-top: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 7px; padding: 3px 8px; background: #efedf7; color: #56506f; font-weight: 720; font-size: 11px; }
.pill.up { background: #dff6e9; color: #126249; }
.pill.down { background: #fbe9ef; color: #983c58; }
.pill.warn { background: #fff2d9; color: #785110; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(255px, 1fr); align-items: start; gap: 13px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head p { margin-top: 3px; }
.chart-controls { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.chart-controls select { min-height: 38px; max-width: 166px; }
.plot { display: block; width: 100%; height: 215px; cursor: crosshair; touch-action: pan-y; }
.chart-area { position: relative; }
.chart-readout { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); max-width: 100%; background: #27213c; color: #fff; font-size: 11px; padding: 6px 9px; border-radius: 7px; text-align: center; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { border-radius: 2px; width: 9px; height: 9px; background: #6945e8; }
.legend span:nth-child(2) i { background: #ddd3fd; }
.chart-details { margin-top: 8px; }
summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 680; }
.chart-details[open] .table-scroll { margin-top: 8px; max-height: 290px; }
.funnel .section-head .icon { color: #8464df; }
.funnel-list { list-style: none; padding: 0; margin: 0; }
.funnel-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 45px; position: relative; padding: 8px 0; }
.funnel-list li:not(:last-child)::after { content: ""; position: absolute; width: 2px; background: #e6defa; left: 5px; top: 50%; height: 100%; }
.funnel-dot { position: relative; z-index: 1; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #a18bed; box-shadow: 0 0 0 1px #b7a7ee; margin-left: 1px; }
.funnel-list li:last-child .funnel-dot { background: #6945e8; box-shadow: 0 0 0 1px #6945e8; }
.funnel-list strong, .funnel-list small { display: block; font-size: 12px; }
.funnel-list strong { font-weight: 600; }
.funnel-list b { font-size: clamp(15px, 2vw, 20px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.funnel-note { padding-top: 9px; margin-top: 5px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sources { margin-top: 14px; }
.status-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.status-row { align-content: start; display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 11px; background: #f9f9fd; border: 1px solid #edecf5; border-radius: 10px; min-width: 0; }
.status-row p { grid-column: 1/-1; overflow-wrap: anywhere; font-size: 12px; }
.status-row strong { font-size: 12px; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 9px 8px; border-bottom: 1px solid #eeedf5; text-align: left; }
.table thead th { color: #585473; background: #f5f3fc; font-size: 12px; font-weight: 720; white-space: nowrap; }
.table tbody th { font-weight: 560; }
.table .number { text-align: right; white-space: nowrap; }
.table-scroll { overflow: auto; }
.table tbody tr:hover { background: #f8f5ff; }
.pagination { margin-top: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagination label { display: flex; align-items: center; gap: 7px; }
.pagination > div { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.empty { padding: 26px 0; text-align: center; color: var(--muted); }
.loading { padding: 30px; }
.error { color: #973b55; font-size: 13px; }
.notice { position: fixed; bottom: 18px; right: 18px; max-width: calc(100vw - 36px); background: #292237; color: white; padding: 12px 16px; border-radius: 11px; box-shadow: 0 10px 25px #281b462e; z-index: 5; }

.auth-shell { min-height: 100svh; max-width: 1290px; padding: 29px clamp(20px,5vw,62px); margin: auto; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-main { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(285px, .74fr); align-items: center; gap: clamp(24px,7vw,90px); padding: 60px 0; }
.auth-main h1 { font-size: clamp(39px, 6vw, 79px); max-width: 710px; }
.intro > p { color: var(--muted); font-size: clamp(15px,2vw,18px); margin: 15px 0 20px; max-width: 470px; }
.demo-call { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); background: #ece4ff; border-color: #ded0fc; }
.auth-card { padding: clamp(20px,3vw,31px); border-color: #e5dff4; box-shadow: 0 15px 45px #3b277619; }
.auth-card h2 { font-size: 25px; margin-bottom: 15px; }
.stack { display: grid; gap: 13px; }
.stack label input { width: 100%; }
.connect-panel { max-width: 665px; }
.connect-panel form { margin-top: 15px; }
.connect-panel .muted { margin-top: 6px; }
.connect-panel form button { justify-self: start; }
.auth-preview { margin-top: 26px; width: min(100%,420px); border: 1px solid #ded6fb; border-radius: 18px; padding: 13px; background: #fff; box-shadow: 0 13px 24px #3e2a6c12; }
.auth-preview-label { display: flex; align-items: center; gap: 7px; color: #5d419a; font-weight: 730; font-size: 12px; }
.auth-preview-line { background: #ede8fc; width: 42%; height: 7px; margin-top: 8px; border-radius: 6px; }
.auth-preview-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.auth-preview-cards span { height: 33px; background: #efe8fe; border-radius: 7px; }
.auth-preview-cards span:first-child { background: #e8f8f2; }
.auth-preview-bars { display: flex; align-items: flex-end; justify-content: space-around; gap: 5px; height: 54px; border-bottom: 1px solid var(--line); }
.auth-preview-bars i { width: 8%; height: 65%; background: #c5b1fb; border-radius: 4px 4px 0 0; }
.auth-preview-bars i:nth-child(3n) { height: 49%; }
.auth-preview-bars i:nth-child(2n) { height: 77%; background: #ac90f3; }
.auth-preview-bars i:nth-child(7n) { height: 100%; background: #8661ef; }

@media (max-width: 1210px) {
  .frame { grid-template-columns: 196px minmax(0, 1fr); }
  .main { padding-inline: 24px; }
  .side { padding-inline: 11px; }
  .card-head h2 { font-size: 13px; }
  .chart-controls { gap: 5px; }
  .chart-controls select { max-width: 136px; }
}
@media (max-width: 1060px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .status-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-fields { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .frame { display: block; }
  .side { position: static; height: auto; padding: 10px 11px 8px; gap: 8px; }
  .side-top { padding-inline: 2px; }
  .mobile-exit { display: block; }
  .side nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow: auto; gap: 3px; scrollbar-width: thin; scrollbar-color: #5f4879 transparent; }
  .side nav button { padding: 6px 8px; gap: 5px; min-height: 38px; font-size: 12px; white-space: nowrap; }
  .side nav .icon { height: 16px; transform: scale(.85); }
  .side-footer { display: none; }
  .main { padding: 16px 12px 25px; }
  .head { margin-bottom: 13px; align-items: flex-end; }
  .head-cta { display: none; }
  .toolbar { padding: 8px; gap: 7px; }
  .period-control { width: 100%; position: relative; }
  .dates { position: static; }
  .date-fields { left: 0; right: 0; }
  .date-fields input { min-width: 0; }
  .filter-fields { gap: 6px; flex-basis: 100%; }
  .filter-fields .scheme select { min-width: 89px; }
  .filter-fields select, .filter-fields input, .filter-fields button { font-size: 12px; }
  .filter-submit { padding-inline: 8px; }
  .panel.padded { padding: 13px; }
  .kpi { padding: 11px 12px; }
  .kpi .metric { font-size: clamp(25px, 5vw, 36px); }
  .plot { height: 191px; }
  .auth-main { padding: 34px 0; grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .auth-preview { display: none; }
}
@media (max-width: 450px) {
  .search input { padding-left: 26px; }
  .search .icon { left: 6px; transform: scale(.85); }
  .periods button { padding-inline: 7px; }
  .chart-controls { justify-content: flex-start; }
  .trend .section-head { flex-wrap: wrap; }
  .status-list { grid-template-columns: minmax(0, 1fr); }
  .kpis { gap: 7px; }
  .kpi .metric { font-size: clamp(21px, 6vw, 27px); }
  .funnel-list b { font-size: 17px; }
}
@media (max-width: 349px) {
  .kpis { grid-template-columns: minmax(0,1fr); }
  .filter-fields { flex-wrap: wrap; }
  .filter-fields .search { flex-basis: 120px; }
}

.side nav { overflow-y: auto; }
.section-block { margin-bottom: 14px; }
.section-block > h2 + .table-scroll { margin-top: 10px; }
.finance-form { margin-top: 13px; }
.finance-form button { justify-self: start; }
.finance-form .muted, .forms-grid h2 + p { margin-top: 5px; }
.forms-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 14px; }
.forms-grid .rate-fields, .finance-form .rate-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.rate-fields input { width: 100%; }
.calculation-note { color: var(--muted); margin: 0 0 13px; max-width: 90ch; }
.table-action { min-height: 31px; padding: 4px 8px; color: var(--accent); font-size: 12px; }
.icon-profit::before, .icon-costs::before, .icon-taxes::before { inset: 2px 3px; border: 1.4px solid currentColor; border-radius: 3px; }
.icon-profit::after, .icon-costs::after, .icon-taxes::after { inset: 7px 6px 5px; border-block: 1.4px solid currentColor; }
.icon-ads::before { inset: 2px 1px; background: currentColor; clip-path: polygon(0 25%,35% 25%,83% 0,83% 100%,35% 75%,0 75%); }
.icon-ads::after { right: 0; top: 6px; width: 3px; height: 6px; border-right: 1.4px solid currentColor; border-radius: 50%; }
.mini-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
.mini-kpis .metric { font-size: clamp(20px,3vw,37px); }
.search-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.search-filters label { flex: 1 1 130px; }
.search-filters .error { flex-basis: 100%; }
.search-periods { margin-top: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.table td small { display: block; }
.change { font-weight: 700; color: var(--muted); }
.change.good { color: #126249; }
.change.bad { color: #983c58; }
@media(max-width:850px) {
  .forms-grid { grid-template-columns: minmax(0,1fr); }
  .mini-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:450px) {
  .search-periods { grid-template-columns: minmax(0,1fr); }
}

@media(min-width: 1110px) {
  .kpis:has(> .kpi:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .kpis:has(> .kpi:nth-child(3):last-child) .metric { font-size: clamp(27px,3.2vw,50px); }
}
@media(max-width: 1109px) {
  .kpis > .kpi:nth-child(3):last-child { grid-column: 1/-1; }
}
