/**======================================================================
  Flux Caster — application (dashboard + auth)
========================================================================= */

:root {
  --fc-bg: #f4f7f6;
  --fc-ink: #10221f;
  --fc-muted: #4a5d59;
  --fc-line: #d7e3df;
  --fc-teal: #00685d;
  --fc-teal-deep: #004f47;
  --fc-mint: #2a9d8f;
  --fc-wash: #e7f4f1;
  --fc-sidebar: #10221f;
  --fc-font: "Manrope", "Segoe UI", sans-serif;
}

body {
  --bs-body-bg: var(--fc-bg);
  --bs-body-color: var(--fc-ink);
  --bs-primary: var(--fc-teal);
  --bs-primary-rgb: 0, 104, 93;
  --bs-secondary: var(--fc-mint);
  --bs-secondary-rgb: 42, 157, 143;
  --bs-link-color: var(--fc-teal);
  --bs-link-hover-color: var(--fc-teal-deep);
  --pc-heading-color: var(--fc-ink);
  --pc-sidebar-background: var(--fc-sidebar);
  --pc-sidebar-color: rgba(255, 255, 255, 0.9);
  --pc-sidebar-active-color: #b8fff3;
  --pc-sidebar-caption-color: #9ee8dc;
  --pc-header-background: #fff;
  --pc-header-color: var(--fc-muted);
  --pc-active-background: rgba(42, 157, 143, 0.16);
  background: var(--fc-bg) !important;
  color: var(--fc-ink);
  font-family: var(--fc-font) !important;
  -webkit-font-smoothing: antialiased;
}

[data-pc-preset="preset-1"] {
  --bs-primary: #00685d;
  --bs-primary-rgb: 0, 104, 93;
  --bs-primary-light: #e7f4f1;
  --bs-secondary: #2a9d8f;
  --bs-secondary-rgb: 42, 157, 143;
  --bs-secondary-light: #e7f4f1;
  --bs-link-color: #00685d;
  --bs-link-hover-color: #004f47;
  --bs-body-bg: #f4f7f6;
  --pc-sidebar-active-color: #b8fff3;
}

/* ---- Brand ---- */
.app-brand {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  color: inherit;
}
.app-brand-mark {
  display: none;
  height: 2.1rem;
  width: 2.1rem;
  flex-shrink: 0;
  object-fit: contain;
}
.app-brand-logo {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}
body.auth-page .app-brand-logo {
  height: 2.35rem;
  max-width: 220px;
}

/* ---- Sidebar ---- */
.pc-sidebar {
  background: var(--fc-sidebar) !important;
  border-right: 0 !important;
  box-shadow: none !important;
}
.pc-sidebar .m-header {
  height: auto !important;
  padding: 1.15rem 1.1rem 0.85rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
.pc-sidebar .app-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.pc-sidebar .app-nav-toggle:hover {
  background: rgba(42, 157, 143, 0.28);
  border-color: rgba(184, 255, 243, 0.35);
}
.pc-sidebar .app-nav-toggle i {
  font-size: 1.1rem;
  color: #fff;
}
.pc-sidebar .navbar-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pc-sidebar .navbar-content {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.6rem 0.7rem 2.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.pc-sidebar .navbar-content::-webkit-scrollbar {
  width: 6px;
}
.pc-sidebar .navbar-content::-webkit-scrollbar-track {
  background: transparent;
}
.pc-sidebar .navbar-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}
.pc-sidebar .pc-navbar {
  padding-top: 0.2rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
}
.pc-sidebar .pc-navbar > .pc-item {
  margin: 0 0.15rem !important;
}
.pc-sidebar-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.85rem 0.7rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--fc-sidebar);
}
.pc-sidebar-foot .pc-link {
  width: 100%;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.pc-sidebar-foot .pc-link:hover {
  background: rgba(237, 72, 80, 0.16) !important;
  color: #fff !important;
}
.pc-sidebar-foot .pc-link:hover .pc-micon i,
.pc-sidebar-foot .pc-link:hover .pc-mtext {
  color: #ffb4b4 !important;
}
body.app-shell .pc-sidebar .pc-caption,
body.app-shell .pc-sidebar .pc-navbar > .pc-item.pc-caption {
  display: block !important;
  margin: 0.95rem 0.4rem 0.35rem !important;
  padding: 0.65rem 0.55rem 0.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.2;
  opacity: 1 !important;
  visibility: visible !important;
}
body.app-shell .pc-sidebar .pc-caption:first-child,
body.app-shell .pc-sidebar .pc-navbar > .pc-item.pc-caption:first-child {
  margin-top: 0.15rem !important;
  padding-top: 0.2rem !important;
  border-top: 0;
}
body.app-shell .pc-sidebar .pc-caption .pc-caption-text,
body.app-shell .pc-sidebar .pc-caption label,
body.app-shell .pc-sidebar .pc-caption span {
  display: block !important;
  margin: 0 !important;
  color: #9ee8dc !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.pc-sidebar .pc-caption i {
  display: none;
}
body.app-shell .pc-sidebar .pc-link,
body.app-shell .pc-sidebar a.pc-link {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin: 0.08rem 0;
  padding: 0.5rem 0.7rem !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.88rem !important;
  font-weight: 650;
  text-decoration: none !important;
}
body.app-shell .pc-sidebar .pc-micon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0;
}
body.app-shell .pc-sidebar .pc-micon i,
body.app-shell .pc-sidebar .pc-micon svg {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.05rem;
}
body.app-shell .pc-sidebar .pc-mtext {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit !important;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-transform: none !important;
}
body.app-shell .pc-sidebar a.pc-link:hover,
body.app-shell .pc-sidebar a.pc-link:hover .pc-mtext,
body.app-shell .pc-sidebar a.pc-link:focus-visible,
body.app-shell .pc-sidebar a.pc-link:focus-visible .pc-mtext {
  color: #fff !important;
  text-decoration: none !important;
}
body.app-shell .pc-sidebar .pc-navbar > .pc-item > .pc-link::after {
  display: none !important;
}
[data-pc-preset="preset-1"] .pc-sidebar .pc-item.active > .pc-link,
[data-pc-preset="preset-1"] .pc-sidebar .pc-item > .pc-link.active,
[data-pc-preset="preset-1"] .pc-sidebar .pc-item:hover > .pc-link,
.pc-sidebar .pc-item.active > .pc-link,
.pc-sidebar .pc-item > .pc-link.active,
.pc-sidebar .pc-item:hover > .pc-link {
  background: rgba(42, 157, 143, 0.16) !important;
  color: #fff !important;
}
[data-pc-preset="preset-1"] .pc-sidebar .pc-item.active > .pc-link .pc-micon i,
[data-pc-preset="preset-1"] .pc-sidebar .pc-item:hover > .pc-link .pc-micon i,
.pc-sidebar .pc-item.active > .pc-link .pc-micon i,
.pc-sidebar .pc-item > .pc-link.active .pc-micon i,
.pc-sidebar .pc-item:hover > .pc-link .pc-micon i {
  color: #b8fff3 !important;
}
.pc-sidebar .badge.theme-version {
  display: none;
}

/* ---- Header ---- */
body.app-shell .pc-header {
  min-height: 80px !important;
  height: 80px;
  padding: 0 !important;
  align-items: center;
  background: #fff !important;
  border-bottom: 1px solid var(--fc-line) !important;
  box-shadow: none !important;
  width: auto !important;
}
body.app-shell .pc-header .header-wrapper {
  align-items: center;
  min-height: 80px;
  min-width: 0;
  padding: 0 1.25rem 0 1rem;
  overflow: visible;
}
body.app-shell .pc-header .header-wrapper > .ms-auto {
  flex-shrink: 0;
  margin-left: 0.85rem;
  padding-right: 0.15rem;
}
body.app-shell .pc-header .header-wrapper > .header-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 0.85rem;
}
body.app-shell .pc-header .header-wrapper > .header-search-wrap > ul {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.35rem;
}
body.app-shell .pc-header .header-search-slot {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.pc-header .pc-head-link {
  border-radius: 8px !important;
}
body.app-shell .pc-header .header-search {
  position: relative;
  width: 100%;
  max-width: none;
}
body.app-shell .pc-header .header-search .form-control {
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: var(--fc-bg);
  font-size: 0.9rem;
  width: 100% !important;
  max-width: none;
  height: 2.65rem;
  padding: 0.45rem 4.1rem 0.45rem 2.7rem;
  appearance: none;
}
body.app-shell .pc-header .header-search .form-control::-webkit-search-decoration,
body.app-shell .pc-header .header-search .form-control::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
body.app-shell .pc-header .header-search .form-control:focus {
  border-color: var(--fc-mint);
  box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.16);
  background: #fff;
}
body.app-shell .pc-header .header-search .icon-search {
  color: var(--fc-muted);
  top: 50% !important;
  left: 0.95rem;
  transform: translateY(-50%);
  font-size: 1.05rem;
  pointer-events: none;
}
.header-search-kbd {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--fc-line);
  border-radius: 6px;
  background: #fff;
  color: var(--fc-muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1;
  pointer-events: none;
}
.pc-header ul.header-search-results {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 1080;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.55rem 0.35rem;
  list-style: none;
  max-height: min(70vh, 32rem);
  overflow: auto;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px -20px rgba(16, 34, 31, 0.42);
}
.pc-header ul.header-search-results > li {
  width: 100%;
  flex: none;
}
.header-search-group {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  padding: 0.25rem 0.7rem 0.15rem;
  color: var(--fc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-search-group:first-child {
  margin-top: 0;
}
.header-search-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fc-ink);
  font-weight: 650;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}
.header-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
}
.header-search-ico i {
  font-size: 1.05rem;
  color: var(--fc-teal);
}
.header-search-copy {
  min-width: 0;
  display: block;
}
.header-search-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-search-hint {
  display: block;
  margin-top: 0.08rem;
  color: var(--fc-muted);
  font-size: 0.74rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-search-hit.is-on,
.header-search-hit:hover,
.header-search-hit:focus-visible {
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  outline: none;
}
.header-search-hit.is-on .header-search-ico,
.header-search-hit:hover .header-search-ico,
.header-search-hit:focus-visible .header-search-ico {
  background: #fff;
}
.header-search-empty {
  padding: 0.85rem 0.8rem;
  color: var(--fc-muted);
  font-size: 0.86rem;
}
.header-search-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem 0.25rem;
  border-top: 1px solid var(--fc-line);
  color: var(--fc-muted);
  font-size: 0.72rem;
  font-weight: 650;
}
.header-search-foot kbd {
  display: inline-block;
  margin-right: 0.2rem;
  padding: 0.08rem 0.32rem;
  border: 1px solid var(--fc-line);
  border-radius: 4px;
  background: var(--fc-bg);
  font-size: 0.68rem;
  font-weight: 750;
}
.header-user-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem;
  width: auto !important;
  max-width: min(16rem, calc(100vw - 5rem));
  padding: 0.35rem 0.85rem 0.35rem 0.35rem !important;
  height: auto !important;
  margin: 0 !important;
}
.header-user-meta {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
  max-width: 10.5rem;
}
.header-user-meta strong,
.header-user-meta em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-meta strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--fc-ink);
}
.header-user-meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--fc-muted);
  font-weight: 600;
}
.header-user-btn .ti-chevron-down {
  font-size: 0.85rem;
  opacity: 0.65;
}
.pc-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.pc-sidebar-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pc-sidebar-user strong,
.pc-sidebar-user em {
  display: block;
  line-height: 1.2;
}
.pc-sidebar-user strong {
  font-size: 0.8rem;
  font-weight: 800;
}
.pc-sidebar-user em {
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 600;
}
[data-pc-preset="preset-1"] .pc-header .pc-head-link.head-link-primary {
  background: var(--fc-wash);
  color: var(--fc-teal);
}
[data-pc-preset="preset-1"] .pc-header .pc-head-link.head-link-primary > i {
  color: var(--fc-teal);
}
[data-pc-preset="preset-1"] .pc-header .pc-head-link.head-link-primary:hover {
  background: var(--fc-teal);
  color: #fff;
}
[data-pc-preset="preset-1"] .pc-header .pc-head-link.head-link-primary:hover > i {
  color: #fff;
}

.dropdown-user-profile .upgradeplan-block {
  background: var(--fc-wash) !important;
  border: 1px solid var(--fc-line);
  color: var(--fc-ink);
}
.dropdown-user-profile h4 {
  font-size: 1rem;
  font-weight: 700;
}
.dropdown-lang-label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.dropdown-lang {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.dropdown-lang button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--fc-line);
  border-radius: 8px;
  background: #fff;
  color: var(--fc-ink);
  padding: 0.42rem 0.5rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.dropdown-lang button:hover {
  border-color: var(--fc-mint);
  background: var(--fc-wash);
}
.dropdown-lang button.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-teal);
  color: #fff;
}
.dropdown-lang .lang-flag {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 34, 31, 0.12);
}
.auth-lang {
  max-width: 320px;
  margin: 1rem auto 0;
}

/* ---- Content / cards ---- */
.pc-container .pc-content {
  padding-top: 1.4rem;
}
.page-header {
  margin-bottom: 1.25rem;
}
.page-header h2,
.page-header h5,
.page-header .page-header-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
}
.page-header .text-muted {
  color: var(--fc-muted) !important;
}
.page-header .page-block {
  width: 100%;
}
.page-header .page-block h2 {
  display: block;
}

