:root {
  color-scheme: light;
  --teal: #087e80;
  --teal-bright: #18a9a5;
  --teal-dark: #00464d;
  --teal-deep: #002f37;
  --cyan-soft: #d9f4f1;
  --green: #147a50;
  --amber: #a15c08;
  --red: #b42332;
  --ink: #171d1e;
  --ink-soft: #283233;
  --muted: #526160;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --background: #f3f6f5;
  --border: #b8c8c5;
  --border-light: #dce5e3;
  --focus: #006f77;
  --radius: 22px;
  --shadow: 0 18px 48px rgba(5, 44, 47, 0.1);
  --shadow-teal: 0 16px 34px rgba(0, 71, 75, 0.2);
  font-family: Montserrat, "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--background);
  background-image:
    linear-gradient(rgba(5, 104, 105, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 104, 105, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 86% 9%, rgba(38, 190, 183, 0.13), transparent 27rem);
  background-size:
    88px 88px,
    88px 88px,
    auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.17;
  background-image: radial-gradient(rgba(4, 45, 47, 0.32) 0.45px, transparent 0.7px);
  background-size: 4px 4px;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--teal-dark);
  text-underline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.15rem, 4.8vw, 4.25rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.2;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--teal-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  width: fit-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 0.02rem;
  line-height: 1.05;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-inverse {
  color: white;
}

.brand-inverse .brand-copy small {
  color: rgba(220, 250, 247, 0.68);
}

.brand-mark {
  display: inline-grid;
  width: 3.4rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(104, 233, 226, 0.55);
  border-radius: 999px;
  color: white;
  background:
    linear-gradient(115deg, rgba(88, 231, 220, 0.72), transparent 38%),
    linear-gradient(145deg, #0d9b98, #004249 78%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 8px 18px rgba(0, 55, 61, 0.28);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease;
}

.brand-mark-light {
  border-color: rgba(112, 239, 230, 0.58);
  color: white;
}

.system-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(34rem, 100%);
  margin: auto 0 2rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.system-label i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-bright), transparent);
  transform-origin: left center;
  animation: line-grow 650ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(22rem, 0.72fr);
  min-height: 100vh;
  isolation: isolate;
}

.login-layout::after {
  position: absolute;
  left: clamp(1.5rem, 7vw, 8rem);
  top: 11%;
  z-index: -1;
  content: "NW";
  color: transparent;
  font-size: clamp(12rem, 32vw, 38rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.16em;
  -webkit-text-stroke: 1px rgba(5, 126, 126, 0.1);
  opacity: 0.75;
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 7rem);
  color: var(--ink);
  animation: surface-enter 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-intro .brand {
  margin-bottom: 3rem;
}

.login-intro h1 {
  max-width: 58rem;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 7.4vw, 8.25rem);
}

