/* One spatial language across the platform, operations and standalone forms.
   Depth belongs to surfaces; financial rows and figures never move. */
html:root {
  --elevation-rest: inset 0 1px 0 rgb(255 255 255 / .72), 0 1px 2px rgb(20 48 35 / .06), 0 8px 24px -16px rgb(20 48 35 / .22);
  --elevation-raised: inset 0 1px 0 rgb(255 255 255 / .8), 0 2px 4px rgb(20 48 35 / .06), 0 16px 36px -20px rgb(20 48 35 / .26);
  --elevation-dialog: 0 24px 80px -24px rgb(8 25 17 / .38), inset 0 1px 0 rgb(255 255 255 / .6);
  --motion-fast: 150ms; --motion-enter: 200ms; --motion-ease: cubic-bezier(.2,.7,.2,1);
}
html:root[data-theme=dark] {
  --elevation-rest: inset 0 1px 0 rgb(255 255 255 / .07), 0 2px 4px rgb(0 0 0 / .18), 0 8px 24px -16px rgb(0 0 0 / .48);
  --elevation-raised: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 8px rgb(0 0 0 / .18), 0 16px 36px -16px rgb(0 0 0 / .5);
  --elevation-dialog: 0 24px 80px -24px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .1);
}
@media(prefers-color-scheme:dark){html:root:not([data-theme=light]){
  --elevation-rest: inset 0 1px 0 rgb(255 255 255 / .07), 0 2px 4px rgb(0 0 0 / .18), 0 8px 24px -16px rgb(0 0 0 / .48);
  --elevation-raised: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 8px rgb(0 0 0 / .18), 0 16px 36px -16px rgb(0 0 0 / .5);
  --elevation-dialog: 0 24px 80px -24px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .1);
}}
.bc-ui { accent-color:var(--accent); }
.bc-ui :is(button,.button-link,.link,.property-select) {
  border-radius:12px;
  transition:background-color var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out, color var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out, scale var(--motion-fast) var(--motion-ease);
}
.bc-ui button:not(:disabled):active,.bc-ui :is(.button-link,.property-select):active { scale:.96; }
.bc-ui :is(button.primary,.button-link.primary,.property-select.primary) {
  background:var(--accent);color:var(--on-accent);border-color:var(--accent);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .16),0 2px 3px rgb(10 35 24 / .12);font-weight:650;
}
.bc-ui :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {
  border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);
  min-height:44px;box-shadow:inset 0 1px 2px rgb(20 48 35 / .035);
  transition:border-color var(--motion-fast) ease-out,box-shadow var(--motion-fast) ease-out;
}
.bc-ui ::placeholder { color:var(--muted);opacity:1; }
.bc-ui :is(input,select,textarea):focus-visible { border-color:var(--accent); }
.bc-ui :is(.card,.object-card,.obj-block,.tenant-block,.an-card,.tariff-card,.board-group,.dash-card,.total-card,.doc-group,.topay-card,.initial-form,.login-card) {
  border:1px solid var(--line);border-radius:20px;box-shadow:var(--elevation-rest);
}
.bc-ui :is(.tenant-kpi,.hero-stat,.dash-cycle,.rental-summary) { border-radius:16px; }
.bc-ui :is(.sheet-card,dialog) { border:1px solid var(--line);box-shadow:var(--elevation-dialog);border-radius:24px; }
.bc-ui dialog[open] { animation:bc-dialog-in var(--motion-enter) var(--motion-ease) both; }
.bc-ui dialog::backdrop { background:rgb(8 20 14 / .65); }
@keyframes bc-dialog-in { from{opacity:0;transform:translateY(8px) scale(.985)} to{opacity:1;transform:none} }
.bc-ui :is(.mark,.rail .brand img,.login-brand img) {
  border-radius:14px;box-shadow:inset 0 1px 0 rgb(255 255 255 / .3),0 4px 8px -4px rgb(20 48 35 / .2);
}
.bc-ui :is(.sidebar,.rail) { box-shadow:4px 0 24px -20px rgb(20 48 35 / .22); }
.bc-ui :is(.sidebar nav a[aria-current=page],.rail button.active) { background:var(--soft);color:var(--accent);box-shadow:inset 0 1px 0 rgb(255 255 255 / .12);font-weight:650; }
.bc-ui :is(.toolbar,.segmented) { border-radius:14px; }
.bc-ui :is(.toolbar,.header-actions,.dialog-actions,.topbar-actions) { gap:8px; }
.bc-ui :is(.amount,.sum,.value,.money,.property-parts dd,.object-debt-line dd,td) { font-variant-numeric:tabular-nums; }
.bc-ui :is(th,.table-head) { color:var(--muted);font-weight:600; }
.bc-ui :is(.empty,.notice,.initial-notice) { border-radius:16px; }
.bc-ui .empty { border:1px solid var(--line);box-shadow:var(--elevation-rest); }
.bc-ui :is(.sidebar,.rail,.bottom-nav) { padding-bottom:max(16px,env(safe-area-inset-bottom)); }
.bc-platform .page-head h1 { font-size:clamp(1.65rem,2.4vw,2.2rem); }
.bc-platform .grid { gap:20px; }
.bc-platform .card { padding:24px; }
.bc-platform .card.property-card { padding:0; }
.bc-platform .card .icon { border:1px solid var(--accent-line);box-shadow:inset 0 1px 0 rgb(255 255 255 / .25); }
.bc-platform .property-body h2 { font-size:1.35rem; }
.bc-platform .side-foot { line-height:1.5; }
.bc-initial .initial-workspace { padding:32px 24px 48px; }
.bc-initial .initial-form { background:var(--surface);padding:24px; }
.bc-initial .initial-form :is(input,select,textarea) { width:100%; }
.bc-initial .initial-notice { border:1px solid var(--accent-line);border-left:4px solid var(--accent);background:var(--soft);padding:16px 20px; }
.bc-initial .initial-form label { color:var(--text);font-weight:550; }
.bc-initial :is(small,.initial-context) { color:var(--muted);font-weight:400; }
@media(hover:hover) and (pointer:fine) {
  .bc-ui :is(.object-card,.bc-platform .grid>.card) { transition:transform var(--motion-enter) var(--motion-ease),box-shadow var(--motion-enter) ease-out,border-color var(--motion-fast) ease-out; }
  .bc-ui :is(.object-card,.bc-platform .grid>.card):hover { transform:perspective(1200px) translateY(-3px) rotateX(.35deg);box-shadow:var(--elevation-raised);border-color:var(--accent-line); }
  .bc-ui :is(button.primary,.button-link.primary,.property-select.primary):hover { box-shadow:inset 0 1px 0 rgb(255 255 255 / .2),0 4px 10px -4px rgb(10 35 24 / .3); }
}
@media(max-width:760px) {
  .bc-platform .grid { gap:16px; }
  .bc-platform .card { padding:20px; }
  .bc-platform .card.property-card { padding:0; }
  .bc-ui :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
  .bc-ui :is(.sheet-card,dialog) { max-height:calc(100dvh - 24px - env(safe-area-inset-bottom)); }
  .bc-ui .sheet-card { border-radius:24px 24px 0 0; }
  .bc-initial .initial-workspace { padding:24px 16px 40px; }
  .bc-initial .initial-form { padding:20px 16px; }
}
@media(prefers-reduced-motion:reduce) {
  .bc-ui *,.bc-ui *::before,.bc-ui *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
  .bc-ui :is(.object-card,.bc-platform .grid>.card):hover { transform:none; }
  .bc-ui button:active,.bc-ui :is(.button-link,.property-select):active { scale:1; }
}
/* Long object names and cycle stages stay readable at narrow widths. */
.bc-ui :is(.object-title,.obj-hero .obj-name,.an-card h3,.tenant-hero h2) { font-family:inherit;letter-spacing:-.025em; }
.bc-ui .dash-cycle-copy { width:100%; }
.bc-ui .dash-cycle-copy b { white-space:normal;overflow-wrap:anywhere;line-height:1.4; }
.bc-ui .dash-cycle-step { min-height:88px; }
.bc-ui .dash-cycle-track { align-items:start; }
.bc-ui .bc-skip { position:fixed;top:-100px;left:16px;z-index:1000;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text); }
.bc-ui .bc-skip:focus { top:16px; }
@media(max-width:760px) {
  .bc-ui .dash-cycle-track { grid-template-columns:repeat(7,128px);gap:0; }
  .bc-ui .dash-cycle-copy { padding-inline:8px; }
  .bc-ui .topbar-row :is(.icon-btn,.search-btn,.avatar) { width:44px;min-width:44px;height:44px; }
}
.bc-ui :is(.builder-panel,.builder-template-note,.chat-app) { border:1px solid var(--line);border-radius:20px;box-shadow:var(--elevation-rest); }
.bc-ui :is(input,textarea)::placeholder { color:var(--muted);opacity:1; }
.bc-initial .initial-workspace>a { display:inline-flex;align-items:center;min-height:44px;color:var(--accent);text-decoration:none; }
.bc-initial .initial-workspace>a:hover { text-decoration:underline; }

