.ddash {
  display: grid;
  gap: 22px;
  min-width: 0;
  color: #182d43;
}

.ddash-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(16px, 2.5vw, 32px);
  border: 1px solid #cddde9;
  border-radius: 14px;
  background: #eaf2f8;
}

.ddash-hero h1 {
  margin: 3px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.16;
}

.ddash-hero p, .ddash-hero span, .ddash-note {
  margin: 0;
  color: #455d75;
  font-size: 13px;
  line-height: 1.5;
}

.ddash-group h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ddash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 12px;
}

.ddash-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d5e1eb;
  border-radius: 12px;
  background: #fff;
}

.ddash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ddash-card-header h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.ddash-link {
  flex: none;
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid #c9d9e9;
  border-radius: 6px;
  background: #f7fafd;
  color: #214f7a;
  font-size: 13px;
}

.ddash-link:hover { background: #e9f3ff; }
.ddash-link:focus-visible, .ddash-detail summary:focus-visible {
  outline: 2px solid #1e64af;
  outline-offset: 2px;
}

.ddash-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 10px;
}

.ddash-metrics dt {
  color: #455d75;
  font-size: 13px;
}

.ddash-metrics dd {
  margin: 3px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.ddash-upcoming {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.ddash-upcoming li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid #e3eaf0;
  font-size: 13px;
}

.ddash-upcoming strong { overflow-wrap: anywhere; }
.ddash-stock-company { margin-left: 6px; color: #455d75; }
.ddash-stock-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-line;
  color: #455d75;
}
.ddash-direction { padding: 2px 6px; border-radius: 5px; }
.ddash-in { background: #e5f4eb; color: #215d3a; }
.ddash-out { background: #e9f1fb; color: #214f7a; }
.ddash-detail summary { cursor: pointer; font-weight: 700; }
.ddash-detail[open] summary { margin-bottom: 10px; }
.ddash-detail .table-wrap { overflow-x: auto; }

@media (min-width: 760px) {
  .ddash-wide { grid-column: span 2; }
}

@media (max-width: 759px) {
  .ddash-grid { grid-template-columns: minmax(0, 1fr); }
  .ddash-link { min-height: 40px; }
}
