/* Theme (user, 2026-11-26): the layout, shapes and type sizes of the operations-board design, in the app's own colours
   (Bootstrap light/dark, blue for actions, the status colours in app.css). Geist font.
   Loaded after Bootstrap and app.css. */
/* Geist (SIL Open Font License, lib/geist/LICENSE.TXT), stored in the app so browsers fetch nothing from outside. */
@font-face { font-family: Geist; src: url("../lib/geist/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root, [data-bs-theme="light"] {
    --t-bg: #f8f9fa; --t-panel: #fff; --t-wait: #eef0f3; --t-ink: #212529; --t-muted: #6c757d; --t-line: #dee2e6;
    --t-pri: #1565c0; --t-pri-soft: #e3edf9; --t-hatch: #0000000a;
}
[data-bs-theme="dark"] {
    --t-bg: #212529; --t-panel: #2b3035; --t-wait: #262a2f; --t-ink: #dee2e6; --t-muted: #adb5bd; --t-line: #495057;
    --t-pri: #3d86e0; --t-pri-soft: #1d3350; --t-hatch: #ffffff08;
}
:root, [data-bs-theme] { --bs-font-sans-serif: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; }

body, [data-bs-theme="dark"] body { background: var(--t-bg); font-family: var(--bs-font-sans-serif); font-size: 15px; }

/* nav */




/* headings */
.page-head h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
h2, .h5, h5 { letter-spacing: -.01em; }

/* panels, buttons, inputs: the design's shapes */
.card { border-radius: 10px; box-shadow: 0 1px 0 #0000000d; }
.card-header { background: transparent; font-weight: 600; }
.btn { font-weight: 500; border-radius: 8px; }
.form-control, .form-select { border-radius: 8px; }
.form-label { color: var(--bs-secondary-color); font-size: 13px; }

/* status: a pill in the status colour, text centred inside it (no dot, user 2026-11-26) */
.badge.status { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; white-space: normal; text-align: center;
    line-height: 1.2; padding: .4em .8em; vertical-align: middle; font-weight: 600; border-radius: 999px; }

/* status counts */
.status-filter { border-radius: 8px; padding: 5px 10px; font-size: 13px; }
.status-filter .n { font-variant-numeric: tabular-nums; }
.status-filter .dot, .fam-chip .dot { display: none; } /* no dots on the filters or family chips (user 2026-11-26) */

/* go-live: outlined when close, filled when passed */
.golive { font-size: 12.5px; line-height: 1.3; }
.golive small { font-size: 11px; }
.golive.past { color: #fff; background: var(--ct-waiting); border-radius: 6px; padding: 0 6px; display: inline-block; }
.golive.past small { color: #fff; opacity: .9; }
/* the pill holds both lines (date and "in 6 days"), so its outline never breaks across lines */
.golive.soon { border: 1px solid var(--ct-mapping); border-radius: 6px; padding: 1px 6px; display: inline-block; vertical-align: middle; }
.golive.past { padding: 1px 6px; vertical-align: middle; }

/* tags and meters */
.fam-chip, .link-chip { border-radius: 999px; }
.progress { height: 6px; border-radius: 3px; }
.progress.thin { height: 4px; }
.d-flex > .progress.flex-grow-1 { min-width: 40px; }

/* rounds */
details.round.current { box-shadow: inset 3px 0 0 var(--t-pri); }

/* board: lanes left to right, lanes waiting on the clinic hatched; fills the window (fitBoard in app.js) */
main:has(.board) { max-width: none; padding-bottom: 0 !important; }
.board { align-items: stretch; padding-bottom: 6px; margin-bottom: 0; scrollbar-width: thin; scrollbar-color: var(--t-muted) transparent; }
.board-col { display: flex; flex-direction: column; min-height: 0; background: transparent; border: 1px solid var(--t-line); border-radius: 12px; flex-basis: 270px; }
.board-col.client { background: repeating-linear-gradient(135deg, transparent 0 9px, var(--t-hatch) 9px 18px), var(--t-wait); border-style: dashed; }
.board-cards { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; padding: 0 2px 4px;
    scrollbar-width: thin; scrollbar-color: var(--t-line) transparent; overscroll-behavior: contain; }
.board-head { align-items: flex-start; padding: 4px 4px 10px; }
.board-head b { display: block; font-size: 14px; font-weight: 600; }
.board-head .lane-sub { font-size: 12px; color: var(--t-muted); }
.board-head em { font-style: normal; font-size: 22px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; margin-left: auto; }
.board-card { border-radius: 10px; }
.board-card.hold { opacity: .72; }
.next { font-size: 13.5px; }

/* tables */
.table thead th { font-weight: 500; text-transform: none; font-size: 13px; letter-spacing: 0; }
dl.facts dt, .facts-label { text-transform: none; letter-spacing: 0; font-size: 13px; }

/* toasts */
.toast { border-radius: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* dropdowns: native selects and the multi-select (js/multiselect.js) share one chevron, one focus ring, one menu look */
:root, [data-bs-theme="light"] { --t-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 6 4 4 4-4'/%3e%3c/svg%3e"); }
[data-bs-theme="dark"] { --t-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m4 6 4 4 4-4'/%3e%3c/svg%3e"); }
.form-select, [data-bs-theme="dark"] .form-select { --bs-form-select-bg-img: var(--t-chev); background-size: 14px 14px; background-position: right .6rem center; padding-right: 2rem; cursor: pointer; }
.form-select:hover, .ms-control:hover { border-color: var(--t-muted); }
.form-select option { background: var(--t-panel); color: var(--t-ink); }

.ms-control { min-height: 38px; padding: 4px 56px 4px 6px; border-radius: 8px; background: var(--t-panel); }
.ms-control.open, .ms-control:focus-within { border-color: var(--t-pri); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--t-pri) 25%, transparent); }
.ms-input, .ms-input:focus, .ms-input:focus-visible { outline: none; box-shadow: none; color: var(--t-ink); }
.ms-input::placeholder { color: var(--t-muted); }
.ms-caret { font-size: 0; width: 14px; height: 14px; right: 10px; background: var(--t-chev) no-repeat center / 14px 14px; transition: transform .15s; }
.ms-control.open .ms-caret { transform: translateY(-50%) rotate(180deg); }
.ms-clear { right: 30px; color: var(--t-muted); font-size: 18px; width: 22px; height: 22px; line-height: 20px; border-radius: 50%; text-align: center; }
.ms-clear:hover, .ms-clear:focus-visible { background: var(--t-bg); color: var(--t-ink); }
.ms-chip { background: var(--t-bg); border: 1px solid var(--t-line); color: var(--t-ink); font-size: 13px; font-weight: 500; padding: 1px 3px 1px 9px; }
.ms-chip-x { color: var(--t-muted); }
.ms-chip-x:hover, .ms-chip-x:focus-visible { background: var(--ct-waiting); color: #fff; }
.ms-menu { top: calc(100% + 6px); padding: 6px; border-radius: 10px; border: 1px solid var(--t-line); background: var(--t-panel);
    box-shadow: 0 12px 32px #0000001f, 0 1px 0 #0000000d; scrollbar-width: thin; scrollbar-color: var(--t-line) transparent; }
[data-bs-theme="dark"] .ms-menu { box-shadow: 0 12px 32px #00000080; }
.ms-option { gap: 10px; padding: 8px 10px; min-height: 38px; border-radius: 7px; font-size: 14px; color: var(--t-ink); }
.ms-option.active, .ms-option:hover { background: var(--t-bg); }
.ms-option[aria-selected="true"] { font-weight: 600; }
/* each option shows a checkbox, since several can be picked */
.ms-check { width: 16px; height: 16px; border: 1.5px solid var(--t-muted); border-radius: 4px; display: inline-grid; place-items: center;
    font-size: 11px; font-weight: 700; line-height: 1; color: #fff; }
.ms-option[aria-selected="true"] .ms-check { background: var(--t-pri); border-color: var(--t-pri); }
.ms-create { border-top: 1px solid var(--t-line); margin-top: 4px; padding-top: 10px; border-radius: 0 0 7px 7px; color: var(--t-ink); }
.ms-create .ms-check { border: 0; color: var(--t-pri); font-size: 16px; }
.ms-empty { padding: 8px 10px; color: var(--t-muted); font-size: 14px; }
.ms-option mark { background: var(--t-pri-soft); color: inherit; border-radius: 2px; }


/* assignee / developer circles: round, readable initials, slight overlap, full name on hover */
.people .avatar { box-sizing: border-box; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .02em; border: 2px solid var(--bs-body-bg); margin-left: -7px;
    background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); cursor: default; position: relative; }
.people .avatar:first-child { margin-left: 0; }
.people .avatar:hover { z-index: 1; border-color: var(--bs-primary-border-subtle); }
.people .people-names { margin-left: 8px; }

/* line icons (js/icons.js): same colour as the text, a little larger than it */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
    flex: 0 0 auto; vertical-align: -.2em; }
.btn .ic, .nav-link .ic, h2 .ic { margin-right: .4em; }
h2 .ic { color: var(--t-pri); }
.btn-link .ic { margin-right: .25em; }

.empty .icon { width: 64px; height: 64px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--t-pri-soft); color: var(--t-pri); opacity: 1; font-size: 26px; }
.empty .icon .ic { width: 30px; height: 30px; stroke-width: 1.7; vertical-align: 0; }
/* the lock on blocked checklist items and the arrow on round headers, drawn the same way */
.check-item .item-req::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='4.5' y='10.5' width='15' height='10.5' rx='2'/%3e%3cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='4.5' y='10.5' width='15' height='10.5' rx='2'/%3e%3cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3e%3c/svg%3e") center / contain no-repeat; }
details.round > summary::before { content: ""; width: 14px; height: 14px; flex: 0 0 14px; background: currentColor; color: var(--bs-secondary-color);
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m9 18 6-6-6-6'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m9 18 6-6-6-6'/%3e%3c/svg%3e") center / contain no-repeat; }

/* people picker opened from the circles (userMenu in app.js) */
.pick-host { position: relative; display: inline-block; }
.pick-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; color: inherit;
    border-radius: 999px; padding: 2px 8px 2px 2px; cursor: pointer; font: inherit; }
.pick-btn:hover, .pick-btn[aria-expanded="true"] { border-color: var(--t-line); background: var(--bs-body-bg); }
.pick-btn .text-danger { padding-left: 6px; }
.pick-btn .avatar { cursor: pointer; }
.pick-plus { color: var(--t-muted); }
.pick-btn:hover .pick-plus, .pick-btn[aria-expanded="true"] .pick-plus { color: var(--t-pri); }
.pick-menu { position: absolute; z-index: 1060; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow-y: auto; padding: 6px;
    background: var(--bs-body-bg); border: 1px solid var(--t-line); border-radius: 12px; box-shadow: 0 12px 32px #0000002e; font-size: 14px; }
[data-bs-theme="dark"] .pick-menu { box-shadow: 0 12px 32px #00000080; }
.pick-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: inherit; text-align: left;
    padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.pick-item:hover, .pick-item:focus-visible { background: var(--t-bg); outline: none; }
.pick-item:focus-visible { box-shadow: inset 0 0 0 2px var(--t-pri); }
.pick-item .avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px;
    font-size: 10.5px; font-weight: 600; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.pick-box { width: 16px; height: 16px; flex: 0 0 16px; border: 1.5px solid var(--t-muted); border-radius: 4px; display: grid; place-items: center; }
.pick-item[aria-checked="true"] .pick-box { background: var(--t-pri); border-color: var(--t-pri); }
.pick-item[aria-checked="true"] .pick-box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pick-item[aria-checked="true"] .pick-name { font-weight: 600; }
.pick-state { padding: 6px 8px 2px; margin-top: 4px; border-top: 1px solid var(--t-line); font-size: 12px; color: var(--t-muted); }

/* source systems: each family is its own framed block inside the system card */
.sys-card .sf-row { border: 1px solid var(--t-line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: color-mix(in srgb, var(--bs-body-color) 3.5%, var(--bs-body-bg)); }
.sys-card .sf-row > div:first-child strong { font-size: 14px; }
.sys-card .sf-none { border-top: 1px solid var(--t-line); padding-top: 10px; margin-top: 10px; }
/* adding a family: one dashed chip per family the system lacks */
.sf-add-row { margin-top: 12px; }
.sf-add-row > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500;
    color: var(--t-pri); padding: 4px 10px 4px 8px; border-radius: 8px; }
.sf-add-row > summary::-webkit-details-marker { display: none; }
.sf-add-row > summary:hover { background: var(--t-pri-soft); }
.sf-add-row > summary .ic { width: 14px; height: 14px; transition: transform .15s; }
.sf-add-row[open] > summary .ic { transform: rotate(45deg); }
.sf-add-n { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
    background: var(--t-pri-soft); color: var(--t-pri); }
.sf-add-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 2px 2px; }
.sf-add { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
    border: 1px dashed var(--t-muted); background: transparent; color: var(--t-muted); cursor: pointer; }
.sf-add .ic { width: 14px; height: 14px; }
.sf-add:hover, .sf-add:focus-visible { border-style: solid; border-color: var(--t-pri); color: var(--t-pri); background: var(--t-pri-soft); }
.sf-add:disabled { opacity: .6; cursor: progress; }

/* new system form: families with their developers */
.ns-fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 6px; }
.ns-fam .pick-btn, .ns-fam-pick { white-space: nowrap; }
.ns-fam { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 6px 4px 10px;
    border: 1px solid var(--t-line); border-radius: 10px; }
.ns-fam:has(.ns-tick:checked) { border-color: var(--t-pri); background: var(--t-pri-soft); }
.ns-fam-pick { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.ns-fam-pick .form-check-input { margin: 0; }

/* tickets: one row per assignment (clinic family or system queries) */
.tickets { display: grid; gap: 8px; }
.ticket { display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 130px 90px; align-items: center; gap: 12px; padding: 10px 14px; }
.ticket:hover { border-color: var(--t-pri); }
.ticket.done { opacity: .7; }
.ticket-kind { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--t-pri-soft); color: var(--t-pri); }
.ticket-kind .ic { width: 18px; height: 18px; vertical-align: 0; }
.ticket-main { display: flex; flex-direction: column; min-width: 0; }
.ticket-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-sub { font-size: 13px; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ticket-meta .progress { width: 100%; }
.ticket-people { justify-self: end; }
@media (max-width: 767.98px) {
    .ticket { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "k m p" "k s d"; row-gap: 8px; }
    .ticket-kind { grid-area: k; align-self: start; }
    .ticket-main { grid-area: m; }
    .ticket-people { grid-area: p; }
    .ticket-meta { grid-area: s; }
    .ticket-due { grid-area: d; text-align: right; }
    .ticket-title, .ticket-sub { white-space: normal; }
}

/* date picker (js/datepicker.js) */
.dp { position: relative; display: inline-block; max-width: 100%; }
.form-control + .dp, .col-sm-6 > .dp, .col-md-3 > .dp { display: block; }
.dp-btn { display: inline-flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; width: 100%; min-width: 11.5rem; }
.dp-btn.w-auto { width: auto; }
.dp-btn .ic { color: var(--t-pri); flex: 0 0 auto; }
.dp-empty { color: var(--bs-secondary-color); }
.dp-pop { position: absolute; z-index: 1070; top: calc(100% + 6px); left: 0; width: 296px; padding: 10px; background: var(--bs-body-bg);
    border: 1px solid var(--t-line); border-radius: 12px; box-shadow: 0 14px 36px #0000002e; font-size: 14px; }
[data-bs-theme="dark"] .dp-pop { box-shadow: 0 14px 36px #00000080; }
.dp-pop.right { left: auto; right: 0; }
.dp-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) 76px 32px; gap: 6px; align-items: center; margin-bottom: 8px; }
.dp-head select { font: inherit; font-weight: 600; padding: 4px 6px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--bs-body-bg); color: inherit; }
.dp-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.dp-nav:hover { background: var(--t-bg); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--bs-secondary-color); padding: 2px 0 4px; }
.dp-day { height: 36px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--t-bg); }
.dp-day:focus-visible { outline: 2px solid var(--t-pri); outline-offset: -2px; }
.dp-day.we { color: var(--bs-secondary-color); }
.dp-day.out { opacity: .4; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--t-pri); font-weight: 600; }
.dp-day.sel { background: var(--t-pri); color: #fff; font-weight: 600; }
.dp-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--t-line); }
.dp-q { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--t-line); background: transparent; color: inherit; cursor: pointer; }
.dp-q:hover, .dp-q:focus-visible { border-color: var(--t-pri); color: var(--t-pri); background: var(--t-pri-soft); }
.dp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--bs-secondary-color); }
.dp-clear { border: 0; background: transparent; color: var(--bs-danger-text-emphasis); cursor: pointer; font-size: 12.5px; padding: 2px 4px; }
@media (max-width: 400px) { .dp-pop { width: min(296px, calc(100vw - 32px)); } }

/* comments */
.cm-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.cm-item { display: flex; gap: 10px; align-items: flex-start; }
.cm-item > .avatar, .cm-sug .avatar, .nb-item .avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: inline-grid; place-items: center;
    font-size: 11px; font-weight: 600; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.cm-body { flex: 1 1 auto; min-width: 0; background: color-mix(in srgb, var(--bs-body-color) 4%, var(--bs-body-bg)); border-radius: 10px; padding: 8px 10px; }
.cm-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.cm-head time { color: var(--bs-secondary-color); font-size: 12px; }
.cm-del { margin-left: auto; border: 0; background: transparent; color: var(--bs-secondary-color); padding: 0 2px; cursor: pointer; opacity: .6; }
.cm-del:hover, .cm-del:focus-visible { color: var(--bs-danger-text-emphasis); opacity: 1; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin-top: 2px; }
.cm-mention { color: var(--t-pri); background: var(--t-pri-soft); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.cm-box { position: relative; }
.cm-suggest { position: absolute; z-index: 1065; left: 0; top: calc(100% + 4px); min-width: 220px; list-style: none; margin: 0; padding: 4px;
    background: var(--bs-body-bg); border: 1px solid var(--t-line); border-radius: 10px; box-shadow: 0 12px 32px #0000002e; }
.cm-sug { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.cm-sug.active, .cm-sug:hover { background: var(--t-bg); }
.sf-comments { display: inline-flex; align-items: center; gap: 3px; color: var(--bs-secondary-color); text-decoration: none; }
.sf-comments:hover, .sf-comments[aria-expanded="true"] { color: var(--t-pri); }
.sf-comments .n { font-size: 12px; font-weight: 600; }
.sf-thread { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--t-line); }
/* the bell */
.nb-host { position: relative; display: inline-block; }
#bell { position: relative; display: inline-flex; align-items: center; }
#bell .ic { margin: 0; }
.nb-count { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ct-waiting);
    color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; border: 2px solid var(--bs-body-bg); }
.nb-count[hidden] { display: none; }
.nb-panel { position: absolute; z-index: 1080; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto;
    background: var(--bs-body-bg); border: 1px solid var(--t-line); border-radius: 12px; box-shadow: 0 14px 36px #00000033; }
@media (max-width: 575.98px) { .nb-panel { position: fixed; top: calc(var(--nav-h, 56px) + 4px); left: 12px; right: 12px; width: auto; } }
.nb-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--t-line); position: sticky; top: 0; background: var(--bs-body-bg); }
.nb-all { border: 0; background: transparent; color: var(--t-pri); font-size: 13px; cursor: pointer; }
.nb-list { list-style: none; margin: 0; padding: 4px; }
.nb-item { display: flex; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 13.5px; }
.nb-item:hover, .nb-item:focus-visible { background: var(--t-bg); outline: none; }
.nb-item.unread { background: var(--t-pri-soft); font-weight: 500; }
.nb-item.unread:hover { background: color-mix(in srgb, var(--t-pri) 18%, var(--bs-body-bg)); }
.nb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.nb-more { font-size: 12px; font-weight: 600; color: var(--bs-secondary-color); white-space: nowrap; }
.nb-text time { font-size: 12px; color: var(--bs-secondary-color); font-weight: 400; }
.nb-empty { margin: 0; padding: 24px 12px; text-align: center; color: var(--bs-secondary-color); display: grid; gap: 6px; justify-items: center; }
.nb-empty .ic { width: 26px; height: 26px; }



