.rg-page { --rg-rail: 256px; }
.rg-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 14px; }
.rg-head-text { flex: 1 1 320px; min-width: 0; }
.rg-head h1 { margin: 0; font-size: 22px; font-weight: 650; line-height: 30px; letter-spacing: -.015em; color: var(--text); }
.rg-head-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--text-3); }
.rg-head-sub > span { white-space: nowrap; }
.rg-head-sub b { color: var(--text-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.rg-dot-sep { width: 3px; height: 3px; flex: none; border-radius: 50%; background: var(--border-strong); }
.rg-head-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 1 auto; margin-inline-start: auto; }
.rg-split { border-inline-start: 1px solid rgba(255, 255, 255, .25); }

.rg-views { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.rg-views-scroll { --fs: 0px; --fe: 0px; flex: 1 1 auto; display: flex; align-items: center; gap: 22px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent); }
.rg-views-scroll:dir(rtl) { -webkit-mask-image: linear-gradient(to left, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent); mask-image: linear-gradient(to left, transparent, #000 var(--fs), #000 calc(100% - var(--fe)), transparent); }
.rg-views-scroll.fade-start { --fs: 36px; }
.rg-views-scroll.fade-end { --fe: 36px; }
.rg-views-scroll::-webkit-scrollbar { display: none; }
.rg-view { position: relative; display: inline-flex; align-items: center; flex: none; gap: 6px; height: 40px; padding: 0 1px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--text-3); white-space: nowrap; text-decoration: none; cursor: pointer; transition: color .12s, border-color .12s; }
.rg-view .i { color: currentColor; opacity: .75; }
.rg-view:hover { color: var(--text); }
.rg-view.on { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.rg-view-n { min-width: 22px; height: 18px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-3); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
.rg-view.on .rg-view-n { background: var(--surface-3); color: var(--text); }
.rg-views-menu { flex: none; padding-inline-start: 12px; border-inline-start: 1px solid var(--border-soft); }
.rg-views-menu .rg-view { color: var(--text-2); }
.rg-views-menu .rg-view .i:last-child { opacity: .6; }

.rg-layout { display: grid; grid-template-columns: var(--rg-rail) minmax(0, 1fr); gap: 16px; align-items: start; }
.rg-layout.rail-closed { grid-template-columns: minmax(0, 1fr); }
.rg-main { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: clip; container-type: inline-size; container-name: rg; }

.rl { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: var(--rg-fit, calc(100vh - var(--topbar-h) - 32px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rg-layout.rail-closed .rl { display: none; }
.rl-head { display: flex; align-items: center; gap: 10px; padding-block: 0; padding-inline: 14px 10px; height: 46px; border-bottom: 1px solid var(--border); background: var(--head-bg); flex: none; }
.rl-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; color: var(--text); }
.rl-title .i { color: var(--text-3); }
.rl-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--text); color: var(--surface); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.rl-reset { margin-inline-start: auto; padding: 4px 4px; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.rl-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.rl-close { display: none; margin-inline-start: auto; }
.rl-reset + .rl-close { margin-inline-start: 4px; }
.rl-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 6px; scrollbar-width: thin; }
.rl-sec { padding: 12px 14px 14px; border-bottom: 1px solid var(--border-soft); }
.rl-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.rl-clear { margin-inline-start: auto; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--primary); cursor: pointer; }

.rl-gender { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rl-gender label { position: relative; min-width: 0; cursor: pointer; }
.rl-gender label + label { border-inline-start: 1px solid var(--border); }
.rl-gender input { position: absolute; opacity: 0; pointer-events: none; }
.rl-gender span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 54px; padding: 4px 2px; color: var(--text-3); background: var(--surface); transition: background .12s, color .12s; }
.rl-gender span:hover { background: var(--surface-2); color: var(--text); }
.rl-gender b { font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rl-gender em { font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.1; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rl-gi { width: 20px; height: 20px; flex: none; }
svg.rl-gi { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rl-gi.all { display: inline-flex; align-items: center; justify-content: center; }
.rl-gi.all .i { width: 19px; height: 19px; }
.rl-gender input:checked + span { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.rl-gender input:checked + span em { color: var(--text-2); }
.rl-gender input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--primary-ring); }

.rl-age-out { display: flex; align-items: center; }
.rl-age-out span { min-width: 46px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.rl-age-out i { flex: 1; height: 1px; margin: 0 8px; background: var(--border); }
.rl-age-track { position: relative; height: 26px; margin-top: 6px; }
.rl-age-track::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--surface-3); }
.rl-age-fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--primary); }
.rl-age-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 26px; margin: 0; padding: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.rl-age-track input[type="range"]:focus { outline: none; }
.rl-age-track input[type="range"]::-webkit-slider-runnable-track { height: 26px; background: transparent; border: 0; }
.rl-age-track input[type="range"]::-moz-range-track { height: 26px; background: transparent; border: 0; }
.rl-age-track input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); box-shadow: 0 1px 2px rgba(17, 19, 24, .2); cursor: grab; }
.rl-age-track input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); cursor: grab; }
.rl-age-track input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--primary-ring); }
.rl-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.rl-preset { height: 24px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 550; color: var(--text-2); font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.rl-preset:hover { border-color: var(--border-strong); color: var(--text); }
.rl-preset.on { background: var(--text); border-color: var(--text); color: var(--surface); }

.rl-values { display: flex; flex-direction: column; }
.rl-opt { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 3px 6px; margin: 0 -6px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background .1s; }
.rl-opt:hover { background: var(--surface-2); color: var(--text); }
.rl-opt input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--primary); cursor: pointer; }
.rl-opt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; text-align: start; }
.rl:dir(ltr) :is(.rl-opt-label, .rl-facet-sel) { text-align: left; }
.rl:dir(rtl) :is(.rl-opt-label, .rl-facet-sel) { text-align: right; }
.rl-n { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rl-opt:has(input:checked) { color: var(--text); font-weight: 600; }
.rl-opt:has(input:checked) .rl-n { color: var(--text-2); }
.rl-opt-none .rl-opt-label { color: var(--text-3); }
.rl-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--gray); }
.rl-dot.tone-green { background: var(--green); }
.rl-dot.tone-blue { background: var(--blue); }
.rl-dot.tone-violet { background: var(--violet); }
.rl-dot.tone-rose { background: var(--rose); }
.rl-dot.tone-amber { background: var(--amber); }
.rl-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px 0; border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--primary); cursor: pointer; }
.rl-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.rl-more .rl-n { color: inherit; opacity: .7; margin: 0; }
.rl-more.is-loading { opacity: .5; pointer-events: none; }
.rl-find { position: relative; display: block; margin: 2px 0 6px; }
.rl-find .i { position: absolute; inset-inline-start: 9px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.rl-find input { width: 100%; height: 30px; padding: 0 9px; padding-inline-start: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 13px; color: var(--text); }
.rl-find input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

.rl-group { padding: 4px 0; border-bottom: 1px solid var(--border-soft); }
.rl-group:last-child { border-bottom: 0; }
.rl-group-title { display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.rl-group-title .i { color: var(--text-3); }
.rl-group-title:dir(rtl) { letter-spacing: 0; text-transform: none; font-size: 12px; }
.rl-facet > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; padding: 8px 14px; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.rl-facet > summary::-webkit-details-marker { display: none; }
.rl-facet > summary:hover { background: var(--surface-2); }
.rl-facet-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-facet-total { font-size: 11.5px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rl-facet-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--text); color: var(--surface); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rl-chev { color: var(--text-3); transition: transform .15s var(--ease); }
.rl-facet[open] > summary .rl-chev { transform: rotate(180deg); }
.rl-facet-sel { grid-column: 1 / -1; margin-top: 2px; font-size: 12px; font-weight: 550; color: var(--primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.rl-facet[open] .rl-facet-sel { display: none; }
.rl-facet-body { padding: 0 14px 10px; }
.rl-facet-body:empty { display: block; height: 70px; margin: 0 14px 10px; padding: 0; background: linear-gradient(var(--surface-3) 0 0) 0 4px / 70% 12px no-repeat, linear-gradient(var(--surface-3) 0 0) 0 28px / 55% 12px no-repeat, linear-gradient(var(--surface-3) 0 0) 0 52px / 62% 12px no-repeat; }
.rl-dates { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; padding: 8px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.rl-dates-label { font-size: 12px; font-weight: 600; color: var(--text-3); }
.rl-dates-row { display: flex; align-items: center; gap: 6px; }
.rl-dates-row .input { flex: 1; min-width: 0; height: 30px; padding: 0 6px; font-size: 12.5px; }
.rl-dates-row i { width: 8px; height: 1px; flex: none; background: var(--border-strong); }
.rl-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.rl-foot { display: none; }

.rg-toolbar { --rg-ctl: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.rg-toolbar .btn, .rg-toolbar .btn-sm { height: var(--rg-ctl); }
.rg-rail-btn { display: inline-flex; flex: none; }
.rg-rail-btn .rl-badge { margin-inline-start: 1px; }
.rg-layout:not(.rail-closed) .rg-rail-btn { background: var(--surface-3); border-color: var(--border-strong); }
.rg-search { position: relative; flex: 1 1 240px; min-width: 180px; display: flex; align-items: center; }
.rg-search .i { position: absolute; inset-inline-start: 11px; color: var(--text-3); pointer-events: none; }
.rg-search input { width: 100%; height: var(--rg-ctl); padding: 0 10px; padding-inline-start: 34px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; font-size: 14px; color: var(--text); text-overflow: ellipsis; transition: border-color .12s, box-shadow .12s; }
html[dir="ltr"] .rg-search input { padding-left: 34px; padding-right: 10px; }
html[dir="rtl"] .rg-search input { padding-right: 34px; padding-left: 10px; }
html[dir="rtl"] .rg-search input:placeholder-shown, .rg-search-rtl input:placeholder-shown { direction: rtl; }
.rg-search input::placeholder { color: var(--text-3); }
.rg-search input:hover { border-color: color-mix(in srgb, var(--border-strong) 70%, var(--text-3)); }
.rg-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.rg-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; min-width: 0; }
.rg-count { padding-inline: 2px 4px; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.rg-count strong { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.rg-sort-select { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.rg-sort-select .i { position: absolute; inset-inline-start: 10px; color: var(--text-3); pointer-events: none; }
.rg-sort-select .select { height: var(--rg-ctl); width: auto; max-width: 220px; padding-inline-start: 30px; font-size: 13px; font-weight: 550; text-overflow: ellipsis; }
.rg-tools .dropdown > .btn { padding-inline: 11px; }
@container rg (max-width: 700px) {
  .rg-search { order: -1; flex-basis: 100%; }
}
@container rg (max-width: 520px) {
  .rg-toolbar { padding: 10px; }
  .rg-count, .rg-tools .rg-hide-sm { display: none; }
  .rg-tools { flex: 1 1 0; justify-content: flex-end; }
  .rg-sort-select { flex: 0 1 auto; }
  .rg-sort-select .select { width: 100%; min-width: 0; max-width: 180px; }
}
.rg-display .rg-density { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 2px 8px 8px; }
.rg-density button { height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 550; color: var(--text-2); cursor: pointer; }
.rg-density button.on { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); font-weight: 650; }
.rg-display .menu-item input { accent-color: var(--primary); }

.rg-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rg-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 9px 3px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text-2); max-width: 100%; }
.rg-chip-k { color: var(--text-3); }
.rg-chip strong { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rg-chip a { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--radius-sm); color: var(--text-3); flex: none; }
.rg-chip a:hover { background: var(--surface-3); color: var(--text); }
.rg-chips-clear { margin-inline-start: 4px; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.rg-chips-clear:hover { text-decoration: underline; text-underline-offset: 3px; }

.rg-wrap { overflow: auto; max-height: max(360px, calc(100vh - var(--topbar-h) - 112px)); overscroll-behavior-x: contain; scrollbar-width: thin; }
.rg { width: max(100%, var(--rg-min, 1100px)); table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.rg th { position: sticky; top: 0; z-index: 3; height: 38px; padding: 0 12px; background: var(--head-bg); border-bottom: 1px solid var(--border-strong); text-align: start; font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-sort { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; color: inherit; text-decoration: none; }
.rg-sort .i { width: 12px; height: 12px; opacity: .4; transition: opacity .12s; }
.rg-sort:hover { color: var(--text); }
.rg-sort:hover .i { opacity: .8; }
.rg-sort.on { color: var(--text); }
.rg-sort.on .i { opacity: 1; color: var(--text); }
.rg td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface); transition: background .1s; }
.rg tbody tr { cursor: pointer; }
.rg tbody tr:hover td { background: var(--surface-2); }
.rg tbody tr:last-child td { border-bottom: 0; }
.rg tbody tr.is-selected td { background: var(--primary-soft); }
.rg tbody tr.is-archived .rg-person { color: var(--text-3); }
.rg b { font-weight: 550; color: var(--text); }
.rg .c-check { position: sticky; inset-inline-start: 0; z-index: 2; padding: 0; text-align: center; }
.rg th.c-check { z-index: 4; }
.rg .c-name { position: sticky; inset-inline-start: 0; z-index: 2; white-space: normal; }
.rg.has-check .c-name { inset-inline-start: 40px; }
.rg th.c-name { z-index: 4; }
.rg-wrap:dir(rtl) .rg .c-name { box-shadow: inset 1px 0 0 var(--border); }
.rg-wrap:dir(ltr) .rg .c-name { box-shadow: inset -1px 0 0 var(--border); }
.rg .c-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); cursor: pointer; vertical-align: middle; }
.rg-person { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); text-decoration: none; }
.rg-person:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rg .c-name .rg-sub { white-space: nowrap; }
.rg-sub { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rg-code { direction: ltr; font-family: var(--font-ui); font-size: 12.5px; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rg-flag { flex: none; padding: 0 5px; border-radius: var(--radius-xs); border: 1px solid var(--border); color: var(--text-3); font-size: 11px; font-weight: 600; line-height: 16px; }
.rg-flag.high { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); color: var(--amber); }
.rg-flag.urgent { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); color: var(--red); }
.rg-age { font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rg td.c-age, .rg th.c-age { padding-inline: 8px; }
.rg td.c-age .rg-sub { font-size: 12px; }
.rg-approx { margin-inline-start: 2px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.rg-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; }
.rg-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; margin-inline-end: 4px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.rg-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.rg-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); flex: none; }
.rg-status.tone-green::before { background: var(--green); }
.rg-status.tone-blue::before { background: var(--blue); }
.rg-status.tone-violet::before { background: var(--violet); }
.rg-status.tone-rose::before { background: var(--rose); }
.rg-status.tone-amber::before { background: var(--amber); }
.rg-none { color: var(--text-3); opacity: .6; }
.rg-muted { font-size: 13px; color: var(--text-3); }
.rg-mono { font-family: var(--font-ui); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.rg .c-more { padding: 0 4px; text-align: end; }
.rg-more-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); cursor: pointer; transition: background .12s, color .12s; }
.rg-more-btn:hover, .rg-more-btn[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.rg-compact td { padding-top: 5px; padding-bottom: 5px; }
.rg-compact .rg-sub { display: none; }
.rg-compact .rg-person { font-size: 14px; }
.rg-compact .c-name .rg-person { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rg-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; min-height: 52px; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-3); }
.rg-range { font-variant-numeric: tabular-nums; }
.rg-pages { display: flex; align-items: center; gap: 2px; }
.rg-pages a, .rg-pages span { min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 550; color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.rg-pages a:hover { background: var(--surface-3); color: var(--text); }
.rg-pages .cur { background: var(--text); color: var(--surface); font-weight: 650; }
.rg-pages .off { opacity: .35; }
.rg-pages .gap { min-width: 20px; padding: 0 2px; color: var(--text-3); }
.rg-results .empty { padding: 64px 24px 72px; }
.rg-results .empty .empty-icon { width: 48px; height: 48px; margin-bottom: 8px; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-3); }
.rg-results .empty .empty-icon .i { width: 22px; height: 22px; }
.rg-results .empty h3 { margin: 0; font-size: 15px; color: var(--text); }
.rg-results .empty p { font-size: 13px; line-height: 1.5; }
.rg-results .empty > .flex { margin-top: 14px; }
.rg-results.is-loading .rg { opacity: .55; transition: opacity .15s; }

.rg-row-dd { position: absolute; width: 0; height: 0; }
.rg-row-dd .menu { min-width: 220px; }
.i-xs { width: 13px; height: 13px; }

@media (max-width: 1280px) {
  .rg-page { --rg-rail: 240px; }
}
@media (max-width: 1100px) {
  .rg-layout, .rg-layout.rail-closed { grid-template-columns: minmax(0, 1fr); }
  .rl, .rg-layout.rail-closed .rl { --rl-off: 100%; position: fixed; z-index: 80; top: 0; bottom: 0; inset-inline-end: 0; width: min(380px, 92vw); max-height: none; border-radius: 0; border: 0; box-shadow: 0 0 0 100vmax rgba(17, 19, 24, .4), var(--shadow-lg); display: none; }
  .rl:dir(rtl) { --rl-off: -100%; }
  .rl.open, .rg-layout.rail-closed .rl.open { display: flex; }
  .rl.open:not(.rl-static) { animation: rl-in .24s cubic-bezier(.32, .72, 0, 1); }
  .rl-head { height: 52px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
  .rl-close { display: inline-flex; width: 36px; height: 36px; }
  .rl-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--text-3); flex: none; }
  .rl-foot strong { color: var(--text); font-size: 14px; }
  .rl-foot .btn { margin-inline-start: auto; min-width: 132px; }
  .rg-layout:not(.rail-closed) .rg-rail-btn { background: var(--surface); border-color: var(--border-strong); }
}
@keyframes rl-in { from { transform: translateX(var(--rl-off)); } }
@media (max-width: 900px), (pointer: coarse) {
  .rg-toolbar { --rg-ctl: 38px; }
  .rl-opt { min-height: 36px; }
  .rl-facet > summary { padding-block: 10px; }
  .rl-preset { height: 30px; padding: 0 10px; }
  .rl-dates-row .input, .rl-find input { height: 36px; }
  .rg-pages a, .rg-pages span { min-width: 36px; height: 36px; }
  .rg-mark, .rg-more-btn { width: 34px; height: 34px; }
  .rg-chip { height: 32px; padding-inline-end: 2px; }
  .rg-chip a { width: 28px; height: 28px; }
  .rg-chips-clear { padding: 6px 4px; }
}
@media (max-width: 760px) {
  .rg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; margin-bottom: 12px; }
  .rg-head-text { display: contents; }
  .rg-head h1 { grid-column: 1; grid-row: 1; font-size: 21px; line-height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rg-head-actions { grid-column: 2; grid-row: 1; flex-wrap: nowrap; margin: 0; }
  .rg-head-sub { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 12.5px; gap: 0 8px; }
  .rg-hide-sm { display: none; }
  .rg-search input, .rl-find input, .rl-dates-row .input { font-size: 16px; }
  .rg-search input::placeholder, .rl-find input::placeholder { font-size: 14px; }
  .rg-views { margin-bottom: 12px; }
  .rg-views-scroll { gap: 18px; }
  .rg-views-menu { display: none; }
}
.rg-results { position: relative; }
.rg-results::after { content: ""; position: absolute; top: var(--edge-top, 0); height: var(--edge-h, 100%); left: 0; width: 20px; pointer-events: none; z-index: 5; opacity: 0; background: linear-gradient(to right, rgba(17, 19, 24, .1), transparent); transition: opacity .15s; }
.rg-results.edge-end::after { opacity: 1; }
.rg-results.edge-start .rg .c-name { box-shadow: inset 1px 0 0 var(--border), -10px 0 12px -10px rgba(17, 19, 24, .22); }

