/*
 * Ticket Recon UI v2
 *
 * This layer is intentionally opt-in. Nothing in the existing application is
 * restyled until a page root receives the `ui-v2` class. Keeping the selectors
 * scoped lets the redesign move one surface at a time without changing the
 * reconciliation, authentication, or integration behavior underneath it.
 */

.ui-v2 {
  color-scheme: light;
  --ui-font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-font-display: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-canvas: #eef2f7;
  --ui-canvas-raised: #f8fafc;
  --ui-surface: #ffffff;
  --ui-surface-solid: #ffffff;
  --ui-surface-muted: #f5f7fa;
  --ui-ink: #1d1d1f;
  --ui-ink-secondary: #6e6e73;
  --ui-ink-tertiary: #86868b;
  --ui-line: rgba(15, 23, 42, 0.13);
  --ui-line-strong: rgba(15, 23, 42, 0.21);
  --ui-blue: #0071e3;
  --ui-blue-hover: #0077ed;
  --ui-blue-soft: rgba(0, 113, 227, 0.09);
  --ui-green: #248a3d;
  --ui-green-soft: rgba(36, 138, 61, 0.1);
  --ui-amber: #ad6d00;
  --ui-amber-soft: rgba(245, 166, 35, 0.13);
  --ui-red: #d70015;
  --ui-red-soft: rgba(215, 0, 21, 0.09);
  --ui-radius-xs: 10px;
  --ui-radius-sm: 14px;
  --ui-radius-md: 20px;
  --ui-radius-lg: 28px;
  --ui-radius-xl: 36px;
  --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.08);
  --ui-shadow-md: 0 3px 10px rgba(15, 23, 42, 0.07), 0 24px 60px rgba(15, 23, 42, 0.11);
  --ui-shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.1), 0 40px 96px rgba(15, 23, 42, 0.15);
  --ui-focus: 0 0 0 4px rgba(0, 113, 227, 0.2);
  --ui-content: 1180px;
  --ui-content-narrow: 860px;
  --ui-gutter: clamp(20px, 4vw, 48px);
  color: var(--ui-ink);
  font-family: var(--ui-font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.ui-v2[data-ui-theme="dark"] {
  color-scheme: dark;
  --ui-canvas: #050506;
  --ui-canvas-raised: #0b0b0d;
  --ui-surface: rgba(28, 28, 30, 0.8);
  --ui-surface-solid: #1c1c1e;
  --ui-surface-muted: rgba(44, 44, 46, 0.78);
  --ui-ink: #f5f5f7;
  --ui-ink-secondary: #a1a1a6;
  --ui-ink-tertiary: #8e8e93;
  --ui-line: rgba(255, 255, 255, 0.1);
  --ui-line-strong: rgba(255, 255, 255, 0.17);
  --ui-blue: #2997ff;
  --ui-blue-hover: #40a9ff;
  --ui-blue-soft: rgba(41, 151, 255, 0.14);
  --ui-green: #30d158;
  --ui-green-soft: rgba(48, 209, 88, 0.12);
  --ui-amber: #ffd60a;
  --ui-amber-soft: rgba(255, 214, 10, 0.12);
  --ui-red: #ff453a;
  --ui-red-soft: rgba(255, 69, 58, 0.12);
  --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.24);
  --ui-shadow-md: 0 2px 10px rgba(0, 0, 0, 0.36), 0 24px 68px rgba(0, 0, 0, 0.3);
  --ui-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45), 0 40px 100px rgba(0, 0, 0, 0.4);
}

.ui-v2,
.ui-v2 *,
.ui-v2 *::before,
.ui-v2 *::after {
  box-sizing: border-box;
}

.ui-v2 :where(h1, h2, h3, h4, p) {
  margin-block-start: 0;
}

.ui-v2 :where(h1, h2, h3, h4) {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  letter-spacing: -0.035em;
}

.ui-v2 :where(a, button, input, select, textarea, summary) {
  font: inherit;
}

.ui-v2 :where(a, button, input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--ui-focus);
}

.ui-v2 .ui-shell {
  width: min(100%, calc(var(--ui-content) + (var(--ui-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--ui-gutter);
}

.ui-v2 .ui-shell--narrow {
  width: min(100%, calc(var(--ui-content-narrow) + (var(--ui-gutter) * 2)));
}

.ui-v2 .ui-section {
  padding-block: clamp(72px, 9vw, 132px);
}

.ui-v2 .ui-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ui-v2 .ui-display {
  max-width: 920px;
  margin-bottom: 20px;
  font-size: clamp(46px, 7.2vw, 88px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.ui-v2 .ui-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.02;
}

.ui-v2 .ui-lede {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ui-ink-secondary);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.018em;
  line-height: 1.48;
}

.ui-v2 .ui-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.ui-v2 .ui-card--solid {
  background: var(--ui-surface-solid);
}

.ui-v2 .ui-button {
  min-height: 44px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.ui-v2 .ui-button:hover {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-solid);
  transform: translateY(-1px);
}

.ui-v2 .ui-button:active {
  transform: translateY(0);
}

.ui-v2 .ui-button--primary {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
}

.ui-v2 .ui-button--primary:hover {
  border-color: var(--ui-blue-hover);
  background: var(--ui-blue-hover);
}

.ui-v2 .ui-button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ui-blue);
}

.ui-v2 .ui-button--quiet:hover {
  border-color: transparent;
  background: var(--ui-blue-soft);
}

.ui-v2 .ui-pill {
  min-height: 30px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-surface-muted);
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.ui-v2 .ui-pill--success {
  border-color: transparent;
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

.ui-v2 .ui-pill--warning {
  border-color: transparent;
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

.ui-v2 .ui-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ui-v2 .ui-divider {
  height: 1px;
  border: 0;
  background: var(--ui-line);
}

.ui-v2 .ui-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;
}

@media (max-width: 720px) {
  .ui-v2 {
    --ui-gutter: 18px;
  }

  .ui-v2 .ui-section {
    padding-block: 72px;
  }

  .ui-v2 .ui-display {
    font-size: clamp(42px, 13vw, 62px);
  }

  .ui-v2 .ui-title {
    font-size: clamp(32px, 10vw, 46px);
  }
}

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

/* Public homepage --------------------------------------------------------- */

#homeView.ui-home {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  overflow-y: auto;
  background:
    radial-gradient(circle at 4% 2%, rgba(52, 132, 255, 0.14), transparent 29rem),
    radial-gradient(circle at 96% 18%, rgba(41, 205, 169, 0.12), transparent 31rem),
    linear-gradient(180deg, var(--ui-canvas-raised), var(--ui-canvas) 44%, var(--ui-canvas-raised));
  color: var(--ui-ink);
  scroll-behavior: smooth;
  transition: background-color 180ms ease, color 180ms ease;
}

#homeView.ui-home .home-page {
  position: relative;
  min-height: 100vh;
  padding: 12px 0 36px;
  isolation: isolate;
}

#homeView.ui-home .home-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  opacity: 1;
  filter: blur(2px);
  pointer-events: none;
}

#homeView.ui-home .home-glow-one {
  width: 720px;
  height: 720px;
  top: -390px;
  right: auto;
  left: -240px;
  background: radial-gradient(circle, rgba(76, 143, 255, 0.18), transparent 70%);
}

#homeView.ui-home .home-glow-two {
  width: 720px;
  height: 720px;
  top: 120px;
  right: -280px;
  left: auto;
  background: radial-gradient(circle, rgba(38, 201, 165, 0.14), transparent 70%);
}

#homeView.ui-home .home-glow-three {
  width: 620px;
  height: 620px;
  top: 850px;
  bottom: auto;
  left: 24%;
  background: radial-gradient(circle, rgba(121, 93, 229, 0.08), transparent 70%);
}

#homeView.ui-home .home-top {
  width: min(calc(100% - 40px), var(--ui-content));
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--ui-surface) 92%, transparent);
  box-shadow: 0 8px 30px rgba(31, 50, 82, 0.08);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

#homeView.ui-home[data-ui-theme="dark"] .home-top {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

#homeView.ui-home .home-brand {
  gap: 10px;
  color: var(--ui-ink);
  letter-spacing: normal;
}

#homeView.ui-home .home-brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #45a7ff 0%, #087af6 55%, #655bff 100%);
  box-shadow: 0 6px 16px rgba(8, 122, 246, 0.27), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

#homeView.ui-home .home-brand-mark svg {
  width: 24px;
  height: 24px;
}

#homeView.ui-home .home-radar-outline,
#homeView.ui-home .home-radar-ring,
#homeView.ui-home .home-radar-core,
#homeView.ui-home .home-radar-line {
  stroke: currentColor;
}

#homeView.ui-home .home-radar-beam {
  fill: rgba(255, 255, 255, 0.25);
}

#homeView.ui-home .home-radar-ping {
  fill: currentColor;
}

#homeView.ui-home .home-brand-text {
  color: var(--ui-ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-transform: none;
}

#homeView.ui-home .home-brand-accent {
  color: inherit;
}

#homeView.ui-home .home-nav {
  gap: 4px;
  flex-wrap: nowrap;
  color: var(--ui-ink-secondary);
  font-size: 12px;
}

#homeView.ui-home .home-nav > a,
#homeView.ui-home .home-nav-dropdown > summary {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 620;
  transition: background-color 150ms ease, color 150ms ease;
}

#homeView.ui-home .home-nav > a:hover,
#homeView.ui-home .home-nav-dropdown > summary:hover,
#homeView.ui-home .home-nav > a[aria-current="page"] {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#homeView.ui-home .home-nav-menu {
  top: calc(100% + 9px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-md);
}

#homeView.ui-home .home-nav-menu a {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--ui-ink-secondary);
  font-size: 12px;
}

#homeView.ui-home .home-nav-menu a:hover,
#homeView.ui-home .home-nav-menu a[aria-current="page"] {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#homeView.ui-home .home-actions {
  align-items: center;
  gap: 8px;
}

#homeView.ui-home .home-theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  cursor: pointer;
}

#homeView.ui-home .home-theme-toggle:hover {
  background: var(--ui-surface-muted);
}

#homeView.ui-home .home-theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#homeView.ui-home .home-btn {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#homeView.ui-home .home-btn:hover {
  transform: translateY(-1px);
}

#homeView.ui-home .home-btn:active {
  transform: translateY(0) scale(0.98);
}

#homeView.ui-home .home-btn-ghost,
#homeView.ui-home .home-btn-pill {
  border: 1px solid var(--ui-line-strong);
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
}

#homeView.ui-home .home-btn-ghost:hover,
#homeView.ui-home .home-btn-pill:hover {
  background: var(--ui-surface-muted);
}

#homeView.ui-home .home-btn-solid {
  border: 1px solid var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.22);
}

#homeView.ui-home .home-btn-solid:hover {
  border-color: var(--ui-blue-hover);
  background: var(--ui-blue-hover);
}

#homeView.ui-home .home-hero--showcase {
  width: min(calc(100% - 40px), var(--ui-content));
  max-width: none;
  min-height: auto;
  margin: 0 auto;
  padding: clamp(76px, 9vw, 124px) 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 54px;
  text-align: center;
}

#homeView.ui-home .home-hero-copy {
  max-width: 980px;
  margin-inline: auto;
}

#homeView.ui-home .home-eyebrow {
  margin-bottom: 20px;
  padding: 7px 11px;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--ui-blue) 18%, transparent);
  border-radius: 999px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.075em;
}

#homeView.ui-home .home-eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--ui-green);
  box-shadow: 0 0 0 4px var(--ui-green-soft);
}

#homeView.ui-home .home-hero--showcase h1 {
  max-width: 980px;
  margin: 0 auto;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(48px, 6.4vw, 78px);
  font-weight: 680;
  letter-spacing: -0.064em;
  line-height: 0.99;
}

#homeView.ui-home .home-hero--showcase h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--ui-blue) 0%, #6579ec 44%, #19ad8f 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

#homeView.ui-home .home-hero--showcase p {
  max-width: 740px;
  margin: 24px auto 0;
  color: var(--ui-ink-secondary);
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: -0.015em;
  line-height: 1.55;
}

#homeView.ui-home .home-hero--showcase .home-cta {
  margin-top: 30px;
  justify-content: center;
}

#homeView.ui-home .home-hero--showcase .home-btn {
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 14px;
}

#homeView.ui-home .home-hero-proof {
  margin: 24px 0 0;
  justify-content: center;
  gap: 10px 20px;
  color: var(--ui-ink-tertiary);
  font-size: 11px;
  font-weight: 620;
}

#homeView.ui-home .home-hero-proof li::before {
  color: var(--ui-green);
}

#homeView.ui-home .home-hero-product {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--ui-line-strong);
  border-radius: 28px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-lg);
  transform: perspective(1800px) rotateX(1.1deg);
  text-align: left;
}

#homeView.ui-home .home-hero-product::before {
  width: 560px;
  height: 560px;
  top: -430px;
  right: -190px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.16), transparent 70%);
  filter: none;
}

#homeView.ui-home .home-product-bar {
  min-height: 64px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--ui-line);
  background: color-mix(in srgb, var(--ui-surface-solid) 90%, transparent);
  color: var(--ui-ink);
}

#homeView.ui-home .home-product-dots span {
  background: var(--ui-line-strong);
}

#homeView.ui-home .home-product-tabs {
  padding: 3px;
  display: flex;
  gap: 3px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface-muted);
}

#homeView.ui-home .home-product-tabs button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-ink-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 680;
}

#homeView.ui-home .home-product-tabs button.is-active {
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  box-shadow: 0 1px 5px rgba(20, 30, 48, 0.12);
}

#homeView.ui-home .home-product-live {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ui-green-soft);
  color: var(--ui-green);
  font-size: 10px;
}

#homeView.ui-home .home-product-summary {
  gap: 12px;
  padding: 24px 24px 18px;
}

#homeView.ui-home .home-product-summary div {
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
}

#homeView.ui-home .home-product-summary span {
  margin-bottom: 8px;
  color: var(--ui-ink-secondary);
  font-size: 9px;
  font-weight: 700;
}

#homeView.ui-home .home-product-summary strong {
  color: var(--ui-ink);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.045em;
}

#homeView.ui-home .home-product-summary .home-product-warn {
  color: var(--ui-amber);
}

#homeView.ui-home .home-product-table {
  margin: 0 24px 18px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
}

#homeView.ui-home .home-product-row {
  min-height: 54px;
  padding: 0 16px;
  border-color: var(--ui-line);
  color: var(--ui-ink);
  font-size: 11px;
}

#homeView.ui-home .home-product-row--head {
  min-height: 40px;
  background: var(--ui-surface-muted);
  color: var(--ui-ink-tertiary);
  font-size: 9px;
}

#homeView.ui-home .home-status {
  padding: 5px 8px;
  font-size: 9px;
}

#homeView.ui-home .home-status--matched {
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

#homeView.ui-home .home-status--review {
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

#homeView.ui-home .home-product-note {
  margin: 0 24px 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ui-green-soft);
  color: var(--ui-ink-secondary);
  font-size: 11px;
}

#homeView.ui-home .home-product-note > span:first-child {
  color: var(--ui-green);
}

#homeView.ui-home .home-section-block,
#homeView.ui-home .home-footer-panel,
#homeView.ui-home .home-footer-policies {
  width: min(calc(100% - 40px), var(--ui-content));
  max-width: none;
  margin-inline: auto;
}

#homeView.ui-home .home-section-block {
  margin-top: 0;
  padding: clamp(82px, 9vw, 124px) 0;
  border-top: 0;
  scroll-margin-top: 88px;
}

#homeView.ui-home .home-section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

#homeView.ui-home .home-section-kicker {
  margin-bottom: 10px;
  color: var(--ui-blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

#homeView.ui-home .home-section-head h2,
#homeView.ui-home .home-value-section .home-section-head h2,
#homeView.ui-home .home-integrations-section .home-section-head h2 {
  max-width: none;
  margin: 0;
  color: var(--ui-ink);
  font-size: clamp(34px, 4.7vw, 56px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

#homeView.ui-home .home-section-head p {
  max-width: 660px;
  margin: 17px auto 0;
  color: var(--ui-ink-secondary);
  font-size: 16px;
  line-height: 1.55;
}

#homeView.ui-home .home-value-grid {
  gap: 16px;
}

#homeView.ui-home .home-value-card {
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#homeView.ui-home .home-value-card::after {
  position: absolute;
  width: 230px;
  height: 230px;
  right: -105px;
  bottom: -120px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, var(--ui-blue-soft), transparent 70%);
  pointer-events: none;
}

#homeView.ui-home .home-value-card--featured {
  border-color: color-mix(in srgb, var(--ui-blue) 22%, var(--ui-line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--ui-surface-solid) 94%, var(--ui-blue)), var(--ui-surface));
}

#homeView.ui-home .home-value-number {
  margin-bottom: 90px;
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#homeView.ui-home .home-value-card h3 {
  margin-bottom: 10px;
  color: var(--ui-ink);
  font-size: 24px;
  letter-spacing: -0.035em;
}

#homeView.ui-home .home-value-card p {
  color: var(--ui-ink-secondary);
  font-size: 14px;
  line-height: 1.62;
}

#homeView.ui-home .home-integration-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#homeView.ui-home .home-integration-card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#homeView.ui-home .home-integration-card--featured {
  border-color: color-mix(in srgb, var(--ui-blue) 23%, var(--ui-line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--ui-surface-solid) 94%, var(--ui-blue)), var(--ui-surface));
}

#homeView.ui-home .home-integration-card-head {
  margin-bottom: 46px;
}

#homeView.ui-home .home-integration-mark {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #45a7ff, #087af6 58%, #655bff);
  color: #ffffff;
  font-size: 11px;
}

#homeView.ui-home .home-integration-type {
  border-color: var(--ui-line);
  background: var(--ui-surface-muted);
  color: var(--ui-ink-secondary);
}

#homeView.ui-home .home-integration-card h3 {
  color: var(--ui-ink);
  font-size: 21px;
}

#homeView.ui-home .home-integration-card p {
  color: var(--ui-ink-secondary);
  font-size: 13px;
}

#homeView.ui-home .home-integration-note {
  margin-top: 20px;
  background: var(--ui-green-soft);
  color: var(--ui-ink-secondary);
}

#homeView.ui-home .home-integration-note span {
  color: var(--ui-green);
}

#homeView.ui-home .home-security-card {
  max-width: 1000px;
  padding: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#homeView.ui-home .home-security-card p {
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}

