/*
 * FarmXL theme - loaded after bootstrap.min.css and admin.css (see header.partial).
 * Part 1 restyles the Bootstrap 3 components every page uses.
 * Part 2 holds the fxl-* layout components used by the redesigned pages.
 */

:root {
  --fxl-navy: #1B4F7E;
  --fxl-navy-ink: #0F2A44;
  --fxl-navy-card: #22598A;
  --fxl-blue: #3281C0;
  --fxl-blue-text: #2A6CA3;
  --fxl-blue-tint: #E3EEF8;
  --fxl-blue-light: #BFDBF2;
  --fxl-amber: #F0AD4E;
  --fxl-amber-hover: #EC9F33;
  --fxl-amber-tint: #FDF1DE;
  --fxl-amber-ink: #5C3A00;
  --fxl-ink: #1F2933;
  --fxl-ink-2: #3E4C59;
  --fxl-muted: #52606D;
  --fxl-faint: #9AA5B1;
  --fxl-line: #E4E7EB;
  --fxl-line-soft: #F0F2F4;
  --fxl-input: #C4CDD5;
  --fxl-ground: #F4F5F7;
  --fxl-danger: #B42318;
  --fxl-radius: 8px;
  --fxl-radius-lg: 12px;
  --fxl-font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Part 1: Bootstrap overrides ---------- */

body {
  font-family: var(--fxl-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fxl-ink);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: var(--fxl-font);
  color: var(--fxl-navy-ink);
}

h1, .h1 { font-weight: 800; letter-spacing: -0.01em; }
h2, .h2, h3, .h3 { font-weight: 700; }

a { color: var(--fxl-navy); }
a:hover, a:focus { color: var(--fxl-navy-ink); }
/* bootstrap rings every clicked link (black in current Chrome) - only show a ring for keyboard focus */
a:focus:not(:focus-visible) { outline: none; }
a:focus-visible { outline: 2px solid var(--fxl-blue); outline-offset: 2px; }

/* Navbar */
.navbar-inverse {
  background-color: var(--fxl-navy);
  border-color: var(--fxl-navy);
  border-radius: 0;
  margin-bottom: 0;
  min-height: 64px;
}

.navbar-inverse .navbar-brand {
  height: 64px;
  padding: 14px 15px;
}

.navbar-inverse .navbar-brand img {
  height: 36px;
  width: 144px;
}

.navbar-inverse .navbar-nav > li > a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding-top: 22px;
  padding-bottom: 22px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #ffffff;
  background-color: var(--fxl-navy-card);
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
  color: #ffffff;
  background-color: var(--fxl-navy-card);
}

.navbar-inverse .navbar-text {
  color: var(--fxl-blue-tint);
  margin-top: 22px;
  margin-bottom: 22px;
}

.navbar-inverse .navbar-text a {
  color: #ffffff;
  font-weight: 600;
}

.navbar-inverse .navbar-toggle {
  margin-top: 15px;
  border-color: var(--fxl-blue-light);
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
  background-color: var(--fxl-navy-card);
}

.navbar-inverse .navbar-collapse {
  border-color: var(--fxl-navy-card);
}

/* the navbar link padding (22px) would otherwise stretch the button and push it below "Log in" -
   a 40px button with 12px margins sits centred in the 64px bar like the other links */
.navbar-inverse .navbar-nav > li > a.fxl-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin: 12px 0 12px 8px;
  padding: 0 18px;
  line-height: 1;
}

.navbar-inverse .navbar-nav > li > a.fxl-nav-cta:focus {
  background-color: var(--fxl-amber);
  color: #1A1A1A;
}

.navbar-inverse .navbar-nav > li > a.fxl-nav-cta:hover {
  background-color: var(--fxl-amber-hover);
  color: #1A1A1A;
}

.dropdown-menu {
  border: 1px solid var(--fxl-line);
  border-radius: var(--fxl-radius-lg);
  box-shadow: 0 8px 24px rgba(15, 42, 68, 0.12);
  padding: 8px 0;
}

.dropdown-menu > li > a {
  padding: 8px 18px;
  font-size: 15px;
  color: var(--fxl-ink);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: var(--fxl-blue-tint);
  color: var(--fxl-navy-ink);
}

@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
    color: var(--fxl-blue-tint);
  }
  .navbar-inverse .navbar-nav > li > a.fxl-nav-cta {
    margin: 8px 15px;
  }
}

/* Buttons */
.btn {
  border-radius: var(--fxl-radius);
  font-weight: 600;
}

