/* BiT Homes v33.7 global expansion. Pure server-rendered HTML/CSS/JS. */
:root{--v337-bg:#f4f7fb;--v337-card:#fff;--v337-text:#152033;--v337-muted:#667085;--v337-line:#d8e0ea;--v337-brand:#2563eb;--v337-accent:#2563eb;--v337-danger:#b42318;--v337-ok:#067647;--v337-radius:.8rem}
html[data-v337-theme="dark"]{--v337-bg:#0b1220;--v337-card:#111c2e;--v337-text:#e7edf7;--v337-muted:#a7b4c8;--v337-line:#2b3a50;--v337-brand:#6fa8dc;--v337-accent:#79a7ff;--v337-danger:#ff8a80;--v337-ok:#63d9a4;color-scheme:dark}
.bh-v337-shell{box-sizing:border-box;width:100%;max-width:none;margin:1.25rem 0;color:var(--v337-text)}
.bh-v337-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.bh-v337-head h1{margin:0 0 .35rem}.bh-v337-head p{margin:0;color:var(--v337-muted)}
.bh-v337-card{display:block;background:var(--v337-card);color:var(--v337-text);border:1px solid var(--v337-line);border-radius:var(--v337-radius);padding:1rem;min-width:0;overflow-wrap:anywhere;text-decoration:none}.bh-v337-card h2{margin-top:0}.bh-v337-card>strong{display:block;font-size:2rem;color:var(--v337-brand)}.bh-v337-card>span{color:var(--v337-muted)}
.bh-v337-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;align-items:start}.bh-v337-workspaces{margin-bottom:1rem}.bh-v337-workspaces .bh-v337-card:hover,.bh-v337-workspaces .bh-v337-card:focus{border-color:var(--v337-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--v337-accent) 18%,transparent)}
.bh-v337-alert{border-radius:.65rem;padding:.8rem 1rem;margin:.75rem 0;border:1px solid}.bh-v337-alert.success{color:var(--v337-ok);border-color:currentColor;background:color-mix(in srgb,var(--v337-ok) 10%,var(--v337-card))}.bh-v337-alert.error{color:var(--v337-danger);border-color:currentColor;background:color-mix(in srgb,var(--v337-danger) 10%,var(--v337-card))}
.bh-v337-secret{padding:1rem;border:2px solid var(--v337-accent);border-radius:.7rem;background:var(--v337-card);overflow-wrap:anywhere}.bh-v337-note,.bh-v337-empty{color:var(--v337-muted)}.bh-v337-empty{padding:2rem;text-align:center}
.bh-v337-table-scroll{width:100%;overflow:auto}.bh-v337-shell table{width:100%;border-collapse:collapse}.bh-v337-shell .bh-v337-aligned-table{display:table;table-layout:auto;min-width:860px}.bh-v337-shell .bh-v337-aligned-table thead{display:table-header-group;width:auto}.bh-v337-shell .bh-v337-aligned-table tbody{display:table-row-group;width:auto}.bh-v337-shell .bh-v337-aligned-table tr{display:table-row}.bh-v337-shell .bh-v337-aligned-table th,.bh-v337-shell .bh-v337-aligned-table td{display:table-cell}.bh-v337-shell th,.bh-v337-shell td{padding:.65rem;border-bottom:1px solid var(--v337-line);vertical-align:top;text-align:left}.bh-v337-shell th{color:var(--v337-muted);font-size:.82rem;text-transform:uppercase;letter-spacing:.03em}.bh-v337-shell small{color:var(--v337-muted)}
.bh-v337-shell form{display:grid;gap:.75rem}.bh-v337-shell label{display:grid;gap:.3rem;min-width:0}.bh-v337-shell input,.bh-v337-shell select,.bh-v337-shell textarea,.bh-v337-shell button{font:inherit}.bh-v337-shell input,.bh-v337-shell select,.bh-v337-shell textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:.6rem;border:1px solid var(--v337-line);border-radius:.45rem;background:var(--v337-card);color:var(--v337-text)}.bh-v337-shell textarea{min-height:6rem;resize:vertical}.bh-v337-shell fieldset{border:1px solid var(--v337-line);border-radius:.55rem;padding:.75rem;min-width:0}.bh-v337-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:.5rem!important}.bh-v337-check input{width:auto!important;margin-top:.2rem}.bh-v337-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.bh-v337-inline{display:inline-flex!important;margin:.15rem}.bh-v337-tabs{display:flex;gap:.4rem;overflow:auto;margin:.75rem 0;padding:.25rem}.bh-v337-tabs a{white-space:nowrap;padding:.55rem .75rem;border:1px solid var(--v337-line);border-radius:999px;text-decoration:none;color:var(--v337-text)}.bh-v337-tabs a.active{background:var(--v337-brand);color:#fff;border-color:var(--v337-brand)}
.bh-v337-expansion-link{position:fixed;right:1rem;bottom:1rem;z-index:9998;padding:.6rem .8rem;border-radius:999px;background:var(--v337-brand);color:#fff!important;text-decoration:none;box-shadow:0 .4rem 1.4rem #0004}

/* Gmail-class three-pane layout */
.bh-v337-mail-layout{display:grid;grid-template-columns:minmax(180px,230px) minmax(300px,1fr) minmax(320px,1.1fr);gap:.75rem;min-height:65vh}.bh-v337-mail-nav,.bh-v337-mail-list,.bh-v337-mail-reader{background:var(--v337-card);border:1px solid var(--v337-line);border-radius:var(--v337-radius);padding:.75rem;min-width:0;overflow:auto}.bh-v337-mail-nav a,.bh-v337-mail-nav span{display:grid;grid-template-columns:auto 1fr;gap:.25rem;padding:.5rem;border-radius:.4rem;color:var(--v337-text);text-decoration:none}.bh-v337-mail-nav a small{grid-column:1/-1}.bh-v337-mail-nav a.active{background:color-mix(in srgb,var(--v337-accent) 14%,transparent)}.bh-v337-mail-nav i{width:.75rem;height:.75rem;border-radius:50%;margin-top:.25rem}.bh-v337-mail-search{display:flex!important;grid-template-columns:1fr auto!important;margin-bottom:.5rem}.bh-v337-mail-search button{width:auto}.bh-v337-compose{border:1px solid var(--v337-line);border-radius:.55rem;padding:.55rem;margin-bottom:.5rem}.bh-v337-message-row{display:grid;grid-template-columns:1.2rem minmax(100px,.7fr) minmax(140px,1fr) minmax(150px,1.4fr) auto;gap:.5rem;padding:.65rem;border-bottom:1px solid var(--v337-line);text-decoration:none;color:var(--v337-text);align-items:center}.bh-v337-message-row.unread{background:color-mix(in srgb,var(--v337-accent) 8%,var(--v337-card));font-weight:650}.bh-v337-message-row small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bh-v337-message-row time{font-size:.8rem;white-space:nowrap}.bh-v337-mail-body{line-height:1.6;overflow-wrap:anywhere}.bh-v337-mail-body img{max-width:100%;height:auto}.bh-v337-mail-body pre{white-space:pre-wrap;font:inherit}

/* Visual builder */
.bh-v337-builder-layout{display:grid;grid-template-columns:minmax(180px,230px) minmax(360px,1fr) minmax(240px,320px);gap:1rem;align-items:start}.bh-v337-builder-layout>aside{position:sticky;top:.75rem;max-height:calc(100vh - 1.5rem);overflow:auto}.bh-v337-builder-layout>aside button{width:100%;margin:.2rem 0}.bh-v337-builder-canvas{display:grid;gap:.75rem}.bh-v337-builder-block{background:var(--v337-card);border:1px solid var(--v337-line);border-radius:.65rem;padding:.75rem;display:grid;gap:.6rem}.bh-v337-builder-block.is-dragging{opacity:.55}.bh-v337-builder-toolbar{display:flex;gap:.35rem;flex-wrap:wrap;align-items:center}.bh-v337-builder-toolbar strong{margin-right:auto}.bh-v337-builder-items{display:grid;gap:.5rem}.bh-v337-builder-item{border:1px dashed var(--v337-line);padding:.6rem;border-radius:.5rem}

/* Public builder, responsive header, accessible marquees and dark mode */
.bh-v337-public{margin:0;background:var(--v337-bg);color:var(--v337-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.bh-v337-public-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem max(1rem,calc((100% - 1200px)/2));background:var(--v337-card);border-bottom:1px solid var(--v337-line)}.bh-v337-public-head a{color:var(--v337-text);text-decoration:none;font-weight:700}.bh-v337-public-head nav{display:flex;gap:.75rem;flex-wrap:wrap}.bh-v337-public main{width:min(1200px,calc(100% - 2rem));margin:auto}.bh-v337-section{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;padding:clamp(1.25rem,4vw,4rem) 0}.bh-v337-section>img{width:100%;max-height:520px;object-fit:cover;border-radius:var(--v337-radius)}.bh-v337-hero{grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);align-items:center}.bh-v337-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem}.bh-v337-item{background:var(--v337-card);border:1px solid var(--v337-line);border-radius:var(--v337-radius);padding:1rem}.bh-v337-item img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:.5rem}.bh-v337-public-button{display:inline-block;padding:.7rem 1rem;border-radius:.5rem;background:var(--v337-brand);color:#fff;text-decoration:none}.bh-v337-form form{display:grid;gap:.75rem;max-width:760px}.bh-v337-form label{display:grid;gap:.3rem}.bh-v337-form input,.bh-v337-form textarea,.bh-v337-form select{padding:.65rem;border:1px solid var(--v337-line);border-radius:.45rem;background:var(--v337-card);color:var(--v337-text)}.bh-v337-public footer{padding:2rem;text-align:center;background:var(--v337-card);border-top:1px solid var(--v337-line)}.bh-v337-preview-banner{position:sticky;top:0;z-index:9999;padding:.6rem;text-align:center;background:#f59e0b;color:#111827;font-weight:800}
.bh-v337-global-marquees{display:grid;background:var(--v337-card)}.bh-v337-marquee{display:flex;align-items:center;gap:.65rem;padding:.55rem 1rem;border-bottom:1px solid var(--v337-line);overflow:hidden}.bh-v337-marquee button{flex:none}.bh-v337-marquee span,.bh-v337-marquee>div{display:block;white-space:normal}.bh-v337-marquee.is-moving:not(.paused) span{animation:v337-marquee 18s linear infinite}.bh-v337-marquee:focus-within span,.bh-v337-marquee:hover span{animation-play-state:paused}@keyframes v337-marquee{from{transform:translateX(30%)}to{transform:translateX(-100%)}}

/* Exact regression closure: checkout stays in the main column; phone search,
   number and microphone never shrink or disappear. */
body:has(.v355-checkout-card) .v355-public-main{display:block!important;min-width:0!important}
body:has(.v355-checkout-card) .v355-checkout-card{width:100%!important;max-width:980px!important;margin-inline:auto!important;position:relative!important;inset:auto!important}
[data-country-picker]:has(input[type="search"]),[data-dial-picker]:has(input[type="search"]),.country-picker:has(input[type="search"]),.dial-code-picker:has(input[type="search"]){display:grid!important;grid-template-columns:minmax(6.5rem,9rem) minmax(9rem,1fr) auto!important;gap:.35rem!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
[data-country-picker] input[type="search"],[data-dial-picker] input[type="search"],.country-picker input[type="search"],.dial-code-picker input[type="search"]{min-width:6.5rem!important;width:100%!important;visibility:visible!important;display:block!important}
label:has(input[type="tel"]) input[type="tel"],label:has(input[name*="phone" i]) input[name*="phone" i],label:has(input[name*="telephone" i]) input[name*="telephone" i]{min-width:8.5rem!important;max-width:100%!important;width:100%!important}
label:has(input[type="tel"]) button[class*="voice" i],label:has(input[type="tel"]) button[class*="mic" i]{position:static!important;inset:auto!important;transform:none!important;flex:0 0 2.4rem!important}

@media(prefers-reduced-motion:reduce){.bh-v337-marquee span{animation:none!important;transform:none!important}.bh-v337-public *{scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media(max-width:1050px){.bh-v337-mail-layout{grid-template-columns:190px minmax(0,1fr)}.bh-v337-mail-reader{grid-column:1/-1}.bh-v337-builder-layout{grid-template-columns:1fr}.bh-v337-builder-layout>aside{position:static;max-height:none}}
@media(max-width:720px){.bh-v337-shell{width:100%;max-width:none;margin-inline:0}.bh-v337-mail-layout{grid-template-columns:1fr}.bh-v337-mail-nav,.bh-v337-mail-reader{grid-column:auto}.bh-v337-message-row{grid-template-columns:1.2rem 1fr auto}.bh-v337-message-row>span:nth-of-type(2),.bh-v337-message-row small{grid-column:2/-1}.bh-v337-hero{grid-template-columns:1fr}.bh-v337-public-head{align-items:stretch}.bh-v337-public-head nav{width:100%}.bh-v337-shell thead,.bh-v337-shell tbody{min-width:680px}[data-country-picker]:has(input[type="search"]),[data-dial-picker]:has(input[type="search"]),.country-picker:has(input[type="search"]),.dial-code-picker:has(input[type="search"]){grid-template-columns:minmax(5.75rem,7rem) minmax(0,1fr) auto!important}}


/* BITHOMES_V33_7_0_3_ADMIN_STANDARD_WIDTH_AND_CANONICAL_BLUE_CONTROLS
   The established .content element remains the sole admin width owner. */
body:has(.sidebar-nav) :where(.btn,button,input[type="button"],input[type="submit"],input[type="reset"]){
  box-sizing:border-box!important;
  border-color:#2563eb!important;
  background:#2563eb!important;
  color:#fff!important;
}
body:has(.sidebar-nav) :where(.btn,button,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):hover,
body:has(.sidebar-nav) :where(.btn,button,input[type="button"],input[type="submit"],input[type="reset"]):not(:disabled):focus-visible{
  border-color:#1d4ed8!important;
  background:#1d4ed8!important;
  color:#fff!important;
}
body:has(.sidebar-nav) :where(.btn,button,input[type="button"],input[type="submit"],input[type="reset"]):disabled{
  opacity:.58;
  cursor:not-allowed;
}


/* BITHOMES_V33_7_1_GLOBAL_GUARDED_INSTRUCTION9_REGRESSION_CLOSURE */
html[data-v337-theme="dark"],html[data-v337-theme="dark"] body{--v337-bg:#0f172a;--v337-card:#172033;--v337-text:#f8fafc;--v337-muted:#cbd5e1;--v337-line:#475569;background:#0f172a!important;color:#f8fafc!important}
html[data-v337-theme="dark"] :where(.content,.dashboard-container,.card,.page-header,.data-table,input,select,textarea){background-color:var(--v337-card)!important;color:var(--v337-text)!important;border-color:var(--v337-line)!important}
.bh-v337-global-controls{position:relative;z-index:1000;display:flex;justify-content:flex-end;align-items:center;gap:.35rem;flex-wrap:wrap;padding:.35rem 1rem;background:var(--v337-card);color:var(--v337-text);border-bottom:1px solid var(--v337-line)}
.bh-v337-global-controls button{width:auto!important;padding:.35rem .55rem!important}
body:has(.sidebar-nav) :where(.content,.dashboard-container){box-sizing:border-box;max-width:none!important;width:100%!important;padding-left:clamp(.85rem,1.8vw,1.5rem)!important;padding-right:clamp(.85rem,1.8vw,1.5rem)!important}
.bh-v337-room-list{display:grid!important;grid-template-columns:1fr!important;max-height:24rem;overflow:auto;align-content:start}
.bh-v337-room-list a{white-space:normal!important;width:100%;box-sizing:border-box}
.bh-v337-room-search{display:grid;gap:.3rem;max-width:38rem}
.bh-v337-recognition-singleton{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.45rem .65rem;margin:.55rem 0;border:1px solid var(--v337-line);border-radius:.55rem;background:var(--v337-card)}
.bh-v337-recognition-singleton summary{cursor:pointer;font-weight:700}.bh-v337-recognition-singleton button{width:auto!important}
.v337-checkout-settings{position:relative!important;inset:auto!important;float:none!important;width:100%!important;box-sizing:border-box;margin:1rem 0!important}
[data-country-picker],[data-dial-picker],.country-picker,.dial-code-picker{min-width:0!important;overflow:visible!important}
[data-country-picker] button,[data-dial-picker] button,.country-picker button,.dial-code-picker button{white-space:normal!important;overflow-wrap:anywhere}
.bithomes-capability-quota,.capability-quota-cell,[data-capability-quota]{display:block!important;visibility:visible!important;opacity:1!important}
@media(max-width:800px){.bh-v337-global-controls{justify-content:flex-start}.bh-v337-room-list{max-height:18rem}}


/* BITHOMES_V33_7_1_2_COMPLETE_ADMIN_DARK_CONTRAST */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  main,section,article,aside,header,footer,nav,div,details,fieldset,
  table,thead,tbody,tr,th,td,label,p,span,strong,small,h1,h2,h3,h4,h5,h6
){border-color:#475569}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .content,.dashboard-container,.card,.page-header,.table-wrap,.data-table,
  .bithomes-capability-group,.bithomes-capability-table-wrap,
  .v331-shell,.v331-card,.field-group,details,fieldset
){background-color:#172033!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  h1,h2,h3,h4,h5,h6,p,span,label,legend,summary,td,th,li,dt,dd,strong,small,a
){color:#f8fafc}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(input,select,textarea,[contenteditable="true"]){
  background:#0f172a!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(input,textarea)::placeholder{color:#cbd5e1!important;opacity:1}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.tenant-context,.media-limit-note,.muted,.text-muted){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.form-success,.alert-success){background:#052e20!important;color:#bbf7d0!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.form-error,.alert-error,.error){background:#450a0a!important;color:#fecaca!important}
.bithomes-capability-quota,.bithomes-capability-quota input[name^="quota_"],
.bithomes-quota-final-cell,.bithomes-quota-final-input{display:block!important;visibility:visible!important;opacity:1!important}


/* BITHOMES_V33_7_1_6_AUTH_LAYOUT_AND_COLLAPSE */
html[data-bithomes-auth-no-voice="1"] :where(
  [data-v337-recognition-singleton],[data-bithomes-page-voice-notice],
  [data-bithomes-voice-notice],.bithomes-local-voice-notice,
  .bithomes-voice-notice,.bithomes-voice-notice-v2697,
  .bithomes-voice-button,.bithomes-voice-field
){display:none!important}
.bithomes-standard-admin-body-v33716{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.bithomes-standard-admin-body-v33716.integration-events-page-shell{
  padding:0!important;
}
[data-v337-global-expansion] .bh-v337-record-collapse{
  margin:.5rem 0 .75rem!important;
}
[data-v337-global-expansion] .bh-v337-records-collapsed>table tbody{
  display:none!important;
}
[data-v337-global-expansion] .bh-v337-records-collapsed>table thead{
  display:table-header-group!important;
}

/* R1.25.8: consistent contrast on admin tables and interactive controls. */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(table,thead,tbody,tr,th,td){background-color:#172033!important;color:#f8fafc!important;border-color:#475569!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(button,.btn,[role="button"]){color:#f8fafc;border-color:#64748b}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.sidebar,.sidebar-nav,.sidebar-nav a){background-color:#111c2e;color:#f8fafc}

/* R1.25.9: pair dark foregrounds with dark surfaces across the admin shell. */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .platform-brand-strip,.bithomes-footer,.stat-card,.dashboard-container .stats-grid>*,
  .booking-card,.booking-card-body,.schedule-section,.new-customer-panel,
  .calendar-day-event,.calendar-list-event,.calendar-list-view>div,
  .calendar-year button,.bithomes-calendar-card,.bithomes-calendar-logo-card,
  .bithomes-capability-row,.bithomes-capability-row-v20,.bithomes-search-result,
  .bithomes-file-drop,[data-new-customer-panel]
){background:#172033!important;color:#f8fafc!important;border-color:#475569!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .platform-brand-strip,.bithomes-footer,.stat-card,.dashboard-container .stats-grid>*
) :where(h1,h2,h3,h4,p,span,small,strong,div){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bithomes-footer a,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .platform-brand-right a{color:#93c5fd!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .platform-logo-link{background:#fff!important;padding:.2rem!important;border-radius:.35rem}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(pre,.booking-card-image){background:#0f172a!important;color:#e2e8f0!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.calendar-grid,.calendar-day,.calendar-weekdays>div){background:#172033!important;color:#f8fafc!important;border-color:#475569!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bithomes-calendar-logo-card :where(.calendar-toolbar,#bithomes-calendar,.calendar-grid,.calendar-day,.calendar-weekdays>div){background-color:#172033!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.calendar-day>span,.calendar-year span,.calendar-day-event p,.calendar-list-view p,#calendar-heading,.calendar-toolbar strong){color:#e2e8f0!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .calendar-event:not([class*="status-"]){background:#243852!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.calendar-toolbar button,.calendar-toolbar .calendar-print-link){background:#2563eb!important;color:#fff!important;border-color:#60a5fa!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.calendar-year button,.calendar-day-event,.calendar-list-event,.calendar-list-view>div){background:#172033!important;color:#f8fafc!important;border-color:#475569!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .calendar-day:hover{background:#20334d!important}
@media print{html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(.bithomes-calendar-card,.calendar-grid,.calendar-day,.calendar-weekdays>div,.stat-card){background:#fff!important;color:#0f172a!important}}

/* The sidebar's flex rule otherwise overrides the browser's hidden attribute. */
.sidebar-nav a[hidden],.sidebar-nav li[hidden]{display:none!important}

/* R1.25.10: the dashboard renders v33 cards and storage panels, not stat-card. */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .v33-card,.v33-stat,.v33-list,.v33-rich,.v33-note,
  .bh-storage356-card,.bh-storage356-result,.bh-storage356-meter,.navbar
){background-color:#172033!important;color:#f8fafc!important;border-color:#475569!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .v33-card,.v33-stat,.v33-list,.v33-rich,.v33-note,
  .bh-storage356,.bh-storage356-card,.bh-storage356-result,.navbar
) :where(h1,h2,h3,p,span,b,strong,small,div,a){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .v33-muted,.bh-storage356-safety,.bh-storage356-card small
){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .v33-danger{
  background:#450a0a!important;color:#fecaca!important;border-color:#b91c1c!important
}

/* R1.25.11: page-owned light form surfaces need paired dark colors. */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bit-dropzone,.bithomes-file-drop,.v333-multi,.v333-radio-list,.v331-list,
  .fs31-card,.fs31-selectbox,.fs31-metric,.bg304-card,.bg304-address,
  .bg304-list,.bg305-list,.ticket-card
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bit-dropzone:hover,.bit-dropzone.dragging,.bithomes-file-drop.is-dragging,
  .v333-multi-option:hover,.bh-v331-bit-call-policy .bh-v33-radio-list>label:hover,
  .bh-v331-bit-call-policy .bh-v33-checkbox-list>label:hover,
  .bh-v33-agent-review .bh-v33-radio-list>label:hover,
  .bh-v33-agent-review .bh-v33-checkbox-list>label:hover
){background:#20334d!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bit-dropzone,.bithomes-file-drop,.fs31-selectbox,.bg304-list,.bg305-list,
  .v333-multi,.v333-radio-list,.v331-list
) :where(label,span,legend,small,strong){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bit-dropzone-details,.bithomes-file-drop small,.fs31 small,.fs31-empty,
  .bg304-muted,.ticket-header p
){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bh-v331-bit-call-policy fieldset,.bh-v331-bit-call-policy .bh-v33-radio-list,
  .bh-v331-bit-call-policy .bh-v33-checkbox-list,
  .bh-v33-agent-review .bh-v33-choice-panel,
  .bh-v33-agent-review .bh-v33-radio-list,
  .bh-v33-agent-review .bh-v33-checkbox-list
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bh-v331-bit-call-policy fieldset legend,.bh-v331-bit-call-policy .bh-v33-radio-list>label,
  .bh-v331-bit-call-policy .bh-v33-checkbox-list>label,
  .bh-v33-agent-review .bh-v33-choice-panel legend,
  .bh-v33-agent-review .bh-v33-radio-list>label,
  .bh-v33-agent-review .bh-v33-checkbox-list>label
){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .bh-v331-bit-call-policy input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
  .bh-v331-bit-call-policy select,.bh-v331-bit-call-policy textarea
){background:#0f172a!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .fs31-badge:not(.urgent):not(.high),.ticket-summary span,.bg304-voice
){background:#243852!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(input[type="checkbox"],input[type="radio"]){accent-color:#60a5fa}

/* R1.25.12: pair page-owned light panels with the admin dark foreground.
   Limit these rules to the signed-in admin shell and the actual affected pages;
   public websites and user-authored previews retain their own palette. */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .ops281 .ops281-card,.ops281 .ops281-metric,.ops281 .ops281-search-panel,
  .ops281 .ops281-cost,.ops281 .ops281-event,.ops281 .ops281-summary>div,
  .ops281 .ops282-camera,.ops281 .ops282-other-drivers,
  .vfc282 .vfc282-card,.vfc282 .vfc282-summary>div
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .ops281 .ops281-option:hover,.ops281 .ops281-option:focus-within
){background:#20334d!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .ops281 .ops281-note,.ops281 .ops282-meta,.vfc282 .vfc282-note
){color:#cbd5e1!important}

html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-mail15{
  --mail-border:#475569;--mail-ink:#f8fafc;--mail-muted:#cbd5e1;
  --mail-soft:#172033;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-mail15 :where(
  .bh-mail15-nav,.bh-mail15-center,.bh-mail15-reader,.bh-mail15-card,
  .bh-mail15-toolbar,.bh-mail15-editor,.bh-mail15-drop,.bh-mail15-batch-tools,
  .bh-mail15-manual,.bh-mail20-inherited-attachments,.bh-mail23-filters,
  .bh-mail23-security,.bh-mail23-conversation>details,
  .bh-mail15-message-list article.read,.bh-mail15-message-list article.unread
){background:#172033!important;color:#f8fafc!important;border-color:#475569!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-mail15 :where(
  .bh-mail15-nav>a:hover,.bh-mail15-nav>a.active,
  .bh-mail15-nav .bh-mail23-column-scroll>a:hover,
  .bh-mail15-nav .bh-mail23-column-scroll>a.active,
  .bh-mail15-message-list article.is-current,.bh-mail15-message-list article:hover,
  .bh-mail15-drop.is-dragging
){background:#20334d!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-mail15 :where(
  .bh-mail15-nav-title,.bh-mail15-nav small,.bh-mail15-head p,
  .bh-mail15-message-list small,.bh-mail15-message-list time,
  .bh-mail15-muted,.bh-mail23-reader-meta dt,.bh-mail23-security dt,
  .bh-mail23-security summary,.bh-mail20-quoted
){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-mail15 :where(
  .bh-mail15-voice,.bh-mail15-security,.bh-mail17-file-chip
){background:#243852!important;color:#f8fafc!important;border-color:#64748b!important}

html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhcd34-admin :where(
  .bhcd34-panel,.bhcd35-dropzone,.bhcd35-active-target,
  .bhcd35-media-tile,.bhcd35-selected-media figure,
  .bhcd35-button-builder,.bhcd35-band-items,.bhcd35-button-row,
  .bhcd35-band-item-row,.bhcd354-grid-options,.bhcd354-grid-option,
  .bhcd35-enable-owner,.bhcd35-rich-toolbar
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhcd34-admin :where(
  .bhcd35-dropzone.is-dragging,.bhcd35-media-tile:has(input:checked)
){background:#20334d!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhcd34-admin :where(
  .bhcd35-help,.bhcd34-definition dt,.bhcd35-media-type
){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhcd34-admin .bhcd35-media-type{
  background:#243852!important
}

html[data-v337-theme="dark"] body:has(.sidebar-nav) .content-shell :where(
  .drop-zone,.article-direct-upload,.rich-editor,.bh-page-publication-v352
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .content-shell .drop-zone.dragover{
  background:#20334d!important;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .website-shell :where(
  .drop-zone,.website-domain-workspace,.bh-logical-colour,.logo-selection .asset-list
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .website-shell .page-format-card{
  background:linear-gradient(#172033,#172033) padding-box,var(--bh-page-card-border) border-box!important;
  color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .website-shell :where(
  .drop-zone.drag,.bh-rich35-toolbar
){background:#20334d!important;color:#f8fafc!important}

/* R1.25.13: pair the page-owned light surfaces in the observed admin pages
   with readable foregrounds. Keep all public website themes untouched. */
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .mv304-launch,.m30 .m30-card,.m30 .m30-details,.m30 .m30-metric,
  .m30 .m30-select-list,.m30 .m301-panel,.m30 .m301-customer-address,
  .vfc290 .vfc290-card,.vfc290 .vfc290-summary>div,
  .vfc290 .vfc290-vehicles,.vfc290 .vfc302-list,
  .acc290 .acc290-card,.acc290 .acc290-table,
  .v331-stats .v331-stat,
  .commercial-document-form .document-item-row,
  .commercial-document-form .commercial-totals,
  .website-shell .bhcp5523-collapse-bar,
  .website-shell .bhnav552-choice-list,
  .content-shell>section.card,.content-shell .bh35767-check-list
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .mv304-launch p,.m30 .m30-metric span,.m30 .m301-subtle,
  .vfc290 .vfc290-note,.vfc290 .vfc302-row small,
  .acc290 .acc290-note,.website-shell .bhnav552-page-picker small
){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .m30 .m30-note,.commercial-document-form .media-limit-note
){background:#172e52!important;color:#dbeafe!important;border-color:#60a5fa!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .m30 .m30-note span,.commercial-document-form .media-limit-note strong
){color:#dbeafe!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .m30 .m30-note .m30-req{
  color:#fca5a5!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .p8-shell .p8-warning,.acc290 .acc290-warning,.vfc290 .vfc290-warning
){background:#422006!important;color:#fef3c7!important;border-color:#f59e0b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .website-shell .bhnav552-choice-list>label:hover{
  background:#20334d!important;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :where(
  .website-shell .bhcp5523-collapse-title,
  .website-shell .bhnav552-choice-list>label,
  .website-shell .bhnav552-choice-list>label span,
  .content-shell .bh35767-check-list>label,
  .v331-stats .v331-stat span,.v331-stats .v331-stat strong,
  .commercial-document-form .document-item-row output
){color:#f8fafc!important}

/* R1.25.14: page-owned surfaces observed in the paired dark/light admin captures.
   Scope all overrides to the authenticated admin dark theme; do not change print
   or the public website theme. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .content-shell .bh35766-website-control,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container:has(form[action^="/admin/connectors/"]) > .card,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v31-page .bh-v31-resizable-table,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v31-page .bh-search-list{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container:has(form[action^="/admin/connectors/"]) .media-limit-note,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .v331-shell .v331-note,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 .r91-info{
  background:#172e52!important;color:#dbeafe!important;border-color:#60a5fa!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .v331-shell .v331-note :is(strong,span,small,a){color:#dbeafe!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) #product-website-publication-v33-1 .p8-warning,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .v331-shell .v332-warning{
  background:#422006!important;color:#fef3c7!important;border-color:#f59e0b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .v331-shell .v332-warning :is(strong,span){color:#fef3c7!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v31-page .bh-search-list > :is(label,p),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v31-page .bh-search-list > label :is(span,strong,small){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v31-page .bh-search-list > label:is(:hover,:focus-within){
  background:#20334d!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91{
  --ink:#f8fafc;--muted:#cbd5e1;--line:#64748b;--soft:#1e293b;color:#f8fafc
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(
  .r91-card,.r91-section,.r91-details,.r91-site-list,.r91-assignees,
  .r91-site-row,.r91-assignee,.r91-modifier,.r91-rich,.r91-tool-color
){background:#172033!important;color:#f8fafc!important;border-color:#64748b!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(.r91-details>summary,.r91-toolbar){
  background:#243852!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(
  .r91-stat,.r91-card h2,.r91-section h2,.r91-section h3,.r91 label,
  .r91-site-row span,.r91-site-row strong,.r91-assignee span
){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(.r91-card p,.r91-help,.r91-mini){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 .r91-badge{background:#334155!important;color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(.r91-badge--received,.r91-badge--accepted,.r91-badge--preparing,.r91-badge--pending){background:#78350f!important;color:#fef3c7!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(.r91-badge--ready,.r91-badge--paid){background:#1e3a8a!important;color:#dbeafe!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(.r91-badge--completed,.r91-badge--served){background:#14532d!important;color:#dcfce7!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .r91 :is(.r91-badge--cancelled,.r91-badge--failed,.r91-badge--expired){background:#7f1d1d!important;color:#fee2e2!important}
}

/* R1.25.15: these page-owned light panels were still white in the paired
   post R1.25.14 captures. Keep the foreground and its surface together. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container :is(
  .ops-card,.ops-workflow,.ops-section,.launch-hero,.launch-card,.launch-section,
  .bh2632-hub-card
),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v331-provider-boundary .bh-v331-provider-feature-grid article{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container :is(
  .ops-value,.ops-workflow h2,.ops-section h2,.launch-hero h2,
  .launch-title h2,.launch-section h2,.bh2632-hub-heading h2,
  .bh2632-hub-card h3
),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v331-provider-boundary .bh-v331-provider-feature-grid article :is(
  h2,h3,h4,strong,label,span
){color:#f8fafc!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container :is(
  .ops-card strong,.ops-workflow p,.ops-empty,.launch-card p,.launch-list,
  .bh2632-hub-heading p,.bh2632-hub-card p
){color:#cbd5e1!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container .launch-note{
  background:#20334d!important;color:#e2e8f0!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container .bh2632-hub-tags span,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container .launch-status{
  background:#334155!important;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container .launch-status--ready{
  background:#14532d!important;color:#dcfce7!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container .launch-status--blocked{
  background:#7f1d1d!important;color:#fee2e2!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .dashboard-container .bh2632-hub-icon{
  background:#243852!important;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) :is(.bh-v31-page,.bh-v337-shell) .bh-v31-resizable-table,
html[data-v337-theme="dark"] body:has(.sidebar-nav) :is(.bh-v31-page,.bh-v337-shell) .bh-v31-table-head{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
}

/* R1.25.16: the active Connector Vault is the v33.6 self template, whose
   cards use a light-only custom property. BiT Call and the unsaved-form dialog
   also own white panels independently of the shared .card rule. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v336-shell{
  --bh-v336-surface:#172033;--bh-v336-soft:#1e293b;
  --bh-v336-border:#64748b;--bh-v336-muted:#cbd5e1;
  color:#f8fafc
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v336-shell .bh-v336-card,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bch .bchcard,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bithomes-unsaved-guard__card{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v336-shell .bh-v336-note,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bch .bchnote,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bithomes-unsaved-guard__card p{
  color:#cbd5e1!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v336-shell .bh-v336-card :is(h2,h3,label),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bch .bchcard :is(h1,h2,h3,label),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bithomes-unsaved-guard__card h2{
  color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .ops281 .ops281-voice,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .fs31 .fs31-voice{
  background:#172e52!important;color:#dbeafe!important;border-color:#60a5fa!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v33-agent-review input::placeholder{
  color:#475569!important;opacity:1
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) button.bithomes-voice-button{
  box-sizing:border-box!important;width:2.45rem!important;min-width:2.45rem!important;
  max-width:2.45rem!important;min-height:2.35rem!important;padding:.2rem!important;
  justify-self:start!important;align-self:center!important
}
}

/* R1.25.17: keep foreground and background paired on the remaining
   server-rendered admin pages in the paired 2026-10-01 captures. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcall-page .bitcall-card,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-card,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page .bh-smtp-card,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page .bh-smtp-state-card,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp14 .choices{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcall-page :is(.bitcall-note,.bitcall-meta),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-note,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page :is(.bh-smtp-small,.bh-smtp-head p){
  color:#cbd5e1!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-status{
  background:#1e293b!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-result.pass,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcall-page .bitcall-result.ok{
  color:#86efac!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-result.warn{
  color:#fcd34d!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-result.fail,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcall-page .bitcall-result.error{
  color:#fca5a5!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bch .bchcard .cap,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bit-call-compatibility .bit-call-privacy,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page .bh-smtp-note:not(.bh-smtp-note--warn){
  background:#172e52!important;color:#dbeafe!important;border-color:#60a5fa!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page .bh-smtp-note--warn{
  background:#422006!important;color:#fef3c7!important;border-color:#f59e0b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page .bh-smtp-note--warn :is(strong,span),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-smtp-page .bh-smtp-note:not(.bh-smtp-note--warn) :is(strong,span){
  color:inherit!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bch .bchalert.ok{
  background:#052e20!important;color:#bbf7d0!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bch .bchalert.error{
  background:#450a0a!important;color:#fecaca!important
}
/* These two conditional selectors are controls. The template's label{display:grid}
   used to defeat the browser's native [hidden] display:none declaration. */
.bhbg [data-room][hidden],.bhbg [data-participant][hidden]{display:none!important}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhbg :is(select,input:not([type="checkbox"]):not([type="radio"])),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp14 :is(select,input:not([type="checkbox"]):not([type="radio"])){
  background:#0f172a!important;color:#f8fafc!important;border-color:#64748b!important;color-scheme:dark
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v33-agent-review input:is([type="date"],[type="time"],[type="datetime-local"]){
  background:#0f172a!important;color:#f8fafc!important;border-color:#64748b!important;color-scheme:dark!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-v33-agent-review input:is([type="date"],[type="time"],[type="datetime-local"])::-webkit-calendar-picker-indicator{
  filter:none!important;opacity:1!important
}
}

/* R1.25.18: the active BiT Call background forms use bh-bg13 and bhp16.
   Keep their custom dropdowns and target lists on the same dark palette. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-bg13 .ms>summary,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-bg13 .menu,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp16 .targets,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp13 .targets{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-bg13 .ms.inactive>summary{
  background:#1e293b!important;color:#cbd5e1!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-bg13 .choices,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp16 .target,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp13 .target{
  border-color:#475569!important;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-bg13 .menu .choice:is(:hover,:focus-within),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp16 .target:is(:hover,:focus-within),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp13 .target:is(:hover,:focus-within){
  background:#20334d!important;color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bh-bg13 .menu .muted{
  color:#cbd5e1!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhp16 .edit-note{
  background:#172e52!important;color:#dbeafe!important;border-color:#60a5fa!important
}
}

/* R1.25.19: the item experience page owns white bhix-card surfaces in its
   inline stylesheet. Keep dark surface and its text together. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhix .bhix-card{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhix .bhix-card :is(h2,h3,label,span,p,strong,small),
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhix .bhix-check{
  color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhix :is(.bhix-muted,.bhix-assignee-search::placeholder){
  color:#cbd5e1!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bhix :is(.bhix-editor,.bhix-assignee,.v35764-rich-block){
  background:#0f172a!important;color:#f8fafc!important;border-color:#64748b!important
}
}

/* R1.25.20: paired dark surfaces for the observed Products status, Media
   Library edit form, and product gallery upload area. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .p8-shell .p8-chip{
  background:#1e3a8a!important;color:#f8fafc!important;border:1px solid #60a5fa!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .p8-shell .p8-file-zone{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .p8-shell .p8-file-zone.is-dragging{
  background:#1e3a8a!important;color:#f8fafc!important;border-color:#60a5fa!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .p8-shell .p8-help{
  color:#cbd5e1!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .media-edit-details .compact-form{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .media-edit-details .compact-form label,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .media-edit-details .compact-form :is(span,small){
  color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .g8-shell .g8-file-zone{
  background:#172033!important;color:#f8fafc!important;border-color:#64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .g8-shell .g8-file-zone.is-dragging{
  background:#1e3a8a!important;color:#f8fafc!important;border-color:#60a5fa!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .g8-shell .g8-help,
html[data-v337-theme="dark"] body:has(.sidebar-nav) .media-status-description{
  color:#cbd5e1!important
}
}

/* R1.25.21: pair the shared form progress overlay surface and text. */
@media screen{
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcore-form-progress-card{
  background:#172033!important;color:#f8fafc!important;border:1px solid #64748b!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcore-form-progress-card p{
  color:#f8fafc!important
}
html[data-v337-theme="dark"] body:has(.sidebar-nav) .bitcore-form-progress-track{
  background:#1e293b!important
}
}