#homeView.ui-home .home-security-card p:first-child {
  grid-column: 1 / -1;
  color: var(--ui-ink);
  font-size: 15px;
  font-weight: 620;
}

#homeView.ui-home .home-security-card p:last-child {
  color: var(--ui-ink-secondary);
  font-weight: 500;
}

#homeView.ui-home .home-security-actions {
  margin-top: 20px;
}

#homeView.ui-home .home-pricing {
  gap: 15px;
}

#homeView.ui-home .home-price-card {
  min-height: 440px;
  padding: 26px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

#homeView.ui-home .home-price-card:hover {
  border-color: color-mix(in srgb, var(--ui-blue) 32%, var(--ui-line));
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-3px);
}

#homeView.ui-home .home-price-card h3 {
  color: var(--ui-ink);
  font-size: 23px;
}

#homeView.ui-home .home-price {
  color: var(--ui-ink);
  font-size: 38px;
  letter-spacing: -0.05em;
}

#homeView.ui-home .home-price small,
#homeView.ui-home .home-price-includes-label,
#homeView.ui-home .home-price-includes {
  color: var(--ui-ink-secondary);
}

#homeView.ui-home .home-price-card span,
#homeView.ui-home .home-price-includes-label {
  color: var(--ui-ink-secondary);
}

#homeView.ui-home .home-price-includes li {
  color: var(--ui-ink);
}

#homeView.ui-home .home-price-includes li::before {
  background: var(--ui-green);
  box-shadow: 0 0 0 4px var(--ui-green-soft);
}

#homeView.ui-home .home-demo-shell {
  max-width: 940px;
}

#homeView.ui-home .home-demo-card {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--ui-line-strong);
  border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ui-surface-solid) 96%, var(--ui-blue)), color-mix(in srgb, var(--ui-surface-solid) 95%, var(--ui-green)));
  box-shadow: var(--ui-shadow-md);
  color: var(--ui-ink);
}

#homeView.ui-home .home-demo-card::before {
  position: absolute;
  width: 430px;
  height: 430px;
  top: -310px;
  right: -130px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.18), transparent 70%);
  pointer-events: none;
}

#homeView.ui-home .home-demo-card > * {
  position: relative;
}

#homeView.ui-home .home-pill {
  border-color: var(--ui-line);
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

#homeView.ui-home .home-demo-card h3 {
  color: var(--ui-ink);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.05em;
}

#homeView.ui-home .home-demo-card p,
#homeView.ui-home .home-demo-list,
#homeView.ui-home .home-demo-launch-note {
  color: var(--ui-ink-secondary);
}

#homeView.ui-home .home-demo-list li {
  color: var(--ui-ink);
}

#homeView.ui-home .home-demo-list li::before {
  background: var(--ui-green);
  box-shadow: 0 0 0 4px var(--ui-green-soft);
}

#homeView.ui-home .home-footer-panel {
  margin-top: 36px;
  padding: 42px 22px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
}

#homeView.ui-home .home-footer-panel h2 {
  color: var(--ui-ink);
}

#homeView.ui-home .home-footer-panel p,
#homeView.ui-home .home-footer-policies {
  color: var(--ui-ink-secondary);
}

#homeView.ui-home .home-footer-policies {
  padding-top: 22px;
  border-top: 1px solid var(--ui-line);
}

#homeView.ui-home .home-footer-policies a:hover,
#homeView.ui-home .home-footer-panel a:hover {
  color: var(--ui-blue);
}

@media (max-width: 1040px) {
  #homeView.ui-home .home-top {
    grid-template-columns: 1fr auto;
  }

  #homeView.ui-home .home-nav {
    display: none;
  }

  #homeView.ui-home .home-actions {
    grid-column: 2;
  }

  #homeView.ui-home .home-integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #homeView.ui-home .home-page {
    padding-top: 7px;
  }

  #homeView.ui-home .home-top,
  #homeView.ui-home .home-hero--showcase,
  #homeView.ui-home .home-section-block,
  #homeView.ui-home .home-footer-panel,
  #homeView.ui-home .home-footer-policies {
    width: min(calc(100% - 24px), var(--ui-content));
  }

  #homeView.ui-home .home-top {
    min-height: 52px;
    top: 7px;
    padding: 6px 7px 6px 10px;
  }

  #homeView.ui-home .home-brand-mark {
    width: 34px;
    height: 34px;
  }

  #homeView.ui-home .home-theme-toggle {
    display: none;
  }

  #homeView.ui-home .home-hero--showcase {
    padding: 62px 0 58px;
    gap: 40px;
  }

  #homeView.ui-home .home-hero--showcase h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  #homeView.ui-home .home-cta {
    align-items: stretch;
    flex-direction: column;
  }

  #homeView.ui-home .home-product-tabs {
    display: none;
  }

  #homeView.ui-home .home-product-bar {
    grid-template-columns: 1fr auto;
  }

  #homeView.ui-home .home-product-summary {
    grid-template-columns: 1fr;
    padding: 16px 16px 12px;
  }

  #homeView.ui-home .home-product-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  #homeView.ui-home .home-product-summary span {
    margin: 0;
  }

  #homeView.ui-home .home-product-table {
    margin: 0 16px 12px;
    overflow-x: auto;
  }

  #homeView.ui-home .home-product-row {
    min-width: 540px;
  }

  #homeView.ui-home .home-product-note {
    margin: 0 16px 16px;
  }

  #homeView.ui-home .home-value-grid,
  #homeView.ui-home .home-integration-grid,
  #homeView.ui-home .home-pricing,
  #homeView.ui-home .home-security-card {
    grid-template-columns: 1fr;
  }

  #homeView.ui-home .home-value-card {
    min-height: 300px;
  }

  #homeView.ui-home .home-value-number {
    margin-bottom: 62px;
  }

  #homeView.ui-home .home-security-card p:first-child {
    grid-column: auto;
  }

  #homeView.ui-home .home-price-card {
    min-height: auto;
  }

  #homeView.ui-home .home-footer-policies {
    justify-content: flex-start;
  }
}

/* Shared public-page shell ------------------------------------------------ */

body.ui-public-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 4% 2%, rgba(52, 132, 255, 0.14), transparent 29rem),
    radial-gradient(circle at 96% 18%, rgba(41, 205, 169, 0.12), transparent 31rem),
    linear-gradient(180deg, var(--ui-canvas-raised), var(--ui-canvas) 44%, var(--ui-canvas-raised));
  color: var(--ui-ink);
  scroll-behavior: smooth;
  transition: background-color 180ms ease, color 180ms ease;
}

body.ui-public-page .home-page {
  position: relative;
  min-height: 100vh;
  padding: 12px 0 36px;
  isolation: isolate;
}

body.ui-public-page .home-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  opacity: 1;
  filter: blur(2px);
  pointer-events: none;
}

body.ui-public-page .home-glow-one {
  width: 720px;
  height: 720px;
  top: -390px;
  right: auto;
  left: -240px;
  background: radial-gradient(circle, rgba(76, 143, 255, 0.18), transparent 70%);
}

body.ui-public-page .home-glow-two {
  width: 720px;
  height: 720px;
  top: 120px;
  right: -280px;
  left: auto;
  background: radial-gradient(circle, rgba(38, 201, 165, 0.14), transparent 70%);
}

body.ui-public-page .home-glow-three {
  width: 620px;
  height: 620px;
  top: 850px;
  bottom: auto;
  left: 24%;
  background: radial-gradient(circle, rgba(121, 93, 229, 0.08), transparent 70%);
}

body.ui-public-page .home-top {
  width: min(calc(100% - 40px), var(--ui-content));
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--ui-surface) 92%, transparent);
  box-shadow: 0 8px 30px rgba(31, 50, 82, 0.08);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

body.ui-public-page[data-ui-theme="dark"] .home-top {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

body.ui-public-page .home-brand {
  gap: 10px;
  color: var(--ui-ink);
  letter-spacing: normal;
}

body.ui-public-page .home-brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(145deg, #45a7ff 0%, #087af6 55%, #655bff 100%);
  box-shadow: 0 6px 16px rgba(8, 122, 246, 0.27), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

body.ui-public-page .home-brand-mark svg {
  width: 24px;
  height: 24px;
}

body.ui-public-page .home-radar-outline,
body.ui-public-page .home-radar-ring,
body.ui-public-page .home-radar-core,
body.ui-public-page .home-radar-line {
  stroke: currentColor;
}

body.ui-public-page .home-radar-beam {
  fill: rgba(255, 255, 255, 0.25);
}

body.ui-public-page .home-radar-ping {
  fill: currentColor;
}

body.ui-public-page .home-brand-text {
  color: var(--ui-ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-transform: none;
}

body.ui-public-page .home-brand-accent {
  color: inherit;
}

body.ui-public-page .home-nav {
  gap: 4px;
  flex-wrap: nowrap;
  color: var(--ui-ink-secondary);
  font-size: 12px;
}

body.ui-public-page .home-nav > a,
body.ui-public-page .home-nav-dropdown > summary {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 620;
  transition: background-color 150ms ease, color 150ms ease;
}

body.ui-public-page .home-nav > a:hover,
body.ui-public-page .home-nav-dropdown > summary:hover,
body.ui-public-page .home-nav > a[aria-current="page"],
body.ui-public-page .home-nav-dropdown.is-active > summary,
body.ui-public-page .home-nav-dropdown[open] > summary {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

body.ui-public-page .home-nav-menu {
  top: calc(100% + 9px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-md);
}

body.ui-public-page .home-nav-menu a {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--ui-ink-secondary);
  font-size: 12px;
}

body.ui-public-page .home-nav-menu a:hover,
body.ui-public-page .home-nav-menu a[aria-current="page"] {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

body.ui-public-page .home-actions {
  align-items: center;
  gap: 8px;
}

body.ui-public-page .home-theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  cursor: pointer;
}

body.ui-public-page .home-theme-toggle:hover {
  background: var(--ui-surface-muted);
}

body.ui-public-page .home-theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.ui-public-page .home-btn {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

body.ui-public-page .home-btn:hover {
  transform: translateY(-1px);
}

body.ui-public-page .home-btn:active {
  transform: translateY(0) scale(0.98);
}

body.ui-public-page .home-btn-ghost,
body.ui-public-page .home-btn-pill {
  border: 1px solid var(--ui-line-strong);
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
}

body.ui-public-page .home-btn-ghost:hover,
body.ui-public-page .home-btn-pill:hover {
  background: var(--ui-surface-muted);
}

body.ui-public-page .home-btn-solid {
  border: 1px solid var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.22);
}

body.ui-public-page .home-btn-solid:hover {
  border-color: var(--ui-blue-hover);
  background: var(--ui-blue-hover);
}

body.ui-public-page .home-hero--compact {
  width: min(calc(100% - 40px), 940px);
  max-width: none;
  margin: 0 auto;
  padding: clamp(82px, 10vw, 132px) 0 clamp(56px, 7vw, 88px);
  text-align: center;
}

body.ui-public-page .home-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--ui-blue) 18%, transparent);
  border-radius: 999px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

body.ui-public-page .home-hero--compact h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(44px, 6.2vw, 72px);
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 1;
}

body.ui-public-page .home-hero--compact p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--ui-ink-secondary);
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: -0.012em;
  line-height: 1.58;
}

body.ui-public-page .home-section-block,
body.ui-public-page .home-footer-panel,
body.ui-public-page .home-footer-policies {
  width: min(calc(100% - 40px), var(--ui-content));
  max-width: none;
  margin-inline: auto;
}

body.ui-public-page .home-section-block {
  margin-top: 0;
  padding: clamp(34px, 5vw, 72px) 0 clamp(72px, 9vw, 120px);
  border-top: 0;
}

body.ui-public-page .home-section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

