/* _blanco crew – the team's contacts. The _blanco ui look (blanco-ui.css): Compact list (one quiet row, mono facts in
   fixed columns, zebra), mono role words as the filter, chips, Backup-slate windows. */
[hidden] { display: none !important; }
body { background: var(--b-bg); color: var(--b-ink); }
.k-more { min-width: 44px; letter-spacing: 1px; }

/* search + roles */
.k-tools { display: grid; gap: 14px; margin: 0 0 18px; }
.k-search { max-width: 420px; }
.k-search input { font-size: 16px; }   /* iPhone: no zoom on focus */
.k-search input::-webkit-search-cancel-button { filter: invert(.6); }
.k-roles { gap: 6px 16px; }

/* the list: Compact rows */
.k-head, .k-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .8fr) 36px; gap: 16px; align-items: center; }
.k-head { padding: 0 14px 8px; border-bottom: 1px solid var(--b-line); font: 500 10.5px/1.4 var(--b-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--b-mute); }
.k-list { display: grid; }
.k-row { position: relative; min-height: 52px; padding: 6px 6px 6px 14px; border-radius: var(--b-r-field); cursor: pointer; color: var(--b-ink); content-visibility: auto; contain-intrinsic-size: auto 52px; transition: background var(--b-fast); }
.k-row:nth-child(even) { background: rgba(255, 255, 255, .022); }
.k-row:hover { background: var(--b-raise); }
.k-row:focus:not(:focus-visible) { outline: none; }
.k-row:focus-visible { outline: 1px solid var(--b-line-2); outline-offset: -1px; }
.k-name { display: grid; min-width: 0; }
.k-name b { font: 500 14.5px/1.3 var(--b-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-name small { font: 500 11px/1.3 var(--b-mono); color: var(--b-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-role, .k-phone, .k-mail, .k-city { font: 500 12px/1.4 var(--b-mono); color: var(--b-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.k-role { color: var(--b-lime); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.k-row a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.k-row a:hover { color: var(--b-ink); border-bottom-color: var(--b-line-2); }
.k-sub, .k-call { display: none; }
.k-row .lk-more { justify-self: end; }
/* ListKit: no indent until Select is on */
.k-row.lk-row { padding-left: 14px !important; }
.lk-picking .k-row.lk-row { padding-left: 48px !important; }
.lk-picking .k-row .lk-more { visibility: hidden; }
.lk-picking .k-row a { pointer-events: none; }   /* while choosing, a tap on the phone or mail chooses the row */
.k-row > .lk-check { left: 14px; }
.k-row.is-selected { background: rgba(214, 251, 0, .055) !important; }

.k-empty { padding: 56px 0; display: grid; gap: 10px; justify-items: start; }
.k-empty-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* windows */
.k-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--b-line-2); border-radius: 14px; background: var(--b-surface); color: var(--b-ink); overflow: auto; overscroll-behavior: contain; }
.k-dlg::backdrop { background: rgba(0, 0, 0, .66); }
.k-dlg-in { display: grid; gap: 16px; padding: 22px; }
.k-dlg [tabindex="-1"]:focus { outline: none; }
.k-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.k-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.k-quick .b-chip { height: 28px; padding: 0 10px; font-size: 10.5px; max-width: 220px; }
.k-quick .b-chip { overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 26px; }
.k-reach { display: flex; flex-wrap: wrap; gap: 8px; }
.k-reach .b-chip { height: 36px; }
.k-acts { display: flex; gap: 10px; align-items: center; }
.k-acts .b-chip:not(.b-icon) { min-width: 108px; }
.k-acts .k-del { width: 40px; height: 40px; }
.k-gap { flex: 1; }
.k-err { margin: 0; color: var(--b-warn); font: 500 12px/1.5 var(--b-mono); }

/* lists to choose from (import, call sheets) */
.k-pickhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.k-pickhead .b-data { color: var(--b-mute); }
.k-picks { display: grid; gap: 2px; max-height: min(52vh, 460px); overflow: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px; }
.k-pick { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; border: 0; border-radius: var(--b-r-field); background: transparent; color: var(--b-ink); text-align: left; cursor: pointer; transition: background var(--b-fast); }
.k-pick:nth-child(even) { background: rgba(255, 255, 255, .022); }
.k-pick:hover:not(:disabled) { background: var(--b-raise); }
.k-pick:disabled { cursor: default; }
.k-pick-m { display: grid; min-width: 0; flex: 1; }
.k-pick-m b { font: 500 14.5px/1.3 var(--b-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-pick-m small { font: 500 11.5px/1.4 var(--b-mono); color: var(--b-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-box { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--b-line-2); border-radius: 5px; position: relative; transition: border-color var(--b-fast); }
.k-pick.is-on .k-box { border-color: var(--b-lime); }
.k-pick.is-on .k-box::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px; border: solid var(--b-lime); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.k-sheet-st { flex: none; font: 500 11px var(--b-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--b-lime); }
.k-sheet.is-on .k-pick-m b { color: var(--b-lime); }
.k-open { justify-self: start; margin: 2px 10px 8px; }
.k-wait { padding: 12px 10px; }

/* ---------------------------------------------------------------- phones (html.mf): one row = name, role · city, a call chip */
html.mf .k-desk, html.mf body .btn.b-new.k-desk { display: none !important; }
html.mf .lk-bar { display: none !important; }
html.mf .k-search { max-width: none; }
html.mf .k-roles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; gap: 18px; }
html.mf .k-roles::-webkit-scrollbar { display: none; }
html.mf .k-roles button { flex: none; white-space: nowrap; }
html.mf .k-head { display: none; }
html.mf .k-row { grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "name call more" "sub call more"; gap: 2px 6px; min-height: 64px; padding: 8px 0 8px 12px; contain-intrinsic-size: auto 64px; }
html.mf .k-name { grid-area: name; }
html.mf .k-name b { font-size: 16px; }
html.mf .k-name small, html.mf .k-role, html.mf .k-phone, html.mf .k-mail, html.mf .k-city { display: none; }
html.mf .k-sub { grid-area: sub; display: block; font: 500 11px/1.4 var(--b-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--b-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.mf .k-call { grid-area: call; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--b-r-field); color: var(--b-lime); border: 0 !important; }
html.mf .k-call svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.mf .k-row .lk-more { grid-area: more; width: 44px; height: 44px; padding: 0 0 6px; }
html.mf .lk-picking .k-row.lk-row { padding-left: 46px !important; }
html.mf .lk-picking .k-call { visibility: hidden; }
html.mf .k-row > .lk-check { left: 12px; width: 22px !important; height: 22px !important; min-height: 0 !important; min-width: 0 !important; margin-top: -11px; }
html.mf .k-list { padding-bottom: calc(var(--mf-bar-h, 64px) + env(safe-area-inset-bottom) + 24px); }

/* windows become sheets from the bottom on the phone */
html.mf .k-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; max-height: calc(100dvh - 40px - env(safe-area-inset-top)); }
html.mf .k-dlg-in { padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); }
html.mf .k-dlg .b-input, html.mf .k-dlg .b-textarea { font-size: 16px; height: 46px; }
html.mf .k-dlg .b-textarea { height: auto; }
html.mf .k-acts .b-chip:not(.b-icon) { flex: 1; min-width: 0; height: 48px; }
html.mf .k-acts .k-del { width: 48px; height: 48px; }
html.mf .k-acts .k-gap { display: none; }
html.mf .k-quick .b-chip { height: 34px; padding: 0 12px; line-height: 32px; max-width: 46vw; }
html.mf .k-reach .b-chip { height: 44px; flex: 1 1 auto; }
html.mf .k-picks { max-height: 56dvh; }
html.mf .k-pick { min-height: 58px; }

/* iPad / narrow desktop: fewer columns */
@media (max-width: 1100px) { html:not(.mf) :is(.k-head, .k-row) { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.3fr) 36px; } html:not(.mf) :is(.k-head > :nth-child(5), .k-city) { display: none; } }
@media (max-width: 860px) { html:not(.mf) :is(.k-head, .k-row) { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr) 36px; } html:not(.mf) :is(.k-head > :nth-child(4), .k-mail) { display: none; } }
@media (prefers-reduced-motion: reduce) { .k-row, .k-pick { transition: none; } }
/* touch: no hover colour left on a chip after it was tapped off */
@media (hover: none) { .k-quick .b-chip:not(.is-on):hover { border-color: var(--b-line-2); } }
