:root {
  --bg: #090a09;
  --bg-soft: #0e100f;
  --panel: #131513;
  --panel-raised: #181a17;
  --panel-hover: #1d201c;
  --line: #292c27;
  --line-soft: #20231f;
  --text: #f4f4ed;
  --muted: #999d91;
  --muted-strong: #b9bcae;
  --yellow: #f5d90a;
  --yellow-strong: #ffe51d;
  --yellow-soft: rgba(245, 217, 10, 0.11);
  --yellow-line: rgba(245, 217, 10, 0.28);
  --green: #79dc8c;
  --green-soft: rgba(121, 220, 140, 0.11);
  --red: #ff827c;
  --red-soft: rgba(255, 130, 124, 0.1);
  --blue: #8ab4ff;
  --sidebar: 246px;
  --topbar: 70px;
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 65px rgba(0, 0, 0, 0.34);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 77% -20%, rgba(245, 217, 10, 0.06), transparent 30rem),
    var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
strong {
  letter-spacing: -0.025em;
}

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mobile-only,
.mobile-brand {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand > span:last-child {
  display: grid;
  min-width: 0;
}

.brand strong {
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.brand small {
  margin-top: 3px;
  color: #777b71;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: var(--yellow);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 7px 20px rgba(245, 217, 10, 0.1);
}

.brand-mark--large {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.bee-body,
.mini-bee {
  position: relative;
  display: block;
  width: 19px;
  height: 13px;
  border: 2px solid #11120f;
  border-radius: 50% 55% 55% 50%;
  background: #11120f;
  transform: rotate(-7deg);
}

.bee-body::before,
.bee-body::after {
  position: absolute;
  top: -8px;
  width: 9px;
  height: 8px;
  border: 1.7px solid #11120f;
  border-radius: 70% 30% 60% 35%;
  content: "";
}

.bee-body::before {
  left: -2px;
  transform: rotate(-20deg);
}

.bee-body::after {
  right: -3px;
  transform: rotate(20deg) scaleX(-1);
}

.bee-body i {
  position: absolute;
  z-index: 1;
  top: -1px;
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: var(--yellow);
}

.bee-body i:first-child {
  left: 6px;
}

.bee-body i:last-child {
  left: 11px;
}

.mini-bee {
  transform: scale(0.9) rotate(-7deg);
}

.tiny-buzz {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  background: #171915;
  box-shadow: 0 0 0 2px #24271f;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

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

.button svg {
  width: 17px;
  height: 17px;
}

.button--primary {
  color: #14150f;
  background: var(--yellow);
  box-shadow: 0 7px 24px rgba(245, 217, 10, 0.08);
}

.button--primary:hover:not(:disabled) {
  background: var(--yellow-strong);
}

.button--secondary,
.button--ghost {
  border-color: var(--line);
  color: var(--text);
  background: #151714;
}

.button--secondary:hover:not(:disabled),
.button--ghost:hover:not(:disabled) {
  border-color: #3c4038;
  background: #1a1d19;
}

.button--slack {
  width: 100%;
  border-color: #343731;
  background: #22241f;
}

.button--slack:hover {
  border-color: #54584e;
  background: #282b25;
}

.button--danger {
  color: #170a09;
  background: var(--red);
}

.button--wide {
  width: 100%;
}

.button.is-loading > span {
  opacity: 0.55;
}

.button.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  content: "";
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.icon-button--bordered {
  border: 1px solid var(--line);
  background: var(--panel);
}

.text-button {
  padding: 5px;
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.kicker,
.card-label,
.eyebrow {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.eyebrow--muted {
  color: #81857a;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(121, 220, 140, 0.1);
}

.loader {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid #31342e;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

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

/* Loading */
.loading-view {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 20px;
  color: var(--muted);
}

.loading-view p {
  margin: -8px 0 0;
  font-size: 13px;
}

/* Login */
.login-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(440px, 1.05fr) minmax(440px, 0.95fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 44px clamp(42px, 7vw, 110px) 35px;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(245, 217, 10, 0.035), transparent 40%),
    #0c0d0c;
}

.login-story::before {
  position: absolute;
  top: 16%;
  right: -180px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(245, 217, 10, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(245, 217, 10, 0.02), 0 0 0 120px rgba(245, 217, 10, 0.012);
  content: "";
}

.login-story::after {
  position: absolute;
  right: 9%;
  bottom: 8%;
  width: 90px;
  height: 110px;
  opacity: 0.12;
  background-image: radial-gradient(var(--yellow) 1.2px, transparent 1.2px);
  background-size: 12px 12px;
  content: "";
}

.brand--login {
  position: relative;
  z-index: 1;
}

.story-copy {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  margin: auto 0;
  padding: 70px 0 60px;
}

.story-copy h1 {
  max-width: 600px;
  margin-bottom: 24px;
  font-size: clamp(45px, 5.4vw, 76px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.story-copy h1 em {
  color: var(--yellow);
  font-style: normal;
}

.story-copy > p {
  max-width: 540px;
  margin-bottom: 38px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.65;
}

.story-points {
  display: grid;
  max-width: 520px;
  margin: 0;
  padding: 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  list-style: none;
}

.story-points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  background: rgba(15, 17, 15, 0.94);
}

.story-points > li > svg {
  width: 18px;
  height: 18px;
  margin-left: 7px;
  color: var(--yellow);
}

.story-points span {
  display: grid;
}

.story-points strong {
  font-size: 13px;
}

.story-points small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.story-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #666a61;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 40px;
  place-items: center;
}

.login-card {
  width: min(420px, 100%);
}

.login-card h2 {
  margin: 13px 0 7px;
  font-size: 32px;
  line-height: 1.15;
}

.login-card > p {
  margin-bottom: 29px;
  color: var(--muted);
}

.login-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.password-field > svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #6f736a;
  pointer-events: none;
}

.password-field input {
  width: 100%;
  height: 48px;
  padding: 0 47px 0 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #111310;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-field input:focus {
  border-color: rgba(245, 217, 10, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 217, 10, 0.07);
}

.password-field input::placeholder {
  color: #5f635a;
}

.password-field .icon-button {
  position: absolute;
  right: 6px;
}

.form-error {
  margin: -3px 0 13px;
  color: var(--red);
  font-size: 12px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 21px 0;
  color: #62665d;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.login-security {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 25px;
  padding: 12px 13px;
  border-radius: 10px;
  color: #74786e;
  background: #0e100e;
  font-size: 11px;
  line-height: 1.5;
}

.login-security svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--green);
}

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

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 23px 16px 16px;
  border-right: 1px solid var(--line-soft);
  background: rgba(12, 13, 12, 0.98);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 22px;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.nav-link {
  position: relative;
  display: grid;
  min-height: 42px;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #8d9186;
  font-size: 13px;
  font-weight: 620;
  transition: color 150ms ease, background 150ms ease;
}

.nav-link::before {
  position: absolute;
  left: -16px;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--yellow);
  opacity: 0;
  content: "";
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--yellow-soft);
}

.nav-link.is-active::before {
  opacity: 1;
}

.nav-link.is-active svg {
  color: var(--yellow);
}

.nav-count,
.nav-badge {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 6px;
  color: #8c9085;
  background: #20221e;
  font-size: 10px;
  font-weight: 800;
}

.nav-badge {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.sidebar-status {
  display: grid;
  margin-top: auto;
  padding: 14px 11px;
  border-top: 1px solid var(--line-soft);
  gap: 5px;
}

.sidebar-status__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-status small {
  padding-left: 15px;
  color: #5d6158;
  font-size: 10px;
}

.sidebar-status .status-dot {
  width: 6px;
  height: 6px;
}

.logout-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #777b71;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: color 150ms ease, background 150ms ease;
}

.logout-button:hover {
  color: var(--red);
  background: var(--red-soft);
}

.logout-button svg {
  width: 17px;
  height: 17px;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 10, 9, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 11px;
}

.topbar-title span {
  font-size: 13px;
  font-weight: 750;
}

.topbar-title small {
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: #676b62;
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--yellow-line);
  border-radius: 10px;
  color: var(--yellow);
  background: var(--yellow-soft);
  font-size: 12px;
  font-weight: 800;
}

.demo-badge,
.beta-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--yellow-line);
  border-radius: 6px;
  color: var(--yellow);
  background: var(--yellow-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 56px) 90px;
}