.rg-body { position: relative; --pk-w: clamp(360px, 25vw, 430px); }
.pk-side { --pk-off: calc(100% + 40px); --pk-shadow: -12px 0 44px -14px rgba(17, 19, 24, .3); position: fixed; z-index: 60; top: 0; bottom: 0; inset-inline-end: 0; width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-inline-start: 1px solid var(--border); box-shadow: var(--pk-shadow); outline: none; transform: translateX(var(--pk-off)); visibility: hidden; transition: transform .26s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .26s; }
.pk-side:dir(rtl) { --pk-off: calc(-100% - 40px); --pk-shadow: 12px 0 44px -14px rgba(17, 19, 24, .3); }
.pk-side.open { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
@media (min-width: 1100px) {
  .rg-body { display: grid; grid-template-columns: minmax(0, 1fr) 0px; column-gap: 0; align-items: start; transition: grid-template-columns .28s cubic-bezier(.32, .72, 0, 1), column-gap .28s cubic-bezier(.32, .72, 0, 1); }
  .rg-body.pk-open { grid-template-columns: minmax(0, 1fr) var(--pk-w); column-gap: 16px; }
  .rg-body > form { min-width: 0; }
  .pk-side, .pk-side.open { position: sticky; z-index: 2; top: calc(var(--topbar-h) + 16px); height: var(--rg-fit, calc(100vh - var(--topbar-h) - 32px)); width: auto; min-width: 0; transform: none; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
  .pk-side { transition: visibility 0s linear .28s; }
  .pk-side.open { transition: visibility 0s; }
  .pk-side > .pk-host { flex: 1 1 0; min-height: 0; width: calc(var(--pk-w) - 2px); align-self: flex-start; }
}
.pk-progress { position: absolute; z-index: 3; top: 0; inset-inline: 0; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .12s; }
.pk-progress::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--primary); animation: pk-run 1s ease-in-out infinite; }
.pk-side.is-loading .pk-progress { opacity: 1; transition-delay: .12s; }
@keyframes pk-run { to { left: 100%; } }
.pk-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk-host:empty { display: none; }