.accent-word {
  color: var(--teal);
  text-shadow: 0 10px 28px rgba(11, 142, 139, 0.16);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li,
.platform-chip,
.sidebar-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 680;
  box-shadow: 0 8px 25px rgba(14, 58, 59, 0.05);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.login-card {
  position: relative;
  align-self: center;
  display: grid;
  gap: 1.25rem;
  width: min(30rem, calc(100% - 2rem));
  margin: 2rem auto;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  overflow: hidden;
  border: 1px solid rgba(177, 204, 199, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 70px rgba(6, 58, 61, 0.15);
  backdrop-filter: blur(18px);
  animation: card-enter 720ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--teal-dark), #4ad9cf, var(--teal-dark));
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field label,
legend {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.78rem 0.92rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #6c9591;
  background: white;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(13, 148, 145, 0.14);
}

.field-error {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
}

.status-message {
  min-height: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.status-message.is-error {
  color: var(--red);
  animation: status-enter 220ms ease-out both;
}

.status-message.is-success {
  color: var(--green);
  animation: status-enter 220ms ease-out both;
}

.button {
  min-height: 2.75rem;
  padding: 0.68rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button-primary {
  border-color: rgba(71, 205, 196, 0.65);
  color: white;
  background:
    radial-gradient(circle at 16% 20%, rgba(92, 232, 220, 0.52), transparent 32%),
    linear-gradient(120deg, #0b9793, #00454c 76%);
  box-shadow:
    var(--shadow-teal),
    inset 0 1px rgba(255, 255, 255, 0.45);
}

.button-primary:hover:not(:disabled) {
  filter: saturate(1.1) brightness(1.07);
  box-shadow:
    0 20px 38px rgba(0, 65, 70, 0.27),
    inset 0 1px rgba(255, 255, 255, 0.55);
}

.button-secondary {
  border-color: var(--border);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.88);
}

.button-secondary:hover:not(:disabled) {
  border-color: #6b9692;
  background: white;
  box-shadow: 0 10px 22px rgba(10, 58, 59, 0.09);
}

.button-danger {
  border-color: #e7b8bd;
  color: var(--red);
  background: #fff6f6;
}

.button-block {
  width: 100%;
}

.icon-button {
  display: none;
  min-height: 2.55rem;
  padding: 0.52rem 0.86rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
}

.app-layout {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: calc(100vh - 2rem);
  margin: 1rem 0 1rem 1rem;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(89, 203, 196, 0.2);
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 15% 3%, rgba(45, 194, 185, 0.3), transparent 31%),
    linear-gradient(155deg, #083f45, #001f28 72%);
  box-shadow: 0 25px 55px rgba(0, 32, 39, 0.22);
}

.sidebar .brand {
  width: 100%;
}

.sidebar .brand-mark {
  flex: 0 0 auto;
}

.sidebar .brand-copy {
  min-width: 0;
  font-size: 0.82rem;
}

.sidebar::after {
  position: absolute;
  right: -4rem;
  bottom: -1rem;
  content: "NW";
  color: transparent;
  font-size: 9rem;
  font-weight: 900;
  letter-spacing: -0.18em;
  -webkit-text-stroke: 1px rgba(99, 232, 222, 0.11);
  pointer-events: none;
}

.sidebar-status {
  border-color: rgba(127, 225, 217, 0.17);
  color: #d9f8f4;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.sidebar-status span,
.platform-chip span {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: #32c98d;
  box-shadow: 0 0 0 4px rgba(50, 201, 141, 0.14);
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.nav-item {
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  column-gap: 0.38rem;
  align-items: center;
  width: 100%;
  padding: 0.78rem 0.88rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #bcd5d3;
  background: transparent;
  text-align: left;
  font-weight: 650;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-item span {
  color: #5d908e;
  font-size: 0.59rem;
  letter-spacing: 0.08em;
}

.nav-item:hover {
  border-color: rgba(116, 226, 218, 0.12);
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.is-active {
  border-color: rgba(129, 240, 231, 0.35);
  color: #003f44;
  background: linear-gradient(100deg, #c9f4ef, #f5fffd);
  box-shadow: 0 12px 24px rgba(0, 12, 16, 0.2);
}

.nav-item.is-active span {
  color: var(--teal);
}

.sidebar-help {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  margin-top: auto;
  padding: 1rem;
  border: 1px solid rgba(127, 225, 217, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
}

.sidebar-help a {
  color: #8ee4dc;
}

.app-main {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 5.2rem;
  margin: 0 1rem;
  padding: 0.9rem clamp(0.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(158, 186, 181, 0.45);
}

.platform-chip {
  margin-right: auto;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.63);
}

.tenant-label,
.user-label {
  margin: 0;
  text-align: right;
}

.tenant-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 720;
}

main {
  padding: clamp(1.2rem, 4vw, 3.6rem);
}

.page-section {
  width: min(88rem, 100%);
  margin: 0 auto;
}

.page-section:not([hidden]) {
  animation: section-enter 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.page-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1 {
  margin-bottom: 0.7rem;
}

.section-heading {
  align-items: center;
  margin: 2.5rem 0 1rem;
}

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

.metric {
  position: relative;
  min-height: 8.5rem;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(183, 204, 200, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(16, 60, 59, 0.055);
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.metric::after {
  position: absolute;
  right: -1rem;
  bottom: -1.2rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(20, 159, 154, 0.16);
  border-radius: 50%;
  content: "";
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.metric strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--teal-dark);
  font-size: 2.45rem;
  line-height: 1;
  letter-spacing: -0.055em;
}

.metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 690;
  letter-spacing: 0.025em;
}

.panel {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid rgba(181, 204, 199, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(9, 51, 51, 0.055);
  backdrop-filter: blur(12px);
}

.status-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 0.8rem;
}

.readiness-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.readiness-heading h2 {
  margin-bottom: 0.4rem;
}

.readiness-score {
  display: grid;
  min-width: 7.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #99d6cb;
  border-radius: 18px;
  color: var(--muted);
  background: #edfaf7;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
}

.readiness-score strong {
  color: var(--green);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.readiness-grid > div {
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: rgba(247, 251, 250, 0.78);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.check-list,
.requirements-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.requirements-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--muted);
}

.requirements-list li::before {
  position: absolute;
  left: 0.12rem;
  top: 0.52rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  content: "";
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 126, 128, 0.1);
}

.dot {
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.28rem;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(20, 122, 80, 0.1);
}

.dot-amber {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(161, 92, 8, 0.1);
}

.provider-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: -0.7rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(132, 194, 188, 0.7);
  border-radius: 999px;
  background: rgba(235, 249, 246, 0.84);
}

.provider-strip span {
  color: var(--teal);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.provider-strip strong {
  font-size: 0.82rem;
}

.provider-strip small {
  color: var(--muted);
}

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

.step-badge {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin-bottom: 0.9rem;
  border: 1px solid #8bcfc8;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #21aaa5, #00565c);
  box-shadow: 0 8px 20px rgba(0, 83, 87, 0.2);
  font-weight: 800;
}

.choice-group {
  display: grid;
  gap: 0.68rem;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.choice-card:hover {
  border-color: var(--teal);
  background: #effaf8;
  transform: translateY(-1px);
}

.choice-card:has(input:checked) {
  border-color: var(--teal);
  background: #e9f8f5;
  box-shadow: inset 4px 0 var(--teal);
}

.choice-card input {
  margin-top: 0.28rem;
  accent-color: var(--teal);
}

.choice-card span {
  display: grid;
  gap: 0.2rem;
}

.choice-card small {
  color: var(--muted);
}

.notice {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
}

.notice p {
  margin: 0.25rem 0 0;
}

.notice-info {
  border: 1px solid #9bd6cf;
  color: #164e50;
  background: #eaf8f5;
}

.progress-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: #f2f8f7;
}

.progress-box p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.spinner {
  width: 1.3rem;
  height: 1.3rem;
  border: 3px solid #b7e5df;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.timeline {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding-left: 2.75rem;
  counter-increment: steps;
}

.timeline li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid #91c8c3;
  border-radius: 50%;
  content: counter(steps);
  color: var(--teal-dark);
  background: #f0faf8;
  font-weight: 800;
}

.timeline span {
  color: var(--muted);
  font-size: 0.86rem;
}

.connection-list {
  display: grid;
  gap: 0.8rem;
}

.connection-card {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) repeat(3, minmax(8rem, 0.7fr)) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(181, 204, 199, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(9, 51, 51, 0.05);
  animation: card-list-enter 300ms ease-out both;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.connection-card p {
  margin: 0;
}

.connection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
}

.connection-actions .button {
  min-height: 2.3rem;
  padding: 0.44rem 0.7rem;
  font-size: 0.76rem;
}

.label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border: 1px solid #cad8d5;
  border-radius: 999px;
  color: #3d4d4c;
  background: #e8efed;
  font-size: 0.7rem;
  font-weight: 760;
}

.status-connected,
.status-sent,
.status-delivered,
.status-read,
.status-approved {
  border-color: #9fd5be;
  color: #12653f;
  background: #e4f7ed;
}

.status-failed,
.status-disconnected,
.status-revoked {
  border-color: #ecc4c8;
  color: #8e1d29;
  background: #fff0f1;
}

.status-action_required,
.status-pending,
.status-queued {
  border-color: #e8cb91;
  color: #83500e;
  background: #fff7e4;
}

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

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

.table-wrap,
.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(181, 204, 199, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(9, 51, 51, 0.045);
}

.table-scroll {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table {
  min-width: 850px;
}

th,
td {
  padding: 0.82rem 0.88rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--teal-dark);
  background: #f2f8f7;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(232, 248, 245, 0.55);
}

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

.empty-state {
  padding: 1.6rem;
  border: 1px dashed #8fb6b2;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(250, 253, 252, 0.76);
  text-align: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.8rem;
  margin: 1.2rem 0 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(181, 204, 199, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(158, 186, 181, 0.55);
  color: var(--muted);
  font-size: 0.76rem;
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.toast-region {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: grid;
  gap: 0.5rem;
}

.toast {
  max-width: 25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  animation: toast-enter 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast.is-error {
  border-left-color: var(--red);
}

@keyframes surface-enter {
  from {
    opacity: 0;
    transform: translate3d(-18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sidebar-enter {
  from {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes card-list-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes line-grow {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes status-enter {
  from {
    opacity: 0;
    transform: translate3d(0, -3px, 0);
  }
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translate3d(14px, 8px, 0) scale(0.98);
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark {
    transform: translateY(-2px) rotate(-2deg);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.65),
      0 12px 24px rgba(0, 55, 61, 0.32);
  }

  .trust-list li:hover {
    border-color: rgba(8, 126, 128, 0.34);
    box-shadow: 0 12px 28px rgba(14, 58, 59, 0.09);
    transform: translateY(-2px);
  }

  .nav-item:hover {
    transform: translateX(3px);
  }

  .metric:hover,
  .connection-card:hover {
    border-color: rgba(8, 126, 128, 0.38);
    box-shadow: 0 18px 38px rgba(9, 51, 51, 0.1);
    transform: translateY(-3px);
  }

  .metric:hover::after {
    transform: scale(1.16);
  }

  .readiness-grid > div:hover {
    border-color: rgba(8, 126, 128, 0.3);
    background: rgba(248, 253, 252, 0.96);
    transform: translateY(-2px);
  }
}

@media (min-width: 901px) {
  .sidebar {
    animation: sidebar-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .provider-strip {
    grid-template-columns: auto 1fr;
    border-radius: 18px;
  }

  .provider-strip small {
    grid-column: 1 / -1;
  }
}

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

  .login-intro {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .system-label {
    margin-top: 2rem;
  }

  .login-intro h1 {
    font-size: clamp(3rem, 12vw, 6rem);
  }

  .login-card {
    margin-top: 0;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(19rem, calc(100vw - 2rem));
    height: calc(100vh - 2rem);
    margin: 1rem;
    transform: translateX(calc(-100% - 2rem));
    transition: transform 220ms ease;
  }

  .app-layout.menu-open .sidebar {
    transform: translateX(0);
  }

  .icon-button {
    display: inline-flex;
  }

  .split-layout,
  .readiness-grid,
  .form-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  body {
    background-size:
      56px 56px,
      56px 56px,
      auto;
  }

  .login-intro {
    padding: 1.35rem;
  }

  .login-intro h1 {
    font-size: clamp(2.65rem, 11vw, 3.5rem);
  }

  .login-intro .brand {
    margin-bottom: 2rem;
  }

  .system-label {
    margin-bottom: 1.25rem;
  }

  .login-card {
    width: calc(100% - 1.4rem);
    border-radius: 24px;
  }

  .topbar {
    justify-content: space-between;
    gap: 0.55rem;
    margin: 0;
    padding-inline: 0.8rem;
  }

  .platform-chip {
    display: none;
  }

  .topbar > div:not(.platform-chip) {
    margin-left: auto;
  }

  main {
    padding: 1rem;
  }

  .page-heading,
  .section-heading,
  .readiness-heading,
  .app-footer {
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

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

  .connection-actions {
    grid-column: auto;
  }

  .provider-strip {
    grid-template-columns: 1fr;
  }

  .readiness-score {
    width: 100%;
  }

  .app-footer {
    margin-inline: 0;
  }
}

/* Signal system — an original synthesis of bento, spotlight and motion patterns. */
:root {
  --teal: #0a8f86;
  --teal-bright: #39d7c4;
  --teal-dark: #005b59;
  --teal-deep: #041f22;
  --electric-mint: #72f2d1;
  --night: #061516;
  --night-soft: #0b2425;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --radius: 20px;
  --shadow: 0 24px 70px rgba(4, 38, 39, 0.12);
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
}

body {
  background-color: #edf3f1;
  background-image:
    linear-gradient(rgba(4, 79, 76, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 79, 76, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 84% 5%, rgba(43, 205, 186, 0.16), transparent 30rem);
  background-size:
    48px 48px,
    48px 48px,
    auto;
}

h1,
h2,
h3,
.brand-copy,
.metric strong {
  font-family: "Aptos Display", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.login-layout {
  --spot-x: 68%;
  --spot-y: 12%;
  grid-template-columns: minmax(0, 1.34fr) minmax(23rem, 0.66fr);
  color: #e9f6f3;
  background:
    linear-gradient(rgba(114, 242, 209, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 242, 209, 0.055) 1px, transparent 1px),
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(45, 218, 193, 0.18), transparent 22rem),
    linear-gradient(132deg, #061617 0%, #071c1e 54%, #0a2728 100%);
  background-size:
    54px 54px,
    54px 54px,
    auto,
    auto;
}

.login-layout::after {
  left: 3%;
  top: 6%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(104, 241, 209, 0.085);
  opacity: 1;
}

.ambient-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-field::before {
  position: absolute;
  width: min(58vw, 50rem);
  aspect-ratio: 1;
  left: 18%;
  top: 50%;
  border: 1px solid rgba(114, 242, 209, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 5rem rgba(114, 242, 209, 0.018),
    0 0 0 10rem rgba(114, 242, 209, 0.012);
  transform: translate(-50%, -50%);
}

.ambient-field i {
  position: absolute;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--electric-mint);
  box-shadow: 0 0 18px rgba(114, 242, 209, 0.75);
  opacity: 0.55;
}

.ambient-field i:nth-child(1) {
  left: 9%;
  top: 23%;
}

.ambient-field i:nth-child(2) {
  left: 58%;
  top: 16%;
}

.ambient-field i:nth-child(3) {
  left: 43%;
  bottom: 14%;
}

.login-intro {
  position: relative;
  z-index: 1;
  justify-content: center;
  padding: clamp(2rem, 4.6vw, 5.5rem);
  color: #ecf9f6;
}

.login-intro .brand {
  margin-bottom: clamp(2rem, 5vh, 4rem);
  color: white;
}

.login-intro .brand-copy small,
.login-intro .lead,
.login-intro .system-label {
  color: rgba(219, 242, 237, 0.66);
}

.login-intro .eyebrow {
  color: var(--electric-mint);
}

.login-intro h1 {
  max-width: 57rem;
  margin-bottom: 1.2rem;
  color: #f5fffc;
  font-size: clamp(3.4rem, 6.15vw, 7.2rem);
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.login-intro .accent-word {
  color: var(--electric-mint);
  text-shadow: 0 0 36px rgba(75, 231, 198, 0.2);
}

.login-intro .lead {
  max-width: 46rem;
}

.login-intro .system-label {
  margin: 0 0 1.5rem;
}

.login-intro .system-label i {
  background: linear-gradient(90deg, var(--electric-mint), transparent);
}

.login-intro .trust-list li {
  border-color: rgba(134, 232, 212, 0.16);
  color: #d7ede8;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.signal-board {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(3.6rem, 0.42fr) minmax(8rem, 1fr) minmax(3.6rem, 0.42fr) minmax(
      8rem,
      1fr
    );
  align-items: stretch;
  gap: 0.55rem;
  width: min(54rem, 100%);
  margin-top: 1.45rem;
  padding: 0.5rem;
  border: 1px solid rgba(125, 228, 208, 0.13);
  border-radius: 18px 18px 5px;
  background: rgba(2, 19, 20, 0.46);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
}

.signal-node {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 5.1rem;
  padding: 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(131, 218, 201, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  animation: signal-node-enter 520ms calc(260ms + var(--enter-index, 0) * 80ms) cubic-bezier(0.16, 1, 0.3, 1)
    both;
}

.signal-node::after {
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(114, 242, 209, 0.14);
  border-radius: 50%;
  content: "";
}

.signal-node > span {
  color: rgba(114, 242, 209, 0.58);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.signal-node strong {
  color: #f2fffc;
  font-size: 0.86rem;
}

.signal-node small {
  color: rgba(218, 239, 234, 0.55);
  font-size: 0.64rem;
}

.signal-node-core {
  border-color: rgba(114, 242, 209, 0.32);
  background: linear-gradient(145deg, rgba(23, 123, 111, 0.42), rgba(16, 66, 65, 0.36));
  box-shadow: inset 0 0 30px rgba(53, 223, 192, 0.055);
}

.signal-bridge {
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.signal-bridge i {
  position: relative;
  height: 1px;
  overflow: visible;
  background: linear-gradient(90deg, transparent, rgba(114, 242, 209, 0.7), transparent);
  transform-origin: left;
  animation: line-grow 700ms 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.signal-bridge i::after {
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  content: "";
  background: var(--electric-mint);
  box-shadow: 0 0 12px rgba(114, 242, 209, 0.7);
  transform: translateY(-50%);
}

.signal-bridge span {
  color: rgba(207, 234, 227, 0.38);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.login-card {
  z-index: 2;
  gap: 1.1rem;
  width: min(28.5rem, calc(100% - 2rem));
  border-color: rgba(167, 218, 208, 0.42);
  border-radius: 28px 28px 8px;
  background: rgba(246, 252, 250, 0.93);
  box-shadow:
    0 34px 90px rgba(0, 8, 9, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.login-card::before {
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    var(--electric-mint) 48%,
    var(--teal-dark) 84%,
    transparent
  );
}

.login-card::after {
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(8, 126, 128, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 2.2rem rgba(8, 126, 128, 0.025);
  pointer-events: none;
}

.login-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
  color: #60706e;
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.login-card-meta i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #21b879;
  box-shadow: 0 0 0 4px rgba(33, 184, 121, 0.1);
}

.field label,
legend {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.field:focus-within > label {
  color: var(--teal-dark);
  transform: translateX(3px);
}

.field input,
.field select,
.field textarea {
  border-color: #b9cbc7;
  border-radius: 12px 12px 4px;
  background: rgba(255, 255, 255, 0.8);
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px 12px 4px;
}

.button::after {
  position: absolute;
  inset: -120% auto -120% -36%;
  z-index: -1;
  width: 26%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0;
  transform: rotate(18deg) translateX(-180%);
  transition:
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
}

.button:hover:not(:disabled)::after {
  opacity: 1;
  transform: rotate(18deg) translateX(720%);
}

.button-ripple {
  position: absolute;
  z-index: -1;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: button-ripple 520ms ease-out forwards;
}

.app-layout {
  grid-template-columns: 18rem minmax(0, 1fr);
  background:
    linear-gradient(rgba(4, 79, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 79, 76, 0.045) 1px, transparent 1px), #edf3f1;
  background-size: 48px 48px;
}

.sidebar {
  border-radius: 24px 24px 7px;
  background:
    linear-gradient(rgba(128, 239, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 239, 218, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 5%, rgba(56, 218, 192, 0.24), transparent 27%),
    linear-gradient(155deg, #0b292a, #031719 74%);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto;
}

.nav-item {
  position: relative;
  border-radius: 12px 12px 4px;
}

.nav-item::after {
  position: absolute;
  left: -0.15rem;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 99px;
  content: "";
  background: var(--electric-mint);
  box-shadow: 0 0 14px rgba(114, 242, 209, 0.7);
  transform: translateY(-50%);
  transition: height 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.is-active {
  border-color: rgba(117, 237, 214, 0.22);
  color: #eafffa;
  background: linear-gradient(90deg, rgba(75, 215, 190, 0.2), rgba(255, 255, 255, 0.055));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.nav-item.is-active span {
  color: var(--electric-mint);
}

.nav-item.is-active::after {
  height: 54%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 5.5rem;
  border-bottom: 1px solid rgba(133, 164, 158, 0.35);
  background: rgba(237, 243, 241, 0.78);
  box-shadow: 0 12px 34px rgba(5, 44, 44, 0.035);
  backdrop-filter: blur(16px);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.user-avatar {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(18, 126, 118, 0.25);
  border-radius: 50%;
  color: #eafffa;
  background: linear-gradient(145deg, #168f85, #063b3c);
  box-shadow: 0 8px 18px rgba(4, 72, 70, 0.16);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

main {
  padding-top: clamp(1.6rem, 4vw, 3.8rem);
}

.page-heading h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.25rem);
  letter-spacing: -0.065em;
}

.signal-ribbon {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: -0.7rem 0 1rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(103, 174, 164, 0.42);
  border-radius: 12px 12px 4px;
  color: #61706e;
  background: rgba(247, 252, 250, 0.66);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.signal-ribbon-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #145e50;
  font-weight: 800;
}

.signal-ribbon-status i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #27b878;
  box-shadow: 0 0 0 4px rgba(39, 184, 120, 0.1);
}

.signal-ribbon-line {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(16, 140, 127, 0.08),
    rgba(16, 140, 127, 0.5),
    rgba(16, 140, 127, 0.08)
  );
}

.signal-ribbon-line i {
  position: absolute;
  top: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-50%);
}

.signal-ribbon-line i:nth-child(1) {
  left: 18%;
}

.signal-ribbon-line i:nth-child(2) {
  left: 50%;
}

.signal-ribbon-line i:nth-child(3) {
  left: 82%;
}

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

.metric {
  min-height: 10rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px 18px 5px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  animation: metric-enter 460ms calc(var(--enter-index, 0) * 55ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.metric:first-child {
  grid-column: span 2;
  border-color: rgba(85, 223, 198, 0.2);
  color: #e9fbf6;
  background:
    radial-gradient(circle at 82% 12%, rgba(73, 226, 194, 0.23), transparent 34%),
    linear-gradient(145deg, #0a3131, #051c1e);
  box-shadow: 0 18px 45px rgba(0, 42, 43, 0.18);
}

.metric:nth-child(2) {
  border-color: rgba(68, 185, 163, 0.32);
  background: linear-gradient(145deg, rgba(199, 247, 236, 0.92), rgba(237, 251, 247, 0.84));
}

.metric:first-child > span,
.metric:first-child strong {
  color: #eafffa;
}

.metric strong {
  margin-top: 0.9rem;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  letter-spacing: -0.075em;
}

.metric::after {
  right: -1.7rem;
  bottom: -1.7rem;
  width: 6rem;
  height: 6rem;
  border-color: rgba(18, 157, 144, 0.13);
  box-shadow: 0 0 0 1.2rem rgba(18, 157, 144, 0.025);
}

.metric-spark {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  height: 2.2rem;
}

.metric-spark i {
  width: 0.22rem;
  height: var(--level);
  min-height: 0.3rem;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.18;
  transform-origin: bottom;
  animation: spark-enter 440ms calc(180ms + var(--bar-index) * 45ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel,
.connection-card,
.table-wrap,
.table-scroll,
.filter-bar {
  border-radius: 18px 18px 5px;
  background-color: var(--surface-glass);
}

.spotlight-surface {
  --spot-opacity: 0;
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.spotlight-surface::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: radial-gradient(
    420px circle at var(--spot-x) var(--spot-y),
    rgba(66, 222, 197, 0.18),
    transparent 42%
  );
  opacity: var(--spot-opacity);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.spotlight-surface > * {
  z-index: 1;
}

.spotlight-surface > :not(.metric-spark) {
  position: relative;
}

.readiness-board {
  overflow: hidden;
}

.readiness-score {
  border-radius: 12px 12px 4px;
}

.choice-card,
.notice,
.progress-box,
.empty-state,
.status-pill {
  border-radius: 12px 12px 4px;
}

.status-pill::before {
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.38rem;
  border-radius: 50%;
  content: "";
  background: currentColor;
  opacity: 0.72;
}

th {
  background: rgba(230, 241, 238, 0.92);
}

.connection-card {
  animation: metric-enter 380ms calc(var(--enter-index, 0) * 55ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes signal-node-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.98);
  }
}

@keyframes metric-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
}

@keyframes spark-enter {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
}

@keyframes button-ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(34);
  }
}

@media (hover: hover) and (pointer: fine) {
  .signal-node {
    transition:
      transform 200ms ease,
      border-color 200ms ease,
      background 200ms ease;
  }

  .signal-node:hover {
    border-color: rgba(114, 242, 209, 0.3);
    background: rgba(114, 242, 209, 0.08);
    transform: translateY(-3px);
  }
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:first-child {
    grid-column: span 1;
  }
}

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

  .login-intro {
    padding-bottom: 1.5rem;
  }

  .login-intro h1 {
    font-size: clamp(3.2rem, 11vw, 6.5rem);
  }

  .login-card {
    margin-bottom: 2rem;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .login-intro {
    padding: 1.25rem;
  }

  .login-intro h1 {
    font-size: clamp(2.75rem, 13.2vw, 4rem);
  }

  .signal-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.1rem;
  }

  .signal-bridge {
    display: none;
  }

  .signal-node {
    min-height: 4.6rem;
    padding: 0.58rem;
  }

  .signal-node small {
    display: none;
  }

  .signal-ribbon {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .signal-ribbon-line {
    display: none;
  }

  .topbar-user .user-avatar {
    display: none;
  }

  .metric {
    min-height: 8.7rem;
  }

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

/* App Review workspace: focused evidence flows for the two required permissions. */
.contact-panel {
  align-content: start;
}

.contact-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.contact-context {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(10, 143, 134, 0.22);
  border-radius: 14px;
  background: rgba(10, 143, 134, 0.055);
}

.contact-context > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.contact-context span:not(.status-pill) {
  color: var(--muted);
}

.contact-context-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.consent-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(212, 139, 0, 0.26);
  border-radius: 14px;
  background: rgba(255, 184, 51, 0.08);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.review-heading {
  align-items: center;
}

.review-environment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(212, 139, 0, 0.32);
  border-radius: 999px;
  color: #855700;
  background: rgba(255, 184, 51, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-environment-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.48rem;
  border-radius: 50%;
  background: #d48b00;
  box-shadow: 0 0 0 4px rgba(212, 139, 0, 0.12);
}

.review-environment-badge.is-ready {
  color: var(--teal-dark);
  border-color: rgba(10, 143, 134, 0.3);
  background: rgba(10, 143, 134, 0.08);
}

.review-environment-badge.is-ready::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(10, 143, 134, 0.12);
}

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

.permission-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
}

.permission-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--electric-mint), transparent 82%);
}

.permission-card-management::before {
  background: linear-gradient(90deg, #2563eb, #72f2d1, transparent 82%);
}

.permission-card-top,
.permission-actions,
.review-gate-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.permission-index {
  color: var(--teal-dark);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.08em;
}

.permission-scope {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.permission-card h2 {
  margin: -0.35rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.permission-card code {
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(10, 143, 134, 0.18);
  border-radius: 7px;
  color: var(--teal-dark);
  background: rgba(10, 143, 134, 0.055);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

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

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

.review-steps li > span {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(10, 143, 134, 0.24);
  border-radius: 9px;
  color: var(--teal-dark);
  background: rgba(10, 143, 134, 0.07);
  font-size: 0.74rem;
  font-weight: 850;
}

.review-steps strong,
.review-steps small {
  display: block;
}

.review-steps strong {
  margin-bottom: 0.14rem;
  font-size: 0.9rem;
}

.review-steps small {
  color: var(--muted);
  line-height: 1.45;
}

.permission-card > .button,
.permission-actions {
  margin-top: auto;
}

.permission-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.review-gate {
  display: grid;
  gap: 1.1rem;
}

.review-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.review-check-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.review-check-grid strong,
.review-check-grid p {
  display: block;
  margin: 0;
}

.review-check-grid strong {
  margin-bottom: 0.18rem;
  font-size: 0.84rem;
}

.review-check-grid p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.review-check-dot {
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.23rem;
  border-radius: 50%;
  background: #a5b0ad;
  box-shadow: 0 0 0 4px rgba(120, 135, 131, 0.1);
}

.review-check-dot.is-pending {
  background: #d48b00;
  box-shadow: 0 0 0 4px rgba(212, 139, 0, 0.11);
}

.review-check-dot.is-ready {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(10, 143, 134, 0.11);
}

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

@media (max-width: 760px) {
  .review-permission-grid,
  .review-check-grid {
    grid-template-columns: 1fr;
  }

  .review-heading,
  .review-gate-heading,
  .contact-context > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .consent-box {
    grid-template-columns: 1fr;
  }
}

/* Keep the initial authentication experience inside one viewport. */
@media (min-width: 901px) {
  .login-layout {
    height: 100svh;
    min-height: 0;
    overflow-y: auto;
  }

  .login-intro {
    min-height: 0;
    padding-block: clamp(1.5rem, 3.2vh, 2.8rem);
  }

  .login-intro .brand {
    margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
  }

  .login-intro .system-label {
    margin-bottom: clamp(0.7rem, 1.5vh, 1.2rem);
  }

  .login-intro h1 {
    max-width: 64rem;
    margin-bottom: clamp(0.65rem, 1.4vh, 1rem);
    font-size: clamp(3.15rem, 5vw, 5.9rem);
    line-height: 0.91;
  }

  .login-intro .lead {
    margin-bottom: 0;
    font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  }

  .login-intro .trust-list {
    margin-top: clamp(0.7rem, 1.5vh, 1.15rem);
  }

  .signal-board {
    margin-top: clamp(0.7rem, 1.5vh, 1.1rem);
  }

  .signal-node {
    min-height: clamp(4.2rem, 8vh, 4.8rem);
  }

  .login-card {
    margin-block: 1rem;
    padding: clamp(1.35rem, 2.8vw, 2.25rem);
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .login-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    height: 100svh;
    min-height: 0;
    overflow-y: auto;
  }

  .login-intro {
    min-height: 0;
    padding: clamp(1.4rem, 3vw, 2rem);
  }

  .login-intro .brand {
    margin-bottom: 1.4rem;
  }

  .login-intro .system-label {
    margin: 0 0 1rem;
  }

  .login-intro h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(3rem, 6.7vw, 3.7rem);
    line-height: 0.92;
  }

  .login-intro .lead {
    font-size: 0.88rem;
  }

  .login-intro .trust-list {
    gap: 0.35rem;
    margin-top: 0.9rem;
  }

  .login-intro .trust-list li {
    padding: 0.34rem 0.55rem;
    font-size: 0.62rem;
  }

  .signal-board {
    display: none;
  }

  .login-card {
    width: calc(100% - 1.25rem);
    margin-block: 0.75rem;
    padding: 1.35rem;
  }
}

@media (max-width: 699px) {
  .login-layout {
    align-content: start;
    height: 100svh;
    min-height: 0;
    overflow-y: auto;
  }

  .login-intro {
    min-height: 0;
    padding: 0.8rem 1rem 0.35rem;
  }

  .login-intro .brand {
    margin-bottom: 0.75rem;
  }

  .login-intro .brand-mark {
    width: 3rem;
    height: 2rem;
  }

  .login-intro .system-label {
    margin: 0 0 0.55rem;
    font-size: 0.5rem;
  }

  .login-intro .eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.56rem;
  }

  .login-intro h1 {
    max-width: 30rem;
    margin-bottom: 0.55rem;
    font-size: clamp(2.1rem, 10vw, 2.75rem);
    line-height: 0.93;
  }

  .login-intro .lead {
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .login-intro .trust-list,
  .signal-board {
    display: none;
  }

  .login-card {
    gap: 0.62rem;
    width: calc(100% - 1rem);
    margin: 0.35rem auto 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 20px 20px 6px;
  }

  .login-card-meta {
    display: none;
  }

  .login-card > div:first-of-type .eyebrow {
    margin-bottom: 0.22rem;
  }

  .login-card h2 {
    margin-bottom: 0.25rem;
    font-size: 1.08rem;
  }

  .login-card .muted {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  .login-card .field {
    gap: 0.2rem;
  }

  .login-card .field label {
    font-size: 0.7rem;
  }

  .login-card .field input {
    min-height: 2.55rem;
    padding: 0.52rem 0.7rem;
  }

  .login-card .button {
    min-height: 2.55rem;
    padding-block: 0.52rem;
  }

  .login-card .status-message {
    min-height: 0.85rem;
    font-size: 0.7rem;
  }

  .login-card .legal-links {
    gap: 0.55rem;
    font-size: 0.66rem;
  }
}

@media (max-width: 699px) and (max-height: 700px) {
  .login-intro .system-label,
  .login-card > div:first-of-type .muted {
    display: none;
  }

  .login-intro h1 {
    font-size: clamp(1.95rem, 9.2vw, 2.45rem);
  }

  .login-intro .lead {
    font-size: 0.74rem;
  }
}

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

  .spinner {
    animation: none;
  }
}