/* files */
.fl-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.fl-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--t-line); border-radius: 10px; }
.fl-ext { position: relative; width: 34px; height: 38px; flex: 0 0 34px; color: var(--t-pri); display: grid; place-items: center; }
.fl-ext .ic { width: 34px; height: 38px; stroke-width: 1.4; }
.fl-ext b { position: absolute; bottom: 7px; font-size: 8.5px; letter-spacing: .02em; }
.fl-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.fl-main a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-meta { font-size: 12px; color: var(--bs-secondary-color); }
.fl-del { border: 0; background: transparent; color: var(--bs-secondary-color); cursor: pointer; opacity: .6; }
.fl-del:hover, .fl-del:focus-visible { color: var(--bs-danger-text-emphasis); opacity: 1; }
.fl-drop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--t-line); border-radius: 10px; cursor: pointer; margin: 0; font-size: 14px; }
.fl-drop .ic { width: 22px; height: 22px; color: var(--t-pri); flex: 0 0 auto; }
.fl-drop:hover, .fl-drop.over, .fl-drop:focus-within { border-color: var(--t-pri); background: var(--t-pri-soft); }
input[type=file].visually-hidden:focus-visible + .fl-progress, .fl-drop:has(+ input:focus-visible) { outline: 2px solid var(--t-pri); outline-offset: 2px; }
.fl-progress { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--bs-secondary-color); }
.sys-files-btn { display: inline-flex; align-items: center; gap: 2px; color: var(--bs-secondary-color); text-decoration: none; }
.sys-files-btn:hover, .sys-files-btn[aria-expanded="true"] { color: var(--t-pri); }
.sys-files-btn .n { font-size: 12px; font-weight: 600; }
.sys-files { margin: 8px 0 4px; }

/* priority flags */
.prio { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 3px 7px; border-radius: 999px;
    border: 1px solid currentColor; white-space: nowrap; vertical-align: middle; }
.prio .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.prio-Urgent { color: #fff; background: var(--ct-waiting); border-color: var(--ct-waiting); }
.prio-High { color: var(--ct-mapping); }
.prio-Normal { color: var(--bs-secondary-color); border-color: var(--t-line); }
.prio-Low { color: var(--bs-secondary-color); border-style: dashed; border-color: var(--t-line); }
.prio-btn { border: 0; background: transparent; padding: 0; cursor: pointer; line-height: 1; }
.prio-btn:hover .prio, .prio-btn[aria-expanded="true"] .prio { box-shadow: 0 0 0 2px var(--t-pri-soft); }
.prio-btn:focus-visible { outline: 2px solid var(--t-pri); outline-offset: 2px; border-radius: 999px; }
.prio-menu { min-width: 140px; }
.prio-menu .pick-item[aria-checked="true"] { background: var(--t-bg); }
.ticket-title .prio { margin-left: 4px; }

/* clinic page: Activity is a sidebar along the right edge of the screen (wide screens), at the bottom otherwise */
.activity-side .act-item { padding: 8px 0; border-bottom: 1px solid var(--t-line); font-size: 13px; }
.activity-side .act-item:last-child { border-bottom: 0; }
.activity-side .when { display: block; font-size: 12px; color: var(--bs-secondary-color); }
.activity-side { margin-top: 1rem; }
@media (min-width: 1200px) {
    main:has(.activity-side) { max-width: none; padding-right: calc(340px + 1.5rem) !important; }
    .activity-side { position: fixed; top: var(--nav-h, 56px); right: 0; bottom: 0; width: 340px; margin: 0; border-radius: 0;
        border-width: 0 0 0 1px; overflow-y: auto; z-index: 5; box-shadow: none; }
    .activity-side .activity { max-height: none; overflow: visible; }
    .activity-side h2 { position: sticky; top: -1rem; background: var(--bs-card-bg, var(--bs-body-bg)); padding: .25rem 0; margin-top: -.25rem; }
}

/* files sent with comments */
.cm-files { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.cm-files li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--bs-body-bg); }
.cm-files a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-files .ic, .cm-chip .ic, .fl-meta .ic { width: 13px; height: 13px; }
.cm-pending { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cm-pending:empty { display: none; }
.cm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 4px 3px 8px; border-radius: 999px; background: var(--t-pri-soft); }
.cm-chip button { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 50%; line-height: 1; color: var(--bs-secondary-color); }
.cm-chip button:hover { background: var(--ct-waiting); color: #fff; }
.cm-box.over textarea { border-color: var(--t-pri); background: var(--t-pri-soft); }
.cm-attach { display: inline-flex; align-items: center; }
.cm-attach .ic { margin: 0; }
.cm-form:has(input[type=file]:focus-visible) .cm-attach { outline: 2px solid var(--t-pri); outline-offset: 2px; }

/* tickets rows: a div (it holds buttons), the whole row still opens the item */
.ticket { cursor: pointer; }
/* visible overflow so the priority list under the flag is not clipped; the link itself is shortened instead */
.ticket .ticket-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; white-space: normal; overflow: visible; }
.ticket .ticket-main { overflow: visible; }
.ticket .ticket-title a { min-width: 0; max-width: 100%; white-space: nowrap; }
.ticket .ticket-title .pick-host { flex: 0 0 auto; }
.ticket .ticket-title a { overflow: hidden; text-overflow: ellipsis; }
.ticket .ticket-title a:hover { text-decoration: underline !important; }
.ticket .ticket-people { position: relative; }
.ticket .ticket-people .pick-menu { left: auto; right: 0; }

/* board cards: comment count */
.cc-count { display: inline-flex; align-items: center; gap: 3px; color: var(--bs-secondary-color); font-weight: 600; }
.cc-count .ic { width: 14px; height: 14px; }
.board-card .prio { flex: 0 0 auto; }

/* board family cards hold controls: a div, the whole card still opens the family */
.board-card[data-href] { cursor: pointer; }
.board-card .bc-title:hover { text-decoration: underline !important; }
.board-card .pick-btn { padding: 0 6px 0 0; }
.board-card .pick-btn .avatar { width: 24px; height: 24px; font-size: 10px; }

/* a view switch (board: Families / Clinics): a grey track with the chosen option raised, unlike the blue action buttons */
.seg-toggle { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: color-mix(in srgb, var(--bs-body-color) 8%, var(--bs-body-bg)); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
    color: var(--bs-secondary-color); text-decoration: none; }