/* Home is a compact working launcher, with one clear primary direction. */
.bc-home .launch-home { max-width:1040px;margin-inline:auto; }
.bc-home .page-head { margin-bottom:24px; }
.bc-home .page-head h1 { font-size:2rem; }
.bc-home .page-head p { margin-bottom:0;font-size:1rem; }
.home-primary { display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:196px;padding:32px; border-radius:20px;background:var(--accent);color:var(--on-accent);box-shadow:var(--elevation-raised);transition:box-shadow 180ms ease-out,transform 180ms var(--motion-ease); }
.home-primary h2 { font-size:1.7rem;margin:0 0 8px; }
.home-primary p { color:inherit;opacity:.88;margin:0;max-width:48ch;font-size:1rem; }
.home-primary-action { display:inline-flex;align-items:center;gap:10px;margin-top:24px;min-height:44px;font-size:.94rem;font-weight:650; }
.home-primary-action::after { content:'→';font-size:1.25rem; }
.home-primary-icon { display:grid;place-items:center;flex-shrink:0;width:104px;height:104px; border:1px solid currentColor;border-radius:24px;background:rgb(255 255 255 / .08);transform:perspective(600px) rotateY(-12deg) rotateX(6deg);box-shadow:8px 10px 20px -14px rgb(0 0 0 / .3); }
.home-primary-icon svg { width:54px;height:54px; }
.home-shortcuts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px; }
.home-shortcut { display:grid;align-content:start;gap:12px;min-width:0;padding:24px;border-radius:16px;background:var(--surface);box-shadow:var(--elevation-rest);transition:background-color 150ms ease-out,box-shadow 180ms ease-out; }
.home-shortcut-icon { display:flex;color:var(--accent); }
.home-shortcut-icon svg { width:26px;height:26px; }
.home-shortcut h2 { font-size:1.05rem;margin:0;overflow-wrap:anywhere; }
.home-shortcut-description { color:var(--muted);font-size:.85rem;line-height:1.5; }
.home-upcoming { margin-top:32px; }
.home-upcoming>h2 { font-size:.94rem;color:var(--muted);font-weight:600;margin-bottom:12px; }
.home-upcoming-list { border-top:1px solid var(--line); }
.home-upcoming-row { display:flex;align-items:center;gap:12px;padding:16px 0;min-height:56px;border-bottom:1px solid var(--line);font-size:.9rem; }
.home-upcoming-row>svg { width:20px;height:20px;color:var(--muted);flex-shrink:0; }
.home-upcoming-row>span:first-of-type { flex:1;min-width:0; }
.home-upcoming-state { color:var(--muted);font-size:.78rem; }
.home-legacy { margin-bottom:24px;padding:16px;background:var(--soft);border-radius:16px; }
.home-legacy p { margin:0 0 8px; }
@media(hover:hover) and (pointer:fine){.home-primary:hover{transform:translateY(-2px);box-shadow:var(--elevation-dialog)}.home-shortcut:hover{background:var(--soft);box-shadow:var(--elevation-raised)}}
@media(max-width:760px){
  .bc-home .sidebar { padding:16px;gap:12px; }
  .bc-home .brand small { display:none; }
  .bc-home .brand-row .brand { font-size:1rem; }
  .bc-home .topbar { display:none; }
  .bc-home .sidebar.menu-open+.workspace .topbar { display:flex; }
  .bc-home main { padding:24px 16px;min-height:0; }
  .bc-home .page-head { margin-bottom:20px; }
  .bc-home .page-head h1 { font-size:1.65rem;margin-bottom:6px; }
  .bc-home .page-head p { font-size:.9rem; }
  .home-primary { padding:24px;gap:16px;min-height:164px; }
  .home-primary h2 { font-size:1.35rem; }
  .home-primary p { font-size:.86rem; }
  .home-primary-action { margin-top:12px;font-size:.86rem; }
  .home-primary-icon { width:60px;height:72px;border-radius:16px; }
  .home-primary-icon svg { width:34px;height:34px; }
  .home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px; }
  .home-shortcut { padding:20px 16px;gap:12px;min-height:122px; }
  .home-shortcut h2 { font-size:.98rem;line-height:1.35; }
  .home-shortcut-description { display:none; }
  .home-shortcut:last-child:nth-child(odd) { grid-column:1/-1;grid-template-columns:28px minmax(0,1fr);align-items:center;min-height:68px;align-content:center; }
  .home-upcoming { margin-top:24px; }
  .bc-home footer { padding-top:16px; }
}
@media(prefers-reduced-motion:reduce){.home-primary:hover{transform:none}.home-primary-icon{transform:none}}
/* Working rows stay still; keyboard focus and invalid input remain explicit. */
.bc-ui [role=button][tabindex="0"] { cursor:pointer; }
.bc-ui [role=button][tabindex="0"]:focus-visible { outline:3px solid var(--accent);outline-offset:3px; }
.bc-ui input[aria-invalid=true] { border-color:var(--danger); }
.bc-ui .reading-error { color:var(--danger);font-size:13px;line-height:1.5; }
.bc-ui .meter .usage { min-width:0;overflow-wrap:anywhere; }

