.dg-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.dg-metric {
  border: 1px solid #dce5f1;
  background: #fff;
  border-radius: 9px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dg-metric > span {
  color: #60738a;
}
.dg-metric strong {
  font-size: 27px;
  color: #173451;
}
.dg-metric small {
  color: #60738a;
  line-height: 1.5;
}
.dg-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 1fr);
  gap: 20px;
}
.dg-entry-layout aside {
  max-height: 65vh;
  overflow: auto;
  background: #f5f7fa;
  padding: 12px;
}
.dg-entry-layout aside img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}
.dg-entry-layout aside a {
  display: block;
  margin: 10px;
}
.dg-wide {
  grid-column: 1/-1;
}
#dgPlanForm fieldset {
  border: 1px solid #dce5f1;
}
#dgPlanForm fieldset label {
  display: inline-flex;
  margin: 8px;
}
.dg-day {
  padding: 12px 0;
  border-bottom: 1px solid #e4eaf2;
}
#dgSuggestion {
  line-height: 1.7;
  color: #345474;
}
#dgDailyForm label {
  display: block;
  margin: 12px 0;
}
#dgDailyForm textarea {
  width: 100%;
  min-height: 70px;
}
.dg-tabs {
  flex-wrap: wrap;
}
.content table th {
  white-space: nowrap;
}
.content .surface {
  min-width: 0;
}
@media (max-width: 760px) {
  .dg-entry-layout {
    grid-template-columns: 1fr;
  }
  .dg-entry-layout aside {
    max-height: 250px;
  }
  .dg-metric strong {
    font-size: 23px;
  }
  .dg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-head .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