.btn-primary {
  background-color: var(--fxl-navy);
  border-color: var(--fxl-navy);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--fxl-navy-ink);
  border-color: var(--fxl-navy-ink);
}

.btn-warning {
  background-color: var(--fxl-amber);
  border-color: var(--fxl-amber);
  color: #1A1A1A;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: var(--fxl-amber-hover);
  border-color: var(--fxl-amber-hover);
  color: #1A1A1A;
}

.btn-default {
  border-color: var(--fxl-input);
  color: var(--fxl-navy);
}

/* Forms */
.form-control {
  height: 44px;
  border-color: var(--fxl-input);
  border-radius: var(--fxl-radius);
  box-shadow: none;
  font-size: 16px;
  color: var(--fxl-ink);
}

.form-control:focus {
  border-color: var(--fxl-blue);
  box-shadow: 0 0 0 3px rgba(50, 129, 192, 0.2);
}

/* Tables */
.table > thead > tr > th {
  background: #F8F9FA;
  border-bottom: 1px solid var(--fxl-line);
  color: var(--fxl-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table > tbody > tr > td {
  border-top: 1px solid var(--fxl-line-soft);
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #FAFBFC;
}

/* Panels, alerts, modals, labels */
.panel {
  border-radius: var(--fxl-radius-lg);
  border-color: var(--fxl-line);
}

.panel-primary > .panel-heading {
  background-color: var(--fxl-navy);
  border-color: var(--fxl-navy);
  color: #ffffff;
}

.alert {
  border-radius: var(--fxl-radius-lg);
}

.modal-content {
  border: 0;
  border-radius: var(--fxl-radius-lg);
  box-shadow: 0 16px 48px rgba(15, 42, 68, 0.24);
}

.modal-header {
  border-bottom-color: var(--fxl-line);
}

.modal-title {
  font-weight: 700;
  color: var(--fxl-navy-ink);
}

.modal-footer {
  border-top-color: var(--fxl-line);
}

.label-info,
.label-primary {
  background-color: var(--fxl-blue-tint);
  color: var(--fxl-navy);
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 10px;
}

/* ---------- Part 2: fxl-* components ---------- */

.fxl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fxl-container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.fxl-section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.fxl-section--ground { background: var(--fxl-ground); }
.fxl-section--navy { background: var(--fxl-navy); color: #ffffff; }
.fxl-section--blue { background: var(--fxl-blue); color: #ffffff; padding-top: 64px; padding-bottom: 64px; }

.fxl-stack { display: flex; flex-direction: column; gap: 18px; }
.fxl-stack > * { margin: 0; }
.fxl-stack--lg { gap: 40px; }
.fxl-stack--xl { gap: 96px; }

.fxl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}

.fxl-row--reverse { flex-wrap: wrap-reverse; }
.fxl-row > * { flex: 1 1 440px; min-width: 0; }

.fxl-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fxl-blue-text);
}

.fxl-section--navy .fxl-eyebrow,
.fxl-hero .fxl-eyebrow { color: var(--fxl-blue-light); }

.fxl-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--fxl-navy-ink);
}

.fxl-title--md { font-size: 36px; }
.fxl-section--navy .fxl-title,
.fxl-section--blue .fxl-title { color: #ffffff; }

.fxl-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fxl-ink-2);
}

.fxl-muted { color: var(--fxl-muted); }

