/* Full-width phone: campaign/status toolbar, screen, keypad, then actions. */
body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-panel {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
  color-scheme: light;
  background: #f7f9fc !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-panel > :is(.panel-heading,#phone-dialer-body,#advisor-sms-placeholder) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-panel > .panel-heading {
  margin: 0 0 4px !important;
  align-self: start !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-panel-heading-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: center !important;
  width: 100% !important;
  gap: 12px !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel :is(#phone-campaign-command,#phone-status) {
  grid-column: auto !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #bfd2e6 !important;
  background: #eaf3fc !important;
  color: #345776 !important;
  text-align: center !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-campaign-command:hover { background: #d6e8fa !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body :is(.phone-screen,.phone-deck,.dial-pad,.phone-action-stack) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body .phone-deck {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (max-width: 560px) {
  body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-panel-heading-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Phone controls share the light canvas, with consistent action colors. */
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body#phone-dialer-body,
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body :is(.phone-screen,.phone-deck,.dial-pad) {
  background: #f7f9fc !important;
  border-color: #ccd9e7 !important;
  color: #18334c !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body :is(.phone-screen,.phone-deck)::before,
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body :is(.phone-screen,.phone-deck)::after { display: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-screen-top img {
  width: min(280px,65%) !important; height: auto !important; object-fit: contain;
  filter: none !important; opacity: 1 !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #call-timer { color:#18334c !important; text-shadow:none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel :is(#phone-screen-extension,.phone-time-grid span,.phone-time-grid small,.phone-screen > label) { color:#536c83 !important; text-shadow:none !important; font-size:12px !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel .phone-time-grid strong { color:#18334c !important; font-size:16px !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center {
  padding: 14px !important; border: 1px solid #c9d9e9 !important;
  background: #eaf3fc !important; color: #18334c !important; box-shadow: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center::before,
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center::after { display: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .empire-phone-alert-tile {
  background: #fff !important; border-color: #c9d9e9 !important;
  color: #18334c !important; box-shadow: none !important; text-shadow: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .empire-phone-alert-tile :is(span,small) { font-size:12px !important; line-height:1.45 !important; white-space:normal !important; overflow:visible !important; text-overflow:clip !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .empire-phone-alert-tile strong { font-size:17px !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .empire-phone-alert-heading span { font-size:13px !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center :is(.empire-phone-alert-heading span,.empire-phone-alert-tile strong) { color: #18334c !important; text-shadow: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center :is(.empire-phone-alert-tile span,.empire-phone-alert-tile small,.empire-phone-alert-heading small) { color: #536c83 !important; text-shadow: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .empire-phone-alert-tile.is-alerting { background: #e1f4eb !important; border-color: #357b5e !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .last-call-toggle,
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-focused-last-call {
  background: #17583f !important; border: 1px solid #17583f !important;
  color: white !important; -webkit-text-fill-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .last-call-toggle.is-active,
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-focused-last-call[aria-pressed="true"] { background: #0d3e2b !important; outline: 2px solid #83c7a8; outline-offset: 2px; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-phone-alert-center .last-call-toggle span { color: white !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-focused-last-call span { color: white !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body .dial-pad button {
  background: #eaf3fc !important; border: 1px solid #bfd2e6 !important;
  color: #18334c !important; box-shadow: 0 2px 3px #233f5510 !important;
  text-shadow: none !important; border-radius: 10px !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body .dial-pad button b { color: #18334c !important; text-shadow: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body .dial-pad button small { color: #536c83 !important; text-shadow: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body .dial-pad button:hover { background: #d6e8fa !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #phone-dialer-body .dial-pad button:active { background: #bed9f2 !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel :is(#to-button,#call-button,#hangup-button,#transfer-button) {
  background: var(--phone-action-bg) !important; border: 1px solid var(--phone-action-border) !important;
  color: var(--phone-action-text) !important; box-shadow: none !important; text-shadow: none !important; opacity: 1 !important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #to-button { --phone-action-bg:#dfedfd; --phone-action-border:#93bce6; --phone-action-text:#245b91; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #call-button { --phone-action-bg:#17583f; --phone-action-border:#17583f; --phone-action-text:#fff; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #hangup-button { --phone-action-bg:#b13c4b; --phone-action-border:#b13c4b; --phone-action-text:#fff; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #transfer-button { --phone-action-bg:#e8e1fa; --phone-action-border:#b8a4df; --phone-action-text:#634694; }
body #app-view #advisor-panel#advisor-panel#advisor-panel :is(#to-button,#call-button,#hangup-button,#transfer-button) span { color: inherit !important; text-shadow: none !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #call-button:disabled { --phone-action-bg:#e1efe8; --phone-action-border:#a7cbbb; --phone-action-text:#386650; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #hangup-button:disabled { --phone-action-bg:#f9e6e9; --phone-action-border:#ddb3bc; --phone-action-text:#934653; }
body #app-view #advisor-panel#advisor-panel#advisor-panel :is(#to-button,#call-button,#hangup-button,#transfer-button):disabled { cursor:not-allowed !important; border-style:dashed !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel :is(.dial-pad button,#to-button,#call-button,#hangup-button,#transfer-button):focus-visible { outline: 3px solid #3784bf !important; outline-offset: 3px !important; }
body #app-view #advisor-panel#advisor-panel#advisor-panel #advisor-sms-placeholder {
  margin-top: 16px; padding: 18px; border: 1px solid #c9d9e9; border-radius: 12px;
  background: #fff; color: #18334c; text-align: left; min-width: 0;
}
#advisor-sms-placeholder header { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#advisor-sms-placeholder h3 { margin:0; font:700 1rem/1.4 system-ui; color:#18334c; }
#advisor-sms-placeholder header span { padding:4px 9px; border-radius:20px; background:#eaf3fc; color:#536c83; font:600 .75rem/1.4 system-ui; }
#advisor-sms-placeholder p { color:#536c83; font:400 .875rem/1.55 system-ui; }
#advisor-sms-placeholder label { display:block; margin-bottom:6px; font:600 .875rem/1.4 system-ui; color:#18334c; }
#advisor-sms-placeholder textarea { box-sizing:border-box; width:100%; min-height:85px; padding:12px; resize:none; border:1px solid #c9d9e9; border-radius:8px; background:#f4f8fc; color:#536c83; font:400 .875rem/1.5 system-ui; }
#advisor-sms-placeholder button { margin-top:10px; padding:10px 16px; border:1px dashed #a7cbbb; border-radius:8px; background:#e1efe8; color:#386650; font:600 .875rem/1.4 system-ui; cursor:not-allowed; }
/* Tour controls appear only after the server confirms demo/trial eligibility. */
html:not([data-mason-tours="enabled"]) :is(.mason-tour-button,.mason-guide-launcher,.mason-guide-drawer,.mason-guide-focus-shade,.mason-guide-pointer) { display:none !important; }

/* EMPIRE_DISPOSITION_CONTRAST_20260914: override legacy dark-theme text. */
body #advisor-panel #disposition-center #disposition-rail button.disp {
  color: #172b4d !important;
  -webkit-text-fill-color: #172b4d !important;
  background: #ffffff !important;
  border: 2px solid #63758d !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp:hover {
  color: #10264a !important;
  -webkit-text-fill-color: #10264a !important;
  background: #e8f0fc !important;
  border-color: #245bb0 !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp:is(.selected, .active, :active, [aria-pressed="true"]) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #174b91 !important;
  border-color: #174b91 !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp:focus-visible {
  outline: 3px solid #174b91 !important;
  outline-offset: 3px !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp:disabled {
  color: #46566a !important;
  -webkit-text-fill-color: #46566a !important;
  background: #edf0f4 !important;
  border-color: #8290a3 !important;
}

/* EMPIRE_CONTACT_READABILITY_20260914 */
body.empire-focused-advisor[data-empire-focus-view="work"][data-empire-call-phase="wrap"] #advisor-panel #empire-mode-workspace-root > .empire-mode-grid > .empire-mode-contact {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr) !important;
  align-items: start !important;
}
body #advisor-panel #customer-card {
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 20px !important;
  background: #ffffff !important;
  color: #172b4d !important;
}
body #advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary .empire-customer-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 10px 0 !important;
}
body #advisor-panel #customer-card #customer-grid .empire-customer-field small {
  color: #46566a !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}
body #advisor-panel #customer-card #customer-grid .empire-customer-field strong {
  color: #172b4d !important;
  -webkit-text-fill-color: #172b4d !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  overflow: visible !important;
  opacity: 1 !important;
}
@media (max-width: 1200px) {
  body.empire-focused-advisor[data-empire-focus-view="work"][data-empire-call-phase="wrap"] #advisor-panel #empire-mode-workspace-root > .empire-mode-grid > .empire-mode-contact {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.empire-focused-advisor[data-empire-focus-view="work"][data-empire-call-phase="wrap"] #advisor-panel .empire-mode-contact > :is(#customer-card, #disposition-center) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}
body #advisor-panel #customer-card :is(h2, h3, .section-title h2) {
  color: #172b4d !important;
  -webkit-text-fill-color: #172b4d !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp {
  font-size: 14px !important;
  line-height: 1.4 !important;
  min-height: 48px !important;
  white-space: normal !important;
}

/* EMPIRE_FULL_WIDTH_CALL_MODULES_20260914 */
body.empire-focused-advisor[data-empire-call-phase]:is([data-empire-focus-view="work"], [data-empire-focus-view="customer"]) #advisor-panel #empire-mode-workspace-root > .empire-mode-grid > .empire-mode-contact {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 20px !important;
}
body.empire-focused-advisor[data-empire-call-phase]:is([data-empire-focus-view="work"], [data-empire-focus-view="customer"]) #advisor-panel .empire-mode-contact > :is(#customer-card, #disposition-center) {
  display: block !important;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  padding: 18px !important;
  border: 1px solid #284b72 !important;
  border-radius: 14px !important;
  background: #102f52 !important;
  overflow: visible !important;
}
body #advisor-panel :is(#customer-card, #disposition-center) > .section-title {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
}
body #advisor-panel :is(#customer-card, #disposition-center) > .section-title :is(h2, h3, p, .eyebrow, .required-note) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
body #advisor-panel #customer-card #customer-grid,
body #advisor-panel #disposition-center #disposition-rail {
  display: grid !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 18px !important;
  border-radius: 10px !important;
  background: #f3f6fb !important;
  color: #172b4d !important;
  gap: 12px !important;
}
body #advisor-panel #disposition-center #disposition-rail {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}
body #advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 24px !important;
}
body #advisor-panel #disposition-center #disposition-toggle {
  display: none !important;
}
body #advisor-panel #disposition-center .detail-choice:not([hidden]) {
  background: #f3f6fb !important;
  color: #172b4d !important;
  padding: 16px !important;
  border-radius: 10px !important;
  margin-top: 12px !important;
}
@media (max-width: 700px) {
  body #advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body #advisor-panel #disposition-center #disposition-rail {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
body.empire-focused-advisor[data-empire-call-phase][data-empire-focus-view] #advisor-panel#advisor-panel #empire-mode-workspace-root #customer-card,
body.empire-focused-advisor[data-empire-call-phase][data-empire-focus-view] #advisor-panel#advisor-panel #empire-mode-workspace-root #disposition-center {
  background: #102f52 !important;
  border-color: #284b72 !important;
}

