@layer components {
  .expert-page { padding-block: 28px 48px; }
  .expert-breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; font-size: 13px; color: #526277; }
  .expert-breadcrumbs a { color: #176747; }
  .expert-hero { display: flex; align-items: center; gap: 26px; padding: 28px; background: #edf8f0; border: 1px solid #c8e9d7; border-radius: 20px; margin-bottom: 26px; }
  .expert-avatar { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid white; }
  .expert-role { color: #176747; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
  .expert-hero h1 { color: #182940; font-size: clamp(28px,4vw,40px); line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
  .expert-hero p { color: #35465d; font-size: 16px; line-height: 1.65; max-width: 680px; }
  .expert-section { margin-block: 28px; }
  .expert-section h2 { font-size: 24px; line-height: 1.3; color: #182940; font-weight: 800; margin-bottom: 16px; }
  .expert-section > p, .expert-method p { font-size: 16px; line-height: 1.7; color: #35465d; margin-block: 10px; }
  .expert-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-block: 18px; }
  .expert-stat { border: 1px solid #dce3ed; border-radius: 13px; background: white; padding: 18px; }
  .expert-stat strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.2; color: #182940; font-variant-numeric: tabular-nums; }
  .expert-stat span { display: block; font-size: 13px; color: #526277; margin-top: 7px; }
  .expert-stat--win { background: #edf8f0; border-color: #a7d7bc; }
  .expert-stat--win strong { color: #176747; }
  .expert-stat--loss { background: #fff5f4; border-color: #f0d0ca; }
  .expert-stat--loss strong { color: #9a3930; }
  .expert-coverage { padding: 16px 18px; border-left: 4px solid #c88d39; border-radius: 0 10px 10px 0; background: #fff6e6; color: #674312; font-size: 14px; line-height: 1.7; }
  .expert-leagues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .expert-league { padding: 14px 16px; border: 1px solid #e1e7ef; border-radius: 12px; background: white; }
  .expert-league-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #182940; font-size: 14px; }
  .expert-league-top a { font-weight: 700; }
  .expert-league-top strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .expert-league meter { display: block; width: 100%; height: 10px; margin-top: 10px; accent-color: #176747; }
  .expert-league meter::-webkit-meter-bar { background: #e7f0eb; border: 0; border-radius: 10px; }
  .expert-league meter::-webkit-meter-optimum-value { background: #25865d; border-radius: 10px; }
  .expert-league meter::-moz-meter-bar { background: #25865d; }
  .expert-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
  .expert-filters label { display: grid; gap: 6px; color: #35465d; font-size: 14px; font-weight: 600; }
  .expert-filters select { width: 100%; min-width: 0; border: 1px solid #cbd5e1; background: white; color: #182940; border-radius: 9px; padding: 11px; font-size: 14px; }
  .expert-ledger { list-style: none; padding: 0; margin: 14px 0; }
  .expert-ledger-item { border: 1px solid #dce3ed; border-radius: 12px; background: white; padding: 16px; margin-bottom: 10px; }
  .expert-ledger-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
  .expert-ledger-top time { color: #526277; font-size: 12px; }
  .expert-ledger-item a { font-size: 16px; font-weight: 750; line-height: 1.4; color: #182940; }
  .expert-ledger-item a:hover { color: #176747; text-decoration: underline; }
  .expert-ledger-item p { font-size: 14px; line-height: 1.6; color: #35465d; margin-top: 5px; }
  .expert-status { display: inline-block; font-size: 12px; line-height: 1.4; font-weight: 700; padding: 5px 8px; border-radius: 7px; background: #edf1f6; color: #47566b; }
  .expert-status--win { color: #125630; background: #d5f3df; }
  .expert-status--loss { color: #922d29; background: #ffe0dd; }
  .expert-status--push { color: #214d85; background: #e0ecff; }
  .expert-status--unverified { color: #674312; background: #fff1d9; }
  .expert-ledger-note { color: #526277; font-size: 13px; line-height: 1.6; }
  .expert-method { background: white; border: 1px solid #dce3ed; padding: 22px; border-radius: 16px; }
  .expert-profile-card { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 20px; border: 1px solid #c8e9d7; border-radius: 18px; background: white; padding: 24px; }
  .expert-profile-card .expert-avatar { width: 88px; height: 88px; border: 3px solid #edf8f0; }
  .expert-profile-card h3 { color: #182940; font-size: 22px; line-height: 1.3; font-weight: 800; margin-bottom: 5px; }
  .expert-profile-card p { color: #35465d; font-size: 15px; line-height: 1.65; }
  .expert-profile-card .expert-stat-grid { grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; }
  .expert-profile-card .expert-stat { padding: 12px; background: #f7faf8; }
  .expert-profile-card .expert-stat strong { font-size: 24px; }
  .expert-card-footer { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
  .expert-card-footer p { font-size: 13px; flex: 1; }
  .expert-page a:focus-visible, .expert-page select:focus-visible, .expert-profile-card a:focus-visible { outline: 2px solid #176747; outline-offset: 3px; }
  @media(max-width: 600px) {
    .expert-hero { align-items: flex-start; gap: 18px; padding: 20px; flex-direction: column; }
    .expert-avatar { width: 88px; height: 88px; }
    .expert-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .expert-leagues, .expert-filters { grid-template-columns: 1fr; }
    .expert-profile-card { grid-template-columns: 64px minmax(0,1fr); padding: 18px; gap: 14px; }
    .expert-profile-card .expert-avatar { width: 64px; height: 64px; }
    .expert-profile-card .expert-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .expert-ledger-top { align-items: flex-start; }
  }
}
@layer components {
  .expert-page [hidden], .expert-profile-card [hidden] { display: none !important; }
}

@layer components {
  #about-expert .about-experts-intro { max-width: 700px; margin-bottom: 28px; color: #526277; font-size: 15px; line-height: 1.7; }
  #about-expert .expert-profile-card { position: relative; overflow: hidden; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 30px; border-color: #d2e6dc; border-radius: 24px; background: linear-gradient(120deg, #edf8f1 0%, #fff 58%); box-shadow: 0 8px 28px #173c2810; }
  #about-expert .expert-profile-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #176747, #70bf91, #d9eddc); }
  #about-expert .expert-avatar { width: 112px; height: 112px; border: 5px solid white; box-shadow: 0 4px 16px #1767471c; }
  #about-expert .expert-profile-card h3 { font-size: clamp(23px, 3vw, 29px); letter-spacing: -.025em; }
  #about-expert .expert-profile-card h3 a:hover { color: #176747; }
  #about-expert .expert-role { margin-block: 6px 10px; }
  #about-expert .about-expert-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  #about-expert .about-expert-tags span { padding: 5px 11px; border: 1px solid #cee5d7; border-radius: 99px; background: #f2faf5; color: #176747; font-size: 12px; font-weight: 700; }
  #about-expert .expert-stat { padding: 17px 18px; border-radius: 15px; background: white; }
  #about-expert .expert-stat strong { font-size: 29px; }
  #about-expert .expert-stat--win { background: #e7f7ed; border-color: #b5ddc3; }
  #about-expert .expert-stat--loss { background: #fff2f0; border-color: #f0d0ca; }
  #about-expert .expert-stat--push { background: #edf4ff; border-color: #c9daf2; }
  #about-expert .expert-stat--push strong { color: #315b91; }
  #about-expert .expert-card-footer { padding-top: 19px; border-top: 1px solid #dce9e1; }
  #about-expert .expert-card-footer p { min-width: 200px; color: #627166; }
  #about-expert .expert-card-footer .btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; border-radius: 12px; }
  @media (max-width: 600px) {
    #about-expert .expert-profile-card { grid-template-columns: 72px minmax(0, 1fr); padding: 22px 18px; gap: 18px 14px; border-radius: 18px; }
    #about-expert .expert-avatar { width: 72px; height: 72px; border-width: 3px; }
    #about-expert .expert-profile-card > div:nth-child(2) { min-width: 0; }
    #about-expert .expert-profile-card h3 { font-size: 22px; }
    #about-expert .expert-profile-card p { font-size: 14px; }
    #about-expert .expert-stat { padding: 13px; }
    #about-expert .expert-card-footer .btn-accent { width: 100%; }
  }
}
