/*
 * DZ INV operational experience layer.
 * Native CSS only: the existing shell and route modules already provide the
 * right behavior, permissions, and state model.
 */

:root {
  --shell-950: #000;
  --shell-900: #020304;
  --shell-800: #07090b;
  --surface: #050708;
  --surface-raised: #090c0f;
  --workspace: #000;
  --line: #20252a;
  --focus: #ff6259;
  --sidebar-width: 224px;
  --topbar-height: 64px;
  --content-max: 1760px;
  --bottom-bar-height: 40px;
  --page-gutter: clamp(16px, 1.8vw, 28px);
  --section-gap: clamp(12px, 1.2vw, 16px);
  --line-strong: #343a40;
  --surface-hover: #0d1114;
  --text-soft: #c8cdd2;
}

body.product-foundation {
  background: var(--workspace);
  font-variant-numeric: tabular-nums;
}

body.product-foundation .product-shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

body.product-foundation .product-sidebar {
  gap: 10px;
  padding: 12px 10px;
  border-inline-start-color: var(--line);
  background: #020304;
}

body.product-foundation .sidebar-brand {
  min-height: 56px;
  padding: 0 4px 10px;
  border-block-end: 1px solid var(--line);
}

body.product-foundation .sidebar-brand strong {
  color: var(--text);
  font-size: .98rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

body.product-foundation .sidebar-brand small {
  color: var(--muted);
  font-size: .7rem;
}

body.product-foundation .brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--brand);
  background: var(--brand);
  clip-path: polygon(25% 2%, 75% 2%, 98% 25%, 98% 75%, 75% 98%, 25% 98%, 2% 75%, 2% 25%);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  isolation: isolate;
}

body.product-foundation .brand-mark::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  background: #020304;
  clip-path: inherit;
  content: "";
}

body.product-foundation .nav-group-label {
  padding: 2px 9px 4px;
  color: #737b82;
  font-size: .66rem;
  letter-spacing: .08em;
}

body.product-foundation .product-sidebar .workspace-nav {
  gap: 2px;
  padding-inline: 0;
  scrollbar-color: #30363b transparent;
}

body.product-foundation .nav-tree-group > summary,
body.product-foundation .product-sidebar .nav-button {
  position: relative;
  min-height: 44px;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #aeb5bb;
  background: transparent;
  font-size: .86rem;
  font-weight: 720;
}

body.product-foundation .nav-tree-group > summary:hover,
body.product-foundation .nav-tree-group[open] > summary,
body.product-foundation .product-sidebar .nav-button:hover {
  border-color: #252a2f;
  color: var(--text);
  background: #080a0c;
}

body.product-foundation .product-sidebar .nav-button.active {
  border-color: transparent;
  color: #fff;
  background: #0b0b0c;
  box-shadow: none;
}

body.product-foundation .product-sidebar .nav-button.active::after {
  position: absolute;
  inset-block: 8px;
  inset-inline-end: -1px;
  width: 2px;
  background: var(--brand);
  content: "";
}

body.product-foundation .product-sidebar .nav-button.active .nav-icon {
  color: var(--brand);
}

body.product-foundation .nav-icon svg {
  width: 18px;
  height: 18px;
}

body.product-foundation .command-bar svg,
body.product-foundation .product-sidebar svg,
body.product-foundation .mobile-bottom-nav svg,
body.product-foundation dialog svg {
  stroke-width: 1.7;
}

body.product-foundation .nav-chevron {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
}

body.product-foundation .nav-chevron svg {
  width: 14px;
  height: 14px;
}