@media (max-width: 760px) {
  .pk-side { z-index: 95; width: 100vw; border: 0; box-shadow: none; padding-top: env(safe-area-inset-top); }
  .pk-side.open { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-side, .pk-side.open, .rg-body { transition: none; }
  .rl.open:not(.rl-static) { animation: none; }
}

.pk { flex: 1; min-height: 0; display: flex; flex-direction: column; container: pk / inline-size; }
@container pk (max-width: 420px) {
  .pk-cta .btn:not(.pk-cta-main) .i { display: none; }
}
.pk-bar { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 10px; border-bottom: 1px solid var(--border); background: var(--surface); flex: none; }
html[dir="ltr"] .pk-bar { direction: ltr; }
html[dir="rtl"] .pk-bar { direction: rtl; }
.pk-nav { display: flex; gap: 2px; }
.pk-bar-code { flex: 1; min-width: 0; padding: 0 6px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 550; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pk-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); cursor: pointer; transition: background .12s, color .12s; }
.pk-icon:hover { background: var(--surface-3); color: var(--text); }
.pk-icon:disabled { opacity: .3; cursor: default; background: transparent; }
.pk-icon.sm { width: 28px; height: 28px; }
.pk-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

.pk-hero { display: flex; align-items: center; gap: 16px; padding: 20px 20px 16px; }
.pk-photo { width: 76px; height: 76px; flex: none; overflow: hidden; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; }
.pk-photo .sk { width: 100%; height: 100%; border-radius: 50%; }
.pk-hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pk-skel .pk-hero-text { gap: 8px; align-self: stretch; justify-content: center; }
.pk-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pk-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pk-status.tone-green { background: color-mix(in srgb, var(--green) 11%, var(--surface)); color: var(--green); }
.pk-status.tone-blue { background: color-mix(in srgb, var(--blue) 11%, var(--surface)); color: var(--blue); }
.pk-status.tone-violet { background: color-mix(in srgb, var(--violet) 11%, var(--surface)); color: var(--violet); }
.pk-status.tone-rose { background: color-mix(in srgb, var(--rose) 11%, var(--surface)); color: var(--rose); }
.pk-status.tone-amber { background: color-mix(in srgb, var(--amber) 13%, var(--surface)); color: var(--amber); }
.pk-name { margin: 2px 0 0; max-width: 100%; font-family: var(--font-he); font-size: 22px; font-weight: 600; line-height: 1.25; }
.pk-name a { color: var(--text); text-decoration: none; }
.pk-name a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pk-ln { font-weight: 700; }
.pk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 13.5px; color: var(--text-2); }
.pk-meta-icons { gap: 4px 14px; color: var(--text-3); }
.pk-meta-icons > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.pk-meta-icons .i { flex: none; }
.pk-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