.card {
  border: 1px solid var(--fc-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: #fff;
}
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--fc-line) !important;
  padding: 1rem 1.15rem;
}
.card-header h5 {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

.btn {
  font-weight: 700;
  border-radius: 8px !important;
}
.btn-primary,
[data-pc-preset="preset-1"] .btn-primary {
  --bs-btn-bg: var(--fc-teal);
  --bs-btn-border-color: var(--fc-teal);
  --bs-btn-hover-bg: var(--fc-teal-deep);
  --bs-btn-hover-border-color: var(--fc-teal-deep);
  --bs-btn-active-bg: var(--fc-teal-deep);
  background: var(--fc-teal) !important;
  border-color: var(--fc-teal) !important;
  color: #fff !important;
}
.btn-secondary,
[data-pc-preset="preset-1"] .btn-secondary {
  background: var(--fc-mint) !important;
  border-color: var(--fc-mint) !important;
  color: #fff !important;
}
.btn-light {
  background: var(--fc-wash) !important;
  border-color: var(--fc-line) !important;
  color: var(--fc-teal) !important;
}

[data-pc-preset="preset-1"] .form-check .form-check-input.input-primary:checked,
.form-check-input:checked {
  background-color: var(--fc-teal) !important;
  border-color: var(--fc-teal) !important;
}
.nav-tabs .nav-link {
  font-weight: 700;
  color: var(--fc-muted);
}
.nav-tabs .nav-link.active {
  color: var(--fc-teal);
  border-color: var(--fc-line) var(--fc-line) #fff;
}
.nav-pills .nav-link.active,
[data-pc-preset="preset-1"] .nav-pills {
  --bs-nav-pills-link-active-bg: var(--fc-teal);
}

.table thead th {
  color: var(--fc-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom-color: var(--fc-line) !important;
}

.link-primary,
[data-pc-preset="preset-1"] .link-primary {
  color: var(--fc-teal) !important;
}
[data-pc-preset="preset-1"] .bg-light-primary,
.bg-light-primary {
  background: var(--fc-wash) !important;
  color: var(--fc-teal) !important;
}
[data-pc-preset="preset-1"] .bg-primary-dark {
  background: var(--fc-teal-deep) !important;
}
[data-pc-preset="preset-1"] .bg-secondary-dark {
  background: var(--fc-teal) !important;
}

.pc-footer {
  background: transparent !important;
  border-top: 1px solid var(--fc-line);
  color: var(--fc-muted);
  font-size: 0.84rem;
}
.pc-footer a {
  color: var(--fc-teal);
  text-decoration: none;
}

/* ---- Dashboard home ---- */
.fc-stat {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
}
.fc-stat strong {
  display: block;
  margin-top: 0.85rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fc-ink);
}
.fc-stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--fc-muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.fc-stat i {
  display: inline-flex;
  height: 2.4rem;
  width: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.2rem;
}
.fc-stat.is-dark {
  background: linear-gradient(145deg, #004840, #00685d 70%);
  border-color: transparent;
  color: #fff;
}
.fc-stat.is-dark strong,
.fc-stat.is-dark span {
  color: #fff;
}
.fc-stat.is-dark span {
  color: rgba(255, 255, 255, 0.72);
}
.fc-stat.is-dark i {
  background: rgba(255, 255, 255, 0.12);
  color: #b8fff3;
}

.fc-event {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--fc-line);
  font-size: 0.88rem;
  color: var(--fc-muted);
}
.fc-event:last-child {
  border-bottom: 0;
}
.fc-event i {
  color: var(--fc-teal);
  font-size: 1.05rem;
}
.fc-event em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--fc-muted);
}

.fc-skip {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 4000;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: var(--fc-teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.fc-skip:focus {
  left: 0.75rem;
}

.fc-dash-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: 1.35rem 1.45rem 1.4rem;
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, #0c1c1a 0%, #004840 46%, #00685d 100%);
  box-shadow: 0 22px 44px -30px rgba(16, 34, 31, 0.7);
}
.fc-dash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.fc-dash-hero > * {
  position: relative;
  z-index: 1;
}
.fc-dash-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8fff3;
}
.fc-dash-hero h1,
.fc-dash-hero .h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
}
.fc-dash-lead {
  margin: 0.45rem 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}
.fc-dash-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 650;
  text-transform: capitalize;
}
.fc-dash-hero-meta .btn,
.fc-dash-hero-meta .k2-broker-btn {
  text-transform: none;
}
.fc-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}
.fc-dash-hero-actions .k2-broker-launch {
  display: inline-flex;
  margin: 0;
}
.fc-dash-hero-actions .k2-broker-btn {
  white-space: nowrap;
}
.fc-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.72rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}
.fc-health-pill i {
  font-size: 0.95rem;
}
.fc-health-pill.is-ok {
  background: rgba(184, 255, 243, 0.18);
  color: #b8fff3;
}
.fc-health-pill.is-watch {
  background: rgba(255, 196, 120, 0.2);
  color: #ffe0b0;
}
.fc-health-pill.is-bad {
  background: rgba(196, 92, 74, 0.28);
  color: #ffd0c8;
}
.fc-health-pill.is-idle {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}
.fc-trend {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}
.fc-trend.is-up {
  background: rgba(184, 255, 243, 0.16);
  color: #b8fff3;
}
.fc-trend.is-down {
  background: rgba(196, 92, 74, 0.22);
  color: #ffd0c8;
}

.fc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.fc-stat.is-alert strong {
  color: #8f2d22;
}
.fc-stat {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
a.fc-stat:hover,
a.fc-stat:focus-visible,
button.fc-stat:hover,
button.fc-stat:focus-visible {
  transform: translateY(-2px);
  border-color: var(--fc-mint);
  box-shadow: 0 12px 24px -18px rgba(16, 34, 31, 0.45);
  outline: none;
}
.fc-stat-text {
  font-size: 1.15rem !important;
  letter-spacing: -0.02em !important;
}

.fc-card {
  border-radius: 14px !important;
  overflow: hidden;
}
.fc-card .card-header h2,
.fc-card .card-header h5 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 99px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 0.75rem;
  font-weight: 800;
}

.fc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 0.75rem;
}
.fc-tile {
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 0.95rem 1rem 0.9rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.fc-tile:hover,
.fc-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--fc-mint);
  box-shadow: 0 14px 28px -20px rgba(16, 34, 31, 0.5);
  color: var(--fc-ink) !important;
  outline: none;
}
.fc-tile.is-off {
  background: #fbfcfb;
}
.fc-tile-icon {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.1rem;
}
.fc-tile.is-off .fc-tile-icon {
  background: #eef3f1;
  color: var(--fc-muted);
}
.fc-tile strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fc-ink);
}
.fc-tile em {
  margin-top: auto;
  padding-top: 0.45rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fc-teal);
}
.fc-tile.is-off em {
  color: var(--fc-muted);
}
body.app-shell a.fc-stat:hover,
body.app-shell a.fc-stat:hover strong,
body.app-shell a.fc-stat:hover span,
body.app-shell a.fc-stat:focus-visible,
body.app-shell a.fc-stat:focus-visible strong,
body.app-shell a.fc-stat:focus-visible span,
body.app-shell button.fc-stat:hover,
body.app-shell button.fc-stat:hover strong,
body.app-shell button.fc-stat:hover span,
body.app-shell button.fc-stat:focus-visible,
body.app-shell button.fc-stat:focus-visible strong,
body.app-shell button.fc-stat:focus-visible span {
  color: var(--fc-ink) !important;
  text-decoration: none;
}
body.app-shell a.fc-stat:hover i,
body.app-shell a.fc-stat:focus-visible i,
body.app-shell button.fc-stat:hover i,
body.app-shell button.fc-stat:focus-visible i {
  color: var(--fc-teal) !important;
}
body.app-shell a.fc-stat.is-dark:hover,
body.app-shell a.fc-stat.is-dark:hover strong,
body.app-shell a.fc-stat.is-dark:focus-visible,
body.app-shell a.fc-stat.is-dark:focus-visible strong {
  color: #fff !important;
}
body.app-shell a.fc-stat.is-dark:hover span,
body.app-shell a.fc-stat.is-dark:focus-visible span {
  color: rgba(255, 255, 255, 0.72) !important;
}
body.app-shell a.fc-stat.is-alert:hover strong,
body.app-shell a.fc-stat.is-alert:focus-visible strong,
body.app-shell button.fc-stat.is-alert:hover strong,
body.app-shell button.fc-stat.is-alert:focus-visible strong {
  color: #8f2d22 !important;
}
body.app-shell .fc-tile:hover strong,
body.app-shell .fc-tile:focus-visible strong {
  color: var(--fc-ink) !important;
}
body.app-shell .fc-tile:hover em,
body.app-shell .fc-tile:focus-visible em {
  color: var(--fc-teal) !important;
}
body.app-shell .fc-tile.is-off:hover em,
body.app-shell .fc-tile.is-off:focus-visible em {
  color: var(--fc-muted) !important;
}
body.app-shell .fc-tile:hover .fc-tile-icon,
body.app-shell .fc-tile:focus-visible .fc-tile-icon {
  color: var(--fc-teal) !important;
}
body.app-shell .fc-quick-item:hover,
body.app-shell .fc-quick-item:focus-visible,
body.app-shell .fc-quick-item:hover strong,
body.app-shell .fc-quick-item:focus-visible strong {
  color: var(--fc-ink) !important;
}

.fc-event {
  align-items: flex-start;
}
.fc-event-body {
  min-width: 0;
  flex: 1;
}
.fc-event-body code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  color: var(--fc-ink);
  background: transparent;
}
.fc-status {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.1rem 0.42rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fc-status.is-ok {
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.fc-status.is-warn {
  background: #fff4e5;
  color: #8a5a12;
}
.fc-status.is-bad {
  background: #fdecea;
  color: #8f2d22;
}
.fc-status.is-muted {
  background: #eef3f1;
  color: var(--fc-muted);
}

.fc-table-link {
  color: inherit;
  text-decoration: none;
}
.fc-table-link:hover,
.fc-table-link:focus-visible {
  color: var(--fc-teal) !important;
  text-decoration: underline;
}

.fc-quick {
  margin-bottom: 0.5rem;
}
.fc-quick-title {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.fc-quick-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.fc-quick-item:hover,
.fc-quick-item:focus-visible {
  border-color: var(--fc-mint);
  transform: translateY(-1px);
  color: inherit;
  outline: none;
}
.fc-quick-item i {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.05rem;
}
.fc-quick-item strong,
.fc-quick-item em {
  display: block;
  line-height: 1.2;
}
.fc-quick-item strong {
  font-size: 0.88rem;
  font-weight: 800;
}
.fc-quick-item em {
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--fc-muted);
  font-weight: 600;
}

.fc-ops-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.fc-ops-metric {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fbfcfb;
}
.fc-ops-metric strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
  line-height: 1.2;
}
.fc-ops-metric span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fc-muted);
}
.fc-ops-subtitle {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-ops-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--fc-muted);
}
.fc-meter {
  height: 6px;
  margin: 0 0 0.9rem;
  border-radius: 99px;
  background: #eef3f1;
  overflow: hidden;
}
.fc-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00685d, #2a9d8f);
}
.fc-attn {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fc-attn li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}
.fc-attn li:last-child {
  margin-bottom: 0;
}
.fc-attn i {
  margin-top: 0.12rem;
  color: var(--fc-teal);
}
.fc-attn a {
  color: var(--fc-ink);
  text-decoration: none;
}
.fc-attn a:hover,
.fc-attn a:focus-visible {
  color: var(--fc-teal) !important;
  text-decoration: underline;
}
.fc-event-list {
  max-height: 28rem;
  overflow: auto;
}
.fc-route-bar {
  display: block;
  height: 4px;
  margin-top: 0.35rem;
  border-radius: 99px;
  background: #eef3f1;
  overflow: hidden;
}
.fc-route-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fc-teal);
}
.fc-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.fc-mix li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border: 1px solid var(--fc-line);
  border-radius: 99px;
  background: #fbfcfb;
  font-size: 0.75rem;
  font-weight: 700;
}
.fc-mix a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--fc-ink);
  text-decoration: none;
}
.fc-mix a:hover,
.fc-mix a:focus-visible {
  color: var(--fc-teal) !important;
}
.fc-mix i {
  color: var(--fc-teal);
}

@media (max-width: 1199px) {
  .fc-kpi-grid,
  .fc-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .fc-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .fc-dash-hero-meta {
    align-items: flex-start;
    text-align: left;
  }
  .fc-kpi-grid,
  .fc-quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-stat,
  .fc-tile,
  .fc-quick-item,
  a.fc-stat,
  button.fc-stat {
    transition: none;
  }
  a.fc-stat:hover,
  button.fc-stat:hover,
  .fc-tile:hover,
  .fc-quick-item:hover {
    transform: none;
  }
}

