.dash-product {
  --product-accent: var(--cyan, #75efca);
  --product-background: var(--panel, #101a29);
  --product-line: var(--line, #293749);
  --product-muted: var(--muted, #a9b6ca);
  --product-ink: var(--ink, #f4f7fc);
  display: grid;
  gap: 20px;
  min-width: 0;
}

.dash-product-mobile { --product-accent: #f0ba72; }
.dash-product-static { --product-accent: #baa9ff; }
.dash-product-datacenter { --product-accent: #8dc4ff; }

.dash-product-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dash-product-header img {
  flex: none;
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--product-accent) 25%, var(--product-line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--product-accent) 8%, var(--product-background));
}

.dash-product-header h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.dash-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-product-tabs a {
  flex: none;
  display: block;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--product-muted);
  font-size: .875rem;
  font-weight: 600;
}

.dash-product-tabs a:hover { color: var(--product-ink); }

.dash-product-tabs a[aria-current="page"] {
  background: color-mix(in srgb, var(--product-accent) 10%, var(--product-background));
  border-color: color-mix(in srgb, var(--product-accent) 30%, var(--product-line));
  color: var(--product-accent);
}

.dash-product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-product-metric {
  min-width: 0;
  padding: 19px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.dash-product-metric > :is(span, dt) {
  color: var(--product-muted);
  font-size: .875rem;
  font-weight: 600;
}

.dash-product-metric > :is(strong, dd) {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.125rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.dash-product-metric:first-child > :is(strong, dd) { color: var(--product-accent); }

.traffic-balance {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1fr);
  gap: 18px clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(22px, 3.5vw, 46px);
  background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--product-accent) 10%, transparent), transparent 66%), var(--product-background);
}
.traffic-balance__main { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.traffic-balance__dial {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(68px, 7vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--product-accent) var(--balance-turn), var(--product-line) 0);
  position: relative;
}
.traffic-balance__dial::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--product-background); }
.traffic-balance__dial span { position: relative; font-size: clamp(1.15rem, 2vw, 1.85rem); font-weight: 650; font-variant-numeric: tabular-nums; }
.traffic-balance__dial small { font-size: .55em; color: var(--product-muted); }
.traffic-balance__numbers h2, .traffic-balance dt { margin: 0; color: var(--product-muted); font-size: .85rem; font-weight: 500; }
.traffic-balance__numbers > strong { display: block; font-size: clamp(1.7rem, 3.6vw, 3.4rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.traffic-balance__status { display: inline-flex; gap: 7px; align-items: center; color: var(--product-muted); font-size: .83rem; }
.traffic-balance__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.traffic-balance__status[data-active="true"] { color: var(--product-accent); }
.traffic-balance__detail { display: grid; gap: 20px; padding-inline-start: min(3vw, 34px); border-inline-start: 1px solid var(--product-line); }
.traffic-balance__detail dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.traffic-balance__detail dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.traffic-balance__note { grid-column: 1 / -1; margin: 0; color: var(--product-muted); font-size: .86rem; }
.traffic-usage .dash-product-usage-filter { padding-block: 12px 19px; border-bottom: 1px solid var(--product-line); }
@media (max-width: 720px) {
  .traffic-balance { grid-template-columns: 1fr; }
  .traffic-balance__detail { border-inline-start: 0; padding-inline-start: 0; padding-block-start: 18px; border-top: 1px solid var(--product-line); }
}

.dash-product-metric progress {
  color: var(--product-accent);
  accent-color: var(--product-accent);
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 16px;
  background: var(--product-line);
}

.dash-product-metric progress::-webkit-progress-bar { background: var(--product-line); border-radius: 16px; }
.dash-product-metric progress::-webkit-progress-value { background: var(--product-accent); border-radius: 16px; }

.dash-product-card {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px);
}

.dash-product-card h2,
.dash-product-dialog h2,
.dash-product-legend {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.dash-product-card p,
.dash-product-dialog p {
  margin: 4px 0 0;
  color: var(--product-muted);
  font-size: .875rem;
  line-height: 1.6;
}

.dash-product-status,
.dash-product-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dash-product-status .dash-product-status-text {
  color: var(--product-accent);
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.dash-product-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-product-inline-link { color: var(--product-accent); font-size: .875rem; }
.dash-product-inline-link:hover { text-decoration: underline; }

.dash-product-empty {
  margin-top: 14px;
  padding: 20px;
  border: 1px dashed var(--product-line);
  border-radius: 12px;
  color: var(--product-muted);
}

.dash-product-empty > a { margin-top: 11px; }

.dash-product-chart {
  min-width: 0;
  display: flex;
  gap: clamp(6px, 1.3vw, 14px);
  margin-top: 22px;
  padding-inline: 4px;
  overflow-x: auto;
}

.dash-product-bar {
  display: grid;
  grid-template-rows: 110px auto;
  gap: 6px;
  flex: 1 0 35px;
  max-width: 118px;
  min-width: 0;
  text-align: center;
}

.dash-product-bar > span {
  align-self: end;
  justify-self: center;
  display: block;
  width: min(70%, 38px);
  height: var(--dash-product-bar-height);
  min-height: 2px;
  background: linear-gradient(180deg, var(--product-accent), color-mix(in srgb, var(--product-accent) 38%, var(--product-background)));
  border-radius: 6px 6px 0 0;
}

.dash-product-bar > small { display: block; color: var(--product-muted); font-size: .625rem; white-space: nowrap; }
.dash-product-card .dash-product-chart-total { margin: 13px 0 0; }
.dash-product-chart-total strong { color: var(--product-ink); margin-inline-start: 5px; }

.dash-product-split {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.7fr) minmax(224px, 1fr);
  gap: 15px;
}

.dash-product-options {
  margin: 0;
  width: 100%;
  min-inline-size: 0;
}

.dash-product-legend {
  padding-inline: 6px;
  margin-inline: -6px;
}

.dash-product-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 115px), 1fr));
  gap: 10px;
}

