/*
 * Shared, additive UI primitives.  Page styles intentionally remain in their
 * existing files while those surfaces migrate to the ax-* component classes.
 */
:root {
  --ax-canvas: #f6f8fa;
  --ax-surface: #ffffff;
  --ax-surface-subtle: #f1f5f9;
  --ax-ink: #172033;
  --ax-muted: #617086;
  --ax-border: #d8e0ea;
  --ax-primary: #087f78;
  --ax-primary-strong: #05665f;
  --ax-focus: #2563eb;
  --ax-success: #087443;
  --ax-warning: #a15c00;
  --ax-danger: #b42318;
  --ax-space-1: 4px;
  --ax-space-2: 8px;
  --ax-space-3: 12px;
  --ax-space-4: 16px;
  --ax-space-5: 24px;
  --ax-radius-sm: 8px;
  --ax-radius-md: 12px;
  --ax-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ax-shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10);
}

/* The focus ring intentionally applies to existing controls as well. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ax-focus) 45%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.ax-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }

.ax-card {
  padding: var(--ax-space-4);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-sm);
}

.ax-button {
  min-height: 44px;
  padding: 0 var(--ax-space-3);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-sm);
  background: var(--ax-surface);
  color: var(--ax-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.ax-button:hover { background: var(--ax-surface-subtle); }
.ax-button--primary { border-color: var(--ax-primary); background: var(--ax-primary); color: #fff; }
.ax-button--primary:hover { border-color: var(--ax-primary-strong); background: var(--ax-primary-strong); }
.ax-button:disabled { cursor: not-allowed; opacity: .55; }

.ax-status {
  display: flex;
  gap: var(--ax-space-2);
  align-items: flex-start;
  padding: var(--ax-space-2) var(--ax-space-3);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-sm);
  background: var(--ax-surface-subtle);
  color: var(--ax-ink);
}
.ax-status[data-variant="success"] { border-color: #9fddbd; color: var(--ax-success); background: #effcf4; }
.ax-status[data-variant="warning"] { border-color: #f1cf8b; color: var(--ax-warning); background: #fff9eb; }
.ax-status[data-variant="error"] { border-color: #f4bbb4; color: var(--ax-danger); background: #fff4f2; }

.ax-dialog-backdrop,
.ax-drawer-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  background: rgba(15, 23, 42, .45);
}
.ax-dialog-backdrop { place-items: center; padding: var(--ax-space-4); }
.ax-dialog {
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  padding: var(--ax-space-5);
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-md);
}
.ax-dialog__title { margin: 0; color: var(--ax-ink); font-size: 1.125rem; }
.ax-dialog__body { margin: var(--ax-space-3) 0 0; color: var(--ax-muted); }
.ax-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ax-space-2); margin-top: var(--ax-space-5); }

.ax-drawer-backdrop { justify-items: end; }
.ax-drawer {
  width: min(460px, 100%);
  height: 100%;
  overflow: auto;
  padding: var(--ax-space-5);
  background: var(--ax-surface);
  box-shadow: var(--ax-shadow-md);
}
.ax-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: var(--ax-space-3); }
.ax-drawer__title { margin: 0; color: var(--ax-ink); font-size: 1.125rem; }

.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ax-space-1);
  align-items: center;
}
.global-nav-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 var(--ax-space-2);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.global-nav-link:hover { background: var(--ax-surface-subtle); }
.global-nav-link.active { background: color-mix(in srgb, var(--ax-primary) 13%, transparent); color: var(--ax-primary-strong); font-weight: 700; }

.ax-resize-handle {
  position: relative;
  z-index: 4;
  width: 12px;
  min-width: 12px;
  min-height: 180px;
  align-self: stretch;
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
  cursor: col-resize;
  touch-action: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.ax-resize-handle::after {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 4px;
  height: 58px;
  transform: translateY(-50%);
  border-radius: 999px;
  content: "";
  background: linear-gradient(to bottom, #94a3b8, #14b8a6, #94a3b8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7);
  transition: width .15s ease, left .15s ease, background .15s ease, box-shadow .15s ease;
}
.ax-resize-handle:hover::after,
.ax-resize-handle:focus-visible::after,
.ax-resize-handle.active::after {
  left: 3px;
  width: 6px;
  background: #14b8a6;
  box-shadow: 0 0 12px rgba(20, 184, 166, .46);
}
.ax-resize-handle:hover,
.ax-resize-handle:focus-visible,
.ax-resize-handle.active {
  background: rgba(20, 184, 166, .16);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .22);
}
.ax-resize-handle.hidden { display: none; }
body.ax-resizing { cursor: col-resize; user-select: none; }

@media (max-width: 767px) {
  .ax-drawer { width: 100%; }
  .global-nav-link { min-height: 44px; }
  main.shell { width: min(calc(100% - 20px), 1280px) !important; padding-top: 10px; }
  .ax-page-header { padding: 12px !important; }

  .ax-workbench-shell .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: var(--ax-space-2);
  }
  .ax-workbench-shell .top-center,
  .ax-workbench-shell .actions {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .ax-workbench-shell .top-center { align-items: flex-start; }
  .ax-workbench-shell .actions { justify-content: flex-start; flex-wrap: nowrap; }
  .ax-workbench-shell .actions > button { flex: 0 0 auto; min-height: 44px; }
  .ax-workbench-shell .workbench-tab { min-height: 44px; }
  .ax-workbench-shell .bottom-grid { grid-template-columns: 1fr; }
  .ax-workbench-shell .bottom-panel { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--ax-border); }
  .ax-workbench-shell .right { min-height: 360px; }
}

/* Visual direction: confident, luminous constraint intelligence. This section
 * intentionally comes after legacy page CSS and re-skins shared primitives. */
