/*
 * Pathfinder Design System
 * Direction: Dark / Professional / Dense / Calm / Precise.
 * Shared shell components use pf-* classes so legacy business surfaces can
 * migrate incrementally without an unsafe full-page visual rewrite.
 */
:root {
  color-scheme: dark;

  --pf-color-canvas: #0c100e;
  --pf-color-canvas-deep: #090c0a;
  --pf-color-surface-1: #121714;
  --pf-color-surface-2: #171d19;
  --pf-color-surface-3: #1c241f;
  --pf-color-surface-elevated: #222b25;
  --pf-color-overlay: rgba(3, 6, 4, .68);

  --pf-color-text: #f0f4f1;
  --pf-color-text-secondary: #b8c2bb;
  --pf-color-text-muted: #849087;
  --pf-color-text-disabled: #606a63;
  --pf-color-text-inverse: #071109;

  --pf-color-border: #29322c;
  --pf-color-border-strong: #3b473f;
  --pf-color-border-focus: #8fb4ea;

  --pf-color-accent: #58c878;
  --pf-color-accent-hover: #6ed78c;
  --pf-color-accent-pressed: #43a961;
  --pf-color-accent-soft: rgba(88, 200, 120, .12);
  --pf-color-accent-border: rgba(88, 200, 120, .42);

  --pf-status-neutral: #9aa49d;
  --pf-status-info: #79a8e8;
  --pf-status-warning: #d6a957;
  --pf-status-danger: #e17880;
  --pf-status-verified: #9dabe8;

  --pf-font-sans: Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --pf-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --pf-font-size-11: 11px;
  --pf-font-size-12: 12px;
  --pf-font-size-13: 13px;
  --pf-font-size-14: 14px;
  --pf-font-size-16: 16px;
  --pf-font-size-18: 18px;
  --pf-font-size-22: 22px;
  --pf-font-size-28: 28px;
  --pf-font-size-36: 36px;
  --pf-font-size-48: 48px;

  --pf-space-1: 4px;
  --pf-space-2: 8px;
  --pf-space-3: 12px;
  --pf-space-4: 16px;
  --pf-space-5: 20px;
  --pf-space-6: 24px;
  --pf-space-8: 32px;
  --pf-space-10: 40px;
  --pf-space-12: 48px;
  --pf-space-16: 64px;

  --pf-radius-xs: 4px;
  --pf-radius-sm: 6px;
  --pf-radius-md: 8px;
  --pf-radius-lg: 10px;
  --pf-radius-xl: 12px;
  --pf-radius-round: 999px;

  --pf-border-hairline: 1px solid var(--pf-color-border);
  --pf-border-strong: 1px solid var(--pf-color-border-strong);
  --pf-shadow-menu: 0 16px 44px rgba(0, 0, 0, .34);
  --pf-shadow-dialog: 0 24px 72px rgba(0, 0, 0, .46);

  --pf-motion-fast: 140ms;
  --pf-motion-standard: 190ms;
  --pf-ease: cubic-bezier(.2, .8, .2, 1);

  --pf-z-base: 0;
  --pf-z-sticky: 20;
  --pf-z-menu: 30;
  --pf-z-drawer: 40;
  --pf-z-dialog: 50;
  --pf-z-toast: 60;

  --pf-shell-max: 1480px;
  --pf-content-max: 1180px;
}

pathfinder-global-header,
pathfinder-product-menu,
pathfinder-product-launcher,
pathfinder-module-navigation,
pathfinder-mobile-navigation,
pathfinder-page-header,
pathfinder-detail-drawer,
pathfinder-empty-state,
pathfinder-loading-state,
pathfinder-error-state,
pathfinder-global-footer {
  display: block;
  box-sizing: border-box;
  font-family: var(--pf-font-sans);
}

pathfinder-status-badge {
  display: inline-flex;
  box-sizing: border-box;
  font-family: var(--pf-font-sans);
}

pathfinder-global-header {
  position: sticky;
  z-index: var(--pf-z-sticky);
  top: 0;
}

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

.pf-page {
  min-width: 320px;
  margin: 0;
  background: var(--pf-color-canvas);
  color: var(--pf-color-text);
  font: var(--pf-font-size-16)/1.6 var(--pf-font-sans);
  -webkit-font-smoothing: antialiased;
}

.pf-page *,
.pf-page *::before,
.pf-page *::after,
.pf-shell *,
.pf-shell *::before,
.pf-shell *::after {
  box-sizing: border-box;
}