/* ---- Auth ---- */
body.auth-page {
  min-height: 100vh;
  background: #004f47 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #004840 0%, #00685d 55%, #1a7a6e 100%);
  background-size: 56px 56px, 56px 56px, auto;
}
body.auth-page .loader-bg {
  background: #004f47;
}
body.auth-page .auth-main,
body.auth-page .auth-wrapper {
  min-height: 100vh;
  background: transparent !important;
}
body.auth-page .auth-main .auth-wrapper.v3 .auth-form,
body.auth-page .auth-form {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 2rem 1rem;
  background: transparent !important;
}
body.auth-page .card {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.45) !important;
}
body.auth-page .auth-header h2 {
  color: var(--fc-ink) !important;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
body.auth-page .app-brand {
  justify-content: center;
}

body.app-shell .pc-header .dropdown-menu:not(.show) {
  display: none !important;
}

.pc-header button.app-nav-toggle {
  border: 0;
  cursor: pointer;
  background: transparent;
}

@media (min-width: 1025px) {
  body.pc-sidebar-collapsed .pc-sidebar,
  body.pc-sidebar-collapsed .pc-sidebar .navbar-wrapper {
    width: 76px;
  }
  body.pc-sidebar-collapsed .pc-header {
    left: 76px !important;
  }
  body.pc-sidebar-collapsed .pc-container,
  body.pc-sidebar-collapsed .pc-footer {
    margin-left: 76px !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar .app-brand {
    display: flex !important;
    justify-content: center;
  }
  body.pc-sidebar-collapsed .pc-sidebar .app-brand-logo {
    display: none !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar .app-brand-mark {
    display: block !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar .app-nav-toggle {
    display: inline-flex !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar .m-header {
    flex-direction: column;
    justify-content: center;
    height: auto !important;
    padding: 0.85rem 0.4rem 0.7rem !important;
    gap: 0.55rem;
    overflow: visible;
  }
  body.pc-sidebar-collapsed .pc-header .pc-h-item.pc-sidebar-popup {
    display: none !important;
  }
  body.app-shell.pc-sidebar-collapsed .pc-sidebar .pc-caption,
  body.app-shell.pc-sidebar-collapsed .pc-sidebar .pc-mtext,
  body.app-shell.pc-sidebar-collapsed .pc-sidebar .pc-caption-text {
    display: none !important;
  }
  body.app-shell.pc-sidebar-collapsed .pc-sidebar .pc-navbar > .pc-item.pc-caption {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar .pc-navbar > .pc-item {
    margin: 0 0.4rem;
  }
  body.pc-sidebar-collapsed .pc-sidebar .pc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.4rem !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar .pc-micon {
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.pc-sidebar-collapsed .pc-sidebar .pc-micon i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88) !important;
  }
  body.pc-sidebar-collapsed .pc-sidebar-foot .pc-link {
    justify-content: center;
  }
  body.pc-sidebar-collapsed .pc-sidebar-user span,
  body.pc-sidebar-collapsed .pc-sidebar-user {
    justify-content: center;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  body.pc-sidebar-collapsed .pc-sidebar-user span {
    display: none;
  }
}

@media (max-width: 1024px) {
  .pc-sidebar .app-nav-toggle {
    display: none;
  }
}

.vis-kpi {
  border: 1px solid var(--fc-line);
  background: #fff;
  cursor: pointer;
}
.vis-kpi.is-on {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 1px var(--fc-teal) inset;
}
.vis-kpi em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--fc-muted);
  font-weight: 600;
}
.vis-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #10221f;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.vis-dot.is-on {
  background: #2a9d8f;
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.22);
}
.vis-map {
  min-height: 280px;
}
.vis-map-canvas,
.vis-map .leaflet-container {
  width: 100%;
  height: 280px;
  min-height: 280px;
  border-radius: 10px;
  background: #e7f4f1;
  z-index: 0;
}
.vis-map .leaflet-container img {
  max-width: none !important;
  max-height: none !important;
}
.vis-map .leaflet-control-attribution {
  font-size: 10px;
}

.gouv-zones-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.gouv-zones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.gouv-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-height: 5.4rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.gouv-zone:hover {
  border-color: rgba(0, 104, 93, 0.35);
}
.gouv-zone.is-on {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 1px var(--fc-teal) inset;
  background: var(--fc-wash);
}
.gouv-zone.is-soon {
  opacity: 0.62;
  background: #f7f8f8;
}
.gouv-zone.is-soon:hover {
  opacity: 0.85;
}
.gouv-zone-flag {
  font-size: 1.25rem;
  line-height: 1;
}
.gouv-zone strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--fc-ink);
}
.gouv-zone em {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--fc-muted);
}
.gouv-zone-current {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 99px;
  background: var(--fc-wash);
  color: var(--fc-ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.addr-suggest {
  position: relative;
}
.addr-suggest-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 0.55rem;
  box-shadow: 0 10px 28px rgba(16, 34, 31, 0.12);
}
.addr-suggest-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  color: var(--fc-ink);
}
.addr-suggest-item:hover,
.addr-suggest-item.is-active {
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.addr-suggest-empty {
  padding: 0.5rem 0.85rem;
  color: var(--fc-muted);
  font-size: 0.82rem;
}
.bourse-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.bourse-suggest-copy {
  min-width: 0;
}
.bourse-suggest-name {
  display: block;
  font-weight: 650;
  line-height: 1.25;
}
.bourse-suggest-meta {
  display: block;
  color: var(--fc-muted);
  font-size: 0.75rem;
}
.bourse-suggest-sym {
  flex-shrink: 0;
  font-family: var(--bs-font-monospace, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fc-teal-deep);
}
.modal-body:has(.addr-suggest) {
  overflow: visible;
}

/* ---- Avatar picker / cropper ---- */
.fc-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.fc-avatar-btn {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--fc-wash);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--fc-line);
}
.fc-avatar-btn:hover .fc-avatar-overlay,
.fc-avatar-btn:focus-visible .fc-avatar-overlay {
  opacity: 1;
}
.fc-avatar-btn:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 3px;
}
.fc-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: rgba(16, 34, 31, 0.62);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.4rem;
  text-align: center;
  line-height: 1.2;
}
.fc-avatar-overlay i {
  font-size: 1.55rem;
  line-height: 1;
}
.fc-avatar-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--fc-teal);
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}
.fc-avatar-badge i {
  font-size: 0.95rem;
  line-height: 1;
}
.fc-avatar-btn:hover .fc-avatar-badge,
.fc-avatar-btn:focus-visible .fc-avatar-badge {
  opacity: 0;
}
.fc-avatar-formats {
  margin: 0;
  font-size: 0.75rem;
  color: var(--fc-muted);
}
.fc-avatar-error {
  margin: 0;
  font-size: 0.82rem;
  color: #b42318;
}
.fc-avatar-stage {
  width: 100%;
  text-align: left;
  background: var(--fc-wash);
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  padding: 0.9rem;
}
.fc-avatar-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fc-ink);
}
.fc-avatar-crop-wrap {
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
  background: #1a2e2b;
}
.fc-avatar-crop-wrap img {
  display: block;
  max-width: 100%;
}
.fc-avatar-crop-wrap .cropper-view-box,
.fc-avatar-crop-wrap .cropper-face {
  border-radius: 50%;
}
.fc-avatar-crop-wrap .cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 1px #fff, 0 0 0 9999px rgba(16, 34, 31, 0.5);
}
.fc-avatar-crop-wrap .cropper-dashed,
.fc-avatar-crop-wrap .cropper-line,
.fc-avatar-crop-wrap .cropper-point {
  display: none;
}
.fc-avatar-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.fc-avatar-zoom {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.fc-avatar-zoom input[type="range"] {
  width: 100%;
  accent-color: var(--fc-teal);
}
.fc-avatar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
@media (prefers-reduced-motion: reduce) {
  .fc-avatar-overlay {
    transition: none;
  }
}

.k2-broker-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1.15rem;
}
.k2-broker-launch.is-inline {
  display: inline-flex;
  margin: 0;
  gap: 0;
  vertical-align: middle;
  line-height: 0;
}
.k2-broker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}
.k2-broker-btn .ti {
  font-size: 1.1rem;
  line-height: 1;
}
.k2-broker-launch-hint {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.86rem;
}

