.site-dashboard { color:var(--ink); }
.site-page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:30px; padding:14px 0 25px; }
.site-kicker { display:block; color:#647b64; font-size:.875rem; font-weight:650; letter-spacing:.035em; margin-bottom:8px; }
.site-page-heading h1 { font-size:clamp(2.1rem,3vw,3rem); }
.site-page-heading p { max-width:680px; color:var(--muted); font-size:1rem; line-height:1.8; margin-top:13px; }
.site-self-actions { display:flex; flex-direction:column; align-items:flex-end; gap:11px; padding-top:5px; }
.site-self-actions > div { display:flex; gap:7px; }
.site-admin-badge { display:flex; align-items:center; gap:7px; color:#53694f; font-size:.875rem; max-width:100%; min-width:0; overflow-wrap:anywhere; }
.site-admin-badge svg { flex-shrink:0; }
.site-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 25px; }
.site-summary > div { display:flex; align-items:center; gap:18px; padding:22px 25px; border:1px solid var(--line); border-radius:13px; background:var(--white); }
.site-summary svg { color:#79916c; flex-shrink:0; }
.site-summary strong { font-family:var(--serif); font-size:2rem; font-weight:650; line-height:1.15; }
.site-summary small { display:block; color:var(--muted); font-size:.875rem; margin-top:5px; }
.site-family-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 185px auto; gap:15px; align-items:end; }
.site-family-toolbar .field { margin:0; }
.site-family-toolbar > .button { margin-bottom:3px; }
.site-search > div { position:relative; }
.site-search > div > svg { position:absolute; top:50%; left:13px; transform:translateY(-50%); color:#77916d; pointer-events:none; }
.site-search input { width:100%; padding-left:41px; }
.site-family-caption { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin:14px 0; font-size:.875rem; line-height:1.6; color:var(--muted); }
.site-family-caption > span { display:flex; gap:6px; align-items:center; }
.site-family-list { display:grid; gap:23px; }
.site-family-card { min-width:0; border:1px solid #d9e1d2; border-radius:16px; overflow:hidden; background:var(--white); box-shadow:var(--shadow); }
.site-family-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:25px 27px; background:linear-gradient(110deg,#edf2e7,#fafbf6); border-bottom:1px solid #e1e6d9; }
.site-family-title { display:flex; gap:15px; min-width:0; align-items:flex-start; }
.site-family-icon { display:flex; align-items:center; justify-content:center; width:48px; height:48px; flex-shrink:0; background:#e0e9d7; border:1px solid #cfddc6; border-radius:13px; color:#496647; }
.site-family-heading .site-kicker { margin-bottom:5px; font-size:.875rem; }
.site-family-heading h2 { font-family:var(--serif); font-size:1.65rem; font-weight:650; line-height:1.3; overflow-wrap:anywhere; }
.site-family-heading p { color:var(--muted); font-size:.875rem; line-height:1.7; margin-top:7px; }
.site-family-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.site-lineage-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:15px; padding:24px 27px; }
.site-lineage-card { min-width:0; padding:20px; background:#fcfdf9; border:1px solid #e0e6d9; border-radius:12px; }
.site-lineage-title { display:flex; gap:11px; align-items:center; margin-bottom:18px; }
.site-lineage-symbol { display:flex; justify-content:center; align-items:center; width:35px; height:35px; flex-shrink:0; border:1px solid #dce4d4; border-radius:50%; background:#eef3e7; color:#4f6d48; font-family:var(--serif); font-size:1.1rem; }
.site-lineage-title h3 { font-size:1.1rem; line-height:1.5; overflow-wrap:anywhere; }
.site-lineage-owner { padding-bottom:15px; }
.site-lineage-owner > span { display:block; color:var(--muted); font-size:.875rem; margin-bottom:5px; }
.site-lineage-owner strong { display:inline-block; font-size:1rem; margin-right:9px; }
.site-lineage-owner small { font-size:.875rem; color:var(--muted); overflow-wrap:anywhere; }
.site-lineage-counts { display:flex; gap:17px; padding-top:14px; border-top:1px solid #e6eadf; color:var(--muted); font-size:.875rem; }
.site-lineage-counts b { font-weight:650; color:#41533e; }
.site-lineage-root { font-size:.875rem; color:var(--muted); margin-top:9px; overflow-wrap:anywhere; }
.site-lineage-actions { display:flex; gap:7px; flex-wrap:wrap; margin-top:18px; }
.site-overlap-section { margin:0 27px; padding:19px 0 24px; border-top:1px solid #e7ebdf; }
.site-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:15px; }
.site-section-heading h3 { font-size:1rem; font-weight:650; line-height:1.5; }
.site-section-heading > span { font-size:.875rem; color:var(--muted); }
.site-overlap-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,335px),1fr)); gap:11px; }
.site-overlap { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; padding:15px 16px; border:1px solid #dbe4d2; border-radius:10px; color:#46603f; background:#f6f8f1; text-align:center; }
.site-overlap:hover { border-color:#a8bf98; background:#eef3e5; }
.site-overlap-name { flex:1 1 0; min-width:0; font-size:.93rem; font-weight:650; overflow-wrap:anywhere; }
.site-overlap-edge { display:flex; flex:0 1 130px; min-width:95px; align-items:center; gap:6px; color:#647c55; }
.site-overlap-edge b { flex:0 0 auto; font-size:.875rem; font-weight:500; }
.site-overlap-edge i { height:1px; flex:1; min-width:8px; background:#a0b88e; position:relative; }
.site-overlap-edge i:first-child::before,.site-overlap-edge i:last-child::after { content:''; width:4px; height:4px; border:1px solid #91aa7f; background:#f6f8f1; position:absolute; top:-2.5px; border-radius:50%; }
.site-overlap-edge i:first-child::before { left:0; }
.site-overlap-edge i:last-child::after { right:0; }
.site-overlap-note,.site-empty { color:var(--muted); font-size:.875rem; line-height:1.75; }
.site-overlap-note { margin-top:12px; }
.site-empty-panel { padding:28px; text-align:center; border:1px dashed #d6dfcd; border-radius:12px; }
.site-error { padding:12px 15px; margin:12px 0; border:1px solid #e0bcb3; border-radius:9px; background:#fff7f3; }
.site-history { margin-top:38px; padding:26px; border:1px solid var(--line); border-radius:15px; background:var(--white); }
.site-history .site-section-heading { margin-bottom:21px; }
.site-history h2 { font-family:var(--serif); font-size:1.65rem; font-weight:650; }
.site-history .site-section-heading p { max-width:760px; color:var(--muted); font-size:.875rem; line-height:1.8; margin-top:10px; }
.site-history .site-section-heading > svg { color:#84977a; flex-shrink:0; margin-top:8px; }
.site-history-filters { display:grid; grid-template-columns:minmax(0,1fr) 185px 160px; gap:12px; }
.site-match-count { color:var(--muted); font-size:.875rem; margin:1px 0 12px; }
.site-history-list { display:grid; gap:10px; }
.site-event { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 19px; border:1px solid #e5e8df; border-left:4px solid #93a781; border-radius:10px; background:#fcfdf9; }
.site-event.membership { border-left-color:#7292a0; }
.site-event.security { border-left-color:#b99560; }
.site-event-content { min-width:0; }
.site-event-topline { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:8px; }
.site-event-category { display:inline-block; padding:3px 7px; border-radius:5px; color:#63794f; background:#edf2e5; font-size:.875rem; }
.site-event.membership .site-event-category { color:#547887; background:#eaf1f3; }
.site-event.security .site-event-category { color:#91733e; background:#f7f0e1; }
.site-event time,.site-event p { font-size:.875rem; color:var(--muted); }
.site-event h3 { font-size:1rem; line-height:1.6; overflow-wrap:anywhere; }
.site-event p { margin-top:4px; line-height:1.6; overflow-wrap:anywhere; }
.site-event-actions { display:flex; gap:7px; align-items:center; flex-shrink:0; }
.site-event-readonly { font-size:.875rem; color:#7c8976; padding:0 4px; }
dialog.site-admin-dialog { width:min(760px,calc(100% - 32px)); }
.site-dialog-intro { margin-bottom:20px; }
.site-dialog-intro h3 { font-family:var(--serif); font-size:1.4rem; line-height:1.5; }
.site-dialog-intro p,.site-dialog-note { font-size:1rem; line-height:1.8; color:var(--muted); margin-top:9px; }
.site-dialog-note { margin-bottom:17px; }
.site-profile-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:12px; }
.site-profile-options { max-height:47dvh; overflow:auto; border:1px solid #dfe6d7; border-radius:12px; background:#fcfdf9; }
.site-profile-options > .site-empty { padding:22px 16px; }
.site-profile-choice { display:flex; align-items:center; gap:12px; padding:14px 15px; cursor:pointer; }
.site-profile-choice + .site-profile-choice { border-top:1px solid #e9ede3; }
.site-profile-choice:has(input:checked) { background:#f0f5e9; }
.site-profile-choice:has(input:disabled) { cursor:default; }
.site-profile-choice input { width:18px; height:18px; accent-color:#537848; flex-shrink:0; }
.site-profile-choice > span:last-child { min-width:0; }
.site-profile-letter { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; flex-shrink:0; border-radius:50%; color:#5c7850; background:#e4edda; font-family:var(--serif); font-size:1.1rem; }
.site-profile-choice strong { font-size:1rem; }
.site-profile-choice small { display:block; margin-top:4px; color:var(--muted); font-size:.875rem; line-height:1.6; overflow-wrap:anywhere; }
.site-profile-choice .site-profile-pinned { color:#7a815d; }
.site-profile-impact { font-size:.93rem; line-height:1.8; padding:14px 0 0; color:#536e48; }
.site-shared-people { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.site-shared-people > div { display:flex; align-items:center; gap:11px; padding:14px; border:1px solid #e2e8d9; border-radius:10px; }
.site-shared-people strong { font-size:1rem; overflow-wrap:anywhere; }
.site-dialog-footer { display:flex; justify-content:flex-end; margin-top:20px; }
.site-change { padding:17px; border:1px solid #e1e7d9; border-radius:11px; margin-bottom:13px; background:#fbfcf7; }
.site-change h3 { font-size:1rem; margin-bottom:11px; }
.site-change dl { margin:0; }
.site-change dl > div + div { border-top:1px solid #e3e9da; padding-top:11px; margin-top:11px; }
.site-change dt { color:#576b4c; font-size:.875rem; font-weight:650; margin-bottom:8px; }
.site-change dd { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; font-size:.93rem; line-height:1.75; overflow-wrap:anywhere; }
.site-change dd > span { padding:10px 12px; border-radius:7px; background:#f0f3e8; white-space:pre-wrap; }
.site-change dd > span:last-child { background:#e8f0df; }
.site-change dd small { display:block; font-size:.875rem; color:#79866e; margin-bottom:4px; }
.site-change > p { font-size:.93rem; color:var(--muted); line-height:1.7; }
@media(max-width:980px) {
  .site-family-heading { align-items:flex-start; }
  .site-family-actions { flex-direction:column; align-items:flex-end; }
  .site-self-actions > div { flex-direction:column; }
  .site-history-filters { grid-template-columns:minmax(0,1fr) 150px 145px; }
}
@media(max-width:700px) {
  .site-page-heading { flex-direction:column; gap:18px; padding-top:4px; }
  .site-self-actions { flex-direction:row; align-items:center; flex-wrap:wrap; justify-content:space-between; width:100%; padding-top:0; }
  .site-self-actions > div { flex-direction:row; }
  .site-summary { grid-template-columns:1fr 1fr; gap:9px; }
  .site-summary > div { padding:16px; gap:13px; }
  .site-summary strong { font-size:1.7rem; }
  .site-family-toolbar { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
  .site-family-toolbar .site-search { grid-column:1/-1; }
  .site-family-caption { align-items:flex-start; }
  .site-family-caption > span { max-width:240px; align-items:flex-start; }
  .site-family-caption svg { margin-top:4px; flex-shrink:0; }
  .site-family-heading { flex-direction:column; padding:20px 18px; gap:16px; }
  .site-family-actions { width:100%; flex-direction:row; align-items:center; justify-content:space-between; }
  .site-family-icon { width:40px; height:40px; }
  .site-family-heading h2 { font-size:1.5rem; }
  .site-lineage-grid { padding:17px; gap:11px; }
  .site-lineage-card { padding:18px; }
  .site-overlap-section { margin:0 18px; padding-top:16px; }
  .site-overlap { padding:14px 10px; gap:7px; }
  .site-overlap-edge { flex-basis:98px; min-width:90px; gap:4px; }
  .site-history { padding:20px 17px; margin-top:26px; }
  .site-history-filters { grid-template-columns:1fr 1fr; gap:10px; }
  .site-history-filters > .field:first-child { grid-column:1/-1; }
  .site-event { align-items:flex-start; flex-direction:column; padding:16px; gap:12px; }
  .site-event-actions { width:100%; justify-content:flex-end; flex-wrap:wrap; }
  dialog.site-admin-dialog { width:calc(100% - 14px); max-height:calc(100dvh - 14px); border-radius:14px; }
  .site-admin-dialog .dialog-head { padding:14px 16px; }
  .site-admin-dialog .dialog-content { padding:19px 15px 0; }
  .site-admin-dialog .dialog-actions { margin:17px -15px 0; padding:13px 15px; }
  .site-admin-dialog .dialog-content:not(form) { padding-bottom:18px; }
  .site-profile-toolbar { grid-template-columns:minmax(0,1fr) 125px; gap:9px; }
  .site-profile-choice { gap:9px; padding:13px 11px; }
  .site-shared-people { grid-template-columns:1fr; }
  .site-change { padding:14px; }
  .site-change dd { grid-template-columns:1fr; gap:7px; }
}
.site-context-banner { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0 0 20px; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:#edf3e9; color:var(--green); font-size:.9rem; }
.site-context-banner > span { min-width:0; overflow-wrap:anywhere; }
.site-context-banner .button { flex-shrink:0; }