.fxl-img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Buttons */
.fxl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--fxl-radius);
  border: 1px solid transparent;
  font-family: var(--fxl-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.fxl-btn:hover,
.fxl-btn:focus { text-decoration: none; }

.fxl-btn--lg { padding: 15px 26px; font-size: 17px; border-radius: 10px; }
.fxl-btn--block { display: flex; width: 100%; }

.fxl-btn--cta,
.fxl-btn--cta:focus { background: var(--fxl-amber); color: #1A1A1A; }
.fxl-btn--cta:hover { background: var(--fxl-amber-hover); color: #1A1A1A; }

.fxl-btn--primary,
.fxl-btn--primary:focus { background: var(--fxl-navy); border-color: var(--fxl-navy); color: #ffffff; }
.fxl-btn--primary:hover { background: var(--fxl-navy-ink); border-color: var(--fxl-navy-ink); color: #ffffff; }

.fxl-btn--outline,
.fxl-btn--outline:focus { background: #ffffff; border-color: var(--fxl-input); color: var(--fxl-navy); font-weight: 600; }
.fxl-btn--outline:hover { background: var(--fxl-blue-tint); color: var(--fxl-navy-ink); }

.fxl-btn--ghost-light,
.fxl-btn--ghost-light:focus { background: transparent; border: 1.5px solid #8FB8DD; color: #ffffff; font-weight: 600; }
.fxl-btn--ghost-light:hover { background: var(--fxl-navy-card); color: #ffffff; }

.fxl-btn--danger,
.fxl-btn--danger:focus { background: #ffffff; border-color: #F1B5AF; color: var(--fxl-danger); }
.fxl-btn--danger:hover { background: #FEF3F2; color: var(--fxl-danger); }

.fxl-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.fxl-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.fxl-hero { background: var(--fxl-navy); color: #ffffff; }
.fxl-hero .fxl-row { padding-top: 56px; padding-bottom: 72px; }

.fxl-hero h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fxl-hero p.fxl-hero-lead {
  margin: 0;
  max-width: 540px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--fxl-blue-tint);
}

.fxl-hero .fxl-img { height: 460px; }

@media (max-width: 767px) {
  .fxl-hero h1 { font-size: 40px; }
  .fxl-hero .fxl-img { height: 280px; }
  .fxl-title { font-size: 30px; }
  .fxl-section { padding-top: 56px; padding-bottom: 56px; }
}

/* Highlights strip */
.fxl-highlights {
  background: var(--fxl-ground);
  border-bottom: 1px solid var(--fxl-line);
}

.fxl-highlights .fxl-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.fxl-highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.fxl-highlight svg { flex-shrink: 0; }

/* Product cards */
.fxl-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 48px;
}

.fxl-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.fxl-product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--fxl-line);
  border-radius: 14px;
}

.fxl-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--fxl-line-soft);
}

.fxl-product-img img {
  display: block;
  width: auto;  /* the img width/height attributes only reserve the aspect ratio */
  height: auto;
  max-width: 100%;
  max-height: 188px;
  object-fit: contain;
}

.fxl-product-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 6px;
  padding: 20px;
}

.fxl-product-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.fxl-product-body p {
  flex-grow: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fxl-muted);
}

.fxl-product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.fxl-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--fxl-navy-ink);
}

.fxl-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 22px 28px;
  border-radius: 14px;
  background: var(--fxl-ground);
  font-size: 15px;
  color: var(--fxl-ink-2);
}

.fxl-note p { margin: 0; }

/* Check list and specs */
.fxl-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.fxl-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fxl-checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233281C0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.fxl-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fxl-spec {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--fxl-line);
  border-radius: var(--fxl-radius-lg);
}

.fxl-spec p { margin: 0; }
.fxl-spec-label { font-size: 14px; font-weight: 600; color: var(--fxl-muted); }
.fxl-spec-value { margin-top: 4px !important; font-size: 22px; font-weight: 800; color: var(--fxl-navy-ink); }

.fxl-link-strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 0;
  font-weight: 700;
  text-decoration: none;
}

.fxl-badges { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.fxl-badges img { display: block; height: 48px; }

.fxl-device-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--fxl-ground);
  border-radius: 16px;
}

.fxl-device-frame img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: 400px;
  object-fit: contain;
}

/* Benefits */
.fxl-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.fxl-benefit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--fxl-navy-card);
  border-radius: 14px;
}

.fxl-benefit h3 { margin: 0; font-size: 20px; font-weight: 700; color: #ffffff; }
.fxl-benefit p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fxl-blue-tint); }

.fxl-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 64px;
}

