/* Zi. v0.31.9 Profile & Zi. UX Hotfix 1 */
:root{--zi-profile-hotfix-mint:#5be7c4;--zi-profile-hotfix-amber:#f6c86b;--zi-profile-hotfix-line:rgba(255,255,255,.13)}

/* Company Intelligence Panel: full profile first, local actions second. */
.zi-mw-drawer-actions[data-zi-profile-actions-patched="true"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.zi-mw-drawer-actions .zi-mw-profile-primary{grid-column:1/-1;width:100%;min-height:54px;font-size:1rem;box-shadow:0 12px 36px rgba(85,231,196,.12)}
.zi-mw-drawer-actions [data-zi-watchlist-secondary="true"],
.zi-mw-drawer-actions [data-zi-note-secondary="true"]{width:100%;background:#111d22;color:#fff;border-color:var(--zi-profile-hotfix-line)}
.zi-mw-drawer-actions .zi-mw-profile-primary:focus-visible,
.zi-company-education-actions a:focus-visible{outline:3px solid rgba(91,231,196,.42);outline-offset:3px}

/* Educational context and support are visible before the financial snapshot. */
.zi-company-education-banner{margin:24px 0 4px;padding:22px;border:1px solid rgba(246,200,107,.34);border-radius:22px;background:linear-gradient(135deg,rgba(246,200,107,.09),rgba(85,231,196,.045));color:#e7e1cf}
.zi-company-education-banner p{max-width:none!important;margin:0 0 12px!important;color:#d5d8cf!important;font-size:1rem!important;line-height:1.6!important}
.zi-company-education-banner .zi-company-education-label{font:800 .75rem/1.35 ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.14em;color:var(--zi-profile-hotfix-amber)!important}
.zi-company-education-banner .zi-company-education-refresh{color:#b7c5c1!important}
.zi-company-education-banner small{display:block;margin-top:12px;color:#afa992;line-height:1.55}
.zi-company-education-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.zi-company-education-actions .zi-company-support-link{border-color:rgba(246,200,107,.38);color:#f4cf7d;background:rgba(246,200,107,.065)}
.zi-company-profile-actions a[hidden]{display:none!important}

/* Direct support links retain a consistent visual affordance. */
a[data-zi-support-direct="true"]{cursor:pointer}
.zi-mw-support a[data-zi-support-direct="true"]:after{content:" ↗"}

/* Character responses are compact and keep the established companion layout. */
.zi-companion-message[data-zi-character-hotfix="profile-zi-ux-hotfix1"] .zi-companion-bubble p{white-space:normal}
.zi-companion-message[data-zi-character-hotfix="profile-zi-ux-hotfix1"].is-zi .zi-companion-bubble{border-color:rgba(91,231,196,.22)}

@media(max-width:700px){
  .zi-mw-drawer-actions[data-zi-profile-actions-patched="true"]{grid-template-columns:1fr}
  .zi-mw-drawer-actions .zi-mw-profile-primary{grid-column:1;width:100%}
  .zi-company-education-banner{padding:18px;border-radius:18px}
  .zi-company-education-actions{display:grid;grid-template-columns:1fr}
  .zi-company-education-actions a{width:100%}
}