.seg-opt .ic { width: 15px; height: 15px; }
.seg-opt:hover { color: var(--bs-body-color); }
.seg-opt.on { background: var(--bs-body-bg); color: var(--bs-body-color); box-shadow: 0 1px 2px #00000026, 0 0 0 1px var(--t-line); }
.seg-opt.on .ic { color: var(--t-pri); }
.seg-opt:focus-visible { outline: 2px solid var(--t-pri); outline-offset: 1px; }

/* UI access missing: a warning, not a status */
.ui-warn { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ct-mapping);
    padding: 1px 7px; border: 1px dashed var(--ct-mapping); border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.ui-warn .ic { width: 12px; height: 12px; }

/* the statuses added 2026-11-26 */
:root, [data-bs-theme="light"] { --ct-validation: #ad1457; --ct-fixes: #d84315; --ct-data: #827717; --ct-delta: #00838f; }
[data-bs-theme="dark"] { --ct-validation: #e05a8f; --ct-fixes: #f0703f; --ct-data: #b5a82e; --ct-delta: #26a9b6; }
.st-WithNexTech { background: var(--ct-testsent); } .st-ClinicValidation { background: var(--ct-validation); }
.st-Fixes { background: var(--ct-fixes); } .st-WaitingForData { background: var(--ct-data); }
.st-Delta { background: var(--ct-delta); } .st-Live { background: var(--ct-live); }
/* board lanes by who has the next move: clinic hatched, NexTech tinted, done and paused faded */
.board-col.nextech { background: color-mix(in srgb, var(--ct-testsent) 7%, transparent); border-style: dotted; border-color: color-mix(in srgb, var(--ct-testsent) 45%, var(--t-line)); }
.board-col.done, .board-col.paused { background: color-mix(in srgb, var(--bs-body-color) 3%, transparent); }
.board-col.done .board-head b, .board-col.paused .board-head b { color: var(--bs-secondary-color); }
.board-head .lane-sub { display: block; }
/* days in status: amber after a week, red after two, while the clinic or NexTech has the ball */
.since { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--bs-secondary-color); white-space: nowrap; }
.since .ic { width: 12px; height: 12px; }
.since.slow { color: var(--ct-mapping); }
.since.late { color: #fff; background: var(--ct-waiting); border-radius: 999px; padding: 1px 6px; }
#head-since .since { margin-left: 4px; font-size: 12.5px; }

/* blocked out of turn */
.blocked-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--ct-waiting);
    padding: 1px 7px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.blocked-chip .ic { width: 12px; height: 12px; }
#head-blocked .blocked-chip, #head-ui .ui-warn { margin-left: 4px; }
.blocked-box { border: 1px dashed var(--t-line); border-radius: 10px; padding: 6px 10px 10px; }
.blocked-box legend { float: none; width: auto; padding: 0 4px; margin: 0; font-size: 13px; }
.golive-note { white-space: normal; max-width: 140px; }

/* families stand out on the board: a coloured stripe on the card and a tag with the family's name (user 2026-11-26) */
:root, [data-bs-theme="light"] { --fam-PPlus: #3949ab; --fam-IcpEmr: #00897b; --fam-IcpDocuments: #6d8f00; --fam-NexCloudPm: #8e24aa; --fam-NexCloudDocuments: #c2185b; }
[data-bs-theme="dark"] { --fam-PPlus: #7986cb; --fam-IcpEmr: #26a69a; --fam-IcpDocuments: #9ccc65; --fam-NexCloudPm: #ba68c8; --fam-NexCloudDocuments: #f06292; }
.fam-PPlus { --fam: var(--fam-PPlus); } .fam-IcpEmr { --fam: var(--fam-IcpEmr); } .fam-IcpDocuments { --fam: var(--fam-IcpDocuments); }
.fam-NexCloudPm { --fam: var(--fam-NexCloudPm); } .fam-NexCloudDocuments { --fam: var(--fam-NexCloudDocuments); }
.board-card.fam-card, .clinic-card.fam-card, .ticket.fam-card { border-left: 5px solid var(--fam, var(--t-line)) !important; }
.ticket .fam-tag { font-size: 11px; padding: 1px 7px; }
.fam-tag { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: #fff; background: var(--fam, var(--t-muted)); }
[data-bs-theme="dark"] .fam-tag { color: #111; }

/* family chips in lists take the family colour: tinted background, coloured left edge */
.fam-chip[class*="fam-"] { border-left: 4px solid var(--fam, var(--t-line)); background: color-mix(in srgb, var(--fam, transparent) 10%, var(--bs-body-bg));
    font-weight: 600; color: var(--bs-body-color); }
.fam-chip[class*="fam-"]:hover { border-color: var(--fam, var(--t-line)); }

/* internal work (hidden from Project Managers) */
.int-mark { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--bs-secondary-color);
    border: 1px dashed var(--t-line); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: middle; }
.cm-int { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.cm-int .form-check-input { margin: 0; }

/* comments shown to Project Managers (external users) */
.cm-share { border: 0; background: transparent; color: var(--bs-secondary-color); padding: 0 2px; cursor: pointer; opacity: .7; }
.cm-share:first-of-type { margin-left: auto; }
.cm-share.on { color: var(--t-pri); opacity: 1; }
.cm-share:hover, .cm-share:focus-visible { opacity: 1; color: var(--t-pri); }
.cm-head .cm-share + .cm-del { margin-left: 4px; }
.share-mark { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--t-pri); background: var(--t-pri-soft); border-radius: 4px; padding: 0 6px; margin-top: 2px; }

.fl-item .fl-share { margin-left: auto; }
.fl-item .fl-share + .fl-del { margin-left: 2px; }

/* checklist settings (user 2026-11-26): who it waits on, for how long, due date, person, extra items */
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; }
.item-meta .people .avatar, .tl-meta .people .avatar { width: 20px; height: 20px; font-size: 9.5px; }
.wait-chip { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 0 8px; line-height: 18px; border: 1px solid transparent; }
.wait-chip.w-us { color: var(--t-pri); background: var(--t-pri-soft); }
.wait-chip.w-clinic { color: #9a5b00; background: #fff3dc; }
.wait-chip.w-nextech { color: var(--ct-violet-ink); background: var(--ct-violet-soft); }
[data-bs-theme=dark] .wait-chip.w-clinic { color: #ffc56b; background: #3a2b10; }
[data-bs-theme=dark] .wait-chip.w-nextech { color: var(--ct-violet-ink); background: var(--ct-violet-soft); }
.wait-days { color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.wait-days.mid { color: var(--ct-warn-ink); }
.wait-days.long { color: var(--bs-danger-text-emphasis, var(--ct-danger-ink)); font-weight: 600; }
.item-due { display: inline-flex; align-items: center; gap: 3px; color: var(--bs-secondary-color); }
.item-due svg { width: 12px; height: 12px; }
.item-due.soon { color: var(--ct-warn-ink); }
.item-due.past { color: var(--bs-danger-text-emphasis, var(--ct-danger-ink)); font-weight: 600; }
.item-who { color: var(--bs-secondary-color); font-style: italic; }
.item-actions { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; white-space: nowrap; }
.item-actions .btn-link { padding: 0 4px; color: var(--bs-secondary-color); }
.item-actions .btn-link:hover, .item-actions .btn-link:focus-visible { color: var(--t-pri); }
.item-actions svg { width: 15px; height: 15px; }
.extra-mark { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--t-pri);
    border: 1px dashed var(--t-pri); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: middle; }
.add-extra { margin-top: 8px; border-top: 1px dashed var(--t-line); padding-top: 6px; }
.add-extra > summary { font-size: 13px; color: var(--t-pri); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.add-extra > summary::-webkit-details-marker { display: none; }
.add-extra > summary svg { width: 14px; height: 14px; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; }
.set-group { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.set-group .form-select, .set-group .form-control { width: auto; min-width: 120px; }
.set-label { color: var(--bs-secondary-color); font-size: 12px; }
.set-check { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.set-check .form-check-input { margin: 0; }
.tpl-item { border: 1px solid var(--t-line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.tpl-ro { display: block; }
.items-table td, .items-table th { white-space: nowrap; }
.items-table td:nth-child(3) { white-space: normal; min-width: 220px; }
.items-table tr.not-ready td { opacity: .65; }

/* checklist templates (user 2026-11-26): compact rows, editor under the row, drag to reorder */
.tl-groups { flex-wrap: wrap; }
.tl-count { font-size: 11.5px; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.tl-search { min-width: 200px; }
.tl-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--t-line); background: var(--bs-card-bg, var(--bs-body-bg)); }
.tl-row:last-child { border-bottom: 0; }
.tl-row:hover { background: color-mix(in srgb, var(--t-pri) 4%, var(--bs-card-bg, var(--bs-body-bg))); }
.tl-row.editing { background: var(--t-pri-soft); border-radius: 8px 8px 0 0; border-bottom-color: transparent; }
.tl-row.dragging { opacity: .45; }
.tl-handle { border: 0; background: transparent; color: var(--bs-secondary-color); cursor: grab; padding: 2px; border-radius: 6px; display: inline-flex; }
.tl-handle:active { cursor: grabbing; }
.tl-handle:hover, .tl-handle:focus-visible { color: var(--t-pri); background: var(--t-pri-soft); }
.tl-handle svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.tl-main { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl-text { font-size: 14px; }
.tl-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tl-rule { font-size: 11.5px; color: var(--bs-secondary-color); border: 1px solid var(--t-line); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.tl-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.tl-roles { display: inline-flex; gap: 2px; }
.tl-role { font-size: 10.5px; font-weight: 600; padding: 0 5px; line-height: 18px; border-radius: 4px; color: var(--bs-secondary-color); opacity: .45; border: 1px solid var(--t-line); }
.tl-role.on { opacity: 1; color: var(--t-pri); background: var(--t-pri-soft); border-color: transparent; }
.tl-note { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--bs-secondary-color); max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-note svg { width: 13px; height: 13px; flex: none; }
.tl-note.none { opacity: .35; }
.tl-note.req { color: var(--bs-body-color); font-weight: 600; }
.tl-flag { font-size: 10.5px; font-weight: 700; color: var(--bs-secondary-color); border: 1px dashed var(--t-line); border-radius: 4px; padding: 0 5px; }
.tl-edit-btn { border: 0; background: transparent; color: var(--bs-secondary-color); padding: 3px; border-radius: 6px; display: inline-flex; }
.tl-edit-btn:hover, .tl-edit-btn:focus-visible, .tl-edit-btn[aria-expanded=true] { color: var(--t-pri); background: var(--t-pri-soft); }
.tl-edit-btn svg { width: 15px; height: 15px; }
.tl-editor { background: var(--t-pri-soft); border-radius: 0 0 8px 8px; padding: 10px 12px 12px; margin-bottom: 6px; }
.tl-add + .tl-editor, .tl-editor + .tl-add { border-radius: 8px; }
.tl-list + .tl-editor { border-radius: 8px; margin-top: 6px; }
.tl-add svg { width: 14px; height: 14px; }
@media (max-width: 767.98px) { .tl-row { flex-wrap: wrap; } .tl-meta { width: 100%; justify-content: flex-start; padding-left: 26px; } }

/* family / Kick-off checklist rows: the templates page's row layout (user 2026-11-26) */
.check-item.tl-row { align-items: flex-start; border-radius: 0; padding: 9px 6px; }
.check-item.tl-row > .form-check-input { margin-top: .25rem; }
.check-item.tl-row .item-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.check-item.tl-row .item-line label { font-size: 14px; }
.check-item.tl-row .tl-chips .int-mark, .check-item.tl-row .tl-chips .extra-mark, .check-item.tl-row .tl-chips .na-badge { margin-left: 0; }
.check-item.tl-row .tl-meta { align-self: center; }
.check-item.tl-row .item-actions { margin-left: 0; }
.check-item.tl-row .meta { padding-left: 0; }
.check-item.tl-row.done .tl-meta { opacity: .85; }
details.round .body .round-items { margin: 0 -6px; }
.add-extra { border-top: 0; padding-top: 0; }
.add-extra > summary { font-size: 13px; }
.add-extra > .tl-editor { border-radius: 8px; }
.check-item.tl-row .item-body { flex: 1 1 0; min-width: 0; }
@media (max-width: 767.98px) { .check-item.tl-row .tl-meta { padding-left: calc(1em + .55rem); } }
.check-item.tl-row .tl-meta { font-size: 12px; }
.add-extra > summary { text-decoration: none; }

/* a clinic shows each family's status (user 2026-11-26) */
.fam-st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fam-st + .fam-st { margin-top: 4px; }
.fam-st .fam-chip { margin: 0; min-width: 0; }
.fam-st-cell .fam-st .fam-chip { min-width: 96px; justify-content: center; }
.fam-st-next { font-size: 12.5px; color: var(--bs-secondary-color); flex-basis: 100%; }
.head-fams { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.head-fams .fam-st + .fam-st { margin-top: 0; }
.fam-next + .fam-next { margin-top: 2px; }
.fam-next b { font-weight: 600; margin-right: 2px; }
.fam-dot { display: none; }
/* family statuses on clinic views: smaller type (user 2026-11-26) */
.fam-st .badge.status { font-size: 9.5px; padding: .3em .55em; letter-spacing: .2px; }
.fam-st .fam-chip { font-size: 11px; padding: 1px 6px; }
.fam-st-cell .fam-st .fam-chip { min-width: 84px; }
.fam-st-next, .fam-next { font-size: 12px; }
#next-action .fam-next { font-size: 13px; }
.fam-st-card .fam-st + .fam-st { margin-top: 6px; }
.fam-st-card .fam-st-next { font-size: 11.5px; line-height: 1.3; }

/* Clinics screen: smaller rows switch in the Grid view */
.seg-toggle.seg-sm .seg-opt { padding: 2px 10px; font-size: 12.5px; }
/* Timeline view (user 2026-11-26) */
.tlv { overflow: hidden; }
.tlv-scroll { overflow-x: auto; }
.tlv-grid { min-width: 900px; }
.tlv-line { display: grid; grid-template-columns: 250px 1fr; border-bottom: 1px solid var(--t-line); }
.tlv-line:last-child { border-bottom: 0; }
.tlv-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 10px; border-right: 1px solid var(--t-line); min-width: 0; }
.tlv-label .badge.status { font-size: 9px; padding: .3em .5em; }
.tlv-label .fam-chip { font-size: 11px; padding: 1px 6px; margin: 0; }
.tlv-track { position: relative; min-height: 34px;
    background-image: repeating-linear-gradient(to right, var(--t-line) 0 1px, transparent 1px calc(100% / var(--weeks))); }
.tlv-head .tlv-track { min-height: 28px; background: none; }
.tlv-head { position: sticky; top: 0; background: var(--bs-card-bg, var(--bs-body-bg)); z-index: 2; }
.tlv-week { position: absolute; top: 6px; padding-left: 4px; font-size: 11px; color: var(--bs-secondary-color); white-space: nowrap; border-left: 1px solid var(--t-line); height: 22px; }
.tlv-week.month { color: var(--bs-body-color); font-weight: 600; }
.tlv-clinic { background: color-mix(in srgb, var(--bs-body-color) 3%, var(--bs-card-bg, var(--bs-body-bg))); }
.tlv-clinic .tlv-track { min-height: 30px; }
.tlv-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--bs-danger, var(--ct-danger)); opacity: .55; z-index: 1; }
.tlv-mark { position: absolute; top: 50%; transform: translate(-7px, -50%); display: inline-flex; align-items: center; gap: 4px; z-index: 2;
    text-decoration: none; color: var(--bs-body-color); font-size: 11px; white-space: nowrap; }
.tlv-mark.after { transform: translate(-100%, -50%); flex-direction: row-reverse; }
.tlv-shape { width: 12px; height: 12px; flex: none; background: var(--t-pri); border: 2px solid var(--bs-card-bg, #fff); box-shadow: 0 0 0 1px var(--t-pri); }
.tlv-mark.k-round .tlv-shape { transform: rotate(45deg); border-radius: 2px; width: 10px; height: 10px; }
.tlv-mark.k-golive .tlv-shape { border-radius: 50%; background: var(--bs-success, var(--ct-ok)); box-shadow: 0 0 0 1px var(--bs-success, var(--ct-ok)); }
.tlv-mark.s-soon .tlv-shape { background: var(--ct-warn); box-shadow: 0 0 0 1px var(--ct-warn); }
.tlv-mark.s-late .tlv-shape { background: var(--bs-danger, var(--ct-danger)); box-shadow: 0 0 0 1px var(--bs-danger, var(--ct-danger)); }
.tlv-mark.s-late .tlv-text { color: var(--bs-danger-text-emphasis, var(--ct-danger-ink)); font-weight: 600; }
.tlv-mark.s-done { opacity: .5; }
.tlv-mark.s-done .tlv-shape { background: var(--bs-secondary-color); box-shadow: 0 0 0 1px var(--bs-secondary-color); }
.tlv-mark.before .tlv-shape, .tlv-mark.after .tlv-shape { display: none; }
.tlv-mark.before .tlv-text, .tlv-mark.after .tlv-text { color: var(--bs-secondary-color); }
.tlv-mark:hover .tlv-text, .tlv-mark:focus-visible .tlv-text { text-decoration: underline; }
.tlv-text { background: color-mix(in srgb, var(--bs-card-bg, #fff) 85%, transparent); border-radius: 3px; padding: 0 2px; }
.tlv-none { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--bs-secondary-color); }
.tlv-label { position: sticky; left: 0; z-index: 3; background: var(--bs-card-bg, var(--bs-body-bg)); }
.tlv-clinic .tlv-label { background: color-mix(in srgb, var(--bs-body-color) 3%, var(--bs-card-bg, var(--bs-body-bg))); }
@media (max-width: 767.98px) { .tlv-line { grid-template-columns: 170px 1fr; } .tlv-grid { min-width: 820px; } }
.tlv-track { min-height: 40px; }
.tlv-mark { top: 13px; }
.tlv-mark.alt .tlv-text { position: absolute; top: 11px; left: 0; }
.tlv-name { font-size: 13px; font-weight: 500; }
/* page actions (New clinic, the view switch...) stay on the right, also when they wrap (user 2026-11-26) */
.ph-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; }
@media (max-width: 767.98px) { .ph-actions { flex-basis: 100%; } }
/* the title line with its actions stays pinned under the menu while scrolling (user 2026-11-26) */
.page-head .ph-row { position: sticky; top: var(--nav-h, 56px); z-index: 1010; background: var(--t-bg);
    margin: 0 -.75rem; padding: .4rem .75rem; }
.page-head .ph-row.stuck { box-shadow: 0 6px 8px -8px #0003; border-bottom: 1px solid var(--t-line); }
/* the header box itself is not drawn, so the title line sticks for the whole page, not only within the header */
.page-head { display: contents; }
.page-head > :last-child { margin-bottom: 1rem; }
/* full-width Clinics screen; the scrollbar's room is always kept, so pages that do or don't scroll line up the same */
main.wide { max-width: none; }
html { scrollbar-gutter: stable; }
/* a family's priority and assignees, changed in place (Timeline, Grid) */
.fam-ctl { display: inline-flex; align-items: center; gap: 4px; }
.tlv-label .fam-ctl { margin-left: auto; }
.fam-st .fam-ctl { margin-left: 4px; }
.fam-ctl .people .avatar { width: 20px; height: 20px; font-size: 9.5px; }
.fam-ctl .text-danger { font-size: 11px; }
.fam-ctl .prio-btn, .fam-ctl .prio-chip { font-size: 11px; }
.tlv-label:has([aria-expanded="true"]) { z-index: 30; }
.fam-st:has([aria-expanded="true"]), tr:has([aria-expanded="true"]) { position: relative; z-index: 30; }

/* family side panel (user 2026-11-26) */
.dr-scrim { position: fixed; inset: 0; background: #0005; z-index: 1070; animation: dr-fade .15s ease-out; }
.fam-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); z-index: 1075; display: flex; flex-direction: column;
    background: var(--bs-card-bg, var(--bs-body-bg)); box-shadow: -12px 0 40px #0003; animation: dr-in .18s ease-out; }
@keyframes dr-in { from { transform: translateX(24px); opacity: .6; } }
@keyframes dr-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fam-drawer, .dr-scrim { animation: none; } }
body.drawer-open { overflow: hidden; }
.dr-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--t-line); }
.dr-clinic { font-size: 1.2rem; font-weight: 600; text-decoration: none; color: var(--bs-body-color); }
.dr-clinic:hover { text-decoration: underline; color: var(--t-pri); }
.dr-body { flex: 1 1 auto; overflow-y: auto; padding: 12px 20px 16px; }
.dr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dr-k { font-size: 12px; color: var(--bs-secondary-color); }
.dr-dates { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 10px; font-size: 13px; }
.dr-next { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--bs-body-color) 5%, transparent); font-size: 14px; }
.dr-h { font-size: 14px; font-weight: 600; margin: 18px 0 6px; padding-top: 12px; border-top: 1px solid var(--t-line); }
.dr-h4 { font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: var(--bs-secondary-color); }
.dr-other { margin-top: 8px; }
.dr-other > summary { cursor: pointer; font-size: 13px; color: var(--t-pri); }
.dr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--t-line); }
.fam-drawer .pick-menu { z-index: 1090; }
.min-w-0 { min-width: 0; }

.cm-sug .avatar.team { background: var(--t-pri); color: #fff; }
.cm-sug .avatar.team svg { width: 13px; height: 13px; }

/* issues: bugs and questions (user 2026-11-27) */
.iss-type { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 4px; padding: 1px 6px; vertical-align: middle; }
.iss-type svg { width: 12px; height: 12px; }
.iss-type.iss-bug { color: var(--ct-danger-ink); background: var(--ct-danger-soft); }
.iss-type.iss-question { color: var(--ct-violet-ink); background: var(--ct-violet-soft); }
[data-bs-theme=dark] .iss-type.iss-bug { color: #ff9aa5; background: #3a1a1e; }
[data-bs-theme=dark] .iss-type.iss-question { color: var(--ct-violet-ink); background: var(--ct-violet-soft); }
.iss-st { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.iss-st.iss-open { color: #fff; background: #0d6efd; }
.iss-st.iss-inprogress { color: #fff; background: var(--ct-warn); }
.iss-st.iss-resolved { color: #fff; background: var(--ct-ok); }
.iss-st.iss-closed { color: var(--bs-secondary-color); background: color-mix(in srgb, var(--bs-body-color) 10%, transparent); }
.iss-id { color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; font-weight: 500; }
.iss-list { display: flex; flex-direction: column; gap: 8px; }
.iss-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 14px; cursor: pointer; }
.iss-row.done { opacity: .7; }
.iss-row:hover { border-color: var(--t-pri); }
.iss-main { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.iss-title { font-weight: 600; color: var(--bs-body-color); text-decoration: none; }
.iss-title:hover { text-decoration: underline; }
.iss-sub { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.iss-sub svg { width: 12px; height: 12px; }
.iss-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.iss-side .people .avatar { width: 22px; height: 22px; font-size: 10px; }
.iss-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.iss-facts > div { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.iss-mini { list-style: none; padding: 0; margin: 0 0 6px; }
.iss-mini li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--t-line); font-size: 13.5px; }
.iss-mini li:last-child { border-bottom: 0; }
.iss-mini li a { color: var(--bs-body-color); text-decoration: none; flex: 1 1 auto; min-width: 0; }
.iss-mini li a:hover { text-decoration: underline; }

/* files on checklist steps; meetings; My work (Clinic Data Specialist, user 2026-11-27) */
.step-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.step-file { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; border: 1px solid var(--t-line); border-radius: 6px; padding: 2px 8px;
    text-decoration: none; color: var(--bs-body-color); background: var(--bs-card-bg, var(--bs-body-bg)); max-width: 100%; }
.step-file:hover { border-color: var(--t-pri); color: var(--t-pri); }
.step-file svg { width: 13px; height: 13px; flex: none; }
.step-file-meta { color: var(--bs-secondary-color); font-size: 11px; margin-left: 4px; }
.step-add { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--t-pri); cursor: pointer; margin: 0; }
.step-add svg { width: 13px; height: 13px; }
.step-add:hover { text-decoration: underline; }
.step-add:focus-within { outline: 2px solid var(--t-pri); outline-offset: 2px; border-radius: 4px; }
.meet-list, .work-list { list-style: none; padding: 0; margin: 0 0 6px; }
.meet { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--t-line); font-size: 13.5px; }
.meet:last-child, .work-list li:last-child { border-bottom: 0; }
.meet-when { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.meet-when svg { width: 13px; height: 13px; }
.meet-what { flex: 1 1 200px; min-width: 0; }
.meet .meet-del { padding: 0 4px; color: var(--bs-secondary-color); margin-left: auto; }
.work-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--t-line); }
.work-main { flex: 1 1 320px; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.work-main > .small, .work-main > .step-files { flex-basis: 100%; }
.work-side { display: flex; gap: 8px; align-items: center; }
/* buttons used as segment options (issue status) look like the other switches */
button.seg-opt { border: 0; background: transparent; color: var(--bs-secondary-color); cursor: pointer; }
button.seg-opt.on { background: var(--bs-body-bg); color: var(--bs-body-color); }

/* an urgent family waiting on us (user 2026-11-27) */
.board-card.urgent-us { border: 2px solid var(--ct-danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-danger) 15%, transparent), 0 4px 14px -6px color-mix(in srgb, var(--ct-danger) 50%, transparent); background: color-mix(in srgb, var(--ct-danger) 6%, var(--bs-card-bg, var(--bs-body-bg))); }
.urgent-us-flag { display: flex; align-items: center; gap: 5px; margin: -8px -8px 6px; padding: 3px 8px; border-radius: 6px 6px 0 0;
    background: var(--ct-danger); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.urgent-us-flag svg { width: 13px; height: 13px; }
@media (prefers-reduced-motion: no-preference) { .urgent-us-flag svg { animation: urgent-pulse 1.6s ease-in-out infinite; } }
@keyframes urgent-pulse { 50% { opacity: .35; } }

/* urgent and on us, in the Grid and the Timeline (user 2026-11-27) */
.urgent-us-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: var(--ct-danger); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.urgent-us-badge svg { width: 12px; height: 12px; }
tr.urgent-us-row > td { background: color-mix(in srgb, var(--ct-danger) 7%, var(--bs-card-bg, var(--bs-body-bg))) !important; }
tr.urgent-us-row > td:first-child { box-shadow: inset 4px 0 0 var(--ct-danger); }
.tlv-line.urgent-us-row .tlv-label, .tlv-line.urgent-us-row .tlv-track { background-color: color-mix(in srgb, var(--ct-danger) 7%, var(--bs-card-bg, var(--bs-body-bg))); }
.tlv-line.urgent-us-row .tlv-label { box-shadow: inset 4px 0 0 var(--ct-danger); }
.fam-st.urgent-us-line { border-radius: 6px; outline: 2px solid color-mix(in srgb, var(--ct-danger) 40%, transparent); outline-offset: 2px; }
/* the urgent card on us pulses on the board (user 2026-11-27); still for people who ask for less motion */
@media (prefers-reduced-motion: no-preference) {
    .board-card.urgent-us { animation: urgent-glow 1.8s ease-in-out infinite; }
}
@keyframes urgent-glow {
    0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-danger) 15%, transparent), 0 4px 14px -6px color-mix(in srgb, var(--ct-danger) 50%, transparent); }
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ct-danger) 25%, transparent), 0 6px 22px -4px color-mix(in srgb, var(--ct-danger) 69%, transparent); }
}

/* personal reminders (user 2026-11-27) */
.rem-list { list-style: none; padding: 0; margin: 0; }
.rem { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--t-line); }
.rem:last-child { border-bottom: 0; }
.rem .rem-done { margin-top: .2rem; flex: none; }
.rem-main { flex: 1 1 auto; min-width: 0; }
.rem-text { font-size: 14.5px; overflow-wrap: anywhere; }
.rem.done .rem-text { text-decoration: line-through; color: var(--bs-secondary-color); }
.rem-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; font-size: 12.5px; }
.rem-when { display: inline-flex; align-items: center; gap: 4px; color: var(--bs-secondary-color); }
.rem-when svg { width: 12px; height: 12px; }
.rem-when.late { color: var(--bs-danger-text-emphasis, var(--ct-danger-ink)); font-weight: 600; }
.rem .btn-link { padding: 0 4px; color: var(--bs-secondary-color); display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; }
.rem .btn-link svg { width: 14px; height: 14px; }
.rem-menu { right: 0; left: auto; min-width: 180px; }
.rem-menu .pick-opt { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; color: var(--bs-body-color); }
.rem-menu .pick-opt:hover { background: var(--t-pri-soft); }

/* how many reminders are due, next to "Reminders" in the menu */
.nav-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px;
    background: var(--ct-danger); color: #fff; font-size: 11px; font-weight: 700; text-align: center; vertical-align: 1px; }
.nav-count[hidden] { display: none; }
.rem-repeat { font-size: 12px; color: var(--t-pri); font-weight: 600; }

/* technical notes (team only) */
.tech-notes { border-left: 3px solid var(--t-pri); }
.tech-notes .int-mark { margin-left: 8px; }
.tn-text { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.fam-drawer .tech-notes { margin-top: 18px !important; }
.fam-drawer .tech-notes h2 { font-size: 14px; }

/* ---------- menu (user 2026-11-28): slim top bar + grouped side menu ----------
   Large screens: the side menu is fixed on the left (full height, the brand at its top) and the page moves right by its width;
   the ☰ button in the top bar collapses it to icons. Small screens: it slides in from the left (Bootstrap offcanvas-lg), opened from the top bar. */
:root { --side-w: 236px; }
body.side-mini { --side-w: 68px; }

.topbar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px 0 12px; z-index: 1030;
    background: color-mix(in srgb, var(--t-panel) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--t-line); }
.tb-brand, .side-brand { display: inline-flex; align-items: center; font-weight: 650; letter-spacing: -.01em; color: var(--t-ink); text-decoration: none; white-space: nowrap; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.tb-icon { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; border: 0; color: var(--t-muted); }
.tb-icon:hover, #bell[aria-expanded="true"] { background: var(--t-bg); color: var(--t-ink); }
.tb-icon .ic { width: 20px; height: 20px; margin: 0; }
.tb-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: transparent; color: var(--t-ink); font-weight: 500; }
.tb-user:hover, .tb-user[aria-expanded="true"] { background: var(--t-bg); }
.tb-user:focus-visible, .tb-icon:focus-visible, .side-link:focus-visible { outline: 2px solid var(--t-pri); outline-offset: 2px; }
.tb-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 650; letter-spacing: .02em;
    background: var(--t-pri-soft); color: var(--t-pri); }
.tb-name { white-space: nowrap; }
@media (max-width: 991.98px) { .tb-name { display: none; } .tb-user { padding-right: 4px; } }
.tb-menu { min-width: 260px; padding: 6px; border-radius: 12px; border-color: var(--t-line); box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.tb-menu .dropdown-item { display: flex; align-items: center; gap: 2px; border-radius: 8px; padding: 8px 10px; }
.tb-menu .dropdown-item .ic { margin-right: .55em; color: var(--t-muted); }
.tb-menu .dropdown-item.active { background: var(--t-pri-soft); color: var(--t-pri); }
.tb-menu .dropdown-item.active .ic { color: var(--t-pri); }
.tb-menu-head { display: flex; flex-direction: column; padding: 6px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--t-line); }
.tb-menu-head span { font-size: 12.5px; color: var(--t-muted); }

.side { --bs-offcanvas-width: 280px; display: flex; flex-direction: column; background: var(--t-panel); }
.side-head { display: flex; align-items: center; justify-content: space-between; height: 56px; flex: 0 0 56px; padding: 0 18px; border-bottom: 1px solid var(--t-line); }
.side-nav { flex: 1 1 auto; overflow-y: auto; padding: 4px 10px 12px; }
.side-group + .side-group { margin-top: 14px; }
.side-title { padding: 6px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.side-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0; border-radius: 8px;
    color: var(--t-ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.side-link[hidden], .side-group[hidden] { display: none; }
.side-link .ic { width: 19px; height: 19px; margin: 0; color: var(--t-muted); }
.side-link:hover { background: var(--t-bg); }
.side-link.active { background: var(--t-pri-soft); color: var(--t-pri); font-weight: 600; }
.side-link.active .ic { color: var(--t-pri); }
.side-link.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--t-pri); }
.side-link .nav-count { margin-left: auto; }

@media (min-width: 992px) {
    body.signed-in { padding-left: var(--side-w); }
    .side.offcanvas-lg { position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 1035; overflow: hidden;
        background-color: var(--t-panel) !important; border-right: 1px solid var(--t-line); }
    .side.offcanvas-lg[hidden] { display: none; }
    /* the icons stay in the same place in both widths (centred in the 68px strip), so collapsing never makes them jump */
    .side-head { padding: 8px 18px 8px 29px; }
    .side-nav { padding: 4px 10px 12px; overflow-x: hidden; }
    .side-link { padding: 8px 14px; }
    .side-link.active::before { left: -10px; }
    .side-title { position: relative; padding: 6px 14px 4px; white-space: nowrap; }
    .side-title::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 1px solid var(--t-line); opacity: 0; }
    .side-link .nav-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
    /* icons only: names and group titles fade out (they keep their height, so nothing moves up or down) */
    body.side-mini .side-label { opacity: 0; }
    body.side-mini .side-title { color: transparent; }
    body.side-mini .side-title::after { opacity: 1; }
    body.side-mini .side-link .nav-count { right: 4px; top: 2px; transform: none; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; }
    /* the motion runs only after a click on ☰ (body.side-anim), never when a page opens */
    body.side-anim.signed-in { transition: padding-left .22s cubic-bezier(.2, .7, .2, 1); }
    body.side-anim .side.offcanvas-lg { transition: width .22s cubic-bezier(.2, .7, .2, 1); }
    body.side-anim .side-label { transition: opacity .14s ease; }
    body.side-anim .side-title { transition: color .14s ease; }
    body.side-anim .side-title::after { transition: opacity .14s ease; }
    body.side-anim .side-link .nav-count { transition: right .22s ease, top .22s ease, transform .22s ease; }
}
@media (max-width: 991.98px) {
    .side .side-link { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body.side-anim.signed-in, body.side-anim .side.offcanvas-lg, body.side-anim .side-label, body.side-anim .side-title,
    body.side-anim .side-title::after, body.side-anim .side-link .nav-count { transition: none; }
}
@media (min-width: 992px) { .d-lg-inline-grid { display: inline-grid !important; } }
/* top-bar search (user 2026-11-28): Enter opens Clinics filtered by the text; Ctrl+K or "/" focuses it */
.tb-search { position: relative; align-items: center; flex: 0 1 440px; min-width: 200px; height: 38px; padding: 0 10px; gap: 8px;
    border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-bg); color: var(--t-muted); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.tb-search:hover { border-color: color-mix(in srgb, var(--t-line) 60%, var(--t-muted)); }
.tb-search:focus-within { background: var(--t-panel); border-color: var(--t-pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-pri) 18%, transparent); color: var(--t-ink); }
.tb-search .ic { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.tb-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--t-ink); font-size: 14px; }
.tb-search input::placeholder { color: var(--t-muted); }
.tb-search input::-webkit-search-cancel-button { display: none; }
.tb-kbd { flex: 0 0 auto; padding: 2px 6px; border: 1px solid var(--t-line); border-radius: 6px; background: var(--t-panel); color: var(--t-muted);
    font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.4; box-shadow: none; }