body.product-foundation .product-sidebar .welcome {
  gap: 8px;
  margin-block-end: 0;
  padding: 12px 6px 0;
  border: 0;
  border-block-start: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.product-foundation .product-sidebar .welcome h2 {
  margin: 0;
  font-size: .84rem;
}

body.product-foundation .product-sidebar .welcome button,
body.product-foundation .sidebar-collapse,
body.product-foundation .drawer-close {
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
}

body.product-foundation .sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

body.product-foundation .sidebar-collapsed .product-sidebar {
  padding-inline: 9px;
}

body.product-foundation .command-bar {
  min-height: var(--topbar-height);
  gap: 12px;
  padding: 8px var(--page-gutter);
  border-block-end-color: var(--line);
  background: #000;
  box-shadow: none;
  backdrop-filter: none;
}

body.product-foundation .command-context {
  display: grid;
  gap: 3px;
}

body.product-foundation .command-context .page-heading {
  color: #fff;
  font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  font-weight: 820;
  letter-spacing: -.018em;
}

body.product-foundation .breadcrumb {
  color: #737c84;
  font-size: .69rem;
}

body.product-foundation .command-actions {
  gap: 6px;
}

body.product-foundation .command-client-brand {
  gap: 8px;
  padding-inline: 12px;
  border-inline-start-color: var(--line);
}

body.product-foundation .command-client-logo,
body.product-foundation .command-client-fallback {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-color: #4b2525;
  border-radius: 4px;
  background: #050505;
}

body.product-foundation .command-client-copy small {
  color: #737c84;
}

body.product-foundation .command-client-copy strong {
  font-size: .76rem;
}

body.product-foundation .related-routes {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  gap: 24px;
  padding: 0 var(--page-gutter);
  overflow-x: auto;
  border-block-end: 1px solid var(--line);
  background: #000;
  scrollbar-width: thin;
}

body.product-foundation .related-routes[hidden] {
  display: none;
}

body.product-foundation .related-routes a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 2px;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  color: #959da4;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}

body.product-foundation .related-routes a:hover {
  border-block-end-color: #555d64;
  color: #fff;
}

body.product-foundation .related-routes a[aria-current="page"] {
  border-block-end-color: var(--brand);
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body.product-foundation .command-actions > *,
body.product-foundation .command-actions button {
  flex: 0 0 auto;
}

body.product-foundation .command-search,
body.product-foundation .command-actions .secondary,
body.product-foundation .user-menu summary {
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
}

body.product-foundation .command-search {
  min-width: 160px;
  border-block-end-color: #32383e;
  border-radius: 0;
}

body.product-foundation .command-search:hover,
body.product-foundation .command-actions .secondary:hover,
body.product-foundation .user-menu summary:hover {
  border-color: #3b4248;
  background: #080a0c;
}

body.product-foundation .environment-chip {
  min-height: 26px;
  padding: 3px 7px;
  border-color: #652926;
  border-radius: 2px;
  color: #ff7770;
  background: transparent;
}

body.product-foundation .quick-action {
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  box-shadow: none;
}

body.product-foundation .quick-action:hover {
  background: #e5342b;
}

body.product-foundation .product-content {
  width: min(100%, var(--content-max));
  padding: var(--page-gutter);
  scrollbar-color: #30363b transparent;
}

body.product-foundation .product-content > section,
body.product-foundation .product-content > div {
  min-width: 0;
}

body.product-foundation h1,
body.product-foundation h2,
body.product-foundation h3 {
  color: #f7fafc;
  letter-spacing: -.018em;
}

body.product-foundation h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
}

body.product-foundation h3 {
  font-size: 1rem;
}

body.product-foundation .muted {
  color: #93a0ac;
}

body.product-foundation .eyebrow {
  color: #ff716b;
  font-size: .7rem;
  letter-spacing: .06em;
}

body.product-foundation .card {
  margin-block-end: var(--section-gap);
  padding: clamp(15px, 1.35vw, 20px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  background-image: none;
  box-shadow: none;
}

body.product-foundation .section-heading,
body.product-foundation .section-title,
body.product-foundation .schedule-heading,
body.product-foundation .field-section-heading {
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin-block-end: 14px;
}

body.product-foundation .section-heading > div,
body.product-foundation .section-title > div,
body.product-foundation .schedule-heading > div {
  min-width: 0;
}

body.product-foundation .section-heading > button,
body.product-foundation .section-title > button,
body.product-foundation .schedule-heading button {
  width: auto;
  flex: 0 0 auto;
}

body.product-foundation button,
body.product-foundation .button {
  border-radius: 4px;
}

body.product-foundation button:active,
body.product-foundation .button:active {
  transform: translateY(1px);
}

body.product-foundation .secondary,
body.product-foundation .ghost,
body.product-foundation .tab {
  border-color: #30363b;
  color: #d4dce3;
  background: #090c0f;
}

body.product-foundation .secondary:hover,
body.product-foundation .ghost:hover,
body.product-foundation .tab:hover {
  border-color: #4a5158;
  color: #fff;
  background: #101418;
}

body.product-foundation input,
body.product-foundation select,
body.product-foundation textarea {
  min-height: 46px;
  border-color: #30363b;
  border-radius: 4px;
  color: var(--text);
  background: #030405;
}

body.product-foundation input:hover,
body.product-foundation select:hover,
body.product-foundation textarea:hover {
  border-color: #4a5158;
}

body.product-foundation input::placeholder,
body.product-foundation textarea::placeholder {
  color: #6f7d89;
}

body.product-foundation label {
  color: #c6d0d8;
  font-size: .84rem;
}

body.product-foundation .filters,
body.product-foundation .filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 11px;
  align-items: end;
}

body.product-foundation .filters .search {
  grid-column: span 2;
}

body.product-foundation .filters > button,
body.product-foundation .filter-bar > button {
  width: auto;
  min-width: 112px;
  align-self: end;
}

body.product-foundation .filter-actions {
  display: flex;
  align-self: end;
  gap: 8px;
}

body.product-foundation .filter-actions > button {
  width: auto;
  min-width: 0;
  flex: 1;
}

body.product-foundation .filter-timezone {
  grid-column: 1 / -1;
  padding-block-start: 2px;
}

body.product-foundation .filter-disclosure {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #030405;
}

body.product-foundation .filter-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

body.product-foundation .filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.product-foundation .filter-disclosure[open] > summary {
  margin-block-end: 14px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--line);
}

