/* Approved four-agent Hub. These rules are confined to the signed-in portal. */
#portal-screen.cbn-hub-v4 {
  --hub-bg: #091a33; --hub-line: #30445f; --hub-card: #1b253a;
  --hub-muted: #a6bdd8; --hub-blue: #2040e0; --hub-orange: #e17d5f;
  display: grid; grid-template-columns: clamp(280px, 20.833vw, 400px) minmax(0, 1fr);
  align-items: start; min-height: 100dvh; background: linear-gradient(#091a33, #0d1e3c);
  color: #f5f7ff; font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}
#portal-screen.cbn-hub-v4.hidden { display: none !important; }
#portal-screen.cbn-hub-v4 *, #portal-screen.cbn-hub-v4 *::before, #portal-screen.cbn-hub-v4 *::after { box-sizing: border-box; }
#portal-screen.cbn-hub-v4 > .sidebar {
  width: auto; min-width: 0; padding: 24px; border-right: 1px solid #162b46;
  background: transparent !important; height: auto; min-height: 100dvh; position: static; overflow: visible; gap: 0;
}
#portal-screen.cbn-hub-v4 > .main { min-width: 0; padding: 24px 38px 46px; background: transparent !important; }
#portal-screen.cbn-hub-v4 .side-logo, #portal-screen.cbn-hub-v4 .member-card {
  background: var(--hub-card) !important; border: 1px solid var(--hub-line); border-radius: 32px;
  padding: 24px 20px; margin: 0 0 14px; box-shadow: none;
}
#portal-screen.cbn-hub-v4 .side-logo { display: grid; place-items: center; height: 138px; }
#portal-screen.cbn-hub-v4 .side-logo img { width: 176px; height: auto; max-height: 90px; }
#portal-screen.cbn-hub-v4 .member-card {
  min-height: 145px; display: grid; grid-template-columns: minmax(0, 1fr);
  align-content: center; column-gap: 14px; row-gap: 4px;
}
#portal-screen.cbn-hub-v4 .member-card:has(> .member-card-avatar:not([hidden])) { grid-template-columns: 58px minmax(0, 1fr); }
#portal-screen.cbn-hub-v4 .member-card > :is(small, strong, span) { grid-column: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
#portal-screen.cbn-hub-v4 .member-card:has(> .member-card-avatar:not([hidden])) > :is(small, strong, span) { grid-column: 2; }
#portal-screen.cbn-hub-v4 .member-card-avatar:not([hidden]) {
  position: static; inset: auto; transform: none; align-self: center;
  grid-column: 1; grid-row: 1 / 4; width: 58px; height: 58px;
  border: 1px solid var(--hub-line); border-radius: 16px; margin: 0;
}
#portal-screen.cbn-hub-v4 .member-card > small { grid-row: 1; color: var(--hub-muted); font-size: 14px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
#portal-screen.cbn-hub-v4 .member-card > strong { grid-row: 2; font-size: 19px; line-height: 1.3; color: #f5f7ff; }
#portal-screen.cbn-hub-v4 .member-card > span { grid-row: 3; color: var(--hub-orange); font-size: 14px; line-height: 1.5; }
#portal-screen.cbn-hub-v4 #cbn-compliance-nav {
  margin-top: auto;
  display: block;
  min-height: 68px;
  padding: 14px 18px;
  border-radius: 16px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}