.tb-search:focus-within .tb-kbd { visibility: hidden; }
.topbar .tb-icon:first-child { margin-right: 4px; }
/* ---------- avatars: one colour per person (user 2026-11-28) ---------- */
.av { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 650;
    letter-spacing: .02em; background: var(--av-bg); color: var(--av-fg); }
.av.av-sm { width: 28px; height: 28px; font-size: 10.5px; }
.av.av-md { width: 34px; height: 34px; font-size: 12px; }
.av.av-xl { width: 64px; height: 64px; font-size: 22px; }
.av-0 { --av-bg: #e3edf9; --av-fg: #1565c0; } .av-1 { --av-bg: #e6f4ea; --av-fg: #1e7a3c; } .av-2 { --av-bg: #fdecea; --av-fg: #b3261e; }
.av-3 { --av-bg: #fff4e0; --av-fg: #a15c00; } .av-4 { --av-bg: #f1e8fb; --av-fg: #6a3fb5; } .av-5 { --av-bg: #e0f5f5; --av-fg: #00706f; }
.av-6 { --av-bg: #fce8f3; --av-fg: #a3226f; } .av-7 { --av-bg: #eceff3; --av-fg: #44515f; }
[data-bs-theme="dark"] .av-0 { --av-bg: #1d3350; --av-fg: #8fbaf0; } [data-bs-theme="dark"] .av-1 { --av-bg: #1c3a27; --av-fg: #8fd6a5; }
[data-bs-theme="dark"] .av-2 { --av-bg: #43201e; --av-fg: #f2a59f; } [data-bs-theme="dark"] .av-3 { --av-bg: #42301a; --av-fg: #f0c27a; }
[data-bs-theme="dark"] .av-4 { --av-bg: #33264a; --av-fg: #c5a8f0; } [data-bs-theme="dark"] .av-5 { --av-bg: #173a3a; --av-fg: #84d6d4; }
[data-bs-theme="dark"] .av-6 { --av-bg: #42203a; --av-fg: #f0a3d0; } [data-bs-theme="dark"] .av-7 { --av-bg: #33383f; --av-fg: #c4ccd5; }

/* ---------- messages (user 2026-11-28): one panel, conversations on the left, the open one on the right ---------- */
main:has(> .dm) { max-width: none; padding-bottom: 16px !important; }
.dm { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100dvh - var(--nav-h, 56px) - 32px); min-height: 460px;
    background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 14px; overflow: hidden; }
.dm-side { position: relative; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--t-line); }
.dm-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 8px 18px; }
.dm-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.dm-icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--t-ink);
    font-size: 20px; line-height: 1; text-decoration: none; }
.dm-icon-btn:hover { background: var(--t-bg); }
.dm-icon-btn .ic { width: 19px; height: 19px; margin: 0; }
.dm-search { display: flex; align-items: center; gap: 8px; margin: 4px 14px 8px; padding: 0 10px; height: 36px; border-radius: 10px; background: var(--t-bg);
    color: var(--t-muted); border: 1px solid transparent; }
.dm-search:focus-within { border-color: var(--t-pri); background: var(--t-panel); }
.dm-search .ic { width: 16px; height: 16px; margin: 0; }
.dm-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--t-ink); font-size: 14px; }
.dm-threads, .dm-contacts { flex: 1 1 auto; overflow-y: auto; padding: 2px 8px 10px; }
.dm-thread, .dm-contact { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent;
    color: inherit; text-decoration: none; text-align: left; }
.dm-thread:hover, .dm-contact:hover, .dm-contact:focus-visible { background: var(--t-bg); }
.dm-thread.active { background: var(--t-pri-soft); }
.dm-t-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dm-t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dm-t-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-t-top time { flex: 0 0 auto; font-size: 12px; color: var(--t-muted); }
.dm-t-last { font-size: 13px; color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-you { color: var(--t-ink); opacity: .7; }
.dm-thread.unread .dm-t-name, .dm-thread.unread .dm-t-last { color: var(--t-ink); font-weight: 650; }
.dm-thread.unread time { color: var(--t-pri); font-weight: 600; }
.dm-unread { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--t-pri); color: #fff; font-size: 11.5px; font-weight: 700;
    display: inline-grid; place-items: center; }
.dm-list-empty { padding: 24px 12px; text-align: center; font-size: 13.5px; color: var(--t-muted); }
.dm-picker { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--t-panel); }
.dm-picker[hidden] { display: none; }
.dm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dm-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--t-line); }
.dm-who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dm-who strong { font-size: 15.5px; }
.dm-who span { font-size: 12.5px; color: var(--t-muted); }
.dm-back { display: none; }
.dm-msgs { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px 10px; display: flex; flex-direction: column; }
.dm-day { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--t-muted); font-size: 12px; font-weight: 600; }
.dm-day::before, .dm-day::after { content: ""; flex: 1 1 auto; border-top: 1px solid var(--t-line); }
.dm-msg { display: flex; align-items: flex-end; gap: 8px; max-width: min(72%, 640px); margin-top: 2px; }
.dm-msg.first { margin-top: 10px; }
.dm-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.av-gap { width: 28px; flex: 0 0 28px; }
.dm-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.dm-msg.mine .dm-col { align-items: flex-end; }
.dm-bubble { padding: 8px 13px; border-radius: 18px; background: var(--t-bg); color: var(--t-ink); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.dm-msg:not(.mine):not(.first) .dm-bubble { border-top-left-radius: 6px; }
.dm-msg:not(.mine):not(.last) .dm-bubble { border-bottom-left-radius: 6px; }
.dm-msg.mine .dm-bubble { background: var(--t-pri); color: #fff; }
.dm-msg.mine:not(.first) .dm-bubble { border-top-right-radius: 6px; }
.dm-msg.mine:not(.last) .dm-bubble { border-bottom-right-radius: 6px; }
.dm-col time { font-size: 11.5px; color: var(--t-muted); margin: 3px 6px 0; }
.dm-seen { color: var(--t-pri); font-weight: 600; }
.dm-hello { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--t-muted); }
.dm-hello strong { color: var(--t-ink); font-size: 16px; margin-top: 6px; }
.dm-compose { padding: 10px 18px 12px; }
.dm-input { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 16px; border: 1px solid var(--t-line); border-radius: 22px; background: var(--t-panel); }
.dm-input:focus-within { border-color: var(--t-pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-pri) 16%, transparent); }
.dm-input textarea { flex: 1 1 auto; resize: none; max-height: 160px; padding: 7px 0; border: 0; outline: 0; background: transparent; color: var(--t-ink); line-height: 1.4; }
.dm-send { width: 36px; height: 36px; flex: 0 0 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--t-pri); color: #fff; }
.dm-send:hover { filter: brightness(1.08); }
.dm-send:disabled { opacity: .6; }
.dm-send .ic { width: 17px; height: 17px; margin: 0 1px 0 0; }
.dm-tip { margin: 5px 16px 0; font-size: 11.5px; color: var(--t-muted); }
.dm-readonly { margin: 0; padding: 14px 18px; border-top: 1px solid var(--t-line); color: var(--t-muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.dm-welcome { margin: auto; max-width: 340px; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; }
.dm-welcome h2 { font-size: 18px; font-weight: 700; margin: 6px 0 0; }
.dm-welcome p { color: var(--t-muted); font-size: 14px; margin: 0 0 6px; }
.dm-welcome-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--t-pri-soft); color: var(--t-pri); }
.dm-welcome-ic .ic { width: 28px; height: 28px; margin: 0; }
@media (max-width: 767.98px) {
    .dm { grid-template-columns: 1fr; height: calc(100dvh - var(--nav-h, 56px) - 24px); border-radius: 12px; }
    .dm.dm-open .dm-side, .dm:not(.dm-open) .dm-main { display: none; }
    .dm-side { border-right: 0; }
    .dm-back { display: inline-grid; }
    .dm-head { padding: 10px 12px; }
    .dm-msgs { padding: 14px 12px 8px; }
    .dm-msg { max-width: 86%; }
    .dm-compose { padding: 8px 10px 10px; }
    .dm-tip { display: none; }
}

/* ---------- users (user 2026-11-28): outgoing mail strip, a table, windows to edit ---------- */
.mail-strip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-panel); }
.mail-strip.warn { border-color: color-mix(in srgb, #d97706 45%, var(--t-line)); background: color-mix(in srgb, #f59e0b 7%, var(--t-panel)); }
.mail-strip-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: var(--t-pri-soft); color: var(--t-pri); }
.mail-strip-ic .ic { width: 19px; height: 19px; margin: 0; }
.mail-strip-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mail-strip-text span { font-size: 13.5px; color: var(--t-muted); overflow-wrap: anywhere; }
.u-card { border-radius: 12px; overflow: hidden; }
.u-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--t-line); }
.u-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--t-line); border-radius: 9px; color: var(--t-muted); }
.u-search:focus-within { border-color: var(--t-pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-pri) 16%, transparent); }
.u-search .ic { width: 16px; height: 16px; margin: 0; }
.u-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--t-ink); font-size: 14px; }
.u-role { flex: 0 0 190px; width: auto; height: 34px; }
.u-table { --bs-table-bg: transparent; }
.u-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--t-muted); padding: 10px 14px; border-bottom-color: var(--t-line); white-space: nowrap; }
.u-table td { padding: 10px 14px; border-bottom-color: var(--t-line); }
.u-table tbody tr:last-child td { border-bottom: 0; }
.u-row { cursor: pointer; }
.u-row:hover td, .u-row:focus-visible td { background: var(--t-bg); }
.u-row:focus-visible { outline: 2px solid var(--t-pri); outline-offset: -2px; }
.u-row.locked td { opacity: .6; }
.u-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-who div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.u-who span { font-size: 12.5px; color: var(--t-muted); }
.u-mail { font-size: 14px; overflow-wrap: anywhere; }
.u-go { width: 28px; color: var(--t-muted); font-size: 20px; text-align: right; }
.u-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.u-chip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.u-chip.ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.u-chip.warn { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #a15c00; }
.u-chip.danger { background: color-mix(in srgb, #dc2626 14%, transparent); color: #b91c1c; }
[data-bs-theme="dark"] .u-chip.ok { color: #86efac; } [data-bs-theme="dark"] .u-chip.warn { color: #fcd34d; } [data-bs-theme="dark"] .u-chip.danger { color: #fca5a5; }
.role-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    background: var(--t-bg); color: var(--t-ink); border: 1px solid var(--t-line); }
.role-badge.rl-tl { background: var(--t-pri-soft); color: var(--t-pri); border-color: transparent; }
.role-badge.rl-mgr { background: color-mix(in srgb, #7c3aed 14%, transparent); color: #6d28d9; border-color: transparent; }
.role-badge.rl-ext { background: color-mix(in srgb, #f59e0b 14%, transparent); color: #a15c00; border-color: transparent; }
[data-bs-theme="dark"] .role-badge.rl-mgr { color: #c4b5fd; } [data-bs-theme="dark"] .role-badge.rl-ext { color: #fcd34d; }
.role-ext { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.ct-modal { border-radius: 14px; border-color: var(--t-line); }
.ct-modal .modal-header { border-bottom-color: var(--t-line); }
.ct-modal .modal-title { display: flex; align-items: center; gap: 4px; }
.ct-modal .modal-title .ic { color: var(--t-pri); margin-right: .4em; }
.ct-modal .modal-footer { border-top-color: var(--t-line); }
.u-security { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--t-line); }
@media (max-width: 767.98px) {
    .u-table thead { display: none; }
    .u-table tr.u-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 14px; border-bottom: 1px solid var(--t-line); }
    .u-table tr.u-row td { padding: 0; border: 0; background: none !important; }
    .u-table tr.u-row td:nth-child(1) { grid-column: 1; } .u-table tr.u-row td:nth-child(3) { grid-column: 2; grid-row: 1; align-self: center; }
    .u-table tr.u-row td.u-mail { grid-column: 1 / -1; padding-left: 46px; } .u-table tr.u-row td:nth-child(4) { grid-column: 1 / -1; padding-left: 46px; }
    .u-table tr.u-row td.u-go { display: none; }
    .mail-strip { flex-wrap: wrap; }
}
/* top-bar search results (user 2026-11-28): grouped, keyboard and mouse */
.tb-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1085; max-height: min(70vh, 520px); overflow-y: auto; padding: 6px;
    background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .14); min-width: 420px; }
.tb-results[hidden] { display: none; }
.tb-sec { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.tb-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--t-ink); text-decoration: none; }
.tb-opt .ic { width: 18px; height: 18px; margin: 0; color: var(--t-muted); flex: 0 0 auto; }
.tb-opt.active { background: var(--t-pri-soft); }
.tb-opt.active .ic { color: var(--t-pri); }
.tb-opt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tb-opt-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-opt-sub { font-size: 12.5px; color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-opt mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, #ffd54a 55%, transparent); color: inherit; }
.tb-opt .badge { flex: 0 0 auto; font-size: 10.5px; }
.tb-all { margin-top: 4px; border-top: 1px solid var(--t-line); border-radius: 0 0 8px 8px; color: var(--t-pri); }
.tb-all .ic { color: var(--t-pri); }
.tb-none { padding: 12px 10px; font-size: 13.5px; color: var(--t-muted); }
/* the unread number sits on the bell's top-right corner, ringed with the bar's colour (user 2026-11-28) */
#bell { position: relative; }
.topbar .nb-count { top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--t-panel); border-radius: 999px;
    font-size: 10.5px; line-height: 14px; font-weight: 700; display: inline-grid; place-items: center; box-sizing: border-box; pointer-events: none; }
.topbar .nb-count[hidden] { display: none; }
/* board keys (user 2026-11-28): the column the arrow keys act on */
.board.kb .board-col.kb-active { box-shadow: 0 0 0 2px var(--t-pri); border-color: var(--t-pri); }
.board-cards:focus { outline: none; }
.board-cards:focus-visible { outline: 2px solid var(--t-pri); outline-offset: -2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .board-cards, .board { scroll-behavior: auto; } }
/* files in messages (user 2026-11-28) */
.dm-attach { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--t-muted); cursor: pointer; margin: 1px 0 1px -10px; }
.dm-attach:hover { background: var(--t-bg); color: var(--t-ink); }
.dm-attach .ic { width: 19px; height: 19px; margin: 0; }
.dm-pending { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.dm-pending[hidden] { display: none; }
.dm-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-bg); font-size: 13px; }
.dm-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.dm-chip small { color: var(--t-muted); }
.dm-chip .ic { width: 15px; height: 15px; margin: 0; color: var(--t-muted); }
.dm-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--t-muted); line-height: 1; }
.dm-chip button:hover { background: var(--t-line); color: var(--t-ink); }
.dm-file { display: flex; align-items: center; gap: 10px; min-width: 220px; max-width: 340px; margin-top: 4px; padding: 8px 12px 8px 8px; border: 1px solid var(--t-line);
    border-radius: 14px; background: var(--t-panel); color: var(--t-ink); text-decoration: none; }
