.card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card-heading h2, .card-orders h2 {
  margin: 0;
  font: 400 clamp(24px, 3vw, 30px)/1.3 Georgia, "Noto Serif SC", "SimSun", serif;
}
.card-heading a, .card-action, #card-login { color: #715025; font-weight: 700; font-size: 14px; }
.card-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.card-subject { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.card-subject h3, .card-order h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.card-subject p, .card-order p { margin: 0; font-size: 13px; line-height: 1.55; }
.card-state { color: #4b5968; font-weight: 700; }
.card-subject[data-status="active"] .card-state { color: #2d6248; }
.card-subject[data-status="expired"] .card-state { color: #943e2e; }
.card-meta { color: var(--muted); }
.card-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.card-action { display: inline-flex; align-items: center; min-height: 36px; }
.card-orders { margin-top: 28px; }
.card-orders ol { margin: 0; padding: 0; list-style: none; }
.card-order { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card-order:last-child { border-bottom: 0; padding-bottom: 0; }
.card-order p { margin-top: 5px; }
#card-status:empty { display: none; }
#card-retry { padding: 8px 14px; color: var(--navy); background: var(--paper); border: 1px solid var(--line); font: inherit; cursor: pointer; }
