/* Self-hosted portal fonts. Saira Condensed is reserved for the KGG wordmark. */
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face {
  font-family: "Cairo"; src: url("../fonts/cairo-arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --ink-0: #000000; --ink-10: #0a0a0a; --ink-20: #111111; --ink-30: #1a1a1a; --ink-40: #242424; --ink-50: #2e2e2e; --ink-60: #3a3a3a;
  --ink-70: #5c5c5c; --ink-80: #8a8a8a; --ink-90: #bfbfbf; --ink-95: #e6e6e6; --ink-100: #ffffff;
  --gold-300: #fcc854; --gold-400: #f2b328; --gold-500: #e29c00; --gold-600: #c28400; --gold-700: #9b6900; --gold-800: #734d00; --gold-950: #2a1b00;
  --success: #5bb77b; --success-ink: #0f2a18; --danger: #e04848; --danger-ink: #2a0b0b; --info: #6e9ae0;
  --radius-sm: 4px; --radius: 6px; --radius-lg: 10px;
  --font-body: "Source Sans 3", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --tracking-caps: 0.06em;
  --slab-gold: 0 3px 0 var(--gold-700);
  --shadow-card: 0 2px 6px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  --dur-fast: 120ms;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink-10); color: var(--ink-95); font: 15px/1.5 var(--font-body); }
a { color: var(--gold-300); text-underline-offset: 2px; }
a:hover { color: var(--gold-400); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-300); outline-offset: 2px;
}
h1, h2, h3 { color: var(--ink-100); line-height: 1.2; margin: 0 0 .5rem; font-family: var(--font-body); letter-spacing: -.015em; }
h1 { font-size: 2rem; font-weight: 650; } h2 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; } h3 { font-size: 1.02rem; font-weight: 600; }
.muted { color: var(--ink-80); }
.small-text { font-size: .85rem; }
.stack { display: grid; gap: .6rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: var(--tracking-caps); font-size: .78rem; color: var(--gold-500); font-weight: 600; }

.button, button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .5rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--gold-500);
  background: var(--gold-500); color: var(--ink-20); font: 600 1rem/1.25 var(--font-body);
  text-decoration: none; cursor: pointer; box-shadow: var(--slab-gold); transition: background var(--dur-fast), transform var(--dur-fast);
}
.button:hover, button:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--ink-20); }
.button:active, button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--gold-800); }
button.secondary, .button.secondary { background: transparent; color: var(--gold-300); box-shadow: none; }
button.secondary:hover, .button.secondary:hover { background: var(--gold-950); color: var(--gold-300); }
button.danger { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; }
button.danger:hover { background: var(--danger-ink); color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; color: var(--ink-90); box-shadow: none; }
button.ghost:hover { background: var(--ink-40); color: var(--gold-300); }
button.small, .button.small { padding: .2rem .55rem; font-size: .88rem; }
button:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  width: 100%; padding: .5rem .65rem; border-radius: var(--radius-sm); border: 1px solid var(--ink-60);
  background: var(--ink-20); color: var(--ink-95); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold-500); }
label { display: grid; gap: .25rem; font-size: .88rem; color: var(--ink-90); }
label.check { display: flex; align-items: center; gap: .5rem; }
label.check input { width: auto; accent-color: var(--gold-500); }
input[type="checkbox"] { width: auto; accent-color: var(--gold-500); }
form.grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }

