/* BackOffice shell. Tokens mirror Theme/BackOfficeTheme.cs; keep the two in step. */

:root {
    --bo-accent: #5686ba;
    --bo-accent-dark: #3f6790;
    --bo-accent-tint: #e8f0f8;
    --bo-accent-tint-border: #b9cfe6;
    --bo-ink: #1f232b;
    --bo-ink-soft: #3c4149;
    --bo-muted: #8b909a;
    --bo-ground: #f2f4f7;
    --bo-surface: #ffffff;
    --bo-surface-sunk: #f8f9fb;
    --bo-border: #dfe3e9;
    --bo-border-strong: #d3d8e0;
    --bo-danger: #a13b3b;
    --bo-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--bo-ground);
    color: var(--bo-ink);
    font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 13.5px;
    -webkit-font-smoothing: antialiased;
}

.bo-mono { font-family: var(--bo-mono); }

/* ---- boot splash (before Blazor mounts) ---- */

.bo-boot {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--bo-muted);
}

.bo-boot-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.bo-boot-mark img { width: 40px; height: 40px; display: block; }

/* ---- layout ---- */

.bo-layout { min-height: 100vh; }

.bo-main {
    padding-top: 0 !important;
    margin-left: 56px;
    min-height: 100vh;
}

/* ---- icon rail ---- */

.bo-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 56px;
    background: var(--bo-surface);
    border-right: 1px solid var(--bo-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 4px;
    z-index: 1300;
}

.bo-rail-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.bo-rail-mark img { width: 32px; height: 32px; display: block; }
.bo-rail-mark-lg { width: 40px; height: 40px; }
.bo-rail-mark-lg img { width: 40px; height: 40px; }

.bo-rail-nav { display: flex; flex-direction: column; gap: 4px; }

.bo-rail-item {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--bo-muted);
    text-decoration: none;
}

.bo-rail-item:hover { background: var(--bo-surface-sunk); color: var(--bo-ink-soft); }
.bo-rail-item.active { background: var(--bo-accent-tint); color: var(--bo-accent); }
.bo-rail-item:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 2px; }

.bo-rail-spacer { flex-grow: 1; }

.bo-rail-user {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bo-border);
    color: var(--bo-ink-soft);
    font-size: 11.5px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

/* ---- page scaffold used by every section page ---- */

.bo-page { display: flex; height: 100vh; min-height: 0; }

.bo-column {
    width: 224px;
    flex-shrink: 0;
    background: var(--bo-surface);
    border-right: 1px solid var(--bo-border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto; /* pages without an inner list (filters) scroll the column itself */
}

.bo-column-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 6px 6px 14px;
    min-height: 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bo-muted);
}

.bo-content { flex-grow: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }

.bo-crumbs {
    background: var(--bo-surface);
    border-bottom: 1px solid var(--bo-border);
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--bo-muted);
}

.bo-crumbs .current { color: var(--bo-ink); font-weight: 600; }
.bo-crumbs .sep { color: var(--bo-border-strong); }

.bo-body { padding: 16px 20px; }

/* ---- error UI ---- */

#blazor-error-ui {
    background: #fbf3dc;
    color: #6b5a1e;
    border-top: 1px solid #e8d79a;
    bottom: 0;
    box-shadow: none;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ---- login ---- */

