:root {
  --navy: #0b2545;
  --navy-deep: #071a31;
  --navy-soft: #173a62;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8efff;
  --teal: #14b8a6;
  --teal-soft: #d9f8f3;
  --gray-25: #fbfcfe;
  --gray-50: #f7f9fc;
  --gray-100: #f1f4f8;
  --gray-200: #e5e7eb;
  --gray-300: #d4d9e1;
  --gray-500: #687386;
  --gray-700: #344054;
  --ink: #14243a;
  --danger: #c73b47;
  --criticality-unknown: #98a2b3;
  --criticality-low: #46a36f;
  --criticality-medium: #d49a1f;
  --criticality-high: #e06b2e;
  --criticality-critical: #c73b47;
  --sidebar-width: 272px;
  --sidebar-collapsed-width: 76px;
  --topbar-height: 72px;
  --shadow-sm: 0 1px 2px rgb(11 37 69 / 5%), 0 3px 10px rgb(11 37 69 / 4%);
  --shadow-lg: 0 20px 45px rgb(11 37 69 / 14%);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-dark);
}

:focus-visible {
  outline: 3px solid rgb(37 99 235 / 38%);
  outline-offset: 2px;
}

.btn {
  border-radius: 0.55rem;
  font-weight: 650;
  padding: 0.62rem 1rem;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 5px 12px rgb(37 99 235 / 18%);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-outline-secondary {
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn-outline-danger {
  color: var(--danger);
}

.app-body {
  background: var(--gray-50);
  margin: 0;
  overflow-x: hidden;
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 8px 0 30px rgb(7 26 49 / 12%);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  transition: width 180ms ease, transform 180ms ease;
  width: var(--sidebar-width);
  z-index: 1040;
}

.sidebar-brand-row {
  align-items: center;
  display: flex;
  height: var(--topbar-height);
  justify-content: space-between;
  padding: 0 1rem 0 1.25rem;
}

.flowatlas-brand {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.sidebar-brand-row .flowatlas-brand {
  flex: 0 0 auto;
  width: 96px;
}

.flowatlas-brand-logo {
  display: block;
  height: auto;
  width: 100%;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.icon-button svg,
.app-nav-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-button svg {
  height: 20px;
  width: 20px;
}

.sidebar-toggle,
.sign-out-button {
  color: #b7c9df;
}

.sidebar-toggle:hover,
.sign-out-button:hover {
  background: rgb(255 255 255 / 8%);
  color: #fff;
}

.app-navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 0.85rem;
}

.app-nav-section-label {
  color: #7692b2;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  margin: 1.4rem 0.75rem 0.45rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-team-form {
  margin: 0.8rem 0.25rem 0;
}

.sidebar-team-form .app-nav-section-label {
  display: block;
  margin: 0 0.5rem 0.35rem;
}

.sidebar-team-select {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 0.55rem;
  color: #fff;
  min-height: 40px;
  padding: 0.45rem 0.6rem;
  width: 100%;
}

.sidebar-team-select option {
  color: #0d2949;
}

.app-nav-link {
  align-items: center;
  border-radius: 0.62rem;
  color: #bdcde0;
  display: flex;
  font-size: 0.925rem;
  font-weight: 590;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.68rem 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.app-nav-link svg {
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.app-nav-link:hover {
  background: rgb(255 255 255 / 7%);
  color: #fff;
}

.app-nav-link.active {
  background: linear-gradient(90deg, rgb(37 99 235 / 35%), rgb(37 99 235 / 18%));
  box-shadow: inset 3px 0 0 #4f82ff;
  color: #fff;
}

.app-nav-link.disabled {
  color: #617d9c;
  cursor: not-allowed;
}

.sidebar-account {
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 9%);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr auto;
  margin: 0 0.85rem;
  min-height: 78px;
  padding: 0.85rem 0.45rem;
}

.sidebar-account-link {
  align-items: center;
  color: #fff;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto 1fr;
  min-width: 0;
  text-decoration: none;
}

.sidebar-account-link:hover {
  color: #fff;
}

.user-avatar {
  align-items: center;
  background: linear-gradient(145deg, var(--teal), #0b9688);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 0.85rem;
  font-weight: 750;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.user-avatar.small {
  flex-basis: 32px;
  height: 32px;
  width: 32px;
}

.sidebar-account-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.sidebar-account-copy strong {
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-copy span {
  color: #7994b3;
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.app-content-column {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 180ms ease;
}

.app-topbar {
  align-items: center;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  height: var(--topbar-height);
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-title {
  color: var(--navy);
  font-size: 0.93rem;
  font-weight: 700;
}

.mobile-menu-button {
  color: var(--navy);
  display: none;
}

.app-main {
  margin: 0 auto;
  max-width: 1480px;
  padding: 2rem clamp(1rem, 3vw, 3rem) 4rem;
}

.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .app-content-column {
  margin-left: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .sidebar-brand-row {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .app-nav-link span,
.sidebar-collapsed .app-nav-section-label,
.sidebar-collapsed .sidebar-team-form,
.sidebar-collapsed .sidebar-account-copy {
  display: none;
}

.sidebar-collapsed .sidebar-brand-row .flowatlas-brand {
  height: 34px;
  overflow: hidden;
  width: 34px;
}

.sidebar-collapsed .sidebar-brand-row .flowatlas-brand-logo {
  max-width: none;
  transform: translate(-17px, -4px);
  width: 68px;
}

.sidebar-collapsed .app-navigation {
  align-items: center;
  padding-inline: 0.55rem;
}

.sidebar-collapsed .app-nav-link {
  justify-content: center;
  padding-inline: 0;
  width: 48px;
}

.sidebar-collapsed .sidebar-account {
  display: flex;
  flex-direction: column;
  margin-inline: 0.45rem;
  padding-block: 0.75rem;
}

.sidebar-collapsed .sign-out-button {
  height: 34px;
  width: 34px;
}

.sidebar-backdrop {
  display: none;
}

.page-header {
  align-items: flex-end;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0.25rem 0 1.4rem;
}

.page-header h1 {
  color: var(--navy);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  margin: 0;
}

.page-header-actions {
  align-items: center;
}

.context-line,
.secondary-value {
  color: var(--gray-500);
  font-size: 0.84rem;
}

.context-line {
  margin: 0.35rem 0 0;
}

.eyebrow {
  color: var(--blue);
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.105em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #7ea2ff;
}

.dashboard-hero {
  align-items: center;
  background: linear-gradient(115deg, var(--navy) 0%, #113c6b 72%, #17547c 100%);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  min-height: 190px;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  position: relative;
}

.dashboard-hero::after {
  background: linear-gradient(145deg, rgb(37 99 235 / 35%), rgb(20 184 166 / 18%));
  border-radius: 44% 56% 60% 40%;
  content: "";
  height: 250px;
  position: absolute;
  right: -65px;
  top: -90px;
  transform: rotate(18deg);
  width: 300px;
}

.dashboard-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.dashboard-hero p {
  color: #c5d4e6;
  margin: 0.7rem 0 0;
  position: relative;
  z-index: 1;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.metric-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.metric-icon {
  align-items: center;
  background: var(--blue-soft);
  border-radius: 0.72rem;
  color: var(--blue);
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.metric-icon.teal {
  background: var(--teal-soft);
  color: #0c9385;
}

.metric-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.metric-value {
  color: var(--navy);
  display: block;
  font-size: 1.55rem;
  font-weight: 780;
  line-height: 1;
}

.metric-label {
  color: var(--gray-500);
  display: block;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.metric-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.metric-card-link:hover {
  border-color: #c5d3f5;
  box-shadow: 0 8px 22px rgb(11 37 69 / 9%);
  color: inherit;
  transform: translateY(-1px);
}

.landscape-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
}

.section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 1rem;
}

.section-heading h2 {
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 740;
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tenant-card,
.empty-state,
.details-grid,
.entity-form,
.table-responsive {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.tenant-card {
  overflow: hidden;
}

.tenant-card-header {
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
}

.tenant-card h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 730;
  margin: 0;
}

.role-badge,
.status-badge {
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 740;
  padding: 0.32rem 0.58rem;
}

.workspace-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.workspace-item {
  align-items: center;
  background: var(--gray-50);
  border: 1px solid transparent;
  border-radius: 0.7rem;
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  transition: border-color 150ms ease, background 150ms ease;
}

.workspace-item:hover {
  background: #fff;
  border-color: #cdd9f7;
}

.workspace-item strong {
  color: var(--navy);
  display: block;
  font-size: 0.9rem;
}

.workspace-item span {
  color: var(--gray-500);
  display: block;
  font-size: 0.74rem;
  margin-top: 0.18rem;
}

.landscape-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-header {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dashboard-header h1 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  margin: 0.25rem 0 0;
}

.dashboard-header-actions,
.tenant-selector-form {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.tenant-selector-form .form-select {
  min-width: 190px;
}

.dashboard-current {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  padding: 0.9rem 1rem;
}

.dashboard-current-label {
  color: var(--gray-500);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-current h2 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0.15rem 0 0;
}

.dashboard-facts {
  display: flex;
  gap: 1.4rem;
  margin: 0;
}

.dashboard-facts div {
  display: flex;
  flex-direction: column-reverse;
}

.dashboard-facts dt {
  color: var(--gray-500);
  font-size: 0.65rem;
  font-weight: 600;
}

.dashboard-facts dd {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 780;
  margin: 0;
}

.dashboard-landscapes {
  margin-top: 1.5rem;
}

.dashboard-attention,
.settings-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  padding: 1rem;
}

.dashboard-attention-list {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.dashboard-attention-row {
  align-items: center;
  color: var(--navy);
  display: grid;
  gap: 0.25rem 1rem;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  padding: 0.8rem 1rem;
  text-decoration: none;
}

.dashboard-attention-row + .dashboard-attention-row {
  border-top: 1px solid var(--gray-200);
}

.dashboard-attention-row:hover {
  background: var(--gray-50);
}

.dashboard-attention-row span {
  color: var(--gray-500);
}

.settings-form {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.settings-inline-form {
  align-items: end;
  display: flex;
  gap: 0.65rem;
}

.settings-inline-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 260px;
}

.settings-inline-form label > span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.settings-options {
  border: 0;
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  width: min(760px, 100%);
}

.settings-options legend {
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.settings-option {
  align-items: start;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr;
  padding: 0.85rem 1rem;
}

.settings-option.fixed {
  cursor: default;
}

.settings-option input {
  margin-top: 0.2rem;
}

.settings-option > span {
  display: grid;
  gap: 0.15rem;
}

.settings-option > span > span {
  color: var(--gray-500);
}

.page-header-button-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.dashboard-section-heading {
  align-items: baseline;
}

.dashboard-section-heading span {
  color: var(--gray-500);
  font-size: 0.72rem;
}

.dashboard-landscape-list {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dashboard-landscape-form + .dashboard-landscape-form {
  border-top: 1px solid var(--gray-200);
}

.dashboard-landscape-row {
  align-items: center;
  background: #fff;
  border: 0;
  color: inherit;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(160px, 0.75fr) minmax(260px, 1fr) auto;
  padding: 0.8rem 1rem;
  text-align: left;
  width: 100%;
}

.dashboard-landscape-row:hover,
.dashboard-landscape-row:focus-visible {
  background: var(--gray-50);
  outline: none;
}

.dashboard-landscape-row.selected {
  background: rgb(37 99 235 / 4%);
}

.dashboard-landscape-name {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 730;
}

.dashboard-landscape-counts {
  color: var(--gray-500);
  font-size: 0.74rem;
}

.dashboard-landscape-select {
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 720;
}

.landscape-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.landscape-card:hover {
  border-color: #c5d3f5;
  box-shadow: 0 10px 26px rgb(11 37 69 / 10%);
  color: inherit;
  transform: translateY(-1px);
}

.landscape-card-icon {
  align-items: center;
  background: var(--teal-soft);
  border-radius: 0.72rem;
  color: #0c9385;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.landscape-card-icon svg,
.landscape-card-arrow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workflow-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workflow-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.workflow-card:hover {
  border-color: #c5d3f5;
  box-shadow: 0 10px 26px rgb(11 37 69 / 10%);
  transform: translateY(-1px);
}

.workflow-card-link {
  color: inherit;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
  text-decoration: none;
}

.workflow-card-link:hover {
  color: inherit;
}

.workflow-card-actions {
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem;
}

.workflow-card-title {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 730;
}

.workflow-card-owner {
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 680;
  margin-top: 0.25rem;
}

.workflow-card-counts,
.workflow-card-description {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.workflow-card-description {
  line-height: 1.5;
  margin-top: 0.8rem;
}

.workflow-metadata {
  margin-bottom: 2rem;
  max-width: 520px;
}

.workflow-details-header {
  align-items: center;
  margin-bottom: 0;
}

.workflow-details-summary {
  min-width: 0;
}

.workflow-details-title,
.workflow-details-meta,
.workflow-details-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.workflow-details-title {
  gap: 0.7rem;
}

.workflow-details-title .eyebrow {
  margin: 0;
}

.workflow-details-meta {
  gap: 0.55rem 1.25rem;
  margin-top: 0.3rem;
}

.workflow-details-actions {
  flex: 0 0 auto;
  gap: 0.45rem;
}

.workflow-external-reference {
  color: var(--gray-500);
  font-size: 0.78rem;
}

.workflow-external-reference strong {
  color: var(--gray-500);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  margin-right: 0.45rem;
  text-transform: uppercase;
}

.workflow-owner {
  align-items: center;
  display: flex;
  font-size: 0.86rem;
  gap: 0.55rem;
  margin: 0;
}

.workflow-owner span {
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow-owner a {
  color: var(--blue-dark);
  font-weight: 720;
  text-decoration: none;
}

.workflow-visual-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.workflow-canvas-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.workflow-canvas-toolbar .workflow-filter-bar {
  background: transparent;
  border: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

.workflow-canvas-toolbar .workflow-heading-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.workflow-graph {
  background-color: var(--gray-50);
  background-image: radial-gradient(circle, #cfd7e3 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  min-height: 220px;
  overflow: auto;
  position: relative;
}

.workflow-canvas-workspace {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.workflow-graph-viewport {
  background-color: var(--gray-50);
  background-image: radial-gradient(circle, #cfd7e3 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  cursor: grab;
  height: clamp(520px, calc(100dvh - 300px), 900px);
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.workflow-graph-viewport:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
  outline: none;
}

.workflow-graph-viewport.panning {
  cursor: grabbing;
}

.workflow-graph-stage {
  left: 0;
  position: absolute;
  top: 0;
  transform-origin: 0 0;
}

.workflow-graph-edges,
.workflow-graph-nodes {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.workflow-graph-edges {
  overflow: visible;
  z-index: 1;
}

.workflow-graph-nodes {
  pointer-events: none;
  z-index: 2;
}

.workflow-graph-node {
  background: #fff;
  border: 1px solid #cfd8e6;
  border-radius: 0.75rem;
  box-sizing: border-box;
  box-shadow: 0 7px 20px rgb(11 37 69 / 9%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 0.9rem 1rem;
  pointer-events: auto;
  position: absolute;
  min-height: 104px;
  transition: border-color 140ms ease, box-shadow 140ms ease, opacity 160ms ease;
  width: 228px;
}

.workflow-graph-node.start {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 12%), 0 7px 20px rgb(11 37 69 / 9%);
}

.workflow-start-badge,
.workflow-start-inline {
  background: var(--teal-soft);
  border-radius: 999px;
  color: #087a70;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.48rem;
  text-transform: uppercase;
}

.workflow-start-badge {
  left: 0.8rem;
  position: absolute;
  top: -0.72rem;
}

.workflow-start-inline {
  margin-left: 0.45rem;
}

.workflow-start-warning {
  background: #fff8e6;
  border: 1px solid #f1cf78;
  border-radius: 0.65rem;
  color: #6f4d00;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.8rem;
}

.workflow-graph-node:hover,
.workflow-graph-node:focus-visible,
.workflow-graph-node.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 13%), 0 9px 24px rgb(11 37 69 / 14%);
  outline: none;
}

.workflow-graph-node strong {
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.3;
}

.workflow-graph-order {
  align-items: center;
  background: var(--blue-soft);
  border-radius: 50%;
  color: var(--blue-dark);
  display: flex;
  font-size: 0.72rem;
  font-weight: 780;
  height: 28px;
  justify-content: center;
  left: 0.85rem;
  position: absolute;
  top: 0.85rem;
  width: 28px;
}

.workflow-node-badge {
  align-self: flex-start;
  background: var(--gray-100);
  border-radius: 999px;
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 680;
  margin-top: 0.55rem;
  max-width: 100%;
  overflow: hidden;
  padding: 0.24rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-node-badge.owner {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.workflow-node-actions {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.15rem;
  opacity: 0;
  padding: 0.2rem;
  pointer-events: none;
  position: absolute;
  right: 0.55rem;
  top: -1.1rem;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
}

.workflow-graph-node:hover .workflow-node-actions,
.workflow-graph-node:focus-within .workflow-node-actions,
.workflow-graph-node.selected .workflow-node-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.workflow-context-action {
  align-items: center;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  color: var(--blue-dark);
  display: inline-flex;
  height: 29px;
  justify-content: center;
  text-decoration: none;
  width: 29px;
}

.workflow-context-action:hover,
.workflow-context-action:focus-visible {
  background: var(--blue-soft);
  border-color: #c8d5ef;
  color: var(--blue-dark);
  outline: 2px solid rgb(37 99 235 / 24%);
  outline-offset: 1px;
}

.workflow-context-action.danger {
  color: #b42318;
}

.workflow-context-action.danger:hover,
.workflow-context-action.danger:focus-visible {
  background: #fff1f0;
  border-color: #fecaca;
  color: #9f1d15;
}

.workflow-context-action svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 16px;
}

.workflow-graph-path {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-width: 2;
}

.workflow-graph-path-group {
  transition: opacity 160ms ease;
}

.workflow-graph-node.context-faded {
  opacity: 0.22;
}

.workflow-graph-path-group.context-faded {
  opacity: 0.1;
}

.workflow-graph-path-hit {
  cursor: pointer;
  fill: none;
  pointer-events: stroke;
  stroke: transparent;
  stroke-width: 20;
}

.workflow-path-origin {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 2;
}

.workflow-path-target {
  fill: rgb(11 37 69 / 12%);
  stroke: none;
}

.workflow-graph-path-group:hover .workflow-graph-path,
.workflow-graph-path-group:focus .workflow-graph-path,
.workflow-graph-path-group:focus-within .workflow-graph-path,
.workflow-graph-path-group.selected .workflow-graph-path {
  filter: drop-shadow(0 0 3px rgb(37 99 235 / 35%));
  stroke: var(--blue);
  stroke-width: 3.5;
}

.workflow-graph-path-group:focus {
  outline: none;
}

.workflow-graph-path.cross-node {
  stroke: var(--teal);
  stroke-width: 2.5;
}

.workflow-graph-path.side-effect {
  opacity: 0.68;
  stroke: #64748b;
  stroke-dasharray: 7 6;
  stroke-width: 2;
}

.workflow-graph-path-group:hover .workflow-path-origin,
.workflow-graph-path-group:focus .workflow-path-origin,
.workflow-graph-path-group.selected .workflow-path-origin {
  stroke: var(--blue);
}

.workflow-graph-path-group:hover .workflow-path-target,
.workflow-graph-path-group:focus .workflow-path-target,
.workflow-graph-path-group.selected .workflow-path-target {
  fill: rgb(37 99 235 / 18%);
}

.workflow-graph-path.cycle {
  stroke-dasharray: 4 5;
}

.workflow-graph-edges marker path {
  fill: var(--navy);
}

.workflow-graph-edges marker.workflow-side-effect-arrow path {
  fill: #64748b;
}

.workflow-graph-edges marker.workflow-cross-node-arrow path {
  fill: var(--teal);
}

.workflow-graph-condition rect {
  fill: #fff;
  stroke: #c8d5ef;
}

.workflow-graph-condition,
.workflow-graph-relationship {
  cursor: pointer;
  pointer-events: auto;
}

.workflow-graph-relationship {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.workflow-graph-edges.show-relationship-labels .workflow-graph-relationship,
.workflow-graph-path-group:hover .workflow-graph-relationship,
.workflow-graph-path-group:focus .workflow-graph-relationship,
.workflow-graph-path-group.selected .workflow-graph-relationship,
.workflow-graph-path-group.step-focused .workflow-graph-relationship {
  opacity: 1;
  pointer-events: auto;
}

.workflow-graph-condition text {
  fill: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
}

.workflow-graph-relationship rect {
  fill: #e5fbf8;
  stroke: #8ddbd2;
}

.workflow-graph-relationship text {
  fill: #087a70;
  font-size: 10px;
  font-weight: 750;
}

.workflow-path-actions {
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
  visibility: hidden;
}

.workflow-graph-path-group:hover .workflow-path-actions,
.workflow-graph-path-group:focus .workflow-path-actions,
.workflow-graph-path-group:focus-within .workflow-path-actions,
.workflow-graph-path-group.selected .workflow-path-actions {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.workflow-path-action-toolbar {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.55rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.15rem;
  padding: 0.2rem;
}

.workflow-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.workflow-graph-legend span {
  align-items: center;
  color: var(--gray-500);
  display: inline-flex;
  font-size: 0.72rem;
  gap: 0.4rem;
}

.workflow-legend-line {
  border-top: 2px solid var(--navy);
  display: inline-block;
  width: 28px;
}

.workflow-legend-line.side-effect {
  border-color: #64748b;
  border-top-style: dashed;
}

.workflow-connection-kind {
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.workflow-legend-start {
  background: var(--teal-soft);
  border: 2px solid var(--teal);
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.workflow-step-card.start {
  border-left: 3px solid var(--teal);
}

.workflow-limit-message {
  color: var(--gray-500);
  font-size: 0.78rem;
  margin: 0.8rem 0 0;
}

.workflow-condition-label {
  align-self: flex-start;
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue-dark) !important;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

.workflow-section {
  margin-top: 2rem;
}

.workflow-administration-section {
  border-top: 1px solid var(--gray-200);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.workflow-administration-section .section-heading h2 {
  color: var(--gray-600);
  font-size: 1rem;
}

.workflow-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.workflow-fixed-source {
  background: var(--gray-50);
  min-height: calc(1.5em + 0.75rem + 2px);
}

@media (hover: none), (max-width: 767px) {
  .workflow-node-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
}

.workflow-section-heading {
  gap: 1rem;
}

.workflow-step-list,
.workflow-transition-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-step-card,
.workflow-transition-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.workflow-step-card {
  grid-template-columns: auto 1fr auto;
}

.workflow-transition-card {
  grid-template-columns: 1fr auto;
}

.workflow-step-order {
  align-items: center;
  background: var(--blue-soft);
  border-radius: 50%;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 760;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.workflow-step-copy,
.workflow-transition-card > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.workflow-step-copy strong,
.workflow-transition-card strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.workflow-step-copy a,
.workflow-transition-card a:not(.btn),
.workflow-step-copy span,
.workflow-transition-card span {
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.workflow-step-copy span,
.workflow-transition-card span {
  color: var(--gray-500);
}

.workflow-item-actions {
  display: flex;
  gap: 0.4rem;
}

.workflow-relationship-fields {
  border: 1px solid var(--gray-200);
  border-radius: 0.7rem;
  margin: 1rem 0;
  padding: 1rem;
}

.workflow-relationship-fields[hidden],
[data-relationship-fields][hidden] {
  display: none;
}

.workflow-relationship-fields legend {
  color: var(--navy);
  float: none;
  font-size: 0.9rem;
  font-weight: 720;
  padding: 0 0.35rem;
  width: auto;
}

.landscape-card-icon svg {
  height: 22px;
  width: 22px;
}

.landscape-card-copy strong,
.landscape-card-copy span {
  display: block;
}

.landscape-card-copy strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 730;
}

.landscape-card-copy span {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-top: 0.18rem;
}

.landscape-card-arrow {
  color: var(--blue);
  height: 20px;
  width: 20px;
}

.workspace-open-link {
  align-items: center;
  color: var(--blue);
  display: flex;
  flex: 0 0 32px;
  height: 32px;
  justify-content: center;
  text-decoration: none;
  width: 32px;
}

.workspace-open-link svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.empty-state {
  color: var(--gray-500);
  padding: 2.5rem;
  text-align: center;
}

.notice {
  background: #fff8dc;
  border: 1px solid #ead995;
  border-radius: 0.65rem;
  color: #695610;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.table-responsive {
  overflow: hidden;
}

.table {
  margin: 0;
}

.table > :not(caption) > * > * {
  border-color: var(--gray-200);
  padding: 0.9rem 1rem;
}

.table thead th {
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.table tbody td {
  color: var(--gray-700);
  font-size: 0.86rem;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody a:not(.btn) {
  color: var(--navy);
  font-weight: 680;
  text-decoration: none;
}

.table tbody a:not(.btn):hover {
  color: var(--blue);
}

.entity-form {
  max-width: 820px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-control,
.form-select {
  border-color: var(--gray-300);
  border-radius: 0.55rem;
  color: var(--ink);
  min-height: 44px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgb(37 99 235 / 14%);
}

.form-label,
.entity-form label {
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 680;
}

.form-grid,
.details-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1rem;
}

.form-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.details-grid {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.details-grid dt {
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.details-grid dd {
  color: var(--navy);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.details-wide {
  grid-column: 1 / -1;
}

.field-validation-error,
.validation-summary-errors,
.text-danger {
  color: var(--danger) !important;
  font-size: 0.78rem;
}

.toast-host {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(390px, calc(100vw - 2rem));
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 1090;
}

.app-toast {
  background: #fff;
  border: 0;
  border-radius: 0.7rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.app-toast .toast-body {
  align-items: center;
  color: var(--gray-700);
  display: grid;
  font-size: 0.85rem;
  gap: 0.7rem;
  grid-template-columns: auto 1fr auto;
  padding: 0.9rem 1rem;
}

.toast-indicator {
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--teal-soft);
  height: 8px;
  margin: 0 0.25rem;
  width: 8px;
}

.app-toast-error .toast-indicator {
  background: var(--danger);
  box-shadow: 0 0 0 5px #fbe4e7;
}

.account-body {
  background: var(--gray-50);
  margin: 0;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(340px, 42%) 1fr;
  min-height: 100vh;
}

.account-brand-panel {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy) 60%, #123e69);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  position: relative;
}

.account-brand-message {
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.account-brand-message h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 770;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0;
}

.account-brand-orbit {
  border: 1px solid rgb(126 162 255 / 20%);
  border-radius: 50%;
  height: 520px;
  position: absolute;
  right: -280px;
  top: 12%;
  width: 520px;
}

.account-brand-orbit::before,
.account-brand-orbit::after {
  border: 1px solid rgb(20 184 166 / 16%);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.account-brand-orbit::before {
  inset: 55px;
}

.account-brand-orbit::after {
  inset: 120px;
}

.account-content {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.account-content-stack {
  width: min(430px, 100%);
}

.account-content-brand {
  margin-bottom: 2rem;
  width: 170px;
}

.account-panel {
  width: 100%;
}

.account-panel h1 {
  color: var(--navy);
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -0.04em;
  margin-bottom: 1.6rem;
}

.account-panel form {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.account-panel label {
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 680;
  margin-top: 0.55rem;
}

.account-panel input {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 0.58rem;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

.account-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgb(37 99 235 / 14%);
  outline: 0;
}

.account-panel button[type="submit"] {
  background: var(--blue);
  border: 0;
  border-radius: 0.58rem;
  color: #fff;
  font-weight: 700;
  margin-top: 0.95rem;
  min-height: 48px;
}

.account-panel button[type="submit"]:hover {
  background: var(--blue-dark);
}

.account-panel > a {
  font-size: 0.84rem;
  font-weight: 620;
}

.architecture-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.95rem;
  box-shadow: var(--shadow-sm);
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.landscape-overview-header {
  align-items: center;
  margin-bottom: 0;
}

.landscape-overview-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-left: auto;
}

.landscape-view-switcher {
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 0.7rem;
  display: inline-flex;
  gap: 0.2rem;
  margin-top: 0.8rem;
  padding: 0.22rem;
}

.landscape-view-switcher button {
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: var(--gray-600);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.48rem 0.8rem;
}

.landscape-view-switcher button:hover,
.landscape-view-switcher button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.12);
}

.model-tabs {
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.model-tabs a {
  border-bottom: 2px solid transparent;
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 0.1rem;
  text-decoration: none;
}

.model-tabs a:hover,
.model-tabs a.active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.data-table .row-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.data-table .row-actions > * {
  vertical-align: middle;
}

.data-table .row-actions form {
  display: inline-flex;
  margin: 0;
}

.data-table .row-actions > * + * {
  margin-left: 0.45rem;
}

.node-type-badge {
  align-items: center;
  background: color-mix(in srgb, var(--node-type-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--node-type-color) 42%, #fff);
  border-radius: 999px;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
}

.node-type-badge > span {
  background: var(--node-type-color);
  border-radius: 999px;
  height: 0.5rem;
  width: 0.5rem;
}

.model-usage-options {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.model-usage-options legend {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.model-usage-options label {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.infrastructure-swimlanes {
  display: grid;
  gap: 0.85rem;
  isolation: isolate;
  margin-top: 0.85rem;
  position: relative;
}

.swimlane-view-toolbar {
  display: flex;
  justify-content: flex-end;
  min-height: 30px;
  position: relative;
  z-index: 4;
}

.swimlane-connections-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.42rem;
  padding: 0.38rem 0.65rem;
}

.swimlane-connections-toggle:hover {
  border-color: #9bb8f8;
}

.swimlane-connections-toggle span {
  background: var(--teal);
  border-radius: 999px;
  height: 0.48rem;
  width: 0.48rem;
}

.swimlane-connections-toggle[aria-pressed="false"] {
  color: var(--gray-500);
}

.swimlane-connections-toggle[aria-pressed="false"] span {
  background: var(--gray-300);
}

.swimlane-relationship-overlay {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.swimlane-relationship-overlay[hidden] {
  display: none;
}

.swimlane-relationship-edge {
  fill: none;
  opacity: 0.76;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.swimlane-relationship-overlay marker path {
  fill: var(--navy);
}

.swimlane-relationship-edge:hover {
  opacity: 1;
  stroke: var(--blue);
}

.infrastructure-swimlane {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  min-height: 148px;
  overflow: hidden;
  position: relative;
}

.infrastructure-swimlane.network {
  border-left-color: var(--teal);
}

.infrastructure-swimlane.unassigned {
  border-left-color: var(--gray-400);
}

.infrastructure-swimlane > header {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 1rem;
  position: relative;
  z-index: 3;
}

.infrastructure-swimlane h2 {
  font-size: 1rem;
  margin: 0;
}

.infrastructure-swimlane h2 a {
  color: var(--navy);
  text-decoration: none;
}

.infrastructure-swimlane .eyebrow {
  font-size: 0.64rem;
  margin-bottom: 0.35rem;
}

.swimlane-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.85rem 0 0;
}

.swimlane-metadata div {
  display: grid;
  gap: 0.1rem;
}

.swimlane-metadata dt {
  color: var(--gray-500);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swimlane-metadata dd {
  color: var(--navy);
  font-size: 0.78rem;
  margin: 0;
}

.swimlane-items {
  align-content: start;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  padding: 1rem;
}

.infrastructure-host-group {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.8rem;
  display: grid;
  gap: 0.65rem;
  padding: 0.55rem;
  position: relative;
  z-index: 3;
}

.infrastructure-host-group .infrastructure-card {
  border-color: #9bb8f8;
  min-height: 86px;
}

.infrastructure-hosted-nodes {
  display: grid;
  gap: 0.5rem;
}

.infrastructure-hosted-label {
  color: var(--gray-500);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 0 0.25rem;
  text-transform: uppercase;
}

.hosted-node-card {
  border-left: 3px solid var(--teal);
  min-height: 76px;
}

.swimlane-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.7rem;
  color: var(--navy);
  display: grid;
  gap: 0.3rem;
  min-height: 80px;
  padding: 0.8rem;
  position: relative;
  text-decoration: none;
  z-index: 3;
}

.swimlane-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.swimlane-card > span:not(.architecture-node-type),
.swimlane-empty {
  color: var(--gray-500);
  font-size: 0.78rem;
}

.swimlane-card.infrastructure-card {
  min-height: 108px;
}

.swimlane-card.infrastructure-card strong a {
  color: var(--navy);
  text-decoration: none;
}

.nested-node {
  background: var(--blue-50);
  border-radius: 0.35rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.28rem 0.4rem;
  position: relative;
  text-decoration: none;
  z-index: 3;
}

.swimlane-empty {
  align-self: center;
  padding: 0.8rem;
}

.infrastructure-form {
  max-width: 1080px;
}

.infrastructure-type-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.infrastructure-type-fieldset > legend {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 750;
  margin-bottom: 0.8rem;
}

.infrastructure-type-group + .infrastructure-type-group {
  margin-top: 1rem;
}

.infrastructure-type-group h2 {
  color: var(--gray-500);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.infrastructure-type-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.infrastructure-type-option {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.65rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  min-height: 78px;
  padding: 0.75rem;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.infrastructure-type-option:hover {
  border-color: #9bb8f8;
}

.infrastructure-type-option:has(input:checked) {
  background: #f5f8ff;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.infrastructure-type-option input {
  accent-color: var(--blue);
  margin-top: 0.2rem;
}

.infrastructure-type-option span {
  display: grid;
  gap: 0.22rem;
}

.infrastructure-type-option strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.infrastructure-type-option small {
  color: var(--gray-500);
  font-size: 0.73rem;
  line-height: 1.35;
}

.landscape-overview-summary,
.landscape-overview-title,
.landscape-overview-counts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.landscape-overview-summary {
  gap: 0.65rem 1.35rem;
  min-width: 0;
}

.landscape-overview-title {
  gap: 0.7rem;
}

.landscape-overview-title .eyebrow {
  margin: 0;
}

.landscape-overview-counts {
  gap: 0.35rem;
}

.landscape-overview-counts a {
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  color: var(--gray-500);
  display: inline-flex;
  font-size: 0.7rem;
  gap: 0.3rem;
  padding: 0.22rem 0.58rem;
  text-decoration: none;
}

.landscape-overview-counts a:hover {
  border-color: #b9c9e6;
  color: var(--blue-dark);
}

.landscape-overview-counts strong {
  color: var(--navy);
  font-size: 0.8rem;
}

.architecture-canvas-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.architecture-canvas-toolbar .architecture-filter-bar {
  background: transparent;
  border: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

.architecture-canvas-toolbar .architecture-canvas-controls {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.architecture-section-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.architecture-section-heading h2 {
  margin: 0;
}

.architecture-canvas-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.architecture-control-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 0.45rem;
  color: var(--navy);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 760;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 0.45rem;
}

.architecture-control-button.fit {
  font-size: 0.72rem;
  min-width: 42px;
}

.architecture-control-button:hover,
.architecture-control-button:focus-visible {
  background: var(--blue-soft);
  border-color: #a9bfe8;
  outline: 2px solid rgb(37 99 235 / 20%);
  outline-offset: 1px;
}

.architecture-filter-bar {
  align-items: end;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
}

.architecture-filter-bar label {
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 720;
  margin: 0;
  min-width: 150px;
}

.architecture-filter-bar label span {
  display: block;
  margin-bottom: 0.3rem;
}

.architecture-filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.architecture-workspace {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.architecture-canvas-viewport {
  background-color: var(--gray-50);
  background-image: radial-gradient(circle, #cfd7e3 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  cursor: grab;
  height: clamp(520px, calc(100dvh - 270px), 900px);
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.architecture-canvas-viewport:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
  outline: none;
}

.architecture-canvas-viewport.panning {
  cursor: grabbing;
}

.architecture-canvas-stage {
  left: 0;
  position: absolute;
  top: 0;
  transform-origin: 0 0;
}

.architecture-canvas-edges,
.architecture-canvas-nodes {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.architecture-canvas-edges {
  overflow: visible;
  z-index: 1;
}

.architecture-canvas-nodes {
  pointer-events: none;
  z-index: 2;
}

.architecture-node {
  background: #fff;
  border: 1px solid #cbd6e6;
  border-radius: 0.8rem;
  box-shadow: 0 7px 20px rgb(11 37 69 / 10%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 132px;
  justify-content: center;
  padding: 1rem 1rem 1rem 3.15rem;
  pointer-events: auto;
  position: absolute;
  transition: border-color 130ms ease, box-shadow 130ms ease, opacity 160ms ease;
  user-select: none;
  width: 220px;
}

.workflow-graph-node.criticality-unknown {
  border-left: 5px solid var(--criticality-unknown);
}

.workflow-graph-node.criticality-low {
  border-left: 5px solid var(--criticality-low);
}

.workflow-graph-node.criticality-medium {
  border-left: 5px solid var(--criticality-medium);
}

.workflow-graph-node.criticality-high {
  border-left: 5px solid var(--criticality-high);
}

.workflow-graph-node.criticality-critical {
  border-left: 5px solid var(--criticality-critical);
}

.entity-related-section {
  margin-top: 2rem;
}

.related-item-list {
  display: grid;
  gap: 0.65rem;
}

.related-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.related-item > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}

.related-item-label {
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.architecture-node:hover,
.architecture-node:focus-visible,
.architecture-node.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 13%), 0 10px 26px rgb(11 37 69 / 15%);
  outline: none;
}

.architecture-node strong {
  display: -webkit-box;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.25;
  margin-top: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.architecture-node-type {
  align-items: center;
  background: var(--blue);
  border-radius: 0.72rem 0 0 0.72rem;
  bottom: 0;
  color: #fff;
  display: flex;
  justify-content: center;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 2.15rem;
}

.architecture-node-type-color {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.architecture-node-type-label {
  font-size: 0.62rem;
  font-weight: 780;
  left: 50%;
  letter-spacing: 0.035em;
  line-height: 1;
  max-width: 96px;
  overflow: hidden;
  position: absolute;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgb(0 0 0 / 45%);
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  z-index: 1;
}

.architecture-node-meta {
  align-items: center;
  color: var(--gray-500);
  display: flex;
  font-size: 0.68rem;
  gap: 0.42rem;
  margin-top: 0.38rem;
}

.architecture-node-criticality {
  border: 1px solid var(--criticality-unknown);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.61rem;
  font-weight: 720;
  line-height: 1;
  padding: 0.18rem 0.42rem;
}

.architecture-node-criticality.criticality-low { border-color: var(--criticality-low); }
.architecture-node-criticality.criticality-medium { border-color: var(--criticality-medium); }
.architecture-node-criticality.criticality-high { border-color: var(--criticality-high); }
.architecture-node-criticality.criticality-critical { border-color: var(--criticality-critical); }

.architecture-node-infrastructure {
  color: var(--gray-600);
  font-size: 0.63rem;
  font-weight: 650;
  margin-top: 0.24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-tag-badge {
  align-self: flex-start;
  background: var(--teal-soft);
  border-radius: 999px;
  color: #087a70;
  font-size: 0.61rem;
  font-weight: 760;
  margin-top: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  padding: 0.18rem 0.42rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.architecture-node-actions {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.12rem;
  opacity: 0;
  padding: 0.18rem;
  pointer-events: none;
  position: absolute;
  right: 0.45rem;
  top: -1.05rem;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  visibility: hidden;
}

.architecture-node:hover .architecture-node-actions,
.architecture-node:focus-within .architecture-node-actions,
.architecture-node.selected .architecture-node-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.architecture-edge {
  fill: none;
  opacity: 0.58;
  stroke: var(--edge-color, var(--teal));
  stroke-linecap: round;
  stroke-width: 2.4;
  transition: filter 120ms ease, opacity 120ms ease, stroke-width 120ms ease;
}

.architecture-edge-group {
  transition: opacity 160ms ease;
}

.architecture-node.context-faded {
  opacity: 0.22;
}

.architecture-edge-group.context-faded {
  opacity: 0.1;
}

.architecture-node.canvas-dimmed {
  background: rgb(255 255 255 / 62%);
  border-color: rgb(148 163 184 / 42%);
  box-shadow: none;
}

.architecture-node.canvas-dimmed > * {
  opacity: 0.35;
}

.architecture-edge-group.canvas-dimmed {
  opacity: 0.15;
}

.architecture-edge-group.context-faded.canvas-dimmed {
  opacity: 0.06;
}

.architecture-edge-origin {
  fill: #fff;
  opacity: 0.58;
  stroke: var(--edge-color, var(--teal));
  stroke-width: 2;
  transition: opacity 120ms ease;
}

.architecture-edge-target {
  fill: var(--edge-color, var(--teal));
  opacity: 0.14;
  stroke: none;
  transition: opacity 120ms ease;
}

.architecture-edge-hit {
  cursor: pointer;
  fill: none;
  pointer-events: stroke;
  stroke: transparent;
  stroke-width: 22;
}

.architecture-edge-group:focus {
  outline: none;
}

.architecture-edge-group:hover .architecture-edge,
.architecture-edge-group:focus .architecture-edge,
.architecture-edge-group.selected .architecture-edge,
.architecture-edge-group.node-focused .architecture-edge {
  filter: drop-shadow(0 0 3px rgb(11 37 69 / 28%));
  opacity: 1;
  stroke: var(--edge-color, var(--teal));
  stroke-width: 3.5;
}

.architecture-edge-group:hover .architecture-edge-origin,
.architecture-edge-group:focus .architecture-edge-origin,
.architecture-edge-group.selected .architecture-edge-origin,
.architecture-edge-group.node-focused .architecture-edge-origin {
  opacity: 1;
  stroke: var(--edge-color, var(--teal));
}

.architecture-edge-group:hover .architecture-edge-target,
.architecture-edge-group:focus .architecture-edge-target,
.architecture-edge-group.selected .architecture-edge-target,
.architecture-edge-group.node-focused .architecture-edge-target {
  fill: var(--edge-color, var(--teal));
  opacity: 0.24;
}

.architecture-edge-label {
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.architecture-canvas-edges.show-relationship-labels .architecture-edge-label,
.architecture-edge-group:hover .architecture-edge-label,
.architecture-edge-group:focus .architecture-edge-label,
.architecture-edge-group.selected .architecture-edge-label,
.architecture-edge-group.node-focused .architecture-edge-label {
  opacity: 1;
  pointer-events: auto;
}

.architecture-edge-label rect {
  fill: #fff;
  stroke: var(--edge-color, #9fded7);
}

.architecture-edge-label text {
  fill: var(--navy);
  font-size: 10px;
  font-weight: 740;
}

.architecture-canvas-edges marker path {
  fill: var(--teal);
}

.architecture-inspector {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  min-height: 180px;
  padding: 1.15rem;
}

.architecture-workspace,
.workflow-canvas-workspace {
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  position: relative;
}

.canvas-inspector-backdrop {
  background: rgb(7 26 49 / 10%);
  border: 0;
  border-radius: 0.75rem;
  cursor: default;
  display: none;
  inset: 0;
  padding: 0;
  position: absolute;
  z-index: 8;
}

.canvas-inspector-backdrop.open {
  display: block;
}

.canvas-inspector-drawer {
  bottom: 0.65rem;
  box-shadow: 0 18px 45px rgb(7 26 49 / 20%);
  max-width: calc(100% - 1.3rem);
  min-height: 0;
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  transform: translateX(calc(100% + 1rem));
  transition: opacity 140ms ease, transform 180ms ease;
  width: 350px;
  z-index: 9;
}

.canvas-inspector-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.canvas-inspector-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  float: right;
  font-size: 1.15rem;
  height: 30px;
  justify-content: center;
  line-height: 1;
  margin: -0.25rem -0.25rem 0.5rem 0.5rem;
  width: 30px;
}

.canvas-inspector-close:hover,
.canvas-inspector-close:focus-visible {
  background: var(--blue-soft);
  border-color: #a9bfe8;
  outline: none;
}

.architecture-inspector h3 {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 2.5rem 1rem 0;
  overflow-wrap: anywhere;
}

.architecture-inspector > .eyebrow {
  display: block;
  margin: 0 2.5rem 0.45rem 0;
}

.architecture-inspector-empty {
  align-items: center;
  color: var(--gray-500);
  display: flex;
  font-size: 0.8rem;
  height: 100%;
  justify-content: center;
  min-height: 140px;
}

.architecture-inspector-details {
  display: grid;
  gap: 0.85rem 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0.15rem 0 1rem;
}

.architecture-inspector-details div {
  display: grid;
  gap: 0.12rem;
}

.architecture-inspector-details dt {
  color: var(--gray-500);
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.architecture-inspector-details dd {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.architecture-inspector-relationship-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.architecture-inspector-relationship-list li {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.architecture-inspector-relationship-list span {
  color: var(--gray-600);
  font-size: 0.8125rem;
}

.architecture-inspector-relationship-list a {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.architecture-inspector-actions {
  border-top: 1px solid var(--gray-200);
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding-top: 1rem;
}

.inspector-secondary-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inspector-action {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 720;
  gap: 0.55rem;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  width: 100%;
}

.inspector-action svg {
  fill: none;
  flex: 0 0 auto;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.inspector-action-primary {
  background: var(--blue);
  box-shadow: 0 5px 14px rgb(37 99 235 / 20%);
  color: #fff;
}

.inspector-action-primary:hover,
.inspector-action-primary:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 7px 18px rgb(37 99 235 / 26%);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.inspector-action-secondary {
  background: #fff;
  border-color: var(--gray-300);
  color: var(--navy);
}

.inspector-action-secondary:hover,
.inspector-action-secondary:focus-visible {
  background: var(--blue-soft);
  border-color: #a9bfe8;
  color: var(--blue-dark);
  outline: none;
}

.inspector-danger-actions {
  border-top: 1px solid var(--gray-200);
  margin-top: 0.35rem;
  padding-top: 0.7rem;
}

.inspector-action-danger {
  background: transparent;
  border-color: transparent;
  color: #c52b3a;
  justify-content: flex-start;
  min-height: 36px;
  padding-inline: 0.45rem;
}

.inspector-action-danger:hover,
.inspector-action-danger:focus-visible {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #a7192d;
  outline: none;
}

.architecture-canvas-status {
  color: var(--gray-500);
  font-size: 0.75rem;
  min-height: 1.2rem;
  padding-top: 0.55rem;
  text-align: right;
}

.architecture-canvas-status.error {
  color: #b42318;
}

.canvas-footer-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  min-height: 38px;
  padding-top: 0.45rem;
  position: relative;
}

.canvas-footer-actions .architecture-canvas-status {
  margin-right: auto;
  padding-top: 0;
  text-align: left;
}

.canvas-footer-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.canvas-toggle[aria-pressed="true"] {
  background: var(--blue-soft);
  border-color: #9eb9eb;
  color: var(--blue-dark);
}

.node-type-color-swatch {
  display: block;
  flex: 0 0 auto;
  height: 1.15rem;
  width: 1.15rem;
}

.node-type-color-swatch circle {
  stroke: rgb(15 23 42 / 24%);
  stroke-width: 1px;
}

.node-type-color-value {
  align-items: center;
  color: var(--gray-600);
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.45rem;
}

.model-node-type-row > td:first-child {
  border-left: 4px solid var(--node-type-color);
  padding-left: calc(0.85rem - 4px);
}

.data-table-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-bottom: 0.55rem;
}

.data-table-toolbar-actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.data-table-clear-filters {
  padding-left: 0;
  padding-right: 0;
}

.data-table-modal-controls {
  display: grid;
  gap: 1rem;
}

.data-table-search {
  margin: 0;
  max-width: none;
}

.data-table-search-inline {
  width: min(18rem, 100%);
}

.administration-invite-access {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.administration-invite-access > label {
  display: grid;
  gap: 0.4rem;
}

.administration-invite-access > label > span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.data-table-facet {
  margin: 0;
}

.data-table-facet .form-select {
  width: 100%;
}

.account-settings-section {
  max-width: 42rem;
}

.account-settings-form {
  max-width: 30rem;
}

.data-table-sortable {
  cursor: pointer;
  padding-right: 1.35rem !important;
  position: relative;
  user-select: none;
}

.data-table-sortable::after {
  color: var(--gray-400);
  content: "↕";
  font-size: 0.7rem;
  position: absolute;
  right: 0.45rem;
}

.data-table-sortable[aria-sort="ascending"]::after {
  color: var(--blue);
  content: "↑";
}

.data-table-sortable[aria-sort="descending"]::after {
  color: var(--blue);
  content: "↓";
}

.data-table tbody tr[hidden] {
  display: none;
}

.administration-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.administration-badge {
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue-dark);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}

.status-badge.inactive {
  background: var(--gray-100);
  color: var(--gray-500);
}

.administration-form {
  display: grid;
  gap: 1.25rem;
}

.administration-form > label,
.administration-form-grid > label {
  display: grid;
  gap: 0.4rem;
}

.administration-form > label > span:first-child,
.administration-form-grid > label > span:first-child,
.administration-role > span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.administration-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.administration-assignments,
.administration-landscape-options {
  border: 0;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.administration-assignments > legend,
.administration-landscape-options > legend {
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 740;
  margin-bottom: 0.1rem;
}

.administration-assignment {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.administration-assignment-header {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.55fr);
}

.administration-team-toggle,
.administration-landscapes label,
.administration-landscape-options label,
.administration-access-toggle {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.55rem;
}

.administration-role {
  display: grid;
  gap: 0.3rem;
}

.administration-landscapes {
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  padding-top: 0.75rem;
}

.administration-landscapes label,
.administration-landscape-options label {
  color: var(--gray-600);
  font-size: 0.84rem;
}

.administration-landscape-options label {
  border: 1px solid var(--gray-200);
  border-radius: 0.7rem;
  padding: 0.75rem 0.85rem;
}

.administration-access-toggle {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.9rem;
}

.administration-access-toggle > span {
  display: grid;
  gap: 0.15rem;
}

.administration-access-toggle small {
  color: var(--gray-500);
}

@media (max-width: 700px) {
  .administration-form-grid,
  .administration-assignment-header,
  .administration-invite-access {
    grid-template-columns: 1fr;
  }
}

.workflow-data-grid,
.node-context-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.impact-path {
  min-width: 20rem;
  white-space: normal;
}

.workflow-administration-section,
.node-context-grid .entity-related-section {
  margin-top: 0;
  min-width: 0;
}

.workflow-data-grid .workflow-administration-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.workflow-data-grid .workflow-section-heading {
  min-height: 42px;
}

.workflow-data-grid .table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
}

.workflow-data-grid .compact-empty-state {
  flex: 1 1 auto;
  min-height: 96px;
}

.workflow-table-actions {
  display: inline-flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.node-profile-summary,
.entity-related-section {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  padding: 1rem;
}

.node-profile-summary .details-grid {
  margin: 0;
}

.node-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.node-tag-list span,
.workflow-start-inline {
  background: var(--teal-soft);
  border-radius: 999px;
  color: #087a70;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 760;
  margin-left: 0.45rem;
  padding: 0.18rem 0.48rem;
  text-transform: uppercase;
}

.landscape-overview-header h1,
.workflow-details-header h1 {
  margin-bottom: 0;
}

.architecture-canvas-toolbar,
.workflow-canvas-toolbar {
  margin-bottom: 0.55rem;
}

.architecture-canvas-toolbar .architecture-filter-bar,
.workflow-canvas-toolbar .workflow-filter-bar {
  gap: 0.5rem;
}

.architecture-canvas-toolbar .architecture-filter-bar label,
.workflow-canvas-toolbar .workflow-filter-bar label {
  min-width: 130px;
}

.workflow-visual-section:fullscreen,
.architecture-section:fullscreen {
  background: #fff;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  padding: 1rem;
  width: 100vw;
}

.workflow-visual-section:fullscreen .workflow-canvas-workspace,
.architecture-section:fullscreen .architecture-workspace {
  flex: 1 1 auto;
  min-height: 0;
}

.workflow-visual-section:fullscreen .workflow-graph-viewport,
.architecture-section:fullscreen .architecture-canvas-viewport {
  height: 100% !important;
  min-height: 0;
}

.workflow-visual-section:fullscreen .workflow-inspector,
.architecture-section:fullscreen .architecture-inspector {
  min-height: 0;
  overflow-y: auto;
}

.architecture-empty-state {
  min-height: 220px;
}

@media (hover: none) {
  .architecture-node-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
}

/* Change proposals */
.change-proposal-page-header,
.change-proposal-details-header {
  align-items: center;
}

.change-proposal-details-header {
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.change-proposal-header-actions,
.change-proposal-actions,
.editor-policy-form,
.change-proposal-title-row,
.change-summary,
.change-proposal-view-controls,
.change-view-toggle,
.change-selector-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.editor-policy-form {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.7rem;
  padding: 0.38rem 0.45rem 0.38rem 0.7rem;
}

.editor-policy-form label {
  color: var(--gray-500);
  font-size: 0.7rem;
  font-weight: 720;
}

.editor-policy-form .form-select {
  min-width: 175px;
}

.change-proposal-list-section + .change-proposal-list-section {
  margin-top: 1.8rem;
}

.change-count {
  background: var(--gray-100);
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 0.7rem;
  font-weight: 740;
  padding: 0.18rem 0.48rem;
}

.change-proposal-list {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.85rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.change-proposal-row {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 1fr) auto minmax(250px, auto);
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.change-proposal-row + .change-proposal-row {
  border-top: 1px solid var(--gray-200);
}

.change-proposal-row:hover {
  background: var(--gray-25);
  color: inherit;
}

.change-proposal-row-main strong,
.change-proposal-row-main span {
  display: block;
}

.change-proposal-row-main strong { color: var(--navy); font-size: 0.9rem; }
.change-proposal-row-main span { color: var(--gray-500); font-size: 0.72rem; margin-top: 0.18rem; }
.change-proposal-statuses { display: flex; gap: 0.35rem; justify-content: flex-end; }

.proposal-badge,
.change-marker,
.proposal-change-label {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
  padding: 0.32rem 0.55rem;
  white-space: nowrap;
}

.proposal-badge { background: var(--gray-100); color: var(--gray-700); }
.lifecycle-readyforreview, .compatibility-compatible { background: var(--teal-soft); color: #087a70; }
.lifecycle-applied { background: #e7f6ec; color: #237a44; }
.lifecycle-rejected, .compatibility-incompatible { background: #fdebed; color: #a52e3b; }
.lifecycle-withdrawn, .compatibility-notevaluated, .compatibility-revalidationrequired { background: #fff3d5; color: #8a5b00; }
.change-marker.add, .change-add .proposal-change-label { background: #e7f6ec; color: #237a44; }
.change-marker.update, .change-update .proposal-change-label { background: var(--blue-soft); color: var(--blue-dark); }
.change-marker.remove, .change-remove .proposal-change-label { background: #fdebed; color: #a52e3b; }
.change-proposal-delta { display: flex; gap: 0.25rem; }
.compact-empty-state { min-height: 0; padding: 1rem; }

.change-proposal-form { max-width: 900px; }
.change-selector-form { background: #fff; border: 1px solid var(--gray-200); border-radius: 0.85rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; padding: 0.8rem; }
.change-selector-form label { color: var(--gray-700); display: grid; font-size: 0.72rem; font-weight: 720; gap: 0.25rem; min-width: 220px; }
.change-proposal-description { color: var(--gray-700); font-size: 0.84rem; margin: 0.55rem 0 0; max-width: 780px; }
.change-proposal-actions { justify-content: flex-end; }
.change-proposal-actions form { margin: 0; }
.change-proposal-action-row { display: flex; justify-content: flex-end; margin: 0 0 1.25rem; }
.change-proposal-conflict { align-items: start; display: grid; gap: 0.25rem; margin-bottom: 0.75rem; }

.change-proposal-review {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.95rem;
  box-shadow: var(--shadow-sm);
  padding: 0.85rem;
}

.change-proposal-review-toolbar { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 0.7rem; }
.change-view-toggle { background: var(--gray-100); border-radius: 0.55rem; padding: 0.2rem; }
.change-view-toggle button { background: transparent; border: 0; border-radius: 0.42rem; color: var(--gray-500); font-size: 0.72rem; font-weight: 720; padding: 0.4rem 0.65rem; }
.change-view-toggle button.active { background: #fff; box-shadow: var(--shadow-sm); color: var(--navy); }
.change-proposal-canvas-workspace { display: grid; gap: 0.85rem; grid-template-columns: minmax(0, 1fr) 280px; }
.change-proposal-canvas { background-color: var(--gray-50); background-image: radial-gradient(circle, #cfd7e3 1px, transparent 1px); background-size: 20px 20px; border: 1px solid var(--gray-200); border-radius: 0.75rem; cursor: grab; height: clamp(520px, calc(100dvh - 285px), 900px); overflow: hidden; position: relative; touch-action: none; user-select: none; }
.change-proposal-canvas.panning { cursor: grabbing; }
.change-proposal-stage { left: 0; position: absolute; top: 0; transform-origin: 0 0; }
.change-proposal-stage > svg, .change-proposal-stage > [data-proposal-nodes] { height: 100%; left: 0; position: absolute; top: 0; width: 100%; }
.change-proposal-stage > svg { overflow: visible; z-index: 1; }
.change-proposal-stage > [data-proposal-nodes] { pointer-events: none; z-index: 2; }
.proposal-node { background: #fff; border: 2px solid #cbd6e6; border-radius: 0.8rem; box-shadow: 0 7px 20px rgb(11 37 69 / 10%); cursor: pointer; display: flex; flex-direction: column; height: 112px; justify-content: center; padding: 1rem; pointer-events: auto; position: absolute; width: 220px; }
.proposal-node strong { color: var(--navy); font-size: 0.9rem; line-height: 1.25; margin-top: 0.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proposal-node.change-add { border-color: #46a36f; }
.proposal-node.change-update { border-color: var(--blue); }
.proposal-node.change-remove { border-color: var(--danger); border-style: dashed; opacity: 0.7; }
.proposal-node.proposal-clean-view .proposal-change-label { display: none; }
.proposal-change-label { align-self: flex-start; margin-bottom: 0.2rem; text-transform: uppercase; }
.proposal-edge-line { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.proposal-edge.change-add .proposal-edge-line { stroke: #46a36f; }
.proposal-edge.change-update .proposal-edge-line { stroke: var(--blue); }
.proposal-edge.change-remove .proposal-edge-line { stroke: var(--danger); stroke-dasharray: 7 6; opacity: 0.72; }
.proposal-edge-hit { cursor: pointer; fill: none; pointer-events: stroke; stroke: transparent; stroke-width: 20; }
.proposal-edge text { fill: var(--gray-700); font-size: 10px; font-weight: 740; paint-order: stroke; pointer-events: none; stroke: #fff; stroke-width: 5px; }
.proposal-inspector-differences, .change-difference-list { display: grid; gap: 0.6rem; margin: 0; }
.proposal-inspector-differences div, .change-difference-list div { display: grid; gap: 0.15rem; }
.proposal-inspector-differences dt, .change-difference-list dt { color: var(--gray-500); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; }
.proposal-inspector-differences dd, .change-difference-list dd { align-items: baseline; display: flex; flex-wrap: wrap; font-size: 0.76rem; gap: 0.35rem; margin: 0; overflow-wrap: anywhere; }
.change-proposal-items { margin-top: 1.5rem; }
.change-item-list { display: grid; gap: 0.65rem; }
.change-item-card { align-items: start; background: #fff; border: 1px solid var(--gray-200); border-left-width: 4px; border-radius: 0.75rem; display: grid; gap: 0.8rem; grid-template-columns: minmax(190px, 0.8fr) minmax(280px, 1.7fr) auto; padding: 0.85rem 1rem; }
.change-item-card.change-add { border-left-color: #46a36f; }
.change-item-card.change-update { border-left-color: var(--blue); }
.change-item-card.change-remove { border-left-color: var(--danger); }
.change-item-heading { display: grid; gap: 0.25rem; }
.change-item-heading .proposal-change-label { justify-self: start; }
.change-item-heading strong { color: var(--navy); font-size: 0.86rem; }
.change-item-heading > span:last-child { color: var(--gray-500); font-size: 0.7rem; }
.change-proposal-review:fullscreen { background: #fff; display: flex; flex-direction: column; height: 100vh; padding: 1rem; width: 100vw; }
.change-proposal-review:fullscreen .change-proposal-canvas-workspace { flex: 1 1 auto; min-height: 0; }
.change-proposal-review:fullscreen .change-proposal-canvas { height: 100%; min-height: 0; }
.change-proposal-review:fullscreen .proposal-inspector { min-height: 0; overflow-y: auto; }

@media (max-width: 1399.98px) {
  .workflow-data-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .change-proposal-row { grid-template-columns: 1fr; }
  .change-proposal-statuses { justify-content: flex-start; }
  .change-proposal-canvas-workspace { grid-template-columns: 1fr; }
  .change-proposal-review-toolbar { align-items: stretch; flex-direction: column; }
  .change-item-card { grid-template-columns: 1fr; }
  .change-proposal-header-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 991.98px) {
  .app-sidebar,
  .sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }

  .app-content-column,
  .sidebar-collapsed .app-content-column {
    margin-left: 0;
  }

  .sidebar-collapsed .sidebar-brand-row {
    justify-content: space-between;
    padding: 0 1rem 0 1.25rem;
  }

  .sidebar-collapsed .app-nav-link span,
  .sidebar-collapsed .app-nav-section-label,
  .sidebar-collapsed .sidebar-account-copy,
  .sidebar-collapsed .sidebar-toggle {
    display: initial;
  }

  .sidebar-collapsed .sidebar-brand-row .flowatlas-brand {
    height: auto;
    overflow: visible;
    width: 96px;
  }

  .sidebar-collapsed .sidebar-brand-row .flowatlas-brand-logo {
    max-width: 100%;
    transform: none;
    width: 100%;
  }

  .sidebar-collapsed .app-navigation {
    align-items: stretch;
    padding: 1.15rem 0.85rem;
  }

  .sidebar-collapsed .app-nav-link {
    justify-content: flex-start;
    padding: 0.68rem 0.82rem;
    width: auto;
  }

  .sidebar-collapsed .sidebar-account {
    display: grid;
    flex-direction: initial;
    margin: 0 0.85rem;
    padding: 0.85rem 0.45rem;
  }

  .mobile-nav-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    background: rgb(7 26 49 / 52%);
    border: 0;
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 180ms ease;
    z-index: 1030;
  }

  .mobile-nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .app-topbar {
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .topbar-title {
    flex: 1;
  }

  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-brand-panel {
    min-height: 230px;
    padding: 1.5rem 2rem 2rem;
  }

  .account-brand-message h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    max-width: 520px;
  }

  .architecture-workspace,
  .workflow-canvas-workspace {
    grid-template-columns: 1fr;
  }

  .architecture-canvas-toolbar {
    align-items: stretch;
  }

  .architecture-canvas-toolbar .architecture-filter-bar,
  .architecture-canvas-toolbar .architecture-canvas-controls {
    flex: 1 1 100%;
  }

  .architecture-canvas-toolbar .architecture-canvas-controls {
    justify-content: flex-start;
  }

  .workflow-canvas-toolbar {
    align-items: stretch;
  }

  .workflow-canvas-toolbar .workflow-filter-bar,
  .workflow-canvas-toolbar .workflow-heading-actions {
    flex: 1 1 100%;
  }

  .workflow-canvas-toolbar .workflow-heading-actions {
    justify-content: flex-start;
  }

  .architecture-inspector {
    min-height: 150px;
  }
}

@media (max-width: 767.98px) {
  .app-main {
    padding: 1.25rem 1rem 3rem;
  }

  .data-table-toolbar {
    align-items: stretch;
    justify-content: flex-start;
  }

  .data-table-toolbar-actions {
    justify-content: flex-start;
  }

  .dashboard-hero {
    min-height: 165px;
  }

  .dashboard-current {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .dashboard-facts {
    justify-content: space-between;
    width: 100%;
  }

  .dashboard-landscape-row {
    gap: 0.25rem 0.75rem;
    grid-template-columns: 1fr auto;
  }

  .dashboard-landscape-counts {
    grid-column: 1 / -1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .landscape-metrics {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .workflow-graph-viewport {
    height: 520px;
  }

  .workflow-details-header {
    align-items: stretch;
  }

  .workflow-details-actions {
    margin-top: 0.25rem;
  }

  .workflow-step-card,
  .workflow-transition-card {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .workflow-step-order {
    grid-row: 1;
  }

  .workflow-item-actions {
    width: 100%;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-header-actions .btn {
    align-self: flex-start;
  }

  .account-brand-panel {
    min-height: 190px;
  }

  .account-brand-message .eyebrow {
    display: none;
  }

  .account-content {
    padding: 2.5rem 1.25rem;
  }

  .toast-host {
    left: 1rem;
    right: 1rem;
  }

  .architecture-section {
    padding: 0.8rem;
  }

  .landscape-overview-header {
    align-items: stretch;
  }

  .infrastructure-swimlane {
    grid-template-columns: 1fr;
  }

  .infrastructure-swimlane > header {
    border-bottom: 1px solid var(--gray-200);
    border-right: 0;
  }

  .architecture-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .architecture-canvas-controls {
    width: 100%;
  }

  .architecture-filter-bar label {
    flex: 1 1 100%;
  }

  .architecture-canvas-viewport {
    height: 520px;
  }

  .node-context-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .canvas-inspector-drawer {
    width: calc(100% - 1.3rem);
  }
}

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

.data-table-toolbar-inline, .data-table-toolbar-inline .data-table-toolbar-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.data-table-toolbar-inline .data-table-facet { min-width: 10rem; }

.workflow-description {
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 85ch;
    margin: 0.9rem 0 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.workflow-page-actions, .workflow-heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.workflow-page-actions { margin: 1rem 0; }

.workflow-description-disclosure { margin-top: 0.25rem; }
.workflow-description-disclosure summary {
    color: var(--gray-500);
    cursor: pointer;
    font-size: 0.8rem;
    width: fit-content;
}
.workflow-description-disclosure .secondary-value {
    max-width: 65ch;
    white-space: pre-line;
    padding-top: 0.4rem;
}

.data-table-toolbar-inline .data-table-search-inline { width: 18rem; max-width: 100%; }
.runtime-run-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem; }
.runtime-run-filters > div { flex: 0 1 11rem; }
.runtime-run-filters > div:last-child { flex-basis: auto; }

.instrumentation-back { display: inline-block; margin-bottom: 1rem; }
.instrumentation-validation.validation-summary-valid { display: none; }
.instrumentation-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; max-width: 55rem; margin-bottom: 1.5rem; }
.instrumentation-actions .btn { align-self: flex-start; margin-top: auto; }
.runtime-section .table-responsive { box-shadow: none; margin-bottom: 0; }

.runtime-activity-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; font-size: .8rem; }
.runtime-activity-legend[hidden] { display: none; }
.activity-recent { color: #059669; }
.activity-today { color: #2563eb; }
.activity-older { color: #64748b; }
.runtime-activity-view .architecture-node { border: var(--activity-width, 2px) solid var(--activity-color, #94a3b8); }
.runtime-activity-view .architecture-edge { opacity: 1; stroke-width: var(--activity-width, 2.4px); }
.runtime-activity-view .architecture-node.canvas-dimmed { background: #fff; border-color: var(--activity-color); }
.runtime-activity-view .architecture-node.canvas-dimmed > *, .runtime-activity-view .architecture-edge-group.canvas-dimmed { opacity: 1; }
.runtime-activity-view .architecture-node-actions, .runtime-activity-view [data-canvas-save], .runtime-activity-view [data-canvas-auto-layout] { display: none; }
.runtime-node-activity { color: var(--activity-color); font-size: .75rem; font-weight: 700; }
