/* Order and CRM hub interactive demo - styles for assets/hub-demo.js.
   Loaded by case-studies/order-and-crm-hub/ (and case-studies/ for the card
   thumbnail), and again inside each preview's shadow root so none of the
   site's own rules can reach the workspace. Sample data only. */
/* ---- the page side: preview, call to action and modal ----
   .hxs-shot looks like a screenshot: it is the workspace itself, drawn at
   1280 x 800 and scaled to fit. Clicking it opens .hxs-modal, the same
   workspace near full screen and live. */
#site .hxs-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; }
#site .hxs-shot .shot { box-shadow: 0 1px 2px rgba(11,27,51,.05), 0 8px 18px -14px rgba(11,27,51,.22); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
#site .hxs-shot:hover .shot, #site .hxs-shot:focus-visible .shot { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(11,27,51,.05), 0 12px 24px -16px rgba(11,27,51,.3); }
/* the caption under the demo: a readable size, clear of the shadow above */
#site [data-hx] .shotcap { max-width: 72ch; margin: 22px 2px 0; font-size: 15px; line-height: 1.6; }
#site .hxs-shot:focus-visible { outline: none; }
#site .hxs-thumb { position: relative; display: block; overflow: hidden; pointer-events: none; }
#site .hxs-cta { position: absolute; left: 50%; top: 54%; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 100px;
  background: rgba(11,27,51,.88); backdrop-filter: blur(8px); color: #fff; box-shadow: 0 20px 40px -18px rgba(11,27,51,.7);
  transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s; white-space: nowrap; }
#site .hxs-cta i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cb); }
#site .hxs-cta i svg { width: 14px; height: 14px; fill: #fff; }
#site .hxs-cta b { display: block; font-size: 15px; font-weight: 600; }
#site .hxs-cta small { display: block; font-size: 12.5px; color: #B9C6DC; }
#site .hxs-shot:hover .hxs-cta, #site .hxs-shot:focus-visible .hxs-cta { transform: translate(-50%, -50%) scale(1.04); background: rgba(11,27,51,.95); }
#site .hxs-shot:focus-visible .hxs-cta { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--cb); }

/* the static thumbnail anywhere else (e.g. the case-studies/ card): give
   the element [data-hub-thumb] and the class hx-card */
