.profile-card,
.card,
.note-card,
.timeline-card,
.score-card,
.layer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 31, 42, .07);
}

.profile-cover {
  height: 240px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #dfe8de;
}

.profile-cover img,
.note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-body { padding: 0 36px 32px; }
.avatar { width: 112px; height: 112px; border-radius: 8px; margin-top: -56px; box-shadow: 0 16px 34px rgba(0,0,0,.15); }
.profile-name { display: flex; gap: 12px; align-items: baseline; margin: 20px 0 12px; }
.profile-name b { font-size: 32px; }
.profile-name span { color: var(--muted); font-weight: 820; }
.profile-desc { white-space: pre-line; color: #3f4651; }

.metric, .mini-stat, .layer-metric {
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
}

.metric { border: 1px solid var(--line); background: #fff; }
.metric b, .mini-stat b, .layer-metric b { display: block; font-size: 28px; line-height: 1.05; }
.metric span, .mini-stat span, .layer-metric span { color: var(--muted); font-size: 12px; font-weight: 760; }

.card { padding: 17px; min-width: 0; }
.card .label { color: var(--red); font-size: 12px; font-weight: 900; }
.card h3 { margin: 8px 0 10px; }
.card p { color: #4b5360; margin: 8px 0; }
.card button, .open-link {
  display: inline-flex;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.note-card { overflow: hidden; display: flex; flex-direction: column; }
.note-cover { aspect-ratio: 4 / 3; background: #ece6db; overflow: hidden; }
.note-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.note-title { font-weight: 900; font-size: 18px; line-height: 1.35; }
.note-desc { color: #4d5360; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: auto; }
.stat { border-radius: 8px; background: var(--soft); padding: 8px; text-align: center; }
.stat b { display: block; font-size: 16px; }
.stat span { color: var(--muted); font-size: 11px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: #fff; cursor: pointer; font-weight: 820; }
.tab.active { background: var(--ink); color: #fff; }

.score-card, .layer-card, .timeline-card { padding: 16px; overflow: hidden; }
.score-value { font-size: 34px; font-weight: 900; }
.score-track { height: 10px; border-radius: 999px; background: #eee9df; overflow: hidden; margin: 10px 0; }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--orange)); }
.layer-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.layer-card .metric b { font-size: 24px; }
.timeline-card .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layer-card p, .timeline-card p { color: #4d5360; font-size: 14px; }
.layer-example { border-top: 1px solid rgba(30,32,38,.08); padding-top: 6px; font-size: 12px; color: #555; }

.timeline-card { position: relative; }
.timeline-card::before { content: ""; position: absolute; left: 16px; top: 18px; width: 9px; height: 9px; border-radius: 999px; background: var(--red); box-shadow: 0 0 0 5px #fff0f2; }
.timeline-card h3 { padding-left: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: 999px; padding: 5px 8px; background: #f3efe6; color: #555b66; font-size: 12px; font-weight: 760; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-height: 640px; }
table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid rgba(30,32,38,.08); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; background: #fbf8f1; cursor: pointer; }
.search { width: min(520px, 100%); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