.fc-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}
.fc-icon-btn.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  min-width: 2.125rem;
  min-height: 2.125rem;
  padding: 0 !important;
  line-height: 1;
  box-sizing: border-box;
}
.fc-icon-btn.btn .ti {
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}
.fc-icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%) translateY(0.15rem);
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: var(--fc-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(16, 34, 31, 0.18);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.fc-icon-btn[data-tip]:hover::after,
.fc-icon-btn[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.card-body.table-responsive:has(.fc-icon-actions) {
  overflow: visible;
}
.k2-broker-modal .k2-broker-lead {
  margin: 0 0 1rem;
}
.k2-steps-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.k2-steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.k2-steps li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: var(--fc-wash);
  font-size: 0.88rem;
  color: var(--fc-ink);
}
.k2-steps .ti {
  color: var(--fc-teal);
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.k2-step-n {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--fc-teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.k2-field {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem 0.95rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
}
.k2-field-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.k2-field-head .ti {
  color: var(--fc-teal);
  font-size: 1.15rem;
  line-height: 1;
}
.k2-field-label {
  margin: 0;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--fc-ink);
}
.k2-field-help {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--fc-muted);
}
.k2-field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.k2-field-actions .btn,
.k2-field-actions .lp-btn,
.k2-broker-footer .btn,
.k2-broker-footer .lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.k2-broker-footer {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.k2-broker-footer .btn span,
.k2-broker-footer .lp-btn span,
.k2-field-actions .btn span {
  white-space: nowrap;
}
.k2-broker-modal {
  color: var(--fc-ink);
}
.modal-dialog-scrollable .modal-body.k2-broker-modal {
  min-height: 0;
  max-height: min(70vh, 42rem);
  overflow-y: auto;
}
.k2-odata-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.k2-odata-flags .k2-field {
  margin-bottom: 1rem;
}
@media (max-width: 767.98px) {
  .k2-odata-flags {
    grid-template-columns: 1fr;
  }
  .fc-dash-hero-actions {
    justify-content: flex-start;
    width: 100%;
  }
}
.k2-broker-modal textarea.form-control,
.k2-broker-modal .k2-broker-code {
  font-size: 0.78rem;
  line-height: 1.4;
}
.k2-broker-login {
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--fc-line);
  border-radius: 10px;
  background: var(--fc-wash);
}

.k2-broker-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.k2-broker-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.k2-broker-lead {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.88rem;
}
.k2-broker-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--fc-muted);
  font-size: 0.86rem;
}
.k2-broker-steps li + li {
  margin-top: 0.35rem;
}
.k2-broker-label {
  display: block;
  margin: 0.85rem 0 0.15rem;
  font-weight: 700;
  font-size: 0.82rem;
}
.k2-broker-hint {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--fc-muted);
}
.k2-broker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}
.k2-broker-row .form-control,
.k2-broker-row .k2-broker-input {
  flex: 1 1 16rem;
  min-width: 0;
}
.k2-broker-row-end {
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.k2-broker textarea.form-control,
.k2-broker .k2-broker-code {
  font-size: 0.78rem;
  line-height: 1.4;
}

.whd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.25rem;
}
.whd-search {
  flex: 1 1 16rem;
  max-width: 28rem;
}
.whd-shell {
  display: grid;
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 1.25rem;
  align-items: start;
}
.whd-toc,
.whd-rail {
  position: sticky;
  top: 5.2rem;
  max-height: calc(100vh - 6.2rem);
  overflow: auto;
}
.whd-toc {
  padding: 0.35rem 0.15rem 1rem 0;
  border-right: 1px solid var(--fc-line);
}
.whd-toc-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.whd-toc-label:first-child {
  margin-top: 0;
}
.whd-toc-group {
  margin-top: 0.35rem;
}
.whd-toc-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  color: var(--fc-ink);
  text-decoration: none;
  font-size: 0.82rem;
}
.whd-toc-link code {
  font-size: 0.72rem;
  color: inherit;
}
.whd-toc-link:hover,
.whd-toc-link.is-on {
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.whd-toc-link.is-on {
  font-weight: 700;
}
.whd-main {
  min-width: 0;
  padding-bottom: 4rem;
}
.whd-section {
  scroll-margin-top: 5.4rem;
  margin-bottom: 2.1rem;
}
.whd-section h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
}
.whd-section h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.whd-section p {
  color: var(--fc-muted);
  line-height: 1.55;
}
.whd-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--fc-muted);
  line-height: 1.6;
}
.whd-callout {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--fc-teal);
  background: var(--fc-wash);
  border-radius: 0 8px 8px 0;
  color: var(--fc-ink);
  font-size: 0.9rem;
}
.whd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.whd-cards > div {
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #fff;
}
.whd-cards h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.whd-cards p {
  margin: 0;
  font-size: 0.84rem;
}
.whd-table {
  background: #fff;
  font-size: 0.84rem;
}
.whd-table code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}
.whd-group-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 2.2rem 0 0.9rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--fc-line);
}
.whd-group-head > .ti {
  font-size: 1.35rem;
  color: var(--fc-teal);
  margin-top: 0.15rem;
}
.whd-group-head h3 {
  margin: 0 0 0.2rem;
}
.whd-group-head p {
  margin: 0;
  font-size: 0.88rem;
}
.whd-inbound {
  background: #fff;
  border: 1px dashed var(--fc-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.88rem;
}
.whd-inbound p {
  margin: 0.3rem 0 0.5rem;
}
.whd-event {
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.4rem;
  background: #fff;
}
.whd-event-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.whd-pill {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  background: var(--fc-sidebar);
  color: #e7f4f1;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.whd-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.whd-tag.is-k2 {
  background: #10221f;
  color: #c8ece6;
}
.whd-rail-card {
  background: #10221f;
  color: #d5ebe6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 34, 31, 0.18);
}
.whd-rail-head {
  padding: 0.8rem 1rem 0.45rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: #8fbfb6;
}
.whd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 0.4rem;
}
.whd-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #8fbfb6;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.55rem 0.2rem;
}
.whd-tabs button.is-on {
  color: #e7f4f1;
  box-shadow: inset 0 -2px 0 #2a9d8f;
}
.whd-rail-body {
  padding: 0.7rem 0.75rem 0.9rem;
}
.whd-rail-hint {
  font-size: 0.75rem;
  color: #8fbfb6;
  margin: 0 0 0.45rem;
}
.whd-lang {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.whd-lang button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #c8ece6;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
}
.whd-lang button.is-on {
  background: #2a9d8f;
  border-color: #2a9d8f;
  color: #10221f;
}
.whd-code {
  position: relative;
}
.whd-code pre {
  margin: 0;
  padding: 0.75rem 0.7rem 0.85rem;
  max-height: min(52vh, 28rem);
  overflow: auto;
  background: #0b1816;
  border-radius: 8px;
  color: #d8f3ee;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.whd-copy {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 1;
  border: 0;
  border-radius: 6px;
  background: rgba(42, 157, 143, 0.2);
  color: #c8ece6;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
}
.whd-main .whd-code pre {
  background: #10221f;
}
@media (max-width: 1199px) {
  .whd-shell {
    grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
  }
  .whd-rail {
    position: static;
    max-height: none;
    grid-column: 1 / -1;
    order: 3;
  }
  .whd-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .whd-shell {
    grid-template-columns: 1fr;
  }
  .whd-toc,
  .whd-rail {
    position: static;
    max-height: none;
    border-right: 0;
  }
  .whd-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.4rem;
    border-bottom: 1px solid var(--fc-line);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .whd-toc-group,
  .whd-toc-label {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whd-section {
    scroll-margin-top: 5.4rem;
  }
}

/* ---- Signature workbench ---- */
.sign-vendors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0 0 1rem;
}
.sign-vendor {
  position: relative;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--fc-line);
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem 1.05rem 1.2rem;
  color: inherit;
  cursor: pointer;
}
.sign-vendor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fc-line);
}
.sign-vendor:hover,
.sign-vendor:focus-visible {
  border-color: var(--fc-mint);
}
.sign-vendor:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.sign-vendor.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
  box-shadow: 0 0 0 1px var(--fc-teal);
}
.sign-vendor.is-on::before {
  background: var(--fc-teal);
}
.sign-vendor-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.sign-vendor-name {
  display: block;
  margin: 0.2rem 0 0.3rem;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
}
.sign-vendor-desc {
  display: block;
  color: var(--fc-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.sign-vendor-meta {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fc-teal-deep);
}
.sign-views {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.28rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  background: #fff;
}
.sign-view {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fc-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 0.95rem;
}
.sign-view.is-on {
  background: var(--fc-ink);
  color: #fff;
}
.sign-view:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.sign-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.sign-toolbar-field {
  min-width: min(18rem, 100%);
  flex: 1;
}
.sign-work {
  display: grid;
  grid-template-columns: minmax(16.5rem, 22rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.sign-send {
  position: sticky;
  top: 5.2rem;
}
.sign-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sign-form {
  display: grid;
  gap: 0.85rem;
}
.sign-requests {
  list-style: none;
  margin: 0;
  padding: 0 0.2rem 0.2rem;
}
.sign-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--fc-line);
}
.sign-request:last-child {
  border-bottom: 0;
}
.sign-request-title {
  margin: 0;
  font-weight: 700;
  color: var(--fc-ink);
}
.sign-request-meta {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--fc-muted);
  word-break: break-all;
}
.sign-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.sign-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 0.15rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sign-chip-ok {
  background: #d8f3ee;
  color: #0b4f47;
}
.sign-chip-wait {
  background: #f3ead2;
  color: #5c4708;
}
.sign-chip-warn {
  background: #f8d9d6;
  color: #7a2218;
}
.sign-chip-off {
  background: var(--fc-wash);
  color: var(--fc-muted);
}
.sign-empty {
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.sign-empty-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}
.sign-empty-body {
  margin: 0 0 0.9rem;
  color: var(--fc-muted);
}
.sign-docs {
  border-top: 1px solid var(--fc-line);
  padding: 0.9rem 1rem 1rem;
}
.sign-docs-title {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 0.88rem;
}
.sign-docs-list {
  margin: 0;
  padding-left: 1.1rem;
}
.sign-setup-lead,
.sign-setup-help {
  color: var(--fc-muted);
}
.sign-setup-lead {
  margin: 0 0 0.9rem;
}
@media (max-width: 991px) {
  .sign-work,
  .sign-vendors {
    grid-template-columns: 1fr;
  }
  .sign-send {
    position: static;
  }
  .sign-request {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .sign-request-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sign-vendor,
  .sign-view {
    transition: none;
  }
}

/* ---- Webhook wizard ---- */
.fc-wizard-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 80px - 4.5rem);
  min-height: 0;
}
.fc-wizard-page .page-header {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.fc-wizard-page .fc-dash-hero {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  padding: 1rem 1.2rem;
}
.fc-wizard-page .fc-dash-hero h1 {
  font-size: 1.35rem;
}
.fc-wizard-page .fc-stepper {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.fc-wizard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fc-wizard > .card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fc-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}
.fc-stepper-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fc-muted);
  text-align: left;
  cursor: pointer;
}
.fc-stepper-item.is-on .fc-stepper-btn,
.fc-stepper-item.is-done .fc-stepper-btn {
  border-color: var(--fc-mint);
  color: var(--fc-ink);
}
.fc-stepper-item.is-on .fc-stepper-btn {
  background: var(--fc-wash);
}
.fc-stepper-btn:disabled {
  cursor: default;
  opacity: 0.55;
}
.fc-stepper-num {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  background: #eef3f1;
  color: var(--fc-ink);
  font-size: 0.75rem;
  font-weight: 800;
}
.fc-stepper-item.is-on .fc-stepper-num,
.fc-stepper-item.is-done .fc-stepper-num {
  background: var(--fc-teal);
  color: #fff;
}
.fc-stepper-label {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}
.fc-wizard-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fc-wizard-lead {
  margin: 0 0 1.1rem;
  color: var(--fc-muted);
  font-weight: 600;
}
.fc-wizard-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fc-filter-chip {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--fc-line);
  border-radius: 99px;
  background: #fff;
  color: var(--fc-ink);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.fc-filter-chip.is-on {
  background: var(--fc-ink);
  border-color: var(--fc-ink);
  color: #fff;
}
body.app-shell .fc-filter-chip:hover,
body.app-shell .fc-pick:hover,
body.app-shell .fc-stepper-btn:hover {
  color: var(--fc-ink) !important;
  text-decoration: none;
}
.fc-json-preview {
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 16rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.fc-wizard-search {
  max-width: 22rem;
}
.fc-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.fc-pick-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fc-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-height: 8.5rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fc-ink);
  text-align: left;
  cursor: pointer;
}
.fc-pick--lg {
  min-height: 10rem;
}
.fc-pick.is-on {
  border-color: var(--fc-mint);
  box-shadow: 0 0 0 1px var(--fc-mint);
  background: #f7fbfa;
}
.fc-pick-icon {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.05rem;
}
.fc-pick strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}
.fc-pick code {
  font-size: 0.72rem;
  color: var(--fc-teal-deep);
  background: transparent;
}
.fc-pick em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fc-muted);
  line-height: 1.35;
}
.fc-summary {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fbfcfb;
}
.fc-summary div {
  margin: 0;
}
.fc-summary dt {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-summary dd {
  margin: 0;
  font-weight: 700;
}
.fc-summary code {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  background: transparent;
  color: var(--fc-teal-deep);
}
.fc-wizard-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: #fff;
  border-top: 1px solid var(--fc-line) !important;
  box-shadow: 0 -8px 18px rgba(16, 34, 31, 0.06);
}
@media (max-width: 1024px) {
  .fc-wizard-page {
    height: calc(100dvh - 80px - 3.5rem);
  }
}
@media (max-width: 991px) {
  .fc-stepper,
  .fc-pick-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575.98px) {
  .fc-wizard-page {
    height: calc(100dvh - 58px - 3.25rem);
  }
}
@media (max-width: 639px) {
  .fc-stepper,
  .fc-pick-grid--3 {
    grid-template-columns: 1fr;
  }
}
.fc-studio {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 80px - 4.5rem);
  min-height: 28rem;
  margin: -0.15rem -0.15rem 0;
}
.fc-studio-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  margin-bottom: 0.75rem;
}
.fc-studio-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--fc-ink);
  text-decoration: none;
  white-space: nowrap;
}
.fc-studio-chip,
.fc-studio-node-main,
.fc-studio-insert,
.fc-studio-icon,
.fc-studio-trig,
.fc-studio-tpl,
.fc-studio-run-main,
.fc-studio-tab,
.fc-inspect-tab,
.fc-studio-node.is-trigger {
  cursor: pointer;
}
.fc-studio-bar .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.fc-inspect-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  padding: 0.35rem 0.45rem 0;
  background: #fff;
  border-bottom: 1px solid var(--fc-line);
}
.fc-inspect-tab {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.05rem;
  padding: 0.3rem 0.45rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--fc-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.fc-inspect-tab:hover,
.fc-inspect-tab:focus-visible {
  color: var(--fc-teal-deep);
  outline: none;
}
.fc-inspect-tab.is-on {
  color: var(--fc-teal-deep);
  border-bottom-color: var(--fc-teal);
}
.fc-inspect-tab.has-errors {
  color: #b42318;
}
.fc-inspect-tab.has-errors.is-on {
  border-bottom-color: #c45c4a;
}
.fc-inspect-tab em {
  min-width: 1.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #c45c4a;
  color: #fff;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}
.fc-studio-inspector .fc-studio-issues {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  background: #fff;
}
.fc-studio-issues-lead {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fc-muted);
  line-height: 1.35;
}
.fc-studio-issues.is-ok .fc-studio-issues-lead {
  color: var(--fc-teal-deep);
}
.fc-studio-issues-ok {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #b7e0d4;
  border-radius: 10px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 0.82rem;
  font-weight: 800;
}
.fc-studio-issues-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.fc-studio-issue {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
  padding: 0.5rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fc-ink);
  line-height: 1.3;
}
.fc-studio-issue i {
  color: #c45c4a;
  margin-top: 0.08rem;
  flex-shrink: 0;
}
.fc-studio-issue:hover,
.fc-studio-issue:focus-visible,
.fc-studio-issue.is-on {
  border-color: #c45c4a;
  background: #fdf6f4;
  outline: none;
}
.fc-studio-name.is-error {
  outline: 2px solid #c45c4a;
  outline-offset: 2px;
  border-radius: 4px;
}
.fc-studio-node.is-trigger:hover,
.fc-studio-node.is-trigger:focus-visible {
  color: #fff;
}
.fc-studio-node.is-trigger:hover em,
.fc-studio-node.is-trigger:focus-visible em {
  color: #9ee8dc;
}
body.app-shell .fc-studio-back:hover,
body.app-shell .fc-studio-back:focus-visible {
  color: var(--fc-teal-deep) !important;
  text-decoration: none;
}
.fc-studio-identity {
  display: grid;
  gap: 0.2rem;
  min-width: 12rem;
  flex: 1 1 16rem;
}
.fc-studio-name,
.fc-studio-desc {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--fc-ink);
  padding: 0;
}
.fc-studio-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.fc-studio-desc {
  font-size: 0.8rem;
  color: var(--fc-muted);
}
.fc-studio-name:focus,
.fc-studio-desc:focus {
  outline: none;
}
.fc-studio-name:focus-visible,
.fc-studio-desc:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.fc-studio-tabs {
  display: flex;
  gap: 0.2rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: var(--fc-wash);
}
.fc-studio-tab {
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.fc-studio-tab.is-on {
  background: #fff;
  color: var(--fc-ink);
  box-shadow: 0 1px 0 rgba(16, 34, 31, 0.06);
}
.fc-studio-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.fc-studio-save {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fc-muted, #5b6b67);
  white-space: nowrap;
}
.fc-studio-save .ti-loader-2 {
  animation: fc-spin 0.8s linear infinite;
}
.fc-studio-save.is-saved {
  color: #1f7a4d;
}
.fc-studio-save.is-error {
  color: #b42318;
}
.fc-studio-save.is-view {
  color: #7a4a12;
}
.fc-studio-fork-hint {
  margin: -0.35rem 0 0.65rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #f0d9b8;
  border-radius: 12px;
  background: #fff8ee;
  color: #5c3b12;
  font-size: 0.86rem;
  font-weight: 700;
}
.fc-studio-save:empty {
  display: none;
}
.fc-studio-save-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
}
.fc-studio-save-retry span {
  text-decoration: underline;
}
.fc-studio-ver select {
  max-width: 11.5rem;
  height: 2.15rem;
  padding: 0 1.6rem 0 0.7rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fc-ink);
  font-weight: 700;
  font-size: 0.82rem;
}
.fc-flow-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
@keyframes fc-spin {
  to { transform: rotate(360deg); }
}
.fc-studio-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 300px;
  gap: 0.55rem;
}
.fc-studio-body.is-palette-open {
  grid-template-columns: 212px minmax(0, 1fr) 300px;
}
.fc-studio-palette,
.fc-studio-inspector,
.fc-studio-canvas,
.fc-studio-runs {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
}
.fc-studio-palette {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.3rem 0.55rem;
  overflow: hidden;
}
.fc-studio-palette-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  flex-shrink: 0;
}
.fc-studio-palette-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.2rem 0.3rem;
  border: 0;
  background: transparent;
  color: var(--fc-teal-deep);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}