.hx-card { position: relative; display: block; overflow: hidden; aspect-ratio: 600 / 380; border-radius: 14px; background: #fff;
  border: 1px solid rgba(11,27,51,.12); box-shadow: 0 30px 60px -34px rgba(11,27,51,.4); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
#site a:hover > .hx-card, #site a:focus-visible > .hx-card { transform: translateY(-4px); box-shadow: 0 40px 70px -36px rgba(11,27,51,.5); }
@media (prefers-reduced-motion: reduce) { #site a:hover > .hx-card, #site a:focus-visible > .hx-card { transform: none; } }

html.hxs-lock, html.hxs-lock body { overflow: hidden; }
.hxs-modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 2vh 2vw; background: rgba(8,16,32,.62); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .22s; font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif; }
.hxs-modal[hidden] { display: none; }
.hxs-modal.on { opacity: 1; }
.hxs-win { display: flex; flex-direction: column; width: min(1440px, 96vw); height: min(900px, 94vh); overflow: hidden; border-radius: 16px; background: #fff;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.6); transform: translateY(14px) scale(.985); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.hxs-modal.on .hxs-win { transform: none; }
.hxs-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: #0B1B33; color: #fff; }
.hxs-bar p { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; color: #C9D4E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxs-bar p b { color: #fff; font-weight: 600; margin-right: 8px; }
.hxs-bar .tag { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 100px; background: rgba(159,232,112,.18); color: #CDF5B0; font-size: 12.5px; }
@media (max-width: 560px) { .hxs-bar .hxs-sub { display: none; } .hxs-bar .tag { margin-left: 0; } }
.hxs-x { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.hxs-x:hover { background: rgba(255,255,255,.16); }
.hxs-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.hxs-win .hx { flex: 1; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .hxs-modal, .hxs-win { transition: none; } }

/* ---- the workspace ---- */
.hx, .hx * { box-sizing: border-box; }
.hx { --ink: #1F1F1D; --mu: #6F6E69; --fa: #9B9A96; --ln: #ECEBE8; --ln2: #E2E1DD; --sb: #F8F8F6; --hv: #F1F0EE; --ac: #4F5BD5; --acs: rgba(79,91,213,.08);
  --ok: #3C8D5A; --warn: #C98A1B; --bad: #D1503B; --none: #B6B5B0;
  position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); overflow: hidden; background: #fff; color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.45; text-align: left; font-variant-numeric: tabular-nums; }
.hx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hx button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
.hx button:focus-visible, .hx tr:focus-visible, .hx input:focus-visible, .hx textarea:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.hx p, .hx h2, .hx h3, .hx h4, .hx ul, .hx ol, .hx dl, .hx dd, .hx table { margin: 0; }
.hx ul, .hx ol { list-style: none; padding: 0; }
.hx kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--ln2); border-radius: 5px; background: #fff; font-family: inherit; font-size: 12.5px; color: var(--mu); line-height: 1.4; }
.hx .mu { color: var(--mu); }
.hx.still *, .hx.still *::before { animation: none !important; transition: none !important; }

/* avatars, status and tags */
.hx .av { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  background: hsl(var(--h) 45% 93%); color: hsl(var(--h) 35% 34%); }
.hx .av.lg { width: 40px; height: 40px; font-size: 14px; }
.hx .sq { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--hv); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--mu); }
.hx .st { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px 0 8px; border: 1px solid var(--ln); border-radius: 6px; background: #fff; font-size: 13px; color: #3D3C39; white-space: nowrap; }
.hx .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--none); }
.hx .st.ok i { background: var(--ok); }
.hx .st.warn i { background: var(--warn); }
.hx .st.bad i { background: var(--bad); }
.hx .st.info i { background: var(--ac); }
.hx .tag { display: inline-block; padding: 1px 8px; border-radius: 5px; background: var(--hv); font-size: 12.5px; font-weight: 500; color: var(--mu); }

/* sidebar */
.hx .sb { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 12px 10px; background: var(--sb); border-right: 1px solid var(--ln); }
/* the app's name as a simple wordmark: a small four-tile mark and "Central"
   on one line, in a strip the same height as the top bar so its hairline
   runs straight across - an app title, not a workspace switcher */
.hx .brand { display: flex; align-items: center; gap: 10px; height: 50px; margin: -12px -10px 8px; padding: 0 18px; border-bottom: 1px solid var(--ln); }
.hx .brand .logo { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 20px; height: 20px; }
.hx .brand .logo i { border-radius: 3px; background: var(--ac); }
.hx .brand .logo i:nth-child(2) { opacity: .55; }
.hx .brand .logo i:nth-child(3) { opacity: .3; }
.hx .brand .logo i:nth-child(4) { opacity: .8; }
.hx .brand b { font-size: 15.5px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.hx .srch { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--ln2); border-radius: 8px; background: #fff; color: var(--mu); font-size: 13.5px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.hx .srch span { flex: 1; }
.hx .srch:hover { border-color: #D2D1CC; }
.hx .sb nav { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.hx .grp { display: grid; gap: 1px; }
.hx .gh { padding: 0 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--fa); }
.hx .ni { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 7px; font-size: 14px; color: #44433F; transition: background .12s; }
.hx .ni svg { color: #8D8C87; }
.hx .ni span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx .ni em { min-width: 20px; padding: 0 6px; border-radius: 10px; font-style: normal; font-size: 12.5px; font-weight: 600; text-align: center; color: var(--mu); background: rgba(0,0,0,.05); }
.hx .ni em.hot { background: rgba(209,80,59,.12); color: #B23F2C; }
.hx .ni:hover { background: var(--hv); }
.hx .ni.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--ln2), 0 1px 3px rgba(0,0,0,.04); }
.hx .ni.on svg { color: var(--ac); }
.hx .sb { position: relative; }
.hx .me { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 8px; border-radius: 8px; box-shadow: 0 -7px 0 -6px var(--ln); transition: background .12s; }
.hx .me:hover, .hx .me.on { background: var(--hv); }
.hx .me > span { flex: 1; min-width: 0; }
.hx .me b { display: block; font-size: 13.5px; font-weight: 600; }
.hx .me small { display: block; font-size: 12.5px; color: var(--fa); }
.hx .me > svg { color: var(--fa); }

/* popovers: the account menu and notifications */
.hx .pop { position: absolute; z-index: 50; padding: 5px; border: 1px solid var(--ln2); border-radius: 12px; background: #fff;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,.24), 0 2px 6px rgba(0,0,0,.05); animation: hxpop .14s ease-out; }
.hx .pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 10px; border-radius: 7px; font-size: 14px; color: #3D3C39; }
.hx .pop button:hover:not([disabled]), .hx .pop button:focus-visible { background: var(--hv); outline: none; }
.hx .pop button svg { color: var(--mu); }
.hx .pop button[disabled] { cursor: default; color: var(--fa); }
.hx .pop button[disabled] svg { color: var(--none); }
.hx .pop kbd, .hx .pop .tag { margin-left: auto; }
.hx .pme { left: 10px; bottom: 60px; width: 252px; transform-origin: bottom left; }
.hx .pmh { display: flex; align-items: center; gap: 11px; padding: 9px 10px 11px; }
.hx .pmh b { display: block; font-size: 14px; font-weight: 600; }
.hx .pmh small { display: block; font-size: 13px; color: var(--fa); }
.hx .pms { padding: 4px 0; border-top: 1px solid var(--ln); }
.hx .pms:last-child { padding-bottom: 0; }
.hx .pnt { top: 46px; right: 16px; width: 372px; max-width: calc(100% - 24px); padding: 0; overflow: hidden; }
.hx .pnh { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--ln); }
.hx .pnh b { font-size: 14.5px; font-weight: 600; }
.hx .pnh em { font-style: normal; font-size: 13px; color: var(--fa); }
.hx .pnh .lnk { margin-left: auto; width: auto; min-height: 0; padding: 2px 6px; font-size: 13px; color: var(--ac); }
.hx .pnh .lnk:hover { background: var(--acs); }
.hx .pnt ul { padding: 5px; max-height: 420px; overflow: auto; }
.hx .pnt li button { align-items: flex-start; gap: 11px; padding: 9px 10px; line-height: 1.4; }
.hx .pnt li button > span { flex: 1; min-width: 0; }
.hx .pnt li button b { font-weight: 600; color: var(--ink); }
.hx .pnt li small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--fa); }
.hx .pnt .ni-i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--hv); }
.hx .pnt .ni-i svg { width: 15px; height: 15px; }
.hx .pnt button.un { color: var(--ink); }
.hx .pnt button.un .ni-i { background: var(--acs); }
.hx .pnt button.un .ni-i svg { color: var(--ac); }
.hx .pnt .dot { flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--ac); }