.notice { border-left: 3px solid var(--gold-500); background: var(--ink-30); padding: .7rem 1rem; border-radius: var(--radius-sm); }
.notice.success { border-color: var(--success); }
.notice.error { border-color: var(--danger); }
.notice.warn { border-color: var(--gold-500); background: var(--gold-950); }
.secret { font-family: var(--font-mono); word-break: break-all; background: var(--ink-20); padding: .5rem; border-radius: var(--radius-sm); }
code, pre { font-family: var(--font-mono); font-size: .85rem; }
pre { background: var(--ink-20); border: 1px solid var(--ink-50); padding: .75rem; border-radius: var(--radius-sm); overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--ink-50); vertical-align: top; }
th { color: var(--ink-80); font: 600 .88rem/1.3 var(--font-body); }
tbody tr:hover { background: var(--ink-20); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .5rem; border-radius: 999px; font-size: .76rem; border: 1px solid var(--ink-60); color: var(--ink-90); white-space: nowrap; }
.badge.gold { border-color: var(--gold-500); color: var(--gold-300); }
.badge.ok { border-color: var(--success); color: var(--success); }
.badge.bad { border-color: var(--danger); color: var(--danger); }
.badge.info { border-color: var(--info); color: var(--info); }
.count { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: var(--gold-500); color: var(--ink-20); font: 700 .72rem var(--font-body); }
.card { background: var(--ink-30); border: 1px solid var(--ink-50); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow-card); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.stat { background: var(--ink-30); border: 1px solid var(--ink-50); border-radius: var(--radius); padding: .75rem 1rem; }
.stat strong { display: block; font: 800 1.6rem var(--font-body); color: var(--ink-100); }
.meter { height: 6px; border-radius: 999px; background: var(--ink-50); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--gold-500); }
.meter.over > span { background: var(--danger); }
details > summary { cursor: pointer; color: var(--gold-300); }

/* Sign-in pages */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(ellipse at top, var(--ink-30), var(--ink-10) 60%); }
.auth-card { width: min(440px, 100%); background: var(--ink-30); border: 1px solid var(--ink-50); border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1rem; box-shadow: var(--shadow-card); }
.auth-card .brand { justify-content: center; margin-bottom: .5rem; }
.auth-card .brand img { width: 64px; height: 64px; }
.auth-foot { text-align: center; font-size: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font: 800 1.15rem "Saira Condensed", var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-100); }
.brand-name span { color: var(--gold-500); }

/* Portal shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.shell nav { background: var(--ink-20); border-right: 1px solid var(--ink-50); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.shell nav a { color: var(--ink-90); text-decoration: none; padding: .45rem .6rem; border-radius: var(--radius-sm); display: flex; align-items: center; gap: .5rem; }
.shell nav a.active, .shell nav a:hover { background: var(--ink-40); color: var(--gold-300); }
.shell nav .brand { margin-bottom: 1rem; padding: 0 .4rem; }
.shell nav .brand:hover { background: none; }
.shell nav .section {
  margin: .9rem 0 .15rem; padding: .65rem .6rem .15rem; border-top: 1px solid var(--ink-50);
  font: 700 .76rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-300);
}
.shell nav .nav-group a { padding-inline-start: 1.4rem; }
.shell nav .who { margin-top: auto; padding: 1rem .6rem 0; border-top: 1px solid var(--ink-50); font-size: .82rem; }
.shell main { padding: 1.5rem 2rem 3rem; display: grid; gap: 1rem; align-content: start; max-width: 1240px; width: 100%; }
.emergency-banner { background: var(--danger-ink); border-bottom: 1px solid var(--danger); color: var(--ink-100); padding: .5rem 2rem; font-weight: 600; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .shell nav { border-right: 0; border-bottom: 1px solid var(--ink-50); flex-direction: row; flex-wrap: wrap; }
  .shell nav .nav-group { flex-basis: 100%; }
  .shell nav .who { display: none; }
  .shell main { padding: 1rem; }
}

/* Table cells keep table layout; their children are spaced instead of flexed. */
td.row, td.stack { display: table-cell; }
td.row > * + * { margin-left: .4rem; }
td.stack > * { display: flex; width: max-content; }
td.stack > * + * { margin-top: .35rem; }