.pf-page a,
.pf-shell a {
  color: inherit;
  text-decoration: none;
}

.pf-page button,
.pf-page input,
.pf-page select,
.pf-page textarea,
.pf-shell button {
  font: inherit;
}

.pf-skip-link {
  position: fixed;
  z-index: var(--pf-z-toast);
  top: -80px;
  left: var(--pf-space-4);
  padding: 10px 14px;
  border-radius: var(--pf-radius-sm);
  background: var(--pf-color-text);
  color: var(--pf-color-text-inverse);
  font-weight: 700;
  transition: top var(--pf-motion-fast) var(--pf-ease);
}

.pf-skip-link:focus {
  top: var(--pf-space-4);
}

.pf-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--pf-space-2);
  padding: 9px 14px;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-14);
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color var(--pf-motion-fast) var(--pf-ease),
    border-color var(--pf-motion-fast) var(--pf-ease),
    color var(--pf-motion-fast) var(--pf-ease),
    transform 90ms var(--pf-ease);
}

.pf-button:hover {
  border-color: var(--pf-color-border-strong);
  background: var(--pf-color-surface-3);
}

.pf-button:active {
  transform: scale(.985);
}

.pf-button--primary {
  border-color: var(--pf-color-accent);
  background: var(--pf-color-accent);
  color: var(--pf-color-text-inverse);
}

.pf-button--primary:hover {
  border-color: var(--pf-color-accent-hover);
  background: var(--pf-color-accent-hover);
}

.pf-button--primary:active {
  border-color: var(--pf-color-accent-pressed);
  background: var(--pf-color-accent-pressed);
}

.pf-button:disabled,
.pf-button[aria-disabled="true"] {
  opacity: .44;
  cursor: not-allowed;
  transform: none;
}

.pf-button:focus-visible,
.pf-shell a:focus-visible,
.pf-shell button:focus-visible,
.pf-page a:focus-visible,
.pf-page button:focus-visible,
.pf-page input:focus-visible,
.pf-page select:focus-visible,
.pf-page textarea:focus-visible {
  outline: 2px solid var(--pf-color-border-focus);
  outline-offset: 3px;
}

/* GlobalHeader */
.pf-global-header {
  position: relative;
  border-bottom: var(--pf-border-hairline);
  background: rgba(12, 16, 14, .96);
}

.pf-global-header__inner {
  width: min(var(--pf-shell-max), calc(100% - 32px));
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pf-space-4);
  margin-inline: auto;
}

.pf-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--pf-color-text);
  white-space: nowrap;
}

.pf-brand__logo {
  display: block;
  width: 126px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
  mix-blend-mode: screen;
}

.pf-global-header__nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pf-space-2);
}

.pf-global-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--pf-space-1);
}

.pf-header-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--pf-radius-sm);
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-13);
  font-weight: 550;
}

.pf-header-link:hover {
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text);
}

.pf-header-link[aria-current="page"] {
  color: var(--pf-color-text);
  box-shadow: inset 0 -2px 0 var(--pf-color-accent);
}

.pf-header-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--pf-radius-sm);
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-13);
  font-weight: 600;
}

.pf-header-action:hover {
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text);
}

.pf-header-primary {
  min-height: 38px;
  padding-block: 7px;
}

/* ProductMenu */
.pf-product-menu {
  position: relative;
}

.pf-product-menu > summary {
  min-height: 40px;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: var(--pf-space-2);
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--pf-radius-sm);
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-13);
  cursor: pointer;
  list-style: none;
}

.pf-product-menu > summary::-webkit-details-marker {
  display: none;
}

.pf-product-menu > summary:hover,
.pf-product-menu[open] > summary {
  border-color: var(--pf-color-border);
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text);
}

.pf-product-menu > summary[aria-current="page"] {
  color: var(--pf-color-text);
  box-shadow: inset 0 -2px 0 var(--pf-color-accent);
}

.pf-product-menu__current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-product-menu__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform var(--pf-motion-fast) var(--pf-ease);
}

.pf-product-menu[open] .pf-product-menu__chevron {
  transform: rotate(180deg);
}

.pf-product-menu__panel {
  position: absolute;
  z-index: var(--pf-z-menu);
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, calc(100vw - 32px));
  padding: var(--pf-space-2);
  border: var(--pf-border-strong);
  border-radius: var(--pf-radius-lg);
  background: var(--pf-color-surface-2);
  box-shadow: var(--pf-shadow-menu);
}

