:root{--geneo-brand:#B76100;--geneo-brand-hover:#935000;--geneo-brand-active:#783F00;font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#223044;background:#f4f7fb;line-height:1.48}
*{box-sizing:border-box}body{margin:0}.wrap{max-width:1220px;padding:0 24px;margin:0 auto}
.top{background:var(--geneo-brand);color:white}.top-inner{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px}.logo{font-weight:800;letter-spacing:.07em;font-size:25px}.logo span{color:#fff2df}.env{font-size:12px;letter-spacing:.04em;color:#dceafa}
h1{font-size:27px;margin:0 0 4px}h2{font-size:19px;margin:0}.heading{display:flex;justify-content:space-between;padding:30px 0 14px}.heading p{margin:0;color:#617184}
a{color:#145996;text-decoration:none}a:hover{text-decoration:underline}.panel{background:white;border:1px solid #dae2ed;border-radius:14px;box-shadow:0 4px 16px #142d5110;padding:23px;margin-bottom:20px}
.search-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.search-form label{display:flex;flex-direction:column;font-size:13px;font-weight:650;gap:6px}input,select{width:100%;font:inherit;font-size:15px;border:1px solid #c7d3df;border-radius:8px;padding:11px 12px;background:white;color:#1b2c40}input:focus,select:focus{outline:2px solid #8cb4e6}.form-buttons{display:flex;align-items:end;gap:14px}button{border:0;background:var(--geneo-brand);color:white;font-weight:650;padding:12px 24px;border-radius:8px;cursor:pointer;font-size:15px}.clear{margin-bottom:10px}.hint{font-size:13px;color:#687789}.panel>.hint{margin:18px 0 0}.notice,.warning{background:#fff6df;border:1px solid #eed6a4;border-radius:10px;padding:14px;margin:15px 0}.warning{background:#fdf0ef;border-color:#ecc7c2}.grouphead{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px}.grouphead span{font-size:13px;color:#758294}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;background:#eff4fa;color:#344c66;font-size:12px;text-transform:uppercase;letter-spacing:.035em}td,th{padding:12px 13px;border-bottom:1px solid #e8edf3;vertical-align:top}tbody tr:hover{background:#f8fbff}.minor{color:#647487}.actions{display:flex;gap:18px;margin-top:18px;font-size:14px}.field-list{margin:0}.field{display:grid;grid-template-columns:35% 65%;border-bottom:1px solid #e9eef5;padding:11px 0}.field:last-child{border:0}dt{font-weight:650;color:#3d5065}dt span{font-weight:400;font-size:12px;color:#8190a0}dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.footer{padding:20px 24px 40px;color:#7b8998;font-size:12px}
@media(max-width:760px){.wrap{padding:0 15px}.search-form{grid-template-columns:repeat(2,minmax(0,1fr))}.env{display:none}.field{grid-template-columns:1fr;gap:3px}h1{font-size:23px}}
@media(max-width:470px){.search-form{grid-template-columns:1fr}.panel{padding:16px}}
.mode-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 17px}.mode-tab{padding:12px 18px;border:1px solid #cbd8e5;border-radius:10px 10px 0 0;background:#eaf0f7;color:#35506a;font-weight:650}.mode-tab.is-active{background:#fff;color:#153e6d;border-bottom:3px solid #ed9727}.search-form{display:block}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.form-grid label,.form-footer label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:650}.form-grid .check-field{flex-direction:row;align-items:center;gap:9px;margin-top:22px}.check-field input{width:auto;accent-color:var(--geneo-brand)}hr{border:0;border-top:1px solid #dde6ef;margin:24px 0}.search-form h2{margin:3px 0 14px}.search-form h3{font-size:15px;margin:20px 0 10px;color:#405875}.form-footer{border-top:1px solid #dce4ed;padding-top:18px;display:flex;align-items:end;gap:16px}.form-footer label{min-width:220px}.form-footer .clear{margin-bottom:12px}.form-footer button{min-height:43px}.actions{flex-wrap:wrap}
@media(max-width:760px){.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.form-grid{grid-template-columns:1fr}.form-footer{flex-wrap:wrap}.mode-tab{width:100%}}

/* Geneo 2.0 v0.2.0: wizualna kontrola kwalifikacji, nie anonimizacja. */
.audit-warning{background:#fff1d4;border:2px solid #b45a18;border-radius:10px;margin-top:14px;margin-bottom:12px;padding:13px 16px;color:#63300c;line-height:1.45}
.audit-warning strong{display:block;font-size:14px;letter-spacing:.02em}
.totals h2{margin-bottom:15px}.totals-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.totals-grid>div{border:1px solid #d9e4ec;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:3px;background:#f8fafd}
.totals-grid span{font-size:13px;color:#51657b}.totals-grid strong{font-size:29px;line-height:1.25;font-variant-numeric:tabular-nums}
.totals>.hint{margin-top:14px}.group-counts{margin:0 0 13px;color:#51657b;font-size:13px}
.lock{color:#87400f;white-space:nowrap;font-size:13px;font-weight:650;margin-left:5px}
tr.full-lock{background:#fff5f2}tr.partial-lock{background:#fffaf0}
.audit-detail.full-lock{border-color:#edb0a6}.audit-detail.partial-lock{border-color:#e5cc91}
.audit-detail h2{margin-bottom:9px}.privacy-hint{font-size:14px;border:1px solid #e4cb9e;padding:10px 12px;background:#fffbf2;border-radius:8px}
.field.field-locked{background:#fff8f0;margin:0 -12px;padding:11px 12px;border-left:3px solid #c87538}
.field-note{font-size:12px;color:#925c21;margin-top:6px}
@media(max-width:650px){.totals-grid{grid-template-columns:1fr}}

/* v0.2.3: kod źródła bez widocznego nagłówka i ostrzeżenie słownika. */
.source-header,.source-code{width:37px;min-width:37px;text-align:center;white-space:nowrap}
.source-code{font-variant-numeric:tabular-nums;color:#4b5d71;font-weight:650}
.lookup-note{font-size:12px;color:#985916;margin-top:4px}

/* v0.2.4: wyraźny znak † bez spacji po imieniu rodzica. */
.deceased-dagger{font-family:Georgia,"Times New Roman",serif;font-size:1.48em;font-weight:800;color:#8c2814;line-height:0;vertical-align:-.035em;margin:0;padding:0}

/* Geneo 2.0 v0.2.5 — tematyczny widok szczegółów w stylistyce kart metryki. */
.record-back{padding:24px 0 13px;font-size:14px}
.record-card{background:white;border:1px solid #dce4ed;border-radius:17px;box-shadow:0 3px 15px #142d5110;overflow:hidden;margin:0 0 15px}
.record-top{padding:28px 29px 24px}
.record-top h1{font-size:clamp(23px,2.7vw,31px);line-height:1.22;color:#172235;font-weight:750;letter-spacing:-.02em;margin:0 0 11px;overflow-wrap:anywhere}
.record-meta{display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:15px;color:#69768a}
.record-kind{border-radius:100px;background:#eaf4ff;color:#205c90;padding:4px 12px;font-size:14px;font-weight:600}
.record-kind-wedding{background:#fff1d0;color:#99610d}.record-kind-death{background:#ebeff7;color:#4a5d76}
.record-id{margin-left:auto;font-size:12px;color:#8490a0}
.record-audit{border-block:1px solid #e5eaf0;background:#f6f8fc;padding:13px 29px 12px;font-size:12px;color:#5b6878}
.record-audit.audit-full{background:#fff3f0;border-color:#edccc6}.record-audit.audit-partial{background:#fff8eb;border-color:#ead5aa}
.record-audit-title{font-size:13px;margin-bottom:4px}.record-audit p{margin:3px 0}
.record-section-head{display:flex;align-items:center;gap:10px;background:#f5f7fa;border-top:1px solid #e8edf2;border-bottom:1px solid #e8edf2;color:#536173;font-size:14px;font-weight:750;text-transform:uppercase;letter-spacing:.015em;margin:0;padding:14px 27px}
.section-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;color:#356eb1;font-size:21px;line-height:1;font-family:Georgia,"Times New Roman",serif;font-weight:500}
.record-section-groom .section-icon{color:#3169be}.record-section-bride .section-icon{color:#d64093}
.record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:19px;row-gap:17px;padding:25px 27px 27px;margin:0}
.record-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.record-grid-1{grid-template-columns:1fr}
.record-card .field{display:block;min-width:0;border:0;margin:0;padding:0}
.record-card .field.field-locked{padding:7px 10px;margin:-7px -10px;background:#fff6ee;border-left:3px solid #c87538;border-radius:4px}
.record-card .field dt{font-size:12px;font-weight:550;color:#94a1b3;text-transform:uppercase;letter-spacing:.025em;line-height:1.4;margin-bottom:6px;overflow-wrap:anywhere}
.record-card .field dd{font-size:16px;color:#172235;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.record-card .field-wide{grid-column:1/-1}
.record-card .field-note,.record-card .lookup-note{line-height:1.4;font-size:12px;margin-top:6px}
.record-scans .scan-restricted{padding:21px 27px 25px;color:#586779;font-size:14px;display:flex;gap:10px;align-items:center}
.record-footnote{padding-bottom:23px}
@media(max-width:760px){.record-top{padding:22px 20px}.record-audit{padding:13px 20px}.record-section-head{padding:13px 20px}.record-grid,.record-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px;gap:20px}.record-scans .scan-restricted{padding:17px 20px}.record-id{margin-left:0}}
@media(max-width:520px){.record-grid,.record-grid-2,.record-grid-1{grid-template-columns:1fr}.record-meta{font-size:14px}.record-top h1{font-size:23px}.record-section-head{font-size:13px}}

.record-section-head svg.section-icon{height:20px;width:20px;flex:0 0 20px;font-size:initial}

/* Geneo 2.0 v0.2.6 — kompaktowa karta aktu, docelowa proporcja typowej metryki ~4:3.
   Bez obcinania tekstów: bardzo długie indeksy mogą zwiększać wysokość karty. */
.record-back{padding:13px 0 9px;font-size:12px}
.record-compact{max-width:960px;margin:0 auto 10px;border-radius:12px}
.record-compact .compact-top{padding:13px 19px 9px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.record-compact .compact-heading{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px}
.record-compact .compact-heading h1{font-size:clamp(16px,1.95vw,21px);font-weight:750;letter-spacing:-.023em;line-height:1.25;margin:0 4px 0 0;color:#172235;overflow-wrap:anywhere}
.record-compact .record-kind{font-size:11px;padding:2px 9px;white-space:nowrap}
.record-compact .record-year{font-size:12px;color:#667487}
.record-compact .compact-record-id{font-size:10px;white-space:nowrap;color:#8c98a7}
.record-compact .compact-metadata{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 17px;border-bottom:1px solid #e6edf4;padding:0 19px 10px;margin:0}
.record-compact .compact-meta-field{display:inline-flex;gap:5px;font-size:11.5px;min-width:0;max-width:100%;align-items:baseline}
.record-compact .compact-meta-field dt{color:#77869a;font-weight:550;white-space:nowrap}
.record-compact .compact-meta-field dd{margin:0;color:#1f3045;font-weight:650;overflow-wrap:anywhere}
.record-compact .compact-audit{padding:7px 19px;display:flex;justify-content:space-between;gap:8px 18px;align-items:center;flex-wrap:wrap;font-size:11px;color:#657486;background:#f6f8fc;border-bottom:1px solid #e6edf4}
.record-compact .compact-audit.audit-full{background:#fff2ef;border-color:#eed1c5}
.record-compact .compact-audit.audit-partial{background:#fff7e8;border-color:#ead4ad}
.record-compact .compact-audit strong{color:#3d5068}
.record-compact .compact-audit-details{font-size:11px}
.record-compact .compact-audit-details summary{cursor:pointer;color:#426b96}
.record-compact .compact-audit-details[open]{flex-basis:100%}
.record-compact .compact-audit-details>div{padding-top:3px;line-height:1.3}
.record-compact .compact-paired{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,.93fr);border-bottom:1px solid #e3eaf3}
.record-compact .compact-panel{min-width:0}
.record-compact .compact-panel-left{border-right:1px solid #e4eaf2}
.record-compact .compact-panel-empty{display:none}
.record-compact .record-section-head.compact-panel-head{padding:6px 12px;background:#edf3fb;border:0;border-bottom:1px solid #e5eaf2;font-size:11.3px;line-height:1.3;font-weight:750;text-transform:none;letter-spacing:0;gap:7px;color:#293e59}
.record-compact .compact-panel-right .compact-panel-head{background:#f0f4f9}
.record-compact .compact-panel-symbol{font-size:15px;color:#406e9e;line-height:1;display:inline-block;min-width:15px;font-weight:500}
.record-compact .compact-panel-body{padding:7px 13px 9px}
.record-compact .compact-subhead{font-size:11.5px;color:#485a72;font-weight:750;line-height:1.25;margin:4px 0 3px}
.record-compact .compact-subhead:not(:first-child){border-top:1px solid #ecf0f6;margin-top:7px;padding-top:6px}
.record-compact .compact-fields{margin:0}
.record-compact .field{display:grid;grid-template-columns:118px minmax(0,1fr);gap:1px 8px;min-width:0;padding:2px 0;margin:0;border:0;align-items:start}
.record-compact .field dt{font-size:10.5px;line-height:1.35;text-transform:none;letter-spacing:0;font-weight:550;color:#72839a;margin:1px 0 0;overflow-wrap:anywhere}
.record-compact .field dd{font-size:12.5px;line-height:1.35;color:#172235;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.record-compact .field.field-locked{margin:0 -5px;padding:2px 4px;border-left:2px solid #c87538;background:#fff7ef;border-radius:2px}
.record-compact .field-note{display:block;font-size:9.4px;line-height:1.25;margin-top:1px;color:#95622c}
.record-compact .lookup-note{display:block;font-size:9.7px;line-height:1.25;color:#965811;margin-top:1px}
.record-compact .lock{font-size:10px;margin-left:2px;font-weight:600}
.record-compact .deceased-dagger{font-size:1.45em}
.record-compact .compact-strip-title{margin:0;color:#485c75;flex:0 0 123px;font-size:11px;font-weight:750}
.record-compact .compact-notes,.record-compact .compact-extra{padding:7px 13px;display:flex;gap:8px 12px;align-items:flex-start;border-bottom:1px solid #e5ecf3;background:#fff}
.record-compact .compact-notes-fields,.record-compact .compact-extra>.compact-fields{flex:1;min-width:0}
.record-compact .compact-notes .field,.record-compact .compact-extra .field{grid-template-columns:118px minmax(0,1fr)}
.record-compact .compact-bottom{padding:8px 13px;display:flex;justify-content:space-between;gap:8px 16px;align-items:baseline;border-bottom:1px solid #e9edf4;background:#f9fbfe}
.record-compact .compact-credits{display:flex;align-items:baseline;gap:10px;flex:1;min-width:0}
.record-compact .compact-bottom-label{font-size:11px;font-weight:750;color:#3d5671;flex:0 0 auto;margin:0}
.record-compact .compact-credits .compact-fields{display:flex;flex-wrap:wrap;column-gap:16px;row-gap:3px;min-width:0}
.record-compact .compact-credits .field{display:inline-flex;align-items:baseline;gap:5px;padding:0}
.record-compact .compact-credits dt,.record-compact .compact-credits dd{font-size:10.5px;margin:0}
.record-compact .compact-scan{color:#6e7d8d;font-size:10.5px;white-space:nowrap}
.record-compact .compact-disclaimer{margin:0;padding:5px 13px;font-size:9.5px;line-height:1.2;color:#9ba5af}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:761px){.record-compact .compact-paired:has(.compact-panel-empty){grid-template-columns:1fr}.record-compact .compact-paired:has(.compact-panel-empty) .compact-panel-left{border-right:0}}
@media(max-width:760px){
  .record-compact .compact-top{padding:12px 12px 8px}
  .record-compact .compact-metadata,.record-compact .compact-audit{padding-left:12px;padding-right:12px}
  .record-compact .compact-paired{grid-template-columns:1fr}
  .record-compact .compact-panel-left{border-right:0;border-bottom:1px solid #e4eaf2}
  .record-compact .compact-panel-body{padding:7px 12px 9px}
  .record-compact .compact-notes,.record-compact .compact-extra{padding:9px 12px;display:block}
  .record-compact .compact-strip-title{margin-bottom:4px}
  .record-compact .compact-bottom{padding:9px 12px;flex-wrap:wrap}
  .record-compact .compact-scan{white-space:normal}
}
@media(max-width:440px){
  .record-compact .compact-top{flex-wrap:wrap}
  .record-compact .field{grid-template-columns:103px minmax(0,1fr)}
  .record-compact .compact-notes .field,.record-compact .compact-extra .field{grid-template-columns:103px minmax(0,1fr)}
  .record-compact .compact-audit-context{display:none}
}

/* Geneo 2.0 v0.2.7 — zatwierdzona szeroka karta szczegółów JZI.
   Wyrównana do żółtego paska audytu (ta sama szerokość .wrap).
   Kolorowe pionowe paski z ikonami typu aktu nie są używane. */
.record-compact{width:100%;max-width:none;margin:0 0 14px;border-radius:12px}
.record-compact .compact-record-header{padding:14px 18px 11px;border-bottom:1px solid #e4eaf2}
.record-compact .compact-top{padding:0;align-items:start;justify-content:space-between;gap:10px 24px}
.record-compact .compact-heading{display:flex;align-items:baseline;gap:5px 17px;flex-wrap:wrap;min-width:0}
.record-compact .compact-heading h1{font-size:clamp(20px,1.95vw,24px);line-height:1.35;margin:0;font-weight:750}
.record-compact .record-kind{font-size:12px;padding:3px 11px}
.record-compact .compact-record-id{font-size:11px;line-height:1.6;color:#7b899c;padding-top:3px;white-space:nowrap}
.record-compact .compact-metadata{padding:0;border:0;margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 22px}
.record-compact .compact-heading-facts{display:inline-flex;gap:7px 20px;min-width:0}
.record-compact .compact-metadata-line{padding:2px 0 0;min-height:22px}
.record-compact .compact-meta-field{font-size:12px;line-height:1.55;gap:6px}
.record-compact .compact-meta-field dt{color:#5d7596;font-size:inherit;line-height:inherit;font-weight:500}
.record-compact .compact-meta-field dd{font-weight:700;color:#192c48;font-size:inherit;line-height:inherit}
.record-compact .compact-audit{padding:7px 17px;line-height:1.5}
.record-compact .compact-paired{grid-template-columns:minmax(0,1.17fr) minmax(0,1fr)}
.record-compact .record-section-head.compact-panel-head{padding:6px 15px;font-size:12.3px;line-height:1.5;color:#243e60;background:#e8f0fa}
.record-compact .compact-panel-right .compact-panel-head{background:#e8f0fa}
.record-compact .compact-panel-body{padding:9px 15px 13px;min-height:45px}
.record-compact .compact-subhead{font-size:12px;line-height:1.5;margin:0 0 4px;color:#223f61}
.record-compact .compact-subhead:not(:first-child){margin-top:9px;padding-top:6px}
.record-compact .field{grid-template-columns:141px minmax(0,1fr);gap:4px 8px;padding:3px 0}
.record-compact .field dt{font-size:11.7px;line-height:1.5;font-weight:500;color:#59769e;margin:0}
.record-compact .field dd{font-size:13.2px;line-height:1.5}
.record-compact .field.field-locked{padding:3px 5px}
.record-compact .compact-parent-panel .compact-panel-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:15px}
.record-compact .compact-parent-panel .compact-subgroup{min-width:0}
.record-compact .compact-parent-panel .compact-subgroup+.compact-subgroup{border-left:1px solid #e4eaf2;padding-left:15px}
.record-compact .compact-parent-panel .compact-subgroup-wide{grid-column:1/-1;border-left:0!important;border-top:1px solid #e4eaf2;margin-top:8px;padding:7px 0 0!important}
.record-compact .compact-parent-panel .field{grid-template-columns:95px minmax(0,1fr)}
.record-compact .compact-notes,.record-compact .compact-extra{padding:8px 15px;gap:8px 13px}
.record-compact .compact-strip-title{font-size:12px;line-height:1.5;flex:0 0 145px}
.record-compact .compact-notes .field,.record-compact .compact-extra .field{grid-template-columns:130px minmax(0,1fr)}
.record-compact .compact-bottom{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.75fr) auto;align-items:start;gap:8px 22px;padding:9px 15px}
.record-compact .compact-credits{display:flex;align-items:baseline;gap:10px;min-width:0}
.record-compact .compact-bottom-label{font-size:12px;line-height:1.6;color:#223f61}
.record-compact .compact-credits .compact-fields{display:flex;flex-wrap:wrap;column-gap:18px;row-gap:4px}
.record-compact .compact-credits .field{padding:0;display:inline-flex;align-items:baseline;gap:5px}
.record-compact .compact-credits .field dt,.record-compact .compact-credits .field dd{font-size:11.8px;line-height:1.55}
.record-compact .compact-book{display:inline-flex;align-items:baseline;min-width:0;gap:8px;flex-wrap:wrap}
.record-compact .compact-book dt{color:#59769e;white-space:nowrap}
.record-compact .compact-book dd{font-weight:700;white-space:normal}
.record-compact .compact-scan{font-size:11.5px;line-height:1.6;white-space:nowrap;justify-self:end}
.record-compact .compact-disclaimer{font-size:10px;line-height:1.5;padding:5px 15px 8px}
@media(max-width:960px){
 .record-compact .compact-bottom{grid-template-columns:1fr 1fr}
 .record-compact .compact-scan{grid-column:1/-1;justify-self:start}
 .record-compact .compact-parent-panel .compact-panel-body{grid-template-columns:1fr}
 .record-compact .compact-parent-panel .compact-subgroup+.compact-subgroup{border-left:0;border-top:1px solid #e4eaf2;padding:6px 0 0;margin-top:6px}
}
@media(max-width:760px){
 .record-compact .compact-record-header{padding:12px}
 .record-compact .compact-top{flex-wrap:wrap}
 .record-compact .compact-record-id{margin-left:0}
 .record-compact .compact-paired{grid-template-columns:1fr}
 .record-compact .compact-panel-body{padding:9px 12px}
 .record-compact .compact-notes,.record-compact .compact-extra{padding:9px 12px}
 .record-compact .compact-bottom{padding:9px 12px}
}
@media(max-width:500px){
 .record-compact .compact-bottom{grid-template-columns:1fr;gap:6px}
 .record-compact .compact-scan{grid-column:auto}
 .record-compact .compact-heading{gap:4px 9px}
 .record-compact .compact-metadata{column-gap:13px}
 .record-compact .field{grid-template-columns:108px minmax(0,1fr)}
 .record-compact .compact-parent-panel .field{grid-template-columns:105px minmax(0,1fr)}
}

/* Ostatnie dopracowanie v0.2.7: kolumny nowożeńców, szerokość równa banerowi. */
@media(min-width:761px){
 .record-compact{width:calc(100% + 48px);max-width:none;margin-left:-24px;margin-right:-24px}
 .record-compact .compact-person-panel .compact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px}
 .record-compact .compact-person-panel .field{grid-template-columns:120px minmax(0,1fr)}
 .record-compact .compact-person-panel .field[data-field$="_remarks"]{grid-column:1/-1}
}
@media(max-width:760px){
 .record-compact{width:calc(100% + 30px);max-width:none;margin-left:-15px;margin-right:-15px}
}
.record-compact .compact-book.field-locked{background:#fff7ef;border-left:2px solid #c87538;padding:2px 5px;border-radius:2px}

/* Geneo 2.0 v0.2.8 — trzy stonowane kolory źródła, bez publikowania kodu. */
.source-tone-1{--source-bg:#edf8ec;--source-row-bg:#eaf7e9;--source-hover:#d6eed7;--source-head:#deefdd;--source-border:#b3d8b4}
.source-tone-2{--source-bg:#fff9e2;--source-row-bg:#fff7d9;--source-hover:#ffecb0;--source-head:#fff0c4;--source-border:#ead7a2}
.source-tone-3{--source-bg:#fff0ef;--source-row-bg:#ffedeb;--source-hover:#f9d8d5;--source-head:#f8ddda;--source-border:#e6bab6}
.results tbody tr.result-row{cursor:pointer}
.results tbody tr.result-row.source-tone-1>td,
.results tbody tr.result-row.source-tone-2>td,
.results tbody tr.result-row.source-tone-3>td{background-color:var(--source-row-bg)}
.results tbody tr.result-row.source-tone-1:hover>td,
.results tbody tr.result-row.source-tone-2:hover>td,
.results tbody tr.result-row.source-tone-3:hover>td,
.results tbody tr.result-row.source-tone-1:focus-within>td,
.results tbody tr.result-row.source-tone-2:focus-within>td,
.results tbody tr.result-row.source-tone-3:focus-within>td{background-color:var(--source-hover)}
.results tbody tr.result-row:focus-within{outline:2px solid #245f9b;outline-offset:-2px}
.results .result-primary-link{color:inherit;text-decoration:none}
.results .result-primary-link:focus-visible{outline:2px solid #245f9b;outline-offset:3px;border-radius:2px}
.record-compact.source-tone-1,
.record-compact.source-tone-2,
.record-compact.source-tone-3{background-color:var(--source-bg);border-color:var(--source-border)}
.record-compact.source-tone-1 .compact-notes,
.record-compact.source-tone-2 .compact-notes,
.record-compact.source-tone-3 .compact-notes,
.record-compact.source-tone-1 .compact-extra,
.record-compact.source-tone-2 .compact-extra,
.record-compact.source-tone-3 .compact-extra,
.record-compact.source-tone-1 .compact-bottom,
.record-compact.source-tone-2 .compact-bottom,
.record-compact.source-tone-3 .compact-bottom{background-color:var(--source-bg)}
.record-compact.source-tone-1 .compact-panel-head,
.record-compact.source-tone-2 .compact-panel-head,
.record-compact.source-tone-3 .compact-panel-head{background-color:var(--source-head)}

/* v0.2.9: trzy niezależne zakładki wyników, bardzo zwarta tabela 10/11 kolumn. */
.record-tabs{display:flex;gap:6px;margin:8px 0 0;align-items:stretch;border-bottom:2px solid #bacce2;flex-wrap:wrap}
.record-tab{display:inline-flex;align-items:center;gap:9px;padding:10px 17px;border:1px solid #d5e0ed;border-radius:10px 10px 0 0;background:#eaf0f8;color:#39536f;font-weight:700;font-size:14px;text-decoration:none;min-height:42px}
.record-tab:hover{background:#f6f9fc;text-decoration:none}.record-tab.active{background:white;color:#183d69;border-bottom:2px solid white;margin-bottom:-2px}
.tab-count{display:inline-block;background:#dce7f4;border-radius:9px;padding:2px 7px;font-size:11px;font-variant-numeric:tabular-nums}
.record-tab.active .tab-count{background:#e7effa}
.result-tab-panel{border-top:0;border-radius:0 0 12px 12px;padding:11px 8px 16px}
.result-tab-panel .grouphead{padding:4px 8px 2px}.result-tab-panel .grouphead h2{font-size:17px}
.result-tab-panel .group-counts{font-size:11px;color:#586f87;margin:3px 8px 11px}
.results .geneo-results-table{table-layout:fixed;width:100%;font-size:11px;line-height:1.25;border-collapse:collapse}
.results .geneo-results-table thead th{font-size:10px;line-height:1.15;letter-spacing:0;text-transform:none;padding:6px 4px;vertical-align:bottom;word-break:normal;overflow-wrap:break-word}
.results .geneo-results-table th a{display:block;min-height:25px;color:#244b70;text-decoration:none}
.results .geneo-results-table th a:hover{text-decoration:underline}
.results .geneo-results-table tbody td{padding:7px 4px;vertical-align:top;overflow-wrap:anywhere;word-break:normal}
.results .geneo-results-table tbody td strong{font-weight:700}
.results .geneo-results-table .sort-indicator{color:#4d7198;font-size:10px;white-space:nowrap}
.results .geneo-results-table .result-person-line{display:block;min-height:1.5em;line-height:1.32}
.results .geneo-results-table .result-person-line + .result-person-line{margin-top:2px}
.results .geneo-results-table .no-value{visibility:hidden}
.results .geneo-results-table .number-cell{font-variant-numeric:tabular-nums;white-space:nowrap}
.results .geneo-results-table .deceased-dagger{font-size:1.32em}
.results .geneo-results-table .lock{font-size:10px;margin-left:1px;white-space:nowrap}
.results .results-births th.col-parish,.results .results-deaths th.col-parish{width:12%}
.results .results-births th.col-record,.results .results-deaths th.col-record{width:4.5%}
.results .results-births th.col-year,.results .results-deaths th.col-year{width:5.2%}
.results .results-births th.col-date,.results .results-deaths th.col-date{width:10.7%}
.results .results-births th.col-place,.results .results-deaths th.col-place{width:12.6%}
.results .results-births th.col-first_names{width:10.5%}
.results .results-births th.col-last_names{width:11%}
.results .results-births th.col-father_name{width:10%}
.results .results-births th.col-mother_name{width:10%}
.results .results-births th.col-mother_maiden_name{width:13.5%}
.results .results-deaths th.col-first_names{width:10%}
.results .results-deaths th.col-last_names{width:10.5%}
.results .results-deaths th.col-age{width:5.2%}
.results .results-deaths th.col-father_name{width:9%}
.results .results-deaths th.col-mother_name{width:9.5%}
.results .results-deaths th.col-mother_maiden_name{width:10.8%}
.results .results-weddings th.col-parish{width:10.5%}
.results .results-weddings th.col-record{width:4%}
.results .results-weddings th.col-year{width:4.8%}
.results .results-weddings th.col-date{width:9%}
.results .results-weddings th.col-place{width:10.5%}
.results .results-weddings th.col-first_names{width:11.3%}
.results .results-weddings th.col-last_names{width:10.2%}
.results .results-weddings th.col-bride_maiden_name{width:10.7%}
.results .results-weddings th.col-father_name{width:9.5%}
.results .results-weddings th.col-mother_name{width:9.5%}
.results .results-weddings th.col-mother_maiden_name{width:10%}
.results .result-row:focus{outline:2px solid #205998;outline-offset:-3px}
.results .actions{justify-content:space-between;align-items:center;flex-wrap:wrap;padding:0 8px;font-size:12px}
.results .pager{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pager-link{display:inline-block;border:1px solid #cbd8e7;border-radius:6px;padding:6px 10px;background:#f2f6fa}
@media(max-width:850px){.result-tab-panel .table-scroll{overflow-x:auto}.results .geneo-results-table{min-width:1000px}.results .results-weddings{min-width:1140px}}
@media(max-width:520px){.record-tab{padding:8px 9px;font-size:12px;gap:5px}.tab-count{font-size:10px}}

/* v0.2.10 — paginacja sterowana AJAX, bez odświeżania formularza wyszukiwania. */
.results-actions{display:flex;flex-direction:column;gap:12px;padding:12px 8px 3px;border-top:1px solid #dce5ef;margin-top:10px}
.paging-controls{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;width:100%}
.per-page-form,.page-jump-form{display:flex;align-items:center;gap:7px;white-space:nowrap;margin:0;font-size:12px}
.per-page-form select,.page-jump-form input{min-height:33px;border:1px solid #a7bfd9;border-radius:6px;background:#fff;color:#17334f;padding:5px 6px;font-size:12px}
.per-page-form select{width:64px}
.page-jump-form input{width:74px;text-align:center;font-variant-numeric:tabular-nums}
.page-jump-form button,.per-page-form button{border:1px solid #aac3df;background:#eaf2fb;color:#22496f;border-radius:6px;padding:6px 10px;min-height:33px;font-size:12px;cursor:pointer}
.page-jump-form button:hover,.per-page-form button:hover{background:#dceafb}
.paging-controls .pager{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.paging-controls .pager-link,.paging-controls .pager-disabled{min-height:33px;display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:6px;font-size:12px;text-decoration:none}
.paging-controls .pager-link{border:1px solid #bed1e5;background:#f0f5fc;color:#1e4f80}
.paging-controls .pager-link:hover{background:#daeafa}
.paging-controls .pager-disabled{border:1px solid #e0e8ef;color:#8c9caf;background:#f7f9fb;cursor:default}
.paging-controls .page-status{margin:0 6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.paging-summary{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#58708b;font-size:11px}
.js-enabled .apply-page-size{display:none}
#result-content[aria-busy="true"]{opacity:.65;transition:opacity .12s}
#result-content .results{margin-top:0}
@media(max-width:760px){.paging-controls{align-items:flex-start;justify-content:flex-start}.paging-controls .pager{order:3;width:100%}.paging-summary{gap:6px}}

/* Geneo 2.0 v0.2.11 — osobne przełączniki „Dokładnie” dla imion i nazwisk. */
.search-form .name-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.search-form .main-name-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:740px}
.search-form .name-filter{display:flex;flex-direction:column;min-width:0;gap:5px}
.search-form .name-filter>label:first-child{font-size:13px;font-weight:650;line-height:1.3}
.search-form .name-filter>input{width:100%}
.search-form .exact-toggle{display:inline-flex;flex-direction:row;align-items:center;align-self:flex-start;gap:6px;margin:1px 0 0;font-size:12px;font-weight:500;color:#53657a;cursor:pointer;user-select:none;line-height:1.4}
.search-form .exact-toggle input{width:15px;height:15px;margin:0;padding:0;accent-color:#1e5b97;cursor:pointer}
@media(max-width:760px){.search-form .name-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:470px){.search-form .name-grid,.search-form .main-name-grid{grid-template-columns:1fr}}

/* Geneo 2.0 v0.2.12 — wybór wielu parafii + skok do wyników. */
#wyniki{scroll-margin-top:10px}
.parish-filter{min-width:0}
.parish-filter>label{display:block;margin-bottom:5px;font-size:13px;font-weight:650}
.parish-picker{position:relative;min-width:0;font-size:13px}
.parish-picker summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:10px 12px;background:#fff;border:1px solid #c7d3df;border-radius:8px;cursor:pointer;color:#1b2c40;list-style:none}
.parish-picker summary::-webkit-details-marker{display:none}
.parish-picker summary:focus-visible{outline:2px solid #8cb4e6;outline-offset:2px}
.parish-picker[open] summary{border-radius:8px 8px 0 0;border-color:#8cb4e6}
.parish-chevron{font-size:15px;color:#59769e}
.parish-dropdown{position:absolute;z-index:30;top:100%;left:0;right:0;min-width:240px;padding:12px;background:white;border:1px solid #8cb4e6;border-top:0;box-shadow:0 12px 26px #13263c25;border-radius:0 0 10px 10px}
.parish-dropdown>label{font-weight:600;font-size:12px}
.parish-dropdown input[type=search]{font-size:13px;padding:9px 11px;margin:5px 0 9px}
.parish-options{overflow-y:auto;max-height:225px;border:1px solid #e2e9f0;border-radius:6px;padding:3px;background:#fcfdff}
.parish-option{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;padding:7px 8px;border-radius:4px;cursor:pointer;font-size:13px!important;font-weight:400!important}
.parish-option:nth-child(even){background:#f5f8fc}
.parish-option:hover,.parish-option:focus-within{background:#e9f3fe}
.parish-option input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;padding:0;margin:0;accent-color:#1e5b97}
.parish-help,.parish-empty{margin:9px 0 0;font-size:11.5px;line-height:1.35;color:#637a95}
.parish-empty{color:#9b501a}
@media(max-width:500px){.parish-dropdown{min-width:0}}

.parish-option[hidden]{display:none!important}
.parish-selected{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Geneo 2.0 v0.2.13 — dynamiczna lista miejscowości z checkboxami. */
.place-picker{position:relative;min-width:0}
.place-picker>label{display:block;margin-bottom:5px;font-size:13px;font-weight:650}
.place-picker>input{width:100%}
.place-suggestions{position:absolute;z-index:35;left:0;right:0;top:69px;min-width:280px;padding:8px;background:#fff;border:1px solid #8cb4e6;border-radius:8px;box-shadow:0 12px 25px #13263c28}
.place-suggestions[hidden]{display:none!important}
.place-status{font-size:12px;line-height:1.35;color:#60748d;margin:0 0 7px}
.place-options{max-height:265px;overflow-y:auto}
.place-option{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;padding:7px 8px;border-radius:5px;cursor:pointer;font-size:12.5px!important;font-weight:450!important}
.place-option:nth-child(even){background:#f6f9fd}
.place-option:hover,.place-option:focus-within{background:#eaf3fc}
.place-option input{width:16px;height:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#245f9c}
.place-option small{font-size:11px;color:#6a7d91;margin-left:auto;text-align:right}
.place-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.place-chips:empty{display:none}
.place-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 5px 3px 9px;border:1px solid #b5cee9;background:#edf4fc;border-radius:18px;font-size:12px;color:#214e7a;max-width:100%}
.place-chip small{font-size:11px;color:#5d7390}
.place-chip-remove{font-size:17px;line-height:1;border:0;padding:0 5px;background:transparent;color:#526c89;cursor:pointer}
.place-chip-remove:hover{color:#a62e27}
.place-help{font-size:11.5px;color:#60748d;margin:6px 0 0;line-height:1.4}
@media(max-width:500px){.place-suggestions{min-width:0}.place-option{flex-wrap:wrap}.place-option small{width:100%;margin-left:23px;text-align:left}}

/* v0.2.14 — locale control and invalid search text. */
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 7px; }
.lang-choice { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 29px; border-radius: 5px; border: 1px solid transparent; text-decoration: none; font-size: 22px; line-height: 1; opacity: .72; }
.lang-choice.is-active { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); opacity: 1; }
.lang-choice:hover, .lang-choice:focus-visible { opacity: 1; outline-offset: 2px; }
.search-form .input-invalid { border-color: #ac2929 !important; background: #fff2f2 !important; }
.search-validation-error { display: inline-block; color: #8e2424; font-size: .85rem; padding: 5px 0; }
.search-validation-error[hidden] { display: none; }
.search-form button[type="submit"]:disabled { cursor: not-allowed; opacity: .48; }
@media(max-width:640px){ .top-actions { gap: 8px; } .top-actions .env { font-size: 9px; } }

/* v0.2.15 — rozmieszczenie filtrów: parafie / lata w pierwszym rzędzie,
   miejscowość pod parafią. Zachowujemy prosty układ na urządzeniach mobilnych. */
@media(min-width:761px){
  .location-year-grid .parish-filter{grid-column:1;grid-row:1}
  .location-year-grid .place-picker{grid-column:1;grid-row:2}
  .location-year-grid .year-from-field{grid-column:2;grid-row:1}
  .location-year-grid .year-to-field{grid-column:3;grid-row:1}
}

/* v0.2.16: formularz, układ bez ingerencji w logikę kryteriów.
   Lewa kolumna Miejsce i czas; prawa: ojciec -> matka -> małżonek. */
.search-form .advanced-criteria-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;margin:17px 0 18px;align-items:start}
.search-form .advanced-criteria-layout>section{min-width:0}
.search-form .advanced-criteria-layout h3{margin:0 0 13px;font-size:17px;color:#344f6c;font-weight:700}
.search-form .advanced-geography .place-picker{margin-top:15px}
.search-form .advanced-years{display:grid;grid-template-columns:repeat(2,minmax(0,145px));gap:13px;margin-top:18px}
.search-form .advanced-years label{min-width:0}
.search-form .advanced-years input{width:100%;max-width:185px}
.search-form .advanced-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 15px;margin:0}
.search-form .advanced-family-grid .name-filter{min-width:0}
@media(max-width:870px){
  .search-form .advanced-criteria-layout{grid-template-columns:1fr;gap:22px}
  .search-form .advanced-years{max-width:380px}
}
@media(max-width:480px){
  .search-form .advanced-family-grid{grid-template-columns:1fr}
}

/* v0.2.16: typografia szczegółów metryki zwiększona dokładnie o ok. 1 pt
   (1 punkt typograficzny = 1.333 px przy 96 dpi).
   Bez zmian kolorów, struktury i kolejności pól. */
.record-compact .compact-heading h1{font-size:clamp(21.333px,calc(1.95vw + 1.333px),25.333px)}
.record-compact .record-kind{font-size:13.333px}
.record-compact .compact-record-id{font-size:12.333px}
.record-compact .compact-meta-field{font-size:13.333px}
.record-compact .compact-audit{font-size:12.333px}
.record-compact .compact-audit-details{font-size:12.333px}
.record-compact .record-section-head.compact-panel-head{font-size:13.633px}
.record-compact .compact-subhead{font-size:13.333px}
.record-compact .field dt{font-size:13.033px}
.record-compact .field dd{font-size:14.533px}
.record-compact .field-note{font-size:10.733px}
.record-compact .lookup-note{font-size:11.033px}
.record-compact .compact-strip-title{font-size:13.333px}
.record-compact .compact-bottom-label{font-size:13.333px}
.record-compact .compact-credits .field dt,
.record-compact .compact-credits .field dd{font-size:13.133px}
.record-compact .compact-scan{font-size:12.833px}
.record-compact .compact-disclaimer{font-size:11.333px}
.record-compact .compact-parent-panel .field{grid-template-columns:108px minmax(0,1fr)}
@media(max-width:500px){
  .record-compact .compact-parent-panel .field{grid-template-columns:108px minmax(0,1fr)}
}


/* v0.2.17 — wizualne grupowanie pól, estetyczne lata i wyrównanie w kartach. */
.search-form .criteria-card{background:#f3ece6;border:1px solid #e5d6c8;border-radius:18px;padding:14px 16px 15px}
.search-form .name-card{max-width:1040px;margin-bottom:16px}
.search-form .name-card .main-name-grid{max-width:none;margin-bottom:0}
.search-form .advanced-criteria-layout>section,
.search-form .advanced-other{background:#f3ece6;border:1px solid #e5d6c8;border-radius:18px;padding:14px 16px 15px}
.search-form .advanced-criteria-layout h3,
.search-form .advanced-other h3{margin:0 0 12px;font-size:17px;color:#344f6c;font-weight:700}
.search-form .advanced-criteria-layout{margin:17px 0 12px}
.search-form .advanced-location .advanced-geography{display:block}
.search-form .advanced-location .place-picker{margin-top:14px}
.search-form .advanced-years{display:grid;grid-template-columns:repeat(2,minmax(0,172px));justify-content:space-between;gap:18px;margin-top:18px}
.search-form .advanced-years label{min-width:0}
.search-form .advanced-years input{width:100%;max-width:none}
.search-form .advanced-other{margin-top:10px}
.search-form .other-grid{margin-bottom:0}
@media(max-width:870px){
  .search-form .name-card{max-width:none}
  .search-form .advanced-years{max-width:380px;justify-content:flex-start}
}
@media(max-width:560px){
  .search-form .criteria-card,
  .search-form .advanced-criteria-layout>section,
  .search-form .advanced-other{padding:12px 12px 13px;border-radius:14px}
  .search-form .advanced-years{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:none}
}

/* v0.2.17 — wyrównanie wartości w urodzeniach i ślubach do stałych linii w panelach. */
@media(min-width:761px){
  .record-compact.record-type-births .compact-panel-left .field,
  .record-compact.record-type-weddings .compact-panel-left .field,
  .record-compact.record-type-births .compact-notes .field,
  .record-compact.record-type-weddings .compact-notes .field,
  .record-compact.record-type-births .compact-extra .field,
  .record-compact.record-type-weddings .compact-extra .field{grid-template-columns:110px minmax(0,1fr)}

  .record-compact.record-type-births .compact-panel-right .field,
  .record-compact.record-type-weddings .compact-panel-right .field{grid-template-columns:110px minmax(0,1fr)}

  .record-compact.record-type-births .compact-parent-panel .field,
  .record-compact.record-type-weddings .compact-parent-panel .field{grid-template-columns:110px minmax(0,1fr)}

  .record-compact.record-type-births .compact-person-panel .field,
  .record-compact.record-type-weddings .compact-person-panel .field{grid-template-columns:110px minmax(0,1fr)}
}


/* v0.2.18 — top name box aligns with the right edge of the other criteria. */
.search-form .name-card{width:100%;max-width:none}
/* v0.3.0 — small additions, existing layout and search styles unchanged */
.g2-auth-panel{max-width:520px;margin:2rem auto;padding:1.6rem}
.g2-auth-panel form{display:grid;gap:1rem;margin-top:1rem}
.g2-auth-panel label{display:grid;gap:.35rem}
.g2-auth-panel input,.g2-auth-panel select{max-width:100%;padding:.6rem;border:1px solid #afb9c5;border-radius:5px}
.g2-auth-panel button{cursor:pointer;padding:.7rem 1rem}
.g2-auth-error{border-left:4px solid #b20f25;padding:.7rem;color:#b20f25}
.g2-auth-nav{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;font-size:.85rem}
.g2-auth-nav a{color:inherit;text-decoration:underline}

/* v0.3.0.4: clear navigation from the role/account screen. */
.g2-auth-home{display:block;text-align:center;background:#1e5b97;color:white;font-weight:650;padding:.8rem 1rem;border-radius:8px;margin:1.2rem 0;text-decoration:none}
.g2-auth-home:hover,.g2-auth-home:focus-visible{background:#174777;color:white;text-decoration:underline}

/* v0.3.1.1 — independent role/permission administration, search UI unchanged. */
.g2-roles-page{padding:22px 24px;margin:22px 0;max-width:100%}
.g2-roles-title{display:flex;justify-content:space-between;align-items:start;gap:20px;flex-wrap:wrap}
.g2-roles-title h1{margin:0 0 8px}
.g2-roles-title p{max-width:900px;margin:0 0 18px}
.g2-role-guide{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 10px;font-size:.9rem}
.g2-role-guide b{font-weight:700;color:#254f7b}
.g2-role-note{font-size:.87rem;line-height:1.55;color:#475569;margin-bottom:16px}
.g2-role-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #cad5e3;border-radius:9px}
.g2-role-matrix{border-collapse:separate;border-spacing:0;width:100%;min-width:930px;font-size:.9rem}
.g2-role-matrix th,.g2-role-matrix td{padding:10px 9px;border-right:1px solid #e3eaf2;border-bottom:1px solid #dce5ed;text-align:center;white-space:nowrap;vertical-align:middle}
.g2-role-matrix thead th{background:#e8f0f8;color:#1a395e;font-weight:700;position:sticky;top:0;z-index:1}
.g2-role-matrix .g2-role-sticky{position:sticky;left:0;z-index:2;text-align:left;background:#fff;min-width:158px;max-width:215px}
.g2-role-matrix thead .g2-role-sticky{z-index:3;background:#e8f0f8}
.g2-role-matrix tbody tr:nth-child(even) .g2-role-sticky{background:#f4f8fc}
.g2-role-matrix tbody tr:nth-child(even){background:#f4f8fc}
.g2-role-matrix tbody tr:hover,.g2-role-matrix tbody tr:hover .g2-role-sticky{background:#eaf4ff}
.g2-role-matrix th small{display:block;color:#62758a;font-weight:400;margin-top:3px}
.g2-role-perm-col{min-width:69px}
.g2-role-perm-col abbr{text-decoration:underline dotted;text-underline-offset:3px;cursor:help}
.g2-role-perm-col abbr:focus-visible{outline:2px solid #176aaa;outline-offset:4px}
.g2-role-cell{position:relative}
.g2-role-cell input[type=checkbox]{width:19px;height:19px;accent-color:#24639b;cursor:pointer}
.g2-role-cell input[type=checkbox]:disabled{cursor:not-allowed}
.g2-role-inherited-mark{font-weight:800;color:#607f9c;font-size:14px;margin-right:3px}
.g2-role-locked-mark{font-size:11px;position:absolute;right:1px;top:2px}
.g2-role-save button,.g2-role-create-form button{border:0;border-radius:6px;padding:8px 13px;background:#1f609e;color:#fff;font-weight:700;cursor:pointer}
.g2-role-save button:hover,.g2-role-create-form button:hover{background:#164b80}
.g2-role-notice{border-left:4px solid #367d5a;background:#ecf8f0;padding:10px 13px}
.g2-create-role{margin-top:26px;padding:18px;background:#f5f8fc;border:1px solid #d9e3ef;border-radius:9px}
.g2-create-role h2{margin:0 0 8px;font-size:1.3rem}
.g2-role-create-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:15px;align-items:end}
.g2-role-create-form label{display:flex;flex-direction:column;gap:5px;font-weight:600;font-size:.87rem}
.g2-role-create-form input:not([type=checkbox]),.g2-role-create-form select{padding:8px;border:1px solid #adbcd0;border-radius:5px;width:100%;min-width:0}
.g2-role-create-form .g2-role-mfa-label{flex-direction:row;align-items:center;align-self:center}
.g2-role-back{margin-top:18px}
@media (max-width:640px){.g2-roles-page{padding:15px 10px}.g2-role-matrix{font-size:.83rem}}


/* Geneo 2.0 v0.3.1.2 — administration UI; search styles unchanged. */
.g2-users-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;padding:15px 0}
.g2-users-filters label{display:grid;gap:5px;font-weight:600;font-size:.86rem}
.g2-users-filters input,.g2-users-filters select{padding:8px;border:1px solid #a8bacd;border-radius:6px;min-width:170px;max-width:260px}
.g2-users-filters button,.g2-user-action{padding:8px 10px;border:0;background:#225e97;color:white;border-radius:6px;font-weight:650;cursor:pointer}
.g2-user-action:disabled{background:#a9b4c0;cursor:not-allowed}
.g2-users-matrix .g2-role-sticky{min-width:225px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.g2-users-matrix td{white-space:normal;text-align:left;min-width:120px}
.g2-users-matrix form{margin:0}
.g2-users-matrix details{position:relative;min-width:145px}
.g2-users-matrix details>summary{cursor:pointer;color:#235c94;text-decoration:underline dotted}
.g2-user-role-col details form{min-width:190px;display:grid;gap:5px;padding:10px;background:#f3f7fb;border:1px solid #cfdeec;border-radius:7px}
.g2-user-role-col label{display:flex;gap:7px;align-items:center;font-size:.8rem}
.g2-user-control-form{display:grid;gap:7px}
.g2-user-control-form input[type=date]{max-width:165px;padding:5px;border:1px solid #b1c0d2;border-radius:5px}
.g2-users-matrix button{font-size:.79rem;white-space:nowrap}
.g2-user-warning{color:#a22232;font-size:.78rem}
.g2-user-muted{color:#64748b}
.g2-user-pagination{display:flex;gap:24px;justify-content:center;align-items:center;margin:18px}
.g2-user-count{font-size:.86rem;color:#4d627b}
.g2-role-users-cell{text-align:left!important;min-width:160px}
.g2-role-users-cell summary{cursor:pointer;color:#235b8f;font-weight:650}
.g2-role-users-cell ul{list-style:none;padding:6px 0;margin:5px 0;max-height:220px;overflow-y:auto;min-width:185px}
.g2-role-users-cell li{padding:4px 0;font-size:.78rem;overflow-wrap:anywhere;white-space:normal}
.g2-user-permissions-matrix{min-width:1100px}
.g2-user-perm-cell select{font-size:.73rem;max-width:128px;padding:5px;border:1px solid #a7b8c9;background:white;border-radius:4px}
.g2-user-perm-cell select:disabled{background:#f2f4f6}
@media(max-width:600px){.g2-users-matrix .g2-role-sticky{min-width:155px}.g2-users-filters{display:grid}.g2-users-filters input,.g2-users-filters select{max-width:100%}}

/* Geneo 2.0 v0.3.2.1 — original field values in the privileged privacy editor. */
.g2-privacy-editor{padding:22px 26px;max-width:1240px;margin:16px auto}
.g2-privacy-editor h1{margin-top:12px}
.g2-privacy-error{color:#9b1818}
.g2-privacy-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #dbe4ee;border-radius:8px}
.g2-privacy-table{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse}
.g2-privacy-col-name{width:25%}
.g2-privacy-col-value{width:45%}
.g2-privacy-col-block{width:13%}
.g2-privacy-col-action{width:17%}
.g2-privacy-table th,.g2-privacy-table td{padding:11px 13px;vertical-align:top;border-bottom:1px solid #e3eaf2}
.g2-privacy-table tbody th{text-align:left;font-weight:600;overflow-wrap:anywhere;white-space:normal}
.g2-privacy-table tbody th small{font-size:.75em;color:#66788d;font-weight:400}
.g2-privacy-table .g2-privacy-value{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.5;text-align:left}
.g2-privacy-table .g2-privacy-state{text-align:center}
.g2-privacy-table .g2-privacy-action{text-align:left}
.g2-privacy-table .g2-privacy-action form{margin:0}
.g2-privacy-table .g2-privacy-action button{white-space:nowrap}
.g2-privacy-empty,.g2-privacy-entire{color:#61758a;font-style:italic}
@media(max-width:760px){.g2-privacy-editor{padding:15px 12px}.g2-privacy-table th,.g2-privacy-table td{padding:8px 10px}}

/* v0.3.3 — distinguish automatic vs. manual protection; long text remains readable. */
.g2-privacy-col-name{width:23%}
.g2-privacy-col-value{width:43%}
.g2-privacy-col-block{width:19%}
.g2-privacy-col-action{width:15%}
.g2-privacy-table .g2-privacy-state{white-space:normal;font-size:.86rem;line-height:1.35;color:#7b3e12;font-weight:650}

/* v0.4.1 JZI brand: header and actionable buttons. Keep destructive/disabled
   and neutral controls visually distinct; no changes to authorization. */
.top .g2-auth-nav a { color: #fff; }
.top .g2-auth-nav a:focus-visible, .top .g2-auth-nav a:hover { text-decoration: underline; }
button:hover:not(:disabled):not(.mode-tab):not(.place-chip-remove) {
  background-color: var(--geneo-brand-hover);
}
button:active:not(:disabled):not(.mode-tab):not(.place-chip-remove) {
  background-color: var(--geneo-brand-active);
}
button:focus-visible, .g2-auth-home:focus-visible {
  outline: 3px solid #ffca7e;
  outline-offset: 2px;
}
.page-jump-form button,.per-page-form button,
.g2-role-save button,.g2-role-create-form button,
.g2-users-filters button,.g2-user-action {
  background: var(--geneo-brand);
  color: #fff;
  border-color: var(--geneo-brand);
}
.page-jump-form button:hover,.per-page-form button:hover,
.g2-role-save button:hover,.g2-role-create-form button:hover {
  background: var(--geneo-brand-hover);
  color: #fff;
}
.g2-auth-home { background: var(--geneo-brand); color: #fff; }
.g2-auth-home:hover,.g2-auth-home:focus-visible {
  background: var(--geneo-brand-hover); color: #fff;
}
/* Mode tabs are buttons as well: active state remains clearly distinct. */
.mode-tab,.mode-tab:hover { background:var(--geneo-brand); color:#fff; }
.mode-tab.is-active,.mode-tab.is-active:hover { background:var(--geneo-brand-active); color:#fff;
  border-bottom-color:#ffca7e; }
.place-chip-remove:hover { background:transparent; }
.g2-user-action:disabled { background:#a9b4c0; border-color:#a9b4c0; }

.geneo-brand{display:block;width:220px;max-width:40vw;height:auto}.top .logo{display:block}.count-retry{margin-left:.4rem}@media(max-width:600px){.geneo-brand{width:160px;max-width:42vw}}

.geneo-brand{background:#fff;border-radius:4px;padding:4px 8px}@media(max-width:640px){.top-inner{flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.top-actions{flex-wrap:wrap;gap:8px}.geneo-brand{width:160px}}