.bo-login-main { padding-top: 0 !important; min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.bo-login-frame { width: 100%; max-width: 440px; padding: 40px 20px; display: flex; flex-direction: column; gap: 22px; }

.bo-login-brand { display: flex; align-items: center; gap: 12px; }
.bo-login-title { font-size: 17px; font-weight: 600; color: var(--bo-ink); letter-spacing: -0.2px; line-height: 1.2; }
.bo-login-sub { font-family: var(--bo-mono); font-size: 10.5px; color: var(--bo-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.bo-login-card { padding: 26px 28px; }

.bo-enrol { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; }
.bo-enrol-qr svg { width: 168px; height: 168px; display: block; border: 1px solid var(--bo-border); border-radius: 4px; }
.bo-enrol-manual { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bo-enrol-key { font-size: 13px; background: var(--bo-surface-sunk); border: 1px solid var(--bo-border); border-radius: 3px; padding: 8px 10px; overflow-wrap: anywhere; margin: 4px 0; }

.bo-recovery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    background: var(--bo-surface-sunk);
    border: 1px solid var(--bo-border);
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 14px;
    letter-spacing: 0.04em;
    user-select: all;
}

/* ---- master-detail ---- */

.bo-md-search { display: flex; align-items: center; gap: 7px; margin: 0 14px 8px; border: 1px solid var(--bo-border-strong); border-radius: 3px; padding: 5px 9px; color: var(--bo-muted); }
.bo-md-search-input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--bo-ink); width: 100%; }
.bo-md-search-input::placeholder { color: var(--bo-muted); }

.bo-md-list { display: flex; flex-direction: column; overflow-y: auto; flex-grow: 1; min-height: 0; }

.bo-md-row { padding: 7px 14px; font-size: 13px; color: var(--bo-ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; border-left: 3px solid transparent; }
.bo-md-row:hover { background: var(--bo-surface-sunk); }
.bo-md-row.selected { background: var(--bo-accent-tint); color: var(--bo-ink); font-weight: 600; border-left-color: var(--bo-accent); }
.bo-md-row:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: -2px; }
.bo-md-row .n { font-size: 11.5px; color: var(--bo-muted); font-weight: 400; flex-shrink: 0; }
.bo-md-row.selected .n { color: var(--bo-accent); }
.bo-md-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.bo-md-empty { padding: 14px; font-size: 12.5px; color: var(--bo-muted); }
.bo-md-foot { padding: 8px 8px; border-top: 1px solid var(--bo-border); }

/* ---- editor ---- */

.bo-dirty { font-size: 11.5px; color: #8a6d1f; background: #fbf3dc; border: 1px solid #e8d79a; border-radius: 3px; padding: 2px 8px; }
.bo-editor-body { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.bo-editor-foot { max-width: 760px; margin: 0 20px 20px; padding-top: 14px; border-top: 1px solid var(--bo-border); display: flex; gap: 8px; align-items: center; }
.bo-editor-placeholder { padding: 40px 20px; color: var(--bo-muted); font-size: 13.5px; }

.bo-lang-editor { display: flex; flex-direction: column; gap: 6px; }
.bo-lang-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bo-muted); }
.bo-lang-row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
.bo-lang-code { font-size: 11px; color: var(--bo-muted); padding-top: 12px; text-transform: uppercase; }

.bo-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

/* ---- sign out ---- */

.bo-rail-signout { width: 40px; height: 40px; border-radius: 5px; display: grid; place-items: center; color: var(--bo-muted); background: transparent; border: 0; cursor: pointer; margin-top: 4px; }
.bo-rail-signout:hover { background: var(--bo-surface-sunk); color: var(--bo-danger); }
.bo-rail-signout:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 2px; }
.bo-rail-user { cursor: pointer; border: 0; padding: 0; }

/* ---- filter column (activity log) ---- */

.bo-filter-head { padding: 12px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bo-muted); }
.bo-filter-group { display: flex; flex-direction: column; padding: 0 6px; }
.bo-filter-opt { font-size: 13px; color: var(--bo-ink-soft); padding: 5px 8px; border-radius: 3px; cursor: pointer; }
.bo-filter-opt:hover { background: var(--bo-surface-sunk); }
.bo-filter-opt.on { background: var(--bo-accent-tint); color: var(--bo-ink); font-weight: 600; }

/* ---- activity log ---- */

.bo-log-split { display: flex; flex-grow: 1; min-height: 0; }
.bo-log-grid { flex-grow: 1; min-width: 0; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.bo-log-table { background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: 4px; }
.bo-log-table table { font-size: 13px; }
.bo-log-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bo-muted); font-weight: 500; background: var(--bo-ground); }
.bo-log-table td, .bo-log-table th { padding: 7px 10px !important; }
.bo-log-table tbody tr { cursor: pointer; }
.bo-log-table tbody tr.selected td { background: var(--bo-accent-tint); }
.bo-log-table tbody tr.bo-row-danger td:nth-child(3), .bo-log-table tbody tr.bo-row-danger td:nth-child(4) { color: var(--bo-danger); }
.bo-log-table tbody tr.bo-row-warn td { background: #fbf3dc; }
.bo-ok { color: #3f5a3f; }
.bo-err { color: var(--bo-danger); }
.bo-warn { color: #8a6d1f; font-weight: 600; }
.bo-log-pager { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--bo-muted); }

.bo-log-detail { width: 400px; flex-shrink: 0; background: var(--bo-surface); border-left: 1px solid var(--bo-border); display: flex; flex-direction: column; padding: 0; overflow-y: auto; }
.bo-log-detail-head { padding: 14px 18px; border-bottom: 1px solid var(--bo-border); display: flex; flex-direction: column; gap: 2px; }
.bo-log-kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 12.5px; padding: 14px 18px 0; }
.bo-log-kv .k { color: var(--bo-muted); }
.bo-log-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 18px 0; }
.bo-log-diff-head { font-size: 11.5px; color: var(--bo-muted); margin-bottom: 4px; }
.bo-log-json { margin: 0; font-family: var(--bo-mono); font-size: 11px; line-height: 1.45; background: var(--bo-surface-sunk); border: 1px solid var(--bo-border); border-radius: 3px; padding: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }

/* ---- system information ---- */

.bo-si-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bo-border-strong); margin-right: 8px; vertical-align: middle; }
.bo-si-dot.on { background: #3f5a3f; }

/* ---- master-detail: server-side mode (labels) -------------------------------------------- */
.bo-md-pager { display: flex; align-items: center; gap: 2px; padding: 4px 8px 4px 14px; border-top: 1px solid var(--bo-border); font-size: 11.5px; color: var(--bo-muted); font-variant-numeric: tabular-nums; }
.bo-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 8px; }
.bo-chip { font-size: 11.5px; color: var(--bo-ink-soft); padding: 2px 9px; border: 1px solid var(--bo-border); border-radius: 12px; cursor: pointer; background: var(--bo-surface); }
.bo-chip:hover { background: var(--bo-surface-sunk); }
.bo-chip.on { background: var(--bo-accent-tint); border-color: var(--bo-accent); color: var(--bo-ink); font-weight: 600; }
.bo-badge { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.bo-badge.warn { color: #8a6d1f; background: #fbf3dc; }
.bo-badge.muted { color: var(--bo-muted); background: var(--bo-surface-sunk); }
.bo-md-row .key { font-family: var(--bo-mono); font-size: 12px; color: var(--bo-ink); }
.bo-md-row .prev { font-size: 12px; color: var(--bo-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bo-md-row .stack { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bo-md-row.selected .key { color: var(--bo-accent); }

/* ---- publish panel ------------------------------------------------------------------------ */
.bo-panel { border: 1px solid var(--bo-border); border-radius: 4px; background: var(--bo-surface); padding: 14px 16px; margin-bottom: 14px; max-width: 720px; }
.bo-panel h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; }
.bo-panel p { margin: 0 0 10px; font-size: 13px; color: var(--bo-ink-soft); }
.bo-files { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.bo-files th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bo-muted); padding: 4px 8px; border-bottom: 1px solid var(--bo-border); }
.bo-files td { padding: 5px 8px; border-bottom: 1px solid var(--bo-border); font-variant-numeric: tabular-nums; }
.bo-files tr:last-child td { border-bottom: none; }
.bo-kv { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; font-size: 13px; margin: 6px 0 12px; }
.bo-kv .k { color: var(--bo-muted); }

/* ---- translate bar ------------------------------------------------------------------------ */
.bo-translate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.bo-translate-hint { font-size: 12px; color: var(--bo-muted); }

/* ---- generic split (grid + side editor) and matrix ---------------------------------------- */
.bo-split { display: flex; flex-grow: 1; min-height: 0; }
.bo-split-main { flex-grow: 1; min-width: 0; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.bo-split-side { width: 440px; flex-shrink: 0; background: var(--bo-surface); border-left: 1px solid var(--bo-border); display: flex; flex-direction: column; overflow-y: auto; }
.bo-split-side .bo-editor-body { max-width: none; padding: 0 16px; }
.bo-split-side .bo-editor-foot { max-width: none; margin: 0 16px 16px; }
.bo-split-side .bo-crumbs { padding-left: 16px; padding-right: 16px; }
@media (max-width: 1100px) { .bo-split { flex-direction: column; } .bo-split-side { width: auto; border-left: none; border-top: 1px solid var(--bo-border); } }

.bo-matrix-wrap { overflow: auto; background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: 4px; }
.bo-matrix { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.bo-matrix th { position: sticky; top: 0; background: var(--bo-ground); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bo-muted); padding: 6px 8px; border-bottom: 1px solid var(--bo-border); text-align: left; white-space: nowrap; z-index: 1; }
.bo-matrix th.col { text-align: center; max-width: 72px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.bo-matrix td { padding: 4px 8px; border-bottom: 1px solid var(--bo-border); vertical-align: middle; white-space: nowrap; }
.bo-matrix tr:last-child td { border-bottom: none; }
.bo-matrix td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--bo-ink-soft); }
.bo-matrix td.cell { text-align: center; padding: 2px 4px; }
.bo-matrix .sys { font-family: var(--bo-mono); font-size: 12px; }
.bo-matrix .name { color: var(--bo-muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bo-cell-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 3px; border: 1px solid transparent; background: transparent; cursor: pointer; color: #3f5a3f; font-size: 13px; }
.bo-cell-btn:hover { background: var(--bo-surface-sunk); border-color: var(--bo-border); }
.bo-cell-btn.on { background: var(--bo-accent-tint); border-color: var(--bo-accent); color: var(--bo-accent); }
.bo-cell-btn.add { color: var(--bo-border-strong); font-size: 15px; }
.bo-cell-btn.add:hover { color: var(--bo-accent); }
.bo-matrix tr.selected td { background: var(--bo-accent-tint); }

/* ---- sortable list ------------------------------------------------------------------------ */
.bo-sortable-zone { display: flex; flex-direction: column; gap: 4px; min-height: 40px; }
.bo-sortable-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: 4px; font-size: 13px; }
.bo-sortable-row:hover { border-color: var(--bo-border-strong); }
.bo-sortable-grip { color: var(--bo-border-strong); cursor: grab; }
.bo-sortable-body { flex-grow: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.bo-sortable-keys { display: flex; }
.mud-drop-item-preview-start { opacity: .4; }

/* ---- field chips (campsite attribute types) ----------------------------------------------- */
.bo-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bo-field-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border: 1px solid var(--bo-border); border-radius: 14px; background: var(--bo-surface); font-size: 12px; }
.bo-field-chip .muted { color: var(--bo-muted); font-size: 11px; }

/* ---- image gallery ------------------------------------------------------------------------ */
.bo-gallery { display: flex; flex-direction: column; gap: 10px; }
.bo-gallery-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.bo-gallery-count { font-size: 12px; color: var(--bo-muted); font-weight: 400; }
.bo-gallery-empty { padding: 28px; text-align: center; color: var(--bo-muted); border: 1px dashed var(--bo-border-strong); border-radius: 4px; font-size: 13px; }
.bo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.bo-gallery-item { margin: 0; background: var(--bo-surface); border: 1px solid var(--bo-border); border-radius: 4px; overflow: hidden; }
.bo-gallery-item img { display: block; width: 100%; aspect-ratio: 730 / 410; object-fit: cover; background: var(--bo-surface-sunk); }
.bo-gallery-item figcaption { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 8px; font-size: 11.5px; }
.bo-gallery-item figcaption .mud-icon-button { margin-left: auto; }

/* ---- company editor ----------------------------------------------------------------------- */
.bo-set { display: flex; flex-direction: column; gap: 10px; }
.bo-set-hint { font-size: 12.5px; color: var(--bo-muted); }
.bo-set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.bo-set-opt { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 8px; border-radius: 3px; cursor: pointer; }
.bo-set-opt:hover { background: var(--bo-surface-sunk); }
.bo-set-opt.on { background: var(--bo-accent-tint); }
.bo-set-opt input { accent-color: var(--bo-accent); }
.bo-set-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--bo-border); }
.bo-set-count { font-size: 12px; color: var(--bo-muted); }
.bo-tabs .mud-tabs-toolbar { border-bottom: 1px solid var(--bo-border); }
.bo-tab-body { padding: 16px 0; display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.bo-ip-list { display: flex; flex-direction: column; gap: 4px; max-width: 480px; }
.bo-ip-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 1px solid var(--bo-border); border-radius: 3px; background: var(--bo-surface); font-size: 13px; }
.bo-ip-row .bo-mono { min-width: 140px; }
.bo-fac-type { border: 1px solid var(--bo-border); border-radius: 4px; background: var(--bo-surface); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.bo-fac-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.bo-fac-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.bo-fac-field { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.bo-fac-field label { font-size: 11px; color: var(--bo-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bo-fac-field input, .bo-fac-field select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--bo-border-strong); border-radius: 3px; background: var(--bo-surface); }
.bo-fac-field select[multiple] { min-height: 64px; }
.bo-fac-avail { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-emp-row { display: grid; grid-template-columns: 1fr 120px 160px 80px 60px; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--bo-border); font-size: 13px; cursor: pointer; }
.bo-emp-row:hover { background: var(--bo-surface-sunk); }
.bo-emp-row.selected { background: var(--bo-accent-tint); }
.bo-emp-row.deleted { color: var(--bo-muted); text-decoration: line-through; }
.bo-emp-head { display: grid; grid-template-columns: 1fr 120px 160px 80px 60px; gap: 8px; padding: 4px 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bo-muted); border-bottom: 1px solid var(--bo-border); }

/* ---- create button in the column header --------------------------------------------------- */
.bo-column-head .title { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-col-add { display: inline-flex; align-items: center; gap: 3px; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--bo-accent); background: var(--bo-accent-tint); border: 1px solid transparent; border-radius: 3px; padding: 3px 8px 3px 6px; cursor: pointer; white-space: nowrap; }
.bo-col-add:hover { border-color: var(--bo-accent); }
.bo-col-add:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 1px; }
.bo-md-search, .bo-chips, .bo-md-pager, .bo-md-foot { flex-shrink: 0; }
.bo-md-foot:not(:has(*)) { display: none; } /* a footer whose Actions rendered nothing takes no space */