.dm-file:hover { border-color: var(--t-pri); }
.dm-file-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--t-pri-soft); color: var(--t-pri); }
.dm-file-ic .ic { width: 18px; height: 18px; margin: 0; }
.dm-file-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dm-file-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-file-size { font-size: 12px; color: var(--t-muted); }
.dm-main.drop { box-shadow: inset 0 0 0 2px var(--t-pri); background: color-mix(in srgb, var(--t-pri) 5%, var(--t-panel)); }
.dm-bubble.dm-removed { font-style: italic; color: var(--t-muted); background: transparent; border: 1px dashed var(--t-line); }
.dm-msg.mine .dm-bubble.dm-removed { background: transparent; color: var(--t-muted); }

/* =====================================================================================================================
   Colour system (user 2026-11-28): one palette, matched in strength. Cool slate neutrals, one blue for actions, status
   and family colours at the same medium weight, shown as tinted pills with a coloured dot (not solid blocks). Bootstrap's
   controls take the same colours. Light and dark. The layout and shapes stay as they were.
   ===================================================================================================================== */
:root, [data-bs-theme="light"] {
    --t-bg: #f4f6f8; --t-panel: #ffffff; --t-wait: #eef1f4; --t-ink: #1b2330; --t-muted: #637083; --t-line: #e2e6eb;
    --t-pri: #2357c4; --t-pri-soft: #e9effb; --t-hatch: #1b23300a;
    /* statuses: one hue each, same weight */
    --ct-intake: #6b7789; --ct-waitingonus: #6c4fc0; --ct-waiting: #c23d3b; --ct-mapping: #b8660f;
    --ct-ready: #2357c4; --ct-testsent: #0f7d86; --ct-final: #2e8448; --ct-live: #226f3a;
    --ct-hold: #86685a; --ct-complete: #56677a;
    --ct-validation: #ad3a76; --ct-fixes: #c5541f; --ct-data: #8a7814; --ct-delta: #0d7da1;
    /* meanings used across the app */
    --ct-ok: #2e8448; --ct-ok-ink: #22663a; --ct-ok-soft: #e8f3ec;
    --ct-warn: #c07a12; --ct-warn-ink: #8f5809; --ct-warn-soft: #fcf2e2;
    --ct-danger: #c63f3c; --ct-danger-ink: #a0302d; --ct-danger-soft: #fbecea;
    --ct-violet: #6c4fc0; --ct-violet-ink: #5439a0; --ct-violet-soft: #efebfa;
    /* families */
    --fam-PPlus: #3f5bc4; --fam-IcpEmr: #128676; --fam-IcpDocuments: #6c871d; --fam-NexCloudPm: #874fc2; --fam-NexCloudDocuments: #bd447d;
    /* Bootstrap: its controls and text colours follow */
    --bs-body-bg: var(--t-panel); --bs-body-color: var(--t-ink); --bs-body-color-rgb: 27, 35, 48; --bs-emphasis-color: #0e1520; --bs-emphasis-color-rgb: 14, 21, 32;
    --bs-secondary-color: var(--t-muted); --bs-tertiary-color: #8a95a5; --bs-tertiary-bg: var(--t-bg); --bs-secondary-bg: var(--t-wait);
    --bs-border-color: var(--t-line); --bs-border-color-translucent: #1b233017;
    --bs-primary: #2357c4; --bs-primary-rgb: 35, 87, 196; --bs-primary-bg-subtle: var(--t-pri-soft); --bs-primary-text-emphasis: #1b4599; --bs-primary-border-subtle: #c5d4f2;
    --bs-link-color: #2357c4; --bs-link-color-rgb: 35, 87, 196; --bs-link-hover-color: #1b4599; --bs-link-hover-color-rgb: 27, 69, 153;
    --bs-success: #2e8448; --bs-success-rgb: 46, 132, 72; --bs-success-text-emphasis: #22663a; --bs-success-bg-subtle: #e8f3ec;
    --bs-danger: #c63f3c; --bs-danger-rgb: 198, 63, 60; --bs-danger-text-emphasis: #a0302d; --bs-danger-bg-subtle: #fbecea;
    --bs-warning: #c07a12; --bs-warning-rgb: 192, 122, 18; --bs-warning-text-emphasis: #8f5809; --bs-warning-bg-subtle: #fcf2e2;
    --bs-focus-ring-color: rgba(35, 87, 196, .22);
    --t-shadow: 0 1px 2px #1b23300f, 0 1px 1px #1b23300a;
}
[data-bs-theme="dark"] {
    --t-bg: #101317; --t-panel: #181c22; --t-wait: #15191e; --t-ink: #e3e7ed; --t-muted: #97a1b0; --t-line: #29303a;
    --t-pri: #7aa2f0; --t-pri-soft: #1a2944; --t-hatch: #ffffff08;
    --ct-intake: #9aa5b4; --ct-waitingonus: #a68ff0; --ct-waiting: #ec7d75; --ct-mapping: #e49c52;
    --ct-ready: #7aa2f0; --ct-testsent: #52bec4; --ct-final: #63bd7c; --ct-live: #52a86b;
    --ct-hold: #bc9f8e; --ct-complete: #95a6b8;
    --ct-validation: #df7db1; --ct-fixes: #ee8c5d; --ct-data: #cab950; --ct-delta: #55b6db;
    --ct-ok: #63bd7c; --ct-ok-ink: #8fd4a2; --ct-ok-soft: #182c20;
    --ct-warn: #e3a453; --ct-warn-ink: #f0c07c; --ct-warn-soft: #30250f;
    --ct-danger: #ec7d75; --ct-danger-ink: #f4a39d; --ct-danger-soft: #371c1c;
    --ct-violet: #a68ff0; --ct-violet-ink: #c4b4f7; --ct-violet-soft: #241e3d;
    --fam-PPlus: #8a9ff0; --fam-IcpEmr: #4cc1ae; --fam-IcpDocuments: #a9c25c; --fam-NexCloudPm: #b991ee; --fam-NexCloudDocuments: #e985b3;
    --bs-body-bg: var(--t-panel); --bs-body-color: var(--t-ink); --bs-body-color-rgb: 227, 231, 237; --bs-emphasis-color: #f6f8fb; --bs-emphasis-color-rgb: 246, 248, 251;
    --bs-secondary-color: var(--t-muted); --bs-tertiary-color: #78828f; --bs-tertiary-bg: var(--t-bg); --bs-secondary-bg: #1f242b;
    --bs-border-color: var(--t-line); --bs-border-color-translucent: #ffffff14;
    --bs-primary: #7aa2f0; --bs-primary-rgb: 122, 162, 240; --bs-primary-bg-subtle: var(--t-pri-soft); --bs-primary-text-emphasis: #a8c3f7; --bs-primary-border-subtle: #2d446e;
    --bs-link-color: #7aa2f0; --bs-link-color-rgb: 122, 162, 240; --bs-link-hover-color: #a8c3f7; --bs-link-hover-color-rgb: 168, 195, 247;
    --bs-success: #63bd7c; --bs-success-rgb: 99, 189, 124; --bs-success-text-emphasis: #8fd4a2; --bs-success-bg-subtle: #182c20;
    --bs-danger: #ec7d75; --bs-danger-rgb: 236, 125, 117; --bs-danger-text-emphasis: #f4a39d; --bs-danger-bg-subtle: #371c1c;
    --bs-warning: #e3a453; --bs-warning-rgb: 227, 164, 83; --bs-warning-text-emphasis: #f0c07c; --bs-warning-bg-subtle: #30250f;
    --bs-focus-ring-color: rgba(122, 162, 240, .3);
    --t-shadow: 0 1px 2px #00000059;
}

/* panels: a hairline border and a soft shadow */
.card { border-color: var(--t-line); box-shadow: var(--t-shadow); }

/* buttons: one blue; secondary actions are quiet and fill lightly on hover */
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #2357c4; --bs-btn-border-color: #2357c4; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1d4ba9;
    --bs-btn-hover-border-color: #1d4ba9; --bs-btn-active-color: #fff; --bs-btn-active-bg: #193f8f; --bs-btn-active-border-color: #193f8f;
    --bs-btn-disabled-bg: #2357c4; --bs-btn-disabled-border-color: #2357c4; --bs-btn-focus-shadow-rgb: 35, 87, 196; }
[data-bs-theme="dark"] .btn-primary { --bs-btn-bg: #3c6fd8; --bs-btn-border-color: #3c6fd8; --bs-btn-hover-bg: #4a7ce0; --bs-btn-hover-border-color: #4a7ce0;
    --bs-btn-active-bg: #5687e6; --bs-btn-active-border-color: #5687e6; --bs-btn-disabled-bg: #3c6fd8; --bs-btn-disabled-border-color: #3c6fd8; }
.btn-outline-primary { --bs-btn-color: var(--t-pri); --bs-btn-border-color: color-mix(in srgb, var(--t-pri) 45%, var(--t-line)); --bs-btn-hover-color: var(--t-pri);
    --bs-btn-hover-bg: var(--t-pri-soft); --bs-btn-hover-border-color: var(--t-pri); --bs-btn-active-color: var(--t-pri); --bs-btn-active-bg: var(--t-pri-soft);
    --bs-btn-active-border-color: var(--t-pri); --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb); }
.btn-outline-secondary { --bs-btn-color: var(--t-ink); --bs-btn-border-color: var(--t-line); --bs-btn-bg: var(--t-panel); --bs-btn-hover-color: var(--t-ink);
    --bs-btn-hover-bg: var(--t-wait); --bs-btn-hover-border-color: color-mix(in srgb, var(--t-line) 60%, var(--t-muted)); --bs-btn-active-color: var(--t-ink);
    --bs-btn-active-bg: var(--t-wait); --bs-btn-active-border-color: var(--t-muted); --bs-btn-disabled-color: var(--t-muted); --bs-btn-disabled-border-color: var(--t-line);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb); }
.btn-outline-danger { --bs-btn-color: var(--ct-danger-ink); --bs-btn-border-color: color-mix(in srgb, var(--ct-danger) 45%, var(--t-line)); --bs-btn-hover-color: var(--ct-danger-ink);
    --bs-btn-hover-bg: var(--ct-danger-soft); --bs-btn-hover-border-color: var(--ct-danger); --bs-btn-active-color: var(--ct-danger-ink); --bs-btn-active-bg: var(--ct-danger-soft);
    --bs-btn-active-border-color: var(--ct-danger); }
.btn-link { --bs-btn-color: var(--t-pri); --bs-btn-hover-color: var(--bs-link-hover-color); }

/* inputs: the same blue for focus and ticks */
.form-control, .form-select { border-color: var(--t-line); background-color: var(--t-panel); color: var(--t-ink); }
.form-control::placeholder { color: color-mix(in srgb, var(--t-muted) 85%, transparent); }
.form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--t-pri) 65%, var(--t-line)); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.form-control:disabled, .form-select:disabled { background-color: var(--t-wait); color: var(--t-muted); }
.form-check-input { border-color: color-mix(in srgb, var(--t-muted) 55%, var(--t-line)); }
.form-check-input:checked { background-color: var(--t-pri); border-color: var(--t-pri); }
.form-check-input:focus { border-color: var(--t-pri); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.form-label .req { color: var(--ct-danger); }

/* statuses: a tinted pill with a dot in the status colour */
.st-Intake { --st: var(--ct-intake); } .st-WaitingOnUs { --st: var(--ct-waitingonus); } .st-WaitingOnClinic { --st: var(--ct-waiting); }
.st-MappingSent { --st: var(--ct-mapping); } .st-ReadyToRun { --st: var(--ct-ready); } .st-TestSent, .st-WithNexTech { --st: var(--ct-testsent); }
.st-Final { --st: var(--ct-final); } .st-LiveDelta, .st-Live { --st: var(--ct-live); } .st-OnHold { --st: var(--ct-hold); }
.st-Complete { --st: var(--ct-complete); } .st-ClinicValidation { --st: var(--ct-validation); } .st-Fixes { --st: var(--ct-fixes); }
.st-WaitingForData { --st: var(--ct-data); } .st-Delta { --st: var(--ct-delta); }
.badge.status[class*="st-"] { background: color-mix(in srgb, var(--st) 12%, var(--t-panel)); color: color-mix(in srgb, var(--st) 78%, var(--t-ink));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 22%, transparent); letter-spacing: .02em; }
.badge.status[class*="st-"]::before { content: ""; width: .55em; height: .55em; flex: 0 0 auto; border-radius: 50%; background: var(--st); }
[data-bs-theme="dark"] .badge.status[class*="st-"] { background: color-mix(in srgb, var(--st) 18%, var(--t-panel)); color: var(--st);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 30%, transparent); }

/* families: the same treatment (cards keep their solid coloured edge) */
.fam-tag, [data-bs-theme] .fam-tag { background: color-mix(in srgb, var(--fam, var(--t-muted)) 13%, var(--t-panel)); color: color-mix(in srgb, var(--fam, var(--t-muted)) 80%, var(--t-ink));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fam, var(--t-muted)) 24%, transparent); }
[data-bs-theme="dark"] .fam-tag { background: color-mix(in srgb, var(--fam, var(--t-muted)) 20%, var(--t-panel)); color: var(--fam, var(--t-muted)); }

/* avatars: the palette's hues, tinted the same way */
.av-0 { --av: var(--ct-ready); } .av-1 { --av: var(--ct-final); } .av-2 { --av: var(--ct-waiting); } .av-3 { --av: var(--ct-mapping); }
.av-4 { --av: var(--ct-waitingonus); } .av-5 { --av: var(--ct-testsent); } .av-6 { --av: var(--ct-validation); } .av-7 { --av: var(--ct-complete); }
.av { background: color-mix(in srgb, var(--av, var(--t-muted)) 14%, var(--t-panel)); color: color-mix(in srgb, var(--av, var(--t-muted)) 82%, var(--t-ink)); }
[data-bs-theme="dark"] .av { background: color-mix(in srgb, var(--av, var(--t-muted)) 22%, var(--t-panel)); color: var(--av, var(--t-muted)); }

/* chips and badges that carry a meaning */
[data-bs-theme] .u-chip.ok { background: var(--ct-ok-soft); color: var(--ct-ok-ink); }
[data-bs-theme] .u-chip.warn { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
[data-bs-theme] .u-chip.danger { background: var(--ct-danger-soft); color: var(--ct-danger-ink); }
.role-badge { background: var(--t-wait); border-color: var(--t-line); color: var(--t-ink); }
[data-bs-theme] .role-badge.rl-tl { background: var(--t-pri-soft); color: var(--bs-primary-text-emphasis); border-color: transparent; }
[data-bs-theme] .role-badge.rl-mgr { background: var(--ct-violet-soft); color: var(--ct-violet-ink); border-color: transparent; }
[data-bs-theme] .role-badge.rl-ext { background: var(--ct-warn-soft); color: var(--ct-warn-ink); border-color: transparent; }
.mail-strip.warn { border-color: color-mix(in srgb, var(--ct-warn) 40%, var(--t-line)); background: color-mix(in srgb, var(--ct-warn-soft) 70%, var(--t-panel)); }
.tb-opt mark, .ms-option mark { background: color-mix(in srgb, var(--ct-warn) 26%, transparent); color: inherit; }
.nav-count, .nb-count, .dm-unread.danger { background: var(--ct-danger); }
.dm-unread { background: var(--t-pri); }
[data-bs-theme="dark"] .nav-count, [data-bs-theme="dark"] .nb-count { color: #160c0c; }
.brand-dot { background: var(--t-pri); }
/* the side menu and top bar take the panel colour; the page around them the background */
.side { background: var(--t-panel); }
/* alerts (the "Next:" bar, warnings, errors): the palette's tints, not Bootstrap's own greys */
.alert-secondary { --bs-alert-bg: var(--t-wait); --bs-alert-border-color: var(--t-line); --bs-alert-color: var(--t-ink); --bs-alert-link-color: var(--t-pri); }
.alert-primary, .alert-info { --bs-alert-bg: var(--t-pri-soft); --bs-alert-border-color: color-mix(in srgb, var(--t-pri) 25%, var(--t-line)); --bs-alert-color: var(--bs-primary-text-emphasis); }
.alert-success { --bs-alert-bg: var(--ct-ok-soft); --bs-alert-border-color: color-mix(in srgb, var(--ct-ok) 28%, var(--t-line)); --bs-alert-color: var(--ct-ok-ink); }
.alert-warning { --bs-alert-bg: var(--ct-warn-soft); --bs-alert-border-color: color-mix(in srgb, var(--ct-warn) 30%, var(--t-line)); --bs-alert-color: var(--ct-warn-ink); }
.alert-danger { --bs-alert-bg: var(--ct-danger-soft); --bs-alert-border-color: color-mix(in srgb, var(--ct-danger) 28%, var(--t-line)); --bs-alert-color: var(--ct-danger-ink); }
/* ---------- issues (user 2026-11-28): one panel, filters on top, a table ---------- */
.i-card { border-radius: 12px; overflow: hidden; }
.i-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--t-line); }
.i-search { flex: 1 1 260px; }
.i-sel { flex: 0 0 auto; width: auto; min-width: 170px; height: 34px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--t-wait); border: 1px solid var(--t-line); }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--t-muted); text-decoration: none; white-space: nowrap; }
.seg-btn:hover { color: var(--t-ink); }
.seg-btn.on { background: var(--t-panel); color: var(--t-ink); box-shadow: var(--t-shadow); }
.seg-n { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 999px; background: var(--t-line); color: var(--t-ink); }
.seg-btn.on .seg-n { background: var(--t-pri-soft); color: var(--t-pri); }
.i-table { --bs-table-bg: transparent; }
.i-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--t-muted); padding: 10px 14px; border-bottom-color: var(--t-line); white-space: nowrap; }
.i-table td { padding: 12px 14px; border-bottom-color: var(--t-line); }
.i-table tbody tr:last-child td { border-bottom: 0; }
.i-row { cursor: pointer; }
.i-row:hover td, .i-row:focus-visible td { background: var(--t-bg); }
.i-row:focus-visible { outline: 2px solid var(--t-pri); outline-offset: -2px; }
.i-row.done .iss-title, .i-row.done .i-type-ic { opacity: .6; }
.i-issue { display: flex; align-items: flex-start; gap: 12px; min-width: 280px; }
.i-type-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; }
.i-type-ic .ic { width: 16px; height: 16px; margin: 0; }
.i-type-ic.iss-bug { background: var(--ct-danger-soft); color: var(--ct-danger-ink); }
.i-type-ic.iss-question { background: var(--ct-violet-soft); color: var(--ct-violet-ink); }
.i-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.i-text .iss-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.i-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--t-muted); }
.i-meta > span + span::before, .i-meta > .link-chip + span::before { content: none; }
.i-meta .link-chip { font-size: 11.5px; padding: 0 8px; }
.i-com { display: inline-flex; align-items: center; gap: 3px; }
.i-com .ic { width: 13px; height: 13px; margin: 0; }
.i-st-cell { white-space: nowrap; }
.i-since { font-size: 12px; color: var(--t-muted); margin-top: 3px; }
.i-upd { font-size: 13px; color: var(--t-muted); white-space: nowrap; }
.i-card > .empty { padding: 40px 16px; }
/* issue statuses: tinted pills with a dot, like the clinic statuses */
.iss-st { --st: var(--ct-intake); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
    border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: color-mix(in srgb, var(--st) 12%, var(--t-panel)) !important;
    color: color-mix(in srgb, var(--st) 78%, var(--t-ink)) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 22%, transparent); }