.pf-product-menu__label {
  margin: 0;
  padding: 8px 10px 6px;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pf-product-menu__all {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--pf-space-1);
  padding: 8px 10px;
  border-top: var(--pf-border-hairline);
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-12);
  font-weight: 650;
}

.pf-product-menu__all:hover {
  color: var(--pf-color-text);
}

.pf-product-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--pf-radius-md);
  color: var(--pf-color-text-secondary);
}

.pf-product-link:hover,
.pf-product-link[aria-current="page"] {
  background: var(--pf-color-surface-3);
  color: var(--pf-color-text);
}

.pf-product-link[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--pf-color-accent);
}

.pf-product-link__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-color-surface-1);
  color: var(--pf-color-text-secondary);
}

.pf-product-link[aria-current="page"] .pf-product-link__icon {
  border-color: var(--pf-color-accent-border);
  background: var(--pf-color-accent-soft);
  color: var(--pf-color-accent);
}

.pf-product-link__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-product-link__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pf-product-link__copy strong {
  overflow: hidden;
  color: inherit;
  font-size: var(--pf-font-size-13);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-product-link__copy small {
  overflow: hidden;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-product-link__arrow {
  color: var(--pf-color-text-muted);
}

/* MobileNavigation */
pathfinder-mobile-navigation {
  display: none;
}

.pf-mobile-navigation {
  position: relative;
}

body.pf-navigation-open {
  overflow: hidden;
}

.pf-mobile-navigation > summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-color-surface-1);
  color: var(--pf-color-text);
  cursor: pointer;
  list-style: none;
}

.pf-mobile-navigation > summary::-webkit-details-marker {
  display: none;
}

.pf-mobile-navigation > summary svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.pf-mobile-navigation__panel {
  position: fixed;
  z-index: calc(var(--pf-z-drawer) + 1);
  top: 0;
  right: 0;
  width: min(420px, calc(100vw - 24px));
  height: 100dvh;
  overflow: auto;
  padding: 0 var(--pf-space-4) calc(var(--pf-space-8) + env(safe-area-inset-bottom));
  border-left: var(--pf-border-strong);
  background: var(--pf-color-surface-1);
  box-shadow: var(--pf-shadow-menu);
  transform: translateX(100%);
  transition: transform var(--pf-motion-standard) var(--pf-ease);
}

.pf-mobile-navigation[open] .pf-mobile-navigation__panel {
  transform: translateX(0);
}

.pf-mobile-navigation__backdrop {
  position: fixed;
  z-index: var(--pf-z-drawer);
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--pf-color-overlay);
  cursor: pointer;
}

.pf-mobile-navigation[open] .pf-mobile-navigation__backdrop {
  display: block;
}

.pf-mobile-navigation__header {
  position: sticky;
  z-index: 1;
  top: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pf-space-4);
  margin: 0 calc(var(--pf-space-4) * -1) var(--pf-space-3);
  padding: env(safe-area-inset-top) var(--pf-space-4) 0;
  border-bottom: var(--pf-border-hairline);
  background: var(--pf-color-surface-1);
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-14);
}

.pf-mobile-navigation__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-sm);
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text);
  cursor: pointer;
}

.pf-mobile-navigation__close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.pf-mobile-navigation__section + .pf-mobile-navigation__section {
  margin-top: var(--pf-space-4);
  padding-top: var(--pf-space-4);
  border-top: var(--pf-border-hairline);
}

.pf-mobile-navigation__section h2 {
  margin: 0 0 var(--pf-space-2);
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pf-mobile-navigation__items {
  display: grid;
  gap: var(--pf-space-1);
}

.pf-mobile-navigation__item {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--pf-radius-sm);
  background: transparent;
  color: var(--pf-color-text-secondary);
  text-align: left;
  line-height: 1.45;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.pf-mobile-navigation__item:hover,
.pf-mobile-navigation__item[aria-current="page"] {
  background: var(--pf-color-surface-3);
  color: var(--pf-color-text);
}

.pf-mobile-navigation__item[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--pf-color-accent);
}

.pf-mobile-navigation__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pf-space-2);
  margin-top: var(--pf-space-5);
  padding-top: var(--pf-space-5);
  border-top: var(--pf-border-hairline);
}

/* ModuleNavigation */
.view-nav.pf-module-navigation {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-md);
  background: var(--pf-color-surface-1);
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: var(--pf-color-border-strong) transparent;
}

.pf-module-navigation__group {
  min-width: max-content;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
}

.pf-module-navigation__group + .pf-module-navigation__group {
  border-left: var(--pf-border-hairline);
}

