.expert-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(235px, 1fr);
  align-items: start;
  gap: 18px;
}
.expert-detail-stack { display: grid; min-width: 0; gap: 16px; }
.expert-detail-stack > .panel, .expert-plan-collection > .panel { margin: 0; }
.expert-detail .panel { padding: clamp(13px, 2vw, 21px); }
.expert-profile-card { background: linear-gradient(125deg, var(--soft), var(--surface) 78%); }
.expert-profile-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.expert-details-avatar, .expert-plan-byline-avatar {
  width: 70px;
  height: 70px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  object-fit: cover;
  font-size: 23px;
}
.expert-profile-top .page-title h1 { font-size: 24px; }
.expert-profile-top .page-title { margin-bottom: 6px; }
.expert-profile-actions, .expert-profile-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
}
.expert-profile-actions { justify-content: flex-end; }
.expert-profile-actions .button { max-width: 100%; white-space: normal; }
.expert-profile-summary { margin-top: 13px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.expert-profile-metadata { margin-top: 13px; color: var(--muted); font-size: 13px; }
.expert-profile-metadata b { color: var(--text); font-variant-numeric: tabular-nums; }

.expert-record-panel .section-head { align-items: flex-start; }
.expert-record-method { min-width: 0; color: var(--muted); font-size: 13px; }
.expert-record-method summary { cursor: pointer; color: var(--accent); text-align: end; }
.expert-record-method p { max-width: 38ch; margin-top: 6px; }
.expert-record-controls, .expert-recap-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.expert-detail-segments { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.expert-detail-segments a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
.expert-detail-segments a:hover, .expert-detail-segments a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--soft);
}
.expert-record-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 115px), 1fr));
  gap: 8px;
  margin: 0;
}
.expert-record-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.expert-record-stats dt { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.expert-record-stats dd { margin: 0; color: var(--accent); font-size: clamp(18px, 2.8vw, 27px); font-weight: 750; font-variant-numeric: tabular-nums; }
.expert-record-outcomes { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.expert-outcome {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}
.expert-outcome-win { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.expert-outcome-lose { color: var(--warning); background: var(--warning-bg); }
.expert-outcome-push, .expert-outcome-void { color: var(--muted); background: var(--bg); }
.expert-outcome:hover { border-color: var(--accent); }
.expert-record-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-top: 8px; color: var(--muted); }
.expert-detail .empty { min-height: 104px; padding: 15px 10px; }
.expert-detail-observers { display: grid; gap: 8px; }
.expert-detail-view-tabs { flex-wrap: wrap; margin-bottom: 8px; }
.expert-detail-view-tabs a { white-space: normal; }
.expert-clear-match { margin: 0 0 9px; }
.expert-detail-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.expert-detail-plans:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

.expert-detail .expert-plan-reading { min-width: 0; margin: 0; }
.expert-plan-reading > .editorial-meta { margin-bottom: 10px; }
.expert-plan-byline, .expert-plan-byline-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
}
.expert-plan-byline {
  justify-content: space-between;
  padding: 10px 0;
  margin: 6px 0 12px;
  border-bottom: 1px solid var(--line);
}
.expert-plan-byline-author { flex-wrap: nowrap; overflow-wrap: anywhere; }
.expert-plan-byline-author:hover { color: var(--accent); }
.expert-plan-byline-author small { display: block; color: var(--muted); }
.expert-plan-byline-author .icon { flex: none; width: 13px; height: 13px; color: var(--muted); }
.expert-plan-byline-avatar { width: 40px; height: 40px; font-size: 15px; }
.expert-plan-byline time { color: var(--muted); font-size: 13px; }
.expert-detail-fixture {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0 0 13px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--soft);
}
.expert-detail-fixture:hover { border-color: var(--accent); }
.expert-detail-fixture > small { color: var(--muted); overflow-wrap: anywhere; }
.expert-detail-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.expert-detail-teams .team { align-self: start; }
.expert-detail-teams .team-mark { width: 37px; height: 37px; }
.expert-fixture-link { display: inline-flex; align-items: center; justify-self: end; gap: 5px; color: var(--accent); font-size: 12px; font-weight: 650; }
.expert-fixture-link .icon { width: 13px; height: 13px; }
.expert-plan-summary { margin: 0; padding: 11px 13px; border-inline-start: 3px solid var(--accent); background: var(--bg); white-space: pre-line; overflow-wrap: anywhere; }
.expert-plan-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 10px 0 0; }
.expert-plan-review > div { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.expert-plan-review dt { color: var(--muted); font-size: 12px; }
.expert-plan-review dd { margin: 2px 0 0; font-weight: 680; overflow-wrap: anywhere; }
.expert-plan-access { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.expert-plan-access > div { margin-bottom: 9px; }
.expert-plan-access h3 { margin: 0; font-size: 16px; }
.expert-plan-access p { margin: 4px 0 0; color: var(--muted); }
.expert-plan-actions { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.expert-plan-actions > small { display: block; margin-bottom: 7px; color: var(--muted); }
.expert-plan-actions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.expert-plan-app-panel { background: linear-gradient(130deg, var(--soft), var(--surface) 86%); }
.expert-plan-app p { margin-bottom: 7px; color: var(--muted); }

@media (max-width: 860px) {
  .expert-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .expert-detail-stack { gap: 12px; }
  .expert-detail-observers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .expert-profile-top { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; }
  .expert-details-avatar { width: 53px; height: 53px; }
  .expert-profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .expert-detail-observers, .expert-detail-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .expert-record-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expert-record-method p { max-width: 22ch; }
  .expert-detail-teams .team-mark { width: 30px; height: 30px; }
  .expert-detail-teams .score { font-size: 18px; }
}
.expert-review-notice time { margin-inline-start: 8px; color: var(--muted); font-size: 12px; }
.expert-review-notice p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
