/* APXORA UI, version 1.0, 20 October 2026.
   Components for the website and the SequenceFlow app, built on apxora-tokens.css. Load the fonts and tokens first:
   <link rel="stylesheet" href="apxora-fonts.css"><link rel="stylesheet" href="apxora-tokens.css">
   <link rel="stylesheet" href="apxora-ui.css">
   Then put class="apx" on the element that holds the interface, and data-theme="dark" on dark parts.
   Rules carried over from the master template: square corners only, Georgia for titles, Arial for everything else,
   navy and blue with white space, thin rules, square bullets, and the red apex marker as the only red decoration. */

/* ------------------------------------------------------------------ base */
.apx, .apx *, .apx *::before, .apx *::after { box-sizing: border-box; border-radius: 0 !important; }
.apx { font: var(--apx-web-body); color: var(--apx-text); background: var(--apx-surface);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.apx :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.apx :where(img, svg) { display: block; max-width: 100%; }
.apx :focus-visible { outline: var(--apx-border-width-focus) solid var(--apx-focus); outline-offset: 2px; }
.apx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ type */
.apx-display { font: var(--apx-web-display); letter-spacing: -0.01em; color: var(--apx-text-title); }
.apx-h1 { font: var(--apx-web-h1); letter-spacing: -0.005em; color: var(--apx-text-title); }
.apx-h2 { font: var(--apx-web-h2); color: var(--apx-text-title); }
.apx-h3 { font: var(--apx-web-h3); color: var(--apx-text-title); }
.apx-h4 { font: var(--apx-web-h4); color: var(--apx-text-title); }
.apx-lead { font: var(--apx-web-lead); color: var(--apx-text-secondary); }
.apx-body-lg { font: var(--apx-web-body-lg); color: var(--apx-text-secondary); }
.apx-body { font: var(--apx-web-body); color: var(--apx-text-secondary); }
.apx-small, .apx-footnote { font: var(--apx-web-small); color: var(--apx-text-muted); }
.apx-key-question { font: italic 400 20px/28px var(--apx-font-display); color: var(--apx-text); }
.apx-label { font: var(--apx-web-label); letter-spacing: var(--apx-web-label-tracking); text-transform: uppercase;
  color: var(--apx-text-label); }
.apx-numeral { font: var(--apx-web-numeral); letter-spacing: -0.01em; color: var(--apx-blue); font-variant-numeric: lining-nums tabular-nums; }
.apx-ordinal { font: 400 28px/1 var(--apx-font-display); color: var(--apx-blue); }       /* 01, 02, I, II */
.apx-tracker { font: var(--apx-web-small); color: var(--apx-text-muted); }

/* The eyebrow with the apex marker: the section label of every page and screen */
.apx-eyebrow { display: inline-flex; align-items: center; gap: 12px; font: var(--apx-web-eyebrow);
  letter-spacing: var(--apx-web-eyebrow-tracking); text-transform: uppercase; color: var(--apx-text-label); }
.apx-eyebrow::before { content: ""; width: 14px; height: 12px; flex: none; background: var(--apx-marker);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.apx-eyebrow--plain::before { display: none; }

/* The context line: the master's disclaimer, a short line of capitals between two rules */
.apx-context-line { display: flex; align-items: center; justify-content: center; gap: 14px;
  font: 400 12px/16px var(--apx-font-text); letter-spacing: 0.07em; text-transform: uppercase; color: var(--apx-mist); }
.apx-context-line::before, .apx-context-line::after { content: ""; width: 40px; height: 1px; background: var(--apx-tint); }
[data-theme="dark"] .apx-context-line { color: var(--apx-haze); }

/* ------------------------------------------------------------------ layout */
.apx-container { width: 100%; max-width: calc(var(--apx-content-max) + 2 * var(--apx-page-margin));
  margin: 0 auto; padding: 0 var(--apx-page-margin); }
.apx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--apx-gutter); }
.apx-span-3 { grid-column: span 3; } .apx-span-4 { grid-column: span 4; } .apx-span-5 { grid-column: span 5; }
.apx-span-6 { grid-column: span 6; } .apx-span-7 { grid-column: span 7; } .apx-span-8 { grid-column: span 8; }
.apx-span-12 { grid-column: 1 / -1; }
@media (max-width: 899px) { .apx-grid > [class*="apx-span-"] { grid-column: 1 / -1; } }
.apx-section { padding: 96px 0; } .apx-section--tight { padding: 64px 0; }
@media (max-width: 899px) { .apx-section { padding: 64px 0; } .apx-section--tight { padding: 48px 0; } }
.apx-stack > * + * { margin-top: var(--apx-stack, 16px); }
.apx-top-rule { border-top: var(--apx-border-width-rule) solid var(--apx-border-rule); padding-top: 20px; }
.apx-hairline { border-top: var(--apx-border-width-hairline) solid var(--apx-border); }
.apx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 16px; }

