@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(111, 60, 207, 0.35);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

:root {
  --rm-font-sans: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --rm-font-display: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --rm-ink: #0f172a;
  --rm-muted: #6b7280;
  --rm-accent: #6f3ccf;
  --rm-accent-strong: #4f2aa6;
  --rm-accent-soft: #f0eaff;
  --rm-border: #e6e1f2;
  --rm-surface: #ffffff;
  --rm-surface-soft: #f6f4fb;
  --rm-shadow: 0 24px 55px rgba(39, 26, 84, 0.12);
  --rm-radius-lg: 20px;
  --rm-radius-md: 14px;
  --rm-card-max-height: 420px;
  --rm-motion-fast: 160ms;
  --rm-motion-base: 240ms;
  --rm-motion-slow: 420ms;
  --rm-motion-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rm-lift-shadow: 0 22px 44px rgba(31, 22, 74, 0.14);
}

@keyframes rm-page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rm-section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: var(--rm-font-sans);
  color: var(--rm-ink);
  background: radial-gradient(1200px circle at 10% -20%, rgba(143, 98, 255, 0.18), transparent 50%),
    radial-gradient(1000px circle at 100% 0%, rgba(231, 78, 176, 0.12), transparent 48%),
    var(--rm-surface-soft);
}

main > .container,
main > .container-fluid {
  animation: rm-page-enter var(--rm-motion-slow) var(--rm-motion-out) both;
}

.page-shell > *,
.ri-shell > *,
.sds-main > * {
  animation: rm-section-rise calc(var(--rm-motion-slow) + 80ms) var(--rm-motion-out) both;
}

.page-shell > *:nth-child(2),
.ri-shell > *:nth-child(2),
.sds-main > *:nth-child(2) {
  animation-delay: 40ms;
}

.page-shell > *:nth-child(3),
.ri-shell > *:nth-child(3),
.sds-main > *:nth-child(3) {
  animation-delay: 80ms;
}

.page-shell > *:nth-child(4),
.ri-shell > *:nth-child(4),
.sds-main > *:nth-child(4) {
  animation-delay: 120ms;
}

a,
.btn,
.btn-link,
.nav-link,
.dropdown-item,
.card,
.modal-content,
.page-hero,
.ri-hero,
.ri-stat-card,
.ri-banner,
.ri-form-section,
.ri-empty-state,
.ri-info-tile,
.ri-metric-card,
.ri-template-card,
.ri-run-card,
.ri-component-card,
.ri-component-table-wrap,
.ri-section-chip,
.ri-pill,
.form-control,
.form-select,
.form-check-input,
.table tbody tr,
.table tbody tr > * {
  transition:
    color var(--rm-motion-fast) ease,
    background-color var(--rm-motion-fast) ease,
    border-color var(--rm-motion-fast) ease,
    box-shadow var(--rm-motion-base) var(--rm-motion-out),
    transform var(--rm-motion-base) var(--rm-motion-out),
    opacity var(--rm-motion-fast) ease;
}

header {
  position: relative;
}

header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #4f2aa6 0%, #6f3ccf 45%, #b030b3 100%);
}

.navbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--rm-border);
  box-shadow: 0 12px 30px rgba(31, 22, 74, 0.08);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar .navbar-brand {
  font-family: var(--rm-font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2a1a63;
  font-size: 1.15rem;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar .nav-link {
  font-weight: 600;
  color: var(--rm-ink) !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--rm-accent) !important;
  transform: translateY(-1px);
}

.navbar .dropdown-menu {
  border-radius: 14px;
  border: 1px solid var(--rm-border);
  box-shadow: 0 18px 40px rgba(31, 22, 74, 0.14);
}

.navbar .rm-config-menu {
  min-width: 15rem;
  padding: 0.4rem;
}

.navbar .rm-nav-submenu {
  position: relative;
}

.navbar .rm-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 12px;
}

.navbar .rm-submenu-toggle::after {
  margin-left: auto;
  border-top: 0.32rem solid transparent;
  border-right: 0;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.32rem solid currentColor;
}

.navbar .rm-nav-submenu > .dropdown-menu {
  top: -0.4rem;
  left: calc(100% - 0.35rem);
  margin-top: 0;
  min-width: 18rem;
  padding: 0.4rem;
}

.navbar .rm-nav-submenu.show > .rm-submenu-toggle,
.navbar .rm-submenu-toggle:hover,
.navbar .rm-submenu-toggle:focus {
  background: var(--rm-accent-soft);
  color: var(--rm-accent);
}

.navbar .dropdown-item {
  font-weight: 600;
  border-radius: 12px;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--rm-accent-soft);
  color: var(--rm-accent);
  transform: translateX(4px);
}

.navbar .dropdown-item:active,
.navbar .dropdown-item.active {
  background: var(--rm-accent);
  color: #ffffff;
}

.footer {
  background: #ffffff;
  border-top: 1px solid var(--rm-border);
  box-shadow: 0 -8px 24px rgba(31, 22, 74, 0.06);
}

.card,
.modal-content {
  border-radius: var(--rm-radius-lg);
  border: 1px solid var(--rm-border);
  box-shadow: 0 16px 36px rgba(31, 22, 74, 0.08);
}

.form-control,
.form-select {
  border-radius: var(--rm-radius-md);
  border-color: var(--rm-border);
}

.form-control:hover,
.form-select:hover {
  border-color: #cdbdf7;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rm-accent);
  box-shadow: 0 0 0 0.18rem rgba(111, 60, 207, 0.18);
}

.table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-muted);
  background: #f5f2ff;
  border-bottom: 1px solid var(--rm-border);
}

.table tbody tr:hover > * {
  background: rgba(111, 60, 207, 0.06);
}

.table-striped tbody tr:hover > * {
  background: rgba(111, 60, 207, 0.07);
}

.table tbody tr:hover {
  transform: translateX(3px);
}

.rm-table-scroll .table tbody tr:hover,
.card.rm-scrollable > .card-body .table tbody tr:hover {
  transform: none;
}

.badge.bg-primary {
  background: var(--rm-accent) !important;
}

.page-shell {
  position: relative;
}

.page-hero {
  padding: 1.5rem 1.75rem;
  border-radius: var(--rm-radius-lg);
  border: 1px solid var(--rm-border);
  background: linear-gradient(135deg, #ffffff 0%, #f4efff 52%, #f5f4fb 100%);
  box-shadow: var(--rm-shadow);
}

.page-hero--compact {
  padding: 1rem 1.3rem;
}

.page-hero--compact .page-eyebrow {
  margin-bottom: 0.2rem;
}

.page-hero--compact .page-title {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}

.page-hero--compact .page-subtitle {
  font-size: 0.95rem;
}

.page-hero:hover,
.ri-hero:hover,
.ri-banner:hover,
.ri-form-section:hover,
.ri-empty-state:hover,
.ri-info-tile:hover,
.ri-metric-card:hover,
.ri-template-card:hover,
.ri-run-card:hover,
.ri-component-card:hover,
.ri-component-table-wrap:hover,
.card:hover:not(.ri-provision-wizard-card.is-modal-open),
.modal-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--rm-lift-shadow);
}

.page-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rm-muted);
  margin-bottom: 0.35rem;
}

.page-title {
  font-family: var(--rm-font-display);
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.page-subtitle {
  color: var(--rm-muted);
  margin-bottom: 0;
}

.ri-shell {
  display: grid;
  gap: 1.5rem;
}

.ri-hero {
  position: relative;
  padding: 1.75rem;
  border-radius: 28px;
  border: 1px solid rgba(111, 60, 207, 0.15);
  background:
    radial-gradient(600px circle at top right, rgba(111, 60, 207, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 239, 255, 0.96) 56%, rgba(248, 246, 255, 0.98) 100%);
  box-shadow: 0 26px 60px rgba(42, 26, 99, 0.14);
}

.ri-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: end;
}