body.product-foundation .summary:not(.occ-summary),
body.product-foundation .schedule-stats,
body.product-foundation .reviews-kpis,
body.product-foundation .quotation-metrics,
body.product-foundation .project-metrics,
body.product-foundation .package-counts {
  gap: 0;
  overflow: hidden;
  border: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.product-foundation .summary:not(.occ-summary) article,
body.product-foundation .schedule-stats article,
body.product-foundation .reviews-kpis article,
body.product-foundation .quotation-metrics article,
body.product-foundation .project-metrics article,
body.product-foundation .package-counts article {
  min-width: 0;
  margin: 0;
  padding: 14px 17px;
  border: 0;
  border-inline-end: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}

body.product-foundation .summary:not(.occ-summary) article:first-child,
body.product-foundation .schedule-stats article:first-child,
body.product-foundation .reviews-kpis article:first-child,
body.product-foundation .quotation-metrics article:first-child,
body.product-foundation .project-metrics article:first-child,
body.product-foundation .package-counts article:first-child {
  border-inline-end: 0;
}

body.product-foundation .summary:not(.occ-summary) .warning,
body.product-foundation .schedule-stats .warning,
body.product-foundation .reviews-kpis .warning {
  color: var(--warning);
  background: #100d06;
}

body.product-foundation .summary strong,
body.product-foundation .schedule-stats strong,
body.product-foundation .reviews-kpis strong {
  color: #fff;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.1;
}

body.product-foundation .tabs,
body.product-foundation .segmented {
  gap: 20px;
  padding: 0;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.product-foundation .tabs > button,
body.product-foundation .segmented > button {
  min-height: 44px;
  border: 0;
  border-block-end: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

body.product-foundation .tabs > button.active,
body.product-foundation .tabs > button[aria-selected="true"],
body.product-foundation .segmented > button.active,
body.product-foundation .segmented > button[aria-pressed="true"] {
  border-block-end-color: var(--brand);
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body.product-foundation .detail-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #030405;
}

body.product-foundation .detail-grid > div {
  padding: 12px 14px;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.product-foundation .detail-grid dt {
  color: #82919d;
}

body.product-foundation .detail-grid dd {
  color: #eef3f7;
}

body.product-foundation .call,
body.product-foundation .history-event,
body.product-foundation .user-row,
body.product-foundation .assignment-card {
  border-color: #252b30;
  border-radius: 4px;
  background: #07090b;
  background-image: none;
  box-shadow: none;
}

body.product-foundation .call:hover,
body.product-foundation .history-event:hover,
body.product-foundation .user-row:hover,
body.product-foundation .assignment-card:hover {
  border-color: #40474e;
  background: var(--surface-hover);
}

body.product-foundation .board > section {
  border-color: var(--line);
  border-radius: 4px;
  background: #030405;
}

body.product-foundation .ui-state,
body.product-foundation .state,
body.product-foundation .empty-state {
  border-color: #2b3136;
  border-radius: 4px;
  color: #a9b5bf;
  background: #050708;
}

body.product-foundation .ui-state-icon {
  color: #8b9aa6;
  background: #090c0f;
}

body.product-foundation dialog {
  border-color: #363d43;
  border-radius: 6px;
  color: var(--text);
  background: #050708;
}

body.product-foundation dialog::backdrop {
  background: #030507d9;
  backdrop-filter: blur(4px);
}

body.product-foundation .product-foundation,
body.product-foundation .finance-workspace .finance-overview,
body.product-foundation .finance-create,
body.product-foundation .finance-detail {
  background-image: none;
}

body.product-foundation .finance-workspace .package-counts article::after,
body.product-foundation .occ-summary article::after {
  display: none;
}

body.product-foundation .finance-panel,
body.product-foundation .operations-command-center .occ-toolbar,
body.product-foundation .occ-board-card,
body.product-foundation .occ-workload {
  border-color: var(--line);
  background: var(--surface);
  background-image: none;
}

body.product-foundation .operations-command-center .occ-toolbar {
  border-block-start: 3px solid var(--brand);
}

body.product-foundation .occ-summary {
  gap: 8px;
}

body.product-foundation .product-content .occ-summary article {
  min-height: 82px;
  padding: 13px 15px;
  border-color: #252b30;
  background: #07090b;
  background-image: none;
}

body.product-foundation .reviews-workspace,
body.product-foundation .master-data-layout,
body.product-foundation .call-editor-layout {
  gap: var(--section-gap);
}

body.product-foundation .review-completion-facts,
body.product-foundation .review-pricing-snapshot {
  margin-block-start: 12px;
}

body.product-foundation .review-pricing-snapshot {
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

body.product-foundation .review-pricing-documents {
  padding-block: 14px;
  border-block-end: 1px solid var(--line);
}

body.product-foundation .review-pricing-snapshot h3 {
  margin-block-start: 0;
}

body.product-foundation .review-detail-grid {
  gap: 0;
  margin-block: 14px;
  border-block: 1px solid var(--line);
}

body.product-foundation .review-detail-grid section {
  padding: 14px;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.product-foundation .review-detail-grid section:nth-last-child(-n + 2) {
  border-block-end: 0;
}

body.product-foundation .review-secondary {
  padding: 0;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body.product-foundation .review-secondary > summary {
  padding: 10px 2px;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 800;
}

body.product-foundation .review-secondary > ul,
body.product-foundation .review-secondary > p {
  margin-block: 0 12px;
}

body.product-foundation #field-panel .field-workflow-nav {
  position: sticky;
  inset-block-start: 0;
  z-index: 4;
  padding-block: 8px;
  background: var(--workspace);
}

body.product-foundation #field-panel button,
body.product-foundation #field-panel .button {
  min-height: 48px;
}

body.product-foundation .site-footer {
  border-block-start-color: var(--line);
  min-height: var(--bottom-bar-height);
  height: var(--bottom-bar-height);
  padding-block: 3px;
  background: #000;
}

body.product-foundation .footer-inner {
  gap: 14px;
}

body.product-foundation .footer-provider {
  gap: 7px;
}

body.product-foundation .footer-provider img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

body.product-foundation .footer-provider strong,
body.product-foundation .footer-version {
  font-size: .72rem;
}

body.product-foundation .footer-provider small,
body.product-foundation .footer-label {
  display: none;
}

body.product-foundation .footer-client {
  padding-inline: 12px;
  border-inline: 1px solid var(--line);
}

body.product-foundation .client-logo {
  max-height: 28px;
}

body.product-foundation .client-wordmark {
  padding: 4px 8px;
  border-radius: 3px;
}

body.product-foundation .footer-runtime {
  gap: 8px;
  color: #747d85;
  font-size: .68rem;
}

body.auth-pending {
  padding-block-end: 40px;
  background: #000;
}

body.auth-pending .auth-topbar {
  min-height: 64px;
  padding-block: 6px;
  border-block-end-color: var(--line);
  background: #000;
}

body.auth-pending .auth-topbar::after {
  width: 56px;
}

body.auth-pending .auth-brand img {
  width: 40px;
  height: 40px;
}

body.auth-pending .auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  height: calc(100dvh - 104px);
  min-height: 600px;
  margin-block-start: 64px;
  background: #000;
}

body.auth-pending .auth-hero {
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  border-inline-start-color: var(--line);
  background: #000;
}

body.auth-pending .auth-hero::before,
body.auth-pending .auth-hero::after,
body.auth-pending .auth-hero-art {
  display: none;
}

body.auth-pending .auth-hero h1 {
  max-width: 560px;
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
}

body.auth-pending .auth-hero-copy > p:not(.auth-kicker) {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.65;
}

body.auth-pending .auth-trust span {
  border-radius: 3px;
  background: transparent;
}

body.auth-pending #login-card,
body.auth-pending #change-password-screen {
  padding: clamp(28px, 4vw, 56px);
  background: #020304;
}

body.auth-pending #login-card::after,
body.auth-pending #change-password-screen::after {
  width: 48px;
}

body.auth-pending .auth-card-tag {
  border-radius: 3px;
  background: transparent;
}

body.auth-pending #login-card h2,
body.auth-pending #change-password-screen h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
}

body.auth-pending #login-form,
body.auth-pending #change-password-form {
  gap: 14px;
  margin-block-start: 22px;
}

