/* Portal shell only: the embedded dashboard and Ask IQ content are unchanged. */
:root{--navy:#17254d;--navy-dark:#132044;--green:#42bd58;--portal-header-height:120px;--portal-bar-height:96px;--portal-gutter:32px}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Arial,Helvetica,sans-serif;background:#eef0f7}
.portal-header{position:relative;z-index:45;color:#252644}
.portal-bar{height:var(--portal-bar-height);padding:0 var(--portal-gutter);display:flex;align-items:center;justify-content:space-between;gap:24px;background:#222247;border-bottom:2px solid #8bbd75;color:#fff}
.dashboard-page{--portal-bar-height:74px}
.portal-lockup{--brand-width:166px;display:flex;align-items:center;gap:12px;flex-shrink:0;text-decoration:none;color:inherit}
.portal-brand{display:block;width:var(--brand-width);height:auto}
/* The lettering is below the centre of the logo canvas. Align IQ to that
   optical centre while keeping the divider centred against the whole mark. */
.portal-iq{position:relative;padding-left:12px;padding-top:calc(var(--brand-width) * .035);font-size:18px;font-weight:600;line-height:24px;letter-spacing:.4px;color:#b2d69c}
.portal-iq::before{content:"";position:absolute;left:0;top:50%;height:24px;transform:translateY(-50%);border-left:1px solid #ffffff55}
.portal-nav{display:flex;align-items:center;gap:24px}
.portal-workspaces{color:#fff;text-decoration:none;font-size:12px;padding:8px 0}
.portal-workspaces:hover{text-decoration:underline;text-underline-offset:5px}
.portal-account{position:relative}
.portal-avatar{display:grid;place-items:center;width:34px;height:34px;list-style:none;cursor:pointer;border-radius:50%;border:1px solid #ffffff45;background:#ffffff12;color:#fff;font-size:11px;letter-spacing:.4px}
.portal-avatar::-webkit-details-marker{display:none}
.portal-account[open] .portal-avatar{background:#ffffff26}
.portal-account-panel{position:absolute;right:0;top:45px;width:240px;max-width:calc(100vw - 32px);padding:16px;border:1px solid #e2e5ec;border-radius:10px;background:#fff;color:#252644;box-shadow:0 12px 32px #1013292b}
.portal-user-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.portal-user-label{font-size:11px;color:#666c7d;margin:3px 0 13px}
.portal-signout{display:block;border-top:1px solid #e2e5ec;padding-top:13px;color:#252644;font-size:12px;text-decoration:none}
.portal-signout:hover{text-decoration:underline}
.portal-subheader{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;padding:11px var(--portal-gutter);border-bottom:1px solid #e2e5ec;background:#fff}
.portal-operation{margin:0;color:#656a7b;font-size:10px;font-weight:400;line-height:1.4;letter-spacing:1.5px;text-transform:uppercase}
.portal-freshness{margin:0;color:#656a7b;font-size:11px;line-height:1.4}
.portal-freshness-value{color:#252644;white-space:nowrap;font-variant-numeric:tabular-nums}
.portal-header :focus-visible{outline:2px solid #8bbd75;outline-offset:4px}
/* Reserve the new header's actual height without changing embedded content. */
.mpo-layout{min-height:calc(100dvh - var(--portal-header-height));padding-bottom:0}
.dashboard-container{height:calc(100dvh - var(--portal-header-height))}
.chat,.chat.expanded{top:calc(var(--portal-header-height) + 16px)}
/* Fit the dashboard below the actual header, including wrapped mobile text.
   Screen-only sizing leaves conversation printouts free to span pages. */
@media screen{
  body.dashboard-page{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  .dashboard-page .mpo-layout{min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr);padding-bottom:0}
  .dashboard-page .analytics{min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .dashboard-page .dashboard-container{flex:1;min-height:0;height:auto;overflow:hidden}
  .dashboard-page .dashboard-container iframe{display:block;width:100%;height:100%;border:0}
}
@media(max-width:600px){
  :root{--portal-header-height:122px;--portal-bar-height:76px;--portal-gutter:16px}
  .dashboard-page{--portal-bar-height:68px}
  .portal-bar{gap:12px}
  .portal-lockup{--brand-width:120px}
  .portal-lockup{gap:8px}
  .portal-iq{padding-left:8px;font-size:16px}
  .portal-nav{gap:10px}
  .portal-subheader{align-items:flex-start;flex-direction:column;gap:5px;padding:10px 16px}
  .chat,.chat.expanded{top:calc(var(--portal-header-height) + 10px)}
}
@media(pointer:coarse){.portal-avatar{width:44px;height:44px}.portal-workspaces{display:flex;align-items:center;min-height:44px}.portal-account-panel{top:54px}}
@media print{.portal-header{display:none}.mpo-layout{min-height:0}}
