:root {
  color-scheme: light;
  --font-main: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: #0f172a;
  --muted: #58657d;
  --line: rgba(114, 132, 166, 0.28);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-soft: rgba(255, 255, 255, 0.68);
  --accent: #0a84ff;
  --accent-strong: #0066d3;
  --accent-soft: rgba(10, 132, 255, 0.14);
  --danger: #ff3b30;
  --danger-strong: #d12a1f;
  --ok: #34c759;
  --shadow-lg: 0 28px 64px rgba(14, 26, 45, 0.18);
  --shadow-md: 0 14px 32px rgba(17, 32, 56, 0.12);
  --shadow-sm: 0 8px 20px rgba(17, 32, 56, 0.08);
  --focus-ring: 0 0 0 3px rgba(10, 132, 255, 0.26);
  --control-height: 42px;
  --bg-top: #f2f6ff;
  --bg-middle: #edf2fb;
  --bg-bottom: #e8eef9;
  --glow-1: rgba(77, 139, 255, 0.22);
  --glow-2: rgba(66, 219, 218, 0.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --text: #eaf0ff;
  --muted: #9da9c0;
  --line: rgba(128, 145, 175, 0.3);
  --surface: rgba(19, 28, 45, 0.82);
  --surface-strong: rgba(24, 35, 56, 0.92);
  --surface-soft: rgba(14, 22, 37, 0.72);
  --accent: #4da3ff;
  --accent-strong: #2e87e8;
  --accent-soft: rgba(77, 163, 255, 0.2);
  --danger: #ff5f57;
  --danger-strong: #e0443c;
  --ok: #58d87a;
  --shadow-lg: 0 28px 64px rgba(2, 7, 18, 0.5);
  --shadow-md: 0 14px 32px rgba(2, 7, 18, 0.44);
  --shadow-sm: 0 8px 20px rgba(2, 7, 18, 0.36);
  --focus-ring: 0 0 0 3px rgba(77, 163, 255, 0.35);
  --bg-top: #0a101b;
  --bg-middle: #0f1828;
  --bg-bottom: #121d30;
  --glow-1: rgba(31, 98, 182, 0.35);
  --glow-2: rgba(25, 149, 132, 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  background:
    radial-gradient(1000px 420px at 0% 0%, var(--glow-1) 0%, transparent 58%),
    radial-gradient(760px 380px at 100% 0%, var(--glow-2) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-middle) 54%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
}

.app-ambient {
  position: fixed;
  inset: -80px -60px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.28;
  animation: app-orb-float 14s ease-in-out infinite;
}

.app-ambient-orb-a {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle at 34% 34%, rgba(10, 132, 255, 0.56), rgba(10, 132, 255, 0.04));
}

.app-ambient-orb-b {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 180px;
  animation-delay: -4s;
  background: radial-gradient(circle at 38% 38%, rgba(52, 201, 180, 0.48), rgba(52, 201, 180, 0.04));
}

.app-ambient-orb-c {
  width: 320px;
  height: 320px;
  left: 48%;
  bottom: -170px;
  animation-delay: -7s;
  background: radial-gradient(circle at 50% 50%, rgba(255, 213, 107, 0.4), rgba(255, 213, 107, 0.02));
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.ui-corner-toolbar {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 320;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.ui-corner-menu {
  position: relative;
}

.ui-corner-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.ui-corner-icon::-webkit-details-marker {
  display: none;
}

.ui-corner-icon::marker {
  content: "";
}

.ui-corner-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ui-corner-icon img {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(114, 132, 166, 0.38);
}

.ui-corner-icon:hover {
  text-decoration: none;
}

.ui-corner-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.ui-corner-option {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.ui-corner-option:hover {
  transform: none;
  filter: none;
  background: var(--accent-soft);
  border-color: rgba(10, 132, 255, 0.35);
}

.ui-corner-option.is-active {
  color: var(--accent-strong);
  font-weight: 600;
  background: var(--accent-soft);
  border-color: rgba(10, 132, 255, 0.45);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 14px;
  padding: 14px;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.sidebar:hover {
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 18px 36px rgba(10, 132, 255, 0.14);
  transform: translateY(-1px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.whoami {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.whoami-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.whoami-name-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.whoami-edit-link {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.whoami-edit-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.whoami-edit-link:hover {
  text-decoration: none;
  color: var(--accent-strong);
  border-color: rgba(10, 132, 255, 0.38);
  background: var(--accent-soft);
}

.role {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sidebar nav a:hover {
  text-decoration: none;
  transform: translateX(2px);
  background: var(--accent-soft);
  border-color: rgba(10, 132, 255, 0.28);
}

.sidebar nav a.current {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.12) 100%);
  border-color: rgba(10, 132, 255, 0.35);
}

.scope-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.content {
  min-width: 0;
  padding: 10px 4px 10px 4px;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(24px, 2.5vw, 32px);
}

h2 {
  font-size: clamp(20px, 2.1vw, 24px);
}

section,
.card,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  animation: lift-in 0.34s ease both;
}

section {
  padding: 18px;
  margin-bottom: 14px;
  overflow: auto;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.content > section:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 18px 36px rgba(10, 132, 255, 0.12);
}

.site-page > section:hover,
.help-page > section:hover,
.presentation-page > section:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.3);
  box-shadow: 0 18px 36px rgba(10, 132, 255, 0.12);
}

.settings-hierarchy .compact-list {
  max-height: none;
}

.settings-dropdown {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  overflow: hidden;
}

.settings-dropdown[open] {
  border-color: rgba(10, 132, 255, 0.32);
}

.settings-dropdown-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(360px, 100%);
  position: relative;
  text-align: center;
  padding-right: 36px;
}

.settings-dropdown-summary::after {
  content: "▾";
  position: absolute;
  right: 12px;
  font-size: 14px;
  color: currentColor;
}

.settings-dropdown[open] .settings-dropdown-summary::after {
  content: "▴";
}

.settings-dropdown-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-page section {
  border: none;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  overflow: visible;
}

.settings-page .settings-dropdown {
  border: none;
}

.settings-page .settings-dropdown[open] {
  border-color: transparent;
}

.settings-page .settings-dropdown-body {
  padding: 14px 0 0;
}

.settings-page .settings-dropdown-summary {
  width: min(460px, 100%);
  min-height: var(--control-height);
}

.settings-page .settings-dropdown-body > p > .button-link {
  width: min(320px, 100%);
}

.help-page,
.site-page {
  display: grid;
  gap: 14px;
}

.presentation-page {
  display: grid;
  gap: 14px;
}

.help-hero,
.site-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(260px, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.09) 0%, var(--surface) 62%);
}

.help-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.presentation-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(10, 132, 255, 0.34);
  background:
    radial-gradient(540px 220px at 0% 0%, rgba(10, 132, 255, 0.16) 0%, transparent 72%),
    linear-gradient(180deg, rgba(10, 132, 255, 0.09) 0%, var(--surface) 62%);
}

.presentation-hero-copy {
  display: grid;
  gap: 10px;
}

.presentation-hero-copy h1 {
  margin-bottom: 0;
}

.presentation-hero-visual {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.presentation-hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--text);
}

.presentation-deck-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 20;
  padding: 12px;
}

.presentation-deck-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.presentation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.32);
  color: var(--accent-strong);
  background: rgba(10, 132, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.presentation-chip:hover {
  text-decoration: none;
  border-color: rgba(10, 132, 255, 0.5);
  background: rgba(10, 132, 255, 0.16);
}

.presentation-slide {
  border: 1px solid rgba(114, 132, 166, 0.3);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 72%);
}

.presentation-slide-index {
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.presentation-kpi-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.presentation-kpi {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.presentation-kpi h3 {
  margin: 0 0 8px;
}

.presentation-kpi p {
  margin: 0;
  color: var(--muted);
}

.presentation-slide-final {
  border-color: rgba(10, 132, 255, 0.42);
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(10, 132, 255, 0.12) 0%, transparent 72%),
    linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 72%);
}