/* EMPIRE_OUTCOME_COLORS_BALANCED_20260914 */
body #advisor-panel #disposition-center { container-type: inline-size; }
body #advisor-panel #disposition-center #disposition-rail {
  --outcome-count: 8;
  --outcome-half: 4;
  grid-template-columns: repeat(var(--outcome-count), minmax(0, 1fr)) !important;
  gap: 9px !important;
  padding: 14px !important;
}
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(1):last-child) { --outcome-count: 1; --outcome-half: 1; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(2):last-child) { --outcome-count: 2; --outcome-half: 1; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(3):last-child) { --outcome-count: 3; --outcome-half: 2; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(4):last-child) { --outcome-count: 4; --outcome-half: 2; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(5):last-child) { --outcome-count: 5; --outcome-half: 3; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(6):last-child) { --outcome-count: 6; --outcome-half: 3; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(7):last-child) { --outcome-count: 7; --outcome-half: 4; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(8):last-child) { --outcome-count: 8; --outcome-half: 4; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(9):last-child) { --outcome-count: 9; --outcome-half: 5; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(10):last-child) { --outcome-count: 10; --outcome-half: 5; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(11):last-child) { --outcome-count: 11; --outcome-half: 6; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(12):last-child) { --outcome-count: 12; --outcome-half: 6; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(13):last-child) { --outcome-count: 13; --outcome-half: 7; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(14):last-child) { --outcome-count: 14; --outcome-half: 7; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(15):last-child) { --outcome-count: 15; --outcome-half: 8; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(16):last-child) { --outcome-count: 16; --outcome-half: 8; }
body #advisor-panel #disposition-center #disposition-rail button.disp[data-disposition-id] {
  --outcome-top: #286ba9;
  --outcome-bottom: #102f52;
  --outcome-text: #ffffff;
  background: linear-gradient(145deg, var(--outcome-bottom), var(--outcome-top)) !important;
  color: var(--outcome-text) !important;
  -webkit-text-fill-color: var(--outcome-text) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 3px 7px rgba(9, 30, 56, .3) !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .025em !important;
  line-height: 1.3 !important;
  min-height: 40px !important;
  min-width: 0 !important;
  padding: 8px 6px !important;
  text-shadow: none !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp[data-disposition-id="sale"] {
  --outcome-bottom: #125b37; --outcome-top: #227e49;
}
body #advisor-panel #disposition-center #disposition-rail button.disp[data-disposition-id="dnc"] {
  --outcome-bottom: #690f1e; --outcome-top: #a32939;
}
body #advisor-panel #disposition-center #disposition-rail button.disp:is([data-disposition-id="not-interested"], [data-disposition-id="not_interested"]) {
  --outcome-bottom: #efd333; --outcome-top: #ffed70; --outcome-text: #242818;
}
body #advisor-panel #disposition-center #disposition-rail button.disp[data-disposition-id]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
body #advisor-panel #disposition-center #disposition-rail button.disp[data-disposition-id]:is(.selected, :focus-visible) {
  outline: 3px solid #76b6ff !important;
  outline-offset: 2px !important;
}
body #advisor-panel #disposition-center #disposition-rail button.disp[data-disposition-id]::before {
  display: none !important;
}
@container (max-width: 1000px) {
  body #advisor-panel #disposition-center #disposition-rail {
    grid-template-columns: repeat(var(--outcome-half), minmax(0, 1fr)) !important;
  }
}
@container (max-width: 480px) {
  body #advisor-panel #disposition-center #disposition-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Remove the old two-page slider's inner width and height constraints. */
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid,
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid :is(.empire-customer-sheet-viewport, .empire-customer-sheet-track, .empire-customer-sheet-primary) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  transform: none !important;
  box-sizing: border-box !important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid :is(.empire-customer-sheet-viewport, .empire-customer-sheet-track) {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* EMPIRE_LIGHT_MODULE_HEADINGS_20260914 */
body #advisor-panel #empire-mode-workspace-root :is(#customer-card, #disposition-center) > .section-title {
  background: #f3f6fb !important;
  border: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 16px 18px !important;
  margin: 0 !important;
}
body #advisor-panel #empire-mode-workspace-root :is(#customer-card, #disposition-center) > .section-title :is(h2, h3, p, .eyebrow, .required-note) {
  color: #102f52 !important;
  -webkit-text-fill-color: #102f52 !important;
  background: transparent !important;
}
body #advisor-panel #empire-mode-workspace-root #customer-card #customer-grid,
body #advisor-panel #empire-mode-workspace-root #disposition-center #disposition-rail {
  border-radius: 0 0 10px 10px !important;
}
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(2):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 1; --outcome-half: 1; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(3):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 2; --outcome-half: 1; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(4):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 3; --outcome-half: 2; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(5):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 4; --outcome-half: 2; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(6):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 5; --outcome-half: 3; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(7):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 6; --outcome-half: 3; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(8):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 7; --outcome-half: 4; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(9):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 8; --outcome-half: 4; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(10):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 9; --outcome-half: 5; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(11):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 10; --outcome-half: 5; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(12):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 11; --outcome-half: 6; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(13):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 12; --outcome-half: 6; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(14):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 13; --outcome-half: 7; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(15):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 14; --outcome-half: 7; }
body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(16):last-child):has(> button[data-disposition-id="language"]) { --outcome-count: 15; --outcome-half: 8; }
@container (max-width: 480px) {
  body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(8):last-child):has(> button[data-disposition-id="language"]),
  body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(7):last-child):not(:has(> button[data-disposition-id="language"])) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(8):last-child):has(> button[data-disposition-id="language"]) > button.disp,
  body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(7):last-child):not(:has(> button[data-disposition-id="language"])) > button.disp {
    grid-column: span 2 !important;
  }
  body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(8):last-child):has(> button[data-disposition-id="language"]) > button.disp:nth-child(n+4),
  body #advisor-panel #disposition-center #disposition-rail:has(> button.disp:nth-child(7):last-child):not(:has(> button[data-disposition-id="language"])) > button.disp:nth-child(n+4) {
    grid-column: span 3 !important;
  }
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid,
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid :is(.empire-customer-sheet-viewport, .empire-customer-sheet-track, .empire-customer-sheet-primary) {
  box-shadow: none !important;
}
body #advisor-panel #empire-mode-workspace-root #customer-card #customer-grid {
  margin-top: 0 !important;
}