.ri-hero-title {
  font-family: var(--rm-font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.02;
  margin: 0 0 0.55rem;
  color: #231451;
}

.ri-hero-subtitle {
  max-width: 60rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #5d6180;
  margin-bottom: 0;
}

.ri-hero-flags,
.ri-inline-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ri-inline-notes--compact {
  gap: 0.4rem;
}

.ri-hero-flags {
  margin-top: 1rem;
}

.ri-hero-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ri-action-form {
  margin: 0;
}

.ri-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ri-stat-card {
  border: 1px solid rgba(111, 60, 207, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem 1.05rem;
  min-height: 112px;
  display: grid;
  gap: 0.18rem;
  backdrop-filter: blur(8px);
}

.ri-stat-label,
.ri-info-label,
.ri-form-section-label,
.ri-section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b88;
}

.ri-stat-value {
  font-family: var(--rm-font-display);
  font-size: 1.65rem;
  line-height: 1.05;
  color: #1f1847;
}

.ri-stat-value--small {
  font-size: 1.15rem;
}

.ri-stat-copy {
  font-size: 0.86rem;
  color: #687089;
}

.ri-banner {
  border-radius: 18px;
  border: 1px solid transparent;
  padding: 0.95rem 1.1rem;
  display: grid;
  gap: 0.25rem;
  line-height: 1.5;
}

.ri-banner strong {
  font-size: 0.92rem;
}

.ri-banner--info {
  background: linear-gradient(135deg, #ecf9ff 0%, #f4fbff 100%);
  border-color: #bde7fb;
  color: #0c5774;
}

.ri-banner--success {
  background: linear-gradient(135deg, #eefdf5 0%, #f7fffb 100%);
  border-color: #b8e9cb;
  color: #12603d;
}

.ri-banner--danger {
  background: linear-gradient(135deg, #fff1f2 0%, #fff7f8 100%);
  border-color: #fecdd3;
  color: #b42318;
}

.ri-banner--muted {
  background: linear-gradient(135deg, #f3f4fb 0%, #fafbff 100%);
  border-color: #d6dbef;
  color: #48516d;
}

.ri-grid {
  display: grid;
  gap: 1.5rem;
}

.ri-grid--index {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  align-items: start;
}

.ri-grid--details-top {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  align-items: start;
}

.ri-grid--details-mid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  align-items: start;
}

.ri-side-stack {
  display: grid;
  gap: 1rem;
}

.ri-card.card {
  border-radius: 24px;
  border-color: rgba(111, 60, 207, 0.12);
  box-shadow: 0 18px 40px rgba(31, 22, 74, 0.08);
  overflow: hidden;
}

.ri-card--soft.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 255, 0.98) 100%);
}

.ri-card-header {
  background: transparent;
  border-bottom: 1px solid #ece6fb;
  padding: 1.2rem 1.25rem 0.95rem;
}

.ri-card-header--collapsible {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ri-card-header--inventory {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-card-header-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.ri-card-title {
  font-family: var(--rm-font-display);
  font-size: 1.18rem;
  color: #231451;
  margin: 0;
}

.ri-card-subtitle {
  margin: 0.35rem 0 0;
  color: #6a7189;
  line-height: 1.55;
}

.ri-card .card-body {
  padding: 1.25rem;
}

.ri-collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.ri-collapse-toggle::after {
  content: "▾";
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.ri-collapsible-card:not(.is-collapsed) .ri-collapse-toggle::after {
  transform: rotate(180deg);
}

.ri-collapsible-card.is-collapsed .ri-card-subtitle,
.ri-collapsible-card.is-collapsed .ri-section-subtitle {
  display: none;
}

.ri-form-section {
  border: 1px solid #ece6fb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
  padding: 1rem;
}

.ri-form-section-copy {
  color: #6c748e;
  line-height: 1.5;
  margin: 0.3rem 0 0.85rem;
}

.ri-source-footprint {
  padding: 0.95rem 1rem;
  border: 1px dashed #d8c9fb;
  border-radius: 16px;
  background: #faf7ff;
}

.ri-source-footprint .form-control[readonly] {
  background: rgba(255, 255, 255, 0.92);
}

.ri-code-input {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
}

.ri-form-check {
  min-height: auto;
  padding: 0.9rem 1rem 0.9rem 2rem;
  border: 1px solid #ece6fb;
  border-radius: 16px;
  background: #faf7ff;
  width: 100%;
}

.ri-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-form-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.ri-help-trigger {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ri-help-trigger svg {
  flex: 0 0 auto;
}

.ri-form-hint {
  max-width: 34rem;
  color: #6c748e;
  line-height: 1.55;
}

.ri-create-launcher-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-create-launcher-body > .btn {
  flex: 0 0 auto;
}

.ri-plan-preview {
  display: grid;
  gap: 1rem;
}

.ri-plan-list {
  display: grid;
  gap: 0.85rem;
}

.ri-plan-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e8e0fb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.ri-plan-order {
  min-width: 3rem;
  height: 2.4rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1edff;
  color: #4b34a3;
  font-weight: 700;
  align-self: start;
}

.ri-plan-copy {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.ri-plan-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-plan-title {
  margin: 0;
  font-family: var(--rm-font-display);
  font-size: 1rem;
  color: #231451;
}

.ri-plan-meta {
  display: grid;
  gap: 0.25rem;
  color: #67708b;
  line-height: 1.5;
}

.ri-plan-notes {
  margin: 0;
  color: #55607f;
  line-height: 1.55;
}

.ri-plan-deferred {
  padding: 0.85rem 0.95rem;
  border: 1px dashed #d8c9fb;
  border-radius: 16px;
  background: #faf7ff;
  color: #616985;
  line-height: 1.55;
}

.ri-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.ri-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.ri-steps p {
  color: #67708b;
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

.ri-step-index {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6f3ccf 0%, #4f2aa6 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(79, 42, 166, 0.24);
}

.ri-checklist {
  display: grid;
  gap: 0.85rem;
}

.ri-check-item {
  padding: 0.9rem 0.95rem;
  border: 1px solid #e8e4f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 0.25rem;
}

.ri-check-item span {
  color: #66708b;
  line-height: 1.5;
}

.ri-section {
  display: grid;
  gap: 1rem;
}

.ri-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-section-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-section-title {
  font-family: var(--rm-font-display);
  font-size: 1.5rem;
  color: #231451;
  margin: 0.15rem 0 0.3rem;
}

.ri-section-subtitle {
  color: #6a7189;
  margin: 0;
  line-height: 1.55;
}

.ri-section-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5dcfb;
  color: #4f2aa6;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(31, 22, 74, 0.06);
}

.ri-empty-state {
  padding: 1.6rem;
  border: 1px dashed #d8c9fb;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 246, 255, 0.98) 100%);
  color: #5d6480;
}

.ri-empty-state--compact {
  padding: 1.2rem;
}

.ri-empty-state h3 {
  font-family: var(--rm-font-display);
  font-size: 1.08rem;
  color: #231451;
  margin-bottom: 0.35rem;
}

.ri-empty-state p {
  margin: 0;
  line-height: 1.55;
}

.ri-cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.ri-cloud-card {
  display: grid;
  gap: 1.2rem;
  min-height: 100%;
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid #e6ddfb;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 245, 255, 0.96) 100%);
  box-shadow: 0 18px 34px rgba(31, 22, 74, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ri-cloud-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(31, 22, 74, 0.12);
}

.ri-cloud-card--disabled,
.ri-cloud-card--disabled:hover {
  transform: none;
  box-shadow: 0 14px 28px rgba(31, 22, 74, 0.06);
  opacity: 0.82;
  cursor: default;
}

.ri-cloud-card-top,
.ri-cloud-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ri-cloud-card-body {
  display: grid;
  gap: 0.5rem;
}

.ri-cloud-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  font-family: var(--rm-font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  border: 3px solid currentColor;
}

.ri-cloud-title {
  margin: 0;
  font-family: var(--rm-font-display);
  font-size: 1.55rem;
  color: #231451;
}

.ri-cloud-copy {
  margin: 0;
  color: #66708c;
  line-height: 1.6;
}

.ri-cloud-card-stats {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(80, 42, 166, 0.12);
}

.ri-cloud-card-stats > div {
  display: grid;
  gap: 0.2rem;
}

.ri-cloud-card-stats strong {
  font-size: 1.1rem;
  color: #231451;
}

.ri-cloud-stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b7f95;
}

.ri-cloud-card--azure {
  border-color: rgba(40, 102, 255, 0.22);
}

.ri-cloud-card--azure .ri-cloud-mark {
  color: #1550d6;
  background: radial-gradient(circle at top, rgba(21, 80, 214, 0.08), rgba(21, 80, 214, 0.02));
}

.ri-cloud-card--gcp {
  border-color: rgba(18, 180, 112, 0.22);
}

.ri-cloud-card--gcp .ri-cloud-mark {
  color: #0f9b63;
  background: radial-gradient(circle at top, rgba(15, 155, 99, 0.08), rgba(15, 155, 99, 0.02));
}

.ri-cloud-card--aws {
  border-color: rgba(214, 74, 41, 0.18);
}

.ri-cloud-card--aws .ri-cloud-mark {
  color: #c34f31;
  background: radial-gradient(circle at top, rgba(195, 79, 49, 0.08), rgba(195, 79, 49, 0.02));
}

.ri-template-grid,
.ri-run-list {
  display: grid;
  gap: 1rem;
}

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

.ri-template-table-shell {
  border: 1px solid #e7ddff;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  box-shadow: 0 14px 30px rgba(31, 22, 74, 0.07);
  overflow: hidden;
}

.ri-template-table {
  min-width: 1160px;
}

.ri-template-table thead th {
  background: #f7f3ff;
  color: #676f8d;
  border-bottom-color: #e6ddfb;
}

.ri-template-table td {
  vertical-align: top;
}

.ri-template-table tbody tr:hover > * {
  background: rgba(111, 60, 207, 0.04);
}

.ri-template-table tbody tr:hover {
  transform: none;
}

.ri-template-table-name {
  font-family: var(--rm-font-display);
  font-size: 1rem;
  color: #231451;
  margin-bottom: 0.2rem;
  overflow-wrap: anywhere;
}

.ri-template-table-copy,
.ri-template-table-source,
.ri-template-table-meta {
  display: grid;
  gap: 0.18rem;
  color: #68708b;
  line-height: 1.45;
}

.ri-template-table-source strong,
.ri-template-table-meta strong {
  color: #231451;
}

.ri-template-table-source code {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ri-template-table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ri-template-card,
.ri-run-card,
.ri-component-card {
  border: 1px solid #e7ddff;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  box-shadow: 0 14px 30px rgba(31, 22, 74, 0.07);
}

.ri-template-card {
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
}

.ri-template-top,
.ri-run-top,
.ri-component-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-template-top > :first-child,
.ri-run-top > :first-child,
.ri-component-header > :first-child {
  flex: 1 1 0;
  min-width: 0;
}

.ri-template-top > :last-child,
.ri-run-top > :last-child,
.ri-component-header > :last-child {
  flex: 0 0 auto;
  margin-left: auto;
}

.ri-template-name,
.ri-component-name {
  font-family: var(--rm-font-display);
  font-size: 1.1rem;
  color: #231451;
  margin: 0;
  overflow-wrap: anywhere;
}

.ri-template-copy,
.ri-run-copy {
  color: #67708b;
  line-height: 1.6;
  margin: 0;
}

.ri-provision-summary {
  display: grid;
  gap: 0.7rem;
}

.ri-provision-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-provision-summary__percent {
  font-weight: 800;
  color: #12603d;
}

.ri-provision-summary__track {
  height: 0.82rem;
}

.ri-provision-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: #61708a;
  font-size: 0.9rem;
}

.ri-progress-track {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: #e6defc;
  box-shadow: inset 0 0 0 1px rgba(125, 93, 196, 0.08);
}

.ri-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fe000 0%, #11c000 100%);
  box-shadow: 0 0 0 1px rgba(17, 192, 0, 0.06);
  transition: width 0.35s ease;
}

.ri-info-grid,
.ri-run-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ri-info-tile,
.ri-metric-card {
  border: 1px solid #ece6fb;
  border-radius: 18px;
  background: #ffffff;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.22rem;
}

.ri-info-tile strong,
.ri-metric-card strong,
.ri-run-requested strong,
.ri-component-meta-row strong {
  color: #231451;
}

.ri-info-tile span:not(.ri-info-label),
.ri-component-meta-row span:not(.ri-info-label),
.ri-run-requested span:not(.ri-info-label) {
  color: #68708b;
}

.ri-break,
.ri-info-tile code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ri-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.7rem;
}

.ri-metric-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7290;
}

.ri-template-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.ri-template-footer > div {
  padding-top: 0.9rem;
  border-top: 1px dashed #e7ddff;
  display: grid;
  gap: 0.18rem;
}

.ri-run-template {
  font-family: var(--rm-font-display);
  font-size: 1.02rem;
  color: #2c1b6e;
  text-decoration: none;
}

.ri-run-template:hover,
.ri-run-template:focus {
  color: var(--rm-accent);
}

.ri-run-card {
  padding: 1.05rem 1.1rem;
  display: grid;
  gap: 0.9rem;
}

#blueprintFlowModal .modal-body {
  padding-top: 1.25rem;
}

.ri-create-blueprint-modal .modal-content {
  border-radius: 24px;
  border-color: rgba(111, 60, 207, 0.16);
  box-shadow: 0 24px 54px rgba(31, 22, 74, 0.18);
}

.ri-create-blueprint-modal .modal-header,
.ri-create-blueprint-modal .modal-footer {
  border-color: #ece6fb;
}

.ri-create-blueprint-modal .modal-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 255, 0.9) 100%);
}

  .ri-run-target {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: #68708b;
}