/* main column */
.hx .mn { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hx .top { display: flex; align-items: center; gap: 16px; flex: none; height: 50px; padding: 0 20px 0 28px; border-bottom: 1px solid var(--ln); }
.hx .crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mu); white-space: nowrap; overflow: hidden; }
.hx .crumb svg { color: var(--fa); }
.hx .crumb span { color: var(--fa); }
.hx .sync { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border-radius: 8px; font-size: 13px; color: var(--mu); white-space: nowrap; transition: background .12s; }
.hx .sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(60,141,90,.14); }
.hx .ib { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--mu); }
.hx .ib:hover, .hx .ib.on { background: var(--hv); color: var(--ink); }
.hx .ib i { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 2px #fff; }
.hx .pg { flex: 1; min-height: 0; overflow: auto; padding: 28px 40px 40px; }
.hx .ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.hx .ph h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hx .ph p { margin-top: 4px; font-size: 14px; color: var(--mu); }
.hx .seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--hv); }
.hx .seg button { height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13.5px; color: var(--mu); transition: color .12s, background .12s; }
.hx .seg button:hover { color: var(--ink); }
.hx .seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hx .ph .pri svg { margin-right: 6px; width: 15px; height: 15px; stroke-width: 1.8; }
.hx .ph .sf { width: 280px; }