.page-section {
  animation: section-in 280ms ease;
}

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

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.page-heading h1 {
  margin: 1px 0 7px;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 730;
  line-height: 1.08;
}

.page-heading p {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.section-heading h2 {
  margin: 4px 0 2px;
  font-size: 19px;
}

.panel-heading p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Connections */
.connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 18px;
}

.connection-card {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 55%),
    var(--panel);
}

.connection-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  content: "";
}

.connection-card.is-connected {
  border-color: rgba(121, 220, 140, 0.2);
}

.connection-card.is-error {
  border-color: rgba(255, 130, 124, 0.25);
}

.connection-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}

.service-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #30332d;
  border-radius: 12px;
  background: #1c1f1b;
}

.service-icon--buzz {
  border-color: var(--yellow-line);
  background: var(--yellow);
}

.service-icon--slack svg {
  width: 21px;
  height: 21px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8e9287;
  background: #181a17;
  font-size: 10px;
  font-weight: 750;
}

.state-pill > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666a61;
}

.state-pill--connected {
  border-color: rgba(121, 220, 140, 0.18);
  color: var(--green);
  background: var(--green-soft);
}

.state-pill--connected > span {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(121, 220, 140, 0.08);
}

.state-pill--error {
  border-color: rgba(255, 130, 124, 0.18);
  color: var(--red);
  background: var(--red-soft);
}