.ri-run-requested {
  display: grid;
  gap: 0.15rem;
  min-width: 185px;
}

.ri-run-note,
.ri-component-note {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: #f7f8ff;
  color: #5f6886;
  border: 1px solid #e4e8f7;
  line-height: 1.55;
}

.ri-run-error {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: #fff1f2;
  color: #b42318;
  border: 1px solid #fecdd3;
  line-height: 1.55;
}

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

.ri-component-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-component-toolbar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ri-component-search .input-group-text {
  border-color: #ddd2fb;
  background: #f8f5ff;
  color: #655c86;
}

.ri-component-search .form-control,
.ri-component-search .btn {
  border-color: #ddd2fb;
}

.ri-component-search .form-control {
  min-width: 0;
}

.ri-component-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-workspace-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: 1.5rem 0 1rem;
  border: 1px solid #ddd2fb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(31, 22, 74, 0.08);
}

.ri-workspace-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f5a78;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ri-workspace-tab.is-active {
  background: linear-gradient(135deg, #5c33bb 0%, #4f2aa6 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(79, 42, 166, 0.24);
}

.ri-workspace-tab:not(.is-active):hover,
.ri-workspace-tab:not(.is-active):focus-visible {
  background: #f4efff;
  color: #33235c;
}

.ri-component-mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-component-mode-switch-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ri-component-mode-switch-search {
  flex: 1 1 28rem;
  min-width: min(100%, 20rem);
  max-width: 36rem;
}

.ri-history-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1 1 38rem;
}

.ri-history-toolbar .ri-component-search {
  width: min(100%, 40rem);
}

.ri-history-filter {
  width: min(100%, 14rem);
  border-color: #ddd2fb;
}

.ri-history-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-status-filter-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-status-filter-select {
  width: min(100%, 10rem);
  border-color: #ddd2fb;
}

.ri-history-resource-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.ri-component-table-shell {
  display: grid;
  gap: 0.9rem;
}

.ri-component-table-wrap {
  border: 1px solid #e7ddff;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  max-height: min(62vh, 48rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.ri-component-table {
  min-width: 1080px;
  margin-bottom: 0;
}

.ri-component-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f1ff;
  color: #645b86;
  border-bottom-color: #e4dafc;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0.9rem;
}

.ri-component-table tbody td {
  padding: 0.9rem;
  vertical-align: top;
  border-bottom-color: #ece6fb;
}

.ri-component-table tbody tr:hover td {
  background: #faf8ff;
}

.ri-component-table-name {
  font-family: var(--rm-font-display);
  font-size: 1rem;
  color: #231451;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.ri-component-col--select {
  width: 84px;
  min-width: 84px;
  text-align: center;
}

.ri-component-col--component {
  min-width: 260px;
}

.ri-component-col--type,
.ri-component-col--source {
  min-width: 220px;
}

.ri-component-col--sort {
  width: 90px;
  min-width: 90px;
}

.ri-component-col--notes {
  min-width: 280px;
}

.ri-component-col--actions {
  width: 96px;
  min-width: 96px;
}

.ri-provision-check {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.ri-provision-check .form-check-input {
  float: none;
  margin: 0;
  cursor: pointer;
}

.ri-provision-start {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: 1px solid #e7ddff;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
}

.ri-provision-start--wizard {
  margin-bottom: 0.15rem;
}

.ri-provision-start-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ri-card-header--wizard {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-wizard-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.ri-provision-wizard-card {
  margin-top: 1.5rem;
}

.ri-provision-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 16, 43, 0.52);
  backdrop-filter: blur(4px);
  z-index: 1040;
}