.pf-module-navigation__label {
  padding: 0 6px;
  color: var(--pf-color-text-disabled);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.view-nav.pf-module-navigation .view-button,
.pf-module-navigation__link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  order: initial;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--pf-radius-sm);
  background: transparent;
  box-shadow: none;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-12);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.view-nav.pf-module-navigation .view-button:hover,
.pf-module-navigation__link:hover {
  border-color: var(--pf-color-border);
  background: var(--pf-color-surface-2);
  box-shadow: none;
  color: var(--pf-color-text);
  transform: none;
}

.view-nav.pf-module-navigation .view-button.active,
.pf-module-navigation__link[aria-current="page"] {
  border-color: var(--pf-color-accent-border);
  background: var(--pf-color-accent-soft);
  box-shadow: inset 0 -2px 0 var(--pf-color-accent);
  color: var(--pf-color-text);
}

.view-nav.pf-module-navigation .view-button[data-view="students"] {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: var(--pf-radius-sm);
  font-size: var(--pf-font-size-12);
  font-weight: 700;
  box-shadow: none;
}

.view-nav.pf-module-navigation .view-button[data-view="students"]::after {
  display: none;
  content: none;
}

/* PageHeader */
.pf-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--pf-space-6);
  padding: var(--pf-space-10) 0 var(--pf-space-8);
  border-bottom: var(--pf-border-hairline);
}

.pf-page-header__eyebrow {
  margin: 0 0 var(--pf-space-2);
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-12);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pf-page-header h1 {
  margin: 0;
  color: var(--pf-color-text);
  font-size: clamp(30px, 4vw, var(--pf-font-size-48));
  font-weight: 610;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.pf-page-header__description {
  max-width: 720px;
  margin: var(--pf-space-4) 0 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-16);
}

/* ProductLauncher */
.pf-product-launcher {
  display: grid;
  gap: var(--pf-space-3);
}

.pf-product-launcher__loading {
  min-height: 168px;
  display: grid;
  place-items: center;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-lg);
  background: var(--pf-color-surface-1);
}

.pf-product-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(210px, .55fr) auto;
  align-items: center;
  gap: var(--pf-space-5);
  padding: var(--pf-space-5);
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-lg);
  background: var(--pf-color-surface-1);
  transition:
    border-color var(--pf-motion-fast) var(--pf-ease),
    background-color var(--pf-motion-fast) var(--pf-ease);
}

.pf-product-row:hover {
  border-color: var(--pf-color-border-strong);
  background: var(--pf-color-surface-2);
}

.pf-product-row__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-md);
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text-secondary);
}

.pf-product-row__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-product-row__copy {
  min-width: 0;
}

.pf-product-row__meta {
  display: flex;
  align-items: center;
  gap: var(--pf-space-2);
  margin-bottom: var(--pf-space-1);
}

.pf-product-row__eyebrow {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pf-visibility-label {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  font-weight: 600;
}

.pf-product-row h2,
.pf-product-row h3 {
  margin: 0;
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-18);
  line-height: 1.3;
}

.pf-product-row__copy p {
  max-width: 720px;
  margin: var(--pf-space-2) 0 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-13);
  line-height: 1.55;
}

.pf-product-row__facts {
  display: grid;
  grid-template-columns: minmax(120px, .5fr) minmax(240px, 1.5fr);
  gap: var(--pf-space-4);
  margin: var(--pf-space-4) 0 0;
}

.pf-product-row__facts > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pf-product-row__facts dt {
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  font-weight: 650;
}

.pf-product-row__facts dd {
  margin: 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-12);
  line-height: 1.5;
}

.pf-product-row__description {
  color: var(--pf-color-text-muted) !important;
}

.pf-product-row__features {
  display: grid;
  gap: var(--pf-space-2);
  margin: 0;
  padding: 0;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-12);
  list-style: none;
}

.pf-product-row__features li {
  position: relative;
  padding-left: 14px;
}

.pf-product-row__features li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pf-color-text-disabled);
  content: "";
}

.pf-product-row__actions {
  display: flex;
  align-items: center;
  gap: var(--pf-space-2);
}

.pf-product-center-link {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--pf-space-4);
}

/* StatusBadge: status uses neutral/blue/amber/red; brand green is not reused. */
.pf-status-badge {
  min-height: 22px;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: var(--pf-radius-round);
  color: var(--pf-status-neutral);
  font-size: var(--pf-font-size-11);
  font-weight: 650;
  line-height: 1.25;
}

