/* Adapter mechanics only. Visual values live in the pinned B CSS. */
#b-controller-port { display:none!important; }
[hidden] { display:none!important; }
#ui-toast.visible { opacity:1; transform:translateY(0); }
#auth-dialog #auth-eyebrow { display:none; }
#auth-dialog .verification-allowance { display:none; }
#auth-dialog .auth-submit { width:100%; }
#auth-dialog #code { text-align:center; }
#b-live-status:empty { display:none; }
.b-controller-action { display:none; }
.b-nowrap { white-space:nowrap; }
#payment-message:empty { display:none; }
.page.legal-page { padding-top:24px; }
/* User-approved B allowance refinement; values and timezone remain production-owned. */
#query-balance .b-allowance { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 18px; line-height:1.65; }
#query-balance .b-allowance-primary { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 8px; color:var(--ink-2); font-size:13px; }
#query-balance .b-allowance-item { display:inline-flex; align-items:baseline; gap:8px; white-space:nowrap; }
#query-balance .b-allowance-item strong { color:var(--ink); font-weight:650; }
#query-balance .b-allowance-separator { color:var(--muted); }
#query-balance .b-allowance-reset { color:var(--muted); font-size:12px; }
#query-balance .b-ein-allowance { flex-direction:column; align-items:flex-start; gap:4px; }
#query-balance .b-allowance-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; }
@media(max-width:767px) {
 #query-balance .b-allowance { flex-direction:column; align-items:flex-start; gap:4px; }
 #query-balance .b-allowance-reset { max-width:100%; }
}
#checkout-dialog .checkbox-line input { width:16px; height:16px; min-height:0; padding:0; flex:0 0 16px; }
.b-initial-panel { padding:24px; }
.b-initial-panel h1 { margin-bottom:12px; }
/* User-approved history heading alignment; retain B typography and table styles. */
.b-history-header { display:flex; align-items:baseline; justify-content:space-between; gap:12px 24px; width:100%; }
.b-history-header h1 { flex:0 0 auto; margin:0; }
.b-history-header p { flex:1 1 auto; margin:0; text-align:right; }
@media(max-width:767px) {
 .b-history-header { gap:12px; }
 .b-history-header p { font-size:12px; }
}
/* User-approved phone header: one menu row; theme control remains in More. */
@media(max-width:760px) {
 :root { --top:54px; }
 .page.legal-page { padding-top:20px; }
 .topbar { grid-template-columns:minmax(0,1fr) auto auto 44px; grid-template-rows:54px; height:54px; min-height:54px; column-gap:8px; padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); }
 .topbar>.top-logo { grid-row:1; grid-column:1; }
 .topbar>.top-logo img { width:100%; max-width:125px; height:auto; }
 .topbar>.top-links { grid-row:1; grid-column:2; height:54px; gap:10px; }
 .topbar>.top-links a { font-size:11px; }
 .top-actions>.theme-toggle { display:none; }
 .top-actions>.lang-switch { grid-row:1; grid-column:3; }
 .top-actions>#user-menu { grid-row:1; grid-column:4; }
 .topbar.has-path { grid-template-rows:54px 38px; height:92px; min-height:92px; }
 .topbar.has-path>.breadcrumbs { grid-row:2; }
 .topbar.has-path>.breadcrumbs { padding-right:40px; }
 .top-actions>.context-toggle { grid-row:2; grid-column:4; justify-self:end; }
 .keyboard-open .topbar,.keyboard-open .topbar.has-path { grid-template-rows:48px; height:48px; min-height:48px; }
 .keyboard-open .topbar>.top-links { display:flex; height:48px; }
 .keyboard-open .topbar .lang-switch { display:flex; }
}

/* Identity resolves inside a stable public frame, without a temporary page. */
.account-hero h2{font-size:30px;line-height:1.3;margin:0;overflow-wrap:anywhere}
@media(max-width:760px){.account-hero h2{font-size:24px}}
#user-menu{min-width:44px}
#query-balance{min-height:44px}

/* Name-check empty result: use its available text width, retain natural wrapping. */
.b-name-empty .empty-state p{max-width:none;width:100%;white-space:normal}

/* Company/trademark result heading: one row when space permits, natural wrap. */
.result-head.b-search-results-head{align-items:center;flex-wrap:wrap;column-gap:16px;row-gap:6px}
.b-search-results-head h2{margin:0;min-width:0;overflow-wrap:anywhere}
.b-search-results-head .b-search-result-count{margin:0 0 0 auto;text-align:right;white-space:normal;overflow-wrap:anywhere;flex-shrink:0}

/* Independent read-only history: matching column alignment and compact filters. */
.history-page .history-table th:last-child,.history-page .history-table td:last-child{text-align:right}
@media(max-width:760px){
 .history-page .b-history-filters{align-items:center;flex-wrap:nowrap;gap:12px;margin-bottom:8px}
 .history-page .b-history-filter-list{flex:1 1 0%;min-width:0;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:18px;padding-bottom:4px}
 .history-page .b-history-filter-list .filter{flex:0 0 auto;white-space:nowrap}
}