:root {
  --bg: radial-gradient(circle at 12% -8%, rgba(43, 121, 255, .20), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, .17), transparent 29%),
    linear-gradient(135deg, #f5f8ff 0%, #edf4f7 48%, #f8fbff 100%);
  --panel: rgba(255, 255, 255, .88);
  --panel-soft: #f3f7fb;
  --text: #10213d;
  --muted: #5d6d84;
  --line: #d7e1ed;
  --accent: #087f78;
  --accent-strong: #05665f;
  --shadow: 0 18px 44px rgba(29, 57, 91, .12);
}

body {
  background: var(--bg) !important;
  background-attachment: fixed !important;
  letter-spacing: -.01em;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(72, 119, 173, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 119, 173, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 78%);
}

button,
input,
select,
textarea {
  border-color: var(--line);
  border-radius: 10px;
}

button {
  font-weight: 650;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 57, 91, .10);
}

button.primary,
.ax-button--primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #0f9f98, #087f78 54%, #05665f) !important;
  box-shadow: 0 10px 20px rgba(8, 127, 120, .23);
}

button.primary:hover,
.ax-button--primary:hover {
  background: linear-gradient(135deg, #14b8a6, #087f78 58%, #04534e) !important;
  box-shadow: 0 14px 25px rgba(8, 127, 120, .28);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .13);
}

.topbar {
  background: rgba(255, 255, 255, .72) !important;
  border-bottom-color: rgba(202, 216, 232, .82) !important;
  box-shadow: 0 10px 30px rgba(32, 58, 87, .06);
  backdrop-filter: blur(18px);
}