.iss-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--st); }
.iss-st.iss-open { --st: var(--ct-ready); } .iss-st.iss-inprogress { --st: var(--ct-warn); } .iss-st.iss-resolved { --st: var(--ct-ok); } .iss-st.iss-closed { --st: var(--ct-complete); }
[data-bs-theme="dark"] .iss-st { background: color-mix(in srgb, var(--st) 18%, var(--t-panel)) !important; color: var(--st) !important; }
[data-bs-theme] .iss-type.iss-bug { color: var(--ct-danger-ink); background: var(--ct-danger-soft); }
/* the issue page: the "About" link keeps its own width */
.iss-facts .link-chip { align-self: flex-start; max-width: 100%; }
@media (max-width: 767.98px) {
    .i-table thead { display: none; }
    .i-table tr.i-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--t-line); }
    .i-table tr.i-row td { padding: 0; border: 0; background: none !important; }
    .i-table tr.i-row td.i-issue-cell { grid-column: 1 / -1; }
    .i-table tr.i-row td.i-upd { grid-column: 2; grid-row: 2; align-self: center; }
    .i-issue { min-width: 0; }
    .i-sel { flex: 1 1 140px; }
}
.i-table .pick-btn, .i-table .pick-btn .text-danger { white-space: nowrap; }

/* the comment box's controls: compact, matching the help text beside them (user 2026-11-28) */
.cm-form textarea { font-size: 14px; border-radius: 10px; min-height: 64px; }
.cm-form .btn { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; line-height: 1; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; }
.cm-form .btn .ic { width: 15px; height: 15px; margin: 0; }
.cm-form .cm-attach { width: 32px; padding: 0; justify-content: center; font-weight: 400; color: var(--t-muted); }
.cm-form .cm-attach:hover { color: var(--t-ink); }
.cm-form .small.me-auto { font-size: 12px; color: var(--t-muted); }
/* a count that is information, not an alarm (open issues) */
.nav-count.soft { background: var(--t-pri-soft); color: var(--t-pri); }
.side-link.active .nav-count.soft { background: var(--t-panel); }
/* issue status switch (user 2026-11-28): each option with its status dot; the chosen one lit in its own colour */
.seg-toggle:has(.is-st) { padding: 3px; gap: 2px; border-radius: 999px; background: var(--t-wait); border: 1px solid var(--t-line); }
.seg-toggle .seg-opt.is-st { --st: var(--ct-intake); gap: 7px; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--t-muted);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.seg-opt.is-st[data-st="Open"] { --st: var(--ct-ready); } .seg-opt.is-st[data-st="InProgress"] { --st: var(--ct-warn); }
.seg-opt.is-st[data-st="Resolved"] { --st: var(--ct-ok); } .seg-opt.is-st[data-st="Closed"] { --st: var(--ct-complete); }
.seg-opt.is-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st); opacity: .45; transition: opacity .15s ease, transform .15s ease; }
.seg-opt.is-st:hover { color: var(--t-ink); background: color-mix(in srgb, var(--st) 7%, transparent); }
.seg-opt.is-st:hover::before { opacity: .8; }
button.seg-opt.is-st.on { background: color-mix(in srgb, var(--st) 13%, var(--t-panel)); color: color-mix(in srgb, var(--st) 80%, var(--t-ink)); font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 35%, transparent), 0 1px 2px #1b23301a; }
button.seg-opt.is-st.on::before { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent); }
[data-bs-theme="dark"] button.seg-opt.is-st.on { background: color-mix(in srgb, var(--st) 20%, var(--t-panel)); color: var(--st); }
@media (prefers-reduced-motion: reduce) { .seg-toggle .seg-opt.is-st, .seg-opt.is-st::before { transition: none; } }
/* ---------- dashboard (user 2026-11-28) ---------- */
.dash { display: flex; flex-direction: column; gap: 16px; }
.d-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.d-hello { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; letter-spacing: -.02em; margin: 0; }
.d-date { margin: 2px 0 0; color: var(--t-muted); font-size: 14px; }
.d-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.d-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-panel);
    color: var(--t-muted); font-size: 13.5px; text-decoration: none; box-shadow: var(--t-shadow); }
.d-pill b { color: var(--t-ink); font-variant-numeric: tabular-nums; }
.d-pill .ic { width: 16px; height: 16px; margin: 0; }
.d-pill.hot { border-color: color-mix(in srgb, var(--t-pri) 35%, var(--t-line)); background: var(--t-pri-soft); color: var(--bs-primary-text-emphasis); }
.d-pill.hot b { color: var(--t-pri); }
.d-pill:hover { border-color: var(--t-pri); }
.d-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.d-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-panel);
    color: var(--t-ink); text-decoration: none; box-shadow: var(--t-shadow); border-top: 3px solid var(--t-line); }
.d-tile:hover { border-color: color-mix(in srgb, var(--t-pri) 40%, var(--t-line)); }
.d-tile-n { font-size: 28px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.d-tile-l { font-size: 13px; color: var(--t-muted); }
.d-tile.pri { border-top-color: var(--t-pri); } .d-tile.pri .d-tile-n { color: var(--t-pri); }
.d-tile.warn { border-top-color: var(--ct-warn); } .d-tile.warn .d-tile-n { color: var(--ct-warn-ink); }
.d-tile.danger { border-top-color: var(--ct-danger); } .d-tile.danger .d-tile-n { color: var(--ct-danger-ink); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.d-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.d-card { border-radius: 12px; }
.d-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--t-line); }
.d-card-h h2 { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 650; margin: 0; }
.d-card-h h2 .ic { color: var(--t-pri); width: 17px; height: 17px; }
.d-count { margin-left: 6px; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--t-wait); color: var(--t-muted); }
.d-more { font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.d-card-b { padding: 6px 16px 12px; }
.d-empty { margin: 10px 0 6px; color: var(--t-muted); font-size: 13.5px; }
.d-list { list-style: none; margin: 0; padding: 0; }
.d-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--t-line); min-width: 0; }
.d-row:last-child { border-bottom: 0; }
.d-row > .d-fam { flex: 0 0 auto; min-width: 92px; margin: 0; text-align: center; font-size: 11.5px; text-decoration: none; white-space: nowrap; }
.d-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.d-row-title { font-weight: 600; font-size: 14px; color: var(--t-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row-title:hover { color: var(--t-pri); text-decoration: underline; }
.d-row-sub { font-size: 12.5px; color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row-side { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 55%; }
.d-row-side .badge.status { font-size: 10px; }
.d-due { font-size: 12px; color: var(--t-muted); white-space: nowrap; }
.d-due.soon { color: var(--ct-warn-ink); font-weight: 600; } .d-due.late { color: var(--ct-danger-ink); font-weight: 600; }
.d-when { font-size: 12px; color: var(--t-muted); white-space: nowrap; }
.d-prog { width: 150px; flex-wrap: nowrap; }
.d-prog .progress { flex: 1 1 auto; }
.d-pct { font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.d-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.d-tag.danger { background: var(--ct-danger-soft); color: var(--ct-danger-ink); } .d-tag.warn { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.d-sbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 10px 0 12px; background: var(--t-wait); }
.d-sbar > span { background: var(--st); min-width: 6px; }
.d-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; font-size: 13px; }
.d-legend li { display: flex; align-items: center; gap: 7px; }
.d-legend b { font-variant-numeric: tabular-nums; } .d-legend small { color: var(--t-muted); }
.d-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--st); flex: 0 0 auto; }
.d-load { width: 100%; font-size: 13.5px; border-collapse: collapse; margin-top: 4px; }
.d-load th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--t-muted); padding: 6px 6px 6px 0; text-align: left; }
.d-load td { padding: 7px 6px 7px 0; border-top: 1px solid var(--t-line); font-variant-numeric: tabular-nums; }
.d-load td:nth-child(2) { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.d-person { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.d-loadbar { flex: 1 1 auto; height: 6px; border-radius: 999px; background: var(--t-wait); overflow: hidden; }
.d-loadbar > span { display: block; height: 100%; border-radius: 999px; background: var(--t-pri); }
.d-grid-cds { margin-bottom: 0; }
@media (max-width: 1099.98px) { .d-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .d-row { flex-wrap: wrap; } .d-row-side { max-width: 100%; justify-content: flex-start; }
    .d-row > .d-fam { min-width: 0; }
}
.d-prog { width: 170px; } .d-prog .progress { min-width: 90px; }

/* dashboard, compact (user 2026-11-28): tighter rows, headers and tiles */
.dash { gap: 12px; }
.d-hello { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.d-date { font-size: 13px; }
.d-pill { padding: 5px 12px; font-size: 13px; }
.d-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.d-tile { padding: 9px 13px; border-top-width: 2px; border-radius: 10px; }
.d-tile-n { font-size: 22px; }
.d-tile-l { font-size: 12.5px; }
.d-grid, .d-col { gap: 12px; }
.d-card-h { padding: 8px 14px; }
.d-card-h h2 { font-size: 14px; }
.d-card-h h2 .ic { width: 15px; height: 15px; }
.d-card-b { padding: 2px 14px 6px; }
.d-row { padding: 6px 0; gap: 8px; }
.d-row-title { font-size: 13.5px; }
.d-row-sub { font-size: 12px; }
.d-row > .d-fam { min-width: 84px; font-size: 11px; padding: 1px 7px; }
.d-row-side { gap: 6px; }
.d-row-side .badge.status { font-size: 9.5px; padding: .3em .6em; }
.d-empty { margin: 8px 0 4px; font-size: 13px; }
.d-sbar { height: 10px; margin: 8px 0 10px; }
.d-legend { font-size: 12.5px; gap: 4px 14px; }
.d-load { font-size: 13px; }
.d-load td { padding: 5px 6px 5px 0; }
.d-load .av.av-sm { width: 24px; height: 24px; font-size: 10px; }
.d-prog { width: 150px; }
.d-showall { display: block; width: 100%; margin: 2px 0 4px; padding: 6px 0; border: 0; border-top: 1px dashed var(--t-line); background: transparent; color: var(--t-pri); font-size: 12.5px; font-weight: 600; text-align: center; }
.d-showall:hover { text-decoration: underline; }
.d-list li[hidden] { display: none; }

/* Summary tiles: which clinics or families are behind the number (user 2026-11-28) */
.d-tile.has-pop { position: relative; padding: 0; }
.d-tile-btn { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; padding: 9px 13px; cursor: pointer; border-radius: inherit; }
.d-tile-btn:focus-visible { outline: 2px solid var(--t-pri); outline-offset: 2px; }
.d-tile-btn[aria-expanded="true"] .d-tile-l { color: var(--t-ink); }
.d-tile-p { font-size: 11.5px; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; padding-top: 4px; border-top: 1px dashed var(--t-line); }
.d-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: max(100%, 360px); max-height: 340px; overflow: auto; padding: 6px;
    background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 10px; box-shadow: 0 12px 28px #1b233026, 0 2px 6px #1b23301a; }
.d-tiles > :nth-last-child(-n+2) .d-pop { left: auto; right: 0; }
.d-pop ul { list-style: none; margin: 0; padding: 0; }
.d-pop li a { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 8px; padding: 6px 8px; border-radius: 6px; color: var(--t-ink); text-decoration: none; font-size: 13px; }
.d-pop li a:hover, .d-pop li a:focus-visible { background: var(--t-pri-soft); }
.d-pop .d-fam { font-size: 10.5px; padding: 0 6px; margin: 0; }
.d-pop-t { font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; }
.d-pop small { flex-basis: 100%; color: var(--t-muted); font-size: 12px; }
.d-pop > .d-more { display: block; margin-top: 4px; padding: 7px 8px 3px; border-top: 1px solid var(--t-line); }
.d-pop li a > .badge, .d-pop li a > .st-pill { margin-left: auto; font-size: 10px; }
/* Queries not finished before a go-live (user 2026-11-28) */
.d-warn { border-color: color-mix(in srgb, var(--ct-warn) 55%, var(--t-line)); border-left: 4px solid var(--ct-warn); background: color-mix(in srgb, var(--ct-warn-soft) 45%, var(--t-panel)); }
.d-warn .d-card-h h2, .d-warn .d-card-h h2 .ic { color: var(--ct-warn-ink); }
.d-warn .d-row-sub b { font-weight: 600; color: var(--t-ink); }
/* urgent families' queries (user 2026-12-01) */
.d-urgent { border-color: color-mix(in srgb, var(--ct-danger) 55%, var(--t-line)); border-left-color: var(--ct-danger); background: color-mix(in srgb, var(--ct-danger-soft) 45%, var(--t-panel)); }
.d-urgent .d-card-h h2, .d-urgent .d-card-h h2 .ic { color: var(--ct-danger-ink); }
.d-urgent .d-row-sub a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
/* A team member's dashboard, for Team Leaders and Managers (user 2026-11-28) */
.d-views { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-who { width: auto; min-width: 170px; max-width: 230px; }
.d-who.on { border-color: var(--t-pri); color: var(--t-pri); font-weight: 600; }
.d-viewing { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--t-pri) 35%, var(--t-line));
    border-radius: 10px; background: var(--t-pri-soft); font-size: 13.5px; }
.d-viewing a { margin-left: auto; font-weight: 500; }
a.d-person { color: inherit; text-decoration: none; }
a.d-person:hover { color: var(--t-pri); text-decoration: underline; }

/* ---------- the Clinic Data Specialist's screens (user 2026-11-28): To do, Clinics, Meetings ---------- */
.cds-kinds { margin: 4px 0 14px; flex-wrap: wrap; }
.cds-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 991.98px) { .cds-layout { grid-template-columns: minmax(0, 1fr); } }
.cds-cards { display: grid; gap: 12px; }
.cds-step { background: var(--t-panel); border: 1px solid var(--t-line); border-left: 4px solid var(--t-pri); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--t-shadow); }
.cds-step.urgent { border-left-color: var(--ct-danger); }
.cds-step.drop { outline: 2px dashed var(--t-pri); outline-offset: 2px; }
.cds-step-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cds-step-h .fam-tag { margin: 0; }
a.fam-tag { text-decoration: none; }
.cds-clinic { font-weight: 650; color: var(--t-ink); text-decoration: none; }
.cds-clinic:hover { text-decoration: underline; }
.cds-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--t-muted); }
.cds-flag svg { width: 13px; height: 13px; }
.cds-flag.warn { color: var(--ct-warn-ink); font-weight: 600; }
.cds-flag.danger { color: var(--ct-danger-ink); font-weight: 700; }
.cds-since { margin-left: auto; font-size: 12px; color: var(--t-muted); }
.cds-what { font-size: 16px; font-weight: 650; margin: 10px 0 6px; line-height: 1.35; }
.cds-ctx { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--t-wait); font-size: 13.5px; }
.cds-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.cds-lbl { font-size: 12px; color: var(--t-muted); min-width: 92px; }
.cds-file { display: inline-flex; align-items: center; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-panel); font-size: 13px; }
.cds-file a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; text-decoration: none; }
.cds-file a svg { width: 14px; height: 14px; }
.cds-file-del { border: 0; background: none; color: var(--t-muted); padding: 0 8px 0 2px; font-size: 16px; line-height: 1; }
.cds-file-del:hover { color: var(--ct-danger); }
.cds-act { display: grid; gap: 8px; margin-top: 10px; }
.cds-drop { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px dashed var(--t-line); border-radius: 10px;
  cursor: pointer; color: var(--t-pri); font-weight: 600; background: var(--t-bg); }