.dash-product-plan { position: relative; cursor: pointer; }

.dash-product-plan input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.dash-product-plan > span {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  color: var(--product-muted);
  font-size: .8rem;
}

.dash-product-plan strong { color: var(--product-ink); font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-product-plan strong small { font-size: .68em; }
.dash-product-plan input:focus-visible + span { outline: 2px solid var(--product-accent); outline-offset: 3px; }
.dash-product-plan input:checked + span {
  border-color: var(--product-accent);
  background: color-mix(in srgb, var(--product-accent) 10%, var(--product-background));
}

.dash-product-plan input:checked + span strong { color: var(--product-accent); }
.dash-product-billing { display: grid; gap: 12px; }
.dash-product-billing dl { display: grid; gap: 9px; margin: 0; }
.dash-product-billing dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; font-size: .82rem; }
.dash-product-billing dt { color: var(--product-muted); }
.dash-product-billing dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-product-billing .dash-product-total { border-top: 1px solid var(--product-line); padding-top: 11px; margin-top: 4px; }
.dash-product-total dd { font-size: 1.4rem; font-weight: 700; color: var(--product-accent); }
.dash-product-billing .dash-button { width: 100%; justify-content: center; text-align: center; }
.dash-product-billing p { margin: 0; font-size: .76rem; }

.dash-product-pill {
  display: inline-flex;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 28%, var(--product-line));
  align-items: center;
  padding: 4px 9px;
  color: var(--product-accent);
  background: color-mix(in srgb, var(--product-accent) 9%, var(--product-background));
  font-size: .75rem;
  line-height: 1.5;
  white-space: nowrap;
}

.dash-product-pill.is-soon { --product-accent: #f0ba72; }
.dash-product-pill.is-expired { --product-accent: #ef98a8; }
.dash-product-form { display: grid; justify-items: start; gap: 16px; }
.dash-product-section-heading + .dash-product-form { margin-top: 17px; }
.dash-product-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; width: 100%; }
.dash-product-split .dash-product-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.dash-product-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--product-muted);
  font-size: .8rem;
  font-weight: 600;
}

.dash-product-field input,
.dash-product-field select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: var(--bg, #080d16);
  color: var(--product-ink);
  font: inherit;
  font-weight: 400;
}

.dash-product-extract-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  width: 100%;
  border-top: 1px solid var(--product-line);
  margin-top: 18px;
  padding-top: 16px;
}

.dash-product-extract-result p { grid-column: 1 / -1; }
.dash-product-extract-result input { font-family: Consolas, monospace; }
.dash-product-usage-filter,
.dash-product-line-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-top: 15px;
}

.dash-product-usage-filter .dash-button[aria-pressed="true"] {
  border-color: var(--product-accent);
  color: var(--product-accent);
}

.dash-product-usage-filter .dash-product-field { flex: 0 1 142px; }
.dash-product-line-filter .dash-product-field { flex: 0 1 190px; min-width: 125px; }
.dash-product-table-scroll { width: 100%; overflow-x: auto; margin-top: 15px; }
.dash-product-table { width: 100%; border-spacing: 0; }
.dash-product-table th,
.dash-product-table td { padding: 10px 11px; text-align: start; white-space: nowrap; }
.dash-product-line-table td:nth-child(2) { color: var(--product-accent); }
.dash-product-line-table .dash-product-line-city { display: block; margin-top: 3px; color: var(--product-muted); }
.dash-product-line-table .dash-product-line-group { max-width: 175px; white-space: normal; overflow-wrap: anywhere; }
.dash-product-line-table .dash-button { min-height: 30px; padding: 5px 9px; font-size: .75rem; }
.dash-product-line-table .dash-product-actions { flex-wrap: nowrap; }
.dash-product-feedback:empty { display: none; }
.dash-product-feedback { color: var(--product-muted); font-size: .85rem; margin: 0; }

.dash-product-dialog {
  width: min(430px, calc(100% - 32px));
  border: 1px solid var(--product-line);
  border-radius: 16px;
  padding: 22px;
  background: var(--product-background);
  color: var(--product-ink);
}

.dash-product-dialog::backdrop { background: rgb(4 10 18 / .78); }
.dash-product-dialog .dash-product-actions { justify-content: flex-end; margin-top: 16px; }