.state-pill--error > span {
  background: var(--red);
}

.state-pill--loading > span {
  border: 1px solid var(--yellow);
  border-right-color: transparent;
  background: none;
  animation: spin 700ms linear infinite;
}

.card-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 3px;
  color: #686c63;
  font-size: 9px;
}

.connection-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  font-size: 25px;
}

.connection-card > p {
  position: relative;
  z-index: 1;
  min-height: 42px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.connection-meta {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: #a5a99d;
  background: rgba(8, 9, 8, 0.35);
  font-size: 11px;
}

.connection-meta small {
  flex: 0 0 auto;
  color: var(--muted);
}

.connection-line {
  display: flex;
  align-items: center;
  color: #595d55;
}

.connection-line span {
  height: 1px;
  flex: 1;
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 8px);
}

.connection-line svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-left: -2px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
  gap: 1px;
}

.metric-card {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  background: var(--panel);
}

.metric-icon {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  color: var(--yellow);
  background: var(--yellow-soft);
}

.metric-icon svg {
  width: 17px;
  height: 17px;
}

.metric-card div {
  display: grid;
}

.metric-card strong {
  font-size: 20px;
  line-height: 1.1;
}

.metric-card span:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.active-job {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
  padding: 18px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--yellow-soft), rgba(245, 217, 10, 0.025));
}

.active-job__icon {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  color: #17180f;
  background: var(--yellow);
}

.active-job__icon svg {
  width: 18px;
  height: 18px;
}

.active-job__main {
  min-width: 0;
  flex: 1;
}

.active-job__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.active-job__heading h2,
.active-job__heading h3 {
  margin: 4px 0 10px;
  font-size: 14px;
}

.active-job__heading > strong {
  color: var(--yellow);
  font-size: 21px;
}

.pulse-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--yellow-soft);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.45; transform: scale(0.8); }
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  box-shadow: 0 0 14px rgba(245, 217, 10, 0.35);
  transition: width 400ms ease;
}

.active-job p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.next-steps {
  margin-top: 34px;
}

.next-steps .section-heading {
  margin-bottom: 15px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step-card {
  position: relative;
  display: grid;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.step-card:hover {
  border-color: #3b3f37;
  background: var(--panel-raised);
  transform: translateY(-2px);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #3e423b;
  font-size: 11px;
  font-weight: 850;
}

.step-icon {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 10px;
  color: var(--yellow);
  background: var(--yellow-soft);
}

.step-icon svg {
  width: 17px;
  height: 17px;
}

.step-card strong {
  font-size: 14px;
}

.step-card small {
  margin-top: 3px;
  padding-right: 22px;
  color: var(--muted);
  font-size: 11px;
}

.step-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 16px;
  height: 16px;
  color: #53574e;
}

/* Migration */
.migration-progress-card {
  margin-bottom: 20px;
  padding: 21px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--radius);
  background: linear-gradient(105deg, var(--yellow-soft), var(--panel));
}

.progress-track--large {
  height: 7px;
  margin-top: 4px;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.migration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 16px;
}

.channel-panel {
  min-height: 580px;
  padding: 21px;
}

.select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