/* Workflow template editor */
.template-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .8rem 1.25rem; }
.template-step { border: 1px solid var(--ink-50); border-radius: var(--radius); background: var(--ink-20); min-width: 0; }
.template-step > summary { padding: .8rem 1rem; color: var(--ink-95); overflow-wrap: anywhere; }
.step-position { margin-inline: .4rem .7rem; color: var(--ink-80); font-variant-numeric: tabular-nums; }
.template-step > summary .muted { margin-inline-start: .7rem; font-size: .88rem; }
.step-editor { padding: 1rem; gap: 1rem; border-top: 1px solid var(--ink-50); }
.step-options > summary { font-size: .92rem; }
.step-options .template-fields { margin-top: .75rem; }
@media (max-width: 640px) {
  .template-fields { grid-template-columns: 1fr; }
}

.person-header p { margin: .35rem 0 0; }
.person-tabs, .page-tabs { display: flex; flex-wrap: wrap; gap: .15rem .75rem; border-bottom: 1px solid var(--ink-50); }
.person-tabs a, .page-tabs a { padding: .5rem .25rem; border-bottom: 2px solid transparent; text-decoration: none; color: var(--ink-90); }
.person-tabs a[aria-current="page"], .page-tabs a[aria-current="page"] { color: var(--gold-300); border-color: var(--gold-500); font-weight: 600; }
.person-tabs a:hover, .page-tabs a:hover { color: var(--ink-100); }