.presentation-final-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 132, 255, 0.35);
  background: rgba(10, 132, 255, 0.1);
}

.site-hero-strong {
  border-color: rgba(10, 132, 255, 0.38);
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(10, 132, 255, 0.16) 0%, transparent 72%),
    linear-gradient(180deg, rgba(10, 132, 255, 0.1) 0%, var(--surface) 62%);
}

.site-highlight-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.site-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.site-stat-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.site-stat-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.site-stat-item p {
  margin: 0;
  color: var(--muted);
}

.help-hero-visual,
.site-hero-visual {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.help-hero-visual svg,
.site-hero-visual svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--text);
}

.help-grid,
.site-grid,
.site-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.feature-showcase-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.help-card,
.site-card,
.help-faq-item,
.site-feature-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.feature-showcase-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  display: grid;
  gap: 8px;
}

.feature-showcase-kicker {
  margin: 0;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.feature-showcase-card h3 {
  margin: 0;
}

.feature-showcase-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.feature-chip-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-chip-list li {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.26);
  background: rgba(10, 132, 255, 0.08);
  color: var(--text);
  font-size: 11px;
  line-height: 1.1;
}

.feature-flow-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}

.feature-flow-step {
  border: 1px solid rgba(10, 132, 255, 0.26);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.09) 0%, var(--surface-soft) 100%);
  display: grid;
  gap: 6px;
}

.feature-flow-step strong {
  width: fit-content;
  min-width: 26px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.14);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.1;
}

.feature-flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.3;
}

.help-card h3,
.help-faq-item h3,
.site-feature-item h3 {
  margin: 0 0 8px;
}

.help-card p,
.help-faq-item p,
.site-card p,
.site-feature-item p {
  margin: 0;
}

.help-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.help-faq {
  display: grid;
  gap: 10px;
}

.providers-section {
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.07) 0%, var(--surface) 68%);
}

.providers-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.provider-card,
.provider-other-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.provider-card h3,
.provider-other-card h3 {
  margin: 0 0 8px;
}

.provider-card p {
  margin: 0;
  color: var(--muted);
}

.provider-links {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.provider-links a {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.09);
  color: var(--accent-strong);
  text-decoration: none;
}

.provider-links a:hover {
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.14);
}

.provider-other-card {
  margin-top: 12px;
}

.provider-other-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
}

.provider-other-card .caption {
  margin-top: 10px;
}

.lead-request-section {
  border: 1px solid rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, var(--surface) 68%);
}

.lead-request-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
  gap: 12px;
}

.lead-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.lead-form-compact {
  padding: 12px;
}

.lead-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.settings-page .settings-shortcut {
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
}

.settings-page .settings-shortcut-link {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding-inline: 16px;
}

.settings-page .settings-shortcut > .caption {
  width: 100%;
  padding-inline: 14px;
  text-align: center;
  line-height: 1.35;
}

.settings-page .settings-shortcut-link.is-current {
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.24), 0 10px 20px rgba(10, 132, 255, 0.25);
}

.settings-import-export {
  gap: 10px;
  flex-wrap: wrap;
}

.settings-import-export form {
  align-items: center;
  flex-wrap: wrap;
}

.settings-import-export input[type="file"] {
  width: min(320px, 100%);
  min-height: 38px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.integration-transfer-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, var(--surface) 62%);
}

.integration-transfer-panel-head h2 {
  margin: 0 0 6px;
}

.integration-transfer-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.transfer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 14px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.transfer-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.transfer-chip:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.transfer-chip-export {
  border-color: rgba(10, 132, 255, 0.35);
  color: var(--accent-strong);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.12) 100%);
}

.transfer-chip-import {
  border-color: rgba(52, 199, 89, 0.45);
  color: #fff;
  background: linear-gradient(180deg, #43d477 0%, #24a24f 100%);
}

.transfer-import-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.transfer-import-form select {
  width: min(340px, 100%);
}

.transfer-import-form .transfer-chip {
  width: fit-content;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.transfer-import-form .transfer-chip-import {
  border-color: rgba(52, 199, 89, 0.45);
  color: #fff;
  background: linear-gradient(180deg, #43d477 0%, #24a24f 100%);
}

.transfer-file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed rgba(10, 132, 255, 0.42);
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--accent-strong);
  background: rgba(10, 132, 255, 0.08);
  cursor: pointer;
}

.transfer-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.transfer-file-picker svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.card {
  padding: 14px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.cards .card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: 0 16px 30px rgba(10, 132, 255, 0.14);
}

.metric {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.caption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(10, 132, 255, 0.05);
}

.grid-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  max-width: 760px;
}

.grid-form-field {
  display: grid;
  gap: 6px;
}

.checkbox-dropdown {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-dropdown[open],
.checkbox-dropdown.has-selection {
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.1);
}

.checkbox-dropdown-summary {
  list-style: none;
  width: 100%;
  min-height: var(--control-height);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-dropdown-summary-text {
  font-size: 13px;
  color: var(--muted);
}

.checkbox-dropdown.has-selection .checkbox-dropdown-summary-text {
  color: var(--text);
}

.checkbox-dropdown-badge {
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.25);
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.checkbox-dropdown-summary::-webkit-details-marker {
  display: none;
}

.checkbox-dropdown-summary::marker {
  content: "";
}

.checkbox-dropdown-caret {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.checkbox-dropdown[open] .checkbox-dropdown-caret {
  color: var(--accent-strong);
  transform: rotate(180deg);
}

.checkbox-dropdown-panel {
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.checkbox-dropdown-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(114, 132, 166, 0.24);
  border-radius: 12px;
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.checkbox-dropdown-item:hover {
  border-color: rgba(10, 132, 255, 0.35);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.checkbox-dropdown-item input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-dropdown-item-check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid rgba(114, 132, 166, 0.55);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-dropdown-item input[type="checkbox"]:focus-visible + .checkbox-dropdown-item-check {
  box-shadow: var(--focus-ring);
}

.checkbox-dropdown-item input[type="checkbox"]:checked + .checkbox-dropdown-item-check {
  border-color: rgba(10, 132, 255, 0.82);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.checkbox-dropdown-item input[type="checkbox"]:checked + .checkbox-dropdown-item-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-dropdown-item-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.checkbox-dropdown-item-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}

.checkbox-dropdown-item-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
}

.checkbox-dropdown-item input[type="checkbox"]:checked + .checkbox-dropdown-item-check + .checkbox-dropdown-item-body .checkbox-dropdown-item-title {
  color: var(--accent-strong);
}

.stats-profiles-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.stats-profiles-tab-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.stats-profiles-tab-link:hover {
  text-decoration: none;
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.1);
}

.stats-profiles-tab-link.is-active {
  border-color: rgba(10, 132, 255, 0.4);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.2) 0%, rgba(10, 132, 255, 0.12) 100%);
  color: var(--accent-strong);
  font-weight: 600;
}

.bp-relation-form {
  max-width: 100%;
}

.bp-editor-card {
  border: 1px solid rgba(10, 132, 255, 0.32);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, var(--surface) 72%);
  display: grid;
  gap: 10px;
}

.bp-editor-card h3 {
  margin-bottom: 0;
}

.bp-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
}

.bp-editor-column {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.bp-editor-column label {
  margin: 0;
}

.bp-editor-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-editor-picker select {
  min-width: 0;
}

.bp-editor-picker .button-compact {
  width: fit-content;
  min-width: 108px;
}

.bp-selection-list {
  min-height: 44px;
  display: grid;
  gap: 8px;
}

.bp-selection-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(10, 132, 255, 0.26);
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.09);
}