/* ------------------------------------------------------------------ buttons */
.apx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--apx-control-md);
  padding: 0 20px; font: 700 15px/1 var(--apx-font-text); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background var(--apx-duration-fast) var(--apx-ease-standard),
  color var(--apx-duration-fast) var(--apx-ease-standard), border-color var(--apx-duration-fast) var(--apx-ease-standard); }
.apx-btn svg { width: 18px; height: 18px; }
.apx-btn--primary { background: var(--apx-navy); color: #FFFFFF; }
.apx-btn--primary:hover { background: #174C84; } .apx-btn--primary:active { background: var(--apx-midnight); }
.apx-btn--secondary { background: transparent; color: var(--apx-navy); border-color: var(--apx-navy); }
.apx-btn--secondary:hover { background: var(--apx-light-blue); }
.apx-btn--tertiary { background: transparent; color: var(--apx-blue); padding: 0 4px; }
.apx-btn--tertiary:hover { text-decoration: underline; text-underline-offset: 4px; }
.apx-btn--inverse { background: var(--apx-off-white); color: var(--apx-navy); }
.apx-btn--inverse:hover { background: #FFFFFF; }
.apx-btn--inverse-outline { background: transparent; color: var(--apx-off-white); border-color: var(--apx-haze); }
.apx-btn--critical { background: var(--apx-critical-fill); color: #FFFFFF; }
.apx-btn--critical:hover { background: var(--apx-critical-text); }
.apx-btn--sm { height: var(--apx-control-sm); padding: 0 14px; font-size: 13px; }
.apx-btn--lg { height: var(--apx-control-lg); padding: 0 28px; font-size: 16px; }
.apx-btn--icon { width: var(--apx-control-md); padding: 0; }
.apx-btn:disabled, .apx-btn[aria-disabled="true"] { background: var(--apx-panel); color: var(--apx-mist);
  border-color: var(--apx-panel); cursor: not-allowed; }
.apx-link { color: var(--apx-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.apx-link:hover { color: var(--apx-navy); text-decoration-thickness: 2px; }
.apx-link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1.2 var(--apx-font-text);
  color: var(--apx-link); text-decoration: none; }
.apx-link-arrow::after { content: ""; width: 16px; height: 10px; background: currentColor;
  clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%);
  transition: transform var(--apx-duration-fast) var(--apx-ease-standard); }
.apx-link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ forms */
.apx-field { display: grid; gap: 6px; }
.apx-field__label { font: 700 13px/18px var(--apx-font-text); color: var(--apx-text); }
.apx-field__help { font: 400 13px/18px var(--apx-font-text); color: var(--apx-text-muted); }
.apx-field__error { font: 400 13px/18px var(--apx-font-text); color: var(--apx-critical-text); }
.apx-input, .apx-select, .apx-textarea { width: 100%; height: var(--apx-control-md); padding: 0 12px; font: var(--apx-web-body);
  color: var(--apx-text); background: var(--apx-surface); border: 1px solid var(--apx-tint); outline: none;
  transition: border-color var(--apx-duration-fast) var(--apx-ease-standard); }
.apx-textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.apx-input::placeholder, .apx-textarea::placeholder { color: var(--apx-mist); }
.apx-input:hover, .apx-select:hover, .apx-textarea:hover { border-color: var(--apx-muted); }
.apx-input:focus, .apx-select:focus, .apx-textarea:focus { border-color: var(--apx-navy); box-shadow: inset 0 0 0 1px var(--apx-navy); }
.apx-input[aria-invalid="true"] { border-color: var(--apx-critical-fill); box-shadow: inset 0 0 0 1px var(--apx-critical-fill); }
.apx-input:disabled { background: var(--apx-panel); color: var(--apx-mist); }
.apx-select { appearance: none; padding-right: 36px; background-image:
  linear-gradient(45deg, transparent 50%, var(--apx-navy) 50%), linear-gradient(135deg, var(--apx-navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.apx-check, .apx-radio { display: inline-flex; align-items: center; gap: 10px; font: var(--apx-web-body); color: var(--apx-text); cursor: pointer; }
.apx-check input, .apx-radio input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--apx-navy);
  background: var(--apx-surface); display: grid; place-content: center; cursor: pointer; }
.apx-check input:checked { background: var(--apx-navy); }
.apx-check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #FFF; border-bottom: 2px solid #FFF;
  transform: translateY(-1px) rotate(-45deg); }
.apx-radio input:checked::after { content: ""; width: 8px; height: 8px; background: var(--apx-navy); }
.apx-switch { display: inline-flex; align-items: center; gap: 10px; font: var(--apx-web-body); cursor: pointer; }
.apx-switch input { appearance: none; width: 40px; height: 22px; margin: 0; background: var(--apx-tint); position: relative; cursor: pointer;
  transition: background var(--apx-duration-fast) var(--apx-ease-standard); }
.apx-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #FFF;
  transition: transform var(--apx-duration-fast) var(--apx-ease-standard); }
.apx-switch input:checked { background: var(--apx-navy); } .apx-switch input:checked::after { transform: translateX(18px); }
.apx-range { appearance: none; width: 100%; height: 4px; background: var(--apx-tint); outline: none; }
.apx-range::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; background: var(--apx-navy); cursor: pointer; }
.apx-range::-moz-range-thumb { width: 16px; height: 16px; background: var(--apx-navy); border: 0; cursor: pointer; }
.apx-segmented { display: inline-flex; border: 1px solid var(--apx-navy); }
.apx-segmented button { height: 32px; padding: 0 14px; border: 0; background: transparent; font: 700 13px/1 var(--apx-font-text);
  color: var(--apx-navy); cursor: pointer; }
.apx-segmented button + button { border-left: 1px solid var(--apx-navy); }
.apx-segmented button[aria-pressed="true"] { background: var(--apx-navy); color: #FFF; }

/* ------------------------------------------------------------------ navigation: website */
.apx-site-header { position: sticky; top: 0; z-index: var(--apx-z-sticky); background: var(--apx-surface);
  border-bottom: 1px solid var(--apx-border); }
.apx-site-header__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.apx-site-header__logo { width: 172px; flex: none; }
.apx-nav { display: flex; gap: 32px; margin-left: auto; }
.apx-nav a { position: relative; font: 700 15px/76px var(--apx-font-text); color: var(--apx-text); text-decoration: none; }
.apx-nav a:hover { color: var(--apx-blue); }
.apx-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--apx-navy); }
.apx-site-footer { background: var(--apx-midnight); color: var(--apx-pale-blue); }

/* ------------------------------------------------------------------ navigation: app */
.apx-app { display: grid; grid-template-columns: var(--apx-app-sidebar) 1fr; min-height: 100vh; background: var(--apx-panel); }
.apx-app--with-pane { grid-template-columns: var(--apx-app-sidebar) 1fr var(--apx-app-right-pane); }
.apx-sidebar { background: var(--apx-midnight); color: var(--apx-pale-blue); display: flex; flex-direction: column; padding: 20px 0; }
.apx-sidebar__brand { display: flex; align-items: center; gap: 12px; padding: 4px 24px 24px; border-bottom: 1px solid #1A3A60; }
.apx-sidebar__product { font: 400 19px/1.1 var(--apx-font-display); color: var(--apx-off-white); }
.apx-sidebar__group { padding: 20px 24px 8px; font: 700 11px/14px var(--apx-font-text); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--apx-sky); }
.apx-sidebar__item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 24px; font: 400 14px/1 var(--apx-font-text);
  color: var(--apx-pale-blue); text-decoration: none; border-left: 4px solid transparent; }