input[type="checkbox"]:not(.switch) {
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #454940;
  border-radius: 5px;
  accent-color: var(--yellow);
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  margin: 18px 0 11px;
}

.search-field svg {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #686c63;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 41px;
  padding: 0 13px 0 38px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  outline: none;
  background: #0f110f;
  font-size: 12px;
}

.search-field input:focus {
  border-color: var(--yellow-line);
}

.channel-list {
  display: grid;
  max-height: 455px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #34372f transparent;
}

.channel-item {
  display: grid;
  min-height: 66px;
  grid-template-columns: 19px 37px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 9px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 7px;
  cursor: pointer;
  transition: background 130ms ease;
}

.channel-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.channel-item.is-selected {
  background: rgba(245, 217, 10, 0.035);
}

.channel-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #b0b4a8;
  background: #20221e;
}

.channel-avatar svg {
  width: 15px;
  height: 15px;
}

.channel-copy {
  display: grid;
  min-width: 0;
}

.channel-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.channel-title-row strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connect-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(138, 180, 255, 0.18);
  border-radius: 5px;
  color: var(--blue);
  background: rgba(138, 180, 255, 0.07);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.private-badge {
  display: inline-flex;
  color: #777b71;
}

.private-badge svg {
  width: 11px;
  height: 11px;
}

.channel-copy small {
  margin-top: 3px;
  color: #6e7269;
  font-size: 10px;
}

.channel-messages {
  color: #6f736a;
  font-size: 10px;
  text-align: right;
}

.migration-options {
  position: sticky;
  top: calc(var(--topbar) + 20px);
  padding: 22px;
}

.migration-options h2 {
  margin: 5px 0 21px;
  font-size: 21px;
}

.option-row {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  cursor: pointer;
}

.option-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 9px;
  color: #a8ac9f;
  background: #1d201c;
}

.option-icon svg {
  width: 15px;
  height: 15px;
}

.option-row > span:nth-child(2) {
  display: grid;
}

.option-row strong {
  font-size: 11px;
}

.option-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.switch {
  position: relative;
  width: 34px;
  height: 19px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  outline: 0;
  appearance: none;
  background: #343730;
  cursor: pointer;
  transition: background 150ms ease;
}

.switch::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #989c90;
  content: "";
  transition: left 150ms ease, background 150ms ease;
}

.switch:checked {
  background: var(--yellow);
}

.switch:checked::before {
  left: 18px;
  background: #16170f;
}

.migration-summary {
  display: grid;
  margin: 18px 0;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #101210;
  gap: 8px;
}

.migration-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.migration-summary strong {
  color: var(--muted-strong);
  font-size: 10px;
}

.fine-print {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 0;
  color: #686c62;
  font-size: 9px;
  line-height: 1.45;
}

.fine-print svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: var(--green);
}

.inline-loading {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.inline-error {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 130, 124, 0.18);
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
}

.inline-error > svg {
  width: 17px;
  height: 17px;
}

.inline-error strong {
  font-size: 11px;
}

.inline-error p {
  margin: 2px 0 0;
  color: #bb7d78;
  font-size: 9px;
}

.compact-empty {
  display: grid;
  min-height: 190px;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.compact-empty svg {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  color: #555950;
}

.compact-empty strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.compact-empty p {
  margin: 4px 0 0;
  font-size: 10px;
}

.empty-state {
  display: grid;
  min-height: 420px;
  padding: 40px 20px;
  place-content: center;
  justify-items: center;
  border: 1px dashed #30332d;
  border-radius: var(--radius);
  background: rgba(19, 21, 19, 0.55);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid var(--yellow-line);
  border-radius: 16px;
  color: var(--yellow);
  background: var(--yellow-soft);
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.empty-state p {
  max-width: 440px;
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state--small {
  min-height: 260px;
}

.empty-state--small h3 {
  font-size: 16px;
}

/* Bridges */
.bridge-layout {
  display: grid;
  gap: 32px;
}

.bridge-builder {
  padding: 23px;
  background:
    linear-gradient(120deg, rgba(245, 217, 10, 0.025), transparent 42%),
    var(--panel);
}

.bridge-builder .panel-heading {
  margin-bottom: 21px;
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.mapping-field {
  display: grid;
  gap: 8px;
}

.mapping-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
}

.mapping-field > span svg {
  width: 16px;
  height: 16px;
}

select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: #0f110f;
  cursor: pointer;
  font-size: 12px;
}

select:focus {
  border-color: var(--yellow-line);
}

.mapping-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--yellow);
  background: #171916;
}