.fc-studio-palette-toggle:hover,
.fc-studio-palette-toggle:focus-visible {
  background: var(--fc-wash);
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.fc-studio-palette.is-open .fc-studio-palette-toggle {
  justify-content: flex-start;
}
.fc-studio-palette.is-open .fc-studio-palette-toggle i {
  font-size: 1.05rem;
}
.fc-studio-palette-head .form-control {
  padding: 0.28rem 0.4rem;
  font-size: 0.72rem;
}
.fc-studio-insert-hint {
  margin: 0.4rem 0 0;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}
.fc-studio-palette-list {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.45rem;
  overflow: auto;
  min-height: 0;
}
.fc-studio-group-title {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-studio-palette.is-collapsed .fc-studio-group-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.fc-studio-palette.is-collapsed .fc-studio-group + .fc-studio-group {
  border-top: 1px solid var(--fc-line);
  padding-top: 0.3rem;
}
.fc-studio-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  text-align: center;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.1rem;
  color: var(--fc-ink);
  border-radius: 10px;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
}
.fc-studio-chip i,
.fc-studio-chip span {
  pointer-events: none;
  -webkit-user-drag: none;
}
.fc-studio-palette.is-open .fc-studio-chip {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  padding: 0.4rem 0.4rem;
}
.fc-studio-chip i {
  margin: 0;
  font-size: 1.15rem;
  color: var(--fc-teal-deep);
  flex-shrink: 0;
}
.fc-studio-chip span {
  display: none;
}
.fc-studio-palette.is-open .fc-studio-chip span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
}
.fc-studio-tip {
  position: fixed;
  z-index: 40;
  transform: translateY(-50%);
  max-width: 14rem;
  padding: 0.32rem 0.55rem;
  border-radius: 8px;
  background: var(--fc-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(16, 34, 31, 0.18);
  pointer-events: none;
}
.fc-studio-tip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--fc-ink);
  border-left-width: 0;
}
.fc-studio-chip:hover,
.fc-studio-chip:focus-visible {
  background: var(--fc-wash);
}
.fc-studio-chip {
  cursor: grab;
  user-select: none;
}
.fc-studio-chip:active,
.fc-studio-chip.is-dragging {
  cursor: grabbing;
}
.fc-studio-chip.is-dragging,
.fc-studio-node.is-dragging {
  opacity: 0.45;
}
.fc-studio-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.15rem;
  color: var(--fc-muted);
  cursor: grab;
}
.fc-studio-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 1.7rem;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
}
.fc-studio.is-dnd .fc-studio-join {
  min-height: 2.2rem;
  padding: 0.25rem 0.4rem;
  border-radius: 12px;
}
.fc-studio-insert,
.fc-studio.is-dnd .fc-studio-insert {
  pointer-events: none;
}
.fc-studio-join.is-drop {
  background: rgba(16, 120, 100, 0.12);
}
.fc-studio-insert.is-on.is-drop,
.fc-studio-join.is-drop .fc-studio-insert {
  background: var(--fc-teal);
  border-style: solid;
  color: #fff;
}
.fc-studio-canvas {
  position: relative;
  padding: 1.6rem 0.7rem 1.4rem;
  background:
    radial-gradient(circle at 18px 14px, rgba(16, 34, 31, 0.07) 1.15px, transparent 1.3px) 0 0 / 22px 22px,
    linear-gradient(180deg, #f7fbf9, #eef6f3);
}
.fc-studio.is-dnd .fc-studio-canvas {
  outline: 2px dashed rgba(16, 120, 100, 0.4);
  outline-offset: -6px;
}
.fc-studio-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-studio-tpl-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.fc-studio-tpl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fc-ink);
}
.fc-studio-tpl i {
  color: var(--fc-teal-deep);
}
.fc-studio-tpl em {
  font-style: normal;
  color: var(--fc-muted);
  font-size: 0.75rem;
}
.fc-studio-rail {
  list-style: none;
  margin: 0 auto;
  padding: 0.4rem 0 0.8rem;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fc-studio-station {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fc-studio-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.fc-studio-wire {
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, var(--fc-mint), var(--fc-teal));
  border-radius: 99px;
  animation: fc-studio-flow 1.6s linear infinite;
}
.fc-studio-node,
.fc-studio-node-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
  color: var(--fc-ink);
}
.fc-studio-node {
  position: relative;
  width: 9.2rem;
  border: 1px solid var(--fc-line);
  background: #fff;
  border-radius: 16px;
  padding: 0.45rem 0.45rem 0.4rem;
  box-shadow: 0 8px 18px rgba(16, 34, 31, 0.06);
}
.fc-studio-node.is-trigger {
  width: 9.2rem;
  padding: 0.5rem 0.45rem 0.45rem;
  background: var(--fc-ink);
  color: #fff;
  border-color: var(--fc-ink);
}
.fc-studio-node.is-trigger em {
  color: #9ee8dc;
}
.fc-studio-node.is-trigger .fc-studio-glyph {
  background: #004f47;
  color: #b8fff3;
}
.fc-studio-node.is-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.45rem 0.3rem 0.4rem;
  cursor: grab;
}
.fc-studio-node.is-step .fc-studio-node-ops {
  cursor: default;
}
.fc-studio-glyph,
.fc-studio-node b {
  -webkit-user-drag: none;
}
.fc-studio-node-main {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  -webkit-user-drag: none;
}
.fc-studio-node b,
.fc-studio-node em {
  display: block;
}
.fc-studio-node b {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  max-width: 8.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-studio-node em {
  display: none;
}
.fc-studio-glyph {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 1.2rem;
}
.fc-studio-node.is-on {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 3px rgba(0, 104, 93, 0.16);
}
.fc-studio-node.is-error {
  border-color: #c45c4a;
  box-shadow: 0 0 0 3px rgba(196, 92, 74, 0.18);
}
.fc-studio-node.is-error.is-on {
  border-color: #c45c4a;
  box-shadow: 0 0 0 3px rgba(196, 92, 74, 0.22);
}
.fc-studio-node-ops {
  position: absolute;
  left: calc(100% + 0.22rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.12rem;
  border: 1px solid var(--fc-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(16, 34, 31, 0.1);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.fc-studio-node:hover .fc-studio-node-ops,
.fc-studio-node:focus-within .fc-studio-node-ops,
.fc-studio-node.is-on .fc-studio-node-ops {
  opacity: 1;
  pointer-events: auto;
}
.fc-studio-ai-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}
.fc-studio-ai {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}
.fc-studio-ai-link {
  width: 1.35rem;
  height: 2px;
  flex: 0 0 1.35rem;
  background: linear-gradient(90deg, var(--fc-mint), var(--fc-teal));
  border-radius: 99px;
}
.fc-studio-ai-link.is-vert {
  width: 2px;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  background: linear-gradient(180deg, var(--fc-mint), var(--fc-teal));
}
.fc-studio-node.is-ai-side {
  width: 7.1rem;
  padding: 0.4rem 0.28rem 0.35rem;
  cursor: pointer;
  background: #f7fbf9;
  font: inherit;
  color: inherit;
}
.fc-studio-node.is-ai-side b {
  max-width: 6.4rem;
  font-size: 0.62rem;
}
.fc-studio-node.is-ai-side .fc-studio-glyph {
  font-size: 1rem;
}
.fc-studio-node.is-ai-side.is-armed {
  background: #fff;
}
.fc-studio-ai .is-ai .fc-studio-node-ops {
  left: 50%;
  top: -0.22rem;
  transform: translate(-50%, -100%);
  flex-direction: row;
}
.fc-studio-icon {
  width: 1.45rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  border-radius: 6px;
}
.fc-studio-icon:disabled,
.fc-studio-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.fc-studio-icon:hover,
.fc-studio-icon:focus-visible {
  background: var(--fc-wash);
  color: var(--fc-ink);
}
.fc-studio-icon.is-danger:hover,
.fc-studio-icon.is-danger:focus-visible {
  background: #f8d9d6;
  color: #7a2218;
}
.fc-studio-insert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.08rem 0;
  padding: 0;
  border-radius: 999px;
  border: 1px dashed var(--fc-teal);
  background: #fff;
  color: var(--fc-teal-deep);
}
.fc-studio-insert.is-on {
  background: var(--fc-teal);
  border-style: solid;
  color: #fff;
}
.fc-studio-cond {
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.fc-studio-cond.is-on,
.fc-studio-cond.is-on .fc-studio-node.is-cond {
  border-color: var(--fc-teal);
}
.fc-studio-cond.is-dragging {
  opacity: 0.45;
}
.fc-studio-node.is-cond {
  box-shadow: 0 8px 18px rgba(16, 34, 31, 0.06);
}
.fc-studio-split {
  width: 2px;
  height: 1.45rem;
  background: linear-gradient(180deg, var(--fc-mint), var(--fc-teal));
  border-radius: 99px;
}
.fc-studio-fork {
  --fc-fork-gap: 0.5rem;
  --fc-fork-stem: 0.75rem;
  --fc-fork-line: 2px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--fc-fork-gap);
  width: max-content;
  max-width: 100%;
  position: relative;
  margin: 0.15rem 0 0;
  padding-top: var(--fc-fork-stem);
}
.fc-studio-branch {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 9.2rem;
  min-height: 4.4rem;
  margin: 0;
  padding: 0.28rem 0.55rem 0.35rem;
  border: 1px dashed rgba(16, 120, 100, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fc-studio-branch.is-body {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
  min-width: 16rem;
}
.fc-studio-fork:not(.is-solo) .fc-studio-branch::before,
.fc-studio-fork:not(.is-solo) .fc-studio-branch::after {
  content: "";
  position: absolute;
  background: var(--fc-teal);
  opacity: 0.45;
}
.fc-studio-fork:not(.is-solo) .fc-studio-branch::before {
  top: calc(var(--fc-fork-stem) * -1);
  left: 50%;
  width: var(--fc-fork-line);
  height: var(--fc-fork-stem);
  margin-left: -1px;
}
.fc-studio-fork:not(.is-solo) .fc-studio-branch::after {
  top: calc(var(--fc-fork-stem) * -1);
  height: var(--fc-fork-line);
}
.fc-studio-fork:not(.is-solo) .fc-studio-branch:first-child:not(:last-child)::after {
  left: 50%;
  margin-left: -1px;
  width: calc(50% + (var(--fc-fork-gap) / 2) + 1px);
}
.fc-studio-fork:not(.is-solo) .fc-studio-branch:last-child:not(:first-child)::after {
  right: 50%;
  margin-right: -1px;
  width: calc(50% + (var(--fc-fork-gap) / 2) + 1px);
}
.fc-studio-fork:not(.is-solo) .fc-studio-branch:not(:first-child):not(:last-child)::after {
  left: calc(var(--fc-fork-gap) / -2);
  width: calc(100% + var(--fc-fork-gap));
}
.fc-studio-branch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.15rem;
}
.fc-studio-branch-tag {
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fc-teal-deep);
  background: var(--fc-wash);
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  line-height: 1.2;
  cursor: pointer;
}
button.fc-studio-branch-tag:hover,
button.fc-studio-branch-tag:focus-visible {
  border-color: var(--fc-teal);
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.fc-studio-branch.is-on {
  border-color: var(--fc-teal);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 104, 93, 0.16);
}
.fc-studio-branch.is-error {
  border-color: #c45c4a;
  background: #fdf6f4;
}
.fc-studio-branch.is-error.is-on {
  box-shadow: 0 0 0 2px rgba(196, 92, 74, 0.2);
}
.fc-studio-branch-tag.is-error {
  color: #b42318;
  border-color: #c45c4a;
  background: #fdf6f4;
}
.fc-studio-branch-tag.is-on {
  background: var(--fc-teal);
  color: #fff;
  border-color: var(--fc-teal);
}
.fc-studio-rule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 0.5rem;
  flex: 1 1 14rem;
  min-width: 0;
}
.fc-studio-rule-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}
.fc-studio-rule-field > label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tblr-secondary, #667);
  margin: 0;
}
.fc-studio-rule-right {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}
.fc-studio-rule-mode {
  flex: 0 0 6.2rem;
  max-width: 7rem;
}
.fc-studio-rule-right .form-control,
.fc-studio-rule-right .form-select:not(.fc-studio-rule-mode) {
  flex: 1 1 auto;
  min-width: 0;
}
.fc-studio-rule-hint {
  font-size: 0.78rem;
  color: var(--tblr-secondary, #667);
  margin: 0 0 0.5rem;
}
.fc-studio-branch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.15rem 0 0.2rem;
}
.fc-studio-branch-actions .btn {
  font-size: 0.68rem;
  padding: 0.18rem 0.45rem;
}
.fc-studio-rail.is-nested {
  width: 100%;
  max-width: none;
  padding: 0;
}
.fc-studio-hint {
  margin: 0.2rem 0 0;
  color: var(--fc-muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}
.fc-studio-branch .fc-studio-hint {
  font-size: 0.58rem;
  max-width: 8.4rem;
}
.fc-studio-inspector {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4faf8 0, #f4faf8 7.2rem, #fff 7.2rem);
}
.fc-inspect-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.95rem 0.9rem 0.55rem;
}
.fc-inspect-hero {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
}
.fc-inspect-glyph {
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--fc-teal);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(0, 79, 71, 0.18);
}
.fc-inspect-hero h2 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.fc-inspect-hero p,
.fc-inspect-lead {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
}
.fc-inspect-lead {
  margin-bottom: 0.75rem;
}
.fc-inspect-card {
  margin: 0 0 0.65rem;
  padding: 0.75rem 0.8rem 0.8rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 34, 31, 0.04);
}
.fc-inspect-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-inspect-label {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fc-ink);
}
.fc-inspect-field {
  margin-bottom: 0.8rem;
}
.fc-inspect-tools {
  display: grid;
  gap: 0.7rem;
  max-height: 22rem;
  overflow: auto;
  padding: 0.15rem 0.2rem 0.15rem 0;
}
.fc-inspect-tools-group h4 {
  margin: 0 0 0.28rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-inspect-tools-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.28rem 0.15rem;
  cursor: pointer;
}
.fc-inspect-tools-item .form-check-input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}
.fc-inspect-tools-item i {
  margin-top: 0.12rem;
  color: var(--fc-teal-deep);
  flex: 0 0 auto;
}
.fc-inspect-tools-item span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}
.fc-inspect-tools-item strong {
  font-size: 0.82rem;
  font-weight: 650;
}
.fc-inspect-tools-item em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--fc-muted);
}
.fc-inspect-card .fc-inspect-field:last-child {
  margin-bottom: 0;
}
.fc-inspect-combo.is-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: stretch;
}
.fc-inspect-combo.is-stack {
  display: grid;
  gap: 0.4rem;
}
.fc-inspect-insert {
  min-width: 8.4rem;
  max-width: 11rem;
  font-size: 0.76rem !important;
  padding: 0.3rem 0.45rem;
  border-color: var(--fc-line);
  color: var(--fc-teal-deep);
  background: var(--fc-wash);
}
.fc-inspect-combo.is-stack .fc-inspect-insert {
  min-width: 0;
  max-width: none;
  justify-self: start;
}
.fc-flow-map-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
.fc-flow-map {
  display: flex;
  align-items: stretch;
  min-height: 2.45rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
}
.fc-flow-map.is-multi {
  min-height: 5.2rem;
  align-items: stretch;
}
.fc-flow-map:focus-within {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 3px rgba(0, 104, 93, 0.16);
}
.fc-flow-map-host {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}
.fc-flow-map-host .fc-flow-map-editor {
  flex: 1 1 auto;
  width: 100%;
}
.fc-flow-map-editor {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.42rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--fc-ink);
  cursor: text;
  overflow-y: auto;
}
.fc-flow-map-editor.is-single {
  white-space: nowrap;
  max-height: 4.2rem;
}
.fc-flow-map-editor.is-multi {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 4.4rem;
}
.fc-flow-map-editor.is-empty::before {
  content: attr(data-placeholder);
  color: var(--fc-muted);
  font-weight: 600;
  pointer-events: none;
}
.fc-flow-map-btn {
  flex: 0 0 2.35rem;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--fc-line);
  border-radius: 0 9px 9px 0;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 1.05rem;
}
.fc-flow-map-btn:hover,
.fc-flow-map-btn[aria-expanded="true"] {
  background: #d7efe9;
  color: var(--fc-teal);
}
.fc-flow-map-btn:focus-visible,
.fc-flow-pick-btn:focus-visible,
.fc-flow-picker-pill:focus-visible {
  outline: 2px solid var(--fc-teal-deep);
  outline-offset: 2px;
}
.fc-flow-map-btn.is-solo {
  display: inline-flex;
  gap: 0.35rem;
  width: auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--fc-line);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 800;
}
.fc-flow-token {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  margin: 0 0.12rem;
  padding: 0.08rem 0.48rem 0.1rem;
  border-radius: 6px;
  background: var(--fc-teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
  vertical-align: middle;
  white-space: nowrap;
  user-select: none;
  box-shadow: inset 0 -1px 0 rgba(0, 32, 28, 0.18);
}
.fc-flow-token-n {
  opacity: 0.82;
  font-variant-numeric: tabular-nums;
}
.fc-flow-token-n::after {
  content: ".";
  margin-right: 0.12rem;
}
.fc-flow-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.05rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--fc-line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.fc-flow-pick-btn .ti-chevron-down {
  margin-left: auto;
  color: var(--fc-muted);
}
.fc-flow-pick-clear {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: var(--fc-muted);
  flex-shrink: 0;
}
.fc-flow-pick-clear:hover {
  background: var(--fc-wash);
  color: var(--fc-ink);
}
.fc-flow-pick-ph {
  color: var(--fc-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.fc-flow-picker {
  position: fixed;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: fit-content;
  max-height: min(22rem, calc(100vh - 1.5rem));
  padding: 0.45rem;
  border: 1px solid var(--fc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 34, 31, 0.16);
}
.fc-flow-picker.is-flip {
  transform: translateY(-100%);
}
.fc-flow-picker-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--fc-line);
  border-radius: 9px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.fc-flow-picker-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fc-ink);
  font-size: 0.84rem;
  font-weight: 600;
  outline: none;
}
.fc-flow-picker-body {
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
  margin-top: 0.35rem;
}
.fc-flow-picker-scope {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}
.fc-flow-picker-scope .ti {
  font-size: 0.95rem;
}
.fc-flow-picker-group {
  margin: 0;
  padding: 0;
}
.fc-flow-picker-group + .fc-flow-picker-group {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--fc-line);
}
.fc-flow-picker-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-flow-picker-head .ti {
  font-size: 0.95rem;
  color: var(--fc-teal);
}
.fc-flow-picker-no {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  background: var(--fc-teal);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}
.fc-flow-picker-pills {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.35rem;
}
.fc-flow-picker-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.fc-flow-picker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0.18rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: var(--fc-teal);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  box-shadow: inset 0 -1px 0 rgba(0, 32, 28, 0.18);
}
.fc-flow-picker-pill:hover,
.fc-flow-picker-pill.is-on {
  background: var(--fc-teal-deep);
}
.fc-flow-picker-pill.is-in {
  background: var(--fc-mint);
}
.fc-flow-picker-pill.is-in:hover,
.fc-flow-picker-pill.is-in.is-on {
  background: #21867a;
}
.fc-flow-picker-kicker {
  margin: 0.45rem 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-mint);
}
.fc-flow-token.is-in {
  background: var(--fc-mint);
}
.fc-flow-picker-preview {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fc-muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.fc-flow-picker-empty {
  margin: 0.35rem 0 0;
  color: var(--fc-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.fc-ftp-pick {
  display: grid;
  gap: 0.4rem;
}
.fc-ftp-pick .fc-flow-map-btn.is-solo {
  justify-self: start;
}
.fc-ftp-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  color: var(--fc-ink);
}
.fc-ftp-pick-btn:hover:not(:disabled),
.fc-ftp-pick-btn[aria-expanded="true"] {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 3px rgba(0, 104, 93, 0.16);
}
.fc-ftp-pick-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.fc-ftp-pick-btn > .ti-folder,
.fc-ftp-pick-btn > .ti-archive,
.fc-ftp-pick-btn > .ti-file,
.fc-ftp-pick-btn > .ti-file-text,
.fc-ftp-pick-btn > .ti-inbox,
.fc-ftp-pick-btn > .ti-writing,
.fc-ftp-pick-btn > .ti-writing-sign,
.fc-ftp-pick-btn > .ti-file-check {
  color: var(--fc-teal);
  font-size: 1.05rem;
}
.fc-ftp-pick-btn > .ti-chevron-down {
  margin-left: auto;
  color: var(--fc-muted);
}
.fc-ftp-pick-path {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.fc-ftp-tree {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fc-ftp-row {
  display: flex;
  align-items: stretch;
  gap: 0.1rem;
  border-radius: 8px;
}
.fc-ftp-row.is-on {
  background: #e7f4f0;
}
.fc-ftp-chevron {
  display: grid;
  place-items: center;
  width: 1.35rem;
  flex: 0 0 1.35rem;
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  padding: 0;
}
.fc-ftp-chevron .ti {
  display: block;
  font-size: 0.85rem;
  transition: transform 0.14s ease;
}
.fc-ftp-chevron.is-open .ti {
  transform: rotate(90deg);
}
.fc-ftp-node {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.28rem 0.4rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  color: var(--fc-ink);
}
.fc-ftp-node:hover,
.fc-ftp-node.is-on {
  background: #e7f4f0;
}
.fc-ftp-node .ti-folder,
.fc-ftp-node .ti-folder-open,
.fc-ftp-node .ti-archive,
.fc-ftp-node .ti-inbox,
.fc-ftp-node .ti-file,
.fc-ftp-node .ti-writing,
.fc-ftp-node .ti-writing-sign,
.fc-ftp-node .ti-file-check {
  color: var(--fc-teal);
  font-size: 1rem;
}
.fc-ftp-node span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fc-ftp-node strong {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}
.fc-ftp-node em {
  color: var(--fc-muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 650;
}
.fc-ftp-kids {
  margin: 0.05rem 0 0.15rem 0.7rem;
  padding-left: 0.45rem;
  border-left: 1px dashed rgba(0, 79, 71, 0.2);
}
.fc-ftp-muted {
  margin: 0.2rem 0 0.35rem;
  color: var(--fc-muted);
  font-size: 0.74rem;
  font-weight: 650;
}
.fc-ftp-muted.is-err {
  color: #b42318;
}
@media (prefers-reduced-motion: reduce) {
  .fc-ftp-chevron .ti {
    transition: none;
  }
}
.fc-studio-rule-field .fc-flow-map-wrap,
.fc-studio-rule-field .fc-flow-map,
.fc-studio-rule-right .fc-flow-map-wrap {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .fc-flow-picker {
    animation: fc-flow-picker-in 0.16s ease-out;
  }
}
@keyframes fc-flow-picker-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.fc-flow-picker.is-flip {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .fc-flow-picker.is-flip {
    animation: fc-flow-picker-up 0.16s ease-out;
  }
}
@keyframes fc-flow-picker-up {
  from { opacity: 0; transform: translateY(calc(-100% + 6px)); }
  to { opacity: 1; transform: translateY(-100%); }
}
.fc-inspect-fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.fc-inspect-fields li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.28rem 0.1rem;
  border-bottom: 1px solid var(--fc-line);
  font-size: 0.82rem;
}
.fc-inspect-fields li:last-child {
  border-bottom: 0;
}
.fc-inspect-fields strong {
  font-weight: 700;
  color: var(--fc-ink);
}
.fc-inspect-fields code {
  font-size: 0.7rem;
  color: #b4235a;
  font-weight: 600;
}
.fc-inspect-help,
.fc-inspect-empty-conn {
  margin: 0;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: var(--fc-wash);
  color: var(--fc-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.fc-inspect-empty-conn {
  display: grid;
  gap: 0.4rem;
}
.fc-inspect-empty-conn a {
  font-weight: 800;
  color: var(--fc-teal-deep);
}
.fc-inspect-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.fc-inspect-pills button,
.fc-inspect-pick,
.fc-inspect-toggle {
  font-family: inherit;
  cursor: pointer;
}
.fc-inspect-pills button {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fc-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.fc-inspect-pills button.is-on {
  background: var(--fc-teal);
  border-color: var(--fc-teal);
  color: #fff;
}
.fc-inspect-pills button:hover,
.fc-inspect-pick:hover,
.fc-inspect-toggle:hover {
  border-color: var(--fc-mint);
}
.fc-inspect-pills button:focus-visible,
.fc-inspect-pick:focus-visible,
.fc-inspect-toggle:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.fc-inspect-picks {
  display: grid;
  gap: 0.4rem;
}
.fc-inspect-pick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--fc-line);
  border-radius: 11px;
  background: #fbfcfb;
  color: var(--fc-ink);
}
.fc-inspect-pick i {
  color: var(--fc-teal-deep);
  font-size: 1.05rem;
}
.fc-inspect-pick span {
  display: grid;
  min-width: 0;
}
.fc-inspect-pick strong {
  font-size: 0.82rem;
  font-weight: 800;
}
.fc-inspect-pick em {
  font-style: normal;
  color: var(--fc-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.fc-inspect-pick.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
}
.fc-file-disk {
  display: grid;
  gap: 0.4rem;
}
.fc-file-disk-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 1px dashed var(--fc-line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--fc-ink);
  cursor: pointer;
}
.fc-file-disk-btn:hover,
.fc-file-disk.is-over .fc-file-disk-btn {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
}
.fc-file-disk-btn i {
  color: var(--fc-teal-deep);
  font-size: 1.15rem;
}
.fc-file-disk-btn span {
  display: grid;
  min-width: 0;
}
.fc-file-disk-btn strong {
  font-size: 0.82rem;
  font-weight: 800;
}
.fc-file-disk-btn em {
  font-style: normal;
  color: var(--fc-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.fc-file-disk-clear {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  padding: 0.2rem;
  cursor: pointer;
  border-radius: 6px;
}
.fc-file-disk-clear:hover,
.fc-file-disk-clear:focus-visible {
  color: var(--fc-ink);
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.fc-file-source .fc-flow-map-wrap {
  margin-bottom: 0.4rem;
}
.fc-mail-attach-list {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.fc-mail-attach .form-select {
  margin-bottom: 0.15rem;
}
.fc-file-or {
  margin: 0.7rem 0 0.35rem;
}
.fc-inspect-choice {
  display: grid;
  gap: 0.5rem;
}
.fc-inspect-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fbfcfb;
}
.fc-inspect-toggle span:first-child {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.fc-inspect-toggle strong {
  font-size: 0.82rem;
  font-weight: 800;
}
.fc-inspect-toggle em {
  font-style: normal;
  color: var(--fc-muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}
.fc-inspect-switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #c5d4d0;
}
.fc-inspect-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 34, 31, 0.2);
}
.fc-inspect-toggle.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
}
.fc-inspect-toggle.is-on .fc-inspect-switch {
  background: var(--fc-teal);
}
.fc-inspect-toggle.is-on .fc-inspect-switch::after {
  left: auto;
  right: 2px;
}
.fc-inspect-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 2.4rem 0.8rem;
  color: var(--fc-muted);
}
.fc-inspect-empty i {
  font-size: 1.7rem;
  color: var(--fc-teal);
}
.fc-inspect-empty p {
  margin: 0;
  display: grid;
  gap: 0.2rem;
}
.fc-inspect-empty strong {
  color: var(--fc-ink);
  font-size: 0.92rem;
}
.fc-inspect-empty span {
  font-size: 0.8rem;
  font-weight: 600;
}
.fc-inspect-branches {
  margin: 0 0 0.7rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.fc-inspect-rules {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.7rem;
}
.fc-inspect-rule {
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fbfcfb;
}
.fc-inspect-rule-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.fc-inspect-rule-head .fc-studio-branch-tag {
  cursor: default;
  font-size: 0.68rem;
  padding: 0.22rem 0.65rem;
}
.fc-inspect-rule-remove {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--fc-muted);
  padding: 0.15rem;
  border-radius: 6px;
  cursor: pointer;
}
.fc-inspect-rule-remove:hover,
.fc-inspect-rule-remove:focus-visible {
  color: var(--fc-ink);
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
.fc-inspect-rule-fields {
  display: grid;
  gap: 0.5rem;
}
.fc-inspect-rule .fc-studio-rule-right {
  flex-direction: column;
}
.fc-inspect-rule .fc-studio-rule-mode {
  flex: none;
  max-width: none;
  width: 100%;
}
.fc-inspect-rule .fc-inspect-help {
  margin: 0;
  padding: 0;
  background: transparent;
}
.fc-inspect-branches li {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--fc-wash);
}
.fc-inspect-branches b {
  font-size: 0.78rem;
  font-weight: 800;
}
.fc-inspect-branches span {
  color: var(--fc-muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.fc-inspect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fc-inspect-advanced {
  margin: 0.15rem 0 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #f7faf9;
  border: 1px dashed var(--fc-line);
}
.fc-inspect-advanced summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--fc-teal-deep);
}
.fc-inspect-advanced .fc-inspect-field {
  margin-top: 0.7rem;
}
.fc-studio-inspect-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fc-studio-inspect-lead {
  margin: 0 0 0.9rem;
  color: var(--fc-muted);
  font-size: 0.85rem;
}
.fc-studio-test {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.75rem 0.9rem 0.95rem;
  border-top: 1px solid var(--fc-line);
  background: #f7faf9;
}
.fc-studio-test summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--fc-ink);
}
.fc-studio-trigger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fc-studio-inspector .fc-studio-trigger-grid {
  gap: 0.4rem;
}
.fc-studio-inspector .fc-studio-trig {
  min-height: 0;
  padding: 0.55rem 0.6rem;
  width: 100%;
}
.fc-studio-inspector .fc-studio-trig em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-studio-trig {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  min-height: 5.6rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--fc-ink);
}
.fc-studio-trig i {
  color: var(--fc-teal-deep);
}
.fc-studio-trig em {
  font-style: normal;
  color: var(--fc-muted);
  font-size: 0.72rem;
}
.fc-studio-trig.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
}
.fc-studio-code {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-size: 0.75rem;
  word-break: break-all;
}
.fc-studio-runs {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(16.5rem, 22rem) minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0 0.15rem 0.85rem;
  overflow: hidden;
}
.fc-studio-runs .fc-studio-empty {
  grid-column: 1 / -1;
}
.fc-studio-setup {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.15rem 0.15rem 1.25rem;
}
.fc-studio-setup-inner {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.fc-studio-setup-intro h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fc-studio-setup-intro p {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.9rem;
}
.fc-studio-setup-card {
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.2rem;
  box-shadow: 0 10px 24px rgba(16, 34, 31, 0.04);
}
.fc-studio-setup-card .fc-studio-kicker {
  margin-bottom: 0.35rem;
}
.fc-studio-runlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  overflow: auto;
  min-height: 0;
}
.fc-studio-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.7rem 0.7rem 0.95rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fc-ink);
}
.fc-studio-run-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-align: left;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
}
.fc-studio-run-acts {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.fc-studio-run-acts .btn {
  padding: 0.2rem 0.4rem;
}
.fc-studio-run.is-on {
  border-color: var(--fc-teal-deep);
  box-shadow: 0 0 0 3px rgba(16, 120, 100, 0.12);
  background: var(--fc-wash, #f3faf8);
}
.fc-studio-run strong,
.fc-studio-run em {
  display: block;
}
.fc-studio-run em {
  font-style: normal;
  color: var(--fc-muted);
  font-size: 0.8rem;
}
.fc-studio-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--fc-muted);
}
.fc-studio-dot.is-ok,
.fc-studio-pill.is-ok {
  background: #0b4f47;
}
.fc-studio-dot.is-ok {
  background: #2a9d8f;
}
.fc-studio-dot.is-warn {
  background: #c2410c;
}
.fc-studio-dot.is-wait {
  background: #b08900;
}
.fc-studio-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--fc-muted);
}
.fc-studio-pill.is-warn {
  background: #9a3412;
}
.fc-studio-dot.is-off {
  background: #64748b;
}
.fc-studio-pill.is-off {
  background: #475569;
}
.fc-run-detail-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}
.fc-run-detail-tools .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.fc-studio-runs .fc-studio-pill.is-wait,
.fc-studio-runs .fc-studio-dot.is-wait {
  animation: fc-run-live 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .fc-studio-runs .fc-studio-pill.is-wait,
  .fc-studio-runs .fc-studio-dot.is-wait {
    animation: none;
  }
}
@keyframes fc-run-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.fc-studio-empty {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 12rem;
  color: var(--fc-muted);
}
.fc-studio-empty i {
  font-size: 1.6rem;
}
.fc-flow-mini {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.25rem;
}
.fc-flow-mini-wire-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.fc-flow-mini-node {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  border: 1px solid var(--fc-line);
  font-size: 0.62rem;
  line-height: 1;
}
.fc-flow-mini-node i {
  font-size: inherit;
  line-height: 1;
}
.fc-flow-mini-node.is-trigger {
  width: 1.15rem;
  height: 1.15rem;
  background: var(--fc-ink);
  color: #b8fff3;
  border-color: var(--fc-ink);
  font-size: 0.7rem;
}
.fc-flow-mini-more {
  margin: 0 0 0 0.1rem;
  color: var(--fc-muted);
  font-size: 0.62rem;
  font-weight: 800;
}
.fc-flow-mini-wire {
  width: 0.55rem;
  height: 2px;
  background: var(--fc-mint);
}
.fc-studio-back:focus-visible,
.fc-studio-tab:focus-visible,
.fc-inspect-tab:focus-visible,
.fc-studio-chip:focus-visible,
.fc-studio-node:focus-visible,
.fc-studio-node-main:focus-visible,
.fc-studio-insert:focus-visible,
.fc-studio-icon:focus-visible,
.fc-studio-trig:focus-visible,
.fc-studio-tpl:focus-visible,
.fc-studio-run-main:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 2px;
}
@keyframes fc-studio-flow {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
.fc-flow-drawer {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(16, 34, 31, 0.35);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.fc-run-pick {
  margin: 1.5rem;
  color: var(--fc-muted);
}
.fc-run-detail {
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--fc-line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 1.35rem;
  box-shadow: 0 10px 24px rgba(16, 34, 31, 0.04);
}
.fc-run-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.fc-run-detail-head h2 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.fc-run-detail-meta {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.85rem;
}
.fc-run-block {
  margin-top: 1.1rem;
}
.fc-run-block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-run-facts {
  display: grid;
  gap: 0.45rem 1rem;
  margin: 0 0 0.65rem;
}
.fc-run-facts > div {
  display: grid;
  grid-template-columns: minmax(6rem, 9.5rem) minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  align-items: start;
}
.fc-run-facts dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fc-muted);
}
.fc-run-facts dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.fc-run-story {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.fc-run-story-item {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.15rem 0 0.95rem;
  position: relative;
}
.fc-run-story-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1.7rem;
  bottom: 0;
  width: 1px;
  background: var(--fc-line);
}
.fc-run-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--fc-muted);
  font-size: 0.85rem;
  z-index: 1;
}
.fc-run-mark.is-ok {
  background: #0b4f47;
}
.fc-run-mark.is-warn {
  background: #9a3412;
}
.fc-run-story-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.fc-run-summary {
  margin: 0.25rem 0 0;
  font-weight: 600;
}
.fc-run-time,
.fc-run-sub {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--fc-muted);
}
.fc-run-sub {
  margin-top: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fc-run-error {
  margin: 0.45rem 0 0;
  color: #9a3412;
  font-weight: 600;
}
.fc-run-tech {
  margin-top: 0.45rem;
}
.fc-run-tech summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--fc-teal-deep);
  font-weight: 700;
}
.fc-run-tech pre {
  margin: 0.4rem 0 0;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: var(--fc-wash, #f3faf8);
  font-size: 0.72rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 14rem;
  overflow: auto;
}
@media (max-width: 991px) {
  .fc-studio-runs {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .fc-studio-runlist {
    max-height: 14rem;
  }
}
.fc-flow-drawer-card {
  background: #fff;
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: 1.25rem 1.4rem;
}
.fc-flow-step-log {
  border-top: 1px solid var(--fc-line);
  padding: 0.75rem 0;
}
.fc-flow-step-log pre {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 1199px) {
  .fc-studio-body,
  .fc-studio-body.is-palette-open {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .fc-studio-palette {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.35rem;
    max-height: 3.7rem;
  }
  .fc-studio-palette.is-open {
    max-height: 10.5rem;
  }
  .fc-studio-palette-head {
    flex: 0 0 auto;
    flex-direction: row;
  }
  .fc-studio-palette.is-open .fc-studio-palette-head {
    flex: 0 0 10.5rem;
    flex-direction: column;
  }
  .fc-studio-palette-toggle {
    width: auto;
    min-width: 2rem;
  }
  .fc-studio-palette-list {
    flex: 1 1 auto;
    grid-auto-flow: column;
    grid-auto-columns: 2.5rem;
    overflow-x: auto;
    margin-top: 0;
  }
  .fc-studio-palette.is-open .fc-studio-palette-list {
    grid-auto-columns: minmax(9rem, 1fr);
  }
  .fc-studio-palette.is-collapsed .fc-studio-group {
    display: contents;
  }
}
@media (max-width: 991px) {
  .fc-studio {
    height: auto;
  }
  .fc-studio-body,
  .fc-studio-body.is-palette-open {
    grid-template-columns: 1fr;
  }
  .fc-studio-palette {
    max-height: 3.7rem;
  }
  .fc-studio-palette.is-open {
    max-height: 10.5rem;
  }
  .fc-studio-inspector {
    min-height: 16rem;
  }
}
@media (max-width: 575.98px) {
  .fc-studio {
    height: auto;
  }
  .fc-studio-trigger-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fc-studio-wire {
    animation: none;
  }
}

/* ---- API logs console ---- */
button.fc-stat {
  width: 100%;
  text-align: left;
  cursor: pointer;
  appearance: none;
  font: inherit;
}
button.fc-stat.is-on {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 1px var(--fc-teal) inset;
}
.fc-log-hero .fc-dash-hero-meta {
  min-width: min(16rem, 100%);
}
.fc-log-mix {
  display: flex;
  overflow: hidden;
  width: 11rem;
  height: 0.42rem;
  margin-top: 0.15rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}
.fc-log-mix i {
  display: block;
  height: 100%;
}
.fc-log-mix .is-get { background: #b8fff3; }
.fc-log-mix .is-post { background: #7dcea0; }
.fc-log-mix .is-put { background: #f4c16e; }
.fc-log-mix .is-patch { background: #9bb0ff; }
.fc-log-mix .is-delete { background: #e89b90; }

.fc-log-toolbar .card-body {
  display: grid;
  gap: 1rem;
}
.fc-log-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1.6fr) repeat(2, minmax(9rem, 11rem)) auto;
  gap: 0.75rem 0.9rem;
  align-items: end;
}
.fc-log-field .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-log-search {
  position: relative;
}
.fc-log-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fc-teal);
  pointer-events: none;
}
.fc-log-search .form-control {
  padding-left: 2.2rem;
}
.fc-log-actions {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 1px;
}
.fc-log-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
}
.fc-log-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.fc-log-chip {
  appearance: none;
  border: 1px solid var(--fc-line);
  background: #fff;
  color: var(--fc-ink);
  border-radius: 99px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.fc-log-chip:hover,
.fc-log-chip:focus-visible {
  border-color: var(--fc-mint);
  outline: none;
}
.fc-log-chip:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fc-teal);
}
.fc-log-chip.is-on {
  background: var(--fc-teal);
  border-color: var(--fc-teal);
  color: #fff;
}
.fc-log-chip-verb {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.fc-log-retain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.15rem;
  border-top: 1px dashed var(--fc-line);
}
.fc-log-retain-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-log-retain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.fc-log-board {
  overflow: hidden;
}
.fc-log-stream {
  position: relative;
  max-height: min(70vh, 52rem);
  overflow: auto;
  padding: 0 0 0.35rem;
  overscroll-behavior: contain;
}
.fc-log-cols,
.fc-log-row {
  display: grid;
  grid-template-columns:
    5.7rem
    4.7rem
    minmax(8rem, 1.7fr)
    3.6rem
    6.6rem
    7.4rem
    minmax(4.5rem, 6.5rem);
  gap: 0.55rem 0.7rem;
  align-items: center;
  padding: 0.7rem 1.15rem;
}
.fc-log-cols {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--fc-line);
  background: #fbfcfb;
  color: var(--fc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fc-log-row {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--fc-line);
  border-left: 3px solid var(--fc-line);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.fc-log-row:hover,
.fc-log-row:focus-visible {
  background: #f4fbf9;
  outline: none;
}
.fc-log-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--fc-teal);
}
.fc-log-row.is-ok {
  border-left-color: var(--fc-mint);
}
.fc-log-row.is-warn {
  border-left-color: #d4a017;
}
.fc-log-row.is-bad {
  border-left-color: #c45c4a;
  background: #fff8f7;
}
.fc-log-when {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.fc-log-when strong {
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
}
.fc-log-when em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fc-muted);
  text-transform: capitalize;
}
.fc-verb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.16rem 0.4rem;
  border-radius: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.fc-verb.is-get {
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.fc-verb.is-post {
  background: #e6f6ec;
  color: #1a5c3c;
}
.fc-verb.is-put {
  background: #fff4e5;
  color: #8a5a12;
}
.fc-verb.is-patch {
  background: #eef1ff;
  color: #3a4780;
}
.fc-verb.is-delete {
  background: #fdecea;
  color: #8f2d22;
}
.fc-verb.is-other {
  background: #eef3f1;
  color: var(--fc-muted);
}
.fc-log-path {
  min-width: 0;
}
.fc-log-path code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0;
  background: transparent;
  color: var(--fc-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 500;
}
.fc-log-lat {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.fc-log-lat i {
  display: block;
  height: 0.28rem;
  max-width: 100%;
  border-radius: 99px;
  background: var(--fc-teal);
}
.fc-log-lat.is-warn i {
  background: #d4a017;
}
.fc-log-lat.is-bad i {
  background: #c45c4a;
}
.fc-log-lat.is-muted i {
  background: var(--fc-line);
}
.fc-log-lat b {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fc-muted);
}
.fc-log-ip,
.fc-log-ua {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--fc-muted);
}
.fc-log-ip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--fc-ink);
}
.fc-log-skel {
  height: 3.15rem;
  margin: 0.35rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(90deg, #eef3f1 0%, #f7fafa 46%, #eef3f1 100%);
  background-size: 180% 100%;
  animation: fc-log-shimmer 1.2s ease-in-out infinite;
}
.fc-log-empty {
  padding: 3.2rem 1.25rem 3.4rem;
  text-align: center;
}
.fc-log-empty-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 0.9rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 28% 28%, rgba(184, 255, 243, 0.7), transparent 54%),
    var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.7rem;
}
.fc-log-empty-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fc-log-empty-hint {
  margin: 0.35rem 0 0;
  color: var(--fc-muted);
  font-weight: 600;
}
.fc-log-detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.fc-log-detail-top code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--fc-wash);
  color: var(--fc-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}