.fxl-band h2 { flex: 1 1 480px; margin: 0; font-size: 34px; line-height: 1.2; font-weight: 800; color: #ffffff; }
.fxl-band p { flex: 0 1 380px; margin: 0; font-size: 18px; font-weight: 600; color: #ffffff; }

/* Footer */
.fxl-footer { background: var(--fxl-navy-ink); color: #D9E2EC; }
.fxl-footer .fxl-container { padding-top: 64px; padding-bottom: 32px; }

.fxl-footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  margin-bottom: 48px;
}

.fxl-footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.fxl-footer-brand img { display: block; width: 160px; height: 40px; border-radius: 4px; }
.fxl-footer-brand p { margin: 0; max-width: 300px; font-size: 15px; color: #BCCCDC; }

.fxl-footer-col { flex: 0 1 200px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.fxl-footer-col h2 { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; }
.fxl-footer a { color: #D9E2EC; text-decoration: none; }
.fxl-footer a:hover, .fxl-footer a:focus { color: #ffffff; text-decoration: underline; }

.fxl-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid #243B53;
  font-size: 14px;
  color: #BCCCDC;
}

.fxl-footer-legal nav { display: flex; gap: 24px; }

/* Portal pages */
.fxl-page { background: var(--fxl-ground); min-height: 60vh; }
.fxl-page .fxl-container { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }

.fxl-subnav { background: #ffffff; border-bottom: 1px solid var(--fxl-line); }
.fxl-subnav .fxl-container { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 600; }

.fxl-subnav a {
  padding: 16px 0 13px;
  border-bottom: 3px solid transparent;
  color: var(--fxl-muted);
  text-decoration: none;
}

.fxl-subnav a:hover { color: var(--fxl-navy-ink); }
.fxl-subnav a:focus { outline: none; text-decoration: none; }
.fxl-subnav a:focus-visible { outline: 2px solid var(--fxl-blue); outline-offset: 2px; }
.fxl-subnav a[aria-current="page"] { color: var(--fxl-navy-ink); border-bottom-color: var(--fxl-blue); }

.fxl-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
}

.fxl-page-head h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.fxl-page-head p { margin: 6px 0 0; color: var(--fxl-muted); }

.fxl-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--fxl-muted); }
.fxl-breadcrumb a { font-weight: 600; text-decoration: none; }

.fxl-panel {
  background: #ffffff;
  border: 1px solid var(--fxl-line);
  border-radius: var(--fxl-radius-lg);
}

.fxl-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  padding: 16px 20px;
}

.fxl-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--fxl-ink-2); }
.fxl-field input { font-weight: 400; }

.fxl-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.fxl-pill {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--fxl-blue-tint);
  color: var(--fxl-navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fxl-pill:hover { background: var(--fxl-blue-light); }

.fxl-table-wrap { overflow-x: auto; }
.fxl-table-wrap .table { margin: 0; min-width: 640px; font-size: 15px; }
.fxl-table-wrap .table > thead > tr > th,
.fxl-table-wrap .table > tbody > tr > td { padding: 12px 16px; }
.fxl-table-wrap .table > thead > tr > th:first-child { border-top-left-radius: var(--fxl-radius-lg); }
.fxl-table-wrap .table > thead > tr > th:last-child { border-top-right-radius: var(--fxl-radius-lg); }
.fxl-num { text-align: right; font-variant-numeric: tabular-nums; }
.fxl-row-actions { text-align: right; white-space: nowrap; }
.fxl-row-actions a, .fxl-row-actions button { padding: 8px 12px; font-size: 14px; font-weight: 600; text-decoration: none; }

.fxl-icon-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--fxl-radius);
  background: transparent;
  cursor: pointer;
}