.apx-sidebar__item svg { width: 20px; height: 20px; flex: none; color: var(--apx-sky); }
.apx-sidebar__item:hover { background: #0B2545; color: #FFF; }
.apx-sidebar__item[aria-current="page"] { background: #0F2F57; color: #FFF; border-left-color: var(--apx-sky); font-weight: 700; }
.apx-topbar { height: var(--apx-app-topbar); background: var(--apx-surface); border-bottom: 1px solid var(--apx-border);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--apx-app-content-padding); }
.apx-topbar__search { position: relative; width: 360px; }
.apx-topbar__search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--apx-muted); }
.apx-topbar__search .apx-input { padding-left: 40px; background: var(--apx-panel); border-color: var(--apx-panel); }
.apx-avatar { width: 32px; height: 32px; background: var(--apx-navy); color: #FFF; display: grid; place-items: center;
  font: 700 12px/1 var(--apx-font-text); letter-spacing: 0.04em; }
.apx-page-head { display: grid; gap: 10px; padding: 28px var(--apx-app-content-padding) 20px; background: var(--apx-surface);
  border-bottom: 1px solid var(--apx-border); }
.apx-page-head__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.apx-page-title { font: var(--apx-app-page-title); color: var(--apx-text-title); letter-spacing: -0.005em; max-width: 1080px; }
.apx-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--apx-border); }
.apx-tab { position: relative; padding: 12px 0; font: 700 14px/1 var(--apx-font-text); color: var(--apx-text-muted);
  text-decoration: none; background: none; border: 0; cursor: pointer; }