.pf-status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pf-status-badge[data-tone="info"],
.pf-status-badge[data-tone="active"] {
  color: var(--pf-status-info);
}

.pf-status-badge[data-tone="warning"] {
  color: var(--pf-status-warning);
}

.pf-status-badge[data-tone="danger"] {
  color: var(--pf-status-danger);
}

.pf-status-badge[data-tone="verified"] {
  color: var(--pf-status-verified);
}

/* Table/List specification */
.pf-table-region {
  max-width: 100%;
  overflow-x: auto;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-md);
  background: var(--pf-color-surface-1);
}

.pf-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--pf-color-text-secondary);
  font-size: var(--pf-font-size-13);
}

.pf-table th,
.pf-table td {
  height: 44px;
  padding: 8px 12px;
  border-bottom: var(--pf-border-hairline);
  text-align: left;
  vertical-align: middle;
}

.pf-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-11);
  font-weight: 700;
  letter-spacing: .02em;
}

.pf-table tbody tr:hover {
  background: var(--pf-color-surface-2);
}

.pf-table tbody tr[aria-selected="true"] {
  background: var(--pf-color-accent-soft);
  box-shadow: inset 3px 0 0 var(--pf-color-accent);
}

.pf-list {
  margin: 0;
  padding: 0;
  border-top: var(--pf-border-hairline);
  list-style: none;
}

.pf-list__row {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--pf-space-4);
  padding: 9px 12px;
  border-bottom: var(--pf-border-hairline);
}

.pf-list__row:hover {
  background: var(--pf-color-surface-2);
}

/* Drawer/Dialog specification */
.pf-detail-drawer__scrim {
  position: fixed;
  z-index: var(--pf-z-drawer);
  inset: 0;
  border: 0;
  background: var(--pf-color-overlay);
}

.pf-detail-drawer {
  position: fixed;
  z-index: calc(var(--pf-z-drawer) + 1);
  top: 0;
  right: 0;
  width: min(680px, calc(100vw - 32px));
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: var(--pf-border-strong);
  background: var(--pf-color-surface-1);
  box-shadow: var(--pf-shadow-dialog);
}

.pf-detail-drawer__header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pf-space-4);
  padding: var(--pf-space-3) var(--pf-space-5);
  border-bottom: var(--pf-border-hairline);
}

.pf-detail-drawer__header h2 {
  margin: 0;
  font-size: var(--pf-font-size-18);
}

.pf-detail-drawer__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--pf-radius-sm);
  background: transparent;
  color: var(--pf-color-text-secondary);
  cursor: pointer;
}

.pf-detail-drawer__close:hover {
  background: var(--pf-color-surface-3);
  color: var(--pf-color-text);
}

.pf-detail-drawer__body {
  min-height: 0;
  overflow: auto;
  padding: var(--pf-space-5);
}

.pf-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(86dvh, 900px);
  padding: 0;
  overflow: hidden;
  border: var(--pf-border-strong);
  border-radius: var(--pf-radius-lg);
  background: var(--pf-color-surface-1);
  color: var(--pf-color-text);
  box-shadow: var(--pf-shadow-dialog);
}

.pf-dialog::backdrop {
  background: var(--pf-color-overlay);
}

/* Empty / Loading / Error */
.pf-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: var(--pf-space-8);
  text-align: center;
}

.pf-state__inner {
  max-width: 460px;
  display: grid;
  justify-items: center;
  gap: var(--pf-space-3);
}

.pf-state__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: var(--pf-border-hairline);
  border-radius: var(--pf-radius-md);
  background: var(--pf-color-surface-2);
  color: var(--pf-color-text-secondary);
}

.pf-state h2,
.pf-state h3 {
  margin: 0;
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-16);
}

.pf-state p {
  margin: 0;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-13);
}

.pf-state--error .pf-state__icon {
  border-color: rgba(225, 120, 128, .38);
  color: var(--pf-status-danger);
}

.pf-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--pf-color-border-strong);
  border-top-color: var(--pf-color-accent);
  border-radius: 50%;
  animation: pf-spin .72s linear infinite;
}

@keyframes pf-spin {
  to { transform: rotate(360deg); }
}

.pf-progress {
  height: 4px;
  overflow: hidden;
  border-radius: var(--pf-radius-round);
  background: var(--pf-color-surface-3);
}

.pf-progress > span {
  display: block;
  width: var(--pf-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--pf-color-accent);
}