@media (max-width: 940px) {
  .dash-product-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 580px) {
  .dash-product { gap: 14px; }
  .dash-product-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dash-product-metric { padding: 12px; }
  .dash-product-metric:first-child { grid-column: 1 / -1; }
  .dash-product-tabs { gap: 4px; }
  .dash-product-tabs a { padding: 7px 10px; font-size: .8rem; }
  .dash-product-metric > strong { font-size: 1.4rem; }
  .dash-product-usage-filter .dash-product-actions { flex-basis: 100%; }
  .dash-product-extract-result { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
  .dash-product-split .dash-product-form-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-product-usage-filter .dash-product-field,
  .dash-product-line-filter .dash-product-field { flex: 1 1 100%; }
}

.fixed-assets { display: grid; gap: 18px; min-width: 0; }
.fixed-assets__metric { appearance: none; text-align: start; color: inherit; font: inherit; cursor: pointer; }
.fixed-assets__metric[aria-pressed="true"], .fixed-assets__metric:hover { border-color: var(--product-accent); }
.fixed-assets__bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; }
.fixed-assets__bulk > strong { margin-inline-end: 7px; color: var(--product-muted); font-size: .85rem; }
.fixed-assets__bulk small, .fixed-assets__error, .fixed-assets__changed, .fixed-assets__left.is-soon { color: #f2c98f; }
.fixed-assets__error:empty { display: none; }
.fixed-assets :where(input[type="checkbox"]) { width: 17px; height: 17px; margin: 5px; accent-color: var(--product-accent); vertical-align: middle; }
.fixed-assets__table .fixed-assets__check, .fixed-assets__table th:first-child { width: 1%; padding-inline: 4px; }
.fixed-assets__table td { white-space: normal; overflow-wrap: anywhere; }
.fixed-assets__table small, .fixed-assets__group-list small { display: block; line-height: 1.4; color: var(--product-muted); }
.fixed-assets__table code { font-size: .88rem; color: var(--product-ink); }
.fixed-assets__table time, .fixed-assets__receipt { font-variant-numeric: tabular-nums; }
.fixed-assets__select-visible { display: none; }
.fixed-assets__table .fixed-assets__actions { white-space: nowrap; }
.fixed-assets__actions .dash-button, .fixed-assets__bulk .dash-button { min-height: 32px; padding: 5px 9px; }
.fixed-assets__left.is-expired { color: #f4a4b6; }
.fixed-assets__dialog { width: min(580px,calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; }
.fixed-assets__dialog .dash-product-section-heading { margin-bottom: 14px; }
.fixed-assets__dialog h2 { margin: 0; font-size: 1.25rem; }
.fixed-assets__dialog form { display: grid; gap: 11px; }
.fixed-assets__dialog [hidden] { display: none !important; }
.fixed-assets__dialog .dash-product-actions { margin-top: 0; }
.fixed-assets__group-list, .fixed-assets__renew-lines { display: grid; margin: 0 0 14px; padding: 0; list-style: none; }
.fixed-assets__group-list li, .fixed-assets__renew-lines li, .fixed-assets__receipt { border-top: 1px solid var(--product-line); padding: 10px 0; }
.fixed-assets__group-list li, .fixed-assets__receipt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.fixed-assets__group-list strong, .fixed-assets__renew-lines strong, .fixed-assets__dialog p { overflow-wrap: anywhere; }
.fixed-assets__renew-lines { margin: 0; }
.fixed-assets__renew-lines li { display: grid; gap: 5px; }
.fixed-assets__renew-lines li > div { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 10px; color: var(--product-muted); font-size: .85rem; }
.fixed-assets__renew-lines b, .fixed-assets__receipt strong { color: var(--product-accent); }
.fixed-assets__dialog button:disabled, .fixed-assets__bulk button:disabled { opacity: .45; cursor: default; }

@media (max-width: 740px) {
  .fixed-assets { gap: 12px; }
  .fixed-assets__table thead { display: block; }
  .fixed-assets__table thead th { display: none; }
  .fixed-assets__table thead th:first-child { display: block; width: auto; }
  .fixed-assets__select-visible { display: inline; font-size: .78rem; margin-inline-start: 6px; }
  .fixed-assets__table, .fixed-assets__table tbody { display: block; }
  .fixed-assets__table tbody tr { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px; padding: 12px 0; border-top: 1px solid var(--product-line); }
  .fixed-assets__table tbody td { border: 0; padding: 0; }
  .fixed-assets__table .fixed-assets__check { grid-row: 1 / span 5; padding: 0; }
  .fixed-assets__table td[data-label]::before { content: attr(data-label); display: inline-block; margin-inline-end: 6px; color: var(--product-muted); font-size: .75rem; }
  .fixed-assets__table td[data-label] small { display: inline; margin-inline-start: 6px; }
  .fixed-assets__table .fixed-assets__actions { grid-column: 2; white-space: normal; }
  .fixed-assets__group-list li { align-items: start; }
  .fixed-assets__dialog { padding: 15px; }
}