html.ri-modal-open,
body.ri-modal-open {
  overflow: hidden;
}

.ri-provision-wizard-card.is-modal-open {
  position: fixed;
  inset: 3vh 3vw;
  z-index: 1050;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  max-width: min(1180px, 94vw);
  width: 100%;
  max-height: 94vh;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 32px 90px rgba(19, 16, 43, 0.28);
}

.ri-provision-wizard-card.is-modal-open .card-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 255, 0.98) 100%);
}

.ri-provision-wizard-card.is-modal-open .card-body {
  overflow: auto;
}

.ri-review-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ri-review-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.ri-review-sidebar,
.ri-review-card {
  border: 1px solid #e7ddff;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  padding: 1rem;
}

.ri-review-sidebar {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.ri-review-list {
  display: grid;
  gap: 0.65rem;
  max-height: 46vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.ri-review-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e7ddff;
  border-radius: 16px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ri-review-list-item:hover,
.ri-review-list-item:focus-visible {
  border-color: #b598ff;
  box-shadow: 0 10px 24px rgba(79, 42, 166, 0.12);
  transform: translateY(-1px);
}

.ri-review-list-item.is-active {
  border-color: #4f2aa6;
  box-shadow: 0 12px 26px rgba(79, 42, 166, 0.15);
  background: linear-gradient(180deg, #fdfbff 0%, #f5efff 100%);
}

.ri-review-list-item-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.ri-review-list-item-copy strong {
  color: #251b59;
}

.ri-review-list-item-copy span {
  color: #687086;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.ri-review-card {
  display: grid;
  gap: 1rem;
}

.ri-review-edit-grid {
  margin-top: 0.1rem;
  padding-top: 1rem;
  border-top: 1px dashed #eadffc;
}

.ri-review-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-review-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.ri-review-title {
  margin: 0.25rem 0 0;
  color: #251b59;
  font-size: 1.45rem;
}

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

.ri-review-grid--confirm {
  margin-top: 1rem;
}

.ri-review-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #ede7fc;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.ri-review-field--full {
  grid-column: 1 / -1;
}

.ri-review-label {
  color: #6a6484;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ri-review-value {
  color: #2f3550;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ri-provision-wizard-card.is-modal-open .ri-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 1rem;
  padding-bottom: 0.2rem;
  background: linear-gradient(180deg, rgba(252, 251, 255, 0.2) 0%, rgba(252, 251, 255, 0.96) 24%, rgba(252, 251, 255, 1) 100%);
}

.ri-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ri-wizard-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #ded3fb;
  background: #f9f6ff;
  color: #6b6487;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ri-wizard-step.is-active {
  background: #4f2aa6;
  border-color: #4f2aa6;
  color: #ffffff;
}

.ri-wizard-step.is-complete {
  background: #eefbf3;
  border-color: #bde6cc;
  color: #12603d;
}

.ri-plan-table-shell {
  border: 1px solid #e7ddff;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
  overflow: auto;
}

.ri-plan-table-region {
  display: grid;
  gap: 0.9rem;
}

.ri-plan-table-shell--wizard {
  max-height: min(58vh, 34rem);
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.ri-plan-table {
  min-width: 760px;
  margin-bottom: 0;
}

.ri-plan-table thead th {
  background: #f6f1ff;
  color: #645b86;
  border-bottom-color: #e4dafc;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 0.9rem;
}

.ri-plan-table-shell--wizard .ri-plan-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.ri-plan-table tbody td {
  padding: 0.9rem;
  vertical-align: top;
  border-bottom-color: #ece6fb;
}

.ri-plan-table tbody tr:hover td {
  background: #faf8ff;
}

.ri-run-top--wizard {
  margin-bottom: 1rem;
}

.ri-form-actions--inline {
  justify-content: flex-start;
}

.ri-table-copy {
  color: #2f3550;
  line-height: 1.45;
}

.ri-table-copy--wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ri-table-copy--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.ri-status-cell {
  display: grid;
  gap: 0.55rem;
  min-width: 9rem;
}

.ri-status-progress {
  display: grid;
  gap: 0.35rem;
}

.ri-status-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}

.ri-status-progress__track {
  min-width: 8rem;
  height: 0.58rem;
}

.ri-table-number {
  display: inline-flex;
  min-width: 2.25rem;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #f1edff;
  color: #4b34a3;
  font-weight: 700;
}

.ri-table-muted {
  color: #7a8098;
}

.ri-component-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ri-component-pagination-status {
  color: #5f6886;
  font-size: 0.92rem;
}

.ri-plan-pagination {
  padding-bottom: 0.15rem;
}

.ri-component-modal .modal-content {
  border-radius: 24px;
  border-color: rgba(111, 60, 207, 0.16);
  box-shadow: 0 24px 54px rgba(31, 22, 74, 0.18);
}

.ri-component-modal .modal-header,
.ri-component-modal .modal-footer {
  border-color: #ece6fb;
}

.ri-modal-subtitle {
  margin: 0.35rem 0 0;
  color: #6a7189;
  line-height: 1.55;
}

.ri-modal-footer {
  justify-content: space-between;
  gap: 1rem;
}

.ri-modal-hint {
  max-width: 32rem;
  margin-right: auto;
}

.ri-modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.ri-pagination .page-link {
  border-radius: 999px;
  border: 1px solid #ddd2fb;
  color: #35245f;
  background: #ffffff;
}

.ri-pagination .page-item.active .page-link {
  background: var(--rm-accent);
  border-color: var(--rm-accent);
  color: #ffffff;
}

.ri-pagination .page-item.disabled .page-link {
  color: #98a2b3;
  background: #f8f7fc;
  border-color: #ece6fb;
}

.ri-component-card {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.ri-component-meta {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}

.ri-component-meta-row {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.ri-component-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.ri-component-header > :last-child {
  margin-left: 0;
}

.ri-component-actions {
  justify-self: end;
  align-self: start;
}

.ri-component-meta-row strong,
.ri-component-note {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ri-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ri-pill:hover,
.ri-section-chip:hover {
  transform: translateY(-1px);
}

.ri-pill--primary {
  background: #efe9ff;
  color: #5a31bf;
}

.ri-pill--success {
  background: #eaf8ee;
  color: #166534;
}

.ri-pill--warning {
  background: #fff6db;
  color: #9a6700;
}

.ri-pill--danger {
  background: #ffe8ea;
  color: #b42318;
}

.ri-pill--secondary {
  background: #edf0f7;
  color: #5d667f;
}

.ri-pill--outline {
  background: rgba(255, 255, 255, 0.72);
  color: #4e5370;
  border: 1px solid #ddd6f4;
}

.jira-panel {
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.jira-panel-header {
  border-bottom: none;
  background: transparent;
  font-family: var(--rm-font-display);
  font-size: 1rem;
}

.jira-panel-body {
  padding-top: 0.75rem;
}

.jira-form .form-label {
  font-weight: 600;
  color: var(--rm-ink);
}

.jira-form .form-select,
.jira-form .form-control {
  border-radius: var(--rm-radius-md);
  border-color: var(--rm-border);
  box-shadow: none;
}

.jira-issues-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.jira-issues-title {
  font-weight: 600;
  color: var(--rm-ink);
}

.jira-issues-meta {
  font-size: 0.8rem;
  color: var(--rm-muted);
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.jira-issues-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.jira-search {
  min-width: 210px;
  border-radius: 999px;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

.jira-status-filter {
  min-width: 160px;
  border-radius: 999px;
}

.jira-table {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .navbar .rm-config-menu {
    min-width: min(20rem, calc(100vw - 2rem));
  }

  .navbar .rm-nav-submenu > .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none;
    min-width: 100%;
    margin: 0.15rem 0 0.5rem;
    padding: 0.2rem 0 0.4rem 0.9rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .navbar .rm-nav-submenu.show > .dropdown-menu {
    display: block;
  }
}

.jira-table thead th {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--rm-border);
}

.jira-table tbody tr {
  border-bottom: 1px solid #eef2f7;
}

.jira-table tbody tr:hover {
  background: #f8fafc;
}

.jira-table td {
  vertical-align: middle;
}

.jira-issues-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.jira-pagination .page-item .page-link {
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--rm-ink);
}

.jira-pagination .page-item.active .page-link {
  background: var(--rm-accent);
  border-color: var(--rm-accent);
}

.jira-pagination .page-item.disabled .page-link {
  color: #94a3b8;
}

.rm-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-muted);
}

.rm-table tbody tr:hover {
  background: rgba(111, 60, 207, 0.06);
}

.rm-scaling-table th,
.rm-scaling-table td {
  vertical-align: middle;
}

.rm-reason-cell {
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 992px) {
  .rm-reason-cell {
    max-width: 200px;
  }
}

.btn-primary {
  background-color: var(--rm-accent);
  border-color: var(--rm-accent);
  box-shadow: 0 8px 16px rgba(111, 60, 207, 0.2);
}

.btn {
  transition:
    color var(--rm-motion-fast) ease,
    background-color var(--rm-motion-fast) ease,
    border-color var(--rm-motion-fast) ease,
    box-shadow var(--rm-motion-base) var(--rm-motion-out),
    transform var(--rm-motion-base) var(--rm-motion-out);
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--rm-accent-strong);
  border-color: var(--rm-accent-strong);
}

.btn-outline-primary {
  color: var(--rm-accent);
  border-color: var(--rm-accent);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--rm-accent);
  border-color: var(--rm-accent);
}

.jira-issues-appear {
  animation: rmFadeUp 0.4s ease-out;
}

@keyframes rmFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.card.rm-scrollable > .card-body {
  max-height: var(--rm-card-max-height);
  overflow: auto;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.card.rm-collapsed > .card-body {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

.card.rm-collapsible > .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rm-collapse-toggle {
  border-radius: 999px;
  padding: 0.1rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
}

.rm-cosmos-copy-review .card-header {
  align-items: flex-start;
}

.rm-cosmos-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.rm-cosmos-review-stat {
  border: 1px solid var(--rm-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem 0.9rem;
}

.rm-cosmos-review-stat span,
.rm-cosmos-label,
.rm-cosmos-route-endpoint span,
.rm-cosmos-dbpointer span {
  display: block;
  color: var(--rm-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rm-cosmos-review-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.rm-cosmos-preview-group {
  border: 1px solid var(--rm-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.rm-cosmos-preview-group + .rm-cosmos-preview-group {
  margin-top: 1rem;
}

.rm-cosmos-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.rm-cosmos-route-endpoint,
.rm-cosmos-dbpointer {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.75rem;
}

.rm-cosmos-route-endpoint strong,
.rm-cosmos-route-endpoint code,
.rm-cosmos-dbpointer code {
  display: block;
  overflow-wrap: anywhere;
}

.rm-cosmos-route-endpoint code,
.rm-cosmos-dbpointer code {
  margin-top: 0.15rem;
}

.rm-cosmos-route-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-muted);
  font-weight: 700;
}

.rm-cosmos-dbpointer {
  background: var(--rm-accent-soft);
  border-color: #d8cfee;
}

.rm-cosmos-container-preview {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.9rem;
}

.rm-cosmos-container-preview + .rm-cosmos-container-preview {
  margin-top: 0.9rem;
}

.rm-cosmos-container-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rm-cosmos-container-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.rm-cosmos-container-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.rm-cosmos-empty-sample {
  margin-top: 0.75rem;
  color: var(--rm-muted);
  font-size: 0.875rem;
}

.rm-cosmos-samples {
  margin-top: 0.75rem;
}

.rm-cosmos-samples > summary,
.rm-cosmos-sample > summary {
  cursor: pointer;
  color: var(--rm-accent);
  font-weight: 700;
}

.rm-cosmos-sample-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.rm-cosmos-sample {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.65rem 0.75rem;
}

.rm-cosmos-sample pre {
  max-height: 18rem;
  margin: 0.65rem 0 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #111827;
}

@media (max-width: 991.98px) {
  .rm-cosmos-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-cosmos-route {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-cosmos-route-arrow {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .rm-cosmos-review-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-cosmos-container-head {
    display: block;
  }

  .rm-cosmos-container-meta {
    justify-content: flex-start;
    margin-top: 0.6rem;
  }
}

.rm-clickable-row {
    cursor: pointer;
}

.rm-kebab-btn {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.rm-kebab-btn::after {
  display: none;
}

.rm-kebab-menu {
  min-width: 140px;
}

.table .dropdown {
  position: relative;
}

.table .dropdown-menu {
  z-index: 1085;
}

.table tr.rm-table-row-dropdown-open {
  position: relative;
  z-index: 20;
}

.table td.rm-table-dropdown-host,
.table th.rm-table-dropdown-host {
  position: relative;
  z-index: 21;
}

.rm-table-dropdown-menu-fixed {
  z-index: 1080;
  max-height: min(22rem, calc(100vh - 1rem));
  overflow-y: auto;
}

.rm-table-scroll {
  max-height: 70vh;
  overflow: auto;
  border-radius: var(--rm-radius-lg);
}

.rm-table-filter-row th {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rm-border);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.rm-table-filter-row .form-control {
  min-width: 120px;
}

.rm-releases-table-shell {
  max-height: calc(100vh - 235px);
  border: 1px solid var(--rm-border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(31, 22, 74, 0.08);
}

.rm-releases-table-shell thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f5f2ff;
}

.rm-releases-table-shell thead tr.rm-table-filter-row th {
  position: sticky;
  top: 40px;
  z-index: 5;
}

.rm-table-scroll.rm-table-scroll-dropdown-open {
  overflow: visible;
}

.rm-dropdown-overflow-open {
  overflow: visible !important;
}

.rm-table-scroll .table {
  margin-bottom: 0;
}

.rm-scaling-table-shell {
  max-height: calc(100vh - 265px);
}

.rm-scaling-table-shell thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 4;
  background-color: #f8f9fa;
}

.rm-scaling-table-shell thead tr.rm-table-filter-row th {
  position: sticky;
  top: 42px;
  z-index: 5;
  background-color: #f8f9fa;
}

@media (max-width: 992px) {
  .rm-releases-table-shell {
    max-height: calc(100vh - 285px);
  }

  .rm-releases-table-shell thead tr.rm-table-filter-row th {
    top: 38px;
  }

  .rm-scaling-table-shell {
    max-height: calc(100vh - 320px);
  }

  .rm-scaling-table-shell thead tr.rm-table-filter-row th {
    top: 38px;
  }
}

.rm-row-not-approved > td {
  background-color: #fff4d6 !important;
}

.rm-row-not-approved:hover > td {
  background-color: #ffedbf !important;
}

.rm-row-inprogress > td {
  background-color: #e7f2ff !important;
}

.rm-row-inprogress:hover > td {
  background-color: #d9e9ff !important;
}

.rm-row-failed > td {
  background-color: #fdebea !important;
}

.rm-row-failed:hover > td {
  background-color: #fbdad7 !important;
}

.rm-row-succeeded > td {
  background-color: #e7f7ee !important;
}

.rm-row-succeeded:hover > td {
  background-color: #d6f0e3 !important;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.rm-collapse-row {
  cursor: pointer;
}

.sds-shell {
  display: flex;
  min-height: auto;
  width: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  margin: 0;
}

.sds-sidebar {
  width: 180px;
  background: linear-gradient(180deg, #4f2aa6 0%, #6f3ccf 55%, #9b3bbf 100%);
  color: #ffffff;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(48, 46, 96, 0.18);
}

.sds-sidebar-brand {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sds-sidebar-title {
  font-family: var(--rm-font-display);
  font-size: 1.05rem;
}

.sds-sidebar-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.sds-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sds-nav-link {
  color: #f8f7ff;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  display: block;
}

.sds-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.sds-nav-link.active {
  background: rgba(255, 255, 255, 0.24);
}

.sds-nav-placeholder {
  opacity: 0.6;
  cursor: not-allowed;
}

.sds-nav-section {
  margin-top: 1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.sds-main {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
}

.sds-main-header {
  display: none;
}

.sds-title {
  font-family: var(--rm-font-display);
  font-size: 1.55rem;
  margin-bottom: 0.15rem;
}

.sds-subtitle {
  color: var(--rm-muted);
}

.sds-panel {
  border: 1px solid #e7ddff;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(31, 22, 74, 0.08);
}

.sds-panel-header {
  display: none;
}

.sds-panel-title {
  font-weight: 600;
}

.sds-panel-subtitle {
  font-size: 0.85rem;
  color: #6b6b88;
}

.sds-panel-control .form-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: #6b6b88;
}

.sds-panel-body {
  padding: 0.85rem 0.95rem 1rem;
  position: relative;
}

.sds-table-scroll {
  max-height: 280px;
  overflow: auto;
}

.sds-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ede7fb;
}

.sds-panel-toolbar .sds-panel-title {
  font-weight: 600;
}

.sds-panel-toolbar .sds-panel-subtitle {
  font-size: 0.85rem;
  color: #6b6b88;
}

.sds-plan-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sds-plan-toolbar-actions .btn {
  min-width: 108px;
}

.sds-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid #e5e7f3;
  margin-bottom: 0.75rem;
}

.sds-tab {
  border: none;
  background: none;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  color: #4b4b66;
  border-radius: 10px 10px 0 0;
}

.sds-tab.active {
  color: #5b31c0;
  background: #f5efff;
  border: 1px solid #dfd3ff;
  border-bottom-color: #f5efff;
}

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

.sds-field .form-label {
  font-weight: 600;
  color: #2f2f3a;
}

.sds-select-search {
  margin-bottom: 0.4rem;
}

.sds-consumer-create {
  margin-top: 0.4rem;
}

.sds-json-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #1f1f1f;
  color: #f8f8f2;
  border-radius: 12px;
  border: 1px solid #2d2d2d;
  min-height: 240px;
  max-height: 360px;
}

.sds-json-wrapper {
  position: relative;
}

.sds-json-editor--searchable {
  padding-top: 2.35rem;
}

.sds-json-search {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.4rem;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  z-index: 2;
}

.sds-json-search-input {
  width: 150px;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #f8f8f2;
}

.sds-json-search-input:focus {
  outline: none;
  border-color: #6f3ccf;
  box-shadow: 0 0 0 0.15rem rgba(111, 60, 207, 0.25);
}

.sds-json-search-count {
  font-size: 0.7rem;
  color: #cfcfe6;
  min-width: 2.5rem;
  text-align: center;
}

.sds-json-search-btn {
  border: 1px solid #3a3a3a;
  background: #1f1f1f;
  color: #f8f8f2;
  border-radius: 8px;
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
}

.sds-json-search-btn:hover {
  border-color: #6f3ccf;
  color: #ffffff;
}

.sds-json-editor:focus {
  background: #1f1f1f;
  color: #ffffff;
}

.sds-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 0.5rem;
  z-index: 2;
}

.sds-delete-warning {
  font-size: 0.85rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
}

.sds-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sds-loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

.sds-access-message {
  padding: 1rem;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 600;
}

.sds-log-detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sds-plan-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.sds-shell.sds-plan-focus-mode .sds-sidebar {
  display: none;
}

.sds-shell.sds-plan-focus-mode .sds-main {
  padding-left: 0;
  padding-right: 0;
}

.sds-shell.sds-plan-focus-mode .sds-plan-grid {
  grid-template-columns: 1fr;
}

.sds-shell.sds-plan-focus-mode .sds-plan-list {
  display: none;
}

.sds-shell.sds-plan-focus-mode .sds-plan-builder {
  border-color: #cfd8f7;
  box-shadow: 0 14px 30px rgba(31, 22, 74, 0.12);
}

.sds-shell.sds-plan-focus-mode .sds-panel {
  border-color: #d9dff2;
}

.sds-plan-list {
  background: #f8f5ff;
  border: 1px solid #e6d8ff;
  border-radius: 14px;
  padding: 0.75rem;
  min-height: 480px;
  max-height: 720px;
  display: flex;
  flex-direction: column;
}

.sds-plan-list-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.sds-plan-list-item {
  text-align: left;
  background: #ffffff;
  border: 1px solid #e3d8f5;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: #2a1a63;
  box-shadow: 0 8px 18px rgba(42, 26, 99, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.sds-plan-list-item:hover {
  transform: translateY(-1px);
  border-color: #c9b4ff;
  box-shadow: 0 12px 22px rgba(42, 26, 99, 0.12);
}

.sds-plan-list-item.active {
  border-color: #6f3ccf;
  background: #f0eaff;
  box-shadow: 0 12px 24px rgba(79, 42, 166, 0.2);
}

.sds-plan-list-name {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.sds-plan-list-meta {
  font-size: 0.75rem;
  color: #6b6b88;
  font-weight: 500;
}

.sds-plan-builder {
  border: 1px solid #e6d8ff;
  border-radius: 14px;
  padding: 0.85rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 22, 74, 0.08);
}

.sds-plan-items {
  margin-top: 0.5rem;
}

.sds-plan-region-toolbar {
  border: 1px solid #e6d8ff;
  border-radius: 12px;
  background: #faf7ff;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
}

.sds-plan-region-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sds-plan-region-filter-select {
  width: 220px;
}

.sds-plan-region-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.sds-plan-region-chip {
  border: 1px solid #d8c8fb;
  border-radius: 999px;
  background: #ffffff;
  color: #4b2d90;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
}

.sds-plan-region-chip:hover {
  border-color: #bda2ff;
  background: #f6f0ff;
}

.sds-plan-region-chip.active {
  background: #6f3ccf;
  border-color: #6f3ccf;
  color: #ffffff;
}

.sds-plan-clone-toolbar {
  border: 1px solid #d8e4ff;
  border-radius: 12px;
  background: #f7faff;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.7rem;
}

.sds-plan-clone-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #24448d;
  margin-bottom: 0.35rem;
}

.sds-plan-clone-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.sds-plan-clone-controls .form-select {
  width: 180px;
}

.sds-plan-clone-replace {
  margin: 0 0.25rem 0 0.05rem;
}

.sds-plan-table {
  min-width: 1760px;
  width: max-content;
  margin-bottom: 0;
}

.sds-plan-table-wrap {
  border: 1px solid #d8deef;
  border-radius: 10px;
  background: #ffffff;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.sds-plan-visibility-hint {
  font-size: 0.8rem;
  color: #52608f !important;
}

.sds-plan-table thead th {
  background: #eceafb;
  color: #4d5474;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #cfd2ea;
  padding: 0.55rem 0.5rem;
}

.sds-plan-table th,
.sds-plan-table td {
  vertical-align: top;
}

.sds-plan-table tbody td {
  border-bottom: 1px solid #e4e8f5;
  padding: 0.5rem 0.45rem;
}

.sds-plan-table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.sds-plan-table tbody tr:hover td {
  background: #f5f8ff;
}

.sds-plan-table .form-select,
.sds-plan-table .form-control {
  min-height: 2.15rem;
  border-color: #cdd4e8;
  color: #202741;
  font-size: 0.94rem;
}

.sds-plan-table .form-select:focus,
.sds-plan-table .form-control:focus {
  border-color: #7653d5;
  box-shadow: 0 0 0 0.12rem rgba(118, 83, 213, 0.2);
}

.sds-plan-table [data-field="region"] {
  min-width: 120px;
  font-weight: 600;
  background: #f7f3ff;
  border-color: #d3c7f4;
}

.sds-plan-table [data-field="type"] {
  min-width: 130px;
}

.sds-plan-table [data-field="operation"] {
  min-width: 120px;
}

.sds-plan-table [data-field="clientId"] {
  min-width: 120px;
}

.sds-plan-table [data-field="scope"] {
  min-width: 140px;
}

.sds-plan-table [data-field="consumerService"] {
  min-width: 180px;
}

.sds-plan-table [data-field="targetKey"] {
  min-width: 160px;
}

.sds-plan-table [data-field="eventGridEndpoint"] {
  min-width: 190px;
}

.sds-plan-table [data-field="eventGridKey"] {
  min-width: 130px;
}

.sds-plan-table [data-field="devTicketKey"] {
  min-width: 120px;
}

.sds-plan-payload {
  min-width: 280px;
  min-height: 96px;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #fbfdff;
  border-color: #c5d0ee !important;
}

.sds-plan-table [data-field="remove"] {
  min-width: 80px;
  width: 100%;
}

.sds-shell.sds-plan-focus-mode .sds-plan-builder,
.sds-shell.sds-plan-focus-mode .sds-plan-items {
  min-width: 0;
}

.sds-shell.sds-plan-focus-mode .sds-plan-table-wrap {
  max-width: calc(100vw - 2.2rem);
}

.sds-plan-region-chip {
  font-size: 0.8rem;
}

.sds-plan-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
  }

.rm-audit-detail-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.sds-plan-execution {
  border-top: 1px dashed #e5dcfb;
  padding-top: 0.75rem;
}

.sds-plan-execution-log {
  display: grid;
  gap: 0.6rem;
}

.sds-plan-execution-item {
  border: 1px solid #e6d8ff;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: #fdfbff;
  box-shadow: 0 10px 20px rgba(31, 22, 74, 0.08);
}

.sds-plan-execution-results {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #e5dcfb;
}

.sds-plan-execution-item-row {
  display: grid;
  gap: 0.25rem;
}

.sds-plan-execution-item-error {
  margin-left: 1.9rem;
  word-break: break-word;
}

.sds-plan-execution-item-details {
  margin-left: 1.9rem;
}

.sds-plan-execution-item-details-body {
  margin: 0.35rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #fff7fb;
  border: 1px solid #f2cade;
  color: #8a204b;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
}

.rm-audit-detail-body {
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 992px) {
  .ri-hero {
    padding: 1.35rem;
  }

  .ri-hero-grid,
  .ri-grid--index,
  .ri-grid--details-top,
  .ri-grid--details-mid {
    grid-template-columns: 1fr;
  }

  .ri-hero-actions {
    justify-content: flex-start;
  }

  .ri-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ri-form-actions,
  .ri-section-head,
  .ri-template-top,
  .ri-run-top,
  .ri-component-header {
    align-items: stretch;
  }

  .ri-card-header--collapsible,
  .ri-card-header--inventory,
  .ri-section-head-actions {
    align-items: stretch;
  }

  .ri-form-actions-group {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .ri-create-launcher-body {
    align-items: stretch;
  }

  .ri-create-launcher-body > .btn {
    width: 100%;
  }

  .ri-form-actions > .btn,
  .ri-template-top > .btn,
  .ri-hero-actions > .btn,
  .ri-hero-actions .ri-action-form > .btn {
    width: 100%;
  }

  .ri-form-actions-group > .btn:not(.ri-help-trigger) {
    flex: 1 1 0;
  }

  .ri-collapse-toggle {
    justify-content: center;
    width: 100%;
  }

  .ri-component-header {
    grid-template-columns: 1fr;
  }

  .ri-plan-item {
    grid-template-columns: 1fr;
  }

  .ri-plan-order {
    width: fit-content;
  }

  .ri-component-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .ri-component-mode-switch {
    width: 100%;
    align-items: stretch;
  }

  .ri-workspace-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ri-workspace-tab {
    width: 100%;
  }

  .ri-component-mode-switch-search {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .ri-history-toolbar .ri-component-search {
    width: 100%;
  }

  .ri-history-filter,
  .ri-history-toolbar-actions {
    width: 100%;
  }

  .ri-history-toolbar-actions > .btn {
    width: 100%;
  }

  .ri-component-toolbar-actions {
    width: 100%;
  }

  .ri-component-toolbar-actions > .btn,
  .ri-component-toolbar-actions > .ri-action-form,
  .ri-component-toolbar-actions > .ri-action-form > .btn {
    width: 100%;
  }

  .ri-component-actions {
    justify-self: stretch;
  }

  .ri-component-actions > .btn {
    width: 100%;
  }

  .ri-component-table-wrap {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
  }

  .ri-provision-start,
  .ri-card-header--wizard,
  .ri-provision-start-actions {
    align-items: stretch;
  }

  .ri-wizard-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ri-provision-start-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ri-wizard-header-actions > .btn,
  .ri-wizard-header-actions > .ri-wizard-steps {
    width: 100%;
  }

  .ri-provision-start-actions > .btn,
  .ri-provision-start-actions > .ri-section-chip {
    width: 100%;
    justify-content: center;
  }

  .ri-wizard-steps {
    width: 100%;
  }

  .ri-review-wizard-steps {
    width: 100%;
  }

  .ri-wizard-step {
    flex: 1 1 0;
    justify-content: center;
  }

  .ri-provision-wizard-card.is-modal-open {
    inset: 1.25rem 0.75rem;
    max-width: none;
    max-height: calc(100vh - 2.5rem);
  }

  .ri-review-layout,
  .ri-review-grid {
    grid-template-columns: 1fr;
  }

  .ri-review-list {
    max-height: 28vh;
  }

  .ri-review-inline-actions {
    align-items: stretch;
  }

  .ri-plan-table {
    min-width: 640px;
  }

  .ri-plan-table-shell--wizard {
    max-height: min(48vh, 28rem);
  }

  .ri-component-pagination {
    align-items: stretch;
  }

  .ri-modal-footer-actions {
    width: 100%;
    margin-left: 0;
  }

  .ri-modal-footer-actions > .btn {
    flex: 1 1 0;
  }

  .ri-provision-wizard-card.is-modal-open .ri-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ri-provision-wizard-card.is-modal-open .ri-form-actions > .btn {
    width: 100%;
  }

  .ri-run-requested {
    min-width: 0;
  }

  .sds-shell {
    flex-direction: column;
  }

  .sds-sidebar {
    width: 100%;
    border-radius: 14px;
  }

  .sds-plan-grid {
    grid-template-columns: 1fr;
  }

  .sds-plan-list {
    min-height: auto;
    max-height: none;
  }

  .sds-plan-region-filter-select {
    width: 100%;
  }

  .sds-plan-clone-controls .form-select {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .ri-hero-stats {
    grid-template-columns: 1fr;
  }

  .ri-template-footer,
  .ri-info-grid,
  .ri-run-meta,
  .ri-component-grid,
  .ri-template-grid {
    grid-template-columns: 1fr;
  }

  .ri-card .card-body,
  .ri-card-header,
  .ri-template-card,
  .ri-run-card,
  .ri-component-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.infra-shell {
  display: grid;
  gap: 1.5rem;
}

.infra-banner {
  margin-bottom: 0;
}

.infra-hero {
  display: grid;
  gap: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(111, 60, 207, 0.16), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 255, 0.96));
}

.infra-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.infra-stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(111, 60, 207, 0.12);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 32px rgba(31, 22, 74, 0.08);
}

.infra-stat-card__label,
.infra-subtle-copy {
  color: var(--rm-muted);
  font-size: 0.86rem;
}

.infra-stat-card__value {
  display: block;
  font-family: var(--rm-font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0.35rem 0 0.25rem;
}

.infra-stat-card__value--small {
  font-size: 1rem;
  word-break: break-word;
}

.infra-card .card-body {
  padding: 1.4rem 1.5rem;
}

.infra-section-title {
  font-family: var(--rm-font-display);
  font-size: 1.1rem;
}

.infra-section-copy {
  color: var(--rm-muted);
  max-width: 70rem;
}

.infra-filter-card__hint {
  max-width: 24rem;
  color: var(--rm-muted);
  font-size: 0.9rem;
}

.infra-feedback {
  margin-bottom: 0;
}

.infra-loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rm-muted);
  font-size: 0.95rem;
}

.infra-empty-state {
  padding: 2.6rem 1rem;
  border: 1px dashed #cdbdf7;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
}

.infra-empty-state h3 {
  font-family: var(--rm-font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.infra-app-list {
  display: grid;
  gap: 1.5rem;
}

.infra-app-card {
  border: 1px solid rgba(111, 60, 207, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 251, 0.96));
  box-shadow: 0 16px 34px rgba(31, 22, 74, 0.08);
  padding: 1.3rem 1.35rem;
}

.infra-app-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.infra-app-card__title {
  font-family: var(--rm-font-display);
  font-size: 1.2rem;
}

.infra-summary-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.infra-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  background: rgba(111, 60, 207, 0.08);
  color: #38245f;
  font-size: 0.88rem;
}

.infra-app-card__body {
  display: grid;
  gap: 1.25rem;
}

.infra-detail-section {
  border-top: 1px solid rgba(111, 60, 207, 0.1);
  padding-top: 1rem;
}

.infra-detail-section h4 {
  font-family: var(--rm-font-display);
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.infra-scale-form__row {
  display: grid;
  grid-template-columns: auto minmax(0, 92px) auto minmax(0, 92px) auto;
  align-items: center;
  gap: 0.65rem;
}

.infra-scale-readonly {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.infra-scale-rule-table td,
.infra-scale-rule-table th,
.infra-revision-table td,
.infra-revision-table th {
  vertical-align: top;
}

.infra-raw-json,
.infra-log-content {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #111827;
  color: #e5edf8;
  font-size: 0.83rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.infra-replica-row > td {
  background: rgba(111, 60, 207, 0.04);
}

.infra-replica-panel {
  display: grid;
  gap: 1rem;
}

.infra-replica-card {
  border: 1px solid rgba(111, 60, 207, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
}

.infra-log-tail-select {
  width: 6rem;
}

@media (max-width: 992px) {
  .infra-hero__stats,
  .infra-app-card__header {
    grid-template-columns: 1fr;
  }

  .infra-scale-readonly {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .infra-card .card-body,
  .infra-app-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .infra-scale-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .infra-scale-form__row .btn {
    grid-column: 1 / -1;
  }

  .infra-hero__stats {
    grid-template-columns: 1fr;
  }
}

.infra-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 246, 255, 0.98) 100%);
}

.infra-inventory-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: clamp(26rem, calc(100vh - 19rem), 46rem);
}

.infra-inventory-card .card-body > .d-flex {
  margin-bottom: 0 !important;
}

.infra-filter-card {
  overflow: hidden;
}

.infra-page-title {
  font-family: var(--rm-font-display);
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  color: #231451;
  margin: 0;
}

.infra-filter-card__hint {
  display: grid;
  gap: 0.35rem;
  max-width: 26rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e8e0fb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #5f6681;
  font-size: 0.9rem;
  line-height: 1.5;
}

.infra-operation-progress {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e5dcfb;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 245, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(31, 22, 74, 0.08);
}

.infra-operation-progress__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.infra-operation-progress__title {
  color: #231451;
  font-weight: 700;
}

.infra-operation-progress__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #ddd2fa;
  background: #ffffff;
  color: #4f2aa6;
  font-weight: 700;
  font-size: 0.84rem;
}

.infra-operation-progress__track {
  height: 0.72rem;
  border-radius: 999px;
  background: #ece6fb;
  overflow: hidden;
}

.infra-operation-progress__track .progress-bar {
  background: linear-gradient(90deg, #6f3ccf 0%, #4f2aa6 100%);
}

.infra-operation-progress__track .progress-bar.bg-success {
  background: linear-gradient(90deg, #12905b 0%, #0f7a4d 100%) !important;
}

.infra-operation-progress__track .progress-bar.bg-warning {
  background: linear-gradient(90deg, #d38a00 0%, #b47300 100%) !important;
}

.infra-operation-progress__track .progress-bar.bg-danger {
  background: linear-gradient(90deg, #d04747 0%, #b02f2f 100%) !important;
}

.infra-operation-progress__note {
  color: #6b7280;
  font-size: 0.83rem;
  line-height: 1.45;
}

.infra-inventory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.infra-inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #e5dcfb;
  background: #f7f3ff;
  color: #5f6681;
  font-size: 0.82rem;
}

.infra-inline-stat strong {
  color: #231451;
  font-weight: 700;
}

.infra-inventory-table-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  border: 1px solid #e7defb;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(31, 22, 74, 0.08);
}

.infra-inventory-table-wrap > .table-responsive {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.infra-bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1rem 0;
  border-bottom: 1px solid #eee8fb;
  background: linear-gradient(180deg, rgba(248, 245, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.infra-bulk-toolbar__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.infra-bulk-toolbar__title {
  color: #231451;
  font-weight: 700;
}

.infra-bulk-scale-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0;
}

.infra-bulk-scale-form .form-control {
  width: 7rem;
}

.infra-app-table {
  min-width: 1120px;
  margin-bottom: 0;
}

.infra-app-table__selection {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
}

.infra-app-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f5ff;
  border-bottom-color: #e7defb;
  white-space: nowrap;
}

.infra-app-table tbody td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid #eee8fb;
  vertical-align: middle;
}

.infra-app-row {
  cursor: pointer;
}

.infra-app-row:hover {
  transform: none;
}

.infra-app-row--selected > td {
  background: rgba(111, 60, 207, 0.08);
}

.infra-app-row:focus-visible {
  outline: 2px solid rgba(111, 60, 207, 0.35);
  outline-offset: -2px;
}

.infra-app-row > td:last-child {
  width: 1%;
  white-space: nowrap;
}

.infra-app-cell__title {
  font-size: 1rem;
  font-weight: 700;
  color: #231451;
  overflow-wrap: anywhere;
}

.infra-app-cell__meta {
  margin-top: 0.18rem;
  color: #69718a;
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.infra-app-details-body {
  display: grid;
  gap: 1rem;
}

.infra-modal-section {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid #ece6fb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 100%);
}

.infra-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.infra-detail-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #ece6fb;
  border-radius: 16px;
  background: #ffffff;
}

.infra-detail-card__label {
  color: #69718a;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.infra-detail-card__value {
  color: #231451;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.infra-scale-form {
  display: grid;
  gap: 0.55rem;
}

.infra-scale-form__row {
  display: grid;
  grid-template-columns: auto minmax(0, 92px) auto minmax(0, 92px) auto;
  align-items: center;
  gap: 0.65rem;
}

.infra-scale-readonly {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.infra-scale-rule-table,
.infra-revision-table {
  min-width: 900px;
}

.infra-scale-rule-table td,
.infra-scale-rule-table th,
.infra-revision-table td,
.infra-revision-table th {
  vertical-align: top;
}

.infra-replica-row > td {
  padding: 0 !important;
  background: rgba(111, 60, 207, 0.04);
}

.infra-replica-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.infra-replica-list {
  display: grid;
  gap: 0.85rem;
}

.infra-replica-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(111, 60, 207, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

.infra-replica-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.infra-replica-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.infra-container-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.infra-container-tile {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #ede7fb;
  border-radius: 14px;
  background: #fcfbff;
}

.infra-container-tile__name {
  color: #231451;
  font-weight: 700;
}

.infra-container-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.infra-container-tile__actions {
  display: flex;
  justify-content: flex-end;
}

.infra-replica-empty {
  padding: 0.9rem 1rem;
  border: 1px dashed #d8c9fb;
  border-radius: 14px;
  background: #ffffff;
  color: #69718a;
}

.infra-log-content {
  min-height: 18rem;
  max-height: 60vh;
  overflow: auto;
}

.infra-detail-table {
  margin-bottom: 0;
}

.infra-detail-table td,
.infra-detail-table th {
  border-color: #eee8fb;
  vertical-align: top;
}

.infra-detail-table td:last-child,
.infra-detail-table th:last-child {
  white-space: nowrap;
}

.infra-inventory-card .infra-empty-state {
  flex: 1 1 auto;
  display: grid;
  place-content: center;
}

@media (max-width: 992px) {
  .infra-filter-card__hint {
    max-width: none;
    width: 100%;
  }

  .infra-bulk-toolbar {
    align-items: stretch;
  }

  .infra-bulk-scale-form {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .infra-inventory-card .card-body {
    min-height: auto;
  }

  .infra-operation-progress {
    padding: 0.9rem;
  }

  .infra-card .card-body {
    padding: 1rem;
  }

  .infra-bulk-toolbar {
    padding: 0.9rem 0.9rem 0;
  }

  .infra-bulk-scale-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .infra-bulk-scale-form .infra-inline-stat,
  .infra-bulk-scale-form .btn {
    grid-column: 1 / -1;
  }

  .infra-bulk-scale-form .form-control {
    width: 100%;
  }

  .infra-scale-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .infra-scale-form__row label {
    margin-bottom: 0;
  }

  .infra-scale-form__row .btn {
    grid-column: 1 / -1;
  }

  .infra-modal-section {
    padding: 0.9rem;
  }
}

.infra-thumbprint-input {
  font-family: var(--bs-font-monospace);
  letter-spacing: 0;
}

.infra-thumbprint {
  display: inline-block;
  max-width: 19rem;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.infra-cert-update-toolbar {
  align-items: flex-start;
  padding-bottom: 1rem;
}

.infra-cert-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.infra-cert-keyvault-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) minmax(12rem, 1fr) minmax(12rem, 1fr);
  gap: 0.85rem;
  width: 100%;
}

.infra-cert-binding-table {
  min-width: 1280px;
}

.infra-cert-result-table {
  min-height: 0;
}

.infra-cert-row--source > td {
  background: rgba(255, 247, 230, 0.72);
}

.infra-cert-row--target > td {
  background: rgba(235, 250, 242, 0.72);
}

@media (max-width: 991.98px) {
  .infra-cert-keyvault-grid {
    grid-template-columns: 1fr;
  }

  .infra-cert-options {
    justify-content: flex-start;
  }
}