.bp-selection-item span {
  min-width: 0;
  word-break: break-word;
  line-height: 1.25;
}

.bp-selection-remove {
  width: fit-content;
  min-height: auto;
  border: 1px solid rgba(255, 59, 48, 0.28);
  border-radius: 8px;
  padding: 3px 8px;
  color: #b42d24;
  background: rgba(255, 59, 48, 0.1);
  text-decoration: none;
}

.bp-selection-remove:hover {
  text-decoration: none;
  border-color: rgba(255, 59, 48, 0.44);
  background: rgba(255, 59, 48, 0.16);
}

.bp-list-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.3);
  background: rgba(10, 132, 255, 0.11);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.1;
}

.business-processes-overview {
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, var(--surface) 68%);
}

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

.bp-overview-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.bp-overview-item h3 {
  margin-bottom: 8px;
}

.bp-overview-item .metric {
  font-size: clamp(22px, 2.4vw, 30px);
}

.business-processes-diagram-card {
  border: 1px solid rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.09) 0%, var(--surface) 68%);
}

.bp-diagram-head {
  margin-bottom: 12px;
}

.bp-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 110px;
  padding: 10px 8px;
}

.bp-diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.bp-line {
  fill: none;
  stroke: rgba(10, 132, 255, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
}

.bp-line-active {
  stroke: rgba(10, 132, 255, 0.78);
  stroke-width: 3;
}

.bp-column {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.bp-column h3 {
  margin-bottom: 0;
}

.bp-node-list {
  display: grid;
  gap: 10px;
}

.bp-node {
  width: 100%;
  min-height: 62px;
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(114, 132, 166, 0.34);
  box-shadow: none;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.bp-node:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.4);
  box-shadow: 0 10px 20px rgba(10, 132, 255, 0.12);
}

.bp-node.is-selected {
  border-color: rgba(10, 132, 255, 0.74);
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.2), 0 12px 24px rgba(10, 132, 255, 0.2);
}

.bp-node.is-default {
  border-style: solid;
  border-color: rgba(52, 199, 89, 0.5);
  background: linear-gradient(180deg, rgba(52, 199, 89, 0.14) 0%, var(--surface-soft) 100%);
}

.bp-node.is-disabled {
  opacity: 0.64;
}

.bp-node[disabled] {
  cursor: not-allowed;
}

.bp-node[disabled]:hover {
  transform: none;
  border-color: rgba(114, 132, 166, 0.34);
  box-shadow: none;
}

.bp-node-title {
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}

.bp-node-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.bp-action-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(10, 132, 255, 0.42);
  border-radius: 14px;
  background: rgba(10, 132, 255, 0.07);
  display: grid;
  gap: 10px;
}

.bp-action-panel h3 {
  margin-bottom: 0;
}

.bp-selected-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.bp-selected-grid p {
  margin: 0;
}

.bp-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.bp-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(52, 199, 89, 0.34);
  background: rgba(52, 199, 89, 0.14);
  color: #1f8f46;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.bp-status-muted {
  border-color: rgba(114, 132, 166, 0.38);
  background: rgba(114, 132, 166, 0.13);
  color: var(--muted);
}

.bp-status-default {
  border-color: rgba(10, 132, 255, 0.4);
  background: rgba(10, 132, 255, 0.14);
  color: var(--accent-strong);
}

.bp-status-warning {
  border-color: rgba(255, 149, 0, 0.46);
  background: rgba(255, 149, 0, 0.14);
  color: #b26b00;
}

.dashboard-filter-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-sm);
}

.dashboard-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-filter-head h2 {
  margin: 0;
}

.dashboard-export-trigger {
  flex: 0 0 auto;
  border-color: rgba(10, 132, 255, 0.35);
  color: var(--accent-strong);
}

.dashboard-filter-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dashboard-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  flex: 0 0 auto;
}

.dashboard-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-filter-profile-link {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.dashboard-filter-profile-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.dashboard-filter-profile-link:hover {
  color: var(--accent-strong);
  border-color: rgba(10, 132, 255, 0.35);
  text-decoration: none;
}

.dashboard-filter-profile-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

#dashboard-filter-profile {
  border-color: rgba(10, 132, 255, 0.42);
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230A84FF' d='M3.22 5.97a.75.75 0 0 1 1.06 0L8 9.69l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L3.22 7.03a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 12px center, center;
  background-size: 14px 14px, 100% 100%;
}

#dashboard-filter-profile:hover {
  border-color: rgba(10, 132, 255, 0.58);
}

#dashboard-filter-profile:focus-visible {
  border-color: rgba(10, 132, 255, 0.68);
  box-shadow: var(--focus-ring);
}

#dashboard-filter-profile option {
  color: var(--text);
  background: var(--surface-strong);
}

#dashboard-filter-profile option:checked {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

.dashboard-filter-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dashboard-filter-hint {
  margin-top: 9px;
}

.dashboard-export-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 2px;
}

.dashboard-export-progress::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10, 132, 255, 0.24);
  border-top-color: var(--accent-strong);
  animation: spin 0.8s linear infinite;
}

.dashboard-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-ranking-head h2 {
  margin: 0;
}

.dashboard-ranking-limit-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dashboard-ranking-limit-form label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-ranking-limit-form select {
  width: auto;
  min-width: 84px;
}

.dashboard-ranking-scroll {
  max-height: 260px;
  overflow-y: auto;
}

.dashboard-ranking-scroll table {
  margin: 0;
}

[data-theme="dark"] .logs-panel code,
html[data-theme="dark"] .logs-panel code {
  color: #c7ddff;
}

.logs-page-section {
  display: grid;
  gap: 12px;
}

.logs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.logs-toolbar h2 {
  margin: 0;
}

.logs-filter-form {
  align-items: center;
  gap: 8px;
}

.logs-filter-form select {
  width: min(320px, 100%);
}

.logs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 12px;
}

.logs-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px;
  overflow: auto;
}

.logs-panel h2,
.logs-panel h3 {
  margin: 0 0 10px;
}

.logs-table {
  min-width: 760px;
}

.super-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.super-headline h1 {
  margin: 0;
}

.super-system-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.super-system-indicator-ok {
  color: #1f7f42;
  border-color: rgba(52, 199, 89, 0.45);
  background: rgba(52, 199, 89, 0.14);
}

.super-system-indicator-warning {
  color: #915f06;
  border-color: rgba(255, 195, 66, 0.5);
  background: rgba(255, 195, 66, 0.16);
}

.super-system-indicator-critical {
  color: #9f271f;
  border-color: rgba(255, 59, 48, 0.52);
  background: rgba(255, 59, 48, 0.16);
}

.super-tabs {
  margin: 8px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.super-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.06);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.super-tab-link:hover {
  border-color: rgba(10, 132, 255, 0.48);
  color: var(--text);
}

.super-tab-link.is-active {
  border-color: rgba(10, 132, 255, 0.64);
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-strong);
}

.super-health-section,
.super-control-card {
  border: 1px solid rgba(10, 132, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.08) 0%, var(--surface) 72%);
}

.super-health-grid,
.super-control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.super-health-card,
.super-control-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
}

.super-health-card h3,
.super-control-card h3 {
  margin: 0 0 8px;
}

.metric-line-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.metric-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(10, 132, 255, 0.55);
  background: rgba(10, 132, 255, 0.12);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.super-meter {
  display: grid;
  gap: 6px;
}

.super-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.super-meter-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(114, 132, 166, 0.18);
}

.super-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, #31c6a4 100%);
}

