/* 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;
}