/* home */
.hx .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hx .kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--ln); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.hx .kpi:hover { border-color: var(--ln2); box-shadow: 0 6px 18px -12px rgba(0,0,0,.18); }
.hx .kpi .kh { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mu); }
.hx .kpi .kh svg { color: var(--fa); }
.hx .kpi b { margin-top: 6px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hx .kpi small { font-size: 13px; color: var(--fa); }
.hx .row2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.hx .row2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx .card { padding: 18px 20px; border: 1px solid var(--ln); border-radius: 12px; }
.hx .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hx .ch h3 { font-size: 15px; font-weight: 600; }
.hx .ch span { font-size: 13px; color: var(--fa); }
.hx .lnk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--mu); }
.hx .lnk svg { width: 14px; height: 14px; }
.hx .lnk:hover { color: var(--ac); }
.hx svg.bars { display: block; width: 100%; height: auto; stroke: none; stroke-width: 0; }
.hx .bars line { stroke: var(--ln2); stroke-width: 1; }
.hx .bars line.g { stroke-dasharray: 3 4; stroke: var(--ln); }
.hx .bars rect { fill: #E7E6F6; transition: fill .2s; }
.hx .bars g:hover rect { fill: #CFD2F2; }
.hx .bars .cur rect { fill: var(--ac); }
.hx .bars text { font-family: inherit; font-size: 13.5px; fill: var(--fa); text-anchor: middle; }
.hx .bars text.v { fill: var(--mu); font-weight: 600; }
.hx .bars .cur text.v { fill: var(--ac); }
.hx .bars.anim rect { transform-box: fill-box; transform-origin: 50% 100%; animation: hxgrow .5s cubic-bezier(.2,.7,.2,1) both; }
.hx .bars.anim text.v { animation: hxfade .5s ease-out both; }
.hx .mix.anim li > i i { animation: hxbar .5s cubic-bezier(.2,.7,.2,1) both; transform-origin: 0 50%; }
@keyframes hxgrow { from { transform: scaleY(0); } }
@keyframes hxbar { from { transform: scaleX(0); } }
.hx .mix { display: grid; gap: 13px; padding-top: 4px; }
.hx .mix li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13.5px; }
.hx .mix b { font-weight: 600; }
.hx .mix li > i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--hv); overflow: hidden; }
.hx .mix li > i i { display: block; height: 100%; border-radius: 3px; background: var(--ac); opacity: .85; }
.hx .mix li + li > i i { opacity: .45; }
.hx .tl li { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 0; border-top: 1px solid var(--ln); font-size: 14px; }
.hx .tl li:first-child { border-top: 0; }
.hx .tl li > span { flex: 1; min-width: 0; }
.hx .tl li em { font-style: normal; font-size: 13px; color: var(--fa); white-space: nowrap; }
.hx .tl li em.late { color: #B23F2C; }
.hx .tl li.empty { color: var(--fa); }
.hx .cbx { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid #C9C8C3; border-radius: 5px; color: transparent; transition: background .15s, border-color .15s; }
.hx .cbx svg { width: 12px; height: 12px; stroke-width: 2.4; }
.hx .cbx:hover { border-color: var(--ac); }
.hx .tk.done .cbx { background: var(--ac); border-color: var(--ac); color: #fff; }
.hx .tk.done > span { color: var(--fa); text-decoration: line-through; text-decoration-color: var(--ln2); }
.hx .oid { margin-left: 4px; padding: 0 6px; border-radius: 5px; background: var(--hv); font-size: 12.5px; color: var(--mu); }
.hx .oid:hover { background: var(--acs); color: var(--ac); }
.hx .feed li { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 0; border-top: 1px solid var(--ln); font-size: 14px; color: #44433F; }
.hx .feed li:first-child { border-top: 0; }
.hx .feed li > svg { color: var(--fa); }
.hx .feed li > span { flex: 1; min-width: 0; }
.hx .feed li b { font-weight: 600; color: var(--ink); }
.hx .feed li em { font-style: normal; font-size: 13px; color: var(--fa); white-space: nowrap; }

/* tasks */
.hx .tgrp { max-width: 760px; }
.hx .tgrp + .tgrp { margin-top: 26px; }
.hx .tgrp h3 { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ln); font-size: 14px; font-weight: 600; }
.hx .tgrp h3 span { font-size: 13px; font-weight: 500; color: var(--fa); }
.hx .tgrp .tl li:first-child { border-top: 0; }

/* pipeline */
.hx .pg-pipeline { padding-left: 28px; padding-right: 28px; }
.hx .kb { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.hx .col { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--sb); }
.hx .col h3 { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 4px; font-size: 13px; }
.hx .col h3 .st { border: 0; background: none; padding: 0; font-weight: 600; color: var(--ink); }
.hx .col h3 > span:last-child { font-size: 13px; font-weight: 500; color: var(--fa); }
.hx .kc { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--ln); border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .15s, border-color .15s; }
.hx .kc:hover { border-color: var(--ln2); box-shadow: 0 6px 16px -10px rgba(0,0,0,.2); }
.hx .kc.on { border-color: var(--ac); box-shadow: 0 0 0 3px var(--acs); }
.hx .kt { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mu); }
.hx .kt b { font-weight: 600; }
.hx .kt em { font-style: normal; font-size: 12.5px; color: var(--fa); }
.hx .kt svg { width: 14px; height: 14px; color: var(--bad); }
.hx .ki { font-size: 14px; font-weight: 500; line-height: 1.35; }
.hx .kf { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mu); }
.hx .kf .av { width: 20px; height: 20px; font-size: 12.5px; }
.hx .kf > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx .kf em { font-style: normal; font-size: 12.5px; color: var(--fa); white-space: nowrap; }