.cds-drop:hover { border-color: var(--t-pri); background: var(--t-pri-soft); }
.cds-drop small { color: var(--t-muted); font-weight: 400; }
.cds-drop svg { width: 18px; height: 18px; }
.cds-pending { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cds-note { font-size: 14px; }
.cds-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cds-btns .btn-primary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-weight: 600; }
.cds-btns .btn-primary svg { width: 16px; height: 16px; }
.cds-exact { margin: 8px 0 0; font-size: 11.5px; color: var(--t-muted); }
.cds-empty { display: flex; align-items: center; gap: 8px; padding: 18px; border: 1px dashed var(--t-line); border-radius: 12px; color: var(--t-muted); }
.cds-empty svg { width: 18px; height: 18px; color: var(--ct-ok); }
.cds-more { margin-top: 14px; background: var(--t-panel); border: 1px solid var(--t-line); border-radius: 12px; padding: 4px 14px; }
.cds-more > summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.cds-more > summary small { color: var(--t-muted); font-weight: 400; margin-left: 4px; }
.cds-rows { list-style: none; margin: 0; padding: 0; }
.cds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 0; border-top: 1px solid var(--t-line); }
.cds-more .cds-row:first-child, .d-card-b > .cds-rows > .cds-row:first-child { border-top: 0; }
.cds-row .fam-tag { margin: 0; }
.cds-row-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cds-row-main small { color: var(--t-muted); }
.cds-row-main .cds-files { margin: 2px 0 0; }
.cds-ok { width: 15px; height: 15px; color: var(--ct-ok); vertical-align: -2px; margin-right: 3px; }
.cds-h { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.cds-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.cds-tools input[type=search] { max-width: 360px; }
.cds-clinics { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cds-clinic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border: 1px solid var(--t-line);
  border-radius: 12px; background: var(--t-panel); color: var(--t-ink); text-decoration: none; box-shadow: var(--t-shadow); }
.cds-clinic-row:hover { border-color: var(--t-pri); }
.cds-clinic-name { font-weight: 650; flex: 0 1 240px; }
.cds-clinic-fams { flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cds-clinic-fams .fam-tag { margin: 0; }
.cds-clinic-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cds-todo { font-size: 12px; font-weight: 700; color: var(--t-pri); background: var(--t-pri-soft); border-radius: 999px; padding: 2px 10px; }
.cds-plan > summary { cursor: pointer; list-style: none; }
.cds-plan > summary::-webkit-details-marker { display: none; }
@media (max-width: 575.98px) {
  .cds-step { padding: 12px; }
  .cds-since { margin-left: 0; width: 100%; }
  .cds-btns .btn-primary { flex: 1 1 100%; justify-content: center; padding: 9px 14px; }
  .cds-lbl { min-width: 0; width: 100%; }
}

/* ---------- the clinic's file exchange (user 2026-11-28): one upload for several families, notes, replacement / update ---------- */
.xc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.xc-top h2 { margin-right: auto; }
.xc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.xc-btns .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; }
.xc-btns .btn svg { width: 15px; height: 15px; }
.xc-head, .xc-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 12px; }
.xc-head { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t-muted); padding: 0 0 6px; border-bottom: 1px solid var(--t-line); }
.xc-row { padding: 10px 0; border-bottom: 1px solid var(--t-line); align-items: start; }
.xc-row:last-child { border-bottom: 0; }
.xc-what { display: flex; flex-direction: column; gap: 4px; }
.xc-fams { display: flex; flex-wrap: wrap; gap: 4px; }
.xc-fams .fam-tag { margin: 0; }
.xc-side { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.xc-side .step-files { margin: 0; }
.xc-st { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.xc-st svg { width: 14px; height: 14px; }
.xc-st.ok { color: var(--ct-ok-ink); }
.xc-st.warn { color: var(--ct-warn-ink); }
.xc-st.muted { color: var(--t-muted); font-weight: 400; }
.xc-note { font-size: 12.5px; color: var(--t-ink); background: var(--t-wait); border-radius: 6px; padding: 3px 8px; display: inline-flex; gap: 5px; align-items: flex-start; }
.xc-note svg { width: 13px; height: 13px; margin-top: 2px; color: var(--t-muted); flex: none; }
.xc-act { padding: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.xc-act svg { width: 14px; height: 14px; }
@media (max-width: 767.98px) {
  .xc-head { display: none; }
  .xc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.step-file.replaced { opacity: .65; text-decoration: line-through; text-decoration-color: var(--t-muted); }
.step-old { font-size: 12px; margin-top: 2px; }
.step-old > summary { cursor: pointer; color: var(--t-muted); }
.step-old .step-file { margin: 3px 4px 0 0; }
button.step-add { border: 0; background: none; padding: 0; }
.xf-kind { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--t-line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.xf-kind:has(input:checked) { border-color: var(--t-pri); background: var(--t-pri-soft); color: var(--t-pri); font-weight: 600; }
.xf-fams { display: flex; flex-wrap: wrap; gap: 8px; }
.xf-fam { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--t-line); border-radius: 10px; cursor: pointer; }
.xf-fam .fam-tag { margin: 0; }
.xf-fam small { color: var(--t-muted); }
.xf-fam:has(input:checked) { border-color: var(--t-pri); background: var(--t-pri-soft); }
.xf-fam.blocked { opacity: .7; }
.xf-drop { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1.5px dashed var(--t-line); border-radius: 12px; cursor: pointer; color: var(--t-pri); background: var(--t-bg); }
.xf-drop small { color: var(--t-muted); }
.xf-drop svg { width: 20px; height: 20px; }
.xf-drop:hover, .xf-drop.over { border-color: var(--t-pri); background: var(--t-pri-soft); }
.xf-mode { padding: 8px 12px; border-radius: 10px; background: var(--ct-warn-soft); }
.cds-also, .cds-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0; font-size: 13px; }
.cds-also label, .cds-mode label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.cds-also .fam-tag { margin: 0; }
.cds-also small { color: var(--t-muted); }
.cds-mode { padding: 6px 10px; border-radius: 8px; background: var(--ct-warn-soft); }
.cds-ctx svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; color: var(--t-muted); }

/* ---------- deliveries of a round (user 2026-11-28): first delivery, corrections ---------- */
.dl-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dl-top h2 { margin-right: auto; display: flex; align-items: center; gap: 4px; }
.dl-top .btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dl-top .btn svg { width: 14px; height: 14px; }
.dl-item { border: 1px solid var(--t-line); border-left: 4px solid var(--t-pri); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 6px; }
.dl-item.dl-waiting { border-left-color: var(--ct-warn); }
.dl-item.dl-sent, .dl-item.dl-loaded { border-left-color: var(--ct-testsent); }
.dl-item.dl-feedback { border-left-color: var(--ct-fixes); }
.dl-item.dl-done { border-left-color: var(--ct-ok); }
.dl-item.closed { border-left-color: var(--t-line); background: var(--t-bg); }
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dl-type { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--t-wait); color: var(--t-muted); }
.dl-type.corr { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.dl-state { margin-left: auto; font-size: 13px; color: var(--t-muted); }
.dl-dates, .dl-needs { font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dl-dates svg { width: 14px; height: 14px; color: var(--t-muted); }
.dl-dates small, .dl-needs small { color: var(--t-muted); }
.dl-ok { color: var(--ct-ok-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.dl-ok svg { width: 13px; height: 13px; }
.dl-needs .btn-link { padding: 0 4px; font-size: 13px; }
.dl-sum { font-size: 13px; background: var(--t-wait); border-radius: 8px; padding: 6px 10px; white-space: pre-wrap; }
.dl-sum span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 2px; }
.dl-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.dl-step { font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--t-line); color: var(--t-muted); display: inline-flex; align-items: center; gap: 3px; }
.dl-step.done { border-color: transparent; background: var(--ct-ok-soft); color: var(--ct-ok-ink); }
.dl-step svg { width: 12px; height: 12px; }
.dl-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dl-btns .btn { display: inline-flex; align-items: center; gap: 5px; }
.dl-btns .btn svg { width: 14px; height: 14px; }
.dl-hist { font-size: 12.5px; }
.dl-hist summary, .dl-old > summary { cursor: pointer; color: var(--t-muted); }
.dl-hist ul { margin: 4px 0 0; padding-left: 18px; }
.dl-old { margin-top: 4px; }
.dl-old > .dl-item { margin-top: 8px; }
.xf-plan { padding: 10px 12px; border: 1px dashed var(--t-line); border-radius: 10px; }

/* already on NexTech? not answered / not sure (user 2026-11-28) */
.nt-warn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ct-warn-ink); background: var(--ct-warn-soft);
  border-radius: 999px; padding: 2px 10px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.nt-warn svg { width: 13px; height: 13px; }
.nt-warn.sm { font-size: 10.5px; padding: 1px 7px; }
.nt-warn.sm svg { width: 11px; height: 11px; }

/* ---------- "What's needed" on a clinic (user 2026-11-28) ---------- */
.nd-card { border-color: color-mix(in srgb, var(--t-pri) 35%, var(--t-line)); }
.nd-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.nd-top h2 { display: flex; align-items: center; gap: 4px; }
.nd-lines { display: grid; gap: 0; }
.nd-line { display: grid; grid-template-columns: minmax(200px, 1.3fr) minmax(0, 1fr) minmax(260px, 1.4fr); gap: 8px 14px; align-items: center;
  padding: 9px 0; border-top: 1px solid var(--t-line); }
.nd-line:first-child { border-top: 0; }
.nd-what { display: flex; flex-direction: column; min-width: 0; }
.nd-meta { font-size: 12px; color: var(--t-muted); }
.nd-fams { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.nd-fams .fam-tag { margin: 0; }
.nd-fam { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nd-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nd-act .nd-note { flex: 1 1 160px; min-width: 140px; }
.nd-act .btn-primary { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nd-act .btn svg { width: 14px; height: 14px; }
.nd-others { margin-top: 8px; border-top: 1px solid var(--t-line); padding-top: 6px; }
.nd-others > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.nd-owner { margin-top: 6px; }
.nd-owner-h { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t-muted); }
.nd-owner ul { list-style: none; margin: 2px 0 0; padding: 0; }
.nd-owner li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 0; font-size: 13.5px; }
.nd-owner li small { color: var(--t-muted); }
@media (max-width: 991.98px) { .nd-line { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- the project checklist of a clinic (user 2026-11-28) ---------- */
.pc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.pc-top h2 { display: flex; align-items: center; gap: 4px; }
.pc-sec h3 { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t-muted); margin: 12px 0 2px; }
.pc-line { display: grid; grid-template-columns: 28px minmax(200px, 1.4fr) minmax(0, 1.2fr) auto; gap: 6px 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--t-line); }
.pc-sec h3 + .pc-line { border-top: 0; }
.pc-state { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--t-line); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--t-muted); }
.pc-line.done .pc-state { background: var(--ct-ok-soft); border-color: transparent; color: var(--ct-ok-ink); }
.pc-state svg { width: 14px; height: 14px; }
.pc-what { display: flex; flex-direction: column; min-width: 0; }
.pc-line.done .pc-what > span { color: var(--t-muted); }
.pc-what small { color: var(--t-muted); font-size: 12px; }
.pc-fams { display: flex; flex-wrap: wrap; gap: 4px; }
.pc-fam { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--t-line); color: var(--t-muted); }
.pc-fam.done { border-color: transparent; background: var(--ct-ok-soft); color: var(--ct-ok-ink); }
.pc-fam svg { width: 11px; height: 11px; }
.pc-act .btn { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pc-act .btn svg { width: 14px; height: 14px; }
@media (max-width: 767.98px) { .pc-line { grid-template-columns: 28px minmax(0, 1fr); } .pc-fams, .pc-act { grid-column: 2; } }

/* ---------- what we can convert (user 2026-11-28) ---------- */
.cv-box { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-bg); }
.cv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.cv-head strong { display: inline-flex; align-items: center; gap: 4px; }
.cv-head small { color: var(--t-muted); }
.cv-sys { padding: 6px 0; border-top: 1px solid var(--t-line); display: grid; gap: 4px; }
.cv-sys:first-of-type { border-top: 0; }
.cv-sys-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cv-name { font-weight: 650; }
.cv-ok { color: var(--ct-ok-ink); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.cv-ok svg { width: 14px; height: 14px; }
.cv-wait { color: var(--ct-warn-ink); font-size: 13px; }
.cv-btns { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-btns .btn { display: inline-flex; align-items: center; gap: 4px; }
.cv-btns .btn svg { width: 14px; height: 14px; }
.cv-list summary { cursor: pointer; font-size: 13px; color: var(--t-muted); }
.cv-list pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; margin: 4px 0 0; padding: 6px 10px; background: var(--t-panel); border-radius: 8px; border: 1px solid var(--t-line); }
.fu-info { font-size: 12px; color: var(--ct-warn-ink); }

/* ---------- UX review (user 2026-11-28): clinic tabs, details line, folds, To do across clinics ---------- */
.cfacts { margin: 0 0 10px; }
.cfacts > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--t-muted); }
.cfacts > summary::-webkit-details-marker { display: none; }
.cfacts .cf-line b { color: var(--t-ink); font-weight: 600; }
.cfacts .cf-dot { margin: 0 6px; color: var(--t-line); }
.cfacts .cf-more { margin-left: auto; color: var(--t-pri); font-weight: 600; }
.cfacts[open] .cf-more { color: var(--t-muted); }
.ctabs { display: flex; gap: 2px; border-bottom: 1px solid var(--t-line); margin: 4px 0 14px; overflow-x: auto; }
.ctab { border: 0; background: none; padding: 8px 14px; font-weight: 600; color: var(--t-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ctab:hover { color: var(--t-ink); }
.ctab.on { color: var(--t-pri); border-bottom-color: var(--t-pri); }
.ctab-n { font-weight: 500; color: var(--t-muted); }
.ctab-pane > .card:last-child, .ctab-pane > .row:last-child { margin-bottom: 0; }
.pc-steps > summary { cursor: pointer; font-size: 13.5px; color: var(--t-pri); font-weight: 600; margin: 6px 0 2px; }
.pc-steps[open] > summary { color: var(--t-muted); }
.done-fold { margin-top: 4px; }
.done-fold > summary { cursor: pointer; font-size: 13px; color: var(--t-muted); padding: 6px 0; }
.d-tick { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; font-size: 12.5px; }
.d-tick svg { width: 13px; height: 13px; }
.td-fams { gap: 4px 6px; }
.td-fam { gap: 5px; padding: 2px 8px 2px 4px; border: 1px solid var(--t-line); border-radius: 999px; font-size: 13px; }
.td-fam a { font-weight: 600; text-decoration: none; }
.td-fam .fam-tag { margin: 0; font-size: 11px; padding: 0 6px; }
.td-line { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.6fr) minmax(240px, 1.1fr); }
.tn-open { display: inline-flex; align-items: center; gap: 4px; }
/* notifications sent (user 2026-11-29) */
.sn-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sn-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid var(--t-line);
  background: var(--t-panel); box-shadow: var(--t-shadow); text-align: left; color: var(--t-ink); position: relative; overflow: hidden; }
.sn-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sn-c, var(--t-pri)); }
button.sn-tile { cursor: pointer; transition: border-color .15s, background .15s; }
button.sn-tile:hover { border-color: color-mix(in srgb, var(--sn-c, var(--t-pri)) 45%, var(--t-line)); }
button.sn-tile.on { background: color-mix(in srgb, var(--sn-c, var(--t-pri)) 9%, var(--t-panel)); border-color: var(--sn-c, var(--t-pri)); }
button.sn-tile:focus-visible { outline: 2px solid var(--t-pri); outline-offset: 2px; }
.sn-tile-n { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sn-tile-l { font-size: 12.5px; color: var(--t-muted); font-weight: 500; }
.sn-tile.ok { --sn-c: var(--ct-ok); } .sn-tile.ok .sn-tile-n { color: var(--ct-ok-ink); }
.sn-tile.off { --sn-c: var(--t-muted); }
.sn-tile.bad { --sn-c: var(--ct-danger); } .sn-tile.bad .sn-tile-n { color: var(--ct-danger-ink); }
.sn-tile.unseen { --sn-c: var(--ct-warn); }

.sn-wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.sn-people { padding: 8px; position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow: auto; }
.sn-head { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t-muted); padding: 6px 8px 8px; }
.sn-p { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--t-ink); text-align: left; cursor: pointer; }
.sn-p:hover { background: var(--t-bg); }
.sn-p.on { background: var(--t-pri-soft); }
.sn-p:focus-visible { outline: 2px solid var(--t-pri); outline-offset: -2px; }
.sn-p-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--t-wait); color: var(--t-muted); flex: none; }
.sn-p-ic svg { width: 16px; height: 16px; }
.sn-p-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sn-p-who strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-p-who > span { font-size: 12px; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-p-who em { font-style: normal; color: var(--ct-warn-ink); }
.sn-bar { display: flex !important; height: 4px; border-radius: 99px; overflow: hidden; margin-top: 5px; background: var(--t-line); gap: 1px; }
.sn-bar i { display: block; min-width: 3px; }
.sn-bar i.ok { background: var(--ct-ok); } .sn-bar i.off { background: color-mix(in srgb, var(--t-muted) 45%, transparent); } .sn-bar i.bad { background: var(--ct-danger); }
.sn-p-n { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.sn-p-n small { font-size: 11px; font-weight: 500; color: var(--ct-warn-ink); white-space: nowrap; }
.sn-none { font-size: 12px; color: var(--t-muted); padding: 10px 8px 4px; margin: 0; }

.sn-feed { padding: 0; overflow: hidden; }
.sn-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--t-line); }
.sn-tools .u-search { flex: 1 1 240px; }
.sn-tools .form-select { width: auto; flex: 0 0 auto; height: 34px; border-radius: 9px; }
.sn-count { font-size: 12.5px; color: var(--t-muted); padding: 10px 18px 0; }
.sn-day { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--t-muted); margin: 0; padding: 14px 18px 6px; }
.sn-list { list-style: none; margin: 0; padding: 0 8px; }
.sn-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px; }
.sn-item + .sn-item { border-top: 1px solid color-mix(in srgb, var(--t-line) 60%, transparent); }
.sn-item:hover { background: var(--t-bg); }
.sn-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--t-pri-soft); color: var(--t-pri); }
.sn-ic svg { width: 16px; height: 16px; }
.sn-item.k-Message .sn-ic, .sn-item.k-Other .sn-ic { background: var(--t-wait); color: var(--t-muted); }
.sn-item.k-PriorityUrgent .sn-ic, .sn-item.k-QueryWarning .sn-ic { background: var(--ct-danger-soft); color: var(--ct-danger-ink); }
.sn-item.k-PriorityHigh .sn-ic, .sn-item.k-PmPoints .sn-ic, .sn-item.k-Reminder .sn-ic { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.sn-item.k-ClinicStep .sn-ic, .sn-item.k-Delivery .sn-ic, .sn-item.k-ClinicAdded .sn-ic { background: var(--ct-ok-soft); color: var(--ct-ok-ink); }
.sn-main { flex: 1; min-width: 0; }
.sn-text { font-size: 14px; line-height: 1.4; color: var(--t-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sn-text a { color: inherit; text-decoration: none; } .sn-text a:hover { color: var(--t-pri); text-decoration: underline; }
.sn-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 3px; font-size: 12px; color: var(--t-muted); }
.sn-meta > span + span::before { content: "·"; margin: 0 6px; color: var(--t-muted); }
.sn-meta strong { color: var(--t-ink); font-weight: 600; }
.sn-unseen { color: var(--ct-warn-ink); }
.sn-mail { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 130px; padding-top: 1px; }
.sn-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.sn-pill svg { width: 12px; height: 12px; }
.sn-pill.ok { background: var(--ct-ok-soft); color: var(--ct-ok-ink); }
.sn-pill.off { background: var(--t-wait); color: var(--t-muted); }
.sn-pill.bad { background: var(--ct-danger-soft); color: var(--ct-danger-ink); }
.sn-pill.wait { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.sn-why { font-size: 11.5px; color: var(--t-muted); text-align: right; }
.sn-more { text-align: center; padding: 12px; }
.sn-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 48px 16px; color: var(--t-muted); }
.sn-empty svg { width: 28px; height: 28px; margin-bottom: 6px; } .sn-empty strong { color: var(--t-ink); }
.sn-foot { font-size: 12px; color: var(--t-muted); margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--t-line); }
@media (max-width: 991.98px) {
  .sn-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sn-wrap { grid-template-columns: 1fr; }
  .sn-people { position: static; max-height: none; }
}
@media (max-width: 575.98px) {
  .sn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-item { flex-wrap: wrap; } .sn-main { flex: 1 1 calc(100% - 44px); }
  .sn-mail { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; min-width: 0; padding-left: 44px; } .sn-why { text-align: left; }
}

/* source-system queries blocked (user 2026-12-01) */
.sf-blocked { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12.5px; margin: 2px 0 6px; padding: 6px 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--ct-waiting) 12%, var(--t-panel)); border: 1px solid color-mix(in srgb, var(--ct-waiting) 35%, var(--t-line)); }
.sf-blocked > .ic { width: 13px; height: 13px; color: var(--ct-waiting); align-self: center; }
.sf-blocked > span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.sf-blocked small { display: block; color: var(--t-muted); font-size: 11.5px; }
.sf-block .ic { width: 12px; height: 12px; }
.d-prog .blocked-chip { margin-right: 6px; }
/* ask for new tasks (user 2026-12-01) */
button.d-pill { font: inherit; font-size: 13.5px; cursor: pointer; }
.d-ask-tasks { color: var(--t-pri); border-color: color-mix(in srgb, var(--t-pri) 40%, var(--t-line)); }
.d-ask-tasks:hover { background: var(--t-pri-soft); }
.d-ask-tasks:focus-visible { outline: 2px solid var(--t-pri); outline-offset: 2px; }
/* notice to the team (user 2026-12-01) */
.nt-roles { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nt-roles legend { float: none; width: auto; font-size: 12.5px; margin-bottom: 4px; }

/* ---------- Inbox (user 2026-12-01): threads with a subject and several people, e-mail style ---------- */
main:has(> .ib) { max-width: none; padding-bottom: 16px !important; }
.ib-folders { margin: 0 14px 6px; }
.ib-folders .seg-btn b { margin-left: 4px; color: var(--ct-warn-ink); }
.ib-filter { margin: 0 18px 6px; font-size: 12.5px; color: var(--t-muted); }
.ib-row { align-items: flex-start; }
.ib-people { font-size: 12.5px; color: var(--t-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-row-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; min-width: 0; max-width: 100%; }
.ib-row-tags > * { min-width: 0; flex: 0 1 auto; }
.ib-about { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
    background: var(--t-pri-soft); color: var(--bs-primary-text-emphasis); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-about .ic { width: 12px; height: 12px; margin: 0; flex: none; }
a.ib-about:hover { text-decoration: underline; }
.ib-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.ib-tag .ic { width: 12px; height: 12px; margin: 0; }
.ib-tag.warn { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.ib-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 20px 12px; border-bottom: 1px solid var(--t-line); }
.ib-head-main { min-width: 0; flex: 1; }
.ib-subject { font-size: 18px; font-weight: 700; margin: 0 0 6px; overflow-wrap: anywhere; }
.ib-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ib-to { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.ib-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ib-line > b { min-width: 38px; font-size: 12px; font-weight: 600; color: var(--t-muted); }
.ib-cc-toggle { font-size: 12.5px; }
.ib-person { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--t-bg); border: 1px solid var(--t-line); }
.ib-person.ext { border-color: color-mix(in srgb, var(--ct-warn) 50%, var(--t-line)); background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.ib-msgs { flex: 1 1 auto; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.ib-msg { border: 1px solid var(--t-line); border-radius: 12px; padding: 12px 14px; background: var(--t-panel); }
.ib-msg.mine { background: color-mix(in srgb, var(--t-pri-soft) 45%, var(--t-panel)); }
.ib-msg.pending { border-color: color-mix(in srgb, var(--ct-warn) 55%, var(--t-line)); }
.ib-msg-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ib-from { display: flex; flex-direction: column; line-height: 1.25; }
.ib-from strong { font-size: 14px; }
.ib-from time { font-size: 12px; color: var(--t-muted); }
.ib-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: 14px; }
.ib-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ib-files a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--t-line); border-radius: 8px; font-size: 13px; text-decoration: none; color: var(--t-ink); }
.ib-files a:hover { background: var(--t-bg); }
.ib-files .ic { width: 14px; height: 14px; margin: 0; }
.ib-files small { color: var(--t-muted); }
.ib-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; }
.ib-state > .ic { width: 14px; height: 14px; margin: 0; flex: none; }
.ib-state > span:first-of-type { flex: 1 1 220px; }
.ib-state.warn { background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.ib-state.ok { background: var(--ct-ok-soft); color: var(--ct-ok-ink); }
.ib-state.bad { background: var(--ct-danger-soft); color: var(--ct-danger-ink); }
.ib-decide { display: inline-flex; gap: 6px; }
.ib-reply { padding: 10px 20px 14px; border-top: 1px solid var(--t-line); display: flex; flex-direction: column; gap: 8px; }
.ib-reply-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ib-picked { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.ib-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; background: var(--ct-warn-soft); color: var(--ct-warn-ink); }
.ib-note[hidden] { display: none; }
.ib-note .ic { width: 14px; height: 14px; margin: 2px 0 0; flex: none; }
.ib-compose-host { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ib-compose { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ib-compose-body { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 767.98px) {
    .ib-head, .ib-msgs, .ib-reply, .ib-compose-body { padding-left: 12px; padding-right: 12px; }
    .ib-picked { max-width: 100%; }
}

/* ---------- searchable dropdowns everywhere (user 2026-12-01, js/searchselect.js) ---------- */
.ss-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0; pointer-events: none; }
.ss-btn { display: block; text-align: left; overflow: hidden; white-space: nowrap; cursor: pointer; color: var(--bs-body-color); }
.ss-btn .ss-val { display: block; overflow: hidden; text-overflow: ellipsis; }
.ss-btn:disabled { cursor: default; opacity: .65; }
.ss-btn[aria-expanded="true"] { border-color: var(--t-pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-pri) 18%, transparent); }
.ss-pop { position: fixed; z-index: 2000; max-width: min(460px, calc(100vw - 16px)); display: flex; flex-direction: column; max-height: 320px;
    border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-panel); color: var(--t-ink); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); overflow: hidden; }