.mapping-arrow svg {
  width: 16px;
  height: 16px;
}

.direction-fieldset {
  margin: 19px 0 15px;
  padding: 0;
  border: 0;
}

.direction-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #0d0f0d;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.segmented-control input:checked + span {
  color: var(--text);
  background: #262923;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.segmented-control input:focus-visible + span {
  outline: 2px solid var(--yellow);
}

.bridge-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-left: 2px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  background: var(--yellow-soft);
  font-size: 10px;
}

.bridge-note svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--yellow);
}

.bridge-note p {
  margin: 0;
}

.bridge-note strong {
  color: var(--muted-strong);
}

.bridge-list-section .section-heading {
  margin-bottom: 12px;
}

.bridge-list {
  display: grid;
  gap: 9px;
}

.bridge-item {
  display: grid;
  min-height: 77px;
  grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel);
}

.bridge-endpoint {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.bridge-endpoint__icon {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 9px;
  background: #20231e;
}

.bridge-endpoint__icon svg {
  width: 16px;
  height: 16px;
}

.bridge-endpoint__copy {
  display: grid;
  min-width: 0;
}

.bridge-endpoint__copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bridge-endpoint__copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.bridge-direction {
  display: grid;
  justify-items: center;
  color: var(--yellow);
}

.bridge-direction svg {
  width: 18px;
  height: 18px;
}

.bridge-direction small {
  margin-top: 3px;
  color: #62665d;
  font-size: 8px;
}

.bridge-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
}

.live-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.delete-bridge:hover {
  color: var(--red);
  background: var(--red-soft);
}

/* Activity */
.activity-panel {
  overflow: hidden;
}

.activity-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 17px;
  border-bottom: 1px solid var(--line-soft);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chip {
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--text);
  background: #232620;
}

.activity-list {
  margin: 0;
  padding: 0 18px;
  list-style: none;
}

.activity-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--yellow);
  background: var(--yellow-soft);
}

.activity-icon--security {
  color: var(--green);
  background: var(--green-soft);
}

.activity-icon--error {
  color: var(--red);
  background: var(--red-soft);
}

.activity-icon svg {
  width: 15px;
  height: 15px;
}

.activity-copy {
  display: grid;
  min-width: 0;
}

.activity-copy strong {
  font-size: 11px;
}

.activity-copy span {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-item time {
  color: #686c63;
  font-size: 9px;
}

/* Security */
.security-hero {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 620px);
  align-items: center;
  justify-content: center;
  gap: 45px;
  min-height: 260px;
  margin-bottom: 17px;
  overflow: hidden;
  padding: 35px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 50%, rgba(245, 217, 10, 0.1), transparent 24rem),
    var(--panel);
}

.security-shield {
  position: relative;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid var(--yellow-line);
  border-radius: 34px;
  color: #16170f;
  background: var(--yellow);
  transform: rotate(3deg);
  box-shadow: 0 20px 55px rgba(245, 217, 10, 0.12);
}

.security-shield svg {
  width: 55px;
  height: 55px;
}

.security-shield i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--yellow);
}

.security-shield i:first-of-type {
  top: -28px;
  right: -30px;
}

.security-shield i:last-of-type {
  bottom: -19px;
  left: -25px;
  width: 6px;
  height: 6px;
}

.security-hero h2 {
  margin: 7px 0 9px;
  font-size: 30px;
}

.security-hero p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 17px;
}

.security-card {
  position: relative;
  min-height: 210px;
  padding: 19px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}

.security-card > span {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #3b3e38;
  font-size: 10px;
  font-weight: 850;
}

.security-card > svg {
  width: 23px;
  height: 23px;
  margin: 5px 0 28px;
  color: var(--yellow);
}

.security-card h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.security-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.permission-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 45px;
  padding: 23px;
}

.permission-panel h2 {
  margin: 6px 0 0;
  font-size: 19px;
}

.permission-panel dl {
  display: grid;
  margin: 0;
  gap: 10px;
}

.permission-panel dl div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  gap: 15px;
}

.permission-panel dl div:last-child {
  padding-bottom: 0;
  border: 0;
}

.permission-panel dt {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
}

.permission-panel dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