.pk-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 20px 18px; }
.pk-cta .btn { justify-content: center; min-width: 0; }
.pk-cta .btn:not(.pk-cta-main) { gap: 6px; padding-inline: 10px; }
.pk-cta .btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-cta-main { grid-column: 1 / -1; height: 38px; font-size: 14px; }
.pk-skel .pk-cta .sk:first-child { grid-column: 1 / -1; }
.when-on { display: none; }
[data-shortlist].on .when-on { display: inline; }
[data-shortlist].on .when-off { display: none; }
.pk-cta [data-shortlist].on { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); color: var(--primary); }
[data-shortlist].on .i { fill: currentColor; }

.pk-tabs { position: sticky; z-index: 2; top: 0; display: flex; gap: 20px; padding: 0 20px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border); background: var(--surface); }
.pk-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; margin-bottom: -1px; padding: 0 1px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--text-3); cursor: pointer; transition: color .12s, border-color .12s; }
.pk-tab:hover { color: var(--text); }
.pk-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.pk-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }

.pk-sec { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.pk-pane .pk-sec:last-child { border-bottom: 0; }
.pk-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13.5px; font-weight: 650; color: var(--text); }
.pk-h-link { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.pk-h-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-dl { margin: 0; }
.pk-dl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; line-height: 1.45; }
.pk-dl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pk-dl dt { color: var(--text-3); font-weight: 500; }
.pk-dl dd { margin: 0; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.pk-dl b { font-weight: 600; }
.pk-none { color: var(--text-3); opacity: .6; }
.pk-muted { margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); }
.pk-h .pk-muted { margin: 0; font-weight: 500; }
.pk-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; margin: 1px 0; margin-inline-end: 4px; border-radius: var(--radius-xs); border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.pk-text { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.pk-contacts { list-style: none; margin: 0; padding: 0; }
.pk-contacts li { display: grid; grid-template-columns: 16px 104px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0; border-bottom: 1px solid var(--border-soft); }
.pk-contacts li:last-child { border-bottom: 0; }
.pk-contacts li > .i { color: var(--text-3); }
.pk-contact-label { font-size: 13px; color: var(--text-3); }
.pk-phone { justify-self: start; font-family: var(--font-ui); font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; text-decoration: none; }
.pk-phone:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.pk-addr { grid-column: 3 / -1; font-size: 13.5px; color: var(--text); }
.pk-note { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 13.5px; line-height: 1.55; white-space: pre-line; max-height: 220px; overflow: auto; }
.pk-complete-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pk-complete-head b { font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
.pk-complete .cd-meter { height: 6px; }
.pk-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pk-matches a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: background .12s, border-color .12s; }
.pk-matches a:hover { background: var(--surface-2); border-color: var(--border-strong); }
.pk-match-name { font-family: var(--font-he); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-sugg { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pk-sugg a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: var(--radius); color: var(--text); text-decoration: none; text-align: center; transition: background .12s; }
.pk-sugg a:hover { background: var(--surface-2); }
.pk-sugg-av { width: 48px; height: 48px; overflow: hidden; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.pk-sugg-av img { width: 100%; height: 100%; object-fit: cover; }
.pk-sugg-name { max-width: 100%; overflow: hidden; font-family: var(--font-he); font-size: 12.5px; line-height: 1.3; }
.pk-sugg-score { height: 18px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; line-height: 18px; font-variant-numeric: tabular-nums; }
.pk-sugg-box { margin: 14px 16px 16px; padding: 14px 14px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-2); }
.pk-pane .pk-sugg-box:last-child { border-bottom: 1px solid var(--border-soft); }
.pk-sugg-ph { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; }
.pk-sugg-ph .sk:first-child { width: 48px; height: 48px; border-radius: 50%; }
.pk-sugg-ph .sk-line { width: 80%; }
.pk-error { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; text-align: center; color: var(--text-2); }
.pk-error .i { width: 26px; height: 26px; color: var(--text-3); }
.pk-error p { margin: 0; }
.pk :is(.pk-dl dd, .pk-addr, .pk-note, .pk-muted) { text-align: right; }

@media (max-width: 760px) {
  .pk-bar { height: 52px; padding: 0 8px; }
  .pk-icon { width: 38px; height: 38px; }
  .pk-icon.sm { width: 34px; height: 34px; }
  .pk-scroll { padding-bottom: env(safe-area-inset-bottom); }
  .pk-tab { height: 46px; font-size: 14px; }
  .pk-matches a { min-height: 46px; }
}
@media (max-width: 560px) {
  .pk-hero { padding: 18px 16px 14px; gap: 14px; }
  .pk-photo { width: 64px; height: 64px; font-size: 22px; }
  .pk-name { font-size: 20px; }
  .pk-cta, .pk-tabs { padding-inline: 16px; }
  .pk-tabs { gap: 22px; }
  .pk-sec { padding: 14px 16px; }
  .pk-dl-row { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
  .pk-dl dt { font-size: 13px; }
  .pk-contacts li { grid-template-columns: 16px 86px minmax(0, 1fr) auto; gap: 8px; min-height: 44px; }
  .pk-sugg-box { margin: 12px; }
  .pk-sugg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pk-sugg li:nth-child(5) { display: none; }
}

.area-admin .pk-status { height: auto; padding: 0; background: none; color: var(--text-2); font-weight: 550; }
.area-admin .pk-status.tone-green::before { background: var(--green); }
.area-admin .pk-status.tone-blue::before { background: var(--blue); }
.area-admin .pk-status.tone-violet::before { background: var(--violet); }
.area-admin .pk-status.tone-rose::before { background: var(--rose); }
.area-admin .pk-status.tone-amber::before { background: var(--amber); }
.area-admin .pk-status.tone-gray::before { background: #9aa1ab; }
.area-admin .pk-photo { width: 68px; height: 68px; font-size: 23px; }
.area-admin .pk-name { font-size: 21px; }
.area-portal .pk-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 75%, var(--surface)) 0%, var(--surface) 100%); }
.area-portal .pk-bar { border-bottom-color: var(--border-soft); }
.area-portal .pk-sugg-score { background: var(--primary); color: #fff; }

.rg-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rg-who-text { min-width: 0; }
.rg .c-name .rg-person { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-av { width: 30px; height: 30px; flex: none; overflow: hidden; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-serif); font-size: 12px; font-weight: 600; }
.rg-av img { width: 100%; height: 100%; object-fit: cover; }
.rg-compact .rg-av { width: 24px; height: 24px; font-size: 10.5px; }
.rg-mob-end, .rg-mob-age, .rg-mob-sub, .rg-mob-loc, .rg-mob-st { display: none; }
.rg .c-more { white-space: nowrap; }
.rg-mark { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); cursor: pointer; opacity: 0; transition: opacity .12s, background .12s, color .12s; vertical-align: middle; }
.rg tbody tr:hover .rg-mark, .rg-mark:focus-visible, .rg-mark.on { opacity: 1; }
.rg-mark:hover { background: var(--surface-3); color: var(--text); }
.rg-mark.on { color: var(--primary); }
.rg tbody tr.is-peeked td { background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface)); }
.rg-wrap:dir(rtl) .rg tbody tr.is-peeked td.c-name { box-shadow: inset -3px 0 0 var(--primary), inset 1px 0 0 var(--border); }
.rg-wrap:dir(ltr) .rg tbody tr.is-peeked td.c-name { box-shadow: inset 3px 0 0 var(--primary), inset -1px 0 0 var(--border); }
.rg-results.edge-start .rg-wrap:dir(rtl) .rg tbody tr.is-peeked td.c-name { box-shadow: inset -3px 0 0 var(--primary), inset 1px 0 0 var(--border), -10px 0 12px -10px rgba(17, 19, 24, .22); }