body.auth-pending input {
  min-height: 52px;
  border-color: #30363b;
  border-radius: 4px;
  background: #000;
}

body.auth-pending .password-toggle {
  border-radius: 3px;
  background: #090c0f;
}

body.auth-pending .auth-submit {
  min-height: 52px;
  border-radius: 4px;
  box-shadow: none;
}

body.auth-pending .site-footer {
  min-height: 40px;
  height: 40px;
  padding-block: 3px;
  border-block-start-color: var(--line);
  background: #000;
}

body.auth-pending .footer-provider,
body.auth-pending #app-version {
  min-height: 28px;
}

body.auth-pending .footer-provider img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

body.auth-pending #status {
  inset-block-end: 48px;
  border-radius: 4px;
  background: #160809;
}

@media (max-width: 1100px) {
  :root {
    --sidebar-width: 212px;
  }

  body.product-foundation .command-bar {
    gap: 8px;
  }

  body.product-foundation .filters .search {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --bottom-bar-height: 60px;
  }

  body.product-foundation .product-shell,
  body.product-foundation .sidebar-collapsed {
    display: block;
  }

  body.product-foundation .product-sidebar {
    width: min(86vw, 304px);
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  }

  body.product-foundation .drawer-overlay {
    background: #000c;
    backdrop-filter: none;
  }

  body.product-foundation .command-bar {
    min-height: 60px;
    padding: 7px 10px;
  }

  body.product-foundation .command-context .page-heading {
    max-width: none;
    overflow: visible;
    font-size: 1.08rem;
    line-height: 1.15;
    white-space: normal;
  }

  body.product-foundation .breadcrumb {
    display: none;
  }

  body.product-foundation .environment-chip,
  body.product-foundation #notification-button {
    display: none;
  }

  body.product-foundation .command-client-brand {
    display: flex;
    margin-inline-start: auto;
    padding-inline: 4px;
    border: 0;
  }

  body.product-foundation .command-search {
    width: 44px;
    min-width: 44px;
    border-block-end-color: transparent;
  }

  body.product-foundation .command-search span,
  body.product-foundation .command-search kbd {
    display: none;
  }

  body.product-foundation .product-content {
    padding: 10px;
  }

  body.product-foundation .related-routes {
    max-width: 100vw;
    gap: 18px;
    padding: 0 10px;
  }

