:root {
  --accent: #ff6b3d;
  --accent-soft: #fff1ea;
  --ink: #2a2d3a;
  --muted: #64748b;
  --muted-strong: #475569;
  --link: #2563eb;
  --line: #e2e8f0;
  --header-bg: #f8fafc;
  --bg: #f5f6fa;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(28, 30, 42, 0.05);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); background: var(--bg); }
b, strong { font-weight: 500; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}
@keyframes orbDriftAlt {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-30px, 16px, 0) scale(0.92); }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes fieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes readyPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(28, 30, 42, 0.18); }
  50% { box-shadow: 0 12px 28px rgba(255, 107, 61, 0.28); }
}
@keyframes cardShine {
  0% { transform: translateX(-120%) rotate(12deg); opacity: 0; }
  18% { opacity: 0.45; }
  45%, 100% { transform: translateX(180%) rotate(12deg); opacity: 0; }
}
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.22); }
  50% { box-shadow: 0 0 0 10px rgba(255, 107, 61, 0); }
}
@keyframes flowDot {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.25); opacity: 1; }
}
@keyframes flowDash {
  0% { transform: scaleX(0.4); opacity: 0.25; }
  50% { transform: scaleX(1); opacity: 0.9; }
  100% { transform: scaleX(0.4); opacity: 0.25; }
}