.apx-tab:hover { color: var(--apx-text); }
.apx-tab[aria-selected="true"] { color: var(--apx-navy); }
.apx-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--apx-navy); }
.apx-breadcrumb { display: flex; align-items: center; gap: 8px; font: 400 13px/18px var(--apx-font-text); color: var(--apx-text-muted); }
.apx-breadcrumb a { color: var(--apx-text-muted); text-decoration: none; } .apx-breadcrumb a:hover { color: var(--apx-blue); text-decoration: underline; }
.apx-breadcrumb span[aria-hidden] { color: var(--apx-tint); }
.apx-pagination { display: flex; gap: 4px; }
.apx-pagination a { min-width: 32px; height: 32px; display: grid; place-items: center; font: 700 13px/1 var(--apx-font-text);
  color: var(--apx-navy); text-decoration: none; border: 1px solid var(--apx-tint); }
.apx-pagination a[aria-current="page"] { background: var(--apx-navy); color: #FFF; border-color: var(--apx-navy); }
.apx-step-squares { display: inline-flex; gap: 6px; }
.apx-step-squares span { width: 30px; height: 30px; display: grid; place-items: center; font: 700 13px/1 var(--apx-font-text);
  color: var(--apx-mist); border: 1px solid var(--apx-tint); background: var(--apx-surface); }
.apx-step-squares span[aria-current="step"] { background: var(--apx-navy); color: #FFF; border-color: var(--apx-navy); }

/* The chevron stepper: the five decision moments, or any sequence of stages */
.apx-chevrons { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); }
.apx-chevron { position: relative; display: grid; align-content: center; gap: 4px; min-height: 76px; padding: 0 22px 0 40px;
  color: #FFF; text-decoration: none; background: var(--c, var(--apx-navy));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); margin-right: -14px; }
.apx-chevron:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); padding-left: 22px; }
.apx-chevron:last-child { margin-right: 0; }
.apx-chevron__eyebrow { font: 700 12px/1 var(--apx-font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--apx-pale-blue); }
.apx-chevron__name { font: 700 15px/1.2 var(--apx-font-text); }
.apx-chevron:nth-child(1) { --c: #003060; } .apx-chevron:nth-child(2) { --c: #174C84; } .apx-chevron:nth-child(3) { --c: #346499; }
.apx-chevron:nth-child(4) { --c: #517BAD; } .apx-chevron:nth-child(5) { --c: #6E93C2; }
.apx-chevron[aria-current="step"] { box-shadow: inset 0 -4px 0 var(--apx-amber); }

/* ------------------------------------------------------------------ data display */
.apx-card { background: var(--apx-surface); border: 1px solid var(--apx-border); padding: var(--apx-card-padding); }
.apx-card--accent { border-left: var(--apx-border-width-accent) solid var(--apx-border-rule); }
.apx-card--panel { background: var(--apx-panel); border-color: var(--apx-panel); }
.apx-card--rule { border: 0; border-top: var(--apx-border-width-rule) solid var(--apx-border-rule); padding: 20px 0 0; background: transparent; }
.apx-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.apx-card__title { font: var(--apx-app-card-title); color: var(--apx-text-title); }
.apx-panel { background: var(--apx-panel); padding: var(--apx-card-padding); }
.apx-kpis { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.apx-kpi { display: grid; gap: 6px; padding: 0 28px; }
.apx-kpi:first-child { padding-left: 0; } .apx-kpi + .apx-kpi { border-left: 1px solid var(--apx-tint); }
.apx-kpi__value { font: 400 40px/44px var(--apx-font-text); color: var(--apx-blue); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.apx-kpi__label { font: var(--apx-app-label); letter-spacing: var(--apx-app-label-tracking); text-transform: uppercase; color: var(--apx-navy); }
.apx-kpi__caption { font: var(--apx-app-small); color: var(--apx-text-secondary); }
.apx-kpi__delta { font: 700 13px/18px var(--apx-font-text); }
.apx-kpi__delta--up { color: var(--apx-positive-text); } .apx-kpi__delta--down { color: var(--apx-critical-text); }
.apx-table { width: 100%; border-collapse: collapse; font: var(--apx-app-body); color: var(--apx-text); }
.apx-table th { text-align: left; padding: 10px 12px; font: var(--apx-app-label); letter-spacing: var(--apx-app-label-tracking);
  text-transform: uppercase; color: var(--apx-text-muted); border-bottom: 1px solid var(--apx-tint); white-space: nowrap; }
.apx-table td { padding: 0 12px; height: var(--apx-row-height); border-bottom: 1px solid var(--apx-border); vertical-align: middle; }
.apx-table tr:hover td { background: var(--apx-light-blue); }
.apx-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.apx-table--compact td { height: var(--apx-row-height-compact); }
.apx-table tr[aria-selected="true"] td { background: var(--apx-light-blue); box-shadow: inset 0 1px 0 var(--apx-tint); }
.apx-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: var(--apx-panel);
  font: 400 13px/1 var(--apx-font-text); color: var(--apx-navy); }
.apx-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; background: var(--apx-tag-bg);
  font: 700 11px/1 var(--apx-font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--apx-tag-text); }
.apx-tag--navy { background: var(--apx-navy); color: #FFF; } .apx-tag--light { background: var(--apx-light-blue); color: var(--apx-navy); }
.apx-tag--ai { background: var(--apx-light-blue); color: var(--apx-navy); }
.apx-status { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/18px var(--apx-font-text); color: var(--apx-text); }
.apx-status::before { content: ""; width: 10px; height: 10px; background: var(--s, var(--apx-navy)); }
.apx-status--done { --s: var(--apx-navy); } .apx-status--partly { --s: var(--apx-amber); }
.apx-status--gap { --s: var(--apx-red); } .apx-status--idle { --s: var(--apx-tint); } .apx-status--positive { --s: var(--apx-positive-fill); }
.apx-legend { display: flex; flex-wrap: wrap; gap: 20px; font: 400 13px/18px var(--apx-font-text); color: var(--apx-text-secondary); }
.apx-legend span { display: inline-flex; align-items: center; gap: 8px; }
.apx-legend i { width: 12px; height: 12px; background: var(--c); }
.apx-num-square { width: 32px; height: 32px; display: inline-grid; place-items: center; background: var(--apx-navy); color: #FFF;
  font: 700 14px/1 var(--apx-font-text); flex: none; }
.apx-num-square--sky { background: var(--apx-sky); color: var(--apx-navy); }
.apx-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.apx-list li { position: relative; padding-left: 20px; }
.apx-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--apx-navy); }
.apx-numbered { display: grid; gap: 14px; }
.apx-numbered__head { display: flex; align-items: baseline; gap: 14px; }

/* ------------------------------------------------------------------ feedback */
.apx-band { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 22px 28px;
  background: var(--apx-navy); color: #FFF; }
.apx-band__label { font: 700 12px/16px var(--apx-font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--apx-sky); }
.apx-band__text { font: 700 16px/24px var(--apx-font-text); color: #FFF; }
.apx-band__text span { display: block; font-weight: 400; color: var(--apx-pale-blue); }
.apx-band--panel { background: var(--apx-panel); color: var(--apx-text); }
.apx-band--panel .apx-band__label { color: var(--apx-blue); } .apx-band--panel .apx-band__text { color: var(--apx-navy); }
.apx-band--panel .apx-band__text span { color: var(--apx-text-secondary); }
.apx-band__result { color: var(--apx-amber); }
@media (max-width: 899px) { .apx-band { grid-template-columns: 1fr; gap: 8px; } }
.apx-alert { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px;
  background: var(--t); border-left: 4px solid var(--f); font: var(--apx-app-body); color: var(--apx-text); }
.apx-alert svg { width: 22px; height: 22px; color: var(--x); }
.apx-alert__title { font-weight: 700; color: var(--apx-text); }
.apx-alert--info { --t: var(--apx-info-tint); --f: var(--apx-info-fill); --x: var(--apx-info-text); }
.apx-alert--positive { --t: var(--apx-positive-tint); --f: var(--apx-positive-fill); --x: var(--apx-positive-text); }
.apx-alert--caution { --t: var(--apx-caution-tint); --f: var(--apx-caution-fill); --x: var(--apx-caution-text); }
.apx-alert--critical { --t: var(--apx-critical-tint); --f: var(--apx-critical-fill); --x: var(--apx-critical-text); }
.apx-toast { display: flex; align-items: center; gap: 14px; min-width: 320px; padding: 14px 16px; background: var(--apx-navy);
  color: #FFF; box-shadow: var(--apx-shadow-overlay); font: var(--apx-app-body); }
.apx-toast svg { width: 20px; height: 20px; color: var(--apx-sky); }
.apx-toast button { margin-left: auto; background: none; border: 0; color: var(--apx-sky); font: 700 13px/1 var(--apx-font-text); cursor: pointer; }
.apx-tooltip { position: relative; display: inline-block; max-width: 280px; padding: 8px 10px; background: var(--apx-navy); color: #FFF;
  font: 400 13px/18px var(--apx-font-text); box-shadow: var(--apx-shadow-overlay); }
.apx-tooltip::after { content: ""; position: absolute; left: 16px; bottom: -6px; width: 12px; height: 6px; background: var(--apx-navy);
  clip-path: polygon(0 0, 100% 0, 50% 100%); }
.apx-modal { width: 560px; max-width: calc(100vw - 32px); background: var(--apx-surface); box-shadow: var(--apx-shadow-overlay);
  border-top: 4px solid var(--apx-navy); }
.apx-modal__head { padding: 24px 28px 8px; } .apx-modal__body { padding: 8px 28px 24px; }
.apx-modal__foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 28px; background: var(--apx-panel); }
.apx-backdrop { background: rgba(6, 26, 51, 0.55); }
.apx-empty { display: grid; justify-items: start; gap: 14px; padding: 40px; background: var(--apx-surface); border: 1px dashed var(--apx-tint); }
.apx-empty__art { width: 100%; height: 160px; background-size: cover; background-position: center; }
.apx-skeleton { background: linear-gradient(90deg, var(--apx-panel) 0%, #E9EEF3 50%, var(--apx-panel) 100%); background-size: 200% 100%;
  animation: apx-shimmer 1.4s linear infinite; }
@keyframes apx-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .apx-skeleton { animation: none; } }
.apx-progress { height: 4px; background: var(--apx-tint); } .apx-progress > i { display: block; height: 100%; background: var(--apx-navy); }

/* ------------------------------------------------------------------ signature components */
.apx-insight { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 24px; background: var(--apx-navy); color: #FFF; }
.apx-insight__label { font: 700 12px/16px var(--apx-font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--apx-sky); }
.apx-insight__text { font: 400 15px/22px var(--apx-font-text); }
.apx-source { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: var(--apx-app-caption); color: var(--apx-text-muted); }
.apx-source a { color: var(--apx-link); }
.apx-source svg { width: 14px; height: 14px; }
.apx-audit { list-style: none; padding: 0; display: grid; }
.apx-audit li { display: grid; grid-template-columns: 64px 24px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--apx-border);
  font: var(--apx-app-small); color: var(--apx-text-secondary); }
.apx-audit time { font: var(--apx-app-caption); color: var(--apx-text-muted); padding-top: 1px; }
.apx-audit svg { width: 18px; height: 18px; color: var(--apx-navy); }
.apx-audit b { color: var(--apx-text); }
.apx-agent { display: grid; gap: 10px; padding: 16px 18px; background: var(--apx-surface); border: 1px solid var(--apx-border);
  border-left: 4px solid var(--apx-sky); }
.apx-agent__head { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--apx-font-text); color: var(--apx-navy); }
.apx-agent__head svg { width: 18px; height: 18px; }
.apx-agent__note { font: var(--apx-app-caption); color: var(--apx-text-muted); }
.apx-staircase { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; }
.apx-staircase__step { background: var(--apx-panel); border-top: 2px solid var(--apx-navy); padding: 16px 20px; display: grid; align-content: start; gap: 6px; }
.apx-staircase__step:nth-child(1) { height: 110px; } .apx-staircase__step:nth-child(2) { height: 150px; }
.apx-staircase__step:nth-child(3) { height: 190px; } .apx-staircase__step:nth-child(4) { height: 230px; }
.apx-staircase__step:last-child { position: relative; }
.apx-staircase__step:last-child::after { content: ""; position: absolute; right: 0; top: -15px; width: 16px; height: 13px;
  background: var(--apx-marker); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.apx-funnel { display: grid; gap: 8px; }
.apx-funnel > div { padding: 14px 20px; color: #FFF; }
.apx-funnel > div:nth-child(1) { background: #003060; margin: 0; } .apx-funnel > div:nth-child(2) { background: #174C84; margin: 0 6%; }
.apx-funnel > div:nth-child(3) { background: #3A6BA6; margin: 0 12%; } .apx-funnel > div:nth-child(4) { background: #6E93C2; margin: 0 18%; }

/* ------------------------------------------------------------------ dark sections */
[data-theme="dark"].apx, .apx [data-theme="dark"] { background: var(--apx-surface-ground-dark); color: var(--apx-text); }
.apx-dark-ground { background: radial-gradient(ellipse at 62% 35%, #0C3A6E 0%, #061A33 70%); color: var(--apx-off-white); }