/* orders: tabs, channel menu and search */
.hx .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--ln); }
.hx .tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hx .tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; font-size: 14px; color: var(--mu); white-space: nowrap; }
.hx .tabs button em { font-style: normal; font-size: 12.5px; color: var(--fa); }
.hx .tabs button:hover { color: var(--ink); }
.hx .tabs button.on { color: var(--ink); font-weight: 600; }
.hx .tabs button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.hx .tools { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.hx .dd { position: relative; }
.hx .ddb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--ln2); border-radius: 8px; font-size: 13.5px; color: #44433F; white-space: nowrap; }
.hx .ddb svg { width: 14px; height: 14px; color: var(--fa); }
.hx .ddb:hover { background: var(--hv); }
.hx .ddb.set { border-color: rgba(79,91,213,.35); background: var(--acs); color: var(--ac); }
.hx .ddm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 220px; padding: 5px; border: 1px solid var(--ln2); border-radius: 10px; background: #fff;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.05); animation: hxpop .14s ease-out; }
.hx .ddm button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 34px; padding: 0 10px; border-radius: 6px; font-size: 14px; }
.hx .ddm button:hover, .hx .ddm button:focus-visible { background: var(--hv); outline: none; }
.hx .ddm svg { color: var(--ac); }
@keyframes hxpop { from { opacity: 0; transform: translateY(-4px); } }
.hx .sf { display: flex; align-items: center; gap: 8px; width: 270px; height: 32px; padding: 0 10px; border: 1px solid var(--ln2); border-radius: 8px; color: var(--fa); }
.hx .sf:focus-within { border-color: var(--ac); box-shadow: 0 0 0 3px var(--acs); }
.hx .sf input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); }
.hx .sf input::placeholder { color: var(--fa); }
.hx .sf input::-webkit-search-cancel-button { cursor: pointer; }

/* tables */
.hx .tbl { margin: 0 -8px; overflow-x: auto; }
.hx table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.hx th { padding: 10px 8px; border-bottom: 1px solid var(--ln); font-size: 13px; font-weight: 500; color: var(--fa); text-align: left; white-space: nowrap; }
.hx td { padding: 9px 8px; border-bottom: 1px solid var(--ln); vertical-align: middle; white-space: nowrap; }
.hx .tt { text-align: right; }
.hx th .sh { display: inline-flex; align-items: center; gap: 4px; margin: -2px -4px; padding: 2px 4px; border-radius: 5px; font-weight: 500; color: var(--fa); }
.hx th .sh svg { width: 13px; height: 13px; opacity: 0; transition: opacity .12s, transform .15s; }
.hx th .sh:hover { color: var(--ink); background: var(--hv); }
.hx th .sh:hover svg { opacity: .45; }
.hx th .sh.on { color: var(--ink); }
.hx th .sh.on svg { opacity: 1; color: var(--ac); }
.hx th .sh.desc svg { transform: rotate(180deg); }
.hx th.tt .sh { flex-direction: row-reverse; }
.hx.compact td { padding-top: 5px; padding-bottom: 5px; }
.hx.compact .tl li, .hx.compact .feed li { min-height: 36px; padding: 3px 0; }
.hx tbody tr { transition: background .12s; }
.hx tbody tr[tabindex] { cursor: pointer; }
.hx tbody tr[tabindex]:hover, .hx tbody tr.on { background: #FAFAF9; }
.hx tbody tr.on td:first-child { box-shadow: inset 2px 0 0 var(--ac); }
.hx td.id b { font-weight: 600; }
.hx td.id small { display: block; font-size: 12.5px; color: var(--fa); }
.hx td.id .fl { display: inline-grid; vertical-align: -2px; margin-left: 6px; color: var(--bad); }
.hx td.id .fl svg { width: 14px; height: 14px; }
.hx td.cu { display: table-cell; }
.hx td.cu > * { vertical-align: middle; }
.hx td.cu > span:not(.tag) { margin-left: 9px; }
.hx td.cu .tag { margin-left: 8px; }
.hx td.it span { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.hx td.it em { font-style: normal; font-size: 12.5px; color: var(--fa); }
.hx tr.none td { padding: 40px 8px; text-align: center; color: var(--fa); white-space: normal; cursor: default; }
.hx tr.none b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); font-weight: 600; }

/* side panel: order or customer */
.hx .scrim { display: none; }
.hx .pn { position: absolute; top: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-direction: column; width: 440px; max-width: 100%; background: #fff; border-left: 1px solid var(--ln2);
  box-shadow: -24px 0 60px -30px rgba(0,0,0,.22); animation: hxin .22s cubic-bezier(.2,.7,.2,1); }
