/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/font/google/target.css?{"path":"app\\layout.tsx","import":"Chakra_Petch","arguments":[{"subsets":["latin"],"weight":["500","600","700"],"variable":"--font-display","display":"swap"}],"variableName":"display"} ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* thai */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/3926fa88ed32c251-s.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/c3206c67a3393998-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/b7d7f401753dc0c4-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/6681946d7a6ccbb7-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/1fc9a8acda3903f0-s.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/7b750d5bfef15842-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/2a7c45462b39533e-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/4c7c43bdd7a35c63-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8d541ca8617572f0-s.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/3955bbd902881c26-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/f6d84cc3be9d6158-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/84f090e3b62fb9e3-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Chakra Petch Fallback';src: local("Arial");ascent-override: 96.77%;descent-override: 30.05%;line-gap-override: 0.00%;size-adjust: 102.51%
}.__className_dacc69 {font-family: 'Chakra Petch', 'Chakra Petch Fallback';font-style: normal
}.__variable_dacc69 {--font-display: 'Chakra Petch', 'Chakra Petch Fallback'
}

/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/font/google/target.css?{"path":"app\\layout.tsx","import":"Manrope","arguments":[{"subsets":["latin"],"variable":"--font-body","display":"swap"}],"variableName":"body"} ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/438aa629764e75f3-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/875ae681bfde4580-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/51251f8b9793cdb3-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/e857b654a2caa584-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/cc978ac5ee68c2b6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_next/static/media/4c9affa5bc8f420e-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Manrope Fallback';src: local("Arial");ascent-override: 103.31%;descent-override: 29.07%;line-gap-override: 0.00%;size-adjust: 103.19%
}.__className_73ee6c {font-family: 'Manrope', 'Manrope Fallback';font-style: normal
}.__variable_73ee6c {--font-body: 'Manrope', 'Manrope Fallback'
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.21_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* AyzyBot panel — deep-space theme. */

:root {
  color-scheme: dark;
  --bg-0: #05050f;
  --bg-1: #0a0a20;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(139, 129, 255, 0.45);
  --text: #e9e9f5;
  --text-dim: #9a9ab5;
  --accent: #8b81ff;
  --accent-2: #4dd6ff;
  --accent-3: #ff7ce5;
  --success: #57f287;
  --warning: #fee75c;
  --danger: #ff6b6b;
  --nebula-violet: rgba(120, 80, 255, 0.25);
  --nebula-cyan: rgba(60, 200, 255, 0.18);
  --nebula-magenta: rgba(255, 90, 200, 0.15);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--text);
  font-family: var(--font-body), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(1200px 800px at 15% -10%, var(--nebula-violet), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, var(--nebula-cyan), transparent 55%),
    radial-gradient(900px 900px at 60% 120%, var(--nebula-magenta), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Starfield layers */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #ffffff88, transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, #ffffff66, transparent),
    radial-gradient(1px 1px at 40% 80%, #ffffff99, transparent),
    radial-gradient(1px 1px at 85% 20%, #ffffff77, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #ffffff55, transparent);
  background-size: 400px 400px;
  animation: drift 200s linear infinite;
  opacity: 0.6;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 10% 10%, #b7b0ff99, transparent),
    radial-gradient(1px 1px at 60% 30%, #9fe9ff88, transparent),
    radial-gradient(1px 1px at 30% 70%, #ffffff88, transparent);
  background-size: 300px 300px;
  animation: drift 120s linear infinite reverse, twinkle 6s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-400px, -300px, 0); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

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

h1, h2, h3, .font-display {
  font-family: var(--font-display), var(--font-body), sans-serif;
  letter-spacing: -0.01em;
}

/* Header chrome */
.header-inner {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 22, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: conic-gradient(from 200deg, var(--accent-2), var(--accent), var(--accent-3), var(--accent-2));
  box-shadow: 0 0 22px rgba(139, 129, 255, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.4);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg-0);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.25);
}

.btn-ghost { background: transparent; }

/* Header nav: inline on desktop, hamburger + dropdown panel on mobile. */
.nav-desktop { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-toggle { display: none; }
.nav-mobile { display: none; }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    touch-action: manipulation;
  }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 16px 18px;
    background: rgba(8, 8, 22, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-mobile .btn { width: 100%; justify-content: center; }
  .nav-mobile form { width: 100%; }
  .nav-mobile .badge { text-align: center; padding: 8px 10px; }
}

/* Two-column field grids collapse to one column on small screens. */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Flows page: list beside editor on desktop, stacked on mobile. */
.flows-layout { display: grid; grid-template-columns: 240px 1fr; grid-gap: 20px; gap: 20px; align-items: start; }
@media (max-width: 900px) {
  .flows-layout { grid-template-columns: 1fr; gap: 14px; }
}

/* Desktop-only surfaces (e.g. the visual flow canvas) and their mobile notices. */
.pc-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 900px) {
  .pc-only { display: none; }
  .mobile-only { display: block; }
}

/* Admin tables: real table on desktop, stacked label/value cards on mobile. */
@media (max-width: 720px) {
  .resp-table thead { display: none; }
  .resp-table, .resp-table tbody, .resp-table tr, .resp-table td { display: block; width: 100%; }
  .resp-table tr {
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    margin: 0 0 10px;
    padding: 4px 0;
    background: rgba(255, 255, 255, 0.02);
  }
  .resp-table td { text-align: left !important; min-width: 0 !important; }
  .resp-table td:empty { display: none; }
  .resp-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 2px;
  }
  .resp-table code { word-break: break-all; }
}

/* Skip link — visible only when focused. */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b0b1a;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Page-load reveal */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

/* Respect users who prefer reduced motion: no drift, twinkle, or reveal. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* Mobile: fixed backgrounds repaint on every scroll frame on iOS/Android. */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

/* iOS zooms the page when a focused field is under 16px — never allow that. */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
}

