.home-page {
  width: min(100% - 48px, 1152px);
  margin: 38px auto 0;
  --home-border: #e5e7eb;
}
.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  grid-template-areas: 'intro preview' 'actions preview';
  gap: 19px 24px;
}
.home-intro { grid-area: intro; overflow: hidden; border: 1px solid var(--home-border); border-radius: 19px; background: rgb(255 255 255 / 82%); color: var(--ink); }
.home-headline { padding: clamp(30px, 4.1vw, 57px) clamp(24px, 3.45vw, 49px) 33px; }
.home-headline h1 { margin: 0; font-size: clamp(33px, 4.4vw, 61px); font-weight: 700; line-height: 1.1; letter-spacing: -.055em; }
.home-headline h1 span { color: var(--brand); }
.home-headline p { max-width: 48ch; margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 13px 27px 29px; }
.home-stats > div { display: flex; flex-direction: column-reverse; gap: 3px; padding: 0 18px; }
.home-stats > div + div { border-left: 1px solid var(--line); }
.home-stats dd { font-size: clamp(22px, 2.8vw, 38px); font-weight: 700; line-height: 1.17; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.home-stats dt { color: var(--muted); font-size: 11px; line-height: 1.45; }
.home-preview { grid-area: preview; display: flex; flex-direction: column; min-width: 0; padding: 19px; border: 1px solid var(--home-border); border-radius: 19px; background: #fff; }
.home-preview-head h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 20px; font-weight: 800; letter-spacing: -.045em; color: #0f172a; }
.home-preview-head h2 span { color: var(--brand); }
.home-search { display: grid; grid-template-columns: minmax(0,1fr) 43px; margin-top: 12px; }
.home-search label { grid-column: 1/-1; margin-bottom: 6px; font-size: 12px; font-weight: 650; color: #475569; }
.home-search input { min-width: 0; width: 100%; min-height: 43px; border: 1px solid #dce2eb; border-right: 0; border-radius: 8px 0 0 8px; background: #f8fafc; padding: 8px 11px; font-size: 13px; }
.home-search button { display: grid; place-items: center; border-radius: 0 8px 8px 0; background: var(--brand); color: #fff; }
.home-search button:hover { background: var(--brand-hover); }
.home-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.home-categories button { padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fafc; font-size: 11px; font-weight: 650; color: #475569; }
.home-categories button:hover, .home-categories button[aria-pressed='true'] { background: var(--brand-soft); border-color: var(--brand-edge); color: var(--brand-ink); }
.home-results { flex: 1; margin: 12px 0 14px; }
.home-person { display: grid; grid-template-columns: 42px minmax(0,1fr) minmax(0, .67fr) 16px; align-items: center; column-gap: 10px; min-height: 69px; padding: 7px 3px; border-bottom: 1px solid #edf0f4; color: #0f172a; }
.home-person:hover { background: var(--brand-soft); }
.home-avatar { display: grid; position: relative; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 11px; color: var(--brand-ink); background: var(--brand-tint); font-size: 13px; font-weight: 800; }
.home-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-person-text { display: grid; min-width: 0; gap: 3px; }
.home-person-text strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.home-person-text strong span { color: #be123c; }
.home-person-text small { color: #047857; font-size: 11px; }
.home-person-meta { display: grid; gap: 4px; text-align: right; justify-items: end; color: #526176; font-size: 10px; font-weight: 650; }
.home-person-meta small { overflow: hidden; max-width: 100%; color: #475569; background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-person-arrow { color: #8592a4; }
.home-empty { padding: 18px 0; font-size: 13px; color: #475569; }
.home-all { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 750; }
.home-all:hover { background: var(--brand-tint); }
.home-actions { grid-area: actions; display: grid; grid-template-columns: 1.13fr 1fr; gap: 13px; }
.home-check-panel { padding: 16px; background: var(--brand-soft); border-radius: 13px; }
.home-check-panel h2 { margin-top: 9px; color: var(--brand-ink); font-size: 15px; font-weight: 800; line-height: 1.35; }
.home-check-panel p, .home-resources small { margin-top: 5px; color: #475569; font-size: 12px; line-height: 1.5; }
.home-check-panel a { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--brand-hover); font-size: 12px; font-weight: 750; }
.home-check-panel a:hover, .home-resources a:hover strong { text-decoration: underline; }
.home-action-symbol { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: var(--brand-tint); color: var(--brand-hover); }
.home-resources { display: grid; gap: 10px; }
.home-resources a { display: grid; align-items: center; grid-template-columns: 35px minmax(0, 1fr) 15px; gap: 9px; padding: 10px; border: 1px solid var(--home-border); border-radius: 13px; background: white; }
.home-resources strong { display: block; font-size: 13px; }
.home-resources small { display: block; margin-top: 2px; }
.home-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 15px; border-radius: 10px; border: 1px solid #fecdd3; background: #fff9fa; color: #881337; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (min-width: 1041px) {
  .reference-wide-nav a { padding-inline: .56rem; }
}
@media (min-width: 1041px) and (max-width: 1190px) {
  .reference-wide-nav a { padding-inline: .45rem; gap: .3rem; }
}
@media (max-width: 850px) {
  .home-dashboard { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'preview' 'actions'; gap: 14px; }
  .home-page { width: calc(100% - 32px); margin-top: 19px; }
  .home-headline { padding: 30px 23px 24px; }
  .home-stats { padding-inline: 8px; }
  .home-stats > div { padding-inline: 12px; }
}
@media (max-width: 380px) {
  .home-preview { padding: 13px; }
  .home-person { grid-template-columns: 34px minmax(0,1fr) minmax(0,.56fr); gap: 7px; }
  .home-avatar { width: 34px; height: 34px; }
  .home-person-arrow { display: none; }
  .home-actions { grid-template-columns: 1fr; }
}