body.ui-public-page .home-section-head h2 {
  color: var(--ui-ink);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

body.ui-public-page .home-section-head p {
  margin: 16px auto 0;
  color: var(--ui-ink-secondary);
  line-height: 1.58;
}

body.ui-public-page .home-footer-panel {
  margin-top: 24px;
  padding: 42px 22px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
}

body.ui-public-page .home-footer-panel h2 {
  color: var(--ui-ink);
}

body.ui-public-page .home-footer-panel p,
body.ui-public-page .home-footer-policies {
  color: var(--ui-ink-secondary);
}

body.ui-public-page .home-footer-policies {
  padding-top: 22px;
  border-top: 1px solid var(--ui-line);
}

body.ui-public-page .home-footer-policies a:hover,
body.ui-public-page .home-footer-panel a:hover {
  color: var(--ui-blue);
}

@media (max-width: 1040px) {
  body.ui-public-page .home-top {
    grid-template-columns: 1fr auto;
  }

  body.ui-public-page .home-nav {
    display: none;
  }

  body.ui-public-page .home-actions {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  body.ui-public-page .home-page {
    padding-top: 7px;
  }

  body.ui-public-page .home-top,
  body.ui-public-page .home-hero--compact,
  body.ui-public-page .home-section-block,
  body.ui-public-page .home-footer-panel,
  body.ui-public-page .home-footer-policies {
    width: min(calc(100% - 24px), var(--ui-content));
  }

  body.ui-public-page .home-top {
    min-height: 52px;
    top: 7px;
    padding: 6px 7px 6px 10px;
  }

  body.ui-public-page .home-brand-mark {
    width: 34px;
    height: 34px;
  }

  body.ui-public-page .home-theme-toggle {
    display: none;
  }

  body.ui-public-page .home-hero--compact {
    padding: 62px 0 52px;
  }

  body.ui-public-page .home-hero--compact h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  body.ui-public-page .home-footer-policies {
    justify-content: flex-start;
  }
}

/* Feature-page content ---------------------------------------------------- */

body.ui-public-page .security-manifesto-shell {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

body.ui-public-page .security-manifesto {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--ui-line-strong);
  border-radius: 28px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-md);
  color: var(--ui-ink);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.ui-public-page .security-manifesto > .home-pill {
  margin-bottom: 24px;
}

body.ui-public-page .security-manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

body.ui-public-page .security-manifesto-copy h2 {
  margin: 0 0 18px;
  color: var(--ui-ink);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

body.ui-public-page .security-manifesto-copy p,
body.ui-public-page .security-manifesto-copy .security-manifesto-lead {
  margin: 0;
  color: var(--ui-ink-secondary);
  font-size: 15px;
  line-height: 1.65;
}

body.ui-public-page .security-manifesto-copy .security-manifesto-lead {
  color: var(--ui-ink);
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.012em;
}

body.ui-public-page .security-manifesto-copy p + p {
  margin-top: 14px;
}

body.ui-public-page .security-manifesto-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

body.ui-public-page .security-manifesto-list li {
  position: relative;
  min-height: 58px;
  padding: 14px 14px 14px 43px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.5;
}

body.ui-public-page .security-manifesto-list li::before {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 15px;
  left: 13px;
  content: "✓";
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-green-soft);
  color: var(--ui-green);
  font-size: 11px;
  font-weight: 800;
}

body.ui-public-page .security-highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.ui-public-page .security-highlight-item {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.ui-public-page .security-highlight-item strong {
  display: block;
  margin-bottom: 44px;
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.ui-public-page .security-highlight-item span {
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.58;
}

body.ui-public-page .security-commitments {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.ui-public-page .security-promise-row {
  min-width: 0;
  min-height: 300px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.ui-public-page .security-promise-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

body.ui-public-page .security-promise-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 780;
}

body.ui-public-page .security-promise-tag {
  justify-self: start;
  padding: 6px 9px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-surface-muted);
  color: var(--ui-ink-secondary);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.ui-public-page .security-promise-head h3 {
  grid-column: 1 / -1;
  margin: 36px 0 0;
  color: var(--ui-ink);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

body.ui-public-page .security-promise-body {
  margin-top: 26px;
}

body.ui-public-page .security-promise-body p {
  margin: 0;
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.62;
}

@media (max-width: 960px) {
  body.ui-public-page .security-manifesto-grid {
    grid-template-columns: 1fr;
  }

  body.ui-public-page .security-highlight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.ui-public-page .security-highlight-strip,
  body.ui-public-page .security-commitments {
    grid-template-columns: 1fr;
  }

  body.ui-public-page .security-highlight-item {
    min-height: auto;
  }

  body.ui-public-page .security-highlight-item strong {
    margin-bottom: 22px;
  }

  body.ui-public-page .security-promise-row {
    min-height: 260px;
  }
}

/* Security-page detail ---------------------------------------------------- */

body.public-security-detail .security-manifesto {
  background:
    radial-gradient(circle at 92% 8%, var(--ui-green-soft), transparent 22rem),
    var(--ui-surface);
}

body.public-security-detail .security-highlight-item strong {
  color: var(--ui-green);
}

body.public-security-detail .security-commitments {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body.public-security-detail .security-promise-row {
  min-height: 0;
  justify-content: flex-start;
}

body.public-security-detail .security-promise-index {
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

body.public-security-detail .security-promise-head h3 {
  margin-top: 28px;
}

body.public-security-detail .security-promise-body {
  margin-top: 20px;
}

body.public-security-detail .security-promise-body ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

body.public-security-detail .security-promise-body li {
  position: relative;
  padding-left: 20px;
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.62;
}

body.public-security-detail .security-promise-body li::before {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 0.62em;
  left: 0;
  content: "";
  border-radius: 50%;
  background: var(--ui-green);
  box-shadow: 0 0 0 4px var(--ui-green-soft);
}

@media (max-width: 800px) {
  body.public-security-detail .security-commitments {
    grid-template-columns: 1fr;
  }
}

/* Plan pages -------------------------------------------------------------- */

body.plan-page {
  --plan-accent: var(--ui-blue);
  --plan-accent-soft: var(--ui-blue-soft);
}

body.plan-advanced {
  --plan-accent: #7157d9;
  --plan-accent-soft: rgba(113, 87, 217, 0.11);
}

body.plan-advanced[data-ui-theme="dark"] {
  --plan-accent: #a58cff;
  --plan-accent-soft: rgba(165, 140, 255, 0.14);
}

body.plan-ultimate {
  --plan-accent: var(--ui-green);
  --plan-accent-soft: var(--ui-green-soft);
}

body.plan-page .home-pill {
  border-color: color-mix(in srgb, var(--plan-accent) 20%, transparent);
  background: var(--plan-accent-soft);
  color: var(--plan-accent);
}

body.plan-page .plan-highlights {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.plan-page .plan-highlight-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--ui-line);
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.plan-page .plan-highlight-card:first-child {
  border-color: color-mix(in srgb, var(--plan-accent) 25%, var(--ui-line));
  background: linear-gradient(145deg, color-mix(in srgb, var(--ui-surface-solid) 93%, var(--plan-accent)), var(--ui-surface));
}

body.plan-page .plan-highlight-card strong {
  color: var(--plan-accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.plan-page .plan-highlight-card span {
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.58;
}

body.plan-page .plan-highlight-card:first-child span {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

body.plan-page .plan-feature-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

body.plan-page .plan-feature-list li {
  position: relative;
  min-height: 128px;
  padding: 22px 22px 22px 60px;
  display: block;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.plan-page .plan-feature-list li::before {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 22px;
  left: 22px;
  content: "✓";
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--plan-accent-soft);
  color: var(--plan-accent);
  font-size: 12px;
  font-weight: 820;
  box-shadow: none;
}

body.plan-page .plan-feature-list strong {
  color: var(--ui-ink);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

body.plan-page .plan-feature-list li span {
  display: inline-block;
  margin-top: 8px;
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  body.plan-page .plan-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.plan-page .plan-highlights,
  body.plan-page .plan-feature-list {
    grid-template-columns: 1fr;
  }

  body.plan-page .plan-highlight-card {
    min-height: 170px;
  }
}

/* Policy documents ------------------------------------------------------- */

body.policy-page-public .home-hero--compact {
  padding-bottom: 56px;
}

body.policy-page-public .home-hero--compact h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.8vw, 66px);
}

body.policy-page-public .policy-doc-shell {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

body.policy-page-public .policy-doc-switcher {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.policy-page-public .policy-doc-switcher a {
  min-height: 38px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

body.policy-page-public .policy-doc-switcher a:hover {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

body.policy-page-public .policy-doc-switcher a[aria-current="page"] {
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  box-shadow: 0 1px 5px rgba(20, 30, 48, 0.12);
}

body.policy-page-public .policy-doc-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.policy-page-public .policy-doc-meta-item {
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

body.policy-page-public .policy-doc-meta-label {
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.policy-page-public .policy-doc-meta-value {
  min-width: 0;
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

body.policy-page-public .policy-doc-meta-value a {
  color: var(--ui-blue);
}

body.policy-page-public .policy-doc-card {
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--ui-line-strong);
  border-radius: 24px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-md);
  color: var(--ui-ink);
}

body.policy-page-public .policy-doc-card > p:first-child {
  margin-top: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-ink);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.7;
}

body.policy-page-public .policy-doc-card h2 {
  margin: 48px 0 14px;
  padding-top: 0;
  border: 0;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

body.policy-page-public .policy-doc-card p,
body.policy-page-public .policy-doc-card li {
  color: var(--ui-ink-secondary);
  font-size: 15px;
  line-height: 1.78;
}

body.policy-page-public .policy-doc-card p {
  margin: 0 0 16px;
}

body.policy-page-public .policy-doc-card ul {
  margin: 12px 0 22px;
  padding-left: 24px;
}

body.policy-page-public .policy-doc-card li {
  padding-left: 5px;
}

body.policy-page-public .policy-doc-card li + li {
  margin-top: 9px;
}

body.policy-page-public .policy-doc-card li::marker {
  color: var(--ui-blue);
}

body.policy-page-public .policy-doc-card strong {
  color: var(--ui-ink);
  font-weight: 680;
}

body.policy-page-public .policy-doc-card a {
  color: var(--ui-blue);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ui-blue) 32%, transparent);
  text-underline-offset: 3px;
}

body.policy-page-public .policy-doc-card a:hover {
  color: var(--ui-blue-hover);
  text-decoration-color: currentColor;
}

@media (max-width: 760px) {
  body.policy-page-public .policy-doc-switcher {
    justify-content: flex-start;
    overflow-x: auto;
  }

  body.policy-page-public .policy-doc-switcher a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.policy-page-public .policy-doc-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.policy-page-public .policy-doc-card {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  body.policy-page-public .policy-doc-meta {
    grid-template-columns: 1fr;
  }
}

/* Authentication and recovery ------------------------------------------- */

#loginView.ui-login {
  --login-bg: var(--ui-surface-solid);
  --login-panel: var(--ui-surface);
  --login-ink: var(--ui-ink);
  --login-muted: var(--ui-ink-secondary);
  --login-accent: var(--ui-blue);
  --login-accent-2: var(--ui-blue-hover);
  --login-stroke: var(--ui-line-strong);
  --login-shadow: var(--ui-shadow-lg);
  min-height: 100vh;
  padding: clamp(24px, 5vw, 56px) 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(52, 132, 255, 0.17), transparent 29rem),
    radial-gradient(circle at 88% 90%, rgba(41, 205, 169, 0.13), transparent 30rem),
    linear-gradient(155deg, var(--ui-canvas-raised), var(--ui-canvas));
  color: var(--ui-ink);
}

#loginView.ui-login::before,
#loginView.ui-login::after {
  position: absolute;
  z-index: 0;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

#loginView.ui-login::before {
  width: 430px;
  height: 430px;
  top: -250px;
  left: -190px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.13), transparent 70%);
}

#loginView.ui-login::after {
  width: 460px;
  height: 460px;
  right: -220px;
  bottom: -280px;
  background: radial-gradient(circle, rgba(36, 138, 61, 0.11), transparent 70%);
}

#loginView.ui-login .login-shell {
  width: min(470px, calc(100vw - 32px));
  padding: clamp(30px, 5vw, 44px);
  overflow: visible;
  border: 1px solid var(--ui-line-strong);
  border-radius: 28px;
  background: color-mix(in srgb, var(--ui-surface) 94%, transparent);
  box-shadow: var(--ui-shadow-lg);
  color: var(--ui-ink);
  text-align: left;
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

#loginView.ui-login .login-shell::after {
  display: none;
}

#loginView.ui-login .login-theme-toggle {
  position: absolute;
  width: 38px;
  height: 38px;
  top: 16px;
  right: 16px;
  z-index: 3;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-secondary);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

#loginView.ui-login .login-theme-toggle:hover {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
  transform: translateY(-1px);
}

#loginView.ui-login .login-theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#loginView.ui-login .login-card {
  color: var(--ui-ink);
}

#loginView.ui-login .login-logo {
  margin-bottom: 42px;
  gap: 11px;
  color: var(--ui-ink);
}

#loginView.ui-login .login-mark {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #45a7ff 0%, #087af6 55%, #655bff 100%);
  box-shadow: 0 7px 18px rgba(8, 122, 246, 0.25), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

#loginView.ui-login .login-mark svg {
  width: 27px;
  height: 27px;
}

#loginView.ui-login .home-radar-outline,
#loginView.ui-login .home-radar-ring,
#loginView.ui-login .home-radar-core,
#loginView.ui-login .home-radar-line {
  stroke: currentColor;
}

#loginView.ui-login .home-radar-beam {
  fill: rgba(255, 255, 255, 0.25);
}

#loginView.ui-login .home-radar-ping {
  fill: currentColor;
}

#loginView.ui-login .login-word {
  gap: 2px;
  font-family: var(--ui-font-display);
}

#loginView.ui-login .login-title,
#loginView.ui-login .login-sub {
  color: var(--ui-ink);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-transform: none;
}

#loginView.ui-login .login-sub {
  color: var(--ui-ink-secondary);
  font-size: 11px;
  font-weight: 600;
}

#loginView.ui-login .login-card h1 {
  margin: 0 0 26px;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

#loginView.ui-login .login-card--reset h1 {
  margin-bottom: 14px;
}

#loginView.ui-login .login-reset-intro {
  margin: 0 0 24px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--ui-blue) 18%, var(--ui-line));
  border-radius: 13px;
  background: var(--ui-blue-soft);
  color: var(--ui-ink-secondary);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.55;
}

#loginView.ui-login .login-field {
  margin-bottom: 16px;
}

#loginView.ui-login .login-card label {
  margin-bottom: 7px;
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-transform: none;
}

#loginView.ui-login .login-card input[type="email"],
#loginView.ui-login .login-card input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 13px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

#loginView.ui-login .login-card input::placeholder {
  color: var(--ui-ink-tertiary);
  opacity: 0.8;
}

#loginView.ui-login .login-card input:focus {
  border-color: var(--ui-blue);
  outline: none;
  box-shadow: var(--ui-focus);
}

#loginView.ui-login .login-row {
  margin-top: 2px;
  color: var(--ui-ink-secondary);
  font-size: 12px;
}

#loginView.ui-login .login-remember {
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 560;
  text-transform: none;
}

#loginView.ui-login .login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--ui-blue);
}

#loginView.ui-login .login-reset-link {
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--ui-blue);
  font-weight: 650;
  letter-spacing: 0;
}

#loginView.ui-login .login-reset-link::before {
  display: none;
}

#loginView.ui-login .login-reset-link:hover,
#loginView.ui-login .login-reset-link:focus-visible {
  border: 0;
  background: var(--ui-blue-soft);
  box-shadow: none;
  color: var(--ui-blue-hover);
  transform: none;
}

#loginView.ui-login .login-actions {
  margin-top: 24px;
  gap: 10px;
}

#loginView.ui-login .login-btn {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 680;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

#loginView.ui-login .login-btn:hover {
  transform: translateY(-1px);
}

#loginView.ui-login .login-btn:active {
  transform: translateY(0) scale(0.99);
}

#loginView.ui-login .login-btn-primary {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.22);
}

#loginView.ui-login .login-btn-primary:hover {
  border-color: var(--ui-blue-hover);
  background: var(--ui-blue-hover);
}

#loginView.ui-login .login-btn-outline {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
}

#loginView.ui-login .login-btn-outline:hover {
  background: var(--ui-surface-muted);
}

#loginView.ui-login .login-card .auth-error {
  border-radius: 13px;
  color: var(--ui-red);
}

#loginView.ui-login .login-card .auth-error.auth-active {
  border-color: color-mix(in srgb, var(--ui-red) 28%, var(--ui-line));
  background: var(--ui-red-soft);
  box-shadow: none;
}

#loginView.ui-login .login-card .auth-error.auth-success {
  border-color: color-mix(in srgb, var(--ui-green) 28%, var(--ui-line));
  background: var(--ui-green-soft);
  color: var(--ui-green);
  box-shadow: none;
}

#loginView.ui-login .login-field.is-error label {
  color: var(--ui-red);
}

#loginView.ui-login .login-card input.login-input-error,
#loginView.ui-login .login-card input.login-input-error:focus {
  border-color: var(--ui-red);
  background: var(--ui-red-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-red) 16%, transparent);
}

#loginView.ui-login .login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-ink-tertiary);
  font-size: 11px;
  text-align: center;
}

/* Initial authentication/loading states use the same visual language. */
#authLoading.auth-loading-screen {
  background:
    radial-gradient(circle at 12% 4%, rgba(52, 132, 255, 0.16), transparent 29rem),
    radial-gradient(circle at 88% 90%, rgba(41, 205, 169, 0.12), transparent 30rem),
    #f5f5f7;
  color: #1d1d1f;
}

#authLoading .auth-loading-panel {
  width: min(380px, calc(100vw - 32px));
  padding: 30px 28px;
  gap: 12px;
  border: 1px solid rgba(29, 29, 31, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 30px 90px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

#authLoading .auth-loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 113, 227, 0.14);
  border-top-color: #0071e3;
}

#authLoading .auth-loading-title {
  color: #1d1d1f;
  font-family: var(--ui-font-display, "Space Grotesk", sans-serif);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-transform: none;
}

#authLoading .auth-loading-text {
  color: #6e6e73;
  font-size: 13px;
  line-height: 1.55;
}

#authLoading .auth-loading-actions .btn,
#authLoading .auth-loading-actions .btn-outline {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
}

#authLoading .auth-loading-actions .btn {
  border-color: #0071e3;
  background: #0071e3;
  color: #ffffff;
}

#authLoading .auth-loading-actions .btn-outline {
  border-color: rgba(29, 29, 31, 0.15);
  background: #ffffff;
  color: #1d1d1f;
}

#authLoading .auth-loading-panel.is-error {
  border-color: rgba(215, 0, 21, 0.28);
}

#bootOverlay {
  background:
    radial-gradient(circle at 12% 4%, rgba(52, 132, 255, 0.16), transparent 29rem),
    radial-gradient(circle at 88% 90%, rgba(41, 205, 169, 0.12), transparent 30rem),
    #f5f5f7;
}

#bootOverlay .boot-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1d1d1f;
  font-family: var(--ui-font-display, "Space Grotesk", sans-serif);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-transform: none;
}

#bootOverlay .boot-msg::before {
  width: 38px;
  height: 38px;
  content: "TR";
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #45a7ff 0%, #087af6 55%, #655bff 100%);
  box-shadow: 0 7px 18px rgba(8, 122, 246, 0.25), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

@media (max-width: 480px) {
  #loginView.ui-login {
    padding: 14px;
  }

  #loginView.ui-login .login-shell {
    width: 100%;
    padding: 28px 22px;
    border-radius: 22px;
  }

  #loginView.ui-login .login-theme-toggle {
    top: 13px;
    right: 13px;
  }

  #loginView.ui-login .login-logo {
    margin-bottom: 36px;
  }

  #loginView.ui-login .login-row {
    align-items: stretch;
    flex-direction: column;
  }

  #loginView.ui-login .login-reset-link {
    width: 100%;
  }
}

/* Authenticated workspace shell ----------------------------------------- */

body.auth-ready:has(#appShell.ui-workspace) {
  background: #f5f5f7;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) {
  background: #050506;
}

body.auth-ready:has(#appShell.ui-workspace)::before {
  display: none;
}

#appShell.ui-workspace {
  --bg: var(--ui-canvas);
  --text: var(--ui-ink);
  --text-labels: var(--ui-ink);
  --text-forms: var(--ui-ink);
  --muted: var(--ui-ink-secondary);
  --card: var(--ui-surface-solid);
  --border: var(--ui-line);
  --border-strong: var(--ui-line-strong);
  --badge: var(--ui-surface-muted);
  --accent: var(--ui-blue);
  --accent-2: var(--ui-blue-hover);
  --accent-3: #64b5ff;
  --ok: var(--ui-green);
  --near: var(--ui-blue);
  --warn: var(--ui-amber);
  --err: var(--ui-red);
  --danger: var(--ui-red);
  --link: var(--ui-blue);
  --surface: var(--ui-surface);
  --surface-strong: var(--ui-surface-solid);
  --surface-subtle: var(--ui-surface-muted);
  --surface-hover: var(--ui-blue-soft);
  --stripe-1: var(--ui-surface-solid);
  --stripe-2: var(--ui-surface-muted);
  --overlay: color-mix(in srgb, var(--ui-canvas) 72%, transparent);
  --input-bg: var(--ui-surface-solid);
  --input-border: var(--ui-line-strong);
  --input-border-hover: color-mix(in srgb, var(--ui-blue) 42%, var(--ui-line-strong));
  --input-border-focus: var(--ui-blue);
  --input-focus-ring: rgba(0, 113, 227, 0.2);
  --input-accent: var(--ui-blue);
  --input-text: var(--ui-ink);
  --input-placeholder: var(--ui-ink-tertiary);
  --input-shadow: rgba(0, 113, 227, 0.2);
  --drop-border: var(--ui-line-strong);
  --drop-border-hover: var(--ui-blue);
  --drop-bg: var(--ui-surface-solid);
  --drop-bg-hover: var(--ui-surface-muted);
  --table-bg: var(--ui-surface-solid);
  --table-header-bg: var(--ui-surface-muted);
  --table-border: var(--ui-line);
  --table-text: var(--ui-ink);
  --table-header-text: var(--ui-ink-secondary);
  --table-stripe-odd: var(--ui-surface-solid);
  --table-stripe-even: color-mix(in srgb, var(--ui-surface-muted) 68%, transparent);
  --hero-bg: var(--ui-surface-solid);
  --hero-border: var(--ui-line);
  --hero-shadow: var(--ui-shadow-sm);
  --hero-metrics-bg: var(--ui-surface-muted);
  --hero-metrics-border: var(--ui-line);
  --hero-metrics-shadow: none;
  --hero-label: var(--ui-ink-secondary);
  --hero-value: var(--ui-ink);
  --hero-delta: var(--ui-ink-secondary);
  --hero-search-bg: var(--ui-surface-solid);
  --hero-search-border: var(--ui-line-strong);
  --hero-search-text: var(--ui-ink);
  --hero-search-placeholder: var(--ui-ink-tertiary);
  --hero-search-btn-bg: var(--ui-blue);
  --hero-search-btn-border: var(--ui-blue);
  --hero-search-btn-text: #ffffff;
  --hero-search-btn-shadow: 0 6px 18px rgba(0, 113, 227, 0.18);
  --hero-search-btn-shadow-hover: 0 8px 24px rgba(0, 113, 227, 0.24);
  --status-pill-fg: var(--ui-blue);
  --status-pill-bg: var(--ui-surface-muted);
  --status-pill-border: var(--ui-line);
  --pill-value: var(--ui-ink);
  --dash-metric-base: var(--ui-surface-muted);
  --dash-metric-1-start: var(--ui-blue-soft);
  --dash-metric-1-end: var(--ui-surface-muted);
  --dash-metric-2-start: var(--ui-green-soft);
  --dash-metric-2-end: var(--ui-surface-muted);
  --dash-metric-3-start: var(--ui-red-soft);
  --dash-metric-3-end: var(--ui-surface-muted);
  --dash-metric-4-start: var(--ui-amber-soft);
  --dash-metric-4-end: var(--ui-surface-muted);
  --dash-tools-bg: var(--ui-surface-solid);
  --dash-tools-border: var(--ui-line);
  --dash-tools-inset: transparent;
  --workspace-bg-start: var(--ui-surface-solid);
  --workspace-bg-end: var(--ui-surface-solid);
  --workspace-border: var(--ui-line);
  --workspace-shadow: var(--ui-shadow-sm);
  --workspace-seg-bg: var(--ui-surface-muted);
  --workspace-seg-border: var(--ui-line);
  --workspace-chip-bg: var(--ui-surface-muted);
  --workspace-chip-border: var(--ui-line);
  --workspace-chip-text: var(--ui-blue);
  --workspace-chip-shadow: none;
  --workspace-chip-bg-hover: var(--ui-blue-soft);
  --workspace-chip-border-hover: var(--ui-blue);
  --workspace-chip-shadow-hover: none;
  --workspace-chip-shadow-active: none;
  --radius: var(--ui-radius-md);
  --radius-sm: var(--ui-radius-sm);
  --shadow-amb: var(--ui-shadow-sm);
  --shadow-key: none;
  --shadow-hov: var(--ui-shadow-md);
  --focus-ring: var(--ui-focus);
  min-height: 100vh;
  background:
    radial-gradient(circle at 6% 0%, rgba(0, 113, 227, 0.08), transparent 25rem),
    var(--ui-canvas);
  color: var(--ui-ink);
  color-scheme: light;
}

