/* Global customer-service and referral actions. Isolated from tool forms. */
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-global-action {
  display: inline-flex !important;
  min-width: 78px !important;
  min-height: 44px !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 12px !important;
  border: 1px solid !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer;
}
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-global-support {
  border-color: #9bd9ce !important;
  color: #17665e !important;
  background: #eef9f7 !important;
}
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-global-agent {
  border-color: #f2cf7d !important;
  color: #805100 !important;
  background: #fff8df !important;
}
.toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-global-action:hover {
  transform: translateY(-1px) !important;
}
.toolbox-body .tb-mobile-global-actions { display: none; }

.tb-global-utility-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #1c1917;
  box-shadow: -20px 0 54px rgba(28, 25, 23, .18);
  overflow: hidden;
}
.tb-global-utility-drawer::backdrop { background: rgba(28, 25, 23, .38); }
.tb-global-utility-surface { display: flex; height: 100%; flex-direction: column; overflow-y: auto; }
.tb-global-utility-surface > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 13px 16px;
  border-bottom: 1px solid #e7e2dd;
  background: rgba(255, 255, 255, .96);
}
.tb-global-utility-surface > header > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 10px; color: #17665e; background: #e8f7f4; font-size: 20px; }
.tb-global-utility-surface > header > div { display: flex; min-width: 0; flex-direction: column; }
.tb-global-utility-surface > header strong { font-size: 17px; }
.tb-global-utility-surface > header small { color: #78716c; font-size: 11px; }
.tb-global-utility-surface > header > button { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid #e7e2dd; border-radius: 9px; background: #fff; color: #44403c; cursor: pointer; }
.tb-global-utility-surface > section { display: grid; align-content: start; gap: 18px; padding: 22px 18px 28px; }
.tb-global-utility-surface > section[hidden] { display: none !important; }
.tb-global-utility-intro strong { display: block; font-size: 18px; line-height: 1.45; }
.tb-global-utility-intro p { margin: 7px 0 0; color: #6f675f; font-size: 13px; line-height: 1.7; }
.tb-global-support-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 16px; border: 1px solid #d8e8e4; border-radius: 12px; background: #f7fbfa; }
.tb-global-support-card > div:first-child { display: grid; min-height: 116px; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; }
.tb-global-support-card img { display: block; width: 116px; height: 116px; object-fit: contain; }
.tb-global-support-mark { display: flex; align-items: center; flex-direction: column; gap: 7px; color: #17665e; font-size: 11px; font-weight: 700; }
.tb-global-support-mark i { font-size: 34px; }
.tb-global-support-card dl { display: grid; align-content: center; gap: 11px; margin: 0; }
.tb-global-support-card dl > div { display: grid; gap: 2px; }
.tb-global-support-card dt { color: #7a736b; font-size: 11px; }
.tb-global-support-card dd { display: flex; align-items: center; gap: 7px; margin: 0; color: #2e2925; font-size: 13px; }
.tb-global-support-card dd a { color: inherit; font-weight: 700; text-decoration: none; }
.tb-global-support-card dd button { min-height: 26px; padding: 0 8px; border: 1px solid #a8d9d1; border-radius: 7px; color: #17665e; background: #fff; font-size: 11px; cursor: pointer; }
.tb-global-agent-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tb-global-agent-rates article { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 13px 9px; border: 1px solid #f0d59a; border-radius: 10px; background: #fffaf0; }
.tb-global-agent-rates span { color: #805100; font-size: 11px; white-space: nowrap; }
.tb-global-agent-rates strong { color: #b55d00; font-size: 23px; }
.tb-global-agent-rules { display: grid; gap: 10px; margin: 0; padding: 15px; border-radius: 10px; background: #f7f5f1; list-style: none; }
.tb-global-agent-rules li { display: flex; align-items: flex-start; gap: 8px; color: #554f48; font-size: 12px; line-height: 1.55; }
.tb-global-agent-rules i { margin-top: 2px; color: #2f7a69; }
.tb-global-primary-action,
.tb-global-secondary-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border-radius: 9px; font-size: 13px; font-weight: 760; text-decoration: none; }
.tb-global-primary-action { color: #fff; background: #ea580c; }
.tb-global-secondary-action { border: 1px solid #d8e8e4; color: #17665e; background: #fff; }

.toolbox-body .tb-app[data-app-shell][data-theme="night"] .tb-global-support { border-color: #397b71 !important; color: #a7ddd5 !important; background: #172b29 !important; }
.toolbox-body .tb-app[data-app-shell][data-theme="night"] .tb-global-agent { border-color: #7b6333 !important; color: #f5d68e !important; background: #302817 !important; }

@media (max-width: 1180px) {
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-global-action { width: 44px !important; min-width: 44px !important; padding: 0 !important; }
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-global-action > span { display: none !important; }
}

@media (max-width: 767px) {
  .toolbox-body .tb-app[data-app-shell][data-ui-revision="3"] .tb-mobile-topbar { grid-template-columns: 44px 38px minmax(0, 1fr) auto !important; }
  .toolbox-body .tb-mobile-global-actions { display: flex; align-items: center; gap: 5px; }
  .toolbox-body .tb-mobile-global-actions :is(a, button) { display: grid; width: 36px; min-width: 36px; height: 36px; min-height: 36px; place-items: center; padding: 0; border: 1px solid #e7e2dd; border-radius: 9px; color: #44403c; background: #fff; text-decoration: none; box-shadow: none; }
  .toolbox-body .tb-mobile-global-actions button:first-child { border-color: #9bd9ce; color: #17665e; background: #eef9f7; }
  .toolbox-body .tb-mobile-global-actions button:nth-child(2) { border-color: #f2cf7d; color: #805100; background: #fff8df; }
  .tb-global-utility-drawer { width: 100vw; }
  .tb-global-utility-surface > section { padding: 20px 16px 26px; }
  .tb-global-support-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .tb-global-support-card > div:first-child { min-height: 96px; }
  .tb-global-support-card img { width: 96px; height: 96px; }
}