/* EMPIRE_CUSTOMER_SINGLE_VIEWPORT_20260914 */
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid.customer-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-columns: minmax(0, 1fr) !important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid > .empire-customer-sheet-viewport {
  grid-column: 1 / -1 !important;
}

/* EMPIRE_CONTACT_COMPACT_POLISH_20260914 */
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary .empire-customer-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  min-height: 66px !important;
  height: auto !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  gap: 5px !important;
  border: 0 !important;
  border-bottom: 1px solid #dce4ee !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-field small {
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: .055em !important;
  color: #5b6d83 !important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-field strong {
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: #172b4d !important;
  -webkit-text-fill-color: #172b4d !important;
}
body #advisor-panel #empire-mode-workspace-root #customer-card > .section-title {
  padding: 14px 18px 10px !important;
}
body #advisor-panel #empire-mode-workspace-root #customer-card > .section-title h2 {
  font-size: 19px !important;
  line-height: 1.3 !important;
  margin: 3px 0 0 !important;
}
body #advisor-panel #empire-mode-workspace-root #customer-card #customer-grid {
  padding: 0 18px 14px !important;
}
@media (max-width: 1000px) {
  body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 520px) {
  body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* EMPIRE_CONTACT_REFINED_DETAILS_20260914 */
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary {
 gap:12px!important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-sheet-primary .empire-customer-field {
 padding:14px 16px!important; min-height:76px!important; gap:7px!important;
 border:1px solid #93bce6!important;border-radius:8px!important;background:rgba(205,226,251,.62)!important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-field small {
 text-transform:none!important;letter-spacing:normal!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important;color:#586b82!important;
}
body.empire-focused-advisor #advisor-panel#advisor-panel #customer-card #customer-grid .empire-customer-field strong[data-empty="true"] {
 font-size:13px!important;font-weight:400!important;color:#77869a!important;-webkit-text-fill-color:#77869a!important;
}
body #app-view #advisor-panel#advisor-panel#advisor-panel #empire-mode-workspace-root > #advisor-sms-placeholder {
 grid-column:1/-1!important;order:100!important;margin:14px!important;padding:20px!important;
 width:auto!important;max-width:none!important;box-sizing:border-box!important;background:#f7f9fc!important;
 border:1px solid #cddbf0!important;border-radius:12px!important;
}