.super-meter-fill-ok {
  background: linear-gradient(90deg, var(--accent) 0%, #31c6a4 100%);
}

.super-meter-fill-warning {
  background: linear-gradient(90deg, #ffd57d 0%, #ff9500 100%);
}

.super-meter-fill-critical {
  background: linear-gradient(90deg, #ff998f 0%, #ff3b30 100%);
}

.super-sensor-meter-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.super-sensor-meter .super-meter-head {
  align-items: flex-start;
}

.super-sensor-meter .super-meter-head > span:first-child {
  max-width: 70%;
  word-break: break-word;
}

.super-sensor-meter-meta {
  margin: 0;
}

.super-alert-list {
  max-height: 220px;
}

.super-alert-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.super-alert-card-head h3 {
  margin: 0;
}

.super-alert-settings-trigger {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.super-alert-settings-trigger svg {
  width: 14px;
  height: 14px;
}

.super-alert-settings-caption {
  margin: 0 0 8px;
}

.super-alert-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: var(--surface-soft);
}

.super-alert-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.super-alert-detail-btn {
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
  min-height: 0;
}

.super-alert-detail-dialog .popup-body {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
}

.super-alert-detail-list {
  margin: 0;
}

.super-alert-settings-dialog .popup-body {
  max-height: 62vh;
  overflow: auto;
}

.super-alert-settings-form {
  gap: 10px;
}

.super-alert-settings-list {
  display: grid;
  gap: 8px;
}

.super-alert-settings-item {
  align-items: flex-start;
}

.super-alert-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.super-alert-dialog-title {
  margin: 0;
}

.super-alert-warning {
  border-color: rgba(255, 195, 66, 0.5);
  background: rgba(255, 195, 66, 0.12);
}

.super-alert-critical {
  border-color: rgba(255, 59, 48, 0.5);
  background: rgba(255, 59, 48, 0.12);
}

.super-cpu-live-panel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.super-cpu-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.super-cpu-live-percent {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-strong);
}

.super-cpu-live-meta {
  margin: 0;
}

.super-cpu-live-source {
  margin: 0;
}

.super-cpu-live-chart {
  height: 124px;
  display: grid;
  grid-template-columns: repeat(36, minmax(4px, 1fr));
  gap: 3px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(114, 132, 166, 0.12) 0%, rgba(114, 132, 166, 0.04) 100%);
  padding: 6px;
}

.super-cpu-live-col {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.super-cpu-live-col-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 4px;
  background: linear-gradient(180deg, #5cc8ff 0%, #0a84ff 100%);
}

.super-cpu-live-col.is-warning .super-cpu-live-col-fill {
  background: linear-gradient(180deg, #ffd57d 0%, #ff9500 100%);
}

.super-cpu-live-col.is-critical .super-cpu-live-col-fill {
  background: linear-gradient(180deg, #ff998f 0%, #ff3b30 100%);
}

.super-cpu-live-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.super-db-live-panel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.super-db-live-panel.is-warning {
  border-color: rgba(255, 149, 0, 0.56);
  background: linear-gradient(180deg, rgba(255, 149, 0, 0.12) 0%, var(--surface-soft) 100%);
}

.super-db-live-panel.is-critical {
  border-color: rgba(255, 59, 48, 0.58);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.12) 0%, var(--surface-soft) 100%);
}

.super-db-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.super-db-live-score {
  font-size: 18px;
  font-weight: 700;
  color: #1f8f46;
}

.super-db-live-panel.is-warning .super-db-live-score {
  color: #c47a00;
}

.super-db-live-panel.is-critical .super-db-live-score {
  color: #d13f2f;
}

.super-db-live-meta {
  margin: 0;
}

.super-db-live-chart {
  height: 124px;
  display: grid;
  grid-template-columns: repeat(36, minmax(4px, 1fr));
  gap: 3px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(114, 132, 166, 0.12) 0%, rgba(114, 132, 166, 0.04) 100%);
  padding: 6px;
}

.super-db-live-col {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.super-db-live-col-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 4px;
  background: linear-gradient(180deg, #7de5ac 0%, #34c759 100%);
}

.super-db-live-col.is-warning .super-db-live-col-fill {
  background: linear-gradient(180deg, #ffd57d 0%, #ff9500 100%);
}

.super-db-live-col.is-critical .super-db-live-col-fill {
  background: linear-gradient(180deg, #ff998f 0%, #ff3b30 100%);
}

.super-db-live-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.super-db-live-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  font-size: 12px;
}

.super-db-live-metrics span {
  color: var(--muted);
}

.super-db-live-metrics strong {
  color: var(--text);
}

.super-cpu-core-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.super-cpu-core-chart {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(114, 132, 166, 0.12) 0%, rgba(114, 132, 166, 0.04) 100%);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.super-cpu-core-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
}

.super-cpu-core-label {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.super-cpu-core-sparkline {
  width: 100%;
  height: 30px;
  display: block;
}

.super-cpu-core-path {
  fill: none;
  stroke: #0a84ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.super-cpu-core-value {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.super-cpu-core-value.is-warning {
  color: #c47a00;
}

.super-cpu-core-value.is-critical {
  color: #d13f2f;
}

.super-cpu-core-empty,
.super-cpu-core-updated {
  margin: 0;
}

.super-activity-card {
  display: grid;
  gap: 10px;
}

.super-activity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

.super-activity-chart {
  height: 160px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(24, minmax(6px, 1fr));
  gap: 3px;
  align-items: end;
}

.super-activity-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}

.super-activity-actions,
.super-activity-errors {
  width: 100%;
  min-height: 2px;
  border-radius: 4px;
}

.super-activity-actions {
  background: linear-gradient(180deg, #2f9dfd 0%, #0a84ff 100%);
}

.super-activity-errors {
  background: linear-gradient(180deg, #ff8a80 0%, #ff3b30 100%);
}

.super-activity-legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.super-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.super-dot-actions {
  background: #0a84ff;
}

.super-dot-errors {
  background: #ff3b30;
}

.super-activity-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.super-activity-top-grid h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.super-sensor-extended-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.super-sensor-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}

.super-sensor-chip-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.super-sensor-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0 8px 8px;
}

.super-sensor-chip > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0;
}

.super-sensor-chip-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.super-sensor-chip-table {
  width: 100%;
  min-width: 860px;
}

.super-sensor-chip-table td code {
  white-space: nowrap;
}

.super-sensor-limit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.super-sensor-limit-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  white-space: nowrap;
}

.super-sensor-row-warning td {
  background: rgba(255, 195, 66, 0.08);
}

.super-sensor-row-critical td {
  background: rgba(255, 59, 48, 0.08);
}

.super-alert-dialog-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.super-cache-keys {
  margin-top: 8px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.super-cache-keys-table {
  width: 100%;
  min-width: 520px;
}

.super-cache-keys-table td code {
  white-space: nowrap;
}

.super-updates-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
}

.super-updates-toolbar {
  align-items: flex-start;
}

.super-updates-filter-form {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.super-updates-filter-form label {
  white-space: nowrap;
  margin: 0;
}

.super-updates-filter-form input[type="date"] {
  width: 170px;
  min-width: 170px;
}

.super-updates-filter-form select {
  width: 180px;
  min-width: 180px;
}

.super-updates-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.super-updates-source-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.super-updates-source-panel h3 {
  margin: 0;
}

.super-updates-sync-form {
  margin: 6px 0 10px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.super-updates-source-form {
  margin: 0;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.super-updates-source-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(140px, 220px) auto auto;
  gap: 10px;
  align-items: end;
}

.super-updates-source-active-check {
  min-height: 38px;
  white-space: nowrap;
}

.super-updates-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.super-updates-source-actions form {
  margin: 0;
}

.super-updates-bulk-form {
  display: grid;
  gap: 10px;
}

.super-updates-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.super-updates-actions input[type="text"] {
  min-width: 260px;
  flex: 1 1 280px;
}

.super-updates-filter-form button[type="submit"],
.super-updates-filter-form .button-link,
.super-updates-sync-form button[type="submit"],
.super-updates-source-grid > button[type="submit"],
.super-updates-source-actions button[type="submit"],
.super-updates-actions button[type="submit"] {
  width: fit-content;
  min-width: 132px;
  min-height: 38px;
  padding: 8px 14px;
}

.super-updates-sync-form select {
  width: 150px;
  min-width: 150px;
}

.super-updates-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.super-monitoring-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.super-monitoring-table-wrap table {
  min-width: 760px;
  margin: 0;
}

.super-monitoring-table-wrap th,
.super-monitoring-table-wrap td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.super-updates-table {
  min-width: 980px;
  margin: 0;
}

.super-updates-sources-table {
  min-width: 980px;
  margin: 0;
}

.super-updates-sources-table td code {
  white-space: nowrap;
}

.super-updates-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-strong);
}