@keyframes hxin { from { transform: translateX(24px); opacity: 0; } }
.hx .pn-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 10px; }
.hx .pn-h .who { display: flex; align-items: center; gap: 12px; }
.hx .eyebrow { font-size: 13px; color: var(--fa); }
.hx .pn-h h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.hx .ix { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--mu); }
.hx .ix:hover { background: var(--hv); }
.hx .pn-st { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 14px; }
.hx .pn-act { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 16px; border-bottom: 1px solid var(--ln); }
.hx .pri { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; transition: background .15s; }
.hx .pri:hover { background: #3A3936; }
.hx .sec { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--ln2); border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.hx .sec:hover { background: var(--hv); }
.hx .sec svg { color: var(--mu); }
.hx .sec.ic { width: 34px; padding: 0; justify-content: center; margin-left: auto; }
.hx .sec.ic.on { border-color: rgba(209,80,59,.4); background: rgba(209,80,59,.07); }
.hx .sec.ic.on svg { color: var(--bad); }
.hx .pn-b { flex: 1; min-height: 0; overflow: auto; padding: 4px 22px 24px; }
.hx .pn-b section { padding: 16px 0; border-bottom: 1px solid var(--ln); }
.hx .pn-b section:last-child { border-bottom: 0; }
.hx .pn-b h4 { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--fa); }
.hx .cc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin: -10px; width: calc(100% + 20px); border-radius: 10px; }
.hx .cc:hover { background: var(--hv); }
.hx .cc > span { flex: 1; min-width: 0; }
.hx .cc b { display: block; font-size: 15px; font-weight: 600; }
.hx .cc small { display: block; font-size: 13px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx .cc > svg { color: var(--fa); }
.hx .li li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 14px; }
.hx .li em { font-style: normal; font-size: 13px; color: var(--fa); }
.hx .li b { font-weight: 500; min-width: 64px; text-align: right; }
.hx .li .sum { grid-template-columns: 1fr auto; margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--ln2); }
.hx .li .sum b { font-weight: 700; }
.hx .tln li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.hx .tln li:last-child { padding-bottom: 0; }
.hx .tln li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 1.5px; background: var(--ln2); }
.hx .tln li.ok:not(:last-child)::before { background: var(--ac); opacity: .4; }
.hx .tln i { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ln2); background: #fff; color: #fff; }
.hx .tln li.ok i { border-color: var(--ac); background: var(--ac); }
.hx .tln i svg { width: 12px; height: 12px; stroke-width: 2.4; }
.hx .tln b { display: block; font-size: 14px; font-weight: 500; }
.hx .tln li:not(.ok) b { color: var(--mu); }
.hx .tln small { display: block; font-size: 13px; color: var(--fa); }
.hx .nts li { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--sb); font-size: 13px; }
.hx .nts b { font-weight: 600; }
.hx .nts em { margin-left: 8px; font-style: normal; color: var(--fa); }
.hx .nts p { margin-top: 2px; font-size: 14px; color: #3D3C39; }
.hx .nf { display: grid; gap: 8px; justify-items: end; }
.hx .nf textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--ln2); border-radius: 9px; resize: vertical; font: inherit; font-size: 14px; color: var(--ink); }
.hx .nf textarea:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px var(--acs); }
.hx .kv { display: grid; grid-template-columns: 70px 1fr; gap: 8px 12px; font-size: 14px; }
.hx .kv dt { color: var(--fa); }
.hx .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hx .nums div { padding: 12px; border: 1px solid var(--ln); border-radius: 10px; }
.hx .nums b { display: block; font-size: 17px; font-weight: 600; }
.hx .nums small { font-size: 13px; color: var(--fa); }
.hx .ol li + li { margin-top: 2px; }
.hx .ol button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 8px; font-size: 14px; }
.hx .ol button:hover { background: var(--hv); }
.hx .ol b { font-weight: 600; }
.hx .ol span:not(.st) { flex: 1; min-width: 0; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* toast and command palette */
.hx .toast { position: absolute; left: 50%; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 13.5px; white-space: nowrap; box-shadow: 0 16px 40px -14px rgba(0,0,0,.45); transform: translateX(-50%); animation: hxtoast .25s cubic-bezier(.2,.7,.2,1); }
.hx .toast svg { color: #9FE870; stroke-width: 2.2; }
@keyframes hxtoast { from { opacity: 0; transform: translate(-50%, 10px); } }
.hx .pal { position: absolute; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; background: rgba(25,25,23,.22); animation: hxfade .15s; }
@keyframes hxfade { from { opacity: 0; } }
.hx .palw { width: 580px; max-width: 100%; overflow: hidden; border: 1px solid var(--ln2); border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); animation: hxpop .16s ease-out; }
.hx .palw label { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-bottom: 1px solid var(--ln); color: var(--fa); }
.hx .palw label svg { width: 18px; height: 18px; }
.hx .palw input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: none; }
.hx .palw input::placeholder { color: var(--fa); }
.hx .pl { max-height: 360px; overflow: auto; padding: 6px; }
.hx .pi { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
.hx .pi svg { color: var(--fa); }
.hx .pi b { font-weight: 500; white-space: nowrap; }
.hx .pi small { flex: 1; min-width: 0; font-size: 13px; color: var(--fa); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx .pi.on, .hx .pi:hover { background: var(--hv); }
.hx .pi.on svg { color: var(--ac); }
.hx .pe { padding: 22px 12px; font-size: 14px; color: var(--fa); text-align: center; }
.hx .pf { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--ln); background: var(--sb); font-size: 13px; color: var(--fa); }
.hx .pf kbd { margin-right: 3px; }

/* small dialogs: new task, profile, preferences, shortcuts */
.hx .dlg { position: absolute; inset: 0; z-index: 45; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 20px 20px; background: rgba(25,25,23,.22); animation: hxfade .15s; }
.hx .dlgw { width: 440px; max-width: 100%; padding: 18px 20px 18px; border: 1px solid var(--ln2); border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35); animation: hxpop .16s ease-out; }
.hx .dlh { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 14px 0; }
.hx .dlh h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.hx .dlf { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.hx .fl { display: grid; gap: 7px; margin-top: 12px; }
.hx .fl:first-of-type { margin-top: 0; }
.hx .fl > span { font-size: 13px; font-weight: 600; color: var(--mu); }
.hx .fl input { height: 38px; padding: 0 12px; border: 1px solid var(--ln2); border-radius: 9px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.hx .fl input:focus { outline: 0; border-color: var(--ac); box-shadow: 0 0 0 3px var(--acs); }
.hx .fl input::placeholder { color: var(--fa); }
.hx .fl .seg { justify-self: start; }
.hx .dph { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ln); }
.hx .dph b { display: block; font-size: 15px; font-weight: 600; }
.hx .dph small { display: block; font-size: 13px; color: var(--fa); }
.hx .dlgw .kv { grid-template-columns: 90px 1fr; }
.hx .tgs { display: grid; }
.hx .tg { display: flex; align-items: center; gap: 16px; width: 100%; padding: 11px 0; border-top: 1px solid var(--ln); }
.hx .tg:first-child { border-top: 0; padding-top: 0; }
.hx .tg > span { flex: 1; min-width: 0; }
.hx .tg b { display: block; font-size: 14px; font-weight: 500; }
.hx .tg small { display: block; font-size: 13px; color: var(--fa); }
.hx .tg > i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: #D9D8D4; transition: background .15s; }
.hx .tg > i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.hx .tg[aria-checked="true"] > i { background: var(--ac); }
.hx .tg[aria-checked="true"] > i::after { transform: translateX(14px); }
.hx .kl li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ln); font-size: 14px; }
.hx .kl li:first-child { border-top: 0; padding-top: 0; }
.hx .kl kbd + kbd { margin-left: 4px; }