#appShell.ui-workspace[data-ui-theme="dark"] {
  --input-focus-ring: rgba(41, 151, 255, 0.22);
  --input-shadow: rgba(41, 151, 255, 0.22);
  --hero-search-btn-shadow: 0 6px 18px rgba(41, 151, 255, 0.18);
  --hero-search-btn-shadow-hover: 0 8px 24px rgba(41, 151, 255, 0.24);
  background:
    radial-gradient(circle at 6% 0%, rgba(41, 151, 255, 0.09), transparent 27rem),
    var(--ui-canvas);
  color-scheme: dark;
}

#appShell.ui-workspace .app-layout.app-layout-topnav {
  min-height: 100vh;
}

#appShell.ui-workspace .app-layout.app-layout-topnav .main-shell {
  gap: 20px;
  padding: 0 var(--ui-gutter) 36px;
}

#appShell.ui-workspace .app-layout.app-layout-topnav .main-shell > *:not(.app-topnav) {
  width: min(1380px, 100%);
}

#appShell.ui-workspace .app-topnav {
  width: calc(100% + (var(--ui-gutter) * 2));
  max-width: none;
  margin: 0 calc(var(--ui-gutter) * -1) 10px;
  padding: 12px var(--ui-gutter);
  position: sticky;
  top: 0;
  z-index: 100;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 0;
  background: color-mix(in srgb, var(--ui-canvas-raised) 82%, transparent);
  box-shadow: none;
  color: var(--ui-ink);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

#appShell.ui-workspace .app-topnav-row {
  width: min(1480px, 100%);
  min-height: 50px;
  margin-inline: auto;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  gap: 18px;
}

#appShell.ui-workspace .app-topnav-brand {
  min-width: 0;
  gap: 10px;
}

#appShell.ui-workspace .app-topnav-mark {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #45a7ff 0%, #087af6 55%, #655bff 100%);
  box-shadow: 0 6px 16px rgba(8, 122, 246, 0.22), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

#appShell.ui-workspace .app-topnav-mark svg {
  width: 26px;
  height: 26px;
}

#appShell.ui-workspace .app-topnav-word {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-transform: none;
}

#appShell.ui-workspace .app-topnav-word span {
  color: var(--ui-blue);
}

#appShell.ui-workspace .app-topnav-nav {
  gap: 3px;
  flex-wrap: nowrap;
}

#appShell.ui-workspace .app-topnav-link,
#appShell.ui-workspace .app-topnav-trigger {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ui-ink-secondary);
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

#appShell.ui-workspace .app-topnav-link:hover,
#appShell.ui-workspace .app-topnav-trigger:hover,
#appShell.ui-workspace .app-topnav-item:focus-within > .app-topnav-trigger {
  border: 0;
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#appShell.ui-workspace .app-topnav-caret {
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  transform: translateY(-1px);
}

#appShell.ui-workspace .app-topnav-menu,
#appShell.ui-workspace .app-topnav-status-menu {
  margin-top: 7px;
  padding: 7px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ui-surface-solid) 94%, transparent);
  box-shadow: var(--ui-shadow-md);
  color: var(--ui-ink);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}

#appShell.ui-workspace .app-topnav-item:focus-within > .app-topnav-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#appShell.ui-workspace .app-topnav-menu button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ui-ink-secondary);
  font-size: 13px;
  font-weight: 560;
}

#appShell.ui-workspace .app-topnav-menu button:hover {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#appShell.ui-workspace .app-topnav-menu hr {
  border-top-color: var(--ui-line);
}

#appShell.ui-workspace .app-topnav-link.is-active,
#appShell.ui-workspace .app-topnav-trigger.is-active,
#appShell.ui-workspace .app-topnav-menu button.is-active {
  border-color: transparent;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

#appShell.ui-workspace .app-topnav-actions {
  gap: 8px;
}

#appShell.ui-workspace .app-theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-secondary);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

#appShell.ui-workspace .app-theme-toggle:hover {
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
  transform: translateY(-1px);
}

#appShell.ui-workspace .app-theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#appShell.ui-workspace .app-topnav-status-pill {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-secondary);
  font-size: 11px;
}

#appShell.ui-workspace .app-topnav-status-pill strong {
  color: var(--ui-ink);
}

#appShell.ui-workspace .app-topnav-status-menu {
  min-width: 285px;
}

#appShell.ui-workspace .app-topnav-status-message,
#appShell.ui-workspace .app-topnav-status-list li,
#appShell.ui-workspace .top-status-value {
  color: var(--ui-ink);
}

#appShell.ui-workspace .app-topnav-status-list li {
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .app-topnav-status-list li span,
#appShell.ui-workspace .app-topnav-status-updated {
  color: var(--ui-ink-tertiary);
}

#appShell.ui-workspace .app-topnav-signout {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface-solid);
  color: var(--ui-red);
  font-size: 12px;
  font-weight: 650;
}

#appShell.ui-workspace .app-topnav-signout:hover {
  border-color: color-mix(in srgb, var(--ui-red) 25%, var(--ui-line));
  background: var(--ui-red-soft);
}

#appShell.ui-workspace .pane-transition {
  color: var(--ui-ink);
}

#appShell.ui-workspace .pane-transition.pane-animate {
  animation: none;
}

#appShell.ui-workspace .card,
#appShell.ui-workspace .dashboard-card,
#appShell.ui-workspace .contracts-card,
#appShell.ui-workspace .po-recon-card,
#appShell.ui-workspace .marketplace-card,
#appShell.ui-workspace .connections-hub,
#appShell.ui-workspace .control-card {
  overflow: clip;
  margin: 0 0 18px;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  transform: none;
}

#appShell.ui-workspace .card:hover,
#appShell.ui-workspace .dashboard-card:hover,
#appShell.ui-workspace .contracts-card:hover {
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-sm);
  transform: none;
}

#appShell.ui-workspace .card::before {
  display: none;
}

#appShell.ui-workspace :where(h1, h2, h3, h4, h5) {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  letter-spacing: -0.03em;
}

#appShell.ui-workspace :where(.muted, small, .control-sub) {
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace :where(.btn, .btn-outline) {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

#appShell.ui-workspace .btn {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
}

#appShell.ui-workspace .btn:hover {
  border-color: var(--ui-blue-hover);
  background: var(--ui-blue-hover);
  transform: translateY(-1px);
}

#appShell.ui-workspace .btn-outline {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
}

#appShell.ui-workspace .btn-outline:hover {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#appShell.ui-workspace :where(input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="date"], select, textarea) {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ui-line-strong);
  border-top-width: 1px;
  border-radius: 12px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
}

#appShell.ui-workspace :where(input, select, textarea):focus {
  border-color: var(--ui-blue);
  outline: none;
  box-shadow: var(--ui-focus);
}

#appShell.ui-workspace input[type="file"] {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-muted);
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace :where(input[type="checkbox"], input[type="radio"]) {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--ui-blue);
}

#appShell.ui-workspace :where(input, select, textarea):disabled {
  opacity: 0.66;
  cursor: not-allowed;
}

#appShell.ui-workspace label {
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 650;
}

#appShell.ui-workspace .seg {
  padding: 3px;
  gap: 2px;
  border-color: var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .seg button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace .seg button.active {
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace :where(.stats, .dashboard-missing-metrics, .contracts-summary-metrics) {
  gap: 10px;
}

#appShell.ui-workspace :where(.stat, .dashboard-metric, .contracts-summary-item) {
  min-width: 140px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
  box-shadow: none;
  color: var(--ui-ink);
  transform: none;
}

#appShell.ui-workspace :where(.stat, .dashboard-metric, .contracts-summary-item):hover {
  border-color: var(--ui-line-strong);
  box-shadow: none;
  transform: none;
}

#appShell.ui-workspace .stat::after {
  display: none;
}

#appShell.ui-workspace :where(.stat .label, .dashboard-metric-label, .contracts-summary-item .label) {
  color: var(--ui-ink-secondary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#appShell.ui-workspace :where(.stat .value, .dashboard-metric-value, .contracts-summary-item .value) {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-shadow: none;
}

#appShell.ui-workspace :where(.table-wrap, .dashboard-metrics-table, #previewScroll) {
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
}

#appShell.ui-workspace table {
  color: var(--ui-ink);
}

#appShell.ui-workspace th,
#appShell.ui-workspace td {
  padding: 11px 12px;
  border-bottom-color: var(--ui-line);
  color: var(--ui-ink);
}

#appShell.ui-workspace thead th {
  background: color-mix(in srgb, var(--ui-surface-muted) 96%, transparent);
  color: var(--ui-ink-secondary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#appShell.ui-workspace tbody tr:hover td {
  background: var(--ui-blue-soft);
  filter: none;
}

#appShell.ui-workspace :where(.badge, .pill, .status-pill, .dashboard-beta-chip, .dashboard-howto-chip) {
  border-color: var(--ui-line);
  background: var(--ui-surface-muted);
  box-shadow: none;
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status {
  min-width: 74px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status--ready,
#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status--processing {
  border-color: color-mix(in srgb, var(--ui-blue) 26%, var(--ui-line));
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status--review {
  border-color: color-mix(in srgb, var(--ui-amber) 30%, var(--ui-line));
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status--error {
  border-color: color-mix(in srgb, var(--ui-red) 28%, var(--ui-line));
  background: var(--ui-red-soft);
  color: var(--ui-red);
}

#appShell.ui-workspace :is(#billImportBody, #invoiceImportBody) .import-status--imported {
  border-color: color-mix(in srgb, var(--ui-green) 28%, var(--ui-line));
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

#appShell.ui-workspace .hero-min {
  margin: 0 0 18px;
}

#appShell.ui-workspace .hero-min-inner {
  padding: 18px;
  border-color: var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .hero-min-title {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  letter-spacing: -0.03em;
}

#appShell.ui-workspace .hero-min-metrics {
  border-color: var(--ui-line);
  background: var(--ui-surface-muted);
  box-shadow: none;
}

#appShell.ui-workspace .pill-live {
  color: var(--ui-green);
}

#appShell.ui-workspace .pill-sync {
  color: var(--ui-blue);
}

#appShell.ui-workspace .app-support-footer {
  margin-top: 10px;
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--ui-line);
  border-radius: 0;
  background: transparent;
  color: var(--ui-ink-tertiary);
}

#appShell.ui-workspace .app-support-footer a {
  color: var(--ui-blue);
}

body.auth-ready:has(#appShell.ui-workspace) .app-update-banner {
  border-color: rgba(29, 29, 31, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 28px 70px rgba(0, 0, 0, 0.12);
  color: #1d1d1f;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

body.auth-ready:has(#appShell.ui-workspace) .app-update-banner-title {
  color: #1d1d1f;
}

body.auth-ready:has(#appShell.ui-workspace) .app-update-banner-text {
  color: #6e6e73;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .app-update-banner {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(28, 28, 30, 0.94);
  color: #f5f5f7;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .app-update-banner-title {
  color: #f5f5f7;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .app-update-banner-text {
  color: #a1a1a6;
}

body.auth-ready:has(#appShell.ui-workspace) .modal {
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: rgba(20, 20, 22, 0.28);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.panel, .modal-content) {
  padding: 22px;
  border: 1px solid rgba(29, 29, 31, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 40px 100px rgba(0, 0, 0, 0.16);
  color: #1d1d1f;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.panel, .modal-content) header {
  border-bottom-color: rgba(29, 29, 31, 0.1);
  background: transparent;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(h2, h3, h4) {
  color: #1d1d1f;
  font-family: var(--ui-font-display, "Space Grotesk", sans-serif);
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.muted, p, label) {
  color: #6e6e73;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(input, select, textarea) {
  border: 1px solid rgba(29, 29, 31, 0.16);
  background: #ffffff;
  box-shadow: none;
  color: #1d1d1f;
  color-scheme: light;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(input, textarea)::placeholder {
  color: #86868b;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(input, select, textarea):focus {
  border-color: #087af6;
  box-shadow: 0 0 0 3px rgba(8, 122, 246, 0.14);
  outline: none;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.btn, .btn-outline) {
  border-color: rgba(29, 29, 31, 0.14);
  background: #f5f5f7;
  box-shadow: none;
  color: #3a3a3c;
}

body.auth-ready:has(#appShell.ui-workspace) .modal .btn {
  border-color: #087af6;
  background: #087af6;
  color: #ffffff;
}

body.auth-ready:has(#appShell.ui-workspace) .modal .btn-outline.danger {
  color: #d70015;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(.panel, .modal-content) {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(28, 28, 30, 0.96);
  color: #f5f5f7;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(.panel, .modal-content) header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(h2, h3, h4) {
  color: #f5f5f7;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(.muted, p, label) {
  color: #a1a1a6;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(input, select, textarea) {
  border-color: rgba(255, 255, 255, 0.16);
  background: #242428;
  color: #f5f5f7;
  color-scheme: dark;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(input, textarea)::placeholder {
  color: #8e8e93;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal :where(.btn, .btn-outline) {
  border-color: rgba(255, 255, 255, 0.14);
  background: #242428;
  color: #d7d7dc;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal .btn {
  border-color: #409cff;
  background: #409cff;
  color: #ffffff;
}

body.auth-ready:has(#appShell.ui-workspace) #toast .toast {
  border-color: rgba(29, 29, 31, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.14);
  color: #1d1d1f;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) #toast .toast {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(28, 28, 30, 0.94);
  color: #f5f5f7;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.panel, .modal-content) {
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.panel, .modal-content) > header,
body.auth-ready:has(#appShell.ui-workspace) .modal .modal-header {
  margin-bottom: 18px;
  padding: 0 0 14px;
  align-items: flex-start;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.panel, .modal-content) > header h3,
body.auth-ready:has(#appShell.ui-workspace) .modal .modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.035em;
}

body.auth-ready:has(#appShell.ui-workspace) .modal header :where(.toprow, .modal-close-wrap) > .btn {
  border: 1px solid rgba(29, 29, 31, 0.12);
  background: #f5f5f7;
  box-shadow: none;
  color: #515154;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal header :where(.toprow, .modal-close-wrap) > .btn {
  border-color: rgba(255, 255, 255, 0.12);
  background: #242428;
  color: #d7d7dc;
}

body.auth-ready:has(#appShell.ui-workspace) .modal :where(.modal-form, .u-modal-stack-sm, .u-modal-stack-md) {
  gap: 13px;
}

body.auth-ready:has(#appShell.ui-workspace) .modal .modal-actions,
body.auth-ready:has(#appShell.ui-workspace) .modal .u-modal-actions-end,
body.auth-ready:has(#appShell.ui-workspace) .modal .connections-editor-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal .modal-actions,
body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal .u-modal-actions-end,
body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal .connections-editor-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.auth-ready:has(#appShell.ui-workspace) .modal .modal-message {
  padding: 10px 12px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 11px;
  background: #f7f7f9;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .modal .modal-message {
  border-color: rgba(255, 255, 255, 0.1);
  background: #222228;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-panel {
  width: min(620px, calc(100vw - 32px));
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-form {
  gap: 14px;
  margin-top: 0;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-field > span {
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-field :where(input, select) {
  min-height: 42px;
  border-radius: 11px;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-help {
  padding: 12px 14px;
  border: 1px solid rgba(8, 122, 246, 0.14);
  border-radius: 12px;
  background: rgba(8, 122, 246, 0.07);
  color: #586679;
  line-height: 1.5;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .connections-editor-field > span {
  color: #aab4c5;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .connections-editor-help {
  border-color: rgba(64, 156, 255, 0.18);
  background: rgba(64, 156, 255, 0.1);
  color: #b1bac9;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-message:empty {
  display: none;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-message:not(:empty) {
  padding: 10px 12px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 11px;
  background: #f7f7f9;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-message.is-success {
  border-color: rgba(22, 163, 116, 0.18);
  background: rgba(22, 163, 116, 0.08);
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-message.is-error {
  border-color: rgba(221, 59, 76, 0.18);
  background: rgba(221, 59, 76, 0.08);
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) .connections-editor-message:not(:empty) {
  border-color: rgba(255, 255, 255, 0.1);
  background: #222228;
}

body.auth-ready:has(#appShell.ui-workspace) .connections-editor-actions {
  margin-top: 4px;
}

body.auth-ready:has(#appShell.ui-workspace) #busy {
  background: rgba(20, 20, 22, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.auth-ready:has(#appShell.ui-workspace) #busy .box {
  padding: 18px 20px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  color: #1d1d1f;
}

body.auth-ready:has(#appShell.ui-workspace[data-ui-theme="dark"]) #busy .box {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(28, 28, 30, 0.96);
  color: #f5f5f7;
}

#appShell.ui-workspace :where(.u-empty-state-cell, .u-empty-state-cell-sm, .dashboard-empty) {
  min-height: 90px;
  padding-block: 28px;
  color: var(--ui-ink-tertiary);
  font-size: 11px;
  text-align: center;
}

#appShell.ui-workspace :where(.dashboard-progress, .loading-progress) {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

@media (max-width: 1180px) {
  #appShell.ui-workspace .app-topnav-row {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
  }

  #appShell.ui-workspace .app-topnav-nav {
    max-width: 100%;
    padding-bottom: 2px;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #appShell.ui-workspace .app-topnav-nav::-webkit-scrollbar {
    display: none;
  }

  #appShell.ui-workspace .app-topnav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  #appShell.ui-workspace {
    --ui-gutter: 14px;
  }

  #appShell.ui-workspace .app-layout.app-layout-topnav .main-shell {
    gap: 14px;
    padding-bottom: 24px;
  }

  #appShell.ui-workspace .app-topnav {
    margin-bottom: 2px;
    padding-block: 10px;
  }

  #appShell.ui-workspace .app-topnav-mark {
    width: 36px;
    height: 36px;
  }

  #appShell.ui-workspace .app-topnav-status-pill > span:not(.app-topnav-status-dot),
  #appShell.ui-workspace .app-topnav-status-pill > strong {
    display: none;
  }

  #appShell.ui-workspace .app-topnav-status-pill {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  #appShell.ui-workspace .app-topnav-status-menu {
    position: fixed;
    top: 62px;
    right: 14px;
    left: 14px;
    min-width: 0;
  }

  #appShell.ui-workspace .app-topnav-signout {
    width: 38px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  #appShell.ui-workspace .app-topnav-signout::before {
    content: "\2192";
    color: var(--ui-red);
    font-size: 18px;
    transform: rotate(180deg);
  }

  #appShell.ui-workspace .card,
  #appShell.ui-workspace .dashboard-card,
  #appShell.ui-workspace .contracts-card,
  #appShell.ui-workspace .po-recon-card,
  #appShell.ui-workspace .marketplace-card,
  #appShell.ui-workspace .connections-hub,
  #appShell.ui-workspace .control-card {
    margin-bottom: 14px;
    padding: 17px;
    border-radius: 17px;
  }

  #appShell.ui-workspace .hero-min-inner {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  #appShell.ui-workspace .hero-min-right {
    padding-left: 0;
  }

  body.auth-ready:has(#appShell.ui-workspace) .modal {
    padding: 10px;
  }

  body.auth-ready:has(#appShell.ui-workspace) .modal :where(.panel, .modal-content) {
    padding: 18px;
    border-radius: 18px;
  }
}

/* Demo-aligned application frame ---------------------------------------- */

#appShell.ui-workspace {
  --ui-canvas: #e2e8f0;
  --ui-canvas-raised: #f8fafc;
  --ui-sidebar-surface: #e6ebf2;
  --ui-workspace-surface: #e9eef4;
  --ui-surface: #ffffff;
  --ui-surface-solid: #ffffff;
  --ui-surface-muted: #f3f5f8;
  --ui-ink: #151922;
  --ui-ink-secondary: #687082;
  --ui-ink-tertiary: #8991a2;
  --ui-line: rgba(15, 23, 42, 0.16);
  --ui-line-strong: rgba(15, 23, 42, 0.24);
  --ui-blue: #087af6;
  --ui-blue-hover: #0068dc;
  --ui-blue-soft: rgba(8, 122, 246, 0.1);
  --ui-green: #16a374;
  --ui-green-soft: rgba(22, 163, 116, 0.11);
  --ui-amber: #bd7910;
  --ui-amber-soft: rgba(198, 129, 21, 0.12);
  --ui-red: #dd3b4c;
  --ui-red-soft: rgba(221, 59, 76, 0.1);
  --ui-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 28px rgba(15, 23, 42, 0.1);
  --ui-shadow-md: 0 3px 10px rgba(15, 23, 42, 0.075), 0 22px 56px rgba(15, 23, 42, 0.13);
  --ui-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1), 0 32px 86px rgba(15, 23, 42, 0.18);
  --bg: var(--ui-canvas);
  --text: var(--ui-ink);
  --text-labels: var(--ui-ink-secondary);
  --text-forms: var(--ui-ink);
  --muted: var(--ui-ink-secondary);
  --card: var(--ui-surface);
  --surface: var(--ui-surface);
  --surface-strong: var(--ui-surface-solid);
  --surface-subtle: var(--ui-surface-muted);
  --border: var(--ui-line);
  --border-strong: var(--ui-line-strong);
  --badge: var(--ui-surface-muted);
  --accent: var(--ui-blue);
  --accent-2: var(--ui-blue-hover);
  --accent-3: var(--ui-green);
  --ok: var(--ui-green);
  --warn: var(--ui-amber);
  --err: var(--ui-red);
  --danger: var(--ui-red);
  --link: var(--ui-blue);
  --input-bg: var(--ui-surface-solid);
  --input-border: var(--ui-line-strong);
  --input-border-hover: var(--ui-line-strong);
  --input-border-focus: var(--ui-blue);
  --input-focus-ring: var(--ui-blue-soft);
  --input-accent: var(--ui-blue);
  --input-text: var(--ui-ink);
  --input-placeholder: var(--ui-ink-tertiary);
  background:
    radial-gradient(circle at 14% 3%, rgba(73, 121, 255, 0.16), transparent 31rem),
    radial-gradient(circle at 90% 88%, rgba(32, 195, 167, 0.1), transparent 30rem),
    var(--ui-canvas);
  color-scheme: light;
}

#appShell.ui-workspace[data-ui-theme="dark"] {
  --ui-canvas: #080b11;
  --ui-canvas-raised: #12161f;
  --ui-sidebar-surface: #0d1119;
  --ui-workspace-surface: #1b212c;
  --ui-surface: rgba(28, 33, 44, 0.94);
  --ui-surface-solid: #1c212c;
  --ui-surface-muted: #202632;
  --ui-ink: #f4f6fa;
  --ui-ink-secondary: #a3abba;
  --ui-ink-tertiary: #7f899a;
  --ui-line: rgba(255, 255, 255, 0.085);
  --ui-line-strong: rgba(255, 255, 255, 0.15);
  --ui-blue: #409cff;
  --ui-blue-hover: #66afff;
  --ui-blue-soft: rgba(64, 156, 255, 0.14);
  --ui-green: #40d29f;
  --ui-green-soft: rgba(64, 210, 159, 0.13);
  --ui-amber: #f0b44e;
  --ui-amber-soft: rgba(240, 180, 78, 0.13);
  --ui-red: #ff6676;
  --ui-red-soft: rgba(255, 102, 118, 0.12);
  --ui-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.16);
  --ui-shadow-md: 0 18px 50px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.2);
  --ui-shadow-lg: 0 32px 110px rgba(0, 0, 0, 0.48), 0 8px 26px rgba(0, 0, 0, 0.25);
  background:
    radial-gradient(circle at 14% 3%, rgba(32, 105, 255, 0.24), transparent 31rem),
    radial-gradient(circle at 90% 88%, rgba(32, 195, 167, 0.08), transparent 30rem),
    var(--ui-canvas);
  color-scheme: dark;
}

#appShell.ui-workspace .workspace-stage {
  min-height: 100vh;
  padding: clamp(12px, 2.2vw, 30px);
}