.super-updates-sources-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-strong);
}

.release-type,
.release-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}

.release-type-feature {
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.15);
  color: #0a5fb8;
}

.release-type-fix {
  border-color: rgba(255, 149, 0, 0.45);
  background: rgba(255, 149, 0, 0.16);
  color: #955b00;
}

.release-status-published {
  border-color: rgba(52, 199, 89, 0.45);
  background: rgba(52, 199, 89, 0.14);
  color: #1f7f42;
}

.release-status-draft {
  border-color: rgba(132, 146, 166, 0.46);
  background: rgba(132, 146, 166, 0.12);
  color: var(--muted);
}

.release-status-recalled {
  border-color: rgba(255, 59, 48, 0.5);
  background: rgba(255, 59, 48, 0.14);
  color: #9f271f;
}

.release-update-row-recalled {
  background: rgba(255, 59, 48, 0.08);
}

.updates-page {
  display: grid;
  gap: 12px;
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.updates-column {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px;
}

.updates-column h2 {
  margin-top: 0;
}

.update-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 10px;
  display: grid;
  gap: 6px;
}

.update-card + .update-card {
  margin-top: 10px;
}

.update-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.update-card-date {
  font-size: 12px;
  color: var(--muted);
}

.update-card h3 {
  margin: 0;
  font-size: 16px;
}

.update-card-recalled {
  border-color: rgba(255, 59, 48, 0.52);
  background: rgba(255, 59, 48, 0.08);
}

.update-card-flag {
  margin: 0;
  color: #9f271f;
  font-weight: 600;
}

html[data-theme="dark"] .super-health-section,
html[data-theme="dark"] .super-control-card {
  border-color: rgba(77, 163, 255, 0.35);
  background: linear-gradient(180deg, rgba(28, 62, 110, 0.22) 0%, rgba(18, 31, 50, 0.84) 72%);
}

html[data-theme="dark"] .super-health-card,
html[data-theme="dark"] .super-control-card {
  background: linear-gradient(180deg, rgba(30, 47, 74, 0.84) 0%, rgba(18, 30, 49, 0.82) 100%);
  border-color: rgba(128, 145, 175, 0.3);
}

html[data-theme="dark"] .super-meter-track,
html[data-theme="dark"] .super-activity-chart {
  background: rgba(10, 20, 36, 0.72);
}

html[data-theme="dark"] .release-type-feature {
  color: #80b9ff;
}

html[data-theme="dark"] .release-type-fix {
  color: #ffc56d;
}

html[data-theme="dark"] .release-status-published {
  color: #86d6a1;
}

html[data-theme="dark"] .release-status-recalled,
html[data-theme="dark"] .update-card-flag {
  color: #ff9a92;
}

html[data-theme="dark"] .release-update-row-recalled,
html[data-theme="dark"] .update-card-recalled {
  background: rgba(255, 59, 48, 0.16);
}

html[data-theme="dark"] .updates-column {
  background: rgba(18, 30, 49, 0.82);
  border-color: rgba(128, 145, 175, 0.3);
}

html[data-theme="dark"] .update-card {
  background: rgba(24, 38, 58, 0.82);
}

[hidden] {
  display: none !important;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

label {
  font-size: 12px;
  color: var(--muted);
}

.field-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
}

.field-help-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.4);
  background: rgba(10, 132, 255, 0.14);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  cursor: help;
}

.field-help-icon:hover {
  border-color: rgba(10, 132, 255, 0.6);
  background: rgba(10, 132, 255, 0.2);
}

.field-help-icon:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

input,
select,
textarea,
button,
.select-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: var(--control-height);
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface-strong);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