/* Glass surfaces */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(100deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-glow); box-shadow: 0 0 24px rgba(139, 129, 255, 0.3); }

/* Visible keyboard focus everywhere (never bare outline:none). */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 8px;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-3));
  border: none;
  color: #0b0b1a;
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(139, 129, 255, 0.45); }

/* Section headings */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 700;
}

/* Status dots */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--success); box-shadow: 0 0 10px var(--success); }
/* Available but not enabled → red, so a glance shows what's off. */
.dot-off { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.dot-available { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.dot-locked { background: #6b6b85; }
.dot-soon { background: var(--warning); box-shadow: 0 0 8px var(--warning); }

/* Floating back-to-top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0b0b1a;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.back-to-top[data-visible='true'] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.25s ease; transform: none; }
}
@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; }
}

.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}
.badge-soon { color: #1a1a10; background: var(--warning); border: none; font-weight: 700; }
.badge-limited { color: var(--accent-3); border-color: rgba(255, 124, 229, 0.4); }

/* Simple/Advanced segmented toggle */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  gap: 2px;
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-on {
  background: linear-gradient(100deg, var(--accent), var(--accent-3));
  color: #0b0b1a;
}

/* Config form tabs (large modules) */
.cfg-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.cfg-tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cfg-tab:hover { color: var(--text); background: var(--surface); }
.cfg-tab-on {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

/* Dashboard: module navigator + inline config layout */
.dash-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}
.mod-nav {
  padding: 10px;
  position: -webkit-sticky;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; gap: 16px; }
  .mod-nav { position: static; max-height: 320px; }
}
.mod-nav-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.mod-nav-section:hover { background: var(--surface-2); }
.mod-nav-chevron {
  display: inline-block;
  font-size: 9px;
  color: var(--text-dim);
  transition: transform 0.15s ease;
}
.mod-nav-chevron[data-open='true'] { transform: rotate(90deg); }
.mod-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 24px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.mod-nav-item:hover { background: var(--surface-2); color: var(--text); }
.mod-nav-item[data-active='true'] {
  background: linear-gradient(100deg, var(--accent), var(--accent-3));
  color: #0b0b1a;
  font-weight: 700;
}
.mod-nav-item[data-active='true'] .badge { background: rgba(0, 0, 0, 0.22); color: inherit; border-color: transparent; }

/* Flow editor nodes */
.flow-node {
  min-width: 180px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 40, 0.92);
  color: var(--text);
}
.flow-node-trigger { border-color: rgba(77, 214, 255, 0.55); box-shadow: 0 0 18px rgba(77, 214, 255, 0.16); }
.flow-node-action { border-color: rgba(139, 129, 255, 0.45); }
.flow-node-selected { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.flow-node-kind { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dim); }
.flow-node-title { font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.flow-node-sub { color: var(--text-dim); font-size: 11.5px; margin-top: 3px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.react-flow__attribution { display: none; }

/* ---------------------------------------------------------------------------
   Server picker + switcher
   --------------------------------------------------------------------------- */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  grid-gap: 16px;
  gap: 16px;
}
.server-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.server-card:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.server-card-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Servers the bot is not in: muted until hovered, where they offer an invite. */
.server-card-absent { opacity: 0.5; }
.server-card-absent:hover,
.server-card-absent:focus-visible { opacity: 1; }
.server-card-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #0b0b1a;
  background: linear-gradient(100deg, var(--accent), var(--accent-3));
  opacity: 0;
  transition: opacity 0.15s ease;
}
.server-card-absent:hover .server-card-cta,
.server-card-absent:focus-visible .server-card-cta { opacity: 1; }
/* Keyboard and touch users never get :hover — keep the CTA reachable. */
@media (hover: none) {
  .server-card-absent { opacity: 1; }
  .server-card-cta { position: static; inset: auto; opacity: 1; margin-left: auto; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
}

.server-disclosure > summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  padding: 6px 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.server-disclosure > summary:hover { color: var(--text); }

/* Server switcher in the dashboard header */
.server-switcher { position: relative; }
.server-switcher-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  max-width: 320px;
}
.server-switcher-btn:hover { border-color: var(--accent-2); }
.server-switcher-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(16, 16, 34, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.server-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.server-switcher-item:hover { background: var(--surface-2); color: var(--text); }
.server-switcher-item[data-active='true'] { color: var(--text); font-weight: 700; }
.server-switcher-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
.server-switcher-add:hover { color: var(--text); }
@media (max-width: 640px) {
  .server-switcher { max-width: 100%; min-width: 0; }
  .server-switcher-btn { max-width: 100%; }
  .server-switcher-menu { max-width: calc(100vw - 32px); }
}

/* Tier-locked config field — an upsell, not an error, so it stays quiet. */
.cfg-locked {
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.75;
}
.cfg-tier-badge {
  font-size: 11px;
  letter-spacing: 0.02em;
  border-color: var(--accent-2);
  color: var(--accent-2);
}