.bc-ui .fm { --fm-blue:var(--accent);--fm-green:var(--ok); }
.bc-ui :is(.fm-hero,.fm-metric,.fm-car) { border-radius:16px;box-shadow:var(--elevation-rest); }
.bc-ui .fm-hero { background:var(--surface); }
.bc-ui .fm-lead h2 { font-size:1.5rem;letter-spacing:-.025em;margin:0 0 12px; }
.bc-ui .fm-dot.warn { background:var(--warn); }

/* Show utility controls only where the chosen utility month is meaningful. */
.bc-ui:is([data-view=fines],[data-view=matrix],[data-view=analytics],[data-view=premises]) .topbar .period { display:none; }
.bc-ui[data-view=fines] .topbar :is(.steps,.deadlines,.warnings) { display:none; }
.bc-ui:is([data-view=objects],[data-view=rent],[data-view=tenant],[data-view=matrix],[data-view=analytics],[data-view=premises],[data-view=fines]) #period-lock { display:none; }
@media(max-width:760px) {
  .bc-ui #view-readings>.toolbar { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px; }
  .bc-ui #view-readings>.toolbar :is(#search-meters,#object-filter) { grid-column:1/-1;width:100%;min-width:0; }
  .bc-ui #view-readings>.toolbar .toggle { display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;padding:0;border:none;background:transparent;white-space:normal;font-size:13px;line-height:1.4; }
  .bc-ui #view-readings>.toolbar .toggle input { flex-shrink:0;width:18px;height:18px; }
  .bc-ui #view-readings>.toolbar :is(button,.initial-entry) { white-space:normal;font-size:13px;line-height:1.4;text-align:center;justify-content:center; }
  .bc-ui .rd-head { padding:16px;gap:12px;background:var(--surface);box-shadow:var(--elevation-rest); }
  .bc-ui .rd-head-main { flex-basis:100%; }
  .bc-ui .rd-head .rd-big { font-size:1.4rem; }
}
.bc-ui .fm-photo { background:var(--surface-2); }
.bc-ui .fm-car-status.due { background:var(--accent);color:var(--on-accent); }