input[type="date"] {
  -webkit-appearance: auto;
  appearance: auto;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.9;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.button-link:focus-visible,
summary:focus-visible {
  box-shadow: var(--focus-ring);
}

button {
  cursor: pointer;
  border: none;
  min-height: var(--control-height);
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 20px rgba(10, 132, 255, 0.26);
  transition: transform 0.2s ease, filter 0.2s ease;
}

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

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.settings-page .grid-form > button[type="submit"]:not(.icon-button),
.settings-page .inline-form > button[type="submit"]:not(.icon-button) {
  width: fit-content;
  min-width: 168px;
  padding-inline: 16px;
}

.button-compact {
  width: fit-content;
  min-width: 118px;
  min-height: 38px;
  padding: 8px 14px;
}

.button-create,
.button-save {
  color: #fff;
  border: 1px solid rgba(52, 199, 89, 0.46);
  background: linear-gradient(180deg, #43d477 0%, #24a24f 100%);
  box-shadow: 0 10px 20px rgba(52, 199, 89, 0.25);
}

.button-sync {
  color: #fff;
  border: 1px solid rgba(42, 177, 162, 0.5);
  background: linear-gradient(180deg, #34c9b4 0%, #188f83 100%);
  box-shadow: 0 10px 20px rgba(24, 143, 131, 0.26);
}

.external-users-filter {
  max-width: none;
}

.external-users-filter .radio-item {
  padding: 6px 10px;
  border-radius: 10px;
}

.external-users-sync {
  align-items: flex-end;
  gap: 10px;
}

.external-users-sync select {
  width: min(460px, 100%);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: var(--control-height);
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 9px 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 10px 20px rgba(10, 132, 255, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.button-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.button-muted {
  color: var(--text);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  box-shadow: none;
}

summary.button-link {
  list-style: none;
}

summary.button-link::-webkit-details-marker {
  display: none;
}

summary.button-link::marker {
  content: "";
}

.icon-button {
  width: var(--control-height);
  height: var(--control-height);
  min-height: 0;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  color: var(--text);
  box-shadow: none;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-button:hover {
  filter: brightness(0.98);
}

.icon-button.danger {
  color: #fff;
  border-color: rgba(255, 95, 87, 0.45);
  background: linear-gradient(180deg, var(--danger) 0%, var(--danger-strong) 100%);
}

summary.icon-button {
  list-style: none;
}

summary.icon-button::-webkit-details-marker {
  display: none;
}

summary.icon-button::marker {
  content: "";
}

.actions-inline,
.icon-cluster {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.icon-cluster > details,
.icon-cluster > form {
  margin: 0;
}

.bot-studio-page .grid-form > button[type="submit"]:not(.icon-button),
.bot-studio-page .inline-form > button[type="submit"]:not(.icon-button) {
  min-width: 138px;
  min-height: 36px;
  padding: 7px 12px;
}

.bot-studio-page .button-compact {
  min-width: 104px;
  min-height: 34px;
  padding: 6px 12px;
}

.bot-studio-bulk-actions-form {
  margin: 10px 0 12px;
}

.bot-studio-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.bot-studio-bulk-actions .caption {
  margin-left: auto;
}

.bot-studio-bulk-actions button[type="submit"] {
  width: fit-content;
  min-width: 170px;
  min-height: 38px;
  padding: 8px 14px;
}

.bot-studio-bots-table .bot-studio-bots-select-col {
  width: 76px;
  text-align: center;
  vertical-align: middle;
}

.bot-studio-bots-table td.bot-studio-bots-select-col {
  vertical-align: middle;
}

.bot-studio-tabs {
  margin-top: 2px;
}

.bot-studio-tab-link {
  width: fit-content;
  min-width: 0;
  color: var(--text);
  box-shadow: none;
  background: transparent;
  border: 1px solid transparent;
}

.bot-studio-tab-link:hover {
  transform: none;
  filter: none;
}

.bot-studio-tab-link-comment {
  display: grid;
  gap: 1px;
  justify-items: center;
  align-content: center;
  line-height: 1.1;
}

.bot-studio-tab-link-comment small {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.bot-studio-tab-link-comment.is-active small {
  color: var(--accent-strong);
}

.bot-studio-tab-panel[hidden] {
  display: none !important;
}

.bot-scenario-tabs-wrap {
  margin: 8px 0 12px;
  display: grid;
  gap: 8px;
}

.bot-scenario-tabs-wrap .caption {
  margin: 0;
}

.bot-scenarios-transfer-line {
  margin: 10px 0 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 0%, rgba(10, 132, 255, 0.14), transparent 52%),
    linear-gradient(90deg, rgba(10, 132, 255, 0.08) 0%, rgba(52, 199, 89, 0.08) 100%);
}

.bot-scenarios-transfer-form {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.bot-scenarios-transfer-label {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.bot-scenarios-transfer-select {
  width: clamp(240px, 34vw, 420px);
  min-height: 40px;
}

.bot-scenarios-transfer-select[multiple] {
  padding-block: 9px;
}

.bot-scenarios-transfer-picker {
  min-width: 180px;
  background: rgba(10, 132, 255, 0.12);
  border-color: rgba(10, 132, 255, 0.4);
}

.bot-scenarios-transfer-btn {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .bot-scenarios-transfer-line {
    align-items: stretch;
  }

  .bot-scenarios-transfer-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .bot-scenarios-transfer-select {
    width: 100%;
  }
}

.bot-scenario-tabs {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bot-scenario-tab-link {
  width: fit-content;
  min-width: 0;
  white-space: nowrap;
  color: var(--text);
  box-shadow: none;
  background: transparent;
  border: 1px solid transparent;
}

.bot-scenario-tab-link:hover {
  transform: none;
  filter: none;
}

.scenario-template-controls {
  display: grid;
  grid-template-columns: minmax(980px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.scenario-template-controls select {
  width: 100%;
  min-width: 980px;
  min-height: 74px;
  padding: 14px 16px;
  font-size: 17px;
}

.scenario-template-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.scenario-template-actions .button-compact {
  white-space: nowrap;
  min-height: 70px;
  padding: 14px 18px;
  font-size: 15px;
  min-width: 160px;
}

.scenario-template-help-btn {
  width: 70px;
  min-width: 70px;
  min-height: 70px;
  padding-left: 0;
  padding-right: 0;
  font-size: 24px;
  font-weight: 700;
}

.template-help-dialog {
  width: min(1200px, calc(100vw - 28px));
}

.template-help-body {
  display: grid;
  gap: 10px;
}

.template-help-body h4 {
  margin: 4px 0 0;
  font-size: 15px;
}

.template-help-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.template-help-table-wrap {
  overflow-x: auto;
}

.template-help-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.template-help-table th,
.template-help-table td {
  border: 1px solid var(--line);
  padding: 8px 9px;
  vertical-align: top;
  text-align: left;
}

.template-help-table th {
  background: var(--surface-soft);
  font-weight: 600;
}

.bot-studio-page .bot-scenario-form {
  max-width: 1520px;
}

.bot-studio-page .scenario-edit-dialog {
  width: min(1560px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  min-width: min(980px, calc(100vw - 20px));
  height: min(88vh, 980px);
  min-height: min(640px, calc(100vh - 20px));
  max-height: calc(100vh - 20px);
  resize: both;
  overflow: hidden;
}

.bot-studio-page .scenario-edit-dialog[open] {
  display: flex;
  flex-direction: column;
}

.bot-studio-page .scenario-edit-dialog .popup-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.bot-studio-page .scenario-edit-dialog .bot-scenario-form {
  max-width: none;
  width: 100%;
}

.bot-constructor-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  box-shadow: 0 10px 22px rgba(7, 14, 28, 0.06);
}

.bot-constructor-section > h2 {
  margin: 0;
  font-size: 22px;
}

.bot-constructor-section > .caption {
  margin: 0;
  max-width: 1040px;
  line-height: 1.45;
}

.bot-constructor-form {
  max-width: 1320px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: 0 8px 18px rgba(7, 14, 28, 0.06);
}

.bot-constructor-form > label:not(.checkbox) {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bot-constructor-form > select {
  min-height: 44px;
  font-size: 14px;
}

.bot-constructor-form > .checkbox {
  margin-top: 2px;
}

.bot-constructor-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.bot-constructor-module-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 5px 10px;
  align-content: start;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bot-constructor-module-item:hover {
  border-color: rgba(10, 132, 255, 0.36);
  box-shadow: 0 10px 18px rgba(10, 132, 255, 0.12);
  transform: translateY(-1px);
}

.bot-constructor-module-item input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.bot-constructor-module-item strong,
.bot-constructor-module-item .caption {
  grid-column: 2;
}

.bot-constructor-module-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.bot-constructor-module-item .caption {
  margin: 0;
  line-height: 1.4;
}

.bot-constructor-module-item input[type="checkbox"]:checked ~ strong {
  color: var(--accent-strong);
}

.bot-constructor-module-item input[type="checkbox"]:checked ~ .caption {
  color: var(--text);
}

.bot-builder-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.bot-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bot-builder-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.bot-builder-grid,
.bot-builder-rows {
  display: grid;
  gap: 8px;
}

.bot-builder-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.6fr auto;
  gap: 8px;
  align-items: end;
}

.bot-builder-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.bot-builder-row-actions .button-compact {
  white-space: nowrap;
}

.bot-builder-row-form {
  grid-template-columns: 0.8fr 1fr 1.2fr 1.2fr 1.5fr auto auto;
}

.bot-builder-raw {
  display: grid;
  gap: 8px;
}

.bot-builder-raw summary {
  cursor: pointer;
}

.popup-dialog,
.confirm-dialog {
  width: min(760px, calc(100vw - 28px));
  border: none;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}

.popup-dialog {
  box-shadow: var(--shadow-lg);
}

.popup-dialog-business-process {
  width: min(1520px, calc(100vw - 28px));
}

.popup-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(7, 14, 28, 0.44);
  backdrop-filter: blur(3px);
}

.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
}

.popup-head h3 {
  margin: 0;
}

.popup-body {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 22px 22px;
}

.popup-dialog-business-process .popup-body {
  max-height: min(82vh, 880px);
  overflow: auto;
}

.confirm-dialog {
  width: min(420px, calc(100vw - 28px));
}

.confirm-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.confirm-card h3 {
  margin: 0 0 8px;
}

.confirm-card p {
  margin: 0 0 14px;
  color: var(--muted);
  white-space: pre-line;
  max-height: min(52vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #f0ca6a;
  background: linear-gradient(180deg, #ffe7a6 0%, #ffd56b 100%);
  color: #5a3b00;
  font-weight: 700;
  cursor: pointer;
}

.danger {
  background: linear-gradient(180deg, var(--danger) 0%, var(--danger-strong) 100%);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  padding: 16px;
  z-index: 220;
  display: grid;
  place-items: center;
  background: rgba(7, 14, 28, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(1120px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
}

.radio-item input[type="radio"] {
  margin: 0;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
  max-height: 260px;
  overflow: auto;
}

.alert {
  margin: 0 0 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert.ok {
  background: rgba(52, 199, 89, 0.16);
  border-color: rgba(52, 199, 89, 0.38);
}

.alert.error {
  background: rgba(255, 59, 48, 0.14);
  border-color: rgba(255, 95, 87, 0.42);
}

.login-body {
  min-height: 100vh;
  padding: 14px;
}

.login-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  position: relative;
}

.login-shell-split {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(360px, 0.95fr);
  align-items: start;
  gap: 12px;
  position: relative;
  isolation: isolate;
}

.login-shell-ambient {
  position: absolute;
  inset: -80px -40px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-shell-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.28;
  animation: login-orb-float 12s ease-in-out infinite;
}

.login-shell-orb-a {
  width: 280px;
  height: 280px;
  left: -70px;
  top: -30px;
  background: radial-gradient(circle at 32% 32%, rgba(10, 132, 255, 0.58), rgba(10, 132, 255, 0.04));
}

.login-shell-orb-b {
  width: 340px;
  height: 340px;
  right: -120px;
  top: 120px;
  background: radial-gradient(circle at 42% 42%, rgba(52, 201, 180, 0.54), rgba(52, 201, 180, 0.05));
  animation-delay: -3s;
}

.login-shell-orb-c {
  width: 260px;
  height: 260px;
  right: 40%;
  bottom: -130px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 213, 107, 0.46), rgba(255, 213, 107, 0.02));
  animation-delay: -6s;
}

.login-side-panel,
.login-main-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
}

.login-side-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.09) 0%, var(--surface) 68%);
}

.login-side-panel .help-kicker {
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: left;
}

.login-live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-live-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.32);
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.18) 0%, rgba(10, 132, 255, 0.08) 100%);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.login-live-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 14%, rgba(255, 255, 255, 0.36) 50%, transparent 84%);
  transform: translateX(-120%);
  animation: login-chip-shimmer 4.4s ease-in-out infinite;
}

.login-main-panel {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
}

.login-provider-mini-grid {
  display: grid;
  gap: 10px;
}

.login-provider-mini-item {
  border: 1px solid rgba(114, 132, 166, 0.26);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.login-provider-mini-item:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.36);
  box-shadow: 0 14px 30px rgba(10, 132, 255, 0.14);
}

.login-provider-mini-item h3 {
  margin: 0 0 6px;
}

.login-provider-mini-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.login-provider-mini-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.login-provider-mini-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.09);
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 12px;
}