/* A consistent application frame across workflow pages. */
.ax-page-header {
  display: grid !important;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center !important;
  gap: 12px 20px !important;
  min-height: 72px;
  padding: 12px 16px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 16px !important;
  background: linear-gradient(112deg, #10213d 0%, #12375d 50%, #087f78 130%) !important;
  color: #f8fbff !important;
  box-shadow: 0 14px 32px rgba(12, 34, 61, .20) !important;
}
#app > .ax-page-header { border-radius: 0 !important; }
.ax-page-header :is(h1, h2, .brand, .eyebrow, .page-intro, .muted, label) { color: #f8fbff !important; }
.ax-page-header .global-nav {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.ax-page-header .global-nav-link {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(248, 251, 255, .88) !important;
}
.ax-page-header .global-nav-link:hover,
.ax-page-header .global-nav-link.active {
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
}
.ax-page-header :is(input, select) { background: rgba(255, 255, 255, .96) !important; color: var(--text) !important; }
.ax-page-header :is(.pill, .explorer-action) {
  border-color: rgba(255, 255, 255, .24) !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  box-shadow: none;
}

@media (max-width: 1400px) {
  .ax-page-header { grid-template-columns: 1fr; }
  .ax-page-header .global-nav { justify-content: flex-start; overflow-x: auto; }
}

main.shell {
  width: min(1280px, calc(100% - 32px)) !important;
  gap: 16px;
  padding: 20px 0 32px;
}

#app > .topbar {
  grid-template-columns: auto minmax(160px, 260px) auto minmax(120px, 1fr) auto auto;
}

#app > .topbar .global-nav { flex-wrap: nowrap; }

.panel,
.main-panel,
.side-panel,
.login-panel {
  border-color: rgba(207, 220, 235, .88) !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(14px);
}

main.shell > *,
.panel,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}

.table-wrap { width: 100%; }

.panel,
.main-panel,
.side-panel {
  border-radius: 16px !important;
}

.shell,
.dashboard-shell {
  position: relative;
}

.brand,
.topbar h1 {
  letter-spacing: -.035em;
}

.global-nav-link {
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: var(--muted) !important;
}

.global-nav-link:hover {
  border-color: rgba(8, 127, 120, .20) !important;
  color: var(--accent) !important;
}

.global-nav-link.active {
  border-color: rgba(8, 127, 120, .22) !important;
  background: linear-gradient(135deg, rgba(20, 184, 166, .16), rgba(59, 130, 246, .09)) !important;
  color: var(--accent-strong) !important;
}

.explorer-action {
  display: inline-flex;
  min-height: 36px;
  gap: 6px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(8, 127, 120, .28);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, .72);
  font-weight: 700;
  text-decoration: none;
}

.pill,
.flag {
  border-color: rgba(153, 174, 198, .42) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .7);
}

/* Dashboard: turn the organisation surface into a clear command centre. */
.dashboard-intro,
.project-overview,
.workspace-head {
  position: relative;
}

.dashboard-intro::before,
.project-overview::before {
  display: block;
  width: 46px;
  height: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, #14b8a6, #3b82f6);
  box-shadow: 0 3px 10px rgba(20, 184, 166, .30);
}

.dashboard-stats .stat,
.project-health-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 203, 223, .75) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(235, 244, 250, .78)) !important;
  box-shadow: 0 10px 20px rgba(42, 78, 112, .07);
}

.dashboard-stats .stat::after,
.project-health-tile::after {
  position: absolute;
  top: -28px;
  right: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(20, 184, 166, .18), transparent 68%);
}

.project-row,
.sgx-row,
.project-card {
  border-color: rgba(207, 220, 235, .95) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, .82) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.project-row:hover,
.sgx-row:hover,
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, .45) !important;
  box-shadow: 0 14px 26px rgba(32, 75, 108, .12);
}

/* Decision surfaces: guide attention to the active choice and the next step. */
.system-chooser,
.catalog-chooser {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #14b8a6, #3b82f6) 1;
}

