.db-page {
  --db-brand: #0052d9;
  --db-border: #e5e8ed;
  --db-text: #1b1f27;
  --db-muted: #666c76;
  --db-radius: 7px;
  display: grid;
  gap: 16px;
  min-width: 0;
  color: var(--db-text);
}
.db-heading,
.db-card,
.db-metric {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
}
.db-heading {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.db-heading h1 {
  margin: 0;
  font-size: 21px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: 0;
}
.db-context, .db-context time, .db-unit, .db-card-head, .db-link, .db-stat-foot {
  display: flex;
  align-items: center;
}
.db-context {gap: 20px; flex-wrap: wrap}
.db-context time {gap: 7px; color: var(--db-muted); font-size: 13px}
.db-unit {
  position: relative;
  color: #686f79;
}
.db-unit > svg {position: absolute; left: 10px; pointer-events: none}
.db-unit select, .db-period {
  min-height: 32px;
  border: 1px solid #d7dbe2;
  border-radius: 4px;
  background: white;
  color: var(--db-text);
  font-size: 13px;
  line-height: 20px;
}
.db-unit select {padding: 4px 7px 4px 33px; min-width: 118px}
.db-period {padding: 4px 7px}
.db-unit select:hover, .db-period:hover {border-color: #7c9bd3}
.db-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.db-metric {
  position: relative;
  padding: 17px 20px 0;
  overflow: hidden;
  text-align: left;
  color: var(--db-text);
  transition: border-color .16s, box-shadow .16s;
}
.db-metric:hover {border-color: #83aaff; box-shadow: 0 2px 8px #0052d910}
.db-stat-label {display: block; font-size: 14px; line-height: 22px; color: #454b56}
.db-reading {display: inline-flex; align-items: baseline; gap: 6px; margin: 5px 0 14px; line-height: 1.15}
.db-reading strong {color: inherit; font: 600 34px/1.15 "Segoe UI",Arial,sans-serif; font-variant-numeric: tabular-nums}
.db-reading > span {color: #777d86; font-size: 13px; font-weight: 400}
.db-metric-art {
  --db-icon: #377cf3;
  --db-icon-tint: #edf4ff;
  position: absolute;
  right: 17px;
  top: 22px;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--db-icon-tint);
  color: var(--db-icon);
  pointer-events: none;
}
.db-metric-art .icon {width: 28px; height: 28px; stroke-width: 1.6}
.db-metric-cyan .db-metric-art {--db-icon: #238e87; --db-icon-tint: #e8f6f4}
.db-metric-amber .db-metric-art {--db-icon: #c37c1a; --db-icon-tint: #fff4e2}
.db-stat-foot {
  position: relative;
  justify-content: space-between;
  gap: 4px;
  padding: 9px 0 10px;
  border-top: 1px solid #eef0f3;
  color: var(--db-muted);
  font-size: 12px;
  line-height: 18px;
}
.db-stat-foot b {font-weight: 600; color: #454b56}
.db-stat-foot > svg {color: #989eaa}
.db-metric-primary, .db-metric-primary:hover {
  color: white;
  border-color: var(--db-brand);
  background: var(--db-brand);
}
.db-metric-primary .db-stat-label, .db-metric-primary .db-reading > span {color: #fff}
.db-metric-primary .db-stat-foot, .db-metric-primary .db-stat-foot > svg {color: #dce9ff}
.db-metric-primary .db-stat-foot {border-color: #ffffff38}
.db-metric-primary .db-stat-foot b {color: white}
.db-metric-primary .db-metric-art {
  --db-icon: #c2d9ff;
  --db-icon-tint: #ffffff19;
}
.db-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: 16px;
}
.db-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.db-card-head {
  justify-content: space-between;
  gap: 10px;
  padding: 19px 21px 15px;
  min-height: 60px;
}
.db-card-head h2 {font-size: 16px; line-height: 24px; font-weight: 600; margin: 0; letter-spacing: 0}
.db-link {
  flex: none;
  border: 0;
  background: transparent;
  padding: 4px 0 4px 4px;
  gap: 2px;
  font-size: 13px;
  line-height: 20px;
  color: var(--db-brand);
}
.db-link:hover {text-decoration: underline}
.db-chart-legend {
  padding: 0 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 12px;
  color: #555d69;
}
.db-chart-legend span {display: inline-flex; align-items: center; gap: 6px}
.db-bar-key {width: 11px; height: 10px; border-radius: 2px; background: #92baff}
.db-line-key {position: relative; width: 18px; border-top: 2px solid var(--db-brand)}
.db-line-key::after {
  position: absolute; content: ""; width: 4px; height: 4px;
  top: -4px; left: 6px; border: 1.5px solid var(--db-brand); background: white; border-radius: 50%;
}
.db-plot {position: relative; margin: 12px 20px 13px 13px; height: clamp(165px, 13.4vw, 212px)}
.db-plot canvas {width: 100%; height: 100%; display: block}
.db-chart-tip {
  position: absolute;
  top: 4px;
  z-index: 1;
  background: white;
  padding: 7px 10px;
  border: 1px solid #d6e4ff;
  border-radius: 4px;
  box-shadow: 0 3px 10px #1c3e7b18;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.db-distribution {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(14px, 1.5vw, 28px);
  padding: 6px 22px 24px;
}
.db-donut {
  display: grid;
  place-items: center;
  width: clamp(115px, 11.5vw, 177px);
  aspect-ratio: 1;
  border-radius: 50%;
  flex: none;
}
.db-donut > div {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px;
  width: 70%; height: 70%; background: #fff; border-radius: 50%;
}
.db-donut > div span {font-size: 12px; color: var(--db-muted)}
.db-donut > div strong {font: 600 29px/1.15 "Segoe UI",Arial,sans-serif; color: var(--db-text)}
.db-donut-legend {flex: 1; max-width: 235px; display: grid; gap: 2px}
.db-donut-item {
  display: grid;
  grid-template-columns: 8px minmax(0,1fr) auto 34px;
  align-items: center;
  column-gap: 7px;
  min-height: 32px;
  width: 100%;
  padding: 3px 0;
  border: 0;
  border-radius: 3px;
  text-align: left;
  background: transparent;
  color: #414853;
  font-size: 13px;
}
.db-donut-item:hover {background: #f1f6ff; color: var(--db-brand)}
.db-donut-item i {width: 8px; height: 8px; border-radius: 2px}
.db-donut-item b,.db-donut-item small {font-variant-numeric: tabular-nums; text-align: right}
.db-donut-item b {font-size: 13px; color: var(--db-text)}
.db-donut-item small {font-size: 12px; color: #717681}
.db-plan-list, .db-todos {padding: 0 21px 8px}
.db-todos {display: grid; flex: 1}
.db-plan-row, .db-todo-row {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-top: 1px solid #eef0f3;
  background: white;
  text-align: left;
}
.db-plan-row:first-child, .db-todo-row:first-child {border-top: 0}
.db-plan-row:hover, .db-todo-row:hover {background: #f5f8ff}
.db-plan-row time {
  width: 42px; height: 43px; flex: none;
  border: 1px solid #dce6fb; border-radius: 4px;
  background: #f2f6ff; color: #2356a7;
  display: grid; align-content: center; justify-items: center;
}
.db-plan-row time small {font-size: 10px; color: #43649f; line-height: 15px}
.db-plan-row time strong {font: 600 17px/18px "Segoe UI",Arial,sans-serif; color: #2356a7}
.db-row-text {min-width: 0; flex: 1; display: grid; gap: 3px}
.db-row-text b {
  font-size: 14px; font-weight: 500; color: var(--db-text); line-height: 21px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.db-row-text small {font-size: 12px; color: var(--db-muted); line-height: 18px}
.db-todo-symbol {width: 39px; height: 39px; border-radius: 6px; display: grid; place-items: center; flex: none}
.db-tone-blue {background: #edf3ff; color: #165ad4}
.db-tone-cyan {background: #e7f6f1; color: #138682}
.db-tone-amber {background: #fff3e5; color: #bc721a}
.db-todo-row > strong {font: 600 18px/1 "Segoe UI",Arial,sans-serif; color: #2c323d}
.db-todo-row > .icon {color: #9ca2ac}
.db-analysis {padding: 0 21px 20px}
.db-attainment {display: flex; align-items: baseline; gap: 8px; font-size: 13px}
.db-attainment b {font-size: 21px; color: var(--db-brand); font-variant-numeric: tabular-nums}
.db-attainment small, .db-bars small {color: var(--db-muted); font-size: 12px; font-weight: 400}
.db-analysis h3 {margin: 16px 0 9px; font-size: 13px; font-weight: 550; color: #4b515c}
.db-bars {display: grid; gap: 8px}
.db-bars > div {display: flex; align-items: center; gap: 12px; font-size: 12px; min-height: 19px}
.db-bars > div > span {width: 82px; flex: none; color: #525965}
.db-bars > div > b {min-width: 37px; text-align: right; font-variant-numeric: tabular-nums}
.db-track {height: 6px; flex: 1; overflow: hidden; border-radius: 2px; background: #edf0f5}
.db-track i {height: 100%; display: block; border-radius: 2px}
.db-experts {padding: 0 21px 18px}
.db-experts table {font-size: 13px}
.db-experts thead th {background: #f5f6f8; color: #555c67; font-size: 12px; font-weight: 500}
.db-experts td, .db-experts th {padding: 12px 9px}
.db-experts th:last-child, .db-experts td:last-child {text-align: right}
@container (max-width: 335px) {
  .db-distribution {display: grid; justify-items: center; gap: 8px; padding-top: 2px; padding-bottom: 14px}
  .db-donut {width: 95px}
  .db-donut > div strong {font-size: 22px}
  .db-donut-legend {width: 100%; max-width: none; grid-template-columns: 1fr 1fr; gap: 2px 14px}
  .db-donut-item {grid-template-columns: 7px 1fr auto; font-size: 12px; gap: 5px}
  .db-donut-item small {display: none}
}
@media (max-width: 1190px) {
  .db-metric {padding: 15px 14px 0}
  .db-metric-art {width: 39px; height: 39px; right: 11px; top: 25px}
  .db-metric-art .icon {width: 23px; height: 23px}
  .db-metrics, .db-grid, .db-page {gap: 12px}
  .db-grid {grid-template-columns: minmax(0,1.2fr) minmax(0,1fr)}
  .db-distribution {padding-left: 14px; padding-right: 14px}
  .db-donut-item {column-gap: 5px}
}
@media (max-width: 960px) {
  .db-metrics {grid-template-columns: repeat(2,minmax(0,1fr))}
  .db-heading {padding: 13px 17px}
  .db-card-head {padding: 15px 16px 11px; min-height: 52px}
  .db-plan-list, .db-todos, .db-analysis, .db-experts {padding-left: 16px; padding-right: 16px}
}
@media (max-width: 760px) {
  .db-grid {grid-template-columns: 1fr}
  .db-plot {height: 179px}
  .db-donut {width: 124px}
  .db-distribution {padding: 4px 18px 18px}
  .db-plan-row, .db-todo-row {padding: 10px 0; gap: 9px}
  .db-context {gap: 10px}
  .db-donut-legend {max-width: 220px}
}
@media (max-width: 480px) {
  .db-page, .db-grid, .db-metrics {gap: 10px}
  .db-heading h1 {font-size: 19px}
  .db-heading {gap: 8px}
  .db-context {width: 100%; justify-content: space-between; gap: 6px}
  .db-context time {font-size: 11px; gap: 4px}
  .db-unit select {font-size: 12px; min-width: 97px}
  .db-metric-art {right: 10px; width: 32px; height: 32px; top: 35px}
  .db-metric-art .icon {width: 18px; height: 18px}
  .db-stat-label {font-size: 13px}
  .db-reading strong {font-size: 28px}
  .db-reading {margin: 5px 0 10px}
  .db-stat-foot {font-size: 11px; padding: 7px 0 8px}
  .db-distribution {gap: 14px}
}