.rg-mode { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-3); }
.rg-mode a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: calc(var(--radius) - 2px); font-size: 13px; font-weight: 550; color: var(--text-2); text-decoration: none; white-space: nowrap; transition: color .12s, background .12s; }
.rg-mode a:hover { color: var(--text); }
.rg-mode a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(17, 19, 24, .08), 0 0 0 1px var(--border); }
.rg-btn-n { min-width: 20px; height: 18px; margin-inline-start: 2px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--primary-soft); color: var(--primary); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .rg-head .rg-hide-sm, .rg-toolbar .rg-hide-sm { display: none; }
}
@media (max-width: 420px) {
  .rg-head .rg-hide-xs { display: none; }
}

@media (max-width: 760px) {
  .rg-wrap { overflow: visible; max-height: none; }
  .rg { width: 100%; }
  .rg thead { display: none; }
  .rg, .rg tbody { display: block; }
  .rg tbody tr { position: relative; display: block; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); background: var(--surface); -webkit-tap-highlight-color: transparent; transition: background .1s; }
  .rg tbody tr:last-child { border-bottom: 0; }
  .rg tbody tr:hover td { background: transparent; }
  .rg tbody tr:hover, .rg tbody tr:active { background: var(--surface-2); }
  .rg tbody tr.is-peeked { background: var(--primary-soft); box-shadow: inset -3px 0 0 var(--primary); }
  .rg tbody tr.is-peeked td { background: transparent; }
  .rg td { display: none; }
  .rg td.c-name { display: block; padding: 0; border: 0; background: transparent; position: static; box-shadow: none !important; overflow: visible; white-space: normal; }
  .rg .c-name .rg-sub { display: none; }
  .rg-av { width: 42px; height: 42px; font-size: 14.5px; }
  .rg-who { gap: 12px; align-items: center; }
  .rg-who-text { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 3px; }
  .rg .c-name .rg-person { grid-area: 1 / 1; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; line-height: 22px; }
  .rg-mob-end { grid-area: 1 / 2; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
  .rg-mob-end:empty { display: none; }
  .rg-mob-age { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
  .rg-mob-age .rg-approx { margin-inline-start: 1px; font-size: 11.5px; }
  .rg-mob-sub { grid-area: 2 / 1; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--text-2); }
  .rg-who-text:not(:has(.rg-mob-loc)) .rg-mob-sub { grid-column: 1 / -1; }
  .rg-mob-loc { grid-area: 2 / 2; justify-self: end; display: inline-flex; align-items: center; gap: 3px; min-width: 0; max-width: 132px; overflow: hidden; font-size: 12.5px; line-height: 18px; color: var(--text-3); white-space: nowrap; }
  .rg-mob-loc .i { flex: none; width: 12px; height: 12px; opacity: .8; }
  .rg-mob-loc > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .rg-mob-st { display: inline-flex; align-items: center; gap: 5px; max-width: 104px; font-size: 12px; font-weight: 550; line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rg-mob-st::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gray); }
  .rg-mob-st.tone-green::before { background: var(--green); }
  .rg-mob-st.tone-blue::before { background: var(--blue); }
  .rg-mob-st.tone-violet::before { background: var(--violet); }
  .rg-mob-st.tone-rose::before { background: var(--rose); }
  .rg-mob-st.tone-amber::before { background: var(--amber); }
  .rg-mob-st.tone-gray::before { background: var(--border-strong); }
  .rg tbody tr.is-archived .rg-av { opacity: .6; }
  .rg-compact tbody tr { padding-block: 8px; }
  .rg-compact .rg-av { width: 34px; height: 34px; font-size: 12.5px; }
  .rg-compact .c-name .rg-person { font-size: 15px; }
  .rg-pager { flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px; text-align: center; }
  .rg-pages { justify-content: center; }
}
.pk-status-dd { position: relative; }
.pk-status-btn { gap: 6px; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; transition: filter .12s, box-shadow .12s; }
.pk-status-btn:hover { filter: brightness(.97); box-shadow: inset 0 0 0 1px currentColor; }
.pk-status-btn .i { width: 12px; height: 12px; opacity: .75; }
.pk-status-menu { min-width: 200px; }
.pk-status-menu .menu-item { gap: 9px; }
.pk-status-menu .menu-item.is-current { font-weight: 650; }
.pk-status-menu .menu-item .i { color: var(--primary); }
.pk-status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #9aa1ab; }
.pk-status-dot.tone-green { background: var(--green); }
.pk-status-dot.tone-blue { background: var(--blue); }
.pk-status-dot.tone-violet { background: var(--violet); }
.pk-status-dot.tone-rose { background: var(--rose); }
.pk-status-dot.tone-amber { background: var(--amber); }
.area-admin .pk-status-btn { padding: 3px 8px; margin-inline-start: -8px; border-radius: var(--radius-sm); }
.area-admin .pk-status-btn:hover { background: var(--surface-3); box-shadow: none; filter: none; }