#appShell.ui-workspace .workspace-window {
  width: min(1580px, 100%);
  min-height: min(950px, calc(100vh - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: clip;
  border: 1px solid var(--ui-line-strong);
  border-radius: 26px;
  background:
    linear-gradient(
      90deg,
      var(--ui-sidebar-surface) 0,
      var(--ui-sidebar-surface) 248px,
      var(--ui-workspace-surface) 248px,
      var(--ui-workspace-surface) 100%
    );
  box-shadow: var(--ui-shadow-lg);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

#appShell.ui-workspace .workspace-sidebar {
  min-width: 0;
  height: min(950px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  min-height: 0;
  padding: 18px 14px 14px;
  position: sticky;
  top: 16px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ui-line);
  background: var(--ui-sidebar-surface);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
}

#appShell.ui-workspace .workspace-brand {
  min-height: 48px;
  padding: 5px 9px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}

#appShell.ui-workspace .workspace-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #44a7ff 0%, #087af6 55%, #635bff 100%);
  box-shadow: 0 6px 16px rgba(8, 122, 246, 0.27), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

#appShell.ui-workspace .workspace-brand-mark svg {
  width: 23px;
  height: 23px;
}

#appShell.ui-workspace .workspace-brand-name {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 15px;
  font-weight: 710;
  letter-spacing: -0.02em;
}

#appShell.ui-workspace .workspace-brand-version {
  color: var(--ui-ink-tertiary);
  font-size: 11px;
  font-weight: 600;
}

#appShell.ui-workspace .workspace-nav-scroll {
  min-height: 0;
  flex: 1;
  padding: 2px 2px 18px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ui-line-strong) transparent;
}

#appShell.ui-workspace .workspace-nav-scroll::-webkit-scrollbar {
  width: 6px;
}

#appShell.ui-workspace .workspace-nav-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--ui-line-strong);
}

#appShell.ui-workspace .workspace-nav-group {
  position: static;
}

#appShell.ui-workspace .workspace-nav-group + .workspace-nav-group {
  margin-top: 13px;
}

#appShell.ui-workspace .app-topnav-trigger.workspace-nav-label {
  min-height: 0;
  margin: 0 10px 5px;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-ink-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  pointer-events: none;
}

#appShell.ui-workspace .app-topnav-trigger.workspace-nav-label.is-active {
  background: transparent;
  color: var(--ui-ink-tertiary);
}

#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu {
  min-width: 0;
  margin: 0;
  padding: 0;
  position: static;
  display: grid;
  gap: 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu .workspace-nav-item {
  width: 100%;
  min-height: 33px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ui-ink-secondary);
  font-size: 12px;
  font-weight: 570;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu .workspace-nav-item > span:last-child,
#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu :where(#btnMissing, #btnCreditCards) > span:last-child {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-family: var(--ui-font-sans);
  font-size: 12px !important;
  font-weight: 570;
  line-height: 1.25;
  letter-spacing: 0 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu .workspace-nav-item:hover {
  background: color-mix(in srgb, var(--ui-surface-solid) 48%, transparent);
  color: var(--ui-ink);
}

#appShell.ui-workspace[data-ui-theme="dark"] .app-topnav-menu.workspace-nav-menu .workspace-nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
}

#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu .workspace-nav-item:active {
  transform: scale(0.985);
}

#appShell.ui-workspace .app-topnav-menu.workspace-nav-menu .workspace-nav-item.is-active {
  background: var(--ui-surface);
  box-shadow: 0 1px 4px rgba(20, 30, 48, 0.09);
  color: var(--ui-ink);
}

#appShell.ui-workspace .workspace-nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--ui-ink-tertiary);
}

#appShell.ui-workspace .workspace-nav-icon::before {
  display: none;
}

#appShell.ui-workspace .workspace-nav-icon svg {
  width: 17px;
  height: 17px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#appShell.ui-workspace .workspace-nav-item.is-active .workspace-nav-icon {
  color: var(--ui-blue);
}

#appShell.ui-workspace .workspace-nav-item.is-active .workspace-nav-icon svg {
  stroke-width: 1.9;
}

#appShell.ui-workspace .workspace-sidebar-footer {
  display: none;
}

#appShell.ui-workspace .workspace-sidebar-footer strong,
#appShell.ui-workspace .workspace-sidebar-footer span {
  display: block;
}

#appShell.ui-workspace .workspace-sidebar-footer strong {
  color: var(--ui-ink);
  font-size: 12px;
}

#appShell.ui-workspace .workspace-sidebar-footer span {
  color: var(--ui-ink-secondary);
  font-size: 11px;
}

#appShell.ui-workspace .workspace-window .main-shell {
  min-width: 0;
  min-height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--ui-workspace-surface);
}

#appShell.ui-workspace .workspace-toolbar {
  min-height: 72px;
  padding: 13px 26px;
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-canvas-raised);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#appShell.ui-workspace .workspace-toolbar-title {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

#appShell.ui-workspace .workspace-toolbar-actions {
  justify-self: auto;
}

#appShell.ui-workspace .workspace-toolbar-search {
  width: clamp(190px, 24vw, 292px);
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ui-surface-solid) 70%, transparent);
  color: var(--ui-ink-tertiary);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

#appShell.ui-workspace .workspace-toolbar-search:hover,
#appShell.ui-workspace .workspace-toolbar-search:focus-visible {
  border-color: color-mix(in srgb, var(--ui-blue) 35%, var(--ui-line));
  color: var(--ui-ink-secondary);
  outline: none;
}

#appShell.ui-workspace .workspace-toolbar-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* Keep the live health data available to the dashboard while simplifying the toolbar. */
#appShell.ui-workspace .workspace-toolbar .app-topnav-status-item {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

#appShell.ui-workspace .workspace-toolbar .app-topnav-status-pill {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ui-surface-solid) 70%, transparent);
  box-shadow: none;
}

#appShell.ui-workspace .workspace-toolbar .app-topnav-status-pill > :not(.app-topnav-status-dot) {
  display: none;
}

#appShell.ui-workspace .workspace-toolbar .app-topnav-status-dot {
  width: 9px;
  height: 9px;
  margin: 0;
}

#appShell.ui-workspace .workspace-toolbar .app-topnav-status-menu {
  display: none !important;
}

#appShell.ui-workspace .workspace-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ui-blue) 18%, var(--ui-line));
  border-radius: 50%;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 10px;
  font-weight: 750;
}

#appShell.ui-workspace .workspace-content {
  width: 100%;
  min-width: 0;
  padding: 28px 30px 34px;
  flex: 1;
}

#appShell.ui-workspace .workspace-content > * {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

#appShell.ui-workspace .workspace-content > .card,
#appShell.ui-workspace .workspace-content > .hero-min {
  margin-bottom: 18px;
}

#appShell.ui-workspace .workspace-window .app-support-footer {
  width: auto;
  margin: 0 30px 18px;
}

@media (max-width: 1060px) {
  #appShell.ui-workspace .workspace-window {
    grid-template-columns: 220px minmax(0, 1fr);
    background:
      linear-gradient(
        90deg,
        var(--ui-sidebar-surface) 0,
        var(--ui-sidebar-surface) 220px,
        var(--ui-workspace-surface) 220px,
        var(--ui-workspace-surface) 100%
      );
  }

  #appShell.ui-workspace .workspace-toolbar-search {
    width: 190px;
  }
}

@media (max-width: 760px) {
  #appShell.ui-workspace .workspace-stage {
    padding: 0;
  }

  #appShell.ui-workspace .workspace-window {
    min-height: 100vh;
    grid-template-columns: 74px minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(
        90deg,
        var(--ui-sidebar-surface) 0,
        var(--ui-sidebar-surface) 74px,
        var(--ui-workspace-surface) 74px,
        var(--ui-workspace-surface) 100%
      );
  }

  #appShell.ui-workspace .workspace-sidebar {
    height: 100vh;
    min-height: 0;
    top: 0;
    padding-inline: 9px;
  }

  #appShell.ui-workspace .workspace-brand {
    justify-content: center;
    padding-inline: 0;
  }

  #appShell.ui-workspace .workspace-brand-copy,
  #appShell.ui-workspace .workspace-nav-label,
  #appShell.ui-workspace .workspace-nav-item > span:last-child,
  #appShell.ui-workspace .workspace-sidebar-footer {
    display: none;
  }

  #appShell.ui-workspace .workspace-nav-group + .workspace-nav-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ui-line);
  }

  #appShell.ui-workspace .app-topnav-menu.workspace-nav-menu .workspace-nav-item {
    padding: 0;
    justify-content: center;
  }

  #appShell.ui-workspace .workspace-nav-icon {
    width: 22px;
    height: 22px;
  }

  #appShell.ui-workspace .workspace-toolbar {
    min-height: 64px;
    padding-inline: 14px;
  }

  #appShell.ui-workspace .workspace-toolbar-title {
    display: none;
  }

  #appShell.ui-workspace .workspace-toolbar-search {
    display: none;
  }

  #appShell.ui-workspace .workspace-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  #appShell.ui-workspace .workspace-content {
    padding: 22px 14px 26px;
  }

  #appShell.ui-workspace .workspace-window .app-support-footer {
    margin-inline: 14px;
  }
}

/* Demo-aligned reconciliation pages ------------------------------------- */

#appShell.ui-workspace .workspace-page-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

#appShell.ui-workspace .workspace-page-eyebrow {
  margin-bottom: 6px;
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#appShell.ui-workspace .workspace-page-head h1 {
  margin: 0;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

#appShell.ui-workspace .workspace-page-copy {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ui-ink-secondary);
  font-size: 14px;
}

#appShell.ui-workspace .workspace-page-badge {
  min-height: 32px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-ink-secondary);
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

#appShell.ui-workspace .workspace-page > .card,
#appShell.ui-workspace .workspace-page > .dashboard-grid > .card,
#appShell.ui-workspace .workspace-page > [class*="-grid"] > .card {
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .workspace-page > .card {
  margin-bottom: 14px;
}

#appShell.ui-workspace .workspace-page .dashboard-heading,
#appShell.ui-workspace .workspace-page .u-section-title,
#appShell.ui-workspace .workspace-page :where(.card, details) > h2,
#appShell.ui-workspace .workspace-page :where(.card, details) > h3 {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-weight: 690;
  letter-spacing: -0.022em;
}

#appShell.ui-workspace .workspace-page :where(.u-section-header, .dashboard-spotlight-header, .marketplace-downloads-header, .terms-card-header, .contracts-summary) {
  gap: 18px;
}

#appShell.ui-workspace .workspace-page :where(.pane-meta, .dashboard-metric, .stat, .connections-provider-meta, .dashboard-missing-webhook-banner) {
  border-color: var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .workspace-page :where(.contracts-table, .dashboard-metrics, .terms-table) {
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ui-ink);
}

#appShell.ui-workspace .workspace-page :where(.contracts-table, .dashboard-metrics, .terms-table) thead th {
  background: color-mix(in srgb, var(--ui-surface-muted) 92%, transparent);
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

#appShell.ui-workspace .workspace-page :where(.contracts-table, .dashboard-metrics, .terms-table) tbody tr:hover td {
  background: var(--ui-blue-soft);
}

#appShell.ui-workspace .workspace-page :where(.source-toggle, .source-seg, .dashboard-missing-webhook-tablist) {
  border-color: var(--ui-line);
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .workspace-page details {
  border-color: var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

/* Integration and accounting workspaces -------------------------------- */

#appShell.ui-workspace :where(#paneMarketplaceSync, #paneImport, #paneInvoice, #panePointOfSale, #paneQboAccounts, #paneImportHub) > .card:first-of-type {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--ui-blue) 14%, var(--ui-line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ui-blue-soft) 65%, var(--ui-surface)) 0%, var(--ui-surface) 50%);
}

#appShell.ui-workspace :where(#paneMarketplaceSync, #paneImport, #paneInvoice, #panePointOfSale, #paneQboAccounts, #paneImportHub) > .card:first-of-type::after {
  width: 180px;
  height: 180px;
  position: absolute;
  top: -110px;
  right: -70px;
  border-radius: 50%;
  content: "";
  background: color-mix(in srgb, var(--ui-blue) 10%, transparent);
  pointer-events: none;
}

#appShell.ui-workspace .workspace-page .pane-qbo-header {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

#appShell.ui-workspace .workspace-page .pane-qbo-header-main {
  min-width: 0;
  flex: 1;
}