.fc-log-pre {
  margin: 0;
  max-height: 18rem;
  overflow: auto;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #10221f;
  color: #d7fff6;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes fc-log-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -80% 0; }
}

@media (max-width: 1199.98px) {
  .fc-log-cols span:nth-child(6),
  .fc-log-cols span:nth-child(7),
  .fc-log-row .fc-log-ip,
  .fc-log-row .fc-log-ua {
    display: none;
  }
  .fc-log-cols,
  .fc-log-row {
    grid-template-columns: 5.4rem 4.5rem minmax(7rem, 1fr) 3.4rem 6.2rem;
  }
}
@media (max-width: 991.98px) {
  .fc-log-filters {
    grid-template-columns: 1fr 1fr;
  }
  .fc-log-field-search,
  .fc-log-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767.98px) {
  .fc-log-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .fc-dash-hero-meta {
    align-items: flex-start;
    text-align: left;
  }
  .fc-log-filters {
    grid-template-columns: 1fr;
  }
  .fc-log-cols {
    display: none;
  }
  .fc-log-row {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas:
      "when verb path status"
      "when verb lat lat";
    align-items: start;
  }
  .fc-log-when { grid-area: when; }
  .fc-log-row .fc-verb { grid-area: verb; align-self: start; }
  .fc-log-path { grid-area: path; }
  .fc-log-row .fc-status { grid-area: status; }
  .fc-log-lat { grid-area: lat; max-width: 9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fc-log-row,
  .fc-log-chip,
  button.fc-stat {
    transition: none;
  }
  .fc-log-skel {
    animation: none;
  }
  button.fc-stat:hover {
    transform: none;
  }
}

/* ---- Agent IA ---- */
.fc-ai-hero .btn-light {
  font-weight: 800;
  color: var(--fc-teal-deep) !important;
}
.fc-dash-hero .k2-broker-launch,
.fc-ai-hero .k2-broker-launch {
  margin: 0;
  align-items: flex-end;
}
.fc-dash-hero .k2-broker-launch-hint,
.fc-ai-hero .k2-broker-launch-hint {
  display: none;
}
.fc-dash-hero .k2-broker-btn,
.fc-ai-hero .k2-broker-btn {
  background: #fff;
  color: var(--fc-teal-deep);
  border-color: transparent;
  font-weight: 800;
}
.fc-dash-hero .k2-broker-btn:hover,
.fc-ai-hero .k2-broker-btn:hover {
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
}
.fc-ai-empty {
  text-align: center;
  padding: 1.8rem 1rem 1.4rem;
}
.fc-ai-conns {
  display: grid;
  gap: 0.75rem;
}
.fc-ai-conn {
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.fc-ai-conn.is-on {
  border-color: var(--fc-teal);
  box-shadow: 0 0 0 1px var(--fc-teal) inset;
}
.fc-ai-conn.is-off {
  background: #fbfcfb;
}
.fc-ai-conn-main {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem 0.4rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.fc-ai-conn-main:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: -2px;
}
.fc-ai-conn-icon {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.15rem;
}
.fc-ai-conn-main strong,
.fc-ai-conn-main em {
  display: block;
}
.fc-ai-conn-main strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fc-ai-conn-main em {
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--fc-muted);
}
.fc-ai-conn-main .fc-status {
  margin-left: auto;
}
.fc-ai-conn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.85rem 3.95rem;
}
.fc-ai-toolbar {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.fc-ai-field .form-label {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-ai-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.fc-ai-thread {
  min-height: 14rem;
  max-height: 28rem;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fbfcfb;
}
.fc-ai-placeholder {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 12rem;
  text-align: center;
  color: var(--fc-muted);
}
.fc-ai-placeholder i {
  font-size: 1.7rem;
  color: var(--fc-teal);
}
.fc-ai-placeholder p {
  margin: 0;
  max-width: 28rem;
  font-weight: 650;
}
.fc-ai-msg {
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--fc-line);
}
.fc-ai-msg.is-user {
  margin-left: 12%;
  background: var(--fc-wash);
  border-color: transparent;
}
.fc-ai-msg.is-assistant {
  margin-right: 12%;
}
.fc-ai-msg-role {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-ai-msg p {
  margin: 0;
  white-space: pre-wrap;
  font-weight: 600;
  line-height: 1.45;
}
.fc-ai-pending {
  margin: 0;
  color: var(--fc-teal-deep);
  font-weight: 700;
}
.fc-ai-composer {
  margin-top: 0.85rem;
}
.fc-ai-composer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.fc-ai-use {
  margin-bottom: 1rem;
}
.fc-ai-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.fc-ai-use-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
}
.fc-ai-use-card > i {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: var(--fc-wash);
  color: var(--fc-teal);
  font-size: 1.1rem;
}
.fc-ai-use-card strong {
  font-size: 0.95rem;
  font-weight: 800;
}
.fc-ai-use-card p {
  margin: 0;
  color: var(--fc-muted);
  font-size: 0.84rem;
  font-weight: 650;
  flex: 1;
}
.fc-ai-use-card code {
  align-self: flex-start;
  background: var(--fc-wash);
  color: var(--fc-teal-deep);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}
.fc-ai-use-card .k2-broker-launch-hint {
  display: none;
}
.fc-ai-snippet {
  margin: 0;
  max-height: 8.5rem;
  overflow: auto;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  background: #10221f;
  color: #d7fff6;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
}
.fc-ai-providers {
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
}
.fc-ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.6rem, 1fr));
  gap: 0.45rem;
}
.fc-ai-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid var(--fc-line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}
.fc-ai-provider input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fc-ai-provider i {
  font-size: 1.15rem;
  color: var(--fc-teal);
}
.fc-ai-provider.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
}
.fc-ai-provider:focus-within {
  outline: 2px solid var(--fc-teal);
  outline-offset: 1px;
}
.fc-modal-sheet {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(16, 34, 31, 0.18);
}
.fc-modal-sheet form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.fc-modal-head {
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem 1.05rem;
  background:
    linear-gradient(165deg, #dceee9 0%, #f3faf8 58%, #fff 100%);
  border-bottom: 1px solid var(--fc-line);
}
.fc-modal-glyph {
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--fc-teal);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: inset 0 -1px 0 rgba(0, 32, 28, 0.18);
}
.fc-modal-head-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.fc-modal-kicker {
  margin: 0 0 0.12rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-teal);
}
.fc-modal-head .modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fc-ink);
}
.fc-modal-lead {
  margin: 0.35rem 0 0;
  max-width: 38rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--fc-muted);
}
.fc-modal-head .btn-close {
  margin: 0.2rem 0 0 auto;
}
.fc-modal-head .btn-close:focus-visible {
  outline: 2px solid var(--fc-teal-deep);
  outline-offset: 2px;
}
.fc-modal-sheet .modal-body {
  padding: 1.15rem 1.3rem 0.4rem;
  max-height: min(62vh, 38rem);
  overflow: auto;
}
.fc-vs-grid {
  display: grid;
  gap: 1.35rem 1.85rem;
}
@media (min-width: 768px) {
  .fc-vs-grid {
    grid-template-columns: minmax(16rem, 0.92fr) minmax(18rem, 1.18fr);
    align-items: start;
  }
  .fc-vs-col + .fc-vs-col {
    padding-left: 1.85rem;
    border-left: 1px solid var(--fc-line);
  }
}
.fc-vs-col h3 {
  margin: 0 0 0.8rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-muted);
}
.fc-vs-col .fc-ai-provider-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#agent-ia-modal .fc-vs-col .fc-ai-provider-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fc-vs-pair {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
@media (min-width: 520px) {
  .fc-vs-pair {
    grid-template-columns: 1fr 1fr;
  }
}
.fc-vs-col .fc-inspect-toggle {
  width: 100%;
  margin-top: 0.15rem;
}
.fc-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.7rem;
  padding: 0.9rem 1.3rem;
  background: #f4faf8;
  border-top: 1px solid var(--fc-line);
}
.fc-modal-foot-hint {
  margin: 0 auto 0 0;
  max-width: 22rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fc-muted);
}
.modal-xl.modal-dialog {
  max-width: 62rem;
}
.fc-ai-endpoint {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--fc-line);
  border-radius: 12px;
  background: var(--fc-wash);
}
.fc-ai-endpoint i {
  font-size: 1.2rem;
  color: var(--fc-teal);
  margin-top: 0.1rem;
}
.fc-ai-endpoint strong {
  display: block;
  font-size: 0.86rem;
}
.fc-ai-endpoint p {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.82rem;
  color: var(--fc-muted, #5b6b66);
}
.fc-ai-endpoint code {
  font-size: 0.75rem;
}
.fc-ai-models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.5rem;
}
.fc-ai-model {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.fc-ai-model strong {
  font-size: 0.84rem;
  font-weight: 800;
}
.fc-ai-model code {
  font-size: 0.7rem;
  color: var(--fc-muted, #5b6b66);
  background: transparent;
  padding: 0;
}
.fc-ai-model.is-on {
  border-color: var(--fc-teal);
  background: var(--fc-wash);
  box-shadow: 0 0 0 1px var(--fc-teal) inset;
}
.fc-ai-model:focus-visible {
  outline: 2px solid var(--fc-teal);
  outline-offset: 1px;
}
@media (max-width: 991.98px) {
  .fc-ai-use-grid,
  .fc-ai-toolbar {
    grid-template-columns: 1fr;
  }
  .fc-ai-conn-actions {
    padding-left: 1rem;
  }
  .fc-ai-msg.is-user,
  .fc-ai-msg.is-assistant {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---- Toggl ---- */
.fc-toggl-now {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #004840, #00685d);
  color: #fff;
}
.fc-toggl-now strong,
.fc-toggl-now em {
  display: block;
}
.fc-toggl-now strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fc-toggl-now em {
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.74);
}
.fc-toggl-now .btn {
  margin-left: auto;
}
.fc-toggl-now-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 99px;
  background: #b8fff3;
  box-shadow: 0 0 0 6px rgba(184, 255, 243, 0.18);
  animation: fc-toggl-pulse 1.4s ease-in-out infinite;
}
.fc-toggl-now.is-idle {
  background: var(--fc-wash);
  color: var(--fc-ink);
  border: 1px solid var(--fc-line);
}
.fc-toggl-now.is-idle i {
  font-size: 1.2rem;
  color: var(--fc-teal);
}
.fc-toggl-now.is-idle p {
  color: var(--fc-muted);
  font-weight: 650;
}
.fc-toggl-range,
.fc-toggl-invite {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1rem;
}
.fc-toggl-invite {
  grid-template-columns: minmax(10rem, 1.2fr) minmax(7rem, 0.7fr) auto auto;
}
.fc-log-chip i {
  font-size: 0.9rem;
  vertical-align: -0.1em;
}
@keyframes fc-toggl-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (max-width: 767.98px) {
  .fc-toggl-range,
  .fc-toggl-invite {
    grid-template-columns: 1fr;
  }
  .fc-toggl-now {
    flex-wrap: wrap;
  }
  .fc-toggl-now .btn {
    margin-left: 0;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fc-toggl-now-dot {
    animation: none;
  }
}

/* ---- Automations / iPaaS ---- */
.fc-auto-urls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1rem;
}
.fc-auto-urls .fc-studio-code {
  min-height: 2.6rem;
}
.fc-auto-json .fc-ai-snippet {
  max-height: 16rem;
}
.fc-auto-shot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #004840, #00685d);
  color: #fff;
}
.fc-auto-shot strong,
.fc-auto-shot em {
  display: block;
}
.fc-auto-shot strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fc-auto-shot em {
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.74);
}
.fc-auto-shot > i {
  font-size: 1.35rem;
}
.fc-auto-shot.is-idle,
.fc-auto-shot.is-fail {
  background: var(--fc-wash);
  color: var(--fc-ink);
  border: 1px solid var(--fc-line);
}
.fc-auto-shot.is-idle i,
.fc-auto-shot.is-fail i {
  color: var(--fc-teal);
}
.fc-auto-shot.is-fail i {
  color: #b42318;
}
.fc-auto-shot.is-idle p,
.fc-auto-shot.is-fail em {
  color: var(--fc-muted);
  font-weight: 650;
}
.fc-auto-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.fc-auto-provider-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fc-auto-provider-grid .fc-ai-provider {
  min-height: 5.2rem;
  font-size: 0.9rem;
}
.fc-auto-review {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.fc-auto-review article {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--fc-line);
  border-radius: 12px;
  background: var(--fc-wash);
}
.fc-auto-review i {
  color: var(--fc-teal);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.fc-auto-review strong,
.fc-auto-review em {
  display: block;
}
.fc-auto-review em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--fc-muted);
  word-break: break-all;
}
@media (max-width: 767.98px) {
  .fc-auto-urls {
    grid-template-columns: 1fr;
  }
  .fc-auto-provider-grid,
  .fc-auto-review {
    grid-template-columns: 1fr;
  }
}