/* Application motion language: transitions explain navigation, never delay work. */
html:root { --motion-fast:140ms; --motion-enter:220ms; --motion-ease:cubic-bezier(.16,1,.3,1); }
.bc-ui :is(.sidebar nav a,.rail button,.bottom-nav button,.segmented button) {
 transition:background-color 160ms ease-out,color 160ms ease-out,box-shadow 160ms ease-out;
}
.bc-ui :is(.sidebar nav a,.rail button,.bottom-nav button) svg {
 transition:transform 160ms var(--motion-ease),color 160ms ease-out;
}
.bc-ui :is(.sidebar nav a[aria-current=page],.rail button.active,.bottom-nav button.active) svg { transform:translateY(-1px); }
.bc-ui .view:not([hidden]) { animation:bc-view-reveal 200ms ease-out; }
.bc-platform:not(.bc-chat) #content > .page-head { animation:bc-panel-reveal 260ms var(--motion-ease); }
.bc-platform .launch-home > :is(.home-heading,.home-primary,.home-shortcuts) { animation:bc-panel-reveal 300ms var(--motion-ease); }
.bc-platform .launch-home > .home-primary { animation-delay:40ms; }
.bc-platform .launch-home > .home-shortcuts { animation-delay:80ms; }
.bc-ui dialog[open]:not(.chat-media-dialog):not(.chat-call-dialog) { animation:bc-window-reveal 220ms var(--motion-ease); }
.bc-ui dialog[open]::backdrop { animation:bc-backdrop-reveal 160ms ease-out; }
.bc-ui .chat-head,.bc-ui .chat-side-head { animation:bc-view-reveal 180ms ease-out; }
.bc-ui .chat-loading-preview { animation:bc-loading-breathe 900ms ease-in-out 3; }
.bc-ui :is(.page-head,.home-heading) h1 { letter-spacing:-.03em; }
.bc-ui :is(.sidebar nav a,.rail button,.bottom-nav button):focus-visible { outline-offset:-3px; }
.bc-ui :is(.link,.button-link) { text-underline-offset:4px; }
.bc-ui :is(input,textarea) { caret-color:var(--accent); }
.bc-ui ::selection { background:var(--accent); color:var(--on-accent); }
@keyframes bc-view-reveal { from{opacity:.82} to{opacity:1} }
@keyframes bc-panel-reveal { from{opacity:.7;translate:0 8px} to{opacity:1;translate:0 0} }
@keyframes bc-window-reveal { from{opacity:.75;translate:0 10px;scale:.985} to{opacity:1;translate:0 0;scale:1} }
@keyframes bc-backdrop-reveal { from{opacity:.35} to{opacity:1} }
@keyframes bc-loading-breathe { 50%{opacity:.5} }
@media(hover:hover) and (pointer:fine) {
 .bc-ui :is(.sidebar nav a,.rail button,.bottom-nav button):hover { background:var(--soft); }
 .bc-ui .home-shortcut { transition:box-shadow 180ms ease-out,background-color 180ms ease-out; }
 .bc-ui .home-shortcut:hover { background:var(--soft); box-shadow:var(--elevation-rest); }
}
@media(prefers-reduced-motion:reduce) {
 .bc-ui *,.bc-ui *::before,.bc-ui *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
 .bc-ui :is(.sidebar nav a[aria-current=page],.rail button.active,.bottom-nav button.active) svg { transform:none; }
}