.fxl-icon-btn:hover { background: #FEF3F2; }

.fxl-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--fxl-blue-tint);
  color: var(--fxl-navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fxl-tag:hover { color: var(--fxl-navy-ink); text-decoration: none; }
.fxl-tag--hold { background: var(--fxl-amber-tint); color: #7A4A00; }

.fxl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.fxl-stat { padding: 20px; }
.fxl-stat p { margin: 0; }
.fxl-stat-label { font-size: 14px; font-weight: 600; color: var(--fxl-muted); }
.fxl-stat-value { margin-top: 6px !important; font-size: 32px; font-weight: 800; line-height: 1.1; color: var(--fxl-navy-ink); }
.fxl-stat-value small { font-size: 16px; font-weight: 600; color: var(--fxl-muted); }
.fxl-stat-sub { margin-top: 8px !important; font-size: 14px; color: var(--fxl-muted); }

.fxl-chart { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fxl-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.fxl-chart-head h2 { margin: 0; font-size: 18px; }
.fxl-chart-head p { margin: 0; font-size: 14px; color: var(--fxl-muted); }
.fxl-chart-canvas { position: relative; height: 300px; }

.fxl-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.fxl-pager p { margin: 0; font-size: 14px; color: var(--fxl-muted); }

.fxl-status:empty { display: none; }

.fxl-empty {
  padding: 32px;
  text-align: center;
  color: var(--fxl-muted);
}

/* Auth pages (log in, sign up, forgot password) */
.fxl-auth { display: flex; flex-wrap: wrap; min-height: 100vh; background: #ffffff; }

.fxl-auth-aside {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: var(--fxl-navy);
  color: #ffffff;
}

.fxl-auth-aside > a img { display: block; width: 160px; height: 40px; }
.fxl-auth-aside h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 800; color: #ffffff; }
.fxl-auth-aside p { margin: 0; font-size: 17px; color: var(--fxl-blue-tint); }
.fxl-auth-aside .fxl-img { height: 300px; }
.fxl-auth-aside .fxl-auth-foot { font-size: 14px; color: var(--fxl-blue-light); }
.fxl-flag { display: inline-block; width: 24px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.fxl-auth-aside .fxl-checklist { font-size: 17px; color: var(--fxl-blue-tint); gap: 16px; }

.fxl-auth-main {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.fxl-auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.fxl-auth-form h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.fxl-auth-form p { margin: 0; }
.fxl-auth-form .fxl-field { margin: 0; }
.fxl-auth-form .fxl-field-row { display: flex; justify-content: space-between; align-items: baseline; }
.fxl-auth-form .fxl-small { font-size: 14px; color: var(--fxl-muted); text-align: center; }

.fxl-divider { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fxl-faint); }
.fxl-divider::before,
.fxl-divider::after { content: ""; flex-grow: 1; height: 1px; background: var(--fxl-line); }

.fxl-field-error { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--fxl-danger); }

@media (max-width: 767px) {
  .fxl-auth-aside { padding: 24px; }
  .fxl-auth-aside .fxl-img,
  .fxl-auth-aside .fxl-auth-hide-sm { display: none; }
}

/* Knowledge Base */
.fxl-kb-hero { background: var(--fxl-navy); color: #ffffff; }
.fxl-kb-hero .fxl-container { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.fxl-kb-hero h1 { margin: 0; font-size: 44px; line-height: 1.1; color: #ffffff; }
.fxl-kb-hero p { margin: 0; font-size: 18px; color: var(--fxl-blue-tint); }

.fxl-search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  padding: 6px;
  background: #ffffff;
  border-radius: var(--fxl-radius-lg);
}

.fxl-search label { flex-grow: 1; display: flex; align-items: center; gap: 10px; margin: 0; padding-left: 12px; font-weight: 400; }
.fxl-search input { width: 100%; padding: 10px 0; border: 0; background: transparent; font-size: 16px; color: var(--fxl-ink); }
.fxl-search input:focus { outline: 2px solid var(--fxl-blue); outline-offset: 4px; }

.fxl-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.fxl-cat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  color: var(--fxl-ink);
  text-decoration: none;
}

.fxl-cat:hover, .fxl-cat:focus { border-color: var(--fxl-blue); text-decoration: none; }

.fxl-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--fxl-blue-tint);
}

.fxl-cat-name { display: block; font-size: 17px; font-weight: 700; color: var(--fxl-navy-ink); }
.fxl-cat-count { display: block; font-size: 14px; color: var(--fxl-muted); }

.fxl-kb-layout { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.fxl-kb-layout > .fxl-kb-main { flex: 999 1 600px; min-width: 0; }
.fxl-kb-layout > .fxl-kb-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 24px; align-self: flex-start; }

.fxl-help-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--fxl-radius-lg);
  background: var(--fxl-navy);
  color: #ffffff;
}

.fxl-help-card h2 { margin: 0; font-size: 20px; color: #ffffff; }
.fxl-help-card p { margin: 0; font-size: 15px; color: var(--fxl-blue-tint); }
.fxl-help-card a.fxl-help-link { color: #ffffff; font-weight: 600; text-align: center; padding: 6px; }

.fxl-article-list { padding: 8px 24px; }
.fxl-article-item { display: block; padding: 18px 0; border-top: 1px solid var(--fxl-line-soft); }
.fxl-article-item:first-child { border-top: 0; }
.fxl-article-item h2 { margin: 0 0 4px; font-size: 18px; }
.fxl-article-item h2 a { text-decoration: none; }
.fxl-article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--fxl-muted); }
.fxl-article-abstract { margin-top: 8px; color: var(--fxl-ink-2); }

.fxl-admin-bar { background: var(--fxl-amber-tint); border-bottom: 1px solid #F3D9AE; }
.fxl-admin-bar .fxl-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--fxl-amber-ink); }

.fxl-article { max-width: 760px; display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.65; }
.fxl-article h1 { margin: 0; font-size: 40px; line-height: 1.15; }
.fxl-article-lead { font-size: 19px; color: var(--fxl-ink-2); }
.fxl-article-body h2 { margin: 32px 0 12px; font-size: 24px; font-weight: 800; }
.fxl-article-body h3 { margin: 24px 0 8px; font-size: 20px; }
.fxl-article-body img { max-width: 100%; height: auto; border-radius: var(--fxl-radius-lg); border: 1px solid var(--fxl-line); }
.fxl-article-body table { max-width: 100%; }
.fxl-article-body p { margin: 0 0 16px; }