.login-provider-mini-links a:hover {
  border-color: rgba(10, 132, 255, 0.45);
  background: rgba(10, 132, 255, 0.14);
}

.login-side-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  display: grid;
  gap: 10px;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.login-side-card:hover {
  border-color: rgba(10, 132, 255, 0.34);
  box-shadow: 0 12px 28px rgba(10, 132, 255, 0.11);
}

.login-side-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.login-side-card-head h3 {
  margin: 0;
}

.login-side-card-head .button-link {
  min-width: 0;
  white-space: nowrap;
}

.login-side-lead-form {
  max-width: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.login-side-lead-form .lead-form-actions {
  margin-top: 2px;
}

.login-side-lead-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.login-side-lead-details[open] {
  border-color: rgba(10, 132, 255, 0.34);
}

.login-side-lead-toggle {
  width: 100%;
  justify-content: flex-start;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--accent-strong);
  padding: 10px 12px;
}

.login-side-lead-toggle:hover {
  transform: none;
  filter: none;
  background: rgba(10, 132, 255, 0.08);
}

.login-side-lead-panel {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.login-card {
  padding: 24px 26px;
  margin: 0;
}

.login-float-card {
  padding: 10px 12px;
  border: 1px solid rgba(114, 132, 166, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-soft) 100%);
  box-shadow: none;
}

.login-float-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.login-float-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.32;
}

.login-main-panel .login-float-center {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(10, 132, 255, 0.52);
  background: linear-gradient(160deg, rgba(10, 132, 255, 0.2) 0%, rgba(16, 157, 206, 0.08) 36%, var(--surface) 100%);
  box-shadow: 0 26px 58px rgba(10, 132, 255, 0.2), var(--shadow-md);
  overflow: hidden;
}

.login-main-panel .login-float-center::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.login-main-spotlight::after {
  content: "";
  position: absolute;
  width: 220%;
  height: 220%;
  left: -60%;
  top: -120%;
  border-radius: 50%;
  background: conic-gradient(
    from 90deg,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.0)
  );
  pointer-events: none;
  animation: login-spotlight-spin 14s linear infinite;
  mix-blend-mode: soft-light;
}

.login-card-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  font-weight: 700;
  text-align: left;
  align-self: flex-start;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.login-brand h1 {
  margin: 0;
}

.login-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.login-card > p {
  margin: 0 0 12px;
}

.login-card form {
  display: grid;
  gap: 8px;
}

.login-subtitle {
  color: var(--muted);
  line-height: 1.4;
}

.login-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.login-form-actions > button {
  min-width: 126px;
}

.login-about-link {
  min-width: 126px;
}

.login-card-hint {
  margin-top: 12px;
}

.login-main-summary {
  display: grid;
  gap: 8px;
}

.login-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 6px;
}

.login-capability-item {
  border: 1px solid rgba(114, 132, 166, 0.3);
  border-radius: 12px;
  padding: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.login-capability-item:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.1);
}

.login-lead-card {
  border-color: rgba(10, 132, 255, 0.34);
}

.login-reveal {
  animation: login-panel-reveal 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.login-reveal-a {
  animation-delay: 0.03s;
}

.login-reveal-b {
  animation-delay: 0.12s;
}

.login-provider-mini-item,
.login-side-card,
.login-main-summary .login-float-card,
.login-capability-item {
  animation: login-item-reveal 0.66s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.login-stagger-1 {
  animation-delay: 0.09s;
}

.login-stagger-2 {
  animation-delay: 0.17s;
}

.login-stagger-3 {
  animation-delay: 0.25s;
}

.login-stagger-4 {
  animation-delay: 0.33s;
}

html[data-theme="dark"] .login-side-panel {
  background: linear-gradient(180deg, rgba(28, 62, 110, 0.26) 0%, rgba(18, 31, 50, 0.84) 68%);
}

html[data-theme="dark"] .login-main-panel {
  background: linear-gradient(180deg, rgba(25, 38, 60, 0.9) 0%, rgba(18, 30, 48, 0.86) 100%);
}

html[data-theme="dark"] .login-float-card {
  background: linear-gradient(180deg, rgba(31, 47, 73, 0.78) 0%, rgba(19, 31, 50, 0.76) 100%);
  border-color: rgba(128, 145, 175, 0.3);
}

html[data-theme="dark"] .login-main-panel .login-float-center::before {
  border-color: rgba(77, 163, 255, 0.34);
}

html[data-theme="dark"] .login-provider-mini-item {
  border-color: rgba(128, 145, 175, 0.34);
  background: linear-gradient(180deg, rgba(30, 47, 74, 0.84) 0%, rgba(18, 30, 49, 0.82) 100%);
}

html[data-theme="dark"] .login-live-chip {
  border-color: rgba(77, 163, 255, 0.4);
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.22) 0%, rgba(77, 163, 255, 0.12) 100%);
}

html[data-theme="dark"] .login-shell-orb {
  opacity: 0.34;
}

html[data-theme="dark"] .app-ambient-orb {
  opacity: 0.34;
}

html[data-theme="dark"] .sidebar:hover {
  border-color: rgba(77, 163, 255, 0.4);
  box-shadow: 0 18px 36px rgba(2, 7, 18, 0.44);
}

html[data-theme="dark"] .content > section:hover,
html[data-theme="dark"] .site-page > section:hover,
html[data-theme="dark"] .help-page > section:hover,
html[data-theme="dark"] .presentation-page > section:hover,
html[data-theme="dark"] .cards .card:hover {
  border-color: rgba(77, 163, 255, 0.42);
  box-shadow: 0 16px 32px rgba(2, 7, 18, 0.45);
}