.profile-facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: .75rem 0 0; }
.profile-facts dt { color: var(--ink-80); }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.role-preview { margin-bottom: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--ink-50); }
.role-preview label { display: flex; align-items: center; gap: .5rem; }
.role-preview select { width: auto; max-width: 100%; }
.account-identity { display: flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
main > .account-identity { margin-bottom: 1rem; }
.people-toolbar input[type="search"] { max-width: 22rem; }
.service-cell .profile-photo { width: 2.25rem; height: 2.25rem; font-size: 1rem; }
.who .profile-photo { width: 2rem; height: 2rem; font-size: 1rem; }
.profile-photo { flex-shrink: 0; width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.profile-initial { display: inline-grid; place-items: center; background: var(--ink-40); color: var(--ink-95); font-size: 1.4rem; }

.access-panel { padding: 1rem 1.25rem; border: 1px solid var(--ink-50); border-radius: var(--radius); background: var(--ink-20); overflow-x: auto; }
.access-panel > :first-child:not(dialog) { margin-top: 0; }
.access-panel > :last-child:not(dialog) { margin-bottom: 0; }
.access-panel h2, .access-panel h3 { font-size: 1.15rem; }
.access-action { margin-top: .8rem; }
.access-action form { margin-top: .75rem; }

/* Top-down org chart: each manager sits above a row of their direct reports, joined by connector lines. */
.org-chart { overflow-x: auto; margin: 1rem 0; padding-bottom: .5rem; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.org-tree { width: max-content; min-width: 100%; }
.org-tree ul { position: relative; padding-top: 1.25rem; }
.org-tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.25rem .4rem 0; }
.org-tree > li { padding-top: 0; }
.org-tree ul::before { content: ""; position: absolute; top: 0; inset-inline-start: 50%; height: 1.25rem; border-inline-start: 1px solid var(--ink-60); }
.org-tree ul > li::before, .org-tree ul > li::after { content: ""; position: absolute; top: 0; width: 50%; height: 1.25rem; border-top: 1px solid var(--ink-60); }
.org-tree ul > li::before { inset-inline-end: 50%; }
.org-tree ul > li::after { inset-inline-start: 50%; border-inline-start: 1px solid var(--ink-60); }
.org-tree ul > li:first-child::before, .org-tree ul > li:last-child::after { border: 0 none; }
.org-tree ul > li:last-child::before { border-inline-end: 1px solid var(--ink-60); border-start-end-radius: 6px; }
.org-tree ul > li:first-child::after { border-start-start-radius: 6px; }
.org-tree ul > li:only-child { padding-top: 0; }
.org-tree ul > li:only-child::before, .org-tree ul > li:only-child::after { display: none; }
.org-person { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 11rem; padding: .5rem .6rem; text-align: center; border: 1px solid var(--ink-50); border-radius: var(--radius); background: var(--ink-20); }
.org-person > div { max-width: 100%; }
.org-person .small-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-separator { margin: 2rem 0 1rem; border: 0; border-top: 1px solid var(--ink-50); }
.org-unplaced { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.org-name { font-weight: 600; }
.org-title { font-size: .85rem; color: var(--ink-90); }
.org-toggle { white-space: nowrap; }
.org-person[draggable="true"] { cursor: grab; }
.org-person[draggable="true"]:active { cursor: grabbing; }
.org-root-drop { width: fit-content; padding: .45rem .8rem; border: 1px dashed var(--ink-60); border-radius: var(--radius); color: var(--ink-80); }
.org-person.can-drop, .org-root-drop.available { border-color: var(--gold-300); }
.org-person.can-drop:hover, .org-root-drop.available:hover { background: var(--ink-40); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { display: block; font-size: .8rem; color: var(--ink-80); font-weight: 400; }
.page-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.tab-count { margin-inline-start: .3rem; padding: 0 .4rem; border-radius: 999px; background: var(--ink-40); color: var(--ink-90); font-size: .75rem; font-weight: 600; }

/* Bordered data table: a framed grid with a tinted header and faint cell lines. */
.table-panel { border: 1px solid var(--ink-50); border-radius: var(--radius); background: var(--ink-20); overflow-x: auto; }
.data-table th { background: var(--ink-30); color: var(--ink-80); font-size: .76rem; text-transform: uppercase; letter-spacing: var(--tracking-caps); padding: .55rem .9rem; border-bottom: 1px solid var(--ink-50); white-space: nowrap; }
.data-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--ink-40); vertical-align: middle; }
.data-table th + th, .data-table td + td { border-inline-start: 1px solid var(--ink-40); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--ink-30); }
.data-table tr.inactive td > * { opacity: .6; }
.data-table td.row-actions { width: 1%; white-space: nowrap; text-align: end; }
.data-table td.row-actions > * + * { margin-inline-start: .25rem; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.badges:empty { display: none; }
button.ghost.danger-text { color: var(--danger); }
button.ghost.danger-text:hover { background: var(--danger-ink); color: var(--danger); }

.service-cell { display: flex; align-items: center; gap: .75rem; min-width: 14rem; }
.service-cell.service-environment { margin-inline-start: 2rem; }
.tree-parent, .tree-child, .tree-last { position: relative; }
.tree-parent::before, .tree-child::before, .tree-last::before, .tree-child::after, .tree-last::after {
  content: ""; position: absolute; pointer-events: none;
  inset-inline-start: calc(.9rem + 1.125rem - 1px); /* cell padding + parent icon radius */
}
.tree-parent::before, .tree-child::before, .tree-last::before {
  border-inline-start: 2px solid var(--gold-700); inset-block: -1px;
}
.tree-parent::before { inset-block-start: calc(50% + 1.125rem); }
.tree-last::before { inset-block-end: 50%; }
.tree-child::after, .tree-last::after {
  inset-block-start: calc(50% - 1px); inline-size: calc(2rem - 1.125rem + 1px);
  border-block-start: 2px solid var(--gold-700);
}
.service-name { font-weight: 600; }
.service-name a { color: var(--ink-100); text-decoration: none; }
.service-name a:hover { color: var(--gold-300); text-decoration: underline; }
.service-icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); object-fit: contain; background: var(--ink-40); }
.service-icon.small { width: 1.3rem; height: 1.3rem; border-radius: var(--radius-sm); font-size: .72rem; }
.service-icon.large { width: 4rem; height: 4rem; border-radius: var(--radius-lg); font-size: 1.6rem; }
.service-initial { display: inline-grid; place-items: center; color: var(--gold-300); font-weight: 700; }
.card-title { display: flex; align-items: center; gap: .65rem; }
.card-title h3 { margin: 0; }
.product-name { display: inline-block; padding-inline-start: calc(var(--depth, 0) * 1.5rem); font-weight: 600; }
.product-services { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.product-service { display: inline-flex; align-items: center; gap: .35rem; }

/* Modal dialogs */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 6vh 1rem 2rem; background: rgba(0, 0, 0, .65); overflow-y: auto; }
.modal { width: min(720px, 100%); display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; background: var(--ink-30); border: 1px solid var(--ink-50); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.modal.narrow { width: min(460px, 100%); }
.modal h2 { margin: 0; }
.modal p { margin: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .25rem; }
.form-grid { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid > label { align-content: start; }
.form-section { display: grid; gap: .65rem; margin: 0; padding: .9rem 0 0; border: 0; border-top: 1px solid var(--ink-50); }
.form-section legend { padding: 0 .5rem 0 0; font-weight: 600; color: var(--ink-100); }
.icon-picker { display: flex; align-items: center; gap: 1rem; }
.file-button { position: relative; overflow: hidden; }
.file-button input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.credentials { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; align-items: center; margin: 0; }
.credentials dt { color: var(--ink-80); }
.credentials dd { margin: 0; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.credentials .secret { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; }
}

.people-picker { display: grid; gap: .75rem; }
.picker-table { max-height: 18rem; overflow: auto; }
.picker-table thead th { position: sticky; top: 0; z-index: 1; }
.picker-table input:is([type=checkbox], [type=radio]) { width: auto; accent-color: var(--gold-500); }
.picker-table td:first-child { width: 1%; }
.picker-table tbody tr:has(:checked) { background: var(--gold-950); }
.picker-sort { background: transparent; color: inherit; font: inherit; padding: 0; border: 0; box-shadow: none; }
.picker-sort:hover { color: var(--gold-300); background: transparent; }

.service-row-actions { display: inline-flex; align-items: center; gap: .5rem; }
.more-actions { min-height: 2rem; min-width: 2.2rem; letter-spacing: .08em; }
.service-actions-menu {
  padding: .375rem; min-width: 13rem; border: 1px solid var(--ink-50); border-radius: var(--radius);
  background: var(--ink-30); color: var(--ink-90); box-shadow: var(--shadow-card);
}
@supports (position-area: bottom) {
  .service-actions-menu { inset: auto; margin: .25rem 0; position-area: bottom span-left; justify-self: end; position-try-fallbacks: flip-block; }
}
.service-actions-menu > :is(a, button) {
  display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 2.5rem;
  margin: 0; padding: .5rem .75rem; text-align: start; font: inherit; text-decoration: none;
  color: inherit; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none;
}
.service-actions-menu > :is(a, button) + :is(a, button) { border-top: 1px solid var(--ink-50); }
.service-actions-menu > :is(a, button):is(:hover, :focus-visible) { background: var(--ink-40); color: var(--ink-100); }
.service-actions-menu > :is(a, button):focus-visible { outline-offset: -2px; }
.picker-dialog {
  width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.35rem;
  color: inherit; background: var(--ink-30); border: 1px solid var(--ink-50); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.picker-dialog:has(.picker-table) { width: min(72rem, calc(100% - 2rem)); }
.picker-dialog .picker-table { max-height: clamp(12rem, calc(100dvh - 24rem), 65dvh); }
.picker-dialog .picker-table :is(th, td) { padding-block: .45rem; }
.picker-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.picker-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.picker-dialog h2 { margin: 0; }
.picker-fields { min-width: 0; padding: 0; border: 0; margin: 0; }
.picker-table label.picker-service { display: inline-flex; flex-flow: row; align-items: center; gap: .6rem; cursor: pointer; }
.entity-picker-field { gap: .25rem; align-content: start; font-size: .88rem; }