body.product-foundation .mobile-bottom-nav {
    min-height: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom));
    border-block-start-color: var(--line);
    background: #000;
    box-shadow: none;
    backdrop-filter: none;
  }

body.product-foundation .mobile-bottom-nav button {
    min-height: 56px;
    border-radius: 0;
    color: #8997a3;
  }

  body.product-foundation .mobile-bottom-nav button.active {
    color: #fff;
    background: transparent;
    box-shadow: inset 0 2px var(--brand);
  }

  body.auth-pending {
    padding-block-end: 40px;
  }

  body.auth-pending .auth-topbar {
    min-height: 60px;
    padding: 5px 12px;
  }

  body.auth-pending .auth-layout {
    height: calc(100dvh - 100px);
    min-height: 560px;
    margin-block-start: 60px;
    padding: 14px;
    background: #000;
  }

  body.auth-pending .auth-layout::before {
    display: none;
  }

  body.auth-pending #login-card,
  body.auth-pending #change-password-screen {
    width: min(100%, 480px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #020304;
  }

  body.auth-pending #login-card h2,
  body.auth-pending #change-password-screen h2 {
    font-size: 1.75rem;
  }

  body.auth-pending .site-footer {
    min-height: 40px;
    height: 40px;
    padding: 3px 10px;
  }

  body.auth-pending #status {
    inset-block-end: 48px;
  }

  body.product-foundation .summary:not(.occ-summary),
  body.product-foundation .schedule-stats,
  body.product-foundation .reviews-kpis,
  body.product-foundation .quotation-metrics,
  body.product-foundation .project-metrics,
  body.product-foundation .package-counts {
    grid-template-columns: 1fr 1fr;
  }

  body.product-foundation .summary:not(.occ-summary) article,
  body.product-foundation .schedule-stats article,
  body.product-foundation .reviews-kpis article,
  body.product-foundation .quotation-metrics article,
  body.product-foundation .project-metrics article,
  body.product-foundation .package-counts article {
    min-height: 76px;
    padding: 12px;
    border-block-end: 1px solid var(--line);
  }

  body.product-foundation .card {
    padding: 14px;
  }

  body.product-foundation .filters,
  body.product-foundation .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  body.product-foundation .filters > button,
  body.product-foundation .filter-bar > button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body.product-foundation .command-actions {
    gap: 4px;
  }

  body.product-foundation .command-actions .quick-action {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  body.product-foundation .filters,
  body.product-foundation .filter-bar,
  body.product-foundation form {
    grid-template-columns: 1fr;
  }

  body.product-foundation .filters .search,
  body.product-foundation .wide {
    grid-column: auto;
  }

  body.product-foundation .section-heading,
  body.product-foundation .section-title,
  body.product-foundation .schedule-heading {
    align-items: stretch;
    flex-direction: column;
  }

  body.product-foundation .section-heading > button,
  body.product-foundation .section-title > button,
  body.product-foundation .schedule-heading button {
    width: 100%;
  }

  body.product-foundation .detail-grid {
    grid-template-columns: 1fr;
  }

  body.product-foundation .detail-grid > div {
    border-inline-end: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.product-foundation .command-bar,
  body.product-foundation .mobile-bottom-nav,
  body.product-foundation .drawer-overlay {
    backdrop-filter: none;
  }
}