.ss-search { padding: 6px; border-bottom: 1px solid var(--t-line); }
.ss-search input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-bg); color: var(--t-ink); font-size: 13.5px; outline: 0; }
.ss-search input:focus { border-color: var(--t-pri); background: var(--t-panel); }
.ss-list { list-style: none; margin: 0; padding: 4px; overflow-y: auto; flex: 1 1 auto; }
.ss-opt { padding: 6px 10px; border-radius: 6px; font-size: 13.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-opt.act { background: var(--t-pri-soft); }
.ss-opt.on { font-weight: 600; color: var(--t-pri); }
.ss-opt.on::after { content: "✓"; float: right; margin-left: 10px; }
.ss-opt.off { opacity: .5; cursor: default; }
.ss-group { padding: 8px 10px 3px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t-muted); }
.ss-none { padding: 10px; font-size: 13px; color: var(--t-muted); }

/* Families screen (2026-12-02): a card per family type; each family has a page (text and images) and its files */
.fam-docs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.fam-doc { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .75rem; border-top: 3px solid var(--fam, var(--t-line)) !important; }
.fam-doc:hover { box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--fam, var(--t-pri)) 45%, transparent); }
.fam-doc-h { display: flex; align-items: center; gap: .5rem; }
.fam-doc-title { text-decoration: none; }
.fam-doc-title .fam-tag { font-size: .85rem; margin: 0; }
.fam-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.fam-stats > div { background: var(--t-wait); border-radius: .5rem; padding: .45rem .6rem; }
.fam-stats dt { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--t-muted); }
.fam-stats dd { margin: 0; font-size: 1.35rem; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fam-doc-meta { font-size: .8rem; color: var(--t-muted); }
.fam-doc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-top: auto; }
.fam-doc-foot .btn { display: inline-flex; align-items: center; gap: .3rem; }
.fam-doc-foot svg { width: .95rem; height: .95rem; }
.fam-doc-foot .btn-link { padding-left: .25rem; padding-right: .25rem; }
/* the family page head: the clinic count as one pill */
.fam-pill { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-size: .8rem; color: var(--t-ink); text-decoration: none;
    padding: .25rem .7rem; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-panel); vertical-align: middle; }
.fam-pill svg { width: .9rem; height: .9rem; color: var(--t-muted); }
.fam-pill b { font-weight: 650; }
.fam-pill-sep { width: 1px; height: .9rem; background: var(--t-line); margin: 0 .15rem; }
.fam-pill:hover { border-color: var(--t-pri); background: var(--t-pri-soft); color: var(--t-pri); }
.fam-title { font-size: 1.1rem; vertical-align: middle; }
.fp-card, .fp-files { padding: 1rem 1.1rem; margin-bottom: 1rem; }
.fp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.fp-meta { font-size: .85rem; color: var(--t-muted); }
.fp-empty { color: var(--t-muted); margin: 0; }
.fp-tools { display: flex; flex-wrap: wrap; gap: .25rem; }
.fp-tools .btn { display: inline-flex; align-items: center; gap: .25rem; }
.fp-tools svg { width: .95rem; height: .95rem; }
.fp-actions { display: flex; gap: .4rem; }
.fp-editor { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .fp-editor { grid-template-columns: 1fr 1fr; } }
.fp-write textarea { min-height: 28rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; line-height: 1.5; }
.fp-preview-h { font-size: .8rem; font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.fp-preview .md-view { margin: 0; max-height: 32rem; }
.md-view.md-page { max-height: none; background: var(--t-panel); }
.fp-card > #fp > .md-view.md-page { border: 0; padding: 0; }
.md-view img.md-img { max-width: 100%; height: auto; border: 1px solid var(--t-line); border-radius: .3rem; margin: .25rem 0; display: block; }
.fam-doc-sub { display: flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; margin: .25rem 0 .5rem; color: var(--t-muted); }
.fam-doc-sub svg { width: 1rem; height: 1rem; }
.fl-view { border: 0; background: none; color: var(--t-muted); padding: .25rem; border-radius: .25rem; }
.fl-view:hover, .fl-view[aria-expanded="true"] { color: var(--t-pri); background: var(--t-pri-soft); }
.fl-viewer { list-style: none; }
.md-view { border: 1px solid var(--t-line); border-radius: .4rem; background: var(--t-bg); padding: .75rem 1rem; margin: .25rem 0 .75rem;
    max-height: 32rem; overflow: auto; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.md-view h3, .md-view h4, .md-view h5, .md-view h6 { font-weight: 600; margin: 1rem 0 .4rem; }
.md-view h3 { font-size: 1.1rem; } .md-view h4 { font-size: 1rem; } .md-view h5, .md-view h6 { font-size: .92rem; }
.md-view > :first-child { margin-top: 0; }
.md-view p, .md-view ul, .md-view ol, .md-view blockquote { margin: 0 0 .6rem; }
.md-view ul, .md-view ol { padding-left: 1.25rem; }
.md-view li.md-sub { margin-left: 1.25rem; }
.md-view code { background: var(--t-wait); padding: 0 .25rem; border-radius: .2rem; font-size: .85em; }
.md-view pre { background: var(--t-wait); padding: .6rem .75rem; border-radius: .3rem; overflow: auto; white-space: pre; font-size: .82rem; margin: 0 0 .6rem; }
.md-view pre code { background: none; padding: 0; }
.md-view .md-code { position: relative; }
.md-view .md-copy { position: absolute; top: .3rem; right: .3rem; padding: 0 .45rem; font-size: .75rem; opacity: .75; }
.md-view .md-copy:hover, .md-view .md-copy:focus { opacity: 1; }
.md-view blockquote { border-left: 3px solid var(--t-line); padding-left: .75rem; color: var(--t-muted); }
.md-view hr { border-color: var(--t-line); opacity: 1; }
.md-view .md-table { overflow-x: auto; margin: 0 0 .6rem; }
.md-view table { border-collapse: collapse; font-size: .85rem; }
.md-view th, .md-view td { border: 1px solid var(--t-line); padding: .25rem .5rem; vertical-align: top; text-align: left; }
.md-view th { background: var(--t-wait); font-weight: 600; white-space: nowrap; }
.md-view td.nw { white-space: nowrap; }
.md-view td.long { min-width: 16rem; }
/* family pages, reading view (user 2026-12-02 "the design is poor"): datasets as cards, facts as a grid, light tables */
.md-page { font-size: .9rem; line-height: 1.5; }
.md-page h4 { font-size: 1.15rem; font-weight: 650; color: var(--t-ink); margin: 2.25rem 0 .9rem; padding: 0 0 .45rem; border-bottom: 2px solid var(--t-line); }
.md-page > h4:first-child, .md-page > blockquote + h4 { margin-top: 1rem; }
.md-page > blockquote { border: 0; border-radius: .4rem; background: var(--t-wait); padding: .5rem .75rem; font-size: .8rem; }
.md-view .md-sec { border: 1px solid var(--t-line); border-radius: .6rem; background: var(--t-panel); box-shadow: var(--t-shadow, none);
    padding: 1rem 1.1rem .5rem; margin: 0 0 1.1rem; scroll-margin-top: 8rem; }
.md-view .md-sec > h5 { font-size: 1rem; font-weight: 650; margin: 0 0 .75rem; padding-left: .6rem; border-left: 3px solid var(--t-pri); line-height: 1.3; }
.md-view dl.md-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0 0 .85rem; background: var(--t-wait);
    border-radius: .5rem; padding: .35rem .8rem; }
.md-view .md-fact { display: contents; }
.md-view .md-fact dt, .md-view .md-fact dd { padding: .3rem 0; border-top: 1px solid color-mix(in srgb, var(--t-line) 70%, transparent); }
.md-view .md-fact:first-child dt, .md-view .md-fact:first-child dd { border-top: 0; }
.md-view .md-fact dt { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--t-muted); padding-right: 1.25rem; padding-top: .4rem; }
.md-view .md-fact dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .md-view dl.md-facts { grid-template-columns: minmax(0, 1fr); } .md-view .md-fact dd { border-top: 0; padding-top: 0; } }
.md-view .md-fact code { white-space: normal; overflow-wrap: anywhere; background: none; padding: 0; }
.md-page table { width: 100%; font-size: .84rem; border: 1px solid var(--t-line); border-radius: .5rem; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.md-page th, .md-page td { border: 0; border-bottom: 1px solid var(--t-line); padding: .4rem .6rem; }
.md-page tbody tr:last-child td { border-bottom: 0; }
.md-page th { background: var(--t-wait); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--t-muted); }
.md-page tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--t-wait) 45%, transparent); }
.md-page tbody tr:hover td { background: var(--t-pri-soft); }
.md-page td code, .md-page .md-fact code { color: var(--t-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; }
.md-page td code { background: var(--t-wait); }
.md-page td:first-child code, .md-page td.md-n + td code { font-weight: 600; }
.md-view td.md-n { color: var(--t-muted); text-align: right; width: 1%; font-variant-numeric: tabular-nums; }
.md-view .md-req { display: inline-block; font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px;
    background: color-mix(in srgb, var(--ct-danger, #c62828) 13%, transparent); color: var(--ct-danger, #c62828); }
.md-view .md-opt { font-size: .75rem; color: var(--t-muted); font-style: italic; }
.md-page details.md-more { margin: 0 0 .85rem; }
.md-page details.md-more > summary { display: inline-flex; align-items: center; gap: .35rem; list-style: none; font-weight: 500; font-size: .8rem;
    padding: .25rem .7rem; border: 1px solid var(--t-line); border-radius: 999px; background: var(--t-panel); }
.md-page details.md-more > summary::-webkit-details-marker { display: none; }
.md-page details.md-more > summary::before { content: "▸"; font-size: .75rem; transition: transform .15s; }
.md-page details.md-more[open] > summary::before { transform: rotate(90deg); }
.md-page details.md-more > summary:hover { border-color: var(--t-pri); background: var(--t-pri-soft); }
.md-page details.md-more[open] > summary { margin-bottom: .5rem; }
.md-page pre { background: #1e2430; color: #e3e7ed; border-radius: .5rem; padding: .8rem 1rem; font-size: .78rem; line-height: 1.55; }
.md-page pre code { color: inherit; }
.md-page .md-copy { background: #2d3545; color: #e3e7ed; border-color: #46506a; opacity: 1; }
.md-page .md-copy:hover { background: #3a4458; color: #fff; }
.md-view table.md-meta { margin-bottom: .75rem; }
.md-view table.md-meta th { width: 8rem; }
/* Family page reading (2026-12-02, "simple and comfortable for developers"): contents beside the text, long lists folded */
.fp-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .fp-layout { grid-template-columns: 16rem minmax(0, 1fr); } .fp-layout.no-toc { grid-template-columns: minmax(0, 1fr); } }
.fp-toc { font-size: .85rem; }
@media (min-width: 992px) { .fp-toc { position: sticky; top: 7.5rem; align-self: start; max-height: calc(100vh - 8.5rem); overflow: auto; padding-right: .25rem; } }
@media (max-width: 991.98px) { .fp-toc { border-bottom: 1px solid var(--t-line); padding-bottom: .75rem; } .fp-toc-list { max-height: 14rem; overflow: auto; } }
.fp-toc-h { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--t-muted); margin-bottom: .35rem; }
.fp-toc input { margin-bottom: .5rem; }
.fp-toc-list { list-style: none; margin: 0; padding: 0; }
.fp-toc-list li.sub { padding-left: .9rem; }
.fp-toc-list button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--t-ink); padding: .2rem .4rem; border-radius: .25rem; line-height: 1.3; }
.fp-toc-list li.sub button { color: var(--t-muted); }
.fp-toc-list button:hover, .fp-toc-list button:focus-visible { background: var(--t-pri-soft); color: var(--t-pri); }
.fp-toc-none { color: var(--t-muted); margin: .25rem .4rem; }
.md-page h4, .md-page h5 { scroll-margin-top: 8rem; }
.md-view details.md-more { margin: 0 0 .6rem; }
.md-view details.md-more > summary { cursor: pointer; color: var(--t-pri); font-size: .85rem; }
.md-view ul.md-cols, .md-view ol.md-cols { columns: 16rem; column-gap: 1.5rem; margin-top: .4rem; }
.md-view ul.md-cols li { break-inside: avoid; }
.md-view td code, .md-view th code { white-space: nowrap; }
.md-view ul.md-vals { list-style: none; padding-left: 0; } .md-view ul.md-vals li { padding: .05rem 0; }

/* start-up screen before the app knows who is signed in (user 2026-12-02: "Loading... isn't good", "a modern loader"):
   the brand tile with three bars moving like data, the name and a thin sliding bar; it fades in after a short wait so a
   quick start does not flash it */
.boot { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
    opacity: 0; animation: boot-in .4s ease .25s forwards; }
.boot-mark { --b1: var(--t-pri); --b2: color-mix(in srgb, var(--t-pri) 60%, #7c4dff);
    width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--b1), var(--b2));
    display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 15px 0;
    box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--t-pri) 55%, transparent), inset 0 1px 0 #ffffff33;
    animation: boot-float 2.4s ease-in-out infinite; }
.boot-mark i { display: block; width: 7px; border-radius: 4px; background: #fff; height: 40%; animation: boot-eq 1.1s ease-in-out infinite; }
.boot-mark i:nth-child(1) { animation-delay: -.75s; }
.boot-mark i:nth-child(2) { animation-delay: -.4s; }
.boot-mark i:nth-child(3) { animation-delay: -.05s; }
.boot-name { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; color: var(--t-ink); margin-top: .35rem; }
.boot-bar { position: relative; width: 168px; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--t-line) 80%, transparent); }
.boot-bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--t-pri), transparent); animation: boot-slide 1.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes boot-in { to { opacity: 1; } }
@keyframes boot-eq { 0%, 100% { height: 40%; } 50% { height: 100%; } }
@keyframes boot-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes boot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
    .boot { animation: none; opacity: 1; } .boot-mark { animation: none; }
    .boot-mark i { animation-duration: 3s; } .boot-bar span { animation-duration: 3s; } }