#appShell.ui-workspace .workspace-page .pane-qbo-header-main > .muted {
  max-width: 760px;
  font-size: 12px;
  line-height: 1.55;
}

#appShell.ui-workspace .workspace-page .pane-qbo-header-controls {
  min-width: min(100%, 270px);
  align-items: flex-end;
}

#appShell.ui-workspace .workspace-page .brand-status,
#appShell.ui-workspace .workspace-page .dashboard-beta-chip,
#appShell.ui-workspace .workspace-page .loading-pill {
  border-color: var(--ui-line-strong);
  border-radius: 999px;
  background: var(--ui-surface-muted);
  box-shadow: none;
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace .workspace-page .pane-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#appShell.ui-workspace .workspace-page .pane-meta-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--ui-surface-solid) 62%, transparent);
}

#appShell.ui-workspace .workspace-page .pane-meta-label,
#appShell.ui-workspace .workspace-page .pane-meta-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .workspace-page .pane-meta-label {
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#appShell.ui-workspace .workspace-page .pane-meta-value {
  margin-top: 3px;
  color: var(--ui-ink);
  font-size: 11px;
  font-weight: 680;
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-grid {
  margin-bottom: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card {
  padding: 17px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card-head {
  min-height: 54px;
  padding: 6px;
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card-description,
#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card-detail,
#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-run-panel {
  border-color: var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card-detail span {
  color: var(--ui-ink-tertiary);
  font-size: 9px;
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card-detail strong {
  color: var(--ui-ink);
  font-size: 12px;
}

#appShell.ui-workspace[data-ui-theme="light"] #paneMarketplaceSync :where(.marketplace-sync-card-logo.is-ticketmaster, .marketplace-sync-card-logo-vivid-wordmark) {
  filter: none;
}

#appShell.ui-workspace #panePointOfSale .pos-workflow-banner {
  padding: 14px 15px;
  border: 1px solid color-mix(in srgb, var(--ui-blue) 18%, var(--ui-line));
  border-radius: 14px;
  background: var(--ui-blue-soft);
}

#appShell.ui-workspace #panePointOfSale .pos-source-grid {
  gap: 12px;
}

#appShell.ui-workspace #panePointOfSale .pos-source-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #panePointOfSale :where(.pos-mapping-grid, .pos-payment-grid) {
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #panePointOfSale .pos-api-call-notice {
  border-color: color-mix(in srgb, var(--ui-amber) 25%, var(--ui-line));
  border-radius: 14px;
  background: var(--ui-amber-soft);
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice, #panePointOfSale, #paneQboAccounts, #paneImportHub) :where([class*="table-wrap"], .u-table-wrap-320, .u-table-wrap-360) {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
}

#appShell.ui-workspace #paneImportHub :where(.stepper, .column-map-fields),
#appShell.ui-workspace :where(#paneImport, #paneInvoice) :where(#importMatchRuleRow, #invoiceMatchRuleRow, #importSourceColumnsRow, #invoiceSourceColumnsRow) {
  padding: 11px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneQboAccounts .qbo-top-card-summary {
  padding: 4px 2px;
}

@media (max-width: 980px) {
  #appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-grid {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace .workspace-page .pane-qbo-header {
    flex-direction: column;
  }

  #appShell.ui-workspace .workspace-page .pane-qbo-header-controls {
    width: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  #appShell.ui-workspace .workspace-page .pane-meta {
    grid-template-columns: 1fr;
  }
}

/* Homepage reference layout ------------------------------------------------ */

#homeView.ui-home .home-top--reference .home-brand-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#homeView.ui-home .home-top--reference .home-actions {
  justify-content: flex-end;
}

#homeView.ui-home .home-hero--reference {
  gap: 54px;
}

#homeView.ui-home .home-reference-product {
  position: relative;
  overflow: visible;
}

#homeView.ui-home .home-reference-product::after {
  position: absolute;
  inset: -90px 3% -55px;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.18), rgba(22, 185, 151, 0.08) 42%, transparent 72%);
  filter: blur(14px);
}

#homeView.ui-home .home-reference-product > * {
  position: relative;
  z-index: 1;
}

#homeView.ui-home .home-reference-product .home-product-bar {
  grid-template-columns: 1fr auto 1fr;
  border-radius: 28px 28px 0 0;
}

#homeView.ui-home .home-product-window-brand,
#homeView.ui-home .home-product-account {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

#homeView.ui-home .home-product-window-brand strong {
  color: var(--ui-ink);
  font-size: 11px;
  font-weight: 720;
}

#homeView.ui-home .home-product-window-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(145deg, #45a7ff, #087af6 58%, #655bff);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

#homeView.ui-home .home-product-account {
  justify-content: flex-end;
  color: var(--ui-ink-secondary);
  font-size: 9px;
}

#homeView.ui-home .home-product-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: var(--ui-surface-solid);
}

#homeView.ui-home .home-product-sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--ui-line);
  background: var(--ui-surface-muted);
}

#homeView.ui-home .home-product-nav-label {
  display: block;
  margin: 10px 9px 5px;
  color: var(--ui-ink-tertiary);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#homeView.ui-home .home-product-nav-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--ui-ink-secondary);
  font-size: 9px;
  font-weight: 620;
}

#homeView.ui-home .home-product-nav-item i {
  width: 14px;
  display: grid;
  place-items: center;
  color: var(--ui-ink-tertiary);
  font-style: normal;
}

#homeView.ui-home .home-product-nav-item b {
  font-weight: inherit;
}

#homeView.ui-home .home-product-nav-item.is-active {
  background: var(--ui-surface-solid);
  box-shadow: 0 1px 4px rgba(20, 30, 48, 0.08);
  color: var(--ui-ink);
}

#homeView.ui-home .home-product-nav-item.is-active i {
  color: var(--ui-blue);
}

#homeView.ui-home .home-product-main {
  min-width: 0;
  padding: 20px;
  background: color-mix(in srgb, var(--ui-surface-muted) 72%, var(--ui-surface-solid));
}

#homeView.ui-home .home-product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

#homeView.ui-home .home-product-heading > div:first-child > span {
  display: block;
  color: var(--ui-blue);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#homeView.ui-home .home-product-heading h2 {
  margin: 2px 0 0;
  color: var(--ui-ink);
  font-size: 20px;
  font-weight: 690;
  letter-spacing: -0.035em;
}

#homeView.ui-home .home-product-heading > div:last-child {
  display: flex;
  gap: 6px;
}

#homeView.ui-home .home-product-heading button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-secondary);
  font-size: 8px;
  font-weight: 650;
}

#homeView.ui-home .home-product-heading button.is-primary {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #fff;
}

#homeView.ui-home .home-product-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

#homeView.ui-home .home-product-flow > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-surface-solid);
}

#homeView.ui-home .home-product-flow i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ui-green);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}

#homeView.ui-home .home-product-flow .is-active i {
  background: var(--ui-blue);
}

#homeView.ui-home .home-product-flow strong,
#homeView.ui-home .home-product-flow small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#homeView.ui-home .home-product-flow strong {
  color: var(--ui-ink);
  font-size: 7px;
}

#homeView.ui-home .home-product-flow small {
  margin-top: 1px;
  color: var(--ui-ink-tertiary);
  font-size: 6px;
}

#homeView.ui-home .home-reference-product .home-product-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 0 0 10px;
}

#homeView.ui-home .home-reference-product .home-product-summary div {
  padding: 10px;
  border-radius: 11px;
  background: var(--ui-surface-solid);
}

#homeView.ui-home .home-reference-product .home-product-summary span {
  min-height: 0;
  margin-bottom: 3px;
  font-size: 7px;
  letter-spacing: 0;
  text-transform: none;
}

#homeView.ui-home .home-reference-product .home-product-summary strong {
  font-size: 17px;
  line-height: 1;
}

#homeView.ui-home .home-reference-product .home-product-table {
  margin: 0;
  border-radius: 12px;
}

#homeView.ui-home .home-reference-product .home-product-row {
  min-height: 44px;
  padding: 0 10px;
  font-size: 8px;
}

#homeView.ui-home .home-reference-product .home-product-row--head {
  min-height: 34px;
  font-size: 7px;
}

#homeView.ui-home .home-reference-product .home-status {
  padding: 3px 6px;
  font-size: 6px;
}

#homeView.ui-home .home-reference-product .home-product-note {
  margin: 10px 0 0;
  padding: 9px 11px;
  font-size: 8px;
}

#homeView.ui-home .home-provider-strip {
  width: min(calc(100% - 40px), var(--ui-content));
  margin: 0 auto;
  padding: 68px 0 30px;
  scroll-margin-top: 90px;
}

#homeView.ui-home .home-provider-strip > p {
  margin: 0;
  color: var(--ui-ink-tertiary);
  font-size: 10px;
  font-weight: 730;
  letter-spacing: 0.075em;
  text-align: center;
  text-transform: uppercase;
}

#homeView.ui-home .home-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

#homeView.ui-home .home-provider-grid > span {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(31, 50, 82, 0.045);
}

#homeView.ui-home .home-provider-grid img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

#homeView.ui-home .home-provider-grid > span:nth-child(1) img,
#homeView.ui-home .home-provider-grid > span:nth-child(2) img {
  max-width: 138px;
}

#homeView.ui-home .home-provider-grid > span:nth-child(3) img,
#homeView.ui-home .home-provider-grid > span:nth-child(6) img,
#homeView.ui-home .home-provider-grid > span:nth-child(7) img {
  max-width: 124px;
}

#homeView.ui-home .home-provider-grid > span:nth-child(4) img,
#homeView.ui-home .home-provider-grid > span:nth-child(5) img,
#homeView.ui-home .home-provider-grid > span:nth-child(8) img {
  max-width: 112px;
}

#homeView.ui-home .home-provider-grid > .home-provider-logo--dark {
  border-color: rgba(62, 89, 137, 0.3);
  background: #101725;
}

#homeView.ui-home .home-feature-section .home-value-grid {
  gap: 14px;
}

#homeView.ui-home .home-feature-section .home-value-card {
  min-height: 420px;
  padding: 24px;
}

#homeView.ui-home .home-feature-section .home-value-card::after {
  display: none;
}

#homeView.ui-home .home-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 19px;
  font-weight: 700;
}

#homeView.ui-home .home-value-card--purchase .home-feature-icon {
  background: color-mix(in srgb, #7758e8 11%, transparent);
  color: #7758e8;
}

#homeView.ui-home .home-value-card--accounting .home-feature-icon {
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

#homeView.ui-home .home-feature-section .home-value-card h3 {
  margin: 20px 0 8px;
  font-size: 20px;
}

#homeView.ui-home .home-feature-visual {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  height: 178px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-sm);
}

#homeView.ui-home .home-feature-visual > div {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-ink);
  font-size: 8px;
}

#homeView.ui-home .home-feature-visual > div span {
  color: var(--ui-green);
}

#homeView.ui-home .home-feature-visual > p {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 0.6fr;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 7px;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-ink);
  font-size: 7px;
}

#homeView.ui-home .home-feature-visual > p:last-child {
  border-bottom: 0;
}

#homeView.ui-home .home-feature-visual p i {
  width: 72%;
  height: 6px;
  border-radius: 999px;
  background: var(--ui-surface-muted);
}

#homeView.ui-home .home-feature-visual p b {
  text-align: right;
}

#homeView.ui-home .home-feature-visual p em {
  justify-self: end;
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--ui-green-soft);
  color: var(--ui-green);
  font-size: 6px;
  font-style: normal;
  font-weight: 750;
}

#homeView.ui-home .home-feature-visual p em.is-review {
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

#homeView.ui-home .home-workflow-section {
  padding-top: 58px;
}

#homeView.ui-home .home-workflow-section .home-section-head {
  max-width: 880px;
}

#homeView.ui-home .home-workflow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  padding-top: 8px;
}

#homeView.ui-home .home-workflow-rail::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(16.666% + 23px);
  right: calc(16.666% + 23px);
  height: 1px;
  background: linear-gradient(90deg, var(--ui-blue), var(--ui-line-strong) 35%, var(--ui-line-strong) 65%, var(--ui-blue));
}

#homeView.ui-home .home-workflow-rail article {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 46px auto;
  justify-items: center;
  text-align: center;
}

#homeView.ui-home .home-workflow-number {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ui-blue) 34%, var(--ui-line));
  border-radius: 15px;
  background: var(--ui-surface-solid);
  color: var(--ui-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 8px var(--ui-canvas);
}

#homeView.ui-home .home-workflow-rail article > div {
  max-width: 340px;
  padding-top: 22px;
}

#homeView.ui-home .home-workflow-rail h3 {
  margin: 0 0 10px;
  color: var(--ui-ink);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 670;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

#homeView.ui-home .home-workflow-rail p {
  margin: 0;
  color: var(--ui-ink-secondary);
  font-size: 14px;
  line-height: 1.55;
}

#homeView.ui-home .home-workflow-action {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

#homeView.ui-home .home-security-strip {
  width: min(calc(100% - 40px), var(--ui-content));
  margin: 0 auto;
  padding: 30px 0 50px;
  scroll-margin-top: 90px;
}

#homeView.ui-home .home-security-strip .home-security-card {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 0.6fr);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 26px;
  border-radius: 20px;
}

#homeView.ui-home .home-security-lead {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ui-ink);
}

#homeView.ui-home .home-security-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

#homeView.ui-home .home-security-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#homeView.ui-home .home-security-card strong,
#homeView.ui-home .home-security-card small,
#homeView.ui-home .home-security-card span {
  display: block;
}

#homeView.ui-home .home-security-lead strong {
  font-size: 14px;
}

#homeView.ui-home .home-security-lead small {
  margin-top: 2px;
  color: var(--ui-ink-secondary);
  font-size: 11px;
}

#homeView.ui-home .home-security-card > div {
  min-height: auto;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 1px solid var(--ui-line);
  border-radius: 0;
  background: transparent;
}

#homeView.ui-home .home-security-card > div strong {
  color: var(--ui-ink);
  font-size: 11px;
}

#homeView.ui-home .home-security-card > div span {
  margin-top: 3px;
  color: var(--ui-ink-secondary);
  font-size: 9px;
}

#homeView.ui-home .home-pricing-section {
  padding-top: 72px;
}

#homeView.ui-home .home-demo-section {
  padding-top: 58px;
}

@media (max-width: 1040px) {
  #homeView.ui-home .home-product-layout {
    grid-template-columns: 1fr;
  }

  #homeView.ui-home .home-product-sidebar {
    display: none;
  }

  #homeView.ui-home .home-provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #homeView.ui-home .home-security-strip .home-security-card {
    grid-template-columns: 1fr 1fr;
  }

  #homeView.ui-home .home-security-lead {
    grid-column: 1 / -1;
  }

  #homeView.ui-home .home-security-card > div {
    padding: 12px 0 0;
    border-top: 1px solid var(--ui-line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  #homeView.ui-home .home-top--reference .home-header-demo {
    display: none;
  }

  #homeView.ui-home .home-reference-product .home-product-bar {
    grid-template-columns: 1fr auto;
  }

  #homeView.ui-home .home-product-account > span:last-child,
  #homeView.ui-home .home-product-heading > div:last-child {
    display: none;
  }

  #homeView.ui-home .home-product-main {
    padding: 12px;
  }

  #homeView.ui-home .home-product-flow,
  #homeView.ui-home .home-reference-product .home-product-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #homeView.ui-home .home-provider-strip,
  #homeView.ui-home .home-security-strip {
    width: min(calc(100% - 24px), var(--ui-content));
  }

  #homeView.ui-home .home-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #homeView.ui-home .home-feature-section .home-value-card {
    min-height: 410px;
  }

  #homeView.ui-home .home-workflow-rail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 0;
  }

  #homeView.ui-home .home-workflow-rail::before {
    top: 23px;
    bottom: 23px;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--ui-blue), var(--ui-line-strong) 35%, var(--ui-line-strong) 65%, var(--ui-blue));
  }

  #homeView.ui-home .home-workflow-rail article {
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto;
    align-items: start;
    justify-items: start;
    gap: 18px;
    text-align: left;
  }

  #homeView.ui-home .home-workflow-rail article > div {
    max-width: none;
    padding-top: 2px;
  }

  #homeView.ui-home .home-security-strip .home-security-card {
    grid-template-columns: 1fr;
  }

  #homeView.ui-home .home-security-lead {
    grid-column: auto;
  }
}

/* Page-specific workspace blueprints ----------------------------------- */

#appShell.ui-workspace .workspace-page-aside {
  min-width: max-content;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  gap: 9px;
}

#appShell.ui-workspace .workspace-page-actions,
#appShell.ui-workspace .workspace-page-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

#appShell.ui-workspace .workspace-page-live-status {
  width: auto;
  max-width: 360px;
  min-height: 28px;
  margin: 0;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-ink-secondary);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .workspace-summary-grid {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace .workspace-summary-grid > :where(div, article) {
  min-width: 0;
  min-height: 94px;
  padding: 15px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--ui-line);
  border-radius: 17px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .workspace-summary-grid :where(
  .label,
  .dashboard-metric-label,
  .security-summary-label,
  span
) {
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

#appShell.ui-workspace .workspace-summary-grid :where(
  .value,
  .dashboard-metric-value,
  .security-summary-value,
  strong
) {
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .workspace-section-heading {
  margin: 12px 0 0;
  padding: 4px 2px 0;
  grid-column: 1 / -1;
}

#appShell.ui-workspace .workspace-section-heading > span {
  display: block;
  color: var(--ui-blue);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#appShell.ui-workspace .workspace-section-heading h2 {
  margin: 5px 0 0;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 18px;
  font-weight: 710;
  letter-spacing: -0.028em;
}

#appShell.ui-workspace .workspace-section-heading p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--ui-ink-secondary);
  font-size: 11px;
  line-height: 1.5;
}

#appShell.ui-workspace .workspace-legacy-heading,
#appShell.ui-workspace .workspace-legacy-title {
  display: none !important;
}

#appShell.ui-workspace #paneConnections .workspace-page-badge {
  display: none;
}

#appShell.ui-workspace #paneConnections[data-workspace-chrome="ready"] .connections-hub-header {
  display: none;
}

#appShell.ui-workspace #paneConnections .workspace-card-directory {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#appShell.ui-workspace #paneConnections .connections-hub-toolbar {
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneSecurity > .workspace-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#appShell.ui-workspace #paneSecurity > .workspace-summary-grid > div {
  min-height: 82px;
}

