/* HB5 compact workspace — scoped to open billing; login/portal/print unchanged. */
@media screen {
 body.hb-compact-workspace82{height:var(--hb-visible-height82,100dvh)!important;min-height:0!important;overflow:hidden!important}
 body.hb-compact-workspace82>header{display:none!important}
 body.hb-compact-workspace82 #workspace:not([hidden]){overflow:visible!important;position:relative;isolation:isolate}
 body.hb-compact-workspace82 #workspace .workspacebar{position:relative;z-index:20;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:5px 10px;background:#14213d;color:#fff;min-height:44px}
 .hb-compact-workspace82 .workspacebar .brand{display:flex;align-items:center;flex:0 0 auto;font-size:16px;white-space:nowrap;line-height:1.1}
 .hb-compact-workspace82 .workspacebar .brand span{font-size:10px;margin-left:5px}
 .hb-compact-workspace82 .workspacebar .hb-brand-mark73{width:27px;height:27px;margin-right:6px}
 .hb-compact-workspace82 #workspaceLabel{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
 .hb-compact-license82{flex:none;font-size:11px;color:#a7f3d0;white-space:nowrap}
 .hb-compact-license82[data-state=warn]{color:#fde68a}
 .hb-compact-workspace82 #workspace .workspacebar>div:last-child{display:flex;gap:5px;flex:none;align-items:center}
 .hb-compact-workspace82 #workspace .workspacebar button{min-height:34px;padding:5px 9px;font-size:11px;border-radius:7px;white-space:nowrap;max-width:none}
 .hb-compact-workspace82 #workspace #syncBar{display:block;flex:0 0 auto;padding:0;background:none;position:static;color:#14213d}
 .hb-compact-workspace82 #workspace #cloudMenu54{position:static;max-height:none;overflow:visible;max-width:none}
 .hb-compact-workspace82 #workspace #cloudMenu54 summary{font-size:11px;min-height:34px;padding:8px;color:#e0efff;background:#243b60;border:1px solid #5476a8;white-space:nowrap;margin:0}
 .hb-compact-workspace82 #cloudMenu54 summary[data-state=warn]{color:#ffedb0}
 .hb-compact-workspace82 #cloudMenu54 .hb-compact-panel82{position:absolute;right:8px;top:100%;width:min(420px,calc(100% - 16px));max-height:min(65vh,420px);overflow:auto;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#14213d;box-shadow:0 12px 26px #14213d33;z-index:30}
 .hb-compact-workspace82 #workspace #cloudMenu54 #logout{margin-top:8px;width:100%;background:#e8efff;color:#14213d}
 .hb-compact-workspace82 #cloudMenu54:not([open]) .hb-compact-panel82{display:none}
 .hb-compact-workspace82 .hb-compact-details82{display:grid;gap:4px;margin-bottom:8px}
 .hb-compact-workspace82 #workspace :is(#sessionStatus,#syncStatus,#offlineReady){display:block;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4;padding:5px 7px;background:#edf3ff;color:#243956;border-radius:5px}
 .hb-compact-workspace82 #workspace #hbCompactWarning82:not([hidden]){font-size:11px;line-height:1.3;background:#fff3d6;color:#69430c;padding:4px 9px;overflow:auto;max-height:52px;overflow-wrap:anywhere}
 .hb-compact-workspace82 #workspace #billingHost{flex:1 1 0;min-height:0!important;overflow:hidden}
 .hb-compact-workspace82 #workspace #billingHost iframe{height:100%;min-height:0!important}
 @media(max-width:700px){
  .hb-compact-workspace82 #workspace .workspacebar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:3px 6px;padding:4px 7px;min-height:0}
  .hb-compact-workspace82 .workspacebar .brand{grid-column:1;grid-row:1;font-size:14px;min-width:0}
  .hb-compact-workspace82 .workspacebar .brand .hb-brand-mark73{width:22px;height:22px;margin-right:4px}
  .hb-compact-workspace82 #workspaceLabel{grid-column:1/-1;grid-row:2;font-size:11px;line-height:1.3}
  .hb-compact-license82{display:none} /* Exact license state remains in workspaceLabel and details. */
  .hb-compact-workspace82 #workspace #syncBar{grid-column:2;grid-row:1}
  .hb-compact-workspace82 #workspace .workspacebar>div:last-child{grid-column:3;grid-row:1;gap:3px}
  .hb-compact-workspace82 #workspace .workspacebar button{min-height:32px;padding:5px 6px;font-size:10px}
  .hb-compact-workspace82 #workspace #cloudMenu54 summary{font-size:10px;min-height:32px;padding:7px 5px;max-width:110px;white-space:normal;line-height:1.15}
  .hb-compact-workspace82 #workspace #closeBilling{white-space:normal;max-width:78px}
  .hb-compact-workspace82 #workspace #cloudMenu54 #logout{font-size:12px;white-space:normal;max-width:none}
 }
 @media(max-width:360px){.hb-compact-workspace82 .workspacebar .brand .hb-brand-mark73{display:none}.hb-compact-workspace82 .workspacebar .brand{font-size:12px}.hb-compact-workspace82 #workspace .workspacebar{gap:3px}}
 @media(max-width:700px) and (max-height:400px){.hb-compact-workspace82 #workspace .workspacebar{padding:2px 6px}.hb-compact-workspace82 #workspaceLabel{font-size:10px}.hb-compact-workspace82 #workspace #hbCompactWarning82:not([hidden]){max-height:36px}}
}

/* HB5 full-space r3: compact status and native duplicate-brand removal. */
@media screen {
 body.hb-compact-workspace82 #workspace .workspacebar{min-height:36px;padding:3px 8px;gap:6px}
 .hb-compact-workspace82 #workspace .workspacebar button,.hb-compact-workspace82 #workspace #cloudMenu54 summary{min-height:32px;padding:5px 8px;font-size:11px;line-height:1.25}
 .hb-compact-workspace82 #workspace #cloudMenu54 .hb-compact-panel82{max-height:min(75dvh,440px)}
 .hb-compact-workspace82 #workspace #workspaceBackupStatus:not(:empty){padding:5px 7px;font-size:11px;border-radius:5px;overflow-wrap:anywhere}
 .hb-full-business82{font-size:12px;overflow-wrap:anywhere}.hb-ui-revision82{font-size:10px;color:#64748b}
 .hb-compact-workspace82 #workspace #hbCompactWarning82:not([hidden]){max-height:44px}
 @media(max-width:700px){
  .hb-compact-workspace82 #workspace .workspacebar{display:flex;flex-wrap:nowrap;min-height:38px;padding:3px 5px;gap:4px}
  .hb-compact-workspace82 .workspacebar .brand{font-size:12px;flex:none}.hb-compact-workspace82 .workspacebar .brand .hb-brand-mark73{display:none}
  .hb-native-shell82.hb-compact-workspace82 .workspacebar .brand{display:none!important}
  .hb-compact-workspace82 #workspace #workspaceLabel{flex:1 1 0;min-width:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hb-compact-workspace82 #workspace #cloudMenu54 summary{max-width:94px;white-space:normal;font-size:10px;padding:4px 5px}
  .hb-compact-workspace82 #workspace #closeBilling{max-width:74px;font-size:10px;padding:4px 6px;white-space:normal}
  .hb-compact-workspace82 #workspace #cloudMenu54 .hb-compact-panel82{max-height:min(75dvh,400px)}
 }
 @media(max-width:360px){.hb-compact-workspace82:not(.hb-native-shell82) .workspacebar .brand span{display:none}.hb-compact-workspace82 #workspace #cloudMenu54 summary{max-width:80px}}
}

@media screen and (max-width:700px){.hb-compact-workspace82 #workspace #cloudMenu54 summary{white-space:nowrap;max-width:none;font-size:10px;padding:5px 6px}.hb-compact-workspace82 #workspace #syncBar{padding:0!important}}

/* HB6 R6: original billing quick actions in the dark outer header, not the sidebar. */
@media screen {
 #hbHeaderQuick86[hidden]{display:none!important}
 #hbHeaderQuick86{display:flex;flex:0 0 auto;align-items:center;gap:4px;margin-left:auto}
 .hb-compact-workspace82 #workspace #hbHeaderQuick86 button{display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:3px;border:1px solid #7795bc;border-radius:7px;background:#eaf2ff;color:#174ca3;box-shadow:none}
 #hbHeaderQuick86 svg{width:17px;height:17px;pointer-events:none}
 #hbHeaderQuick86 button:hover,#hbHeaderQuick86 button:focus-visible{background:#dbeafe;outline:2px solid #93c5fd;outline-offset:1px}
 @media(max-width:960px){#hbHeaderQuick86{display:none!important}}
}
@media print{#hbHeaderQuick86{display:none!important}}