button, input { font: inherit; font-weight: 400; }
a { color: var(--link); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(255, 107, 61, 0.16), transparent 55%),
    radial-gradient(700px 360px at 92% 108%, rgba(255, 107, 61, 0.1), transparent 50%),
    var(--bg);
}
.login-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.login-orbs span {
  position: absolute; border-radius: 50%; filter: blur(28px); opacity: 0.7;
}
.orb-a { width: 220px; height: 220px; left: 8%; top: 12%; background: #ff6b3d; animation: orbDrift 9s ease-in-out infinite; }
.orb-b { width: 280px; height: 280px; right: 6%; bottom: 8%; background: #ffd4c2; animation: orbDriftAlt 11s ease-in-out infinite; }
.orb-c { width: 140px; height: 140px; left: 42%; bottom: 18%; background: #fff1ea; animation: orbDrift 7s ease-in-out infinite reverse; }
.login-card-lift {
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
  overflow: visible;
  animation: cardIn .55s cubic-bezier(.22,1,.36,1);
}
.login-card {
  width: 100%;
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 34px 28px 28px;
  text-align: center;
  overflow: visible;
  border: 1px solid rgba(255, 107, 61, 0.12);
  box-shadow: 0 24px 60px rgba(28, 30, 42, 0.08);
}
.login-card-shine {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.login-card-shine::after {
  content: "";
  position: absolute; inset: -40% -20%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 107, 61, 0.08) 50%, transparent 65%);
  animation: cardShine 4.8s ease-in-out infinite;
}
.login-mark {
  width: 64px; height: 64px; margin: 0 auto 6px;
  border-radius: 18px;
  animation: logoFloat 3.8s ease-in-out infinite, markPulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(255, 107, 61, 0.22));
  position: relative;
  z-index: 1;
}
.login-flow {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 12px 0 4px; position: relative; z-index: 1;
}
.login-flow span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: flowDot 1.6s ease-in-out infinite;
}
.login-flow span:nth-child(3) { animation-delay: .2s; background: #2563eb; }
.login-flow span:nth-child(5) { animation-delay: .4s; background: #16a34a; }
.login-flow i {
  width: 22px; height: 2px; border-radius: 99px; background: #ffd4c2;
  transform-origin: left center;
  animation: flowDash 1.6s ease-in-out infinite;
}
.login-flow i:nth-child(4) { animation-delay: .2s; background: #bbf7d0; }
.login-mark img, .login-card img { width: 64px; height: 64px; border-radius: 16px; }
.login-card h1, .login-card p, .login-card form { position: relative; z-index: 1; }
.login-card h1 { margin: 10px 0 6px; font-size: 22px; font-weight: 600; color: var(--ink); animation: fieldIn .45s ease both; }
.login-card p { color: var(--muted); font-size: 13px; font-weight: 400; }
.login-card .login-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  min-height: 16px;
  text-align: center;
}
.login-card form { text-align: left; }
.login-card label { animation: fieldIn .5s ease both; }
.login-card label[for="password"] { animation-delay: .06s; }
.login-card input { animation: fieldIn .5s ease both; }
.login-card #password { animation-delay: .06s; }
label { display: block; font-size: 12px; color: var(--muted-strong); margin: 12px 0 6px; font-weight: 500; }
input[type="email"], input[type="password"], input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(28, 30, 42, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus {
  outline: none;
  border-color: #ffb196;
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.14);
}
.login-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  min-height: 16px;
  text-align: center;
}
.login-hint.is-ready { color: #16a34a; }
.login-dock {
  position: relative;
  margin-top: 14px;
  height: 128px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffaf7 0%, #f8fafc 100%);
  border: 1px dashed #ffc7b0;
  overflow: hidden;
}
.login-home {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1.5px dashed var(--accent);
  opacity: 0.55;
  pointer-events: none;
  transition: width .28s ease, opacity .28s ease;
}
.login-dock.is-ready .login-home {
  width: calc(100% - 24px);
  opacity: 0.2;
}
.primary {
  position: absolute;
  left: 0;
  top: 0;
  height: 48px;
  margin: 0;
  min-width: 132px;
  width: max-content;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: #1c1e2a;
  box-shadow: 0 8px 20px rgba(28, 30, 42, 0.16);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  will-change: transform;
  pointer-events: none;
  white-space: nowrap;
}
.primary.ready, .primary.loading { pointer-events: auto; }
.primary.ready {
  min-width: 0;
  width: calc(100% - 24px);
  background: #1c1e2a;
  animation: readyPulse 2.4s ease-in-out infinite;
}
.primary.ready:hover { background: #ff6b3d; }
.primary.loading {
  min-width: 0;
  width: calc(100% - 24px);
  cursor: wait;
  animation: none;
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .login-orbs span, .login-mark, .login-card-lift, .login-card-shine::after, .login-flow span, .login-flow i, .primary.ready { animation: none; }
  .primary { transform: none !important; pointer-events: auto; }
  .primary.dodging { opacity: 1; }
}

.app-shell { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.sidebar {
  margin: 16px 0 16px 16px;
  border-radius: 24px;
  padding: 20px 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.brand h1 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.brand p { margin: 2px 0 0; font-size: 11px; font-weight: 400; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted-strong);
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 13px;
  transition: background .2s ease, color .2s ease;
}
.nav a svg { width: 16px; height: 16px; }
.nav a:hover { background: #f5f6fa; color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.side-user {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}
.side-user button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
}

.content { padding: 18px 22px 48px; min-width: 0; }
.header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; animation: rise .4s ease; }
.header h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.search { flex: 1; max-width: 440px; margin-left: auto; position: relative; min-width: 180px; }
.search input {
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e8ef;
  box-shadow: 0 8px 20px rgba(28, 30, 42, 0.06);
  font-size: 13px;
}
.search input::placeholder { color: #94a3b8; }
.search input:focus {
  border-color: #ffb196;
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.14), 0 8px 20px rgba(28, 30, 42, 0.06);
}
.search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-strong); pointer-events: none;
}
.header-user {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
  padding: 5px 12px 5px 5px; box-shadow: var(--shadow); font-weight: 500; font-size: 12px;
  max-width: 240px; min-width: 0;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: #1c1e2a; font-size: 11px; font-weight: 500;
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi {
  position: relative; overflow: hidden;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  min-height: 96px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: rise .5s ease both;
}
.kpi:nth-child(2) { animation-delay: .06s; }
.kpi:nth-child(3) { animation-delay: .12s; }
.kpi:nth-child(4) { animation-delay: .18s; }
.kpi .kpi-copy { min-width: 0; }
.kpi b { display: block; font-size: 28px; font-weight: 600; line-height: 1.1; margin-top: 8px; letter-spacing: -0.03em; }
.kpi span { font-weight: 500; font-size: 12px; color: var(--muted-strong); }
.kpi .ico {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  flex: 0 0 32px; margin-top: 0;
  background: var(--accent-soft); color: var(--accent);
}
.kpi .ico svg { width: 16px; height: 16px; }
.kpi.purple .ico { background: #fff1ea; color: #ff6b3d; }
.kpi.pink .ico { background: #dcfce7; color: #166534; }
.kpi.blue .ico { background: #eff6ff; color: #2563eb; }
.kpi.green .ico, .kpi.mint .ico { background: #fef3c7; color: #92400e; }
.kpi:hover { transform: translateY(-2px); }

.job { border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.job:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px;
  animation: rise .45s ease both;
}
.card h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.hero-table { margin-top: 4px; }
.sync-row { animation: rowIn .3s ease both; }
.dash-grid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-top: 14px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px;
  align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 400;
}
.activity li:last-child { border-bottom: 0; }
.activity-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  align-items: flex-start; min-width: 0;
}
.activity-copy { min-width: 0; }
.activity-title { font-weight: 500; color: var(--ink); line-height: 1.35; }
.activity-status { flex-shrink: 0; padding-top: 1px; }
.dot {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); flex-shrink: 0; margin-top: 0;
}
.dot svg { width: 14px; height: 14px; }
.when { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 4px; line-height: 1.4; }
.muted, .small, .empty { color: var(--muted); font-weight: 400; }
.empty { padding: 20px; text-align: center; font-size: 13px; }
.small { font-size: 12px; color: var(--muted); }
.empty-dash { color: var(--muted); font-weight: 400; font-family: Inter, "Segoe UI", sans-serif; }
.ts { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.cell-truncate {
  display: block; max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
}
.conn-card { min-width: 0; }
.conn-card b { display: block; }
.conn-card .cell-truncate { max-width: 100%; color: var(--muted); font-size: 12px; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 8px;
  font-size: 11px; font-weight: 600; line-height: 1; text-transform: capitalize;
  letter-spacing: 0.01em; white-space: nowrap;
}
.badge.available, .badge.success { background: #dcfce7; color: #166534; }
.badge.processing, .badge.pending_confirmation, .badge.pending { background: #fef3c7; color: #92400e; }
.badge.expired, .badge.hold { background: #ffedd5; color: #9a3412; }
.badge.revoked, .badge.failed, .badge.error { background: #fee2e2; color: #b91c1c; }
.badge.unknown { background: #f1f5f9; color: var(--muted-strong); }
.badge.connection, .badge.pipeline, .badge.audit { background: #f1f5f9; color: var(--muted-strong); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 11px 12px; font-size: 13px; font-weight: 400; vertical-align: top; }
td { border-bottom: 1px solid var(--line); color: var(--ink); }
th {
  color: var(--muted-strong); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; background: var(--header-bg); border-bottom: 1px solid var(--line);
}
thead th:first-child { border-radius: 10px 0 0 0; }
thead th:last-child { border-radius: 0 10px 0 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f8fafc; }
.sfid {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--link); font-weight: 500; font-size: 12px; letter-spacing: -0.01em;
}
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.toolbar h3 { margin: 0; }
.error { background: #fee2e2; color: #b91c1c; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.tab { border: 0; background: transparent; padding: 10px 8px; color: var(--muted); font-weight: 500; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.event-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: flex-start;
}
.event-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.toolbar a { color: var(--accent); font-weight: 600; font-size: 13px; }
.header-user .cell-truncate { max-width: 180px; font-size: 12px; }
.table-wrap { overflow-x: auto; }
.timeline { list-style: none; margin: 0; padding: 8px; }
.timeline li { position: relative; padding: 0 0 14px 18px; border-left: 2px solid #ffe0d4; font-size: 13px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.event-error { color: #b91c1c; margin-top: 4px; font-size: 12px; font-weight: 400; }
pre { background: #f5f6fa; color: var(--ink); border-radius: 10px; padding: 10px; overflow: auto; font-size: 12px; font-weight: 400; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.meta-grid div { background: #f5f6fa; border-radius: 12px; padding: 10px; }
.meta-grid dt { color: var(--muted); font-size: 11px; font-weight: 500; text-transform: none; }
.meta-grid dd { margin: 4px 0 0; font-size: 13px; font-weight: 400; }
.back { border: 0; background: transparent; color: var(--accent); font-weight: 500; font-size: 13px; cursor: pointer; margin-bottom: 10px; }
.token-form { margin-top: 14px; }
.token-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin: 12px 0;
}
.token-meta div { background: #f5f6fa; border-radius: 12px; padding: 10px; min-width: 0; }
.token-meta span { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.token-meta b {
  display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 4px; }
.field-grid .span-2 { grid-column: 1 / -1; }
.field { display: block; margin: 8px 0; color: var(--muted-strong); font-size: 12px; font-weight: 500; }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px 13px; color: var(--ink); font-size: 13px; font-weight: 400;
  box-shadow: 0 1px 2px rgba(28, 30, 42, 0.04);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #ffb196; box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.14);
}
.field textarea {
  min-height: 92px; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
}
.check {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 8px;
  color: var(--muted-strong); font-size: 12px; font-weight: 500; cursor: pointer;
}
.check input { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.action {
  border: 0; background: #1c1e2a; color: #fff; border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.action:hover { background: #ff6b3d; }
.action.ghost { background: #f5f6fa; color: var(--ink); }
.action.ghost:hover { background: #e2e8f0; }
.action:disabled { opacity: 0.6; cursor: wait; }
.ok { background: #dcfce7; color: #166534; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 8px 0; }
.session-panel { margin: 14px 0 6px; padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; }
.session-panel h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.session-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 4px; }
.sfact { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.sfact svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 18px; margin-top: 2px; }
.sfact span { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.sfact b { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.sfact b.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.log-day { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--muted-strong); letter-spacing: 0.04em; text-transform: uppercase; }
.log-list { margin: 0; }
.log-card { padding-bottom: 16px; }
.event-help { color: var(--muted-strong); font-size: 12px; line-height: 1.45; margin: 4px 0 2px; font-weight: 400; }
.advanced-toggle { margin-left: auto; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; margin: 10px 0; line-height: 1.45; }
.hint b { color: var(--ink); font-weight: 600; }
.button-help {
  list-style: none; margin: 14px 0 0; padding: 12px 14px;
  background: #f8fafc; border-radius: 12px; border: 1px solid var(--line);
}
.button-help li { font-size: 12px; color: var(--muted-strong); line-height: 1.45; margin: 0 0 8px; }
.button-help li:last-child { margin-bottom: 0; }
.button-help b { color: var(--ink); font-weight: 600; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 0; background: #f5f6fa; border-radius: 999px; padding: 5px 11px; cursor: pointer; font-weight: 500; font-size: 12px; color: var(--muted); }
.chip.active { background: var(--accent-soft); color: var(--accent); }
.flow { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-bottom: 14px; }
.flow-step {
  flex: 1; min-width: 180px; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 999px; font-weight: 500; font-size: 13px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid #fff;
  animation: rise .45s ease both;
}
.flow-step:nth-child(3) { animation-delay: .08s; }
.flow-step:nth-child(5) { animation-delay: .16s; }
.flow-ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 34px;
  background: var(--accent-soft); color: var(--accent);
}
.flow-ico svg { width: 16px; height: 16px; }
.flow-step:nth-child(3) .flow-ico { background: #eff6ff; color: #2563eb; }
.flow-step:nth-child(5) .flow-ico { background: #dcfce7; color: #166534; }
.flow-copy { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.flow-kicker { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.flow-copy strong { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.arrow {
  display: grid; place-items: center; color: var(--accent); flex: 0 0 22px;
}
.arrow svg { width: 22px; height: 22px; }

@media (max-width: 1100px) { .kpis, .dash-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { margin: 12px; }
  .kpis, .dash-grid { grid-template-columns: 1fr; }
  .activity-body, .event-row { grid-template-columns: 1fr; }
  .activity-status, .event-tags { justify-self: start; }
  .flow-step { min-width: 100%; border-radius: 16px; }
  .ts { white-space: normal; }
  .field-grid { grid-template-columns: 1fr; }
}
