/* MyCard back office: black on white, thin borders, one accent. */
:root {
  --page: #f5f6f8; --card: #ffffff; --line: #e5e7eb; --control: #d1d5db;
  --ink: #111827; --muted: #4b5563; --accent: #1d4ed8; --accent-soft: #eef2ff;
  --danger: #b91c1c; --danger-soft: #fef2f2; --danger-line: #fecaca;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--page); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #000000; }
button { font-family: inherit; cursor: pointer; }
h1, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bo-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.bo-muted { font-size: 13px; color: var(--muted); }
.bo-strong { font-weight: 600; }
.bo-link { font-weight: 600; color: var(--accent); }
.bo-h1 { font-size: 20px; font-weight: 600; }

.bo-brand { display: flex; align-items: baseline; gap: 8px; }
.bo-brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.bo-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.bo-card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bo-card-head h1 { font-size: 17px; font-weight: 600; }
.bo-card-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.bo-field { display: flex; flex-direction: column; gap: 6px; }
.bo-input { height: 44px; width: 100%; padding: 0 12px; border: 1px solid var(--control); border-radius: 4px; background: #ffffff; color: var(--ink); font: inherit; }
.bo-pass { display: flex; border: 1px solid var(--control); border-radius: 4px; overflow: hidden; background: #ffffff; }
.bo-pass:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bo-pass input { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: inherit; outline: 0; }
.bo-pass button { height: 42px; padding: 0 12px; border: 0; border-left: 1px solid var(--control); background: #ffffff; color: var(--muted); font-size: 13px; font-weight: 600; }
.bo-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.bo-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

.bo-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border: 1px solid var(--control); border-radius: 4px; background: #ffffff; color: var(--ink); font-size: 13px; font-weight: 600; }
.bo-btn-primary { border-color: var(--accent); background: var(--accent); color: #ffffff; font-size: 14px; }
.bo-alert { padding: 10px 14px; background: var(--danger-soft); border: 1px solid var(--danger-line); border-radius: 4px; color: var(--danger); font-size: 13px; }

/* Sign in */
.bo-signin { min-height: 100vh; min-height: 100dvh; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.bo-signin .bo-brand-name { font-size: 22px; }
.bo-signin-card { width: 100%; max-width: 400px; }

/* Frame: side menu on a computer */
.bo { display: flex; min-height: 100vh; }
.bo-side { flex: 0 0 224px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; background: #ffffff; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.bo-side .bo-brand { padding: 2px 10px 12px; }
.bo-side-group { padding: 14px 10px 4px; }
.bo-side .bo-brand + .bo-side-group { padding-top: 10px; }
.bo-side > a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; }
.bo-side > a svg { color: var(--muted); flex-shrink: 0; }
.bo-side > a span { flex-grow: 1; }
.bo-side > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bo-side > a[aria-current="page"] svg { color: currentColor; }
.bo-side-owner { margin-top: auto; padding: 14px 10px 0; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.bo-side-owner a { flex-grow: 1; font-size: 13px; font-weight: 600; }
.bo-side-owner a[aria-current="page"] { color: var(--accent); }
.bo-avatar { width: 30px; height: 30px; border-radius: 4px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }

.bo-page { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.bo-top { display: none; }
.bo-main { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 16px; }
[hidden] { display: none !important; }
.bo-phone { display: none; }

/* Page pieces */
.bo-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bo-head .bo-muted { margin-top: 2px; }
.bo-block { display: block; }
.bo-sub { display: block; font-size: 12px; color: var(--muted); }
.bo-gap { margin-top: 4px; }
.bo-dim { color: var(--muted); font-size: 13px; }
.bo-right { text-align: right; }
.bo-grow { flex: 1 1 150px; max-width: 220px; }
.bo-warn { color: #92400e; }
.bo-bad { color: var(--danger); }
.bo-req, .bo-err { color: var(--danger); }
.bo-err { font-size: 13px; }
/* The small message after a save: shows at the top, in the middle (clear of the page's buttons), stays a few
   seconds, fades away by itself. */
.bo-toast { position: fixed; top: 16px; left: 0; right: 0; margin: 0 auto; width: fit-content; z-index: 50; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; background: #111827; border-radius: 6px; color: #ffffff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(17, 24, 39, 0.22); pointer-events: none; animation: bo-toast 4s ease forwards; }
@keyframes bo-toast { 0% { opacity: 0; transform: translateY(-8px); } 6% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .bo-toast { animation-name: bo-toast-still; } }
@keyframes bo-toast-still { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* A form opened as a popup over the page */
.bo-modal { width: calc(100% - 32px); max-width: 640px; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; overflow: visible; }
.bo-modal::backdrop { background: rgba(17, 24, 39, 0.55); }
.bo-modal .bo-dialog { max-width: none; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 16px 48px rgba(17, 24, 39, 0.28); }
.bo-modal .bo-card-head, .bo-modal .bo-card-actions { flex-shrink: 0; }
.bo-modal .bo-card-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.bo-side { scrollbar-width: thin; }
.bo-empty { padding: 28px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.bo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.bo-tile { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.bo-tile-n { font-size: 22px; font-weight: 600; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }

.bo-list { display: flex; flex-direction: column; gap: 16px; }
.bo-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 16px 18px; }
select.bo-input { padding: 0 10px; font-size: 13px; }
.bo-seg { display: flex; border: 1px solid var(--control); border-radius: 4px; overflow: hidden; }
.bo-seg label { display: flex; cursor: pointer; }
.bo-seg label + label { border-left: 1px solid var(--control); }
.bo-seg input, .bo-picks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bo-seg span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; background: #ffffff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.bo-seg input:checked + span { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bo-seg input:focus-visible + span, .bo-picks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.bo-seg-fill label { flex: 1 1 0; }
.bo-seg-fill span { width: 100%; font-size: 14px; }

.bo-card-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; }
.bo-card-bar h2 { margin: 0; font-size: 15px; font-weight: 600; }
.bo-card-foot { padding: 12px 18px; }
.bo-table-wrap { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bo-table th { text-align: left; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); background: #f9fafb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.bo-table th:first-child, .bo-table td:first-child { padding-left: 18px; }
.bo-table th:last-child, .bo-table td:last-child { padding-right: 18px; }
.bo-table th.bo-right { text-align: right; height: 44px; }
.bo-table th button { height: 44px; padding: 0; border: 0; background: transparent; font: inherit; letter-spacing: inherit; color: inherit; display: inline-flex; align-items: center; gap: 5px; }
.bo-table th button svg { opacity: 0.45; }
.bo-table th[aria-sort] button { color: var(--accent); }
.bo-table th[aria-sort] button svg { opacity: 1; }
.bo-table th[aria-sort="ascending"] button svg path:last-child, .bo-table th[aria-sort="descending"] button svg path:first-child { opacity: 0.25; }
.bo-table td { padding: 10px 12px; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.bo-table tbody tr:last-child td { border-bottom: 0; }

.bo-site { display: flex; align-items: center; gap: 10px; }
.bo-badge { width: 34px; height: 34px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.bo-badge-lg { width: 44px; height: 44px; font-size: 13px; }
.bo-logo { width: 64px; height: 34px; padding: 4px; border-radius: 4px; object-fit: contain; flex-shrink: 0; display: block; }
.bo-logo-lg { width: 110px; height: 56px; padding: 6px; }
.bo-logo-now { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bo-span-all { grid-column: 1 / -1; }
.bo-file { max-width: 100%; font: inherit; font-size: 13px; min-height: 44px; padding: 8px 0; }
.bo-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.bo-chip-ok { background: #dcfce7; color: #166534; }
.bo-chip-warn { background: #fef3c7; color: #92400e; }
.bo-btn-sm { height: 40px; padding: 0 12px; }
.bo-btn-plain { border-color: transparent; color: var(--muted); }

.bo-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.bo-break { overflow-wrap: anywhere; }
.bo-net { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.mc-chain { display: inline-flex; flex-shrink: 0; }
.mc-chain svg { width: 100%; height: 100%; display: block; }
.bo-seg-wrap { flex-wrap: wrap; }
.bo-linkbox { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; border-color: #c7d2fe; background: var(--accent-soft); }
.bo-copy { display: flex; gap: 8px; }
.bo-copy .bo-input { flex: 1 1 0; min-width: 0; font-size: 13px; }

.bo-inline { display: inline; }
.bo-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.bo-picks.bo-picks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bo-fieldset > * + * { margin-top: 10px; }
.bo-fieldset > legend + * { margin-top: 0; }
.bo-wallet-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.bo-grid-wallet { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 16px; }

/* Tabs of a family of pages */
.bo-tabs { display: flex; flex-wrap: wrap; gap: 28px; border-bottom: 1px solid var(--line); }
.bo-tabs a { padding: 4px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bo-tabs a span { display: block; }
.bo-tabs a span:first-child { font-size: 15px; font-weight: 600; }
.bo-tabs a span:last-child { font-size: 13px; color: var(--muted); }
.bo-tabs a[aria-selected="true"] { border-bottom-color: var(--accent); }
.bo-tabs a[aria-selected="true"] span:first-child { color: var(--accent); }
.bo-notice { padding: 10px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px; color: #92400e; font-size: 13px; }
.bo-card-body-top { border-top: 1px solid var(--line); }
.bo-card-actions-left { justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; }
.bo-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.bo-span-two { grid-column: span 2; }
.bo-legend-sub { font-weight: 400; font-size: 13px; color: var(--muted); }
.bo-unit { font-size: 12px; font-weight: 500; }
.bo-num { font-variant-numeric: tabular-nums; }

/* Queues (To verify, To load) */
.bo-q { display: flex; flex-direction: column; }
.bo-q-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; }
.bo-q-facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bo-q-facts dd .bo-net { font-weight: 400; margin-top: 2px; gap: 6px; }
.bo-q-lines { border-top: 1px solid var(--line); padding: 6px 18px; font-size: 13px; }
.bo-q-lines > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 6px 0; border-bottom: 1px solid #f0f1f3; }
.bo-q-lines > div:last-child { border-bottom: 0; }
.bo-q-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 14px 18px; background: #f9fafb; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.bo-reject summary { list-style: none; cursor: pointer; }
.bo-reject summary::-webkit-details-marker { display: none; }
.bo-reject[open] summary { background: #f3f4f6; }
.bo-reject-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; min-width: min(360px, 80vw); }
.bo-btn-danger { border-color: var(--danger); background: var(--danger); color: #ffffff; }
.bo-btn-xs { height: 28px; padding: 0 8px; font-size: 12px; }
.bo-copyline { display: inline-flex; align-items: center; gap: 8px; }
.bo-menu-n { font-size: 12px; font-weight: 600; color: var(--muted); }
.bo-bar-n { position: absolute; top: -6px; left: 13px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #ffffff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bo-bar-ico { position: relative; display: flex; }
.bo-pick-list { display: flex; flex-direction: column; }
.bo-pick { padding: 0 2px; border-bottom: 1px solid #f0f1f3; }
.bo-crumbs { font-size: 13px; color: var(--muted); }
.bo-crumbs a { color: var(--muted); }
.bo-crumbs a:hover { color: var(--ink); }
.bo-h1 .bo-chip { vertical-align: middle; font-weight: 600; }
.bo-facts { margin: 0; padding: 16px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 24px; }
.bo-facts dd { margin: 4px 0 0; font-weight: 600; }
.bo-facts dd .bo-sub { font-weight: 400; }
.bo-dialog.bo-dialog-wide { max-width: 860px; }
.bo-modal:has(.bo-dialog-wide) { max-width: 860px; }
.bo-acc-row { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid #f0f1f3; }
.bo-acc-new { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 0; padding: 0; }
.bo-acc-site { padding-top: 4px; }

/* A form shown as a centred card (the boards draw it as a dialog) */
.bo-dialog { width: 100%; max-width: 640px; align-self: center; }
.bo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bo-card-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; background: #f9fafb; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.bo-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.bo-span-2 { grid-column: 1 / -1; }
.bo-fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.bo-fieldset legend { padding: 0 6px; font-size: 14px; font-weight: 600; }
.bo-affix { display: flex; border: 1px solid var(--control); border-radius: 4px; overflow: hidden; background: #ffffff; }
.bo-affix:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bo-affix input { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; outline: 0; }
.bo-affix span { display: flex; align-items: center; padding: 0 12px; background: #f9fafb; border-left: 1px solid var(--control); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bo-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bo-picks label { display: flex; cursor: pointer; }
.bo-picks label > span { width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid var(--control); border-radius: 4px; background: #ffffff; }
.bo-picks input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.bo-picks input:checked + span .bo-strong { color: var(--accent); }
.bo-grid-badge { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.bo-color { width: 100%; height: 44px; padding: 4px; border: 1px solid var(--control); border-radius: 4px; background: #ffffff; }

/* Records as cards (phone) */
.bo-cards { flex-direction: column; gap: 10px; }
.bo-rec { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.bo-rec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bo-rec-line { font-size: 13px; color: var(--muted); }
/* Roles */
.bo-input-sm { height: 40px; min-width: 150px; }
.bo-table .bo-group th { padding-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); background: #f9fafb; text-align: left; }
.bo-table th[scope="row"] { text-align: left; }

/* Dashboard */
.bo-sec { margin: 6px 0 -6px; }
a.bo-tile-link { display: block; color: inherit; }
a.bo-tile-link:hover { border-color: var(--accent); }
.bo-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.bo-stack { display: flex; flex-direction: column; gap: 16px; }
.bo-rows { list-style: none; margin: 0; padding: 0 18px; border-top: 1px solid var(--line); }
.bo-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bo-rows li:last-child { border-bottom: 0; }
.bo-nowrap { white-space: nowrap; }
.bo-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 200px; padding: 16px 18px; border-top: 1px solid var(--line); }
.bo-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.bo-bar-v { font-size: 12px; font-weight: 600; }
.bo-bar-fill { width: 100%; max-width: 44px; background: var(--accent); border-radius: 3px 3px 0 0; }
.bo-bar-d { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .bo-two { grid-template-columns: minmax(0, 1fr); } }

/* Links that look like the segmented filter (months, date presets). */
.bo-seg-links { display: flex; flex-wrap: wrap; gap: 6px; }
.bo-seg-links a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #ffffff; font-size: 14px; white-space: nowrap; }
.bo-seg-links a[aria-current] { border-color: var(--accent); color: var(--accent); background: #eef2ff; font-weight: 600; }
.bo-off td, .bo-off.bo-rec { color: var(--muted); }
.bo-off .bo-strong { font-weight: 500; }
@media print {
  .bo-noprint, .bo-side, .bo-top, .bo-bar, .bo-toast, .bo-tabs { display: none !important; }
  .bo-desk { display: block !important; }
  .bo-table-wrap { overflow: visible !important; }
  body { background: #ffffff !important; }
  .bo-table button svg { display: none; }
}
.bo-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.bo-suggest { justify-content: flex-start; gap: 8px; font-size: 13px; }
.bo-total { padding: 10px 0; border-top: 1px solid var(--line); }
.bo-sum { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.bo-sum b { color: var(--ink, inherit); }
.bo-del { display: inline-block; }
.bo-del summary { list-style: none; cursor: pointer; }
.bo-del summary::-webkit-details-marker { display: none; }
.bo-del[open] summary { display: none; }
.bo-file { max-width: 100%; font: inherit; font-size: 13px; min-height: 40px; }
.bo-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bo-rec-actions .bo-acts { display: flex; flex: 1 1 0; }
.bo-rec-actions .bo-acts form, .bo-rec-actions .bo-acts > a { flex: 1 1 0; }
.bo-rec-actions .bo-acts form .bo-btn { width: 100%; }
.bo-rec-actions { display: flex; gap: 6px; }
.bo-rec-actions .bo-btn { flex: 1 1 0; }
.bo-profile { max-width: 400px; }
.bo-profile .bo-btn { align-self: flex-start; }

/* Bottom bar and the menu page: phone only */
.bo-bar { display: none; }
.bo-menu-group { padding: 6px 2px 0; }
.bo-menu-list { display: flex; flex-direction: column; }
.bo-menu-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-top: 1px solid var(--line); font-weight: 500; }
.bo-menu-list a:first-child { border-top: 0; }
.bo-menu-list a svg { color: var(--muted); flex-shrink: 0; }

@media (max-width: 899px) {
  .bo { display: block; }
  .bo-side { display: none; }
  .bo-top { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 16px; background: #ffffff; border-bottom: 1px solid var(--line); }
  .bo-main { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); gap: 14px; }
  .bo-toast { top: 68px; text-align: center; }
  .bo-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .bo-modal .bo-dialog { max-height: calc(100dvh - 16px); }
  .bo-desk { display: none !important; }
  .bo-phone { display: flex; }
  .bo-field.bo-phone { display: flex; }
  .bo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bo-tile { padding: 10px 12px; }
  .bo-tile-n { font-size: 20px; }
  .bo-filters { padding: 12px 14px; gap: 12px; }
  .bo-filters .bo-field, .bo-grow { flex: 1 1 100%; max-width: none; }
  .bo-seg label { flex: 1 1 0; }
  .bo-seg span { width: 100%; padding: 0 8px; }
  .bo-grid-2, .bo-picks, .bo-checks, .bo-grid-wallet { grid-template-columns: minmax(0, 1fr); }
  .bo-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bo-acc-row, .bo-acc-new { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bo-acc-site { grid-column: 1 / -1; }
  .bo-tabs { gap: 18px; }
  .bo-tabs a span:last-child { display: none; }
  .bo-wallet-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bo-wallet-row .bo-net { grid-column: 1 / -1; }
  .bo-grid-badge { grid-template-columns: auto minmax(0, 1fr); }
  .bo-card-body { padding: 16px; }
  .bo-card-actions .bo-btn { flex: 1 1 0; }
  select.bo-input { font-size: 16px; }
  .bo-affix input { font-size: 16px; }
  .bo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid var(--line); }
  .bo-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .bo-bar a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
  .bo-signin { justify-content: flex-start; padding: 32px 16px; }
  .bo-input, .bo-pass input { font-size: 16px; }
}