/* Product center layout */
.pf-products-main {
  width: min(var(--pf-content-max), calc(100% - 32px));
  min-height: calc(100dvh - 250px);
  margin-inline: auto;
  padding-bottom: var(--pf-space-16);
}

.pf-products-intro {
  max-width: 760px;
  margin: var(--pf-space-8) 0 var(--pf-space-6);
  color: var(--pf-color-text-secondary);
}

.pf-products-boundary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--pf-space-6);
  margin-top: var(--pf-space-10);
  padding-top: var(--pf-space-6);
  border-top: var(--pf-border-hairline);
}

.pf-products-boundary h2,
.pf-products-boundary > strong {
  margin: 0;
  color: var(--pf-color-text);
  font-size: var(--pf-font-size-14);
}

.pf-products-boundary p {
  margin: 0;
  color: var(--pf-color-text-muted);
  font-size: var(--pf-font-size-13);
}

/* Footer */
.pf-global-footer {
  border-top: var(--pf-border-hairline);
  background: var(--pf-color-canvas-deep);
  color: var(--pf-color-text-muted);
}

.pf-global-footer__inner {
  width: min(var(--pf-shell-max), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: var(--pf-space-8);
  margin-inline: auto;
  padding: var(--pf-space-8) 0;
}

.pf-global-footer__brand p {
  max-width: 520px;
  margin: var(--pf-space-3) 0 0;
  font-size: var(--pf-font-size-12);
}

.pf-global-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto));
  gap: var(--pf-space-2) var(--pf-space-6);
  align-content: start;
  font-size: var(--pf-font-size-12);
}

.pf-global-footer__nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.pf-global-footer__nav a:hover {
  color: var(--pf-color-text);
}

.pf-global-footer__legal {
  width: min(var(--pf-shell-max), calc(100% - 32px));
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pf-space-4);
  margin-inline: auto;
  border-top: var(--pf-border-hairline);
  font-size: var(--pf-font-size-11);
}

.pf-global-footer__records {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--pf-space-3);
}

.pf-global-footer__records a {
  color: inherit;
  text-decoration: none;
}

.pf-global-footer__records a:hover {
  color: var(--pf-color-ink);
  text-decoration: underline;
}

.pf-global-footer--compact .pf-global-footer__inner {
  display: none;
}

/* The shared shell is intentionally dark while legacy business content stays
   unchanged until each complex page is migrated and visually regression-tested. */
.pf-shell-boundary {
  background: var(--pf-color-canvas);
  color: var(--pf-color-text);
}

@media (max-width: 980px) {
  .pf-product-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .pf-product-row__features {
    grid-column: 2 / -1;
  }

  .pf-module-navigation__label {
    display: none;
  }
}

@media (max-width: 760px) {
  .pf-global-header__inner {
    width: min(100% - 24px, var(--pf-shell-max));
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pf-global-header__nav,
  .pf-global-header__actions {
    display: none;
  }

  pathfinder-mobile-navigation {
    display: block;
  }

  .pf-brand__logo { width: 112px; height: 36px; }

  .pf-page-header {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: var(--pf-space-8);
  }

  .pf-product-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--pf-space-3);
    padding: var(--pf-space-4);
  }

  .pf-product-row__icon {
    width: 40px;
    height: 40px;
  }

  .pf-product-row__features,
  .pf-product-row__actions {
    grid-column: 1 / -1;
  }

  .pf-product-row__facts {
    grid-template-columns: 1fr;
    gap: var(--pf-space-2);
  }

  .pf-product-row__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pf-products-boundary {
    grid-template-columns: 1fr;
    gap: var(--pf-space-2);
  }

  .pf-global-footer__inner {
    grid-template-columns: 1fr;
  }

  .pf-global-footer__nav {
    grid-template-columns: 1fr;
  }

  .pf-global-footer__legal {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .pf-global-footer__records {
    justify-content: flex-start;
  }

  .pf-detail-drawer {
    width: 100vw;
    border-left: 0;
  }
}

@media (max-width: 480px) {
  .pf-product-row__actions {
    grid-template-columns: 1fr;
  }

  .pf-product-row__actions .pf-button {
    width: 100%;
  }
}

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

@media (forced-colors: active) {
  .pf-brand__logo,
  .pf-progress > span {
    forced-color-adjust: auto;
  }

  .pf-product-link[aria-current="page"],
  .pf-mobile-navigation__item[aria-current="page"],
  .view-nav.pf-module-navigation .view-button.active {
    outline: 2px solid CanvasText;
  }
}