/* Clear: one spacing scale, quiet surfaces, predictable control geometry. */
html:root {
 --elevation-rest:0 1px 3px rgb(20 48 35 / .045);
 --elevation-raised:0 6px 20px -8px rgb(20 48 35 / .12);
 --elevation-dialog:0 24px 64px -16px rgb(8 25 17 / .24);
 --radius:16px; --radius-sm:10px;
}
html:root[data-theme=dark] {
 --elevation-rest:0 1px 3px rgb(0 0 0 / .16);
 --elevation-raised:0 6px 20px -8px rgb(0 0 0 / .32);
 --elevation-dialog:0 24px 64px -16px rgb(0 0 0 / .55);
}
@media(prefers-color-scheme:dark){html:root:not([data-theme=light]){
 --elevation-rest:0 1px 3px rgb(0 0 0 / .16);--elevation-raised:0 6px 20px -8px rgb(0 0 0 / .32);--elevation-dialog:0 24px 64px -16px rgb(0 0 0 / .55);
}}
.bc-ui :is(.toolbar,.header-actions,.dialog-actions,.topbar-actions) { gap:8px; align-items:center; }
.bc-ui :is(.sidebar nav a,.rail button) { border-radius:10px; }
.bc-ui :is(.sheet-card,dialog) { border-radius:20px; }
.bc-ui :is(.empty,.notice,.initial-notice) { border-radius:12px; }
.bc-ui :is(.object-card,.tenant-block,.obj-block,.an-card) { box-shadow:var(--elevation-rest); }
.bc-ui :is(.page-head,.dialog-head) { gap:16px; }
.bc-ui :is(.dialog-actions,.access-actions) { align-items:center; }
.bc-ui :is(.dialog-actions,.access-actions) button { min-height:44px; }
.bc-ui .initial-notice { border-left-width:1px; }
.bc-platform .home-shortcuts { box-shadow:none; border-radius:16px; }
.bc-platform .home-shortcut { min-height:76px; padding:16px 20px; }
.bc-platform .home-shortcut-icon { box-shadow:none; border:0; border-radius:12px; }
.bc-platform .home-shortcut h2 { font-size:15px; font-weight:600; letter-spacing:-.015em; }
.bc-platform .home-shortcut-description { line-height:1.45; }
.bc-platform .home-primary { border-radius:20px; }
@media(hover:hover) and (pointer:fine) {
 .bc-ui :is(.object-card,.bc-platform .grid>.card):hover { transform:none; box-shadow:var(--elevation-raised); }
 .bc-platform .home-primary:hover { transform:none; }
}
@media(max-width:760px) {
 .bc-platform:not(.bc-chat) .page-head { margin-bottom:24px; }
 .bc-platform .home-shortcut { padding:14px 16px; }
 .bc-ui .toolbar { gap:8px; }
 .bc-ui .sheet-card { border-radius:20px 20px 0 0; }
}
@media(min-width:761px) {
 .bc-ui.bc-platform .home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bc-ui.bc-platform .home-shortcuts .home-shortcut { border:0; }
 .bc-ui.bc-platform .home-shortcuts .home-shortcut:nth-child(even) { border-left:1px solid var(--line); }
 .bc-ui.bc-platform .home-shortcuts .home-shortcut:nth-child(n+3) { border-top:1px solid var(--line); }
}
@media(hover:hover) and (pointer:fine) {
 .bc-ui.bc-platform .home-primary:hover { transform:none; }
}
/* Section audit: the selected period remains readable beside phone navigation. */
.bc-platform .access-page-actions { display:flex; gap:8px; margin:0 0 24px; }
@media(max-width:760px) {
 .bc-ui.bc-operations .topbar-row { display:grid; grid-template-columns:minmax(0,1fr) repeat(3,44px); gap:8px; align-items:center; }
 .bc-ui.bc-operations .topbar-row > .page-head { grid-column:1; grid-row:1; min-width:0; width:auto; margin:0; }
 .bc-ui.bc-operations .topbar-row > #palette-open { grid-column:2; grid-row:1; }
 .bc-ui.bc-operations .topbar-row > #help-open { grid-column:3; grid-row:1; }
 .bc-ui.bc-operations .topbar-row > #more { grid-column:4; grid-row:1; }
 .bc-ui.bc-operations .topbar-row > #period { grid-column:1/-1; grid-row:2; width:100%; min-width:0; max-width:none; }
 .bc-ui.bc-operations .topbar-row .page-title { font-size:22px; overflow-wrap:anywhere; }
}
/* Detail pages need the full name and breadcrumb, not a truncated mobile title. */
@media(max-width:760px) {
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > .page-head { grid-column:1/-1; grid-row:1; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > #palette-open,
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > #help-open,
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > #more { grid-row:2; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .page-title { white-space:normal; overflow:visible; text-overflow:clip; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .crumbs { white-space:normal; overflow-wrap:anywhere; overflow:visible; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > #period { grid-row:3; }
}
@media(max-width:760px) {
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .crumbs { display:flex; flex-wrap:wrap; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .crumbs .crumb { white-space:normal; overflow:visible; text-overflow:clip; }
}

/* Every operational action uses the same reachable target, including dense
   filters and drill-down links. Keep financial rows stationary. */
.bc-ui.bc-operations button,
.bc-ui.bc-operations :is(.button-link,.doc-dl,summary) { min-height:44px; }
.bc-ui.bc-operations :is(button.crumb,.doc-dl) { min-width:44px; }
.bc-ui.bc-operations .topbar-row :is(.icon-btn,.avatar) { width:44px;min-width:44px;height:44px;flex-shrink:0; }
.bc-ui.bc-operations .topbar-row .search-btn { min-width:44px;flex-shrink:0; }
.bc-ui.bc-operations .topbar-row .page-title { white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25; }
.bc-ui.bc-operations :is(.linkish,.step-link) { display:inline-flex;align-items:center;gap:4px; }
.bc-ui.bc-operations :is(.chip,.rd-chip) { line-height:1.35; }
.bc-ui.bc-operations #board-chips button { min-height:44px; }
.bc-platform :is(.access-page-actions,.employee-page-actions) { display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px; }
.bc-platform #permissions-form[aria-busy=true] { cursor:progress; }
.bc-platform #permissions-form [disabled] { cursor:wait; }
.bc-ui.bc-operations .empty:has(>.empty-title) { text-align:left;padding:24px;background:var(--surface); }
.bc-ui.bc-operations .empty-title { display:block;font-size:16px;line-height:1.4;color:var(--text); }
.bc-ui.bc-operations .empty-detail { margin:8px 0 0;color:var(--muted);font-size:14px;max-width:60ch; }
.bc-ui.bc-operations .empty-recover { margin-top:16px; }
@media(max-width:760px) {
 .bc-ui.bc-operations .crumbs button.crumb { padding-inline:4px; }
 .bc-ui.bc-operations .page-head .page-title { font-size:22px; }
}

/* Detailed financial explanations belong in the page flow, not a giant pill. */
.bc-ui.bc-operations :is(.tenant-action-feedback,.message-toast) { background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;text-align:left;line-height:1.5; }
.bc-ui.bc-operations .tenant-action-feedback { display:flex;align-items:flex-start;gap:12px;padding:20px;margin:0 0 16px;scroll-margin-top:180px; }
.bc-ui.bc-operations :is(.action-feedback-copy,.toast-copy) { min-width:0;flex:1; }
.bc-ui.bc-operations :is(.action-feedback-title,.toast-heading) { display:block;font-size:15px;line-height:1.4; }
.bc-ui.bc-operations .action-feedback-title,.bc-ui.bc-operations .message-toast.bad .toast-heading { color:var(--danger); }
.bc-ui.bc-operations :is(.action-feedback-brief,.toast-brief) { margin:6px 0 0;font-size:14px; }
.bc-ui.bc-operations .message-details { margin-top:8px; }
.bc-ui.bc-operations .message-details>summary { display:flex;align-items:center;gap:8px;min-height:44px;width:fit-content;color:var(--accent);font-size:14px;font-weight:600;cursor:pointer;list-style:none; }
.bc-ui.bc-operations .message-details>summary::-webkit-details-marker { display:none; }
.bc-ui.bc-operations .message-details>summary::after { content:"";width:7px;height:7px;border-right:1.75px solid currentColor;border-bottom:1.75px solid currentColor;rotate:45deg;translate:0 -2px; }
.bc-ui.bc-operations .message-details[open]>summary::after { rotate:225deg;translate:0 2px; }
.bc-ui.bc-operations .message-source { margin:8px 0 0;padding-top:12px;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;max-width:80ch;font-size:14px; }
.bc-ui.bc-operations .message-dismiss { display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);flex-shrink:0; }
.bc-ui.bc-operations .message-dismiss svg { width:20px;height:20px; }
.bc-ui.bc-operations .message-toast { display:flex;align-items:flex-start;gap:8px;left:auto;right:24px;bottom:24px;transform:none;width:420px;max-width:calc(100vw - 48px);max-height:45dvh;padding:12px 12px 12px 16px;overflow:auto;box-shadow:var(--elevation-raised);animation:none; }
.bc-ui.bc-operations .message-toast .message-source { max-height:24dvh;overflow:auto; }
.bc-ui.bc-operations .message-toast.in-sheet { position:sticky;bottom:0;right:auto;left:auto;width:100%;max-width:none;box-shadow:none;margin-top:16px; }
.bc-ui.bc-operations .message-toast.bad .toast-announcement { color:var(--danger); }
.bc-ui.bc-operations .message-toast.ok .toast-announcement { color:var(--ok); }

/* Dense detail headers keep the full name and 44px controls in a clear order. */
@media(max-width:760px) {
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) { padding-block:12px;row-gap:4px; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > .page-head { display:contents; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .crumbs { grid-column:1;grid-row:1;flex-wrap:nowrap;overflow:auto;font-size:12px;gap:2px;scrollbar-width:thin; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .crumb { flex-shrink:0; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) .page-title { grid-column:1/-1;grid-row:2;font-size:22px;line-height:1.3;margin-top:6px; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > :is(#palette-open,#help-open,#more) { grid-row:1; }
 .bc-ui.bc-operations .topbar-row:has(#crumbs:not([hidden])) > #period { grid-row:3; }
}
@media(max-width:760px) {
 .bc-ui.bc-operations .tenant-action-feedback { padding:16px;gap:8px; }
 .bc-ui.bc-operations .message-toast { right:16px;max-width:calc(100vw - 32px);bottom:calc(126px + env(safe-area-inset-bottom)); }
}