/* Account/record loading uses the real public modules, never a temporary page. */
.account-identity{min-height:48px}
.account-identity>.account-guest{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:0}
.account-identity>.account-guest p{margin:0}
.b-neutral-avatar{background:var(--rule);color:transparent}
.b-data-pending{color:var(--muted);font-size:13px;line-height:1.5}
.history-table td.b-history-message{text-align:left;padding:24px 28px}
.b-history-message p{margin:0 0 10px}
.b-history-filter-list .filter:disabled{opacity:1;cursor:default}
@media(min-width:761px){
 .history-page .history-table{table-layout:fixed}
 .history-page .history-table th:nth-child(1){width:20%}
 .history-page .history-table th:nth-child(2){width:20%}
 .history-page .history-table th:nth-child(4){width:16%}
 .history-page .history-table td{overflow-wrap:anywhere}
}
@media(max-width:760px){.history-table td.b-history-message{grid-column:1/-1;grid-row:1}}
/* Keep the map label control in its existing bottom flex bar, not over the map. */
.map-workbench .map-bottom #map-label-toggle{position:static;inset:auto;flex:0 0 auto;align-self:center}

[data-b-percent="0"]{width:0%}
[data-b-percent="1"]{width:1%}
[data-b-percent="2"]{width:2%}
[data-b-percent="3"]{width:3%}
[data-b-percent="4"]{width:4%}
[data-b-percent="5"]{width:5%}
[data-b-percent="6"]{width:6%}
[data-b-percent="7"]{width:7%}
[data-b-percent="8"]{width:8%}
[data-b-percent="9"]{width:9%}
[data-b-percent="10"]{width:10%}
[data-b-percent="11"]{width:11%}
[data-b-percent="12"]{width:12%}
[data-b-percent="13"]{width:13%}
[data-b-percent="14"]{width:14%}
[data-b-percent="15"]{width:15%}
[data-b-percent="16"]{width:16%}
[data-b-percent="17"]{width:17%}
[data-b-percent="18"]{width:18%}
[data-b-percent="19"]{width:19%}
[data-b-percent="20"]{width:20%}
[data-b-percent="21"]{width:21%}
[data-b-percent="22"]{width:22%}
[data-b-percent="23"]{width:23%}
[data-b-percent="24"]{width:24%}
[data-b-percent="25"]{width:25%}
[data-b-percent="26"]{width:26%}
[data-b-percent="27"]{width:27%}
[data-b-percent="28"]{width:28%}
[data-b-percent="29"]{width:29%}
[data-b-percent="30"]{width:30%}
[data-b-percent="31"]{width:31%}
[data-b-percent="32"]{width:32%}
[data-b-percent="33"]{width:33%}
[data-b-percent="34"]{width:34%}
[data-b-percent="35"]{width:35%}
[data-b-percent="36"]{width:36%}
[data-b-percent="37"]{width:37%}
[data-b-percent="38"]{width:38%}
[data-b-percent="39"]{width:39%}
[data-b-percent="40"]{width:40%}
[data-b-percent="41"]{width:41%}
[data-b-percent="42"]{width:42%}
[data-b-percent="43"]{width:43%}
[data-b-percent="44"]{width:44%}
[data-b-percent="45"]{width:45%}
[data-b-percent="46"]{width:46%}
[data-b-percent="47"]{width:47%}
[data-b-percent="48"]{width:48%}
[data-b-percent="49"]{width:49%}
[data-b-percent="50"]{width:50%}
[data-b-percent="51"]{width:51%}
[data-b-percent="52"]{width:52%}
[data-b-percent="53"]{width:53%}
[data-b-percent="54"]{width:54%}
[data-b-percent="55"]{width:55%}
[data-b-percent="56"]{width:56%}
[data-b-percent="57"]{width:57%}
[data-b-percent="58"]{width:58%}
[data-b-percent="59"]{width:59%}
[data-b-percent="60"]{width:60%}
[data-b-percent="61"]{width:61%}
[data-b-percent="62"]{width:62%}
[data-b-percent="63"]{width:63%}
[data-b-percent="64"]{width:64%}
[data-b-percent="65"]{width:65%}
[data-b-percent="66"]{width:66%}
[data-b-percent="67"]{width:67%}
[data-b-percent="68"]{width:68%}
[data-b-percent="69"]{width:69%}
[data-b-percent="70"]{width:70%}
[data-b-percent="71"]{width:71%}
[data-b-percent="72"]{width:72%}
[data-b-percent="73"]{width:73%}
[data-b-percent="74"]{width:74%}
[data-b-percent="75"]{width:75%}
[data-b-percent="76"]{width:76%}
[data-b-percent="77"]{width:77%}
[data-b-percent="78"]{width:78%}
[data-b-percent="79"]{width:79%}
[data-b-percent="80"]{width:80%}
[data-b-percent="81"]{width:81%}
[data-b-percent="82"]{width:82%}
[data-b-percent="83"]{width:83%}
[data-b-percent="84"]{width:84%}
[data-b-percent="85"]{width:85%}
[data-b-percent="86"]{width:86%}
[data-b-percent="87"]{width:87%}
[data-b-percent="88"]{width:88%}
[data-b-percent="89"]{width:89%}
[data-b-percent="90"]{width:90%}
[data-b-percent="91"]{width:91%}
[data-b-percent="92"]{width:92%}
[data-b-percent="93"]{width:93%}
[data-b-percent="94"]{width:94%}
[data-b-percent="95"]{width:95%}
[data-b-percent="96"]{width:96%}
[data-b-percent="97"]{width:97%}
[data-b-percent="98"]{width:98%}
[data-b-percent="99"]{width:99%}
[data-b-percent="100"]{width:100%}