html[data-theme="dark"] .presentation-hero {
  border-color: rgba(77, 163, 255, 0.42);
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(77, 163, 255, 0.18) 0%, transparent 72%),
    linear-gradient(180deg, rgba(26, 47, 76, 0.56) 0%, rgba(16, 27, 43, 0.86) 72%);
}

html[data-theme="dark"] .presentation-slide {
  border-color: rgba(128, 145, 175, 0.36);
  background: linear-gradient(180deg, rgba(24, 36, 57, 0.94) 0%, rgba(18, 30, 49, 0.84) 72%);
}

html[data-theme="dark"] .presentation-slide-final {
  border-color: rgba(77, 163, 255, 0.46);
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(77, 163, 255, 0.16) 0%, transparent 72%),
    linear-gradient(180deg, rgba(24, 36, 57, 0.94) 0%, rgba(18, 30, 49, 0.84) 72%);
}

html[data-theme="dark"] tbody tr:hover {
  background: rgba(77, 163, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .app-ambient-orb,
  .login-shell-orb,
  .login-live-chip::after,
  .login-main-spotlight::after,
  .login-reveal,
  .login-provider-mini-item,
  .login-side-card,
  .login-main-summary .login-float-card,
  .login-capability-item {
    animation: none !important;
  }

  .sidebar,
  .content > section,
  .cards .card,
  .login-provider-mini-item,
  .login-side-card,
  .login-capability-item {
    transition: none !important;
  }
}

@keyframes app-orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -16px, 0) scale(1.05);
  }
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-panel-reveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-item-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes login-chip-shimmer {
  0% {
    transform: translateX(-120%);
  }
  38%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes login-orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.04);
  }
}

@keyframes login-spotlight-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 1320px) {
  .super-updates-source-grid {
    grid-template-columns: 1fr 220px;
  }

  .super-updates-source-active-check {
    grid-column: 1 / 2;
  }

  .super-updates-source-grid > button[type="submit"] {
    grid-column: 2 / 3;
  }
}

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

  .sidebar {
    position: static;
    max-height: none;
  }

  .dashboard-filter-form {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .dashboard-filter-actions {
    margin-left: 0;
  }

  .dashboard-ranking-head {
    align-items: flex-start;
  }

  .dashboard-ranking-limit-form {
    width: 100%;
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

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

  .super-health-grid,
  .super-control-grid {
    grid-template-columns: 1fr;
  }

  .super-sensor-extended-card {
    grid-column: auto;
  }

  .help-hero,
  .presentation-hero,
  .site-hero {
    grid-template-columns: 1fr;
  }

  .help-grid,
  .site-grid,
  .site-feature-list,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .feature-showcase-grid {
    grid-template-columns: 1fr;
  }

  .feature-flow-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .site-stat-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

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

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

  .lead-request-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    width: min(980px, 100%);
  }

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

  .login-main-panel {
    order: 1;
  }

  .login-side-panel {
    order: 2;
  }

  .login-main-panel .login-float-center {
    max-width: none;
  }

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

  .bot-builder-row,
  .bot-builder-row-form {
    grid-template-columns: 1fr;
  }

  .bot-builder-row-actions {
    justify-content: flex-start;
  }

  .super-updates-actions input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .super-updates-sync-form {
    width: 100%;
  }

  .super-updates-filter-form {
    overflow-x: auto;
  }

  .super-updates-source-grid {
    grid-template-columns: 1fr;
  }

  .super-updates-source-grid > button[type="submit"],
  .super-updates-source-active-check {
    grid-column: auto;
  }

  .login-side-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .login-side-card-head .button-link {
    width: 100%;
    justify-content: center;
  }

  .presentation-kpi-grid {
    grid-template-columns: 1fr;
  }

  .bp-overview-grid {
    grid-template-columns: 1fr;
  }

  .stats-profiles-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .bot-scenario-tabs {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .bot-scenario-tab-link {
    flex: 0 0 auto;
    width: fit-content;
  }

  .super-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-profiles-tab-link {
    width: 100%;
  }

  .bp-editor-grid {
    grid-template-columns: 1fr;
  }

  .bp-editor-picker {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-editor-picker .button-compact {
    width: 100%;
  }

  .bp-diagram {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bp-diagram-lines {
    display: none;
  }

  .bp-selected-grid {
    grid-template-columns: 1fr;
  }

  .super-activity-top-grid {
    grid-template-columns: 1fr;
  }

  .bot-studio-page .scenario-edit-dialog {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
    min-width: 0;
    min-height: 0;
    height: min(90vh, 980px);
    max-height: calc(100vh - 14px);
    resize: none;
  }
}

@media (max-width: 700px) {
  .super-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .super-updates-summary {
    flex-direction: column;
    gap: 4px;
  }

  .super-activity-chart {
    height: 130px;
  }

  .super-tabs {
    grid-template-columns: 1fr;
  }

  .super-cpu-live-chart {
    height: 110px;
  }

  .super-db-live-chart {
    height: 110px;
  }

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

  .feature-flow-grid {
    grid-template-columns: 1fr;
  }

  .super-cpu-core-chart {
    max-height: 260px;
  }

  .super-cpu-core-row {
    grid-template-columns: 44px minmax(0, 1fr) 48px;
    gap: 6px;
  }

  .super-sensor-chip-list {
    max-height: 420px;
  }

  .super-sensor-chip-table {
    min-width: 680px;
  }

  .ui-corner-toolbar {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .ui-corner-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .ui-corner-icon svg {
    width: 18px;
    height: 18px;
  }

  .ui-corner-panel {
    min-width: 158px;
  }

  body {
    background:
      radial-gradient(700px 320px at 0% 0%, var(--glow-1) 0%, transparent 60%),
      radial-gradient(560px 280px at 100% 0%, var(--glow-2) 0%, transparent 65%),
      linear-gradient(180deg, var(--bg-top) 0%, var(--bg-middle) 55%, var(--bg-bottom) 100%);
  }

  .layout {
    padding: 10px;
    gap: 10px;
  }

  .sidebar,
  section,
  .card,
  .login-card {
    border-radius: 18px;
  }

  .content {
    padding: 2px 2px 10px;
  }

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

  .site-stat-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 22px 20px;
  }

  .login-side-panel,
  .login-main-panel {
    padding: 12px;
  }

  .login-provider-mini-links a {
    width: 100%;
    justify-content: center;
  }

  .bot-builder-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bot-studio-page .scenario-edit-dialog {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    height: calc(100vh - 12px);
    max-height: calc(100vh - 12px);
  }

  .scenario-template-controls {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .scenario-template-controls select {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    font-size: 15px;
  }

  .scenario-template-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .scenario-template-actions .button-compact {
    flex: 1 1 auto;
    min-height: 56px;
    font-size: 14px;
  }

  .scenario-template-help-btn {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    min-height: 56px;
    font-size: 20px;
  }

  .bot-studio-bulk-actions .caption {
    margin-left: 0;
    width: 100%;
  }

  .bot-studio-bulk-actions button[type="submit"] {
    width: 100%;
    min-width: 0;
  }

  .bot-constructor-section {
    padding: 10px;
    border-radius: 14px;
  }

  .bot-constructor-section > h2 {
    font-size: 19px;
  }

  .bot-constructor-form {
    padding: 10px;
    border-radius: 14px;
  }

  .bot-constructor-modules {
    grid-template-columns: 1fr;
  }

  .bot-constructor-module-item {
    min-height: 96px;
    padding: 10px;
  }

  .presentation-deck-nav-wrap {
    position: static;
    padding: 10px;
  }

  .presentation-deck-nav {
    gap: 6px;
  }

  .presentation-chip {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .bp-action-row > form {
    width: 100%;
  }

  .bp-action-row > form > button {
    width: 100%;
    justify-content: center;
  }

  .bp-selection-item {
    grid-template-columns: 1fr;
  }
}
