/* MedDRG emoji + illustration chrome (staging). No effect on DRG/RW/money cells. */
.md-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  line-height: 1;
  vertical-align: -0.05em;
}
.md-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.md-badge.ok { background: var(--md-ok-bg, #dcfce7); color: var(--md-ok-fg, #166534); }
.md-badge.warn { background: var(--md-warn-bg, #fef3c7); color: var(--md-warn-fg, #92400e); }
.md-badge.danger { background: var(--md-danger-bg, #fee2e2); color: var(--md-danger-fg, #991b1b); }
.md-badge.info { background: var(--md-info-bg, #e0f2fe); color: var(--md-info-fg, #075985); }
.md-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 12px;
  border: 1px dashed var(--md-border, #bae6fd);
  border-radius: 12px;
  background: var(--md-soft, #f8fafc);
  text-align: center;
}
.md-empty .illust {
  width: 160px;
  max-width: 70vw;
  height: auto;
  display: block;
}
.md-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
}
.md-hero .illust {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.md-hero-copy h2 { margin: 0 0 8px; color: var(--md-text, #0c4a6e); }
.md-hero-copy p { margin: 0; color: var(--md-muted, #0369a1); }
.dropzone .dz-illust {
  width: 88px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}
.r38-quota-banner .md-emoji { margin-right: 0.25em; }
.conditions-footnote,
.footnote-conditions,
a.conditions-link {
  color: #800000;
  font-weight: 700;
  text-decoration: underline;
}
@media (max-width: 720px) {
  .md-hero { grid-template-columns: 1fr; }
  .md-hero .illust { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-hero .illust, .md-empty .illust { animation: none !important; }
}