.workflow-kicker {
  color: #087f78 !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.system-list,
.catalog-tree,
.basket-tree {
  scrollbar-color: rgba(8, 127, 120, .42) transparent;
}

.system-button,
.catalog-row,
.basket-item {
  border-radius: 10px !important;
}

.system-button[aria-pressed="true"],
.catalog-row.selected,
.basket-item.selected {
  border-color: rgba(8, 127, 120, .42) !important;
  background: linear-gradient(135deg, rgba(20, 184, 166, .15), rgba(59, 130, 246, .09)) !important;
  box-shadow: inset 3px 0 #0f9f98;
}

.question {
  border-color: rgba(207, 220, 235, .92) !important;
  border-left: 4px solid #3b82f6 !important;
  border-radius: 14px !important;
  background: linear-gradient(112deg, rgba(255, 255, 255, .96), rgba(246, 250, 255, .82)) !important;
  box-shadow: 0 8px 20px rgba(31, 68, 105, .055);
}

.question.locked {
  border-left-color: #94a3b8 !important;
  background: rgba(241, 245, 249, .82) !important;
}

.completion-action,
.review-actions {
  border: 1px solid rgba(20, 184, 166, .25);
  border-radius: 14px;
  background: linear-gradient(115deg, rgba(236, 253, 245, .94), rgba(239, 246, 255, .92));
}

/* Workbench: make the authoring experience feel like a purpose-built studio. */
.ax-workbench-shell {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.ax-workbench-shell .topbar {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  grid-template-areas:
    "brand context"
    "actions actions";
  height: auto;
  min-height: 108px;
  row-gap: 10px;
  border-bottom-color: rgba(255, 255, 255, .14) !important;
  background: linear-gradient(112deg, #10213d 0%, #12375d 50%, #087f78 130%) !important;
  color: #f8fbff;
  box-shadow: 0 14px 32px rgba(12, 34, 61, .24);
}

.ax-workbench-shell .brand { grid-area: brand; }

.ax-workbench-shell .top-center {
  grid-area: context;
  display: flex;
  min-width: 0;
  gap: 8px;
}

.ax-workbench-shell .breadcrumbs { flex: 1 1 260px; }
.ax-workbench-shell .file-picker { flex: 0 1 280px; }

.ax-workbench-shell .actions {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.ax-workbench-shell .actions > button {
  flex: 0 0 auto;
  min-height: 38px;
}

.ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explorer-icon {
  display: inline-block;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px;
  flex: 0 0 17px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
}

.explorer-icon.folder { color: #b7791f; }
.explorer-icon.system { color: #087f78; }
.explorer-icon.record { color: #64748b; }
.catalog-icon.explorer-icon::before,
.record-icon.explorer-icon::before { content: none !important; }

.topbar > *,
.top-center > *,
.controls > *,
.actions > * { min-width: 0; }

.ax-workbench-shell .icon-button {
  display: inline-grid;
  width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
}

.ax-workbench-shell .header-overview-button {
  display: inline-flex;
  width: auto;
  gap: 7px;
  align-items: center;
  padding: 0 12px;
  color: #f8fbff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
}

.ax-workbench-shell .header-overview-button:hover {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .17);
}

.ax-workbench-shell .brand,
.ax-workbench-shell .breadcrumbs strong,
.ax-workbench-shell .breadcrumbs,
.ax-workbench-shell .file-picker span {
  color: #f8fbff !important;
}

.ax-workbench-shell .brand-mark {
  background: linear-gradient(135deg, #2dd4bf, #3b82f6) !important;
  box-shadow: 0 8px 16px rgba(45, 212, 191, .28);
}

.ax-workbench-shell .file-picker {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .12) !important;
}

.ax-workbench-shell .file-picker select {
  background: rgba(255, 255, 255, .96) !important;
}

.ax-workbench-shell .global-nav-link {
  color: rgba(248, 251, 255, .80) !important;
}

.ax-workbench-shell .global-nav-link.active,
.ax-workbench-shell .global-nav-link:hover {
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
}

.ax-workbench-shell .pane {
  background: rgba(255, 255, 255, .91) !important;
}

.ax-workbench-shell .pane-header,
.ax-workbench-shell .bottom-panel h3 {
  background: linear-gradient(110deg, #f5faff, #ecf6f8) !important;
}

.ax-workbench-shell .workbench-tab.active {
  color: #087f78 !important;
  background: linear-gradient(to bottom, rgba(20, 184, 166, .10), transparent) !important;
}

.ax-workbench-shell .workbench-tabs .workbench-tab {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 6px;
}

.ax-workbench-shell .bottom-grid {
  grid-template-columns:
    clamp(200px, var(--jobs-width), 32%)
    minmax(240px, 1fr)
    clamp(200px, var(--timeline-width), 30%);
}

.ax-workbench-shell .grid2 > * {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1500px) {
  .ax-workbench-shell .topbar {
    grid-template-columns: minmax(220px, 270px) minmax(380px, 1fr) auto;
    grid-template-areas: "brand context actions";
    min-height: 64px;
  }

  .ax-workbench-shell .actions {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 900px) {
  #app > .topbar { grid-template-columns: 1fr; }
  #app > .topbar .global-nav { width: 100%; }
}

@media (max-width: 767px) {
  body::before { background-size: 24px 24px; }
  .panel,
  .main-panel,
  .side-panel { border-radius: 14px !important; }
  .dashboard-stats .stat { min-height: 96px; }
}

/* Canonical application shell. The header owns only product identity and
 * global navigation; route-specific context belongs to the body below it. */
.ax-page-header,
.ax-workbench-shell .topbar {
  display: flex !important;
  grid-template: none !important;
  width: 100%;
  min-height: 64px !important;
  height: 64px !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 20px !important;
  padding: 0 clamp(16px, 3vw, 36px) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 0 !important;
  background: linear-gradient(112deg, #10213d 0%, #12375d 50%, #087f78 130%) !important;
  color: #f8fbff !important;
  box-shadow: 0 10px 28px rgba(12, 34, 61, .18) !important;
}

.ax-product-brand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none !important;
}

.ax-product-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #2dd4bf, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 16px rgba(45, 212, 191, .24);
}

.ax-page-header .global-nav {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ax-page-header .global-nav::-webkit-scrollbar { display: none; }

.ax-page-context,
.ax-page-tools {
  display: flex;
  min-width: 0;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(207, 220, 235, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 26px rgba(29, 57, 91, .08);
  backdrop-filter: blur(14px);
}
.ax-page-context h1 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.ax-page-context .actions,
.ax-page-context .controls { justify-content: flex-end; }

.app { grid-template-rows: auto auto minmax(0, 1fr) !important; }
.ax-dashboard-tools {
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 0;
  padding-block: 10px;
}
.ax-dashboard-tools select { width: min(280px, 100%); }
.ax-dashboard-tools .status { flex: 1 1 220px; }

.ax-workbench-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 10px 12px;
  border-width: 0 0 1px;
  border-radius: 0;
}
.ax-workbench-shell .ax-workbench-toolbar .top-center {
  display: flex;
  grid-area: auto;
  color: var(--text);
}
.ax-workbench-shell .ax-workbench-toolbar .breadcrumbs,
.ax-workbench-shell .ax-workbench-toolbar .breadcrumbs strong,
.ax-workbench-shell .ax-workbench-toolbar .file-picker span { color: var(--text) !important; }
.ax-workbench-shell .ax-workbench-toolbar .actions {
  display: flex;
  grid-area: auto;
  padding-top: 0;
  border-top: 0;
}
.ax-workbench-shell .ax-workbench-toolbar .header-overview-button { color: var(--text); background: #fff; }

@media (max-width: 1100px) {
  .ax-page-context,
  .ax-page-tools { align-items: stretch; flex-direction: column; }
  .ax-page-context .actions,
  .ax-page-context .controls { justify-content: flex-start; }
  .ax-workbench-toolbar { grid-template-columns: 1fr; }
  .ax-workbench-shell .ax-workbench-toolbar .actions { justify-content: flex-start; overflow-x: auto; }
}

@media (max-width: 700px) {
  .ax-page-header,
  .ax-workbench-shell .topbar { height: auto !important; min-height: 60px !important; }
  .ax-product-brand span:last-child { display: none; }
  .ax-page-header .global-nav { flex: 1 1 auto; justify-content: flex-start; }
  .ax-page-header .global-nav-link { min-height: 40px; white-space: nowrap; }
  .ax-page-context,
  .ax-page-tools { border-radius: 14px; }
  .ax-dashboard-tools { width: calc(100% - 20px); }
}