#portal-screen.cbn-hub-v4 #cbn-compliance-nav span {
  display: block;
  margin-top: 5px;
  color: var(--hub-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
#portal-screen.cbn-hub-v4 #cbn-compliance-nav[hidden] { display: none !important; }
#portal-screen.cbn-hub-v4 #cbn-logout-button { margin-top: 12px; }
#portal-screen.cbn-hub-v4 .cbn-legacy-nav, #portal-screen.cbn-hub-v4 #cbn-sidebar-agents,
#portal-screen.cbn-hub-v4 #cbn-prospection-nav { display: none !important; }
#cbn-hub-nav { display: grid; gap: 14px; margin-top: 20px; }
#cbn-hub-nav button {
  display: grid !important; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 16px;
  width: 100%; min-height: 120px; padding: 9px 13px; text-align: left;
  border: 1px solid transparent; border-radius: 22px; background: var(--hub-card) !important;
  color: #f5f7ff !important; box-shadow: none; white-space: normal; font: inherit;
}
#cbn-hub-nav button[data-hub-action="home"] { display: block !important; min-height: 66px; padding: 12px 17px; }
#cbn-hub-nav button:hover, #cbn-hub-nav button.active { border-color: var(--hub-line); }
#cbn-hub-nav .cbn-hub-nav-picture { position: relative; display: block; box-sizing: border-box; width: 132px; aspect-ratio: 11 / 7; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 14px; background: var(--hub-card); }
#cbn-hub-nav .cbn-hub-nav-picture img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; max-height: none; border: 0; border-radius: 0 !important; object-fit: cover !important; object-position: center; }
/* Trim only the transparent gutter and embedded rim of the supplied sidebar PNG. */
#cbn-hub-nav [data-hub-action="customs"] .cbn-hub-nav-picture img { transform: translateY(1.45%) scale(1.065); }
#cbn-hub-nav button strong { display: block; font-size: 17px; line-height: 1.3; }
#cbn-hub-nav button small { display: block; font-size: 14px; line-height: 1.4; color: #a3adc0; margin-top: 8px; }
#portal-screen.cbn-hub-v4 button:disabled { opacity: .63; cursor: not-allowed; }
#portal-screen.cbn-hub-v4 .cbn-hub-toolbar { display: flex; gap: 20px; align-items: center; margin-bottom: 44px; }
#portal-screen.cbn-hub-v4 .cbn-hub-search { flex: 1; display: flex; align-items: center; gap: 16px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-card); min-height: 60px; padding: 0 20px; }
#portal-screen.cbn-hub-v4 .cbn-hub-search input { width: 100%; min-width: 0; background: transparent !important; border: none !important; margin: 0; padding: 14px 0; color: #f5f7ff; font-size: 17px; box-shadow: none; }
#portal-screen.cbn-hub-v4 .cbn-hub-search input::placeholder { color: var(--hub-muted); opacity: 1; }
#portal-screen.cbn-hub-v4 .cbn-hub-search input:focus { outline: none; }
#portal-screen.cbn-hub-v4 .cbn-hub-search:focus-within { outline: 2px solid #6c8cff; outline-offset: 2px; }
#portal-screen.cbn-hub-v4 .cbn-hub-chat, #portal-screen.cbn-hub-v4 .cbn-hub-bell, #portal-screen.cbn-hub-v4 .cbn-hub-profile {
  background: transparent; border: 1px solid transparent; padding: 12px; color: #f5f7ff; display: flex; gap: 9px; align-items: center; min-height: 52px; font-size: 16px; box-shadow: none;
}
#portal-screen.cbn-hub-v4 .cbn-hub-chat { background: #111d42; border-color: var(--hub-line); border-radius: 12px; padding: 16px 20px; font-weight: 700; }
#portal-screen.cbn-hub-v4 .cbn-hub-counter { min-width: 24px; height: 24px; padding: 0 5px; border-radius: 20px; background: var(--hub-orange); color: #091a33; display: inline-grid; place-items: center; font-weight: 700; font-size: 14px; }
#portal-screen.cbn-hub-v4 .cbn-hub-profile { text-align: left; padding-left: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-avatar { width: 54px; height: 54px; border-radius: 50%; background: #2d4568; border: 1px solid #879cbb; display: grid; place-items: center; overflow: hidden; font-size: 21px; }
#portal-screen.cbn-hub-v4 .cbn-hub-avatar img { width: 100%; height: 100%; }
#portal-screen.cbn-hub-v4 .cbn-hub-profile small { color: var(--hub-muted); display: block; margin-top: 5px; font-size: 14px; }
#portal-screen.cbn-hub-v4 .cbn-hub-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 28px; }
#portal-screen.cbn-hub-v4 .cbn-hub-heading h1 { font-size: clamp(30px, 2.65vw, 50px); line-height: 1.1; margin: 0 0 9px; letter-spacing: .01em; color: #f5f7ff; }
#portal-screen.cbn-hub-v4 .cbn-hub-heading h2 { font-size: clamp(21px, 1.6vw, 29px); margin: 0 0 7px; color: #f5f7ff; }
#portal-screen.cbn-hub-v4 .cbn-hub-heading p { margin: 0; color: var(--hub-muted); font-size: 17px; line-height: 1.5; }
#portal-screen.cbn-hub-v4 .cbn-hub-heading time { color: var(--hub-muted); font-size: 16px; white-space: nowrap; padding-top: 10px; }
#portal-screen.cbn-hub-v4 .cbn-hub-agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent { min-width: 0; display: flex; flex-direction: column; padding: 10px 10px 18px; border: 1px solid var(--hub-line); border-radius: 19px; background: transparent; box-shadow: none; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-picture { position: relative; width: 100%; aspect-ratio: 326/230; border-radius: 14px; border: 1px solid var(--hub-line); background: transparent; overflow: hidden; display: grid; place-items: center; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-artwork { position: absolute; inset: 0; width: 100%; height: 100%; line-height: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-picture img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover !important; object-position: left center; border-radius: 14px; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-badge { position: absolute; left: 2%; bottom: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; width: max(96px, 32%); aspect-ratio: 3.4 / 1; border: 1px solid #d68a50; border-radius: 999px; padding: 0; background: #0b1b30; color: #f5f7ff; font: 700 11px/1.1 Inter, Arial, sans-serif; pointer-events: none; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-badge svg { flex: 0 0 15px; color: #ec945c; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent h3 { font-size: clamp(17px, 1.18vw, 23px); margin: 17px 6px 10px; color: #f5f7ff; line-height: 1.2; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent p { font-size: 14px; margin: 0 6px 28px; color: var(--hub-muted); line-height: 1.5; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-actions { display: flex; gap: 8px; margin: auto 6px 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-actions button { flex: 1; }
#portal-screen.cbn-hub-v4 .cbn-hub-button { border: 1px solid var(--hub-line); border-radius: 10px; min-height: 48px; padding: 10px 16px; background: transparent !important; color: #f5f7ff !important; box-shadow: none; font-size: 14px; line-height: 1.3; white-space: normal; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-actions .cbn-hub-button { display: flex; justify-content: center; align-items: center; gap: 12px; font-weight: 700; padding-left: 10px; padding-right: 10px; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-actions.split .cbn-hub-button { font-weight: 400; font-size: 13px; }
#portal-screen.cbn-hub-v4 .cbn-hub-agent-actions svg { color: #3455ff; flex-shrink: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-button.primary { background: var(--hub-blue) !important; border-color: var(--hub-blue); font-weight: 700; }
#portal-screen.cbn-hub-v4 .cbn-hub-button:hover:not(:disabled) { border-color: #728aa7; }
#portal-screen.cbn-hub-v4 .cbn-hub-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel { border: 1px solid var(--hub-line); background: transparent !important; padding: 20px; border-radius: 18px; min-width: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel.wide { grid-column: 1/-1; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel-heading h3 { font-size: 19px; color: #f5f7ff; margin: 0; line-height: 1.3; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel.wide .cbn-hub-panel-heading h3 { font-size: 24px; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel-heading small { color: var(--hub-muted); font-size: 14px; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel-heading > .cbn-hub-link { margin-left: auto; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--hub-blue); color: #fff; flex-shrink: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-panel-icon.regulatory { background: #87e0f3; color: #0a283d; }
#portal-screen.cbn-hub-v4 .cbn-hub-row { display: flex; align-items: center; gap: 16px; min-height: 66px; padding: 10px 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-row + .cbn-hub-row { border-top: 1px solid #253952; }
#portal-screen.cbn-hub-v4 .cbn-hub-row > img { width: 112px; max-height: 88px; height: auto; border-radius: 10px; flex-shrink: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-row-copy { flex: 1; min-width: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-row-copy strong { display: block; font-size: 15px; color: #f5f7ff; line-height: 1.5; overflow-wrap: anywhere; }
#portal-screen.cbn-hub-v4 .cbn-hub-row-copy small { display: block; color: var(--hub-muted); font-size: 14px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
#portal-screen.cbn-hub-v4 .cbn-hub-row > button { flex-shrink: 0; min-width: 120px; }
#portal-screen.cbn-hub-v4 .cbn-hub-row .primary { min-width: 198px; }
#portal-screen.cbn-hub-v4 .cbn-hub-label { display: inline-block; min-width: 102px; text-align: center; padding: 10px; border-radius: 8px; background: var(--hub-orange); color: #091a33; font-size: 14px; font-weight: 700; }
#portal-screen.cbn-hub-v4 .cbn-hub-label.waiting { background: #ffbe32; }
#portal-screen.cbn-hub-v4 .cbn-hub-link { background: transparent !important; border: 0; color: #9eb2ff !important; padding: 8px 0; box-shadow: none; font-size: 14px; min-height: 36px; }
#portal-screen.cbn-hub-v4 .cbn-hub-empty { color: var(--hub-muted); font-size: 15px; line-height: 1.6; margin: 8px 0; min-height: 44px; }
#portal-screen.cbn-hub-v4 .cbn-hub-flag { display: inline-grid; width: 42px; height: 28px; border: 1px solid var(--hub-line); border-radius: 5px; overflow: hidden; place-items: center; }
#portal-screen.cbn-hub-v4 .cbn-hub-flag img { width: 100%; height: 100%; object-fit: contain; }
#portal-screen.cbn-hub-v4 .cbn-hub-due { color: #ffbe32; }
#portal-screen.cbn-hub-v4 .cbn-hub-footer { color: var(--hub-muted); display: flex; justify-content: center; gap: 16px; padding-top: 25px; font-size: 14px; }
#portal-screen.cbn-hub-v4 .cbn-hub-mobile-actions { display: none; }
#portal-screen.cbn-hub-v4 :is(.cbn-hub-button, .cbn-hub-link, #cbn-hub-nav button):focus-visible { outline: 2px solid #aac4ff; outline-offset: 3px; }
#portal-screen.cbn-hub-v4 .cbn-hub-workspace { margin-top: 24px; }
#portal-screen.cbn-hub-v4 #cbn-admin-access-block .admin-access-sidebar,
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav { min-width: 0; }
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav { grid-template-columns: minmax(0, 1fr); }
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav button {
  min-width: 0; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere;
}
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav button span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav .cbn-admin-tool-title,
#portal-screen.cbn-hub-v4 #cbn-admin-access-block .admin-access-tools-heading { flex-wrap: wrap; }
#portal-screen.cbn-hub-v4 .cbn-hub-account-tools { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 8px; margin-top: 12px; }
#portal-screen.cbn-hub-v4 .cbn-hub-account-tools button { display: block; text-align: left; }
#portal-screen.cbn-hub-v4 .cbn-hub-account-tools button:has(> .cbn-sidebar-agent-copy) {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px;
}
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav .cbn-hub-account-tools .cbn-sidebar-ci-mark { display: grid; width: 42px; height: 42px; margin-top: 0; }
#portal-screen.cbn-hub-v4 #cbn-admin-access-nav .cbn-hub-account-tools .cbn-sidebar-agent-copy { width: auto; margin-top: 0; }
#portal-screen.cbn-hub-v4 .cbn-hub-account-tools img { width: 42px; height: auto; border-radius: 8px; object-fit: contain; }
#portal-screen.cbn-hub-v4 .cbn-hub-account-tools strong, #portal-screen.cbn-hub-v4 .cbn-hub-account-tools small { display: block; }
#portal-screen.cbn-hub-v4 :is(#home-view, #module-view) :is(.cbn-hub-button, .cbn-hub-link, .cbn-hub-bell, .cbn-hub-profile) { background: transparent !important; }
#portal-screen.cbn-hub-v4 :is(#home-view, #module-view) .cbn-hub-button { border-color: var(--hub-line) !important; }
#portal-screen.cbn-hub-v4 :is(#home-view, #module-view) .cbn-hub-button.primary { background: var(--hub-blue) !important; border-color: var(--hub-blue) !important; }
#portal-screen.cbn-hub-v4 #home-view .cbn-hub-chat { background: #111d42 !important; border-color: var(--hub-line) !important; }
#portal-screen.cbn-hub-v4 #services-grid:not(:empty) { display: grid !important; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 18px; margin-top: 18px; }
#portal-screen.cbn-hub-v4 #services-grid:empty { display: none !important; }
@media (max-width: 1500px) {
  #portal-screen.cbn-hub-v4 > .sidebar { padding: 18px; }
  #portal-screen.cbn-hub-v4 > .main { padding: 20px 24px 36px; }
  #cbn-hub-nav button { grid-template-columns: 106px minmax(0,1fr); padding: 10px; gap: 12px; min-height: 112px; }
  #cbn-hub-nav .cbn-hub-nav-picture { width: 106px; }
  #cbn-hub-nav button strong { font-size: 15px; }
  #cbn-hub-nav button small { font-size: 13px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-toolbar { gap: 12px; margin-bottom: 32px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-profile { font-size: 14px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-search input { font-size: 15px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agents { gap: 14px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent p { margin-bottom: 22px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row > img { width: 80px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row { gap: 12px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row > button { min-width: 95px; padding: 9px; }
}
@media (max-width: 1190px) {
  #portal-screen.cbn-hub-v4 .cbn-hub-agents { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #portal-screen.cbn-hub-v4 .cbn-hub-profile > .cbn-hub-profile-copy { display: none; }
  #portal-screen.cbn-hub-v4 .cbn-hub-panels { grid-template-columns: 1fr; }
  #portal-screen.cbn-hub-v4 .cbn-hub-panel.wide { grid-column: auto; }
}
@media (max-width: 760px) {
  #portal-screen.cbn-hub-v4 { grid-template-columns: minmax(0,1fr); padding-bottom: 74px; }
  #portal-screen.cbn-hub-v4 > .sidebar { display: none; min-height: 0; padding: 18px; border-right: 0; }
  #portal-screen.cbn-hub-v4.cbn-hub-menu-open > .sidebar { display: block; }
  #portal-screen.cbn-hub-v4 > .main { padding: 18px 16px 25px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-toolbar { gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
  #portal-screen.cbn-hub-v4 .cbn-hub-search { flex-basis: 100%; min-height: 50px; padding: 0 14px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-chat { padding: 9px 14px; min-height: 48px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-profile { margin-left: auto; }
  #portal-screen.cbn-hub-v4 .cbn-hub-avatar { width: 44px; height: 44px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-heading { margin-bottom: 22px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-heading time { display: none; }
  #portal-screen.cbn-hub-v4 .cbn-hub-heading p { font-size: 14px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agents { gap: 12px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent { padding: 7px 7px 12px; border-radius: 16px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent h3 { font-size: 16px; margin: 12px 3px 8px; min-height: 38px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent p { font-size: 13px; margin: 0 3px 15px; min-height: 40px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent-actions { margin: auto 0 0; flex-wrap: wrap; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent-actions.split { flex-direction: column; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent-actions .cbn-hub-button { width: 100%; font-size: 13px; gap: 6px; padding: 9px 5px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-panels { gap: 14px; margin-top: 24px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-panel { padding: 16px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-panel-heading { gap: 9px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-panel-heading h3, #portal-screen.cbn-hub-v4 .cbn-hub-panel.wide .cbn-hub-panel-heading h3 { font-size: 18px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row { flex-wrap: wrap; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row-copy { min-width: 145px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row > button { margin-left: auto; }
  #portal-screen.cbn-hub-v4 .cbn-hub-row .primary { min-width: 120px; }
  #portal-screen.cbn-hub-v4 .cbn-hub-mobile-actions { position: fixed; display: flex; justify-content: space-around; gap: 4px; bottom: 0; left: 0; right: 0; z-index: 9500; background: #091a33; border-top: 1px solid var(--hub-line); padding: 8px 5px max(8px,env(safe-area-inset-bottom)); }
  #portal-screen.cbn-hub-v4 .cbn-hub-mobile-actions button { display: grid; justify-items: center; gap: 4px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: #f5f7ff; box-shadow: none; font-size: 12px; }
  #portal-screen.cbn-hub-v4 #home-view > .topbar { padding: 18px; border-radius: 24px; margin-bottom: 14px; min-height: 0; }
  #portal-screen.cbn-hub-v4 #home-view > .topbar h2 { font-size: 34px; line-height: 1.05; letter-spacing: 0; }
  #portal-screen.cbn-hub-v4 #home-view > .topbar p { font-size: 15px; line-height: 1.45; }
  #portal-screen.cbn-hub-v4 #home-view > .topbar .status-pill { width: max-content; padding: 9px 12px; font-size: 13px; }
  #portal-screen.cbn-hub-v4 #services-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; margin-top: 12px !important; }
  #portal-screen.cbn-hub-v4 #services-grid .service-card { min-height: 0 !important; border-radius: 18px !important; }
  #portal-screen.cbn-hub-v4 #services-grid .service-media { height: auto !important; aspect-ratio: 16 / 9 !important; border-radius: 18px 18px 0 0 !important; }
  #portal-screen.cbn-hub-v4 #services-grid .service-content { padding: 14px 16px 16px !important; }
}
@media (max-width: 360px) {
  #portal-screen.cbn-hub-v4 .cbn-hub-agents { grid-template-columns: 1fr; }
  #portal-screen.cbn-hub-v4 .cbn-hub-agent h3, #portal-screen.cbn-hub-v4 .cbn-hub-agent p { min-height: 0; }
}
