:root {
  --bg-top: #f0f6ff;
  --bg-mid: #e8eef8;
  --bg-bottom: #f6f9ff;
  --panel: #ffffff;
  --panel-soft: #f3f8ff;
  --ink: #0a1c32;
  --ink-soft: #2e4764;
  --muted: #556a84;
  --line: #d3dfef;
  --line-strong: #bfd0e6;
  --brand-1: #0d2e59;
  --brand-2: #134d88;
  --brand-3: #0f82ad;
  --brand-soft: #e3f2ff;
  --accent: #ffb347;
  --success: #147a4d;
  --warning: #9a6800;
  --danger: #aa1f39;
  --info: #16549d;
  --shadow-lg: 0 16px 40px rgba(7, 27, 51, 0.12);
  --shadow-md: 0 10px 22px rgba(8, 32, 60, 0.08);
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;
  --tone-cyan: #1d88b8;
  --tone-emerald: #1f8f6b;
  --tone-amber: #b07a1f;
  --tone-coral: #af5f49;
  --tone-indigo: #2e5f9c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 360px at 0% 0%, rgba(59, 142, 236, 0.18), transparent 65%),
    radial-gradient(1200px 420px at 100% -10%, rgba(47, 203, 181, 0.1), transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
}

body.modal-open {
  overflow: hidden;
}

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

.shell-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image: linear-gradient(to right, rgba(14, 53, 99, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 53, 99, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.36), transparent 70%);
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  filter: blur(95px);
  opacity: 0.32;
  z-index: -2;
}

.bg-orb-a {
  width: 460px;
  height: 460px;
  top: -170px;
  left: -130px;
  background: #4ca8ff;
}

.bg-orb-b {
  width: 520px;
  height: 520px;
  top: 90px;
  right: -220px;
  background: #4be4d6;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.8rem 1rem 0.62rem;
  border-bottom: 1px solid rgba(119, 166, 211, 0.34);
  background:
    linear-gradient(135deg, rgba(5, 22, 44, 0.98), rgba(11, 47, 87, 0.95) 44%, rgba(17, 86, 123, 0.92)),
    radial-gradient(circle at top right, rgba(94, 189, 255, 0.18), transparent 34%);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 38px rgba(4, 20, 39, 0.24);
  transform: translateZ(0);
  will-change: transform;
  transition:
    padding 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: auto 1.15rem 0 1.15rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 170, 217, 0), rgba(120, 170, 217, 0.5), rgba(120, 170, 217, 0));
  opacity: 0.82;
  pointer-events: none;
}

.topbar-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(760px, 1.38fr);
  align-items: stretch;
  gap: 0.62rem 0.82rem;
  transition: gap 220ms ease;
}

.topbar-public .topbar-inner,
.topbar-inner-public {
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
}

.topbar-public .brand-wrap {
  padding: 0.58rem 0.72rem;
}

.topbar-public .brand {
  font-size: 1.38rem;
}

.topbar-public .brand-sub {
  font-size: 0.72rem;
}

.topbar-public .tag-chip {
  font-size: 0.62rem;
  padding: 0.08rem 0.4rem;
}

.brand-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 0.78rem 0.9rem;
  border-radius: 1.08rem;
  border: 1px solid rgba(142, 189, 232, 0.34);
  background:
    linear-gradient(155deg, rgba(6, 30, 57, 0.86), rgba(10, 48, 84, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(233, 245, 255, 0.12),
    0 20px 36px rgba(3, 16, 32, 0.26);
  transition:
    padding 220ms ease,
    border-radius 220ms ease,
    box-shadow 220ms ease;
}

.brand-wrap::before {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -92px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 207, 218, 0.28), rgba(93, 207, 218, 0));
  pointer-events: none;
}

.brand-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
  width: 100%;
  transition: gap 220ms ease;
}

.brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.26rem;
  min-width: 0;
  transition: gap 220ms ease;
}

.brand-meta-cluster {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.36rem;
  transition: gap 220ms ease;
}

.brand {
  color: #f4f8ff;
  text-decoration: none;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.22px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  transition: font-size 220ms ease;
}

.brand-datetime {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(150, 202, 241, 0.5);
  background: linear-gradient(155deg, rgba(6, 36, 68, 0.94), rgba(13, 89, 144, 0.72));
  padding: 0.12rem 0.46rem;
  box-shadow:
    inset 0 0 0 1px rgba(213, 233, 252, 0.1),
    0 10px 18px rgba(4, 22, 42, 0.24);
  transition:
    gap 220ms ease,
    padding 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.brand-datetime::before {
  content: "";
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: #4fe0c6;
  box-shadow: 0 0 8px rgba(79, 224, 198, 0.75);
}

.brand-date {
  color: #cfe3fb;
  font-size: 0.6rem;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  font-weight: 800;
  transition: font-size 220ms ease;
}

.brand-time {
  color: #f3f9ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18px;
  transition: font-size 220ms ease;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  max-height: 3rem;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    margin 220ms ease;
}

.brand-sub {
  margin: 0;
  color: #c0d9f3;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.24;
  transition: font-size 220ms ease;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.11rem 0.48rem;
  border: 1px solid rgba(255, 206, 132, 0.56);
  background: linear-gradient(145deg, rgba(110, 76, 18, 0.38), rgba(186, 129, 29, 0.22));
  color: #ffe1b2;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.34px;
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    font-size 220ms ease,
    padding 220ms ease;
}

.topnav {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.topnav-public {
  width: auto;
  justify-content: flex-end;
}

.topnav-suite {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  align-items: stretch;
  gap: 0.56rem;
  transition: gap 220ms ease;
}

.topnav-primary-shell,
.topnav-auth-shell {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.62rem 0.72rem;
  border-radius: 1.02rem;
  border: 1px solid rgba(143, 188, 229, 0.34);
  background:
    linear-gradient(160deg, rgba(5, 27, 51, 0.54), rgba(8, 45, 80, 0.34)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.12),
    0 18px 30px rgba(3, 16, 32, 0.18);
  transition:
    padding 220ms ease,
    border-radius 220ms ease,
    box-shadow 220ms ease,
    gap 220ms ease;
}

.topnav-auth-shell {
  min-width: 222px;
}

.topbar-public .topnav-auth-shell {
  min-width: 0;
  width: auto;
  align-self: center;
  padding: 0.48rem 0.54rem;
}

.topbar-public .topnav-auth-copy {
  display: none;
}

.topbar-public .topnav-auth {
  justify-content: center;
}

.topbar-public .topnav-auth .button {
  min-width: 132px;
}

.topnav-auth-copy {
  display: grid;
  gap: 0.12rem;
}

.topnav-auth-title {
  color: #eef7ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.topnav-auth-meta {
  color: #b4d2ef;
  font-size: 0.7rem;
  line-height: 1.24;
}

.topnav-shell-label {
  margin: 0;
  color: #9ec7ee;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.38px;
  text-transform: uppercase;
}

.topnav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
  transition: gap 220ms ease;
}

.topnav-primary .button {
  min-height: 2.24rem;
  border-radius: 0.82rem;
  padding: 0.36rem 0.76rem;
  font-size: 0.9rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 20px rgba(7, 28, 48, 0.18);
  transition:
    min-height 220ms ease,
    padding 220ms ease,
    border-radius 220ms ease,
    font-size 220ms ease;
}

.button-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.96rem;
  height: 0.96rem;
  margin-right: 0.16rem;
  flex: 0 0 auto;
}

.button-inline-icon svg {
  width: 0.96rem;
  height: 0.96rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-security {
  padding-inline: 0.68rem 0.8rem;
}

.topnav-primary .button-soft {
  color: #194c7a;
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(224, 238, 251, 0.95));
  border: 1px solid rgba(191, 214, 236, 0.92);
}

.topnav-primary .button-soft.is-active {
  border-color: rgba(125, 185, 226, 0.9);
  background: linear-gradient(180deg, #f2f9ff, #d6eafb);
  color: #0f4a78;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 22px rgba(11, 68, 110, 0.18);
}

.topnav-primary .button-primary {
  border: 1px solid rgba(126, 199, 247, 0.34);
  background: linear-gradient(145deg, #1481cd, #0f629f 56%, #0d4c83);
}

.topnav-session {
  display: flex;
  align-items: stretch;
  padding: 0.62rem 0.72rem;
  border-radius: 1.02rem;
  border: 1px solid rgba(143, 188, 229, 0.34);
  background:
    linear-gradient(165deg, rgba(6, 26, 50, 0.74), rgba(10, 56, 95, 0.46)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.1),
    0 18px 30px rgba(4, 19, 37, 0.24);
  transition:
    padding 220ms ease,
    border-radius 220ms ease,
    box-shadow 220ms ease;
}

.topnav-auth {
  justify-content: flex-start;
}

.top-user-menu {
  position: relative;
  width: 100%;
}

.top-user-menu summary {
  list-style: none;
}

.top-user-menu summary::-webkit-details-marker {
  display: none;
}

.top-user-card {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  cursor: pointer;
}

.top-user-menu-summary {
  display: grid;
  gap: 0.08rem;
}

.top-user-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.top-user-menu-summary:focus-visible {
  outline: 2px solid rgba(153, 205, 249, 0.72);
  outline-offset: 3px;
}

.top-user-card:hover {
  transform: translateY(-1px);
}

.top-user-menu[open] .top-user-card {
  transform: translateY(-1px);
}

.top-user-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
}

.top-user-headline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.top-user-kicker {
  margin: 0;
  color: #92bfeb;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.38px;
  text-transform: uppercase;
}

.top-user-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92rem;
  height: 0.92rem;
  color: #9fc9ef;
  transition: transform 160ms ease;
}

.top-user-chevron svg {
  width: 0.92rem;
  height: 0.92rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-user-menu[open] .top-user-chevron {
  transform: rotate(180deg);
}

.top-user-name {
  margin: 0.08rem 0 0;
  color: #ecf5ff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.28;
  transition:
    font-size 220ms ease,
    margin 220ms ease;
}

.top-user-meta {
  margin: 0.28rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  transition:
    margin 220ms ease,
    gap 220ms ease,
    opacity 180ms ease,
    max-height 220ms ease;
  max-height: 2rem;
  overflow: hidden;
}

.top-user-datetime {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.34rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.08rem;
  padding: 0.22rem 0.44rem 0.24rem;
  border-radius: 999px;
  border: 1px solid rgba(144, 191, 229, 0.2);
  background: linear-gradient(150deg, rgba(5, 27, 49, 0.38), rgba(11, 57, 95, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  overflow: hidden;
}

.top-user-datetime::before {
  content: "";
  width: 0.28rem;
  height: 0.28rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4fe0c6;
  box-shadow: 0 0 8px rgba(79, 224, 198, 0.62);
}

.top-user-date {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #abd0f0;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-user-time {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding-left: 0.34rem;
  border-left: 1px solid rgba(145, 192, 229, 0.18);
  color: #f3f9ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.top-user-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(146, 192, 231, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #e3f1ff;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.top-user-pill-accent {
  border-color: rgba(255, 203, 132, 0.44);
  background: rgba(122, 88, 24, 0.26);
  color: #ffe7bc;
}

.top-user-divider {
  color: #8abbe6;
  font-size: 0.66rem;
  font-weight: 800;
}

.top-user-menu-panel {
  position: absolute;
  top: calc(100% + 0.44rem);
  right: 0;
  z-index: 20;
  width: min(280px, calc(100vw - 2rem));
  display: grid;
  gap: 0.48rem;
  padding: 0.66rem;
  border-radius: 0.94rem;
  border: 1px solid rgba(147, 193, 233, 0.38);
  background:
    linear-gradient(165deg, rgba(4, 24, 46, 0.96), rgba(10, 55, 95, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.08),
    0 22px 42px rgba(3, 15, 31, 0.34);
}

.top-user-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.56rem 0.64rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(143, 188, 229, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6ff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease;
}

.top-user-menu-link:hover {
  transform: translateY(-1px);
  border-color: rgba(188, 220, 249, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.topbar .topnav-primary .button:hover,
.topbar .topnav-exit:hover,
.topbar .top-user-card:hover,
.topbar .top-user-menu[open] .top-user-card,
.module-nav-shell .module-link:hover,
.workspace-rail-shell .workspace-chip:hover {
  transform: none;
}

.top-user-menu-form {
  margin: 0;
}

.module-nav-shell {
  max-width: 1500px;
  margin: 0.42rem auto 0;
  display: grid;
  gap: 0.32rem;
  transition: margin 220ms ease, gap 220ms ease;
}

.module-nav-frame {
  position: relative;
  overflow: hidden;
  padding: 0.58rem 0.72rem 0.62rem;
  border-radius: 0.96rem;
  border: 1px solid rgba(141, 188, 229, 0.34);
  background:
    linear-gradient(165deg, rgba(5, 27, 51, 0.72), rgba(10, 52, 90, 0.5)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.1),
    0 18px 30px rgba(4, 19, 37, 0.22);
  transition:
    padding 220ms ease,
    border-radius 220ms ease,
    box-shadow 220ms ease;
}

.module-nav-frame::before {
  content: "";
  position: absolute;
  left: -72px;
  top: -92px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 170, 255, 0.18), rgba(95, 170, 255, 0));
  pointer-events: none;
}

.module-nav-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.38rem 0.72rem;
  margin-bottom: 0.42rem;
  overflow: hidden;
  max-height: 3rem;
  opacity: 1;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    margin 220ms ease;
}

.module-nav-kicker {
  margin: 0;
  color: #9ec7ee;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.38px;
  text-transform: uppercase;
}

.module-nav-title {
  margin: 0.12rem 0 0;
  color: #eef7ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18px;
}

.module-nav-caption {
  margin: 0;
  max-width: 340px;
  color: #bad7f1;
  font-size: 0.66rem;
  line-height: 1.24;
  text-align: right;
}

.module-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.34rem;
  transition: gap 220ms ease;
}

.workspace-rail-shell {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.34rem 0.54rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(141, 188, 229, 0.28);
  background: linear-gradient(160deg, rgba(6, 30, 55, 0.54), rgba(11, 58, 98, 0.34));
  box-shadow: inset 0 1px 0 rgba(236, 246, 255, 0.08);
  overflow: hidden;
  max-height: 4rem;
  opacity: 1;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    padding 220ms ease,
    margin 220ms ease,
    border-color 180ms ease;
}

.workspace-rail {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  flex: 1 1 auto;
}

.workspace-rail-label {
  flex: 0 0 auto;
  color: #9bc4eb;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.38px;
  text-transform: uppercase;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(149, 197, 238, 0.44);
  background: linear-gradient(150deg, rgba(9, 48, 87, 0.9), rgba(16, 78, 129, 0.8));
  color: #dcecff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 0.12rem 0.42rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, border-color 160ms ease, background 180ms ease, box-shadow 180ms ease;
}

.workspace-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(188, 220, 249, 0.72);
  background: linear-gradient(150deg, rgba(14, 70, 121, 0.94), rgba(19, 98, 149, 0.88));
  box-shadow: 0 10px 18px rgba(4, 20, 42, 0.18);
}

.workspace-chip.is-active {
  border-color: rgba(255, 207, 135, 0.82);
  background: linear-gradient(150deg, rgba(78, 55, 15, 0.94), rgba(160, 106, 21, 0.9));
  color: #fff2da;
  box-shadow: 0 10px 20px rgba(4, 24, 46, 0.24);
}

.workspace-chip-workspace {
  gap: 0.34rem;
  border-color: rgba(246, 204, 133, 0.7);
  background: linear-gradient(145deg, rgba(73, 53, 14, 0.92), rgba(131, 90, 22, 0.9));
  color: #fff4de;
}

.workspace-chip-workspace:hover,
.workspace-chip-workspace.is-active {
  border-color: rgba(255, 217, 160, 0.92);
  background: linear-gradient(145deg, rgba(104, 72, 12, 0.95), rgba(182, 118, 18, 0.92));
}

.workspace-chip-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.06rem 0.32rem;
  border: 1px solid rgba(255, 232, 199, 0.32);
  background: rgba(255, 255, 255, 0.16);
  color: #fff2d6;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.38px;
  text-transform: uppercase;
}

.module-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 2.28rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(148, 194, 237, 0.34);
  background: linear-gradient(160deg, rgba(8, 38, 71, 0.94), rgba(14, 67, 116, 0.82));
  color: #dcecff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 0.34rem 0.52rem;
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.08),
    0 12px 20px rgba(4, 20, 42, 0.18);
  transition: transform 140ms ease, border-color 160ms ease, background 180ms ease, box-shadow 180ms ease;
}

body.is-shell-condensed .topbar {
  padding: 0.46rem 0.92rem 0.36rem;
  box-shadow: 0 14px 28px rgba(4, 20, 39, 0.2);
}

body.is-shell-condensed .topbar-inner {
  gap: 0.38rem 0.56rem;
}

body.is-shell-condensed .brand-wrap,
body.is-shell-condensed .topnav-primary-shell,
body.is-shell-condensed .topnav-session {
  border-radius: 0.88rem;
}

body.is-shell-condensed .brand-wrap {
  padding: 0.52rem 0.68rem;
  box-shadow:
    inset 0 1px 0 rgba(233, 245, 255, 0.1),
    0 14px 24px rgba(3, 16, 32, 0.22);
}

body.is-shell-condensed .brand-head {
  gap: 0.46rem;
}

body.is-shell-condensed .brand-copy {
  gap: 0.12rem;
}

body.is-shell-condensed .brand {
  font-size: 1.36rem;
}

body.is-shell-condensed .brand-row {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

body.is-shell-condensed .brand-datetime {
  transform: translateY(-1px);
  gap: 0.26rem;
  padding: 0.08rem 0.38rem;
  box-shadow:
    inset 0 0 0 1px rgba(213, 233, 252, 0.08),
    0 8px 14px rgba(4, 22, 42, 0.2);
}

body.is-shell-condensed .brand-date {
  font-size: 0.54rem;
}

body.is-shell-condensed .brand-time {
  font-size: 0.64rem;
}

body.is-shell-condensed .topnav-suite {
  gap: 0.38rem;
}

body.is-shell-condensed .topnav-primary-shell,
body.is-shell-condensed .topnav-session {
  padding: 0.48rem 0.58rem;
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.08),
    0 14px 24px rgba(4, 19, 37, 0.18);
}

body.is-shell-condensed .topnav-primary {
  gap: 0.24rem;
}

body.is-shell-condensed .topnav-primary .button {
  min-height: 2rem;
  padding: 0.28rem 0.64rem;
  border-radius: 0.72rem;
  font-size: 0.84rem;
}

body.is-shell-condensed .top-user-name {
  margin-top: 0;
  font-size: 0.72rem;
}

body.is-shell-condensed .top-user-meta {
  margin-top: 0.14rem;
  gap: 0.22rem;
}

body.is-shell-condensed .top-user-datetime {
  gap: 0.24rem;
  margin-top: 0.04rem;
  padding: 0.18rem 0.38rem 0.2rem;
}

body.is-shell-condensed .top-user-date {
  font-size: 0.46rem;
}

body.is-shell-condensed .top-user-time {
  padding-left: 0.28rem;
  font-size: 0.52rem;
}

body.is-shell-condensed .module-nav-shell {
  margin-top: 0.3rem;
  gap: 0;
}

body.is-shell-condensed .module-nav-frame {
  padding: 0.46rem 0.58rem 0.5rem;
  border-radius: 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.08),
    0 14px 24px rgba(4, 19, 37, 0.18);
}

body.is-shell-condensed .module-nav-head {
  max-height: 0;
  opacity: 0;
  margin: 0;
}

body.is-shell-condensed .module-nav {
  gap: 0.28rem;
}

body.is-shell-condensed .module-link {
  min-height: 2rem;
  padding: 0.28rem 0.44rem;
  font-size: 0.76rem;
}

body.is-shell-condensed .module-icon {
  width: 1.34rem;
  height: 1.34rem;
}

body.is-shell-condensed .workspace-rail-shell {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-width: 0;
}

body.is-shell-condensed .hero-pro {
  padding: 0.72rem 0.78rem;
  border-radius: 0.9rem;
}

body.is-shell-condensed .hero-pro-grid {
  gap: 0.58rem;
}

body.is-shell-condensed .hero-pro-main,
body.is-shell-condensed .hero-pro-side {
  gap: 0.42rem;
}

body.is-shell-condensed .hero-pro-topline,
body.is-shell-condensed .hero-signal-group {
  gap: 0.24rem;
}

body.is-shell-condensed .hero-pro-head h1 {
  font-size: clamp(1.42rem, 1.9vw, 1.74rem);
  line-height: 1.04;
}

body.is-shell-condensed .hero-pro .eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.6px;
}

body.is-shell-condensed .hero-pro-copy {
  font-size: 0.76rem;
  line-height: 1.22;
}

body.is-shell-condensed .hero-density-row {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
}

body.is-shell-condensed .hero-pro-metrics {
  gap: 0.34rem;
}

body.is-shell-condensed .hero-mini-stat {
  padding: 0.36rem 0.4rem;
  border-radius: 0.68rem;
}

body.is-shell-condensed .hero-mini-label {
  font-size: 0.52rem;
}

body.is-shell-condensed .hero-mini-value {
  font-size: 0.86rem;
}

body.is-shell-condensed .hero-mini-meta {
  margin-top: 0.1rem;
  font-size: 0.56rem;
}

body.is-shell-condensed .hero-search-shell {
  padding: 0.64rem;
}

body.is-shell-condensed .hero-ops-tray {
  gap: 0.3rem;
  padding: 0.38rem;
}

body.is-shell-condensed .hero-ops-item {
  min-height: 3rem;
  padding: 0.32rem 0.38rem;
}

body.is-shell-condensed .hero-ops-label {
  font-size: 0.52rem;
}

body.is-shell-condensed .hero-ops-value {
  margin-top: 0.12rem;
  font-size: 0.72rem;
}

body.is-shell-condensed .executive-strip {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
}

.module-link::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91, 223, 215, 0), rgba(91, 223, 215, 0.78), rgba(255, 211, 145, 0));
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
}

.module-link:hover {
  transform: translateY(-1px);
  border-color: rgba(176, 212, 248, 0.58);
  background: linear-gradient(160deg, rgba(13, 59, 105, 0.96), rgba(19, 89, 141, 0.88));
  box-shadow: 0 16px 24px rgba(4, 20, 42, 0.24);
}

.module-link.is-active {
  border-color: rgba(123, 194, 235, 0.78);
  background: linear-gradient(150deg, rgba(18, 112, 183, 0.96), rgba(26, 138, 189, 0.92));
  box-shadow: 0 18px 26px rgba(7, 29, 58, 0.28);
}

.module-link:hover::after,
.module-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.module-icon {
  width: 1.52rem;
  height: 1.52rem;
  border-radius: 0.56rem;
  border: 1px solid rgba(203, 225, 248, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.module-icon svg {
  width: 0.82rem;
  height: 0.82rem;
  fill: none;
  stroke: #f3f9ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-text {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

.container {
  max-width: 1500px;
  margin: 1.2rem auto;
  padding: 0 1.1rem 2.2rem;
}

.container-auth {
  max-width: 1240px;
}

.container-modal {
  max-width: none;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 1.6rem;
  padding-bottom: 1.8rem;
}

.card {
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 251, 255, 0.95) 100%);
  box-shadow: var(--shadow-md);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  border-color: #b7cce4;
  box-shadow: var(--shadow-lg);
}

.hero-pro {
  display: block;
  border: 1px solid #8fb3d6;
  padding: 1.04rem 1.08rem;
  background:
    radial-gradient(560px 230px at 7% -10%, rgba(24, 113, 194, 0.28), transparent 74%),
    radial-gradient(620px 260px at 100% -14%, rgba(22, 164, 167, 0.18), transparent 72%),
    linear-gradient(154deg, rgba(255, 255, 255, 0.99) 0%, rgba(228, 240, 253, 0.98) 100%);
  box-shadow:
    0 12px 28px rgba(8, 41, 76, 0.14),
    inset 0 0 0 1px rgba(162, 194, 227, 0.28);
  transition: padding 220ms ease, border-radius 220ms ease, box-shadow 220ms ease;
}

.hero-pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0f58a0, #1a78c2, #1fa5b7);
  opacity: 0.92;
  z-index: 2;
}

.hero-pro-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
  align-items: start;
  gap: 0.92rem;
  transition: gap 220ms ease;
}

.hero-pro-main {
  display: grid;
  gap: 0.74rem;
  transition: gap 220ms ease;
}

.hero-pro-head {
  display: grid;
  gap: 0.32rem;
  transition: gap 220ms ease;
}

.hero-pro .eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.72px;
  transition: font-size 220ms ease, letter-spacing 220ms ease;
}

.hero-pro-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.64rem;
  flex-wrap: wrap;
  transition: gap 220ms ease;
}

.hero-signal-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.34rem;
  transition: gap 220ms ease;
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(86, 184, 164, 0.76);
  background: rgba(16, 132, 122, 0.18);
  color: #0d6b63;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.36px;
  padding: 0.12rem 0.5rem;
  text-transform: uppercase;
  transition: font-size 220ms ease, padding 220ms ease, opacity 180ms ease;
}

.hero-signal-soft {
  border-color: rgba(122, 168, 217, 0.82);
  background: rgba(228, 240, 252, 0.95);
  color: #274f76;
}

.hero-pro-head h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(1.76rem, 2.46vw, 2.28rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  transition: font-size 220ms ease, line-height 220ms ease;
}

.hero-pro-copy {
  margin: 0;
  max-width: 640px;
  color: #2b4868;
  font-size: 0.86rem;
  line-height: 1.3;
  font-weight: 600;
  transition: font-size 220ms ease, line-height 220ms ease, opacity 180ms ease;
}

.hero-density-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  transition: gap 220ms ease, max-height 220ms ease, opacity 180ms ease, margin 220ms ease;
}

.hero-density-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #a8c7e6;
  background: linear-gradient(180deg, #eef6ff, #e2eeff);
  color: #1b4b77;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.22px;
  padding: 0.12rem 0.44rem;
  transition: font-size 220ms ease, padding 220ms ease, opacity 180ms ease;
}

.hero-density-chip:nth-child(1) {
  border-color: #94c8db;
  background: linear-gradient(180deg, #eef9fd, #e1f1fb);
  color: #0d5d78;
}

.hero-density-chip:nth-child(2) {
  border-color: #9ecfad;
  background: linear-gradient(180deg, #f0fbf5, #e1f2e8);
  color: #1b6b4f;
}

.hero-density-chip:nth-child(3) {
  border-color: #d5bf94;
  background: linear-gradient(180deg, #fff9ef, #f6eddc);
  color: #7f5b1e;
}

.hero-pro-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.56rem;
  transition: gap 220ms ease;
}

.hero-mini-stat {
  position: relative;
  overflow: hidden;
  border: 1px solid #a9c7e6;
  border-radius: 0.8rem;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.98), rgba(223, 238, 253, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(188, 213, 237, 0.34),
    0 7px 14px rgba(9, 43, 78, 0.08);
  padding: 0.5rem 0.54rem;
  transition: padding 220ms ease, border-radius 220ms ease, box-shadow 220ms ease;
}

.hero-mini-stat.dashboard-action-card,
.kpi-card.dashboard-action-card {
  cursor: pointer;
  user-select: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 200ms ease,
    filter 180ms ease,
    padding 220ms ease,
    border-radius 220ms ease;
}

.hero-mini-stat.dashboard-action-card:hover,
.kpi-card.dashboard-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 151, 203, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(188, 213, 237, 0.42),
    0 14px 26px rgba(9, 43, 78, 0.14);
  filter: saturate(1.04);
}

.hero-mini-stat.dashboard-action-card:focus-visible,
.kpi-card.dashboard-action-card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(53, 123, 186, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(188, 213, 237, 0.46),
    0 0 0 3px rgba(56, 125, 187, 0.16),
    0 14px 28px rgba(8, 40, 74, 0.16);
}

.hero-mini-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2b6fae, #3191c8);
  opacity: 0.92;
}

.hero-pro-metrics .hero-mini-stat:nth-child(1) {
  border-color: #9bc2df;
  background: linear-gradient(168deg, #ffffff, #e3f0fb 96%);
}

.hero-pro-metrics .hero-mini-stat:nth-child(1)::before {
  background: linear-gradient(90deg, var(--tone-cyan), #4aaac5);
}

.hero-pro-metrics .hero-mini-stat:nth-child(2) {
  border-color: #9fcdb9;
  background: linear-gradient(168deg, #ffffff, #e5f5ed 96%);
}

.hero-pro-metrics .hero-mini-stat:nth-child(2)::before {
  background: linear-gradient(90deg, var(--tone-emerald), #44b68e);
}

.hero-pro-metrics .hero-mini-stat:nth-child(3) {
  border-color: #d7c59f;
  background: linear-gradient(168deg, #ffffff, #f7efdd 96%);
}

.hero-pro-metrics .hero-mini-stat:nth-child(3)::before {
  background: linear-gradient(90deg, var(--tone-amber), #cc9a40);
}

.hero-pro-metrics .hero-mini-stat:nth-child(4) {
  border-color: #d6b3a8;
  background: linear-gradient(168deg, #ffffff, #f7ebe7 96%);
}

.hero-pro-metrics .hero-mini-stat:nth-child(4)::before {
  background: linear-gradient(90deg, var(--tone-coral), #cc8068);
}

.hero-mini-stat::after {
  content: "";
  position: absolute;
  width: 102px;
  height: 102px;
  top: -62px;
  right: -38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 176, 232, 0.35), transparent 74%);
  pointer-events: none;
}

.hero-mini-label {
  margin: 0;
  color: #3e6085;
  font-size: 0.58rem;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  font-weight: 800;
  transition: font-size 220ms ease;
}

.hero-mini-value {
  margin: 0.18rem 0 0;
  color: #0f3459;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(0.94rem, 1.24vw, 1.14rem);
  font-weight: 800;
  line-height: 1.1;
  transition: font-size 220ms ease;
}

.hero-mini-meta {
  margin: 0.18rem 0 0;
  color: #567392;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.24;
  transition: font-size 220ms ease, margin 220ms ease;
}

.hero-actions-pro {
  margin-top: 0.12rem;
}

.hero-actions-pro .button {
  min-width: 8.1rem;
}

.hero-pro-side {
  display: grid;
  gap: 0.54rem;
  align-content: start;
  transition: gap 220ms ease;
}

.hero-search {
  border-color: #8daed0;
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(16, 126, 198, 0.24), transparent 70%),
    radial-gradient(200px 120px at 0% 100%, rgba(72, 181, 205, 0.18), transparent 72%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(234, 243, 253, 0.97) 58%, rgba(226, 239, 252, 0.95));
  box-shadow:
    inset 0 0 0 1px rgba(160, 191, 222, 0.42),
    0 16px 34px rgba(8, 40, 71, 0.14);
}

.hero-search-shell {
  position: relative;
  overflow: hidden;
  padding: 0.96rem;
  transition: padding 220ms ease, border-radius 220ms ease;
}

.hero-search-shell::before {
  content: "";
  position: absolute;
  inset: -120px -110px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 171, 235, 0.24), transparent 72%);
  pointer-events: none;
}

.hero-search-shell::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(18, 111, 185, 0.94), rgba(50, 183, 202, 0.62), rgba(255, 208, 136, 0.36));
  pointer-events: none;
}

.hero-search-shell > * {
  position: relative;
  z-index: 1;
}

.hero-search-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.hero-search-title-block {
  display: grid;
  gap: 0.12rem;
}

.hero-search-kicker {
  margin: 0;
  color: #4f7faa;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.62px;
  text-transform: uppercase;
}

.hero-search-head label {
  font-size: 0.92rem;
  font-weight: 800;
  color: #294a70;
}

.hero-hotkey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(145, 187, 227, 0.76);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(231, 242, 253, 0.92));
  color: #275480;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.52px;
  padding: 0.16rem 0.42rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-search-intro {
  margin: 0;
  max-width: 34rem;
  color: #5a7795;
  font-size: 0.72rem;
  line-height: 1.4;
}

.hero-search-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.54rem;
}

.hero-search-input-shell {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 3.18rem;
  padding: 0.22rem 0.28rem 0.22rem 0.82rem;
  border-radius: 1rem;
  border: 1px solid rgba(151, 190, 226, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.92)),
    linear-gradient(180deg, rgba(17, 95, 156, 0.04), rgba(17, 95, 156, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(9, 44, 78, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.hero-search-input-shell:focus-within {
  border-color: rgba(92, 160, 219, 0.92);
  box-shadow:
    0 0 0 5px rgba(30, 115, 190, 0.12),
    0 14px 26px rgba(9, 44, 78, 0.12);
  transform: translateY(-1px);
}

.hero-search-input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.08rem;
  height: 2.08rem;
  flex: 0 0 auto;
  border-radius: 0.72rem;
  border: 1px solid rgba(158, 196, 231, 0.76);
  background: linear-gradient(180deg, rgba(242, 249, 255, 0.98), rgba(230, 241, 252, 0.92));
  color: #34638f;
}

.hero-search-input-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-search-input-shell input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1 1 auto;
  height: auto;
  padding: 0;
  color: #23496f;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12px;
  box-shadow: none;
}

.hero-search-input-shell input::placeholder {
  color: #5d7896;
  opacity: 0.92;
}

.hero-search-input-shell input:focus {
  outline: none;
}

.hero-search-submit {
  min-width: 7.8rem;
  min-height: 3.18rem;
  border-radius: 1rem;
  padding-inline: 1rem;
  justify-content: center;
  gap: 0.46rem;
  border: 1px solid rgba(60, 141, 209, 0.42);
  background: linear-gradient(160deg, #1474ba, #0f5894 58%, #0b426f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 28px rgba(8, 45, 79, 0.18);
}

.hero-search-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 18px 32px rgba(8, 45, 79, 0.22);
}

.hero-search-submit-copy {
  white-space: nowrap;
}

.hero-search-submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.hero-search-submit-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-search-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.1rem;
}

.hero-quick-label {
  color: #3e6387;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.56px;
  margin-right: 0.12rem;
}

.hero-quick-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(162, 197, 228, 0.82);
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.96), rgba(230, 240, 252, 0.9));
  color: #285a86;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.16rem 0.46rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 130ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hero-search-quick .hero-quick-chip:nth-of-type(1) {
  border-color: #9cc7e6;
  background: linear-gradient(180deg, #eef7ff, #e2eeff);
  color: #255d8e;
}

.hero-search-quick .hero-quick-chip:nth-of-type(2) {
  border-color: #9dceb5;
  background: linear-gradient(180deg, #effaf4, #e2f2e9);
  color: #1b7150;
}

.hero-search-quick .hero-quick-chip:nth-of-type(3) {
  border-color: #d9c3a0;
  background: linear-gradient(180deg, #fff9f0, #f8eee1);
  color: #815e23;
}

.hero-search-quick .hero-quick-chip:nth-of-type(4) {
  border-color: #d0b3aa;
  background: linear-gradient(180deg, #fff5f2, #f8e9e4);
  color: #8b4f3f;
}

.hero-quick-chip:hover {
  transform: translateY(-1px);
  border-color: #7fb0dc;
  box-shadow: 0 10px 16px rgba(9, 44, 78, 0.08);
}

.hero-search-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.08rem;
  padding-top: 0.18rem;
  border-top: 1px solid rgba(172, 201, 229, 0.46);
  font-size: 0.74rem;
}

.hero-search-foot .muted {
  margin: 0;
  color: #47698d;
}

.hero-search-status {
  border-radius: 999px;
  border: 1px solid rgba(131, 178, 220, 0.82);
  background: linear-gradient(180deg, rgba(235, 246, 255, 0.98), rgba(217, 235, 252, 0.92));
  color: #1d5686;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.34px;
  padding: 0.18rem 0.58rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.hero-ops-tray {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  border: 1px solid #7ca6cd;
  border-radius: 0.82rem;
  background:
    radial-gradient(180px 120px at 86% 12%, rgba(54, 143, 211, 0.26), transparent 70%),
    linear-gradient(142deg, rgba(10, 41, 76, 0.96), rgba(13, 67, 114, 0.94), rgba(12, 104, 150, 0.88));
  box-shadow:
    0 16px 28px rgba(7, 31, 58, 0.26),
    inset 0 0 0 1px rgba(165, 204, 239, 0.24);
  padding: 0.5rem;
  transition: gap 220ms ease, padding 220ms ease, max-height 220ms ease, opacity 180ms ease;
}

.hero-ops-item {
  border: 1px solid rgba(198, 224, 248, 0.58);
  border-radius: 0.62rem;
  background: linear-gradient(180deg, rgba(23, 89, 139, 0.82), rgba(14, 62, 102, 0.84));
  padding: 0.4rem 0.46rem;
  min-height: 3.6rem;
  transition: padding 220ms ease, border-radius 220ms ease, min-height 220ms ease;
}

.hero-ops-item:nth-child(1) {
  border-color: rgba(168, 211, 244, 0.62);
  background: linear-gradient(180deg, rgba(23, 101, 161, 0.86), rgba(15, 66, 112, 0.88));
}

.hero-ops-item:nth-child(2) {
  border-color: rgba(151, 214, 196, 0.64);
  background: linear-gradient(180deg, rgba(24, 118, 104, 0.86), rgba(17, 77, 80, 0.88));
}

.hero-ops-item:nth-child(3) {
  border-color: rgba(232, 195, 143, 0.64);
  background: linear-gradient(180deg, rgba(148, 104, 39, 0.86), rgba(99, 72, 29, 0.88));
}

.hero-ops-label {
  margin: 0;
  color: #e8f3ff !important;
  opacity: 1;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(6, 22, 38, 0.42);
  transition: font-size 220ms ease;
}

.hero-ops-value {
  margin: 0.16rem 0 0;
  color: #ffffff !important;
  opacity: 1;
  font-size: 0.8rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(6, 22, 38, 0.44);
  transition: font-size 220ms ease, margin 220ms ease;
}

.login-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 1rem 0;
}

.login-card {
  width: min(100%, 620px);
  border-color: #b8cfe7;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 0.75rem;
}

.login-card h1 {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.06;
}

.login-stage-card {
  width: min(100%, 1160px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(142, 180, 216, 0.78);
  background:
    radial-gradient(720px 280px at -8% -4%, rgba(70, 153, 255, 0.16), transparent 62%),
    radial-gradient(640px 300px at 108% 100%, rgba(62, 225, 200, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(253, 255, 255, 0.98), rgba(233, 244, 252, 0.98));
  box-shadow:
    0 28px 70px rgba(7, 29, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.login-story,
.login-workbench {
  position: relative;
}

.login-story {
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  background:
    radial-gradient(380px 180px at 100% 0%, rgba(90, 164, 255, 0.22), transparent 66%),
    radial-gradient(420px 200px at 0% 100%, rgba(62, 225, 200, 0.16), transparent 64%),
    linear-gradient(168deg, rgba(8, 33, 63, 0.96), rgba(10, 59, 103, 0.93) 54%, rgba(15, 93, 131, 0.9) 100%);
  color: #f3f8ff;
}

.login-story::before {
  content: "";
  position: absolute;
  inset: -18% auto auto -10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.login-story::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 111, 0.18), transparent 70%);
  pointer-events: none;
}

.login-story > * {
  position: relative;
  z-index: 1;
}

.login-story-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.login-story .eyebrow {
  color: #b7dcff;
  letter-spacing: 0.2rem;
}

.login-story-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(194, 223, 255, 0.44);
  background: rgba(255, 255, 255, 0.1);
  color: #f4f8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  padding: 0.26rem 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wing-mark {
  --wing-size-w: 11.4rem;
  --wing-size-h: 6rem;
  position: relative;
  width: var(--wing-size-w);
  height: var(--wing-size-h);
  isolation: isolate;
}

.wing-mark-halo,
.wing-mark-core,
.wing-mark-arc,
.wing-mark-feather {
  position: absolute;
}

.wing-mark-halo {
  inset: 1.1rem 1rem 0.85rem;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(87, 232, 209, 0.48), rgba(116, 179, 255, 0.2) 42%, rgba(87, 232, 209, 0) 76%);
  filter: blur(18px);
  opacity: 0.82;
}

.wing-mark-arc {
  top: 1.72rem;
  width: 4.6rem;
  height: 2.52rem;
  border-radius: 999px;
  border: 0.3rem solid rgba(188, 223, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 20px rgba(52, 174, 217, 0.16);
}

.wing-mark-arc-left {
  left: 0.9rem;
  border-top-color: rgba(77, 219, 212, 0.98);
  border-left-color: rgba(90, 179, 255, 0.88);
  border-bottom-color: rgba(77, 219, 212, 0.48);
  border-right-color: rgba(255, 191, 94, 0.98);
  transform: rotate(-16deg);
}

.wing-mark-arc-right {
  right: 0.9rem;
  border-top-color: rgba(90, 179, 255, 0.98);
  border-right-color: rgba(77, 219, 212, 0.88);
  border-bottom-color: rgba(255, 191, 94, 0.48);
  border-left-color: rgba(255, 191, 94, 0.98);
  transform: rotate(16deg);
}

.wing-mark-feather {
  top: 1.1rem;
  width: 4.35rem;
  height: 2.65rem;
  opacity: 0.92;
  filter: drop-shadow(0 12px 18px rgba(3, 19, 39, 0.14));
}

.wing-mark-feather-left {
  left: 0.18rem;
  clip-path: polygon(8% 62%, 38% 18%, 100% 0, 75% 55%, 100% 100%, 42% 84%);
  background: linear-gradient(120deg, rgba(255, 191, 94, 0.18), rgba(77, 219, 212, 0.84) 48%, rgba(101, 185, 255, 0.94));
  transform: rotate(-18deg);
}

.wing-mark-feather-right {
  right: 0.18rem;
  clip-path: polygon(0 0, 62% 18%, 92% 62%, 58% 84%, 0 100%, 25% 55%);
  background: linear-gradient(240deg, rgba(255, 191, 94, 0.18), rgba(77, 219, 212, 0.84) 48%, rgba(101, 185, 255, 0.94));
  transform: rotate(18deg);
}

.wing-mark-core {
  left: 50%;
  top: 50%;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d7f8ff 32%, #77dff2 62%, #5ea7ff 100%);
  box-shadow:
    0 0 0 0.24rem rgba(117, 200, 255, 0.14),
    0 0 28px rgba(87, 232, 209, 0.42);
}

.wing-mark-hero {
  --wing-size-w: 13.2rem;
  --wing-size-h: 7rem;
  margin: 0.2rem 0 0.1rem;
  animation: wing-mark-float 6.4s ease-in-out infinite;
}

.wing-mark-hero .wing-mark-halo {
  opacity: 0.92;
}

.wing-mark-hero .wing-mark-arc-left {
  animation: wing-mark-left-glide 6.4s ease-in-out infinite;
}

.wing-mark-hero .wing-mark-arc-right {
  animation: wing-mark-right-glide 6.4s ease-in-out infinite;
}

.wing-mark-hero .wing-mark-feather-left {
  animation: wing-mark-feather-left-drift 6.4s ease-in-out infinite;
}

.wing-mark-hero .wing-mark-feather-right {
  animation: wing-mark-feather-right-drift 6.4s ease-in-out infinite;
}

.wing-mark-hero .wing-mark-core {
  animation: wing-mark-core-breathe 6.4s ease-in-out infinite;
}

.login-story h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.45rem, 4.5vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.login-story-copy {
  margin: 0;
  max-width: 35rem;
  color: #d8e9fb;
  font-size: 1.02rem;
  line-height: 1.58;
  font-weight: 600;
}

.login-story-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.login-story-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(191, 222, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ecf7ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
  padding: 0.28rem 0.68rem;
}

.login-story-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.login-story-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(184, 215, 247, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)),
    linear-gradient(165deg, rgba(9, 39, 72, 0.26), rgba(9, 39, 72, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 32px rgba(2, 14, 29, 0.16);
}

.login-story-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #59d9d2, #7dafff, #ffbf5e);
  opacity: 0.92;
}

.login-story-stat-label {
  margin: 0;
  color: #9ecaf0;
  font-size: 0.66rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  font-weight: 800;
}

.login-story-stat-value {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.02rem, 1.32vw, 1.26rem);
  font-weight: 800;
  line-height: 1.08;
}

.login-story-stat-meta {
  margin: 0;
  color: #d3e6fa;
  font-size: 0.72rem;
  line-height: 1.34;
  font-weight: 600;
}

.login-story-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem 0.5rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 214, 150, 0.32);
  background: linear-gradient(145deg, rgba(255, 194, 104, 0.18), rgba(255, 255, 255, 0.08));
  color: #fff4de;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-story-note strong {
  font-size: 0.84rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.login-story-note span {
  font-size: 0.88rem;
  color: #f3f8ff;
  line-height: 1.42;
}

.login-story .hero-actions {
  margin-top: 0.1rem;
}

.login-story .button-soft {
  border-color: rgba(194, 223, 255, 0.42);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(219, 235, 250, 0.95));
  color: #154a78;
}

.login-workbench {
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  background:
    radial-gradient(340px 180px at 100% 0%, rgba(78, 176, 255, 0.14), transparent 68%),
    linear-gradient(180deg, rgba(252, 254, 255, 0.98), rgba(240, 248, 255, 0.98));
}

.login-workbench::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(89, 217, 210, 0.85), rgba(125, 175, 255, 0.88), rgba(255, 191, 94, 0.84));
}

.login-pane {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(191, 214, 236, 0.9);
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(86, 177, 255, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 30px rgba(7, 33, 59, 0.08);
}

.login-pane::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #56bbff, #5ad7d0);
  opacity: 0.92;
}

.login-pane-secondary {
  border-color: rgba(218, 199, 156, 0.86);
  background:
    radial-gradient(220px 130px at 100% 0%, rgba(255, 195, 110, 0.18), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 236, 0.98));
}

.login-pane-secondary::before {
  background: linear-gradient(90deg, #ffbf5e, #59d9d2);
}

.login-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.login-pane-kicker {
  margin: 0;
  color: #456b91;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.login-pane h2 {
  margin: 0.24rem 0 0;
  color: #0d2745;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.38rem;
  line-height: 1.02;
}

.login-pane-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(126, 183, 231, 0.8);
  background: linear-gradient(180deg, #eff8ff, #dcecff);
  color: #255c8a;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
}

.login-pane-tag-warn {
  border-color: rgba(225, 194, 133, 0.92);
  background: linear-gradient(180deg, #fff7e8, #fce6b8);
  color: #76521a;
}

.login-pane-copy {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}

.login-pane-inline-note {
  margin: -0.12rem 0 0;
  color: #80560f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.login-form,
.login-helper-form,
.security-action-form {
  margin: 0;
}

.login-form {
  margin-top: 0.35rem;
}

.login-support {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.35rem;
  padding: 1rem 1.05rem;
  border: 1px dashed #c3d8ec;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(239, 247, 255, 0.98));
}

.login-support h2 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.login-pane .payment-form {
  gap: 0.72rem;
}

.login-pane .payment-form input,
.login-pane .payment-form select,
.login-pane .payment-form textarea {
  min-height: 3.05rem;
  border-radius: 0.82rem;
  background: rgba(248, 251, 255, 0.96);
}

.login-pane .payment-form .button {
  width: 100%;
  min-height: 3.05rem;
  margin-top: 0.1rem;
}

.login-email-preview {
  margin: 0.28rem 0 0.12rem;
  min-height: 1rem;
  font-weight: 700;
  border-radius: 0.52rem;
  border: 1px dashed #c3d8ec;
  background: rgba(248, 252, 255, 0.88);
  padding: 0.24rem 0.42rem;
}

.login-email-preview.is-ok {
  color: #176f46;
  border-color: #9dd7c5;
  background: rgba(236, 251, 245, 0.9);
}

.login-email-preview.is-warn {
  color: #926000;
  border-color: #e3cc9a;
  background: rgba(255, 249, 236, 0.9);
}

@media (max-width: 980px) {
  .login-stage-grid {
    grid-template-columns: 1fr;
  }

  .login-story {
    gap: 0.9rem;
  }

  .login-story h1 {
    max-width: 13ch;
    font-size: clamp(2.15rem, 7vw, 3.4rem);
  }

  .login-story-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding-bottom: 1rem;
  }

  .login-stage-card {
    border-radius: 1.1rem;
  }

  .login-story,
  .login-workbench {
    padding: 1rem;
  }

  .wing-mark-hero {
    --wing-size-w: 11.1rem;
    --wing-size-h: 5.9rem;
  }

  .login-story-band,
  .login-story-note {
    gap: 0.42rem;
  }

  .login-story-metrics {
    grid-template-columns: 1fr;
  }

  .login-pane {
    padding: 0.95rem;
  }

  .login-pane-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.login-stage-card {
  width: min(100%, 1180px);
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(79, 114, 146, 0.48);
  background:
    radial-gradient(600px 260px at -6% -10%, rgba(61, 134, 232, 0.16), transparent 62%),
    radial-gradient(520px 280px at 106% 108%, rgba(35, 207, 177, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(10, 21, 36, 0.98));
  box-shadow:
    0 32px 84px rgba(2, 10, 20, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.login-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  grid-template-areas: "visual workbench";
}

.login-workbench {
  grid-area: workbench;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 1.05rem;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background:
    radial-gradient(320px 160px at 0% 0%, rgba(59, 135, 232, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(6, 18, 33, 0.96), rgba(8, 22, 38, 0.98));
  border-left: 1px solid rgba(78, 114, 147, 0.28);
}

.login-workbench::before {
  content: "";
  position: absolute;
  inset: auto auto -130px -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 134, 232, 0.14), transparent 68%);
  pointer-events: none;
}

.login-workbench::after {
  content: "";
  position: absolute;
  inset: -110px -90px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 216, 191, 0.12), transparent 72%);
  pointer-events: none;
}

.login-workbench > * {
  position: relative;
  z-index: 1;
}

.login-workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.login-workbench .eyebrow {
  color: #8dbbff;
  letter-spacing: 0.22rem;
}

.login-workbench h1 {
  margin: 0.42rem 0 0;
  color: #f7fbff;
  font-size: clamp(2.05rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.login-panel-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(115, 155, 196, 0.38);
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.82), rgba(10, 27, 46, 0.78));
  color: #d8e6f6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  padding: 0.32rem 0.78rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(2, 10, 20, 0.22);
}

.login-panel-lead {
  margin: 0;
  max-width: 38rem;
  color: #b4c8de;
  font-size: 0.92rem;
  line-height: 1.52;
  font-weight: 600;
}

.login-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.login-trust-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(99, 135, 169, 0.34);
  background: rgba(11, 29, 48, 0.8);
  color: #dceafb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
  padding: 0.28rem 0.72rem;
}

.login-workbench .alert {
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(2, 10, 20, 0.2);
}

.login-form-panel,
.login-recovery-accordion {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(88, 121, 153, 0.34);
  background:
    linear-gradient(180deg, rgba(12, 27, 45, 0.92), rgba(9, 22, 37, 0.96)),
    rgba(8, 20, 34, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 34px rgba(2, 8, 16, 0.26);
  backdrop-filter: blur(14px);
}

.login-form-panel::before,
.login-recovery-accordion::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(82, 163, 255, 0), rgba(82, 163, 255, 0.68), rgba(59, 214, 192, 0.72), rgba(82, 163, 255, 0));
}

.login-form-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem 1.24rem;
}

.login-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.login-form-kicker {
  margin: 0;
  color: #7ca8d7;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.login-form-panel h2 {
  margin: 0.28rem 0 0;
  color: #f6fbff;
  font-size: 1.4rem;
  line-height: 1.02;
}

.login-form-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(60, 209, 178, 0.34);
  background: rgba(7, 49, 46, 0.9);
  color: #c7fbef;
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.login-form-copy {
  margin: 0;
  color: #a9bfd8;
  font-size: 0.94rem;
  line-height: 1.54;
}

.login-form,
.login-recovery-form {
  display: grid;
  gap: 0.76rem;
}

.login-input-row {
  position: relative;
}

.login-profile-scope {
  display: grid;
  gap: 0.34rem;
}

.login-profile-scope[hidden] {
  display: none;
}

.login-profile-scope-note {
  margin: 0;
  color: #8faecc;
}

.login-form-panel .payment-form label,
.login-recovery-form label {
  color: #d6e5f6;
  font-size: 0.84rem;
  font-weight: 800;
}

.login-form-panel .payment-form input,
.login-form-panel .payment-form select,
.login-recovery-form input {
  min-height: 3.08rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(87, 122, 158, 0.5);
  background: linear-gradient(180deg, rgba(11, 27, 45, 0.94), rgba(9, 22, 37, 0.98));
  color: #f5faff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.login-input-row input {
  padding-right: 5.8rem;
}

.login-field-clear {
  position: absolute;
  top: 50%;
  right: 0.42rem;
  transform: translateY(-50%);
  min-height: 2.12rem;
  border: 1px solid rgba(93, 126, 160, 0.34);
  border-radius: 999px;
  background: rgba(10, 24, 41, 0.82);
  color: #dce9f8;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  padding: 0.34rem 0.74rem;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.login-field-clear:hover {
  border-color: rgba(114, 157, 201, 0.62);
  background: rgba(14, 33, 56, 0.92);
}

.login-field-clear:focus-visible {
  outline: none;
  border-color: #5ba7ff;
  box-shadow: 0 0 0 3px rgba(91, 167, 255, 0.16);
}

.login-form-panel .payment-form input::placeholder,
.login-form-panel .payment-form select,
.login-recovery-form input::placeholder {
  color: #6f8cab;
}

.login-form-panel .payment-form input:hover,
.login-form-panel .payment-form select:hover,
.login-recovery-form input:hover {
  border-color: rgba(114, 157, 201, 0.72);
}

.login-form-panel .payment-form input:focus,
.login-form-panel .payment-form select:focus,
.login-recovery-form input:focus {
  border-color: #5ba7ff;
  box-shadow:
    0 0 0 3px rgba(91, 167, 255, 0.16),
    0 12px 22px rgba(3, 15, 28, 0.22);
}

.login-form .button-primary {
  min-height: 3.2rem;
  margin-top: 0.18rem;
  border: 1px solid rgba(108, 179, 255, 0.34);
  background: linear-gradient(135deg, #2c87ff, #1d63c6 54%, #123f89);
  box-shadow:
    0 18px 30px rgba(20, 84, 168, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.login-form .button-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 34px rgba(20, 84, 168, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-email-preview {
  margin: 0;
  min-height: 1rem;
  border-radius: 0.86rem;
  border: 1px dashed rgba(96, 135, 172, 0.56);
  background: rgba(10, 25, 42, 0.72);
  color: #a9bfd8;
  padding: 0.52rem 0.72rem;
  font-weight: 800;
}

.login-email-preview[hidden] {
  display: none;
}

.login-email-preview.is-ok {
  color: #b9f0de;
  border-color: rgba(67, 198, 167, 0.62);
  background: rgba(8, 49, 47, 0.78);
}

.login-email-preview.is-warn {
  color: #ffd9a0;
  border-color: rgba(217, 170, 91, 0.58);
  background: rgba(66, 42, 13, 0.74);
}

.login-recovery-accordion {
  margin: 0;
}

.login-recovery-accordion summary {
  list-style: none;
}

.login-recovery-accordion summary::-webkit-details-marker {
  display: none;
}

.login-recovery-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1.08rem 1.16rem;
}

.login-recovery-summary-copy {
  display: grid;
  gap: 0.18rem;
}

.login-recovery-summary-copy strong {
  color: #f6fbff;
  font-size: 1rem;
  line-height: 1.2;
}

.login-recovery-summary-copy span {
  color: #9fb7d2;
  font-size: 0.84rem;
  line-height: 1.44;
}

.login-recovery-summary-action::before {
  content: "Expandir";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.1rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 126, 160, 0.42);
  background: rgba(10, 28, 46, 0.82);
  color: #dbe9f9;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 0.42rem 0.72rem;
}

.login-recovery-summary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.login-recovery-summary-action::after {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  margin-left: -0.95rem;
  margin-right: 0.55rem;
  border-right: 2px solid #dbe9f9;
  border-bottom: 2px solid #dbe9f9;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.login-recovery-accordion[open] .login-recovery-summary-action::before {
  content: "Ocultar";
}

.login-recovery-accordion[open] .login-recovery-summary-action::after {
  transform: rotate(225deg);
}

.login-recovery-content {
  display: grid;
  gap: 0.92rem;
  padding: 0 1.16rem 1.18rem;
  border-top: 1px solid rgba(93, 126, 160, 0.24);
}

.login-recovery-note {
  margin: 0;
  color: #b7cadf;
  font-size: 0.9rem;
  line-height: 1.56;
}

.login-recovery-form .button-soft {
  min-height: 3.08rem;
  border: 1px solid rgba(224, 183, 114, 0.34);
  background: linear-gradient(135deg, rgba(255, 204, 122, 0.18), rgba(255, 187, 92, 0.14));
  color: #ffe1b1;
  box-shadow: 0 14px 26px rgba(60, 37, 8, 0.18);
}

.login-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.login-panel-actions .button-soft {
  min-height: 2.9rem;
  border: 1px solid rgba(95, 127, 160, 0.42);
  background: linear-gradient(180deg, rgba(15, 35, 57, 0.9), rgba(11, 28, 45, 0.88));
  color: #dce9f8;
}

.login-visual-panel {
  grid-area: visual;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 1.35rem;
  padding: clamp(1.65rem, 3vw, 2.5rem);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(45, 134, 236, 0.12), transparent 66%),
    radial-gradient(360px 220px at 0% 100%, rgba(39, 212, 182, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(7, 16, 29, 0.88), rgba(6, 17, 30, 0.94));
  backdrop-filter: blur(20px);
}

.login-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(105, 145, 188, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(105, 145, 188, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 86%);
  pointer-events: none;
}

.login-visual-glow {
  position: relative;
  z-index: 0;
}

.login-visual-glow::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
  pointer-events: none;
}

.login-visual-glow-a::before {
  width: 200px;
  height: 200px;
  top: -40px;
  right: -30px;
  background: radial-gradient(circle, rgba(66, 161, 255, 0.34), transparent 72%);
}

.login-visual-glow-b::before {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(55, 221, 194, 0.2), transparent 74%);
}

.login-visual-copy,
.login-visual-scene {
  position: relative;
  z-index: 1;
}

.login-visual-eyebrow {
  color: #7fc0ff;
  letter-spacing: 0.2rem;
}

.login-visual-copy h2 {
  margin: 0.16rem 0 0;
  max-width: 16ch;
  color: #f6fbff;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.login-visual-copy p:last-child {
  margin: 0.58rem 0 0;
  max-width: 34rem;
  color: #a9bfd8;
  font-size: 0.88rem;
  line-height: 1.48;
}

.login-visual-scene {
  min-height: 27rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(87, 121, 153, 0.3);
  background:
    linear-gradient(180deg, rgba(7, 19, 34, 0.72), rgba(7, 18, 31, 0.84)),
    rgba(8, 20, 34, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 40px rgba(2, 8, 16, 0.22);
  padding: 1.2rem;
  overflow: hidden;
}

.login-visual-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 154, 255, 0.08), transparent 32%, transparent 70%, rgba(54, 216, 191, 0.06));
  pointer-events: none;
}

.login-visual-master-card,
.login-float-card,
.login-process-step {
  border-radius: 1rem;
  border: 1px solid rgba(95, 129, 162, 0.34);
  background: linear-gradient(180deg, rgba(14, 31, 50, 0.88), rgba(11, 25, 41, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 28px rgba(3, 11, 22, 0.24);
  backdrop-filter: blur(14px);
}

.login-visual-master-card {
  width: 100%;
  display: grid;
  gap: 0.84rem;
  padding: 1rem 1rem 0.92rem;
  animation: login-card-float 7.5s ease-in-out infinite;
}

.login-visual-master-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.login-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(104, 142, 176, 0.32);
  background: rgba(8, 28, 46, 0.88);
  color: #d8e7f7;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 0.24rem 0.58rem;
}

.login-status-chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #7aa7d9;
}

.login-status-chip-live {
  border-color: rgba(61, 214, 183, 0.32);
  color: #c7fbef;
  background: rgba(7, 47, 44, 0.9);
}

.login-status-chip-live::before {
  background: #41d8bf;
  box-shadow: 0 0 10px rgba(65, 216, 191, 0.6);
  animation: login-live-pulse 1.8s ease-in-out infinite;
}

.login-visual-master-card strong {
  color: #f6fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.login-visual-master-card p {
  margin: 0;
  color: #afc5dc;
  font-size: 0.9rem;
  line-height: 1.52;
}

.login-master-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.login-master-progress span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  border-radius: 0.86rem;
  border: 1px solid rgba(93, 126, 160, 0.26);
  background: rgba(8, 22, 36, 0.72);
  color: #d0e1f4;
  font-size: 0.72rem;
  font-weight: 800;
}

.login-master-progress span.is-done {
  border-color: rgba(69, 190, 159, 0.32);
  color: #bff2df;
}

.login-master-progress span.is-live {
  border-color: rgba(228, 183, 94, 0.36);
  color: #ffe0a6;
}

.login-telco-board {
  display: grid;
  gap: 1rem;
}

.login-telco-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.login-telco-metric,
.login-telco-node,
.login-telco-status-card {
  border-radius: 1rem;
  border: 1px solid rgba(95, 129, 162, 0.32);
  background:
    linear-gradient(180deg, rgba(14, 31, 50, 0.92), rgba(10, 24, 39, 0.96)),
    rgba(10, 22, 36, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 28px rgba(3, 11, 22, 0.2);
}

.login-telco-metric {
  display: grid;
  gap: 0.18rem;
  padding: 0.88rem 0.92rem;
}

.login-telco-metric span {
  color: #82a8cd;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-telco-metric strong {
  color: #f6fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.login-telco-map {
  position: relative;
  min-height: 18.8rem;
  border-radius: 1.24rem;
  border: 1px solid rgba(93, 127, 160, 0.28);
  background:
    radial-gradient(180px 120px at 50% 50%, rgba(64, 180, 255, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(10, 23, 38, 0.96), rgba(8, 20, 34, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 30px rgba(2, 9, 18, 0.2);
  overflow: hidden;
}

.login-telco-map::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(93, 127, 160, 0.12);
}

.login-telco-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(98, 136, 171, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(98, 136, 171, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.84), transparent 100%);
  pointer-events: none;
}

.login-telco-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 166, 255, 0.18), rgba(84, 166, 255, 0.92), rgba(63, 219, 196, 0.72), rgba(84, 166, 255, 0.18));
  transform-origin: left center;
  opacity: 0.82;
}

.login-telco-link-a {
  top: 33%;
  left: 28%;
  width: 24%;
  transform: rotate(-32deg);
}

.login-telco-link-b {
  top: 52%;
  left: 51%;
  width: 22%;
  transform: rotate(-20deg);
}

.login-telco-link-c {
  top: 60%;
  left: 28%;
  width: 22%;
  transform: rotate(28deg);
}

.login-telco-link-d {
  top: 48%;
  left: 19%;
  width: 18%;
  transform: rotate(178deg);
}

.login-telco-link-e {
  top: 48%;
  left: 51%;
  width: 18%;
  transform: rotate(0deg);
}

.login-telco-pulse {
  position: absolute;
  top: 48%;
  left: 49.6%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 222, 255, 1), rgba(71, 194, 255, 0.76));
  box-shadow:
    0 0 0 0.38rem rgba(71, 194, 255, 0.12),
    0 0 28px rgba(71, 194, 255, 0.46);
  animation: login-telco-pulse 2.2s ease-in-out infinite;
}

.login-telco-node {
  position: absolute;
  display: grid;
  gap: 0.14rem;
  min-width: 6rem;
  padding: 0.8rem 0.84rem;
}

.login-telco-node small {
  color: #86acd0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-telco-node strong {
  color: #f6fbff;
  font-size: 0.94rem;
  line-height: 1.12;
}

.login-telco-node.is-core {
  min-width: 6.4rem;
  padding: 1rem 1.02rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 170, 255, 0.18), transparent 82%),
    linear-gradient(180deg, rgba(12, 31, 50, 0.98), rgba(7, 22, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 26px rgba(65, 184, 255, 0.18),
    0 18px 30px rgba(3, 11, 22, 0.22);
}

.login-telco-node-core {
  top: 38%;
  left: 40%;
  transform: translate(-50%, -50%);
}

.login-telco-node-north {
  top: 12%;
  left: 20%;
}

.login-telco-node-east {
  top: 26%;
  right: 10%;
}

.login-telco-node-south {
  bottom: 12%;
  left: 28%;
}

.login-telco-node-west {
  bottom: 20%;
  right: 20%;
}

.login-telco-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.login-telco-status-card {
  display: grid;
  gap: 0.18rem;
  padding: 0.84rem 0.88rem;
}

.login-telco-status-card span {
  color: #82a8cd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-telco-status-card strong {
  color: #f6fbff;
  font-size: 0.94rem;
}

.login-telco-status-card.is-ok {
  border-color: rgba(76, 212, 177, 0.28);
}

.login-telco-status-card.is-live {
  border-color: rgba(255, 191, 94, 0.28);
}

.login-telco-status-card.is-ok strong {
  color: #c7fbef;
}

.login-telco-status-card.is-live strong {
  color: #ffe0a6;
}

.login-net-board {
  display: grid;
  gap: 0.98rem;
}

.login-net-topbar,
.login-net-statusbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.login-net-chip,
.login-net-status {
  border-radius: 0.96rem;
  border: 1px solid rgba(95, 129, 162, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 30, 49, 0.92), rgba(9, 22, 37, 0.96)),
    rgba(9, 21, 35, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 26px rgba(2, 9, 18, 0.18);
}

.login-net-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  color: #d7e7f8;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-net-chip.is-live {
  border-color: rgba(61, 214, 183, 0.3);
  color: #c7fbef;
}

.login-net-canvas {
  position: relative;
  min-height: 19rem;
  border-radius: 1.28rem;
  border: 1px solid rgba(93, 127, 160, 0.24);
  background:
    radial-gradient(220px 160px at 50% 50%, rgba(66, 175, 255, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(8, 21, 35, 0.98), rgba(7, 18, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 34px rgba(2, 9, 18, 0.2);
  overflow: hidden;
}

.login-net-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(98, 136, 171, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(98, 136, 171, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.72;
}

.login-net-canvas::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(93, 127, 160, 0.1);
}

.login-net-link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 166, 255, 0.12), rgba(84, 166, 255, 0.92), rgba(63, 219, 196, 0.72), rgba(84, 166, 255, 0.12));
  transform-origin: left center;
  opacity: 0.9;
  z-index: 1;
}

.login-net-link-a {
  top: 35%;
  left: 31%;
  width: 19%;
  transform: rotate(-35deg);
}

.login-net-link-b {
  top: 48%;
  left: 50%;
  width: 20%;
  transform: rotate(-24deg);
}

.login-net-link-c {
  top: 56%;
  left: 32%;
  width: 18%;
  transform: rotate(28deg);
}

.login-net-link-d {
  top: 51%;
  left: 50%;
  width: 18%;
  transform: rotate(32deg);
}

.login-net-beam {
  position: absolute;
  top: 49.8%;
  left: 48.6%;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 229, 255, 0.98), rgba(64, 193, 255, 0.72));
  box-shadow:
    0 0 0 0.42rem rgba(64, 193, 255, 0.12),
    0 0 34px rgba(64, 193, 255, 0.44);
  z-index: 3;
  animation: login-net-beam-pulse 2.3s ease-in-out infinite;
}

.login-net-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7.4rem;
  height: 7.4rem;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 2;
}

.login-net-core-ring,
.login-net-core-dot {
  position: absolute;
  border-radius: 50%;
}

.login-net-core-ring {
  inset: 0;
  border: 1px solid rgba(86, 166, 255, 0.24);
  background: radial-gradient(circle, rgba(69, 143, 255, 0.12), rgba(7, 20, 34, 0) 70%);
  box-shadow: inset 0 0 22px rgba(64, 193, 255, 0.08);
}

.login-net-core-dot {
  width: 0.9rem;
  height: 0.9rem;
  background: radial-gradient(circle, rgba(201, 240, 255, 1), rgba(64, 193, 255, 0.7));
  box-shadow: 0 0 18px rgba(64, 193, 255, 0.56);
}

.login-net-core-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.12rem;
  text-align: center;
}

.login-net-core-copy span,
.login-net-point-label {
  display: block;
  background: transparent;
  color: #87acca;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.login-net-core-copy strong {
  display: block;
  background: transparent;
  color: #f6fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.18rem;
  line-height: 1;
}

.login-net-point {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.46rem;
}

.login-net-point-dot {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 237, 255, 0.98), rgba(77, 160, 255, 0.7));
  box-shadow:
    0 0 0 0.24rem rgba(77, 160, 255, 0.12),
    0 0 18px rgba(77, 160, 255, 0.28);
}

.login-net-point-a {
  top: 18%;
  left: 24%;
}

.login-net-point-b {
  top: 32%;
  right: 16%;
}

.login-net-point-c {
  bottom: 18%;
  left: 30%;
}

.login-net-point-d {
  bottom: 24%;
  right: 23%;
}

.login-net-status {
  display: grid;
  gap: 0.18rem;
  padding: 0.82rem 0.88rem;
}

.login-net-status span {
  color: #82a8cd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-net-status strong {
  display: block;
  background: transparent;
  color: #f6fbff;
  font-size: 0.96rem;
  line-height: 1.08;
}

.login-net-status.is-ok {
  border-color: rgba(76, 212, 177, 0.28);
}

.login-net-status.is-live {
  border-color: rgba(255, 191, 94, 0.28);
}

.login-net-status.is-ok strong {
  color: #c7fbef;
}

.login-net-status.is-live strong {
  color: #ffe0a6;
}

.login-hero-operations {
  display: grid;
  gap: 0.95rem;
}

.login-hero-operations-stage {
  position: relative;
  min-height: 22rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(93, 127, 160, 0.24);
  background:
    radial-gradient(240px 160px at 50% 50%, rgba(66, 175, 255, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(9, 22, 37, 0.98), rgba(7, 18, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 34px rgba(2, 9, 18, 0.2);
  overflow: hidden;
}

.login-hero-operations-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(98, 136, 171, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(98, 136, 171, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.7;
}

.login-hero-operations-stage::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(93, 127, 160, 0.1);
}

.login-hero-operations-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 13rem;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.26rem;
  padding: 1rem 1.05rem;
  border-radius: 1.04rem;
  border: 1px solid rgba(95, 129, 162, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(93, 170, 255, 0.16), transparent 80%),
    linear-gradient(180deg, rgba(13, 30, 49, 0.96), rgba(9, 22, 37, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 28px rgba(66, 175, 255, 0.12),
    0 18px 28px rgba(2, 9, 18, 0.22);
}

.login-hero-operations-core-kicker,
.login-hero-operations-copy span {
  color: #88adcd;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.login-hero-operations-core strong,
.login-hero-operations-copy strong {
  display: block;
  margin: 0;
  background: transparent;
  color: #f6fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.08;
}

.login-hero-operations-core strong {
  font-size: 1.1rem;
}

.login-hero-operations-core p {
  margin: 0;
  color: #a8bdd7;
  font-size: 0.8rem;
  line-height: 1.42;
}

.login-hero-operations-trace {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(84, 166, 255, 0.12), rgba(84, 166, 255, 0.92), rgba(63, 219, 196, 0.64), rgba(84, 166, 255, 0.12));
  transform-origin: left center;
  opacity: 0.88;
  z-index: 1;
}

.login-hero-operations-trace-a {
  top: 32%;
  left: 30%;
  width: 20%;
  transform: rotate(-26deg);
}

.login-hero-operations-trace-b {
  top: 41%;
  left: 56%;
  width: 15%;
  transform: rotate(-18deg);
}

.login-hero-operations-trace-c {
  top: 59%;
  left: 31%;
  width: 20%;
  transform: rotate(26deg);
}

.login-hero-operations-trace-d {
  top: 58%;
  left: 55%;
  width: 15%;
  transform: rotate(18deg);
}

.login-hero-operations-card {
  position: absolute;
  z-index: 2;
  width: 12.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.86rem 0.92rem;
  border-radius: 1rem;
  border: 1px solid rgba(95, 129, 162, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 30, 49, 0.92), rgba(9, 22, 37, 0.96)),
    rgba(9, 21, 35, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 26px rgba(2, 9, 18, 0.18);
  opacity: 0.42;
  animation: login-hero-card-focus 12s ease-in-out infinite;
}

.login-hero-operations-card-contracts {
  top: 1.35rem;
  left: 1.35rem;
  animation-delay: 0s;
}

.login-hero-operations-card-billing {
  top: 2.65rem;
  right: 1.35rem;
  animation-delay: 3s;
}

.login-hero-operations-card-official {
  bottom: 2.65rem;
  left: 1.35rem;
  animation-delay: 6s;
}

.login-hero-operations-card-orders {
  bottom: 1.35rem;
  right: 1.35rem;
  animation-delay: 9s;
}

.login-hero-operations-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(97, 131, 165, 0.24);
  background: rgba(8, 22, 37, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-hero-operations-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: #8fc3ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-hero-operations-copy {
  display: grid;
  gap: 0.16rem;
}

.login-hero-operations-copy strong {
  font-size: 0.92rem;
}

.login-hero-operations-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: start;
  padding-top: 0.95rem;
}

.login-hero-operations-strip-line {
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(83, 164, 255, 0.14), rgba(83, 164, 255, 0.92), rgba(61, 217, 194, 0.74), rgba(83, 164, 255, 0.14));
}

.login-hero-operations-strip-glow {
  position: absolute;
  top: -1px;
  left: 0.62rem;
  width: 4.8rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(168, 224, 255, 0.98), rgba(255, 191, 94, 0.94), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: login-hero-strip-glow 5.2s ease-in-out infinite;
}

.login-hero-operations-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 1.95rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(93, 126, 160, 0.24);
  background: rgba(10, 24, 41, 0.82);
  color: #d8e7f7;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.login-hero-operations-pill.is-active {
  border-color: rgba(61, 214, 183, 0.28);
  color: #c7fbef;
}

.login-net-board,
.login-telco-board,
.login-command-deck {
  display: none;
}

.login-command-deck {
  display: grid;
  gap: 0.98rem;
}

.login-command-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

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

.login-command-card {
  display: grid;
  gap: 0.54rem;
  min-height: 10.8rem;
  padding: 1rem;
  border-radius: 1.08rem;
  border: 1px solid rgba(95, 129, 162, 0.32);
  background:
    linear-gradient(180deg, rgba(13, 30, 49, 0.92), rgba(9, 22, 37, 0.96)),
    rgba(9, 21, 35, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 28px rgba(2, 9, 18, 0.18);
  backdrop-filter: blur(12px);
}

.login-command-card-head,
.login-command-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.login-command-card-kicker,
.login-command-card-state,
.login-command-card-foot span {
  color: #89abcc;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-command-card strong {
  display: block;
  margin: 0;
  background: transparent;
  color: #f6fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.14rem;
  line-height: 1.08;
}

.login-command-card p {
  margin: 0;
  color: #a7bed8;
  font-size: 0.83rem;
  line-height: 1.44;
}

.login-command-card-bar {
  position: relative;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(8, 21, 35, 0.92);
  overflow: hidden;
}

.login-command-card-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 155, 255, 0.92), rgba(54, 216, 191, 0.82));
}

.login-command-card-bar > span.is-live {
  width: 72%;
}

.login-command-card-bar > span.is-warn {
  width: 54%;
  background: linear-gradient(90deg, rgba(255, 191, 94, 0.94), rgba(94, 155, 255, 0.84));
}

.login-command-card-bar > span.is-ok {
  width: 64%;
}

.login-command-card-bar > span:not(.is-live):not(.is-warn):not(.is-ok) {
  width: 38%;
  background: linear-gradient(90deg, rgba(102, 129, 159, 0.88), rgba(78, 102, 128, 0.8));
}

.login-command-card-contracts {
  border-color: rgba(61, 214, 183, 0.24);
}

.login-command-card-contracts.is-live {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 28px rgba(2, 9, 18, 0.18),
    0 0 0 1px rgba(61, 214, 183, 0.06);
  animation: login-card-float 6.8s ease-in-out infinite;
}

.login-command-card-billing {
  border-color: rgba(255, 191, 94, 0.24);
}

.login-command-card-work {
  border-color: rgba(94, 155, 255, 0.24);
}

.login-command-ticker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
  align-items: start;
  padding-top: 1rem;
}

.login-command-ticker-line {
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(83, 164, 255, 0.14), rgba(83, 164, 255, 0.92), rgba(61, 217, 194, 0.78), rgba(83, 164, 255, 0.14));
}

.login-command-ticker-beam {
  position: absolute;
  top: -1px;
  left: 0.62rem;
  width: 5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(168, 224, 255, 0.98), rgba(255, 191, 94, 0.94), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: login-command-ticker-beam 5.4s ease-in-out infinite;
}

.login-command-ticker-item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(93, 126, 160, 0.24);
  background: rgba(10, 24, 41, 0.82);
  color: #d8e7f7;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.login-command-ticker-item.is-done {
  border-color: rgba(65, 209, 176, 0.3);
  color: #c7fbef;
}

.login-command-ticker-item.is-live {
  border-color: rgba(255, 191, 94, 0.3);
  color: #ffe0a6;
}

.login-ops-board,
.login-ops-metrics,
.login-ops-grid,
.login-ops-stream,
.login-ops-section-head,
.login-ops-rail,
.login-ops-node,
.login-ops-sidebar,
.login-ops-panel,
.login-ops-list,
.login-ops-status-list,
.login-ops-footer,
.login-ops-footer-row {
  display: none;
}

.login-ops-status-list span.is-done::before {
  background: #4cd4b1;
}

.login-ops-status-list span.is-live::before {
  background: #ffbf5e;
}

.login-ops-footer {
  display: grid;
  gap: 0.7rem;
}

.login-ops-footer-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.login-ops-footer-row > span,
.login-ops-footer-row > strong {
  color: #dce9f8;
  font-size: 0.78rem;
}

.login-ops-footer-row > strong {
  font-weight: 900;
}

.login-ops-footer-row > div {
  position: relative;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.9);
  overflow: hidden;
}

.login-ops-footer-row > div > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 155, 255, 0.9), rgba(54, 216, 191, 0.82));
}

.login-ops-footer-row > div > span.is-done {
  width: 82%;
}

.login-ops-footer-row > div > span.is-live {
  width: 61%;
  background: linear-gradient(90deg, rgba(255, 191, 94, 0.92), rgba(94, 155, 255, 0.82));
}

.login-ops-footer-row > div > span:not(.is-done):not(.is-live) {
  width: 34%;
  background: linear-gradient(90deg, rgba(93, 126, 160, 0.86), rgba(77, 102, 128, 0.8));
}

.login-doc-lane {
  display: grid;
  gap: 0.84rem;
}

.login-doc-lane-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.login-doc-track-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: stretch;
}

.login-doc-track {
  position: relative;
  min-height: 14rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
  align-items: start;
  padding: 1.15rem 1.1rem 2.6rem;
  border-radius: 1.18rem;
  border: 1px solid rgba(92, 128, 163, 0.3);
  background:
    radial-gradient(240px 120px at 16% 18%, rgba(68, 151, 255, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(11, 24, 39, 0.9), rgba(9, 20, 34, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(3, 11, 22, 0.2);
  overflow: hidden;
}

.login-doc-track::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.9rem;
  height: 3.4rem;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(8, 20, 35, 0.1) 0,
      rgba(8, 20, 35, 0.1) 14px,
      rgba(33, 71, 109, 0.5) 14px,
      rgba(33, 71, 109, 0.5) 40px
    ),
    linear-gradient(180deg, rgba(20, 43, 70, 0.92), rgba(10, 27, 47, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.login-doc-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93, 155, 255, 0.06), transparent 36%, transparent 70%, rgba(59, 214, 192, 0.04));
  pointer-events: none;
}

.login-doc-track-line {
  position: absolute;
  left: 1.85rem;
  right: 1.85rem;
  bottom: 2.5rem;
  height: 0.24rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(83, 164, 255, 0.14), rgba(83, 164, 255, 0.92), rgba(61, 217, 194, 0.82), rgba(83, 164, 255, 0.14));
  z-index: 1;
}

.login-doc-track-beam {
  position: absolute;
  left: 1.85rem;
  bottom: 2.38rem;
  width: 22%;
  height: 0.46rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(162, 224, 255, 0.98), rgba(255, 191, 94, 0.96), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: login-track-beam 5.8s ease-in-out infinite;
  z-index: 2;
}

.login-doc-track-carrier {
  position: absolute;
  left: 1.8rem;
  bottom: 1.85rem;
  width: 3rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 214, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(235, 246, 255, 0.98), rgba(179, 214, 247, 0.96)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 16px rgba(105, 188, 255, 0.34),
    0 8px 16px rgba(5, 15, 28, 0.22);
  animation: login-track-carrier 5.8s ease-in-out infinite;
  z-index: 3;
}

.login-doc-stage {
  position: relative;
  display: grid;
  gap: 0.34rem;
  padding: 0.9rem 0.94rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(112, 149, 184, 0.38);
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(221, 234, 247, 0.96)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 24px rgba(4, 12, 22, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.12);
  min-height: 8.4rem;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.login-doc-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.58rem;
  width: 0.9rem;
  height: 0.9rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #7ca8d7;
  box-shadow: 0 0 0 0.24rem rgba(124, 168, 215, 0.14);
  z-index: 3;
}

.login-doc-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.login-doc-stage-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: linear-gradient(180deg, rgba(22, 96, 179, 0.16), rgba(13, 69, 136, 0.14));
  color: #1f5d9e;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-doc-stage-state {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(14, 42, 69, 0.08);
  color: #557492;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.login-doc-stage strong {
  color: #0f2740;
  font-size: 0.94rem;
  line-height: 1.2;
}

.login-doc-stage p {
  margin: 0;
  color: #496684;
  font-size: 0.75rem;
  line-height: 1.42;
}

.login-doc-stage-contract {
  margin-top: 0.15rem;
  animation: login-card-float 7s ease-in-out infinite;
}

.login-doc-stage-contract::after {
  background: #4cd4b1;
  box-shadow: 0 0 0 0.24rem rgba(76, 212, 177, 0.14);
}

.login-doc-stage-bill {
  margin-top: 0.82rem;
  border-color: rgba(228, 183, 94, 0.38);
  box-shadow:
    0 18px 28px rgba(40, 25, 8, 0.18),
    0 0 0 1px rgba(228, 183, 94, 0.1);
  animation: login-card-float-alt 7.6s ease-in-out infinite;
}

.login-doc-stage-bill::after {
  background: #ffbf5e;
  box-shadow: 0 0 0 0.24rem rgba(255, 191, 94, 0.14);
  animation: login-live-pulse 1.8s ease-in-out infinite;
}

.login-doc-stage-letter {
  margin-top: 0.3rem;
  animation: login-card-float 8.2s ease-in-out infinite;
}

.login-doc-stage.is-done .login-doc-stage-state {
  background: rgba(76, 212, 177, 0.12);
  color: #2c7f69;
}

.login-doc-stage.is-live .login-doc-stage-state {
  background: rgba(255, 191, 94, 0.18);
  color: #8d6212;
}

.login-doc-gate {
  position: relative;
  width: 4.1rem;
  display: grid;
  align-content: center;
  gap: 0.58rem;
  border-radius: 1rem;
  border: 1px solid rgba(95, 129, 162, 0.34);
  background: linear-gradient(180deg, rgba(14, 31, 50, 0.88), rgba(11, 25, 41, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 24px rgba(3, 11, 22, 0.22);
  padding: 0.7rem;
  overflow: hidden;
}

.login-doc-gate::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(83, 164, 255, 0), rgba(83, 164, 255, 0.92), rgba(61, 217, 194, 0.78), rgba(83, 164, 255, 0));
}

.login-doc-gate::after {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 1rem;
  width: 0.5rem;
  height: 2.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(160, 216, 255, 0.98), rgba(255, 191, 94, 0.9), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: login-gate-scan 4.2s ease-in-out infinite;
}

.login-doc-gate span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(95, 129, 162, 0.24);
  background: rgba(7, 23, 39, 0.7);
  color: #dbe9f9;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.login-document-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.login-chain-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.76rem;
  padding: 0.82rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(95, 129, 162, 0.34);
  background: linear-gradient(180deg, rgba(14, 31, 50, 0.88), rgba(11, 25, 41, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 28px rgba(3, 11, 22, 0.2);
}

.login-chain-item strong {
  display: block;
  color: #f6fbff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.login-chain-item p {
  margin: 0.18rem 0 0;
  color: #9fb7d2;
  font-size: 0.77rem;
  line-height: 1.42;
}

.login-chain-item.is-done .login-process-node {
  background: #4cd4b1;
  box-shadow: 0 0 0 0.24rem rgba(76, 212, 177, 0.14);
}

.login-chain-item.is-live .login-process-node {
  background: #ffbf5e;
  box-shadow: 0 0 0 0.24rem rgba(255, 191, 94, 0.14);
  animation: login-live-pulse 1.8s ease-in-out infinite;
}

.login-visual-process {
  position: absolute;
  left: 1.2rem;
  bottom: 4.7rem;
  width: min(100%, 18.2rem);
  display: grid;
  gap: 0.72rem;
}

.login-visual-process::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(79, 161, 255, 0), rgba(79, 161, 255, 0.88), rgba(58, 215, 192, 0.88), rgba(79, 161, 255, 0));
  opacity: 0.72;
}

.login-visual-process::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.2rem;
  width: 0.62rem;
  height: 4.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(132, 196, 255, 0.9), rgba(71, 224, 199, 0), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: login-process-scan 4.8s ease-in-out infinite;
}

.login-process-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.76rem;
  padding: 0.82rem 0.9rem;
}

.login-process-step:nth-child(1) {
  animation: login-card-float 6.8s ease-in-out infinite;
}

.login-process-step:nth-child(2) {
  animation: login-card-float-alt 7.4s ease-in-out infinite;
}

.login-process-step:nth-child(3) {
  animation: login-card-float 8s ease-in-out infinite;
}

.login-process-node {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.26rem;
  border-radius: 50%;
  background: #7ca8d7;
  box-shadow: 0 0 0 0.24rem rgba(124, 168, 215, 0.14);
}

.login-process-step.is-done .login-process-node {
  background: #4cd4b1;
  box-shadow: 0 0 0 0.24rem rgba(76, 212, 177, 0.14);
}

.login-process-step.is-live .login-process-node {
  background: #ffbf5e;
  box-shadow: 0 0 0 0.24rem rgba(255, 191, 94, 0.14);
  animation: login-live-pulse 1.8s ease-in-out infinite;
}

.login-process-step strong {
  display: block;
  color: #f6fbff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.login-process-step p {
  margin: 0.18rem 0 0;
  color: #9fb7d2;
  font-size: 0.77rem;
  line-height: 1.42;
}

.login-visual-floating {
  position: absolute;
  top: 4.6rem;
  right: 1.2rem;
  width: min(100%, 16.6rem);
  display: grid;
  gap: 0.72rem;
}

.login-float-card {
  display: grid;
  gap: 0.24rem;
  padding: 0.86rem 0.92rem;
}

.login-float-card-doc {
  animation: login-card-float 7.2s ease-in-out infinite;
}

.login-float-card-sign {
  animation: login-card-float-alt 8s ease-in-out infinite;
}

.login-float-card-bill {
  animation: login-card-float 8.8s ease-in-out infinite;
}

.login-float-card-label {
  color: #7ca8d7;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-float-card strong {
  color: #f6fbff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.login-float-card p {
  margin: 0;
  color: #9fb7d2;
  font-size: 0.76rem;
  line-height: 1.46;
}

.login-visual-timeline {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
  align-items: start;
  padding-top: 1.08rem;
}

.login-visual-timeline-bar {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(83, 164, 255, 0.16), rgba(83, 164, 255, 0.88), rgba(61, 217, 194, 0.82), rgba(83, 164, 255, 0.16));
}

.login-visual-timeline::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0.4rem;
  width: 5.2rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(160, 216, 255, 0.95), rgba(255, 191, 94, 0.92), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: login-timeline-scan 4.6s ease-in-out infinite;
}

.login-visual-timeline-event {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(93, 126, 160, 0.26);
  background: rgba(10, 24, 41, 0.82);
  color: #d8e7f7;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.login-visual-timeline-event.is-done {
  border-color: rgba(65, 209, 176, 0.34);
  color: #c7fbef;
}

.login-visual-timeline-event.is-live {
  border-color: rgba(228, 183, 94, 0.34);
  color: #ffe0a6;
}

@keyframes login-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.28rem);
  }
}

@keyframes login-card-float-alt {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.28rem);
  }
}

@keyframes login-live-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.78;
  }
}

@keyframes login-process-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  25%,
  75% {
    opacity: 1;
  }
  50% {
    transform: translateY(11.8rem);
    opacity: 0.88;
  }
}

@keyframes login-timeline-scan {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18%,
  78% {
    opacity: 1;
  }
  100% {
    transform: translateX(22rem);
    opacity: 0;
  }
}

@keyframes login-net-beam-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.84;
  }
}

@keyframes login-command-ticker-beam {
  0% {
    left: 0.62rem;
    opacity: 0;
  }
  14%,
  84% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 5.62rem);
    opacity: 0;
  }
}

@keyframes login-telco-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.14);
    opacity: 0.86;
  }
}

@keyframes login-ops-rail-scan {
  0% {
    left: 1.45rem;
    opacity: 0;
  }
  14%,
  84% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 18% - 1.45rem);
    opacity: 0;
  }
}

@keyframes login-track-beam {
  0% {
    left: 1.85rem;
    opacity: 0;
  }
  12%,
  84% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 22% - 1.85rem);
    opacity: 0;
  }
}

@keyframes login-track-carrier {
  0% {
    left: 1.8rem;
    transform: scale(0.96);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  48% {
    left: calc(50% - 1.5rem);
    transform: scale(1);
    opacity: 1;
  }
  82% {
    left: calc(72% - 1.5rem);
    transform: scale(1);
    opacity: 1;
  }
  100% {
    left: calc(100% - 4.8rem);
    transform: scale(0.98);
    opacity: 0;
  }
}

@keyframes login-gate-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  50% {
    transform: translateY(6.2rem);
    opacity: 0.86;
  }
}

@media (max-width: 1180px) {
  .login-stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  }

  .login-visual-copy h2 {
    max-width: none;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
  }

  .login-command-grid {
    grid-template-columns: 1fr;
  }

  .login-net-canvas {
    min-height: 17.5rem;
  }
}

@media (max-width: 960px) {
  .login-stage-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "workbench"
      "visual";
  }

  .login-visual-panel {
    gap: 1rem;
    padding: 1.1rem 1.1rem 1.2rem;
    border-top: 1px solid rgba(78, 114, 147, 0.28);
  }

  .login-workbench {
    border-left: 0;
  }

  .login-visual-copy h2 {
    max-width: none;
  }

  .login-visual-scene {
    min-height: auto;
    padding: 1rem;
  }

  .login-visual-master-card {
    width: 100%;
  }

  .login-command-head {
    align-items: flex-start;
  }

  .login-command-ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-net-topbar,
  .login-net-statusbar {
    grid-template-columns: 1fr;
  }

  .login-net-canvas {
    min-height: 21rem;
  }

  .login-net-point-a {
    top: 16%;
    left: 18%;
  }

  .login-net-point-b {
    top: 26%;
    right: 11%;
  }

  .login-net-point-c {
    bottom: 14%;
    left: 20%;
  }

  .login-net-point-d {
    bottom: 18%;
    right: 16%;
  }

  .login-doc-track-shell {
    grid-template-columns: 1fr;
  }

  .login-doc-track {
    min-height: 12.8rem;
  }

  .login-doc-gate {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }

  .login-doc-gate::before {
    left: 1rem;
    right: 1rem;
    top: -0.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(83, 164, 255, 0), rgba(83, 164, 255, 0.92), rgba(61, 217, 194, 0.78), rgba(83, 164, 255, 0));
  }

  .login-doc-gate::after {
    left: 1rem;
    top: -0.72rem;
    width: 2.2rem;
    height: 0.45rem;
    animation: login-track-beam 4.8s ease-in-out infinite;
  }

  .login-document-chain {
    grid-template-columns: 1fr;
  }

  .login-visual-timeline {
    margin-top: 0.2rem;
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 0.7rem 0 1.2rem;
  }

  .login-stage-card {
    border-radius: 1.2rem;
  }

  .login-workbench {
    padding: 1rem;
  }

  .login-workbench h1 {
    font-size: clamp(2rem, 11vw, 2.9rem);
  }

  .login-panel-lead {
    font-size: 0.93rem;
  }

  .login-visual-panel {
    padding: 0.95rem;
  }

  .login-visual-copy h2 {
    font-size: 1.55rem;
  }

  .login-visual-scene {
    display: none;
  }

  .login-form-panel,
  .login-recovery-accordion {
    border-radius: 1.05rem;
  }

  .login-form-panel {
    padding: 0.95rem;
  }

  .login-recovery-summary,
  .login-recovery-content {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .login-form-head,
  .login-recovery-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-recovery-summary-action::before {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-visual-master-card,
  .login-command-card.is-live,
  .login-command-ticker-beam,
  .login-net-beam,
  .login-telco-pulse,
  .login-ops-rail::after,
  .login-doc-stage,
  .login-chain-item,
  .login-status-chip-live::before,
  .login-doc-track-beam,
  .login-doc-track-carrier,
  .login-doc-gate::after,
  .login-visual-timeline::before {
    animation: none !important;
  }

  .login-form-panel .payment-form input,
  .login-recovery-form input,
  .login-form .button-primary,
  .login-recovery-summary-action::after {
    transition: none;
  }
}

/* Login refresh: minimal form + animated document flow */
.login-stage-card {
  width: min(100%, 1120px);
  background:
    radial-gradient(560px 240px at -6% -6%, rgba(43, 118, 214, 0.14), transparent 66%),
    radial-gradient(460px 260px at 108% 108%, rgba(31, 180, 157, 0.1), transparent 62%),
    linear-gradient(135deg, rgba(6, 16, 29, 0.98), rgba(8, 20, 35, 0.99));
}

.login-stage-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.9fr);
}

.login-visual-panel {
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
}

.login-visual-copy h2 {
  max-width: 16ch;
  font-size: clamp(1.58rem, 2.3vw, 2rem);
  line-height: 1.08;
}

.login-visual-copy p:last-child {
  max-width: 31rem;
  font-size: 0.84rem;
  line-height: 1.52;
}

.login-visual-scene {
  min-height: 25.5rem;
  padding: 1.1rem;
}

.login-workbench {
  gap: 0.92rem;
  padding: clamp(1.3rem, 2.5vw, 2rem);
}

.login-workbench h1 {
  margin-top: 0.3rem;
  font-size: clamp(1.72rem, 2vw, 2.14rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.login-panel-lead {
  max-width: 32rem;
  font-size: 0.86rem;
  line-height: 1.56;
}

.login-trust-row {
  gap: 0.42rem;
}

.login-trust-chip {
  padding: 0.26rem 0.64rem;
  font-size: 0.7rem;
}

.login-form-panel {
  gap: 0.82rem;
  padding: 1.08rem 1.12rem;
  border-radius: 1.1rem;
}

.login-form-panel h2 {
  font-size: 1.18rem;
}

.login-form-copy {
  font-size: 0.88rem;
}

.login-form-panel .payment-form label,
.login-recovery-form label {
  font-size: 0.8rem;
}

.login-form-panel .payment-form input,
.login-form-panel .payment-form select,
.login-recovery-form input {
  min-height: 2.95rem;
}

.login-form .button-primary,
.login-recovery-form .button-soft {
  min-height: 3rem;
}

.login-recovery-accordion {
  border-radius: 1.1rem;
}

.login-recovery-summary {
  padding: 1rem 1.08rem;
}

.login-recovery-content {
  padding: 0 1.08rem 1.08rem;
}

.login-panel-actions .button-soft {
  min-height: 2.72rem;
}

.login-flow-hero {
  position: relative;
  display: grid;
  gap: 1rem;
}

.login-flow-hero::before {
  content: "";
  position: absolute;
  inset: 10% 24% auto;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 153, 255, 0.16), transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

.login-flow-stack {
  position: relative;
  display: grid;
  gap: 0.92rem;
  min-height: 21rem;
  padding: 0.5rem 0 0.6rem 3.55rem;
}

.login-flow-rail {
  position: absolute;
  left: 1.15rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(86, 166, 255, 0), rgba(86, 166, 255, 0.9), rgba(53, 214, 190, 0.72), rgba(86, 166, 255, 0));
}

.login-flow-rail::before,
.login-flow-rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(192, 238, 255, 0.98), rgba(80, 176, 255, 0.68));
  box-shadow: 0 0 16px rgba(80, 176, 255, 0.32);
}

.login-flow-rail::before {
  top: 0;
}

.login-flow-rail::after {
  bottom: 0;
}

.login-flow-rail-beam {
  position: absolute;
  left: 0.48rem;
  top: 0.95rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 242, 255, 0.96), rgba(82, 178, 255, 0.72) 58%, rgba(82, 178, 255, 0));
  box-shadow:
    0 0 0 0.32rem rgba(82, 178, 255, 0.1),
    0 0 28px rgba(82, 178, 255, 0.28);
  animation: login-flow-rail-run 16s ease-in-out infinite;
}

.login-flow-card {
  --flow-accent-rgb: 108, 183, 255;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.84rem;
  width: min(100%, 19rem);
  padding: 0.92rem 0.96rem;
  border-radius: 1.18rem;
  border: 1px solid rgba(87, 122, 158, 0.28);
  background:
    linear-gradient(180deg, rgba(11, 27, 45, 0.9), rgba(8, 20, 34, 0.96)),
    rgba(8, 20, 34, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 26px rgba(2, 8, 16, 0.22);
  backdrop-filter: blur(14px);
  opacity: 0.56;
  animation: login-flow-card-cycle 16s ease-in-out infinite;
}

.login-flow-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--flow-accent-rgb), 0), rgba(var(--flow-accent-rgb), 0.88), rgba(var(--flow-accent-rgb), 0));
}

.login-flow-card-billing,
.login-flow-card-orders {
  justify-self: end;
}

.login-flow-card-contracts {
  --flow-accent-rgb: 95, 183, 255;
  animation-delay: 0s;
}

.login-flow-card-billing {
  --flow-accent-rgb: 61, 214, 191;
  animation-delay: -12s;
}

.login-flow-card-official {
  --flow-accent-rgb: 244, 193, 98;
  animation-delay: -8s;
}

.login-flow-card-orders {
  --flow-accent-rgb: 159, 133, 255;
  animation-delay: -4s;
}

.login-flow-card-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--flow-accent-rgb), 0.28);
  background:
    linear-gradient(180deg, rgba(var(--flow-accent-rgb), 0.18), rgba(11, 27, 45, 0.08)),
    rgba(10, 25, 42, 0.88);
  color: rgb(var(--flow-accent-rgb));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-flow-card-icon svg {
  width: 1.18rem;
  height: 1.18rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-flow-card-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.login-flow-card-copy span {
  color: rgba(var(--flow-accent-rgb), 0.96);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.login-flow-card-copy strong {
  color: #f7fbff;
  font-size: 0.97rem;
  line-height: 1.16;
}

.login-flow-card-copy p {
  margin: 0;
  color: #9eb6cf;
  font-size: 0.76rem;
  line-height: 1.42;
}

.login-flow-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.7rem;
  min-height: 1.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--flow-accent-rgb), 0.24);
  background: rgba(10, 24, 41, 0.8);
  color: rgb(var(--flow-accent-rgb));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 0.22rem 0.58rem;
}

.login-flow-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.login-flow-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(93, 126, 160, 0.24);
  background: rgba(10, 24, 41, 0.72);
  color: #d4e4f6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04rem;
  padding: 0.3rem 0.68rem;
}

.login-flow-footer span::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #73bbff, #43d3be);
  box-shadow: 0 0 10px rgba(83, 169, 255, 0.26);
}

@keyframes login-flow-card-cycle {
  0%,
  100% {
    opacity: 0.52;
    transform: translateY(0) scale(0.985);
    border-color: rgba(87, 122, 158, 0.24);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 16px 26px rgba(2, 8, 16, 0.22);
  }
  6%,
  18% {
    opacity: 1;
    transform: translateY(-0.14rem) scale(1);
    border-color: rgba(var(--flow-accent-rgb), 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 24px 38px rgba(2, 8, 16, 0.32),
      0 0 0 1px rgba(var(--flow-accent-rgb), 0.14),
      0 0 28px rgba(var(--flow-accent-rgb), 0.14);
  }
  28%,
  94% {
    opacity: 0.62;
    transform: translateY(0) scale(0.992);
    border-color: rgba(87, 122, 158, 0.24);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 16px 26px rgba(2, 8, 16, 0.22);
  }
}

@keyframes login-flow-rail-run {
  0%,
  5% {
    transform: translateY(0) scale(0.92);
    opacity: 0;
  }
  8%,
  20% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  30%,
  42% {
    transform: translateY(5.3rem) scale(1);
    opacity: 1;
  }
  52%,
  64% {
    transform: translateY(10.6rem) scale(1);
    opacity: 1;
  }
  74%,
  86% {
    transform: translateY(15.9rem) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(19.2rem) scale(0.94);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .login-stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  }

  .login-flow-card {
    width: min(100%, 17.6rem);
  }
}

@media (max-width: 960px) {
  .login-stage-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "workbench"
      "visual";
  }

  .login-visual-panel {
    padding: 1.05rem 1.05rem 1.15rem;
  }

  .login-visual-copy h2 {
    max-width: none;
  }

  .login-flow-stack {
    min-height: auto;
    padding-left: 3rem;
  }

  .login-flow-card,
  .login-flow-card-billing,
  .login-flow-card-orders {
    width: 100%;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .login-workbench {
    padding: 1rem;
  }

  .login-workbench h1 {
    font-size: clamp(1.55rem, 8vw, 1.92rem);
  }

  .login-panel-lead {
    font-size: 0.84rem;
  }

  .login-visual-panel {
    padding: 0.92rem;
  }

  .login-visual-copy h2 {
    font-size: 1.36rem;
  }

  .login-form-panel,
  .login-recovery-accordion {
    border-radius: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-flow-card,
  .login-flow-rail-beam {
    animation: none !important;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 148, 231, 0.17), transparent 67%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -110px -150px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 194, 175, 0.16), transparent 69%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  color: #365c84;
  font-size: 0.74rem;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 0.22rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  line-height: 1.04;
  max-width: 850px;
}

.hero p {
  margin: 0.8rem 0 0;
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.search-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.52rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.98));
  padding: 0.95rem;
}

.search-form label {
  color: #3b5573;
  font-size: 0.92rem;
  font-weight: 700;
}

.search-row {
  display: flex;
  gap: 0.58rem;
}

.search-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c3d6ec;
  border-radius: 0.72rem;
  padding: 0.62rem 0.76rem;
  background: #f8fbff;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.search-row input:focus {
  outline: none;
  border-color: #1d75bc;
  box-shadow: 0 0 0 3px rgba(29, 117, 188, 0.17);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  text-decoration: none;
  border-radius: 0.78rem;
  padding: 0.56rem 1.02rem;
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform 140ms ease, filter 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(140deg, #0f6eb1, #0f4f87);
  box-shadow: 0 7px 18px rgba(15, 95, 151, 0.28);
}

.button-soft {
  color: #164a79;
  background: linear-gradient(180deg, #eef6ff, #deecfb);
  border: 1px solid #bfd6ed;
}

.button-soft.is-active {
  border-color: #88b4df;
  background: linear-gradient(180deg, #dff0ff, #cce5fa);
}

.button-workspace {
  gap: 0;
  padding-inline: 1rem 1.08rem;
  color: #6a4a1c;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(239, 245, 254, 0.96));
  border-color: rgba(214, 188, 139, 0.9);
}

.button-workspace.is-active {
  border-color: #cfa35a;
  background: linear-gradient(180deg, #fff4df, #f5e1b0);
  color: #5f4311;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 238, 0.86),
    0 12px 20px rgba(114, 83, 24, 0.16);
}

.button-workspace-text {
  white-space: nowrap;
}

.topnav-exit {
  min-height: 2.62rem;
  padding-inline: 1rem;
  width: 100%;
  justify-content: center;
}

.button-danger {
  color: #fff;
  background: linear-gradient(145deg, #a5314b, #7f2138);
}

.button-mini {
  padding: 0.35rem 0.66rem;
  border-radius: 0.6rem;
  font-size: 0.81rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid #c8d9ec;
  padding: 0.95rem 1rem;
  background: linear-gradient(155deg, #ffffff 0%, #eff7ff 96%);
}

.kpi-card::after {
  content: "";
  position: absolute;
  top: -45px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 152, 227, 0.23), transparent 70%);
}

.kpi-label {
  margin: 0;
  color: #496382;
  font-size: 0.79rem;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  font-weight: 800;
}

.kpi-value {
  margin: 0.34rem 0 0;
  color: #081d3a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  line-height: 1;
  font-weight: 700;
}

.process-hero {
  position: relative;
  overflow: hidden;
  border-color: #b8cfe7;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(460px 220px at 88% -30%, rgba(42, 166, 223, 0.22), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.96) 100%);
}

.module-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 0.88rem 1.1rem;
  border-color: #b8cfe7;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(460px 220px at 88% -30%, rgba(42, 166, 223, 0.22), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.96) 100%);
}

.module-hero-main h1 {
  margin: 0.22rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.05;
}

.module-hero-main p {
  max-width: 760px;
}

.module-hero-side {
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.module-hero-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.1rem;
  border: 1px solid #bcd4ec;
  background: linear-gradient(155deg, #0d4e88, #1789b7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(12, 54, 97, 0.28);
}

.module-hero-icon svg {
  width: 2.6rem;
  height: 2.6rem;
  fill: none;
  stroke: #f4fbff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.88rem;
  margin-bottom: 1rem;
}

.module-focus-card {
  margin-bottom: 0;
  border-color: #c4d7eb;
  background:
    radial-gradient(130px 90px at 88% 12%, rgba(54, 174, 224, 0.14), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 246, 255, 0.95) 100%);
}

.module-focus-card h3 {
  margin: 0.18rem 0 0;
  color: #102d4d;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
}

.fact-premium-shell {
  border-color: #afcbe4;
  background:
    radial-gradient(280px 150px at 92% 8%, rgba(47, 146, 214, 0.2), transparent 74%),
    linear-gradient(162deg, rgba(255, 255, 255, 0.99) 0%, rgba(234, 245, 255, 0.95) 100%);
}

.fact-premium-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.fact-head-copy h3 {
  margin: 0.24rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.24rem, 2.1vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: 0.18px;
}

.fact-head-copy .chips {
  margin-top: 0.56rem;
}

.fact-kpi-grid {
  margin-top: 0.66rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.56rem;
}

.fact-kpi-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #c2d7ec;
  border-radius: 0.76rem;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  padding: 0.58rem 0.62rem;
}

.fact-kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: #5f84a8;
}

.fact-kpi-card.tone-total::before {
  background: #1f74b8;
}

.fact-kpi-card.tone-ticket::before {
  background: #0d8a7d;
}

.fact-kpi-card.tone-expire::before {
  background: #a47510;
}

.fact-kpi-card.tone-audit::before {
  background: #8d4a60;
}

.fact-kpi-card .kpi-value {
  font-size: clamp(1.36rem, 2vw, 1.92rem);
}

.fact-status-row {
  margin-top: 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.fact-status-pill {
  border: 1px solid #bfd4e9;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fcff, #edf6ff);
  color: #355a7e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18px;
  padding: 0.16rem 0.56rem;
}

.fact-status-pill.tone-finance {
  border-color: #9cc5e5;
  background: linear-gradient(180deg, #f3f9ff, #e7f2ff);
  color: #1f5e92;
}

.fact-status-pill.tone-warning {
  border-color: #e6cc98;
  background: linear-gradient(180deg, #fffdf6, #fff2de);
  color: #89600e;
}

.fact-status-pill.tone-risk {
  border-color: #ddb0bc;
  background: linear-gradient(180deg, #fff9fa, #ffedf2);
  color: #8a4258;
}

.fact-status-pill.tone-audit {
  border-color: #c8d7e6;
  background: linear-gradient(180deg, #f8fbff, #edf3fa);
  color: #405873;
}

.fact-top-grid {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.fact-top-card {
  border: 1px solid #c4d8ed;
  border-radius: 0.76rem;
  background: linear-gradient(180deg, #ffffff, #eff7ff);
  padding: 0.52rem 0.56rem;
}

.fact-top-card.is-lead {
  border-color: #9fc3e2;
  background:
    radial-gradient(160px 90px at 88% 16%, rgba(31, 119, 190, 0.18), transparent 72%),
    linear-gradient(180deg, #f8fcff, #e9f3ff);
}

.fact-top-name {
  margin: 0;
  color: #123b60;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.fact-top-value {
  margin: 0.28rem 0 0;
  color: #0a2f53;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.02;
}

.fact-top-meta {
  margin: 0.2rem 0 0;
  color: #4a6989;
  font-size: 0.74rem;
  font-weight: 700;
}

.fact-search-form {
  margin-top: 0.7rem;
  border: 1px solid #c8dcee;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff, #eff7ff);
  padding: 0.54rem;
}

.fact-premium-table-wrap {
  border-color: #bfd6eb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

.fact-premium-table tbody .fact-row:nth-child(odd) td {
  background: rgba(20, 83, 136, 0.03);
}

.fact-premium-table tbody .fact-row:hover td {
  background: rgba(29, 112, 178, 0.09);
}

.process-hero::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  right: -120px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(14, 112, 177, 0.17), transparent 68%);
  pointer-events: none;
}

.process-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr minmax(290px, 0.9fr);
  gap: 0.9rem 1.1rem;
  align-items: start;
}

.process-hero-main h1 {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.03;
  letter-spacing: 0.2px;
}

.process-hero-main .muted {
  margin: 0.7rem 0 0;
  font-size: 1rem;
}

.process-hero-tags {
  margin-top: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.process-hero-side {
  display: grid;
  gap: 0.7rem;
  justify-items: end;
}

.process-hero-actions {
  justify-content: flex-end;
}

.process-progress-card {
  width: min(100%, 380px);
  border: 1px solid #c9dbee;
  border-radius: 0.92rem;
  padding: 0.7rem 0.78rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 246, 255, 0.88));
}

.process-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.process-progress-head strong {
  color: #103457;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-progress-track {
  margin-top: 0.45rem;
  width: 100%;
  height: 0.72rem;
  border-radius: 999px;
  border: 1px solid #c8daec;
  background: #e6f0fb;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f79c0, #2ebba9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.process-progress-meta {
  margin-top: 0.42rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #476583;
  font-size: 0.82rem;
  font-weight: 700;
}

.kpi-grid-process .kpi-card {
  border-color: #b9d1e9;
}

.process-kpi-card {
  background:
    radial-gradient(120px 70px at 82% 18%, rgba(63, 157, 226, 0.14), transparent 72%),
    linear-gradient(160deg, #ffffff 0%, #edf6ff 100%);
}

.process-kpi-card .kpi-value {
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}

.process-kpi-alert {
  border-color: #e0d0ab;
  background:
    radial-gradient(120px 70px at 82% 18%, rgba(222, 166, 46, 0.16), transparent 72%),
    linear-gradient(160deg, #ffffff 0%, #fff7e8 100%);
}

.process-kpi-good {
  border-color: #b6ddc8;
  background:
    radial-gradient(120px 70px at 82% 18%, rgba(43, 179, 130, 0.15), transparent 72%),
    linear-gradient(160deg, #ffffff 0%, #edfdf5 100%);
}

.kpi-card-list .chips {
  margin-top: 0.48rem;
}

.customer-kpi-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.customer-kpi-card {
  min-height: 172px;
  display: grid;
  align-content: center;
  gap: 0.28rem;
  border-color: #bad2ea;
  background:
    radial-gradient(150px 90px at 86% 12%, rgba(54, 157, 225, 0.14), transparent 72%),
    linear-gradient(160deg, #ffffff 0%, #eef6ff 100%);
}

.aliases-card {
  border-color: #bdd4ea;
  background:
    radial-gradient(180px 120px at 90% -20%, rgba(39, 155, 222, 0.14), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
}

.aliases-chip-cloud {
  margin-top: 0.65rem;
  max-height: 240px;
  overflow: auto;
  align-content: flex-start;
}

.aliases-chip-cloud .chip {
  background: linear-gradient(180deg, #eef6ff, #dfecfb);
  border-color: #b8d2ea;
  color: #224d79;
}

.customer-dense-view {
  display: grid;
  gap: 0.66rem;
}

.customer-dense-view .card {
  margin-bottom: 0;
  padding: 0.8rem 0.86rem;
  border-radius: 0.76rem;
  border-color: #c1d6ea;
  box-shadow: 0 6px 14px rgba(8, 35, 63, 0.08);
}

.customer-dense-view .section-head h1 {
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
}

.customer-dense-view .kpi-grid {
  gap: 0.6rem;
}

.customer-dense-view .customer-kpi-card {
  min-height: 126px;
  padding: 0.72rem 0.76rem;
  gap: 0.2rem;
}

.customer-dense-view .kpi-label {
  font-size: 0.72rem;
  letter-spacing: 0.56px;
}

.customer-dense-view .kpi-value {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  margin-top: 0.18rem;
}

.customer-dense-view .aliases-card {
  padding-bottom: 0.72rem;
}

.customer-dense-view .aliases-chip-cloud {
  margin-top: 0.45rem;
  max-height: 176px;
  gap: 0.3rem;
}

.customer-dense-view .chip {
  padding: 0.12rem 0.46rem;
  font-size: 0.74rem;
  border-radius: 0.58rem;
}

.customer-dense-view .pill {
  padding: 0.14rem 0.54rem;
  font-size: 0.74rem;
}

.customer-process-subhead {
  margin-top: 0.18rem;
}

.customer-process-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.customer-process-total {
  display: grid;
  gap: 0.06rem;
  justify-items: end;
  min-width: 4.6rem;
}

.customer-process-total-label {
  color: #5f7894;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.customer-process-total-value {
  color: #103d69;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.customer-process-filter-shell {
  display: grid;
  gap: 0.28rem;
  justify-items: end;
  padding: 0.38rem 0.42rem 0.42rem;
  border: 1px solid #c8d9ec;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 255, 0.96)),
    linear-gradient(135deg, rgba(39, 109, 171, 0.08), rgba(20, 181, 148, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(8, 37, 67, 0.08);
}

.customer-process-filter-kicker {
  color: #5f7894;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}

.customer-process-switch {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

.customer-process-switch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  text-decoration: none;
  border: 1px solid rgba(176, 202, 228, 0.95);
  border-radius: 999px;
  padding: 0.34rem 0.44rem 0.34rem 0.78rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.98));
  color: #1a4b78;
  box-shadow: 0 4px 12px rgba(9, 34, 61, 0.06);
  transition:
    transform 140ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.customer-process-switch-chip:hover {
  transform: translateY(-1px);
  border-color: #78abd8;
  color: #123d66;
  box-shadow: 0 10px 20px rgba(12, 42, 74, 0.13);
}

.customer-process-switch-chip.is-active {
  border-color: rgba(15, 73, 126, 0.92);
  background: linear-gradient(135deg, #0f3f6d, #16679f 52%, #16879a 100%);
  color: #eff7ff;
  box-shadow: 0 12px 24px rgba(10, 48, 87, 0.22);
}

.customer-process-switch-label {
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}

.customer-process-switch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.92rem;
  min-height: 1.62rem;
  border-radius: 999px;
  padding: 0 0.48rem;
  background: rgba(13, 53, 90, 0.09);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 900;
}

.customer-process-switch-chip.is-active .customer-process-switch-count {
  background: rgba(232, 243, 255, 0.16);
}

@media (max-width: 860px) {
  .customer-process-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .customer-process-total,
  .customer-process-filter-shell {
    justify-items: start;
  }
}

.customer-dense-view .table-wrap {
  margin-top: 0.5rem;
  border-radius: 0.68rem;
  border-color: #c3d7ea;
}

.customer-dense-view .dense-table th,
.customer-dense-view .dense-table td {
  padding: 0.5rem 0.52rem;
  font-size: 0.84rem;
  line-height: 1.2;
}

.customer-dense-view .dense-table th {
  color: #d7e7f8;
  background: linear-gradient(180deg, #113e6b 0%, #0d345a 100%);
  border-bottom: 1px solid rgba(80, 126, 171, 0.42);
}

.customer-dense-view .dense-table tbody tr:nth-child(even) td {
  background: #f7fbff;
}

.customer-dense-view .dense-table tbody tr:hover td {
  background: #edf5ff;
}

.customer-dense-view .dense-table tbody tr:hover {
  transform: none;
}

.customer-dense-view .status-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
}

.customer-dense-view .link-action {
  font-size: 0.81rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.chip {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #c3d9ef;
  background: #ecf5ff;
  color: #2b5780;
  font-size: 0.79rem;
  font-weight: 700;
}

.portfolio-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  align-items: center;
}

.portfolio-split-compact {
  margin-top: 0.34rem;
  gap: 0.28rem;
}

.portfolio-split-table {
  margin-top: 0.22rem;
}

.portfolio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  border: 1px solid #c7d8ea;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.95));
  color: #204d78;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.portfolio-pill-label {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.34px;
  text-transform: uppercase;
  opacity: 0.72;
}

.portfolio-pill-value {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.portfolio-pill.tone-active {
  border-color: rgba(54, 145, 103, 0.22);
  background: linear-gradient(180deg, rgba(236, 251, 244, 0.98), rgba(221, 246, 234, 0.98));
  color: #176247;
}

.portfolio-pill.tone-ended {
  border-color: rgba(177, 114, 32, 0.28);
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.98), rgba(252, 239, 210, 0.98));
  color: #8a5a0f;
}

.portfolio-pill.tone-total {
  border-color: rgba(66, 120, 175, 0.2);
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.98), rgba(231, 241, 252, 0.98));
  color: #20527e;
}

.portfolio-pill.tone-capture {
  border-color: rgba(186, 121, 24, 0.26);
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.98), rgba(253, 240, 206, 0.98));
  color: #8c5f12;
}

.portfolio-pill.tone-validated {
  border-color: rgba(53, 107, 182, 0.22);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(223, 237, 253, 0.98));
  color: #1c5688;
}

.portfolio-pill.tone-plan {
  border-color: rgba(44, 129, 118, 0.2);
  background: linear-gradient(180deg, rgba(236, 252, 248, 0.98), rgba(216, 247, 239, 0.98));
  color: #17645b;
}

.portfolio-pill.tone-billing {
  border-color: rgba(90, 112, 201, 0.22);
  background: linear-gradient(180deg, rgba(241, 243, 255, 0.98), rgba(227, 233, 255, 0.98));
  color: #324ca2;
}

.lane-breakdown {
  margin-top: auto;
  padding-top: 0.14rem;
}

.fact-portfolio-split {
  margin-top: 0.68rem;
}

.workflow-chip-cloud {
  margin-top: 0.38rem;
}

.workflow-board {
  border-color: #bfd7ee;
  background:
    radial-gradient(circle at top right, rgba(82, 149, 214, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 246, 255, 0.98));
}

.workflow-board-head {
  flex-wrap: wrap;
  align-items: flex-start;
}

.workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.workflow-summary-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.72rem;
}

.workflow-state-card {
  border: 1px solid #c9dced;
  border-radius: 1rem;
  padding: 0.88rem 0.94rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.workflow-state-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.workflow-state-card h4 {
  margin: 0.28rem 0 0;
  font-size: 0.94rem;
  color: #1d456d;
}

.workflow-state-value {
  margin: 0.72rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #103d66;
  line-height: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.section-head h1,
.section-head h2,
.section-head h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.2px;
}

.module-collapse {
  border: 1px solid #c1d7ed;
  border-radius: 0.86rem;
  background: linear-gradient(180deg, #f9fcff, #eef6ff);
  padding: 0.42rem 0.52rem 0.62rem;
}

.module-collapse-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #18466f;
  padding: 0.16rem 0.08rem;
}

.module-collapse-summary::-webkit-details-marker {
  display: none;
}

.module-collapse-summary::after {
  content: "Ocultar";
  font-size: 0.78rem;
  font-weight: 800;
  color: #2a628f;
  border: 1px solid #bfd4e9;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  background: #e8f2fc;
}

.module-collapse:not([open]) .module-collapse-summary::after {
  content: "Mostrar";
}

.module-collapse[open] .module-collapse-summary {
  margin-bottom: 0.45rem;
  border-bottom: 1px dashed #c5d9ec;
  padding-bottom: 0.42rem;
}

.commercial-linked-process-cell {
  min-width: 0;
}

.commercial-linked-process-table {
  width: 100%;
  table-layout: fixed;
}

.commercial-linked-process-table th,
.commercial-linked-process-table td {
  vertical-align: top;
  padding: 0.56rem 0.52rem;
}

.commercial-linked-process-table th:nth-child(1),
.commercial-linked-process-table td:nth-child(1) {
  width: 14%;
}

.commercial-linked-process-table th:nth-child(2),
.commercial-linked-process-table td:nth-child(2) {
  width: 21%;
}

.commercial-linked-process-table th:nth-child(3),
.commercial-linked-process-table td:nth-child(3) {
  width: 17%;
}

.commercial-linked-process-table th:nth-child(4),
.commercial-linked-process-table td:nth-child(4) {
  width: 8%;
}

.commercial-linked-process-table th:nth-child(5),
.commercial-linked-process-table td:nth-child(5) {
  width: 5%;
}

.commercial-linked-process-table th:nth-child(6),
.commercial-linked-process-table td:nth-child(6) {
  width: 6%;
}

.commercial-linked-process-table th:nth-child(7),
.commercial-linked-process-table td:nth-child(7) {
  width: 29%;
}

.commercial-linked-process-name {
  word-break: break-word;
}

.commercial-linked-process-table td:first-child {
  overflow-wrap: anywhere;
}

.commercial-opportunity-cell {
  text-align: center;
}

.commercial-opportunity-pill {
  display: inline-block;
  max-width: 11.5rem;
  white-space: normal;
  text-align: center;
  line-height: 1.14;
  font-size: 0.62rem;
  letter-spacing: 0.08px;
  padding: 0.14rem 0.44rem;
  border-radius: 0.84rem;
  word-break: break-word;
}

.commercial-linked-process-collapse {
  min-width: 0;
  width: 100%;
  padding: 0.26rem 0.34rem 0.38rem;
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
  border-color: #b9d1e7;
  box-shadow: inset 0 0 0 1px rgba(214, 228, 242, 0.46);
}

.commercial-linked-process-summary {
  padding: 0.04rem 0;
  gap: 0.34rem;
  align-items: flex-start;
}

.commercial-linked-process-summary-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
}

.commercial-linked-process-summary strong {
  font-size: 0.74rem;
  line-height: 1.14;
}

.commercial-linked-process-summary::after {
  font-size: 0.66rem;
  padding: 0.08rem 0.42rem;
}

.commercial-linked-process-tabs {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.commercial-linked-process-actions {
  margin-top: 0.34rem;
  display: flex;
  justify-content: flex-start;
}

.commercial-linked-process-tabs .chip,
.commercial-linked-process-actions .button-mini {
  font-size: 0.68rem;
}

.commercial-linked-process-actions .button-mini {
  padding: 0.18rem 0.4rem;
}

.commercial-linked-process-lines-wrap table th,
.commercial-linked-process-lines-wrap table td {
  font-size: 0.78rem;
}

.commercial-linked-process-lines-wrap {
  overflow: hidden;
  border-radius: 0.78rem;
  border-color: #c4d7ea;
  background: rgba(255, 255, 255, 0.9);
}

.commercial-linked-process-lines-table {
  width: 100%;
  table-layout: auto;
}

.commercial-linked-process-lines-table th,
.commercial-linked-process-lines-table td {
  padding: 0.42rem 0.5rem;
  white-space: normal;
}

.commercial-linked-process-lines-table th:nth-child(1),
.commercial-linked-process-lines-table td:nth-child(1) {
  width: auto;
}

.commercial-contract-sheet {
  border: 1px solid #aecdde;
  border-radius: 0.94rem;
  padding: 0.8rem;
  background:
    radial-gradient(540px 180px at 0% 0%, rgba(36, 122, 194, 0.11), transparent 72%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.99), rgba(236, 245, 255, 0.95));
}

.commercial-contract-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.66rem;
  margin-bottom: 0.64rem;
}

.commercial-contract-sheet-head h4 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
}

.section-head.compact {
  gap: 0.55rem;
}

.section-head.compact h4 {
  margin: 0;
}

.commercial-line-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.commercial-line-profile-card {
  border: 1px solid #b7d0e8;
  border-radius: 1rem;
  padding: 0.9rem;
  background:
    radial-gradient(340px 120px at 0% 0%, rgba(47, 156, 224, 0.08), transparent 68%),
    linear-gradient(180deg, #fbfdff, #eef6ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.commercial-line-profile-card-compact {
  padding: 0.76rem;
}

.commercial-line-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.commercial-line-profile-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #14395f;
}

.commercial-line-profile-processes {
  margin-top: 0.55rem;
}

.commercial-line-profile-highlight-grid,
.commercial-line-profile-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.commercial-line-profile-highlight-grid {
  margin-top: 0.72rem;
}

.commercial-line-profile-highlight {
  border: 1px solid #c8daed;
  border-radius: 0.84rem;
  padding: 0.58rem 0.62rem;
  background: rgba(255, 255, 255, 0.72);
}

.commercial-line-profile-group + .commercial-line-profile-group {
  border-top: 1px dashed #c8daed;
  padding-top: 0.72rem;
}

/* ════════════════════════════════════════════════════
   FICHA COMERCIAL — Sistema de secciones profesional
════════════════════════════════════════════════════ */

.ficha-comercial {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Sección ── */
.ficha-section {
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid rgba(180, 210, 235, 0.35);
}

.ficha-section:last-child {
  border-bottom: none;
  padding-bottom: 0.2rem;
}

.ficha-section-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: #2d5a82;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.ficha-section-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.margin-left-auto { margin-left: auto; }

/* ── Grid de campos ── */
.ficha-grid {
  display: grid;
  gap: 0.6rem;
}

.ficha-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ficha-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .ficha-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ficha-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ficha-grid--4,
  .ficha-grid--3 { grid-template-columns: 1fr; }
}

/* ── Campo individual ── */
.ficha-field {
  background: #fff;
  border: 1px solid rgba(180, 210, 235, 0.7);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 130ms, box-shadow 130ms;
}

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

.ficha-field--locked {
  background: linear-gradient(135deg, #f5f9ff 0%, #edf4ff 100%);
  border-color: rgba(100, 165, 220, 0.38);
}

.ficha-field--editable {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(135deg, #fffef8 0%, #fffbea 100%);
}

.ficha-field--editable:focus-within {
  border-color: rgba(234, 179, 8, 0.9);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}

.ficha-field--empty {
  background: #fafbfc;
  border-color: rgba(180, 210, 235, 0.35);
}

.ficha-field--sercop {
  background: linear-gradient(135deg, #f2f8ff 0%, #e8f2ff 100%);
  border-color: rgba(46, 130, 200, 0.3);
}

.ficha-field-label {
  margin: 0;
  color: #5c83a4;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  line-height: 1;
}

.ficha-field-value {
  margin: 0;
  color: #0c2340;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.ficha-field-value--empty {
  color: #aec4d6;
  font-weight: 500;
  font-size: 0.85rem;
}

.ficha-field-value--link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #1a6db5;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ficha-field-value--link svg { opacity: 0.75; flex-shrink: 0; }

/* ── Input dentro de campo editable ── */
.ficha-input {
  display: block;
  width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0c2340;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.35;
  transition: border-color 120ms, box-shadow 120ms;
}

.ficha-input:focus {
  outline: none;
  border-color: #e6a800;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.ficha-input.mono {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.82rem;
}

.ficha-input--textarea {
  resize: vertical;
  min-height: 4rem;
}

/* ── Ley de protección de datos ── */
.ficha-dp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.ficha-dp-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid;
}

.ficha-dp-item--yes {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.3);
}

.ficha-dp-item--no {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

.ficha-dp-item--unknown {
  background: #fafbfc;
  border-color: rgba(180, 210, 235, 0.4);
}

.ficha-dp-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ficha-dp-icon svg {
  width: 1rem;
  height: 1rem;
}

.ficha-dp-item--yes .ficha-dp-icon { color: #059669; }
.ficha-dp-item--no .ficha-dp-icon { color: #dc2626; }
.ficha-dp-item--unknown .ficha-dp-icon { color: #94a3b8; }

.ficha-dp-label {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e3a54;
  line-height: 1.25;
}

.ficha-dp-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ficha-dp-item--yes .ficha-dp-status { color: #059669; }
.ficha-dp-item--no .ficha-dp-status { color: #dc2626; }
.ficha-dp-item--unknown .ficha-dp-status { color: #94a3b8; }

/* ── Línea de tiempo config ── */
.ficha-timeline-config {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ficha-tl-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #f5f9ff;
  border: 1px solid rgba(100, 165, 220, 0.3);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  min-width: 120px;
}

.ficha-tl-item--full { flex: 1 1 100%; }

.ficha-tl-key {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5c83a4;
}

.ficha-tl-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0c2340;
}

/* ── Timeline section head with split layout ── */
.ficha-section-head--split {
  justify-content: space-between;
}

.ficha-section-head-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* ── Timeline edit button ── */
.ficha-tl-edit-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
}

/* ── Selected líneas de negocio badges ── */
.ficha-tl-lines-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.ficha-tl-lines-display--empty {
  align-items: center;
}

.ficha-tl-line-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background: linear-gradient(135deg, #1a4f7a 0%, #2d6fa3 100%);
  color: #e8f4fd;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ── Modal ── */
.ficha-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 38, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.ficha-modal-backdrop.is-open {
  display: flex;
}

.ficha-modal {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  width: min(640px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ficha-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem 0.75rem;
  border-bottom: 1px solid rgba(180, 210, 235, 0.5);
  background: linear-gradient(135deg, #0c2340 0%, #1a4f7a 100%);
  color: #e8f4fd;
  border-radius: 1rem 1rem 0 0;
}

.ficha-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ficha-modal-title-group h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: inherit;
}

.ficha-modal-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #e8f4fd;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 130ms;
}

.ficha-modal-close:hover {
  background: rgba(255,255,255,0.22);
}

.ficha-modal-subtitle {
  font-size: 0.78rem;
  color: #4a7399;
  margin: 0.9rem 1.4rem 0;
}

.ficha-modal-form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.ficha-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 1rem 1.4rem;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 540px) {
  .ficha-lines-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Línea de negocio card ── */
.ficha-line-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.6rem 0.75rem;
  background: #f5f9ff;
  border: 1.5px solid rgba(100, 165, 220, 0.3);
  border-radius: 0.75rem;
  cursor: pointer;
  position: relative;
  transition: border-color 130ms, background 130ms, box-shadow 130ms;
  text-align: center;
}

.ficha-line-card:hover {
  background: #e8f4fd;
  border-color: #4a90c4;
  box-shadow: 0 2px 8px rgba(26, 79, 122, 0.1);
}

.ficha-line-card--selected {
  background: linear-gradient(135deg, #e8f4fd 0%, #d4eaf8 100%);
  border-color: #1a6db5;
  box-shadow: 0 2px 10px rgba(26, 109, 181, 0.18);
}

.ficha-line-cb {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ficha-line-icon {
  color: #5c83a4;
  opacity: 0.7;
  transition: color 130ms, opacity 130ms;
}

.ficha-line-card--selected .ficha-line-icon {
  color: #1a4f7a;
  opacity: 1;
}

.ficha-line-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0c2340;
  line-height: 1.3;
}

.ficha-line-check-icon {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #1a6db5;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ficha-line-card--selected .ficha-line-check-icon {
  display: flex;
}

.ficha-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-top: 1px solid rgba(180, 210, 235, 0.5);
  background: #f8fbff;
}

/* ── Source badges ── */
.field-source-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  vertical-align: middle;
}

.field-source-badge--analyst {
  background: rgba(46, 130, 200, 0.12);
  color: #1a6db5;
}

.field-source-badge--pending {
  background: rgba(234, 179, 8, 0.18);
  color: #92620a;
}

/* ── Submit row ── */
.commercial-capture-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(180, 210, 235, 0.5);
}

/* Legacy commercial-registry-input — kept for compat */
/* Ficha comercial refresh: UX/UI aligned with current process cockpit */
.ficha-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid #b7d0e6;
  border-radius: 1.02rem;
  background:
    radial-gradient(520px 190px at 0% -10%, rgba(26, 120, 194, 0.18), transparent 72%),
    radial-gradient(420px 160px at 100% 0%, rgba(25, 153, 172, 0.14), transparent 70%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(235, 244, 255, 0.98));
  box-shadow:
    0 14px 34px rgba(7, 39, 72, 0.1),
    inset 0 0 0 1px rgba(167, 198, 225, 0.22);
}

.ficha-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f58a0, #1a78c2, #18a4b2);
  opacity: 0.9;
}

.ficha-hero-topline {
  position: relative;
  z-index: 1;
}

.ficha-hero-copy {
  display: grid;
  gap: 0.36rem;
}

.ficha-hero-head {
  align-items: flex-start;
}

.ficha-hero-head h3 {
  font-size: 1.14rem;
}

.ficha-hero-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ficha-summary-grid {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.ficha-summary-card {
  min-width: 0;
  border: 1px solid rgba(171, 201, 226, 0.72);
  border-radius: 0.92rem;
  padding: 0.84rem 0.88rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(13, 52, 89, 0.06);
}

.ficha-summary-label {
  margin: 0;
  color: #55799b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.62px;
  text-transform: uppercase;
}

.ficha-summary-value {
  margin: 0.16rem 0 0;
  color: #0f3456;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.02;
}

.ficha-summary-note {
  margin: 0.24rem 0 0;
  color: #6b89a5;
  font-size: 0.77rem;
  line-height: 1.34;
}

.ficha-focus-grid {
  position: relative;
  z-index: 1;
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.ficha-focus-card {
  min-width: 0;
  border: 1px dashed rgba(125, 170, 208, 0.74);
  border-radius: 0.92rem;
  padding: 0.76rem 0.82rem;
  background: rgba(245, 250, 255, 0.82);
}

.ficha-focus-label {
  margin: 0;
  color: #5f82a3;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.58px;
  text-transform: uppercase;
}

.ficha-focus-value {
  margin: 0.24rem 0 0;
  color: #0f3456;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
  word-break: break-word;
}

.ficha-comercial {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.ficha-section {
  grid-column: span 12;
  padding: 1rem;
  border: 1px solid #c7d9ea;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.95));
  box-shadow:
    0 12px 24px rgba(10, 40, 71, 0.06),
    inset 0 0 0 1px rgba(173, 198, 220, 0.14);
}

.ficha-section--half {
  grid-column: span 6;
}

.ficha-section--wide {
  grid-column: span 12;
}

.ficha-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.92rem;
  color: #2d5a82;
}

.ficha-section-head-main {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  min-width: 0;
}

.ficha-section-head-main svg {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: #2c628f;
  opacity: 0.85;
}

.ficha-section-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.ficha-section-copy > span {
  color: #2d5a82;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.ficha-section-note {
  margin: 0;
  color: #6a88a4;
  font-size: 0.78rem;
  line-height: 1.34;
}

.ficha-grid {
  display: grid;
  gap: 0.68rem;
}

.ficha-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ficha-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ficha-field {
  min-width: 0;
  min-height: 94px;
  padding: 0.8rem 0.88rem;
  border: 1px solid rgba(179, 205, 228, 0.82);
  border-radius: 0.88rem;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.34rem;
  box-shadow: 0 8px 16px rgba(10, 44, 78, 0.05);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

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

.ficha-field--locked {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 255, 0.96));
  border-color: rgba(125, 175, 216, 0.54);
}

.ficha-field--source-analyst.ficha-field--locked {
  background: linear-gradient(160deg, rgba(243, 250, 255, 0.98), rgba(229, 244, 255, 0.95));
  border-color: rgba(74, 144, 196, 0.46);
}

.ficha-field--editable {
  border-color: rgba(236, 183, 37, 0.6);
  background: linear-gradient(160deg, rgba(255, 254, 248, 0.98), rgba(255, 249, 227, 0.96));
}

.ficha-field--editable:focus-within {
  border-color: rgba(231, 167, 8, 0.92);
  box-shadow:
    0 0 0 3px rgba(236, 183, 37, 0.14),
    0 10px 18px rgba(83, 57, 5, 0.08);
  transform: translateY(-1px);
}

.ficha-field--empty {
  background: rgba(248, 251, 254, 0.96);
  border-color: rgba(188, 207, 223, 0.55);
}

.ficha-field--sercop {
  background: linear-gradient(160deg, rgba(244, 249, 255, 0.98), rgba(231, 241, 255, 0.95));
  border-color: rgba(63, 133, 194, 0.44);
}

.ficha-field-label {
  margin: 0;
  color: #5b80a1;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.52px;
  text-transform: uppercase;
  line-height: 1.18;
}

.ficha-field-value {
  margin: 0;
  color: #0e3255;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.36;
  word-break: break-word;
}

.ficha-field-value--empty {
  color: #a8bfd2;
  font-weight: 600;
  font-size: 0.84rem;
}

.ficha-field-value--link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #1a6db5;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.34rem;
}

.ficha-field-value--link svg {
  opacity: 0.76;
  flex-shrink: 0;
}

.ficha-field-helper {
  margin: 0;
  color: #92620a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.34;
}

.ficha-input {
  display: block;
  width: 100%;
  padding: 0.44rem 0.62rem;
  border: 1px solid rgba(236, 183, 37, 0.58);
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0c2340;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.35;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.ficha-input:focus {
  outline: none;
  border-color: #e6a800;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.ficha-input.mono,
.ficha-focus-value.mono {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.82rem;
}

.ficha-input--textarea {
  resize: vertical;
  min-height: 4.6rem;
}

.ficha-money-wrap {
  display: block;
}

.ficha-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.ficha-option-chip {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.ficha-option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ficha-option-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 183, 37, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #6b4a07;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.ficha-option-chip:hover span {
  transform: translateY(-1px);
}

.ficha-option-chip input:checked + span {
  background: linear-gradient(135deg, #f6c549 0%, #e8a80f 100%);
  border-color: rgba(181, 123, 9, 0.58);
  color: #503506;
  box-shadow: 0 6px 14px rgba(180, 124, 16, 0.18);
}

.ficha-analyst-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ficha-analyst-feedback {
  margin: 0;
  color: #6a88a4;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.3;
}

.ficha-analyst-feedback[data-state="matched"] {
  color: #157347;
}

.ficha-analyst-feedback[data-state="warning"] {
  color: #a66200;
}

.ficha-analyst-trigger {
  flex-shrink: 0;
}

.ficha-modal--analyst {
  width: min(720px, 92vw);
}

.ficha-analyst-results {
  display: grid;
  gap: 0.7rem;
  max-height: 320px;
  overflow-y: auto;
}

.ficha-analyst-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(170, 197, 220, 0.72);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(12, 46, 78, 0.05);
}

.ficha-analyst-result-copy {
  min-width: 0;
  display: grid;
  gap: 0.16rem;
}

.ficha-analyst-result-copy strong {
  color: #123c64;
  font-size: 0.88rem;
}

.ficha-analyst-result-copy span,
.ficha-analyst-result-copy p {
  margin: 0;
  color: #6b89a5;
  font-size: 0.73rem;
  line-height: 1.32;
}

.ficha-dp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.68rem;
}

.ficha-dp-item {
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.78rem 0.88rem;
  border-radius: 0.82rem;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 16px rgba(10, 44, 78, 0.05);
}

.ficha-dp-item--yes {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.ficha-dp-item--no {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.25);
}

.ficha-dp-item--unknown {
  background: rgba(248, 251, 254, 0.96);
  border-color: rgba(180, 210, 235, 0.42);
}

.ficha-dp-icon {
  width: 1.22rem;
  height: 1.22rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ficha-dp-icon svg {
  width: 1rem;
  height: 1rem;
}

.ficha-dp-item--yes .ficha-dp-icon {
  color: #059669;
}

.ficha-dp-item--no .ficha-dp-icon {
  color: #dc2626;
}

.ficha-dp-item--unknown .ficha-dp-icon {
  color: #94a3b8;
}

.ficha-dp-label {
  flex: 1;
  font-size: 0.81rem;
  font-weight: 700;
  color: #1e3a54;
  line-height: 1.28;
}

.ficha-dp-status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ficha-dp-item--yes .ficha-dp-status {
  color: #059669;
}

.ficha-dp-item--no .ficha-dp-status {
  color: #dc2626;
}

.ficha-dp-item--unknown .ficha-dp-status {
  color: #94a3b8;
}

.ficha-timeline-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.68rem;
}

.ficha-tl-item {
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(123, 173, 212, 0.42);
  border-radius: 0.82rem;
  padding: 0.68rem 0.8rem;
  box-shadow: 0 8px 16px rgba(10, 44, 78, 0.05);
}

.ficha-tl-item--full {
  grid-column: 1 / -1;
}

.ficha-tl-key {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.52px;
  color: #5c83a4;
}

.ficha-tl-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0c2340;
  line-height: 1.34;
}

.ficha-section-head--split {
  align-items: flex-start;
}

.ficha-section-head-left {
  min-width: 0;
}

.ficha-tl-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.7rem;
  padding: 0.38rem 0.82rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.42px;
  cursor: pointer;
}

.ficha-tl-lines-display {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.88rem;
}

.ficha-tl-lines-display--empty {
  align-items: center;
}

.ficha-tl-line-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.68rem;
  background: linear-gradient(135deg, #1a4f7a 0%, #2d6fa3 100%);
  color: #e8f4fd;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28px;
}

.ficha-modal {
  width: min(680px, 92vw);
}

.ficha-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ficha-line-card {
  border-radius: 0.84rem;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.ficha-line-card:hover {
  box-shadow: 0 6px 16px rgba(26, 79, 122, 0.12);
  transform: translateY(-1px);
}

.ficha-modal-footer {
  align-items: center;
}

.commercial-capture-submit-row {
  margin-top: 1rem;
  padding: 0.98rem 1.08rem;
  border: 1px solid #bfd5e7;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
  box-shadow: 0 12px 24px rgba(10, 40, 71, 0.05);
}

.ficha-submit-copy {
  display: grid;
  gap: 0.16rem;
}

.ficha-submit-title {
  margin: 0;
  color: #123c64;
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .ficha-summary-grid,
  .ficha-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ficha-section--half {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .ficha-grid--4,
  .ficha-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ficha-lines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ficha-hero {
    padding: 0.94rem;
  }

  .ficha-hero-head,
  .commercial-capture-submit-row,
  .ficha-section-head,
  .ficha-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ficha-summary-grid,
  .ficha-focus-grid,
  .ficha-grid--4,
  .ficha-grid--3,
  .ficha-dp-grid,
  .ficha-timeline-config,
  .ficha-lines-grid {
    grid-template-columns: 1fr;
  }

  .ficha-field,
  .ficha-dp-item,
  .ficha-tl-item {
    min-height: 0;
  }

  .ficha-analyst-meta,
  .ficha-analyst-result-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.commercial-registry-input {
  display: block;
  width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid #9fc5e8;
  border-radius: 0.5rem;
  background: #fff;
  color: #102c4a;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
}
.commercial-registry-input:focus {
  outline: none;
  border-color: #2e82c8;
  box-shadow: 0 0 0 3px rgba(46, 130, 200, 0.14);
}
.commercial-registry-input.mono {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.85rem;
}

/* Registry ficha: editable empty field input */
.commercial-registry-input {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.32rem 0.52rem;
  border: 1px solid #9fc5e8;
  border-radius: 0.5rem;
  background: #fff;
  color: #102c4a;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: inset 0 1px 3px rgba(0, 80, 160, 0.06);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.commercial-registry-input:focus {
  outline: none;
  border-color: #2e82c8;
  box-shadow: 0 0 0 3px rgba(46, 130, 200, 0.14);
}

.commercial-registry-input.mono {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.85rem;
}

.commercial-intel-shell {
  border: 1px solid #b8d4ec;
  border-radius: 0.96rem;
  padding: 0.78rem 0.86rem;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(47, 123, 196, 0.12), transparent 72%),
    linear-gradient(176deg, rgba(255, 255, 255, 0.99), rgba(234, 245, 255, 0.94));
}

.commercial-intel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.commercial-intel-head h4 {
  margin: 0;
  font-size: 1.02rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.commercial-intel-grid {
  margin-top: 0.66rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.commercial-intel-kpi {
  border: 1px solid #c2d8ec;
  border-radius: 0.78rem;
  padding: 0.56rem 0.64rem;
  background:
    radial-gradient(220px 110px at 84% 12%, rgba(53, 132, 194, 0.12), transparent 70%),
    linear-gradient(180deg, #fbfeff, #edf5ff);
}

.commercial-intel-kpi .kpi-label {
  margin: 0;
  font-size: 0.73rem;
}

.commercial-intel-kpi .kpi-value {
  margin: 0.22rem 0 0.16rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.22rem, 1.7vw, 1.64rem);
  color: #0f3254;
}

.commercial-intel-kpi.tone-blue {
  border-color: #b8d4ea;
  background:
    radial-gradient(220px 110px at 84% 12%, rgba(41, 126, 193, 0.16), transparent 70%),
    linear-gradient(180deg, #fcfeff, #edf5ff);
}

.commercial-intel-kpi.tone-teal {
  border-color: #b7d9d6;
  background:
    radial-gradient(220px 110px at 84% 12%, rgba(33, 140, 130, 0.15), transparent 70%),
    linear-gradient(180deg, #fcfefe, #ebf8f6);
}

.commercial-intel-kpi.tone-gold {
  border-color: #e0cfb1;
  background:
    radial-gradient(220px 110px at 84% 12%, rgba(173, 118, 43, 0.16), transparent 70%),
    linear-gradient(180deg, #fffefb, #fbf4e7);
}

.commercial-intel-kpi.tone-indigo {
  border-color: #c7cde9;
  background:
    radial-gradient(220px 110px at 84% 12%, rgba(88, 106, 181, 0.15), transparent 70%),
    linear-gradient(180deg, #fdfdff, #eff1fb);
}

.commercial-intel-flags {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.scope-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.scope-card h2 {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.scope-card .muted {
  margin: 0.5rem 0 0;
}

.executive-strip {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.82rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  transition: gap 220ms ease, max-height 240ms ease, opacity 180ms ease, margin 220ms ease;
}

.exec-chip {
  border: 1px solid #bcd1e8;
  border-radius: 1rem;
  padding: 0.86rem 0.92rem;
  background: linear-gradient(140deg, rgba(13, 46, 89, 0.92), rgba(20, 84, 148, 0.88), rgba(16, 132, 173, 0.82));
  color: #eaf3ff;
  box-shadow: 0 14px 30px rgba(10, 42, 79, 0.2);
  position: relative;
  overflow: hidden;
  transition: padding 220ms ease, border-radius 220ms ease, box-shadow 220ms ease;
}

.executive-strip .exec-chip:nth-child(1) {
  border-color: #9dc3e1;
  background: linear-gradient(140deg, rgba(13, 46, 89, 0.92), rgba(25, 92, 148, 0.9), rgba(22, 139, 181, 0.84));
}

.executive-strip .exec-chip:nth-child(2) {
  border-color: #8fc7ba;
  background: linear-gradient(140deg, rgba(15, 66, 76, 0.93), rgba(21, 112, 104, 0.89), rgba(35, 151, 117, 0.83));
}

.executive-strip .exec-chip:nth-child(3) {
  border-color: #d7c08f;
  background: linear-gradient(140deg, rgba(81, 55, 20, 0.93), rgba(137, 95, 29, 0.89), rgba(186, 133, 55, 0.83));
}

.executive-strip .exec-chip:nth-child(4) {
  border-color: #d0a69c;
  background: linear-gradient(140deg, rgba(84, 45, 35, 0.93), rgba(136, 76, 60, 0.9), rgba(182, 108, 86, 0.84));
}

.exec-chip::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: -70px;
  right: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
}

.exec-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.74px;
  text-transform: uppercase;
  font-weight: 800;
  color: #c8ddf7;
  transition: font-size 220ms ease;
}

.exec-value {
  margin: 0.28rem 0 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.14rem, 1.56vw, 1.56rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  transition: font-size 220ms ease, margin 220ms ease;
}

.exec-meta {
  margin: 0.34rem 0 0;
  color: #d6e7fa;
  font-size: 0.74rem;
  font-weight: 600;
  transition: font-size 220ms ease, margin 220ms ease;
}

.ops-suite {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1.04fr 1.24fr 1fr;
  gap: 0.82rem;
}

.ops-card {
  margin-bottom: 0;
  border-color: #bfd4ea;
  background:
    radial-gradient(150px 95px at 88% 10%, rgba(60, 174, 224, 0.14), transparent 72%),
    linear-gradient(162deg, rgba(255, 255, 255, 0.99), rgba(235, 246, 255, 0.96));
}

.ops-radar-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
}

.ops-radar-tile {
  border: 1px solid #c4d8ed;
  border-radius: 0.76rem;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  padding: 0.52rem 0.56rem;
}

.ops-radar-label {
  margin: 0;
  color: #4a6888;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.46px;
  text-transform: uppercase;
}

.ops-radar-value {
  margin: 0.24rem 0 0;
  color: #0f3154;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.05;
}

.ops-radar-meta {
  margin: 0.22rem 0 0;
  color: #5b7897;
  font-size: 0.74rem;
  font-weight: 600;
}

.ops-radar-tile-btn {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ops-radar-tile-btn:hover {
  transform: translateY(-1px);
  border-color: #7faed6;
  box-shadow: 0 8px 14px rgba(8, 39, 74, 0.11);
}

.ops-radar-action {
  margin: 0.24rem 0 0;
  color: #0f4f86;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.ops-radar-detail {
  margin-top: 0.54rem;
  border: 1px solid #c3d8ed;
  border-radius: 0.78rem;
  background:
    radial-gradient(220px 120px at 92% 10%, rgba(44, 145, 212, 0.14), transparent 70%),
    linear-gradient(180deg, #ffffff, #eff7ff);
  padding: 0.52rem 0.56rem;
}

.ops-radar-table-wrap {
  margin-top: 0.42rem;
  max-height: 260px;
  overflow: auto;
}

.ops-radar-table code {
  display: inline-block;
  max-width: 420px;
  white-space: pre-wrap;
  color: #1f4f7f;
}

.ops-radar-intel {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.52rem;
}

.ops-radar-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.42rem;
}

.ops-radar-kpi {
  border: 1px solid #c9ddf0;
  border-radius: 0.64rem;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  padding: 0.38rem 0.44rem;
  position: relative;
  overflow: hidden;
}

.ops-radar-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #6c8fb1;
}

.ops-radar-kpi.tone-visible::before {
  background: #2572b8;
}

.ops-radar-kpi.tone-users::before {
  background: #0f8b7f;
}

.ops-radar-kpi.tone-clients::before {
  background: #a7740f;
}

.ops-radar-kpi.tone-events::before {
  background: #994f63;
}

.ops-radar-kpi-label {
  margin: 0;
  color: #4c6b8b;
  font-size: 0.66rem;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  font-weight: 800;
}

.ops-radar-kpi-value {
  margin: 0.2rem 0 0;
  color: #0f3357;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.05;
}

.ops-radar-controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 0.42rem;
  align-items: end;
}

.ops-radar-controls label {
  margin: 0;
  display: grid;
  gap: 0.16rem;
  color: #365979;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.ops-radar-controls label.filter-search {
  color: #1d4f79;
}

.ops-radar-controls label.filter-user {
  color: #0c6d65;
}

.ops-radar-controls label.filter-client {
  color: #8f630e;
}

.ops-radar-controls label.filter-event {
  color: #7f3f52;
}

.ops-radar-controls input,
.ops-radar-controls select {
  border: 1px solid #b8d0e6;
  border-radius: 0.58rem;
  background: #f9fcff;
  color: #143d63;
  font-size: 0.8rem;
  padding: 0.34rem 0.44rem;
  min-height: 2rem;
}

.ops-radar-controls input:focus,
.ops-radar-controls select:focus {
  outline: none;
  border-color: #4e89bf;
  box-shadow: 0 0 0 2px rgba(78, 137, 191, 0.16);
}

.ops-radar-controls .filter-user select {
  border-color: #9dd7ce;
  background: linear-gradient(180deg, #f6fffd, #ebfaf7);
}

.ops-radar-controls .filter-client select {
  border-color: #e8cf9d;
  background: linear-gradient(180deg, #fffcf4, #fff6e6);
}

.ops-radar-controls .filter-event select {
  border-color: #deb3be;
  background: linear-gradient(180deg, #fff9fa, #fff1f4);
}

.ops-radar-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
}

.ops-radar-group {
  border: 1px solid #c9ddf0;
  border-radius: 0.64rem;
  background: linear-gradient(180deg, #fefeff, #edf6ff);
  padding: 0.34rem 0.42rem;
}

.ops-radar-group h5 {
  margin: 0;
  color: #19496f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18px;
}

.ops-radar-chip-list {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.ops-radar-chip {
  border: 1px solid #b9d2e8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  color: #1b4e7a;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  padding: 0.2rem 0.44rem;
  cursor: pointer;
}

.ops-radar-chip:hover {
  border-color: #7faed6;
  transform: translateY(-1px);
}

.ops-radar-chip small {
  color: #4f6f90;
  font-weight: 700;
  margin-left: 0.2rem;
}

.ops-radar-chip-users {
  border-color: #9ed9d0;
  background: linear-gradient(180deg, #f5fffd, #e8f9f5);
  color: #0f6f67;
}

.ops-radar-chip-users small {
  color: #2d7f77;
}

.ops-radar-chip-clients {
  border-color: #ead1a0;
  background: linear-gradient(180deg, #fffdf7, #fff4e4);
  color: #8e620f;
}

.ops-radar-chip-clients small {
  color: #9f7422;
}

.ops-radar-chip-events {
  border-color: #deb4bf;
  background: linear-gradient(180deg, #fff9fa, #fff1f4);
  color: #7e3e51;
}

.ops-radar-chip-events small {
  color: #925063;
}

.ops-radar-empty {
  color: #6a86a5;
  font-size: 0.72rem;
  font-weight: 700;
}

.ops-radar-table tbody tr:nth-child(odd) {
  background: rgba(18, 79, 130, 0.03);
}

.ops-event-row td:first-child {
  position: relative;
  padding-left: 0.9rem;
}

.ops-event-row td:first-child::before {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 0.22rem;
  bottom: 0.22rem;
  width: 3px;
  border-radius: 999px;
  background: #88a9c8;
}

.ops-event-row.tone-finance td:first-child::before {
  background: #2a7cbc;
}

.ops-event-row.tone-tech td:first-child::before {
  background: #0f8f83;
}

.ops-event-row.tone-risk td:first-child::before {
  background: #b14e67;
}

.ops-event-row.tone-ops td:first-child::before {
  background: #98721c;
}

.ops-event-row.tone-audit td:first-child::before {
  background: #556d88;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfd2e6;
  padding: 0.08rem 0.44rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}

.event-badge.tone-finance {
  border-color: #9bc5e4;
  background: linear-gradient(180deg, #f3f9ff, #e6f2ff);
  color: #1f5f95;
}

.event-badge.tone-tech {
  border-color: #97dace;
  background: linear-gradient(180deg, #f3fffc, #e5f8f3);
  color: #106f67;
}

.event-badge.tone-risk {
  border-color: #e0aebc;
  background: linear-gradient(180deg, #fff8fa, #ffedf2);
  color: #8f3f55;
}

.event-badge.tone-ops {
  border-color: #e6cc94;
  background: linear-gradient(180deg, #fffdf6, #fff2df);
  color: #8c6210;
}

.event-badge.tone-audit {
  border-color: #c2d2e2;
  background: linear-gradient(180deg, #f8fbff, #edf4fb);
  color: #3f5873;
}

.ops-event-family {
  margin: 0.14rem 0 0;
  color: #5f7d9b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12px;
}

.ops-radar-tile.tone-danger {
  border-color: rgba(209, 122, 139, 0.62);
  background: linear-gradient(180deg, #fff9fb, #fef0f5);
}

.ops-radar-tile.tone-warning {
  border-color: rgba(217, 183, 118, 0.62);
  background: linear-gradient(180deg, #fffdf7, #fff5e6);
}

.ops-radar-tile.tone-success {
  border-color: rgba(124, 191, 162, 0.62);
  background: linear-gradient(180deg, #f8fffb, #eafbf2);
}

.ops-radar-tile.tone-muted {
  border-color: #cedeee;
  background: linear-gradient(180deg, #f9fcff, #eff6ff);
}

.ops-alert-list {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.44rem;
}

.ops-alert {
  border: 1px solid #c8dbee;
  border-left-width: 4px;
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #ffffff, #f1f8ff);
  padding: 0.46rem 0.54rem;
}

.ops-alert-critical {
  border-color: rgba(206, 118, 136, 0.78);
  border-left-color: #b33653;
  background: linear-gradient(180deg, #fff9fb, #fef0f5);
}

.ops-alert-warning {
  border-color: rgba(219, 184, 116, 0.8);
  border-left-color: #a97410;
  background: linear-gradient(180deg, #fffdf7, #fff4e4);
}

.ops-alert-info {
  border-color: rgba(137, 180, 225, 0.8);
  border-left-color: #28649a;
  background: linear-gradient(180deg, #f8fcff, #edf6ff);
}

.ops-alert-success {
  border-color: rgba(125, 191, 163, 0.8);
  border-left-color: #1f7750;
  background: linear-gradient(180deg, #f8fffb, #eafbf2);
}

.ops-alert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.ops-alert-severity {
  border-radius: 999px;
  border: 1px solid #bad1e8;
  background: #edf6ff;
  color: #315c84;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.36px;
  padding: 0.08rem 0.38rem;
}

.ops-alert-link {
  text-decoration: none;
  color: #165089;
  font-size: 0.72rem;
  font-weight: 800;
}

.ops-alert-link:hover {
  text-decoration: underline;
}

.ops-alert-title {
  margin: 0.24rem 0 0;
  color: #123657;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.18;
}

.ops-alert-detail {
  margin: 0.2rem 0 0;
  color: #3d5f82;
  font-size: 0.77rem;
  line-height: 1.3;
}

.ops-alert-automation {
  margin: 0.22rem 0 0;
  color: #4f6f8f;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.28;
}

.ops-action-grid {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.ops-action-tile {
  text-decoration: none;
  min-height: 7rem;
  border-radius: 0.9rem;
  border: 1px solid #bfd5ea;
  padding: 0.72rem 0.78rem;
  display: grid;
  align-content: space-between;
  gap: 0.42rem;
  background:
    radial-gradient(140px 80px at 100% 0%, rgba(53, 144, 221, 0.14), transparent 72%),
    linear-gradient(180deg, #ffffff, #edf6ff);
  box-shadow: 0 12px 24px rgba(7, 37, 69, 0.08);
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ops-action-tile:hover {
  transform: translateY(-2px);
  border-color: #7eb0db;
  box-shadow: 0 16px 28px rgba(7, 37, 69, 0.14);
}

.ops-action-tile.tone-primary {
  background:
    radial-gradient(140px 84px at 100% 0%, rgba(39, 141, 220, 0.18), transparent 72%),
    linear-gradient(180deg, #fbfdff, #edf6ff);
}

.ops-action-tile.tone-secondary {
  background:
    radial-gradient(140px 84px at 100% 0%, rgba(56, 175, 157, 0.16), transparent 72%),
    linear-gradient(180deg, #fbfefe, #eef9f6);
}

.ops-action-tile.tone-accent {
  background:
    radial-gradient(140px 84px at 100% 0%, rgba(219, 160, 53, 0.16), transparent 72%),
    linear-gradient(180deg, #fffdfa, #fff4e8);
}

.ops-action-kicker {
  margin: 0;
  color: #4b6f92;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}

.ops-action-title {
  color: #123a60;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.08;
}

.ops-action-meta {
  color: #4e6d8d;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.34;
}

.ops-action-foot {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.58rem;
}

.ops-action-block-title {
  margin: 0 0 0.38rem;
  color: #244a70;
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.18px;
  text-transform: uppercase;
}

.ops-signal-stack {
  display: grid;
  gap: 0.42rem;
}

.ops-signal-card {
  border-radius: 0.82rem;
  border: 1px solid #c8dbed;
  background: linear-gradient(180deg, #fdfefe, #f3f8fd);
  padding: 0.48rem 0.56rem;
  display: grid;
  gap: 0.24rem;
}

.ops-signal-card.tone-critical {
  border-color: rgba(191, 92, 92, 0.28);
  background: linear-gradient(180deg, #fff9f8, #fff0ee);
}

.ops-signal-card.tone-warning {
  border-color: rgba(196, 155, 76, 0.3);
  background: linear-gradient(180deg, #fffdf6, #fff6e8);
}

.ops-signal-card.tone-info {
  border-color: rgba(99, 141, 184, 0.28);
  background: linear-gradient(180deg, #fbfdff, #f0f7ff);
}

.ops-signal-card.tone-success {
  border-color: rgba(78, 159, 129, 0.28);
  background: linear-gradient(180deg, #f8fdfb, #edf9f3);
}

.ops-signal-copy {
  display: grid;
  gap: 0.12rem;
}

.ops-signal-copy strong {
  color: #14395d;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.ops-signal-copy span {
  color: #4e6d8d;
  font-size: 0.7rem;
  line-height: 1.28;
}

.ops-signal-link {
  text-decoration: none;
  color: #16508b;
  font-size: 0.7rem;
  font-weight: 800;
}

.ops-signal-link:hover {
  text-decoration: underline;
}

.ops-movement-panel {
  border-radius: 0.82rem;
  border: 1px solid #c8dbed;
  background:
    radial-gradient(160px 90px at 100% 0%, rgba(39, 141, 220, 0.12), transparent 72%),
    linear-gradient(180deg, #fcfeff, #f2f8ff);
  padding: 0.48rem 0.56rem;
}

.ops-movement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.34rem;
}

.ops-export-list {
  margin-top: 0;
  border: 1px solid #c4d8ed;
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #fcfeff, #f2f8ff);
  overflow: hidden;
}

.ops-export-row + .ops-export-row {
  border-top: 1px solid #d4e4f3;
}

.ops-export-row {
  padding: 0.4rem 0.52rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.ops-export-title {
  margin: 0;
  color: #12385d;
  font-size: 0.77rem;
  font-weight: 800;
}

.ops-export-meta {
  margin: 0.14rem 0 0;
  color: #4d6b89;
  font-size: 0.69rem;
}

.ops-export-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.ops-export-status {
  border-radius: 999px;
  border: 1px solid #bad2e8;
  background: #edf6ff;
  color: #305b84;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  padding: 0.08rem 0.36rem;
}

.ops-export-link {
  text-decoration: none;
  color: #16508b;
  font-size: 0.71rem;
  font-weight: 800;
}

.ops-export-link:hover {
  text-decoration: underline;
}

.app-modal[hidden] {
  display: none;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  isolation: isolate;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(5, 20, 36, 0.64);
  backdrop-filter: blur(3px);
}

.app-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1160px, 96vw);
  max-height: min(84vh, 840px);
  border: 1px solid #b8d1e7;
  border-radius: 0.9rem;
  background:
    radial-gradient(220px 140px at 94% 6%, rgba(40, 136, 208, 0.18), transparent 72%),
    linear-gradient(180deg, #ffffff, #edf6ff);
  box-shadow: 0 24px 44px rgba(5, 24, 44, 0.35);
  padding: 0.68rem;
  display: grid;
  gap: 0.56rem;
  overflow: hidden;
}

.app-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.58rem;
}

.app-modal-head h3 {
  margin: 0;
}

.app-modal-controls {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.9fr 0.9fr auto;
  gap: 0.42rem;
  align-items: end;
}

.app-modal-controls label {
  margin: 0;
  display: grid;
  gap: 0.16rem;
  color: #2f5376;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.app-modal-controls input,
.app-modal-controls select {
  border: 1px solid #b8d0e6;
  border-radius: 0.56rem;
  background: #f8fcff;
  color: #173f66;
  font-size: 0.82rem;
  min-height: 2rem;
  padding: 0.35rem 0.44rem;
}

.app-modal-controls input:focus,
.app-modal-controls select:focus {
  outline: none;
  border-color: #4f89be;
  box-shadow: 0 0 0 2px rgba(79, 137, 190, 0.17);
}

.app-modal-table-wrap {
  margin-top: 0;
  max-height: min(62vh, 620px);
  overflow: auto;
}

.app-modal-table code {
  display: inline-block;
  white-space: pre-wrap;
  max-width: 470px;
  color: #1d4e7d;
}

.contract-registry-sercop-validation-modal {
  width: min(980px, 96vw);
}

.contract-registry-sercop-validation-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid #e1c58d;
  border-radius: 0.82rem;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(228, 176, 82, 0.12), transparent 76%),
    linear-gradient(180deg, #fffaf0, #fff2de);
  padding: 0.7rem 0.8rem;
}

.contract-registry-sercop-validation-hero strong {
  display: block;
  color: #6a4810;
}

.contract-registry-sercop-validation-hero p {
  margin: 0.22rem 0 0;
  color: #7b6335;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 78ch;
}

.contract-registry-sercop-validation-pill {
  border-color: #d7b36a;
  background: rgba(255, 255, 255, 0.72);
  color: #7a5418;
}

.contract-registry-sercop-validation-wrap {
  max-height: min(52vh, 480px);
}

.contract-registry-sercop-validation-table td {
  vertical-align: top;
}

.contract-registry-sercop-validation-cell {
  display: grid;
  gap: 0.2rem;
}

.contract-registry-sercop-validation-cell strong {
  color: #173f66;
  font-size: 0.78rem;
}

.contract-registry-sercop-validation-cell span {
  color: #5c748b;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.contract-registry-analyst-global-modal {
  width: min(820px, 95vw);
}

.contract-registry-analyst-global-shell {
  display: grid;
  gap: 0.72rem;
}

.contract-registry-analyst-global-results {
  display: grid;
  gap: 0.5rem;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  padding-right: 0.16rem;
}

.contract-registry-analyst-global-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  border: 1px solid #cfdeec;
  border-radius: 0.84rem;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(104, 170, 219, 0.08), transparent 76%),
    linear-gradient(180deg, #fbfdff, #f7fbff);
  padding: 0.72rem 0.78rem;
}

.contract-registry-analyst-global-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.contract-registry-analyst-global-copy strong {
  color: #173f66;
  font-size: 0.88rem;
  line-height: 1.2;
}

.contract-registry-analyst-global-copy p {
  margin: 0;
  color: #5d7690;
  font-size: 0.76rem;
  line-height: 1.38;
}

.contract-registry-analyst-global-copy .contract-registry-analyst-global-meta {
  color: #355f85;
  font-size: 0.72rem;
  font-weight: 700;
}

.sercop-modal-dialog {
  width: min(1240px, 97vw);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sercop-modal-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sercop-modal-status {
  margin: 0;
  border: 1px solid #c2d7ea;
  border-radius: 0.68rem;
  background: linear-gradient(180deg, #f8fcff, #eff7ff);
  color: #335f86;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.48rem 0.58rem;
}

.sercop-modal-status.is-loading {
  border-color: #bbd1e8;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  color: #2f5f86;
}

.sercop-modal-status.is-ok {
  border-color: #9fcfb7;
  background: linear-gradient(180deg, #f8fdfb, #ecf9f2);
  color: #1f6a49;
}

.sercop-modal-status.is-error {
  border-color: #dfb3c0;
  background: linear-gradient(180deg, #fff9fa, #ffedf2);
  color: #8f3e57;
}

.sercop-modal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 0.56rem;
}

.sercop-modal-card {
  border: 1px solid #bed4e9;
  border-radius: 0.74rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.9));
  padding: 0.56rem;
}

.sercop-modal-card h4 {
  margin: 0 0 0.38rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.94rem;
}

.sercop-exec-card {
  border-color: #adcce6;
  background:
    radial-gradient(260px 130px at 94% 10%, rgba(34, 130, 198, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.92));
}

.sercop-exec-body {
  display: grid;
  gap: 0.54rem;
}

.sercop-exec-kpi-grid {
  display: grid;
  gap: 0.44rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.sercop-exec-kpi {
  border: 1px solid #c0d6ea;
  border-radius: 0.68rem;
  padding: 0.46rem 0.52rem;
  background: linear-gradient(180deg, #fcfeff, #eef6ff);
  display: grid;
  gap: 0.14rem;
}

.sercop-exec-kpi span {
  color: #2c577e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24px;
}

.sercop-exec-kpi strong {
  color: #0f3354;
  font-size: 1.03rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.sercop-exec-kpi small {
  color: #3f6587;
  font-size: 0.73rem;
}

.sercop-exec-kpi.tone-ok {
  border-color: #9fcfb8;
  background: linear-gradient(180deg, #f9fefa, #ecf9f1);
}

.sercop-exec-kpi.tone-warning {
  border-color: #dec79b;
  background: linear-gradient(180deg, #fffefb, #fbf3e3);
}

.sercop-exec-kpi.tone-risk {
  border-color: #dcbbca;
  background: linear-gradient(180deg, #fffafb, #fdeff4);
}

.sercop-exec-lines {
  border: 1px dashed #c2d6e9;
  border-radius: 0.62rem;
  padding: 0.44rem 0.5rem;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 0.2rem;
}

.sercop-exec-lines p {
  margin: 0;
  color: #19466f;
  font-size: 0.8rem;
  line-height: 1.28;
}

.sercop-modal-kv {
  display: grid;
  gap: 0.28rem;
}

.sercop-modal-kv p {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) 1fr;
  gap: 0.32rem;
  align-items: baseline;
}

.sercop-modal-kv strong {
  color: #2d567e;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sercop-modal-kv span {
  color: #123a60;
  font-size: 0.85rem;
  font-weight: 700;
  word-break: break-word;
}

.sercop-modal-hits-wrap {
  margin-top: 0;
  max-height: min(34vh, 320px);
  overflow: auto;
}

.sercop-journey {
  margin-top: 0.34rem;
  display: grid;
  gap: 0.46rem;
}

.sercop-journey-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.sercop-phase-chip {
  border: 1px solid #bfd4e8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eff7ff);
  color: #2f5f87;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 0.18rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sercop-phase-chip:hover {
  transform: translateY(-1px);
}

.sercop-phase-chip.is-active {
  box-shadow: 0 8px 16px rgba(19, 79, 129, 0.18);
  transform: translateY(-1px);
}

.sercop-phase-chip-count {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 0.68rem;
  padding: 0.02rem 0.34rem;
}

.sercop-phase-chip.tone-slate,
.sercop-journey-point.stage-slate {
  border-color: #c6d8e8;
  --sercop-tone: #5e7b98;
  --sercop-tone-soft: rgba(94, 123, 152, 0.16);
}

.sercop-phase-chip.tone-blue,
.sercop-journey-point.stage-blue {
  border-color: #9ec8eb;
  --sercop-tone: #1b78c4;
  --sercop-tone-soft: rgba(27, 120, 196, 0.16);
}

.sercop-phase-chip.tone-cyan,
.sercop-journey-point.stage-cyan {
  border-color: #95d6dc;
  --sercop-tone: #118995;
  --sercop-tone-soft: rgba(17, 137, 149, 0.16);
}

.sercop-phase-chip.tone-amber,
.sercop-journey-point.stage-amber {
  border-color: #e3c286;
  --sercop-tone: #a97208;
  --sercop-tone-soft: rgba(169, 114, 8, 0.16);
}

.sercop-phase-chip.tone-teal,
.sercop-journey-point.stage-teal {
  border-color: #8fd2c5;
  --sercop-tone: #0e8f77;
  --sercop-tone-soft: rgba(14, 143, 119, 0.16);
}

.sercop-phase-chip.tone-green,
.sercop-journey-point.stage-green {
  border-color: #a7d39a;
  --sercop-tone: #2f8b2e;
  --sercop-tone-soft: rgba(47, 139, 46, 0.16);
}

.sercop-phase-chip.tone-red,
.sercop-journey-point.stage-red {
  border-color: #dfa9b5;
  --sercop-tone: #a1455b;
  --sercop-tone-soft: rgba(161, 69, 91, 0.16);
}

.sercop-phase-chip.tone-indigo,
.sercop-journey-point.stage-indigo {
  border-color: #b4bde3;
  --sercop-tone: #4b5ea6;
  --sercop-tone-soft: rgba(75, 94, 166, 0.16);
}

.sercop-phase-chip.tone-violet,
.sercop-journey-point.stage-violet {
  border-color: #c6b9eb;
  --sercop-tone: #6a58ad;
  --sercop-tone-soft: rgba(106, 88, 173, 0.16);
}

.sercop-phase-chip.tone-azure,
.sercop-journey-point.stage-azure {
  border-color: #9fcfe6;
  --sercop-tone: #0c7aa9;
  --sercop-tone-soft: rgba(12, 122, 169, 0.16);
}

.sercop-phase-chip.tone-slate.is-active,
.sercop-phase-chip.tone-blue.is-active,
.sercop-phase-chip.tone-cyan.is-active,
.sercop-phase-chip.tone-amber.is-active,
.sercop-phase-chip.tone-teal.is-active,
.sercop-phase-chip.tone-green.is-active,
.sercop-phase-chip.tone-red.is-active,
.sercop-phase-chip.tone-indigo.is-active,
.sercop-phase-chip.tone-violet.is-active,
.sercop-phase-chip.tone-azure.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #2f78b2, var(--sercop-tone, #1d78bd));
}

.sercop-journey-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.sercop-journey-kpi {
  border: 1px solid #c3d9eb;
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #fdfefe, #f2f8ff);
  padding: 0.32rem 0.44rem;
}

.sercop-journey-kpi span {
  display: block;
  color: #3a6289;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.sercop-journey-kpi strong {
  display: block;
  margin-top: 0.08rem;
  color: #123d63;
  font-size: 0.87rem;
  line-height: 1.2;
}

.sercop-journey-strip {
  position: relative;
  overflow-x: auto;
  padding: 0.56rem 0.12rem 0.14rem;
}

.sercop-journey-track {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  top: 1.44rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8dcee, #dceaf6);
}

.sercop-journey-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  width: 100%;
  background: linear-gradient(90deg, #1d78bd, #32a57e);
  transform-origin: left center;
  animation: sercopJourneyGrow 0.8s ease-out both;
}

.sercop-journey-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.42rem;
  min-width: 100%;
}

.sercop-journey-point {
  position: relative;
  border: 1px solid #b9d3e8;
  border-radius: 0.66rem;
  background:
    radial-gradient(120px 80px at 88% 12%, var(--sercop-tone-soft, rgba(29, 120, 189, 0.12)), transparent 72%),
    linear-gradient(180deg, #ffffff, #eff7ff);
  padding: 0.58rem 0.52rem 0.4rem;
  min-height: 4.6rem;
  opacity: 0;
  transform: translateY(8px);
  animation: sercopJourneyStepIn 0.35s ease-out forwards;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.18s ease;
}

.sercop-journey-point:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 67, 110, 0.16);
}

.sercop-journey-point.is-muted {
  opacity: 0.34;
}

.sercop-journey-point.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.84), 0 0 0 4px var(--sercop-tone, #1d78bd), 0 12px 20px rgba(15, 67, 110, 0.2);
}

.sercop-journey-point::before {
  content: "";
  position: absolute;
  top: -0.42rem;
  left: calc(50% - 0.34rem);
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--sercop-tone, #1f78bd);
  border: 2px solid #f5fbff;
  box-shadow: 0 0 0 1px #84afd2;
  animation: sercopJourneyPulse 2.2s ease-in-out infinite;
}

.sercop-journey-phase {
  margin: 0;
  color: var(--sercop-tone, #2a5d88);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sercop-journey-milestone {
  margin: 0.12rem 0 0;
  color: #123c62;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.22;
}

.sercop-journey-date {
  margin: 0.18rem 0 0;
  color: #1567a2;
  font-size: 0.75rem;
  font-weight: 800;
}

.sercop-journey-table-wrap {
  max-height: min(30vh, 280px);
  overflow: auto;
}

.js-sercop-journey-row {
  transition: background-color 0.2s ease;
}

.js-sercop-journey-row.stage-slate td {
  box-shadow: inset 3px 0 0 #5e7b98;
}

.js-sercop-journey-row.stage-blue td {
  box-shadow: inset 3px 0 0 #1b78c4;
}

.js-sercop-journey-row.stage-cyan td {
  box-shadow: inset 3px 0 0 #118995;
}

.js-sercop-journey-row.stage-amber td {
  box-shadow: inset 3px 0 0 #a97208;
}

.js-sercop-journey-row.stage-teal td {
  box-shadow: inset 3px 0 0 #0e8f77;
}

.js-sercop-journey-row.stage-green td {
  box-shadow: inset 3px 0 0 #2f8b2e;
}

.js-sercop-journey-row.stage-red td {
  box-shadow: inset 3px 0 0 #a1455b;
}

.js-sercop-journey-row.stage-indigo td {
  box-shadow: inset 3px 0 0 #4b5ea6;
}

.js-sercop-journey-row.stage-violet td {
  box-shadow: inset 3px 0 0 #6a58ad;
}

.js-sercop-journey-row.stage-azure td {
  box-shadow: inset 3px 0 0 #0c7aa9;
}

.js-sercop-journey-row.is-focus td {
  animation: sercopRowFlash 0.9s ease-out;
}

.sercop-journey-detail {
  color: #47698a;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes sercopJourneyGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

@keyframes sercopJourneyPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px #84afd2, 0 0 0 0 rgba(29, 120, 189, 0.24);
  }
  50% {
    box-shadow: 0 0 0 1px #84afd2, 0 0 0 6px rgba(29, 120, 189, 0);
  }
}

@keyframes sercopRowFlash {
  0% {
    background: rgba(22, 131, 100, 0.2);
  }
  100% {
    background: transparent;
  }
}

.sercop-modal-docs-wrap {
  margin-top: 0.34rem;
  max-height: min(30vh, 300px);
  overflow: auto;
}

.sercop-modal-trace-wrap {
  margin-top: 0.34rem;
  max-height: min(34vh, 320px);
  overflow: auto;
}

.sercop-modal-trace-url-wrap {
  max-height: min(22vh, 220px);
  overflow: auto;
}

.sercop-doc-path {
  color: #214e7a;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: pre-wrap;
  word-break: break-word;
}

.sercop-doc-label {
  color: #163f66;
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

.sercop-modal-full-wrap {
  margin-top: 0.34rem;
  max-height: min(44vh, 420px);
  overflow: auto;
}

.sercop-full-path {
  color: #214e7a;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: pre-wrap;
  word-break: break-word;
}

.sercop-full-value {
  color: #163f66;
  font-size: 0.8rem;
  line-height: 1.32;
  white-space: pre-wrap;
  word-break: break-word;
}

.command-grid {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1.08fr 1.45fr 1fr;
  gap: 0.82rem;
}

.command-card {
  margin-bottom: 0;
  border-color: #c2d6ec;
  background:
    radial-gradient(140px 90px at 88% 12%, rgba(56, 173, 223, 0.15), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(236, 246, 255, 0.96) 100%);
}

.command-grid .command-card:nth-child(1) {
  border-color: #d0b7ae;
  background:
    radial-gradient(130px 90px at 88% 12%, rgba(200, 125, 95, 0.14), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 238, 233, 0.97) 100%);
}

.command-grid .command-card:nth-child(2) {
  border-color: #a8c8dd;
  background:
    radial-gradient(140px 90px at 88% 12%, rgba(56, 173, 223, 0.16), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(233, 244, 252, 0.97) 100%);
}

.command-grid .command-card:nth-child(3) {
  border-color: #b8cfaa;
  background:
    radial-gradient(140px 90px at 88% 12%, rgba(84, 175, 116, 0.14), transparent 72%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.99) 0%, rgba(236, 247, 236, 0.97) 100%);
}

.dashboard-kpi-grid .kpi-card:nth-child(1) {
  border-color: #a7c7e6;
  background: linear-gradient(155deg, #ffffff 0%, #e8f3ff 96%);
}

.dashboard-kpi-grid .kpi-card:nth-child(2) {
  border-color: #a6ceb8;
  background: linear-gradient(155deg, #ffffff 0%, #e9f7ee 96%);
}

.dashboard-kpi-grid .kpi-card:nth-child(3) {
  border-color: #d7c39f;
  background: linear-gradient(155deg, #ffffff 0%, #f9f0df 96%);
}

.dashboard-kpi-grid .kpi-card:nth-child(4) {
  border-color: #d2b3aa;
  background: linear-gradient(155deg, #ffffff 0%, #f8ebe7 96%);
}

.dashboard-kpi-grid .kpi-card:nth-child(5) {
  border-color: #b2c2df;
  background: linear-gradient(155deg, #ffffff 0%, #edf2fd 96%);
}

.dashboard-kpi-grid .kpi-card:nth-child(6) {
  border-color: #b5cdb8;
  background: linear-gradient(155deg, #ffffff 0%, #edf7ee 96%);
}

.dashboard-kpi-grid .kpi-card:nth-child(2)::after,
.dashboard-kpi-grid .kpi-card:nth-child(6)::after {
  background: radial-gradient(circle, rgba(54, 168, 119, 0.2), transparent 70%);
}

.dashboard-kpi-grid .kpi-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(194, 148, 56, 0.2), transparent 70%);
}

.dashboard-kpi-grid .kpi-card:nth-child(4)::after {
  background: radial-gradient(circle, rgba(186, 108, 84, 0.2), transparent 70%);
}

.dashboard-kpi-grid .kpi-card:nth-child(5)::after {
  background: radial-gradient(circle, rgba(110, 132, 201, 0.2), transparent 70%);
}

.priority-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.priority-item {
  border: 1px solid #ccddf0;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  padding: 0.58rem 0.64rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.priority-title {
  margin: 0;
  color: #102f52;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.priority-link {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #b8d2eb;
  background: #e9f4ff;
  color: #164e80;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 0.16rem 0.52rem;
  white-space: nowrap;
}

.priority-critical {
  border-color: rgba(216, 136, 148, 0.72);
  background: linear-gradient(180deg, #fff9fb, #fef0f4);
}

.priority-warning {
  border-color: rgba(225, 191, 124, 0.72);
  background: linear-gradient(180deg, #fffdf8, #fff5e8);
}

.priority-opportunity {
  border-color: rgba(136, 202, 178, 0.72);
  background: linear-gradient(180deg, #f8fffb, #eafbf2);
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.lane-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 0.42rem;
  text-decoration: none;
  border: 1px solid rgba(167, 194, 219, 0.82);
  border-radius: 1.08rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22)) padding-box,
    radial-gradient(190px 120px at 100% -8%, rgba(51, 164, 227, 0.22), transparent 70%),
    radial-gradient(200px 130px at 0% 100%, rgba(81, 190, 199, 0.12), transparent 74%),
    linear-gradient(165deg, #ffffff 0%, #eef6ff 54%, #e6f1fc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 30px rgba(12, 53, 95, 0.12);
  padding: 0.82rem 0.86rem 0.84rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 200ms ease, filter 180ms ease;
}

.lane-card::before {
  content: "";
  position: absolute;
  inset: 0.76rem auto 0.76rem 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2f8dd4, #33c7b0 56%, #efbb63);
  opacity: 0.92;
}

.lane-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: -64px;
  right: -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 187, 234, 0.24), transparent 74%);
  pointer-events: none;
}

.lane-card.is-lead {
  border-color: rgba(132, 181, 221, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.22)) padding-box,
    radial-gradient(220px 150px at 100% -12%, rgba(32, 139, 217, 0.3), transparent 70%),
    radial-gradient(220px 130px at 0% 100%, rgba(62, 198, 184, 0.14), transparent 74%),
    linear-gradient(162deg, #ffffff 0%, #e5f2ff 54%, #deecfb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 1px rgba(126, 174, 219, 0.2),
    0 18px 34px rgba(8, 45, 84, 0.16);
}

.lane-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 166, 214, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 1px rgba(121, 174, 219, 0.22),
    0 20px 36px rgba(8, 43, 79, 0.18);
  filter: saturate(1.08);
}

.lane-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.lane-rank {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 191, 229, 0.88);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.98), rgba(229, 240, 252, 0.92));
  color: #1f4d78;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  padding: 0.14rem 0.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.lane-share {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(155, 188, 222, 0.74);
  background: rgba(241, 248, 255, 0.78);
  color: #305d87;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.24px;
  font-variant-numeric: tabular-nums;
  padding: 0.12rem 0.44rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.lane-title {
  margin: 0;
  color: #14375b;
  font-size: 0.94rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08px;
  line-height: 1.12;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lane-value {
  margin: 0.04rem 0 0;
  color: #0b2f54;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.42rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.12px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
}

.lane-progress {
  margin-top: 0.08rem;
  height: 0.58rem;
  border-color: rgba(191, 214, 235, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.98), rgba(224, 237, 250, 0.94));
  box-shadow: inset 0 1px 2px rgba(17, 73, 118, 0.06);
}

.lane-progress-fill {
  background: linear-gradient(90deg, #0f5d9f, #1f88d1, #2bb8c4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 12px rgba(30, 135, 205, 0.28);
}

.lane-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.lane-meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(194, 214, 234, 0.92);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(232, 241, 252, 0.92));
  color: #375c81;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.14rem 0.42rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.lane-breakdown .portfolio-pill {
  min-height: 1.96rem;
  padding: 0.18rem 0.54rem;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    0 8px 16px rgba(10, 43, 77, 0.06);
}

.lane-breakdown .portfolio-pill-label {
  font-size: 0.56rem;
  letter-spacing: 0.36px;
}

.lane-breakdown .portfolio-pill-value {
  font-size: 0.74rem;
}

.heat-item + .heat-item {
  margin-top: 0.54rem;
}

.heat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.heat-top strong {
  color: #14385c;
  font-size: 0.84rem;
}

.heat-top span {
  color: #3a5e82;
  font-size: 0.78rem;
  font-weight: 700;
}

.team-workspace {
  border-color: #b7cfe7;
  background:
    radial-gradient(320px 170px at 96% -16%, rgba(35, 150, 226, 0.18), transparent 72%),
    radial-gradient(260px 140px at 4% -18%, rgba(35, 190, 156, 0.12), transparent 70%),
    linear-gradient(162deg, rgba(255, 255, 255, 0.99), rgba(235, 246, 255, 0.96));
}

.team-kpi-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
}

.team-kpi {
  border: 1px solid #c4d8ed;
  border-radius: 0.76rem;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  padding: 0.46rem 0.54rem;
  position: relative;
  overflow: hidden;
}

.team-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2572b8, #0e9176);
}

.team-kpi-label {
  margin: 0;
  color: #4a698a;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}

.team-kpi-value {
  margin: 0.22rem 0 0;
  color: #12375b;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.05;
}

.team-kpi-meta {
  margin: 0.2rem 0 0;
  color: #5b7a9a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.team-filters {
  margin-top: 0.66rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto auto;
  gap: 0.42rem;
  align-items: end;
}

.team-filter {
  margin: 0;
  display: grid;
  gap: 0.16rem;
  color: #315376;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.team-filter input,
.team-filter select {
  border: 1px solid #b8d0e6;
  border-radius: 0.58rem;
  background: #f8fcff;
  color: #173f66;
  min-height: 2rem;
  font-size: 0.82rem;
  padding: 0.34rem 0.44rem;
}

.team-filter input:focus,
.team-filter select:focus {
  outline: none;
  border-color: #4f89be;
  box-shadow: 0 0 0 2px rgba(79, 137, 190, 0.17);
}

.team-filter-status {
  border: 1px solid #c3d8ed;
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  min-height: 2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0.18rem 0.46rem;
}

.team-filter-status p {
  margin: 0;
  color: #557495;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.team-filter-status strong {
  margin: 0.06rem 0 0;
  color: #10345a;
  font-size: 0.94rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.team-table-wrap {
  margin-top: 0.6rem;
}

.team-table tbody tr:nth-child(odd) td {
  background: rgba(17, 81, 136, 0.03);
}

.team-table tbody tr.js-team-row:hover td {
  background: rgba(26, 110, 177, 0.07);
}

.team-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
}

.team-role-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c0d4e8;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  color: #355a80;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.24px;
  text-transform: uppercase;
  padding: 0.1rem 0.42rem;
}

.team-role-chip.tone-commercial {
  border-color: #9cc7e8;
  background: linear-gradient(180deg, #f3f9ff, #e6f2ff);
  color: #1f5f95;
}

.team-role-chip.tone-maintenance {
  border-color: #9ad9cf;
  background: linear-gradient(180deg, #f3fffc, #e5f8f3);
  color: #106f67;
}

.team-role-chip.tone-billing {
  border-color: #e8cf9d;
  background: linear-gradient(180deg, #fffdf4, #fff4e2);
  color: #8f630f;
}

.team-role-chip.tone-solutions {
  border-color: #deb4bf;
  background: linear-gradient(180deg, #fff9fa, #fff1f4);
  color: #7e3e51;
}

.team-role-chip.tone-neutral {
  border-color: #c7d6e4;
  background: linear-gradient(180deg, #fbfdff, #f1f6fc);
  color: #4f6781;
}

.team-link-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfd2e6;
  background: linear-gradient(180deg, #f8fbff, #edf4fb);
  color: #3c5a78;
  padding: 0.08rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}

.team-link-badge.tone-linked {
  border-color: #9ed7c7;
  background: linear-gradient(180deg, #f3fffa, #e8f9f2);
  color: #126d4c;
}

.team-link-badge.tone-mixed {
  border-color: #e7c78e;
  background: linear-gradient(180deg, #fffdf5, #fff3de);
  color: #8a600f;
}

.team-link-badge.tone-unlinked {
  border-color: #dfb1bc;
  background: linear-gradient(180deg, #fff9fa, #ffeff3);
  color: #8b3c50;
}

.team-nested-row td {
  padding: 0;
  border-bottom-color: #cddff0;
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.96), rgba(235, 245, 255, 0.92));
}

.team-nested {
  padding: 0.56rem 0.62rem;
}

.team-nested-table-wrap {
  margin-top: 0;
  border-color: #bdd4ea;
  background: linear-gradient(180deg, #fefeff, #eef7ff);
}

.team-nested-table th,
.team-nested-table td {
  font-size: 0.8rem;
  padding: 0.48rem 0.52rem;
}

.team-unassigned {
  margin-top: 0.72rem;
  border: 1px solid #c4d9ed;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #fcfeff, #eef7ff);
  padding: 0.6rem;
}

.team-unassigned-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.46rem;
}

.team-unassigned-card {
  text-decoration: none;
  border: 1px solid #c5d9ec;
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  padding: 0.44rem 0.5rem;
  transition: transform 140ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.scope-process-detail-card {
  padding: 0.5rem 0.56rem;
}

.scope-process-detail-accordion {
  border: 1px solid #c4d8ec;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.94));
  overflow: hidden;
}

.scope-process-detail-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.88rem 1rem;
}

.scope-process-detail-summary::after {
  content: '+';
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid #c2d8ed;
  background: rgba(255, 255, 255, 0.9);
  color: #214f79;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.scope-process-detail-accordion[open] .scope-process-detail-summary::after {
  content: '-';
  background: rgba(233, 243, 252, 0.96);
  border-color: #9fc1df;
}

.scope-process-detail-summary::-webkit-details-marker {
  display: none;
}

.scope-process-detail-summary h3 {
  margin: 0.08rem 0 0;
}

.scope-process-detail-summary-meta {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.scope-process-detail-body {
  border-top: 1px solid #d7e4f1;
  padding: 0 1rem 1rem;
}

.scope-process-detail-search {
  margin-top: 0.84rem;
  padding: 0.82rem 0.9rem;
  gap: 0.44rem;
}

.scope-process-detail-runtime {
  margin-top: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.66rem;
  flex-wrap: wrap;
  border: 1px solid #c8dcef;
  border-radius: 0.88rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(238, 246, 255, 0.94));
  padding: 0.64rem 0.82rem;
}

.scope-process-detail-runtime p {
  margin: 0;
  flex: 1 1 280px;
}

.scope-process-detail-empty {
  margin: 0.9rem 0 0;
  padding: 0.82rem 0.9rem;
  border: 1px dashed #c9dcee;
  border-radius: 0.88rem;
  background: rgba(245, 250, 255, 0.82);
}

.scope-process-detail-search label {
  font-size: 0.88rem;
}

.scope-process-detail-search-row {
  align-items: center;
  flex-wrap: wrap;
}

.scope-process-detail-search-row .button {
  flex: 0 0 auto;
}

.scope-process-detail-table-wrap {
  margin-top: 0.72rem;
}

.scope-process-detail-table th,
.scope-process-detail-table td {
  vertical-align: top;
}

.scope-process-detail-table .portfolio-pill {
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .scope-process-detail-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .scope-process-detail-summary-meta {
    justify-content: flex-start;
  }

  .scope-process-detail-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .scope-process-detail-search-row .button {
    width: 100%;
  }
}

.team-unassigned-card:hover {
  transform: translateY(-1px);
  border-color: #8eb8dd;
  box-shadow: 0 8px 16px rgba(9, 41, 76, 0.12);
}

.team-unassigned-title {
  margin: 0;
  color: #12395f;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.team-unassigned-ruc {
  margin: 0.2rem 0 0;
  color: #47698d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.71rem;
  font-weight: 700;
}

.team-unassigned-meta {
  margin: 0.18rem 0 0;
  color: #55789c;
  font-size: 0.7rem;
  font-weight: 700;
}

.scope-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bfd4e8;
  background: #edf6ff;
  color: #37608a;
  padding: 0.2rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 0.88rem;
  margin-bottom: 1rem;
}

.insight-grid-featured {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.92fr);
}

.insight-side-stack {
  display: grid;
  align-content: start;
  gap: 0.88rem;
}

.insight-card {
  margin-bottom: 0;
  align-self: start;
  display: grid;
  gap: 0.62rem;
  border-color: #c8d9ec;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 246, 255, 0.96) 100%);
}

.dominant-rank {
  justify-self: start;
  border-radius: 999px;
  border: 1px solid #c9d9ec;
  background: linear-gradient(180deg, #f7faff, #eaf2ff);
  color: #24527d;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.12rem 0.5rem;
}

.insight-card h4 {
  margin: 0;
  color: #123252;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.05rem;
}

.insight-amount {
  margin: 0;
  color: #0d2d50;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.insight-metrics > div {
  border: 1px solid #d6e4f2;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem;
}

.insight-value {
  margin: 0.2rem 0 0;
  color: #0d2f52;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.concentration-card {
  --concentration-accent: #2497da;
  --concentration-accent-deep: #0f4f86;
  --concentration-accent-soft: rgba(36, 151, 218, 0.18);
  --concentration-secondary: #19a886;
  --concentration-secondary-deep: #0d7863;
  --concentration-panel: rgba(255, 255, 255, 0.82);
  position: relative;
  overflow: hidden;
  gap: 0.82rem;
  border-color: rgba(125, 166, 202, 0.42);
  background:
    radial-gradient(140px 90px at 100% 0%, rgba(36, 151, 218, 0.15), transparent 72%),
    radial-gradient(180px 120px at 0% 100%, rgba(25, 168, 134, 0.12), transparent 74%),
    linear-gradient(168deg, rgba(255, 255, 255, 0.98), rgba(233, 244, 255, 0.96));
}

.concentration-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(36, 151, 218, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.concentration-card-high {
  --concentration-accent: #ef8f2f;
  --concentration-accent-deep: #a85409;
  --concentration-accent-soft: rgba(239, 143, 47, 0.2);
  --concentration-secondary: #2098d8;
  --concentration-secondary-deep: #0c669a;
}

.concentration-card-medium {
  --concentration-accent: #2497da;
  --concentration-accent-deep: #0f4f86;
  --concentration-accent-soft: rgba(36, 151, 218, 0.18);
  --concentration-secondary: #19a886;
  --concentration-secondary-deep: #0d7863;
}

.concentration-card-balanced {
  --concentration-accent: #17937c;
  --concentration-accent-deep: #0b6756;
  --concentration-accent-soft: rgba(23, 147, 124, 0.18);
  --concentration-secondary: #2d86c9;
  --concentration-secondary-deep: #16598b;
}

.concentration-head-copy {
  display: grid;
  gap: 0.16rem;
}

.concentration-kicker {
  margin: 0;
  color: #5f7ea1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}

.concentration-pill {
  border-color: rgba(121, 163, 203, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.concentration-pill-high {
  background: rgba(255, 233, 210, 0.92);
  color: #9b570c;
}

.concentration-pill-medium {
  background: rgba(226, 241, 255, 0.95);
  color: #2c6695;
}

.concentration-pill-balanced {
  background: rgba(224, 246, 240, 0.94);
  color: #176856;
}

.concentration-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.88rem;
  align-items: stretch;
}

.concentration-hero-copy {
  display: grid;
  gap: 0.34rem;
}

.concentration-hero-title {
  margin: 0;
  color: #123252;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.26rem;
  line-height: 1.04;
}

.concentration-hero-text {
  margin: 0;
  max-width: 46ch;
  color: #55779a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.concentration-score {
  min-width: 132px;
  display: grid;
  align-content: center;
  gap: 0.14rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(136, 177, 214, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 246, 255, 0.78)),
    linear-gradient(180deg, var(--concentration-accent-soft), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 18px 34px rgba(10, 44, 74, 0.08);
  text-align: right;
}

.concentration-score-label {
  color: #6482a4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}

.concentration-score strong {
  color: var(--concentration-accent-deep);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.64rem;
  line-height: 1;
}

.concentration-score small {
  color: #5e7d9f;
  font-size: 0.72rem;
  font-weight: 700;
}

.concentration-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.concentration-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.26rem;
  padding: 0.84rem 0.88rem 0.86rem;
  border: 1px solid rgba(135, 176, 212, 0.24);
  border-radius: 1rem;
  background: var(--concentration-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 16px 32px rgba(7, 36, 64, 0.05);
}

.concentration-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--concentration-accent), var(--concentration-accent-deep));
}

.concentration-stat-secondary::before {
  background: linear-gradient(180deg, var(--concentration-secondary), var(--concentration-secondary-deep));
}

.concentration-stat-tertiary::before {
  background: linear-gradient(180deg, #8aa8c6, #54708f);
}

.concentration-stat-label {
  color: #5e7da0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}

.concentration-stat-value {
  margin: 0;
  color: #0d2f52;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.44rem;
  line-height: 1;
  font-weight: 700;
}

.concentration-stat-meta {
  margin: 0;
  color: #5d7b9c;
  font-size: 0.75rem;
  line-height: 1.42;
}

.concentration-balance-panel {
  display: grid;
  gap: 0.5rem;
  padding: 0.78rem 0.84rem 0.84rem;
  border: 1px solid rgba(135, 176, 212, 0.24);
  border-radius: 1rem;
  background: rgba(244, 250, 255, 0.74);
}

.concentration-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.concentration-balance-item {
  display: grid;
  gap: 0.18rem;
}

.concentration-balance-item:last-child {
  justify-items: end;
  text-align: right;
}

.concentration-balance-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.14rem 0.54rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}

.concentration-balance-label.is-primary {
  background: rgba(36, 151, 218, 0.14);
  color: var(--concentration-accent-deep);
}

.concentration-balance-label.is-secondary {
  background: rgba(143, 170, 197, 0.16);
  color: #527091;
}

.concentration-balance-item strong {
  color: #123252;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
}

.concentration-balance-track {
  display: flex;
  width: 100%;
  min-height: 1rem;
  border: 1px solid rgba(128, 171, 210, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: #e6f0f8;
  box-shadow: inset 0 1px 2px rgba(19, 56, 91, 0.08);
}

.concentration-balance-fill {
  min-width: 0;
}

.concentration-balance-fill-primary {
  background: linear-gradient(90deg, var(--concentration-accent-deep), var(--concentration-accent));
}

.concentration-balance-fill-secondary {
  background: linear-gradient(90deg, #d7e5f3, #eef5fb);
}

.concentration-balance-caption {
  margin: 0;
  color: #5f7ea1;
  font-size: 0.75rem;
}

.concentration-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.66rem;
}

.concentration-gauge-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.84rem;
  border: 1px solid rgba(135, 176, 212, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 12px 26px rgba(9, 35, 60, 0.05);
}

.concentration-gauge {
  --gauge-pct: 0;
  --gauge-color: var(--concentration-accent);
  --gauge-track: #d8e6f3;
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-color) calc(var(--gauge-pct) * 1%), var(--gauge-track) 0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 18px rgba(11, 44, 74, 0.08);
}

.concentration-gauge::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.92));
  box-shadow: inset 0 1px 2px rgba(13, 44, 74, 0.08);
}

.concentration-gauge-secondary {
  --gauge-color: var(--concentration-secondary);
}

.concentration-gauge-center {
  position: absolute;
  inset: 17px;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.concentration-gauge-center strong {
  color: #123252;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
  line-height: 1;
}

.concentration-gauge-center span {
  margin-top: 0.18rem;
  color: #6785a6;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}

.concentration-gauge-copy {
  display: grid;
  gap: 0.24rem;
}

.concentration-gauge-title {
  margin: 0;
  color: #163454;
  font-size: 0.88rem;
  font-weight: 800;
}

.concentration-gauge-note {
  margin: 0;
  color: #5f7ea1;
  font-size: 0.75rem;
  line-height: 1.42;
}

.concentration-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.concentration-context-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(135, 176, 212, 0.24);
  background: rgba(255, 255, 255, 0.76);
  color: #476886;
  padding: 0.18rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.split-track {
  display: flex;
  width: 100%;
  min-height: 0.72rem;
  border: 1px solid #cfe0f1;
  border-radius: 999px;
  overflow: hidden;
  background: #e8f2fb;
}

.split-fill {
  min-width: 0;
}

.split-fill-a {
  background: linear-gradient(90deg, #0b5c94, #2098d8);
}

.split-fill-b {
  background: linear-gradient(90deg, #c2d7eb, #dce9f5);
}

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

.ring-card {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  border: 1px solid #d4e3f2;
  border-radius: 0.78rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.86);
}

.ring {
  --ring-pct: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #ffffff 68%, transparent 70% 100%),
    conic-gradient(#1a74b9 calc(var(--ring-pct) * 1%), #dbe8f5 0);
}

.ring-2 {
  background:
    radial-gradient(closest-side, #ffffff 68%, transparent 70% 100%),
    conic-gradient(#1a9d80 calc(var(--ring-pct) * 1%), #dbe8f5 0);
}

.ring-title {
  margin: 0;
  color: #456383;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  font-weight: 800;
}

.ring-value {
  margin: 0.2rem 0 0;
  color: #10304f;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.chart-card {
  margin-bottom: 0;
  display: grid;
  gap: 0.62rem;
}

.bar-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.34rem 0;
  border-bottom: 1px dashed #d6e4f3;
}

.bar-item:last-child {
  border-bottom: 0;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem;
}

.bar-meta span {
  color: #2f4f71;
  font-size: 0.9rem;
  font-weight: 700;
}

.bar-meta strong {
  color: #102c4c;
  font-size: 0.88rem;
}

.bar-track {
  width: 100%;
  height: 0.62rem;
  border-radius: 999px;
  background: #e8f1fb;
  border: 1px solid #d1e1f1;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 260ms ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.bar-fill-a {
  background: linear-gradient(90deg, #0e4f88, #1b84d4);
}

.bar-fill-b {
  background: linear-gradient(90deg, #125e56, #28b3a2);
}

.bar-fill-c {
  background: linear-gradient(90deg, #6d4f15, #d39f39);
}

.bar-fill-d {
  background: linear-gradient(90deg, #532f8a, #8a57d3);
}

.bar-fill-e {
  background: linear-gradient(90deg, #6f2e45, #ca5f8d);
}

.bar-fill-f {
  background: linear-gradient(90deg, #31557d, #6da6dc);
}

.bar-fill-muted {
  background: repeating-linear-gradient(
    135deg,
    #9db6cd 0px,
    #9db6cd 6px,
    #c8d9ea 6px,
    #c8d9ea 12px
  );
}

.year-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.year-filter-label {
  color: #3f5f82;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.year-filter-select {
  border: 1px solid #c5d8ec;
  border-radius: 0.62rem;
  background: linear-gradient(180deg, #ffffff, #f1f8ff);
  color: #153a5f;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.35rem 0.56rem;
}

.year-bars {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
}

.year-bar-card {
  border: 1px solid #cfdeed;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  padding: 0.7rem;
  display: grid;
  gap: 0.4rem;
}

.year-bar-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.year-bar-card header strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.08rem;
}

.bar-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.bar-metric span {
  color: #3c5a7d;
  font-size: 0.82rem;
  font-weight: 700;
}

.bar-metric strong {
  color: #102d4d;
  font-size: 0.9rem;
}

.stack-track {
  display: flex;
  width: 100%;
  min-height: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #cfdeed;
  background: #eaf2fb;
}

.stack-paid {
  background: linear-gradient(90deg, #148e5a, #2ecf8a);
}

.stack-pending {
  background: linear-gradient(90deg, #cf9a2f, #f2c96f);
}

.empty-state {
  min-height: 170px;
  border: 1px dashed #c2d5ea;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #f9fcff, #f1f7ff);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem;
}

.empty-state h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.alert {
  font-weight: 700;
  margin-bottom: 1rem;
}

.alert-success {
  border-color: #bfe2ce;
  background: linear-gradient(180deg, #ebf9f1, #e1f5ea);
  color: #1a7149;
}

.alert-error {
  border-color: #edc0ca;
  background: linear-gradient(180deg, #fff1f4, #ffe8ed);
  color: #8f2540;
}

.alert-warn {
  border-color: #ecd6a2;
  background: linear-gradient(180deg, #fff9eb, #fff3d5);
  color: #8a6100;
}

.security-card {
  display: grid;
  gap: 0.9rem;
}

.security-card h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.security-status-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.security-status-tile {
  display: grid;
  gap: 0.32rem;
  padding: 0.9rem 1rem;
  border: 1px solid #c9dbee;
  border-radius: 0.88rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.98));
}

.security-popup-shell {
  width: min(100%, 560px);
  margin: 0;
}

.security-popup-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.92rem;
  padding: 1.2rem 1.24rem;
  border: 1px solid rgba(150, 196, 236, 0.38);
  border-radius: 1.24rem;
  background:
    radial-gradient(280px 160px at 100% -10%, rgba(76, 203, 223, 0.18), transparent 68%),
    radial-gradient(260px 170px at 0% 0%, rgba(61, 127, 202, 0.14), transparent 70%),
    linear-gradient(155deg, rgba(5, 23, 46, 0.96), rgba(8, 39, 72, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(235, 245, 255, 0.08),
    0 32px 68px rgba(3, 14, 28, 0.38);
  backdrop-filter: blur(20px);
}

.security-popup-glow {
  position: absolute;
  inset: auto auto -84px -64px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 180, 255, 0.18), rgba(74, 180, 255, 0));
  pointer-events: none;
}

.security-popup-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.security-popup-copy {
  display: grid;
  gap: 0.28rem;
}

.security-popup-copy .eyebrow {
  color: #8fbaf0;
}

.security-popup-copy h1 {
  margin: 0;
  color: #f4f8ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2vw, 1.86rem);
  line-height: 1.05;
}

.security-popup-copy .muted {
  margin: 0;
  max-width: 440px;
  color: #b6d1ec;
}

.security-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.84rem;
  border: 1px solid rgba(149, 193, 233, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #edf6ff;
  text-decoration: none;
  transition: transform 140ms ease, border-color 160ms ease, background 160ms ease;
}

.security-popup-close:hover {
  transform: translateY(-1px);
  border-color: rgba(188, 220, 249, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

.security-popup-close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-popup-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.security-popup-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 191, 232, 0.26);
  background: rgba(255, 255, 255, 0.07);
  color: #e4f1ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18px;
  padding: 0.2rem 0.66rem;
}

.security-popup-chip.is-ready {
  border-color: rgba(96, 201, 164, 0.38);
  background: rgba(23, 120, 95, 0.18);
  color: #d1fff1;
}

.security-popup-chip.is-pending {
  border-color: rgba(255, 206, 132, 0.38);
  background: rgba(122, 88, 24, 0.24);
  color: #ffe9be;
}

.security-popup-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.76rem;
}

.security-popup-field {
  display: grid;
  gap: 0.32rem;
}

.security-popup-field label {
  color: #dbeafb;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22px;
}

.security-popup-field input {
  min-height: 3rem;
  border-radius: 0.86rem;
  border: 1px solid rgba(147, 192, 232, 0.24);
  background: rgba(5, 20, 40, 0.48);
  color: #f4f8ff;
  box-shadow: inset 0 1px 0 rgba(238, 247, 255, 0.04);
}

.security-popup-field input::placeholder {
  color: #7fa2c8;
}

.security-popup-field input:focus {
  border-color: rgba(124, 187, 234, 0.82);
  box-shadow:
    0 0 0 4px rgba(25, 115, 192, 0.2),
    inset 0 1px 0 rgba(238, 247, 255, 0.04);
}

.security-popup-note {
  color: #8db3da;
}

.security-popup-section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.76rem;
  padding: 0.9rem 0.94rem;
  border: 1px solid rgba(145, 191, 232, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.security-popup-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.security-popup-section-kicker {
  margin: 0 0 0.14rem;
  color: #8fbaf0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24px;
  text-transform: uppercase;
}

.security-popup-section-head h2 {
  margin: 0;
  color: #f4f8ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.02rem;
}

.security-popup-section-tip {
  color: #9fc3e8;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: right;
}

.security-avatar-panel {
  display: flex;
  align-items: center;
  gap: 0.88rem;
}

.security-avatar-preview {
  flex: 0 0 auto;
  width: 4.8rem;
  height: 4.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.34rem;
  border: 1px solid rgba(157, 208, 244, 0.28);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(14, 99, 164, 0.98), rgba(10, 52, 92, 0.94));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 18px rgba(3, 16, 32, 0.2);
  color: #eef7ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.security-avatar-preview.has-photo {
  color: transparent;
}

.security-avatar-copy {
  display: grid;
  gap: 0.3rem;
}

.security-avatar-copy strong {
  color: #f4f8ff;
  font-size: 0.95rem;
}

.security-avatar-copy .muted {
  margin: 0;
}

.security-popup-field input[type="file"] {
  padding: 0.7rem 0.8rem;
}

.security-popup-field input[type="file"]::file-selector-button {
  margin-right: 0.7rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(149, 193, 233, 0.32);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  color: #edf6ff;
  font-weight: 700;
  cursor: pointer;
}

.security-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.48rem;
  padding-top: 0.14rem;
}

.table-wrap {
  margin-top: 0.75rem;
  border: 1px solid #cfdeed;
  border-radius: 0.82rem;
  overflow: auto;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.year-trigger {
  border: 0;
  background: transparent;
  color: #0a4f87;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.year-trigger:hover {
  text-decoration: underline;
}

th,
td {
  text-align: left;
  padding: 0.72rem;
  border-bottom: 1px solid #e0eaf4;
  vertical-align: top;
  font-size: 0.95rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #3d5b7d;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.64px;
  font-weight: 800;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

tbody tr {
  transition: transform 110ms ease;
}

tbody tr:hover td {
  background: #f7fbff;
}

tbody tr:hover {
  transform: translateX(1px);
}

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

.js-annual-year-row {
  cursor: pointer;
}

.js-annual-year-row.is-selected td {
  background: #e8f4ff;
}

.row-rank {
  width: 46px;
  color: #486688;
  font-weight: 800;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #c6d7ea;
  color: #3a5877;
  background: #eef5fc;
  font-size: 0.81rem;
  font-weight: 800;
}

.metric-chip-mid {
  border-color: #dbc789;
  color: #7f631a;
  background: #fff7df;
}

.metric-chip-high {
  border-color: #afdcc4;
  color: #166f45;
  background: #e8f8ef;
}

.link-action {
  color: #0a4f87;
  text-decoration: none;
  font-weight: 800;
}

.link-action:hover {
  text-decoration: underline;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.inline-form {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.15rem 0.52rem;
  font-size: 0.77rem;
  font-weight: 800;
}

.status-active,
.status-en-ejecucion-contractual,
.status-scheduled {
  color: var(--success);
  border-color: #b6ddc8;
  background: #e8f8ef;
}

.status-issued,
.status-paid,
.status-facturacion,
.status-renewal,
.status-proceso-de-renovacion {
  color: var(--info);
  border-color: #bcd4f7;
  background: #e9f2ff;
}

.status-overdue,
.status-plazo-vencido {
  color: var(--warning);
  border-color: #efd3a6;
  background: #fff5e7;
}

.status-cancelled,
.status-contrato-anulado,
.status-error,
.status-unknown {
  color: var(--danger);
  border-color: #edb6c3;
  background: #ffedf1;
}

.status-voided {
  color: #6a2940;
  border-color: #e3bfd0;
  background: #f8eaf0;
}

.status-pendiente {
  color: var(--warning);
  border-color: #efd3a6;
  background: #fff5e7;
}

.status-pagado,
.status-doc-cambiado {
  color: var(--success);
  border-color: #b6ddc8;
  background: #e8f8ef;
}

.status-factura-anulada {
  color: var(--danger);
  border-color: #edb6c3;
  background: #ffedf1;
}

.payment-form {
  display: grid;
  gap: 0.62rem;
}

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

.payment-form label {
  display: grid;
  gap: 0.28rem;
  color: #2f516f;
  font-size: 0.88rem;
  font-weight: 700;
}

.payment-form .inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  color: #2f516f;
  font-size: 0.84rem;
  font-weight: 700;
}

.payment-form .inline-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.payment-form input,
.payment-form select,
.payment-form textarea {
  width: 100%;
  border: 1px solid #c5d7ea;
  border-radius: 0.65rem;
  background: #f8fbff;
  color: #122b46;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  padding: 0.5rem 0.62rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus {
  outline: none;
  border-color: #1d75bc;
  box-shadow: 0 0 0 3px rgba(29, 117, 188, 0.17);
}

.inline-field {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.inline-field .button {
  white-space: nowrap;
}

.fact-source-toolbar {
  border: 1px dashed #bfd3e8;
  border-radius: 0.74rem;
  padding: 0.5rem 0.56rem;
  background: linear-gradient(180deg, #fafdff, #edf6ff);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.fact-source-toolbar .muted {
  margin: 0;
}

.fact-source-ruc-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  color: #2f516f;
  font-size: 0.8rem;
  font-weight: 700;
}

.fact-source-ruc-inline input {
  width: 180px;
}

.fact-source-manual-context {
  margin-top: -0.2rem;
}

.fact-added-accounts-panel {
  margin-top: -0.12rem;
  border: 1px dashed #bfd4e8;
  border-radius: 0.74rem;
  background: linear-gradient(180deg, #fafdff, #edf6ff);
  padding: 0.5rem 0.56rem;
}

.fact-added-accounts-panel h5 {
  margin: 0;
  color: #10345a;
  font-size: 0.88rem;
  font-weight: 800;
}

.fact-added-accounts-panel .muted {
  margin: 0.16rem 0 0;
}

.fact-added-accounts-wrap {
  margin-top: 0.34rem;
  max-height: 180px;
}

.fact-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.5rem;
}

.fact-line-item[hidden] {
  display: none;
}

.fact-line-item input[readonly] {
  background: #eef4fb;
}

.fact-source-modal-period {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.62rem;
}

.fact-source-modal-period .button-group {
  align-items: center;
  justify-content: flex-end;
}

.fact-source-search-controls {
  grid-template-columns: minmax(240px, 1.35fr) auto auto auto;
}

.fact-source-search-controls .button {
  min-width: 118px;
}

.fact-source-search-controls .pill {
  align-self: center;
  justify-self: start;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
}

.fact-source-row-match td {
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(239, 247, 255, 0.94));
}

.fact-source-hit {
  padding: 0.02rem 0.16rem;
  border-radius: 0.26rem;
  background: linear-gradient(180deg, #fff2c8, #ffe29a);
  color: #6b4a08;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.fact-source-search-hits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0.24rem 0 0;
  color: #547494;
}

.fact-source-hit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 191, 220, 0.64);
  background: rgba(247, 251, 255, 0.96);
  color: #355a80;
  font-weight: 700;
}

.fact-source-hit-label {
  color: #6a87a6;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18px;
  text-transform: uppercase;
}

.fact-source-upload-form {
  border: 1px dashed #b9d0e5;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #fdfefe, #eff7ff);
  padding: 0.58rem;
}

.fact-manual-ruc-controls {
  grid-template-columns: minmax(180px, 1.2fr) auto auto minmax(120px, 0.8fr) minmax(170px, 1fr) auto;
}

.fact-manual-ruc-search-controls {
  margin-top: 0.34rem;
}

#facturacion-manual-ruc-modal .app-modal-dialog {
  max-height: min(92vh, 960px);
  overflow-y: auto;
  padding-bottom: 0.84rem;
}

.fact-manual-ruc-source-wrap {
  max-height: min(26vh, 250px);
}

.fact-manual-ruc-basket {
  margin-top: 0.32rem;
  border-color: #bfd4e8;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.fact-manual-ruc-basket-wrap {
  max-height: min(24vh, 220px);
}

.fact-manual-ruc-actions {
  position: sticky;
  bottom: -0.1rem;
  z-index: 2;
  padding-top: 0.42rem;
  padding-bottom: 0.16rem;
  background: linear-gradient(180deg, rgba(237, 246, 255, 0), rgba(237, 246, 255, 0.96) 36%, #edf6ff);
}

.line-breakdown-row td {
  background: #f7fbff;
  padding-block: 0.2rem;
}

.line-breakdown-source {
  display: none;
}

.line-breakdown-summary-modal-dialog {
  width: min(680px, 95vw);
  max-height: min(76vh, 620px);
}

.line-breakdown-summary-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.42rem;
}

.line-breakdown-summary-kpis .projection-stat {
  margin-bottom: 0;
}

.line-breakdown-bars {
  display: grid;
  gap: 0.4rem;
  max-height: min(36vh, 330px);
  overflow: auto;
  padding-right: 0.14rem;
}

.line-breakdown-bars--summary {
  margin-top: 0.42rem;
}

.line-breakdown-inline-bars {
  display: grid;
  gap: 0.16rem;
  padding: 0.18rem 0;
}

.line-breakdown-bar-card {
  border: 1px solid #c2d6ea;
  border-radius: 0.74rem;
  background: linear-gradient(180deg, #fbfdff, #ecf5ff);
  padding: 0.48rem 0.55rem;
}

.line-breakdown-bar-card.is-compact {
  border-radius: 0.48rem;
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  padding: 0.18rem 0.3rem;
}

.line-breakdown-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: #19446e;
}

.line-breakdown-bar-head strong {
  font-size: 0.98rem;
}

.line-breakdown-bar-card.is-compact .line-breakdown-bar-head strong {
  font-size: 0.72rem;
}

.line-breakdown-bar-head span {
  font-weight: 800;
  color: #174267;
}

.line-breakdown-bar-card.is-compact .line-breakdown-bar-head span {
  font-size: 0.7rem;
}

.line-breakdown-bar-track {
  margin-top: 0.32rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #d8e8f7;
  overflow: hidden;
}

.line-breakdown-bar-card.is-compact .line-breakdown-bar-track {
  margin-top: 0.12rem;
  height: 0.2rem;
}

.line-breakdown-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f79bf, #2ca0ec);
}

.line-breakdown-bar-fill.is-negative {
  background: linear-gradient(90deg, #af6312, #e6963b);
}

.line-breakdown-bar-meta {
  margin: 0.24rem 0 0;
  font-size: 0.72rem;
  color: #4a6d8d;
}

.line-breakdown-bar-card.is-compact .line-breakdown-bar-meta {
  margin-top: 0.1rem;
  font-size: 0.56rem;
}

.projection-stat-clickable {
  cursor: pointer;
  user-select: none;
}

.projection-stat-clickable:hover {
  border-color: #9ebede;
  box-shadow: 0 8px 20px rgba(13, 51, 88, 0.1);
}

.projection-stat-clickable:focus-visible {
  outline: 2px solid #2b7fcb;
  outline-offset: 2px;
}

.status-auto {
  color: #275f97;
  border-color: #b8d2ea;
  background: #ecf5ff;
}

.status-manual {
  color: #8b5e0a;
  border-color: #e8d2a4;
  background: #fff7e8;
}

.technical-form .projection-stat {
  margin-bottom: 0;
}

.technical-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.64rem;
}

.technical-lines-wrap {
  margin-top: 0.62rem;
  border: 1px solid #cfdeed;
  border-radius: 0.82rem;
  background: #ffffff;
  max-height: 360px;
  overflow: auto;
}

.technical-lines-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.technical-lines-table th {
  white-space: nowrap;
}

.technical-lines-table td {
  vertical-align: middle;
}

.technical-lines-table td input,
.technical-lines-table td select {
  min-width: 150px;
}

.technical-lines-table td .button-danger {
  min-width: 2.2rem;
  padding-inline: 0.55rem;
}

.margin-top {
  margin-top: 0.82rem;
}

.text-success {
  color: #176f46;
}

.text-warning {
  color: #926000;
}

.text-info {
  color: #2256a0;
}

.process-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.8rem;
}

.process-contract-summary-panel {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  border-color: #aecce7;
  background:
    radial-gradient(360px 180px at 102% -18%, rgba(36, 136, 208, 0.16), transparent 72%),
    radial-gradient(260px 130px at 0% 0%, rgba(53, 175, 152, 0.12), transparent 70%),
    linear-gradient(162deg, rgba(255, 255, 255, 0.99), rgba(236, 246, 255, 0.98));
  box-shadow:
    0 14px 28px rgba(10, 42, 76, 0.1),
    inset 0 0 0 1px rgba(205, 226, 244, 0.5);
}

.process-contract-summary-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #2b81c5, #3ca8d8, #2db298, #c59a34);
  opacity: 0.92;
}

.process-contract-summary-panel > * {
  position: relative;
  z-index: 1;
}

.process-contract-summary-panel .commercial-contract-sheet {
  background:
    radial-gradient(240px 100px at 98% 0%, rgba(44, 141, 211, 0.08), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92));
}

.process-team-card {
  position: relative;
  overflow: hidden;
  border-color: #a8c5e1;
  box-shadow:
    0 14px 28px rgba(8, 38, 71, 0.12),
    inset 0 0 0 1px rgba(196, 220, 243, 0.42);
  background:
    radial-gradient(340px 170px at 99% -26%, rgba(42, 152, 228, 0.2), transparent 72%),
    radial-gradient(260px 130px at 2% -24%, rgba(49, 189, 161, 0.14), transparent 70%),
    linear-gradient(162deg, rgba(255, 255, 255, 0.99), rgba(232, 245, 255, 0.97));
}

.process-team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #2a7ec0, #2ea68b, #c0932a, #b2586d);
  opacity: 0.9;
  pointer-events: none;
}

.process-team-card > * {
  position: relative;
  z-index: 1;
}

.process-team-card .section-head h3 {
  color: #10385f;
  font-size: 1.2rem;
  letter-spacing: 0.1px;
}

.process-team-kpis {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.52rem;
}

.process-team-kpi {
  position: relative;
  overflow: hidden;
  border: 1px solid #bbd3ea;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff, #ebf5ff);
  padding: 0.46rem 0.56rem;
  box-shadow: inset 0 0 0 1px rgba(210, 228, 245, 0.48);
}

.process-team-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2a80c4, #4aa5dd);
}

.process-team-kpi .projection-value {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  line-height: 1.04;
}

.process-team-grid {
  margin-top: 0.64rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.process-team-form {
  margin-top: 0.6rem;
  border: 1px solid #b8d1e8;
  border-radius: 0.78rem;
  background:
    radial-gradient(180px 90px at 100% -14%, rgba(38, 141, 214, 0.16), transparent 72%),
    linear-gradient(180deg, #ffffff, #edf6ff);
  padding: 0.56rem;
  box-shadow: inset 0 0 0 1px rgba(204, 224, 243, 0.56);
}

.process-team-preview {
  margin: 0.34rem 0 0;
  min-height: 1rem;
  font-weight: 700;
  border-radius: 0.52rem;
  border: 1px dashed #c3d8ec;
  background: rgba(248, 252, 255, 0.8);
  padding: 0.26rem 0.42rem;
}

.process-team-preview.is-ok {
  color: #176f46;
  border-color: #9dd7c5;
  background: rgba(236, 251, 245, 0.9);
}

.process-team-preview.is-warn {
  color: #926000;
  border-color: #e3cc9a;
  background: rgba(255, 249, 236, 0.9);
}

.process-team-role {
  position: relative;
  overflow: hidden;
  border: 1px solid #bad2e8;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #ffffff, #eff7ff);
  padding: 0.5rem 0.56rem;
  box-shadow:
    0 8px 18px rgba(11, 47, 83, 0.09),
    inset 0 0 0 1px rgba(209, 227, 244, 0.44);
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.process-team-role::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #5a7ea4, #90aecd);
  opacity: 0.86;
}

.process-team-role:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 22px rgba(8, 43, 77, 0.13),
    inset 0 0 0 1px rgba(203, 224, 244, 0.54);
}

.process-team-role header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.48rem;
  margin-bottom: 0.36rem;
}

.process-team-role h4 {
  margin: 0;
  color: #133b61;
  font-size: 1rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.18px;
}

.process-team-role.tone-commercial {
  border-color: #a8cde9;
  background: linear-gradient(180deg, #f5fbff, #e7f2ff);
}

.process-team-role.tone-commercial::before {
  background: linear-gradient(90deg, #1f6fae, #3f99d2);
}

.process-team-role.tone-maintenance {
  border-color: #a5ddd2;
  background: linear-gradient(180deg, #f6fffc, #e8f9f4);
}

.process-team-role.tone-maintenance::before {
  background: linear-gradient(90deg, #0f7f73, #31b1a0);
}

.process-team-role.tone-billing {
  border-color: #e6d2a6;
  background: linear-gradient(180deg, #fffdf7, #fff5e6);
}

.process-team-role.tone-billing::before {
  background: linear-gradient(90deg, #9a6a10, #d2a244);
}

.process-team-role.tone-solutions {
  border-color: #dfbcc6;
  background: linear-gradient(180deg, #fff9fa, #fff1f4);
}

.process-team-role.tone-solutions::before {
  background: linear-gradient(90deg, #94445a, #bf6e83);
}

.process-team-members {
  display: grid;
  gap: 0.34rem;
}

.process-team-member {
  border: 1px solid #bed4e8;
  border-radius: 0.64rem;
  background:
    radial-gradient(120px 70px at 96% -16%, rgba(128, 180, 227, 0.14), transparent 72%),
    rgba(255, 255, 255, 0.92);
  padding: 0.38rem 0.44rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.44rem;
  box-shadow: inset 0 0 0 1px rgba(214, 228, 243, 0.4);
}

.process-team-member strong {
  color: #143d64;
  font-size: 0.85rem;
  line-height: 1.18;
}

.projection-stats {
  margin-top: 0.78rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.projection-stat {
  border: 1px solid #cfdeed;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  padding: 0.72rem 0.78rem;
}

.projection-value {
  margin: 0.32rem 0 0;
  color: #102a47;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.smart-template-field.is-field-disabled {
  opacity: 0.62;
}

.smart-template-field.is-field-disabled input,
.smart-template-field.is-field-disabled select {
  background: linear-gradient(180deg, #edf3f9, #e6eef7);
  color: #7387a1;
  cursor: not-allowed;
  box-shadow: inset 0 0 0 1px rgba(188, 207, 227, 0.85);
}

.template-form-smart-note {
  margin: 0.18rem 0 0.1rem;
}

.projection-layout {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.8rem;
}

.panel {
  border: 1px solid #cfdeed;
  border-radius: 0.88rem;
  background: linear-gradient(180deg, #fdfefe, #f2f8ff);
  padding: 0.92rem;
}

.panel h3,
.panel h4 {
  margin: 0 0 0.62rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.kv {
  display: grid;
  gap: 0.34rem 0.68rem;
  grid-template-columns: 1fr 1fr;
}

.kv span {
  color: #4f6680;
  font-size: 0.85rem;
}

.kv strong {
  color: #102944;
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.payment-history-shell {
  padding: 0.6rem 0.72rem 0.78rem;
}

.payment-history-summary-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  min-width: 0;
}

.payment-history-summary-main strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
}

.payment-history-timeline {
  margin-top: 0.18rem;
}

.payment-history-item {
  padding: 0.44rem 0.5rem 0.58rem;
}

.payment-history-item-summary {
  padding: 0.08rem 0;
  align-items: flex-start;
}

.payment-history-item-head {
  display: inline-flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.payment-history-item-date {
  color: #5b7594;
  font-size: 0.78rem;
  font-weight: 600;
}

.payment-history-item .muted {
  margin: 0.2rem 0 0;
}

.payment-history-item pre {
  margin-top: 0.3rem;
}

.commercial-history-shell {
  padding: 0.6rem 0.72rem 0.82rem;
}

.commercial-history-approved-panel {
  margin-top: 0.2rem;
  padding: 0.72rem 0.78rem;
}

.commercial-history-audit-head {
  margin-top: 0.72rem;
}

.timeline-item {
  border: 1px solid #d5e2f0;
  border-left: 4px solid #1174a9;
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.timeline-item header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
}

.timeline-item header strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.95rem;
}

.timeline-item header span {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-item pre {
  margin: 0.35rem 0 0;
  border: 1px solid #d8e4f0;
  border-radius: 0.6rem;
  background: #f3f8ff;
  padding: 0.46rem;
  color: #1f3858;
  font-size: 0.78rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.endpoint-grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.endpoint-grid code {
  display: block;
  border-radius: 0.72rem;
  border: 1px solid #cee0f1;
  background: linear-gradient(180deg, #f8fbff, #edf6ff);
  color: #214669;
  padding: 0.58rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.mini {
  margin: 0;
  font-size: 0.8rem;
}

/* Global dense mode (trading/BI style) */
body.dense-ui {
  --radius-lg: 0.88rem;
  --radius-md: 0.68rem;
  --shadow-lg: 0 10px 24px rgba(7, 27, 51, 0.11);
  --shadow-md: 0 6px 14px rgba(8, 32, 60, 0.07);
}

body.dense-ui .topbar {
  padding: 0.62rem 0.86rem 0.52rem;
}

body.dense-ui .topbar-inner {
  grid-template-columns: minmax(280px, 0.86fr) minmax(720px, 1.34fr);
  gap: 0.46rem 0.62rem;
}

body.dense-ui .topbar-public .topbar-inner,
body.dense-ui .topbar-inner-public {
  grid-template-columns: minmax(280px, 1fr) auto;
}

body.dense-ui .topbar-public .brand-wrap {
  padding: 0.44rem 0.58rem;
}

body.dense-ui .topbar-public .brand {
  font-size: 1.24rem;
}

body.dense-ui .topbar-public .brand-sub {
  font-size: 0.66rem;
}

body.dense-ui.is-shell-condensed .topbar {
  padding: 0.34rem 0.76rem 0.28rem;
}

body.dense-ui.is-shell-condensed .brand-wrap {
  padding: 0.42rem 0.54rem;
}

body.dense-ui.is-shell-condensed .brand {
  font-size: 1.22rem;
}

body.dense-ui.is-shell-condensed .brand-datetime {
  padding: 0.06rem 0.34rem;
}

body.dense-ui.is-shell-condensed .topnav-primary-shell,
body.dense-ui.is-shell-condensed .topnav-session {
  padding: 0.38rem 0.48rem;
}

body.dense-ui.is-shell-condensed .topnav-primary .button {
  min-height: 1.82rem;
  padding: 0.22rem 0.54rem;
  border-radius: 0.6rem;
  font-size: 0.78rem;
}

body.dense-ui.is-shell-condensed .module-nav-shell {
  margin-top: 0.22rem;
}

body.dense-ui.is-shell-condensed .module-nav-frame {
  padding: 0.38rem 0.48rem 0.42rem;
}

body.dense-ui.is-shell-condensed .module-link {
  min-height: 1.82rem;
  font-size: 0.72rem;
  padding: 0.24rem 0.38rem;
}

body.dense-ui.is-shell-condensed .module-icon {
  width: 1.22rem;
  height: 1.22rem;
}

body.dense-ui.is-shell-condensed .hero-pro {
  padding: 0.58rem 0.64rem;
}

body.dense-ui.is-shell-condensed .hero-pro .eyebrow {
  font-size: 0.54rem;
}

body.dense-ui.is-shell-condensed .hero-pro-head h1 {
  font-size: clamp(1.28rem, 1.7vw, 1.5rem);
}

body.dense-ui.is-shell-condensed .hero-pro-copy {
  font-size: 0.7rem;
}

body.dense-ui.is-shell-condensed .hero-pro-metrics {
  gap: 0.28rem;
}

body.dense-ui.is-shell-condensed .hero-mini-stat {
  padding: 0.32rem 0.36rem;
}

body.dense-ui.is-shell-condensed .hero-mini-label {
  font-size: 0.48rem;
}

body.dense-ui.is-shell-condensed .hero-mini-value {
  font-size: 0.78rem;
}

body.dense-ui.is-shell-condensed .hero-mini-meta {
  font-size: 0.52rem;
}

body.dense-ui.is-shell-condensed .hero-search-shell {
  padding: 0.54rem;
}

body.dense-ui.is-shell-condensed .hero-ops-item {
  min-height: 2.76rem;
}

body.dense-ui .topnav {
  width: 100%;
}

body.dense-ui .topnav-suite {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 246px);
  gap: 0.42rem;
}

body.dense-ui .topnav-primary-shell,
body.dense-ui .topnav-auth-shell,
body.dense-ui .topnav-session {
  padding: 0.48rem 0.58rem;
  border-radius: 0.9rem;
}

body.dense-ui .topnav-auth-shell {
  min-width: 186px;
}

body.dense-ui .topbar-public .topnav-auth-shell {
  min-width: 0;
  padding: 0.38rem 0.44rem;
}

body.dense-ui .topnav-primary {
  gap: 0.28rem;
}

body.dense-ui .topnav-primary .button,
body.dense-ui .topnav-exit {
  min-height: 2rem;
  padding: 0.28rem 0.64rem;
  border-radius: 0.66rem;
  font-size: 0.84rem;
}

body.dense-ui .button-inline-icon {
  width: 0.84rem;
  height: 0.84rem;
  margin-right: 0.1rem;
}

body.dense-ui .button-inline-icon svg {
  width: 0.84rem;
  height: 0.84rem;
}

body.dense-ui .button-security {
  padding-inline: 0.56rem 0.62rem;
}

body.dense-ui .brand {
  font-size: 1.36rem;
}

body.dense-ui .brand-head {
  gap: 0.38rem;
}

body.dense-ui .brand-wrap {
  padding: 0.64rem 0.72rem;
  border-radius: 0.9rem;
}

body.dense-ui .brand-datetime {
  gap: 0.26rem;
  padding: 0.08rem 0.4rem;
}

body.dense-ui .brand-date {
  font-size: 0.52rem;
}

body.dense-ui .brand-time {
  font-size: 0.62rem;
}

body.dense-ui .brand-sub {
  font-size: 0.74rem;
}

body.dense-ui .tag-chip {
  font-size: 0.6rem;
  padding: 0.08rem 0.42rem;
}

body.dense-ui .topnav-auth-title {
  font-size: 0.8rem;
}

body.dense-ui .topnav-auth-meta {
  font-size: 0.62rem;
}

body.dense-ui .module-nav-shell {
  margin-top: 0.42rem;
}

body.dense-ui .module-nav-frame {
  padding: 0.56rem 0.66rem 0.62rem;
  border-radius: 0.92rem;
}

body.dense-ui .module-nav-head {
  margin-bottom: 0.42rem;
}

body.dense-ui .topnav-shell-label,
body.dense-ui .top-user-kicker,
body.dense-ui .module-nav-kicker,
body.dense-ui .workspace-rail-label {
  display: none;
}

body.dense-ui .module-nav-title {
  font-size: 0.84rem;
  margin-top: 0;
}

body.dense-ui .module-nav-caption {
  font-size: 0.64rem;
}

body.dense-ui .module-nav {
  gap: 0.34rem;
}

body.dense-ui .module-link {
  min-height: 2.2rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.46rem;
}

body.dense-ui .module-icon {
  width: 1.44rem;
  height: 1.44rem;
}

body.dense-ui .module-text {
  font-size: 0.78rem;
}

body.dense-ui .workspace-rail-shell {
  padding: 0.28rem 0.44rem;
  gap: 0.36rem;
}

body.dense-ui .workspace-rail {
  gap: 0.24rem;
}

body.dense-ui .workspace-chip {
  padding: 0.1rem 0.4rem;
  font-size: 0.62rem;
}

body.dense-ui .button-workspace {
  padding-inline: 0.78rem 0.84rem;
}

body.dense-ui .top-user-card {
  min-width: 0;
}

body.dense-ui .top-user-name {
  font-size: 0.66rem;
}

body.dense-ui .top-user-headline {
  gap: 0.22rem;
}

body.dense-ui .top-user-menu-panel {
  width: min(248px, calc(100vw - 2rem));
  padding: 0.52rem;
  border-radius: 0.84rem;
}

body.dense-ui .top-user-menu-link {
  min-height: 2.16rem;
  padding: 0.44rem 0.54rem;
  font-size: 0.76rem;
}

body.dense-ui .top-user-pill {
  font-size: 0.5rem;
  padding: 0.1rem 0.34rem;
}

body.dense-ui .container-modal {
  padding-top: 1rem;
  padding-bottom: 1.2rem;
}

body.dense-ui .security-popup-card {
  gap: 0.82rem;
  padding: 0.98rem 1rem;
  border-radius: 1rem;
}

body.dense-ui .security-popup-copy h1 {
  font-size: 1.38rem;
}

body.dense-ui .security-popup-chip {
  min-height: 1.76rem;
  font-size: 0.68rem;
  padding: 0.14rem 0.56rem;
}

body.dense-ui .security-popup-section {
  gap: 0.64rem;
  padding: 0.76rem 0.8rem;
  border-radius: 0.9rem;
}

body.dense-ui .security-popup-section-head h2 {
  font-size: 0.92rem;
}

body.dense-ui .security-popup-section-tip,
body.dense-ui .security-popup-section-kicker {
  font-size: 0.65rem;
}

body.dense-ui .security-avatar-panel {
  gap: 0.72rem;
}

body.dense-ui .security-avatar-preview {
  width: 4rem;
  height: 4rem;
  border-radius: 1.1rem;
  font-size: 1.2rem;
}

body.dense-ui .security-avatar-copy strong {
  font-size: 0.84rem;
}

body.dense-ui .security-popup-field input {
  min-height: 2.62rem;
}

body.dense-ui .concentration-card {
  gap: 0.64rem;
}

body.dense-ui .concentration-kicker,
body.dense-ui .concentration-score-label,
body.dense-ui .concentration-stat-label,
body.dense-ui .concentration-balance-label,
body.dense-ui .concentration-gauge-center span,
body.dense-ui .concentration-context-chip {
  font-size: 0.6rem;
}

body.dense-ui .concentration-hero {
  gap: 0.68rem;
}

body.dense-ui .concentration-hero-title {
  font-size: 1.06rem;
}

body.dense-ui .concentration-hero-text,
body.dense-ui .concentration-stat-meta,
body.dense-ui .concentration-balance-caption,
body.dense-ui .concentration-gauge-note {
  font-size: 0.68rem;
}

body.dense-ui .concentration-score,
body.dense-ui .concentration-stat,
body.dense-ui .concentration-balance-panel,
body.dense-ui .concentration-gauge-card {
  border-radius: 0.88rem;
}

body.dense-ui .concentration-score {
  min-width: 110px;
  padding: 0.68rem 0.74rem;
}

body.dense-ui .concentration-score strong {
  font-size: 1.36rem;
}

body.dense-ui .concentration-stat-grid {
  gap: 0.5rem;
}

body.dense-ui .concentration-stat {
  padding: 0.68rem 0.72rem 0.72rem;
}

body.dense-ui .concentration-stat-value {
  font-size: 1.2rem;
}

body.dense-ui .concentration-balance-track {
  min-height: 0.84rem;
}

body.dense-ui .concentration-balance-item strong,
body.dense-ui .concentration-gauge-title {
  font-size: 0.8rem;
}

body.dense-ui .concentration-gauge-grid {
  gap: 0.5rem;
}

body.dense-ui .concentration-gauge-card {
  gap: 0.68rem;
  padding: 0.68rem 0.72rem;
}

body.dense-ui .concentration-gauge {
  width: 74px;
  height: 74px;
}

body.dense-ui .concentration-gauge::after {
  inset: 9px;
}

body.dense-ui .concentration-gauge-center {
  inset: 14px;
}

body.dense-ui .concentration-gauge-center strong {
  font-size: 0.92rem;
}

body.dense-ui .container {
  margin: 0.82rem auto;
  padding: 0 0.82rem 1.35rem;
}

body.dense-ui .card {
  margin-bottom: 0.66rem;
  padding: 0.82rem;
  border-radius: 0.74rem;
}

body.dense-ui .hero,
body.dense-ui .module-hero,
body.dense-ui .process-hero {
  gap: 0.66rem 0.82rem;
}

body.dense-ui .hero-pro {
  padding: 0.9rem 0.94rem;
  gap: 0.78rem 0.84rem;
  border-radius: 0.86rem;
}

body.dense-ui .hero-pro-grid {
  grid-template-columns: minmax(0, 1.56fr) minmax(320px, 1fr);
  gap: 0.72rem;
}

body.dense-ui .hero-pro-main {
  gap: 0.58rem;
}

body.dense-ui .hero-pro .eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.64px;
}

body.dense-ui .hero-pro-head h1 {
  font-size: clamp(1.68rem, 2.36vw, 2.1rem);
  line-height: 1.05;
}

body.dense-ui .hero-pro-copy {
  font-size: 0.8rem;
  line-height: 1.26;
}

body.dense-ui .hero-density-row {
  gap: 0.28rem;
}

body.dense-ui .hero-density-chip {
  padding: 0.1rem 0.38rem;
  font-size: 0.58rem;
}

body.dense-ui .hero-pro-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.44rem;
}

body.dense-ui .hero-mini-stat {
  padding: 0.44rem 0.48rem;
}

body.dense-ui .hero-mini-label {
  font-size: 0.56rem;
}

body.dense-ui .hero-mini-value {
  font-size: 0.86rem;
}

body.dense-ui .hero-mini-meta {
  margin-top: 0.14rem;
  font-size: 0.56rem;
}

body.dense-ui .hero-search {
  padding: 0.72rem;
  border-radius: 0.68rem;
  gap: 0.42rem;
}

body.dense-ui .hero-search-shell {
  padding: 0.76rem;
}

body.dense-ui .hero-search-kicker {
  font-size: 0.52rem;
}

body.dense-ui .hero-search-head label {
  font-size: 0.76rem;
}

body.dense-ui .hero-hotkey {
  min-width: 2.5rem;
  font-size: 0.61rem;
  min-height: 1.76rem;
}

body.dense-ui .hero-search-intro {
  font-size: 0.64rem;
}

body.dense-ui .hero-search-command {
  gap: 0.38rem;
}

body.dense-ui .hero-search-input-shell {
  min-height: 2.74rem;
  padding: 0.16rem 0.22rem 0.16rem 0.62rem;
  border-radius: 0.82rem;
}

body.dense-ui .hero-search-input-icon {
  width: 1.72rem;
  height: 1.72rem;
}

body.dense-ui .hero-search-input-shell input {
  font-size: 0.88rem;
}

body.dense-ui .hero-search-submit {
  min-width: 6.3rem;
  min-height: 2.74rem;
  border-radius: 0.82rem;
  padding-inline: 0.84rem;
}

body.dense-ui .hero-quick-chip {
  font-size: 0.58rem;
  padding: 0.12rem 0.36rem;
}

body.dense-ui .hero-search-status {
  font-size: 0.58rem;
  padding: 0.12rem 0.38rem;
}

body.dense-ui .hero-ops-tray {
  gap: 0.34rem;
  padding: 0.42rem;
  border-radius: 0.7rem;
}

body.dense-ui .hero-ops-item {
  min-height: 3.1rem;
  padding: 0.26rem 0.34rem;
}

body.dense-ui .hero-ops-label {
  font-size: 0.61rem;
}

body.dense-ui .hero-ops-value {
  font-size: 0.82rem;
}

body.dense-ui .button {
  border-radius: 0.56rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
}

body.dense-ui .button-mini {
  padding: 0.21rem 0.44rem;
  font-size: 0.71rem;
}

body.dense-ui .section-head {
  gap: 0.5rem;
}

body.dense-ui .section-head h1 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

body.dense-ui .section-head h2 {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

body.dense-ui .section-head h3 {
  font-size: 1.03rem;
}

body.dense-ui .section-head h4 {
  font-size: 0.95rem;
}

body.dense-ui .kpi-grid {
  margin-bottom: 0.66rem;
  gap: 0.56rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.dense-ui .kpi-card {
  padding: 0.64rem 0.72rem;
}

body.dense-ui .kpi-card::after {
  width: 96px;
  height: 96px;
  top: -32px;
  right: -24px;
}

body.dense-ui .kpi-label {
  font-size: 0.67rem;
  letter-spacing: 0.48px;
}

body.dense-ui .kpi-value {
  margin-top: 0.2rem;
  font-size: clamp(1.2rem, 1.95vw, 1.66rem);
}

body.dense-ui .kpi-value,
body.dense-ui .exec-value,
body.dense-ui .insight-value,
body.dense-ui .insight-amount,
body.dense-ui .projection-value,
body.dense-ui .lane-value,
body.dense-ui .ring-value,
body.dense-ui .bar-meta strong,
body.dense-ui .year-bar-card strong,
body.dense-ui .process-progress-head strong,
body.dense-ui .pill,
body.dense-ui th,
body.dense-ui td {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

body.dense-ui .pill {
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
}

body.dense-ui .chips {
  gap: 0.3rem;
}

body.dense-ui .chip {
  padding: 0.11rem 0.42rem;
  border-radius: 0.56rem;
  font-size: 0.72rem;
}

body.dense-ui .lane-grid {
  gap: 0.54rem;
}

body.dense-ui .lane-card {
  border-radius: 0.84rem;
  padding: 0.62rem;
  gap: 0.34rem;
}

body.dense-ui .lane-rank {
  font-size: 0.58rem;
  padding: 0.12rem 0.38rem;
}

body.dense-ui .lane-share {
  font-size: 0.6rem;
}

body.dense-ui .lane-title {
  font-size: 0.82rem;
  min-height: 2.1em;
}

body.dense-ui .lane-value {
  font-size: clamp(1.14rem, 1.72vw, 1.46rem);
}

body.dense-ui .lane-progress {
  height: 0.44rem;
}

body.dense-ui .lane-meta-chip {
  font-size: 0.62rem;
  padding: 0.1rem 0.34rem;
}

body.dense-ui .lane-breakdown .portfolio-pill {
  min-height: 1.72rem;
  padding: 0.14rem 0.44rem;
}

body.dense-ui .lane-breakdown .portfolio-pill-label {
  font-size: 0.5rem;
}

body.dense-ui .lane-breakdown .portfolio-pill-value {
  font-size: 0.68rem;
}

body.dense-ui .executive-strip,
body.dense-ui .ops-suite,
body.dense-ui .charts-grid,
body.dense-ui .insight-grid,
body.dense-ui .projection-stats,
body.dense-ui .projection-layout,
body.dense-ui .process-layout,
body.dense-ui .module-focus-grid,
body.dense-ui .command-grid {
  margin-bottom: 0.66rem;
  gap: 0.56rem;
}

body.dense-ui .ops-radar-grid {
  gap: 0.36rem;
}

body.dense-ui .ops-radar-tile {
  border-radius: 0.62rem;
  padding: 0.38rem 0.42rem;
}

body.dense-ui .ops-radar-label {
  font-size: 0.6rem;
}

body.dense-ui .ops-radar-value {
  font-size: 0.9rem;
}

body.dense-ui .ops-radar-meta {
  font-size: 0.66rem;
}

body.dense-ui .ops-alert-list {
  gap: 0.36rem;
}

body.dense-ui .ops-alert {
  border-radius: 0.62rem;
  padding: 0.34rem 0.42rem;
}

body.dense-ui .ops-alert-severity {
  font-size: 0.56rem;
}

body.dense-ui .ops-alert-link {
  font-size: 0.64rem;
}

body.dense-ui .ops-alert-title {
  font-size: 0.8rem;
}

body.dense-ui .ops-alert-detail,
body.dense-ui .ops-alert-automation {
  font-size: 0.67rem;
}

body.dense-ui .ops-action-grid {
  gap: 0.42rem;
}

body.dense-ui .ops-action-tile {
  min-height: 6.15rem;
  border-radius: 0.72rem;
  padding: 0.54rem 0.62rem;
}

body.dense-ui .ops-action-kicker,
body.dense-ui .ops-action-block-title {
  font-size: 0.61rem;
}

body.dense-ui .ops-action-title {
  font-size: 0.82rem;
}

body.dense-ui .ops-action-meta,
body.dense-ui .ops-signal-copy span {
  font-size: 0.64rem;
}

body.dense-ui .ops-signal-copy strong {
  font-size: 0.73rem;
}

body.dense-ui .ops-signal-link {
  font-size: 0.63rem;
}

body.dense-ui .ops-movement-panel,
body.dense-ui .ops-signal-card {
  border-radius: 0.7rem;
  padding: 0.4rem 0.46rem;
}

body.dense-ui .ops-export-list {
  border-radius: 0.62rem;
}

body.dense-ui .ops-export-row {
  padding: 0.3rem 0.38rem;
}

body.dense-ui .ops-export-title {
  font-size: 0.68rem;
}

body.dense-ui .ops-export-meta {
  font-size: 0.61rem;
}

body.dense-ui .ops-export-status {
  font-size: 0.56rem;
}

body.dense-ui .ops-export-link {
  font-size: 0.62rem;
}

body.dense-ui .exec-value {
  font-size: clamp(1rem, 1.34vw, 1.32rem);
}

body.dense-ui .exec-meta {
  font-size: 0.68rem;
}

body.dense-ui .exec-label {
  font-size: 0.62rem;
}

body.dense-ui .table-wrap {
  margin-top: 0.5rem;
  border-radius: 0.66rem;
}

body.dense-ui th,
body.dense-ui td {
  padding: 0.46rem 0.48rem;
  font-size: 0.82rem;
  line-height: 1.22;
}

body.dense-ui th {
  font-size: 0.69rem;
  letter-spacing: 0.48px;
}

body.dense-ui .status-badge {
  font-size: 0.68rem;
  padding: 0.08rem 0.4rem;
}

body.dense-ui .metric-chip {
  min-width: 1.8rem;
  padding: 0.08rem 0.32rem;
  font-size: 0.71rem;
}

body.dense-ui .link-action {
  font-size: 0.8rem;
}

body.dense-ui .payment-form {
  gap: 0.45rem;
}

body.dense-ui .form-grid {
  gap: 0.44rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

body.dense-ui .payment-form label {
  gap: 0.2rem;
  font-size: 0.78rem;
}

body.dense-ui .payment-form .inline-check {
  gap: 0.32rem;
  font-size: 0.74rem;
}

body.dense-ui .payment-form input,
body.dense-ui .payment-form select,
body.dense-ui .payment-form textarea {
  border-radius: 0.5rem;
  font-size: 0.82rem;
  padding: 0.36rem 0.48rem;
}

body.dense-ui .inline-field {
  gap: 0.34rem;
}

body.dense-ui .fact-source-toolbar {
  border-radius: 0.58rem;
  padding: 0.38rem 0.42rem;
}

body.dense-ui .fact-source-ruc-inline {
  font-size: 0.72rem;
  gap: 0.3rem;
}

body.dense-ui .fact-source-ruc-inline input {
  width: 150px;
}

body.dense-ui .fact-source-manual-context {
  margin-top: -0.12rem;
}

body.dense-ui .fact-added-accounts-panel {
  padding: 0.4rem 0.44rem;
}

body.dense-ui .fact-added-accounts-wrap {
  max-height: 140px;
}

body.dense-ui .fact-line-grid {
  gap: 0.38rem;
}

body.dense-ui .fact-source-modal-period strong {
  font-size: 0.8rem;
}

body.dense-ui .fact-source-search-controls {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

body.dense-ui .fact-source-hit {
  border-radius: 0.32rem;
}

body.dense-ui .fact-source-search-hits {
  margin-top: 0.2rem;
}

body.dense-ui .fact-manual-ruc-source-wrap {
  max-height: min(24vh, 220px);
}

body.dense-ui .fact-manual-ruc-basket-wrap {
  max-height: min(21vh, 190px);
}

body.dense-ui .fact-manual-ruc-actions {
  padding-top: 0.34rem;
}

body.dense-ui .timeline {
  gap: 0.5rem;
}

body.dense-ui .payment-history-shell {
  padding: 0.46rem 0.56rem 0.62rem;
}

body.dense-ui .payment-history-summary-main strong {
  font-size: 0.9rem;
}

body.dense-ui .payment-history-item {
  padding: 0.34rem 0.4rem 0.46rem;
}

body.dense-ui .payment-history-item-date {
  font-size: 0.7rem;
}

body.dense-ui .timeline-item {
  border-radius: 0.64rem;
  padding: 0.56rem;
}

body.dense-ui .timeline-item header strong {
  font-size: 0.84rem;
}

body.dense-ui .timeline-item pre {
  padding: 0.34rem;
  font-size: 0.72rem;
}

body.dense-ui .empty-state {
  min-height: 130px;
  padding: 0.72rem;
}

/* Dashboard cinematic fury */
body.cinematic-fury::before {
  content: "";
  position: fixed;
  inset: -30% -20%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background:
    conic-gradient(from 140deg at 70% 15%, rgba(35, 132, 212, 0.34), rgba(16, 199, 172, 0.12), rgba(35, 132, 212, 0.34)),
    radial-gradient(640px 280px at 10% 5%, rgba(46, 165, 228, 0.24), transparent 70%);
  filter: blur(44px);
  animation: cineAurora 14s linear infinite;
}

body.cinematic-fury .reveal {
  animation: none;
}

body.cinematic-fury.cine-armed .cine-scene {
  opacity: 1;
  transform: translateY(16px) scale(0.992);
  filter: blur(2px) saturate(0.95);
  transition:
    opacity 560ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 640ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 340ms ease;
}

body.cinematic-fury.cine-armed .cine-scene.is-live {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

body.cinematic-fury .cine-scene.cine-burst {
  box-shadow:
    0 0 0 1px rgba(130, 204, 255, 0.32),
    0 16px 34px rgba(12, 58, 106, 0.2);
}

body.cinematic-fury .bar-fill,
body.cinematic-fury .hero-progress-fill {
  transition: width 920ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.cinematic-fury .hero {
  box-shadow:
    0 0 0 1px rgba(132, 199, 248, 0.26),
    0 22px 44px rgba(8, 42, 78, 0.2);
}

body.cinematic-fury .kpi-card::after {
  animation: cinePulse 2.9s ease-in-out infinite;
}

body.cinematic-fury .exec-chip::after {
  animation: cinePulse 2.5s ease-in-out infinite;
}

body.cinematic-fury .lane-card:hover,
body.cinematic-fury .chart-card:hover,
body.cinematic-fury .insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(8, 42, 78, 0.18);
}

@keyframes cineAurora {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.04);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes cinePulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.08);
  }
}

.reveal {
  opacity: 1;
  animation: revealUp 450ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .reveal-delay-4 {
    animation: none !important;
  }
}

.reveal-delay-1 {
  animation-delay: 70ms;
}

.reveal-delay-2 {
  animation-delay: 130ms;
}

.reveal-delay-3 {
  animation-delay: 190ms;
}

.reveal-delay-4 {
  animation-delay: 250ms;
}

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

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

  .insight-grid-featured {
    grid-template-columns: 1fr;
  }

  .ops-suite {
    grid-template-columns: 1fr;
  }

  .ops-radar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ops-radar-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-radar-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-radar-controls .button {
    width: 100%;
  }

  .ops-radar-groups {
    grid-template-columns: 1fr;
  }

  .app-modal-dialog {
    width: min(1040px, 97vw);
  }

  .app-modal-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-modal-controls .button {
    width: 100%;
  }

  .fact-source-search-controls {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 180px)) auto;
  }

  .sercop-modal-grid {
    grid-template-columns: 1fr;
  }

  .sercop-journey-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-manual-ruc-source-wrap {
    max-height: min(30vh, 260px);
  }

  .fact-manual-ruc-basket-wrap {
    max-height: min(28vh, 240px);
  }

  .hero-pro-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-pro-topline {
    align-items: flex-start;
  }

  .hero-signal-group {
    justify-content: flex-start;
  }

  .hero-pro-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-ops-tray {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .lane-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-filters .button {
    width: 100%;
  }

  .team-unassigned-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .module-hero-side {
    justify-items: stretch;
  }

  .fact-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process-hero-side {
    justify-items: stretch;
  }

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

  .process-progress-card {
    width: 100%;
  }

  .process-team-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 0.78rem;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topnav {
    width: 100%;
  }

  .topbar-public .topnav,
  .topnav-public {
    width: 100%;
  }

  .topnav-suite {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .topnav-primary-shell,
  .topnav-session,
  .topnav-auth-shell {
    width: 100%;
  }

  .brand-wrap {
    padding: 0.86rem 0.9rem;
  }

  .topnav-auth-shell {
    min-width: 0;
  }

  .brand-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-meta-cluster {
    justify-content: flex-start;
  }

  .topnav-primary {
    justify-content: flex-start;
  }

  .topnav-primary .button {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .topnav-auth .button {
    width: 100%;
  }

  .topnav-session {
    flex-wrap: wrap;
  }

  .top-user-card {
    min-width: 0;
    flex: 1 1 100%;
  }

  .top-user-menu {
    width: 100%;
  }

  .top-user-menu-panel {
    left: 0;
    right: auto;
    width: 100%;
  }

  .module-nav-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-nav-caption {
    max-width: none;
    text-align: left;
  }

  .module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-rail-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-rail {
    width: 100%;
  }

  .workspace-chip {
    flex: 1 1 calc(50% - 0.44rem);
    justify-content: center;
  }

  .module-link {
    min-height: 2.75rem;
  }

  .brand {
    font-size: 1.45rem;
  }

  .security-popup-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-popup-close {
    align-self: flex-end;
  }

  .security-popup-actions {
    flex-direction: column-reverse;
  }

  .security-popup-actions .button {
    width: 100%;
    justify-content: center;
  }

  .security-popup-section-head,
  .security-avatar-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-popup-section-tip {
    text-align: left;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .scope-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .scope-meta {
    justify-content: flex-start;
  }

  .process-hero-main h1 {
    font-size: 1.75rem;
  }

  .process-progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-row {
    flex-direction: column;
  }

  .hero-search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-search-title-block {
    width: 100%;
  }

  .hero-pro-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-signal-group {
    justify-content: flex-start;
  }

  .hero-search-command {
    grid-template-columns: 1fr;
  }

  .hero-search-submit {
    width: 100%;
  }

  .hero-pro-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-density-row {
    gap: 0.3rem;
  }

  .hero-search-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-ops-tray {
    grid-template-columns: 1fr;
  }

  .team-kpi-grid {
    grid-template-columns: 1fr;
  }

  .team-filters {
    grid-template-columns: 1fr;
  }

  .team-unassigned-grid {
    grid-template-columns: 1fr;
  }

  .ops-radar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-action-grid,
  .ops-action-foot {
    grid-template-columns: 1fr;
  }

  .ops-radar-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-radar-controls {
    grid-template-columns: 1fr;
  }

  .ops-radar-table code {
    max-width: 280px;
  }

  .app-modal {
    padding: 0.7rem;
  }

  .app-modal-dialog {
    width: min(980px, 98vw);
    max-height: 88vh;
  }

  .app-modal-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-modal-controls {
    grid-template-columns: 1fr;
  }

  .fact-source-search-controls .pill {
    width: 100%;
    justify-content: center;
  }

  .sercop-modal-kv p {
    grid-template-columns: 1fr;
  }

  .sercop-journey-kpis {
    grid-template-columns: 1fr;
  }

  .fact-manual-ruc-source-wrap {
    max-height: min(30vh, 240px);
  }

  .fact-manual-ruc-basket-wrap {
    max-height: min(24vh, 200px);
  }

  .app-modal-table code {
    max-width: 260px;
  }

  .ops-export-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .kpi-value {
    font-size: 1.55rem;
  }

  .customer-kpi-grid {
    grid-template-columns: 1fr;
  }

  .customer-kpi-card {
    min-height: 0;
    align-content: start;
  }

  .aliases-chip-cloud {
    max-height: 300px;
  }

  .customer-dense-view {
    gap: 0.56rem;
  }

  .customer-dense-view .card {
    padding: 0.68rem 0.72rem;
  }

  .customer-dense-view .dense-table th,
  .customer-dense-view .dense-table td {
    padding: 0.46rem 0.48rem;
    font-size: 0.8rem;
  }

  .exec-value {
    font-size: 1.35rem;
  }

  .insight-metrics {
    grid-template-columns: 1fr;
  }

  .concentration-hero,
  .concentration-balance-head,
  .concentration-gauge-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .concentration-stat-grid,
  .concentration-gauge-grid {
    grid-template-columns: 1fr;
  }

  .concentration-score,
  .concentration-balance-item:last-child {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

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

  .insight-amount {
    font-size: 1.45rem;
  }

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

  .fact-premium-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fact-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-top-grid {
    grid-template-columns: 1fr;
  }

  .process-team-kpis {
    grid-template-columns: 1fr;
  }

  .commercial-linked-process-table {
    table-layout: auto;
  }

  .commercial-linked-process-table thead {
    display: none;
  }

  .commercial-linked-process-table,
  .commercial-linked-process-table tbody,
  .commercial-linked-process-table tr,
  .commercial-linked-process-table td {
    display: block;
    width: 100%;
  }

  .commercial-linked-process-table tbody {
    display: grid;
    gap: 0.72rem;
  }

  .commercial-linked-process-table tr {
    border: 1px solid #c6d8ea;
    border-radius: 0.96rem;
    background:
      radial-gradient(200px 90px at 100% 0%, rgba(36, 132, 205, 0.08), transparent 72%),
      linear-gradient(180deg, #fcfeff, #f2f8ff);
    padding: 0.62rem 0.68rem;
    box-shadow: inset 0 0 0 1px rgba(214, 229, 244, 0.42);
  }

  .commercial-linked-process-table td {
    border: none;
    padding: 0.22rem 0;
    display: grid;
    grid-template-columns: minmax(108px, 124px) minmax(0, 1fr);
    gap: 0.46rem;
    align-items: start;
  }

  .commercial-linked-process-table td::before {
    content: attr(data-label);
    color: #476588;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.28px;
    text-transform: uppercase;
  }

  .commercial-linked-process-table td.commercial-linked-process-cell {
    margin-top: 0.16rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #c7d8ea;
    display: block;
  }

  .commercial-linked-process-table td.commercial-linked-process-cell::before {
    display: block;
    margin-bottom: 0.38rem;
  }

  .commercial-linked-process-cell {
    min-width: 0;
  }

  .commercial-linked-process-collapse {
    min-width: 0;
    width: 100%;
  }

  .commercial-opportunity-cell {
    text-align: left;
  }

  .commercial-opportunity-pill {
    max-width: 100%;
    text-align: left;
    font-size: 0.66rem;
    padding: 0.16rem 0.48rem;
  }
}

@media (max-width: 560px) {
  .hero-pro-metrics {
    grid-template-columns: 1fr;
  }

  .team-nested-table th,
  .team-nested-table td {
    font-size: 0.74rem;
    padding: 0.42rem 0.44rem;
  }

  .ops-radar-grid {
    grid-template-columns: 1fr;
  }

  .ops-radar-kpis {
    grid-template-columns: 1fr;
  }

  .hero-actions-pro .button {
    flex: 1 1 100%;
  }

  .fact-kpi-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== APP LOADER — CRM CNT TELCO PRO ===== */

.app-loader-shell {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Backdrop ---- */
.app-loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 380px at 28% 0%, rgba(14, 100, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 720px 360px at 78% 100%, rgba(0, 214, 190, 0.18), transparent 68%),
    radial-gradient(ellipse 520px 520px at 50% 50%, rgba(0, 38, 88, 0.52), transparent 78%),
    rgba(3, 10, 24, 0.6);
  backdrop-filter: blur(16px) saturate(1.5);
}

/* ---- Top ribbon ---- */
.app-loader-ribbon {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 120ms ease;
}

.app-loader-ribbon-bar {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 195, 255, 0.55) 18%,
    rgba(0, 229, 210, 1) 48%,
    rgba(255, 185, 45, 0.92) 78%,
    transparent);
  box-shadow: 0 0 28px rgba(0, 229, 210, 0.65), 0 0 10px rgba(255, 185, 45, 0.38);
  animation: app-loader-ribbon-slide 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ---- Glass panel ---- */
.app-loader-panel {
  position: relative;
  width: min(92vw, 38rem);
  padding: 2.4rem 2.8rem 2rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(80, 190, 255, 0.28);
  background: linear-gradient(148deg, rgba(6, 26, 52, 0.98) 0%, rgba(9, 40, 78, 0.96) 52%, rgba(5, 18, 38, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 44px 88px rgba(0, 8, 26, 0.58),
    0 0 64px rgba(0, 140, 255, 0.07),
    0 0 110px rgba(0, 229, 210, 0.05),
    inset 0 1px 0 rgba(120, 200, 255, 0.18),
    inset 0 -1px 0 rgba(0, 200, 180, 0.07);
  overflow: hidden;
  isolation: isolate;
}

/* Rotating conic border glow */
.app-loader-panel::before {
  content: "";
  position: absolute;
  inset: -65%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 229, 210, 0.1),
    rgba(14, 175, 255, 0.16),
    rgba(255, 185, 45, 0.1),
    rgba(80, 60, 255, 0.09),
    rgba(0, 229, 210, 0.1)
  );
  animation: app-loader-panel-spin 12s linear infinite;
  z-index: -2;
}

/* Inner glass fill */
.app-loader-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(1.75rem - 1px);
  background:
    radial-gradient(ellipse 65% 38% at 50% 0%, rgba(20, 100, 255, 0.1), transparent),
    radial-gradient(ellipse 65% 38% at 50% 100%, rgba(0, 229, 210, 0.08), transparent),
    linear-gradient(180deg, rgba(7, 28, 56, 0.97), rgba(4, 16, 36, 0.99));
  z-index: -1;
}

/* ---- Logo mark ---- */
.app-loader-mark {
  position: relative;
  width: 10rem;
  height: 5.8rem;
  margin: 0 auto 1.1rem;
}

.app-loader-mark::before {
  content: "";
  position: absolute;
  inset: 1.7rem 1.5rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(0, 229, 210, 0),
    rgba(60, 195, 255, 0.92),
    rgba(255, 185, 45, 0.88),
    rgba(0, 229, 210, 0));
  filter: blur(11px);
  opacity: 0.88;
  animation: app-loader-glow-breathe 1.9s ease-in-out infinite;
}

.app-loader-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 190, 255, 0.1);
  transform: translate(-50%, -50%);
}

.app-loader-loop {
  position: absolute;
  top: 1.05rem;
  width: 4.45rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 2.5px solid rgba(80, 175, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 22px rgba(0, 175, 255, 0.12);
}

.app-loader-loop::before {
  content: "";
  position: absolute;
  inset: 0.2rem;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.app-loader-loop::after {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(60, 195, 255, 0.12), transparent 72%);
  filter: blur(5px);
}

.app-loader-loop-left {
  left: 0.58rem;
  border-left-color: rgba(14, 175, 255, 0.96);
  border-right-color: rgba(255, 185, 45, 0.92);
  border-top-color: rgba(0, 229, 210, 0.96);
  border-bottom-color: rgba(0, 229, 210, 0.42);
  animation: app-loader-loop-left 1.9s cubic-bezier(0.42, 0, 0.3, 1) infinite;
}

.app-loader-loop-right {
  right: 0.58rem;
  border-left-color: rgba(255, 185, 45, 0.92);
  border-right-color: rgba(0, 229, 210, 0.96);
  border-top-color: rgba(14, 175, 255, 0.96);
  border-bottom-color: rgba(255, 185, 45, 0.42);
  animation: app-loader-loop-right 1.9s cubic-bezier(0.42, 0, 0.3, 1) infinite;
}

.app-loader-core,
.app-loader-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.app-loader-core {
  width: 1.12rem;
  height: 1.12rem;
  background: radial-gradient(circle at 33% 28%, #ffffff 0%, #c4f5ff 26%, #3dd5ff 52%, #00e5d2 100%);
  box-shadow:
    0 0 0 0.3rem rgba(0, 229, 210, 0.15),
    0 0 30px rgba(0, 229, 210, 0.7),
    0 0 55px rgba(14, 175, 255, 0.32);
  animation: app-loader-core-pulse 1.9s ease-in-out infinite;
}

.app-loader-glow {
  width: 8.2rem;
  height: 2.5rem;
  background: radial-gradient(ellipse, rgba(0, 229, 210, 0.32) 0%, rgba(0, 229, 210, 0) 70%);
  filter: blur(11px);
  animation: app-loader-glow-breathe 1.9s ease-in-out infinite;
}

/* ---- Copy ---- */
.app-loader-copy {
  display: grid;
  gap: 0.42rem;
  text-align: center;
}

.app-loader-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(80, 196, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.27rem;
  text-transform: uppercase;
}

.app-loader-kicker::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: #00e5d2;
  box-shadow: 0 0 8px #00e5d2, 0 0 18px rgba(0, 229, 210, 0.55);
  animation: app-loader-dot-blink 1.9s ease-in-out infinite;
}

.app-loader-title {
  margin: 0.1rem 0 0;
  color: #eef7ff;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.38rem, 2vw + 0.85rem, 1.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.app-loader-subtitle {
  margin: 0;
  color: rgba(155, 205, 245, 0.68);
  font-size: 0.91rem;
  line-height: 1.58;
  letter-spacing: 0.012em;
}

/* ---- Progress track ---- */
.app-loader-track {
  margin-top: 1.6rem;
  height: 0.36rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(80, 175, 255, 0.1);
  border: 1px solid rgba(80, 175, 255, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.app-loader-track-bar {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(0, 229, 210, 0.12),
    rgba(0, 229, 210, 1) 28%,
    rgba(14, 175, 255, 1) 50%,
    rgba(255, 185, 45, 0.95) 72%,
    rgba(0, 229, 210, 0.12));
  box-shadow: 0 0 18px rgba(0, 229, 210, 0.55), 0 0 34px rgba(14, 175, 255, 0.28);
  animation: app-loader-track-scan 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ---- Visibility states ---- */
body.is-global-loading {
  cursor: progress;
}

body.is-global-loading .app-loader-shell {
  opacity: 1;
  pointer-events: auto;
}

body.is-global-loading .app-loader-ribbon {
  opacity: 1;
}

body.is-global-loading .topbar,
body.is-global-loading .container {
  user-select: none;
}

/* ---- Keyframes ---- */
@keyframes app-loader-panel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes app-loader-ribbon-slide {
  0%   { transform: translateX(-130%); }
  62%  { transform: translateX(172%); }
  100% { transform: translateX(172%); }
}

@keyframes app-loader-track-scan {
  0%   { transform: translateX(-130%); }
  62%  { transform: translateX(192%); }
  100% { transform: translateX(192%); }
}

@keyframes app-loader-loop-left {
  0%,  100% { transform: translateY(0) rotate(-10deg) scale(0.97); }
  50%        { transform: translateY(-0.1rem) rotate(4deg) scale(1.05); }
}

@keyframes app-loader-loop-right {
  0%,  100% { transform: translateY(0) rotate(10deg) scale(0.97); }
  50%        { transform: translateY(-0.1rem) rotate(-4deg) scale(1.05); }
}

@keyframes app-loader-core-pulse {
  0%,  100% {
    transform: translate(-50%, -50%) scale(0.91);
    box-shadow: 0 0 0 0.3rem rgba(0, 229, 210, 0.14), 0 0 22px rgba(0, 229, 210, 0.55), 0 0 44px rgba(14, 175, 255, 0.22);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 0 0.46rem rgba(0, 229, 210, 0.22), 0 0 38px rgba(0, 229, 210, 0.75), 0 0 66px rgba(14, 175, 255, 0.38);
  }
}

@keyframes app-loader-glow-breathe {
  0%,  100% { transform: translate(-50%, -50%) scale(0.89); opacity: 0.42; }
  50%        { transform: translate(-50%, -50%) scale(1.13); opacity: 0.9; }
}

@keyframes app-loader-dot-blink {
  0%,  100% { opacity: 1;   transform: scale(1); }
  50%        { opacity: 0.3; transform: scale(0.65); }
}

@media (max-width: 640px) {
  .app-loader-panel {
    width: min(92vw, 26rem);
    padding: 1.8rem 1.6rem 1.5rem;
  }
  .app-loader-mark {
    width: 8.6rem;
    height: 4.9rem;
  }
  .app-loader-loop {
    width: 3.75rem;
    height: 2.38rem;
  }
  .app-loader-title {
    font-size: 1.28rem;
  }
  .app-loader-subtitle {
    font-size: 0.86rem;
  }
}

.timeline-builder-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #c7d9ea;
  background:
    radial-gradient(180px 110px at 100% 0%, rgba(57, 154, 210, 0.12), transparent 72%),
    linear-gradient(180deg, #ffffff, #f4f9ff 58%, #eef6ff);
}

.timeline-builder-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #1a6cab, #4fb3cf 52%, #94c7e0);
  opacity: 0.92;
}

.timeline-builder-badge {
  border-color: #9ec9e5;
  background: linear-gradient(180deg, #f6fbff, #e7f3ff);
  color: #205985;
}

.timeline-builder-lead {
  max-width: 68ch;
  margin: 0.22rem 0 0;
}

.timeline-builder-summary {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.72rem;
}

.timeline-builder-summary .projection-stat {
  position: relative;
  border: 1px solid #c3d7e8;
  border-radius: 0.92rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 247, 255, 0.94)),
    #fff;
  box-shadow:
    0 12px 26px rgba(12, 47, 81, 0.08),
    inset 0 0 0 1px rgba(223, 234, 244, 0.32);
  padding: 0.9rem 0.94rem;
}

.timeline-builder-summary .projection-stat::after {
  content: "";
  position: absolute;
  inset: auto auto 0.68rem 0.94rem;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a82be, rgba(42, 130, 190, 0.14));
}

.timeline-builder-summary .projection-value {
  font-size: clamp(1.1rem, 1.7vw, 1.56rem);
  letter-spacing: -0.02em;
}

.timeline-builder-form {
  border: 1px solid #c6d8ea;
  border-radius: 1rem;
  background:
    radial-gradient(140px 80px at 96% 0%, rgba(121, 183, 225, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  padding: 0.86rem 0.92rem 0.94rem;
  box-shadow:
    inset 0 0 0 1px rgba(223, 234, 244, 0.34),
    0 10px 24px rgba(10, 44, 79, 0.06);
}

.timeline-builder-grid {
  grid-template-columns: minmax(210px, 1.2fr) minmax(190px, 0.8fr);
}

.timeline-builder-helper {
  border: 1px dashed #b5cee3;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #fafdff, #edf6ff);
  padding: 0.68rem 0.78rem;
}

.timeline-builder-helper strong {
  display: block;
  color: #153d64;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18px;
  margin-bottom: 0.14rem;
}

.timeline-builder-helper .muted,
.timeline-builder-reset .muted {
  margin: 0;
}

.timeline-builder-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
  padding-top: 0.1rem;
}

.timeline-builder-note {
  max-width: 72ch;
}

.timeline-builder-reset {
  border: 1px dashed #d8c4c4;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #fffdfd, #fff4f4);
  padding: 0.74rem 0.82rem;
}

.timeline-builder-reset .button {
  justify-self: flex-start;
}

body.dense-ui .timeline-builder-summary {
  gap: 0.56rem;
}

body.dense-ui .timeline-builder-summary .projection-stat {
  border-radius: 0.8rem;
  padding: 0.7rem 0.74rem;
}

body.dense-ui .timeline-builder-form {
  border-radius: 0.84rem;
  padding: 0.68rem 0.72rem 0.74rem;
}

body.dense-ui .timeline-builder-helper,
body.dense-ui .timeline-builder-reset {
  border-radius: 0.72rem;
  padding: 0.56rem 0.62rem;
}

body.dense-ui .timeline-builder-actions {
  gap: 0.56rem;
}

@media (max-width: 900px) {
  .timeline-builder-summary,
  .timeline-builder-grid {
    grid-template-columns: 1fr;
  }

  .timeline-builder-actions {
    align-items: stretch;
  }

  .timeline-builder-actions .button-group,
  .timeline-builder-actions .button {
    width: 100%;
  }
}

.contract-registry-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.54rem;
  padding: 0.66rem 0.76rem;
  border-radius: 0.84rem;
  background:
    radial-gradient(220px 120px at 96% 0%, rgba(255, 191, 87, 0.18), transparent 74%),
    linear-gradient(135deg, rgba(7, 32, 61, 0.98), rgba(14, 63, 108, 0.96), rgba(24, 109, 140, 0.9));
  color: #eef6ff;
}

.contract-registry-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.86fr) minmax(178px, 0.38fr);
  gap: 0.44rem;
  align-items: start;
}

.contract-registry-main h1 {
  margin: 0.02rem 0 0;
  color: #f8fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.28rem, 1.95vw, 1.76rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.contract-registry-subtitle {
  max-width: 62ch;
  margin: 0.18rem 0 0;
  color: #d4e4f7;
  font-size: 0.81rem;
  line-height: 1.22;
}

.contract-registry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  margin-top: 0.34rem;
}

.contract-registry-side {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0.4rem;
}

.contract-registry-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.contract-registry-side-card {
  width: min(100%, 100%);
  border: 1px solid rgba(187, 212, 236, 0.34);
  border-radius: 0.76rem;
  background: rgba(9, 37, 69, 0.42);
  padding: 0.5rem 0.58rem;
  box-shadow: inset 0 0 0 1px rgba(221, 234, 247, 0.06);
}

.contract-registry-side-card .kpi-label {
  color: #b9d3ec;
  margin-bottom: 0.08rem;
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.contract-registry-side-value {
  margin: 0.1rem 0 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.02;
}

.contract-registry-side-note {
  margin: 0;
  color: #d5e5f7;
  font-size: 0.72rem;
  line-height: 1.38;
}

.contract-registry-copy {
  max-width: 74ch;
  margin-top: 0.18rem;
}

.contract-registry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.92rem;
}

.contract-registry-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #c7d9ea;
  border-radius: 1rem;
  background:
    radial-gradient(150px 80px at 100% 0%, rgba(124, 184, 226, 0.13), transparent 72%),
    linear-gradient(180deg, #ffffff, #f3f9ff);
  padding: 0.92rem 0.96rem;
  box-shadow:
    0 12px 24px rgba(10, 40, 71, 0.06),
    inset 0 0 0 1px rgba(223, 234, 244, 0.26);
}

.contract-registry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #b17819, #e0a947, #78bdd9);
}

.contract-registry-card-kicker {
  margin: 0;
  color: #7f632f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contract-registry-year-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.contract-registry-year-section {
  border: 1px solid #d6e2ee;
  border-radius: 0.96rem;
  background:
    radial-gradient(140px 80px at 100% 0%, rgba(92, 164, 216, 0.08), transparent 72%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 0.88rem 0.92rem 0.96rem;
  box-shadow:
    0 10px 24px rgba(10, 40, 71, 0.04),
    inset 0 0 0 1px rgba(223, 234, 244, 0.22);
}

.contract-registry-year-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.contract-registry-year-head h4 {
  margin: 0;
  color: #173f66;
  font-size: 0.96rem;
}

.contract-registry-year-head p {
  margin: 0.16rem 0 0;
}

.contract-registry-timeline-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  border: 1px solid #c7d9ea;
  border-radius: 0.92rem;
  background:
    radial-gradient(160px 90px at 100% 0%, rgba(94, 181, 222, 0.14), transparent 74%),
    linear-gradient(180deg, #fbfdff, #eef6ff);
  padding: 0.78rem 0.86rem;
}

.contract-registry-timeline-hero--inline {
  grid-column: 1 / -1;
  margin-top: 0.02rem;
  margin-bottom: 0.08rem;
}

.contract-registry-timeline-hero__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f5c92, #1f7daf);
  color: #fff;
  box-shadow: 0 12px 22px rgba(14, 63, 108, 0.18);
}

.contract-registry-timeline-hero__icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.contract-registry-timeline-hero__pulse {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 12px;
  animation: contractRegistryTimelinePulse 1.8s ease-in-out infinite;
}

.contract-registry-timeline-hero__copy strong {
  display: block;
  color: #123c63;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.contract-registry-timeline-hero__copy p {
  margin: 0.2rem 0 0;
  color: #5c7690;
  font-size: 0.78rem;
  line-height: 1.45;
}

@keyframes contractRegistryTimelinePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.95;
  }
}

.contract-registry-card h4 {
  margin: 0.34rem 0 0;
  color: #12385f;
  font-size: 1rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.1px;
}

.contract-registry-card .muted {
  margin: 0.38rem 0 0;
}

.contract-registry-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.contract-registry-view-shell {
  border-color: #c8dae9;
  background:
    radial-gradient(180px 88px at 100% 0%, rgba(87, 171, 218, 0.08), transparent 72%),
    linear-gradient(180deg, #fbfdff, #f4f9ff);
}

.contract-registry-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.contract-registry-view-tab {
  position: relative;
  display: grid;
  gap: 0.22rem;
  border: 1px solid #c8dae9;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  color: #173e65;
  padding: 0.9rem 1rem 0.96rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(9, 38, 67, 0.05);
  transition: transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.contract-registry-view-tab:hover {
  transform: translateY(-1px);
  border-color: #8ab2d4;
  box-shadow: 0 16px 28px rgba(9, 38, 67, 0.09);
}

.contract-registry-view-tab.is-active {
  border-color: #4c86b8;
  background:
    radial-gradient(120px 70px at 100% 0%, rgba(91, 179, 214, 0.18), transparent 72%),
    linear-gradient(180deg, #f7fbff, #eaf4ff);
  box-shadow:
    0 18px 34px rgba(9, 52, 92, 0.12),
    inset 0 0 0 1px rgba(76, 134, 184, 0.08);
}

.contract-registry-view-tab.is-active::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 1rem 1rem 0 0;
  background: linear-gradient(90deg, #1d6fae, #47b7cb);
}

.contract-registry-view-kicker {
  color: #6786a4;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.contract-registry-view-tab strong {
  color: #123b61;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
}

.contract-registry-view-tab p {
  margin: 0;
  color: #597897;
  font-size: 0.78rem;
  line-height: 1.45;
}

.contract-registry-view-count {
  justify-self: start;
  margin-top: 0.22rem;
}

.contract-registry-summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #c8dae9;
  border-radius: 1rem;
  padding: 0.96rem 1rem;
  background:
    radial-gradient(150px 90px at 100% 0%, rgba(132, 190, 229, 0.14), transparent 72%),
    linear-gradient(180deg, #ffffff, #f3f9ff);
  box-shadow:
    0 14px 28px rgba(9, 38, 67, 0.06),
    inset 0 0 0 1px rgba(225, 236, 245, 0.22);
}

.contract-registry-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}

.contract-registry-summary-card-a::before {
  background: linear-gradient(90deg, #1d6fae, #4fb5ce);
}

.contract-registry-summary-card-b::before {
  background: linear-gradient(90deg, #0c766f, #55c8b1);
}

.contract-registry-summary-card-c::before {
  background: linear-gradient(90deg, #aa7425, #e0b35c);
}

.contract-registry-summary-value {
  margin: 0.22rem 0 0;
  color: #143a60;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.16rem, 1.8vw, 1.58rem);
  font-weight: 700;
  line-height: 1.08;
}

.contract-registry-form-shell {
  position: relative;
  overflow: hidden;
  border-color: #c5d8ea;
  background:
    radial-gradient(170px 90px at 100% 0%, rgba(72, 171, 221, 0.08), transparent 72%),
    linear-gradient(180deg, #ffffff, #f7fbff);
}

.contract-registry-form {
  gap: 0.72rem;
}

.contract-registry-form-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin: -0.04rem 0 0.08rem;
}

.contract-registry-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border-radius: 999px;
  border: 1px solid #c9d9e8;
  background: #f4f8fd;
  color: #40637f;
  padding: 0.12rem 0.48rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.contract-registry-meta-chip.tone-required {
  border-color: #d9c07e;
  background: #fff7df;
  color: #8b6521;
}

.contract-registry-meta-chip.tone-validated {
  border-color: #9fceb7;
  background: #eefaf3;
  color: #216549;
}

.contract-registry-meta-chip.tone-autofill {
  border-color: #a9cbe2;
  background: #eef7ff;
  color: #245d88;
}

.contract-registry-meta-chip.tone-manual {
  border-color: #ccd9e5;
  background: #f5f8fb;
  color: #5b7288;
}

.contract-registry-meta-chip.tone-automatic {
  border-color: #afc7de;
  background: #f0f7ff;
  color: #2a608c;
}

.contract-registry-form-section {
  border: 1px solid #ceddec;
  border-radius: 0.92rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.96)),
    #fff;
  padding: 0.76rem 0.82rem 0.82rem;
  box-shadow: inset 0 0 0 1px rgba(229, 238, 246, 0.26);
}

.contract-registry-form-section-priority {
  border-color: #bad4e8;
  background:
    radial-gradient(260px 118px at 100% 0%, rgba(109, 177, 223, 0.1), transparent 74%),
    linear-gradient(180deg, rgba(249, 252, 255, 0.99), rgba(239, 247, 255, 0.97));
}

.contract-registry-section-copy {
  margin: 0.18rem 0 0;
  max-width: 72ch;
}

.contract-registry-priority-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.9rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid #ccdeee;
  border-radius: 0.88rem;
  background:
    radial-gradient(250px 104px at 100% 0%, rgba(106, 175, 223, 0.12), transparent 74%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(234, 241, 247, 0.28);
}

.contract-registry-priority-copy {
  display: grid;
  gap: 0;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.contract-registry-priority-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.34rem;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 201, 223, 0.92);
  background: rgba(255, 255, 255, 0.84);
  color: #33648b;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contract-registry-priority-head h4 {
  margin: 0;
  color: #163c60;
  font-size: 1.04rem;
  line-height: 1.14;
  text-wrap: balance;
}

.contract-registry-priority-text {
  margin-top: 0.44rem;
  max-width: none;
  width: 100%;
  color: #4b6781;
  font-size: 0.86rem;
  line-height: 1.58;
}

.contract-registry-priority-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.05rem;
  padding: 0.42rem 0.74rem;
  border-radius: 999px;
  border: 1px solid rgba(154, 192, 222, 0.82);
  background: linear-gradient(180deg, #f7fbff, #eaf3fb);
  color: #28577f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 880px) {
  .contract-registry-priority-head {
    grid-template-columns: 1fr;
    padding: 0.76rem 0.78rem;
  }

  .contract-registry-priority-badge {
    width: 100%;
    justify-content: center;
  }
}

.contract-registry-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.contract-registry-process-layout {
  display: grid;
  gap: 0.82rem;
}

.contract-registry-process-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 0.7rem;
}

.contract-registry-process-panel {
  display: grid;
  gap: 0.58rem;
  border: 1px solid #d8e3ee;
  border-radius: 0.88rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  padding: 0.72rem 0.78rem 0.76rem;
  box-shadow: none;
}

.contract-registry-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.56rem;
}

.contract-registry-panel-head strong {
  color: #143b61;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.contract-registry-panel-head p {
  margin: 0.16rem 0 0;
  max-width: 80ch;
}

.contract-registry-field-span-2 {
  grid-column: span 2;
}

.contract-registry-field-span-full {
  grid-column: 1 / -1;
}

.contract-registry-business-line-picker {
  display: grid;
  gap: 0.44rem;
}

.contract-registry-picker-label {
  color: #2f516f;
  font-size: 0.88rem;
  font-weight: 700;
}

.contract-registry-business-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.48rem;
}

.contract-registry-business-line-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #cfdbe7;
  border-radius: 0.74rem;
  background:
    radial-gradient(120px 70px at 100% 0%, rgba(121, 182, 224, 0.08), transparent 74%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  color: #173f65;
  cursor: pointer;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.contract-registry-business-line-option:hover {
  transform: translateY(-1px);
  border-color: #94bbdc;
  box-shadow: 0 10px 18px rgba(10, 45, 79, 0.08);
}

.contract-registry-business-line-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.contract-registry-business-line-option span {
  display: block;
  width: 100%;
  padding: 0.62rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contract-registry-business-line-option input:checked + span {
  color: #0f4c35;
  background:
    radial-gradient(120px 72px at 100% 0%, rgba(103, 194, 150, 0.18), transparent 74%),
    linear-gradient(180deg, #f2fbf6, #e5f6eb);
}

.contract-registry-business-line-option:has(input:checked) {
  border-color: #7ec49e;
  box-shadow:
    inset 0 0 0 1px rgba(126, 196, 158, 0.18),
    0 10px 18px rgba(36, 118, 83, 0.08);
}

.contract-registry-business-line-hint {
  margin: 0;
}

.contract-registry-sercop-block {
  display: grid;
  gap: 0.58rem;
}

.contract-registry-sercop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.contract-registry-sercop-head .contract-registry-panel-head {
  flex: 1 1 420px;
}

.contract-registry-sercop-head-pill {
  border-color: #c4d8ea;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  color: #28577f;
}

.contract-registry-sercop-shell {
  display: grid;
  gap: 0.54rem;
  border: 1px solid #cfdeec;
  border-radius: 0.86rem;
  background:
    radial-gradient(220px 92px at 100% 0%, rgba(110, 178, 223, 0.05), transparent 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.97));
  padding: 0.68rem 0.76rem 0.72rem;
  box-shadow: inset 0 0 0 1px rgba(230, 239, 246, 0.24);
}

.contract-registry-sercop-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.56rem;
  align-items: stretch;
}

.contract-registry-sercop-input-row .button {
  white-space: nowrap;
  min-height: 38px;
}

.contract-registry-sercop-hint {
  margin: -0.06rem 0 0;
  max-width: 82ch;
}

.contract-registry-clause-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.contract-registry-sercop-status {
  border: 1px solid #c9d9e8;
  border-radius: 0.82rem;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(109, 177, 223, 0.06), transparent 76%),
    linear-gradient(180deg, #fbfdff, #f7fbff);
  padding: 0.56rem 0.64rem;
  box-shadow: inset 0 0 0 1px rgba(227, 236, 244, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.64rem;
  flex-wrap: wrap;
}

.contract-registry-sercop-status.is-success {
  border-color: #9ed5c1;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(92, 194, 149, 0.12), transparent 76%),
    linear-gradient(180deg, #f4fcf7, #edf9f1);
}

.contract-registry-sercop-status.is-info {
  border-color: #b7d2e8;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(104, 170, 219, 0.12), transparent 76%),
    linear-gradient(180deg, #f8fbff, #eef5ff);
}

.contract-registry-sercop-status.is-warning {
  border-color: #e1c58d;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(228, 176, 82, 0.12), transparent 76%),
    linear-gradient(180deg, #fffaf0, #fff2de);
}

.contract-registry-sercop-status-copy {
  min-width: 0;
  flex: 1 1 420px;
}

.contract-registry-sercop-status-copy strong {
  display: block;
  color: #153d63;
  font-size: 0.88rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

.contract-registry-sercop-status-copy p {
  margin: 0.18rem 0 0;
  color: #53718e;
  font-size: 0.77rem;
  line-height: 1.38;
}

.contract-registry-sercop-pill {
  white-space: nowrap;
  border-color: #9fc4de;
  background: rgba(255, 255, 255, 0.72);
  color: #215781;
}

.contract-registry-sercop-status-side {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 1 300px;
}

.contract-registry-sercop-chip-row {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contract-registry-sercop-chip-row .contract-registry-sercop-pill {
  font-size: 0.72rem;
}

.contract-registry-stack {
  display: grid;
  gap: 0.24rem;
  color: #2f516f;
  font-size: 0.82rem;
  font-weight: 700;
}

.contract-registry-stack textarea {
  min-height: 96px;
  resize: vertical;
}

.contract-registry-process-detail {
  margin-top: 0.82rem;
}

.contract-registry-management-layout {
  display: grid;
  gap: 0.66rem;
}

.contract-registry-management-grid {
  align-items: start;
}

.contract-registry-contract-number-panel {
  display: grid;
  gap: 0.44rem;
  border: none;
  background: transparent;
  padding: 0;
}

.contract-registry-contract-number-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 0.72rem;
  align-items: end;
}

.contract-registry-contract-number-panel .contract-registry-panel-head {
  margin: 0;
}

.contract-registry-contract-number-panel .contract-registry-panel-head p {
  max-width: 44ch;
}

.contract-registry-number-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
  margin-top: 0.42rem;
}

.contract-registry-contract-number-field {
  display: grid;
  gap: 0.24rem;
  color: #2f516f;
  font-size: 0.78rem;
  font-weight: 700;
}

.contract-registry-contract-number-caption {
  color: #2f516f;
  font-size: 0.8rem;
  font-weight: 700;
}

.contract-registry-contract-number-panel input[readonly] {
  border-color: #93b8d7;
  background:
    linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(233, 242, 252, 0.96)),
    #fff;
  color: #14385a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.contract-registry-contract-number-year {
  border-color: #bfd2e5;
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  color: #204f79;
}

.contract-registry-number-status {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.56rem;
  flex-wrap: wrap;
  border: 1px solid #c7d9ea;
  border-radius: 0.78rem;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(109, 177, 223, 0.05), transparent 76%),
    linear-gradient(180deg, #fbfdff, #f7fbff);
  padding: 0.56rem 0.64rem;
  box-shadow: none;
}

.contract-registry-number-status.is-success {
  border-color: #9ed5c1;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(92, 194, 149, 0.1), transparent 76%),
    linear-gradient(180deg, #f4fcf7, #edf9f1);
}

.contract-registry-number-status.is-info {
  border-color: #b7d2e8;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(104, 170, 219, 0.1), transparent 76%),
    linear-gradient(180deg, #f8fbff, #eef5ff);
}

.contract-registry-number-status.is-warning {
  border-color: #e1c58d;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(228, 176, 82, 0.1), transparent 76%),
    linear-gradient(180deg, #fffaf0, #fff2de);
}

.contract-registry-number-status-copy {
  min-width: 0;
  flex: 1 1 360px;
}

.contract-registry-number-status-copy strong {
  display: block;
  color: #153d63;
  font-size: 0.9rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.01em;
}

.contract-registry-number-status-copy p {
  margin: 0.18rem 0 0;
  color: #53718e;
  font-size: 0.77rem;
  line-height: 1.4;
}

.contract-registry-number-status-side {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.contract-registry-number-pill {
  white-space: nowrap;
  border-color: #9fc4de;
  background: rgba(255, 255, 255, 0.72);
  color: #215781;
}

.contract-registry-confirm-modal {
  width: min(980px, 96vw);
}

.contract-registry-confirm-legal {
  border: 1px solid #e1c58d;
  border-radius: 0.82rem;
  background:
    radial-gradient(180px 76px at 100% 0%, rgba(228, 176, 82, 0.12), transparent 76%),
    linear-gradient(180deg, #fffaf0, #fff2de);
  padding: 0.76rem 0.82rem;
}

.contract-registry-confirm-legal strong {
  display: block;
  color: #6a4810;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.9rem;
}

.contract-registry-confirm-legal p {
  margin: 0.28rem 0 0;
  color: #765f35;
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 86ch;
}

.contract-registry-confirm-grid {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contract-registry-confirm-card {
  display: grid;
  gap: 0.34rem;
  border: 1px solid #d0deea;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #fbfdff, #f4f9ff);
  padding: 0.72rem 0.76rem;
}

.contract-registry-confirm-card span {
  color: #2f5376;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contract-registry-confirm-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.48rem;
  align-items: stretch;
}

.contract-registry-confirm-copy-row input[readonly] {
  border-color: #93b8d7;
  background:
    linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(233, 242, 252, 0.96)),
    #fff;
  color: #14385a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contract-registry-confirm-note {
  margin: -0.1rem 0 0;
}

.contract-registry-confirm-note.is-warning {
  color: #8a6417;
  font-weight: 700;
}

.contract-registry-confirm-copy-feedback {
  margin: -0.16rem 0 0;
  color: #235d89;
  font-size: 0.79rem;
  font-weight: 700;
}

.contract-registry-form input[data-sercop-autofill="1"],
.contract-registry-form textarea[data-sercop-autofill="1"],
.contract-registry-form select[data-sercop-autofill="1"] {
  border-color: #5fbe8d;
  background:
    linear-gradient(180deg, rgba(243, 253, 247, 0.98), rgba(233, 248, 238, 0.96)),
    #fff;
  box-shadow:
    0 0 0 1px rgba(95, 190, 141, 0.12),
    0 0 0 4px rgba(95, 190, 141, 0.16);
}

.contract-registry-form input[data-sercop-autofill="1"]:focus,
.contract-registry-form textarea[data-sercop-autofill="1"]:focus,
.contract-registry-form select[data-sercop-autofill="1"]:focus {
  border-color: #48a978;
  box-shadow:
    0 0 0 1px rgba(72, 169, 120, 0.18),
    0 0 0 4px rgba(72, 169, 120, 0.2);
}

.contract-registry-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
  padding-top: 0.12rem;
}

.contract-registry-customer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.72rem;
}

.contract-registry-customer-status {
  margin-top: 0.68rem;
  border: 1px dashed #c8d9ea;
  border-radius: 0.92rem;
  background: linear-gradient(180deg, #fbfdff, #f3f9ff);
  padding: 0.76rem 0.84rem;
}

.contract-registry-customer-status.is-success {
  border-style: solid;
  border-color: #9dd7c4;
  background: linear-gradient(180deg, #effbf4, #e4f8ec);
}

.contract-registry-customer-status.is-warning {
  border-style: solid;
  border-color: #e1c58d;
  background: linear-gradient(180deg, #fffaf0, #fff2dc);
}

.contract-registry-customer-status.is-info {
  border-style: solid;
  border-color: #b8d3e9;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

#contract-registry-ruc[data-customer-resolved="1"] {
  border-color: #5fbe8d;
  background:
    linear-gradient(180deg, rgba(243, 253, 247, 0.98), rgba(233, 248, 238, 0.96)),
    #fff;
  box-shadow:
    0 0 0 1px rgba(95, 190, 141, 0.12),
    0 0 0 4px rgba(95, 190, 141, 0.16);
}

#contract-registry-ruc[data-customer-resolved="1"]:focus {
  border-color: #48a978;
  box-shadow:
    0 0 0 1px rgba(72, 169, 120, 0.18),
    0 0 0 4px rgba(72, 169, 120, 0.2);
}

.contract-registry-customer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.contract-registry-customer-card strong {
  display: block;
  color: #173f65;
  font-size: 0.92rem;
}

.contract-registry-customer-card p {
  margin: 0.16rem 0 0;
  color: #52718f;
  font-size: 0.83rem;
}

.contract-registry-customer-pill {
  white-space: nowrap;
}

.contract-registry-customer-matches {
  display: grid;
  gap: 0.52rem;
  margin-top: 0.7rem;
}

.contract-registry-customer-match {
  display: grid;
  gap: 0.14rem;
  width: 100%;
  text-align: left;
  border: 1px solid #bdd5ea;
  border-radius: 0.84rem;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
  padding: 0.7rem 0.78rem;
  color: #183f65;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.contract-registry-customer-match:hover {
  transform: translateY(-1px);
  border-color: #8fb7db;
  box-shadow: 0 10px 18px rgba(10, 45, 79, 0.08);
}

.contract-registry-customer-match strong {
  font-size: 0.88rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.contract-registry-customer-match span {
  color: #577592;
  font-size: 0.77rem;
}

.contract-registry-table {
  min-width: 980px;
}

.contract-registry-table tbody tr td:first-child {
  font-weight: 700;
}

.contract-registry-visual-shell {
  border-color: #cadceb;
  background:
    radial-gradient(170px 90px at 100% 0%, rgba(73, 165, 216, 0.08), transparent 72%),
    linear-gradient(180deg, #fbfdff, #f5faff);
}

.contract-registry-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.78rem;
}

.contract-registry-visual-card {
  border: 1px solid #d3e0ec;
  border-radius: 0.92rem;
  background: linear-gradient(180deg, #ffffff, #f6faff);
  padding: 0.86rem 0.92rem;
}

.contract-registry-mix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin-top: 0.48rem;
}

.contract-registry-latest-list {
  display: grid;
  gap: 0.46rem;
  margin-top: 0.42rem;
}

.contract-registry-latest-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
  border: 1px solid #d7e4ef;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #ffffff, #f5faff);
  padding: 0.62rem 0.72rem;
}

.contract-registry-latest-item strong {
  color: #163e64;
  font-size: 0.88rem;
}

.contract-registry-latest-item p {
  margin: 0.18rem 0 0;
}

.contract-registry-latest-side {
  display: grid;
  gap: 0.22rem;
  justify-items: end;
}

.contract-registry-consult-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr) auto;
  gap: 0.62rem;
  align-items: end;
}

.contract-registry-consult-grid--analyst {
  grid-template-columns: minmax(280px, 1.35fr) repeat(4, minmax(164px, 0.82fr)) auto;
}

.contract-registry-consult-actions {
  display: flex;
  gap: 0.48rem;
  align-items: center;
  justify-content: flex-end;
}

.contract-registry-empty-state {
  border: 1px dashed #c5d9ea;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fbfdff, #f1f8ff);
  padding: 1.1rem 1rem;
  margin-top: 0.82rem;
}

.contract-registry-empty-state h4 {
  margin: 0 0 0.28rem;
  color: #163d63;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

body.dense-ui .contract-registry-hero-grid {
  grid-template-columns: minmax(0, 1.92fr) minmax(164px, 0.34fr);
  gap: 0.38rem;
}

body.dense-ui .contract-registry-side-card,
body.dense-ui .contract-registry-card {
  border-radius: 0.82rem;
  padding: 0.58rem 0.64rem;
}

body.dense-ui .contract-registry-hero {
  margin-bottom: 0.46rem;
  padding: 0.56rem 0.66rem;
}

body.dense-ui .contract-registry-main h1 {
  font-size: 1.42rem;
}

body.dense-ui .contract-registry-subtitle {
  margin-top: 0.16rem;
  font-size: 0.73rem;
}

body.dense-ui .contract-registry-tags {
  gap: 0.18rem;
  margin-top: 0.28rem;
}

body.dense-ui .contract-registry-side {
  align-items: stretch;
  gap: 0.32rem;
}

body.dense-ui .contract-registry-side-grid {
  gap: 0.32rem;
}

body.dense-ui .contract-registry-side-value {
  font-size: 0.9rem;
}

body.dense-ui .contract-registry-side-note {
  font-size: 0.68rem;
}

body.dense-ui .contract-registry-summary-grid,
body.dense-ui .contract-registry-grid {
  gap: 0.58rem;
}

body.dense-ui .contract-registry-view-tabs {
  gap: 0.58rem;
}

body.dense-ui .contract-registry-view-tab {
  border-radius: 0.84rem;
  padding: 0.76rem 0.82rem 0.8rem;
}

body.dense-ui .contract-registry-view-tab strong {
  font-size: 0.92rem;
}

body.dense-ui .contract-registry-view-tab p {
  font-size: 0.74rem;
}

body.dense-ui .contract-registry-summary-card,
body.dense-ui .contract-registry-form-section {
  border-radius: 0.82rem;
  padding: 0.72rem 0.76rem 0.78rem;
}

body.dense-ui .contract-registry-priority-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.68rem;
  padding: 0.7rem 0.74rem;
  border-radius: 0.8rem;
}

body.dense-ui .contract-registry-priority-kicker {
  margin-bottom: 0.28rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.63rem;
}

body.dense-ui .contract-registry-priority-head h4 {
  font-size: 0.96rem;
}

body.dense-ui .contract-registry-priority-text {
  margin-top: 0.36rem;
  font-size: 0.77rem;
  line-height: 1.5;
}

body.dense-ui .contract-registry-priority-badge {
  min-height: 1.86rem;
  padding: 0.34rem 0.64rem;
  font-size: 0.67rem;
}

body.dense-ui .contract-registry-process-layout {
  gap: 0.66rem;
}

body.dense-ui .contract-registry-management-layout {
  gap: 0.66rem;
}

body.dense-ui .contract-registry-process-panel {
  border-radius: 0.82rem;
  padding: 0.72rem 0.76rem 0.78rem;
}

body.dense-ui .contract-registry-panel-head strong {
  font-size: 0.88rem;
}

body.dense-ui .contract-registry-panel-head p {
  font-size: 0.74rem;
}

body.dense-ui .contract-registry-form {
  gap: 0.66rem;
}

body.dense-ui .contract-registry-customer-toolbar {
  gap: 0.48rem;
}

body.dense-ui .contract-registry-customer-status {
  border-radius: 0.78rem;
  padding: 0.62rem 0.68rem;
}

body.dense-ui .contract-registry-customer-card strong {
  font-size: 0.84rem;
}

body.dense-ui .contract-registry-customer-card p,
body.dense-ui .contract-registry-customer-match span {
  font-size: 0.73rem;
}

body.dense-ui .contract-registry-customer-match {
  border-radius: 0.72rem;
  padding: 0.58rem 0.64rem;
}

body.dense-ui .contract-registry-sercop-status {
  border-radius: 0.82rem;
  padding: 0.62rem 0.68rem;
}

body.dense-ui .contract-registry-sercop-shell {
  border-radius: 0.84rem;
  padding: 0.72rem 0.76rem 0.78rem;
}

body.dense-ui .contract-registry-business-line-grid {
  gap: 0.38rem;
}

body.dense-ui .contract-registry-business-line-option {
  border-radius: 0.8rem;
  min-height: 44px;
}

body.dense-ui .contract-registry-business-line-option span {
  padding: 0.68rem 0.76rem;
  font-size: 0.76rem;
}

body.dense-ui .contract-registry-sercop-status-copy strong {
  font-size: 0.86rem;
}

body.dense-ui .contract-registry-sercop-status-copy p {
  font-size: 0.74rem;
}

body.dense-ui .contract-registry-number-status {
  border-radius: 0.82rem;
  padding: 0.62rem 0.68rem;
}

body.dense-ui .contract-registry-number-status-copy strong {
  font-size: 0.86rem;
}

body.dense-ui .contract-registry-number-status-copy p {
  font-size: 0.74rem;
}

body.dense-ui .contract-registry-contract-number-panel input[readonly] {
  font-size: 0.94rem;
}

body.dense-ui .contract-registry-form-grid {
  gap: 0.52rem;
}

body.dense-ui .contract-registry-process-grid,
body.dense-ui .contract-registry-clause-grid {
  gap: 0.52rem;
}

body.dense-ui .contract-registry-form-actions {
  gap: 0.56rem;
}

body.dense-ui .contract-registry-visual-grid,
body.dense-ui .contract-registry-dashboard-grid {
  gap: 0.58rem;
}

body.dense-ui .contract-registry-visual-card,
body.dense-ui .contract-registry-latest-item {
  border-radius: 0.82rem;
}

body.dense-ui .contract-registry-year-section {
  border-radius: 0.82rem;
  padding: 0.72rem 0.76rem 0.8rem;
}

body.dense-ui .contract-registry-timeline-hero {
  gap: 0.66rem;
  border-radius: 0.8rem;
  padding: 0.66rem 0.72rem;
}

body.dense-ui .contract-registry-timeline-hero__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

body.dense-ui .contract-registry-consult-grid {
  gap: 0.52rem;
}

@media (max-width: 920px) {
  .contract-registry-view-tabs,
  .contract-registry-hero-grid,
  .contract-registry-summary-grid,
  .contract-registry-grid,
  .contract-registry-visual-grid {
    grid-template-columns: 1fr;
  }

  .contract-registry-side-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contract-registry-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-registry-process-grid {
    grid-template-columns: 1fr;
  }

  .contract-registry-contract-number-top {
    grid-template-columns: 1fr;
  }

  .contract-registry-field-span-2 {
    grid-column: span 2;
  }

  .contract-registry-sercop-input-row {
    grid-template-columns: 1fr;
  }

  .contract-registry-business-line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-registry-consult-grid {
    grid-template-columns: 1fr;
  }

  .contract-registry-consult-actions {
    justify-content: flex-start;
  }

  .contract-registry-year-head,
  .contract-registry-timeline-hero {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 760px) {
  .contract-registry-business-line-grid {
    grid-template-columns: 1fr;
  }

  .contract-registry-clause-grid {
    grid-template-columns: 1fr;
  }

  .contract-registry-sercop-head,
  .contract-registry-sercop-status,
  .contract-registry-number-status {
    align-items: flex-start;
  }

  .contract-registry-sercop-status-side,
  .contract-registry-number-status-side {
    justify-content: flex-start;
  }

  .contract-registry-latest-item {
    flex-direction: column;
  }

  .contract-registry-latest-side {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .contract-registry-form-grid,
  .contract-registry-process-grid,
  .contract-registry-clause-grid {
    grid-template-columns: 1fr;
  }

  .contract-registry-field-span-2 {
    grid-column: auto;
  }

  .contract-registry-form-actions {
    align-items: stretch;
  }

  .contract-registry-form-actions .button {
    width: 100%;
  }
}

/* Contract registry dense layout refresh */
.contract-registry-form-shell {
  border-color: #c9d8e6;
  background:
    radial-gradient(150px 82px at 100% 0%, rgba(72, 171, 221, 0.05), transparent 72%),
    linear-gradient(180deg, #fbfdff, #f5faff);
}

.contract-registry-form {
  gap: 0.68rem;
}

.contract-registry-form-legend {
  justify-content: flex-end;
  gap: 0.3rem;
  margin: 0;
}

.contract-registry-meta-chip {
  padding: 0.11rem 0.42rem;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
}

.contract-registry-form-section {
  border-color: #d4e0eb;
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.68rem 0.74rem 0.72rem;
  box-shadow: none;
}

.contract-registry-form-grid {
  gap: 0.54rem;
}

.contract-registry-process-layout,
.contract-registry-management-layout {
  gap: 0.62rem;
}

.contract-registry-process-grid,
.contract-registry-clause-grid {
  gap: 0.54rem;
}

.contract-registry-boolean-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  border: 1px solid #d7e2ec;
  border-radius: 0.78rem;
  background:
    radial-gradient(170px 76px at 100% 0%, rgba(110, 170, 214, 0.08), transparent 76%),
    linear-gradient(180deg, #fbfdff, #f7fbff);
  padding: 0.62rem 0.72rem;
  cursor: pointer;
}

.contract-registry-boolean-toggle[data-checked="1"] {
  border-color: #9ed5c1;
  background:
    radial-gradient(170px 76px at 100% 0%, rgba(92, 194, 149, 0.12), transparent 76%),
    linear-gradient(180deg, #f4fcf7, #edf9f1);
}

.contract-registry-boolean-copy {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.contract-registry-boolean-copy strong {
  color: #244b6a;
  font-size: 0.82rem;
  line-height: 1.2;
}

.contract-registry-boolean-copy span {
  color: #5a758f;
  font-size: 0.72rem;
  line-height: 1.35;
}

.contract-registry-boolean-action {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  justify-self: end;
}

.contract-registry-boolean-action input[type="checkbox"] {
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  min-height: auto;
  accent-color: #1d75bc;
}

.contract-registry-boolean-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0.16rem 0.52rem;
  border: 1px solid #c7d6e4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #516f8b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contract-registry-boolean-state.is-yes {
  border-color: #91cdb1;
  color: #24714c;
  background: rgba(239, 251, 244, 0.9);
}

.contract-registry-boolean-state.is-no {
  border-color: #d6c8a5;
  color: #8a6d2c;
  background: rgba(255, 248, 233, 0.92);
}

.contract-registry-form label {
  gap: 0.22rem;
  font-size: 0.8rem;
}

.contract-registry-field {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(3rem, auto) auto;
  grid-auto-rows: min-content;
  align-content: start;
  gap: 0.16rem;
  height: 100%;
}

.contract-registry-field-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0.14rem;
  min-height: 0;
  min-width: 0;
  color: #284c68;
  line-height: 1.15;
}

.contract-registry-field-head > span:first-child {
  display: block;
  min-width: 0;
}

.contract-registry-analyst-meta {
  display: grid;
  gap: 0.14rem;
  align-content: start;
}

.contract-registry-analyst-global-trigger[hidden] {
  display: none !important;
}

.contract-registry-analyst-global-trigger {
  justify-self: start;
  padding: 0.26rem 0.56rem;
  min-height: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  border-color: #9ec4e4;
  background: linear-gradient(180deg, #f7fbff, #edf5fc);
  color: #215987;
}

.contract-registry-money-input,
.cr-edit-money-input {
  position: relative;
  display: block;
  width: 100%;
}

.contract-registry-money-input::before,
.cr-edit-money-input::before {
  content: "$";
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2a628e;
  font-size: 0.88rem;
  font-weight: 800;
  pointer-events: none;
  z-index: 1;
}

.contract-registry-money-input > input,
.cr-edit-money-input > input {
  width: 100%;
  padding-left: 1.52rem !important;
}

.contract-registry-field-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  justify-content: flex-start;
  max-width: 100%;
}

.contract-registry-dynamic-chip {
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.contract-registry-form input,
.contract-registry-form select,
.contract-registry-form textarea {
  border-radius: 0.58rem;
  background: #fff;
  font-size: 0.86rem;
  padding: 0.42rem 0.56rem;
  min-height: 38px;
}

.contract-registry-form input[data-locked-field="1"],
.contract-registry-form input[readonly][data-locked-field="1"] {
  border-color: #b7ccdf;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(235, 242, 251, 0.96)),
    #fff;
  color: #1d4467;
  font-weight: 700;
  cursor: default;
}

.contract-registry-form textarea {
  min-height: 84px;
}

.contract-registry-form input:focus,
.contract-registry-form select:focus,
.contract-registry-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(29, 117, 188, 0.13);
}

.contract-registry-process-panel {
  gap: 0.48rem;
  border-color: #d9e4ee;
  border-radius: 0.74rem;
  background: #fbfdff;
  padding: 0.58rem 0.64rem 0.62rem;
}

.contract-registry-panel-head {
  gap: 0.48rem;
}

.contract-registry-panel-head strong {
  font-size: 0.86rem;
}

.contract-registry-panel-head p {
  margin-top: 0.12rem;
  color: #587590;
  font-size: 0.74rem;
}

.contract-registry-business-line-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.38rem;
}

.contract-registry-business-line-option {
  min-height: 40px;
  border-radius: 0.62rem;
  background: #f9fcff;
  box-shadow: none;
}

.contract-registry-business-line-option:hover {
  border-color: #97bddc;
  box-shadow: 0 6px 14px rgba(10, 45, 79, 0.06);
}

.contract-registry-business-line-option span {
  padding: 0.52rem 0.64rem;
  font-size: 0.71rem;
}

.contract-registry-business-line-option:has(input:checked) {
  box-shadow: inset 0 0 0 1px rgba(126, 196, 158, 0.16);
}

.contract-registry-sercop-head {
  gap: 0.6rem;
}

.contract-registry-sercop-head .contract-registry-panel-head {
  flex: 1 1 380px;
}

.contract-registry-sercop-shell {
  gap: 0.48rem;
  border-color: #d8e4ef;
  border-radius: 0.72rem;
  background: #fbfdff;
  padding: 0.56rem 0.62rem 0.6rem;
  box-shadow: none;
}

.contract-registry-sercop-input-row {
  gap: 0.48rem;
  align-items: center;
}

.contract-registry-sercop-input-row .button {
  min-height: 36px;
}

.contract-registry-sercop-hint {
  margin: 0;
}

.contract-registry-sercop-status,
.contract-registry-number-status,
.contract-registry-customer-status {
  border-radius: 0.68rem;
  padding: 0.5rem 0.58rem;
  box-shadow: none;
}

.contract-registry-sercop-status-copy strong,
.contract-registry-number-status-copy strong {
  font-size: 0.84rem;
}

.contract-registry-sercop-status-copy p,
.contract-registry-number-status-copy p,
.contract-registry-customer-card p,
.contract-registry-customer-match span {
  font-size: 0.74rem;
}

.contract-registry-sercop-status-copy p,
.contract-registry-number-status-copy p {
  margin-top: 0.14rem;
}

.contract-registry-sercop-status-side,
.contract-registry-number-status-side {
  gap: 0.36rem;
}

.contract-registry-sercop-chip-row {
  gap: 0.28rem;
}

.contract-registry-stack {
  gap: 0.22rem;
  font-size: 0.8rem;
}

.contract-registry-stack textarea {
  min-height: 88px;
}

.contract-registry-process-detail {
  margin-top: 0.62rem;
}

.contract-registry-contract-number-panel {
  gap: 0.42rem;
  border: none;
  background: transparent;
  padding: 0;
}

.contract-registry-contract-number-top {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 300px);
  gap: 0.56rem;
  align-items: center;
}

.contract-registry-contract-number-panel .contract-registry-panel-head p {
  max-width: 56ch;
}

.contract-registry-number-chip-row {
  gap: 0.22rem;
  margin-top: 0.28rem;
}

.contract-registry-contract-number-field {
  gap: 0.18rem;
  font-size: 0.74rem;
}

.contract-registry-contract-number-caption {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contract-registry-contract-number-panel input[readonly] {
  min-height: 40px;
  padding: 0.44rem 0.6rem;
  font-size: 0.9rem;
  background:
    linear-gradient(180deg, rgba(244, 249, 255, 0.98), rgba(236, 244, 253, 0.96)),
    #fff;
}

.contract-registry-number-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.42rem 0.56rem;
}

.contract-registry-number-status-copy {
  flex: initial;
}

.contract-registry-customer-toolbar {
  gap: 0.5rem;
  margin-top: 0.56rem;
}

.contract-registry-customer-status {
  margin-top: 0.52rem;
}

.contract-registry-customer-card strong {
  font-size: 0.84rem;
}

.contract-registry-customer-matches {
  gap: 0.42rem;
  margin-top: 0.54rem;
}

.contract-registry-customer-match {
  border-radius: 0.68rem;
  padding: 0.56rem 0.62rem;
}

.contract-registry-customer-match:hover {
  box-shadow: 0 6px 14px rgba(10, 45, 79, 0.06);
}

.contract-registry-form input[data-sercop-autofill="1"],
.contract-registry-form textarea[data-sercop-autofill="1"],
.contract-registry-form select[data-sercop-autofill="1"],
#contract-registry-ruc[data-customer-resolved="1"] {
  box-shadow:
    0 0 0 1px rgba(95, 190, 141, 0.12),
    0 0 0 3px rgba(95, 190, 141, 0.12);
}

.contract-registry-form input[data-sercop-autofill="1"]:focus,
.contract-registry-form textarea[data-sercop-autofill="1"]:focus,
.contract-registry-form select[data-sercop-autofill="1"]:focus,
#contract-registry-ruc[data-customer-resolved="1"]:focus {
  box-shadow:
    0 0 0 1px rgba(72, 169, 120, 0.16),
    0 0 0 3px rgba(72, 169, 120, 0.16);
}

.contract-registry-form-actions {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.7fr) auto;
  align-items: center;
  gap: 0.64rem;
  border: 1px solid #cfdeeb;
  border-radius: 0.82rem;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  padding: 0.66rem 0.74rem;
}

.contract-registry-submit-copy {
  min-width: 0;
}

.contract-registry-submit-copy strong {
  display: block;
  color: #153c61;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.88rem;
}

.contract-registry-submit-copy p {
  margin: 0.14rem 0 0;
  max-width: 34ch;
}

.contract-registry-live-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.4rem;
  min-width: 0;
}

.contract-registry-live-summary-item {
  min-width: 0;
  border: 1px solid #d7e3ee;
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.38rem 0.48rem;
}

.contract-registry-live-summary-item span {
  display: block;
  color: #5b7288;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contract-registry-live-summary-item strong {
  display: block;
  margin-top: 0.12rem;
  color: #153c61;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contract-registry-submit-button {
  min-height: 42px;
  padding: 0.65rem 0.94rem;
  white-space: nowrap;
}

.contract-registry-form input[data-completion-state="pending"],
.contract-registry-form select[data-completion-state="pending"],
.contract-registry-form textarea[data-completion-state="pending"] {
  border-color: #d8cda3;
  background:
    linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(250, 245, 225, 0.96)),
    #fff;
}

.contract-registry-form input[data-completion-state="filled"],
.contract-registry-form select[data-completion-state="filled"],
.contract-registry-form textarea[data-completion-state="filled"] {
  border-color: #a9ceb7;
  background:
    linear-gradient(180deg, rgba(244, 252, 247, 0.98), rgba(234, 246, 238, 0.96)),
    #fff;
}

.contract-registry-field[data-completion-state="pending"] .contract-registry-field-head > span:first-child,
.contract-registry-stack[data-completion-state="pending"] > span:first-child,
.contract-registry-contract-number-field[data-completion-state="pending"] .contract-registry-contract-number-caption {
  color: #856b2b;
}

.contract-registry-field[data-completion-state="filled"] .contract-registry-field-head > span:first-child,
.contract-registry-stack[data-completion-state="filled"] > span:first-child,
.contract-registry-contract-number-field[data-completion-state="filled"] .contract-registry-contract-number-caption {
  color: #2f6f4e;
}

.contract-registry-business-line-panel[data-completion-state="pending"] {
  border-color: #ddd2a9;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, 0.98), rgba(250, 246, 230, 0.96)),
    #fff;
}

.contract-registry-business-line-panel[data-completion-state="filled"] {
  border-color: #afd0bb;
  background:
    linear-gradient(180deg, rgba(246, 252, 248, 0.98), rgba(235, 246, 239, 0.96)),
    #fff;
}

body.dense-ui .contract-registry-form {
  gap: 0.58rem;
}

body.dense-ui .contract-registry-form-legend {
  gap: 0.24rem;
}

body.dense-ui .contract-registry-meta-chip {
  font-size: 0.61rem;
  padding: 0.1rem 0.36rem;
}

body.dense-ui .contract-registry-form-section {
  border-radius: 0.74rem;
  padding: 0.62rem 0.68rem 0.66rem;
}

body.dense-ui .contract-registry-form label {
  font-size: 0.76rem;
}

body.dense-ui .contract-registry-field {
  grid-template-rows: minmax(2.7rem, auto) auto;
  gap: 0.14rem;
}

body.dense-ui .contract-registry-field-head {
  gap: 0.1rem;
  min-height: 0;
}

body.dense-ui .contract-registry-analyst-global-trigger {
  min-height: 28px;
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
}

body.dense-ui .contract-registry-form input,
body.dense-ui .contract-registry-form select,
body.dense-ui .contract-registry-form textarea {
  min-height: 34px;
  font-size: 0.8rem;
  padding: 0.36rem 0.48rem;
}

body.dense-ui .contract-registry-form textarea {
  min-height: 78px;
}

body.dense-ui .contract-registry-process-panel,
body.dense-ui .contract-registry-sercop-shell,
body.dense-ui .contract-registry-contract-number-panel {
  border-radius: 0.68rem;
  padding: 0.5rem 0.56rem 0.54rem;
}

body.dense-ui .contract-registry-sercop-status,
body.dense-ui .contract-registry-number-status,
body.dense-ui .contract-registry-customer-status {
  border-radius: 0.62rem;
  padding: 0.46rem 0.52rem;
}

body.dense-ui .contract-registry-business-line-option {
  min-height: 38px;
}

body.dense-ui .contract-registry-business-line-option span {
  padding: 0.46rem 0.56rem;
  font-size: 0.68rem;
}

body.dense-ui .contract-registry-contract-number-panel input[readonly] {
  min-height: 36px;
  font-size: 0.84rem;
}

body.dense-ui .contract-registry-form-actions {
  gap: 0.48rem;
  border-radius: 0.74rem;
  padding: 0.58rem 0.64rem;
}

body.dense-ui .contract-registry-live-summary-item {
  border-radius: 0.56rem;
  padding: 0.34rem 0.42rem;
}

body.dense-ui .contract-registry-live-summary-item span {
  font-size: 0.6rem;
}

body.dense-ui .contract-registry-live-summary-item strong {
  font-size: 0.72rem;
}

body.dense-ui .contract-registry-submit-button {
  min-height: 38px;
}

@media (max-width: 1180px) {
  .contract-registry-live-summary {
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  }
}

@media (max-width: 1040px) {
  .contract-registry-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contract-registry-form-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contract-registry-live-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contract-registry-submit-copy p {
    max-width: none;
  }

  .contract-registry-submit-button {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .contract-registry-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-registry-contract-number-top {
    grid-template-columns: 1fr;
  }

  .contract-registry-number-status {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .contract-registry-form-legend {
    justify-content: flex-start;
  }

  .contract-registry-live-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contract-registry-sercop-status,
  .contract-registry-number-status {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .contract-registry-live-summary {
    grid-template-columns: 1fr;
  }

  .contract-registry-live-summary-item strong {
    white-space: normal;
  }
}

.fact-status-pill.tone-info {
  border-color: #a9c9e6;
  background: linear-gradient(180deg, #f4faff, #e7f2fd);
  color: #245d8f;
}

.fact-status-pill.tone-success {
  border-color: #add2b8;
  background: linear-gradient(180deg, #f5fbf6, #e8f6ec);
  color: #2e6d49;
}

.fact-status-pill.tone-progress {
  border-color: #c7bddc;
  background: linear-gradient(180deg, #fbf9ff, #f0ebf8);
  color: #5a4d7e;
}

.fact-status-pill.tone-neutral {
  border-color: #c9d4df;
  background: linear-gradient(180deg, #fbfdff, #eef3f8);
  color: #486174;
}

.process-board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.process-board-hero-copy p,
.process-board-hero-copy h1 {
  margin: 0;
}

.process-board-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
}

.process-board-stat {
  border-radius: 0.92rem;
  border: 1px solid rgba(176, 202, 226, 0.8);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(236, 244, 252, 0.96));
  padding: 0.76rem 0.82rem;
}

.process-board-stat span {
  display: block;
  color: #57738f;
  font-size: 0.75rem;
  font-weight: 700;
}

.process-board-stat strong {
  display: block;
  margin-top: 0.26rem;
  color: #133c61;
  font-size: 1.28rem;
}

.process-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.86fr);
  gap: 1rem;
}

.process-board-column {
  display: grid;
  gap: 0.9rem;
}

.process-board-panel {
  display: grid;
  gap: 0.78rem;
}

.process-board-import-form,
.process-board-inline-form,
.process-board-sercop-inline,
.process-board-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  align-items: center;
}

.process-board-form {
  display: grid;
  gap: 0.72rem;
}

.process-board-form label {
  display: grid;
  gap: 0.28rem;
}

.process-board-form label span {
  color: #264e74;
  font-size: 0.76rem;
  font-weight: 700;
}

.process-board-form input,
.process-board-form select,
.process-board-form textarea,
.process-board-inline-form select,
.process-board-import-form input[type="file"] {
  width: 100%;
  min-height: 38px;
  border-radius: 0.8rem;
  border: 1px solid #c7d9ea;
  background: linear-gradient(180deg, #fdfefe, #f2f8fd);
  padding: 0.46rem 0.62rem;
  color: #173d60;
}

.process-board-form textarea {
  min-height: 92px;
  resize: vertical;
}

.process-board-form input[data-completion-state="pending"],
.process-board-form select[data-completion-state="pending"],
.process-board-form textarea[data-completion-state="pending"] {
  border-color: #d8cda3;
  background:
    linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(250, 245, 225, 0.96)),
    #fff;
}

.process-board-form input[data-completion-state="filled"],
.process-board-form select[data-completion-state="filled"],
.process-board-form textarea[data-completion-state="filled"] {
  border-color: #a9ceb7;
  background:
    linear-gradient(180deg, rgba(244, 252, 247, 0.98), rgba(234, 246, 238, 0.96)),
    #fff;
}

.process-board-form label[data-completion-state="pending"] > span:first-child {
  color: #856b2b;
}

.process-board-form label[data-completion-state="filled"] > span:first-child {
  color: #2f6f4e;
}

.process-board-form-grid,
.process-board-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.66rem;
}

.process-board-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.66rem;
}

.process-board-preview-card {
  border-radius: 0.84rem;
  border: 1px solid rgba(192, 210, 228, 0.86);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 246, 252, 0.96));
  padding: 0.62rem 0.68rem;
}

.process-board-preview-card span {
  display: block;
  color: #607a94;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.process-board-preview-card strong {
  display: block;
  margin-top: 0.18rem;
  color: #173d60;
  font-size: 0.88rem;
}

.process-board-preview-card small {
  display: block;
  margin-top: 0.14rem;
  color: #5f7893;
}

.process-board-sercop-row {
  display: grid;
  gap: 0.36rem;
}

.process-board-sercop-status {
  border-radius: 0.84rem;
  border: 1px dashed #bfd2e4;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(239, 246, 253, 0.95));
  padding: 0.62rem 0.7rem;
  color: #56728e;
  font-size: 0.77rem;
}

.process-board-sercop-status.is-success {
  border-color: #b2d0bd;
  background: linear-gradient(180deg, rgba(245, 252, 247, 0.98), rgba(235, 247, 239, 0.96));
  color: #2f6d49;
}

.process-board-sercop-status.is-error {
  border-color: #ddbfcb;
  background: linear-gradient(180deg, rgba(255, 249, 250, 0.98), rgba(252, 239, 243, 0.96));
  color: #8c4660;
}

.process-board-sercop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.66rem;
  align-items: start;
}

.process-board-sercop-card {
  display: grid;
  gap: 0.58rem;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.86rem;
  border: 1px solid rgba(193, 211, 229, 0.86);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 246, 252, 0.96));
  padding: 0.7rem 0.76rem;
}

.process-board-sercop-card-head span {
  display: block;
  color: #607a94;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.process-board-sercop-card-head strong {
  display: block;
  margin-top: 0.14rem;
  color: #173d60;
  font-size: 0.88rem;
}

.process-board-sercop-empty {
  color: #5f7893;
  font-size: 0.76rem;
}

.process-board-sercop-dates {
  display: grid;
  gap: 0.5rem;
}

.process-board-sercop-products {
  display: grid;
  gap: 0.54rem;
  min-width: 0;
}

.process-board-sercop-date-row {
  display: grid;
  gap: 0.16rem;
  border-radius: 0.76rem;
  border: 1px solid rgba(196, 213, 230, 0.82);
  background: rgba(255, 255, 255, 0.74);
  padding: 0.5rem 0.56rem;
}

.process-board-sercop-date-row[data-stage-state="completed"] {
  border-color: rgba(171, 208, 185, 0.9);
  background: linear-gradient(180deg, rgba(245, 252, 247, 0.98), rgba(235, 247, 239, 0.96));
}

.process-board-sercop-date-row[data-stage-state="active"] {
  border-color: rgba(116, 157, 218, 0.92);
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.99), rgba(229, 240, 252, 0.97));
  box-shadow: 0 0 0 1px rgba(116, 157, 218, 0.15);
}

.process-board-sercop-date-row[data-stage-state="upcoming"] {
  border-color: rgba(220, 204, 148, 0.88);
  background: linear-gradient(180deg, rgba(255, 252, 243, 0.98), rgba(249, 244, 226, 0.96));
}

.process-board-sercop-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.process-board-sercop-date-row strong {
  color: #173d60;
  font-size: 0.79rem;
}

.process-board-sercop-date-row span {
  color: #2f506f;
  font-size: 0.82rem;
  font-weight: 700;
}

.process-board-sercop-date-row small {
  color: #5f7893;
  line-height: 1.35;
}

.process-board-sercop-stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.67rem;
  font-weight: 700;
  white-space: nowrap;
}

.process-board-sercop-stage-chip.is-completed {
  border: 1px solid rgba(167, 203, 181, 0.96);
  background: rgba(236, 247, 240, 0.98);
  color: #2f6f4e;
}

.process-board-sercop-stage-chip.is-active {
  border: 1px solid rgba(116, 157, 218, 0.96);
  background: rgba(232, 242, 255, 0.98);
  color: #1f5b9e;
}

.process-board-sercop-stage-chip.is-upcoming {
  border: 1px solid rgba(219, 201, 138, 0.96);
  background: rgba(252, 247, 228, 0.98);
  color: #8a6e1f;
}

.process-board-sercop-stage-chip.is-neutral {
  border: 1px solid rgba(193, 211, 229, 0.9);
  background: rgba(244, 248, 252, 0.96);
  color: #5c7894;
}

.process-board-sercop-lots {
  display: grid;
  gap: 0.4rem;
}

.process-board-sercop-lot-chip {
  display: block;
  width: 100%;
  border-radius: 0.78rem;
  border: 1px solid rgba(170, 194, 217, 0.92);
  background: rgba(245, 249, 253, 0.96);
  padding: 0.42rem 0.56rem;
  color: #42637f;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.process-board-sercop-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 0.76rem;
  border: 1px solid rgba(196, 213, 230, 0.82);
  background: rgba(255, 255, 255, 0.78);
}

.process-board-sercop-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.process-board-sercop-table th,
.process-board-sercop-table td {
  border-bottom: 1px solid rgba(208, 221, 234, 0.72);
  padding: 0.46rem 0.52rem;
  text-align: left;
  vertical-align: top;
}

.process-board-sercop-table th {
  color: #607a94;
  font-size: 0.69rem;
  text-transform: uppercase;
}

.process-board-sercop-table td {
  color: #214464;
  font-size: 0.77rem;
  line-height: 1.38;
  word-break: normal;
  overflow-wrap: break-word;
}

.process-board-sercop-table th:nth-child(1),
.process-board-sercop-table td:nth-child(1) {
  width: 118px;
  white-space: nowrap;
}

.process-board-sercop-table th:nth-child(2),
.process-board-sercop-table td:nth-child(2) {
  min-width: 340px;
}

.process-board-sercop-table th:nth-child(3),
.process-board-sercop-table td:nth-child(3) {
  width: 76px;
  white-space: nowrap;
}

.process-board-sercop-table th:nth-child(4),
.process-board-sercop-table td:nth-child(4) {
  width: 92px;
  white-space: nowrap;
}

.process-board-sercop-table th:nth-child(5),
.process-board-sercop-table td:nth-child(5) {
  width: 112px;
  white-space: nowrap;
}

.process-board-send-box {
  margin-top: -0.18rem;
}

.process-board-list,
.process-board-history {
  display: grid;
  gap: 0.54rem;
}

.process-board-list-row,
.process-board-history-row {
  display: grid;
  gap: 0.24rem;
  border-radius: 0.86rem;
  border: 1px solid rgba(193, 212, 231, 0.85);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(240, 247, 253, 0.96));
  padding: 0.68rem 0.76rem;
  text-decoration: none;
}

.process-board-list-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: inherit;
}

.process-board-list-row strong,
.process-board-history-row strong {
  color: #173d60;
}

.process-board-list-row span,
.process-board-list-row small,
.process-board-history-row span,
.process-board-history-row p {
  margin: 0;
  color: #5f7893;
}

.process-board-detail-grid div {
  border-radius: 0.82rem;
  border: 1px solid rgba(193, 211, 229, 0.86);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 246, 252, 0.96));
  padding: 0.58rem 0.64rem;
}

.process-board-detail-grid span {
  display: block;
  color: #607a94;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.process-board-detail-grid strong {
  display: block;
  margin-top: 0.16rem;
  color: #183e62;
  font-size: 0.84rem;
  line-height: 1.32;
}

.process-board-action-block {
  display: grid;
  gap: 0.48rem;
  border-top: 1px solid rgba(201, 216, 233, 0.7);
  padding-top: 0.72rem;
}

.process-board-action-block label {
  display: grid;
  gap: 0.24rem;
}

.process-board-action-block label span {
  color: #274f74;
  font-size: 0.75rem;
  font-weight: 700;
}

.process-board-action-block textarea,
.process-board-action-block select {
  width: 100%;
  min-height: 38px;
  border-radius: 0.8rem;
  border: 1px solid #c7d9ea;
  background: linear-gradient(180deg, #fdfefe, #f2f8fd);
  padding: 0.46rem 0.62rem;
}

@media (max-width: 1120px) {
  .process-board-hero,
  .process-board-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .process-board-form-grid,
  .process-board-detail-grid,
  .process-board-preview-grid,
  .process-board-sercop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .process-board-hero-stats,
  .process-board-form-grid,
  .process-board-detail-grid,
  .process-board-preview-grid,
  .process-board-sercop-grid,
  .process-board-list-row {
    grid-template-columns: 1fr;
  }

  .process-board-list-row {
    align-items: flex-start;
  }
}

/* Shell refresh | 2026-03-13 */
body.dense-ui .topbar {
  padding: 0.74rem 0.98rem 0.62rem;
}

body.dense-ui .topbar::before {
  inset: auto 1.05rem 0 1.05rem;
  background: linear-gradient(90deg, rgba(110, 178, 233, 0), rgba(110, 178, 233, 0.56), rgba(110, 178, 233, 0));
}

body.dense-ui .topbar::after {
  content: "";
  position: absolute;
  inset: 0.26rem 1.4rem auto 1.4rem;
  height: 220px;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 14% 22%, rgba(48, 177, 204, 0.13), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(70, 124, 218, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
  opacity: 0.92;
}

body.dense-ui .topbar-inner {
  max-width: 1540px;
  grid-template-columns: minmax(340px, 0.96fr) minmax(760px, 1.18fr);
  gap: 0.76rem;
}

body.dense-ui .topbar-public .topbar-inner,
body.dense-ui .topbar-inner-public {
  grid-template-columns: minmax(320px, 1fr) minmax(240px, auto);
}

body.dense-ui .brand-wrap,
body.dense-ui .topnav-primary-shell,
body.dense-ui .topnav-auth-shell,
body.dense-ui .topnav-session,
body.dense-ui .module-nav-frame,
body.dense-ui .workspace-rail-shell {
  position: relative;
  overflow: hidden;
}

body.dense-ui .brand-wrap {
  padding: 0.92rem 1.04rem;
  border-radius: 1.34rem;
  border-color: rgba(135, 193, 240, 0.34);
  background:
    linear-gradient(145deg, rgba(4, 28, 53, 0.92), rgba(8, 56, 94, 0.78) 58%, rgba(13, 95, 142, 0.52)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(233, 245, 255, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 22px 44px rgba(4, 18, 36, 0.3);
}

body.dense-ui .brand-wrap::before {
  right: -74px;
  bottom: -96px;
  width: 272px;
  height: 272px;
  background: radial-gradient(circle, rgba(73, 214, 203, 0.28), rgba(73, 214, 203, 0));
}

body.dense-ui .brand-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(rgba(139, 198, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 198, 244, 0.04) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 86%);
  pointer-events: none;
}

body.dense-ui .brand-head {
  align-items: center;
  gap: 0.94rem;
}

body.dense-ui .brand-copy {
  gap: 0.32rem;
}

body.dense-ui .brand {
  font-size: 1.78rem;
  letter-spacing: -0.03em;
}

body.dense-ui .brand-row {
  gap: 0.58rem;
}

body.dense-ui .brand-sub {
  max-width: 32rem;
  color: #c9ddf4;
  font-size: 0.83rem;
}

body.dense-ui .tag-chip {
  border-color: rgba(255, 214, 157, 0.5);
  background: linear-gradient(145deg, rgba(110, 78, 23, 0.52), rgba(189, 135, 38, 0.32));
  color: #ffe5ba;
  box-shadow: inset 0 1px 0 rgba(255, 246, 228, 0.12);
}

body.dense-ui .brand-datetime {
  gap: 0.42rem;
  padding: 0.18rem 0.58rem;
  border-radius: 1rem;
  border-color: rgba(152, 207, 247, 0.52);
  background: linear-gradient(160deg, rgba(6, 42, 74, 0.96), rgba(18, 96, 148, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(211, 232, 253, 0.08),
    0 14px 24px rgba(4, 21, 40, 0.24);
}

body.dense-ui .brand-date {
  font-size: 0.58rem;
}

body.dense-ui .brand-time {
  font-size: 0.8rem;
}

body.dense-ui .topnav-suite {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 286px);
  gap: 0.76rem;
}

body.dense-ui .topnav-primary-shell,
body.dense-ui .topnav-auth-shell,
body.dense-ui .topnav-session {
  padding: 0.86rem 0.92rem;
  border-radius: 1.34rem;
  border-color: rgba(139, 193, 238, 0.3);
  background:
    linear-gradient(150deg, rgba(5, 29, 54, 0.88), rgba(9, 53, 87, 0.68)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(237, 246, 255, 0.12),
    0 22px 38px rgba(4, 17, 34, 0.24);
}

body.dense-ui .topnav-primary-shell::before,
body.dense-ui .topnav-session::before,
body.dense-ui .topnav-auth-shell::before,
body.dense-ui .module-nav-frame::after,
body.dense-ui .workspace-rail-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

body.dense-ui .topnav-shell-label,
body.dense-ui .top-user-kicker,
body.dense-ui .module-nav-kicker,
body.dense-ui .workspace-rail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #91c2ee;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}

body.dense-ui .topnav-shell-label::before,
body.dense-ui .top-user-kicker::before,
body.dense-ui .module-nav-kicker::before,
body.dense-ui .workspace-rail-label::before {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(83, 221, 201, 0.95);
  box-shadow: 0 0 10px rgba(83, 221, 201, 0.52);
}

body.dense-ui .topnav-primary {
  gap: 0.46rem;
}

body.dense-ui .topnav-primary .button,
body.dense-ui .topnav-exit {
  min-height: 2.46rem;
  padding: 0.38rem 0.94rem;
  border-radius: 0.96rem;
  font-size: 0.92rem;
  font-weight: 800;
}

body.dense-ui .topnav-primary .button-soft {
  border-color: rgba(196, 216, 236, 0.76);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(223, 237, 250, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 24px rgba(7, 27, 48, 0.16);
}

body.dense-ui .topnav-primary .button-soft.is-active {
  border-color: rgba(113, 188, 241, 0.84);
  background: linear-gradient(180deg, #ffffff, #d6eeff 58%, #c8e7fb);
  color: #0d4f7c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 26px rgba(8, 55, 95, 0.18);
}

body.dense-ui .topnav-primary .button-workspace {
  border-color: rgba(214, 189, 148, 0.72);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(243, 234, 217, 0.96));
  color: #6a4b1a;
}

body.dense-ui .topnav-primary .button-workspace.is-active {
  border-color: rgba(228, 186, 95, 0.9);
  background: linear-gradient(180deg, #fff8e8, #f8e4b2);
  color: #5d4010;
}

body.dense-ui .top-user-menu {
  width: 100%;
}

body.dense-ui .top-user-card {
  min-height: 4.7rem;
}

body.dense-ui .top-user-menu-summary {
  position: relative;
  align-content: center;
  gap: 0.18rem;
  min-height: 4.7rem;
  padding-left: 3.42rem;
}

body.dense-ui .top-user-menu-summary::before {
  content: "";
  position: absolute;
  left: 0.04rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.56rem;
  height: 2.56rem;
  border-radius: 0.92rem;
  border: 1px solid rgba(155, 208, 247, 0.34);
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(145deg, rgba(12, 91, 150, 0.94), rgba(12, 52, 93, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 24px rgba(2, 16, 32, 0.24);
}

body.dense-ui .top-user-head {
  justify-content: space-between;
}

body.dense-ui .top-user-headline {
  gap: 0.42rem;
}

body.dense-ui .top-user-name {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

body.dense-ui .top-user-meta {
  margin-top: 0.2rem;
}

body.dense-ui .top-user-pill {
  padding: 0.16rem 0.48rem;
  border-color: rgba(151, 194, 230, 0.42);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.54rem;
}

body.dense-ui .top-user-menu-panel {
  top: calc(100% + 0.52rem);
  width: min(290px, calc(100vw - 2rem));
  padding: 0.66rem;
  border-radius: 1rem;
  border-color: rgba(145, 192, 233, 0.34);
  background:
    linear-gradient(165deg, rgba(4, 26, 48, 0.98), rgba(9, 56, 94, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(240, 247, 255, 0.08),
    0 26px 48px rgba(3, 15, 30, 0.36);
}

body.dense-ui .top-user-menu-link,
body.dense-ui .topnav-exit {
  min-height: 2.34rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(147, 194, 235, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

body.dense-ui .topnav-exit {
  color: #edf6ff;
}

body.dense-ui .module-nav-shell {
  max-width: 1540px;
  margin-top: 0.54rem;
  gap: 0.48rem;
}

body.dense-ui .module-nav-frame {
  padding: 0.84rem 0.96rem 0.98rem;
  border-radius: 1.34rem;
  border-color: rgba(139, 194, 238, 0.3);
  background:
    linear-gradient(160deg, rgba(4, 26, 50, 0.86), rgba(7, 46, 81, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(237, 246, 255, 0.1),
    0 22px 40px rgba(4, 18, 35, 0.22);
}

body.dense-ui .module-nav-frame::before {
  left: auto;
  right: -112px;
  top: -98px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(43, 154, 240, 0.22), rgba(43, 154, 240, 0));
}

body.dense-ui .module-nav-head {
  align-items: flex-end;
  gap: 0.56rem;
  margin-bottom: 0.7rem;
}

body.dense-ui .module-nav-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

body.dense-ui .module-nav-caption {
  max-width: 28rem;
  color: #bad7f1;
  font-size: 0.74rem;
}

body.dense-ui .module-nav {
  gap: 0.46rem;
}

body.dense-ui .module-link {
  min-height: 3rem;
  gap: 0.64rem;
  padding: 0.56rem 0.72rem;
  border-radius: 1rem;
  border-color: rgba(148, 194, 237, 0.32);
  background:
    linear-gradient(160deg, rgba(8, 40, 73, 0.96), rgba(13, 70, 118, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.08),
    0 14px 26px rgba(4, 18, 35, 0.16);
}

body.dense-ui .module-link:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 219, 251, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.1),
    0 18px 30px rgba(3, 17, 33, 0.22);
}

body.dense-ui .module-link.is-active {
  border-color: rgba(99, 186, 238, 0.88);
  background:
    linear-gradient(155deg, rgba(17, 124, 195, 0.98), rgba(42, 158, 222, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  color: #f7fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 34px rgba(7, 60, 104, 0.28);
}

body.dense-ui .module-link::after {
  inset: auto 0.72rem 0.52rem 0.72rem;
  width: auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(136, 224, 255, 0.84), rgba(255, 255, 255, 0));
  opacity: 0;
}

body.dense-ui .module-link:hover::after,
body.dense-ui .module-link.is-active::after {
  opacity: 1;
}

body.dense-ui .module-icon {
  width: 1.68rem;
  height: 1.68rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(162, 204, 241, 0.26);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dense-ui .module-icon svg {
  width: 1rem;
  height: 1rem;
}

body.dense-ui .module-text {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

body.dense-ui .workspace-rail-shell {
  padding: 0.58rem 0.72rem;
  gap: 0.56rem;
  border-radius: 1.08rem;
  border-color: rgba(139, 192, 235, 0.26);
  background:
    linear-gradient(155deg, rgba(5, 28, 52, 0.76), rgba(10, 56, 96, 0.54)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.08),
    0 14px 28px rgba(4, 18, 35, 0.14);
}

body.dense-ui .workspace-rail {
  gap: 0.34rem;
}

body.dense-ui .workspace-chip {
  padding: 0.18rem 0.54rem;
  border-radius: 0.88rem;
  border-color: rgba(146, 196, 239, 0.38);
  background: linear-gradient(150deg, rgba(7, 46, 83, 0.88), rgba(14, 78, 128, 0.74));
  color: #ddecff;
  font-size: 0.67rem;
}

body.dense-ui .workspace-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(189, 221, 249, 0.72);
}

body.dense-ui .topnav-primary .button:hover,
body.dense-ui .topnav-exit:hover,
body.dense-ui .top-user-card:hover,
body.dense-ui .top-user-menu[open] .top-user-card,
body.dense-ui .module-nav-shell .module-link:hover,
body.dense-ui .workspace-rail-shell .workspace-chip:hover {
  transform: none;
}

body.dense-ui .workspace-chip.is-active {
  border-color: rgba(245, 202, 116, 0.84);
  background: linear-gradient(150deg, rgba(98, 70, 16, 0.94), rgba(176, 120, 24, 0.9));
  color: #fff0d6;
}

body.dense-ui .profile-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.76rem;
  padding: 0.72rem 0.82rem;
  border-radius: 1.08rem;
  border: 1px solid rgba(144, 198, 239, 0.28);
  background:
    radial-gradient(160px 90px at 100% 0%, rgba(58, 199, 214, 0.22), transparent 68%),
    linear-gradient(148deg, rgba(10, 60, 96, 0.88), rgba(8, 35, 61, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(236, 246, 255, 0.12),
    0 16px 28px rgba(3, 17, 33, 0.18);
}

body.dense-ui .profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(rgba(151, 210, 242, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 210, 242, 0.04) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 92%);
  pointer-events: none;
}

body.dense-ui .profile-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

body.dense-ui .profile-hero-kicker {
  color: #8fe1e1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.34px;
  text-transform: uppercase;
}

body.dense-ui .profile-hero-title {
  color: #f4fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.dense-ui .profile-hero-meta {
  color: #c2dcf2;
  font-size: 0.72rem;
  line-height: 1.34;
}

body.dense-ui .profile-hero-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.66rem;
  border: 1px solid rgba(245, 210, 129, 0.44);
  background: linear-gradient(145deg, rgba(109, 79, 19, 0.64), rgba(192, 139, 38, 0.34));
  color: #ffe7be;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22px;
  text-transform: uppercase;
}

body.dense-ui .topnav-primary-shell-profile {
  gap: 0.62rem;
}

body.dense-ui .topnav-primary-shell-profile .topnav-primary {
  justify-content: flex-start;
}

body.dense-ui.shell-profile-facturacion .profile-hero {
  border-color: rgba(144, 198, 239, 0.28);
  background:
    radial-gradient(160px 90px at 100% 0%, rgba(58, 199, 214, 0.22), transparent 68%),
    linear-gradient(148deg, rgba(10, 60, 96, 0.88), rgba(8, 35, 61, 0.9));
}

body.dense-ui.shell-profile-facturacion .profile-hero-kicker {
  color: #8fe1e1;
}

body.dense-ui.shell-profile-facturacion .profile-hero-meta {
  color: #c2dcf2;
}

body.dense-ui.shell-profile-facturacion .profile-hero-pill {
  border-color: rgba(245, 210, 129, 0.44);
  background: linear-gradient(145deg, rgba(109, 79, 19, 0.64), rgba(192, 139, 38, 0.34));
  color: #ffe7be;
}

body.dense-ui.shell-profile-facturacion .topbar::after {
  background:
    linear-gradient(90deg, rgba(11, 67, 110, 0.34), rgba(58, 189, 196, 0.2) 42%, rgba(11, 67, 110, 0.12)),
    radial-gradient(circle at 76% 34%, rgba(65, 195, 205, 0.2), rgba(65, 195, 205, 0));
}

body.dense-ui.shell-profile-facturacion .topnav-primary-shell-profile {
  background:
    linear-gradient(148deg, rgba(5, 35, 59, 0.92), rgba(8, 58, 83, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

body.dense-ui.shell-profile-facturacion .topnav-primary .button-soft.is-active {
  border-color: rgba(117, 225, 226, 0.84);
  background: linear-gradient(180deg, #ffffff, #ddfbff 54%, #c7eef7);
  color: #0d5877;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 26px rgba(7, 72, 95, 0.2);
}

body.dense-ui.shell-profile-comercial .profile-hero {
  border-color: rgba(236, 198, 137, 0.28);
  background:
    radial-gradient(150px 90px at 100% 0%, rgba(247, 188, 108, 0.24), transparent 68%),
    linear-gradient(148deg, rgba(85, 47, 10, 0.92), rgba(11, 64, 104, 0.88));
}

body.dense-ui.shell-profile-comercial .profile-hero-kicker {
  color: #ffd1a2;
}

body.dense-ui.shell-profile-comercial .profile-hero-meta {
  color: #f5debf;
}

body.dense-ui.shell-profile-comercial .profile-hero-pill {
  border-color: rgba(255, 214, 138, 0.44);
  background: linear-gradient(145deg, rgba(120, 78, 14, 0.72), rgba(225, 143, 44, 0.38));
  color: #ffebc8;
}

body.dense-ui.shell-profile-comercial .topbar::after {
  background:
    linear-gradient(90deg, rgba(103, 62, 16, 0.22), rgba(235, 158, 55, 0.24) 38%, rgba(19, 102, 157, 0.16) 78%, rgba(9, 46, 78, 0.1)),
    radial-gradient(circle at 24% 26%, rgba(255, 195, 118, 0.18), rgba(255, 195, 118, 0));
}

body.dense-ui.shell-profile-comercial .topnav-primary-shell-profile {
  background:
    linear-gradient(148deg, rgba(74, 40, 8, 0.94), rgba(12, 66, 103, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

body.dense-ui.shell-profile-comercial .topnav-primary .button-soft.is-active {
  border-color: rgba(245, 195, 104, 0.88);
  background: linear-gradient(180deg, #fffdf7, #ffefcc 54%, #f6d99d);
  color: #81520d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 26px rgba(104, 63, 11, 0.22);
}

body.dense-ui.shell-profile-comercial .module-nav-frame {
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(255, 190, 115, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(68, 38, 10, 0.9), rgba(11, 61, 98, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

body.dense-ui.shell-profile-comercial .workspace-rail-shell {
  background:
    linear-gradient(155deg, rgba(73, 39, 8, 0.82), rgba(12, 76, 113, 0.58)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

body.dense-ui.shell-profile-comercial .module-nav-kicker::before,
body.dense-ui.shell-profile-comercial .workspace-rail-label::before {
  background: rgba(255, 197, 104, 0.96);
  box-shadow: 0 0 12px rgba(255, 197, 104, 0.48);
}

body.dense-ui.shell-profile-comercial .module-link.is-active {
  border-color: rgba(250, 199, 114, 0.88);
  background:
    linear-gradient(155deg, rgba(184, 112, 24, 0.98), rgba(241, 166, 56, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  color: #fffaf2;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 34px rgba(104, 62, 10, 0.28);
}

body.dense-ui.shell-profile-comercial .workspace-chip.is-active {
  border-color: rgba(255, 204, 126, 0.88);
  background: linear-gradient(150deg, rgba(160, 93, 13, 0.96), rgba(224, 149, 39, 0.9));
  color: #fff7ea;
}

body.dense-ui.shell-profile-mantenimiento .profile-hero {
  border-color: rgba(124, 210, 188, 0.28);
  background:
    radial-gradient(150px 90px at 100% 0%, rgba(94, 219, 172, 0.22), transparent 68%),
    linear-gradient(148deg, rgba(8, 70, 66, 0.92), rgba(7, 38, 59, 0.9));
}

body.dense-ui.shell-profile-mantenimiento .profile-hero-kicker {
  color: #a3efd6;
}

body.dense-ui.shell-profile-mantenimiento .profile-hero-meta {
  color: #c6ebe0;
}

body.dense-ui.shell-profile-mantenimiento .profile-hero-pill {
  border-color: rgba(154, 236, 201, 0.44);
  background: linear-gradient(145deg, rgba(17, 105, 90, 0.72), rgba(42, 168, 136, 0.38));
  color: #e0fff4;
}

body.dense-ui.shell-profile-mantenimiento .topbar::after {
  background:
    linear-gradient(90deg, rgba(11, 78, 72, 0.22), rgba(50, 180, 147, 0.22) 36%, rgba(22, 112, 161, 0.16) 78%, rgba(8, 46, 79, 0.1)),
    radial-gradient(circle at 78% 24%, rgba(99, 226, 184, 0.18), rgba(99, 226, 184, 0));
}

body.dense-ui.shell-profile-mantenimiento .topnav-primary-shell-profile {
  background:
    linear-gradient(148deg, rgba(8, 62, 58, 0.94), rgba(8, 54, 84, 0.82)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

body.dense-ui.shell-profile-mantenimiento .topnav-primary .button-soft.is-active {
  border-color: rgba(122, 233, 196, 0.84);
  background: linear-gradient(180deg, #fbfffd, #ddfff4 54%, #bff0db);
  color: #0f6a57;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 16px 26px rgba(8, 92, 74, 0.2);
}

body.dense-ui.shell-profile-mantenimiento .module-nav-frame {
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(106, 232, 191, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(7, 58, 54, 0.9), rgba(7, 54, 85, 0.78)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

body.dense-ui.shell-profile-mantenimiento .workspace-rail-shell {
  background:
    linear-gradient(155deg, rgba(7, 60, 56, 0.82), rgba(8, 76, 107, 0.58)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

body.dense-ui.shell-profile-mantenimiento .module-nav-kicker::before,
body.dense-ui.shell-profile-mantenimiento .workspace-rail-label::before {
  background: rgba(114, 232, 191, 0.96);
  box-shadow: 0 0 12px rgba(114, 232, 191, 0.48);
}

body.dense-ui.shell-profile-mantenimiento .module-link.is-active {
  border-color: rgba(116, 231, 193, 0.86);
  background:
    linear-gradient(155deg, rgba(12, 132, 109, 0.98), rgba(42, 181, 144, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  color: #f2fffb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 34px rgba(8, 89, 73, 0.28);
}

body.dense-ui.shell-profile-mantenimiento .workspace-chip.is-active {
  border-color: rgba(134, 240, 207, 0.86);
  background: linear-gradient(150deg, rgba(10, 119, 101, 0.96), rgba(44, 178, 146, 0.9));
  color: #f2fffb;
}

body.dense-ui.shell-profile-facturacion .module-nav-frame {
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(59, 201, 212, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(4, 26, 50, 0.88), rgba(6, 56, 88, 0.74)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

body.dense-ui.shell-profile-facturacion .workspace-rail-shell {
  background:
    linear-gradient(155deg, rgba(4, 29, 50, 0.84), rgba(10, 73, 100, 0.58)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

body.dense-ui.shell-profile-facturacion .module-nav-kicker::before,
body.dense-ui.shell-profile-facturacion .workspace-rail-label::before {
  background: rgba(75, 226, 209, 0.96);
  box-shadow: 0 0 12px rgba(75, 226, 209, 0.48);
}

body.dense-ui.shell-profile-facturacion .module-link.is-active {
  border-color: rgba(108, 221, 227, 0.86);
  background:
    linear-gradient(155deg, rgba(16, 121, 155, 0.98), rgba(40, 178, 193, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 34px rgba(7, 81, 104, 0.28);
}

body.dense-ui.shell-profile-facturacion .workspace-chip.is-active {
  border-color: rgba(122, 233, 221, 0.86);
  background: linear-gradient(150deg, rgba(10, 104, 127, 0.96), rgba(36, 173, 170, 0.9));
  color: #f1ffff;
}

body.dense-ui.shell-profile-facturacion.shell-single-module .module-nav,
body.dense-ui.shell-profile-comercial.shell-single-module .module-nav,
body.dense-ui.shell-profile-mantenimiento.shell-single-module .module-nav {
  grid-template-columns: minmax(0, 1fr);
}

body.dense-ui.shell-profile-facturacion.shell-single-module .module-link,
body.dense-ui.shell-profile-comercial.shell-single-module .module-link,
body.dense-ui.shell-profile-mantenimiento.shell-single-module .module-link {
  min-height: 3.18rem;
  padding: 0.62rem 0.82rem;
  border-radius: 1.08rem;
}

body.dense-ui.shell-profile-facturacion.shell-single-module .module-text,
body.dense-ui.shell-profile-comercial.shell-single-module .module-text,
body.dense-ui.shell-profile-mantenimiento.shell-single-module .module-text {
  font-size: 0.98rem;
}

body.dense-ui.is-shell-condensed .topbar {
  padding: 0.4rem 0.88rem 0.3rem;
}

body.dense-ui.is-shell-condensed .profile-hero {
  padding: 0.56rem 0.64rem;
  border-radius: 0.92rem;
}

body.dense-ui.is-shell-condensed .profile-hero-title {
  font-size: 0.88rem;
}

body.dense-ui.is-shell-condensed .profile-hero-meta {
  font-size: 0.66rem;
}

body.dense-ui.is-shell-condensed .profile-hero-pill {
  font-size: 0.62rem;
}

body.dense-ui.is-shell-condensed .topbar-inner {
  gap: 0.54rem;
}

body.dense-ui.is-shell-condensed .brand-wrap,
body.dense-ui.is-shell-condensed .topnav-primary-shell,
body.dense-ui.is-shell-condensed .topnav-session,
body.dense-ui.is-shell-condensed .module-nav-frame {
  border-radius: 1.08rem;
}

body.dense-ui.is-shell-condensed .brand-wrap {
  padding: 0.58rem 0.72rem;
}

body.dense-ui.is-shell-condensed .brand {
  font-size: 1.36rem;
}

body.dense-ui.is-shell-condensed .brand-datetime {
  padding: 0.1rem 0.42rem;
}

body.dense-ui.is-shell-condensed .topnav-primary-shell,
body.dense-ui.is-shell-condensed .topnav-session {
  padding: 0.52rem 0.64rem;
}

body.dense-ui.is-shell-condensed .topnav-shell-label,
body.dense-ui.is-shell-condensed .top-user-kicker,
body.dense-ui.is-shell-condensed .module-nav-kicker,
body.dense-ui.is-shell-condensed .workspace-rail-label {
  display: none;
}

body.dense-ui.is-shell-condensed .topnav-primary .button,
body.dense-ui.is-shell-condensed .topnav-exit {
  min-height: 2.02rem;
  padding: 0.28rem 0.72rem;
  border-radius: 0.76rem;
  font-size: 0.82rem;
}

body.dense-ui.is-shell-condensed .top-user-card,
body.dense-ui.is-shell-condensed .top-user-menu-summary {
  min-height: 3.58rem;
}

body.dense-ui.is-shell-condensed .top-user-menu-summary {
  padding-left: 3rem;
}

body.dense-ui.is-shell-condensed .top-user-menu-summary::before {
  width: 2.16rem;
  height: 2.16rem;
}

body.dense-ui.is-shell-condensed .top-user-name {
  font-size: 0.74rem;
}

body.dense-ui.is-shell-condensed .module-nav-shell {
  margin-top: 0.32rem;
}

body.dense-ui.is-shell-condensed .module-nav-frame {
  padding: 0.54rem 0.66rem 0.58rem;
}

body.dense-ui.is-shell-condensed .module-link {
  min-height: 2.12rem;
  gap: 0.44rem;
  padding: 0.32rem 0.46rem;
  border-radius: 0.82rem;
  font-size: 0.76rem;
}

body.dense-ui.is-shell-condensed .module-icon {
  width: 1.38rem;
  height: 1.38rem;
}

@media (max-width: 1180px) {
  body.dense-ui .topbar-inner {
    grid-template-columns: 1fr;
  }

  body.dense-ui .topnav-suite {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 296px);
  }

  body.dense-ui .module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.dense-ui .topbar {
    padding: 0.66rem 0.78rem 0.54rem;
  }

  body.dense-ui .brand-wrap,
  body.dense-ui .topnav-primary-shell,
  body.dense-ui .topnav-session,
  body.dense-ui .topnav-auth-shell,
  body.dense-ui .module-nav-frame,
  body.dense-ui .workspace-rail-shell {
    border-radius: 1.04rem;
  }

  body.dense-ui .brand-wrap {
    padding: 0.84rem 0.88rem;
  }

  body.dense-ui .brand {
    font-size: 1.46rem;
  }

  body.dense-ui .topnav-suite {
    grid-template-columns: 1fr;
  }

  body.dense-ui .topnav-primary-shell,
  body.dense-ui .topnav-session,
  body.dense-ui .topnav-auth-shell {
    padding: 0.72rem 0.8rem;
  }

  body.dense-ui .top-user-menu-summary {
    padding-left: 3.08rem;
    min-height: 4.08rem;
  }

  body.dense-ui .module-nav-frame {
    padding: 0.76rem 0.82rem 0.86rem;
  }

  body.dense-ui .module-nav-head {
    gap: 0.4rem;
  }

  body.dense-ui .workspace-rail-shell {
    padding: 0.52rem 0.62rem;
  }

  body.dense-ui .workspace-chip {
    min-height: 2rem;
  }
}

/* Shell compact refinement | 2026-03-13 */
body.dense-ui .topbar {
  padding: 0.5rem 0.76rem 0.4rem;
}

body.dense-ui .topbar::after {
  inset: 0.18rem 0.98rem auto 0.98rem;
  height: 156px;
  border-radius: 1.02rem;
}

body.dense-ui .topbar-inner,
body.dense-ui .module-nav-shell {
  max-width: 1328px;
}

body.dense-ui .topbar-inner {
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: 0.48rem;
}

body.dense-ui .brand-wrap {
  padding: 0.66rem 0.76rem;
  border-radius: 0.98rem;
}

body.dense-ui .brand {
  font-size: 1.42rem;
}

body.dense-ui .brand-sub {
  max-width: 21rem;
  font-size: 0.72rem;
}

body.dense-ui .brand-datetime {
  padding: 0.12rem 0.42rem;
}

body.dense-ui .brand-date {
  font-size: 0.54rem;
}

body.dense-ui .brand-time {
  font-size: 0.7rem;
}

body.dense-ui .topnav-suite {
  grid-template-columns: minmax(0, 1fr) minmax(204px, 228px);
  gap: 0.46rem;
}

body.dense-ui .topnav-primary-shell,
body.dense-ui .topnav-auth-shell,
body.dense-ui .topnav-session {
  padding: 0.58rem 0.64rem;
  border-radius: 0.98rem;
}

body.dense-ui .topnav-shell-label {
  display: none;
}

body.dense-ui .topnav-primary {
  gap: 0.28rem;
}

body.dense-ui .topnav-primary .button,
body.dense-ui .topnav-exit {
  min-height: 1.98rem;
  padding: 0.26rem 0.68rem;
  border-radius: 0.78rem;
  font-size: 0.8rem;
}

body.dense-ui .topnav-session {
  padding: 0.42rem 0.5rem;
  overflow: visible;
  z-index: 3;
}

body.dense-ui .top-user-menu {
  width: 100%;
  z-index: 4;
}

body.dense-ui .top-user-card,
body.dense-ui .top-user-menu-summary {
  min-height: 3.52rem;
}

body.dense-ui .top-user-menu-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
}

body.dense-ui .top-user-menu-summary::before {
  content: none;
}

body.dense-ui .top-user-avatar {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  border: 1px solid rgba(157, 208, 244, 0.28);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(14, 99, 164, 0.98), rgba(10, 52, 92, 0.94));
  color: #eef7ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 18px rgba(3, 16, 32, 0.2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.dense-ui .top-user-avatar.has-photo {
  color: transparent;
}

body.dense-ui .top-user-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

body.dense-ui .top-user-head {
  justify-content: space-between;
  align-items: center;
  gap: 0.46rem;
}

body.dense-ui .top-user-name {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.18;
}

body.dense-ui .top-user-meta {
  margin: 0;
  gap: 0.18rem;
  max-height: none;
}

body.dense-ui .top-user-datetime {
  gap: 0.26rem;
  margin-top: 0.06rem;
  padding: 0.16rem 0.34rem 0.18rem;
  border-color: rgba(143, 191, 229, 0.18);
  background: linear-gradient(155deg, rgba(4, 23, 42, 0.28), rgba(11, 57, 95, 0.16));
}

body.dense-ui .top-user-date {
  font-size: 0.43rem;
  letter-spacing: 0.11em;
}

body.dense-ui .top-user-time {
  padding-left: 0.26rem;
  font-size: 0.48rem;
}

body.dense-ui .top-user-pill {
  padding: 0.14rem 0.42rem;
  font-size: 0.5rem;
}

body.dense-ui .top-user-menu-panel {
  top: calc(100% + 0.4rem);
  width: min(238px, calc(100vw - 1.6rem));
  padding: 0.5rem;
  border-radius: 0.92rem;
}

body.dense-ui .top-user-menu-link,
body.dense-ui .topnav-exit {
  min-height: 2.02rem;
  border-radius: 0.78rem;
  font-size: 0.76rem;
}

body.dense-ui .module-nav-shell {
  margin-top: 0.32rem;
  gap: 0.32rem;
}

body.dense-ui .module-nav-frame {
  padding: 0.58rem 0.68rem 0.72rem;
  border-radius: 0.98rem;
}

body.dense-ui .module-nav-head {
  margin-bottom: 0.42rem;
}

body.dense-ui .module-nav-kicker {
  display: none;
}

body.dense-ui .module-nav-title {
  font-size: 0.86rem;
}

body.dense-ui .module-nav-caption {
  max-width: 20rem;
  font-size: 0.64rem;
}

body.dense-ui .module-nav {
  gap: 0.34rem;
}

body.dense-ui .module-link {
  min-height: 2.28rem;
  gap: 0.46rem;
  padding: 0.34rem 0.46rem;
  border-radius: 0.8rem;
  font-size: 0.78rem;
}

body.dense-ui .module-icon {
  width: 1.38rem;
  height: 1.38rem;
}

body.dense-ui .module-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

body.dense-ui .module-text {
  font-size: 0.78rem;
}

body.dense-ui .workspace-rail-shell {
  padding: 0.34rem 0.46rem;
  gap: 0.36rem;
  border-radius: 0.84rem;
}

body.dense-ui .workspace-rail-label {
  display: none;
}

body.dense-ui .workspace-rail {
  gap: 0.28rem;
}

body.dense-ui .workspace-chip {
  padding: 0.12rem 0.4rem;
  border-radius: 0.7rem;
  font-size: 0.58rem;
}

body.dense-ui.is-shell-condensed .topbar {
  padding: 0.24rem 0.7rem 0.16rem;
}

body.dense-ui.is-shell-condensed .topbar::after {
  inset-inline: 0.82rem;
  height: 108px;
}

body.dense-ui.is-shell-condensed .brand-wrap,
body.dense-ui.is-shell-condensed .topnav-primary-shell,
body.dense-ui.is-shell-condensed .topnav-session,
body.dense-ui.is-shell-condensed .module-nav-frame {
  border-radius: 0.82rem;
}

body.dense-ui.is-shell-condensed .brand-wrap {
  padding: 0.34rem 0.42rem;
}

body.dense-ui.is-shell-condensed .brand {
  font-size: 1.06rem;
}

body.dense-ui.is-shell-condensed .brand-sub,
body.dense-ui.is-shell-condensed .tag-chip,
body.dense-ui.is-shell-condensed .profile-hero-kicker,
body.dense-ui.is-shell-condensed .profile-hero-meta,
body.dense-ui.is-shell-condensed .module-nav-caption {
  display: none;
}

body.dense-ui.is-shell-condensed .brand-row {
  gap: 0.28rem;
}

body.dense-ui.is-shell-condensed .brand-datetime {
  padding: 0.08rem 0.32rem;
}

body.dense-ui.is-shell-condensed .topbar-inner {
  gap: 0.36rem;
}

body.dense-ui.is-shell-condensed .topnav-suite {
  grid-template-columns: minmax(0, 1fr) minmax(252px, 298px);
  align-items: center;
}

body.dense-ui.is-shell-condensed .topnav-primary-shell,
body.dense-ui.is-shell-condensed .topnav-session {
  padding: 0.32rem 0.38rem;
}

body.dense-ui.is-shell-condensed .topnav-primary-shell-profile .profile-hero {
  display: none;
}

body.dense-ui.is-shell-condensed .topnav-primary-shell-profile .topnav-primary {
  min-height: 0;
}

body.dense-ui.is-shell-condensed .profile-hero {
  gap: 0.42rem;
  padding: 0.32rem 0.4rem;
  min-height: 0;
}

body.dense-ui.is-shell-condensed .profile-hero-title {
  font-size: 0.74rem;
}

body.dense-ui.is-shell-condensed .profile-hero-pill {
  padding: 0.14rem 0.42rem;
  font-size: 0.52rem;
}

body.dense-ui.is-shell-condensed .topnav-primary .button,
body.dense-ui.is-shell-condensed .topnav-exit {
  min-height: 1.72rem;
  padding: 0.2rem 0.52rem;
  border-radius: 0.66rem;
  font-size: 0.72rem;
}

body.dense-ui.is-shell-condensed .top-user-card,
body.dense-ui.is-shell-condensed .top-user-menu-summary {
  min-height: 2.86rem;
}

body.dense-ui.is-shell-condensed .top-user-menu,
body.dense-ui.is-shell-condensed .top-user-card {
  width: 100%;
}

body.dense-ui.is-shell-condensed .top-user-menu-summary {
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.42rem;
}

body.dense-ui.is-shell-condensed .top-user-avatar {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.6rem;
  font-size: 0.72rem;
}

body.dense-ui.is-shell-condensed .top-user-summary-copy {
  gap: 0.08rem;
}

body.dense-ui.is-shell-condensed .top-user-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem;
}

body.dense-ui.is-shell-condensed .top-user-name {
  font-size: 0.68rem;
  line-height: 1.04;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dense-ui.is-shell-condensed .top-user-chevron {
  width: 0.78rem;
  height: 0.78rem;
}

body.dense-ui.is-shell-condensed .top-user-meta {
  margin-top: 0.04rem;
  flex-wrap: nowrap;
  gap: 0.16rem;
  max-width: 100%;
  max-height: none;
}

body.dense-ui.is-shell-condensed .top-user-datetime {
  gap: 0.18rem;
  margin-top: 0.04rem;
  padding: 0.12rem 0.3rem 0.14rem;
}

body.dense-ui.is-shell-condensed .top-user-date {
  font-size: 0.38rem;
  letter-spacing: 0.1em;
}

body.dense-ui.is-shell-condensed .top-user-time {
  padding-left: 0.22rem;
  font-size: 0.43rem;
}

body.dense-ui.is-shell-condensed .top-user-pill {
  min-width: 0;
  padding: 0.1rem 0.34rem;
  font-size: 0.46rem;
  white-space: nowrap;
}

body.dense-ui.is-shell-condensed .top-user-pill-accent {
  max-width: 6.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dense-ui.is-shell-condensed .top-user-divider {
  flex: 0 0 auto;
}

body.dense-ui.is-shell-condensed .module-nav-frame {
  padding: 0.34rem 0.4rem 0.4rem;
}

body.dense-ui.is-shell-condensed .module-nav-head {
  margin-bottom: 0.26rem;
}

body.dense-ui.is-shell-condensed .module-link {
  min-height: 1.78rem;
  gap: 0.34rem;
  padding: 0.24rem 0.32rem;
  font-size: 0.68rem;
}

body.dense-ui.is-shell-condensed .module-icon {
  width: 1.18rem;
  height: 1.18rem;
}

body.dense-ui.is-shell-condensed .workspace-rail-shell {
  padding: 0.28rem 0.36rem;
  gap: 0.3rem;
}

body.dense-ui.is-shell-condensed .workspace-chip {
  padding: 0.08rem 0.32rem;
  font-size: 0.54rem;
}

/* Sticky shell stability | 2026-03-13 */
body.dense-ui .topbar,
body.dense-ui .topbar::before,
body.dense-ui .topbar::after,
body.dense-ui .topbar-inner,
body.dense-ui .brand-wrap,
body.dense-ui .brand-head,
body.dense-ui .brand-copy,
body.dense-ui .brand-meta-cluster,
body.dense-ui .brand,
body.dense-ui .brand-datetime,
body.dense-ui .brand-date,
body.dense-ui .brand-time,
body.dense-ui .brand-row,
body.dense-ui .brand-sub,
body.dense-ui .tag-chip,
body.dense-ui .topnav-suite,
body.dense-ui .topnav-primary-shell,
body.dense-ui .topnav-session,
body.dense-ui .profile-hero,
body.dense-ui .profile-hero-title,
body.dense-ui .profile-hero-pill,
body.dense-ui .topnav-primary .button,
body.dense-ui .topnav-exit,
body.dense-ui .top-user-card,
body.dense-ui .top-user-menu-summary,
body.dense-ui .top-user-avatar,
body.dense-ui .top-user-summary-copy,
body.dense-ui .top-user-head,
body.dense-ui .top-user-name,
body.dense-ui .top-user-meta,
body.dense-ui .top-user-pill,
body.dense-ui .module-nav-shell,
body.dense-ui .module-nav-frame,
body.dense-ui .module-nav-head,
body.dense-ui .module-link,
body.dense-ui .module-icon,
body.dense-ui .workspace-rail-shell,
body.dense-ui .workspace-chip {
  transition: none;
}

@media (max-width: 1180px) {
  body.dense-ui .topbar-inner,
  body.dense-ui .module-nav-shell {
    max-width: 100%;
  }

  body.dense-ui .topnav-suite {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.dense-ui .topbar {
    padding: 0.58rem 0.74rem 0.48rem;
  }

  body.dense-ui .profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.dense-ui .profile-hero-pill {
    align-self: flex-start;
  }

  body.dense-ui .topbar::after {
    inset-inline: 0.86rem;
  }

  body.dense-ui .brand-wrap,
  body.dense-ui .topnav-primary-shell,
  body.dense-ui .topnav-session,
  body.dense-ui .module-nav-frame,
  body.dense-ui .workspace-rail-shell {
    border-radius: 0.96rem;
  }

  body.dense-ui .brand-wrap {
    padding: 0.72rem 0.78rem;
  }

  body.dense-ui .brand {
    font-size: 1.34rem;
  }

  body.dense-ui .topnav-primary-shell,
  body.dense-ui .topnav-session,
  body.dense-ui .topnav-auth-shell {
    padding: 0.64rem 0.7rem;
  }

  body.dense-ui .top-user-menu-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.dense-ui .top-user-menu-panel {
    width: 100%;
  }

  body.dense-ui .module-nav-frame {
    padding: 0.68rem 0.74rem 0.78rem;
  }
}
/* Unified Dashboard Styles */
.contract-registry-dashboard-shell {
  border-color: #cadceb;
  background:
    radial-gradient(220px 120px at 100% 0%, rgba(73, 165, 216, 0.12), transparent 72%),
    radial-gradient(180px 90px at 0% 100%, rgba(14, 116, 144, 0.05), transparent 74%),
    linear-gradient(180deg, #fcfeff, #f4f9ff);
  box-shadow: 0 16px 34px rgba(10, 45, 79, 0.05);
}

.contract-registry-gestion-section-card {
  margin-top: 0.96rem;
}

.contract-registry-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.contract-registry-dashboard-card {
  border: 1px solid #d4e1ee;
  border-radius: 16px;
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(79, 160, 213, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 174px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  box-shadow:
    0 10px 28px rgba(11, 43, 75, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.contract-registry-dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 45, 79, 0.1);
  border-color: #b7cadd;
}

.contract-registry-dashboard-card__chrome {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(16, 77, 154, 0.9), rgba(53, 150, 228, 0.65), transparent 88%);
}

.contract-registry-dashboard-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.contract-registry-dashboard-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(129, 160, 193, 0.36);
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.9);
  color: #5b748e;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-registry-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 95, 163, 0.12), rgba(67, 142, 221, 0.18));
  color: #0f5f9f;
  border: 1px solid rgba(86, 147, 202, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.contract-registry-dashboard-card--total .contract-registry-card-icon {
  background: linear-gradient(180deg, rgba(145, 99, 24, 0.14), rgba(214, 155, 43, 0.2));
  color: #8a5d10;
}

.contract-registry-dashboard-card--recent .contract-registry-card-icon {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.14), rgba(45, 212, 191, 0.18));
  color: #0f766e;
}

.contract-registry-dashboard-value {
  font-size: 2rem;
  font-weight: 800;
  color: #163d63;
  margin-top: 0.22rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.contract-registry-dashboard-footnote {
  margin: auto 0 0;
  color: #5f7891;
  font-size: 0.78rem;
  line-height: 1.42;
}

.contract-registry-dashboard-card .kpi-label {
  margin: 0;
  color: #55718d;
  font-size: 0.69rem;
  letter-spacing: 0.11em;
}

.contract-registry-dashboard-card--wide {
  min-height: 0;
  padding-bottom: 18px;
}

.contract-registry-dashboard-card--mix .contract-registry-dashboard-card__top {
  margin-bottom: 0.7rem;
}

.contract-registry-dashboard-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contract-registry-dashboard-chipset .pill {
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
  border-color: #c8daec;
  color: #3d6287;
}

.contract-registry-gestion-table-wrap .expand-icon-cell {
  color: #8faecb;
}

.contract-registry-gestion-table-wrap .js-expandable-row:hover {
  background: #fdfdfd;
}

.contract-registry-gestion-table-wrap .js-expandable-row[aria-expanded="true"] {
  background: #fdfdfd;
}

.contract-registry-gestion-table-wrap .js-expandable-row[aria-expanded="true"] .chevron-icon {
  transform: rotate(90deg);
  color: #1d75bc;
}

@media (max-width: 920px) {
  .contract-registry-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .contract-registry-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Bug fixes for Unified Dashboard SVG blowing up */
.contract-registry-dashboard-card svg {
  width: 100%;
  height: 100%;
}
.contract-registry-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.contract-registry-gestion-table-wrap {
  margin-top: 0.84rem;
}


/* ────────────────────────────────────────────────────────────
   CR View Selector – Executive Tab Cards (Premium Redesign)
   ──────────────────────────────────────────────────────────── */
.cr-view-selector {
  padding: 0;
  background: transparent;
  margin-bottom: 0;
}
.cr-view-selector__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.cr-view-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(10, 30, 50, 0.65), rgba(15, 40, 65, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-muted);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  cursor: pointer;
}
.cr-view-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0));
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.cr-view-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(56, 189, 248, 0.12);
}
.cr-view-card:hover::before {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.06), rgba(14, 165, 233, 0.03));
}
.cr-view-card--active {
  background: linear-gradient(135deg, rgba(14, 45, 75, 0.8), rgba(8, 55, 90, 0.7));
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.cr-view-card--active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #7dd3fc);
  border-radius: 14px 14px 0 0;
}
/* Icon */
.cr-view-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.12);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.cr-view-card__icon svg {
  width: 22px;
  height: 22px;
  color: rgba(56, 189, 248, 0.6);
  transition: color 0.3s ease;
}
.cr-view-card--active .cr-view-card__icon {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}
.cr-view-card--active .cr-view-card__icon svg {
  color: #38bdf8;
}
.cr-view-card:hover .cr-view-card__icon svg {
  color: #38bdf8;
}
/* Body */
.cr-view-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.cr-view-card__kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 2px;
}
.cr-view-card--active .cr-view-card__kicker {
  color: rgba(56, 189, 248, 0.7);
}
.cr-view-card__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cr-view-card--active .cr-view-card__title {
  color: #f1f5f9;
}
.cr-view-card__desc {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.55);
  margin: 4px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cr-view-card--active .cr-view-card__desc {
  color: rgba(148, 163, 184, 0.75);
}
/* Count badge */
.cr-view-card__count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(148, 163, 184, 0.7);
  transition: all 0.3s ease;
}
.cr-view-card--active .cr-view-card__count {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}
/* Active dot indicator */
.cr-view-card__active-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  animation: cr-dot-pulse 2s ease-in-out infinite;
}
@keyframes cr-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(56, 189, 248, 0.3); }
}



/* ────────────────────────────────────────────────────────────
   CR Edit Modal – Módulo de Jefatura (Admin Edit)
   ──────────────────────────────────────────────────────────── */
.cr-edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 10, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 24px 100px 24px;
  box-sizing: border-box;
  animation: cr-overlay-in 0.25s ease;
}
@keyframes cr-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cr-edit-modal {
  background: linear-gradient(135deg, #0b1e33 0%, #0e2a45 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh; /* Restrict height so it never cuts off */
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.08);
  animation: cr-modal-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cr-modal-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cr-edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.06), transparent);
  border-radius: 18px 18px 0 0;
}
.cr-edit-modal__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.7);
}
.cr-edit-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 4px 0 0;
}
.cr-edit-modal__close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cr-edit-modal__close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.cr-edit-modal__body {
  overflow-y: auto;
  padding: 24px 28px;
  flex: 1;
}
.cr-edit-section {
  margin-bottom: 24px;
}
.cr-edit-section:last-of-type {
  margin-bottom: 0;
}
.cr-edit-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(56, 189, 248, 0.6);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cr-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cr-edit-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.cr-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cr-edit-field > span {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.3px;
}
.cr-edit-field input,
.cr-edit-field textarea,
.cr-edit-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #e2e8f0;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.cr-edit-field input:focus,
.cr-edit-field textarea:focus,
.cr-edit-field select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}
.cr-edit-field input::placeholder,
.cr-edit-field textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}
.cr-edit-modal__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cr-edit-feedback {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.cr-edit-feedback--ok {
  color: #22c55e;
}
.cr-edit-feedback--err {
  color: #ef4444;
}
.cr-edit-modal__footer .button-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-edit-modal__footer .button-primary:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}
.cr-edit-modal__footer .button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cr-edit-modal__footer .button-soft {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.cr-edit-modal__footer .button-soft:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/*  PREMIUM CONTRACT REGISTRY NAV (2026)  */
.cr-view-selector {
  margin-top: 0.86rem;
  margin-bottom: 0.96rem;
}

.cr-view-selector__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.64rem;
}

.cr-view-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.76rem;
  padding: 0.76rem 0.82rem;
  border-radius: 0.86rem;
  background: linear-gradient(145deg, rgba(22, 34, 49, 0.9), rgba(13, 22, 34, 0.96));
  border: 1px solid rgba(98, 126, 161, 0.22);
  box-shadow: 0 10px 24px rgba(4, 18, 31, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: #e2e8f0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.cr-view-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cr-view-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(33, 51, 79, 0.9), rgba(18, 34, 56, 0.96));
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow: 0 14px 28px rgba(4, 18, 31, 0.2), 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.cr-view-card:hover::before {
  opacity: 1;
}

.cr-view-card--active {
  background: linear-gradient(145deg, rgba(26, 94, 190, 0.98), rgba(21, 74, 155, 0.98));
  border-color: rgba(147, 197, 253, 0.88);
  box-shadow: 0 16px 34px rgba(16, 75, 149, 0.28), inset 0 0 0 1px rgba(191, 219, 254, 0.18);
}

.cr-view-card--active::before {
  opacity: 1;
  background: linear-gradient(90deg, rgba(186, 230, 253, 0.3), rgba(255, 255, 255, 0.96), rgba(186, 230, 253, 0.3));
}

.cr-view-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cr-view-card__icon svg {
  width: 18px;
  height: 18px;
}

.cr-view-motion {
  position: relative;
  width: 24px;
  height: 24px;
}

.cr-view-motion--ingreso .cr-view-track,
.cr-view-motion--ingreso .cr-view-doc,
.cr-view-motion--ingreso .cr-view-folder,
.cr-view-motion--ingreso .cr-view-archive,
.cr-view-motion--ingreso .cr-view-led {
  position: absolute;
  display: block;
}

.cr-view-motion--ingreso .cr-view-track {
  left: 5px;
  right: 4px;
  top: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.08), rgba(255, 255, 255, 0.82), rgba(147, 197, 253, 0.1));
  box-shadow: 0 0 8px rgba(191, 219, 254, 0.25);
  animation: crIngresoTrackFlow 3.6s ease-in-out infinite;
}

.cr-view-motion--ingreso .cr-view-doc {
  top: 0;
  left: 1px;
  width: 10px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(219, 234, 254, 0.3));
  box-shadow:
    inset 0 -5px 0 rgba(186, 230, 253, 0.16),
    0 2px 10px rgba(148, 197, 255, 0.18);
  animation: crIngresoDocFlow 3.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  z-index: 3;
}

.cr-view-motion--ingreso .cr-view-doc::before,
.cr-view-motion--ingreso .cr-view-doc::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1.3px;
  border-radius: 999px;
  background: currentColor;
}

.cr-view-motion--ingreso .cr-view-doc::before {
  top: 4px;
}

.cr-view-motion--ingreso .cr-view-doc::after {
  top: 7px;
}

.cr-view-motion--ingreso .cr-view-folder {
  left: 7px;
  bottom: 4px;
  width: 11px;
  height: 8px;
  border: 1.6px solid currentColor;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(96, 165, 250, 0.08));
  opacity: 0.9;
  box-shadow: inset 0 -4px 0 rgba(59, 130, 246, 0.1);
}

.cr-view-motion--ingreso .cr-view-folder::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 6px;
  height: 4px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: rgba(191, 219, 254, 0.22);
}

.cr-view-motion--ingreso .cr-view-archive {
  right: 0;
  bottom: 0;
  width: 8px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(96, 165, 250, 0.04));
  opacity: 0.88;
  box-shadow: inset 0 -4px 0 rgba(59, 130, 246, 0.08);
}

.cr-view-motion--ingreso .cr-view-archive::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 2px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
}

.cr-view-motion--ingreso .cr-view-led {
  right: 2px;
  bottom: 2px;
  width: 2.8px;
  height: 2.8px;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.75);
  animation: crIngresoLedBlink 3.6s ease-in-out infinite;
}

.cr-view-motion--gestion .cr-view-bar,
.cr-view-motion--gestion .cr-view-dollar {
  position: absolute;
}

.cr-view-motion--gestion .cr-view-bar {
  bottom: 1px;
  width: 4px;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), currentColor);
  transform-origin: bottom center;
  animation: crGestionBarsGrow 2.9s ease-in-out infinite;
}

.cr-view-motion--gestion .cr-view-bar--one {
  left: 2px;
  height: 7px;
  animation-delay: 0s;
}

.cr-view-motion--gestion .cr-view-bar--two {
  left: 9px;
  height: 12px;
  animation-delay: 0.18s;
}

.cr-view-motion--gestion .cr-view-bar--three {
  left: 16px;
  height: 17px;
  animation-delay: 0.34s;
}

.cr-view-motion--gestion .cr-view-dollar {
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%) scale(0.72);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  opacity: 0;
  animation: crGestionDollarReveal 2.9s ease-in-out infinite;
}

@keyframes crIngresoDocFlow {
  0%, 12% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translate3d(6px, 7px, 0) scale(0.94);
    opacity: 0.98;
  }
  48% {
    transform: translate3d(8px, 8px, 0) scale(0.74);
    opacity: 0.28;
  }
  62% {
    transform: translate3d(15px, 10px, 0) scale(0.56);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes crIngresoTrackFlow {
  0%, 18%, 100% {
    opacity: 0.28;
    transform: scaleX(0.86);
  }
  32%, 72% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes crIngresoLedBlink {
  0%, 58%, 100% {
    opacity: 0.2;
    transform: scale(0.75);
  }
  68%, 82% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes crGestionBarsGrow {
  0%, 18% {
    opacity: 0.42;
    transform: scaleY(0.24);
  }
  34%, 48% {
    opacity: 1;
    transform: scaleY(1);
  }
  64%, 100% {
    opacity: 0.14;
    transform: scaleY(0.1);
  }
}

@keyframes crGestionDollarReveal {
  0%, 56% {
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
  }
  70%, 86% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.84);
  }
}

.cr-view-card:hover .cr-view-card__icon {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  transform: scale(1.05);
}

.cr-view-card--active .cr-view-card__icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(219, 234, 254, 0.42);
  color: #eff6ff;
}

.cr-view-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.cr-view-card__kicker {
  font-size: 0.54rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 0.12rem;
  transition: color 0.3s ease;
}

.cr-view-card:hover .cr-view-card__kicker {
  color: #94a3b8;
}

.cr-view-card--active .cr-view-card__kicker {
  color: #dbeafe;
}

.cr-view-card__title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.cr-view-card__desc {
  font-size: 0.72rem;
  line-height: 1.26;
  color: #94a3b8;
  margin: 0;
  max-width: 32ch;
}

.cr-view-card--active .cr-view-card__title {
  color: #ffffff;
}

.cr-view-card--active .cr-view-card__desc {
  color: #eff6ff;
}

.cr-view-card__count {
  position: absolute;
  top: 0.68rem;
  right: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.14rem 0.44rem;
  border-radius: 9999px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s ease, color 0.3s ease;
}

.cr-view-card--active .cr-view-card__count {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(219, 234, 254, 0.4);
  color: #ffffff;
}

.cr-view-card__active-dot {
  position: absolute;
  top: 0.44rem;
  right: 0.44rem;
  width: 6px;
  height: 6px;
  background-color: #dbeafe;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(219, 234, 254, 0.95);
  animation: crPulseGlow 2s infinite ease-in-out;
}

@keyframes crPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Auto-Fit for Small Laptops (1366x768) */
@media (max-height: 850px) and (min-width: 961px) {
  .login-shell {
    min-height: calc(100vh - 80px);
    padding: 0.5rem 0;
  }
  .login-workbench {
    padding: clamp(1.5rem, 3vh, 2.5rem) !important;
  }
  .login-visual-panel {
    padding: clamp(1.5rem, 3vh, 2.5rem) !important;
  }
  .login-workbench h1 {
    font-size: clamp(1.8rem, 4vh, 2.35rem) !important;
  }
  .login-visual-copy h2 {
    font-size: clamp(1.4rem, 3.5vh, 2rem) !important;
  }
  .login-card, .login-stage-card {
    border-radius: 1.25rem;
  }
  .login-form-panel {
    padding: 1.25rem !important;
  }
  .login-flow-stack {
    min-height: 18rem !important;
  }
  .login-flow-card {
    padding: 0.8rem 1rem !important;
  }
  .login-flow-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-height: 720px) and (min-width: 961px) {
  .login-stage-card {
    zoom: 0.9;
  }
}