/* Dialog & toasts */
.dialog {
  width: min(400px, calc(100% - 30px));
  padding: 0;
  border: 1px solid #353831;
  border-radius: var(--radius-lg);
  color: var(--text);
  background: #151714;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(2, 3, 2, 0.78);
  backdrop-filter: blur(5px);
}

.dialog form {
  padding: 25px;
}

.dialog-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
}

.dialog h2 {
  margin-bottom: 7px;
  font-size: 20px;
}

.dialog p {
  color: var(--muted);
  font-size: 12px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 23px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100% - 40px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #363a32;
  border-radius: 11px;
  background: rgba(25, 28, 24, 0.97);
  box-shadow: var(--shadow);
  animation: toast-in 240ms ease;
  pointer-events: auto;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(7px);
  transition: 180ms ease;
}

.toast__icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.toast--error .toast__icon {
  color: var(--red);
  background: var(--red-soft);
}

.toast__icon svg {
  width: 14px;
  height: 14px;
}

.toast span:last-child {
  font-size: 11px;
  font-weight: 650;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(9px); }
}

@media (max-width: 1060px) {
  :root { --sidebar: 220px; }

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

  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-story {
    padding-right: 48px;
    padding-left: 48px;
  }

  .story-copy h1 {
    font-size: 48px;
  }
}

@media (max-width: 820px) {
  :root { --topbar: 62px; }

  .mobile-only {
    display: grid;
  }

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

  .login-story {
    display: none;
  }

  .login-panel {
    position: relative;
    min-height: 100svh;
    padding: 28px 22px;
  }

  .login-panel::before {
    position: absolute;
    top: -200px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    background: rgba(245, 217, 10, 0.06);
    filter: blur(70px);
    content: "";
  }

  .login-card {
    position: relative;
    z-index: 1;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 52px;
  }

  .mobile-brand strong {
    font-size: 19px;
  }

  .sidebar {
    width: min(280px, calc(100% - 52px));
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 25px 0 70px rgba(0, 0, 0, 0.48);
  }

  .nav-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    padding: 0 17px;
  }

  .topbar-title {
    margin-right: auto;
    margin-left: 9px;
  }

  .topbar-title small {
    display: none;
  }

  .content {
    padding: 31px 18px 75px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .connection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .connection-line {
    display: none;
  }

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

  .step-card {
    min-height: 127px;
  }

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

  .migration-options {
    position: static;
  }

  .security-hero {
    grid-template-columns: 100px 1fr;
    gap: 24px;
  }

  .security-shield {
    width: 90px;
    height: 90px;
    border-radius: 25px;
  }

  .security-shield svg {
    width: 40px;
    height: 40px;
  }

  .permission-panel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 580px) {
  .page-heading {
    display: grid;
    gap: 17px;
  }

  .page-heading .button {
    width: 100%;
  }

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

  .metric-card {
    min-height: 105px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .active-job {
    align-items: stretch;
  }

  .active-job__icon {
    display: none;
  }

  .active-job__heading {
    align-items: flex-start;
  }

  .channel-panel,
  .migration-options,
  .bridge-builder {
    padding: 16px;
  }

  .channel-item {
    grid-template-columns: 19px 32px minmax(0, 1fr);
  }

  .channel-messages {
    display: none;
  }

  .mapping-row {
    grid-template-columns: 1fr;
  }

  .mapping-arrow {
    margin: -2px auto;
    transform: rotate(90deg);
  }

  .segmented-control {
    display: grid;
    grid-template-columns: 1fr;
  }

  .segmented-control span {
    text-align: center;
  }

  .bridge-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px;
  }

  .bridge-item .bridge-direction {
    display: none;
  }

  .bridge-item .bridge-endpoint:nth-of-type(2) {
    grid-column: 1;
  }

  .bridge-actions {
    grid-row: 1 / span 2;
    grid-column: 2;
    flex-direction: column;
  }

  .security-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .security-shield {
    width: 65px;
    height: 65px;
    border-radius: 18px;
  }

  .security-shield svg {
    width: 29px;
    height: 29px;
  }

  .security-hero h2 {
    font-size: 24px;
  }

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

  .security-card {
    min-height: 180px;
  }

  .permission-panel dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .activity-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .activity-item time {
    grid-column: 2;
  }

  .topbar-actions .demo-badge {
    display: none;
  }
}

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