#appShell.ui-workspace #paneMpTags .workspace-summary-grid .mp-tag-filter {
  cursor: pointer;
}

#appShell.ui-workspace #paneMpTags .workspace-summary-grid .mp-tag-filter:hover {
  border-color: color-mix(in srgb, var(--ui-blue) 25%, var(--ui-line));
  background: linear-gradient(135deg, var(--ui-blue-soft), var(--ui-surface));
}

@media (max-width: 1000px) {
  #appShell.ui-workspace .workspace-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #appShell.ui-workspace .workspace-page-aside {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
  }

  #appShell.ui-workspace .workspace-page-actions,
  #appShell.ui-workspace .workspace-page-statuses {
    justify-content: flex-start;
  }

  #appShell.ui-workspace .workspace-summary-grid,
  #appShell.ui-workspace #paneSecurity > .workspace-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Operational integration flows -------------------------------------- */

#appShell.ui-workspace .integration-flow-overview {
  margin-bottom: 14px;
}

#appShell.ui-workspace .integration-flow-progress {
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(var(--flow-columns, 5), minmax(0, 1fr));
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .integration-flow-step {
  min-width: 0;
  min-height: 39px;
  padding: 7px 9px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace .integration-flow-step + .integration-flow-step::before {
  width: 1px;
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -3px;
  content: "";
  background: var(--ui-line);
}

#appShell.ui-workspace .integration-flow-step > span {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line-strong);
  border-radius: 50%;
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-weight: 750;
}

#appShell.ui-workspace .integration-flow-step > strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .integration-flow-step.is-active {
  background: var(--ui-blue-soft);
  color: var(--ui-ink);
}

#appShell.ui-workspace .integration-flow-step.is-active > span {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
}

#appShell.ui-workspace .integration-flow-step.is-complete > span {
  border-color: var(--ui-green);
  background: var(--ui-green);
  color: #ffffff;
  font-size: 0;
}

#appShell.ui-workspace .integration-flow-step.is-complete > span::before {
  content: "\2713";
  font-size: 10px;
}

#appShell.ui-workspace .integration-flow-summaries {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#appShell.ui-workspace .integration-flow-summaries > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .integration-flow-summaries :where(span, strong) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .integration-flow-summaries span {
  color: var(--ui-ink-tertiary);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

#appShell.ui-workspace .integration-flow-summaries strong {
  margin-top: 5px;
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 690;
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-connection-card .pane-qbo-header-main > :where(h3, p) {
  display: none;
}

#appShell.ui-workspace .integration-connection-card {
  padding: 16px 18px;
}

#appShell.ui-workspace .integration-connection-card .pane-meta {
  margin-top: 0 !important;
}

#appShell.ui-workspace .integration-picker-card,
#appShell.ui-workspace .integration-workflow-card,
#appShell.ui-workspace .integration-completed-card {
  overflow: hidden;
}

#appShell.ui-workspace .integration-picker-card > .u-section-header,
#appShell.ui-workspace .integration-workflow-card > .u-section-header,
#appShell.ui-workspace .integration-completed-card > .u-section-header {
  margin: -18px -18px 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ui-line);
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card > .u-section-header ~ .row {
  margin-left: 0;
  margin-right: 0;
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card > .u-section-header + .row,
#appShell.ui-workspace :where(#paneImport, #paneInvoice) #importSourceMapping,
#appShell.ui-workspace :where(#paneImport, #paneInvoice) #invoiceSourceMapping {
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card :where(#importMatchSummary, #invoiceMatchSummary) {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--ui-blue-soft);
  color: var(--ui-ink-secondary);
  font-size: 9px;
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice, #panePointOfSale, #paneMarketplaceSync) :where(
  #qbBillTableWrap,
  #invoiceTableWrap,
  #importMatchTableWrap,
  #invoiceMatchTableWrap,
  #marketplaceSyncBatchWrap,
  #marketplaceSyncPreviewWrap,
  .pos-results-table
) thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ui-surface-solid);
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) :where(#qbBillTableWrap, #invoiceTableWrap) {
  max-height: 340px;
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) :where(#importMatchTableWrap, #invoiceMatchTableWrap) {
  max-height: 520px;
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card > .row:has(#importPaymentAccount),
#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card > .row:has(#invoiceDepositAccount) {
  margin-top: 14px;
  padding: 14px 14px 0;
  border: 1px solid var(--ui-line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card > .row:has(#importPaymentRef),
#appShell.ui-workspace :where(#paneImport, #paneInvoice) .integration-workflow-card > .row:has(#invoicePaymentRef) {
  margin-top: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--ui-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace :where(#paneImport, #paneInvoice, #panePointOfSale) :where(.u-confirm-bar, #posActionMessage) {
  border-radius: 13px;
}

@media (max-width: 900px) {
  #appShell.ui-workspace .integration-flow-progress,
  #appShell.ui-workspace .integration-flow-summaries {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace .integration-flow-step + .integration-flow-step::before {
    display: none;
  }
}

/* Organized utility and tracking workspaces ---------------------------- */

#appShell.ui-workspace .workspace-card-grid:not([hidden]):not(.u-hidden) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

#appShell.ui-workspace .workspace-card-grid > :not(.workspace-role-card) {
  grid-column: 1 / -1;
}

#appShell.ui-workspace .workspace-card-grid > .workspace-role-card {
  min-width: 0;
  height: 100%;
  margin: 0;
}

#appShell.ui-workspace .workspace-card-grid > :where(
  .workspace-card-overview,
  .workspace-card-analytics,
  .workspace-card-notifications,
  .workspace-card-editor,
  .workspace-card-actions,
  .workspace-card-list,
  .workspace-card-guide,
  .workspace-card-workflow,
  .workspace-card-resources,
  .workspace-card-search
) {
  grid-column: 1 / -1;
}

#appShell.ui-workspace #paneTerms > :where(.workspace-card-source, .workspace-card-editor),
#appShell.ui-workspace .workspace-card-grid-downloads > .workspace-card-download {
  grid-column: auto;
}

#appShell.ui-workspace .workspace-card-stack > .workspace-role-card {
  margin-bottom: 14px;
}

#appShell.ui-workspace .workspace-role-card {
  overflow: hidden;
}

#appShell.ui-workspace :where(
  .workspace-role-card,
  .integration-connection-card,
  .integration-picker-card,
  .integration-provider-card,
  .integration-workflow-card,
  .integration-completed-card,
  .recon-setup-panel
):hover {
  border-color: var(--ui-line);
  box-shadow: var(--ui-shadow-sm);
  transform: none;
}

#appShell.ui-workspace .workspace-role-card > :where(.u-section-header, .dashboard-spotlight-header, .marketplace-downloads-header, .terms-card-header) {
  margin: -18px -18px 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ui-line);
}

#appShell.ui-workspace .workspace-card-overview {
  border-color: color-mix(in srgb, var(--ui-blue) 14%, var(--ui-line));
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--ui-blue) 9%, transparent), transparent 26rem),
    var(--ui-surface);
}

#appShell.ui-workspace :where(.workspace-card-reference, .workspace-card-insight, .workspace-card-notice, .workspace-card-source, .workspace-card-download) {
  background: color-mix(in srgb, var(--ui-surface) 88%, var(--ui-surface-muted));
}

#appShell.ui-workspace .workspace-card-list :where(.contracts-table-wrap, .admin-table-wrap, .terms-table-wrap, .dashboard-metrics-table, [class*="table-wrap"]) {
  max-height: 540px;
  overflow: auto;
}

#appShell.ui-workspace .workspace-card-list thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .workspace-card-download {
  min-height: 190px;
}

#appShell.ui-workspace .workspace-card-download :where(.marketplace-downloads-header, .u-section-header) {
  min-height: 58px;
  align-items: center;
}

@media (max-width: 900px) {
  #appShell.ui-workspace .workspace-card-grid:not([hidden]):not(.u-hidden) {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace #paneTerms > :where(.workspace-card-source, .workspace-card-editor),
  #appShell.ui-workspace .workspace-card-grid-downloads > .workspace-card-download {
    grid-column: 1;
  }
}

/* Dashboard command center -------------------------------------------- */

#appShell.ui-workspace #paneDashboard .dashboard-command-center {
  margin-bottom: 14px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  align-items: center;
  gap: 32px;
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--ui-blue) 12%, transparent), transparent 25rem),
    var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneDashboard .dashboard-command-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ui-green);
  font-size: 10px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

#appShell.ui-workspace #paneDashboard .dashboard-command-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

#appShell.ui-workspace #paneDashboard .dashboard-command-copy h2 {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

#appShell.ui-workspace #paneDashboard .dashboard-command-copy p {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--ui-ink-secondary);
  font-size: 13px;
  line-height: 1.6;
}

#appShell.ui-workspace #paneDashboard .dashboard-command-status {
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ui-surface-muted) 82%, transparent);
}

#appShell.ui-workspace #paneDashboard .dashboard-command-status > div {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#appShell.ui-workspace #paneDashboard .dashboard-command-status > div + div {
  border-top: 1px solid var(--ui-line);
}

#appShell.ui-workspace #paneDashboard .dashboard-command-status span {
  color: var(--ui-ink-secondary);
  font-size: 10px;
}

#appShell.ui-workspace #paneDashboard .dashboard-command-status strong {
  overflow: hidden;
  color: var(--ui-ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-notices {
  margin-top: 14px;
}

/* Completed reconciliation review workspaces ------------------------- */

#appShell.ui-workspace .recon-results-stage[hidden] {
  display: none !important;
}

#appShell.ui-workspace :where(#paneTwo, #paneMarketplace).has-results:not(.show-setup) .recon-setup-panel {
  display: none;
}

#appShell.ui-workspace .recon-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

#appShell.ui-workspace .recon-change-inputs {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 10px;
}

#appShell.ui-workspace .recon-results-stage {
  margin: 0 0 16px;
}

#appShell.ui-workspace .recon-result-sources {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace .recon-result-sources article {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .recon-source-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

#appShell.ui-workspace .recon-source-symbol.is-blue {
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

#appShell.ui-workspace .recon-source-symbol.is-violet {
  background: color-mix(in srgb, var(--ui-violet) 11%, transparent);
  color: var(--ui-violet);
}

#appShell.ui-workspace .recon-result-sources article > span:nth-child(2),
#appShell.ui-workspace .recon-result-sources :where(small, strong, em) {
  min-width: 0;
  display: block;
}

#appShell.ui-workspace .recon-result-sources small {
  color: var(--ui-ink-tertiary);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#appShell.ui-workspace .recon-result-sources strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ui-ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .recon-result-sources em {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .recon-result-sources article > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ui-green) 10%, transparent);
  color: var(--ui-green);
  font-size: 8px;
  letter-spacing: 0.03em;
}

#appShell.ui-workspace .recon-results-stage #statsCard {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 16px;
}

#appShell.ui-workspace .recon-results-stage #statsCard .statsbar {
  display: block;
}

#appShell.ui-workspace .recon-results-stage #statsCard .stats {
  gap: 4px;
}

#appShell.ui-workspace .recon-results-stage #statsCard .stat,
#appShell.ui-workspace .recon-results-stage #mpTotals .stat {
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

#appShell.ui-workspace .recon-results-stage #statsCard .stat:hover,
#appShell.ui-workspace .recon-results-stage #statsCard .stat.active,
#appShell.ui-workspace .recon-results-stage #mpTotals .stat:hover,
#appShell.ui-workspace .recon-results-stage #mpTotals .stat.active {
  background: var(--ui-blue-soft);
}

#appShell.ui-workspace .recon-results-stage #statsCard .stat .value,
#appShell.ui-workspace .recon-results-stage #mpTotals .stat .value {
  margin-top: 4px;
  font-size: 15px;
}

#appShell.ui-workspace .recon-results-stage #sparkBox {
  display: none;
}

#appShell.ui-workspace .recon-results-stage #statsCard .stats-actions {
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--ui-line);
}

#appShell.ui-workspace .recon-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 328px);
  align-items: start;
  gap: 14px;
}

#appShell.ui-workspace .recon-results-table-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

#appShell.ui-workspace #previewCard > .bar,
#appShell.ui-workspace #marketplaceCard > .u-section-header {
  margin: 0;
  padding: 14px 15px;
  border-bottom: 1px solid var(--ui-line);
}

#appShell.ui-workspace #previewCard > .quick {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #marketplaceCard #mpTotals {
  margin: 0;
  padding: 5px 9px;
  gap: 2px;
  border-bottom: 1px solid var(--ui-line);
}

#appShell.ui-workspace .recon-results-stage :where(#previewScroll, #marketplaceScroll) {
  max-height: min(650px, calc(100vh - 265px));
  border: 0 !important;
  border-radius: 0 !important;
}

#appShell.ui-workspace .recon-results-stage .contracts-table {
  border-collapse: separate;
  border-spacing: 0;
}

#appShell.ui-workspace .recon-results-stage .contracts-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ui-surface-solid);
  color: var(--ui-ink-tertiary);
  font-size: 8px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#appShell.ui-workspace .recon-results-stage .contracts-table tbody tr:not(.invest) {
  cursor: pointer;
  transition: background-color 120ms ease;
}

#appShell.ui-workspace .recon-results-stage .contracts-table tbody tr:not(.invest):hover,
#appShell.ui-workspace .recon-results-stage .contracts-table tbody tr.is-review-selected {
  background: var(--ui-blue-soft) !important;
}

#appShell.ui-workspace .recon-results-stage .contracts-table td {
  height: 48px;
  color: var(--ui-ink-secondary);
  font-size: 9px;
}

#appShell.ui-workspace .recon-review-inspector {
  min-height: 360px;
  position: sticky;
  top: 64px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .recon-inspector-empty {
  min-height: 360px;
  padding: 32px 25px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

#appShell.ui-workspace .recon-inspector-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
  font-size: 20px;
}

#appShell.ui-workspace .recon-inspector-empty h3 {
  margin: 13px 0 0;
  color: var(--ui-ink);
  font-size: 14px;
}

#appShell.ui-workspace .recon-inspector-empty p {
  max-width: 240px;
  margin: 7px 0 0;
  color: var(--ui-ink-secondary);
  font-size: 10px;
  line-height: 1.55;
}

#appShell.ui-workspace .recon-inspector-content {
  padding: 18px;
}

#appShell.ui-workspace .recon-inspector-content > small {
  color: var(--ui-amber);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#appShell.ui-workspace .recon-review-inspector[data-tone="ready"] .recon-inspector-content > small {
  color: var(--ui-green);
}

#appShell.ui-workspace .recon-inspector-content > h3 {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: var(--ui-ink);
  font-size: 17px;
  letter-spacing: -0.025em;
}

#appShell.ui-workspace .recon-inspector-content > p {
  margin: 6px 0 0;
  color: var(--ui-ink-secondary);
  font-size: 9px;
  line-height: 1.5;
}

#appShell.ui-workspace .recon-inspector-comparison {
  margin-top: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

#appShell.ui-workspace .recon-inspector-comparison > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .recon-inspector-comparison small,
#appShell.ui-workspace .recon-inspector-comparison strong {
  display: block;
}

#appShell.ui-workspace .recon-inspector-comparison small {
  color: var(--ui-ink-tertiary);
  font-size: 7px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

#appShell.ui-workspace .recon-inspector-comparison strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--ui-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .recon-inspector-comparison > span {
  color: var(--ui-ink-tertiary);
  font-size: 8px;
}

#appShell.ui-workspace .recon-inspector-difference {
  margin-top: 9px;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--ui-amber) 28%, var(--ui-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--ui-amber) 8%, transparent);
  color: var(--ui-amber);
  font-size: 9px;
}

#appShell.ui-workspace .recon-inspector-facts {
  margin: 15px 0 0;
}

#appShell.ui-workspace .recon-inspector-facts > div {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--ui-line);
}

#appShell.ui-workspace .recon-inspector-facts :where(dt, dd) {
  margin: 0;
  font-size: 9px;
}

#appShell.ui-workspace .recon-inspector-facts dt {
  color: var(--ui-ink-tertiary);
}

#appShell.ui-workspace .recon-inspector-facts dd {
  overflow-wrap: anywhere;
  color: var(--ui-ink);
  font-weight: 650;
  text-align: right;
}

#appShell.ui-workspace .recon-inspector-help {
  padding: 10px;
  border-radius: 10px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .recon-inspector-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#appShell.ui-workspace .recon-inspector-actions-three {
  grid-template-columns: 1fr;
}

#appShell.ui-workspace .recon-inspector-actions :where(.btn, .btn-outline) {
  min-width: 0;
  min-height: 35px;
  padding: 7px 9px;
  font-size: 9px;
}

@media (max-width: 1100px) {
  #appShell.ui-workspace .recon-results-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 900px) {
  #appShell.ui-workspace #paneDashboard .dashboard-command-center,
  #appShell.ui-workspace .recon-results-grid {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace .recon-review-inspector {
    position: static;
  }
}

@media (max-width: 680px) {
  #appShell.ui-workspace #paneDashboard .dashboard-command-center {
    padding: 21px;
  }

  #appShell.ui-workspace .recon-result-sources {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace .recon-page-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Utilities and tracking workspaces ------------------------------------- */