/* scrollbars: thin and quiet in the live demo, none at all in the still previews */
.hx .pg, .hx .pn-b, .hx .pl, .hx .sb nav, .hx .tbl, .hx .pnt ul { scrollbar-width: thin; scrollbar-color: #DAD9D5 transparent; }
.hx ::-webkit-scrollbar { width: 8px; height: 8px; }
.hx ::-webkit-scrollbar-thumb { border-radius: 8px; background: #DAD9D5; border: 2px solid #fff; }
.hx ::-webkit-scrollbar-track { background: transparent; }
.hx.still .pg, .hx.still .sb nav, .hx.still .tbl, .hx.still .pn-b { overflow: hidden; scrollbar-width: none; }

/* ---- the live demo at tablet and phone widths ---- */
@media (max-width: 1100px) {
  .hxs-win .hx .sync { display: none; }
  .hxs-win .hx .pg { padding: 24px 24px 32px; }
  .hxs-win .hx .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hxs-win .hx .tbl { overflow-x: auto; }
}
@media (max-width: 980px) {
  .hxs-win { width: 100vw; height: 100%; border-radius: 0; }
  .hxs-modal { padding: 0; }
}
@media (max-width: 760px) {
  /* the sidebar becomes a strip across the top that scrolls sideways */
  .hxs-win .hx { display: flex; flex-direction: column; }
  .hxs-win .hx .sb { flex: none; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--ln); }
  .hxs-win .hx .brand, .hxs-win .hx .me, .hxs-win .hx .pme, .hxs-win .hx .gh { display: none; }
  .hxs-win .hx .pnt { top: 42px; right: 12px; }
  .hxs-win .hx .ph .sf { width: 100%; }
  .hxs-win .hx .dlg { padding-top: 60px; }
  .hxs-win .hx .srch { flex: none; width: 36px; padding: 0; justify-content: center; }
  .hxs-win .hx .srch span, .hxs-win .hx .srch kbd { display: none; }
  .hxs-win .hx .sb nav { flex-direction: row; gap: 2px; padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  /* flex: none on each group too, not just on the items: Safari sizes a
     shrinkable group by its items' min-content (each label can shrink to 0
     as it clips), so the groups squeezed and their items overlapped */
  .hxs-win .hx .grp { flex: none; display: flex; gap: 2px; }
  .hxs-win .hx .ni { flex: none; height: 34px; }
  .hxs-win .hx .top { height: 44px; padding: 0 12px 0 16px; }
  .hxs-win .hx .pg { padding: 18px 16px 28px; }
  .hxs-win .hx .ph { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .hxs-win .hx .ph h2 { font-size: 22px; }
  .hxs-win .hx .kpis { gap: 10px; }
  .hxs-win .hx .kpi { padding: 14px; }
  .hxs-win .hx .kpi b { font-size: 26px; }
  .hxs-win .hx .row2, .hxs-win .hx .row2.even { grid-template-columns: minmax(0, 1fr); }
  .hxs-win .hx .kb { grid-template-columns: repeat(5, 250px); overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; }
  .hxs-win .hx .bar { flex-direction: column; align-items: stretch; gap: 8px; border-bottom: 0; }
  .hxs-win .hx .tabs { border-bottom: 1px solid var(--ln); }
  .hxs-win .hx .tools { padding-bottom: 0; }
  .hxs-win .hx .sf { flex: 1; width: auto; }
  /* tables become stacked cards */
  .hxs-win .hx .tbl { margin: 0; overflow: visible; }
  .hxs-win .hx thead { display: none; }
  .hxs-win .hx table, .hxs-win .hx tbody { display: block; }
  .hxs-win .hx tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; padding: 14px 4px; border-bottom: 1px solid var(--ln); }
  .hxs-win .hx td { display: block; padding: 0; border: 0; }
  .hxs-win .hx td:first-child { flex: 1 1 auto; }
  .hxs-win .hx td.tt { margin-left: auto; font-weight: 600; }
  .hxs-win .hx td.cu, .hxs-win .hx td.it, .hxs-win .hx td.mu { flex: 1 1 100%; }
  .hxs-win .hx td.id small { display: inline; margin-left: 8px; }
  .hxs-win .hx .ct td.cm { flex: none; color: var(--mu); }
  .hxs-win .hx .ct td.cm + td.cm::before { content: attr(data-l) " "; margin-right: 2px; color: var(--fa); }
  .hxs-win .hx .ct td.cm + td.cm { padding-left: 10px; border-left: 1px solid var(--ln); }
  .hxs-win .hx td.it span { max-width: 100%; }
  .hxs-win .hx tbody tr.on td:first-child { box-shadow: none; }
  .hxs-win .hx tr.none { display: block; }
  .hxs-win .hx .pn { width: 100%; border-left: 0; }
  .hxs-win .hx .pn-h { padding: 16px 16px 8px; }
  .hxs-win .hx .pn-st, .hxs-win .hx .pn-act { padding-left: 16px; padding-right: 16px; }
  .hxs-win .hx .pn-b { padding: 4px 16px 24px; }
  .hxs-win .hx .toast { bottom: 14px; }
  .hxs-win .hx .pal { padding-top: 60px; }
  .hxs-win .hx .pf { display: none; }
}
/* on touch screens a tap leaves :hover stuck on whatever sits under the
   finger after the strip re-renders (iOS Safari): no hover tint there */
@media (hover: none) {
  .hxs-win .hx .ni:hover:not(.on), .hxs-win .hx .ib:hover:not(.on) { background: none; }
}
