/* ======================================================================
   WINFLUXX HUB: design system (hx-)
   A deep-navy sidebar, one slim top bar, and white cards with hairline
   borders on a cool canvas. Generous corners (10px controls, 14px cards),
   soft layered shadows and a single accent, the brand blue.
   The interface renders at true size: 100% browser zoom shows 15px text,
   nothing smaller than 12px, and no layout is scaled down to fit.
   Namespaced (hx-) so it never collides with design-system.css, which
   the forms inside Settings / RFX / Support still use.
   ====================================================================== */
@font-face{ font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face{ font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face{ font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face{ font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face{ font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../vendor/fonts/plus-jakarta-sans/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root{
  --hx-navy: #0E1526;
  --hx-navy-2: #162043;
  --hx-blue: #2A3ED6;
  --hx-blue-600: #212FB0;
  --hx-blue-300: #9AA6FF;
  --hx-link: #2A3ED6;
  --hx-tint: #ECEFFE;
  --hx-tint-2: #F5F6FF;
  --hx-bg: #F3F5FA;
  --hx-card: #FFFFFF;
  --hx-line: #E3E7F1;
  --hx-line-2: #ECEFF6;
  --hx-control: #CFD5E4;
  --hx-ink: #0C1328;
  --hx-text: #28314A;
  --hx-muted: #566080;
  --hx-faint: #8790A8;
  --hx-side-text: #B7BFD8;
  --hx-green: #14653A; --hx-green-bg: #E4F5EB; --hx-green-dot: #16A34A;
  --hx-amber: #8A4B06; --hx-amber-bg: #FEF2DF; --hx-amber-dot: #D97706;
  --hx-red: #B42318; --hx-red-bg: #FDECEA;
  --hx-violet: #5B3FD0; --hx-violet-bg: #EFEBFE;
  --hx-slate: #475069; --hx-slate-bg: #ECEEF4;
  --hx-r: 0; --hx-r-md: 3px; --hx-r-sm: 3px;
  --hx-shadow: 0 1px 2px rgba(16,24,40,.04);
  --hx-shadow-lg: 0 14px 34px -16px rgba(16,24,40,.22), 0 2px 6px rgba(16,24,40,.05);
  --hx-pop: 0 22px 48px -18px rgba(16,24,40,.34), 0 3px 8px rgba(16,24,40,.08);
  --hx-focus: 0 0 0 3px rgba(42,62,214,.28);
  --hx-side-w: 248px;
  --hx-rail-w: 336px;
  --hx-top-h: 64px;
  --hx-gutter: 36px;
  --hx-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-bs-theme="dark"]{
  --hx-bg: #0A0F1E; --hx-card: #111A32; --hx-line: #222C4A; --hx-line-2: #1A2340; --hx-control: #303B61;
  --hx-ink: #EEF0F7; --hx-text: #CDD2E0; --hx-muted: #A3ABC2; --hx-faint: #7B849C; --hx-tint: #1A2347; --hx-tint-2: #141D38;
  --hx-link: #A9B2FF;
  --hx-green: #6EE7A0; --hx-green-bg: rgba(22,163,74,.16); --hx-amber: #FBBF24; --hx-amber-bg: rgba(217,119,6,.16);
  --hx-red: #FCA5A5; --hx-red-bg: rgba(220,38,38,.16); --hx-violet: #C4B5FD; --hx-violet-bg: rgba(124,108,240,.16);
  --hx-slate: #B6BED3; --hx-slate-bg: rgba(148,163,200,.14);
  --hx-shadow: 0 1px 2px rgba(0,0,0,.3);
  --hx-shadow-lg: 0 14px 34px -16px rgba(0,0,0,.65), 0 2px 6px rgba(0,0,0,.3);
}

body.hx{ margin: 0; background: var(--hx-bg) !important; color: var(--hx-text); font-family: var(--hx-font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.hx a{ text-decoration: none; }
.hx :focus-visible{ outline: none; box-shadow: var(--hx-focus); border-radius: 0; }
.hx .bi{ line-height: 1; }
.hx-sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell: sidebar */
.hx-app{ display: grid; grid-template-columns: var(--hx-side-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--hx-navy) var(--hx-side-w), transparent var(--hx-side-w)); }
.hx-side{ grid-column: 1; grid-row: 1; position: sticky; top: 0; align-self: start; height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; padding: 20px 14px 14px;
  background: radial-gradient(130% 42% at 0% 0%, rgba(42,62,214,.34) 0%, rgba(42,62,214,0) 70%), var(--hx-navy); color: #FFFFFF; z-index: 40; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
  border-right: 1px solid rgba(255,255,255,.05); }
.hx-logo{ display: block; padding: 2px 8px 14px; color: #FFFFFF !important; }
.hx-logo img{ display: block; height: auto; max-width: 100%; margin: 0 auto; }
.hx-new{ position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; margin: 8px 0 12px; padding: 9px 10px; border: 1px solid rgba(174,190,255,.35); border-radius: 11px;
  background: radial-gradient(130% 140% at 100% 0%, rgba(137,157,255,.4), transparent 62%), linear-gradient(135deg, #4358F5 0%, #293FD2 58%, #2335B7 100%);
  color: #FFFFFF !important; font-size: 14px; font-weight: 650; text-decoration: none; overflow: hidden;
  box-shadow: 0 9px 24px -13px rgba(53,77,227,.95), inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(12,26,110,.25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.hx-new::after{ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.12) 48%, transparent 74%); opacity: .7; }
.hx-new:hover{ color: #FFFFFF !important; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 13px 28px -13px rgba(53,77,227,.95), inset 0 1px 0 rgba(255,255,255,.3); }
.hx-new:active{ transform: translateY(0); filter: brightness(.98); }
.hx-new:focus-visible{ outline: 2px solid #AAB6FF; outline-offset: 3px; }
.hx-new-icon{ z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: rgba(255,255,255,.17); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.hx-new-icon .bi{ font-size: 18px; }
/* The name of the button is always one line: it has the room (the arrow and the icon are fixed, the label takes the rest) and, were a font ever wider, it is cut with
   an ellipsis rather than broken over two lines. */
.hx-new .l{ z-index: 1; display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; line-height: 1.15; }
.hx-new .l b{ font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-new .l small{ color: rgba(255,255,255,.75); font-size: 10.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-new-arrow{ z-index: 1; flex: none; margin-left: auto; font-size: 12px; color: rgba(255,255,255,.75); transition: transform .18s ease; }
.hx-new:hover .hx-new-arrow{ transform: translate(2px,-2px); color: #fff; }
.hx-nav{ display: grid; gap: 2px; }
.hx-nav-label{ margin: 22px 12px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7D87A8; }
.hx-nav a{ position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--hx-r-sm); color: var(--hx-side-text) !important; font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.hx-nav a .bi{ font-size: 18px; width: 20px; text-align: center; color: #8F99B8; flex: none; transition: color .15s; }
.hx-nav a:hover{ background: rgba(255,255,255,.06); color: #FFFFFF !important; }
.hx-nav a:hover .bi{ color: #D6DBF0; }
.hx-nav a.on{ background: rgba(255,255,255,.1); color: #FFFFFF !important; font-weight: 600; }
.hx-nav a.on .bi{ color: var(--hx-blue-300); }
.hx-nav a.on::before{ content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0; background: var(--hx-blue-300); }
.hx-credit{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 12px; padding: 12px 14px; border-radius: var(--hx-r-md); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); color: #FFFFFF !important; transition: border-color .15s, background .15s; }
.hx-credit:hover{ background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.18); }
.hx-credit small{ display: block; font-size: 12px; font-weight: 600; color: #A4ADC8; }
.hx-credit b{ display: block; font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hx-credit > span:last-child{ display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--hx-blue-300); }
.hx-side-foot{ margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.hx-me{ display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--hx-r-sm); color: #FFFFFF !important; }
.hx-me:hover{ background: rgba(255,255,255,.06); }
.hx-me b{ display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-me small{ display: block; font-size: 12.5px; color: var(--hx-side-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-me > span:nth-child(2){ flex: 1; min-width: 0; }
.hx-me .bi-chevron-right{ color: #7D87A8; font-size: 12px; }
.hx-logout{ display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: var(--hx-r-sm); color: var(--hx-side-text) !important; font-size: 14px; font-weight: 500; }
.hx-logout:hover{ background: rgba(255,255,255,.06); color: #FFFFFF !important; }
.hx-logout .bi{ font-size: 18px; width: 20px; text-align: center; color: #8F99B8; }
.hx-avatar{ width: 36px; height: 36px; border-radius: 3px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #4A5DF0, #2A3ED6); color: #FFFFFF; font-weight: 700; font-size: 14px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.hx-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.hx-main{ grid-column: 2; grid-row: 1; min-width: 0; }
.hx-scrim{ display: none; }

/* The sidebar narrows to its icons (the button at its top; the choice is kept: hub.js) - on a desktop screen only: on a phone it is a drawer. */
.hx-collapse{ position: absolute; top: 18px; right: 10px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #8F99B8; display: grid; place-items: center; cursor: pointer; }
.hx-collapse:hover{ background: rgba(255,255,255,.08); color: #FFFFFF; }
.hx-collapse .i-e, .hx-logo .hx-logo-icon{ display: none; }
@media (min-width: 901px){
  .hx-app.is-compact{ --hx-side-w: 72px; }
  .is-compact .hx-side{ padding: 14px 12px; align-items: center; }
  .is-compact .hx-collapse{ order: -1; position: static; margin: 0 0 10px; }
  .is-compact .hx-collapse .i-c{ display: none; }
  .is-compact .hx-collapse .i-e{ display: block; }
  .is-compact .hx-logo{ padding: 0 0 14px; }
  .is-compact .hx-logo .hx-logo-full{ display: none; }
  .is-compact .hx-logo .hx-logo-icon{ display: block; }
  .is-compact .hx-new{ width: 48px; min-height: 50px; padding: 0; justify-content: center; }
  .is-compact .hx-new .l, .is-compact .hx-new-arrow, .is-compact .hx-nav a .l, .is-compact .hx-logout .l, .is-compact .hx-me > span:nth-child(2), .is-compact .hx-me > .bi-chevron-right{ display: none; }
  .is-compact .hx-new-icon{ width: 34px; height: 34px; }
  .is-compact .hx-nav{ width: 100%; justify-items: center; }
  .is-compact .hx-nav a{ width: 48px; padding: 0; justify-content: center; }
  .is-compact .hx-nav a.on::before{ left: -12px; }
  .is-compact .hx-nav-label{ width: 28px; height: 1px; margin: 12px 0; padding: 0; font-size: 0; line-height: 0; overflow: hidden; background: rgba(255,255,255,.14); }
  .is-compact .hx-credit{ width: 48px; box-sizing: border-box; margin: 14px 0 10px; padding: 8px 0; justify-content: center; }
  .is-compact .hx-credit small, .is-compact .hx-credit > span:last-child{ display: none; }
  .is-compact .hx-credit b{ font-size: 15px; text-align: center; }
  .is-compact .hx-side-foot{ width: 100%; justify-items: center; }
  .is-compact .hx-me{ width: 48px; box-sizing: border-box; padding: 8px 0; justify-content: center; }
  .is-compact .hx-logout{ width: 48px; padding: 0; justify-content: center; }
}
@media (max-width: 900px){ .hx-collapse{ display: none; } }

/* The credits and the account card stay at the foot of the window. On a short screen (a laptop) only the menu above them scrolls, so they are never pushed out of sight;
   before, the whole sidebar scrolled and the card sat below the fold. A short screen also gets a smaller logo and tighter rows, so most of the menu shows without scrolling. */
.hx-side{ padding-bottom: 0; }
.hx-nav{ align-content: start; }
.hx-side-bottom{ position: sticky; bottom: 0; z-index: 2; flex: none; margin: auto -14px 0; padding: 0 14px 14px; background: var(--hx-navy); }
.hx-side-bottom::before{ content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18px; pointer-events: none; background: linear-gradient(to top, var(--hx-navy), rgba(14,21,38,0)); }
.hx-side-foot{ margin-top: 0; }
@media (min-width: 901px){
  .is-compact .hx-side{ padding-bottom: 0; }
  .is-compact .hx-side-bottom{ margin: auto -12px 0; padding: 0 12px 12px; }
}
@media (min-width: 901px) and (max-height: 860px){
  .hx-side{ padding-top: 14px; }
  .hx-logo{ padding: 0 8px 6px; }
  .hx-logo .hx-logo-full{ width: auto; max-height: 84px; }
  .hx-new{ min-height: 46px; margin: 6px 0 4px; padding: 6px 10px; }
  .hx-new-icon{ width: 30px; height: 30px; }
  .hx-nav-label{ margin: 14px 12px 6px; }
  .hx-nav a{ height: 36px; }
  .hx-credit{ margin: 10px 0 8px; padding: 8px 12px; }
  .hx-credit b{ font-size: 18px; }
  .hx-side-foot{ padding-top: 8px; }
  .hx-me{ padding: 6px 10px; }
  .hx-avatar{ width: 32px; height: 32px; }
  .hx-logout{ height: 34px; }
  .hx-collapse{ top: 12px; }
}
@media (min-width: 901px) and (max-height: 700px){
  .hx-logo .hx-logo-full{ max-height: 60px; }
  .hx-logo{ padding-bottom: 4px; }
  .hx-new{ margin: 4px 0 2px; }
  .hx-nav-label{ margin: 10px 12px 4px; font-size: 11px; }
  .hx-nav{ gap: 1px; }
  .hx-nav a{ height: 34px; }
  .hx-credit{ margin: 8px 0 6px; padding: 6px 12px; }
  .hx-credit b{ font-size: 16px; }
  .hx-side-foot{ padding-top: 6px; }
  .hx-me{ padding: 4px 10px; }
  .hx-logout{ height: 32px; }
  .is-compact .hx-nav a, .is-compact .hx-credit{ height: auto; }
  .is-compact .hx-nav a{ height: 40px; }
  .is-compact .hx-new{ min-height: 44px; }
  .is-compact .hx-nav-label{ margin: 8px 0; }
}
/* a very short screen (a laptop at 150 % scaling is about 560 px tall): the section names become thin lines, so the whole menu, the credits and the account card fit with no scrolling at all */
@media (min-width: 901px) and (max-height: 640px){
  .hx-side{ padding-top: 10px; }
  .hx-logo .hx-logo-full{ max-height: 54px; }
  .hx-logo{ padding-bottom: 2px; }
  .hx-nav > .hx-nav-label{ height: 1px; margin: 8px 12px; padding: 0; font-size: 0; line-height: 0; overflow: hidden; background: rgba(255, 255, 255, .1); }
  .hx-nav > .hx-nav-label:first-child{ display: none; }
  .hx-credit{ margin: 6px 0 4px; }
  .hx-me{ padding: 3px 10px; }
  .hx-side-bottom{ padding-bottom: 10px; }
  .hx-collapse{ top: 8px; }
}

/* ---------------------------------------------------------------- shell: top bar */
.hx-top{ position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: var(--hx-top-h); padding: 0 var(--hx-gutter); box-sizing: border-box;
  background: var(--hx-bg); border-bottom: 1px solid var(--hx-line); }
@supports (background: color-mix(in srgb, red 50%, blue)){
  .hx-top{ background: color-mix(in srgb, var(--hx-bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
}
.hx-burger{ display: none; }
.hx-crumb{ display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hx-muted); white-space: nowrap; }
.hx-crumb b{ color: var(--hx-ink); font-weight: 600; }
.hx-crumb .bi{ font-size: 10px; opacity: .6; }
.hx-top-search{ flex: 0 1 460px; min-width: 0; margin-left: 14px; }
.hx-top-right{ margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hx-search{ display: flex; align-items: center; gap: 10px; width: 100%; max-width: 100%; height: 42px; padding: 0 10px 0 14px; border-radius: var(--hx-r-md); border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-muted); box-sizing: border-box; margin: 0; box-shadow: var(--hx-shadow); transition: border-color .15s, box-shadow .15s; }
.hx-search:hover{ border-color: var(--hx-control); }
.hx-search > .bi{ font-size: 15px; flex: none; }
.hx-search input{ border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--hx-ink); flex: 1; min-width: 0; box-shadow: none; }
.hx-search input::placeholder{ color: var(--hx-muted); }
.hx-search:focus-within{ border-color: var(--hx-blue); box-shadow: var(--hx-focus); }
.hx-search :focus-visible{ box-shadow: none; }
.hx-kbd{ flex: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--hx-muted); background: var(--hx-bg); border: 1px solid var(--hx-control); border-bottom-width: 2px; border-radius: 3px; padding: 0 7px; line-height: 19px; }
.hx-search:focus-within .hx-kbd{ display: none; }
.hx-iconbtn, .hx-bell{ position: relative; width: 42px; height: 42px; border-radius: var(--hx-r-md); border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-text) !important; display: grid; place-items: center; cursor: pointer; font-size: 17px; box-shadow: var(--hx-shadow); transition: border-color .15s, background .15s; }
.hx-iconbtn:hover, .hx-bell:hover{ background: var(--hx-tint-2); border-color: var(--hx-control); }
.hx-bell b{ position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 3px; background: var(--hx-blue); color: #FFFFFF;
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--hx-bg); }
.hx-user{ display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 3px 6px 3px 3px; border-radius: 3px; cursor: pointer; color: var(--hx-muted); }
.hx-user:hover{ background: var(--hx-line-2); }
.hx-user .hx-avatar{ width: 36px; height: 36px; font-size: 14px; box-shadow: none; }
.hx-user .bi{ font-size: 12px; }
.hx-drop{ position: relative; }
.hx-pop{ position: absolute; right: 0; top: calc(100% + 10px); width: 340px; background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: var(--hx-r); box-shadow: var(--hx-pop); padding: 8px; display: none; z-index: 70; }
.hx-drop.open .hx-pop{ display: block; }
.hx-pop-head{ padding: 10px 12px 12px; border-bottom: 1px solid var(--hx-line-2); margin-bottom: 6px; }
.hx-pop-head b{ display: block; color: var(--hx-ink); font-size: 15px; }
.hx-pop-head span{ font-size: 13px; color: var(--hx-muted); }
.hx-pop a, .hx-pop button{ display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--hx-r-sm); background: transparent; font: inherit; font-size: 14px;
  color: var(--hx-ink) !important; cursor: pointer; text-align: left; }
.hx-pop a:hover, .hx-pop button:hover{ background: var(--hx-bg); }
.hx-pop .bi{ font-size: 17px; color: var(--hx-muted); width: 20px; }
.hx-pop .note{ align-items: flex-start; }
.hx-pop .note small{ display: block; color: var(--hx-muted); font-size: 13px; }
.hx-pop .empty{ padding: 14px 12px; font-size: 14px; color: var(--hx-muted); }
.hx-credits{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 4px 6px; padding: 14px; border-radius: var(--hx-r-md); background: var(--hx-tint); }
.hx-credits b{ display: block; font-size: 20px; font-weight: 700; color: var(--hx-ink); line-height: 1.1; }
.hx-credits span{ font-size: 13px; color: var(--hx-muted); }

/* ---------------------------------------------------------------- page header (every page) */
.hx-phead, .hx-dash-head, .hx-page, .hx-dash-body{ max-width: 1760px; margin-left: auto; margin-right: auto; box-sizing: border-box; width: 100%; }
.hx-phead{ display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 32px var(--hx-gutter) 0; }
.hx-phead-text{ min-width: 0; max-width: 760px; }
.hx-eyebrow{ font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hx-link); }
.hx-eyebrow:empty{ display: none; }
.hx .hx-phead h1{ margin: 6px 0 8px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.024em; color: var(--hx-ink); }
.hx-phead p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--hx-muted); max-width: 680px; }
.hx-phead p:empty{ display: none; }
.hx-phead-actions{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hx-phead-actions:empty{ display: none; }
.hx-phead-actions .hx-btn.light{ background: linear-gradient(180deg, #3447E2, var(--hx-blue)); border-color: var(--hx-blue-600); color: #FFFFFF !important; }
.hx-phead-actions .hx-btn.light:hover{ background: var(--hx-blue-600); border-color: var(--hx-blue-600); }
.hx-page{ padding: 24px var(--hx-gutter) 56px; }

/* ---------------------------------------------------------------- buttons, cards, tags */
.hx-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--hx-r-sm); border: 1px solid var(--hx-blue-600);
  background: linear-gradient(180deg, #3447E2 0%, var(--hx-blue) 100%); color: #FFFFFF !important; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(25,36,140,.28); transition: filter .15s, background .15s, border-color .15s, transform .1s; }
.hx-btn:hover{ filter: brightness(1.08); }
.hx-btn:active{ transform: translateY(1px); }
.hx-btn.sm{ height: 34px; padding: 0 13px; font-size: 13px; border-radius: 3px; }
.hx-btn.outline{ background: var(--hx-card); color: var(--hx-link) !important; border-color: var(--hx-control); box-shadow: var(--hx-shadow); }
[data-bs-theme="dark"] .hx-btn.outline{ border-color: #4A5593; }
.hx-btn.outline:hover{ background: var(--hx-tint); border-color: var(--hx-blue); filter: none; }
.hx-btn.ghost{ background: var(--hx-card); color: var(--hx-ink) !important; border-color: var(--hx-control); box-shadow: var(--hx-shadow); }
.hx-btn.ghost:hover{ background: var(--hx-bg); border-color: var(--hx-faint); filter: none; }
.hx-btn.light{ background: #FFFFFF; color: var(--hx-blue) !important; border-color: #FFFFFF; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.hx-card{ background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: var(--hx-r); box-shadow: var(--hx-shadow); }
.hx-card-pad{ padding: 24px; }
.hx-h2{ margin: 0; font-size: 18px; font-weight: 700; color: var(--hx-ink); letter-spacing: -.014em; display: flex; align-items: center; gap: 10px; }
.hx-h3{ margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--hx-ink); letter-spacing: -.012em; }
.hx-h3 .bi{ font-size: 19px; color: var(--hx-link); }
.hx-sub{ margin: 4px 0 0; font-size: 14px; color: var(--hx-muted); font-weight: 400; }
.hx-count{ display: inline-block; min-width: 24px; padding: 0 8px; box-sizing: border-box; border-radius: 2px; background: var(--hx-tint); color: var(--hx-link); font-size: 12.5px; font-weight: 700; line-height: 24px; text-align: center; letter-spacing: 0; }
.hx-link{ display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--hx-link) !important; }
.hx-link:hover{ text-decoration: underline; }
.hx-tag{ display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 2px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hx-tag .bi{ font-size: 13px; }
.hx-tag.t-grant{ background: var(--hx-tint); color: var(--hx-link); }
.hx-tag.t-plan{ background: var(--hx-violet-bg); color: var(--hx-violet); }
.hx-tag.t-rfx{ background: var(--hx-amber-bg); color: var(--hx-amber); }
.hx-status{ display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 2px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hx-status::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hx-status.s-draft{ background: var(--hx-slate-bg); color: var(--hx-slate); }
.hx-status.s-in_progress{ background: var(--hx-amber-bg); color: var(--hx-amber); }
.hx-status.s-completed{ background: var(--hx-green-bg); color: var(--hx-green); }
/* beside a workspace's name, in the line under it: the same tag, a size that sits with the small text round it */
.hx-ws-meta .hx-status{ height: 20px; padding: 0 8px; gap: 5px; font-size: 11.5px; }
.hx-ws-meta .hx-status::before{ width: 6px; height: 6px; }
.hx-alert{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--hx-r-md); background: var(--hx-tint); color: var(--hx-ink); font-size: 14px; margin-bottom: 4px; border: 1px solid var(--hx-line); }
.hx-alert button{ border: 0; background: transparent; color: var(--hx-muted); font-size: 20px; cursor: pointer; }
.i-blue{ background: var(--hx-tint); color: var(--hx-link); }
.i-violet{ background: var(--hx-violet-bg); color: var(--hx-violet); }
.i-amber{ background: var(--hx-amber-bg); color: var(--hx-amber); }
.i-green{ background: var(--hx-green-bg); color: var(--hx-green); }
.hx-stat-ico{ width: 44px; height: 44px; flex: none; border-radius: var(--hx-r-md); display: grid; place-items: center; font-size: 20px; }

/* ---------------------------------------------------------------- dashboard: header and overview */
.hx-dash-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 32px var(--hx-gutter) 0; }
.hx-dash-title{ min-width: 0; }
.hx .hx-dash-head h1{ margin: 6px 0 8px; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.028em; color: var(--hx-ink); }
.hx-dash-head p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--hx-muted); max-width: 600px; }
.hx-dash-body{ padding: 24px var(--hx-gutter) 56px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.hx-kpis{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-kpi{ position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 22px; border-radius: var(--hx-r); background: var(--hx-card); border: 1px solid var(--hx-line); box-shadow: var(--hx-shadow);
  color: var(--hx-ink) !important; transition: border-color .15s, box-shadow .2s, transform .2s; }
.hx-kpi:hover{ border-color: var(--hx-control); box-shadow: var(--hx-shadow-lg); transform: translateY(-1px); }
.hx-kpi-top{ display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--hx-muted); }
.hx-kpi-ico{ width: 32px; height: 32px; border-radius: 3px; display: grid; place-items: center; font-size: 16px; flex: none; background: var(--hx-tint); color: var(--hx-link); }
.hx-kpi-val{ display: block; margin-top: 14px; font-size: 36px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hx-kpi-sub{ display: block; margin-top: 6px; font-size: 13.5px; color: var(--hx-muted); }
.hx-kpi .go{ position: absolute; top: 18px; right: 18px; font-size: 14px; color: var(--hx-faint); opacity: 0; transition: opacity .15s, transform .15s; }
.hx-kpi:hover .go{ opacity: 1; transform: translate(1px, -1px); }
.hx-kpi.feature{ background: radial-gradient(120% 110% at 100% 0%, rgba(120,138,255,.5) 0%, rgba(120,138,255,0) 58%), linear-gradient(140deg, #141E66 0%, #2A3ED6 100%); border-color: transparent; color: #FFFFFF !important; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(42,62,214,.7); }
.hx-kpi.feature .hx-kpi-top{ color: #D3D8F8; }
.hx-kpi.feature .hx-kpi-ico{ background: rgba(255,255,255,.16); color: #FFFFFF; }
.hx-kpi.feature .hx-kpi-sub{ color: #D3D8F8; }
.hx-kpi.feature .go{ color: #FFFFFF; }
.hx-kpi-foot{ display: block; margin-top: auto; padding-top: 18px; min-width: 0; }
.hx-kpi-note{ display: block; margin-top: 8px; font-size: 12.5px; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-kpi-note.hx-next{ display: flex; align-items: center; gap: 7px; margin-top: 0; padding: 8px 10px; border-radius: 0; background: var(--hx-amber-bg); color: var(--hx-amber); }
.hx-kpi-note.hx-next .bi{ font-size: 13px; flex: none; }
.hx-kpi-note.hx-next b{ flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.hx-kpi-note.hx-next em{ flex: none; font-style: normal; font-weight: 700; }
.hx-bar{ display: flex; gap: 3px; height: 8px; border-radius: 2px; overflow: hidden; background: var(--hx-line-2); }
.hx-bar > i{ display: block; height: 100%; border-radius: 2px; }
.hx-bar.g > i{ width: var(--w, 0%); background: linear-gradient(90deg, #22C55E, #16A34A); }
.hx-bar.v{ background: transparent; }
.hx-bar.v > i{ flex: var(--n, 1) 1 0; }
.hx-bar.v .a{ background: #5B47E6; }
.hx-bar.v .b{ background: #C3B8F5; }
.hx-seg{ display: flex; gap: 3px; height: 8px; border-radius: 3px; overflow: hidden; }
.hx-seg i{ flex: var(--n, 1) 1 0; min-width: 8px; border-radius: 3px; }
.hx-seg-key{ display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: #D3D8F8; }
.hx-seg-key i{ display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.hx-seg .d, .hx-seg-key .d{ background: #A8B2D6; }
.hx-seg .p, .hx-seg-key .p{ background: #F5B544; }
.hx-seg .c, .hx-seg-key .c{ background: #4ADE80; }
.hx-dash-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.hx-dash-col{ display: grid; gap: 20px; min-width: 0; grid-template-columns: minmax(0, 1fr); }

/* workspaces card */
.hx-ws-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; flex-wrap: wrap; }
.hx-toolbar{ display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 18px 24px 18px; }
.hx-ws-search{ position: relative; flex: 1 1 260px; min-width: min(240px, 100%); max-width: 520px; }
.hx-ws-search > .bi{ position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hx-muted); font-size: 15px; pointer-events: none; }
.hx-ws-search input{ display: block; width: 100%; height: 40px; padding: 0 14px 0 40px; border: 1px solid var(--hx-line); border-radius: var(--hx-r-sm); background: var(--hx-card); color: var(--hx-text); font: inherit; font-size: 13.5px; box-shadow: var(--hx-shadow); transition: border-color .15s, box-shadow .15s; }
.hx-ws-search input::placeholder{ color: var(--hx-faint); }
.hx-ws-search input:focus{ outline: none; border-color: var(--hx-blue); box-shadow: var(--hx-focus); }
.hx-tabs{ display: inline-flex; gap: 2px; padding: 4px; background: var(--hx-bg); border: 1px solid var(--hx-line); border-radius: var(--hx-r-md); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hx-tabs::-webkit-scrollbar{ display: none; }
.hx-tabs button{ display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border: 0; border-radius: 3px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--hx-muted); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.hx-tabs button:hover{ color: var(--hx-ink); }
.hx-tabs button em{ font-style: normal; font-size: 12px; font-weight: 700; line-height: 19px; padding: 0 7px; border-radius: 3px; background: var(--hx-line-2); color: var(--hx-muted); font-variant-numeric: tabular-nums; }
.hx-tabs button.on{ background: var(--hx-card); color: var(--hx-ink); box-shadow: 0 1px 3px rgba(16,24,40,.12), 0 0 0 1px var(--hx-line); }
.hx-tabs button.on em{ background: var(--hx-blue); color: #FFFFFF; }
.hx-filters{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hx-select{ height: 38px; padding: 0 34px 0 13px; border-radius: var(--hx-r-sm); border: 1px solid var(--hx-line); background: var(--hx-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%235A6275' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 12px center no-repeat;
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--hx-text); cursor: pointer; box-shadow: var(--hx-shadow); }
.hx-select:hover{ border-color: var(--hx-control); }
.hx-select:focus{ outline: none; border-color: var(--hx-blue); box-shadow: var(--hx-focus); }
.hx-table{ width: 100%; border-collapse: separate; border-spacing: 0; }
.hx-table-wrap{ padding: 0; overflow-x: auto; }
.hx-table th{ text-align: left; padding: 11px 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hx-muted); background: var(--hx-tint-2); border-top: 1px solid var(--hx-line-2); border-bottom: 1px solid var(--hx-line); white-space: nowrap; }
.hx-table th:first-child, .hx-table td:first-child{ padding-left: 24px; }
.hx-table th:last-child, .hx-table td:last-child{ padding-right: 24px; }
.hx-table td{ padding: 15px 16px; border-bottom: 1px solid var(--hx-line-2); vertical-align: middle; font-size: 14px; }
.hx-table tbody tr:hover td{ background: var(--hx-tint-2); }
.hx-table tr[hidden]{ display: none; }
.hx-table td:first-child{ min-width: 260px; }
.hx-table th:not(:first-child), .hx-table td:not(:first-child){ width: 1%; white-space: nowrap; }
.hx-ws-id{ display: flex; align-items: center; gap: 14px; }
.hx-ws-tile{ width: 40px; height: 40px; border-radius: 0; flex: none; display: grid; place-items: center; background: var(--hx-tint); color: var(--hx-link); font-size: 18px; }
.hx-ws-tile.t-grant{ background: var(--hx-tint); color: var(--hx-link); }
.hx-ws-tile.t-plan{ background: var(--hx-violet-bg); color: var(--hx-violet); }
.hx-ws-tile.t-rfx{ background: var(--hx-amber-bg); color: var(--hx-amber); }
.hx-ws-tile.t-shared{ background: var(--hx-slate-bg); color: var(--hx-slate); }
.hx-ws-name{ display: block; font-size: 14.5px; font-weight: 650; line-height: 1.35; color: var(--hx-ink) !important; }
.hx-ws-name:hover{ color: var(--hx-link) !important; }
.hx-ws-meta{ font-size: 12.5px; color: var(--hx-muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hx-ws-meta .sep{ color: var(--hx-faint); }
.hx-auto{ display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 0; background: var(--hx-amber-bg); color: var(--hx-amber); font-size: 12px; font-weight: 600; }
.hx-opp b{ display: block; font-weight: 600; color: var(--hx-ink); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-opp b.none{ color: var(--hx-faint); font-weight: 500; }
.hx-opp span{ display: block; font-size: 12.5px; color: var(--hx-muted); }
.hx-when b{ display: block; font-weight: 600; color: var(--hx-ink); white-space: nowrap; }
.hx-when span{ font-size: 12.5px; color: var(--hx-muted); white-space: nowrap; }
.hx-acts{ display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.hx-dots{ width: 34px; height: 34px; border-radius: 2px; border: 0; background: transparent; color: var(--hx-muted); font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.hx-dots:hover{ background: var(--hx-line-2); color: var(--hx-ink); }
.hx-acts .hx-pop{ width: 250px; }
.hx-acts form{ margin: 0; }
.hx-pop .danger, .hx-pop .danger .bi{ color: var(--hx-red) !important; }
.hx-table-foot{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--hx-line-2); font-size: 13.5px; color: var(--hx-muted); flex-wrap: wrap; }
.hx-pager{ display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
.hx-pager .gap{ align-self: center; color: var(--hx-muted); padding: 0 2px; }
.hx-pager button{ min-width: 34px; height: 34px; padding: 0 8px; border-radius: 3px; border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hx-pager button:hover:not(:disabled){ border-color: var(--hx-control); background: var(--hx-bg); }
.hx-pager button.on{ background: var(--hx-blue); border-color: var(--hx-blue); color: #FFFFFF; }
.hx-pager button:disabled{ opacity: .4; cursor: default; }
.hx-empty{ text-align: center; padding: 44px 24px 48px; }
.hx-empty .ico{ width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 3px; display: grid; place-items: center; background: linear-gradient(145deg, var(--hx-tint), var(--hx-tint-2)); color: var(--hx-link); font-size: 28px; box-shadow: inset 0 0 0 1px var(--hx-line); }
.hx-empty h3{ margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--hx-ink); }
.hx-empty p{ margin: 0 auto 20px; max-width: 440px; color: var(--hx-muted); }
.hx-first{ padding: 48px 24px 52px; margin: 16px 24px 24px; border: 1px dashed var(--hx-control); border-radius: var(--hx-r); background: var(--hx-tint-2); }
.hx-first-types{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hx-first-types span{ display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 0; border: 1px solid var(--hx-line); background: var(--hx-card); font-size: 13px; font-weight: 600; color: var(--hx-text); }
.hx-first-types .bi{ color: var(--hx-link); font-size: 14px; }
.hx-shared .hx-table th:first-child, .hx-shared .hx-table td:first-child{ min-width: 220px; }

/* right rail: compact modules */
.hx-rail{ display: grid; gap: 16px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.hx-mod{ background: var(--hx-card); border: 1px solid var(--hx-line); border-radius: var(--hx-r); box-shadow: var(--hx-shadow); }
.hx-mod-h{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 10px; }
.hx-mod-h h2{ margin: 0; display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; color: var(--hx-ink); letter-spacing: -.01em; }
.hx-mod-h h2 .bi{ color: var(--hx-link); font-size: 17px; }
.hx-mod-h a{ font-size: 13px; font-weight: 600; color: var(--hx-link) !important; }
.hx-mod-b{ padding: 0 10px 10px; }
.hx-mod-empty{ padding: 2px 20px 20px; font-size: 14px; line-height: 1.55; color: var(--hx-muted); }
.hx-mod-empty a{ color: var(--hx-link) !important; font-weight: 600; }
.hx-dl, .hx-match{ display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 10px; border-radius: var(--hx-r-md); color: var(--hx-ink) !important; transition: background .15s; }
.hx-dl:hover, .hx-match:hover{ background: var(--hx-tint-2); }
.hx-dl-date{ width: 46px; height: 48px; border-radius: 0; border: 1px solid var(--hx-line); background: var(--hx-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.hx-dl-date b{ font-size: 18px; font-weight: 700; color: var(--hx-ink); font-variant-numeric: tabular-nums; }
.hx-dl-date small{ margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-muted); }
.hx-dl-main{ min-width: 0; }
.hx-dl-main b{ display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 650; line-height: 1.35; color: var(--hx-ink); }
.hx-dl-main small{ display: block; margin-top: 2px; font-size: 12.5px; color: var(--hx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-dl-left{ font-size: 12.5px; font-weight: 600; color: var(--hx-muted); white-space: nowrap; }
.hx-dl-left.soon{ color: var(--hx-amber); }
.hx-ring{ --p: 0; position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--hx-blue) calc(var(--p) * 1%), var(--hx-line-2) 0); }
.hx-ring::before{ content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--hx-card); }
.hx-match:hover .hx-ring::before{ background: var(--hx-tint-2); }
.hx-ring b{ position: relative; font-size: 13px; font-weight: 700; color: var(--hx-ink); font-variant-numeric: tabular-nums; }
.hx-qa{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 2px 16px 16px; }
.hx-qa a{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 13px; border-radius: var(--hx-r-md); border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-ink) !important; font-size: 13px; font-weight: 600; line-height: 1.3; transition: border-color .15s, background .15s, transform .15s; }
.hx-qa a:hover{ border-color: var(--hx-control); background: var(--hx-tint-2); transform: translateY(-1px); }
.hx-qa a .bi{ width: 32px; height: 32px; border-radius: 3px; display: grid; place-items: center; background: var(--hx-tint); color: var(--hx-link); font-size: 16px; flex: none; }
.hx-h2-ico{ color: var(--hx-link); font-size: 18px; }
.hx-insights .hx-ws-head{ align-items: center; padding-bottom: 2px; }
.hx-ins-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 16px 24px 24px; }
.hx-insight{ display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--hx-r-md); font-size: 14px; line-height: 1.55; color: var(--hx-text); }
.hx-insight.wide{ grid-column: 1 / -1; }
.hx-insight .bi{ font-size: 18px; flex: none; margin-top: 1px; }
.hx-insight.a{ background: var(--hx-tint-2); } .hx-insight.a .bi{ color: var(--hx-link); }
.hx-insight.b{ background: var(--hx-green-bg); } .hx-insight.b .bi{ color: var(--hx-green); }
.hx-insight a{ color: var(--hx-ink) !important; font-weight: 600; }
.hx-promo{ position: relative; isolation: isolate; overflow: hidden; border-radius: var(--hx-r); padding: 22px; min-height: 0; color: #FFFFFF; display: flex; flex-direction: column; justify-content: flex-start;
  background: radial-gradient(110% 100% at 100% 0%, rgba(110,128,255,.55) 0%, rgba(110,128,255,0) 62%), linear-gradient(150deg, #0E1526 0%, #18267F 100%); box-shadow: 0 16px 34px -20px rgba(24,38,127,.8); }
.hx-promo::before, .hx-promo::after{ content: ""; position: absolute; z-index: -1; border-radius: 0; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.02)); pointer-events: none; }
.hx-promo::before{ right: -22px; top: -26px; width: 132px; height: 164px; transform: rotate(14deg); }
.hx-promo::after{ right: 52px; top: 42px; width: 92px; height: 116px; transform: rotate(-9deg); opacity: .7; }
.hx-promo small{ font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #C9CFF6; }
.hx-promo b{ display: block; margin: 10px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.012em; max-width: 220px; }
.hx-promo p{ margin: 0 0 18px; font-size: 14px; color: #D9DDF5; max-width: 230px; line-height: 1.55; }
.hx-promo .hx-btn{ align-self: flex-start; }

/* ---------------------------------------------------------------- inner pages */
.hx-pagehead{ display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.hx-h1{ margin: 6px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--hx-ink); line-height: 1.15; }
.hx-lead{ margin: 0; font-size: 15px; color: var(--hx-muted); max-width: 640px; }
.hx-cols{ display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 20px; align-items: start; }
.hx-cols > *{ min-width: 0; }
.hx-stack{ display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.hx-sec + .hx-sec{ margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--hx-line-2); }
.hx-sec-h{ display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: 16.5px; font-weight: 800; color: var(--hx-ink); }
.hx-sec-n{ width: 26px; height: 26px; border-radius: 2px; display: grid; place-items: center; background: var(--hx-tint); color: var(--hx-link); font-size: 13.5px; font-weight: 800; flex: none; }
.hx-sec-sub{ margin: 0 0 16px 38px; font-size: 14px; color: var(--hx-muted); }
.hx-field{ margin-bottom: 16px; }
.hx-field > label, .hx-label{ display: block; font-size: 14px; font-weight: 700; color: var(--hx-ink); margin-bottom: 6px; }
.hx-field > label span, .hx-label span{ font-weight: 500; color: var(--hx-muted); }
.hx-input{ width: 100%; height: 40px; padding: 0 12px; border-radius: var(--hx-r-sm); border: 1px solid var(--hx-control); background: var(--hx-card); font: inherit; font-size: 15px; color: var(--hx-ink); box-sizing: border-box; }
textarea.hx-input{ height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
select.hx-input{ -webkit-appearance: none; appearance: none; padding-right: 36px; background: var(--hx-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%235A6275' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 12px center no-repeat; cursor: pointer; }
.hx-input::placeholder{ color: #8A91A3; }
.hx-input:focus{ outline: none; border-color: var(--hx-blue); box-shadow: var(--hx-focus); }
.was-validated .hx-input:invalid{ border-color: var(--hx-red); }
.hx-hint{ margin: 6px 0 0; font-size: 13.5px; color: var(--hx-muted); }
.hx-form-foot{ display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hx-line-2); flex-wrap: wrap; }

/* workspace type cards: real radios, keyboard-reachable */
.hx-types{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-left: 38px; }
.hx-type{ position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--hx-r); border: 1.5px solid var(--hx-line); background: var(--hx-card); cursor: pointer; transition: border-color .15s, background .15s; }
.hx-type:hover{ border-color: var(--hx-control); }
.hx-type input{ position: absolute; opacity: 0; pointer-events: none; }
.hx-type:has(input:checked){ border-color: var(--hx-blue); background: var(--hx-tint-2); box-shadow: 0 0 0 3px rgba(33,47,176,.12); }
.hx-type:has(input:focus-visible){ box-shadow: var(--hx-focus); }
.hx-type.off{ cursor: not-allowed; opacity: .62; }
.hx-type-ico{ width: 42px; height: 42px; border-radius: 3px; display: grid; place-items: center; font-size: 20px; }
.hx-type b{ font-size: 15px; font-weight: 800; color: var(--hx-ink); }
.hx-type p{ margin: 0; font-size: 13.5px; color: var(--hx-muted); line-height: 1.45; }
.hx-type .opens{ margin-top: auto; font-size: 13px; font-weight: 700; color: var(--hx-muted); display: flex; align-items: center; gap: 6px; }
.hx-type .tick{ position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 2px; border: 2px solid var(--hx-control); display: grid; place-items: center; font-size: 13px; color: transparent; }
.hx-type:has(input:checked) .tick{ background: var(--hx-blue); border-color: var(--hx-blue); color: #FFFFFF; }
.hx-type .soon{ position: absolute; top: 14px; right: 14px; height: 22px; padding: 0 8px; border-radius: 0; background: var(--hx-line-2); color: var(--hx-muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.hx-indent{ margin-left: 38px; }
.hx-steps{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.hx-steps li{ position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 18px; }
.hx-steps li::before{ content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1.5px; background: var(--hx-line); }
.hx-steps li:last-child{ padding-bottom: 0; } .hx-steps li:last-child::before{ display: none; }
.hx-steps .n{ width: 30px; height: 30px; border-radius: 2px; display: grid; place-items: center; background: var(--hx-tint); color: var(--hx-link); font-size: 14px; font-weight: 800; }
.hx-steps b{ display: block; font-size: 15px; font-weight: 700; color: var(--hx-ink); }
.hx-steps span{ font-size: 14px; color: var(--hx-muted); line-height: 1.45; }

/* support */
.hx-mini-stats{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hx-mini{ display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--hx-r); background: var(--hx-card); border: 1px solid var(--hx-line); box-shadow: var(--hx-shadow); }
.hx-mini b{ display: block; font-size: 22px; font-weight: 800; color: var(--hx-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hx-mini span{ font-size: 13.5px; color: var(--hx-muted); }
.hx-mini .hx-stat-ico{ width: 40px; height: 40px; font-size: 18px; }
.hx-chips{ display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 20px 4px; }
.hx-chip{ height: 32px; padding: 0 12px; border-radius: var(--hx-r-sm); border: 1px solid var(--hx-line); background: var(--hx-card); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--hx-text); cursor: pointer; }
.hx-chip em{ font-style: normal; font-weight: 800; margin-left: 4px; }
.hx-chip.on{ background: var(--hx-navy); border-color: var(--hx-navy); color: #FFFFFF; }
[data-bs-theme="dark"] .hx-chip.on{ background: var(--hx-blue); border-color: var(--hx-blue); }
.hx-tickets{ padding: 6px 20px 12px; }
.hx-ticket{ display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--hx-line-2); color: var(--hx-ink) !important; }
.hx-ticket:last-child{ border-bottom: 0; }
.hx-ticket[hidden]{ display: none; }
.hx-ticket:hover .hx-ticket-s{ color: var(--hx-link); }
.hx-ticket .hx-ws-tile{ background: var(--hx-tint); color: var(--hx-link); width: 40px; height: 40px; }
.hx-ticket-s{ display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-ticket-m{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; font-size: 13.5px; color: var(--hx-muted); }
.hx-ticket-l{ display: block; font-size: 14px; color: var(--hx-muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-ticket-r{ text-align: right; font-size: 13.5px; color: var(--hx-muted); white-space: nowrap; }
.hx-ticket-r .bi{ margin-left: 8px; }
.hx-pill{ display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 2px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.hx-pill::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hx-pill.p-wait{ background: var(--hx-amber-bg); color: var(--hx-amber); }
.hx-pill.p-prog{ background: var(--hx-tint); color: var(--hx-link); }
.hx-pill.p-done{ background: var(--hx-green-bg); color: var(--hx-green); }
.hx-pill.p-cat{ background: var(--hx-line-2); color: var(--hx-text); }
.hx-pill.p-cat::before{ display: none; }
.hx-cats{ display: grid; gap: 8px; margin-top: 14px; }
.hx-cats a{ display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--hx-r-sm); border: 1px solid var(--hx-line); color: var(--hx-ink) !important; font-size: 14.5px; font-weight: 700; }
.hx-cats a:hover{ border-color: var(--hx-control); background: var(--hx-tint-2); }
.hx-cats a .bi:first-child{ font-size: 17px; color: var(--hx-link); width: 20px; text-align: center; }
.hx-cats a .bi-chevron-right{ margin-left: auto; font-size: 13px; color: var(--hx-muted); }
.hx-cats a small{ display: block; font-size: 13px; font-weight: 500; color: var(--hx-muted); }
.hx-choice-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hx-choice{ position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--hx-r-sm); border: 1.5px solid var(--hx-line); cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--hx-ink); background: var(--hx-card); }
.hx-choice input{ position: absolute; opacity: 0; pointer-events: none; }
.hx-choice .bi{ font-size: 17px; color: var(--hx-link); }
.hx-choice:has(input:checked){ border-color: var(--hx-blue); background: var(--hx-tint-2); }
.hx-choice:has(input:focus-visible){ box-shadow: var(--hx-focus); }
[data-bs-theme="dark"] .hx-ticket:hover .hx-ticket-s, [data-bs-theme="dark"] .hx-ws-name:hover{ color: #A9B2FF !important; }

/* older page content inside the new shell (Settings) */
.hx code{ color: var(--hx-link); background: var(--hx-tint); padding: 1px 5px; border-radius: 2px; }
[data-bs-theme="dark"] .hx form[action$="delete_account"] .wx-btn{ background: #B42318 !important; border-color: #B42318 !important; color: #FFFFFF !important; }

/* settings */
.hx-grid2{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.hx-avatar-lg{ width: 64px; height: 64px; font-size: 24px; }
.hx-photo{ display: flex; gap: 18px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--hx-line-2); }
.hx-photo-row{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hx-file{ max-width: 320px; padding: 6px 8px; height: auto; font-size: 14px; color: var(--hx-muted); cursor: pointer; }
.hx-file::file-selector-button{ font: inherit; font-weight: 600; font-size: 13.5px; height: 32px; padding: 0 14px; margin-right: 12px; border: 1px solid var(--hx-control);
  border-radius: 3px; background: var(--hx-tint-2); color: var(--hx-ink); cursor: pointer; transition: background .15s, border-color .15s; }
.hx-file:hover::file-selector-button{ background: var(--hx-tint); border-color: var(--hx-blue-300); }
.hx-form-block .hx-form-foot, .hx-indent .hx-form-foot{ margin-top: 8px; padding-top: 16px; }
.hx-sec-n .bi{ font-size: 14px; }
.hx-danger{ border-color: #F3C9C5; }
[data-bs-theme="dark"] .hx-danger{ border-color: rgba(220,38,38,.4); }
.hx-danger .hx-sec-n{ background: var(--hx-red-bg); color: var(--hx-red); }
.hx-btn-danger{ background: #B42318; border-color: #B42318; }
.hx-btn-danger:hover{ background: #912018; border-color: #912018; }
.hx-alert.bad{ background: var(--hx-red-bg); border-color: transparent; color: var(--hx-red); }
.hx-alert.good{ background: var(--hx-green-bg); border-color: transparent; color: var(--hx-green); }
.hx-acct{ text-align: center; }
.hx-acct .hx-avatar{ margin: 4px auto 12px; width: 52px; height: 52px; font-size: 20px; }
.hx-acct > b{ display: block; font-size: 17px; font-weight: 800; color: var(--hx-ink); }
.hx-acct > span.em{ display: block; font-size: 14px; color: var(--hx-muted); margin-top: 2px; word-break: break-all; }
.hx-acct dl{ margin: 18px 0 0; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; font-size: 14.5px; border-top: 1px solid var(--hx-line-2); padding-top: 16px; }
.hx-acct dt{ color: var(--hx-muted); font-weight: 500; }
.hx-acct dd{ margin: 0; text-align: right; color: var(--hx-ink); font-weight: 700; }
.hx-acct dd.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 600; word-break: break-all; }
.hx-acct dd .hx-link{ margin-left: 6px; }

/* collaborators */
.hx-roles{ grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; margin-bottom: 4px; }
.hx-remove{ color: var(--hx-red) !important; }
.hx-kvs{ margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; font-size: 14.5px; }
.hx-kvs dt{ color: var(--hx-muted); font-weight: 500; }
.hx-kvs dd{ margin: 0; text-align: right; color: var(--hx-ink); font-weight: 700; }

/* "Confirm your e-mail address" banner (app/Templates/_verify_banner.html) */
#verify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 32px 0; padding: 11px 14px; border-radius: var(--hx-r); background: var(--hx-tint); border: 1px solid var(--hx-line); color: var(--hx-ink); font-size: 14.5px; }
#verify-banner form { margin: 0; }
#verify-banner .hx-btn { width: auto; }

/* ---------------------------------------------------------------- refinements for the inner pages (true-size scale) */
.hx-pagehead{ margin-bottom: 24px; }
.hx-h1{ font-size: 30px; font-weight: 700; letter-spacing: -.024em; }
.hx-lead{ font-size: 15.5px; }
.hx-cols{ grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.hx-stack{ gap: 20px; }
.hx-sec-h{ font-size: 18px; font-weight: 700; letter-spacing: -.012em; }
.hx-sec-n{ width: 30px; height: 30px; font-size: 14px; }
.hx-sec-sub{ margin-left: 42px; }
.hx-field > label, .hx-label{ font-weight: 600; margin-bottom: 7px; }
.hx-input{ height: 44px; border-radius: var(--hx-r-sm); font-size: 15px; }
textarea.hx-input{ min-height: 120px; padding: 12px 14px; }
.hx-input::placeholder{ color: var(--hx-faint); }
.hx-types{ gap: 14px; margin-left: 42px; }
.hx-type{ padding: 18px; border-radius: var(--hx-r); }
.hx-type-ico{ width: 46px; height: 46px; border-radius: 3px; font-size: 21px; }
.hx-indent{ margin-left: 42px; }
.hx-steps .n{ width: 32px; height: 32px; }
.hx-steps li{ grid-template-columns: 32px 1fr; }
.hx-steps li::before{ left: 15px; top: 32px; }
.hx-mini{ border-radius: var(--hx-r); padding: 16px 18px; }
.hx-chip{ height: 34px; border-radius: 2px; padding: 0 14px; }
.hx-chip.on{ background: var(--hx-ink); border-color: var(--hx-ink); }
.hx-ticket{ grid-template-columns: 44px minmax(0, 1fr) auto; }
.hx-ticket .hx-ws-tile{ width: 44px; height: 44px; }
.hx-pill{ height: 24px; padding: 0 10px; border-radius: 2px; }
.hx-cats a{ padding: 13px 15px; border-radius: var(--hx-r-md); }
.hx-choice{ padding: 13px 15px; border-radius: var(--hx-r-md); }
.hx-photo{ gap: 20px; }
.hx-avatar-lg{ width: 72px; height: 72px; font-size: 28px; }
.hx-acct .hx-avatar{ width: 60px; height: 60px; font-size: 22px; }
.hx-btn-danger{ background: #B42318; border-color: #B42318; }
#verify-banner{ margin: 16px var(--hx-gutter) 0; padding: 13px 16px; border-radius: var(--hx-r-md); font-size: 14px; }

/* ---------------------------------------------------------------- layout steps (true size: every step is for the real window width) */
@media (max-width: 1360px){
  :root{ --hx-gutter: 28px; --hx-side-w: 236px; --hx-rail-w: 320px; }
}
@media (min-width: 1100px) and (max-width: 1499px){
  .hx-rail{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1500px){
  .hx-dash-grid{ grid-template-columns: minmax(0, 1fr) var(--hx-rail-w); }
  .hx-kpis{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1279px){
  .hx-cols{ grid-template-columns: 1fr; }
}
@media (max-width: 1199px){
  .hx-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px){
  .hx-rail{ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 1232px){
  .hx-table td, .hx-table th{ padding-left: 12px; padding-right: 12px; }
  .hx-table td:first-child{ min-width: 220px; }
  .hx-opp b{ max-width: 190px; }
}

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 900px){
  .hx-app{ grid-template-columns: 1fr; background: none; }
  .hx-main{ grid-column: 1; }
  .hx-side{ position: fixed; left: 0; top: 0; bottom: 0; width: 272px; height: 100vh; height: 100dvh; align-self: stretch; transform: translateX(-100%); transition: transform .2s ease; }
  .hx-app.side-open .hx-side{ transform: none; box-shadow: var(--hx-pop); }
  .hx-app.side-open .hx-scrim{ display: block; position: fixed; inset: 0; background: rgba(8,12,24,.5); z-index: 35; }
  .hx-burger{ display: grid; width: 38px; height: 38px; border-radius: var(--hx-r-sm); border: 1px solid var(--hx-line); background: var(--hx-card); color: var(--hx-ink); place-items: center; font-size: 20px; cursor: pointer; flex: none; }
  .hx-top{ height: auto; min-height: var(--hx-top-h); flex-wrap: wrap; padding: 9px 14px; gap: 10px; }
  .hx-crumb span, .hx-crumb .bi{ display: none; }
  .hx-top-right{ margin-left: auto; }
  .hx-top-search{ order: 3; flex: 1 1 100%; margin-left: 0; }
  .hx-kbd{ display: none; }
  .hx-btn{ height: 40px; }
  .hx-btn.sm{ height: 34px; }
  .hx-phead, .hx-dash-head{ padding: 20px 16px 0; }
  .hx .hx-phead h1{ font-size: 23px; }
  .hx .hx-dash-head h1{ font-size: 24px; }
  .hx-page{ padding: 16px 16px 40px; }
  .hx-dash-body{ padding: 16px 16px 28px; }
  #verify-banner{ margin: 10px 16px 0; }
  .hx-kpis{ gap: 10px; }
  .hx-kpi-val{ font-size: 25px; }
  .hx-rail{ grid-template-columns: minmax(0, 1fr); }
  .hx-ws-head{ padding: 16px 16px 0; }
  .hx-toolbar{ padding: 12px 16px; }
  .hx-filters .hx-select{ flex: 1 1 140px; }
  .hx-table-wrap{ overflow-x: visible; }
  .hx-table thead{ display: none; }
  .hx-table, .hx-table tbody, .hx-table tr, .hx-table td{ display: block; width: 100%; box-sizing: border-box; white-space: normal; }
  .hx-table tr{ padding: 14px 16px; border-bottom: 1px solid var(--hx-line-2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; align-items: center; }
  .hx-table tr[hidden]{ display: none; }
  .hx-table th:not(:first-child), .hx-table td:not(:first-child){ width: auto; white-space: normal; }
  .hx-table td, .hx-table td:first-child, .hx-table td:last-child{ border: 0; padding: 0; min-width: 0; }
  .hx-table tbody tr:hover td{ background: transparent; }
  .hx-table td:first-child{ grid-column: 1 / 3; }
  .hx-table td.act{ grid-column: 3; grid-row: 1; }
  .hx-table td.act .hx-acts{ justify-content: flex-end; }
  .hx-table td:has(.hx-opp .none){ display: none; }
  .hx-shared .hx-table tr{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-shared .hx-table td:first-child{ grid-column: 1 / -1; }
  .hx-shared .hx-table td.act{ grid-column: 1 / -1; grid-row: auto; }
  .hx-shared .hx-table td.act .hx-acts{ justify-content: flex-start; }
  .hx-opp b{ max-width: none; white-space: normal; }
  .hx-table-foot{ padding: 12px 16px; }
  .hx-first{ margin: 12px 16px 16px; }
  .hx-grid2{ grid-template-columns: 1fr; }
  .hx-photo{ flex-direction: column; align-items: flex-start; }
  .hx-roles{ grid-template-columns: 1fr; }
  .hx-types{ grid-template-columns: 1fr; margin-left: 0; }
  .hx-indent, .hx-sec-sub{ margin-left: 0; }
  .hx-mini-stats{ grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hx-mini{ flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .hx-ticket{ grid-template-columns: 1fr auto; }
  .hx-ticket .hx-ws-tile{ display: none; }
  .hx-tickets, .hx-chips{ padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 640px){
  .hx-table tr, .hx-shared .hx-table tr{ grid-template-columns: 1fr 1fr; }
  .hx-table td:first-child, .hx-table td.act{ grid-column: 1 / -1; }
  .hx-table td.act{ grid-row: auto; }
  .hx-table td.act .hx-acts{ justify-content: flex-start; }
  .hx-mine .hx-table td:nth-child(2){ grid-column: 1 / -1; order: 3; }
  .hx-mine .hx-table td:nth-child(3){ order: 1; }
  .hx-mine .hx-table td.act{ order: 4; }
  .hx-tabs{ width: 100%; box-sizing: border-box; }
  .hx-tabs button{ flex: 1 1 auto; justify-content: center; padding: 0 7px; gap: 5px; font-size: 13px; }
}
@media (max-width: 420px){
  .hx-kpis{ grid-template-columns: 1fr 1fr; }
  .hx-kpi{ padding: 12px; }
  .hx-kpi-top{ font-size: 12.5px; gap: 7px; }
  .hx-qa{ grid-template-columns: 1fr 1fr 1fr; }
}
@media (hover: none){ .hx-kbd{ display: none; } }
@media (prefers-reduced-motion: reduce){ .hx-side, .hx-kpi, .hx-kpi .go, .hx-type{ transition: none; } }

/* ---------------------------------------------------------------- phones and small tablets: the new scale */
@media (max-width: 900px){
  :root{ --hx-gutter: 16px; }
  .hx-top{ padding: 9px 14px; }
  .hx-kpi{ padding: 16px; }
  .hx-kpi-val{ font-size: 30px; margin-top: 10px; }
  .hx-iconbtn, .hx-bell{ width: 40px; height: 40px; }
  .hx-search{ height: 42px; }
  .hx .hx-phead h1{ font-size: 25px; }
  .hx .hx-dash-head h1{ font-size: 27px; }
  .hx-ws-head{ padding: 18px 16px 0; }
  .hx-toolbar{ padding: 14px 16px; }
  .hx-table-foot{ padding: 14px 16px; }
  .hx-first{ margin: 14px 16px 18px; }
  .hx-ins-grid{ padding: 14px 16px 18px; }
  .hx-table th:first-child, .hx-table td:first-child, .hx-table th:last-child, .hx-table td:last-child{ padding-left: 0; padding-right: 0; }
  .hx-table tr{ padding: 16px; }
}
@media (max-width: 420px){
  .hx-kpi-val{ font-size: 27px; }
  .hx-kpi-top{ font-size: 13px; }
}

/* Dashboard header buttons, every laptop/PC width (901px and up; phones keep their own layout): the buttons sit on the very same columns as the
   summary cards under them. "Find opportunities" is as wide as and sits exactly over the Workspaces card; "New workspace" is as wide as and sits
   exactly over the Completed Drafts card (same columns, same 16px gap). The columns follow the cards: 2 up to 1199px, 4 from 1200px, and from 1500px
   three equal columns plus the right-hand rail. */
@media (min-width: 901px){
}
@media (min-width: 1200px){
}
@media (min-width: 1500px){
}

/* Settings, profile photo: the file input ends exactly where the Full name input ends (the left column of the two-column form below), and the
   Upload button sits right after it with its top and bottom edges on the file input's top and bottom edges. */
@media (min-width: 901px){
  .hx-photo > div{ flex: 0 0 calc(50% - 8px - 72px - 20px); min-width: 0; }  /* left column (half less half the 16px gap) minus the 72px avatar and the 20px gap */
  .hx-photo-row{ display: block; position: relative; }
  .hx-photo-row .hx-file{ display: block; width: 100%; max-width: none; box-sizing: border-box; }
  .hx-photo-row > .hx-btn{ position: absolute; left: calc(100% + 10px); top: 0; bottom: 0; height: auto; box-sizing: border-box; }
}


/* Full-width opportunity discovery action: aligns to the complete three-card KPI grid. */
.hx-find-opportunities{ display:flex; align-items:center; gap:16px; width:100%; min-width:0; box-sizing:border-box; padding:16px 20px;
  background:linear-gradient(105deg, var(--hx-card) 0%, var(--hx-tint-2) 100%); border:1px solid var(--hx-line); border-left:4px solid var(--hx-blue);
  color:var(--hx-ink) !important; box-shadow:var(--hx-shadow); transition:border-color .18s, box-shadow .18s, transform .18s; }
.hx-find-opportunities:hover{ border-color:var(--hx-control); border-left-color:var(--hx-blue); box-shadow:var(--hx-shadow-lg); transform:translateY(-1px); }
.hx-find-opportunities-icon{ width:42px; height:42px; flex:none; display:grid; place-items:center; background:var(--hx-tint); color:var(--hx-link); font-size:19px; }
.hx-find-opportunities-copy{ min-width:0; display:grid; gap:2px; }
.hx-find-opportunities-copy b{ font-size:15px; font-weight:750; letter-spacing:-.01em; }
.hx-find-opportunities-copy small{ color:var(--hx-muted); font-size:13px; }
.hx-find-opportunities-action{ margin-left:auto; flex:none; display:flex; align-items:center; gap:10px; color:var(--hx-link); font-size:13px; font-weight:700; }
@media(max-width:600px){ .hx-find-opportunities{ align-items:flex-start; flex-wrap:wrap; padding:14px; } .hx-find-opportunities-action{ flex:1 1 calc(100% - 58px); width:auto; margin:2px 0 0 58px; } }

/* the number beside "Approvals" in a managed client's sidebar */
.hx-nav-badge{ margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #D92D20; color: #FFFFFF; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; font-style: normal; }
.is-compact .hx-nav-badge{ position: absolute; top: 4px; right: 4px; min-width: 16px; padding: 0 4px; margin: 0; font-size: 10px; line-height: 16px; }