#appShell.ui-workspace #paneDashboard .dashboard-reference-overview {
  margin-bottom: 14px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-metrics {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-metric {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-metric > span,
#appShell.ui-workspace #paneDashboard .dashboard-reference-metric > strong,
#appShell.ui-workspace #paneDashboard .dashboard-reference-metric > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-metric > span {
  color: var(--ui-ink-secondary);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-metric > strong {
  margin-top: 8px;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-metric > small {
  margin-top: 4px;
  color: var(--ui-ink-tertiary);
  font-size: 9px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launchers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch {
  min-width: 0;
  min-height: 86px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 17px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch:hover {
  border-color: color-mix(in srgb, var(--ui-blue) 24%, var(--ui-line));
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-2px);
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch.is-primary {
  border-color: color-mix(in srgb, var(--ui-blue) 22%, var(--ui-line));
  background: linear-gradient(135deg, var(--ui-blue-soft), var(--ui-surface) 65%);
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch strong,
#appShell.ui-workspace #paneDashboard .dashboard-reference-launch small {
  display: block;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch strong {
  color: var(--ui-ink);
  font-size: 12px;
  font-weight: 700;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-launch small {
  margin-top: 4px;
  color: var(--ui-ink-secondary);
  font-size: 10px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-arrow {
  color: var(--ui-ink-tertiary);
  font-size: 22px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-notices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#appShell.ui-workspace #paneDashboard .dashboard-reference-notices > .card {
  margin: 0;
}

#appShell.ui-workspace :where(#paneSeasonSeats, #paneCanceledEvents, #paneCreditCards, #paneContracts) .contracts-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#appShell.ui-workspace :where(#paneSeasonSeats, #paneCanceledEvents, #paneCreditCards, #paneContracts) .contracts-summary-item {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace :where(#paneSeasonSeats, #paneCanceledEvents, #paneCreditCards, #paneContracts) .contracts-summary-item .label {
  color: var(--ui-ink-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#appShell.ui-workspace :where(#paneSeasonSeats, #paneCanceledEvents, #paneCreditCards, #paneContracts) .contracts-summary-item .value {
  margin-top: 7px;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 20px;
  font-weight: 710;
  letter-spacing: -0.03em;
}

#appShell.ui-workspace .workspace-page .contracts-form {
  padding: 2px;
}

#appShell.ui-workspace .workspace-page .contracts-form-grid {
  gap: 12px;
}

#appShell.ui-workspace .workspace-page .contracts-table-wrap,
#appShell.ui-workspace .workspace-page .admin-table-wrap,
#appShell.ui-workspace .workspace-page .terms-table-wrap,
#appShell.ui-workspace .workspace-page .dashboard-metrics-table {
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
}

#appShell.ui-workspace :where(#paneCreditCards, #paneMissing, #paneMpTags) .dashboard-missing-webhook-tabs {
  padding: 4px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace :where(#paneCreditCards, #paneMissing, #paneMpTags) .dashboard-missing-webhook {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface);
}

#appShell.ui-workspace .contracts-table tfoot .contracts-totals-row td {
  border-color: var(--ui-line);
  background: var(--ui-surface-muted);
  color: var(--ui-red);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-pill {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-muted);
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-pill.is-connected {
  border-color: color-mix(in srgb, var(--ui-green) 24%, var(--ui-line));
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-pill.is-running {
  border-color: color-mix(in srgb, var(--ui-blue) 24%, var(--ui-line));
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-pill.is-soon {
  border-color: color-mix(in srgb, var(--ui-amber) 24%, var(--ui-line));
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

#appShell.ui-workspace #paneMarketplaceSync .marketplace-sync-card-logo-fallback {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#appShell.ui-workspace #paneSecurity .security-summary {
  gap: 10px;
}

#appShell.ui-workspace #paneSecurity .security-summary-item {
  padding: 13px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneSecurity .security-grid {
  gap: 12px;
}

#appShell.ui-workspace #paneSecurity .security-section {
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneAdmin :where(.admin-add-wrap, .admin-plan-matrix, .admin-security-policy-grid, .admin-override-matrix) {
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneHowTo .dashboard-howto-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

#appShell.ui-workspace #paneHowTo .dashboard-howto-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneHowTo .dashboard-howto-detail {
  border-radius: 12px;
  box-shadow: none;
}

#appShell.ui-workspace #paneTemplates .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace #paneTemplates .dashboard-grid > .card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  background: var(--ui-surface-muted);
  box-shadow: none;
}

#appShell.ui-workspace #paneSearch .dashboard-spotlight-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--ui-blue) 11%, transparent), transparent 18rem),
    var(--ui-surface);
}

#appShell.ui-workspace #paneSearch .dashboard-spotlight-input {
  min-width: min(100%, 390px);
  padding: 5px;
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneSearch .dashboard-spotlight-body {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed var(--ui-line-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--ui-surface-muted) 72%, transparent);
}

@media (max-width: 1120px) {
  #appShell.ui-workspace #paneDashboard .dashboard-reference-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #appShell.ui-workspace :where(#paneSeasonSeats, #paneCanceledEvents, #paneCreditCards, #paneContracts) .contracts-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #appShell.ui-workspace #paneHowTo .dashboard-howto-sections,
  #appShell.ui-workspace #paneTemplates .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #appShell.ui-workspace #paneDashboard .dashboard-reference-metrics,
  #appShell.ui-workspace #paneDashboard .dashboard-reference-launchers,
  #appShell.ui-workspace #paneDashboard .dashboard-reference-notices,
  #appShell.ui-workspace :where(#paneSeasonSeats, #paneCanceledEvents, #paneCreditCards, #paneContracts) .contracts-summary-metrics,
  #appShell.ui-workspace #paneHowTo .dashboard-howto-sections,
  #appShell.ui-workspace #paneTemplates .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

#appShell.ui-workspace .recon-page-head {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

#appShell.ui-workspace .recon-page-eyebrow {
  margin-bottom: 6px;
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

#appShell.ui-workspace .recon-page-head h1 {
  margin: 0;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

#appShell.ui-workspace .recon-page-copy {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ui-ink-secondary);
  font-size: 14px;
}

#appShell.ui-workspace .recon-page-badge {
  min-height: 32px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ui-ink-secondary);
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

#appShell.ui-workspace .recon-workflow {
  margin-bottom: 14px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .recon-workflow-step {
  min-width: 0;
  padding: 9px 11px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace .recon-workflow-step + .recon-workflow-step::before {
  width: 1px;
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: -3px;
  content: "";
  background: var(--ui-line);
}

#appShell.ui-workspace .recon-step-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-line-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
}

#appShell.ui-workspace .recon-workflow-step > span:last-child {
  min-width: 0;
}

#appShell.ui-workspace .recon-workflow-step strong,
#appShell.ui-workspace .recon-workflow-step small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .recon-workflow-step strong {
  color: inherit;
  font-size: 10px;
  font-weight: 700;
}

#appShell.ui-workspace .recon-workflow-step small {
  margin-top: 1px;
  color: var(--ui-ink-tertiary);
  font-size: 9px;
}

#appShell.ui-workspace .recon-workflow-step.is-active {
  background: var(--ui-blue-soft);
  color: var(--ui-ink);
}

#appShell.ui-workspace .recon-workflow-step.is-active .recon-step-icon {
  border-color: var(--ui-blue);
  background: var(--ui-blue);
  color: #ffffff;
}

#appShell.ui-workspace .recon-workflow-step.is-complete .recon-step-icon {
  border-color: var(--ui-green);
  background: var(--ui-green);
  color: #ffffff;
  font-size: 0;
}

#appShell.ui-workspace .recon-workflow-step.is-complete .recon-step-icon::before {
  content: "\2713";
  font-size: 11px;
}

#appShell.ui-workspace .recon-status-grid {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace .recon-status-card {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .recon-status-card span,
#appShell.ui-workspace .recon-status-card strong,
#appShell.ui-workspace .recon-status-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#appShell.ui-workspace .recon-status-card span {
  color: var(--ui-ink-secondary);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

#appShell.ui-workspace .recon-status-card strong {
  margin-top: 7px;
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 17px;
  font-weight: 710;
  letter-spacing: -0.025em;
}

#appShell.ui-workspace .recon-status-card small {
  margin-top: 3px;
  color: var(--ui-ink-tertiary);
  font-size: 9px;
}

#appShell.ui-workspace .recon-setup-panel {
  margin-bottom: 14px;
  border-radius: 18px;
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .recon-setup-panel .manual-mode-banner {
  padding: 10px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .recon-setup-panel > .muted:first-child {
  margin-bottom: 13px;
  padding: 10px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .recon-setup-panel .pane-meta {
  margin: 12px 0;
}

#appShell.ui-workspace .recon-setup-panel .source-toggle {
  padding: 8px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .recon-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

#appShell.ui-workspace .recon-source-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace .recon-source-card > label:first-child {
  margin-top: 0;
  color: var(--ui-ink);
  font-size: 12px;
}

#appShell.ui-workspace .recon-source-card input[type="file"] {
  width: 100%;
  max-width: none;
}

#appShell.ui-workspace .recon-setup-panel :where(.po-subcard, .map-card, .rawprev) {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .recon-setup-panel > .row:last-of-type {
  padding-top: 14px;
  border-top: 1px solid var(--ui-line);
}

#appShell.ui-workspace #matchingOptionsCard {
  margin-bottom: 14px;
}

#appShell.ui-workspace #statsCard,
#appShell.ui-workspace #marketplaceCard {
  border-radius: 18px;
}

#appShell.ui-workspace #statsCard .stats,
#appShell.ui-workspace #mpTotals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#appShell.ui-workspace #previewCard,
#appShell.ui-workspace #marketplaceCard {
  overflow: hidden;
}

#appShell.ui-workspace #previewCard #previewScroll,
#appShell.ui-workspace #marketplaceCard #marketplaceScroll {
  max-height: 520px;
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  background: var(--ui-surface-solid);
}

#appShell.ui-workspace #marketplaceCard .u-section-header {
  margin-bottom: 12px;
}

/* Connections uses the complete page composition from the reference. */
#appShell.ui-workspace #paneConnections .connections-hub {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#appShell.ui-workspace #paneConnections .connections-hub-header {
  margin-bottom: 24px;
  align-items: flex-end;
}

#appShell.ui-workspace #paneConnections .connections-hub-kicker {
  margin-bottom: 6px;
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
}

#appShell.ui-workspace #paneConnections .connections-hub-header h2 {
  margin: 0;
  font-family: var(--ui-font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

#appShell.ui-workspace #paneConnections .connections-hub-header p {
  max-width: 650px;
  margin-top: 9px;
  font-size: 14px;
}

#appShell.ui-workspace #paneConnections .connections-hub-summary {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#appShell.ui-workspace #paneConnections .connections-hub-summary > div {
  min-width: 0;
  padding: 16px 17px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneConnections .connections-hub-summary span {
  margin-bottom: 4px;
  color: var(--ui-ink-secondary);
  font-size: 11px;
  font-weight: 590;
}

#appShell.ui-workspace #paneConnections .connections-hub-summary strong {
  color: var(--ui-ink);
  font-family: var(--ui-font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

#appShell.ui-workspace #paneConnections .connections-hub-toolbar {
  margin: 21px 0 14px;
}

#appShell.ui-workspace #paneConnections .connections-hub-filters {
  padding: 3px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneConnections .connections-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

#appShell.ui-workspace #paneConnections .connections-provider-card {
  min-width: 0;
  min-height: 238px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneConnections .connections-provider-head,
#appShell.ui-workspace #paneConnections .connections-provider-footer {
  min-width: 0;
}

#appShell.ui-workspace #paneConnections .connections-provider-title {
  overflow: hidden;
}

#appShell.ui-workspace #paneConnections .connections-status,
#appShell.ui-workspace #paneConnections .connections-provider-action {
  flex: 0 0 auto;
}

#appShell.ui-workspace #paneConnections .connections-provider-capabilities {
  min-width: 0;
  flex: 1 1 0;
}

#appShell.ui-workspace #paneConnections .connections-provider-card:hover {
  border-color: var(--ui-line-strong);
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-2px);
}

#appShell.ui-workspace #paneConnections .connections-provider-meta {
  padding: 13px;
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

/* Newly centralized notification destinations use the same crisp Connections cards. */
#appShell.ui-workspace #paneConnections .connections-notifications {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace #paneConnections .connections-notifications-header {
  margin-bottom: 16px;
}

#appShell.ui-workspace #paneConnections .connections-notification-grid {
  gap: 12px;
}

#appShell.ui-workspace #paneConnections .connections-notification-card {
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface-solid);
  box-shadow: none;
}

#appShell.ui-workspace #paneConnections .connections-notification-card.is-focus {
  border-color: color-mix(in srgb, var(--ui-blue) 45%, var(--ui-line));
  box-shadow: 0 0 0 3px var(--ui-blue-soft);
}

#appShell.ui-workspace #paneConnections .connections-notification-channel {
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace #paneConnections .connections-notification-badge {
  border-color: color-mix(in srgb, var(--ui-blue) 22%, var(--ui-line));
  background: var(--ui-blue-soft);
  color: var(--ui-blue);
}

/* Purchase Recon POS loading is visually grouped as one source step. */
#appShell.ui-workspace #poPosWrap:not([hidden]) {
  display: grid;
  gap: 12px;
  padding: 14px;
}

#appShell.ui-workspace #poPosWrap .purchase-pos-source-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(190px, 1.2fr) repeat(2, minmax(150px, .8fr));
  gap: 11px;
}

#appShell.ui-workspace #poPosWrap .pos-api-call-notice {
  margin: 0;
  border-color: color-mix(in srgb, var(--ui-amber) 28%, var(--ui-line));
  border-radius: 12px;
  background: var(--ui-amber-soft);
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace #poPosWrap .pos-api-call-notice strong {
  color: var(--ui-amber);
}

/* Administration keeps its new navigation while matching the Apple workspace shell. */
#appShell.ui-workspace #paneAdmin .admin-workspace {
  border-color: var(--ui-line);
  border-radius: 18px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-md);
}

#appShell.ui-workspace #paneAdmin .admin-workspace-sidebar {
  border-right-color: var(--ui-line);
  background: var(--ui-sidebar);
}

#appShell.ui-workspace #paneAdmin .admin-workspace-content {
  background: var(--ui-workspace-surface);
}

#appShell.ui-workspace #paneAdmin .admin-workspace-nav-item {
  min-height: 46px;
  border-radius: 11px;
  color: var(--ui-ink-secondary);
}

#appShell.ui-workspace #paneAdmin .admin-workspace-nav-item:hover {
  border-color: var(--ui-line);
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
}

#appShell.ui-workspace #paneAdmin .admin-workspace-nav-item.is-active {
  border-color: color-mix(in srgb, var(--ui-blue) 22%, var(--ui-line));
  background: var(--ui-blue-soft);
  color: var(--ui-ink);
  box-shadow: none;
}

#appShell.ui-workspace #paneAdmin :where(.admin-workspace-panel-card, .admin-workspace-panel > .admin-card, .admin-support-page-card) {
  border-color: var(--ui-line);
  border-radius: 16px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-sm);
}

#appShell.ui-workspace input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 6px 10px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 9px;
  background: var(--ui-surface-solid);
  color: var(--ui-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#appShell.ui-workspace input[type="file"]::file-selector-button:hover {
  border-color: color-mix(in srgb, var(--ui-blue) 28%, var(--ui-line-strong));
  background: var(--ui-blue-soft);
}

#appShell.ui-workspace .admin-override-modal {
  padding: 24px;
  place-items: center;
  background: color-mix(in srgb, #182033 28%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#appShell.ui-workspace .admin-override-dialog {
  width: min(980px, calc(100vw - 40px));
  max-height: min(820px, calc(100dvh - 48px));
  padding: 20px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 20px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-lg);
  color: var(--ui-ink);
}

#appShell.ui-workspace .admin-override-dialog .admin-override-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ui-line);
}

#appShell.ui-workspace :where(
  .security-message,
  .connections-hub-message,
  .dashboard-missing-manual-message,
  .marketplace-pos-load-status,
  .modal-message
):not(:empty) {
  min-height: 36px;
  padding: 9px 11px;
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  background: var(--ui-surface-muted);
  color: var(--ui-ink-secondary);
  font-size: 11px;
  line-height: 1.45;
}

#appShell.ui-workspace :where(.security-message.is-success, .connections-hub-message.is-success, .modal-message.success),
#appShell.ui-workspace .marketplace-pos-load-status[data-state="success"] {
  border-color: color-mix(in srgb, var(--ui-green) 24%, var(--ui-line));
  background: var(--ui-green-soft);
  color: var(--ui-green);
}

#appShell.ui-workspace :where(.security-message.is-warn, .modal-message.warn) {
  border-color: color-mix(in srgb, var(--ui-amber) 24%, var(--ui-line));
  background: var(--ui-amber-soft);
  color: var(--ui-amber);
}

#appShell.ui-workspace :where(.security-message.is-error, .connections-hub-message.is-error, .modal-message.error),
#appShell.ui-workspace .marketplace-pos-load-status[data-state="empty"],
#appShell.ui-workspace .marketplace-pos-load-status[data-state="error"] {
  border-color: color-mix(in srgb, var(--ui-red) 22%, var(--ui-line));
  background: var(--ui-red-soft);
  color: var(--ui-red);
}

#appShell.ui-workspace .status-legend-item {
  padding: 12px 13px;
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace .status-legend-dot {
  box-shadow: none;
}

#appShell.ui-workspace code {
  padding: 3px 7px;
  border: 1px solid var(--ui-line);
  border-radius: 8px;
  background: var(--ui-surface-muted);
  color: var(--ui-ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

#appShell.ui-workspace progress {
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--ui-surface-muted);
  color: var(--ui-blue);
  accent-color: var(--ui-blue);
}

#appShell.ui-workspace progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--ui-surface-muted);
}

#appShell.ui-workspace progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--ui-blue);
}

#appShell.ui-workspace progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--ui-blue);
}

#appShell.ui-workspace :where(.workspace-content, .table-wrap, [class*="table-wrap"], #previewScroll, #marketplaceScroll) {
  scrollbar-width: thin;
  scrollbar-color: var(--ui-line-strong) transparent;
}

#appShell.ui-workspace :where(.workspace-content, .table-wrap, [class*="table-wrap"], #previewScroll, #marketplaceScroll)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#appShell.ui-workspace :where(.workspace-content, .table-wrap, [class*="table-wrap"], #previewScroll, #marketplaceScroll)::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--ui-line-strong);
  background-clip: padding-box;
}

@media (max-width: 1220px) {
  #appShell.ui-workspace #statsCard .stats,
  #appShell.ui-workspace #mpTotals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 900px) {
  #appShell.ui-workspace .recon-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #appShell.ui-workspace .recon-workflow {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace .recon-workflow-step + .recon-workflow-step::before {
    display: none;
  }

  #appShell.ui-workspace .recon-source-grid {
    grid-template-columns: 1fr;
  }

  #appShell.ui-workspace #paneConnections .connections-notification-grid,
  #appShell.ui-workspace #paneConnections .connections-notification-channels,
  #appShell.ui-workspace #poPosWrap .purchase-pos-source-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #appShell.ui-workspace .workspace-page-head,
  #appShell.ui-workspace .recon-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #appShell.ui-workspace #statsCard .stats,
  #appShell.ui-workspace #mpTotals,
  #appShell.ui-workspace .recon-status-grid,
  #appShell.ui-workspace #paneConnections .connections-hub-summary,
  #appShell.ui-workspace #paneConnections .connections-hub-grid {
    grid-template-columns: 1fr;
  }
}
